CN102647370B - Communication method for communicating WiFi network with ZigBee network - Google Patents

Communication method for communicating WiFi network with ZigBee network Download PDF

Info

Publication number
CN102647370B
CN102647370B CN201210112617.3A CN201210112617A CN102647370B CN 102647370 B CN102647370 B CN 102647370B CN 201210112617 A CN201210112617 A CN 201210112617A CN 102647370 B CN102647370 B CN 102647370B
Authority
CN
China
Prior art keywords
wifi
zigbee
network
socket
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210112617.3A
Other languages
Chinese (zh)
Other versions
CN102647370A (en
Inventor
吕勇
倪时昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHEJIANG REXENSE IOT TECHNOLOGY CO., LTD.
Original Assignee
ZHEJIANG REXENSE TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG REXENSE TECHNOLOGY CO LTD filed Critical ZHEJIANG REXENSE TECHNOLOGY CO LTD
Priority to CN201210112617.3A priority Critical patent/CN102647370B/en
Publication of CN102647370A publication Critical patent/CN102647370A/en
Application granted granted Critical
Publication of CN102647370B publication Critical patent/CN102647370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a WiFi (Wireless Fidelity) router with a ZigBee communication function. The router consists of a WiFi module and a ZigBee module, wherein a data exchange managing program is set in the WiFi module; the WiFi module is communicated with the WiFi network; the ZigBee module is communicated with the ZigBee network; the WiFi module is physically connected with the ZigBee module through a serial or parallel interface; and the data exchange managing program is used for realizing communication between the WiFi network and the ZigBee network. Smooth mutual communication can be realized between the WiFi and the ZigBee without influencing respective independent work of two kinds of networks. The invention further provides a method for communicating a WiFi network with a ZigBee network, which is applied to the route. The communication method is implemented by using the data exchange managing program. The ZigBee module is mapped into a port of the WiFi network, communication performed through the port is taken as communication between the WiFi network and the ZigBee network, and communication performed on other ports is processed by using a standard WiFi program, so that the ZigBee network and the WiFi network are independent relatively and do not influence each other.

Description

Communication means between WiFi network and ZigBee-network
Technical field
The present invention relates to the communications field of ZigBee-network and WiFi inter-net communication.
Background technology
WiFi is the Radio Transmission Technology based on IEEE802.11 standard, is the radio signal of supporting the Internet access.Be characterized in that wireless data transmission rate is high, meet the demand of individual and social informatization, be widely used at present in the terminal such as PC, handheld device (as PDA, mobile phone).
ZigBee is the Radio Transmission Technology based on IEEE802.15.4 standard, be one closely, low complex degree, self-organizing, low-power consumption, low data rate, Wireless Networking standard cheaply.Be widely used at present the applications such as Smart Home, building automatic, Industry Control.
Although WiFi possesses the ability of high-speed data communication, family, the indispensable network components of office personal information network are become, but because WiFi cost is higher and power consumption is larger, therefore the restriction due to supply power mode and cost in these fields still large number quipments, cannot come and other equipment networkings by WiFi technology, must could realize and other equipment wireless interconnected by ZigBee technology.Along with the development of Internet of Things application, radio sensing network will extend to each corner, and single wireless network cannot cover all application demands, and the hybrid network being made up of these two kinds difference logical technology of WiFi and ZigBee will become more and more popular and become main flow.Therefore, the demand that realizes data message seamless delivery between WiFi network and ZigBee-network is more and more urgent, becomes a huge bottleneck of technology of Internet of things development.
Summary of the invention
The invention provides the WiFi router that a kind of practicality possesses ZigBee communication function reliably, for this reason, the present invention adopts following technical scheme:
The WiFi router of the described ZigBee of possessing communication function is formed, is provided with exchanges data hypervisor in described WiFi module by WiFi module and ZigBee module; WiFi module and WiFi network communicate, and ZigBee module and ZigBee-network communicate; Its WiFi module is connected by serial or parallel interface physically with ZigBee module, realizes the communication means between WiFi network and ZigBee-network by the exchanges data hypervisor in WiFi module.
By above technical scheme, the present invention can make to realize between WiFi and ZigBee unobstructed intercommunication mutually, does not affect two kinds of networks working alone separately simultaneously.And reliably easy on equipment.
The present invention provides the communication means between a kind of WiFi network and ZigBee-network of the WiFi router that is applied to the above-mentioned ZigBee of possessing communication function simultaneously, described communication means is realized by aforementioned data exchange of management program, for this reason, the present invention adopts following technical scheme:
Described method is as follows:
1), ZigBee module is mapped as to a port on WiFi network, the communication of being undertaken by this port is considered as to communicating by letter between WiFi network and ZigBee-network, and the communication of carrying out is processed by standard WiFi program on other ports;
2), WiFi network and ZigBee-network communication process are as follows:
, WiFi equipment sets up SOCKET with the mapped port of ZigBee module on Wifi network and is connected;
, set up SOCKET and connect queue, the information that each SOCKET is connected is stored in queue, and opens up buffering area for each SOCKET connection;
, in the time that WiFi module receives by ZigBee module the data that come from ZigBee-network, traversal SOCKET connects queue and data is sent to each SOCKET connection in queue, so realizes the transmission of data from ZigBee-network arrival WiFi network;
, in WiFi module receives from WiFi network SOCKET connect Frame time, data temporarily need be stored in the buffering area of Data Source SOCKET, because WiFi network data is to send frame by frame, while often receiving a frame new data, WiFi module can check whether buffering area can form complete data packet, if imperfect, continue to wait for that new data arrives.If packet is complete, and the communication interface of ZigBee module and WiFi intermodule is in the time of idle condition, by data handover to ZigBee resume module and clear up this packet releasing resource in buffering area; If communication port is not or not the time of idle condition, packet is put in buffering area and is waited for, WiFi module is transmitting a packet and is clearing up after the releasing resource of buffering area, can travel through at once SOCKET connects queue buffer and searches and receive complete packet, and compare the time of advent that SOCKET connects packet in queue, according to " " principle, repeats said process, so realizes the transmission of data from WiFi network arrival ZigBee-network in first transmission first.
By above technical scheme, the present invention can make relatively independent between ZigBee-network and WiFi network and not interact.The logical implication of ZigBee mapped port is identical with the feature of other ports of WiFi network.For WiFi network, the angle from the WiFi network equipment: the mechanism connecting between they and ZigBee module port, process meets the specification that WiFi network connects completely.ZigBee module does not also need to know the concrete structure of WiFi network.ZigBee module and WiFi intermodule are relatively independent, are also convenient to upgrade ZigBee module to adapt to ZigBee specification with rapid changepl. never-ending changes and improvements.
Brief description of the drawings
Fig. 1 is the concrete structure explanation of this communication system;
Fig. 2 is the internal structure explanation that possesses the WiFi router of ZigBee communication function;
Fig. 3 is the explanation of WiFi network and ZigBee-network communication means;
Fig. 4 is the schematic diagram that the exchanges data hypervisor in WiFi module is connected with WiFi equipment with Server Mode;
Fig. 5 is the schematic diagram that the exchanges data hypervisor in WiFi module is connected with WiFi equipment with client mode.
Embodiment
The present invention is a kind of WiFi router that possesses ZigBee communication function, described in possess ZigBee communication function WiFi router comprise following part:
The WiFi router of the described ZigBee of possessing communication function is formed, is provided with exchanges data hypervisor in described WiFi module by WiFi module and ZigBee module; WiFi module and WiFi network communicate, and ZigBee module and ZigBee-network communicate; Baseband processor in its WiFi module is connected by serial or parallel interface physically with ZigBee module, realizes the communication means between WiFi network and ZigBee-network by the exchanges data hypervisor in WiFi module.
Referring to accompanying drawing 1, accompanying drawing 2.Accompanying drawing 1 comprises:
ZigBee-network 200, comprising: ZigBee equipment 201, ZigBee equipment 202, ZigBee module 20;
WiFi network 100, comprising: WiFi equipment 101, WiFi equipment 102, WiFi module 10;
Wherein WiFi router one comprises WiFi module 10 and ZigBee module 20;
Accompanying drawing 2 comprises:
ZigBee module 20, serial or parallel interface 21, WiFi module 10, baseband processor 11, the exchanges data hypervisor 30 in WiFi module.
Below describe in detail:
In the hybrid network being formed by WiFi network 100 and ZigBee-network 200, there is plurality of devices to cooperatively interact, collaborative work.In these equipment, some uses WiFi network 100 to communicate by letter, for example computer, mobile phone, the equipment such as panel computer; Some other equipment uses ZigBee-network 200 to communicate by letter, for example Temperature Humidity Sensor, human body heat-releasing transducer, electrically driven curtain etc.In actual applications, need to realize two kinds of devices interconnect and interoperability in heterogeneous networks, need to use the WiFi router one that possesses ZigBee communication function.
Possesses the integrated WiFi module 10 of a standard in the WiFi router one inside of ZigBee communication function, an and ZigBee module 20, and ZigBee module 20 is connected with the baseband processor 11 of WiFi module 10 inside with crossing serial or parallel interface 21, guarantee exchanges data between WiFi module 10 and ZigBee module 20 hardware view unobstructed reliably.
The baseband processor 11 of WiFi module 10 inside, except the WiFi router control program of operation standard, also move a data exchange of management program 30, be responsible for realizing the mutual transmission of data between ZigBee-network 100 and WiFi network 200 these two kinds of heterogeneous networks, and data are carried out to filtration and flow, flow direction control.Exchanges data hypervisor 30 both can with WiFi network 100 in devices communicating, again can with the devices communicating in ZigBee-network 200: the SOCKET that exchanges data hypervisor 30 can be set up ICP/IP protocol with the equipment in WiFi network 100 is connected, thereby is connected with WiFi equipment and carried out data communication by the SOCKET setting up; Exchanges data hypervisor 30 also can receive from the data ZigBee-network 200 from ZigBee module 20 by serial or parallel interface 21.
The present invention is the communication means being applied between WiFi network and the ZigBee-network of the WiFi router that possesses ZigBee communication function, and described communication means is realized by aforementioned data exchange of management program, and described method is as follows:
1), ZigBee module is mapped as to a port on WiFi network, the communication of being undertaken by this port is considered as to communicating by letter between WiFi network and ZigBee-network, and the communication of carrying out is processed by standard WiFi program on other ports;
Below with reference to the accompanying drawings 1 and accompanying drawing 2, accompanying drawing 3 describes in detail, and accompanying drawing 3 comprises, ZigBee module 20, and the exchanges data hypervisor 30 in WiFi module, the port #n that ZigBee module is shone upon on WiFi network:
WiFi module 10 possesses IP address, and 65535 ports (PORT).Exchanges data hypervisor 30 is mapped as ZigBee module 20 port (PORT) of WiFi module 10, and uses this port numbers of port numbers #n(to arrange, span 1-65535) represent this port.Exchanges data hypervisor 30 can make port #n be operated in TCP/IP server (SERVER) pattern and client (CLIENT) pattern, accordingly, equipment in WiFi network 100, can use TCP/IP client (CLIENT) pattern to set up SOCKET with server (SERVER) pattern with port #n and be connected.Be connected if the equipment in WiFi network 100 has been set up SOCKET with the port #n in WiFi module 10, connecting by this SOCKET the data communication of carrying out will be taken over by exchanges data hypervisor 30; Be connected if the equipment in WiFi network 100 has been set up SOCKET with other ports except port #n in WiFi module 10, connect by this SOCKET the data communication of carrying out the standard WiFi router control program by WiFi module 10 is taken over.
2), WiFi network and ZigBee-network communication process are as follows:
, WiFi equipment sets up SOCKET with the mapped port of ZigBee module on Wifi network and is connected;
Below with reference to the accompanying drawings 1, accompanying drawing 2, accompanying drawing 3, accompanying drawing 4, accompanying drawing 5 describes in detail:
Exchanges data hypervisor work is in the time of Server Mode, and its mode of operation is referring to accompanying drawing 4, and particular content is as follows:
Each in WiFi network 100 is operated in the equipment (for example equipment 101) of client mode, if need to communicate by letter with ZigBee module 20, can apply for that the SOCKET that sets up ICP/IP protocol with port #n is connected.Exchanges data hypervisor 30 as server end by the SOCKET connection request of receiving equipment 101, and take over be connected to port #n SOCKET connect, to realize the communication between equipment 101 and ZigBee module 20.Like this, ZigBee module 20 is become after port #n by exchanges data hypervisor 30, possesses identical external logic characteristic with other ports on WiFi router,, from WiFi network 100, each is operated in the angle of client mode equipment, they are set up SOCKET with port #n and are connected to realize and the communicating by letter of ZigBee module 20, and setting up SOCKET with them and other ports in WiFi module 10, to be connected the mechanism, the process that realize communication be duplicate.
Exchanges data hypervisor work is in the time of client mode, and its mode of operation is referring to accompanying drawing 5, and particular content is as follows:
Exchanges data hypervisor 30 also can make port #n be operated in client mode, and initiatively application for example, with in WiFi network 100, other are operated in server mode equipment (equipment 102) and set up the SOCKET of ICP/IP protocol and be connected.Once equipment 102 has been accepted the connection request of exchanges data hypervisor 30 and set up SOCKET connection, this SOCKET connects and will be taken over by exchanges data hypervisor 30, realizes the communication between equipment 102 and ZigBee module 20.From WiFi network 100, each is operated in the angle of server mode equipment, port #n sets up SOCKET with them and is connected to realize and the communicating by letter of ZigBee module 20, and to be connected the mechanism, the process that realize communication be duplicate with setting up SOCKET with them with other ports in WiFi module 10.
, set up SOCKET and connect queue, the information that each SOCKET is connected is stored in queue, and opens up buffering area for each SOCKET connection;
SOCKET connection queue is divided into client connection queue and is connected queue with server, connects the information of preserving comprise for each SOCKET in queue:
Set up TCP/IP address and the port numbers of the WiFi equipment that SOCKET is connected with the exchanges data hypervisor in WiFi module; SOCKET connects the time of setting up; Received the time of data last time from this SOCKET; Connect and amount to the data volume receiving from this SOCKET.
WiFi equipment 4 describes in detail below with reference to the accompanying drawings as client (CLIENT pattern) and the content that the exchanges data hypervisor (SERVER pattern) in WiFi module connects:
Exchanges data hypervisor 30 in WiFi module 10 allows equipment in multiple (more than 32) WiFi network 100 to set up SOCKET with client mode with port #n to be connected simultaneously, for these SOCKET are connected and carry out appropriate management and exchanges data, exchanges data hypervisor 30 in WiFi module 10 is set up a client SOCKET and is connected queue 31, and the information that each is connected to the SOCKET join dependency of port #n is saved in this queue.The information of preserving comprises: IP address and the port numbers of setting up the WiFi equipment of SOCKET connection as client; SOCKET connects the time of setting up; Received the time of data last time from this SOCKET; Connect and amount to the data volume receiving from this SOCKET.In addition, the exchanges data hypervisor 30 in WiFi module 10 also will be opened up a data buffer zone, the data that receive from each SOCKET for buffer memory for each SOCKET connection that client connects in queue 31.Its connected mode refers to accompanying drawing 4.
Exchanges data hypervisor in WiFi module initiatively 5 describes in detail with the particular content that WiFi equipment (SERVER) connects below with reference to the accompanying drawings as client (CLIENT pattern):
Exchanges data hypervisor 30 in WiFi module 10 can be simultaneously operated in equipment under server mode with multiple in WiFi network 100 (more than 32) and sets up SOCKET and be connected, for these SOCKET are connected and carry out appropriate management and exchanges data, exchanges data hypervisor 30 in WiFi module 10 is set up a server S OCKET and is connected queue 32, and the information of these SOCKET join dependencys is all saved in this queue.The information of preserving comprises: the IP address and the port numbers that receive the WiFi equipment of SOCKET connection as server end; SOCKET connects the time of setting up; Received the time of data last time from this SOCKET; Connect and amount to the data volume receiving from this SOCKET.In addition, the exchanges data hypervisor 30 in WiFi module 10 also will be opened up a data buffer zone, the data that receive from each SOCKET for buffer memory for each SOCKET connection that server connects in queue 32.Its connected mode refers to accompanying drawing 5.
, exchanges data hypervisor in WiFi module is while receiving by ZigBee module the data that come from ZigBee-network, traversal SOCKET connects queue and data is sent to each SOCKET connection in queue, so realizes the transmission of data from ZigBee-network arrival WiFi network;
The SOCKET of traversal connects queue and comprises that client connects queue and is connected queue with server end.Below with reference to the accompanying drawings 1, accompanying drawing 4, accompanying drawing 5 describes in detail:
When the exchanges data hypervisor 30 in WiFi module 10 is when ZigBee module 20 receives from data ZigBee-network 200, travel through at once client connection queue 31 and be connected each SOCKET connection in queue 32 with server, the data that receive are sent to each SOCKET in these two queues successively and connect., the data that receive from ZigBee-network 200 so just connect by these SOCKET the equipment that has sent in WiFi network 100.
, in WiFi module receives from WiFi network SOCKET connect Frame time, data temporarily need be stored in the buffering area of Data Source SOCKET, because WiFi network data is to send frame by frame, while often receiving a frame new data, WiFi module can check whether buffering area can form complete data packet, if imperfect, continue to wait for that new data arrives.If packet is complete, and the communication interface of ZigBee module and WiFi intermodule is in the time of idle condition, by data handover to ZigBee resume module and clear up this packet releasing resource in buffering area; If communication port is not or not the time of idle condition, packet is put in buffering area and is waited for, WiFi module is transmitting a packet and is clearing up after the releasing resource of buffering area, can travel through at once SOCKET connects queue buffer and searches and receive complete packet, and compare the time of advent that SOCKET connects packet in queue, according to " " principle, repeats said process, so realizes the transmission of data from WiFi network arrival ZigBee-network in first transmission first.
Exchanges data hypervisor in WiFi module needs timing scan client to connect queue and is connected queue with server; Look into and last from these connect, receive the time of data, if exceed set point, disconnect, and clear up buffering area releasing resource.
Below with reference to the accompanying drawings 1, accompanying drawing 4, accompanying drawing 5 describes in detail:
In the time that any one SOCKET from client connection queue 31 or server connection queue 32 of the exchanges data hypervisor 30 in WiFi module 10 receives data, data need to be saved in and connect in the data buffer zone of opening up for this SOCKET, and record the time that receives data, upgrade the data volume that accumulative total receives.Because the data that receive from SOCKET send over according to tcp/ip communication agreement, therefore a complete Frame, in the process sending, may, due to reasons such as TCP/IP network delays, be broken down into multiple data fragments, arrives successively.Therefore, whether complete the exchanges data hypervisor 30 in WiFi module 10, from SOCKET receives data, need to analyze received Frame.
If the Frame receiving is also imperfect, the exchanges data hypervisor 30 in WiFi module 10 is not temporarily processed the data that receive, but saves the data in data buffer zone, waits for that new data arrive.If the Frame receiving is complete, the exchanges data hypervisor 30 in WiFi module 10 prepares Frame to send to ZigBee module 20 by serial or parallel interface 21.
Exchanges data hypervisor 30 in WiFi module 10 may receive complete Frame from multiple SOCKET that are attached thereto simultaneously, if these Frames from different SOCKET send data to ZigBee module 20 simultaneously, must cause data collision, cause data to send unsuccessfully.Therefore, even if the exchanges data hypervisor 30 in WiFi module 10 receives complete Frame from certain SOCKET, can not send data to ZigBee module 20 at once, but first need to judge whether the data that previous frame sends to ZigBee module 20 are sent (being whether serial or parallel interface 21 is in idle condition).If previous frame data also do not send, the exchanges data hypervisor 30 in WiFi module 10 does not send current data frame to ZigBee module 20, but will wait for that previous frame data are sent.
Exchanges data hypervisor 30 in WiFi module 10 is being sent after frame data to ZigBee module 20, just by connecting for this SOCKET, the data buffer zone of opening up empties so that the new Frame of buffer memory at once, then each SOCKET that the exchanges data hypervisor 30 in WiFi module 10 need to be searched in client connection queue 31 or server connection queue 32 connects, the complete data frame whether being cushioned in addition, need to send to ZigBee module 20.If find multiple Frames, according to the principle of " first sending first ", relatively client connects queue 31 and is connected the time that receives data in the SOCKET link information of preserving in queue 32 with server, selects the Frame arriving the earliest first to send to ZigBee module 20.By that analogy, until all data that receive from SOCKET in two queues are sent to ZigBee module 20.The data that receive from WiFi network 100 so have just sent in ZigBee-network 200 by the exchanges data hypervisor 30 WiFi module 10.
Exchanges data hypervisor in WiFi module needs timing scan client to connect queue and is connected queue with server; Inspection is last receives the time of data from these connect, if exceed set point, disconnects, and clears up buffering area releasing resource.
Below with reference to the accompanying drawings 1,2,3,4,5 describe in detail:
Exchanges data hypervisor 30 in WiFi module 10 needs timing scan client to connect queue 31 and is connected each SOCKET connection in queue 32 with server, checks the time that receives data from the last time from these connect.If connecting from the last time, certain SOCKET for example receives the time of data, till the interval of current time is greater than the value (600 seconds) of setting, exchanges data hypervisor 30 in WiFi module 10 will initiatively disconnect this SOCKET and connect, and removing is kept at, and client connects queue 31 or server connects in queue 32 corresponding to this SOCKET link information.Like this, can ensure that the client connection queue 31 that the exchanges data hypervisor in WiFi module 10 is managed is connected ageing that in queue 32, all SOCKET connect with server, the SOCKET losing efficacy or do not use is connected and removed, new SOCKET link information can be deposited in the space discharging, so that when at any time the equipment in WiFi network 100 and port #n set up SOCKET and connect, can not connecting queue 31 or server because of client, to connect queue 32 full and cause connection failure.
In sum:
The present invention relates to WiFi router one.The integrated WiFi module 10 of a standard in this router one, and a ZigBee module 20, and ZigBee communication module logical 20 is crossed serial or parallel interfaces 21 and is connected with the baseband processor 11 of WiFi module 10 inside.
One by these two kinds of WiFi and the ZigBee hybrid networks that difference network of logical technology forms in, WiFi router one of the present invention possesses WiFi module 10 and the ZigBee module 20 of standard simultaneously, can either use the devices communicating in the WiFi communication technology and WiFi network 100, can use again the devices communicating in the ZigBee communication technology and ZigBee-network 200, that is to say, these two kinds of different networks are coupled together by WiFi router one.
In order to realize the interconnected of WiFi network 100 and ZigBee-network 200 these two kinds of different networks, do not affect these two kinds of networks working alone separately simultaneously, the baseband processor 11 of WiFi module 10 inside, except the WiFi router control program of operation standard, also move a data exchange of management program 30, be responsible for realizing the mutual transmission of data between ZigBee-network 100 and WiFi network 200 these two kinds of heterogeneous networks, and data are carried out to filtration and flow, flow direction control.
In the time that the exchanges data hypervisor 30 in WiFi module 10 receives data by WiFi module 10 from WiFi network 100, need to judge the flow direction of data and legitimacy thereof.If the destination address that data send is to point to ZigBee module 20, the legal data that the exchanges data hypervisor 30 in WiFi module receives these send to ZigBee module 20 by serial or parallel interface 21; ZigBee module 20 receives after data, then data are sent to the ZigBee equipment in ZigBee-network 200.So just realize the transmission to ZigBee-network 200 of data in WiFi network 100.
Otherwise if the equipment in WiFi network 100 need to receive from the data in ZigBee-network 200, the SOCKET that first will set up ICP/IP protocol with the exchanges data hypervisor 30 in WiFi module 10 is connected; In the time that exchanges data hypervisor 30 receives data by ZigBee module 20 from ZigBee-network 200, just the data that receive are sent to and allly in WiFi network 100 set up with the exchanges data hypervisor 30 in WiFi module the equipment that SOCKET is connected.So just realize the transmission to WiFi network 100 of data in ZigBee-network 200.
Generally speaking, the present invention is by ZigBee module being mapped as to a port, thereby guaranteed the separate interrelated again of two kinds of networks, stopped the various shortcomings in existing method.In fact, the equipment in WiFi network, sets up SOCKET with port #n and is connected, be actually to ZigBee-network and register, that is, connect this action by setting up SOCKET, show to exchanges data hypervisor, this WiFi equipment need to ZigBee-network swap data.Like this, only have " registration " cross equipment, could with ZigBee-network swap data; Other do not have the WiFi equipment of " registration ", can normally carry out WiFi communication, can not affect ZigBee-network.
The present invention has retained two kinds of heterogeneous networks feature separately and relative independence to the full extent, can not make the characteristic of any one network weakened or hiding because having increased this equipment of WiFi-ZigBee, this,, for the hybrid network in a practical application, is vital; Meanwhile, provide again a kind of interface of deal with data exchange, this interface be it seems from two kinds of networks respectively, is all the interface of standard, does not need to do any change and just can realize communication.

