Intelligent agricultural information acquisition method and system

By obtaining the soil parameters collected by the sensor and using the CRC checksum MQTT protocol for data processing and transmission, the problems of agricultural equipment load and energy consumption are solved, and the intelligent and efficient agricultural production is achieved.

CN119449839APending Publication Date: 2025-02-14CHINA STATE SHIPBUILDING CORP LTD RESEARCH INSTITUTE 719 +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411347207.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

On the basis of improving the level of intelligent agricultural production, how to reasonably control equipment load and save energy and costs.

Method used

By obtaining the original soil parameters collected by different types of sensors, using CRC verification algorithm to filter out abnormal parameters, obtain the target soil parameters, and transmit the target soil parameters to the cloud server based on the MQTT Internet of Things transmission protocol.

Benefits of technology

Real-time monitoring and collection of farmland soil parameters is realized. Through low-cost sensing technology and efficient data transmission protocol, equipment load and energy consumption are reduced, and timely and accurate information support is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449839A_ABST
    Figure CN119449839A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent agricultural information collection method and system, and relates to the technical field of Internet communication, and the method comprises the steps: obtaining original soil parameters collected by different types of sensors; the original soil parameters comprise soil temperature and humidity parameters, soil acidity and alkalinity parameters and soil conductivity parameters; verifying the original soil parameters by using a CRC verification algorithm, and filtering out abnormal parameters in the original soil parameters to obtain target soil parameters; and transmitting the target soil parameters to a cloud server based on an MQTT Internet of Things transmission protocol. According to the invention, by adopting a low-cost sensing technology, real-time monitoring and acquisition of farmland soil parameters are realized. Meanwhile, on the basis of an MQTT Internet of Things transmission protocol, uplink and downlink transmission of data is achieved, the collected data can be rapidly and stably transmitted to a cloud server, and therefore timely and accurate information support can be provided for agricultural production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet communication technology, and in particular to a smart agriculture information collection method and system. Background Art

[0002] With the continuous development of society and the increase in population, agricultural production is facing unprecedented challenges. In order to meet the growing demand for food and improve the efficiency of agricultural production, the concept of smart agriculture came into being. In smart agriculture, the Internet of Things technology plays a key role, providing comprehensive information support for agricultural production through real-time monitoring and data collection. The application of the Internet of Things in the agricultural field, especially the data collection and transmission system for smart agriculture, has become an important part of agricultural modernization. The agricultural Internet, which is centered on information sensing equipment, wireless sensor networks, the Internet and intelligent information processing, can realize real-time monitoring of soil, crops and their ecological environment from macro to micro, and improve the level of refined management of agricultural production and operation through cloud servers. How to reasonably control equipment load and save energy and cost on the basis of improving the level of intelligence in agricultural production has become the current research direction. Summary of the invention

[0003] The purpose of the present invention is to solve the problem of how to reasonably control equipment load and save energy and cost on the basis of improving the intelligence level of agricultural production. The present invention provides a smart agricultural information collection method and system.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] A first aspect of an embodiment of the present application provides a method for collecting smart agricultural information, comprising:

[0006] Acquire original soil parameters collected by different types of sensors; the original soil parameters include soil temperature and humidity parameters, soil pH parameters, and soil conductivity parameters;

[0007] The original soil parameters are verified by using a CRC verification algorithm, abnormal parameters in the original soil parameters are filtered out, and target soil parameters are obtained;

[0008] The target soil parameters are transmitted to a cloud server based on the MQTT Internet of Things transmission protocol.

[0009] Optionally, the number of sensors of each type is not less than two.

[0010] Optionally, the using of a CRC check algorithm to check the original soil parameters, filtering out abnormal parameters in the original soil parameters, and obtaining target soil parameters includes:

[0011] Converting the original soil parameters into a byte sequence to obtain a soil parameter sequence;

[0012] Transmitting the soil parameter sequence including the CRC check code, and determining whether the CRC check codes before and after the transmission match;

[0013] If the CRC check codes before and after transmission do not match, the original soil parameters corresponding to the CRC check codes are filtered out to obtain target soil parameters.

[0014] Optionally, before transmitting the target soil parameter to the cloud server based on the MQTT Internet of Things transmission protocol, the method further includes:

[0015] Get the device information of the sender and receiver;

[0016] The data transmission mode, message format and device addressing mode are determined based on the device information.

[0017] A second aspect of the embodiment of the present application provides a smart agricultural information collection system, including:

[0018] A variety of sensors are used to collect original soil parameters; the original soil parameters include soil temperature and humidity parameters, soil pH parameters and soil conductivity parameters;

[0019] A processor, configured to verify the original soil parameters, filter out abnormal parameters in the original soil parameters, and obtain target soil parameters;

[0020] A cloud server, used for receiving target soil parameters based on the MQTT Internet of Things transmission protocol, and storing and analyzing the target soil parameters;

[0021] The mobile terminal is used to send a request to the cloud server, receive the target soil parameters sent by the cloud server, and display them.

[0022] Optionally, the cloud server is a Broker agent platform of MQTT.

[0023] Optionally, the sensor includes a video sensor; the cloud server also includes a feature extraction unit, and the feature extraction unit is used to receive video data transmitted by the video sensor and extract corresponding feature parameters from the video data.

[0024] Optionally, the mobile terminal is further used to send an adjustment instruction to the cloud server to adjust the collection frequency of the sensor through the cloud server.

[0025] A third aspect of an embodiment of the present application provides an electronic device, including a processor and a memory; the memory stores a computer program, wherein the computer program, when executed by the processor, implements the smart agriculture information collection method described in the first aspect.

[0026] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0027] Compared with the prior art, the technical solution provided by this application has the following beneficial effects:

[0028] The present invention provides a smart agricultural information collection method, which obtains original soil parameters collected by different types of sensors, uses a CRC check algorithm to check the original soil parameters, filters out abnormal parameters in the original soil parameters, obtains target soil parameters, and transmits the target soil parameters to a cloud server based on the MQTT Internet of Things transmission protocol. By adopting low-cost sensing technology, real-time monitoring and collection of farmland soil parameters are achieved. At the same time, based on the MQTT Internet of Things transmission protocol, uplink and downlink transmission of data is achieved, and the collected data can be quickly and stably transmitted to the cloud server, thereby providing timely and accurate information support for agricultural production. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A flowchart of a method for collecting smart agricultural information provided by an embodiment of the present application;

[0030] Figure 2 A schematic diagram of the structure of a smart agricultural information collection system provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] Below, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present application.

[0033] The terms used herein are only for describing specific embodiments and are not intended to limit the present application. The terms "include", "comprising", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0034] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0035] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions, when executed by the processor, may create a device for implementing the functions / operations described in these block diagrams and / or flow charts.

[0036] In some embodiments, see Figure 1 , Figure 1 A flowchart of a method for collecting smart agricultural information provided by an embodiment of the present application; the method for collecting smart agricultural information provided by an embodiment of the present application includes:

[0037] S110, obtaining original soil parameters collected by different types of sensors; the original soil parameters include soil temperature and humidity parameters, soil pH parameters, and soil conductivity parameters.

[0038] In this embodiment, the sensor may include a temperature sensor, a humidity sensor, a light intensity sensor, a soil moisture sensor, a pH sensor, and a conductivity sensor. Among them, the detection range of the temperature sensor may be -80 to 150°C, the detection range of the humidity sensor may be 0 to 100%, the detection range of the light intensity sensor may be 0 to 65000LUX, the detection range of the soil moisture sensor may be 0 to 100, the detection range of the pH sensor may be 1-10pH, and the detection range of the conductivity sensor may be 0 to 2000uS / cm. It should be noted that, according to actual needs, the original soil parameters may also include other parameters, such as nitrogen content, phosphorus content, potassium content and other parameters.

[0039] In some embodiments, the number of sensors of each type is no less than two.

[0040] Here, in order to avoid the error that may be caused by a single sensor, the number of sensors of each type can be two or more, and the abnormal data can be screened out by the difference between the sensor data, such as data that is significantly larger than the normal value or significantly smaller than the normal value. On this basis, the average value of the same type of sensor data in the normal range can be used as the final standard parameter to further reduce the measurement error and improve the accuracy and reliability of data collection.

[0041] S120, using a CRC check algorithm to check the original soil parameters, filter out abnormal parameters in the original soil parameters, and obtain target soil parameters.

[0042] The CRC checksum algorithm uses the principle of polynomial division, treating the data to be sent as a binary polynomial, and performing a division operation through a predefined generator polynomial to obtain the remainder as the checksum. The receiving end uses the same generator polynomial to divide the received data. If the remainder obtained is consistent with the sent checksum, it is considered that there is no error in the data transmission process.

[0043] In some embodiments, S120, the original soil parameters are verified using a CRC verification algorithm, abnormal parameters in the original soil parameters are filtered out, and target soil parameters are obtained, including:

[0044] Convert the original soil parameters into a byte sequence to obtain a soil parameter sequence;

[0045] Transmitting the soil parameter sequence including the CRC check code to determine whether the CRC check codes before and after the transmission match;

[0046] If the CRC check codes before and after transmission do not match, the original soil parameters corresponding to the CRC check codes are filtered out to obtain the target soil parameters.

