CN103200253A - Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method - Google Patents

Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method Download PDF

Info

Publication number
CN103200253A
CN103200253A CN2013101038069A CN201310103806A CN103200253A CN 103200253 A CN103200253 A CN 103200253A CN 2013101038069 A CN2013101038069 A CN 2013101038069A CN 201310103806 A CN201310103806 A CN 201310103806A CN 103200253 A CN103200253 A CN 103200253A
Authority
CN
China
Prior art keywords
network
internet
data
tcp
function
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
CN2013101038069A
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.)
Jiangsu Aerospace Zhilian Information Science & Technology Development Co Ltd
Original Assignee
Jiangsu Aerospace Zhilian Information Science & Technology Development 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 Jiangsu Aerospace Zhilian Information Science & Technology Development Co Ltd filed Critical Jiangsu Aerospace Zhilian Information Science & Technology Development Co Ltd
Priority to CN2013101038069A priority Critical patent/CN103200253A/en
Publication of CN103200253A publication Critical patent/CN103200253A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a water conservation Internet of things oriented multiple heterogeneous network communication protocol building method. The method comprises the steps of building network nodes in a self-organizing multi-hop mode networking on a wireless sensor network architecture based on a ZigBee protocol, building a monitoring server based on wireless Internet interconnection of GPRS on the wireless sensor network architecture, accessing a server and a client on the Internet as a GPRS terminal, using a GPRS network to access the Internet to achieve interconnection, and the GPRS network using equipment monitoring nodes to achieve data output. Through the water conservation Internet of things oriented multiple heterogeneous network communication protocol building method, interconnection among heterogeneous networks is improved, and improving Internet of things network communication transmission performance is key to improving water conservation Internet of things multiple heterogeneous network communication ability.

Description

A kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things
Technical field
The present invention relates to the Internet of Things transport layer network communications field, especially a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things.
Background technology
Water conservancy Internet of Things sensor terminal distributed areas are wide, the water level meter, water quality monitor, flowmeter, the gate valve pump that relate to distributed deployment, the automatic measuring station of water rain condition, automation or semi-automatic information gathering monitoring equipments such as electromagnetic flowmeter, ultrasonic flowmeter, turbine flowmeter, because special operational environment causes it need utilize multiple cable network, wireless network that the Monitoring Data of transducer is collected, transmitted and feedback, thereby has formed a kind of typical multi-source heterogeneous network.Since existing TCP/IP be at first for prolong in short-term, the cable network of low error rate design, when its agreement when wireless network moves, each limited resource on the channel can make TCP/IP mechanism be subjected to negative effect, reduce its transmission performance, influence the data transmission capabilities of whole multiple heterogeneous network.Yet radio communication has unique function such as space spans, telecommunication and broadcasting, thereby becomes an important channel of network service, is a kind of requisite network form for the water conservancy Internet of Things.Therefore improve the interconnectivity between the heterogeneous network, improve Internet of Things network communication and transmission performance and become the key issue that improves the multiple heterogeneous network communication capacity of water conservancy Internet of Things.
Summary of the invention
The technical problem to be solved in the present invention is: in order to overcome the above-mentioned middle problem that exists, a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things is provided, realization is collected, is transmitted and feedback the Monitoring Data of transducer at multiple cable network, wireless network, improve the interconnectivity between the heterogeneous network, improve communications and the communication capacity of the multiple heterogeneous network of water conservancy Internet of Things.
The technical solution adopted for the present invention to solve the technical problems is: a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things, and concrete steps are as follows:
Network node in the networking of self-organizing multi-hop pattern is built architecture based on the wireless sensor network of ZigBee agreement;
Architecture at above-mentioned wireless sensor network is set up based on the interconnected monitor server of the wireless Internet of GPRS, access server and client on Internet, server and client are as the GPRS terminal, it is interconnected to utilize GPRS network to insert the Internet realization, and GPRS network utilizes the monitoring of equipment node to realize data output.
Carry out network service by ICP/IP protocol between described wireless sensor network and the monitor server.
Implant embedded ICP/IP protocol LwIP in the described wireless sensor network.
LwIP comprises ICP/IP protocol module, operating system mould buffering and memory management subsystem module, Network Interface Module, Internet verification and computing function module and api interface function module.
LwIP is followed successively by network interface layer from top to bottom according to hierarchy, network layer, transport layer and application layer, when receiving data, at first give ip_input () function by network interface layer with data packet delivery, if the data pack protocol field is TCP, then data further are uploaded to tcp_input () function, here to do the integrity checking of packet, which TCP the decision data bag belongs to connects, realize the branch usefulness of network service, packet is uploaded to tcp_process () function then, be in accepting state if this TCP connects, then data are transferred to tcp_receive () function and are handled and finally be uploaded to application layer; When data send, application layer is transferred to tcp_write () function with data data is sent into transport layer, tcp_enqueue () function is divided into the TCP section with data and puts into transmit queue etc. to be sent then, if enough spaces are arranged, then tcp_output () function can be given the ip_route () function of network layer and the transmission that ip_output_if () function is finished data with data down transmission.。
The invention has the beneficial effects as follows: described a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things, adopt this kind construction method, improve the interconnectivity between the heterogeneous network, improve Internet of Things network communication and transmission performance and become the multiple heterogeneous network communication capacity of raising water conservancy Internet of Things.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 be of the present invention a kind of in the multiple heterogeneous network communication protocol construction method of water conservancy Internet of Things the overall structure schematic diagram of the architecture of wireless sensor network;
Fig. 2 be of the present invention a kind of in the multiple heterogeneous network communication protocol construction method of water conservancy Internet of Things GPRS insert the overall structure schematic diagram of Internet system;
Fig. 3 be of the present invention a kind of in the multiple heterogeneous network communication protocol construction method of water conservancy Internet of Things interior laminate layer structural representation among the LwIP:
Fig. 4 is a kind of flow chart that IP layer and TCP layer are handled in the network layer in the multiple heterogeneous network communication protocol construction method of water conservancy Internet of Things of the present invention;
Fig. 5 be of the present invention a kind of in the multiple heterogeneous network communication protocol construction method of water conservancy Internet of Things the flow chart of LwIP protocol process model in the network layer.
Embodiment
In conjunction with the accompanying drawings, the present invention is further detailed explanation.These accompanying drawings are the schematic diagram of simplification, basic structure of the present invention only is described in a schematic way, so it only show the formation relevant with the present invention.
A kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things, concrete steps are as follows:
Network node in the self-organizing multi-hop pattern networking (being applicable to the application scenario that short distance, low-consumption wireless connect) is built based on the architecture of the wireless sensor network of ZigBee agreement as shown in Figure 1; Architecture at above-mentioned wireless sensor network is set up based on the interconnected monitor server of the wireless Internet of GPRS, access server and client (are applicable to Industry Control on Internet, application scenario such as information household appliances and environmental monitoring), server and client are as the GPRS terminal, utilizing GPRS network to insert Internet realizes interconnected, GPRS network utilizes the monitoring of equipment node to realize data outputs (as shown in Figure 2), carry out network service by ICP/IP protocol between wireless sensor network and the monitor server, because operation platform difference, sensor node is implanted embedded ICP/IP protocol LwIP, and the monitor server end only need move general TCP/IP, sensor node is as client (Client) in such cases, and monitor server connects as server end (Server).
It is Embedded that LwIP is that a cover is used for, and the ICP/IP protocol stack of open source code, its English full name are " Light weight IP ", i.e. light-duty ICP/IP protocol stack, and its design aim is to reduce internal memory use amount and size of code.At present, the general RAM of tens K and the ROM of 40K of only needing of the operation of LwIP gets final product, and is highly suitable in the embedded system and uses.The main service that LwIP provides comprises: the obstruction control under the multi-network interface, RTT estimation, fast quick-recovery and the plan layer module, the TCP that send out fast.LwIP comprises ICP/IP protocol module (IP, ICMP, UDP and TCP), operating system mould buffering and memory management subsystem module, Network Interface Module, Internet verification and computing function module and api interface function module.LwIP plans whole protocol stack with the design philosophy of layering, and its interior laminate layer structure is followed successively by network interface layer, network layer, transport layer and application layer as shown in Figure 3 from top to bottom,
Network interface layer is in the LwIP agreement, and underlay network device drives and is packaged into a network interface structure, and this structure specific code is as follows:
Figure BDA00002975342400041
Wherein netif structure member next pointer represents that this is a list structure; Member name has preserved the name of this network interface; Member ip_addr, netmask and gw are three IP addresses; Two pointer variables of member input and output are pointed to two interface functions respectively, and input points to the packet receiver function, and output points to datagram and sends function;
IP handles to be distributed as and sends datagram and accept datagram two parts in the network layer, as shown in Figure 4, when receiving packet, network device driver is called network interface layer functions ip_input () and is handled, contents processing comprises the inspection of IP version field, the packet header verification, and whether the destination address of judgment data bag is local network interface IP address then, if check conforms to, just transfer to ICMP, UDP or TCP upper-layer protocol function and handle.When sending packet, network interface layer at first calls ip_route () function and searches suitable network interface and send packet, finds to call ip_output_if () function behind the correct network interface address and send data;
Transport layer is on hierarchical structure, Transmission Control Protocol is in the effect of forming a connecting link that plays, its flow chart of data processing as shown in Figure 4, its processing procedure is than IP agreement complexity as seen from the figure, basic receiver function comprises tcp_input (), tcp_proeess () and tcp_receive (), sends function substantially and comprises tcp_write (), tcp_enqueue () and tcp_output ();
When receiving data, at first give ip_input () function by network interface layer with data packet delivery, if the data pack protocol field is TCP, then data further are uploaded to tcp_input () function, here to do the integrity checking of packet, which TCP the decision data bag belongs to connects, realize the branch usefulness of network service, packet is uploaded to tcp_process () function then, be in accepting state if this TCP connects, then data are transferred to tcp_receive () function and are handled and finally be uploaded to application layer.
When data send, application layer is transferred to tcp_write () function with data data is sent into transport layer, tcp_enqueue () function is divided into the TCP section with data and puts into transmit queue etc. to be sent then, if enough spaces are arranged, then tcp_output () function can be given the ip_route () function of network layer and the transmission that ip_output_if () function is finished data with data down transmission;
In sum, the LwlP protocol suite adopts the layered mode design, clear layer, yet different with other ICP/IP protocol stacks is LwIP is not considered as a single process with each layer of protocol stack, protocol stack is not built in the middle of the operating system nucleus yet, but ICP/IP protocol stack integral body is considered as a process, and be separated with operating system nucleus.
The concrete model overview of LwIP as shown in Figure 5.As seen from the figure, all ICP/IP protocol stacks are all in the middle of a process (tcpip_thread), like this ICP/IP protocol stack just and operating system nucleus be separated, the application layer program also can reside in the TCP/IP process and both can be independent process, if application program be independent process can be by operating system mailbox, message queue etc. carry out communication with the TCP/IP process, if in the resident TCP/IP process of application layer program, that application layer program is just utilized inner call back function interface (RawAPI) and the communication of ICP/IP protocol stack.Thisly can conveniently transplant in different operating system with the process model that operating system is separated.
The network interface layer of ICP/IP protocol stack is encapsulated concrete network equipment, when sending data, outputO function among the TCP/IP process transfer structure netif sends, when new Ethernet data bag arrives, can trigger network interface card interrupts, in interrupt service subroutine, receive packet, the attribute of judgment data bag then, the flow direction of the attribute determination data bag of packet, if the IP packet with regard on give the IP layer and handle, handle if the ARP packet is just given arp_input () function.
Be enlightenment with above-mentioned foundation desirable embodiment of the present invention, by above-mentioned description, the related work personnel can carry out various change and modification fully in the scope that does not depart from this invention technological thought.The technical scope of this invention is not limited to the content on the specification, must determine its technical scope according to the claim scope.

