CN111934751A - Agricultural environment data acquisition system and method based on Beidou short message - Google Patents

Agricultural environment data acquisition system and method based on Beidou short message Download PDF

Info

Publication number
CN111934751A
CN111934751A CN202010886016.2A CN202010886016A CN111934751A CN 111934751 A CN111934751 A CN 111934751A CN 202010886016 A CN202010886016 A CN 202010886016A CN 111934751 A CN111934751 A CN 111934751A
Authority
CN
China
Prior art keywords
data
short message
sending
beidou short
agricultural environment
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.)
Granted
Application number
CN202010886016.2A
Other languages
Chinese (zh)
Other versions
CN111934751B (en
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.)
South Central Minzu University
Original Assignee
South Central University for Nationalities
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 South Central University for Nationalities filed Critical South Central University for Nationalities
Priority to CN202010886016.2A priority Critical patent/CN111934751B/en
Publication of CN111934751A publication Critical patent/CN111934751A/en
Application granted granted Critical
Publication of CN111934751B publication Critical patent/CN111934751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02SGENERATION OF ELECTRIC POWER BY CONVERSION OF INFRARED RADIATION, VISIBLE LIGHT OR ULTRAVIOLET LIGHT, e.g. USING PHOTOVOLTAIC [PV] MODULES
    • H02S40/00Components or accessories in combination with PV modules, not provided for in groups H02S10/00 - H02S30/00
    • H02S40/30Electrical components
    • H02S40/38Energy storage means, e.g. batteries, structurally associated with PV modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/118Arrangements specific to free-space transmission, i.e. transmission through air or vacuum specially adapted for satellite communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/50Photovoltaic [PV] energy
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E70/00Other energy conversion or management systems reducing GHG emissions
    • Y02E70/30Systems combining energy storage with energy generation of non-fossil origin

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Astronomy & Astrophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an agricultural environment data acquisition system and method based on Beidou short messages, wherein a sending end of the system comprises the following components: the environment sensor is used for collecting various agricultural environment data; the control terminal is used for processing and locally storing the agricultural environment data; the Beidou short message all-in-one machine encodes the Beidou short message into short message data according to a reliable communication protocol of the Beidou short message at the sending end and transmits the short message data; the receiving end includes: the Beidou short message all-in-one machine is used for receiving short message data according to a reliable communication protocol of a Beidou short message at a receiving end; the data processor is used for performing inverse coding extraction on the received Beidou short message data to obtain agricultural environment data; the cloud database is used for carrying out cloud storage on the agricultural environment data. The invention takes the Beidou short message system as a data transmission path, is not limited by the environment, and can be deployed in any domestic agricultural planting area with complex and remote environment.

Description