Claims (6)

1. possess the communication means between WiFi network and the ZigBee network of WiFi router of ZigBee communication function, described communication means is realized by aforementioned data exchange of management program, and described method is as follows:
1), ZigBee module is mapped as to a port on WiFi network, the communication of being undertaken by this port is considered as to WiFi network and communicates by letter with ZigBee is internetwork, and the communication of carrying out on other ports is processed by standard WiFi program;
2), WiFi network and ZigBee network service flow process are as follows:
1., WiFi equipment is set up SOCKET with the mapped port of ZigBee module on Wifi network and is connected;
2., set up SOCKET and connect queue, the information that each SOCKET is connected is stored in queue, and opens up buffering area for each SOCKET connection;
3., in the time that WiFi module receives by ZigBee module the data that come from ZigBee network, traversal SOCKET connects queue and data is sent to each SOCKET connection in queue, so realizes the transmission of data from ZigBee network arrival WiFi network;
4., in WiFi module receives from WiFi network SOCKET connect Frame time, data temporarily need be stored in the buffering area of Data Source SOCKET, because WiFi network data is to send frame by frame, while often receiving a frame new data, WiFi module can check whether buffering area can form complete data packet, if imperfect, continue to wait for that new data arrives; If packet is complete, and the communication interface of ZigBee module and WiFi intermodule is in the time of idle condition, by data handover to ZigBee resume module and clear up this packet releasing resource in buffering area; If communication port is not or not the time of idle condition, packet is put in buffering area and is waited for, WiFi module is transmitting a packet and is clearing up after the releasing resource of buffering area, can travel through at once SOCKET connects queue buffer and searches and receive complete packet, and compare the time of advent that SOCKET connects packet in queue, according to " " principle, repeats said process, so realizes the transmission of data from WiFi network arrival ZigBee network in first transmission first.
2. the communication means between WiFi network and the ZigBee network as described in claim 1, is characterized in that described step 1., and WiFi equipment connects as client and WiFi module.
3. the communication means between WiFi network and the ZigBee network as described in claim 1, is characterized in that described step 1., and WiFi module initiatively connects with WiFi equipment as client.
4. the communication means between WiFi network as claimed in claim 1 and ZigBee network, in it is characterized in that described step 2., SOCKET connection queue is divided into client connection queue and is connected queue with server, connects the information of preserving comprise for each SOCKET in queue:
Set up TCP/IP address and the port numbers of the WiFi equipment that SOCKET is connected with WiFi module; SOCKET connects the time of setting up; Received the time of data last time from this SOCKET; Connect and amount to the data volume receiving from this SOCKET.
5. the communication means between WiFi network and the ZigBee network as described in claim 1, is characterized in that described step 3., and the SOCKET of traversal connects queue and comprises that client connects queue and is connected queue with server end.
6. the communication means between WiFi network and the ZigBee network as described in claim 1, is characterized in that WiFi module needs timing scan client to connect queue and is connected queue with server; Inspection is last receives the time of data from these connect, if exceed set point, disconnects, and clears up buffering area releasing resource.
CN201210112617.3A 2012-04-18 2012-04-18 Communication method for communicating WiFi network with ZigBee network Active CN102647370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210112617.3A CN102647370B (en) 2012-04-18 2012-04-18 Communication method for communicating WiFi network with ZigBee network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210112617.3A CN102647370B (en) 2012-04-18 2012-04-18 Communication method for communicating WiFi network with ZigBee network