[0047] In this embodiment, the soil temperature and humidity parameters, soil pH parameters and soil conductivity parameters in the original soil parameters are converted into a byte sequence, and the conversion here also includes the necessary units of each parameter. On this basis, the CRC check code of the entire byte sequence is calculated, and the CRC check code is attached to the end of the byte sequence, and the byte sequence containing the CRC check code is sent through the network. At the receiving end, the received byte sequence is parsed, and the CRC value of the CRC check code portion is calculated. The calculated CRC value is compared with the received CRC check code. If the calculated CRC value does not match the received CRC check code, it indicates that an error may have occurred in the data transmission process, so the original soil parameter corresponding to this CRC check code is filtered out to ensure the integrity and accuracy of the overall data.

[0048] S130, transmitting the target soil parameters to the cloud server based on the MQTT Internet of Things transmission protocol.

[0049] MQTT (Message Queuing Telemetry Transport) is a lightweight, open, publish / subscribe-based message transmission protocol designed for reliable communication between devices in low-bandwidth, high-latency or unstable network environments. The lightweight design of the protocol is one of the notable features of MQTT. It uses a simple header, which can effectively reduce network overhead.

[0050] In some embodiments, at S130, before transmitting the target soil parameters to the cloud server based on the MQTT Internet of Things transmission protocol, the smart agriculture information collection method further includes:

[0051] Get the device information of the sender and receiver;

[0052] Determine the data transmission method, message format and device addressing method based on the device information.

[0053] In this embodiment, the sensor adopts the Modbus communication protocol. When used in serial communication, the protocol defines the transmission mode, message format, and device addressing method, so that devices produced by different manufacturers can communicate with each other. It is suitable for scenarios where data is transmitted at a low speed in the smart agricultural Internet of Things.

[0054] This embodiment obtains the original soil parameters collected by different types of sensors, verifies the original soil parameters using the CRC verification algorithm, filters out abnormal parameters in the original soil parameters, obtains the target soil parameters, and transmits the target soil parameters to the cloud server based on the MQTT Internet of Things transmission protocol. By adopting low-cost sensing technology, real-time monitoring and collection of farmland soil parameters are achieved. At the same time, based on the MQTT Internet of Things transmission protocol, uplink and downlink transmission of data is achieved, and the collected data can be quickly and stably transmitted to the cloud server, thereby providing timely and accurate information support for agricultural production.

[0055] In some embodiments, see Figure 2 , Figure 2 A schematic diagram of the structure of the smart agricultural information collection system provided in the embodiment of the present application; the smart agricultural information collection system provided in the embodiment of the present application includes:

[0056] The various sensors 210 are used to collect original soil parameters; the original soil parameters include soil temperature and humidity parameters, soil pH parameters, and soil electrical conductivity parameters.

[0057] The processor 220 is used to verify the original soil parameters, filter out abnormal parameters in the original soil parameters, and obtain target soil parameters.

[0058] The cloud server 230 is used to receive the target soil parameters based on the MQTT Internet of Things transmission protocol, and store and analyze the target soil parameters.

[0059] The mobile terminal 240 is used to send a request to the cloud server, receive the target soil parameters sent by the cloud server, and display them.

[0060] In some embodiments, the cloud server is a Broker agent platform of MQTT.

[0061] In this embodiment, the smart agricultural information collection system can be divided into two parts, namely, the hardware circuit system for collection and upload and the server data management system. The data collection and upload circuit system includes a variety of sensors and corresponding processors, which are responsible for uploading the collected soil parameter information to the server data management system through the wireless communication module. Here, the server data management system mainly includes the Broker proxy platform and database of MQTT. In the design of the server data management system, the background program UpdatMySQL.py is used to subscribe to the topic in the Broker platform to obtain the uploaded data and update the data table content in real time. In the Web service based on the Django framework, Ajax requests are introduced to display the data table content in real time on the web page. Users can access the web page through the mobile terminal to interact with the data. In the data downlink transmission, the Web service transmits the downlink information through the Broker publishing the topic message.

[0062] In some embodiments, the sensor includes a video sensor; the cloud server also includes a feature extraction unit, which is used to receive video data transmitted by the video sensor and extract corresponding feature parameters from the video data.

[0063] Video sensors can capture the growth process of crops in real time, including leaf color, growth rate, etc., and combined with soil moisture sensors and video images, they can more accurately determine the water needs of crops, achieve precise irrigation, and avoid waste of water resources. In addition, based on the growth status of crops and soil nutrient content, video sensors can assist in formulating scientific fertilization plans, achieve precise fertilization, and improve fertilizer utilization.

[0064] In some embodiments, the mobile terminal is further used to send an adjustment instruction to the cloud server to adjust the collection frequency of the sensor through the cloud server.

[0065] In this embodiment, by adjusting the acquisition frequency of the sensor, the density and accuracy of data acquisition can be flexibly controlled according to actual needs, and the overall power consumption and cost of the system can be further reduced while ensuring that the data accuracy and real-time requirements are met.