Agricultural environment data acquisition system and method based on Beidou short message
Technical Field
The invention relates to the technical field of intelligent agriculture, in particular to an agricultural environment data acquisition system and method based on Beidou short messages.
Background
In recent years, new trends and new modes of modern agriculture development, such as "smart agriculture" and "precision agriculture", have been proposed, and become important ways to explore new engines for agricultural development and to realize sustainable agricultural development. The technical idea is that in the agricultural production process, crop and environment information is fully obtained, a decision is made according to local conditions, and the method is accurately put into practice, so that the purposes of saving investment, increasing output, improving the utilization rate of elements and reducing environmental pollution are achieved. Wherein, the remote data acquisition system is a means for realizing.
At present, in the existing agricultural environment data acquisition system, the single chip microcomputer is used as a controller to acquire environment data through various sensors, and after the data acquisition is completed, the data acquisition system relies on a wired network, WIFI or GPRS to perform remote data transmission. Agricultural planting areas in China are widely distributed, and the environment of partial remote areas is complex and relatively lagged behind. In the areas, no wired network is built, and the laying of the wired network not only has technical difficulty, but also has high cost and low economic benefit; meanwhile, GPRS signals in these areas are unstable and even do not cover the areas, so that wireless data transmission cannot be reliably realized. Therefore, the existing environmental data acquisition system cannot stably and continuously acquire and transmit data in the regions. For this situation, there is currently no good solution.
Aiming at the existing agricultural environment data acquisition system, in partial remote areas, due to the high construction cost of a wired network, low economic benefit and unstable GPRS signals, even no coverage, the environment data acquisition system can not stably and continuously complete data acquisition and transmission.
The Beidou satellite navigation system is a satellite navigation system which is independently constructed and independently operated in China and focuses on the development requirements of national security and economic society, and is a national important space infrastructure for providing all-weather, all-time and high-precision positioning, navigation and time service for global users. Meanwhile, compared with the GPS in the United states, the GLONASS in Russia and other systems, the Beidou system can provide positioning, navigation and time service of other systems, and has the capabilities of position reporting and short message communication. The Beidou short message is a unique function of the Beidou system, does not depend on mobile communication signals, utilizes a satellite to carry out two-way communication, and can provide all-weather non-blind area service in the whole Asia-Pacific region. Therefore, an agricultural environment data acquisition system and method based on the Beidou short message are provided.
Meanwhile, the Beidou short message also has the defects of three aspects of limitation of communication capacity and frequency and unreliable communication. The concrete expression is as follows: 1) typical communication intervals are at least 1 minute; 2) the length of single communication content of the civil terminal is maximum 78 bytes; 3) the satellite communication link is unreliable, the receiving party does not send back the acknowledgement message after receiving the short message, and whether the communication is successful or not can not be determined. The Beidou short message can provide all-weather blind-area-free communication service, so that the short message is a good communication scheme when the current communication network cannot meet the requirements. However, if three defects of the big dipper short message can not be solved well, a new problem can be brought in practical application. At present, researches on improvement of unreliable communication of Beidou short messages have great defects. The problem that Beidou short message communication is unreliable is not considered, or the solution mode is simple, if the Beidou short message communication is simply and repeatedly sent, communication resources are wasted; by adopting a confirmation response mechanism, the waiting time is too long due to the limitation of the communication frequency of the Beidou short message; meanwhile, a control scheme of carrying out many-to-one scene by using the Beidou short message is not adopted. In the invention, a solution is provided for the defects, so that the agricultural environment data acquisition based on the Beidou short message has better practicability.
Disclosure of Invention
The invention aims to solve the technical problem of providing an agricultural environment data acquisition system and method based on Beidou short messages aiming at the defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows:
the invention provides an agricultural environment data acquisition system based on Beidou short messages, which comprises a sending end and a receiving end, wherein the sending end comprises a receiving end, and the receiving end comprises a receiving end and a transmitting end, wherein the receiving end comprises a receiving end body, a receiving end body and a transmitting end body, and the receiving end body comprises a receiving end:
the transmitting end includes: the Beidou short message all-in-one machine comprises a control terminal, a Beidou short message all-in-one machine at a sending end and various environment sensors;
the multiple environment sensors are connected with the control terminal and used for acquiring multiple agricultural environment data and transmitting the acquired agricultural environment data to the control terminal through multiple communication protocols;
the control terminal is used for carrying out format conversion processing and local storage on the agricultural environment data, transmitting the agricultural environment data to be transmitted to the Beidou short message all-in-one machine and controlling the Beidou short message all-in-one machine to carry out data transmission;
the Beidou short message all-in-one machine of the sending end is connected with the control terminal and used for carrying out Beidou positioning and time service, taking out agricultural environment data to be sent from local storage, and coding the agricultural environment data into short message data for transmission according to a reliable communication protocol of the Beidou short message of the sending end; the reliable communication protocol of the Beidou short message at the sending end comprises the following steps: the sending end carries out environment data coding and flag bit coding; the sending frequency is dynamically adjusted according to different environments through a request confirmation mechanism based on probability judgment;
the receiving end includes: the Beidou short message all-in-one machine, the data processor and the cloud database at the receiving end;
the Beidou short message all-in-one machine of the receiving end is used for receiving the short message data according to the reliable communication protocol of the Beidou short message of the receiving end; the reliable communication protocol of the Beidou short message at the receiving end comprises the following steps: the environment data receiving end codes; dynamically adjusting response frequency according to the number of the sending ends through a dynamic accumulation confirmation mechanism;
the data processor is connected with the Beidou short message all-in-one machine and used for performing anti-coding extraction on the received Beidou short message data to obtain agricultural environment data;
the cloud database is connected with the data processor and used for carrying out cloud storage on the agricultural environment data and realizing remote checking of the user anytime and anywhere.
Further, the sending end of the system of the present invention further includes: a solar panel and an energy storage device;
the solar cell panel is connected with the control terminal through the energy storage device and used for converting light energy into electric energy and storing the electric energy in the energy storage device as an electric energy source of the sending end.
Further, in the beidou short message all-in-one machine at the transmitting end of the present invention, the mode of encoding the environmental data specifically is as follows:
the sequence of the multiple agricultural environment data is fixed, and the length occupied by each item of data is fixed, so that a receiving end can analyze and extract the data according to the coding sequence without distinguishing each data piece by using a separator; the specific transmission rule is as follows:
(1) the length of each agricultural environment data distribution is as follows: temperature, 2 bytes; humidity, 2 bytes; illumination, 3 bytes; pressure, 3 bytes; soil moisture, 2 bytes; soil pH, 2 bytes; wind speed, 2 bytes; wind direction, 2 bytes; rainfall, 2 bytes; PM2.5, 3 bytes; oxygen content, 3 bytes; CO 22Content, 3 bytes;
(2) the Beidou short message is communicated in a code transmission mode, and agricultural environment data are converted into hexadecimal ASCII code data;
(3) only transmitting numerical values and not transmitting units for each agricultural environment data;
(4) for data items with decimal numbers, the data items are divided into an integer part and a decimal part, decimal points are not transmitted, two decimal parts are uniformly reserved in the decimal part, and the decimal part is multiplied by 100 to form an integer to be transmitted.
Further, in the beidou short message all-in-one machine at the transmitting end of the present invention, the flag bit coding mode is specifically as follows:
the transmitting end flag bit coding comprises the following steps: data type, 1 byte; timestamp, 5 bytes; data identification, 1 byte; request acknowledgment, 1 byte; acknowledge reply, 1 byte; retransmit count, 1 byte; 2 bytes of the check code are replied; check bit, 2 bytes.
Further, in the beidou short message all-in-one machine of the receiving end of the present invention, the mode of encoding the environment data receiving end specifically is as follows:
data type, 1 byte; a loss number which is represented by indefinite bytes and indicates the sequence number of the data lost since the last confirmation, whether the data is lost is confirmed by the time stamp of the data, the first byte represents the number of the lost data, and each byte represents the sequence number of the lost data; request acknowledgment, 1 byte; retransmit count, 1 byte; the time length of waiting for confirmation, 1 byte, represents the maximum time length of the equipment waiting for confirmation reply; device mode, 1 byte; request acknowledge, 1 byte.
Further, the specific method of the request acknowledgement mechanism based on probability judgment adopted by the sending end of the present invention is as follows:
setting the success rate of communication of the Beidou integrated short message communication machine as p, and dividing a sending end into two modes according to whether agricultural environment data is stored locally or not, wherein the first mode is that data which are stored accumulatively are not stored locally, and the second mode is that a plurality of data are stored locally; wherein:
when the data stored in the local area is not accumulated, namely all the data are sent out, the communication times are sufficient, and the data can be sent out immediately as long as the data exist; the time interval of data sampling is t minutes, and in consideration of communication delay and time required by equipment processing, t-1 communication can be carried out in the t minutes, wherein 1 time is used for transmitting newly generated data, t-2 times is used for transmitting lost data, and t > is 5, then:
n*(1-p)>=t-2
wherein n is the interval times of sending the confirmation application to the receiving end, namely, the sending end requests the receiving end for one confirmation after sending n times of data; since n is an integer, we obtain:
Figure BDA0002655603680000051
wherein the content of the first and second substances,
Figure BDA0002655603680000052
represents rounding up;
when a plurality of data records are stored locally, the sending end continuously sends data at the fastest sending frequency of 1 minute/time, and the condition that the data is lost needs to be obtained as soon as possible and retransmitted as soon as possible, then:
n*(1-p)>=1
obtaining:
Figure BDA0002655603680000053
therefore, the frequency of the application confirmation of the sending end is obtained according to whether the data is stored locally, namely the sending end requests the receiving end for one confirmation after sending n times of data; then there are:
Figure BDA0002655603680000054
wherein, X is the number of times of transmission, that is, the frequency of applying for acknowledgement to the transmitting end is obtained according to the success rate p of the transmitting end, when the number of times of transmission X is less than n, data is continuously transmitted, when the number of times of transmission X is equal to n, that is, acknowledgement is applied when data is transmitted this time, and the number of times of transmission X is cleared after acknowledgement is transmitted.
Further, the specific method of the dynamic accumulation acknowledgement mechanism adopted by the receiving end of the present invention is as follows:
the receiving end dynamically adjusts response frequency according to the number of the sending ends and sends the maximum waiting time to the sending ends, so that the situation that the sending ends judge that data is lost and repeatedly sent due to overlong waiting is avoided;
if m sending devices send data to one receiving end, the success probability of word communication of each receiving end is PiWhether the local storage data exists is obtained according to the sending frequency of each sender, and if m1 senders do not store data, m2 senders have storage data, wherein m1+ m2 is m; n is the number of intervals for each sender to request acknowledgement, and the time interval for sending data is t minutes for the sender not storing data, so the frequency of application acknowledgement is:
Figure BDA0002655603680000055
for a sending end with stored data, the time interval for sending the data is 1 minute, and the frequency of application confirmation is as follows:
Figure BDA0002655603680000056
all requests are accumulated to the receiving end, so the acknowledgement frequency of the receiving end is:
Figure BDA0002655603680000061
maximum wait for acknowledgement interval:
Figure BDA0002655603680000062
wherein n isiAnd njIndicating the number of request acknowledgement intervals, n, of the ith sender that has no stored datajIndicating the request confirmation interval times of the jth sending end with the stored data; and the receiving end sends the maximum waiting time calculated according to the current real-time condition to the sending end when confirming to the sending end each time.
The invention provides an agricultural environment data acquisition method based on Beidou short messages, which comprises the following steps:
s1, after the system is started, the Beidou satellite signals are received and analyzed through the Beidou short message all-in-one machine to obtain accurate time, then the system time is set, and time service operation is executed regularly;
s2, collecting various agricultural environment data through various environment sensors, collecting various data for many times, and carrying out abnormal value detection and average value processing;
s3, processing the acquired multiple agricultural environment data into a key value pair form by format processing through the control terminal, and storing the key value pair form into a local database on the control terminal;
s4, the Beidou short message all-in-one machine of the sending end takes out agricultural environment data to be sent from a local database, carries out environment data coding and zone bit coding on the data according to a reliable communication protocol of the Beidou short message of the sending end, adjusts the sending frequency according to different dynamic states of the environment through a request confirmation mechanism based on probability judgment, and sends the data to a Beidou satellite in the form of short messages;
s5, the Beidou short message all-in-one machine of the receiving end receives short message data forwarded by a Beidou satellite, sets environment data receiving end codes according to the reliable communication protocol of the Beidou short message of the receiving end, and dynamically adjusts response frequency according to the number of the sending ends through a dynamic accumulation confirmation mechanism to realize the receiving of the short message data;
s6, the data processor performs inverse coding extraction on the received short message data to obtain agricultural environment data;
s7, carrying out cloud storage on the agricultural environment data through the cloud database, and realizing remote checking of the user anytime and anywhere.
Further, the request acknowledgement mechanism based on probability judgment at the sending end of the present invention specifically comprises the following steps:
s41, the sending end inquires a local database, and calculates the interval n of the request confirmation according to whether the sending end has the stored data, namely, the sending end requests a confirmation to the receiving end every time the sending end sends n times of data; setting the sending times X as 0;
s42, taking out a set of data with the minimum time stamp;
s43, judging whether the current data is the data to be retransmitted; if yes, setting the retransmission counting flag bit as 1 and setting the data identification flag bit as 1; if not, setting the retransmission counting flag bit as 0 and setting the data identification flag bit as 0;
s44, judging whether the current sending times X are less than n; if yes, the request is confirmed to mark the position 0, data coding is carried out, X is added with 1, data are sent, and the S42 is returned; if not, the request is confirmed to mark position 1, data coding is carried out, and X is made to be 0;
s45, sending data, waiting for the confirmation of the receiving end, and starting timing;
s46, judging whether the data is received before overtime; if yes, processing the received data, extracting the number m of the lost data and the time stamp, and deleting the data records successfully received in the database; and returns to step S41; if not, the process returns to step S45.
Further, the specific steps of the dynamic accumulation acknowledgement mechanism of the receiving end of the present invention are:
s51, waiting for receiving data;
s52, decoding and extracting the data after receiving the data;
s53, judging whether the retransmission counting flag bit is larger than 0; if yes, deleting the data from the loss record, and storing the environment data; if not, judging that the data represents a flag bit;
s54, judging whether the data identification flag bit is 0 or not; if yes, inquiring a difference value t between the data time stamp and the last data time stamp; if not, saving the environment data;
s55, judging whether t is larger than the time interval of data acquisition; if so, recording the previous data of the data as lost data, and storing the environmental data; if not, directly storing the environmental data;
s56, judging whether the flag bit of the request confirmation is 1; if not, returning to the step S51; if yes, generating data of confirmation reply, including setting the confirmation flag bit of the request to be 1; updating the success rate of the equipment; adding a lost data number; adding the longest latency; adding the acknowledgment data to a send queue; return is made to step S51.
The invention has the following beneficial effects: according to the agricultural environment data acquisition system and method based on the Beidou short message, the electric energy converted by solar energy is used for supplying power to the whole system, Beidou short message communication is improved to ensure reliable data transmission, coding design is carried out on a data section of the Beidou short message communication to ensure environment data transmission and analysis, and meanwhile, a plurality of flag bits are added to assist in realizing a reliable communication protocol; at a sending end of the environmental data, a request confirmation mechanism based on probability judgment is provided; at the receiving end of the environment data, under the condition of many-to-one communication, a dynamic accumulation confirmation mechanism for dynamically adjusting the response frequency according to the number of data transmitting parties is provided.
The invention is not limited by the environments such as lag of wired network construction, unstable or uncovered GPRS signals, local power supply and the like, has the characteristics of low implementation difficulty, wide application range, good system expandability and no regional environment limitation, can be deployed in any place of domestic agricultural planting areas, and can ensure the continuous and stable work of the system.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic system structure according to an embodiment of the present invention.
Fig. 2 is a flow chart of a transmitting end according to an embodiment of the present invention.
Fig. 3 is a flow chart of a receiving end according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the agricultural environment data acquisition system based on the beidou short message in the embodiment of the present invention includes: control terminal, solar cell panel, energy memory, big dipper short message all-in-one, multiple environmental sensor, like air temperature, humidity etc.. In the system, the solar panel is used as an electric energy source of the system by converting light energy into electric energy and storing the electric energy in the energy storage device; the control terminal is used as a controller of the data acquisition part, acquires data environment data from a plurality of environment sensors, processes the data, stores the data locally and the like; the various sensors can be accessed to the controller through various communication protocols, such as ADC, I2C, serial ports (TTL, RS232, RS485) and the like. The Beidou short message all-in-one machine is used for transmitting data through a Beidou system, and positioning, time service and the like can also be carried out through the all-in-one machine.
Firstly, a transmitting end comprises the following parts:
(1) setting system time: since the control terminal does not have access to the ethernet, it is not possible to synchronize the time through the network service. However, the accessed Beidou short message all-in-one machine has a time service function and can be used for setting the time of a control terminal system.
After the system is started, firstly, the Beidou satellite short message all-in-one machine is communicated, the Beidou satellite signals are received and analyzed through the Beidou short message all-in-one machine to obtain accurate time, and then the system time is set. And the system can execute the operation regularly to ensure the accuracy of the system time.
(2) Data acquisition: a plurality of environmental sensors access to the control terminal through different ports, and the environmental sensors convert the physical quantity of environment into level signals or data signals, and the control terminal acquires data through different communication modes and processes the data.
The system designs a plurality of communication ports including an ADC, an I2C and serial ports (TTL, RS232 and RS485), ensures that common sensors can be accessed, and can be reduced at will as long as the number of the sensors meeting the communication modes is reduced. In order to ensure the accuracy of the data, the data are collected for multiple times, and abnormal value detection and average value processing are carried out. For the working characteristics of different sensors, such as the rainfall sensor, long-time continuous sampling is needed, a multi-thread mode can be adopted, and the efficiency and the accuracy of sampling data are improved.
The agricultural environment data refers to the environment data which influences the growth of crops and the activities of agriculture, such as air temperature, humidity, illumination, soil humidity, soil pH value, carbon dioxide content, wind speed and wind direction and the like in the growing environment of the crops. The most important of them are the following items. Thereby obtaining the growth and development state of crops, the use condition of water and fertilizer and the real-time information of corresponding ecological environment.
The agricultural environment data has many kinds, and the key is the following:
and (3) temperature. Temperature is one of the growth of crops and important environmental factors thereof, and if the temperature is too low or too high to a certain extent, the crops stop growing or die. Temperature affects the rate of photosynthesis by altering the activity of enzymes associated with photosynthesis, directly affecting crop yield.
Humidity. The humidity indirectly influences the photosynthesis of crops, and when the humidity is lower, the air holes of the crops are partially closed, so that the carbon dioxide entering the leaves is reduced, the shortage of carbon dioxide raw materials is caused, and the photosynthetic rate is reduced.
Carbon dioxide content. Carbon oxide is one of the main raw materials for photosynthesis of crops, and has a great influence on photosynthesis rate. The concentration of carbon dioxide is monitored and controlled in real time, and the growth and development of crops are scientifically promoted.
The intensity of the light. Illumination is one of the main environmental factors for crop growth, and is the dominant factor of photosynthesis. When the light intensity is between the light compensation point and the light saturation point, the photosynthetic rate increases with the increase of the illumination intensity.
The soil moisture. The key factor of crop growth is moisture, and soil information sensors are used for sensing soil dryness and accurately using water.
Besides the key data, the data also comprises common data types such as wind speed and wind direction, rainfall and the like, and the total 12 data can meet the planting requirements of various crops. In agricultural planting, the requirement on the sampling frequency of data is low, generally 5 minutes each time, so that the communication interval of one minute of a short message can meet the requirement on data transmission of agricultural environment.
(3) Data local storage: a whole set of data is acquired through data acquisition, and a time stamp is added to the set of data to record the timeliness of the data.
In the control terminal, a database is built for conveniently storing the collected data. Before storage, the format of the data is processed into a dictionary (namely, a key value pair) mode and then stored into a database. Data is stored locally and is separated from data uploading, so that the data acquisition and transmission processes are decoupled, and the stability and functionality of the system are improved.
(4) And (5) data transmission. And the data transmission is completed through the Beidou short message all-in-one machine.
And taking out a set of data from the database, carrying out data coding according to coding environment data and the zone bits designed by the reliable communication protocol of the Beidou short message, and packaging into a complete message. The control terminal is communicated with the Beidou integrated short message machine through an RS232 communication protocol, and sends data to the integrated short message machine and controls the integrated short message machine to send the data out.
And after the data is successfully transmitted, deleting the transmitted data from the local database. The process is carried out in a circulating mode, and when the data record exists in the local database, the operation of uploading the data is executed.
Secondly, the receiving end comprises the following parts:
the Beidou short message all-in-one machine at the receiving end comprises a data processor and a cloud database. In the system, the Beidou short message all-in-one machine is used for receiving environmental data information sent by the data acquisition part through the Beidou short message all-in-one machine. The data processor acquires the acquired environmental data from the Beidou short message all-in-one machine for receiving the data through the RS232, decompresses and processes the data, and stores the data into the cloud database in a corresponding format. The cloud database is used for storing remotely acquired environment data, and is convenient for different users to access and utilize the data.
(1) Data reception: and receiving data through a specific Beidou short message.
In combination with the previous data transmission, the complete short message work flow is as follows: 1. the Beidou short message all-in-one machine sender user machine firstly encrypts a communication application signal containing a receiver ID number and communication contents and then forwards the communication application signal to an inbound station through a satellite; 2. after receiving the communication application signal, the ground central station adds the decrypted and encrypted information into the continuously broadcasted outbound broadcast message and broadcasts the message to users through a satellite; 3. and the receiver user machine of the Beidou short message all-in-one machine receives the outbound signal, demodulates and decrypts the outbound telegraph message, and completes one-time communication. The data is then sent to the data processor via RS 232.
(2) Data processing: the data processor receives data sent by the Beidou short message all-in-one machine and needs to extract the data in an appointed mode.
The received information data is a character string of a set of environment data which is combined by the data acquisition part and contains a plurality of data, and the data is extracted according to the mode of the previous combination. And then through numbering, the specific place from which the environment data record comes is searched, and the affiliated information is added to the data, so that the data is clearer.
(3) Data storage: the remotely collected environmental data is stored in a cloud database.
The data processor is connected with the cloud database, and stores the newly acquired environmental data into the cloud database, so that a user can conveniently check the data at any time and any place.
Thirdly, a reliable communication protocol based on the Beidou short message:
the Beidou short message can provide all-weather blind-area-free communication service, so that the short message is a good communication scheme when the current communication network cannot meet the requirements. However, if three defects of the big dipper short message can not be solved well, a new problem can be brought in practical application. At present, researches on improvement of unreliable communication of Beidou short messages have great defects. The problem that Beidou short message communication is unreliable is not considered, or the solution mode is simple, if the Beidou short message communication is simply and repeatedly sent, communication resources are wasted; by adopting a confirmation response mechanism, the waiting time is too long due to the limitation of the communication frequency of the Beidou short message; meanwhile, a control scheme of carrying out many-to-one scene by using the Beidou short message is not adopted. In the invention, a solution is provided for the defects, so that the agricultural environment data acquisition based on the Beidou short message has better practicability.
The Beidou short message communication data segment is subjected to coding design to ensure transmission and analysis of environmental data, and meanwhile, a plurality of flag bits are added to assist in realization of a reliable communication protocol. At a sending end of the environmental data, a request confirmation mechanism based on probability judgment is provided; at the receiving end of the environment data, under the condition of many-to-one communication, a dynamic accumulation confirmation mechanism for dynamically adjusting the response frequency according to the number of data transmitting parties is provided.
The data coding is divided into two parts, namely, the environment data sending end coding and the environment data receiving end coding.
1. Environmental data transmitting end coding
The environment data sending end codes are divided into environment data codes and flag bit codes.
In the environment data coding, the number of bytes occupied by the environment data coding is distributed according to the range of different data, and the transmission space is occupied as little as possible under the condition of ensuring no data loss. To further reduce the consumption of data, the following rules are applied:
the sequence of the data items is fixed, and the length occupied by each data item is fixed, so that a receiver can analyze and extract the data according to the coding sequence without distinguishing each data item by using a separator;
(1) the Beidou short message communication adopts a code transmission mode, and hexadecimal data is transmitted by using ASCII codes.
(2) Only transmitting numerical values and not transmitting units for each item of environment data;
(3) for data items with decimal numbers, the data items are divided into an integer part and a decimal part, decimal points are not transmitted, two decimal parts are uniformly reserved in the decimal part, and the decimal part is multiplied by 100 to form an integer to be transmitted.
The byte allocation of each item of data is shown in table 1, and the environment data encoding is shown in table 2, for example.
TABLE 1 environmental data encoding format
Figure BDA0002655603680000121
Table 2 environment data encoding example
Figure BDA0002655603680000122
Figure BDA0002655603680000131
In order to realize reliable transmission based on the beidou short message, a part of the information used for transmitting non-environmental data, namely a plurality of flag bits, needs to be taken out in limited communication capacity. The flag bit part occupies a certain length of bytes and is used for recording some information of the data. The sending end and the receiving end of the environment data carry different data, so that the flag bits of the environment data are different.
Table 3 flag bit coding format of environment data transmitting end
Figure BDA0002655603680000132
Table 4 example of flag bit encoding at sending end of environment data
Figure BDA0002655603680000133
2. And the environment data receiving end encodes.
Table 5 environment data transmitting end flag bit coding format
Figure BDA0002655603680000141
Table 6 example of flag bit encoding at sending end of environment data
Figure BDA0002655603680000142
At the environment data sending end, the environment data plus the flag bit plus the separator have 43 bytes and are less than 78 bytes, so that the communication capacity limit is met, and sufficient capacity is reserved for the later expansion. At the environment data receiving end, 16 bytes are totally used, and the communication capacity limit is also met.
3. A request acknowledgement mechanism based on a probabilistic judgment.
At a data acquisition end, the current frequency of environment data acquisition is 5 min/time, under a normal condition, the limitation of communication frequency (1 min/time) of Beidou short messages is met, and considering that the equipment acquisition end stores a certain amount of data due to other reasons, the data needs to be sent out as soon as possible. Therefore, the success rate of data transmission cannot be improved by simple repeated sending, but the problem of unreliable communication is solved to a certain extent by adopting a more complete mechanism, and the data transmission efficiency is improved.
At present, the Beidou terminal in a real scene can be influenced by various reasons when communicating, and the communication success rate is greatly reduced. When the Beidou terminal is tested and counted to carry out short message communication, if interference such as weather, obstacles, clutter and the like is eliminated, the receiving and sending success rate is 95%, and the success rate can be reduced to 85% or even lower under the condition that the Beidou terminal is frequently subjected to comprehensive influence of various environmental factors.
Whether short message communication succeeds or not is directly related to whether buildings shelter in the environment and weather, so that the receiver can deploy the Beidou short message equipment at an open and non-shelter position to better receive Beidou signals and ensure normal data receiving. For the sender, the success rate of communication is influenced by the environment, but the deployment direction can be adjusted only under limited conditions. The success rate of communication for different devices varies due to differences in the environment of deployment. Here, a request confirmation mechanism based on probability judgment is proposed, and the frequency of the request is dynamically adjusted according to different environments.
For a certain Beidou short message communication integrated machine, the average communication probability of the Beidou short message communication integrated machine can be calculated by carrying out continuous testing for a period of time, and after the testing stage is completed, success rate statistics is continuously carried out in actual communication, so that the success rate is kept updated. This part of the functionality is performed at the receiving end.
And setting a communication success rate p of a Beidou integrated short message communication machine, and dividing a sending end into two modes according to whether the locally stored data exists or not, wherein the data does not exist locally and is stored locally.
When the data stored in the local area is not accumulated, namely all the data are sent out, the communication times are sufficient, and the data can be sent out immediately as long as the data exist; the time interval of data sampling is t minutes, and in consideration of communication delay and time required by equipment processing, t-1 communication can be carried out in the t minutes, wherein 1 time is used for transmitting newly generated data, t-2 times is used for transmitting lost data, and t > is 5, then:
n*(1-p)>=t-2
wherein n is the interval times of sending the confirmation application to the receiving end, namely, the sending end requests the receiving end for one confirmation after sending n times of data; since n is an integer, we obtain:
Figure BDA0002655603680000151
wherein the content of the first and second substances,
Figure BDA0002655603680000161
represents rounding up;
when a plurality of data records are stored locally, the sending end continuously sends data at the fastest sending frequency of 1 minute/time, and the condition that the data is lost needs to be obtained as soon as possible and retransmitted as soon as possible, then:
n*(1-p)>=1
obtaining:
Figure BDA0002655603680000162
therefore, the frequency of the application confirmation of the sending end is obtained according to whether the data is stored locally, namely the sending end requests the receiving end for one confirmation after sending n times of data; then there are:
Figure BDA0002655603680000163
wherein, X is the number of times of transmission, that is, the frequency of applying for acknowledgement to the transmitting end is obtained according to the success rate p of the transmitting end, when the number of times of transmission X is less than n, data is continuously transmitted, when the number of times of transmission X is equal to n, that is, acknowledgement is applied when data is transmitted this time, and the number of times of transmission X is cleared after acknowledgement is transmitted.
4. A dynamic accumulation validation mechanism.
At the receiving end, one all-in-one machine device receives data of a plurality of sending ends, and the number of the sending ends is changed, so that the time for the sending end to wait for the confirmation of the receiving end is directly related to the number of the sending ends. Therefore, a dynamic accumulation confirmation mechanism is provided at the receiver, the response frequency is dynamically adjusted according to the number of the data transmitters, and the maximum waiting time is sent to the sending end, so that the situation that the sending end judges that the data is lost and repeatedly sends the data due to overlong waiting is avoided.
If m sending devices send data to one receiving end, the success probability of word communication of each receiving end is PiAnd knowing whether the local storage data exists according to the transmission frequency of each sender, and assuming that m1 senders have no storage data and m2 senders have storage data, wherein m1+ m2 is m. n is the interval number of request confirmation of each sending end, and the calculation mode is provided in a request confirmation mechanism based on probability judgment. For the sender not storing data, the time interval for sending data is t minutes, so the frequency of applying for confirmation is:
Figure BDA0002655603680000164
for a sending end with stored data, the time interval for sending the data is 1 minute, and the frequency of application confirmation is as follows:
Figure BDA0002655603680000171
all requests are accumulated to the receiving end, so the acknowledgement frequency of the receiving end is:
Figure BDA0002655603680000172
maximum wait for acknowledgement interval
Figure BDA0002655603680000173
niAnd njIndicating the number of request acknowledgement intervals, n, of the ith sender that has no stored datajIndicating the request confirmation interval times of the jth sending end with the stored data; the receiving end sends the maximum waiting time calculated according to the current real-time condition to the sending end when confirming to the sending end each time.
The agricultural environment data acquisition method based on the Beidou short message comprises the following steps:
s1, after the system is started, the Beidou satellite signals are received and analyzed through the Beidou short message all-in-one machine to obtain accurate time, then the system time is set, and time service operation is executed regularly;
s2, collecting various agricultural environment data through various environment sensors, collecting various data for many times, and carrying out abnormal value detection and average value processing;
s3, processing the acquired multiple agricultural environment data into a key value pair form by format processing through the control terminal, and storing the key value pair form into a local database on the control terminal;
s4, the Beidou short message all-in-one machine of the sending end takes out agricultural environment data to be sent from a local database, carries out environment data coding and zone bit coding on the data according to a reliable communication protocol of the Beidou short message of the sending end, adjusts the sending frequency according to different dynamic states of the environment through a request confirmation mechanism based on probability judgment, and sends the data to a Beidou satellite in the form of short messages;
s5, the Beidou short message all-in-one machine of the receiving end receives short message data forwarded by a Beidou satellite, sets environment data receiving end codes according to the reliable communication protocol of the Beidou short message of the receiving end, and dynamically adjusts response frequency according to the number of the sending ends through a dynamic accumulation confirmation mechanism to realize the receiving of the short message data;
s6, the data processor performs inverse coding extraction on the received short message data to obtain agricultural environment data;
s7, carrying out cloud storage on the agricultural environment data through the cloud database, and realizing remote checking of the user anytime and anywhere.
As shown in fig. 2, the request acknowledgement mechanism based on probability judgment at the sending end specifically includes the following steps:
the request confirmation mechanism based on probability judgment at the sending end comprises the following specific steps:
s41, the sending end inquires a local database, and calculates the interval n of the request confirmation according to whether the sending end has the stored data, namely, the sending end requests a confirmation to the receiving end every time the sending end sends n times of data; setting the sending times X as 0;
s42, taking out a set of data with the minimum time stamp;
s43, judging whether the current data is the data to be retransmitted; if yes, setting the retransmission counting flag bit as 1 and setting the data identification flag bit as 1; if not, setting the retransmission counting flag bit as 0 and setting the data identification flag bit as 0;
s44, judging whether the current sending times X are less than n; if yes, the request is confirmed to mark the position 0, data coding is carried out, X is added with 1, data are sent, and the S42 is returned; if not, the request is confirmed to mark position 1, data coding is carried out, and X is made to be 0;
s45, sending data, waiting for the confirmation of the receiving end, and starting timing;
s46, judging whether the data is received before overtime; if yes, processing the received data, extracting the number m of the lost data and the time stamp, and deleting the data records successfully received in the database; and returns to step S41; if not, the process returns to step S45.
As shown in fig. 3, the specific steps of the dynamic accumulation acknowledgement mechanism at the receiving end are as follows:
s51, waiting for receiving data;
s52, decoding and extracting the data after receiving the data;
s53, judging whether the retransmission counting flag bit is larger than 0; if yes, deleting the data from the loss record, and storing the environment data; if not, judging that the data represents a flag bit;
s54, judging whether the data identification flag bit is 0 or not; if yes, inquiring a difference value t between the data time stamp and the last data time stamp; if not, saving the environment data;
s55, judging whether t is larger than the time interval of data acquisition; if so, recording the previous data of the data as lost data, and storing the environmental data; if not, directly storing the environmental data;
s56, judging whether the flag bit of the request confirmation is 1; if not, returning to the step S51; if yes, generating data of confirmation reply, including setting the confirmation flag bit of the request to be 1; updating the success rate of the equipment; adding a lost data number; adding the longest latency; adding the acknowledgment data to a send queue; return is made to step S51.
The agricultural environment data acquisition system based on the Beidou short message takes the Beidou short message system as a data transmission way, is not limited by environments such as lag of wired network construction, unstable or no coverage of GPRS signals, local power supply and the like, has the characteristics of low implementation difficulty, wide application range and good system expandability, can be deployed in any domestic agricultural planting area with complex and remote environments, and can ensure the continuous and stable acquisition of the environment data. The control terminal acquires data with the sensors through various protocols, the number of the sensors which meet the communication mode can be reduced at will, the abnormal condition processing function is realized, and the stability of the system is higher; the Beidou short message system is a special function of the Beidou system, can provide all-weather non-blind area service for the whole Asia-Pacific region, and solves the problem that a wired network and a GRPS network cannot cover the system. Therefore, the system and the method for acquiring the environmental data are low in implementation difficulty, wide in application range, good in system expandability and not limited by regional environments, and can be used for acquiring the environmental data in remote agricultural planting areas with complex environments.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (10)