Publications (2)

Publication Number Publication Date
CN102647370A CN102647370A (en) 2012-08-22
CN102647370B true CN102647370B (en) 2014-12-10

Family

ID=46659952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210112617.3A Active CN102647370B (en) 2012-04-18 2012-04-18 Communication method for communicating WiFi network with ZigBee network

Country Status (1)

Country Link
CN (1) CN102647370B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841036A (en) * 2013-12-18 2014-06-04 深圳市共进电子股份有限公司 Wireless router integrating Zigbee
CN104079461A (en) * 2014-07-16 2014-10-01 上海诺诚电气有限公司 470M router with ZigBee communication function and communication method
CN104569311A (en) * 2014-12-31 2015-04-29 北京工业大学 Novel hierarchical heterogeneous cross-network air quality real-time monitoring model
CN104851274A (en) * 2015-05-22 2015-08-19 侯明鑫 Internet of Things designing scheme of WIFI (Wireless Fidelity), ZigBee and server
CN104812095B (en) * 2015-05-26 2018-11-09 上海摩软通讯技术有限公司 Wireless LAN and its communication means
CN105871843A (en) * 2016-03-31 2016-08-17 广州指点网络科技有限公司 Routing device for intelligently controlling user connection number, and application method
CN106803813B (en) * 2017-03-02 2020-05-26 重庆邮电大学 Method for identifying control command field of intelligent household equipment
CN107248992A (en) * 2017-06-14 2017-10-13 合肥赛度电子科技有限公司 The structure that wireless Wifi and Zigbee coordinates
CN107592253A (en) * 2017-09-25 2018-01-16 江苏英索纳智能科技有限公司 A kind of ZigBee IP hybrid networks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340404A (en) * 2008-08-14 2009-01-07 山东大学 Embedded gateway for wireless network protocol conversion between WiFi and ZigBee
CN101511133A (en) * 2009-03-19 2009-08-19 天津市电力公司 Wireless network equipment based on WiFi and Zigbee
CN101557658A (en) * 2009-03-02 2009-10-14 金纯� ZigBee/TD-SCDMA gateway
CN202799185U (en) * 2012-04-18 2013-03-13 浙江瑞瀛网络科技有限公司 WiFi router possessing ZigBee communication function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080107124A1 (en) * 2006-11-06 2008-05-08 Jordi Ros-Giralt System and method for supporting mobility and multipath packet delivery in ip communications and computer networks across nat and firewall boxes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340404A (en) * 2008-08-14 2009-01-07 山东大学 Embedded gateway for wireless network protocol conversion between WiFi and ZigBee
CN101557658A (en) * 2009-03-02 2009-10-14 金纯� ZigBee/TD-SCDMA gateway
CN101511133A (en) * 2009-03-19 2009-08-19 天津市电力公司 Wireless network equipment based on WiFi and Zigbee
CN202799185U (en) * 2012-04-18 2013-03-13 浙江瑞瀛网络科技有限公司 WiFi router possessing ZigBee communication function

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于ZigBee与WiFi相结合的智能包房***设计;谭建斌等;《现代计算机(专业版)》;20101222(第12期);全文 *
基于ZigBee与WiFi相结合的温室环境监测***设计;姜新华等;《内蒙古大学学报(自然科学版)》;20111130(第06期);全文 *
姜新华等.基于ZigBee与WiFi相结合的温室环境监测***设计.《内蒙古大学学报(自然科学版)》.2011,(第06期),全文. *
谭建斌等.基于ZigBee与WiFi相结合的智能包房***设计.《现代计算机(专业版)》.2010,(第12期),全文. *

