A kind of agricultural intelligent networking gateway design methodTechnical field
The present invention relates to agriculture Internet of Things field, more particularly, to a kind of agriculture intelligent networking gateway design method.
Background technology
Research of the technology of Internet of things in agricultural causes more and more focus of attention, and wherein intelligent gateway is in agriculture objectA more key technology, assumes responsibility for collecting, encapsulate and transmitting for data in networked system, at present agricultural intelligent networking gatewayData encapsulate standard and communication standard and disunity, also considerably less to the research of agriculture intelligent networking gateway.Intelligent gateway refers toA kind of equipment and technology can collect, analyze, encapsulating, forwarding data and information.The U.S., Japan are in terms of precision agriculture fieldThere are commercial application, Holland to there is preferable agricultural high-effiency production system, South Korea to have agriculture sci-tech archive, promote agricultureIndustry technology of Internet of things development [.China is a large agricultural country, and agriculture Internet of Things has also begun to certain development, in environmentMonitoring, precision agriculture etc. have certain application, but also fewer in the research of intelligent gateway.Intelligent gateway is in intelligent familyThere is certain research in the fields such as residence, the control of heat distribution pipe network system, water tank;There is scholar to propose the design of agriculture Internet of things systemMethod, but the design of intelligent gateway is not all mentioned, there is scholar to propose in the greenhouse heterogeneous network based on android systemEnvironmental monitoring intelligent gateway designs, and tentatively realizes greenhouse monitoring, but does not propose detailed agricultural data encapsulation standard;Also scholar etc. devises a kind of Internet of Things network management system based on ZigBee/3G, is used for the monitoring of water tank temperature, but is applyingAspect has certain limitation;Also scholar proposes a kind of configurable wireless sensor network WSN based on WinCE systems(wireless sensor network) gateway architecture ReGA (Re-configurable GatewayArchitecture), visualization of presence equipment and monitoring integrated management can be realized, but its design platform is not useful in otherThe application of the open source systems such as Linux.
Intelligent gateway has certain progress in the research of agriculture Internet of Things, but there is also deficiencies, are mainly reflected in agriculture objectNetworking is related to that technology is more, and data are wide, and data encapsulation format is inconsistent, and communication protocol is not unified, most of agricultural Internet of Things systemThe communication protocol that system is defined using itself, intelligent gateway lack unified communication standard, it is difficult to reach and be widely applied agriculture objectThe technology requirement of networking, does not meet the demand for development of agriculture big data and precision agriculture at present yet.
Invention content
The present invention provides a kind of agriculture intelligent networking gateway design method, and this method can quickly and easily realize agriculturalThe deployment of Internet of things system.
In order to reach above-mentioned technique effect, technical scheme is as follows:
A kind of agricultural intelligent networking gateway design method, process are as follows:
Wireless sensor network is built using ZigBee technology, network is divided into sensing layer, network layer, and information processing layer is comprehensiveApplication is closed, wireless network is realized by the nodal terminal and coordinator that are arranged in sensing layer, and design communication protocol and complete numberAccording to transmission and processing, the communication protocol of design includes 3 layers of application layer communication protocol, serial communication protocol and node communication protocolComposition, application layer communication protocol and serial communication protocol are converted by gateway service program, and node communication protocol realizes nothingThe encapsulation of line network data:
1) communication protocol of the first layer application layer communication protocol between application program and gateway;
2) communication protocol of the second layer serial communication protocol between gateway and coordinator;
3) communication protocol of the third node layer communication protocol between coordinator and ordinary node.
Three layers of communication protocol complete the data sampling and processing of agriculture Internet of Things and send and control, application layer, gateway, associationAdjust the communication protocol relational graph between device and node as shown in Figure 1
Further, the design process of the application layer communication protocol is as follows:
Application layer communication protocol detailed orders format such as following table:
| Mark | SOP | CMD | LEN | DATA | FCS |
| Length (Bit) | 1 | 2 | 1 | N | 1 |
Wherein SOP is that order starts to indicate, and it is 0x02 to take fixed value;CMD is order mark code, for distinguishing different livesIt enables, detailed functions such as following table:
| CMD | Transmission data | Responsive state | Response data |
| Value | 0x2900 | 0x6900 | 0x6980 |
| Data flow | Terminal->Gateway | Gateway->Terminal | Gateway->Terminal |
LEN:The length of DATA, wherein LEN=0 do not have the domains data then;DATA data formats are EP+APP_MSG, wherein EP1 byte of length, take fixed value be 0x02, wherein APP_MSG be data packet node communication protocol;FCS is from CMD to DATAExclusive or and, application layer director data send format be
Data send 1:Transmission data:SOP+CMD+LEN+EP+APP_MSG+FCS:
After order is sent successfully, gateway returns to 2 message, and the 1st article of information is gateway response message, wherein including response shapeState RET, state 0x00, then represent and respond successfully, then represents response failure for 0x01, after responding successfully, gateway returns to the 2nd articleMessage, message content are the instruction replied application layer and sent;
Data response 1:SOP+CMD+APP_CMD+RET+FCS;
Data response 2:SOP+CMD+LEN+ADD+2B CMD+RESULT+FCS;
Wherein " 2B CMD " sends, function correspondence such as following table different from the value returned:
Further, the design process of the serial communication protocol is as follows:
Gateway service program receives the data frame from application layer and is then packaged into serial port protocol data by parsing, soSerial port protocol data are sent to coordinator, command format such as following table by serial ports afterwards:
| Mark | SOP | LEN | CMD | DATA | FCS |
| Length (B) | 1 | 1 | 2 | N | 1 |
Wherein SOP is set as 0xFE;LEN:The length of DATA, CMD command formats such as following table:
DATA data formats are 02+NETADD+APP_CMD+APP_DATA, and wherein NETADD is for 2 byte network of nodeLocation, APP_DATA are data content, and wherein APP_CMD is defined as follows table:
If coordinator inquires network address (APP_CMD 0101) according to sensor node MAC Address, in the domains DATANA1 NA2 are the network address (0000) of coordinator node, and APP_DATA is the MAC Address of the sensor node to be inquired;IfInstruction coordinator according to the network address inquiry MAC Address (APP_CMD 0102) of sensor node, then NA1 in the domains DATANA2 is the network address (0000) of coordinator node, and APP_DATA is the network address of the sensor node to be inquired;IfIndicate that this data of coordinator will be transmitted to the application program (APP_CMD 0000) of sensor node, then NA1 NA2 in the domains DATAFor the network address of sensor node, APP_DATA is the data to be sent, serial ports transmission data and the communication for receiving dataJourney is as follows:
1, serial data is sent, and gives the node transmission data process of MAC Address:
1) network address is inquired by MAC Address, sends 1 instruction, respond 2 instructions, wherein the instruction sent is numberAccording to 2 formats are sent, for inquiring network address, data response 3 is to send successfully return instruction, and data response 4 is with returning to networkLocation;
Data send 2:SOP+LEN+CMD+02+NA1+NA2+APP_CMD+MAC+FCS;
Data response 3:SOP+CMD+APP_CMD+RET+FCS;
Data response 4:
SOP+LEN+CMD+02+NETADD+APP_CMD+MAC+NETADD+FCS;
2) node transmission data, data is given to send 3 and send Send_Data to network address NETADD by network address,Data response 5, which returns, successfully to be instructed.
Data send 3 formats:
SOP+LEN+CMD+02+NETADD+APP_CMD+Send_Data+FCS;
Data respond 5 formats:SOP+CMD+APP_CMD+RET+FCS;
2, serial ports receives the communication of data, there is 2 processes:
1) serial ports receives the data Send_Data that known network addressed nodes are sent
Receive data format 1:
SOP+LEN+CMD+02+NETADD+APP_CMD+Send_Data+FCS
2) it is MAC Address by network address translation, transmission data 4 sends inquiry MAC Address order, and data response 6 is beamed backCorrect to send instruction, MAC Address is beamed back in data response 7:
Data send 4 formats:
SOP+LEN+CMD+02+NETADD+APP_CMD+NETADD+FCS;
Data respond 6 formats:SOP+CMD+APP_CMD+RET+FCS;
Data respond 7 formats:
SOP+LEN+CMD+02+NA1+NA2+APP_CMD+MAC+FCS;
3, gateway sends control command to coordinator or data acquisition command can be carried out equipment control and data are adoptedCollect.
Further, the design process of the node communication protocol is as follows:
Node data frame traffic format:Destination address+order id+ data, as shown in table 7, wherein communication protocol data latticeFormula Uniting is:{ [parameter]=[value], { [parameter]=[value] ... ... }, per data using " { } " as bebinning character;Used between parameter inside " { } " ";" separate:
1) defined variable A0~A7, the information content for transmitting sensor values or carrying, permission are that can only pass through taxValue "" come carry out inquiry current variable numerical value, such as:Temperature Humidity Sensor indicates that temperature value, A1 indicate humidity value using A0;
2) state of 0~A7 of Bit0~Bit7 difference corresponding As of defined variable D0, D0,0 indicates to forbid uploading, and 1 indicates to permitPerhaps active upload;
3) definition control variable CD0/OD0, operates the position of D0, and CD0 indicates that clear 0 operation in position, CD0 indicate position 1Operation, such as exhaust fan, CD0=1 indicate to open exhaust fan;
4)D1:D1 indicate control coding, by assignment "" come carry out inquiry current variable numerical value, according to sensor categoryProperty carrys out custom feature;
5)CD1/OD1:The position of D1 is operated, CD1 indicates that clear 0 operation in position, OD1 indicate that position 1 operates;
Node communication protocol frame format such as following table:
| Command context | Destination address | Order id | Data |
| Length | 2 bytes | 2 bytes | 2 bytes |
Wherein, destination address is the network short address of node;Order the value and its function such as following table of id:
For different sensor nodes, sensor has data acquisition, alarm class sensor and control class sensor, ifControl command is sent to sensor node, the parameter value of data and its meaning are as follows in APP_MSG:
1, data acquisition sensor, parameter identification 01MMT-0x3FMMT, wherein first 8 represent device type, MM generationsTable function value, wherein 01 represents application layer to bottom transmission acquisition, 02 represents bottom sensor returns to numerical value to upper layerOrder, T is represented reports time interval automatically, acquires class sensor function example such as following table:
2, class sensor, parameter identification 41XXNN-0x6FXXNN are controlled, wherein first 8 represent device type, XX is representedFunction value, wherein 01 represents application layer to bottom transmission control command, 02 represents bottom sensor returns to state of a control to upper layerOrder, NN representatives are turned on or off order, control class sensor example such as following table:
Further, by serial ports and gateway into row data communication, gateway takes the information that coordinator acquires terminal nodeAfter business program receives serial data, serial data is packaged into the IP network packet of Socket;As long as after client-side program operationThe data that bottom coordinator sends over can be read by establishing Socket connections.Application layer terminal instructs to send oneThe terminal node of bottom is controlled, by IP network by data distributing to the gateway service program, then gateway program is by dataIt is sent to serial ports, final coordinator sends information to terminal node after serial ports reads data, by ZigBee-network and carries outData acquire and equipment control.
Compared with prior art, the advantageous effect of technical solution of the present invention is:
1, a kind of agriculture Internet of Things communication protocol standard is established, the past, most of agriculture Internet of things system was defined using itselfCommunication protocol, lack unified communication standard, the present invention proposes a kind of communication protocol standard, is beneficial to promote and is related to technologyExtensive agricultural Internet of Things, realizes that agricultural data is shared, meets the demand for development of agriculture big data and precision agriculture;
2, it is respectively application layer communication protocol, serial communication protocol and node communication to have preferable autgmentability, communication protocolAgreement, three layers of communication protocol are easy extension, and node communication protocol is identified by spreading parameter, can easily realize various acquisition classesData encapsulation and transmission, application layer communication protocol with control class sensor realize the parameter to node using object dictionary modeIt is acquired and controls with state, facilitate and realize various different software application layers, such as the mobile terminals Android or the ends Web of PC machine,It is easy to build various personalization systems;
3, agriculture Internet of things system, which is realized, simplifies, and Internet of Things is built using the intelligent gateway of three layers of communication protocol structureSystem, it is only necessary to which the exploitation that application layer is paid close attention in conjunction with communication protocol can quickly and easily realize the portion of agriculture Internet of things systemAdministration, avoid because the technology of Internet of things system extensively due to cause application to be difficult to promote, reduce agriculture Internet of things system applicationComplexity accelerates the application for promoting agriculture Internet of Things.
Description of the drawings
Communication protocol relational graphs of the Fig. 1 between application layer, gateway, coordinator and node;
Fig. 2 is the communication protocol conspiracy relation figure of application layer communication protocol, serial communication protocol and node;
Fig. 3 is agriculture internet of things functional function diagram;
Fig. 4 is the data flow figure in agriculture Internet of things system;
Fig. 5 is the Socket service structure chart of gateway service program.
Specific implementation mode
The attached figures are only used for illustrative purposes and cannot be understood as limitating the patent;
In order to more preferably illustrate that the present embodiment, the certain components of attached drawing have omission, zoom in or out, actual product is not representedSize;
To those skilled in the art, it is to be appreciated that certain known features and its explanation, which may be omitted, in attached drawing's.
The following further describes the technical solution of the present invention with reference to the accompanying drawings and examples.
Embodiment 1
A kind of agricultural intelligent networking gateway design method, includes the following steps:
Agriculture Internet of things system is designed according to Internet of Things framework, and wireless sense network is built using ZigBee technologyNetwork, network are divided into sensing layer, network layer, information processing layer, integrated application, in the nodal terminal that sensing layer is designed by CC2530Wireless network is realized with coordinator, and designs transmission and processing that a set of communication protocol completes data, and communication protocol includes answeringWith 3 layers of layer communication protocol, serial communication protocol and node communication protocol composition, application layer communication protocol and serial communication protocol are logicalIt crosses gateway service program to be converted, third node layer communication protocol realizes that the encapsulation of wireless network data, detailed design are as follows:
1) communication of the first layer between application program and gateway is designed as application layer communication protocol, application layer and intelligenceIt is communicated between gateway;
2) communication of the second layer between gateway and coordinator, is designed as serial communication protocol;
3) communication of the third layer between coordinator and ordinary node is designed as node communication protocol.
Three layers of communication protocol complete the data sampling and processing of agriculture Internet of Things and send and control, application layer, gateway, associationAdjust the communication protocol relational graph between device and node as shown in Figure 1.
The agriculture intelligent networking gateway communication protocol that the present invention designs is mainly used for realizing that the data of agriculture Internet of Things are adoptedCollect the encapsulation and transmission of terminal control.
Application layer communication protocol designs:
Application layer communication protocol detailed orders format is as shown in table 1.
1 application layer communication protocol format of table
| Mark | SOP | CMD | LEN | DATA | FCS |
| Length (Bit) | 1 | 2 | 1 | N | 1 |
Wherein SOP is that order starts to indicate, and it is 0x02 to take fixed value;CMD is order mark code, for distinguishing different livesIt enables, detailed functions are as shown in table 2.
2 application layer communication protocol CMD functions of table
| CMD | Transmission data | Responsive state | Response data |
| Value | 0x2900 | 0x6900 | 0x6980 |
| Data flow | Terminal->Gateway | Gateway->Terminal | Gateway->Terminal |
LEN:The length of DATA, wherein LEN=0 do not have the domains data then;DATA data formats are EP+APP_MSG, wherein EP1 byte of length, take fixed value be 0x02, wherein APP_MSG be data packet node communication protocol;FCS is from CMD to DATAExclusive or and, application layer director data send format be:
Data send 1:
Transmission data:SOP+CMD+LEN+EP+APP_MSG+FCS (1)
After order is sent successfully, gateway returns to 2 message, and the 1st article of information is gateway response message, wherein including response shapeState RET, state 0x00, then represent and respond successfully, then represents response failure for 0x01, after responding successfully, gateway returns to the 2nd articleMessage, message content are the instruction replied application layer and sent.
Data response 1:SOP+CMD+APP_CMD+RET+FCS (2)
Data response 2:SOP+CMD+LEN+ADD+2B CMD+RESULT+FCS (3)
Wherein " 2B CMD " is sent different from the value returned, and function correspondence is as shown in table 3.
3 2B CMD function correspondences of table
Serial communication protocol designs:
Gateway service program receives the data frame from application layer and is then packaged into serial port protocol data by parsing, soSerial port protocol data are sent to coordinator by serial ports afterwards, command format is as shown in table 4.
4 serial communication protocol format of table
| Mark | SOP | LEN | CMD | DATA | FCS |
| Length (B) | 1 | 1 | 2 | N | 1 |
Wherein SOP is set as 0xFE;LEN:The length of DATA, CMD command formats are as shown in table 5.
5 CMD command functions of table
| CMD | Transmission data | Receive data | Receive data |
| Numerical value | 0x2900 | 0x6900 | 0x6980 |
| Function | Application layer is sent | Coordinator is properly received instruction | Node returned data |
DATA data formats are 02+NETADD+APP_CMD+APP_DATA, and wherein NETADD is for 2 byte network of nodeLocation, APP_DATA are data content, and wherein APP_CMD definition is as shown in table 6.
6 application layer communication protocol format of table
| APP_CMD | Function |
| 0000 | Notice coordinator data need the application program for being transmitted to node |
| 0101 | Notify coordinator according to given mac address search network address |
| 0102 | Notify coordinator according to the given addresses network address lookup mac |
If coordinator inquires network address (APP_CMD be 01 01) according to sensor node MAC Address, in the domains DATANA1 NA2 are the network address (0000) of coordinator node, and APP_DATA is the MAC Address of the sensor node to be inquired;IfInstruction coordinator according to the network address inquiry MAC Address (APP_CMD 0102) of sensor node, then NA1 in the domains DATANA2 is the network address (0000) of coordinator node, and APP_DATA is the network address of the sensor node to be inquired;IfIndicate that this data of coordinator will be transmitted to the application program (APP_CMD 0000) of sensor node, then NA1 NA2 in the domains DATAFor the network address of sensor node, APP_DATA is the data to be sent.Serial ports transmission data and the communication for receiving dataJourney is as follows
1, serial data is sent, and gives the node transmission data process of MAC Address
1) network address is inquired by MAC Address, sends 1 instruction, respond 2 instructions, wherein the instruction sent is numberAccording to 2 formats are sent, for inquiring network address, data response 3 is to send successfully return instruction, and data response 4 is with returning to networkLocation;
Data send 2:SOP+LEN+CMD+02+NA1+NA2+APP_CMD+MAC+FCS (4)
Data response 3:SOP+CMD+APP_CMD+RET+FCS (5)
Data response 4:
SOP+LEN+CMD+02+NETADD+APP_CMD+MAC+NETADD+FCS (6)
2) node transmission data, data is given to send 3 and send Send_Data to network address NETADD by network address,Data response 5, which returns, successfully to be instructed.
Data send 3 formats:
SOP+LEN+CMD+02+NETADD+APP_CMD+Send_Data+FCS (7)
Data respond 5 formats:SOP+CMD+APP_CMD+RET+FCS (8)
2, serial ports receives the communication of data, there is 2 processes
1) serial ports receives the data Send_Data that known network addressed nodes are sent
Receive data format 1:
SOP+LEN+CMD+02+NETADD+APP_CMD+Send_Data+FCS (9)
2) it is MAC Address by network address translation, transmission data 4 sends inquiry MAC Address order, and data response 6 is beamed backCorrect to send instruction, MAC Address is beamed back in data response 7
Data send 4 formats:
SOP+LEN+CMD+02+NETADD+APP_CMD+NETADD+FCS (10)
Data respond 6 formats:
SOP+CMD+APP_CMD+RET+FCS (11)
Data respond 7 formats:
SOP+LEN+CMD+02+NA1+NA2+APP_CMD+MAC+FCS (12)
3, gateway sends control command to coordinator or data acquisition command can be carried out equipment control and data are adoptedCollect.
For example, when application layer reads photosensitive sensor collected illumination intensity value, serial ports is first sent commands to, from coordinationDevice obtains the network address of photosensitive sensor, then sends a command to the value that network address reads photosensitive sensor.
Node communication protocol design:
Node data frame traffic format:Destination address+order id+ data, as shown in table 7, wherein communication protocol data latticeFormula Uniting is:{ [parameter]=[value], { [parameter]=[value] ... ... }, per data using " { } " as bebinning character;Used between parameter inside " { } " ";" separate.
1) defined variable A0~A7, the information content for transmitting sensor values or carrying, permission are that can only pass through taxValue "" come carry out inquiry current variable numerical value, such as:Temperature Humidity Sensor indicates that temperature value, A1 indicate humidity value using A0;
2) state of 0~A7 of Bit0~Bit7 difference corresponding As of defined variable D0, D0,0 indicates to forbid uploading, and 1 indicates to permitPerhaps active upload;
3) definition control variable CD0/OD0, operates the position of D0, and CD0 indicates that clear 0 operation in position, CD0 indicate position 1Operation, such as exhaust fan, CD0=1 indicate to open exhaust fan;
4)D1:D1 indicate control coding, by assignment "" come carry out inquiry current variable numerical value, according to sensor categoryProperty carrys out custom feature;
5)CD1/OD1:The position of D1 is operated, CD1 indicates that clear 0 operation in position, OD1 indicate that position 1 operates;
7 node communication protocol frame format of table
| Command context | Destination address | Order id | Data |
| Length | 2 bytes | 2 bytes | 2 bytes |
Wherein, destination address is the network short address of node;Order value and its function of id as shown in table 8.
Table 8 orders id functions
For different sensor nodes, sensor has data acquisition, alarm class sensor and control class sensor, ifControl command is sent to sensor node, the parameter value of data and its meaning are as follows in APP_MSG:
1, data acquisition sensor, parameter identification 01MMT-0x3FMMT, wherein first 8 represent device type, MM generationsTable function value, wherein 01 represents application layer to bottom transmission acquisition, 02 represents bottom sensor returns to numerical value to upper layerOrder, T representatives report time interval automatically, such as to allow photosensitive sensor every 5 seconds active reporting data, then in APP_MSGOrder data part should be:010105, the 0102MM in the order that photosensitive sensor returns indicates that photosensitive sensor is collectedIllumination intensity value is MM, and acquisition class sensor function example is as shown in table 9.
Table 9 acquires class sensor parameters design example
2, class sensor, parameter identification 41XXNN-0x6FXXNN are controlled, wherein first 8 represent device type, XX is representedFunction value, wherein 01 represents application layer to bottom transmission control command, 02 represents bottom sensor returns to state of a control to upper layerOrder, NN representatives are turned on or off order, for example, to allow flame sensor open detection function, then the number in APP_MSGAccording to partly should be:410101,410201 in the order that relay returns open relay, control class sensor example such as tableShown in 10.
Table 10 controls class sensor parameters design example
The communication protocol of application layer communication protocol, serial communication protocol and node, cooperates with each other, the common number for completing gatewayAccording to encapsulation and transmission, the conspiracy relation of three agreements is as shown in Figure 2.
The intelligent gateway course of work:
It is a kind of agriculture internet of things functional function diagram as shown in Figure 3, it is flat that intelligent gateway program operates in AndroidPlatform connects the bridge of application layer and ZigBee wireless networks, and Fig. 4 is the data flow in agriculture Internet of things system, describes in detailFrom ZigBee node to coordinator, the entire data flow of coordinator to gateway and gateway to Android client programTo.
By serial ports and gateway into row data communication, gateway service program receives the information that coordinator acquires terminal nodeAfter serial data, serial data is packaged into the IP network packet of Socket;As long as establishing Socket after client-side program operationConnection can read the data that bottom coordinator sends over.Application layer terminal controls bottom to send an instructionTerminal node, by IP network by data distributing to the gateway service program, then gateway program sends the data to serial ports,Final coordinator sends information progress data acquisition to terminal node by ZigBee-network and sets after serial ports reads dataStandby control.
Intelligent gateway service routine designs:
Gateway service program realizes two functions:It is interacted with ZigBee coordinators;Establish Socket service.GatewaySocket service not only supports the connection of local client, while long-range client being supported to connect, in gateway service programSocket service establishes the bridge transmitted between serial ports and application layer terminal.According to Functional Design, in gateway service programCreate two services:Serial ports monitors service Socket Client, Socket Server services, Socket Server service prisonsIt listens and handles the connections of socket clients and sent with data, the effect of Socket Client is attached to Socket ServerEnd, while handling the data that serial port service thread sends over.Fig. 5 is the Socket service structure chart of gateway service program.
The present invention has following features:
1) a kind of agriculture Internet of Things communication protocol standard is established.Past, most of agriculture Internet of things system was defined using itselfCommunication protocol, lack unified communication standard, the present invention proposes a kind of communication protocol standard, is beneficial to promote and is related to technologyExtensive agricultural Internet of Things, realizes that agricultural data is shared, meets the demand for development of agriculture big data and precision agriculture;
2) there is preferable autgmentability.Communication protocol is respectively application layer communication protocol, serial communication protocol and node communicationAgreement, three layers of communication protocol are easy extension, and node communication protocol is identified by spreading parameter, can easily realize various acquisition classesData encapsulation and transmission, application layer communication protocol with control class sensor realize the parameter to node using object dictionary modeIt is acquired and controls with state, facilitate and realize various different software application layers, such as the mobile terminals Android or the ends Web of PC machine,It is easy to build various personalization systems;
3) preferable communication performance.From test result analysis, intelligent gateway has stronger data-handling capacity and higherCommunication efficiency, using the correct result of test also demonstrate communication protocol correctness and intelligent gateway in the agriculture Internet of Things of structureThe feasibility of net system provides technical support for the agriculture Internet of things system of structure;
4) agriculture Internet of things system, which is realized, simplifies.Internet of Things is built using the intelligent gateway of three layers of communication protocol structureSystem, it is only necessary to which the exploitation that application layer is paid close attention in conjunction with communication protocol can quickly and easily realize the portion of agriculture Internet of things systemAdministration, avoid because the technology of Internet of things system extensively due to cause application to be difficult to promote, reduce agriculture Internet of things system applicationComplexity accelerates the application for promoting agriculture Internet of Things;
5) application field is wide.The intelligent gateway that the present invention designs can be applied in various agriculture fields, and such as field planting is setIn the information collection and environmental Kuznets Curves of applying the fields such as gardening, livestock and poultry cultivation, aquaculture, be conducive to promote agricultural production automaticChange, operation precision and IT application in management lay the foundation for agriculture Internet of Things extensive use.
The same or similar label correspond to the same or similar components;
Position relationship described in attached drawing is used to only for illustration, should not be understood as the limitation to this patent;
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pairThe restriction of embodiments of the present invention.For those of ordinary skill in the art, may be used also on the basis of the above descriptionTo make other variations or changes in different ways.There is no necessity and possibility to exhaust all the enbodiments.It is all thisAll any modification, equivalent and improvement etc., should be included in the claims in the present invention made by within the spirit and principle of inventionProtection domain within.