1. The utility model provides an agricultural environment data acquisition system based on big dipper short message, its characterized in that, this system includes sending end and receiving terminal, wherein:
the transmitting end includes: the Beidou short message all-in-one machine comprises a control terminal, a Beidou short message all-in-one machine at a sending end and various environment sensors;
the multiple environment sensors are connected with the control terminal and used for acquiring multiple agricultural environment data and transmitting the acquired agricultural environment data to the control terminal through multiple communication protocols;
the control terminal is used for carrying out format conversion processing and local storage on the agricultural environment data, transmitting the agricultural environment data to be transmitted to the Beidou short message all-in-one machine and controlling the Beidou short message all-in-one machine to carry out data transmission;
the Beidou short message all-in-one machine of the sending end is connected with the control terminal and used for carrying out Beidou positioning and time service, taking out agricultural environment data to be sent from local storage, and coding the agricultural environment data into short message data for transmission according to a reliable communication protocol of the Beidou short message of the sending end; the reliable communication protocol of the Beidou short message at the sending end comprises the following steps: the sending end carries out environment data coding and flag bit coding; the sending frequency is dynamically adjusted according to different environments through a request confirmation mechanism based on probability judgment;
the receiving end includes: the Beidou short message all-in-one machine, the data processor and the cloud database at the receiving end;
the Beidou short message all-in-one machine of the receiving end is used for receiving the short message data according to the reliable communication protocol of the Beidou short message of the receiving end; the reliable communication protocol of the Beidou short message at the receiving end comprises the following steps: the environment data receiving end codes; dynamically adjusting response frequency according to the number of the sending ends through a dynamic accumulation confirmation mechanism;
the data processor is connected with the Beidou short message all-in-one machine and used for performing anti-coding extraction on the received Beidou short message data to obtain agricultural environment data;
the cloud database is connected with the data processor and used for carrying out cloud storage on the agricultural environment data and realizing remote checking of the user anytime and anywhere.
2. The Beidou short message-based agricultural environment data acquisition system according to claim 1, wherein the sending end of the system further comprises: a solar panel and an energy storage device;
the solar cell panel is connected with the control terminal through the energy storage device and used for converting light energy into electric energy and storing the electric energy in the energy storage device as an electric energy source of the sending end.
3. The agricultural environment data acquisition system based on the Beidou short messages according to claim 1 is characterized in that in the Beidou short message all-in-one machine at the sending end, the mode of encoding the environment data is specifically as follows:
the sequence of the multiple agricultural environment data is fixed, and the length occupied by each item of data is fixed, so that a receiving end can analyze and extract the data according to the coding sequence without distinguishing each data piece by using a separator; the specific transmission rule is as follows:
(1) the length of each agricultural environment data distribution is as follows: temperature, 2 bytes; humidity, 2 bytes; illumination, 3 bytes; pressure, 3 bytes; soil moisture, 2 bytes; soil pH, 2 bytes; wind speed, 2 bytes; wind direction, 2 bytes; rainfall, 2 bytes; PM2.5, 3 bytes; oxygen content, 3 bytes; CO 22Content, 3 bytes;
(2) the Beidou short message is communicated in a code transmission mode, and agricultural environment data are converted into hexadecimal ASCII code data;
(3) only transmitting numerical values and not transmitting units for each agricultural environment data;
(4) for data items with decimal numbers, the data items are divided into an integer part and a decimal part, decimal points are not transmitted, two decimal parts are uniformly reserved in the decimal part, and the decimal part is multiplied by 100 to form an integer to be transmitted.
4. The agricultural environment data acquisition system based on the Beidou short messages according to claim 1 is characterized in that in the Beidou short message all-in-one machine at the sending end, the mode of carrying out zone bit coding specifically comprises:
the transmitting end flag bit coding comprises the following steps: data type, 1 byte; timestamp, 5 bytes; data identification, 1 byte; request acknowledgment, 1 byte; acknowledge reply, 1 byte; retransmit count, 1 byte; 2 bytes of the check code are replied; check bit, 2 bytes.
5. The agricultural environment data acquisition system based on the Beidou short messages according to claim 1 is characterized in that in the Beidou short message all-in-one machine at the receiving end, the mode of encoding the environment data receiving end specifically comprises:
data type, 1 byte; a loss number which is represented by indefinite bytes and indicates the sequence number of the data lost since the last confirmation, whether the data is lost is confirmed by the time stamp of the data, the first byte represents the number of the lost data, and each byte represents the sequence number of the lost data; request acknowledgment, 1 byte; retransmit count, 1 byte; the time length of waiting for confirmation, 1 byte, represents the maximum time length of the equipment waiting for confirmation reply; device mode, 1 byte; request acknowledge, 1 byte.
6. The agricultural environment data acquisition system based on the Beidou short message according to claim 1 is characterized in that a specific method of a request confirmation mechanism based on probability judgment adopted by a sending end is as follows:
setting the success rate of communication of the Beidou integrated short message communication machine as p, and dividing a sending end into two modes according to whether agricultural environment data is stored locally or not, wherein the first mode is that data which are stored accumulatively are not stored locally, and the second mode is that a plurality of data are stored locally; wherein:
when the data stored in the local area is not accumulated, namely all the data are sent out, the communication times are sufficient, and the data can be sent out immediately as long as the data exist; the time interval of data sampling is t minutes, and in consideration of communication delay and time required by equipment processing, t-1 communication can be carried out in the t minutes, wherein 1 time is used for transmitting newly generated data, t-2 times is used for transmitting lost data, and t > is 5, then:
n*(1-p)>=t-2
wherein n is the interval times of sending the confirmation application to the receiving end, namely, the sending end requests the receiving end for one confirmation after sending n times of data; since n is an integer, we obtain:
Figure FDA0002655603670000031
wherein the content of the first and second substances,
Figure FDA0002655603670000032
represents rounding up;
when a plurality of data records are stored locally, the sending end continuously sends data at the fastest sending frequency of 1 minute/time, and the condition that the data is lost needs to be obtained as soon as possible and retransmitted as soon as possible, then:
n*(1-p)>=1
obtaining:
Figure FDA0002655603670000033
therefore, the frequency of the application confirmation of the sending end is obtained according to whether the data is stored locally, namely the sending end requests the receiving end for one confirmation after sending n times of data; then there are:
Figure FDA0002655603670000034
wherein, X is the number of times of transmission, that is, the frequency of applying for acknowledgement to the transmitting end is obtained according to the success rate p of the transmitting end, when the number of times of transmission X is less than n, data is continuously transmitted, when the number of times of transmission X is equal to n, that is, acknowledgement is applied when data is transmitted this time, and the number of times of transmission X is cleared after acknowledgement is transmitted.
7. The agricultural environment data acquisition system based on the Beidou short message according to claim 1 is characterized in that a specific method of a dynamic accumulation confirmation mechanism adopted by a receiving end is as follows:
the receiving end dynamically adjusts response frequency according to the number of the sending ends and sends the maximum waiting time to the sending ends, so that the situation that the sending ends judge that data is lost and repeatedly sent due to overlong waiting is avoided;
if m sending devices send data to one receiving end, the success probability of word communication of each receiving end is PiWhether the local storage data exists is obtained according to the sending frequency of each sender, and if m1 senders do not store data, m2 senders have storage data, wherein m1+ m2 is m; n is the number of intervals for each sender to request acknowledgement, and the time interval for sending data is t minutes for the sender not storing data, so the frequency of application acknowledgement is:
Figure FDA0002655603670000041
for a sending end with stored data, the time interval for sending the data is 1 minute, and the frequency of application confirmation is as follows:
Figure FDA0002655603670000042
all requests are accumulated to the receiving end, so the acknowledgement frequency of the receiving end is:
Figure FDA0002655603670000043
maximum wait for acknowledgement interval:
Figure FDA0002655603670000044
wherein n isiAnd njIndicating the number of request acknowledgement intervals, n, of the ith sender that has no stored datajIndicating the request confirmation interval times of the jth sending end with the stored data; and the receiving end sends the maximum waiting time calculated according to the current real-time condition to the sending end when confirming to the sending end each time.
8. The agricultural environment data acquisition method based on the Beidou short message adopts the agricultural environment data acquisition system based on the Beidou short message, and is characterized by comprising the following steps of:
s1, after the system is started, the Beidou satellite signals are received and analyzed through the Beidou short message all-in-one machine to obtain accurate time, then the system time is set, and time service operation is executed regularly;
s2, collecting various agricultural environment data through various environment sensors, collecting various data for many times, and carrying out abnormal value detection and average value processing;
s3, processing the acquired multiple agricultural environment data into a key value pair form by format processing through the control terminal, and storing the key value pair form into a local database on the control terminal;
s4, the Beidou short message all-in-one machine of the sending end takes out agricultural environment data to be sent from a local database, carries out environment data coding and zone bit coding on the data according to a reliable communication protocol of the Beidou short message of the sending end, adjusts the sending frequency according to different dynamic states of the environment through a request confirmation mechanism based on probability judgment, and sends the data to a Beidou satellite in the form of short messages;
s5, the Beidou short message all-in-one machine of the receiving end receives short message data forwarded by a Beidou satellite, sets environment data receiving end codes according to the reliable communication protocol of the Beidou short message of the receiving end, and dynamically adjusts response frequency according to the number of the sending ends through a dynamic accumulation confirmation mechanism to realize the receiving of the short message data;
s6, the data processor performs inverse coding extraction on the received short message data to obtain agricultural environment data;
s7, carrying out cloud storage on the agricultural environment data through the cloud database, and realizing remote checking of the user anytime and anywhere.
9. The Beidou short message-based agricultural environment data acquisition method according to claim 8, characterized in that the request confirmation mechanism based on probability judgment at the sending end comprises the following specific steps:
s41, the sending end inquires a local database, and calculates the interval n of the request confirmation according to whether the sending end has the stored data, namely, the sending end requests a confirmation to the receiving end every time the sending end sends n times of data; setting the sending times X as 0;
s42, taking out a set of data with the minimum time stamp;
s43, judging whether the current data is the data to be retransmitted; if yes, setting the retransmission counting flag bit as 1 and setting the data identification flag bit as 1; if not, setting the retransmission counting flag bit as 0 and setting the data identification flag bit as 0;
s44, judging whether the current sending times X are less than n; if yes, the request is confirmed to mark the position 0, data coding is carried out, X is added with 1, data are sent, and the S42 is returned; if not, the request is confirmed to mark position 1, data coding is carried out, and X is made to be 0;
s45, sending data, waiting for the confirmation of the receiving end, and starting timing;
s46, judging whether the data is received before overtime; if yes, processing the received data, extracting the number m of the lost data and the time stamp, and deleting the data records successfully received in the database; and returns to step S41; if not, the process returns to step S45.
10. The Beidou short message-based agricultural environment data acquisition method according to claim 8, characterized in that the specific steps of the dynamic accumulation confirmation mechanism of the receiving end are as follows:
s51, waiting for receiving data;
s52, decoding and extracting the data after receiving the data;
s53, judging whether the retransmission counting flag bit is larger than 0; if yes, deleting the data from the loss record, and storing the environment data; if not, judging that the data represents a flag bit;
s54, judging whether the data identification flag bit is 0 or not; if yes, inquiring a difference value t between the data time stamp and the last data time stamp; if not, saving the environment data;
s55, judging whether t is larger than the time interval of data acquisition; if so, recording the previous data of the data as lost data, and storing the environmental data; if not, directly storing the environmental data;
s56, judging whether the flag bit of the request confirmation is 1; if not, returning to the step S51; if yes, generating data of confirmation reply, including setting the confirmation flag bit of the request to be 1; updating the success rate of the equipment; adding a lost data number; adding the longest latency; adding the acknowledgment data to a send queue; return is made to step S51.
CN202010886016.2A 2020-08-28 2020-08-28 Agricultural environment data acquisition system and method based on Beidou short message Active CN111934751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010886016.2A CN111934751B (en) 2020-08-28 2020-08-28 Agricultural environment data acquisition system and method based on Beidou short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010886016.2A CN111934751B (en) 2020-08-28 2020-08-28 Agricultural environment data acquisition system and method based on Beidou short message

