CN110336825A - A kind of multiprotocol network fusion method and device based on IPv6 gateway - Google Patents

A kind of multiprotocol network fusion method and device based on IPv6 gateway Download PDF

Info

Publication number
CN110336825A
CN110336825A CN201910620686.7A CN201910620686A CN110336825A CN 110336825 A CN110336825 A CN 110336825A CN 201910620686 A CN201910620686 A CN 201910620686A CN 110336825 A CN110336825 A CN 110336825A
Authority
CN
China
Prior art keywords
data packet
sensor network
network
ipv6
slip 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.)
Pending
Application number
CN201910620686.7A
Other languages
Chinese (zh)
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.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201910620686.7A priority Critical patent/CN110336825A/en
Publication of CN110336825A publication Critical patent/CN110336825A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of multiprotocol network fusion methods based on IPv6 gateway, are applied to IPv6 gateway, and IPv6 gateway is connect with multiple sensor networks with different communication protocol respectively, and each sensor network passes through IPv6 gateway and connect with internet;This method comprises: receiving the first slip data packet;Determine the first sensor network for sending the first slip data packet;According to the corresponding address translation rule of first sensor network, the first slip data packet is converted into the first IPv6 data packet;First IPv6 data packet is sent by internet.Using technical solution provided by the embodiment of the present invention, the fusion of multi-protocols wireless sensor network is realized, can satisfy a variety of demands of the wireless sensor network under varying environment different application, improves communicative flexibility and universality.The invention also discloses a kind of multiprotocol network fusing devices based on IPv6 gateway, have relevant art effect.

Description

