CN109413217B - Agricultural Internet of things data communication method - Google Patents
Agricultural Internet of things data communication method Download PDFInfo
- Publication number
- CN109413217B CN109413217B CN201811650873.1A CN201811650873A CN109413217B CN 109413217 B CN109413217 B CN 109413217B CN 201811650873 A CN201811650873 A CN 201811650873A CN 109413217 B CN109413217 B CN 109413217B
- Authority
- CN
- China
- Prior art keywords
- block
- detection module
- wireless detection
- wireless
- upper computer
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D21/00—Measuring or testing not otherwise provided for
- G01D21/02—Measuring two or more variables by means not covered by a single other subclass
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Signal Processing (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention provides an agricultural Internet of things data communication method, which comprises the following steps: the system comprises an upper computer and a plurality of wireless detection modules, wherein the upper computer is used for sending and displaying an initialization command, initialization parameters and wireless transmission data; the wireless detection module comprises a data acquisition unit and a wireless transmission unit, and is used for respectively detecting atmospheric temperature and humidity, soil temperature and humidity, illuminance and CO2A concentration parameter. An address block, a data block, an electric quantity information block, a request block and a command block are designed, and the upper computer adjusts the priority state in real time according to the request times and the electric quantity information sent by the wireless detection module, so that the communication sequence is dynamically adjusted, and the reliability of communication is ensured. In order to distinguish each communication block, a type section is set, and the efficiency of multi-machine communication is effectively improved. The invention is simple to realize and meets the requirement of practical application.
Description
Technical Field
The invention relates to a data communication method for an agricultural Internet of things.
Background
China is a large country for agricultural production, agriculture is the root of national economy, and agriculture has the characteristics of various objects, dispersion, wide regions and the like, so that the acquisition of agricultural data information is very difficult in most cases. With the rapid development of the internet of things technology, the application of the internet of things technology in an agricultural system has a wide application prospect. Through the agricultural internet of things technology, human resources can be effectively saved, the influence of people on the farmland environment is reduced, and accurate crop environment and crop information are obtained. Data transmission and processing methods of intelligent agricultural internet of things are proposed, for example, an active induction type agricultural internet of things deep routing networking method (application number 201210226306.X) and a plurality of data transmission and processing methods of agricultural internet of things (application number 201510563417.3). Because the agricultural internet of things is typical multi-machine communication, and the electric quantity of the detection module seriously restricts the working time of the system, how to effectively improve the communication efficiency and reliability still needs to be solved urgently.
Disclosure of Invention
In view of the shortcomings of the prior art, the invention aims to provide an agricultural internet of things data communication method, which comprises the following steps: the system comprises an upper computer and a plurality of wireless detection modules, wherein the upper computer is used for sending and displaying an initialization command, an initialization parameter, wireless transmission data; wireless detection modules for respectively detectingMeasuring atmospheric temperature and humidity, soil temperature and humidity, illuminance and CO2The concentration parameter, wireless detection module includes data acquisition unit and wireless transmission unit, the data acquisition unit with wireless transmission unit connects, and every wireless detection module only communicates with the host computer.
The method comprises the following steps that an address block, a data block, an electric quantity information block, a request block and a command block are used in the communication process of a wireless detection module and an upper computer, the upper computer determines the sending sequence of the wireless detection module, sends the command block and informs the wireless detection module to send data, and the upper computer determines the sending sequence: priority state/radio module number.
The priority state is determined according to the electric quantity information and the request times of the wireless detection module, the same information request times are increased once, the priority state is increased by one level, the electric quantity level is decreased by one level, and the priority state is increased by two levels.
Preferably, the wireless detection module uses an address block, a data block, an electric quantity information block, a request block and a command block in the communication process with the upper computer, each block comprises a type section for distinguishing the types of various blocks, and each block is provided with a start bit.
Preferably, the number of priority states and the number of power levels are designed according to the actual needs of the system.
Preferably, when the power level is lowest, the direct priority of the wireless detection module is adjusted to be highest.
In summary, the invention provides an agricultural internet of things data communication method, which is designed for multi-machine communication, and includes an address block, a data block, an electric quantity information block, a request block and a command block, wherein the wireless detection module is used for sending request times and electric quantity information, and adjusting the priority state in real time, so that the communication order is dynamically adjusted, and the communication reliability is ensured. In order to distinguish each communication block, a type section is set, and the efficiency of multi-machine communication is effectively improved.
Drawings
FIG. 1 is a block diagram of an embodiment of the present invention.
Fig. 2 is a communication flow chart according to an embodiment of the invention.
Fig. 3 is a block diagram of communication according to an embodiment of the invention.
FIG. 4 is a priority state diagram according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with specific examples, and those skilled in the art can easily implement the embodiments disclosed in the present specification.
The invention provides an agricultural Internet of things data communication method, and the block diagram of the embodiment of the invention is shown in figure 1, wherein 1 in the figure represents an upper computer, 2, 3 and 4 represent wireless detection modules, 11 is a wireless communication unit for the communication of the upper computer, 21, 31 and 41 are data acquisition units, and the method is mainly used for detecting atmospheric temperature and humidity, soil temperature and humidity, illuminance and CO2Concentration and other parameters, 22, 32 and 42 are wireless communication units, the data acquisition unit is connected with the wireless transmission unit, and each wireless detection module is only communicated with an upper computer. The embodiment comprises the following steps: an upper computer and three wireless detection modules, wherein the communication flow chart is shown in fig. 2, the upper computer sends an initialization command, and after the initialization of the three wireless detection modules is completed, the three wireless detection modules detect the atmospheric temperature and humidity, the soil temperature and humidity, the illuminance and the CO2And the parameters such as concentration and the like are sent to an upper computer, and then an address block, a request block and an electric quantity information block are sent to the upper computer. And the upper computer calculates a sending sequence according to the request block and the electric quantity information block, sends an address block and a command block according to the sending sequence and informs the wireless detection module of sending data. The data blocks to be communicated are shown in fig. 3, each block includes a type field for distinguishing the types of the various blocks, each block is provided with a start bit, and other blocks have similar structures. The method for determining the sending sequence by the upper computer comprises the following steps: priority state/radio module number.
The number of priority states and the number of electric quantity grades are designed according to the actual needs of the system, and when the electric quantity grade is lowest, the direct priority state of the detection module is adjusted to be highest. The priority states of the embodiment of the present invention are shown in fig. 4, and it is assumed that the priority states are 001, 010, 011, 100, 101, 110, and 111. The priority state is determined according to the power information and the request times sent by the wireless detection module, the same information request times are increased once, and the priority state is increased by one level, as shown by a solid arrow in fig. 4. The power level is lowered by one step and the priority status is raised by two steps as shown by the dashed arrow in fig. 4.
To further understand the above method of calculating the sending order, the order method is further described below:
supposing that the system has three wireless detection modules to send data, the three wireless detection modules send request blocks and electric quantity information blocks respectively, the request times of each module are 1 at the moment, the electric quantity information is 3-level sufficient, the priority states of the three wireless detection modules are 001 at the moment, the wireless detection modules 2, 3 and 4 are obtained by calculation according to the sequence of the priority states/wireless module numbers, the sequence of the wireless detection modules is 001/2, 001/3 and 001/4 respectively, and the host sends address blocks and command blocks to the wireless detection module 2, so that the wireless detection module 2 sends data blocks, and the first data sending is completed.
The second wireless detection module No. 2, 3 and 4 sends the request block and the electric quantity information block again, and the sequence of each wireless detection module is calculated as follows:
the number of times of the request of the wireless detection module No. 2 is 1, the electric quantity information is sufficient in 3 grades, the priority state is 001, and the sequence is the priority state/the serial number of the wireless module is 001/2;
the number of times of request of the wireless detection module No. 3 is 2, the electric quantity information is common in 2 levels, the priority state is 100, and the sequence is the priority state/the serial number of the wireless module is 100/3;
the number 4 wireless detection module requests for 2, the power information is full in 3 levels, the priority state is 011, and the sequence is the priority state/the wireless module number is 011/4;
then, the sequence of the wireless detection module 3 is the highest, and the host sends an address block and a command block to the wireless detection module 3, so that the wireless detection module 3 sends a data block to complete the second data transmission.
And the No. 2, 3 and 4 wireless detection modules send the request block and the electric quantity information block again for the third time, and the sequence of each wireless detection module is calculated as follows:
the number 2 wireless detection module requests for 2, the power information is common in level 2, the priority state is 100, and the sequence is the priority state/the wireless module number is 100/2;
no. 3 wireless detection module has no request;
the number 4 wireless detection module requests for 3 times, the power information is 2-level common, the priority state is 101, and the sequence is the priority state/wireless module number 101/4;
then, the sequence of the wireless detection module 2 is the highest, and the host sends an address block and a command block to the wireless detection module 2, so that the wireless detection module 2 sends a data block to complete the third data transmission.
The fourth wireless detection module No. 2, 3 and 4 sends the request block and the electric quantity information block again, and the sequence of each wireless detection module is calculated as follows:
no. 2 wireless detection module has no request;
no. 3 wireless detection module has no request;
the number 4 wireless detection module requests 4 times, the power information is common in level 2, the priority state is 110, and the sequence is the priority state/the wireless module number is 110/4;
then, the sequence of the wireless detection module No. 4 is the highest, and the host sends an address block and a command block to the wireless detection module 4, so that the wireless detection module 4 sends a data block to complete the fourth data transmission. The communication of the current round is finished.
In summary, the invention provides an agricultural internet of things data communication method, which is designed for multi-machine communication, and includes an address block, a data block, an electric quantity information block, a request block and a command block, wherein the wireless detection module is used for sending request times and electric quantity information, and adjusting the priority state in real time, so that the communication order is dynamically adjusted, and the communication reliability is ensured. In order to distinguish each communication block, a type section is set, and the efficiency of multi-machine communication is effectively improved. The invention effectively overcomes various defects in the prior art and has high industrial utilization value.
Claims (4)
1. An agricultural Internet of things data communication method is characterized by comprising the following steps: the upper computer is used for sending and displaying an initialization command, an initialization parameter and wireless transmission data;
a plurality of wireless detection modules for respectively detecting atmospheric temperature and humidity, soil temperature and humidity, illuminance and CO2The wireless detection module comprises a data acquisition unit and a wireless transmission unit, the data acquisition unit is connected with the wireless transmission unit, and each wireless detection module is only communicated with an upper computer;
the method comprises the following steps that an address block, a data block, an electric quantity information block, a request block and a command block are used in the communication process of a wireless detection module and an upper computer, the upper computer determines the sending sequence of the wireless detection module, sends the command block and informs the wireless detection module to send data, and the upper computer determines the sending sequence: the order is the priority state/wireless module number;
the priority state is determined according to the electric quantity information and the request times of the wireless detection module, the same information request times are increased once, the priority state is increased by one level, the electric quantity level is decreased by one level, and the priority state is increased by two levels.
2. The agricultural internet of things data communication method according to claim 1, characterized in that: the wireless detection module uses an address block, a data block, an electric quantity information block, a request block and a command block in the communication process with an upper computer, each block comprises a type section for distinguishing the types of various blocks, and each block is provided with a start bit.
3. The agricultural internet of things data communication method according to claim 1, characterized in that: the number of priority states and the number of electric quantity grades are designed according to the actual needs of the system.
4. The agricultural internet of things data communication method according to claim 1, characterized in that: and when the electric quantity grade is lowest, directly adjusting the priority of the wireless detection module to be highest.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811650873.1A CN109413217B (en) | 2018-12-31 | 2018-12-31 | Agricultural Internet of things data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811650873.1A CN109413217B (en) | 2018-12-31 | 2018-12-31 | Agricultural Internet of things data communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109413217A CN109413217A (en) | 2019-03-01 |
CN109413217B true CN109413217B (en) | 2021-06-08 |
Family
ID=65461721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811650873.1A Active CN109413217B (en) | 2018-12-31 | 2018-12-31 | Agricultural Internet of things data communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109413217B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112133072B (en) * | 2020-09-23 | 2021-07-06 | 中国兵器工业集团第二一四研究所苏州研发中心 | Test system and test method for LoRa wireless data acquisition device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736019A (en) * | 2012-07-17 | 2012-10-17 | 宁波工程学院 | Flexibility detection system and method of circuit board |
CN104796972A (en) * | 2015-04-15 | 2015-07-22 | 浙江大学 | Communication method for reducing power consumption of wireless sensors and application of communication method |
CN105739575A (en) * | 2016-01-29 | 2016-07-06 | 中国农业大学 | Greenhouse vegetable environmental parameter data fusion method, data fusion device, and data fusion system |
CN105933388A (en) * | 2016-04-11 | 2016-09-07 | 贵州大学 | WSN data layered fusion method for plant growth monitoring |
CN106850373A (en) * | 2017-02-24 | 2017-06-13 | 宁波工程学院 | Towards the non-demolition formula dynamically optimized scheduling method of CAN |
CN107395397A (en) * | 2017-06-23 | 2017-11-24 | 深圳市盛路物联通讯技术有限公司 | A kind of power consumption control method and device based on Internet of Things |
CN108513342A (en) * | 2017-02-27 | 2018-09-07 | 大唐移动通信设备有限公司 | A kind of dispatching method of internet-of-things terminal, base station and internet-of-things terminal |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136828B (en) * | 2007-09-27 | 2010-10-06 | 广州市聚晖电子科技有限公司 | RS485 based multi-host machine wired serial communication method |
US8930965B1 (en) * | 2012-02-28 | 2015-01-06 | Marvell International Ltd | Event-driven state-machine sequencer |
CN105354159A (en) * | 2015-09-28 | 2016-02-24 | 上海海视电子有限公司 | RS485 distributed bus system based control method |
CN107528798B (en) * | 2016-06-22 | 2020-09-08 | 宁波工程学院 | RS485 bus system-based optimal scheduling method |
CN106155952B (en) * | 2016-06-24 | 2019-04-09 | 武汉光迅科技股份有限公司 | A kind of I2C multi-computer communication method with priority arbitration mechanism |
CN108170104A (en) * | 2016-12-07 | 2018-06-15 | 杨新高 | A kind of high intelligent agricultural machinery equipment and system |
US10581960B2 (en) * | 2016-12-22 | 2020-03-03 | Nicira, Inc. | Performing context-rich attribute-based load balancing on a host |
CN108390807B (en) * | 2018-02-11 | 2020-12-15 | 宁波工程学院 | Multi-machine communication method based on single chip microcomputer |
-
2018
- 2018-12-31 CN CN201811650873.1A patent/CN109413217B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102736019A (en) * | 2012-07-17 | 2012-10-17 | 宁波工程学院 | Flexibility detection system and method of circuit board |
CN104796972A (en) * | 2015-04-15 | 2015-07-22 | 浙江大学 | Communication method for reducing power consumption of wireless sensors and application of communication method |
CN105739575A (en) * | 2016-01-29 | 2016-07-06 | 中国农业大学 | Greenhouse vegetable environmental parameter data fusion method, data fusion device, and data fusion system |
CN105933388A (en) * | 2016-04-11 | 2016-09-07 | 贵州大学 | WSN data layered fusion method for plant growth monitoring |
CN106850373A (en) * | 2017-02-24 | 2017-06-13 | 宁波工程学院 | Towards the non-demolition formula dynamically optimized scheduling method of CAN |
CN108513342A (en) * | 2017-02-27 | 2018-09-07 | 大唐移动通信设备有限公司 | A kind of dispatching method of internet-of-things terminal, base station and internet-of-things terminal |
CN107395397A (en) * | 2017-06-23 | 2017-11-24 | 深圳市盛路物联通讯技术有限公司 | A kind of power consumption control method and device based on Internet of Things |
Non-Patent Citations (1)
Title |
---|
基于RS-422总线的单片机多机通讯接口的设计与实现;桑胜举等;《泰山学院学报》;20081130;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109413217A (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103048985B (en) | Agriculture feelings information integral harvester | |
CN105101406A (en) | Wireless intensity based indoor positioning method and system | |
CN111399421A (en) | Factory energy monitoring and management system based on cloud platform | |
CN104333492A (en) | Method and device for evaluating rationality of communication network structure | |
CN201905101U (en) | Remote orchard intelligent irrigation system based on ZigBee and GPRS (general packet radio service) | |
CN106023643A (en) | Internet of things-based novel vehicle detection device | |
CN109413217B (en) | Agricultural Internet of things data communication method | |
CN100481144C (en) | Electronic monitor system for termite damage based on radio frequency | |
CN105160858A (en) | Intelligent wireless data transmission gateway special for internet of things | |
CN117499442B (en) | Data efficient processing method for Internet of things energy monitoring device | |
CN108156595B (en) | Preamble resource allocation method based on timing advance command in machine communication | |
CN105577817A (en) | Agricultural Internet of Things system based on 433M communication | |
CN116405503A (en) | Unmanned aerial vehicle cluster network topology inference method | |
CN106412935B (en) | A kind of network topology structure method for building up based on Complex Networks Theory | |
CN106793066A (en) | A kind of wifi localization methods and server based on two-way signaling intensity data | |
CN103217897A (en) | Method and system for optimizing screen refresh rate of touch-screen smart mobile terminal | |
CN104239557B (en) | The monitoring method and device of promoted account | |
CN202421840U (en) | Agriculture information acquisition apparatus and system | |
CN107525909A (en) | A kind of automatic distribution method in soil monitoring point position and system | |
CN103473362B (en) | The method of Data Migration, system and receiving port module | |
CN212163389U (en) | A multi-functional thing networking gateway for agricultural environmental monitoring | |
CN201117079Y (en) | Termite harm electronic monitoring and controlling system based on wireless radio frequency | |
CN204730880U (en) | Based on Zigbee intelligent network numeric type environmental detection set | |
CN214310493U (en) | Multi-level soil moisture content monitoring system | |
CN204408390U (en) | A kind of system realizing product self-teaching function |
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 | ||
CB03 | Change of inventor or designer information |
Inventor after: Luo Zaifei Inventor after: He Jinbao Inventor before: He Jinbao |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |