Intelligent greenhouse monitoring method, system and storage medium based on cloud computing
By deploying sensors and controllers in the greenhouse and using the cloud computing platform to generate and verify functional programs, the problem of tampering in the greenhouse environmental data transmission is solved, data accuracy and safety are achieved, and the efficiency of greenhouse environmental regulation and crop growth are improved.
Patent Information
- Application Number
- CN202510245606.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2045-03-04
AI Technical Summary
In the existing intelligent greenhouse monitoring system, greenhouse environmental data is easily tampered with during transmission, resulting in inaccurate data, affecting the accuracy of greenhouse environmental regulation and crop growth.
Deploy sensors and controllers in the greenhouse, generate and verify functional programs through the cloud computing platform, ensure the security of data transmission, and conduct in-depth analysis on the receiving end to optimize control strategies.
Ensure the accuracy and safety of greenhouse environmental data, improve data processing efficiency, ensure that the greenhouse environment is always suitable, and optimize control strategies to promote crop growth.
Smart Images

Figure CN120111090B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission technology, and in particular to a cloud computing-based intelligent greenhouse monitoring method, system, and storage medium. Background Art
[0002] With the advancement of agricultural modernization, greenhouse cultivation has been widely used as an efficient agricultural production method, and some intelligent greenhouse monitoring systems have appeared in the existing technology.
[0003] A similar prior art Chinese patent application with publication number CN107819844A provides a greenhouse intelligent monitoring system, including: a wireless sensor network composed of sensor nodes distributed in the greenhouse, used to collect temperature and humidity monitoring data of the greenhouse, and also used to send the collected temperature and humidity monitoring data to a base station node; the base station node is used to aggregate the temperature and humidity monitoring data sent by the wireless sensor network; a greenhouse monitoring terminal communicates with the base station node to obtain the temperature and humidity monitoring data, and compares the temperature and humidity monitoring data with a set threshold value, and outputs an alarm signal when the temperature and humidity monitoring data exceeds the set threshold value.
[0004] Similar prior art includes a Chinese patent application with publication number CN108093059A, which provides a LoRa-based greenhouse intelligent security monitoring system and a monitoring method thereof, including: utilizing distributedly deployed greenhouse intelligent monitoring nodes to obtain various greenhouse cultivation condition parameter sets, and communicating through LoRa communication units; utilizing the greenhouse monitoring access security operation core to achieve overall security monitoring access, and the greenhouse intelligent monitoring background combines the greenhouse crop cultivation requirements with the known greenhouse monitoring rule library to analyze and give preliminary status estimates and corresponding environmental adjustment instructions, and transmits the environmental adjustment instructions through LoRa. Only greenhouse intelligent monitoring nodes that meet the monitoring access strategy can authenticate and execute the environmental adjustment instructions.
[0005] However, both of the above documents do not consider the problem that the greenhouse environment data may be tampered with during transmission. Therefore, the present invention provides a cloud computing-based intelligent greenhouse monitoring method, system and storage medium. Summary of the Invention
[0006] This application provides a cloud computing-based intelligent greenhouse monitoring method, system, and storage medium to ensure that the cloud computing platform receives accurate environmental data.
[0007] In a first aspect, the present application provides a cloud computing-based intelligent greenhouse monitoring method, the method comprising:
[0008] Step S1: deploying multiple sensors and multiple controllers in all target greenhouses within the monitoring range, wherein the multiple sensors are used to collect environmental data of the target greenhouses and transmit the environmental data to the intelligent control terminal via a wireless network;
[0009] Step S2: The cloud computing platform generates a functional program, the functional program including a first functional program and a second functional program, generates first data based on the first functional program, generates second data based on the second functional program, creates a first key and a second key, generates authentication information based on the security platform, processes the two functional programs to generate relevant data, and sends the relevant data to the intelligent control terminal;
[0010] Step S3: The intelligent control terminal verifies the two functional programs based on the relevant data, saves the functional programs after successful verification, and processes the environmental data based on the first functional program after receiving the environmental data sent by the sensor to obtain a processing result, inputs the processing result into the second functional program to generate control information, and sends the control information to the corresponding controller to adjust the environment of the target greenhouse;
[0011] Step S4: The intelligent control terminal encrypts the comprehensive data or packaging data and sends it to the cloud computing platform. The cloud computing platform verifies the received comprehensive data or packaging data and saves the corresponding environmental data. At preset time intervals, the cloud computing platform performs in-depth analysis on all saved environmental data to optimize the second function program.
[0012] In conjunction with the first aspect, in a first implementation of the first aspect of the present application, authentication information is generated based on a security platform, and the two functional programs are processed to generate relevant data, including:
[0013] The cloud computing platform sends the key data to the authentication platform. The authentication platform generates a first arbitrary value, generates a third key based on the key data and the first arbitrary value, generates first summary data based on the key data, encrypts the first summary data using the third key to generate first authentication information, combines the key data and the first authentication information into authentication information, and then sends the authentication information to the cloud computing platform. The authentication information is also stored in a database of the security platform.
[0014] The cloud computing platform generates first data based on the first functional program, generates second data based on the second functional program, uses the first key to encrypt the first data and the second data to generate first ciphertext data and second ciphertext data, and then combines the first functional program, the second functional program, the first ciphertext data, the second ciphertext data and the authentication information to generate related data.
[0015] In combination with the first aspect, in a second implementation of the first aspect of the present application, after receiving the relevant data, the intelligent control terminal verifies the two functional programs based on the relevant data, including:
[0016] The authentication information is sent to the security platform. After receiving the authentication information, the security platform determines whether there is the same data as the authentication information in its own database. If yes, it sends a message of authentication success to the intelligent control terminal. If not, it sends a message of authentication failure to the intelligent control terminal.
[0017] When the intelligent control terminal receives the authentication success, it obtains the second key based on the authentication information, decrypts the first ciphertext data and the second ciphertext data based on the second key to obtain the third data value and the fourth data value, generates the first data based on the first functional program, generates the second data based on the second functional program, determines whether the third data value is the same as the first data, and also determines whether the fourth data value is the same as the second data. If they are the same, the first functional program and the second functional program are saved; otherwise, a verification failure message is sent to the cloud computing platform.
[0018] In combination with the first aspect, in a third implementation of the first aspect of the present application, the intelligent control terminal sends the comprehensive data or packaging data to the cloud computing platform, including:
[0019] Processing the environmental data based on the first functional program, recording corresponding processing information, generating a first verification value based on the processing information, further encrypting the first verification value using a second key to generate first encrypted data, encrypting the environmental data to generate second encrypted data, and combining the device ID of the intelligent control terminal, the second encrypted data, the processing information, and the first encrypted data to generate comprehensive data;
[0020] The intelligent control terminal obtains its own sending target and sends the integrated data or packaged data to the sending target. When the sending target is a cloud computing platform, the cloud computing platform directly receives the integrated data or packaged data. When the sending target is an intelligent control terminal, after sending the integrated data to the sending target, the sending target packages the integrated data or packaged data to generate new packaged data. The sending target also obtains its own sending target, sends the new packaged data to the sending target, and returns to the step of obtaining its own sending target. This method is repeated until the sending target is a cloud computing platform, and this step is ended.
[0021] In combination with the first aspect, in a fourth implementation of the first aspect of the present application, the intelligent control terminal obtains its own sending target, including:
[0022] Before sending the comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record. If there is a communication history record, the intelligent control terminal obtains the communication path with the shortest communication time based on the communication history record, and sends the comprehensive data to the cloud computing platform based on the communication path;
[0023] In the absence of a communication history record, the intelligent control terminal obtains a first intelligent control terminal that is adjacent to the intelligent control terminal and is closer to the cloud computing platform than the distance between the intelligent control terminal and the cloud computing platform. If there are multiple first intelligent control terminals, the first intelligent control terminal with the shortest distance to the cloud computing platform is obtained as the sending target of the intelligent control terminal;
[0024] After determining the first intelligent control terminal, a first number of downstream nodes in a communication path passing through the first intelligent control terminal is obtained. When the first number is greater than or equal to a preset first threshold, the corresponding first intelligent control terminal is marked so that other intelligent control terminals avoid the marked first intelligent control terminal when acquiring the first intelligent control terminal.
[0025] In combination with the first aspect, in a fifth implementation of the first aspect of the present application, the sending target packages the integrated data to generate packaged data, including:
[0026] When the intelligent control terminal receives integrated data or packaged data sent by other intelligent control terminals, it calls the integrated data or packaged data external data, encrypts the external data based on the second key to generate third ciphertext data, and records the transit information of receiving the external data. The transit information includes the second verification value and the transit data. The transit data includes the receiving time and its own device ID. The second verification value is generated based on the transit data. The third ciphertext data and the transit information are combined to generate packaged data.
[0027] In combination with the first aspect, in the sixth implementation method of the first aspect of the present application, the cloud computing platform verifies the received comprehensive data or the packaged data, including: when the cloud computing platform receives the comprehensive data, it decrypts the first encrypted data using the first key to generate a third verification value, uses the same method as the intelligent control terminal to generate a first verification value based on the processing information, compares whether the first verification value and the third verification value are the same, and if they are the same, uses the first key to decrypt the second encrypted data to obtain environmental data, and saves the environmental data and processing information; if they are not the same, notifies relevant staff to check the communication security of the cloud computing platform and the corresponding intelligent control terminal.
[0028] In combination with the first aspect, in a seventh implementation of the first aspect of the present application, the cloud computing platform verifies the received comprehensive data or the packaged data, including:
[0029] When the cloud computing platform receives the packaged data, it obtains the third ciphertext data and the transfer information based on the packaged data, obtains the second verification value and the transfer data based on the transfer information, generates a fourth verification value based on the transfer data using the same method as the intelligent control terminal, determines whether the second verification value and the fourth verification value are the same, and if they are the same, decrypts the third ciphertext data using the first key to obtain the integrated data, records the transfer data, and determines whether the external data is the packaged data. If so, it repeats this step until the external data is the integrated data. In the process of obtaining the integrated data, all the transfer data are recorded, and all the recorded transfer data are recorded as the communication history record from the intelligent control terminal corresponding to the integrated data to the cloud computing platform. The communication path of the corresponding intelligent control terminal can be obtained based on the communication history record later.
[0030] If they are different, the corresponding transfer data is obtained, the corresponding device ID is obtained based on the transfer data, and the relevant staff is notified to check the communication security of the intelligent control terminal corresponding to the device ID.
[0031] In a second aspect, the present application provides a cloud computing-based intelligent greenhouse monitoring system, the system comprising:
[0032] The collection module is used to deploy multiple sensors and multiple controllers in all target greenhouses within the monitoring range. The multiple sensors are used to collect environmental data of the target greenhouses and send the environmental data to the intelligent control terminal via a wireless network;
[0033] an authentication module, configured to generate a functional program, the functional program including a first functional program and a second functional program, generate first data based on the first functional program, generate second data based on the second functional program, create a first key and a second key, generate authentication information based on the security platform, process the two functional programs to generate relevant data, and send the relevant data to the intelligent control terminal;
[0034] The control module is configured to verify the two functional programs based on relevant data, save the functional programs after successful verification, and, after receiving environmental data sent by the sensor, process the environmental data based on the first functional program to obtain a processing result, input the processing result into the second functional program to generate control information, and send the control information to the corresponding controller to adjust the environment of the target greenhouse;
[0035] The transmission module is used to encrypt the comprehensive data or packaged data and send it to the cloud computing platform. The cloud computing platform verifies the received comprehensive data or packaged data and saves the corresponding environmental data. At preset time intervals, the cloud computing platform conducts in-depth analysis of all saved environmental data to optimize the second function program.
[0036] A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, enable the computer to execute the above-mentioned cloud computing-based intelligent greenhouse monitoring method.
[0037] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0038] In the technical solution provided by the present application, sensors and controllers are first deployed to collect environmental data and adjust the greenhouse environment. The cloud computing platform and each intelligent control terminal verify each other based on a security platform to ensure the security of communication. After successful verification, the intelligent control terminal processes the environmental data based on the first functional program and controls the greenhouse environment based on the second functional program to ensure that the greenhouse environment is always in a suitable environment. The intelligent control terminal also secretly sends the environmental data to the cloud computing platform. After the cloud computing platform receives the environmental data sent by the intelligent control terminal, it also verifies the environmental data to ensure that accurate environmental data is received. Finally, the environmental data is deeply analyzed, the first functional program is optimized, the efficiency of subsequent data processing is improved, and the second functional program is optimized to ensure that the target greenhouse is always in a suitable environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 This is a schematic diagram of an embodiment of a cloud computing-based intelligent greenhouse monitoring method in an embodiment of the present application;
[0041] Figure 2 This is a schematic diagram of an embodiment of generating comprehensive data in an embodiment of the present application;
[0042] Figure 3 This is a schematic diagram of an embodiment of a method of sending integrated data or packaged data to a cloud computing platform in an embodiment of the present application;
[0043] Figure 4 This is a schematic diagram of an embodiment of the distribution of each intelligent control terminal and cloud computing platform in the embodiment of the present application;
[0044] Figure 5 This is a schematic diagram of an embodiment of a schematic diagram of generating packaging data in an embodiment of the present application;
[0045] Figure 6 This is a schematic diagram of an embodiment of a cloud computing-based intelligent greenhouse monitoring system in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The embodiments of the present application provide a cloud computing-based intelligent greenhouse monitoring method, system and storage medium. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or are inherent to these processes, methods, products or devices.
[0047] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 In the embodiments of the present application, an embodiment of the intelligent greenhouse monitoring method based on cloud computing includes:
[0048] Step S1: deploy multiple sensors and multiple controllers in all target greenhouses within the monitoring range. The multiple sensors are used to collect environmental data of the target greenhouses and send the environmental data to the intelligent control terminal via a wireless network.
[0049] Specifically, in order to provide a more accurate growth environment for crops in the target greenhouse, it is first necessary to obtain the environmental data in the target greenhouse in a timely manner. Therefore, a variety of sensors are deployed in all target greenhouses within the monitoring range, such as temperature sensors, humidity sensors, light sensors and soil moisture sensors, etc., and a variety of controllers are also deployed, such as ventilation controllers, irrigation controllers, lighting controllers and shading controllers, etc. The environmental data of the greenhouse is collected through a variety of sensors. The environmental data includes temperature, humidity, light and soil moisture, etc. The collected environmental data is transmitted to the corresponding intelligent control terminal. Generally, an intelligent controller is set for the target greenhouse in each area. The monitoring range may include a large number of areas, and each area contains multiple target greenhouses.
[0050] Step S2: The cloud computing platform generates a functional program, which includes a first functional program and a second functional program. The cloud computing platform generates first data based on the first functional program, generates second data based on the second functional program, creates a first key and a second key, generates authentication information based on the security platform, processes the two functional programs to generate relevant data, and sends the relevant data to the intelligent control terminal.
[0051] Specifically, in order to ensure that the target greenhouse can be accurately controlled, the cloud computing platform generates a functional program, which includes a first functional program and a second functional program. The first functional program is used to process the collected environmental data of the target greenhouse, such as converting the format of the collected environmental data, integrating the environmental data collected from multiple sensors to obtain comprehensive environmental data, etc. The second functional program is used to generate corresponding control information based on the processed environmental data and send it to the controller of the corresponding target greenhouse. For example, when the soil moisture is detected to be too low, an irrigation instruction is generated to control the opening of the irrigation controller, etc.
[0052] In order to ensure that the generated functional program can be accurately transmitted to each intelligent control terminal, the cloud computing platform first generates the first data based on the first functional program and generates the second data based on the second functional program. The specific method of generating the first data and the second data can use the existing hash function (such as the SHA-2 function), and also generates a first key and a second key. The first key and the second key refer to the private key and the public key respectively, and the two correspond to each other. The generated second key is authenticated based on the security platform to generate authentication information, and then the two functional programs are processed to generate relevant data. The relevant data includes the functional programs. The specific authentication process and the process of generating relevant data will be explained in detail later. After that, the generated relevant data will be sent to each intelligent control terminal. The intelligent control terminal can verify the received functional program based on the relevant data and the security platform. After successful verification, the functional program is enabled to ensure that the accurate functional program is used for data processing and environmental control.
[0053] Step S3: The intelligent control terminal verifies the two functional programs based on relevant data, saves the functional programs after successful verification, and processes the environmental data based on the first functional program to obtain a processing result after receiving the environmental data sent by the sensor. The processing result is input into the second functional program to generate control information, and the control information is sent to the corresponding controller to adjust the environment of the target greenhouse.
[0054] Specifically, in the process of sending relevant data to the intelligent control terminal, if the functional program in the relevant data is tampered with, the intelligent control terminal may obtain an illegal functional program. If the tampered first functional program is used to process the environmental data, or the tampered second functional program is used to generate control information, the target greenhouse may be incorrectly controlled, thereby affecting the growth of crops in the target greenhouse. In order to obtain an accurate functional program that has not been tampered with, the intelligent control terminal verifies the functional program based on the security platform after obtaining the relevant data, and saves the functional program after successful verification to ensure that the correct functional program is used to control the target greenhouse, thereby ensuring that the crops in the target greenhouse can always be in a suitable environment.
[0055] The intelligent control terminal and one or more target greenhouses it monitors generally belong to the same area or are not far away from each other. Therefore, the sensor is unlikely to be tampered with when sending environmental data to the intelligent control terminal. After receiving the environmental data, the intelligent control terminal can basically determine that the received environmental temperature is accurate. Therefore, after receiving the environmental data, the intelligent control terminal processes the environmental data based on the saved first function program to obtain the processing result, and then inputs the processing result into the second function program to generate corresponding control information, and then sends the control information to the corresponding controller to adjust the environment of the target greenhouse so that the environment of the target greenhouse is always in a suitable environment.
[0056] Step S4: The intelligent control terminal encrypts the comprehensive data or packaging data and sends it to the cloud computing platform. The cloud computing platform verifies the received comprehensive data or packaging data and saves the corresponding environmental data. At preset time intervals, the cloud computing platform performs in-depth analysis on all saved environmental data to optimize the second function program.
[0057] Specifically, in order to ensure that the cloud computing platform can receive accurate environmental data, the intelligent control terminal encrypts the comprehensive data or packaged data and sends it to the cloud computing platform. Comprehensive data refers to the data containing environmental data generated by the intelligent control terminal after a series of processing such as encrypting the environmental data. Packaged data refers to comprehensive data containing transit information. In the process of sending comprehensive data to the cloud computing platform, in order to reduce the communication pressure of the cloud computing platform, the intelligent control terminal will send the comprehensive data to other intelligent control terminals, and the other intelligent control terminals will forward the comprehensive data. In order to record the transit devices through which the comprehensive data passes, relevant information of a transit device will be added for each intelligent control terminal passed through, thereby forming packaged data. The cloud computing platform can judge whether the comprehensive data has been tampered with during the transmission process based on the packaged data. If it has been tampered with, it can also judge which transmitting intelligent control terminal has been tampered with based on the packaged data.
[0058] When the intelligent control terminal and the cloud computing platform communicate directly, the intelligent control terminal only sends its own comprehensive data to the cloud computing platform. In order to ensure that the cloud computing platform can receive accurate environmental data, the cloud computing platform also determines whether the comprehensive data has been tampered with during the transmission process based on the comprehensive data.
[0059] After verifying that the environmental data is accurate, the environmental data is saved. Then, at each preset time interval, such as every other day, based on the historically collected environmental data, a machine learning algorithm is used to conduct an in-depth analysis of the environmental data to obtain environmental conditions that are more suitable for crop growth in the target greenhouse. The corresponding second function program is then modified to optimize the control strategy of the target greenhouse.
[0060] In a specific embodiment, authentication information is generated based on the security platform, two functional programs are processed to generate relevant data, and the following steps are also performed:
[0061] The cloud computing platform sends the key data to the authentication platform. The authentication platform generates a first arbitrary value, generates a third key based on the key data and the first arbitrary value, generates first summary data based on the key data, encrypts the first summary data using the third key to generate first authentication information, combines the key data and the first authentication information into authentication information, and then sends the authentication information to the cloud computing platform. The authentication information is also stored in the database of the security platform.
[0062] Specifically, the key data includes the second key and the platform ID. The first arbitrary value is a random number randomly generated by the authentication platform. The platform ID refers to the unique identifier of the cloud computing platform. The security platform can judge the legitimacy of the cloud computing platform based on the platform ID and the pre-stored legal ID list. The cloud computing platform generates a third key based on the key data and the first arbitrary value to ensure the randomness of the third key, and then uses the third key to encrypt the first summary data to generate the first authentication information. The generation method of the first summary data can be an existing hash algorithm such as (SHA-2 algorithm). The authentication platform authenticates the second key based on the above steps and saves the corresponding authentication information to ensure that the subsequent intelligent control terminal can verify the functional program sent by the cloud computing platform based on the authentication information, and then send the authentication information to the cloud computing platform.
[0063] The cloud computing platform generates first data based on the first functional program, generates second data based on the second functional program, uses the first key to encrypt the first data and the second data to generate first ciphertext data and second ciphertext data, and then combines the first functional program, the second functional program, the first ciphertext data, the second ciphertext data and the authentication information to generate related data.
[0064] Specifically, the cloud computing platform obtains the corresponding authentication information after performing security authentication based on the security platform, proving the legitimacy of the cloud computing platform. It then generates the first data and the second data and uses the first key to encrypt them to generate the corresponding ciphertext data. It then combines the two functional programs, the two ciphertext data and the authentication information to generate relevant data and sends it to the intelligent control terminal, so that the intelligent control terminal can verify the received data. The specific verification process will be explained in detail later.
[0065] In a specific embodiment, after receiving the relevant data, the intelligent control terminal verifies the two functional programs based on the relevant data, specifically including the following steps:
[0066] The authentication information is sent to the security platform. After receiving the authentication information, the security platform determines whether there is data identical to the authentication information in its own database. If so, a message of successful authentication is sent to the intelligent control terminal. If not, a message of failed authentication is sent to the intelligent control terminal.
[0067] Specifically, after the intelligent control terminal receives the relevant data, it obtains the authentication information therein and sends the authentication information to the security platform. If the relevant data has not been tampered with during the transmission process, the intelligent control terminal can receive accurate authentication information. After receiving the authentication information, the security platform can find the corresponding identical authentication information from its own database, and then send an authentication success message to the intelligent control terminal. If the relevant data has been tampered with during the transmission process, the authentication information received by the intelligent control terminal is likely to be inaccurate. Therefore, the security platform cannot find the corresponding identical authentication information from the database, and therefore sends an authentication failure message to the intelligent control terminal.
[0068] When the intelligent control terminal receives the authentication success, it obtains the second key based on the authentication information, decrypts the first ciphertext data and the second ciphertext data based on the second key to obtain the third data value and the fourth data value, generates the first data based on the first functional program, generates the second data based on the second functional program, determines whether the third data value is the same as the first data, and also determines whether the fourth data value is the same as the second data. If they are the same, the first functional program and the second functional program are saved; otherwise, a verification failure message is sent to the cloud computing platform.
[0069] Specifically, when the intelligent control terminal receives a successful authentication, it indicates that the authentication information is accurate, obtains the second key based on the authentication information, decrypts the first ciphertext data and the second ciphertext data based on the second key to obtain the third data value and the fourth data value, and uses the same method as the cloud computing platform to generate the first data and the second data based on the received first function program and the second function program, and then compares the third data value with the first data, the fourth data value and the second data to see if they are the same. If they are all the same, it means that the first function program and the second function program have not been tampered with during the transmission process, and therefore the two function programs can be saved.
[0070] When the intelligent control terminal receives a message of authentication failure or the third data value is different from the first value, the fourth data value and the second data, it means that the first function program and the second function program have been tampered with during the transmission process. Therefore, a verification failure message is sent to the cloud computing platform. After the cloud computing platform receives the verification failure, it can choose to use a new transmission method to transmit the two above-mentioned function programs. The above method can ensure that the intelligent control platform can accurately receive the two function programs sent by the cloud computing platform.
[0071] In a specific embodiment, the intelligent control terminal sends the comprehensive data or packaging data to the cloud computing platform, including the following steps:
[0072] The environmental data is processed based on the first functional program, the corresponding processing information is recorded, a first verification value is generated based on the processing information, the first verification value is encrypted using the second key to generate first encrypted data, the environmental data is encrypted to generate second encrypted data, and the device ID of the intelligent control terminal, the second encrypted data, the processing information and the first encrypted data are combined to generate comprehensive data.
[0073] Specifically, before the intelligent control terminal sends the environmental data to the cloud computing platform, after receiving the environmental data sent by the sensor, the intelligent control terminal uses the first functional program to process the environmental data if the two functional modules are successfully verified, and also records the corresponding processing information, the processing information including the processing time, the processing program identifier, and the processing result. By sending the processing information to the cloud computing platform, the cloud computing platform can subsequently perform in-depth analysis of the processing information, optimize the first functional program, improve data processing efficiency, generate a first verification value based on all the processing information, and use the second key to encrypt the first verification value to generate first encrypted data, encrypt the environmental data to generate second encrypted data, and finally combine the device ID of the intelligent control terminal, the second encrypted data, the processing information and the first encrypted data to generate comprehensive data, such as Figure 3 The figure shows a schematic diagram of generating comprehensive data. After the cloud computing platform receives the comprehensive data, it can determine whether the comprehensive data has been tampered with during the transmission process based on the processing information and the first encrypted data.
[0074] The intelligent control terminal obtains its own sending target and sends the integrated data or packaged data to the sending target. When the sending target is a cloud computing platform, the cloud computing platform directly receives the integrated data or packaged data. When the sending target is an intelligent control terminal, after sending the integrated data to the sending target, the sending target packages the integrated data or packaged data to generate new packaged data. The sending target also obtains its own sending target, sends the new packaged data to the sending target, and returns to the step of obtaining its own sending target. This method is repeated until the sending target is a cloud computing platform, and this step is ended.
[0075] Specifically, if all intelligent control terminals communicate directly with the cloud computing platform, the communication pressure of the cloud computing platform may be greatly increased. In order to reduce the communication pressure of the cloud computing platform and improve the sending efficiency of the intelligent control terminals, Figure 4As shown, this is a method of sending comprehensive data or packaged data to the cloud computing platform. Before the intelligent control terminal is ready to send, it first obtains its own sending target. The specific method of obtaining the sending target will be explained in detail later. The comprehensive data or packaged data is sent to the sending target. When the obtained sending target is the cloud computing platform, the cloud computing platform receives the comprehensive data or packaged data. When the sending target is the intelligent control terminal, the sending target packages the received comprehensive data or packaged data to generate new packaged data. The sending target (that is, the intelligent control terminal) sends the new packaged data to its own sending target, and then returns to the step of obtaining its own sending target. This method is repeated until the final sending target is the cloud computing platform. When the cloud computing platform receives the comprehensive data or packaged data, this step is then ended.
[0076] After receiving the environmental data, the intelligent control terminal first generates comprehensive data. Assuming that the intelligent control terminal finds that the sending target is the cloud computing platform by obtaining the sending target, it means that the intelligent control terminal is communicating directly with the cloud computing platform, so at this time the comprehensive data is directly sent to the cloud computing platform. If the sending target is the intelligent control terminal, then after receiving the comprehensive data, the sending target will package the comprehensive data to generate packaged data, and then obtain its own sending target. If the sending target is the cloud computing platform, the packaged data needs to be sent to the cloud computing platform, so in the above steps, there will be a situation where comprehensive data or packaged data is sent to the sending target.
[0077] In a specific embodiment, the intelligent control terminal obtains the self-set sending target, which specifically includes the following steps:
[0078] Before sending the comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record. If there is a communication history record, the intelligent control terminal obtains the communication path with the shortest communication time based on the communication history record, and sends the comprehensive data to the cloud computing platform based on the communication path;
[0079] In the absence of a communication history record, the intelligent control terminal obtains a first intelligent control terminal that is adjacent to the intelligent control terminal and is closer to the cloud computing platform than the distance between the intelligent control terminal and the cloud computing platform. If there are multiple first intelligent control terminals, the first intelligent control terminal with the shortest distance to the cloud computing platform is obtained as the sending target of the intelligent control terminal;
[0080] After determining the first intelligent control terminal, a first number of downstream nodes in a communication path passing through the first intelligent control terminal is obtained. When the first number is greater than or equal to a preset first threshold, the corresponding first intelligent control terminal is marked so that other intelligent control terminals avoid the marked first intelligent control terminal when acquiring the first intelligent control terminal.
[0081] Specifically, before sending comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record of the intelligent control terminal sending data to the cloud computing platform. If there is a communication history record, the communication path with the shortest communication time is obtained based on the communication history record, and the comprehensive data is sent to the cloud computing platform based on the communication path. The communication path includes all transit devices passed by the intelligent control terminal and the cloud computing platform. These transit devices refer to other intelligent control terminals.
[0082] In the absence of communication history, such as Figure 4 As shown, assuming Figure 4 The points in the figure represent the distribution of the intelligent control terminals and the cloud computing platform, where point Q is the cloud computing platform and the other points represent the intelligent control terminals. Now, assuming that the first intelligent control terminal of intelligent control terminal A is to be obtained, it is found that the distance between intelligent control terminal B and the cloud computing platform is shorter than the distance between the intelligent control terminal and the cloud computing platform. Then, the same method is used to obtain the first intelligent control terminal of intelligent control terminal B as intelligent control terminal C, the first intelligent control terminal of intelligent control terminal C as intelligent control terminal D, the first intelligent control terminal of intelligent control terminal D as intelligent control terminal E, and the first intelligent control terminal of intelligent control terminal E as the cloud computing platform. If point A sends its own comprehensive data, it needs to pass through the four intelligent control terminals B, C, D, and E as transfer devices. Assuming that the first threshold is 4, the first number of downstream nodes of point E is 4 at this time, which has reached the preset first threshold. The intelligent control terminal E is marked, for example Figure 4 When the intelligent control terminal F in the network obtains the corresponding first intelligent control terminal, it selects B and D. If E is selected as the next hop, the communication pressure of E will be overloaded. At this time, G can be selected as the transfer device of F.
[0083] In a specific embodiment, the sending target packages the integrated data to generate packaged data, which specifically includes the following steps:
[0084] When the intelligent control terminal receives integrated data or packaged data sent by other intelligent control terminals, it calls the integrated data or packaged data external data, encrypts the external data based on the second key to generate third ciphertext data, and records the transit information of receiving the external data. The transit information includes the second verification value and the transit data. The transit data includes the receiving time and its own device ID. The second verification value is generated based on the transit data. The third ciphertext data and the transit information are combined to generate packaged data.
[0085] Specifically, in order to record the communication path of sending comprehensive data from the original intelligent control terminal to the cloud computing platform, the intelligent control terminal uses the comprehensive data as external data when receiving the comprehensive data. In order to ensure the security of the external data during transmission, the external data is encrypted based on the second key to generate third ciphertext data, and the transit information is recorded. The transit information includes a second verification value and transit data. The transit data includes the receiving time and its own device ID. The second verification value is generated by an existing hash algorithm (such as the SHA-2 algorithm) based on the transit data. The third ciphertext data and the transit information are combined to generate packaging data.
[0086] like Figure 5 As shown, it is a schematic diagram of generating packaging data. When the intelligent control terminal receives the packaging data, for example Figure 4 A generates integrated data and sends it to B. B packages the integrated data to generate packaged data C. C packages the packaged data again to generate new packaged data. The method of generating new packaged data is the same as that of generating packaged data.
[0087] In a specific embodiment, the cloud computing platform verifies the received integrated data or packaged data, specifically including the following steps:
[0088] When the cloud computing platform receives the comprehensive data, it decrypts the first encrypted data using the first key to generate a third verification value, uses the same method as the intelligent control terminal to generate the first verification value based on the processing information, and compares whether the first verification value and the third verification value are the same. If they are the same, it uses the first key to decrypt the second encrypted data to obtain the environmental data, and saves the environmental data and processing information. If they are not the same, it notifies the relevant staff to check the communication security of the cloud computing platform and the corresponding intelligent control terminal.
[0089] Specifically, when the cloud computing platform receives the comprehensive data, it decrypts the first encrypted data using the first key to generate a third verification value, uses the same method as the intelligent control terminal to generate a first verification value based on the processing information, and compares whether the first verification value and the third verification value are the same. If they are the same, it means that the data has not been tampered with during the transmission process. The first key is used to decrypt the second encrypted data to obtain the environmental data, and the environmental data and processing information are saved. Subsequently, the saved environmental data can be deeply analyzed to optimize the second functional program. The processing information can also be analyzed to optimize the first functional program to improve the efficiency of subsequent data processing. If they are not the same, it means that the data may have been tampered with during the transmission process, and the relevant staff are notified to check the communication security of the cloud computing platform and the corresponding intelligent control terminal.
[0090] In a specific embodiment, the cloud computing platform verifies the received integrated data or packaged data, further comprising the following steps:
[0091] When the cloud computing platform receives the packaged data, it obtains the third ciphertext data and the transfer information based on the packaged data, obtains the second verification value and the transfer data based on the transfer information, generates a fourth verification value based on the transfer data using the same method as the intelligent control terminal, determines whether the second verification value and the fourth verification value are the same, and if they are the same, decrypts the third ciphertext data using the first key to obtain the integrated data, records the transfer data, and determines whether the external data is the packaged data. If so, it repeats this step until the external data is the integrated data. In the process of obtaining the integrated data, all the transfer data are recorded, and all the recorded transfer data are recorded as the communication history record from the intelligent control terminal corresponding to the integrated data to the cloud computing platform. The communication path of the corresponding intelligent control terminal can be obtained based on the communication history record later.
[0092] If they are different, the corresponding transfer data is obtained, the corresponding device ID is obtained based on the transfer data, and the relevant staff is notified to check the communication security of the intelligent control terminal corresponding to the device ID.
[0093] Specifically, when the cloud computing platform receives the packaged data, it obtains the third ciphertext data and transfer information based on the packaged data, obtains the second verification value and transfer data based on the transfer information, uses the same method as the intelligent control terminal to generate a fourth verification value based on the transfer data, and determines whether the second verification value and the fourth verification value are the same. If they are the same, it means that the data has not been tampered with during the transmission process. The third ciphertext data is decrypted using the first key to obtain the corresponding decrypted data, the transfer data is recorded, and it is determined whether the decrypted data is packaged data. If so, this step is repeated until the decrypted data is comprehensive data. In the process of obtaining the comprehensive data, the corresponding transfer data is recorded, and all recorded transfer data are recorded as the communication history record from the intelligent control terminal corresponding to the comprehensive data to the cloud computing platform. Later, the communication path of the corresponding intelligent control terminal can be obtained based on the communication history record.
[0094] If they are different, it means that the data has not been tampered with during the transmission process. The corresponding device ID is obtained based on the transfer data, and the relevant staff is notified to check the communication security of the intelligent control terminal corresponding to the device ID.
[0095] The above describes the cloud computing-based intelligent greenhouse monitoring method in the embodiment of the present application. The following describes the cloud computing-based intelligent greenhouse monitoring system in the embodiment of the present application. Figure 6 In the embodiments of the present application, an embodiment of a cloud computing-based intelligent greenhouse monitoring system includes:
[0096] The collection module is used to deploy multiple sensors and multiple controllers in all target greenhouses within the monitoring range. The multiple sensors are used to collect environmental data of the target greenhouses and send the environmental data to the intelligent control terminal via a wireless network;
[0097] an authentication module, configured to generate a functional program, the functional program including a first functional program and a second functional program, generate first data based on the first functional program, generate second data based on the second functional program, create a first key and a second key, generate authentication information based on the security platform, process the two functional programs to generate relevant data, and send the relevant data to the intelligent control terminal;
[0098] The control module is configured to verify the two functional programs based on relevant data, save the functional programs after successful verification, and, after receiving environmental data sent by the sensor, process the environmental data based on the first functional program to obtain a processing result, input the processing result into the second functional program to generate control information, and send the control information to the corresponding controller to adjust the environment of the target greenhouse;
[0099] The transmission module is used to encrypt the comprehensive data or packaged data and send it to the cloud computing platform. The cloud computing platform verifies the received comprehensive data or packaged data and saves the corresponding environmental data. At preset time intervals, the cloud computing platform conducts in-depth analysis of all saved environmental data to optimize the second function program.
[0100] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of a cloud computing-based intelligent greenhouse monitoring method.
[0101] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.
[0103] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A cloud computing-based intelligent greenhouse monitoring method, characterized in that: The method comprises: Step S1: deploying multiple sensors and multiple controllers in all target greenhouses within the monitoring range, wherein the multiple sensors are used to collect environmental data of the target greenhouses and transmit the environmental data to the intelligent control terminal via a wireless network; Step S2: The cloud computing platform generates a functional program, the functional program includes a first functional program and a second functional program, generates first data based on the first functional program, generates second data based on the second functional program, creates a first key and a second key, generates authentication information based on the security platform, and processes the two functional programs to generate relevant data, including: the cloud computing platform sends key data to the authentication platform, the key data includes the second key and the platform ID, the authentication platform generates a first arbitrary value, generates a third key based on the key data and the first arbitrary value, generates first summary data based on the key data, encrypts the first summary data using the third key to generate first authentication information, combines the key data and the first authentication information into authentication information, and then sends the authentication information to the cloud computing platform, and also stores the authentication information in a database of the security platform; encrypts the first data and the second data using the first key to generate first ciphertext data and second ciphertext data, and then combines the first functional program, the second functional program, the first ciphertext data, the second ciphertext data and the authentication information to generate relevant data, and sends the relevant data to the intelligent control terminal; Step S3: The intelligent control terminal verifies the two functional programs based on the relevant data, saves the functional programs after successful verification, and processes the environmental data based on the first functional program after receiving the environmental data sent by the sensor to obtain a processing result, inputs the processing result into the second functional program to generate control information, and sends the control information to the corresponding controller to adjust the environment of the target greenhouse; Step S4: The intelligent control terminal encrypts the comprehensive data or packaged data and sends it to the cloud computing platform. The cloud computing platform verifies the received comprehensive data or packaged data and saves the corresponding environmental data. At preset time intervals, it conducts in-depth analysis on all saved environmental data and optimizes the second function program. The generation process of the comprehensive data is as follows: based on the first function program, the environmental data is processed, the corresponding processing information is recorded, and a first verification value is generated based on the processing information. The first verification value is also encrypted with the second key to generate the first encrypted data, and the environmental data is encrypted to generate the second encrypted data. The device ID of the intelligent control terminal, the second encrypted data, the processing information and the first encrypted data are combined to generate the comprehensive data; the packaged data is generated by the sending target after packaging the comprehensive data.
2. The method according to claim 1, characterized in that After receiving the relevant data, the intelligent control terminal verifies the two functional programs based on the relevant data, including: The authentication information is sent to the security platform. After receiving the authentication information, the security platform determines whether there is the same data as the authentication information in its own database. If yes, it sends a message of authentication success to the intelligent control terminal. If not, it sends a message of authentication failure to the intelligent control terminal. When the intelligent control terminal receives the authentication success, it obtains the second key based on the authentication information, decrypts the first ciphertext data and the second ciphertext data based on the second key to obtain the third data value and the fourth data value, generates the first data based on the first functional program, generates the second data based on the second functional program, determines whether the third data value is the same as the first data, and also determines whether the fourth data value is the same as the second data. If they are the same, the first functional program and the second functional program are saved; otherwise, a verification failure message is sent to the cloud computing platform.
3. The method according to claim 1, characterized in that The intelligent control terminal sends comprehensive data or packaging data to the cloud computing platform, including: The intelligent control terminal obtains its own sending target and sends the integrated data or packaged data to the sending target. When the sending target is a cloud computing platform, the cloud computing platform directly receives the integrated data or packaged data. When the sending target is an intelligent control terminal, after sending the integrated data to the sending target, the sending target packages the integrated data or packaged data to generate new packaged data. The sending target also obtains its own sending target, sends the new packaged data to the sending target, and returns to the step of obtaining its own sending target. This method is repeated until the sending target is a cloud computing platform, and this step is ended.
4. The method according to claim 3, characterized in that The intelligent control terminal obtains its own sending target, including: Before sending the comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record. If there is a communication history record, the intelligent control terminal obtains the communication path with the shortest communication time based on the communication history record, and sends the comprehensive data to the cloud computing platform based on the communication path; In the absence of a communication history record, the intelligent control terminal obtains a first intelligent control terminal that is adjacent to the intelligent control terminal and is closer to the cloud computing platform than the distance between the intelligent control terminal and the cloud computing platform. If there are multiple first intelligent control terminals, the first intelligent control terminal with the shortest distance to the cloud computing platform is obtained as the sending target of the intelligent control terminal; After determining the first intelligent control terminal, a first number of downstream nodes in a communication path passing through the first intelligent control terminal is obtained. When the first number is greater than or equal to a preset first threshold, the corresponding first intelligent control terminal is marked so that other intelligent control terminals avoid the marked first intelligent control terminal when acquiring the first intelligent control terminal.
5. The method according to claim 4, characterized in that The sending target packages the integrated data to generate packaged data, which also includes: When the intelligent control terminal receives integrated data or packaged data sent by other intelligent control terminals, it calls the integrated data or packaged data external data, encrypts the external data based on the second key to generate third ciphertext data, and records the transit information of receiving the external data. The transit information includes the second verification value and the transit data. The transit data includes the receiving time and its own device ID. The second verification value is generated based on the transit data. The third ciphertext data and the transit information are combined to generate packaged data.
6. The method according to claim 1, characterized in that The cloud computing platform verifies the received integrated data or packaging data, including: When the cloud computing platform receives the comprehensive data, it decrypts the first encrypted data using the first key to generate a third verification value, uses the same method as the intelligent control terminal to generate the first verification value based on the processing information, and compares whether the first verification value and the third verification value are the same. If they are the same, it uses the first key to decrypt the second encrypted data to obtain the environmental data, and saves the environmental data and processing information. If they are not the same, it notifies the relevant staff to check the communication security of the cloud computing platform and the corresponding intelligent control terminal.
7. The method according to claim 5, characterized in that The cloud computing platform verifies the received integrated data or packaged data, including: When the cloud computing platform receives the packaged data, it obtains the third ciphertext data and the transfer information based on the packaged data, obtains the second verification value and the transfer data based on the transfer information, generates a fourth verification value based on the transfer data using the same method as the intelligent control terminal, determines whether the second verification value and the fourth verification value are the same, and if they are the same, decrypts the third ciphertext data using the first key to obtain the integrated data, records the transfer data, and determines whether the external data is the packaged data. If so, it repeats this step until the external data is the integrated data. In the process of obtaining the integrated data, all transfer data are recorded, and all recorded transfer data are recorded as the communication history record from the intelligent control terminal corresponding to the integrated data to the cloud computing platform. Subsequently, the communication path of the corresponding intelligent control terminal can be obtained based on the communication history record; If they are different, the corresponding transfer data is obtained, the corresponding device ID is obtained based on the transfer data, and the relevant staff is notified to check the communication security of the intelligent control terminal corresponding to the device ID.
8. A cloud computing-based intelligent greenhouse monitoring system, configured to implement the cloud computing-based intelligent greenhouse monitoring method according to any one of claims 1 to 7, characterized in that: The system comprises: The collection module is used to deploy multiple sensors and multiple controllers in all target greenhouses within the monitoring range. The multiple sensors are used to collect environmental data of the target greenhouses and send the environmental data to the intelligent control terminal via a wireless network; an authentication module, configured to generate a functional program, the functional program including a first functional program and a second functional program, generate first data based on the first functional program, generate second data based on the second functional program, create a first key and a second key, generate authentication information based on the security platform, process the two functional programs to generate relevant data, and send the relevant data to the intelligent control terminal; The control module is configured to verify the two functional programs based on relevant data, save the functional programs after successful verification, and, after receiving environmental data sent by the sensor, process the environmental data based on the first functional program to obtain a processing result, input the processing result into the second functional program to generate control information, and send the control information to the corresponding controller to adjust the environment of the target greenhouse; The transmission module is used to encrypt the comprehensive data or packaged data and send it to the cloud computing platform. The cloud computing platform verifies the received comprehensive data or packaged data and saves the corresponding environmental data. At preset time intervals, the cloud computing platform conducts in-depth analysis of all saved environmental data to optimize the second function program.
9. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the cloud computing-based intelligent greenhouse monitoring method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Intelligent monitoring system for greenhouse
CN107819844A
Greenhouse intelligent security monitoring system based on LoRa and monitoring method thereof
CN108093059A
Intelligent agricultural management system based on cloud computing
CN115984026A
Self-powered passive Internet of Things intelligent control monitoring method and system
CN117997587A