[0066] The smart agriculture information collection system provided in the embodiment of the present application is based on the above-mentioned smart agriculture information collection method, which will not be described again here to avoid repetition.

[0067] It should be noted that the smart agriculture information collection system provided in the embodiment of the present application and the smart agriculture information collection method provided in the embodiment of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned smart agriculture information collection method, and the repeated parts will not be repeated.

[0068] In some embodiments, see Figure 3 , Figure 3 The electronic device 300 provided in the embodiment of the present application includes a processor 310 and a memory 320; the memory 320 stores a computer program, wherein the computer program implements the above-mentioned smart agricultural information collection method when executed by the processor.

[0069] Specifically, the processor 310 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 310 may also include an onboard memory for cache purposes. The processor 310 may be a single processing unit or multiple processing units for executing different actions of the method flow according to the embodiment of the present application.

[0070] The memory 320 may be any medium capable of containing, storing, conveying, propagating or transmitting instructions. For example, the memory 320 may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device, component or propagation medium. Specific examples of the memory 320 include: a magnetic storage device, such as a magnetic tape or a hard disk (HDD); an optical storage device, such as a compact disk (CD-ROM); a random access memory (RAM) or flash memory; and / or a wired / wireless communication link.

[0071] The present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned smart agriculture information collection method is implemented. The computer-readable medium may be included in the device / system described in the above embodiment; or it may exist independently without being assembled into the device / system. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed, the method according to the embodiment of the present application is implemented.

[0072] According to an embodiment of the present application, a computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical cable, radio frequency signal, etc., or any suitable combination of the above.

[0073] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present application. Therefore, the scope of the present application should not be limited to the above-described embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A method for collecting smart agricultural information, characterized in that: include: Acquire original soil parameters collected by different types of sensors; the original soil parameters include soil temperature and humidity parameters, soil pH parameters, and soil conductivity parameters; The original soil parameters are verified by using a CRC verification algorithm, abnormal parameters in the original soil parameters are filtered out, and target soil parameters are obtained; The target soil parameters are transmitted to a cloud server based on the MQTT Internet of Things transmission protocol.

2. The method for collecting smart agricultural information according to claim 1, characterized in that: The number of the sensors of each type is not less than two.

3. The method for collecting smart agricultural information according to claim 1, characterized in that: The method of using a CRC check algorithm to check the original soil parameters, filtering out abnormal parameters in the original soil parameters, and obtaining target soil parameters includes: Converting the original soil parameters into a byte sequence to obtain a soil parameter sequence; Transmitting the soil parameter sequence including the CRC check code, and determining whether the CRC check codes before and after the transmission match; If the CRC check codes before and after transmission do not match, the original soil parameters corresponding to the CRC check codes are filtered out to obtain target soil parameters.

4. The method for collecting smart agricultural information according to claim 1, characterized in that: Before transmitting the target soil parameter to the cloud server based on the MQTT Internet of Things transmission protocol, the method further includes: Get the device information of the sender and receiver; The data transmission mode, message format and device addressing mode are determined based on the device information.

5. A smart agricultural information collection system, characterized in that: include: A variety of sensors are used to collect original soil parameters; the original soil parameters include soil temperature and humidity parameters, soil pH parameters and soil conductivity parameters; A processor, configured to verify the original soil parameters, filter out abnormal parameters in the original soil parameters, and obtain target soil parameters; A cloud server, used for receiving target soil parameters based on the MQTT Internet of Things transmission protocol, and storing and analyzing the target soil parameters; The mobile terminal is used to send a request to the cloud server, receive the target soil parameters sent by the cloud server, and display them.

6. The smart agricultural information collection system according to claim 5, characterized in that: The cloud server is a Broker proxy platform of MQTT.

7. The smart agricultural information collection system according to claim 5, characterized in that: The sensor includes a video sensor; the cloud server also includes a feature extraction unit, which is used to receive video data transmitted by the video sensor and extract corresponding feature parameters from the video data.

8. The smart agricultural information collection system according to claim 5, characterized in that: The mobile terminal is also used to send an adjustment instruction to the cloud server to adjust the collection frequency of the sensor through the cloud server.

9. An electronic device comprising a processor and a memory; the memory stores a computer program, wherein: When the computer program is executed by the processor, the computer program implements the smart agricultural information collection method described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Multi-core sensor system, and isolation and recovery method therefor

    CN111051852A

  • Soil data acquisition system

    CN114040350A

  • Black land agricultural resource management cloud center based on cloud computing and big data

    CN115102954A

  • Remote real-time monitoring method, device and system for carbon dioxide emission

    CN115884009A

  • Data format conversion method of Internet of Things sensor, gateway and communication equipment

    CN116112553A