Publications (2)

Publication Number Publication Date
CN111934751A true CN111934751A (en) 2020-11-13
CN111934751B CN111934751B (en) 2021-05-18

Family

ID=73308516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010886016.2A Active CN111934751B (en) 2020-08-28 2020-08-28 Agricultural environment data acquisition system and method based on Beidou short message

Country Status (1)

Country Link
CN (1) CN111934751B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330946A (en) * 2021-01-07 2021-02-05 航天宏图信息技术股份有限公司 Power grid platform data communication method, power grid data transmission method, device and system
CN112822461A (en) * 2021-03-29 2021-05-18 国网新疆电力有限公司电力科学研究院 Power transmission line image data acquisition system and method based on Beidou short message
CN113112165A (en) * 2021-04-20 2021-07-13 武荣盛 Analysis method for crop climate yield potential
CN113590988A (en) * 2021-10-08 2021-11-02 中航信移动科技有限公司 Network data acquisition system
CN113630413A (en) * 2021-08-06 2021-11-09 广东省林业科学研究院 Beidou short message-based ecological monitoring acquisition data verification method
CN113676844A (en) * 2021-09-27 2021-11-19 北京星网船电科技有限公司 Multipoint data communication method and system based on Beidou short message
CN113740748A (en) * 2021-09-03 2021-12-03 深圳市新威尔电子有限公司 Battery detection method for sending message based on CAN bus
CN113923274A (en) * 2021-09-29 2022-01-11 航天新气象科技有限公司 Method, device and storage medium for judging whether transmission data is interfered
CN114584202A (en) * 2022-04-28 2022-06-03 环球数科集团有限公司 Beidou satellite short message remote communication data acquisition system
CN114759975A (en) * 2022-04-19 2022-07-15 国网新疆电力有限公司哈密供电公司 Electric energy data acquisition method and system based on Beidou satellite communication
CN115604051A (en) * 2022-10-10 2023-01-13 江西师范大学(Cn) High-reliability hydrological survey station data acquisition and transmission method
CN116744245A (en) * 2023-07-13 2023-09-12 北京蔚海明祥科技有限公司 Binary data transmission system and method based on Beidou short message system
CN117670250A (en) * 2023-12-18 2024-03-08 沸蓝建设咨询有限公司 Intelligent supervision system based on Beidou system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0875102B1 (en) * 1996-01-18 2001-10-31 Ericsson Inc. High power short message service using dedicated carrier frequency
CN102694855A (en) * 2012-05-21 2012-09-26 南京信息工程大学 Meteorological disaster early warning information publishing system and method on basis of Beidou satellite
CN104468059A (en) * 2014-12-05 2015-03-25 北京艾力泰尔信息技术有限公司 Reliable data transmission method based on Beidou satellite
CN105025087A (en) * 2015-06-15 2015-11-04 山东大学 Beidou wide-area migration target autonomous internet of things and stereoscopic monitoring integrated device and working method thereof
CN105098975A (en) * 2014-05-14 2015-11-25 国家电网公司 Power grid remote intelligent monitoring system based on Beidou short message communication and monitoring method
CN205071021U (en) * 2015-09-18 2016-03-02 中央民族大学 Full duplex multiple access instant messaging terminal based on big dipper short message
CN106533539A (en) * 2016-11-29 2017-03-22 西北大学 Embedded Beidou satellite short message communication control system
CN109412679A (en) * 2018-12-15 2019-03-01 广东海洋大学 Big-dipper satellite multi-antenna communication method
US20190174449A1 (en) * 2018-02-09 2019-06-06 Intel Corporation Technologies to authorize user equipment use of local area data network features and control the size of local area data network information in access and mobility management function
CN109981418A (en) * 2019-04-11 2019-07-05 广东电网有限责任公司 A kind of communication quality sensory perceptual system and method
CN110146129A (en) * 2019-05-17 2019-08-20 广州航海学院 A kind of real-time contamination monitoring system of ship based on Big Dipper short message and method
CN110212938A (en) * 2019-05-21 2019-09-06 中国科学院海洋研究所 The real-time large-capacity data transmission system of deep-sea subsurface buoy based on big-dipper satellite
CN110289934A (en) * 2019-05-13 2019-09-27 湖北智途北斗空间信息技术有限公司 A kind of data transmission coding coding/decoding method and system based on Big Dipper short message
CN111338337A (en) * 2020-02-18 2020-06-26 广州航海学院 Omnidirectional positioning buoy control method, system and equipment based on fuzzy algorithm

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0875102B1 (en) * 1996-01-18 2001-10-31 Ericsson Inc. High power short message service using dedicated carrier frequency
CN102694855A (en) * 2012-05-21 2012-09-26 南京信息工程大学 Meteorological disaster early warning information publishing system and method on basis of Beidou satellite
CN105098975A (en) * 2014-05-14 2015-11-25 国家电网公司 Power grid remote intelligent monitoring system based on Beidou short message communication and monitoring method
CN104468059A (en) * 2014-12-05 2015-03-25 北京艾力泰尔信息技术有限公司 Reliable data transmission method based on Beidou satellite
CN105025087A (en) * 2015-06-15 2015-11-04 山东大学 Beidou wide-area migration target autonomous internet of things and stereoscopic monitoring integrated device and working method thereof
CN205071021U (en) * 2015-09-18 2016-03-02 中央民族大学 Full duplex multiple access instant messaging terminal based on big dipper short message
CN106533539A (en) * 2016-11-29 2017-03-22 西北大学 Embedded Beidou satellite short message communication control system
US20190174449A1 (en) * 2018-02-09 2019-06-06 Intel Corporation Technologies to authorize user equipment use of local area data network features and control the size of local area data network information in access and mobility management function
CN109412679A (en) * 2018-12-15 2019-03-01 广东海洋大学 Big-dipper satellite multi-antenna communication method
CN109981418A (en) * 2019-04-11 2019-07-05 广东电网有限责任公司 A kind of communication quality sensory perceptual system and method
CN110289934A (en) * 2019-05-13 2019-09-27 湖北智途北斗空间信息技术有限公司 A kind of data transmission coding coding/decoding method and system based on Big Dipper short message
CN110146129A (en) * 2019-05-17 2019-08-20 广州航海学院 A kind of real-time contamination monitoring system of ship based on Big Dipper short message and method
CN110212938A (en) * 2019-05-21 2019-09-06 中国科学院海洋研究所 The real-time large-capacity data transmission system of deep-sea subsurface buoy based on big-dipper satellite
CN111338337A (en) * 2020-02-18 2020-06-26 广州航海学院 Omnidirectional positioning buoy control method, system and equipment based on fuzzy algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHIJUN: "ECDSA-Based Message Authentication Scheme for BeiDou-II Navigation Satellite System", 《IEEE TRANSACTIONS ON AEROSPACE AND ELECTRONIC SYSTEMS》 *
崔力维: "CRC校验和DES加密技术在北斗短报文通信中的应用研究", 《科技资讯》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330946A (en) * 2021-01-07 2021-02-05 航天宏图信息技术股份有限公司 Power grid platform data communication method, power grid data transmission method, device and system
CN112822461A (en) * 2021-03-29 2021-05-18 国网新疆电力有限公司电力科学研究院 Power transmission line image data acquisition system and method based on Beidou short message
CN113112165A (en) * 2021-04-20 2021-07-13 武荣盛 Analysis method for crop climate yield potential
CN113630413A (en) * 2021-08-06 2021-11-09 广东省林业科学研究院 Beidou short message-based ecological monitoring acquisition data verification method
CN113740748B (en) * 2021-09-03 2024-04-26 深圳市新威尔电子有限公司 Battery detection method based on CAN bus sending message
CN113740748A (en) * 2021-09-03 2021-12-03 深圳市新威尔电子有限公司 Battery detection method for sending message based on CAN bus
CN113676844A (en) * 2021-09-27 2021-11-19 北京星网船电科技有限公司 Multipoint data communication method and system based on Beidou short message
CN113923274A (en) * 2021-09-29 2022-01-11 航天新气象科技有限公司 Method, device and storage medium for judging whether transmission data is interfered
CN113590988B (en) * 2021-10-08 2021-12-14 中航信移动科技有限公司 Network data acquisition system
CN113590988A (en) * 2021-10-08 2021-11-02 中航信移动科技有限公司 Network data acquisition system
CN114759975A (en) * 2022-04-19 2022-07-15 国网新疆电力有限公司哈密供电公司 Electric energy data acquisition method and system based on Beidou satellite communication
CN114759975B (en) * 2022-04-19 2023-09-01 国网新疆电力有限公司哈密供电公司 Electric energy data acquisition method and system based on Beidou satellite communication
CN114584202A (en) * 2022-04-28 2022-06-03 环球数科集团有限公司 Beidou satellite short message remote communication data acquisition system
CN114584202B (en) * 2022-04-28 2022-07-05 环球数科集团有限公司 Beidou satellite short message remote communication data acquisition system
CN115604051A (en) * 2022-10-10 2023-01-13 江西师范大学(Cn) High-reliability hydrological survey station data acquisition and transmission method
CN116744245A (en) * 2023-07-13 2023-09-12 北京蔚海明祥科技有限公司 Binary data transmission system and method based on Beidou short message system
CN117670250A (en) * 2023-12-18 2024-03-08 沸蓝建设咨询有限公司 Intelligent supervision system based on Beidou system
CN117670250B (en) * 2023-12-18 2024-06-04 沸蓝建设咨询有限公司 Intelligent supervision system based on Beidou system