Claims (5)

1. multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things is characterized in that concrete steps are as follows:
Network node in the networking of self-organizing multi-hop pattern is built architecture based on the wireless sensor network of ZigBee agreement;
Architecture at above-mentioned wireless sensor network is set up based on the interconnected monitor server of the wireless Internet of GPRS, access server and client on Internet, server and client are as the GPRS terminal, it is interconnected to utilize GPRS network to insert the Internet realization, and GPRS network utilizes the monitoring of equipment node to realize data output.
2. a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things according to claim 1 is characterized in that: carry out network service by ICP/IP protocol between described wireless sensor network and the monitor server.
3. a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things according to claim 1 is characterized in that: implant embedded ICP/IP protocol LwIP in the described wireless sensor network.
4. a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things according to claim 3 is characterized in that: LwIP comprises ICP/IP protocol module, operating system mould buffering and memory management subsystem module, Network Interface Module, Internet verification and computing function module and api interface function module.
5. a kind of multiple heterogeneous network communication protocol construction method towards the water conservancy Internet of Things according to claim 3, it is characterized in that: LwIP is followed successively by network interface layer from top to bottom according to hierarchy, network layer, transport layer and application layer, when receiving data, at first give ip_input () function by network interface layer with data packet delivery, if the data pack protocol field is TCP, then data further are uploaded to tcp_input () function, here to do the integrity checking of packet, which TCP the decision data bag belongs to connects, realize the branch usefulness of network service, packet is uploaded to tcp_process () function then, be in accepting state if this TCP connects, then data are transferred to tcp_receive () function and are handled and finally be uploaded to application layer; When data send, application layer is transferred to tcp_write () function with data data is sent into transport layer, tcp_enqueue () function is divided into the TCP section with data and puts into transmit queue etc. to be sent then, if enough spaces are arranged, then tcp_output () function can be given the ip_route () function of network layer and the transmission that ip_output_if () function is finished data with data down transmission.
CN2013101038069A 2013-03-27 2013-03-27 Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method Pending CN103200253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101038069A CN103200253A (en) 2013-03-27 2013-03-27 Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101038069A CN103200253A (en) 2013-03-27 2013-03-27 Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method

Publications (1)

Publication Number Publication Date
CN103200253A true CN103200253A (en) 2013-07-10

Family