A kind of multiprotocol network fusion method and device based on IPv6 gateway
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of multiprotocol network fusion method based on IPv6 gateway And device.
Background technique
With the fast development of the communication technology, Internet of Things gradually rises.Utilize wireless sensor network (Wirless Sensor Networks, WSNs) with the unified addressing of internet realization, the massive information and build that collection big data era needs Wider universality is found, the New Ideas of Developing that design difference complexity is Internet of Things is reduced.
Currently, the internet monitoring scheme for thering is researcher to propose basis WiFi, but application layer association is done using gateway The method of view, is not carried out and interconnects end to end.In addition researcher proposes the low-power consumption bluetooth joint system based on IPv6 Structure can be realized the connection of internet Yu Bluetooth Sensor Network node end-to-end.But communication protocol is single, individually Wireless Bluetooth network communication range is too narrow, and applicability, practicability be not strong.
In conclusion how to meet a variety of demands of the wireless sensor network under varying environment different application, improve logical The problems such as believing flexibility and universality, is current those skilled in the art's urgent problem.
Summary of the invention
The object of the present invention is to provide a kind of multiprotocol network fusion methods and device based on IPv6 gateway, to meet nothing A variety of demands of the line sensor network under varying environment different application improve communicative flexibility and universality.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of multiprotocol network fusion method based on IPv6 gateway is applied to IPv6 gateway, the IPv6 gateway difference It is connect with multiple sensor networks with different communication protocol, each sensor network passes through the IPv6 gateway and interconnection Net connection;The described method includes:
Receive the first slip data packet;
Determine the first sensor network for sending the first slip data packet;
According to the corresponding address translation rule of the first sensor network, the first slip data packet is converted to One IPv6 data packet;
The first IPv6 data packet is sent by the internet.
In a kind of specific embodiment of the invention, determining first sensing for sending the first slip data packet Device network, comprising:
According to the wireless module MAC Address length in the first slip data packet, determines and send the first slip number According to the first sensor network of packet.
In a kind of specific embodiment of the invention, the wireless module according in the first slip data packet MAC Address length determines the first sensor network for sending the first slip data packet, comprising:
If the wireless module MAC Address length in the first slip data packet is 8, it is determined that send described first The first sensor network of slip data packet is ZigBee-network;
If the wireless module MAC Address length in the first slip data packet is 6, it is determined that send described first The first sensor network of slip data packet is blueteeth network or WiFi network.
In a kind of specific embodiment of the invention, the first sensor network is ZigBee-network, the basis The corresponding address translation rule of the first sensor network, is converted to the first IPv6 data for the first slip data packet Packet, comprising:
According to following first address translation rule, the wireless module MAC Address in the first slip data packet is converted For wireless module network address:
ZigBee gateway network address+ZigBee wireless module MAC Address first character section and 0x02 take exclusive or+ZigBee Wireless module MAC Address 2-8 byte;
Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
In a kind of specific embodiment of the invention, the first sensor network is blueteeth network or WiFi net Network, it is described according to the corresponding address translation rule of the first sensor network, the first slip data packet is converted to One IPv6 data packet, comprising:
According to following second address translation rule, the wireless module MAC Address in the first slip data packet is converted For wireless module network address:
Bluetooth/WiFi gateway network address+0x02+0xfe+ bluetooth/WiFi wireless module MAC Address 1-6 byte;
Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
In a kind of specific embodiment of the invention, further includes:
The 2nd IPv6 data packet is received by the internet;
Determine the second sensor network of the 2nd IPv6 data packet to be received;
The 2nd IPv6 data packet is converted into the corresponding 2nd slip data packet of the second sensor network;
The 2nd slip data packet is transmitted to the second sensor network.
In a kind of specific embodiment of the invention, the second sensor network is blueteeth network, it is described will be described 2nd slip data packet is transmitted to the second sensor network, comprising:
TCP connection is established with the gateway of the second sensor network;
The 2nd slip data packet is transmitted to the gateway of the second sensor network by setting port.
In a kind of specific embodiment of the invention, the second sensor network is ZigBee-network, described by institute It states the 2nd slip data packet and is transmitted to the second sensor network, comprising:
The 2nd slip data packet is transmitted to the border router of the second sensor network by serial port drive.
A kind of multiprotocol network fusing device based on IPv6 gateway is applied to IPv6 gateway, the IPv6 gateway difference It is connect with multiple sensor networks with different communication protocol, each sensor network passes through the IPv6 gateway and interconnection Net connection;Described device includes:
Data packet receiving unit, for receiving the first slip data packet;
Sensor Network determination unit, for determining the first sensor network for sending the first slip data packet;
Data packet converting unit, for according to the corresponding address translation rule of the first sensor network, by described the One slip data packet is converted to the first IPv6 data packet;
Data packet sending unit, for sending the first IPv6 data packet by the internet.
In a kind of specific embodiment of the invention, the Sensor Network determination unit is specifically used for:
According to the wireless module MAC Address length in the first slip data packet, determines and send the first slip number According to the first sensor network of packet.
Using technical solution provided by the embodiment of the present invention, IPv6 gateway is respectively with multiple with different communication protocol Sensor network connection, each sensor network pass through IPv6 gateway and connect with internet, and IPv6 gateway receives first When slip data packet, the first sensor network for sending the first slip data packet is determined, it is corresponding according to first sensor network Address translation rule, is converted to the first IPv6 data packet for the first slip data packet, and the first IPv6 data packet is passed through internet It sends.The fusion for realizing multi-protocols wireless sensor network, can satisfy wireless sensor network varying environment not With a variety of demands under application, communicative flexibility and universality are improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is multi-internet integration system frame structure schematic diagram in the embodiment of the present invention;
Fig. 2 is a kind of implementation flow chart of the multiprotocol network fusion method based on IPv6 gateway in the embodiment of the present invention;
Fig. 3 is the sensor-based system structural schematic diagram of 6LoWPAN protocol stack in the embodiment of the present invention;
Fig. 4 is sensor node networking schematic diagram in the embodiment of the present invention;
Fig. 5 is 802.15.4 border router and IPv6 gateway communication process schematic in the embodiment of the present invention;
Fig. 6 is blueteeth network and IPv6 gateway communication process schematic in the embodiment of the present invention;
Fig. 7 is network integration test result schematic diagram in the embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of the multiprotocol network fusing device based on IPv6 gateway in the embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of multiprotocol network fusion method based on IPv6 gateway, and this method can be applied In IPv6 gateway, IPv6 gateway is connect with multiple sensor networks with different communication protocol respectively, each sensor network It is connect by IPv6 gateway with internet.
Specifically, sensor network can be ZigBee-network, bluetooth (Bluetooth) network or WiFi network.Tool Have the sensor network of different communication protocol that there are different advantage and disadvantage, for example, WiFi sensing node signal in WiFi network compared with By force, control is sensitive, can support the audio video transmission stream of instant messaging, but power consumption is larger;ZigBee in ZigBee-network Cost is relatively low for sensing node, and power consumption is smaller, but transmission rate and distance ratio WiFi sensing node are low;Indigo plant in blueteeth network The mobile application of tooth sensing node is in extensive range, but transmission range is shorter, and bandwidth is smaller.In practical applications, for flammable ST ZigBee sensing node can be used in the detection of gas, flame, human body infrared etc., for temperature and humidity, air quality, photosensitive etc. Detection can be used TI ZigBee sensing node, for Hall, relay, stepper motor detection can be used WiFi perception section Point accelerates vibration, three axis, the usable bluetooth sensing node of the detection of ultrasonic wave, as shown in Figure 1.Wherein, WiFi network is Wireless networking mode based on access point and website, blueteeth network are based on based on main Master and from the wireless networking of Slave Mode, ZigBee-network are based on boundary node and ordinary node ad hoc network mode.
In embodiments of the present invention, as shown in Figure 1, being integrated with 802.15.4 routing, WiFi AP, indigo plant in IPv6 gateway The big mould group of tooth Master tri-, this three big mould group are equivalent to the border sensor of connection wireless sensor network and IPv6 gateway, mention For routing function, IPv6 gateway is connect with multiple sensor networks with different communication protocol respectively, is propped up simultaneously The data access for holding the sensing node of the wireless sensor network of four seed types, under the (SuSE) Linux OS by IPv6 gateway IPv6 protocol conversion process, external application service interface can be provided.Upper layer application can be based on CoAP (Constrained Application Protocol, restricted application protocol) library carries out Windows, Android and Web Under Internet of Things application and development.I.e. IPv6 gateway is integrated with three kinds of networks, including 802.15.4 network (i.e. ZigBee-network), indigo plant Tooth network and WiFi network, three kinds of sensor network nodes with different communication protocol by CoAP agreement in different ways with IPv6 gateway is communicated, and then each sensor network can be connect by IPv6 gateway with internet.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
It is shown in Figure 2, it is a kind of multiprotocol network fusion side based on IPv6 gateway provided by the embodiment of the present invention The implementation flow chart of method, this method may comprise steps of:
S210: the first slip data packet is received.
In embodiments of the present invention, IPv6 gateway is connect with multiple sensor networks with different communication protocol respectively, Each sensor network passes through IPv6 gateway and connect with internet.
As shown in figure 3, the multiprotocol network emerging system based on IPv6 gateway provided by the embodiment of the present invention can be used 6LoWPAN protocol stack.Internet host include application layer, TCP/UDP layers, IPv6 layers, link layer and physical layer, gateway include IPv6 layers, link layer and physical layer, link layer provide serial communication protocol, and physical layer provides serial ports, and aggregation node includes IPv6 Layer, link layer serial communication protocol specify 6LoWPAN, physical layer serial ports can be the serial ports such as ZigBee, bluetooth, WiFi, Sensing node include application layer, TCP/UDP layers, IPv6 layers, link layer specify 6LoWPAN, physical layer ZigBee, bluetooth, The serial ports such as WiFi.Under this configuration, the application program in internet host requires no knowledge about the presence of gateway and aggregation node, It is only necessary to know that the IP address of sensing node can be communicated end to end with it.
IPv6 gateway is based on 6LoWPAN protocol stack, naturally unifies on protocol format, in practical applications, different company If sensor supports the embedded OS of 6LoWPAN protocol stack or transplantation support 6LoWPAN protocol stack, such as Contiki, can group enter IPv6 gateway network.
Sensing node in each sensor network carries out the acquisition of corresponding data in normal work, and will be collected Information is sent to IPv6 gateway by slip data packet, to be sent to internet host by IPv6 gateway.IPv6 gateway can be with Receive the slip data packet that any one sensor network of its connection is sent.
After IPv6 gateway receives the first slip data packet, the operation of step S220 can be continued to execute.First slip number It can be any one data packet that any one sensor network sends over according to packet.
S220: the first sensor network for sending the first slip data packet is determined.
After IPv6 gateway receives the first slip data packet, the first slip data packet can be parsed, according to parsing As a result, determining the first sensor network for sending the first slip data packet.
In a kind of specific embodiment of the invention, step S220 be may comprise steps of:
According to the wireless module MAC Address length in the first slip data packet, determines and send the of the first slip data packet One sensor network.
In embodiments of the present invention, after IPv6 gateway parses the first slip data packet, the first slip can be obtained The information such as the wireless module MAC Address length in data packet can determine transmission according to the wireless module MAC Address length The first sensor network of one slip data packet.
Specifically, if the wireless module MAC Address length in the first slip data packet is 8, it is determined that send first The first sensor network of slip data packet is ZigBee-network;
If the wireless module MAC Address length in the first slip data packet is 6, it is determined that send the first slip data packet First sensor network be blueteeth network or WiFi network.
As shown in figure 4, the wireless module that the information interchange between sensor node and gateway and node passes through gateway (ZigBee border router, bluetooth Master, WiFi access point) carrys out transfer realization.Node 1 and node 2 based on Contiki The chip of system passes through serial ports respectively and connect with sensor module and wireless module, and wireless module can be bluetooth Slave, WiFi The linux kernel of website module, ZigBee node module, gateway is connect by serial ports, USB etc. with wireless module, wireless module It can be bluetooth Master, WiFi access point, ZigBee boundary node.
S230: according to the corresponding address translation rule of first sensor network, the first slip data packet is converted to first IPv6 data packet.
In embodiments of the present invention, each sensor network has corresponding address translation rule, different sensors network Corresponding address translation rule is identical or different.
ZigBee-network, blueteeth network, the node in WiFi network will realize that IPv6 is transplanted, and be held with internet host To the connection at end, it is necessary to possess the address IPv6.But the communication protocol of these three networks all cannot achieve obtaining automatically for the address IPv6 It takes, so the embodiment of the present invention can preset the corresponding address translation rule of each sensor network, to carry out the address IPv6 Statelessly automatically configure.
It, can be according to first sensor net after IPv6 gateway determines the first sensor network for sending the first slip data packet First slip data packet is converted to the first IPv6 data packet by the corresponding address translation rule of network.
In a kind of specific embodiment of the invention, first sensor network is ZigBee-network, and step S230 can be with The following steps are included:
Step 1: according to following first address translation rule, the wireless module MAC Address in the first slip data packet is turned It is changed to wireless module network address:
ZigBee gateway network address+ZigBee wireless module MAC Address first character section and 0x02 take exclusive or+ZigBee Wireless module MAC Address 2-8 byte;
Step 2: based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
That is corresponding first address translation rule of ZigBee-network can be by the first slip according to the first address translation rule Wireless module MAC Address in data packet is converted to wireless module network address.Specific first address translation rule may is that ZigBee gateway network address+ZigBee wireless module MAC Address first character section and 0x02 take exclusive or+ZigBee wireless module MAC Address 2-8 byte.Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet can be generated.
In another specific embodiment of the invention, first sensor network be blueteeth network or WiFi network, Step S230 may comprise steps of:
First step: according to following second address translation rule, by the wireless module MAC in the first slip data packet Location is converted to wireless module network address:
Bluetooth/WiFi gateway network address+0x02+0xfe+ bluetooth/WiFi wireless module MAC Address 1-6 byte;
Second step: based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
That is blueteeth network and WiFi network the second address translation rule of correspondence can be incited somebody to action according to the second address translation rule Wireless module MAC Address in first slip data packet is converted to wireless module network address.Specific second address conversion rule It then may is that bluetooth/WiFi gateway network address+0x02+0xfe+ bluetooth/WiFi wireless module MAC Address 1-6 byte.Base The corresponding first IPv6 data packet of the first slip data packet can be generated in address after conversion.
S240: the first IPv6 data packet is sent by internet.
After first slip data packet is converted to the first IPv6 data packet by IPv6 gateway, the first IPv6 data packet can be led to It crosses internet to send, is sent to internet host.
Using method provided by the embodiment of the present invention, IPv6 gateway respectively with multiple sensings with different communication protocol Device network connection, each sensor network pass through IPv6 gateway and connect with internet, and IPv6 gateway receives the first slip number When according to packet, the first sensor network for sending the first slip data packet is determined, turned according to the corresponding address of first sensor network Rule is changed, the first slip data packet is converted into the first IPv6 data packet, the first IPv6 data packet is sent out by internet It goes.The fusion for realizing multi-protocols wireless sensor network can satisfy wireless sensor network in varying environment different application Under a variety of demands, improve communicative flexibility and universality.
In one embodiment of the invention, this method may also comprise the following steps::
Step 1: the 2nd IPv6 data packet is received by internet;
Step 2: the second sensor network of the 2nd IPv6 data packet to be received is determined;
Step 3: the 2nd IPv6 data packet is converted into the corresponding 2nd slip data packet of second sensor network;
Step 4: the 2nd slip data packet is transmitted to second sensor network.
It is illustrated for ease of description, aforementioned four step is combined.
In embodiments of the present invention, internet host can also such as be sent by IPv6 gateway and each sensor network communication Control instruction, setting acquisition interval etc..
After IPv6 gateway receives the 2nd IPv6 data packet by internet, the 2nd IPv6 data packet can be solved Analysis, determines the second sensor network of the 2nd IPv6 data packet to be received.
Then, the 2nd IPv6 data packet is converted into the corresponding 2nd slip data packet of second sensor network.Specifically, Can be according to the corresponding inverse rule of the first address translation rule and the second address translation rule, it will be in the 2nd IPv6 data packet Wireless module network address translation is wireless module MAC Address, and based on the address after conversion, it is corresponding to generate the 2nd IPv6 data packet The 2nd slip data packet.
2nd slip data packet is transmitted to second sensor network.
In a kind of specific embodiment of the invention, second sensor network is blueteeth network, by the 2nd slip data Packet is transmitted to second sensor network, comprising:
TCP connection is established with the gateway of second sensor network;
2nd slip data packet is transmitted to the gateway of second sensor network by setting port.
If it is determined that second sensor network is blueteeth network, then the 2nd IPv6 data packet is being converted to the by IPv6 gateway After the corresponding 2nd slip data packet of two sensor networks, TCP connection can be established with the gateway of second sensor network, passed through 2nd slip data packet is transmitted to the gateway of second sensor network by setting port, and then is sent to accordingly by the gateway The node of second sensor network.
In another specific embodiment of the invention, second sensor network is ZigBee-network, by the 2nd slip Data packet is transmitted to second sensor network, comprising:
2nd slip data packet is transmitted to the border router of second sensor network by serial port drive.
If it is determined that second sensor network is ZigBee-network, then IPv6 gateway is converted to by the 2nd IPv6 data packet After the corresponding 2nd slip data packet of second sensor network, the 2nd slip data packet can be transmitted to by serial port drive The border router of two sensor networks, and then the 2nd slip data packet is transmitted to corresponding second by the border router The node of sensor network.
If it is determined that second sensor network is WiFi network, then the 2nd IPv6 data packet is being converted to the by IPv6 gateway After the corresponding 2nd slip data packet of two sensor networks, the 2nd slip data packet can be transmitted to second by serial port drive The access point of sensor network, and then the 2nd slip data packet is transmitted to by corresponding second sensor network by the access point Node.
As shown in figure 5,802.15.4 border router, i.e. ZigBee border router pass through serial port drive for slip data Packet is sent to the slip6 service of the control centre of IPv6 gateway, and the slip6 service of control centre is converted into IPv6 data packet After be transmitted to control centre, IPv6 data packet is reported to the IPv6 layer of linux kernel, passes through TCP/UDP agreement by control centre After be sent to user APP and handle.
Conversely, IPv6 data packet request is sent to the control centre of IPv6 gateway, the slip6 of control centre by user APP The IPv6 data packet format transformation that control centre sends is sent to ZigBee by serial port drive at after slip data packet by service Slip data packet is then transmitted to online others ZigBee sensing node by border router by border router.
Bluetooth, the Principle of Communication of WiFi network and IPv6 gateway and ZigBee-network are not much different.As shown in fig. 6, for indigo plant Tooth network and IPv6 gateway communication process schematic.IPv6 data packet request is sent in the control of IPv6 gateway by user APP The heart, the slip6 of control centre, which is serviced, is converted into slip data packet for the IPv6 data packet that control centre sends, control centre After slip service establishes TCP connection with Bluetooth gateway service, it is transmitted to Bluetooth gateway by 60001 ports, followed by this Port numbers drive the bluetooth that slip data packet is transmitted to gateway bottom, are then transmitted to slip data packet by bluetooth module Other bluetooth sensing nodes on network.
The embodiment of the present invention may be implemented different wirelessly to set by the multiprotocol network emerging system based on IPv6 gateway It is standby, the uniform format of Protocol communication layer is all reached using IPv6 agreement, is reached and the unified addressing in internet.It realizes The IPv6 transplanting of ZigBee, bluetooth, WiFi wireless device can be with relative to the wireless sensor network for not using IPv6 agreement It avoids gateway from carrying out complicated application layer protocol conversion, reduces gateway designs complexity and energy consumption.
Based on technical solution provided by the embodiment of the present invention, the wireless sensor network system of multi-protocols fusion can be carried out Unified test examination.
Test environment and platform building are carried out first.The test macro can by an IPv6 gateway, three ZigBee without The composition such as line sensor, three WiFi wireless sensors, three Bluetooth wireless transducers, IPv6 emulator, PC machine, serial ports.
Then end-to-end communication test is carried out.After connecting test macro, one of ZigBee wireless sensing is checked The LCD display of device, the MAC Address for obtaining the ZigBee wireless sensor is, and: 00:80:E1:02:00:1D:57:FD is based on First address translation rule obtains the network address of the ZigBee wireless sensor are as follows: aaa::0280:e102:001D:57FD. The network address of a known WiFi wireless sensor are as follows: aaaa:2::02fe:accf:2327:49f6.In PC machine to this two A IPv6 network address executes Ping order query result, and successful ping then shows the end PC to the end-to-end logical of sensor network Believe successfully.
Multi-internet integration test is carried out again.Liquid crystal display is installed on IPv6 gateway, loads Linux+Android system. Android system server, which can establish straight TOP according to the routing packet information that wireless sensor node is sent, schemes.Test After system successful connection, the hybrid network of formation as shown in fig. 7, as the result is shown IPv6 gateway successfully by ZigBee, bluetooth, Tri- kinds of wireless sensor networks of WiFi are connected as one.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of multi-protocols nets based on IPv6 gateway Network fusing device is applied to IPv6 gateway, and IPv6 gateway is connect with multiple sensor networks with different communication protocol respectively, Each sensor network passes through IPv6 gateway and connect with internet;A kind of multi-protocols net based on IPv6 gateway described below Network fusing device can correspond to each other reference with a kind of above-described multiprotocol network fusion method based on IPv6 gateway.
Shown in Figure 8, which includes:
Data packet receiving unit 810, for receiving the first slip data packet;
Sensor Network determination unit 820, for determining the first sensor network for sending the first slip data packet;
Data packet converting unit 830 is used for according to the corresponding address translation rule of first sensor network, by the first slip Data packet is converted to the first IPv6 data packet;
Data packet sending unit 840, for sending the first IPv6 data packet by internet.
Using device provided by the embodiment of the present invention, IPv6 gateway respectively with multiple sensings with different communication protocol Device network connection, each sensor network pass through IPv6 gateway and connect with internet, and IPv6 gateway receives the first slip number When according to packet, the first sensor network for sending the first slip data packet is determined, turned according to the corresponding address of first sensor network Rule is changed, the first slip data packet is converted into the first IPv6 data packet, the first IPv6 data packet is sent out by internet It goes.The fusion for realizing multi-protocols wireless sensor network can satisfy wireless sensor network in varying environment different application Under a variety of demands, improve communicative flexibility and universality.
In a kind of specific embodiment of the invention, Sensor Network determination unit 820 is specifically used for:
According to the wireless module MAC Address length in the first slip data packet, determines and send the of the first slip data packet One sensor network.
In a kind of specific embodiment of the invention, Sensor Network determination unit 820 is specifically used for:
If the wireless module MAC Address length in the first slip data packet is 8, it is determined that send the first slip data packet First sensor network be ZigBee-network;
If the wireless module MAC Address length in the first slip data packet is 6, it is determined that send the first slip data packet First sensor network be blueteeth network or WiFi network.
In a kind of specific embodiment of the invention, first sensor network is ZigBee-network, and data packet conversion is single Member 830, is specifically used for:
According to following first address translation rule, the wireless module MAC Address in the first slip data packet is converted into nothing Wire module network address:
ZigBee gateway network address+ZigBee wireless module MAC Address first character section and 0x02 take exclusive or+ZigBee Wireless module MAC Address 2-8 byte;
Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
In a kind of specific embodiment of the invention, first sensor network is blueteeth network or WiFi network, number According to packet converting unit 830, it is specifically used for:
According to following second address translation rule, the wireless module MAC Address in the first slip data packet is converted into nothing Wire module network address:
Bluetooth/WiFi gateway network address+0x02+0xfe+ bluetooth/WiFi wireless module MAC Address 1-6 byte;
Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
In a kind of specific embodiment of the invention,
Data packet receiving unit 810 is also used to receive the 2nd IPv6 data packet by internet;
Sensor Network determination unit 820 is also used to determine the second sensor network of the 2nd IPv6 data packet to be received;
Data packet converting unit 830 is also used to be converted to the 2nd IPv6 data packet second sensor network corresponding Two slip data packets;
Data packet sending unit 840 is also used to the 2nd slip data packet being transmitted to second sensor network.
In a kind of specific embodiment of the invention, second sensor network is blueteeth network, data packet sending unit 840, it is specifically used for:
TCP connection is established with the gateway of second sensor network;
2nd slip data packet is transmitted to the gateway of second sensor network by setting port.
In a kind of specific embodiment of the invention, second sensor network is ZigBee-network, and data packet sends single Member 840, is specifically used for:
2nd slip data packet is transmitted to the border router of second sensor network by serial port drive.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art , without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these Improvement and modification are also fallen within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of multiprotocol network fusion method based on IPv6 gateway, which is characterized in that be applied to IPv6 gateway, the IPv6 Gateway is connect with multiple sensor networks with different communication protocol respectively, and each sensor network passes through the IPv6 net Pass is connect with internet;The described method includes:
Receive the first slip data packet;
Determine the first sensor network for sending the first slip data packet;
According to the corresponding address translation rule of the first sensor network, the first slip data packet is converted to first IPv6 data packet;
The first IPv6 data packet is sent by the internet.
2. the method according to claim 1, wherein the first of determining transmission the first slip data packet Sensor network, comprising:
According to the wireless module MAC Address length in the first slip data packet, determines and send the first slip data packet First sensor network.
3. according to the method described in claim 2, it is characterized in that, the wireless mould according in the first slip data packet Block MAC Address length determines the first sensor network for sending the first slip data packet, comprising:
If the wireless module MAC Address length in the first slip data packet is 8, it is determined that send the first slip number First sensor network according to packet is ZigBee-network;
If the wireless module MAC Address length in the first slip data packet is 6, it is determined that send the first slip number First sensor network according to packet is blueteeth network or WiFi network.
4. the method according to claim 1, wherein the first sensor network be ZigBee-network, it is described According to the corresponding address translation rule of the first sensor network, the first slip data packet is converted into the first IPv6 number According to packet, comprising:
According to following first address translation rule, the wireless module MAC Address in the first slip data packet is converted into nothing Wire module network address:
ZigBee gateway network address+ZigBee wireless module MAC Address first character section takes exclusive or+ZigBee wireless with 0x02 Module MAC Address 2-8 byte;
Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
5. the method according to claim 1, wherein the first sensor network is blueteeth network or WiFi Network, it is described according to the corresponding address translation rule of the first sensor network, the first slip data packet is converted to First IPv6 data packet, comprising:
According to following second address translation rule, the wireless module MAC Address in the first slip data packet is converted into nothing Wire module network address:
Bluetooth/WiFi gateway network address+0x02+0xfe+ bluetooth/WiFi wireless module MAC Address 1-6 byte;
Based on the address after conversion, the corresponding first IPv6 data packet of the first slip data packet is generated.
6. according to claim 1 to described in any item methods among 5, which is characterized in that further include:
The 2nd IPv6 data packet is received by the internet;
Determine the second sensor network of the 2nd IPv6 data packet to be received;
The 2nd IPv6 data packet is converted into the corresponding 2nd slip data packet of the second sensor network;
The 2nd slip data packet is transmitted to the second sensor network.
7. according to the method described in claim 6, it is characterized in that, the second sensor network be blueteeth network, it is described will The 2nd slip data packet is transmitted to the second sensor network, comprising:
TCP connection is established with the gateway of the second sensor network;
The 2nd slip data packet is transmitted to the gateway of the second sensor network by setting port.
8. according to the method described in claim 6, it is characterized in that, the second sensor network be ZigBee-network, it is described The 2nd slip data packet is transmitted to the second sensor network, comprising:
The 2nd slip data packet is transmitted to the border router of the second sensor network by serial port drive.
9. a kind of multiprotocol network fusing device based on IPv6 gateway, which is characterized in that be applied to IPv6 gateway, the IPv6 Gateway is connect with multiple sensor networks with different communication protocol respectively, and each sensor network passes through the IPv6 net Pass is connect with internet;Described device includes:
Data packet receiving unit, for receiving the first slip data packet;
Sensor Network determination unit, for determining the first sensor network for sending the first slip data packet;
Data packet converting unit is used for according to the corresponding address translation rule of the first sensor network, by described first Slip data packet is converted to the first IPv6 data packet;
Data packet sending unit, for sending the first IPv6 data packet by the internet.
10. device according to claim 9, which is characterized in that the Sensor Network determination unit is specifically used for:
According to the wireless module MAC Address length in the first slip data packet, determines and send the first slip data packet First sensor network.
CN201910620686.7A 2019-07-10 2019-07-10 A kind of multiprotocol network fusion method and device based on IPv6 gateway Pending CN110336825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910620686.7A CN110336825A (en) 2019-07-10 2019-07-10 A kind of multiprotocol network fusion method and device based on IPv6 gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910620686.7A CN110336825A (en) 2019-07-10 2019-07-10 A kind of multiprotocol network fusion method and device based on IPv6 gateway