Also Published As

Publication number Publication date
CN111934751B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN111934751B (en) Agricultural environment data acquisition system and method based on Beidou short message
CN101399734A (en) Farm land soil information collecting system and method
CN101713652A (en) Intelligent multi-sensor system and working method thereof
CN103149897B (en) Precision agriculture self-adaption monitoring method based on agricultural Internet of things
CN102186228A (en) Wireless multimedia sensor network-based system and method for monitoring information of livestock and poultry facility welfare breeding environment
CN102186186B (en) Wireless sensor network motoring method and system for infrastructure
CN104219789B (en) A kind of WSN information Perception system and methods for water level monitoring
CN106131770A (en) A kind of data fusion method of the wireless sensor network for greenhouse
CN103278704A (en) Three-dimensional lightning detection system and method based on Beidou
CN201622685U (en) Wireless sensor network monitoring system for field atmospheric environment and hydrologic information
CN101667333B (en) Method and device for wirelessly reading a meter
Zhang et al. Smart greenhouse management system based on NB-IoT and smartphone
Zhang et al. Energy efficiency analysis of wireless sensor networks in precision agriculture economy
Hu et al. Design and implementation of wireless sensor and actor network for precision agriculture
CN104807498A (en) Farmland environment wireless monitoring system based on Zigbee and 3G technology
CN205427671U (en) Environmental information automatic monitoring device based on thing networking
KR20170099698A (en) Telemetry system
CN202121610U (en) Livestock and poultry facility welfare cultivation environment information monitoring system based on wireless multimedia sensor network
CN115209370B (en) Informationized system for four-dimensional intelligent regulation and control of urban underground water safety
CN110754330A (en) Intelligent water-saving irrigation system based on LoRa technology and based on Internet of things
CN207752324U (en) A kind of long range Agricultural Information acquisition gateway system based on LoRa
Gialelis et al. A Low Cost Energy Efficient IoT Node Utilized in the Agricultural Field
CN210270172U (en) Agricultural implement positioning system based on Internet of things
CN203177915U (en) Ultra-low power consumption camera-shooting and direct-reading gas meter supporting wireless ad hoc network
CN112822461A (en) Power transmission line image data acquisition system and method based on Beidou short message

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
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20201113

Assignee: Yunnan Hongxin Technology Co.,Ltd.

Assignor: SOUTH CENTRAL University FOR NATIONALITIES

Contract record no.: X2023420000229

Denomination of invention: A Agricultural Environment Data Collection System and Method Based on Beidou Short Message

Granted publication date: 20210518

License type: Common License

Record date: 20230707

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20201113

Assignee: Yunnan Shenma Technology Co.,Ltd.

Assignor: SOUTH CENTRAL University FOR NATIONALITIES

Contract record no.: X2023420000239

Denomination of invention: A Agricultural Environment Data Collection System and Method Based on Beidou Short Message

Granted publication date: 20210518

License type: Common License

Record date: 20230712