ID=48722608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101038069A Pending CN103200253A (en) 2013-03-27 2013-03-27 Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method

Country Status (1)

Country Link
CN (1) CN103200253A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162751A (en) * 2015-06-18 2015-12-16 南京国电南自电网自动化有限公司 Multi-network port and multi-connection communication system based on lwIP protocol stack
CN103456135B (en) * 2013-09-18 2016-08-17 中国长江三峡集团公司 Construction for Hydroelectric Project potential safety hazard based on Internet of Things monitoring system and method
CN113329064A (en) * 2021-05-13 2021-08-31 河南中州智慧水利研究院有限公司 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control
CN113794715A (en) * 2021-09-13 2021-12-14 福达新创通讯科技(厦门)有限公司 Virtual point-to-point network data transmitting, receiving and responding method and system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1160673A1 (en) * 1999-11-12 2001-12-05 Sony Corporation Communication control device, host device and method of communication
CN101387883A (en) * 2008-10-09 2009-03-18 上海交通大学 Method for acquiring and transmitting mass data in astronomical telescope control system
CN101527733A (en) * 2009-03-31 2009-09-09 江苏大学 Remote data transmission system of wireless sensor network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1160673A1 (en) * 1999-11-12 2001-12-05 Sony Corporation Communication control device, host device and method of communication
CN101387883A (en) * 2008-10-09 2009-03-18 上海交通大学 Method for acquiring and transmitting mass data in astronomical telescope control system
CN101527733A (en) * 2009-03-31 2009-09-09 江苏大学 Remote data transmission system of wireless sensor network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
冼土明等: "基于ZigBee-GPRS技术的无线传感网络", 《软件》, vol. 32, no. 1, 31 January 2011 (2011-01-31), pages 57 - 60 *
陈斯平: "基于嵌入式系统的协议栈的研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 8, 15 August 2006 (2006-08-15), pages 1 - 73 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103456135B (en) * 2013-09-18 2016-08-17 中国长江三峡集团公司 Construction for Hydroelectric Project potential safety hazard based on Internet of Things monitoring system and method
CN105162751A (en) * 2015-06-18 2015-12-16 南京国电南自电网自动化有限公司 Multi-network port and multi-connection communication system based on lwIP protocol stack
CN105162751B (en) * 2015-06-18 2018-06-22 南京国电南自电网自动化有限公司 A kind of communication system based on lwIP protocol stack Multi-netmouth multi-connections
CN113329064A (en) * 2021-05-13 2021-08-31 河南中州智慧水利研究院有限公司 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control
CN113329064B (en) * 2021-05-13 2022-11-25 河南中州智慧水利研究院有限公司 Communication method of Internet of things interaction protocol based on water conservancy data acquisition and control
CN113794715A (en) * 2021-09-13 2021-12-14 福达新创通讯科技(厦门)有限公司 Virtual point-to-point network data transmitting, receiving and responding method and system thereof

Similar Documents

Publication Publication Date Title
Hu A system architecture for software-defined industrial Internet of Things
US9407542B2 (en) Network architecture for minimalistic connected objects
CN101068198B (en) Method, device and system for transmitting information in building system
CN107980213A (en) Intranet accelerator
CN106603659A (en) Intelligent manufacturing special network data acquisition scheduling system
EP3479530B1 (en) Message schema control
CN101741819A (en) Protocol conversion gateway
CN103200253A (en) Water conservation Internet of things oriented multiple heterogeneous network communication protocol building method
CN102647370B (en) Communication method for communicating WiFi network with ZigBee network
US9503380B2 (en) Communication apparatus, communication method, and computer readable medium
CN103731409B (en) The distributed measurement device of embedded type automobile acquisition equipment for accelerating with TCP
CN110061923A (en) Flow control methods, device, interchanger, transmitting terminal server and medium
CN101502065A (en) Methods for providing quality of service by applying back-pressure in sequencing
CN113810271B (en) Gateway southward equipment interface proxy device of Internet of things and implementation method
CN104883335A (en) Full-hardware TCP protocol stack realizing method
US10764219B2 (en) Message schema control
CN102255800B (en) Method for converting data format between IP (Internet Protocol) data packages on CAN (Control Area Network) bus and CAN messages
Huang Quality of service optimization in wireless transmission of industrial Internet of Things for intelligent manufacturing
CN103929778A (en) Data grading transmission method
CN108135034A (en) A kind of electrical grid transmission system based on wireless sense network
CN104363185B (en) A kind of miniature composite network data exchange system
CN101841457A (en) Router and method for processing IPv6 packet thereof
Pagliari et al. A modular multi-interface gateway for heterogeneous iot networking
CN103259623A (en) Data transmission method and data transmission device
CN107483231A (en) A kind of multi-protocol data transport network layer and transport layer monitoring reliability method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130710