Also Published As

Publication number Publication date
CN102647370A (en) 2012-08-22

Similar Documents

Publication Publication Date Title
CN102647370B (en) Communication method for communicating WiFi network with ZigBee network
AU2016382945B2 (en) Multi-path transport design
US9680770B2 (en) System and method for using a multi-protocol fabric module across a distributed server interconnect fabric
US8599863B2 (en) System and method for using a multi-protocol fabric module across a distributed server interconnect fabric
US8908704B2 (en) Switch with dual-function management port
US7245627B2 (en) Sharing a network interface card among multiple hosts
JP6188093B2 (en) Communication traffic processing architecture and method
CN102160328B (en) Central controller for coordinating multicast message transmissions in distributed virtual network switch environment
CN103152260B (en) Message forwarding system, method and device
US20140129741A1 (en) Pci-express device serving multiple hosts
EP3298738A1 (en) In-line network accelerator
US11394664B2 (en) Network interface device
CN103731409B (en) The distributed measurement device of embedded type automobile acquisition equipment for accelerating with TCP
CN103081418A (en) Computer system and communication method in computer system
EP3298739B1 (en) Lightweight transport protocol
RU2011140978A (en) METHOD AND DEVICE OF I / O ROUTING AND MAP
CN103401773A (en) Method and network equipment realizing interboard communication
CN106302199A (en) A kind of User space protocol stack realization method and system based on L3 Switching machine equipment
CN106534178A (en) System and method for realizing RapidIO network universal socket
CN102123080B (en) Data forwarding device and cable fastener plate and data forwarding method
CN104363185B (en) A kind of miniature composite network data exchange system
CN102845042A (en) System and method for aggregating bandwidth of multiple active physical interfaces on application layer
CN101621528A (en) Conversation system based on Ethernet switch cluster management and method for realizing conversation passage
CN108600001A (en) A kind of network management, interchanger and Network Management System
Ren et al. Middleware support for rdma-based data transfer in cloud computing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Hangzhou City, Zhejiang province 310012 cypress Road No. 7 Hangzhou e-commerce Industrial Park No. 105

Patentee after: ZHEJIANG REXENSE IOT TECHNOLOGY CO., LTD.

Address before: Hangzhou City, Zhejiang province 310012 cypress Road No. 7 Hangzhou e-commerce Industrial Park No. 105

Patentee before: Zhejiang Rexense Technology Co.,Ltd.