Agricultural planting management method and system based on Internet of Things
By setting up a collection module and an intermediate module in the agricultural planting system and using coding transmission technology to process monitoring data, the problems of unstable monitoring data transmission and large network resource occupation in the existing system are solved, and more efficient and reliable agricultural planting management is achieved.
Patent Information
- Application Number
- CN202410738640.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-06-07
AI Technical Summary
In the existing Internet of Things-based agricultural planting management system, the monitoring server and feedback system are instability, and it has failed to effectively reduce the use of monitoring data on network resources.
By setting up a collection module in the farmland, monitoring data such as air temperature and humidity, soil temperature and humidity, wind speed and light intensity are collected, and the intermediate module is used to communicate and connect with the acquisition module. The intermediate module transmits the monitoring data to the remote module for analysis and processing through encoding and transmission, and the remote module sends the analysis results to the user module.
It improves the reliability of the system, avoids the problem of delay or the inability to perform analysis and processing on the monitoring data, and at the same time improves the operating efficiency of the system and reduces the use of monitoring data on network resources.
Smart Images

Figure CN118590532B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of agricultural planting, and in particular relates to an agricultural planting management method and system based on the Internet of Things. Background Art
[0002] The growth of crops is affected by many environmental factors, including key environmental parameters such as soil temperature and humidity, air temperature and humidity, and light intensity. Modern agriculture can provide the most suitable growth conditions for crops by real-time monitoring and analyzing these environmental parameters, thereby improving crop yield and quality.
[0003] The Chinese invention application with publication number CN108718854A discloses a loquat planting antifreeze method and monitoring and early warning system based on the Internet of Things. The system includes a field collector, multiple controllers arranged in the planting area, a centralized controller and a monitoring server. The field collector is connected to the controller, and the multiple controllers are respectively connected to the centralized controller, and the centralized controller is connected to the monitoring server. The field collector includes a micro control unit module, a sensor unit module, a transmission unit module, a display unit module and a power supply unit module. The sensor unit module, the transmission unit module and the display unit module are respectively connected to the micro control unit module. The monitoring server is provided with a comparison program module, a first judgment program module, a second judgment program module, a calling program module, a transmission device and a storage module, which can prevent frost damage problems in loquat planting and improve planting efficiency.
[0004] The Chinese invention application with publication number CN117933558A provides a campus smart agriculture planting management method, including the following steps: building a monitoring system in the campus planting area to monitor the crop growth information in the planting area, and transmitting the collected crop growth information to a feedback system; building a feedback system connected to the detection system, the feedback system analyzes the crop growth information data, and formulates a management implementation plan based on the analysis results, and at the same time feeds back the analysis results to the control system, which can improve the production efficiency and output of campus agriculture planting.
[0005] However, the monitoring server and the feedback system in the above invention applications are unstable, and the above invention applications do not consider the problem that the transmitted monitoring data occupies more network resources. Summary of the invention
[0006] The present invention collects monitoring data of farmland through a collection module, the collection module sends the monitoring data to an intermediate module, the intermediate module communicates data with a remote module through coded transmission, the control module selects one of the remote module and the intermediate module to analyze and process the monitoring data, when the intermediate module performs the analysis and processing, the intermediate module sends the analysis result to the remote module, the remote module sends it to the user module, when the remote module performs the analysis and processing, the remote module sends the analysis result to the user module. The purpose of the present invention is to improve the reliability of the system and reduce the occupation of network resources by monitoring data.
[0007] In order to achieve the above-mentioned purpose of the invention, the present invention provides an agricultural planting management method based on the Internet of Things as described below, which mainly includes the following steps:
[0008] S1. Different collection modules are set in the farmland, and corresponding monitoring data are collected by different collection modules respectively, wherein the monitoring data includes air temperature and humidity, soil temperature and humidity, wind speed, and light intensity, and an intermediate module is set, wherein the intermediate module is connected to the different collection modules for communication, and the different collection modules send the monitoring data collected by themselves to the intermediate module;
[0009] S2, setting a remote module, the remote module is in communication connection with the intermediate module, and setting a control module, the control module selects one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results;
[0010] S3. When the analysis and processing is performed by the intermediate module, the intermediate module transmits the analysis result as communication data to the remote module for storage through encoded transmission, and the remote module sends the analysis result to the user module. When the analysis and processing is performed by the remote module, the remote module directly sends the analysis result to the user module.
[0011] As a preferred technical solution of the present invention, the control module selects one of the remote module and the intermediate module, comprising the following steps:
[0012] S21, the control module calculates a first time, which is the sum of the time for the intermediate module to encode the monitoring data, the time for the intermediate module to transmit the encoded monitoring data to the remote module, and the time for the remote module to perform decoding and analysis, and the control module determines whether the first time is less than a preset time threshold, and if so, selects the remote module, and if not, proceeds to the next step;
[0013] S22, the control module calculates a second time, which is the time for the intermediate module to analyze and process one of the monitoring data, and the control module determines whether the second time is less than the time threshold. If so, the intermediate module is selected; otherwise, the selection is determined to have failed.
[0014] As a preferred technical solution of the present invention, when the analysis and processing is performed by the remote module, the intermediate module integrates the monitoring data sent from different acquisition modules, and when the number of integrated different monitoring data reaches a first quantity threshold, the integrated different monitoring data are uniformly transmitted to the remote module.
[0015] As a preferred technical solution of the present invention, when the analysis and processing is performed by the intermediate module, the intermediate module integrates the monitoring data sent from different acquisition modules, and when the number of integrated different monitoring data reaches a second quantity threshold, the analysis and processing is performed on the integrated different monitoring data.
[0016] As a preferred technical solution of the present invention, the first quantity threshold refers to a first quantity that makes the third time calculated by the control module equal to the time threshold, and the third time is the time interval for the intermediate module to receive the monitoring data multiplied by the first quantity minus one, plus the time for the intermediate module to integrate and process the first quantity of the monitoring data, the time for the intermediate module to encode the first quantity of the monitoring data, the time for the intermediate module to transmit the first quantity of the encoded monitoring data to the remote module, and the calculation result of the time for the remote module to perform decoding and analysis.
[0017] As a preferred technical solution of the present invention, the second quantity threshold refers to the second quantity that makes the fourth time calculated by the control module equal to the time threshold, and the fourth time is the time interval for the intermediate module to receive the monitoring data multiplied by the second quantity minus one, plus the time for the intermediate module to integrate and process the second quantity of the monitoring data, and the time for the intermediate module to analyze and process the second quantity of the monitoring data.
[0018] As a preferred technical solution of the present invention, the time threshold refers to the time from the intermediate module receiving the monitoring data to the end of the analysis and processing.
[0019] As a preferred technical solution of the present invention, the intermediate module transmits the communication data to the remote module by means of coded transmission, including the following steps:
[0020] S31, the intermediate module determines first data consisting of continuous zero values in the communication data, obtains a first number corresponding to the longest first data, and determines second data consisting of continuous non-zero values in the communication data, obtains a second number corresponding to the longest second data;
[0021] S32, the intermediate module sets the minimum number of bits that can express the first number as the number of bits of the first information, sets the minimum number of bits that can express the second number as the number of bits of the second information, and sets the contents of the first information and the second information respectively according to the first number and the second number;
[0022] S33, the intermediate module sets the bit number of the third information to one, and determines whether the start data of the communication data is a zero value, and if so, sets the content of the third information to a zero value, otherwise, sets the content of the third information to a one value;
[0023] S34, the intermediate module also sets the bit number of the fourth information to one, and determines whether the end data of the communication data is a zero value. If yes, the content of the fourth information is set to a zero value, otherwise, the content of the fourth information is set to a one value;
[0024] S35, the intermediate module determines whether the start data of the communication data is a zero value, and if so, executes S36 to add data after the fourth information, otherwise, executes S37 to add data after the fourth information;
[0025] S36, the intermediate module adds the number of consecutive zero values in binary form, and determines whether the end of the communication data has been reached. If yes, all steps are terminated, otherwise, continue to S37;
[0026] S37, the intermediate module continues to add the number of consecutive non-zero values in binary form and the non-zero values in binary form, and the intermediate module determines whether the end of the communication data has been reached. If so, all steps are terminated, otherwise, jump to S36.
[0027] As a preferred technical solution of the present invention, the number of bits of the number of consecutive zero values in binary form added by the intermediate module is the same as the number of bits of the first information, and the number of consecutive non-zero values in binary form added by the intermediate module is the same as the number of bits of the second information.
[0028] The present invention also provides an agricultural planting management system based on the Internet of Things, which mainly includes the following modules:
[0029] The collection module is set in the farmland to collect monitoring data, including air temperature and humidity, soil temperature and humidity, wind speed, and light intensity;
[0030] The middle module is used to communicate with different acquisition modules, collect monitoring data from different acquisition modules, and analyze and process the monitoring data from different acquisition modules;
[0031] The remote module is used to communicate data with the intermediate module by means of coded transmission, and is also used to analyze and process the monitoring data of different acquisition modules, store the analysis results, and send the analysis results to the user module;
[0032] A control module, used for selecting one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results;
[0033] User module, used to receive and display analysis results.
[0034] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0035] Firstly, different acquisition modules are set in the farmland, and corresponding monitoring data are collected respectively by different acquisition modules, and an intermediate module is set, and the intermediate module is communicated with different acquisition modules, and different acquisition modules send the monitoring data collected by themselves to the intermediate module; secondly, a remote module is set, and the remote module communicates with the intermediate module through coded transmission, and a control module is set, and the control module selects one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results; finally, when the analysis and processing is performed by the intermediate module, the intermediate module transmits the analysis results to the remote module for storage through coded transmission, and the remote module sends the analysis results to the user module at the same time, and when the analysis and processing is performed by the remote module, the remote module directly sends the analysis results to the user module.
[0036] The present invention can not only improve the reliability of the system, avoid delays or the problem of being unable to perform analysis and processing on monitoring data, but also improve the operating efficiency of the system and reduce the occupation of network resources by monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A flowchart of the steps of an agricultural planting management method based on the Internet of Things of the present invention;
[0038] Figure 2 This is a structural diagram of the composition of an agricultural planting management system based on the Internet of Things of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0040] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0041] The present invention provides Figure 1 The agricultural planting management method based on the Internet of Things is mainly implemented by executing the following steps:
[0042] S1. Different collection modules are set up in the farmland to collect corresponding monitoring data respectively through different collection modules. The monitoring data include air temperature and humidity, soil temperature and humidity, wind speed, and light intensity. An intermediate module is set up to communicate with different collection modules. Different collection modules send the monitoring data collected by themselves to the intermediate module.
[0043] S2, setting a remote module, the remote module is connected to the intermediate module for communication, and setting a control module, the control module selects one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results;
[0044] S3. When the analysis and processing is performed by the intermediate module, the intermediate module transmits the analysis results as communication data to the remote module for storage through encoded transmission, and the remote module sends the analysis results to the user module. When the analysis and processing is performed by the remote module, the remote module directly sends the analysis results to the user module.
[0045] Specifically, first, different collection modules are set in the farmland. The collection modules can be Internet of Things devices such as air temperature and humidity sensors and soil moisture meters. The corresponding monitoring data are collected through different collection modules. The monitoring data include air temperature and humidity, soil temperature and humidity, wind speed, and light intensity, etc., which can affect the growth of crops. Environmental parameters, among which, soil temperature affects the growth and absorption capacity of crop roots, soil moisture is the soil water content, and an appropriate amount of water can ensure the water supply of crops. Air temperature directly affects the photosynthesis and respiration of crops, and air humidity affects the transpiration of crops. Light is a necessary condition for plants to carry out photosynthesis, which affects the growth rate and yield of crops. Appropriate wind speed helps to improve air fluidity and reduce the occurrence of diseases and insect pests. An intermediate module is set, and the intermediate module communicates data with different collection modules. Specifically, different collection modules send the monitoring data collected by themselves to the intermediate module. Secondly, a remote module is set up, and the remote module communicates with the intermediate module. Specifically, the intermediate module sends communication data to the remote module by means of coded transmission. A control module is also set up. The control module selects one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results. The method of selecting one of the remote module and the intermediate module will be described below. The analysis result here refers to the judgment result of whether the current growth environment of the crop is suitable, and the most suitable growth environment for the crop, obtained by analyzing and processing the monitoring data using the crop model and the expert system. Finally, if the control module determines that the intermediate module performs the analysis and processing, the intermediate module transmits the analysis result as communication data to the remote module by means of coded transmission for storage, and the remote module sends the analysis result to the user module at the same time. If the control module determines that the remote module performs the analysis and processing, the remote module directly sends the analysis result to the user module. Subsequently, the user can use the existing technology to adjust the growth environment of the crop to the most suitable state according to the analysis result displayed by the user module, thereby improving the yield and quality of the crop.
[0046] Further, the control module selects one of the remote module and the intermediate module, including the following steps:
[0047] S21, the control module calculates a first time, which is the sum of the time for the intermediate module to encode a monitoring data, the time for the intermediate module to transmit the encoded monitoring data to the remote module, and the time for the remote module to perform decoding and analysis, and the control module determines whether the first time is less than a preset time threshold, and if so, selects the remote module, otherwise, proceeds to the next step;
[0048] S22, the control module calculates the second time, which is the time for the intermediate module to analyze and process a monitoring data, and the control module determines whether the second time is less than the time threshold. If so, the intermediate module is selected, otherwise, the selection is determined to have failed.
[0049] Specifically, under normal circumstances, different acquisition modules send monitoring data to the intermediate module once at fixed time intervals in turn. For example, after acquisition module A sends a monitoring data to the intermediate module, acquisition module B sends a monitoring data to the intermediate module, and so on. In step S21, the control module calculates the first time, which refers to the time for the intermediate module to encode a monitoring data, the time for the intermediate module to transmit the encoded monitoring data to the remote module, and the sum of the time for the remote module to perform decoding and analysis. The different times here can be obtained by the control module through estimation, wherein the length of the first time is related to the data volume of the monitoring data, which is the average data volume of the monitoring data calculated by the control module based on the historical monitoring data. Then, the control module determines whether the first time is less than the preset time threshold. If so, the remote module is selected. Because the instability of the network connected to the remote module or the computing resources of the remote module are being occupied, sometimes the first time will be greater than or equal to the preset time threshold. If so, continue to step S22. In step S22, the control module calculates the second time, which is the time for the intermediate module to analyze and process a piece of monitoring data. The data volume of the monitoring data here is also the average data volume of the monitoring data calculated by the control module based on the historical monitoring data. Then the control module determines whether the second time is less than the time threshold. If so, the intermediate module is selected. If not, the selection is determined to be failed. Through the above method, even when the remote module is unstable, the intermediate module can be selected for analysis and processing, which will not cause delays or problems of being unable to analyze and process, thereby enhancing the reliability of the system.
[0050] Further, in the case where the remote module performs the analysis and processing, the intermediate module integrates the monitoring data sent from different acquisition modules, and when the number of integrated different monitoring data reaches a first number threshold, the integrated different monitoring data are uniformly transmitted to the remote module;
[0051] Furthermore, when the analysis and processing is performed by the intermediate module, the intermediate module integrates the monitoring data sent from different acquisition modules, and when the number of integrated different monitoring data reaches a second quantity threshold, the integrated different monitoring data are analyzed and processed.
[0052] Specifically, if the intermediate module and the remote module perform analysis and processing once for each monitoring data received, the intermediate module and the remote module will become very busy and the overall operating efficiency of the system will be low. Therefore, in order to solve this problem, if the remote module performs analysis and processing, the intermediate module first integrates the monitoring data sent by different acquisition modules, and when the number of integrated different monitoring data reaches a first quantity threshold, the integrated different monitoring data are uniformly transmitted to the remote module, so as to perform analysis and processing on the different monitoring data; if the intermediate module performs analysis and processing, the intermediate module first integrates the monitoring data sent by different acquisition modules, and when the number of integrated different monitoring data reaches a second quantity threshold, the integrated different monitoring data are analyzed and processed. The setting method of the first quantity threshold and the second quantity threshold will be introduced below.
[0053] Furthermore, the first quantity threshold refers to the first quantity that makes the third time calculated by the control module equal to the time threshold, and the third time is the time interval for the intermediate module to receive the monitoring data multiplied by the first quantity minus one, plus the time it takes the intermediate module to integrate and process the first quantity of monitoring data, the time it takes the intermediate module to encode the first quantity of monitoring data, the time it takes the intermediate module to transmit the first quantity of encoded monitoring data to the remote module, and the time it takes the remote module to perform decoding and analysis.
[0054] Specifically, the first quantity threshold is the first quantity when the third time calculated by the control module meets the time threshold. The calculation process of the third time is: first calculate the first quantity minus one, and then multiply it by the time interval for the intermediate module to receive the monitoring data, and then add the time for the intermediate module to integrate and process the first quantity of monitoring data, the time for the intermediate module to encode the first quantity of monitoring data, the time for the intermediate module to transmit the encoded monitoring data of the first quantity to the remote module, and the time for the remote module to perform decoding and analysis. The different times here can also be obtained by the control module through estimation.
[0055] Furthermore, the second quantity threshold refers to the second quantity that makes the fourth time calculated by the control module equal to the time threshold, and the fourth time is the time interval for the intermediate module to receive the monitoring data multiplied by the second quantity minus one, plus the time for the intermediate module to integrate and process the second quantity of monitoring data, and the time for the intermediate module to analyze and process the second quantity of monitoring data.
[0056] Specifically, the second quantity threshold is the second quantity when the fourth time calculated by the control module meets the time threshold. The calculation process of the fourth time is: first calculate the second quantity minus one, then multiply it by the time interval for the intermediate module to receive the monitoring data, and then add the time for the intermediate module to integrate and process the second quantity of monitoring data, and the time for the intermediate module to analyze and process the second quantity of monitoring data. The different times here can also be obtained by the control module through estimation.
[0057] It should be noted that the first quantity threshold and the second quantity threshold are not fixed. After determining the first quantity threshold and the second quantity threshold in the above manner, the intermediate module integrates and processes the monitoring data according to the first quantity threshold or the second quantity threshold, and then the intermediate module itself analyzes and processes the integrated monitoring data, or sends the integrated monitoring data to the remote module for analysis and processing. During a period of system operation, the control module attempts to gradually lower the first quantity threshold and the second quantity threshold until a new first quantity threshold and a new second quantity threshold are found that keep the system throughput at a higher state. This is done because the system throughput is related to the amount of data to be processed by the system. The larger the amount of data to be processed by the system, the more time required, which may reduce the system throughput.
[0058] Furthermore, the time threshold refers to the time from when the intermediate module receives the monitoring data to when the analysis and processing is completed.
[0059] Specifically, this time threshold can be set in actual application scenarios according to the user module's tolerance for the system response time. The smaller the time threshold is set, the shorter the system response time is; the larger the time threshold is set, the longer the system response time is.
[0060] Furthermore, the intermediate module transmits the communication data to the remote module by means of coded transmission, including the following steps:
[0061] S31, the intermediate module determines first data consisting of continuous zero values in the communication data, obtains a first number corresponding to the longest first data, and determines second data consisting of continuous non-zero values in the communication data, obtains a second number corresponding to the longest second data;
[0062] S32, the intermediate module sets the minimum number of bits that can express the first number as the number of bits of the first information, sets the minimum number of bits that can express the second number as the number of bits of the second information, and sets the contents of the first information and the second information respectively according to the first number and the second number;
[0063] S33, the intermediate module sets the bit number of the third information to one, and determines whether the start data of the communication data is a zero value, if yes, sets the content of the third information to a zero value, otherwise, sets the content of the third information to a one value;
[0064] S34, the intermediate module also sets the bit number of the fourth information to one, and determines whether the end data of the communication data is a zero value. If yes, the content of the fourth information is set to a zero value, otherwise, the content of the fourth information is set to a one value;
[0065] S35, the intermediate module determines whether the start data of the communication data is a zero value, if yes, executes S36 to add data after the fourth information, otherwise, executes S37 to add data after the fourth information;
[0066] S36, the intermediate module adds the number of consecutive zero values in binary form, and determines whether the end of the communication data has been reached. If yes, all steps are terminated, otherwise, continue to S37;
[0067] S37, the intermediate module continues to add the number of consecutive non-zero values in binary form and the non-zero value in binary form, and the intermediate module determines whether the end of the communication data has been reached. If yes, all steps are terminated, otherwise, jump to S36;
[0068] Further, the number of bits of the number of consecutive zero values in binary form added by the intermediate module is the same as the number of bits of the first information, and the number of consecutive non-zero values in binary form added by the intermediate module is the same as the number of bits of the second information.
[0069] Specifically, in an actual application scenario, the intermediate module needs to frequently transmit communication data to the remote module. In order to minimize the network resources occupied by the communication data, the network resources here can be the network bandwidth, steps S31 to S37 are proposed. Before executing steps S31 to S37, the communication data in binary form is divided into different bytes. For ease of understanding, for example, the communication data in binary form is “00000000, 00000000, 00000000, 00000000, 00010101, 00000000, 00000000, 00000000, 11111111, 00000111,” and in step S31, The intermediate module determines the first data composed of continuous zero values in the communication data, obtains the first number corresponding to the longest first data, determines the second data composed of continuous non-zero values in the communication data, and obtains the second number corresponding to the longest second data, where the zero value and the non-zero value both correspond to the bit of a byte. Continuing with the above content, the communication data sequentially includes the first data "00000000, 00000000, 00000000, 00000000, 00000000", the second data "00010101", the first data "00000000, 00000000, 00000000", and the second data "11111111, 00000111", that is, The first number is 5, and the second number is 2. In step S32, the intermediate module sets the minimum number of bits that can express the first number as the number of bits of the first information. Continuing with the above example, the number of bits of the first information is 3. The minimum number of bits that can express the second number is set to the number of bits of the second information. Continuing with the above example, the number of bits of the second information is 2. The contents of the first information and the second information are set according to the first number and the second number respectively. The second information is after the first information. Continuing with the above example, the content of the first information is "101" and the content of the second information is "10". In step S33, the intermediate module sets the number of bits of the third information to one. The third information is after the second information. It is determined whether the start data of the communication data is Zero value, the start data here refers to the data of the first byte. If yes, set the content of the third information to 0, if not, set the content of the third information to 1. In step S34, the intermediate module also sets the bit number of the fourth information to one. The fourth information is after the third information. It is determined whether the end data of the communication data is zero value. The end data here is the data of the last byte. If yes, set the content of the fourth information to 0, otherwise, set the content of the fourth information to 1. In step S35, the intermediate module determines whether the start data of the communication data is zero value. If yes, continue to execute step S36. If not, continue to execute step S37. Continuing with the above content as an example, continue to execute step S36 here.In step S36, the intermediate module adds the number of consecutive zero values in binary form, and then the above content is used as an example, that is, "101" is added. The intermediate module determines whether the end of the communication data has been reached. If so, all steps are terminated. Otherwise, step S37 is continued. The above content is used as an example. Step S37 is continued here. In step S37, the intermediate module continues to add the number of consecutive non-zero values in binary form, and the non-zero value in binary form. The above content is used as an example, that is, "01", "00010101" are continued. The intermediate module determines whether The end of the communication data has been reached. If so, end all steps. If not, jump to step S36. Continuing with the above example, jump to step S36 here, add "011", and then continue to execute step S37, add "10", "11111111", "00000111", and the coded data corresponding to the communication data finally obtained is "101", "10", "0", "1", "101", "01", "00010101", "011", "10", "11111111", "00000111". Through the above method, the amount of communication data can be reduced, and the real content of the communication data can be hidden at the same time, thereby not only reducing the occupation of network resources by communication data, but also protecting the security of communication data. Knowing the rules for encoding communication data, the decoding of coded data can be simply implemented, so the decoding process will not be repeated. ,
[0070] It should be noted that, according to the above content, the number of zero values corresponding to the first data are 5 and 3, and the values of 5 and 3 are relatively small. Setting the number of bits of the first information to 3 is sufficient to express the value of 5. However, when the number of zero values corresponding to the first data is relatively large, in order to continue to reduce the amount of data, the number of zero values can be encoded. When adding the number of zero values, what is added is the serial number of the code value. For ease of understanding, for example, the number of zero values corresponding to the first data is 15, 20, and 26, and the code values of these three zero values are "10", "01", and "00", respectively. The serial numbers of these three code values are 1, 2, and 3, respectively. Here, only two bits are used to realize these three serial numbers.
[0071] References Figure 2 As shown, the present invention also provides an agricultural planting management system based on the Internet of Things, including a collection module, an intermediate module, a remote module, a control module, and a user module, which is used to implement an agricultural planting management method based on the Internet of Things as described above.
[0072] The functions of each module are as follows:
[0073] The collection module is set in the farmland to collect monitoring data, including air temperature and humidity, soil temperature and humidity, wind speed, and light intensity;
[0074] The middle module is used to communicate with different acquisition modules, collect monitoring data from different acquisition modules, and analyze and process the monitoring data from different acquisition modules;
[0075] The remote module is used to communicate data with the intermediate module by means of coded transmission, and is also used to analyze and process the monitoring data of different acquisition modules, store the analysis results, and send the analysis results to the user module;
[0076] A control module, used for selecting one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results;
[0077] User module, used to receive and display analysis results.
[0078] In summary, in the present invention, first, different acquisition modules are set in the farmland, and corresponding monitoring data are collected respectively by different acquisition modules, and an intermediate module is set, the intermediate module is connected to communicate with different acquisition modules, and different acquisition modules send the monitoring data collected by themselves to the intermediate module; secondly, a remote module is set, and the remote module and the intermediate module communicate data by means of coded transmission, and a control module is set, and the control module selects one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results; finally, when the intermediate module performs analysis and processing, the intermediate module transmits the analysis results to the remote module for storage by means of coded transmission, and the remote module sends the analysis results to the user module, and when the remote module performs analysis and processing, the remote module directly sends the analysis results to the user module. The present invention can not only improve the reliability of the system, avoid delay or the problem of being unable to perform analysis and processing on monitoring data, but also improve the operating efficiency of the system, and reduce the occupation of network resources by monitoring data.
[0079] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0080] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0081] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0082] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0083] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An agricultural planting management method based on the Internet of Things, characterized in that: The steps include: S1. Different collection modules are set in the farmland, and corresponding monitoring data are collected by different collection modules respectively, wherein the monitoring data includes air temperature and humidity, soil temperature and humidity, wind speed, and light intensity, and an intermediate module is set, wherein the intermediate module is connected to the different collection modules for communication, and the different collection modules send the monitoring data collected by themselves to the intermediate module; S2, setting a remote module, the remote module is in communication connection with the intermediate module, and setting a control module, the control module selects one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results; S3. In the case where the analysis process is performed by the intermediate module, the intermediate module transmits the analysis result as communication data to the remote module for storage by means of coded transmission, and the remote module sends the analysis result to the user module. In the case where the analysis process is performed by the remote module, the remote module directly sends the analysis result to the user module. The control module selects one of the remote module and the intermediate module, comprising the following steps: S21, the control module calculates a first time, which is the sum of the time for the intermediate module to encode the monitoring data, the time for the intermediate module to transmit the encoded monitoring data to the remote module, and the time for the remote module to perform decoding and analysis, and the control module determines whether the first time is less than a preset time threshold, and if so, selects the remote module, and if not, proceeds to the next step; S22, the control module calculates a second time, which is the time for the intermediate module to analyze and process one of the monitoring data, and the control module determines whether the second time is less than the time threshold. If so, the intermediate module is selected; otherwise, the selection is determined to have failed.
2. The method according to claim 1, characterized in that When the analysis and processing is performed by the remote module, the intermediate module integrates the monitoring data sent from different acquisition modules, and when the number of the integrated different monitoring data reaches a first quantity threshold, the integrated different monitoring data are uniformly transmitted to the remote module.
3. The method according to claim 1, characterized in that When the analysis and processing is performed by the intermediate module, the intermediate module integrates the monitoring data sent from different acquisition modules, and when the number of the integrated different monitoring data reaches a second quantity threshold, the analysis and processing is performed on the integrated different monitoring data.
4. The method according to claim 2, characterized in that: The first quantity threshold refers to the first quantity that makes the third time calculated by the control module equal to the time threshold, and the third time is the time interval for the intermediate module to receive the monitoring data multiplied by the first quantity minus one, plus the time for the intermediate module to integrate and process the first quantity of the monitoring data, the time for the intermediate module to encode the first quantity of the monitoring data, the time for the intermediate module to transmit the first quantity of encoded monitoring data to the remote module, and the time for the remote module to perform decoding and analysis.
5. The method according to claim 3, characterized in that: The second quantity threshold refers to the second quantity that makes the fourth time calculated by the control module equal to the time threshold, and the fourth time is the time interval for the intermediate module to receive the monitoring data multiplied by the second quantity minus one, plus the time for the intermediate module to integrate and process the second quantity of the monitoring data, and the time for the intermediate module to analyze and process the second quantity of the monitoring data.
6. The method according to claim 1, characterized in that The time threshold refers to the time from when the intermediate module receives the monitoring data to when the analysis process ends.
7. The method according to claim 1, characterized in that The intermediate module transmits the communication data to the remote module by means of coded transmission, including the following steps: S31, the intermediate module determines first data consisting of continuous zero values in the communication data, obtains a first number corresponding to the longest first data, and determines second data consisting of continuous non-zero values in the communication data, obtains a second number corresponding to the longest second data; S32, the intermediate module sets the minimum number of bits that can express the first number as the number of bits of the first information, sets the minimum number of bits that can express the second number as the number of bits of the second information, and sets the contents of the first information and the second information respectively according to the first number and the second number; S33, the intermediate module sets the bit number of the third information to one, and determines whether the start data of the communication data is a zero value, and if so, sets the content of the third information to a zero value, otherwise, sets the content of the third information to a one value; S34, the intermediate module also sets the bit number of the fourth information to one, and determines whether the end data of the communication data is a zero value. If yes, the content of the fourth information is set to a zero value, otherwise, the content of the fourth information is set to a one value; S35, the intermediate module determines whether the start data of the communication data is a zero value, and if so, executes S36 to add data after the fourth information, otherwise, executes S37 to add data after the fourth information; S36, the intermediate module adds the number of consecutive zero values in binary form, and determines whether the end of the communication data has been reached. If yes, all steps are terminated, otherwise, continue to S37; S37, the intermediate module continues to add the number of consecutive non-zero values in binary form and the non-zero values in binary form, and the intermediate module determines whether the end of the communication data has been reached. If so, all steps are terminated, otherwise, jump to S36.
8. The method according to claim 7, characterized in that The number of consecutive zero values in binary form added by the intermediate module has the same number of bits as the first information, and the number of consecutive non-zero values in binary form added by the intermediate module has the same number of bits as the second information.
9. An agricultural planting management system based on the Internet of Things, used to implement the method according to any one of claims 1 to 8, characterized in that: Includes the following modules: The collection module is set in the farmland to collect monitoring data, including air temperature and humidity, soil temperature and humidity, wind speed, and light intensity; The middle module is used to communicate with different acquisition modules, collect monitoring data from different acquisition modules, and analyze and process the monitoring data from different acquisition modules; The remote module is used to communicate data with the intermediate module by means of coded transmission, and is also used to analyze and process the monitoring data of different acquisition modules, store the analysis results, and send the analysis results to the user module; A control module, used for selecting one of the remote module and the intermediate module to analyze and process the monitoring data of different acquisition modules to obtain analysis results; User module, used to receive and display analysis results.
Citation Information
Patent Citations
Loquat planting anti-freezing method and monitoring and early warning system based on Internet of Things
CN108718854A
Campus intelligent agricultural planting management method
CN117933558A
Intelligent agricultural management system based on data processing
CN117575169A
Intelligent agricultural control management system and method based on Internet of Things
CN117707261A