CN104954224B - The method and apparatus of IP device access sensor network - Google Patents
The method and apparatus of IP device access sensor network Download PDFInfo
- Publication number
- CN104954224B CN104954224B CN201510312569.6A CN201510312569A CN104954224B CN 104954224 B CN104954224 B CN 104954224B CN 201510312569 A CN201510312569 A CN 201510312569A CN 104954224 B CN104954224 B CN 104954224B
- Authority
- CN
- China
- Prior art keywords
- sensor network
- network
- sensor
- virtual
- gateway
- 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
Links
Abstract
The embodiment of the invention discloses a kind of method and apparatus of IP device access sensor network.The described method includes: obtaining virtual sensing net address from sensor gateway by IP tunnel, wherein the sensor gateway is a gateway in sensor network;Using the virtual sensing net address, virtual sensing Network Communication interface is set;It by the virtual sensing Network Communication interface and the IP tunnel, is sent to the sensor network, or from the sensor network received data packet.The method and apparatus of IP device access sensor network provided in an embodiment of the present invention realize interconnecting between IP device and sensor network.
Description
Technical field
The present embodiments relate to internet of things field more particularly to a kind of methods of IP device access sensor network
And device.
Background technique
With flourishing for technology of Internet of things, the wireless sensor network based on 802.15.4 has been obtained answers extensively
With, and gradually permeate in people's daily life.And in application, various Sensor Network applications must pass through IP based network
Computer or personal intelligent terminal be shown.
Being currently known the method for Sensor Network and IPv6 net interconnecting is operated on Sensor Network after simplifying IPv6, IETF
6LoWPAN working group invented it is a kind of by IPv6 Header compression to only transmit required content small data packets in method, but i.e.
Just it is also larger to simplify rear network overhead, and scale is commercial far away in real life by IPv6.Be currently known by Sensor Network with
The method of IPv4 net interconnecting is mutually to convert IP data and sensing network data and transmitted by intermediate medium.
Summary of the invention
In view of the above technical problems, the embodiment of the invention provides the methods and dress of a kind of IP device access sensor network
It sets, to realize interconnecting between IP device and sensor network.
In a first aspect, the embodiment of the invention provides a kind of method of IP device access sensor network, the method packet
It includes:
Virtual sensing net address is obtained from sensor gateway by IP tunnel, wherein the sensor gateway
It is a gateway in sensor network;
Using the virtual sensing net address, virtual sensing Network Communication interface is set;
By the virtual sensing Network Communication interface and the IP tunnel, sent to the sensor network, Huo Zhecong
The sensor network received data packet.
Second aspect, the embodiment of the invention also provides a kind of device of IP device access sensor network, described devices
Include:
Address acquisition module, for obtaining virtual sensing net address from sensor gateway by IP tunnel, wherein institute
Stating sensor gateway is a gateway in sensor network;
Interface setup module, for virtual sensing Network Communication interface to be arranged using the virtual sensing net address;
Communication module, for passing through the virtual sensing Network Communication interface and the IP tunnel, to the sensor network
Network is sent, or from the sensor network received data packet.
The method of IP device provided in an embodiment of the present invention access sensor network have it is following the utility model has the advantages that
1), Sensor Network is extended on IP network, IP device have be equal to Sensor Network equipment directly transmit and
Receive the ability of Sensor Network data packet;
2), in addition to sensor network gateway, equipment and IP device directly pass through Sensor Network address communication in Sensor Network net, are indifferent to
The relevant any information of IP network, can be regarded as Sensor Network equipment;
3), sensor network gateway need to be only forwarded according to virtual sensing net destination address, without doing complicated data
Conversion.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the IP device access sensor network that first embodiment of the invention provides;
Fig. 2 is the structure chart of the device for the IP device access sensor network that second embodiment of the invention provides;
Fig. 3 is the network architecture for the method for executing IP device access sensor network that third embodiment of the invention provides
Figure.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
In the present invention, IP device refers to the equipment with IP communication interface.IP device for example may include, but be not limited to
Computer, mobile phone, plate etc..Sensor Network refers to IEEEE 802.15.4 wireless sensor network, Sensor Network equipment may include but
It is not limited to wireless sensor, smartwatch, wearable device, smart home device etc..When in IP device and the Sensor Network
When establishing connection by the IP communication technology between Sensor Network equipment, which can become virtual sensing net equipment.
First embodiment
Present embodiments provide a kind of technical solution of the method for IP device access sensor network.The technical solution can be with
Implemented by the device of IP device access sensor network.The device of the IP device access sensor network is integrated in and sensor
In the IP device that network is communicated.
Referring to Fig. 1, the method for the IP device access sensor network includes:
S11 obtains virtual sensing net address from sensor gateway by IP tunnel, wherein the sensor gateway
Equipment is a gateway in sensor network.
It realizes the interconnection and interflow between IP device and sensor network, accesses the IP device needs of the sensor network
Configured with the network address suitable for the sensor network.In the present embodiment, the virtual-sensor network address by
The sensor gateway distribution.Also, it is described after distributing the virtual-sensor network address for the IP device
Sensor gateway saves the corresponding relationship between the virtual-sensor network address and the IP device.
The IP device accesses after the Sensor Network, and the IP device just becomes virtual sensing net equipment.Correspondingly,
The IP device from the network address that the sensor gateway is got be virtual sensing net address.
Due to the IP device do not have sensor network communication interface, the IP device need by UDP message packet from
The sensor gateway obtains virtual sensing net address.Specifically, IP device passes through UDP mode and the sensor network gateway
Equipment establishes connection, sends virtual sensing net address solicited message to the sensor network gateway equipment by UDP mode, then,
The virtual sensing net address of distribution can be sent to IP device by the sensor network gateway equipment.
Preferably, virtual sensing net address distribution module can be configured in the sensor network gateway equipment, thus to need
Access the IP device distribution virtual sensing net address of the Sensor Network.
Virtual sensing Network Communication interface is arranged using the virtual sensing net address in S12.
The virtual sensing Network Communication interface has the IP device using biography for constructing Sensor Network data packet
The ability that sense fidonetFido carries out data transmission.To the interface initialization of virtual sensing Network Communication or match using virtual sensing net address
After setting, Sensor Network data packet can be generated by the virtual sensing Network Communication interface, to carry out sensing network data transmission.
The source address of the Sensor Network data packet generated by the virtual sensing Network Communication interface is configured virtual sensing net address.?
In the present embodiment, virtual sensing Network Communication interface can be the Sensor Network protocol stack based on IEEE 802.15.4.
S13 is sent by the virtual sensing Network Communication interface and the IP tunnel to the sensor network, or
Person is from the sensor network received data packet.
After having configured virtual sensing Network Communication interface, IP device can with the other equipment in virtual sensing network into
Row sensor network communication.Other equipment in virtual sensing network can be IP device and be also possible to Sensor Network equipment.Below with IP
For another Sensor Network equipment of equipment into virtual sensing network sends the process of sensing data packet, illustrate above-mentioned transmission number
According to the process of packet.
Firstly, IP device generates sensing data packet by its virtual sensing Network Communication interface.Virtual sensing Network Communication interface
The data that can receive application layer form sensing data packet after the processing of the Sensor Network protocol stack of 802.15.4.Sensing data
The Sensor Network source address of packet is the virtual sensing net address of virtual sensing Network Communication interface configuration, and destination address is virtual sensing
The sensing net address of another Sensor Network equipment of the sensing data packet is received in network.
After IP device generates sensing data packet, sensing data packet is sent to by biography connected to it by UDP mode first
Feel net gateway, the forwarding of sensing data packet is carried out by sensor network gateway.
When sensor network gateway judge sensing data packet destination address namely another Sensor Network equipment, with Sensor Network net
When pass is connected directly, in other words, only one when jumping, sensor network gateway passes through 802.15.4 for purpose Sensor Network equipment and sensor network gateway
Sensing data packet is transmitted directly to the Sensor Network equipment by link.
When sensor network gateway judge sensing data packet destination address namely another Sensor Network equipment, with Sensor Network net
When closing indirect connected, in other words, when purpose Sensor Network equipment and sensor network gateway are multi-hop, sensor network gateway passes through
802.15.4 sensing data packet is sent to higher level's routing device of the Sensor Network equipment by link, is carried out by sensing network by equipment
The sensing data packet is finally sent to above-mentioned purpose Sensor Network equipment by device by transistroute, sensing network.
IP device receives the process of sensing data packet and states with above-mentioned sensing data packet transmission process on the contrary, no longer apply herein.
The present embodiment obtains virtual sensing net address from sensor gateway by IP tunnel, utilizes the virtual sensing
Virtual sensing Network Communication interface is arranged in net address, and passes through the virtual sensing Network Communication interface and the IP tunnel, to
The sensor network is sent, or from the sensor network received data packet, Sensor Network is extended on IP network,
So that IP device has the ability for directly transmitting and receiving Sensor Network data packet for being equal to Sensor Network equipment.
Second embodiment
Present embodiments provide a kind of technical solution of the device of IP device access sensor network.In the technical solution
In, the device of the IP device access sensor network includes: address acquisition module 21, interface setup module 22 and communication mould
Block 23.
The address acquisition module 21 is used to obtain virtual sensing net address from sensor gateway by IP tunnel,
In, the sensor gateway is a gateway in sensor network.
The interface setup module 22 is used to that virtual sensing Network Communication interface to be arranged using the virtual sensing net address.
The communication module 23 is used for by the virtual sensing Network Communication interface and the IP tunnel, to the sensing
Device network is sent, or from the sensor network received data packet.
Further, the communication module 23 is passing through the virtual sensing Network Communication interface and the IP tunnel, to
When the sensor network sends data packet, it is specifically used for: generates the data for needing to send by the sensor communication interfaces
Packet;The purpose network equipment data packet being sent to by the IP tunnel in the sensor network.
Further, the communication module 23 is passing through the virtual sensing Network Communication interface and the IP tunnel, from
When the sensor network received data packet, it is specifically used for: by the sensor communication interfaces, receives to come from the IP tunnel
From the data packet of source network device in the sensor network.
Further, the virtual-sensor network address is distributed by the sensor gateway.
Further, after distributing the virtual-sensor network address for the IP device, the sensor gateway
Equipment saves the corresponding relationship between the virtual-sensor network address and the IP device.
3rd embodiment
Present embodiments provide a kind of sensor network for executing the method for IP device access sensor network.Referring to Fig. 3,
The network equipment in the sensor network includes: sensor network gateway 31, the first IP device 32, the second IP device 33, first biography
Feel net equipment 34, the second Sensor Network equipment 35.Sensor network gateway 31 configured with the communication interfaces such as Ethernet, 802.15.4 be wireless,
First IP device 32 is configured with WIFI interface, and IP device 2 is configured with wireline interface, the first Sensor Network equipment 34, the second Sensor Network
Equipment 35 is configured with 802.15.4 wireless interface.First IP device 32, the second IP device 33 connect configured with virtual sensing Network Communication
Mouthful, it is connected in a manner of UDP with sensor network gateway 31 by respective IP tunnel.First Sensor Network equipment 34, the second Sensor Network are set
Standby 35 are configured with sensor network communication interface, are connected by 802.15.4 Radio Link with sensor network gateway.
For the framework that Fig. 3 is provided, with 32 access of virtual sensing network of the first IP device, and to the second Sensor Network equipment 35
Illustrate above-mentioned framework for transmission sensing data packet.In virtual sensing network, each equipment requires a virtual sensing
Net address could be communicated with other equipment, and the sensing net address of sensor network gateway 31 is 0.0, and the first IP device 32 passes through the side UDP
Formula and sensor network gateway 31 establish connection, establish after connection and obtain the virtual sensing net address distributed from sensor network gateway 31
0.3.First IP device 32 is specially initialized using the virtual sensing net address initialization of virtual sensor network communication interface obtained
Sensor Network protocol stack based on 802.15.4, to be transmitted to the other equipment in virtual sensing network on such first IP device 32
Application data, can by Sensor Network protocol stack processing after generate Sensor Network data packet.First IP device 32 is by the biography of generation
Feel network data packet and sensor network gateway 31 is sent to by UDP connection, sensor network gateway 31 is from the sensing data packet that equipment is sent
Sensor Network destination address, determine that the sensing data packet is destined to the second Sensor Network equipment 35, therefore sensor network gateway 31
Sensor Network data packet is sent to the second Sensor Network equipment 35 by 802.15.4 Radio Link.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art
For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal
Replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method of IP device access sensor network characterized by comprising
Virtual sensing net address is obtained from sensor gateway by IP tunnel, wherein the sensor gateway is to pass
A gateway in sensor network;
Using the virtual sensing net address, virtual sensing Network Communication interface is set;
It by the virtual sensing Network Communication interface and the IP tunnel, is sent to the sensor network, or from described
Sensor network received data packet.
2. the method according to claim 1, wherein passing through the virtual sensing Network Communication interface and the IP
Channel, sending data packet to the sensor network includes:
The data packet for needing to send is generated by the sensor communication interfaces;
The purpose network equipment data packet being sent to by the IP tunnel in the sensor network.
3. the method according to claim 1, wherein passing through the virtual sensing Network Communication interface and the IP
Channel includes: from the sensor network received data packet
By the sensor communication interfaces, the number of the source network device in the sensor network is received from the IP tunnel
According to packet.
4. the method according to claim 1, wherein the virtual-sensor network address is by the sensor network
Close equipment distribution.
5. the method according to claim 1, wherein distributing the virtual-sensor network for the IP device
After address, the sensor gateway saves the corresponding pass between the virtual-sensor network address and the IP device
System.
6. a kind of device of IP device access sensor network characterized by comprising
Address acquisition module, for obtaining virtual sensing net address from sensor gateway by IP tunnel, wherein the biography
Sensor gateway is a gateway in sensor network;
Interface setup module, for virtual sensing Network Communication interface to be arranged using the virtual sensing net address;
Communication module, for being sent out to the sensor network by the virtual sensing Network Communication interface and the IP tunnel
It send, or from the sensor network received data packet.
7. device according to claim 6, which is characterized in that the communication module is passing through the virtual sensing Network Communication
Interface and the IP tunnel are specifically used for when sending data packet to the sensor network:
The data packet for needing to send is generated by the sensor communication interfaces;
The purpose network equipment data packet being sent to by the IP tunnel in the sensor network.
8. device according to claim 6, which is characterized in that the communication module is passing through the virtual sensing Network Communication
Interface and the IP tunnel are specifically used for when from the sensor network received data packet:
By the sensor communication interfaces, the number of the source network device in the sensor network is received from the IP tunnel
According to packet.
9. device according to claim 6, which is characterized in that the virtual-sensor network address is by the sensor network
Close equipment distribution.
10. device according to claim 6, which is characterized in that distributing the virtual-sensor net for the IP device
After network address, the sensor gateway saves corresponding between the virtual-sensor network address and the IP device
Relationship.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510312569.6A CN104954224B (en) | 2015-06-09 | 2015-06-09 | The method and apparatus of IP device access sensor network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510312569.6A CN104954224B (en) | 2015-06-09 | 2015-06-09 | The method and apparatus of IP device access sensor network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104954224A CN104954224A (en) | 2015-09-30 |
CN104954224B true CN104954224B (en) | 2019-02-01 |
Family
ID=54168596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510312569.6A Active CN104954224B (en) | 2015-06-09 | 2015-06-09 | The method and apparatus of IP device access sensor network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954224B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404195A (en) * | 2011-09-02 | 2012-04-04 | 华为技术有限公司 | Data transmission method, gateway and network system |
CN102457581A (en) * | 2010-10-19 | 2012-05-16 | 中兴通讯股份有限公司 | Addressing method of wireless sensor network (WSN) terminal and combination network |
CN103312829A (en) * | 2012-03-15 | 2013-09-18 | 中国移动通信集团公司 | Heterogeneous network communication method and device |
WO2014037779A1 (en) * | 2012-09-04 | 2014-03-13 | Alcatel Lucent | End-to-end communication in sensor network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8149849B2 (en) * | 2006-08-31 | 2012-04-03 | Sony Ericsson Mobile Communications Ab | Zigbee/IP gateway |
-
2015
- 2015-06-09 CN CN201510312569.6A patent/CN104954224B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457581A (en) * | 2010-10-19 | 2012-05-16 | 中兴通讯股份有限公司 | Addressing method of wireless sensor network (WSN) terminal and combination network |
CN102404195A (en) * | 2011-09-02 | 2012-04-04 | 华为技术有限公司 | Data transmission method, gateway and network system |
CN103312829A (en) * | 2012-03-15 | 2013-09-18 | 中国移动通信集团公司 | Heterogeneous network communication method and device |
WO2014037779A1 (en) * | 2012-09-04 | 2014-03-13 | Alcatel Lucent | End-to-end communication in sensor network |
Also Published As
Publication number | Publication date |
---|---|
CN104954224A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104919766B (en) | Path switching method and equipment for device-to-device communication | |
PL1813088T3 (en) | Method and system for routing in communication networks between a first node and a second node | |
CN104518973B (en) | A kind of reliable multicast transmission method of the data based on SDN environment | |
CN107801249A (en) | The resource allocation methods and its equipment and system of wireless communication system | |
CN103200283B (en) | The implementation method of many relay wireless communications system and this Systems Air Interface IPization | |
DE602006014383D1 (en) | TRANSMITTING IP PACKAGES TO A MOBILE USER DEVICE | |
CN106797674A (en) | Relay wireless electric terminals, core network device and its method | |
CN111092854B (en) | Method for transmitting packets transmitted from a source device to a destination device | |
CN104540180B (en) | A kind of Android multihop routing implementation method without root authority | |
CN102625363A (en) | Mobile evolved packet network system | |
CN102868586A (en) | Method for establishing tunnel forwarding table entries, central node and branch nodes | |
Parmar et al. | IoT: Networking technologies and research challenges | |
CN109302226A (en) | Incorporate network communication method | |
CN106455086B (en) | A kind of method and apparatus carried out data transmission | |
Suryady et al. | Performance evaluation of 6LoWPAN-based precision agriculture | |
CN109246016A (en) | Message processing method and device across VXLAN | |
CN103338479B (en) | A kind of communication means of short-distance wireless Internet of Things | |
CN105959223B (en) | A kind of message forwarding method and device | |
JP2017532875A (en) | Data exchange method, baseband processing unit, wireless remote unit and relay unit | |
CN104954224B (en) | The method and apparatus of IP device access sensor network | |
US9367514B2 (en) | Communication node and communication method | |
CN106656813B (en) | Data transmission method | |
KR101396995B1 (en) | Method for converting protocol in a gateway, and gateway thereof | |
JP4996514B2 (en) | Network system and message transfer method | |
CN104618214B (en) | The method and system that structure LAN is transmitted into row information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200603 Address after: No. 301, floor 3, No. 9, shangdijiu street, Haidian District, Beijing 100085 Patentee after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd. Address before: 100085, Beijing, Haidian District on the nine Street 9 digital science and Technology Plaza, a section of the seven A District Patentee before: DIGITAL CHINA HOLDINGS Ltd. |
|
TR01 | Transfer of patent right |