Publications (1)

Publication Number Publication Date
CN110336825A true CN110336825A (en) 2019-10-15

Family

ID=68145960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910620686.7A Pending CN110336825A (en) 2019-07-10 2019-07-10 A kind of multiprotocol network fusion method and device based on IPv6 gateway

Country Status (1)

Country Link
CN (1) CN110336825A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637190A (en) * 2020-12-18 2021-04-09 广东小天才科技有限公司 Data generation method based on COAP protocol, electronic device and readable storage medium
US11368855B2 (en) * 2019-09-10 2022-06-21 Beijing Baidu Netcom Science And Technology Co., Ltd. Network convergence method and device, electronic apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874241A (en) * 2014-03-17 2014-06-18 清华大学 Gateway for supporting merging work of various kinds of radio frequency communication
WO2016022018A1 (en) * 2014-08-04 2016-02-11 Bnetworks Sdn Bhd Universal control system for wireless sensor networks
CN106888281A (en) * 2017-03-31 2017-06-23 山东超越数控电子有限公司 A kind of things-internet gateway and application towards ZigBee radio sensing networks and IPv4 networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874241A (en) * 2014-03-17 2014-06-18 清华大学 Gateway for supporting merging work of various kinds of radio frequency communication
WO2016022018A1 (en) * 2014-08-04 2016-02-11 Bnetworks Sdn Bhd Universal control system for wireless sensor networks
CN106888281A (en) * 2017-03-31 2017-06-23 山东超越数控电子有限公司 A kind of things-internet gateway and application towards ZigBee radio sensing networks and IPv4 networks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴勃辰: "基于IPv6的物联网应用平台研究", 《电子科技辑》 *
陈君华: "《嵌入式物联网应用技术实践教程 基于6LoWPAN》", 31 December 2017 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11368855B2 (en) * 2019-09-10 2022-06-21 Beijing Baidu Netcom Science And Technology Co., Ltd. Network convergence method and device, electronic apparatus, and storage medium
CN112637190A (en) * 2020-12-18 2021-04-09 广东小天才科技有限公司 Data generation method based on COAP protocol, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
JP6623279B2 (en) (S) MTC service selection in Gi-LAN
EP3243317B1 (en) Machine-to-machine protocol indication and negotiation
CN103441939B (en) Multi-functional border router based on IPv6 wireless sensor network
KR20200006104A (en) Session Management Method and Device
Jurdak et al. Octopus: monitoring, visualization, and control of sensor networks
CN101986648A (en) Negotiation method, device and network device of TCP option
CN103763154A (en) Network flow detection method
WO2016019291A1 (en) Efficient centralized resource and schedule management in time slotted channel hopping networks
CN107820262B (en) Parameter configuration method, device and system
CN110336825A (en) A kind of multiprotocol network fusion method and device based on IPv6 gateway
CN106643888A (en) 6LoWPAN based building environment monitoring system
CN108965036A (en) Configure across public network equipment exchanging visit method, system, server and storage medium
WO2014015737A1 (en) Unified service platform for ubiquitous network and service implementation method
Halder et al. Performance analysis of CoAP, 6LoWPAN and RPL routing protocols of IoT using COOJA simulator
CN107484227B (en) Wifi networking multi-hot-spot control communication method
CN110958590B (en) Heterogeneous equipment integrated system based on multi-protocol edge computing gateway
CN105847136B (en) A kind of wireless sense network communication means and IPv6 gateway for supporting multi-protocols
CN107959631A (en) A kind of implementation method of the 6LoWPAN border routers based on OpenWrt operating systems
Corujo et al. MINDiT: A framework for media independent access to things
des Roziers et al. Two demos using senslab: Very large scale open wsn testbed
CN107659966A (en) Data transmission method, the network equipment, user terminal, gateway device
CN106130863A (en) The transfer approach of LAN protocol message, device and system
Pan et al. Design and Performance Analysis of Protocol Conversion between 5G and Modbus TCP
WO2010133020A1 (en) Data transmitting method, terminal processor and terminal device in zigbee network
Ngo et al. WANMON: a resource usage monitoring tool for ad hoc wireless networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191015

WD01 Invention patent application deemed withdrawn after publication