Intelligent greenhouse monitoring method and system based on cloud computing and storage medium

By deploying sensors and controllers in the intelligent greenhouse monitoring system and generating and verifying functional programs on the cloud computing platform, the problem of possible tampering in the data transmission of greenhouse environments is solved, the security and accuracy of data transmission are achieved, and the management efficiency of greenhouse environments is improved.

CN120111090AActive Publication Date: 2025-06-06HENAN EAST CHINA IND TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510245606.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-06-06
Estimated Expiration
2045-03-04

AI Technical Summary

Technical Problem

The existing intelligent greenhouse monitoring system has failed to effectively solve the problem that environmental data in the greenhouse may be tampered with during transmission.

Method used

By deploying a variety of sensors and controllers between the cloud computing platform and intelligent control terminals, transmitting environmental data using wireless networks, and generating and verifying functional programs on the cloud computing platform, ensuring the security and accuracy of data transmission.

Benefits of technology

It realizes ensuring that the cloud computing platform receives accurate environmental data, ensures that the greenhouse environment is always in an appropriate state, and improves data processing efficiency through in-depth analysis and optimization of functional programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120111090A_ABST
    Figure CN120111090A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, and discloses an intelligent greenhouse monitoring method and system based on cloud computing and a storage medium. The method comprises the steps of deploying sensors and controllers in all target greenhouses in a monitoring range, collecting environmental data, generating authentication information based on a security platform, processing two functional programs to generate related data, sending the related data to an intelligent control terminal, verifying the functional programs based on the related data, and sending the verified functional programs to the intelligent control terminal. Storing the functional programs after successful verification, processing the environmental data based on the first functional program to obtain a processing result, inputting the processing result into the second functional program to generate control information, sending the control information to the corresponding controller, adjusting the environment of the target greenhouse, encrypting comprehensive data or packaging data, and sending the encrypted comprehensive data or packaging data to the cloud computing platform. And performing deep analysis on all the stored environment data at preset time intervals, and optimizing the second function program. According to the invention, the environment data can be prevented from being tampered in the transmission process.
Need to check novelty before this filing date? Find Prior Art

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, for collecting temperature and humidity monitoring data of the greenhouse, and also for sending the collected temperature and humidity monitoring data to a base station node; a base station node, for aggregating the temperature and humidity monitoring data sent by the wireless sensor network; a greenhouse monitoring terminal, which 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, the greenhouse intelligent monitoring background combines the greenhouse crop cultivation needs with the known greenhouse monitoring rule library, analyzes and gives preliminary status estimates and corresponding environmental adjustment instructions, and transmits environmental adjustment instructions through LoRa. Only greenhouse intelligent monitoring nodes that meet the monitoring access strategy can authenticate and execute environmental adjustment instructions.

[0005] However, both of the above two documents do not consider the problem that the greenhouse environment data may be tampered with during the transmission process. Therefore, the present invention provides a cloud computing-based intelligent greenhouse monitoring method, system and storage medium. Summary of the invention

[0006] The present application provides a cloud computing-based intelligent greenhouse monitoring method, system and storage medium for ensuring that a 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: Step S1: deploy 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 send 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, processes the two functional programs 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 to obtain a processing result after receiving the environmental data sent by the sensor, 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 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, it conducts in-depth analysis on all saved environmental data to optimize the second function program.

[0008] In combination 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: 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, then sends the authentication information to the cloud computing platform, and also stores the authentication information in a database of the security platform; The cloud computing platform generates first data based on a first functional program, generates second data based on a second functional program, encrypts the first data and the second data using a 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 related data.

[0009] 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: 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 yes, a message of authentication success is sent to the intelligent control terminal. If no, a message of authentication failure is sent 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 function program, generates the second data based on the second function 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 function program and the second function program are saved; otherwise, a verification failure message is sent to the cloud computing platform.

[0010] 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 the packaging data to the cloud computing platform, including: Processing the environmental data based on the first function 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; 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, returns to the step of obtaining its own sending target, and repeats this method until the sending target is a cloud computing platform, and ends this step.

[0011] 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: Before sending the comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record, 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 communication history records, the intelligent control terminal obtains a first intelligent control terminal, which satisfies the requirement of being adjacent to the intelligent control terminal and having a shorter distance to the cloud computing platform than the distance between the intelligent control terminal and the cloud computing platform. In the case of 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, obtain a first number of downstream nodes of a communication path passing through the first intelligent control terminal. When the first number is greater than or equal to a preset first threshold, mark the corresponding first intelligent control terminal so that other intelligent control terminals avoid the marked first intelligent control terminal when acquiring the first intelligent control terminal.

[0012] In combination with the first aspect, in a fifth implementation of the first aspect of the present application, the sending target packages the comprehensive data to generate packaged data, including: 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 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 based on the transit data. The third ciphertext data and the transit information are combined to generate packaged data.

[0013] In combination with the first aspect, in a 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, decrypts the first encrypted data by 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 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, and if they are not the same, notifies relevant staff to check the communication security between the cloud computing platform and the corresponding intelligent control terminal.

[0014] 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 packaging data, including: When receiving the packaging data, the cloud computing platform obtains the third ciphertext data and the transfer information based on the packaging data, obtains the second verification value and the transfer data based on the transfer information, generates the 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, uses the first key to decrypt the third ciphertext data to obtain the comprehensive data, records the transfer data, determines whether the external data is the packaging data, and if so, repeats this step until the external data is the comprehensive data, records all the transfer data in the process of obtaining the comprehensive data, and records all the recorded transfer data as the communication history record from the intelligent control terminal corresponding to the comprehensive data to the cloud computing platform, and then the communication path of the corresponding intelligent control terminal can be obtained based on the communication history record; If they are not the same, 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.

[0015] In a second aspect, the present application provides a cloud computing-based intelligent greenhouse monitoring system, the system comprising: A 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 through a wireless network; an authentication module, used to generate a function program, the function program includes a first function program and a second function program, generate first data based on the first function program, generate second data based on the second function program, create a first key and a second key, generate authentication information based on a security platform, process the two function programs to generate relevant data, and send the relevant data to the intelligent control terminal; A control module is used to verify the two functional programs based on relevant data, save the functional programs after successful verification, and process the environmental data based on the first functional program to obtain a processing result after receiving the environmental data sent by the sensor, 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 packaging data and send 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 conducts in-depth analysis on all saved environmental data to optimize the second function program.

[0016] A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned cloud computing-based intelligent greenhouse monitoring method.

[0017] Compared with the prior art, the beneficial effects of the present invention are at least as follows: 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

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0019] Figure 1 This is a schematic diagram of an embodiment of a smart greenhouse monitoring method based on cloud computing in an embodiment of the present application; Figure 2 This is a schematic diagram of an embodiment of generating comprehensive data in an embodiment of the present application; Figure 3 It 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; Figure 4 It is a schematic diagram of an embodiment of the distribution of each intelligent control terminal and the cloud computing platform in the embodiment of the present application; Figure 5 is a schematic diagram of an embodiment of a schematic diagram of generating packaging data in an embodiment of the present application; Figure 6 This is a schematic diagram of an embodiment of a smart greenhouse monitoring system based on cloud computing in an embodiment of the present application. DETAILED DESCRIPTION

[0020] Embodiments of the present application provide a cloud-based intelligent greenhouse monitoring method, system, and storage medium. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present 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 data used in this way can be 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 that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0021] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 In the embodiment of the present application, an embodiment of the intelligent greenhouse monitoring method based on cloud computing includes: 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 through a wireless network.

[0022] 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.

[0023] 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, processes the two functional programs to generate relevant data, and sends the relevant data to the intelligent control terminal.

[0024] 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.

[0025] 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 for generating the first data and the second data can use the existing hash function (such as 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, which 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.

[0026] 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, inputs the processing result into the second functional program to generate control information, sends the control information to the corresponding controller, and adjusts the environment of the target greenhouse.

[0027] 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 accurate functional programs that have 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 the verification is successful, 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.

[0028] 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 in the process of sending environmental data to the intelligent control terminal. After receiving the environmental data, the intelligent control terminal can basically determine that the received ambient 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.

[0029] 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, it conducts in-depth analysis on all saved environmental data to optimize the second function program.

[0030] 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 the 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, which 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 determine 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 determine which transmitting intelligent control terminal has been tampered with based on the packaged data.

[0031] 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.

[0032] After verifying that accurate environmental data is obtained, 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, and then the corresponding second function program is modified to optimize the control strategy of the target greenhouse.

[0033] 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: 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 with 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 the database of the security platform.

[0034] Specifically, the key data includes a second key and a 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 determine the legitimacy of the cloud computing platform based on the platform ID and a pre-stored list of legal IDs. 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.

[0035] The cloud computing platform generates first data based on a first functional program, generates second data based on a second functional program, encrypts the first data and the second data using a 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 related data.

[0036] Specifically, the cloud computing platform obtains corresponding authentication information after performing security authentication based on the security platform, proving the legitimacy of the cloud computing platform. It then generates first data and second data and uses the first key to encrypt them to generate corresponding ciphertext data. It then combines the two functional programs, the two ciphertext data and the authentication information to generate relevant data and sends them 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.

[0037] In a specific embodiment, after receiving the relevant data, the intelligent control terminal verifies the two functional programs based on the relevant data, which specifically includes the following steps: The authentication information is sent to the security platform. After receiving the authentication information, the security platform determines whether its own database has the same data as the authentication information. If so, a message of successful authentication is sent to the smart control terminal. If not, a message of failed authentication is sent to the smart control terminal.

[0038] Specifically, after receiving the relevant data, the intelligent control terminal 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 a message of authentication success 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 a message of authentication failure to the intelligent control terminal.

[0039] 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 function program, generates the second data based on the second function 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 function program and the second function program are saved; otherwise, a verification failure message is sent to the cloud computing platform.

[0040] 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.

[0041] 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, the intelligent control terminal sends a verification failure message 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.

[0042] In a specific embodiment, the intelligent control terminal sends the comprehensive data or packaging data to the cloud computing platform, including the following steps: Based on the first functional program, the environmental data is processed, 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.

[0043] Specifically, before the intelligent control terminal sends the environmental data to the cloud computing platform, after receiving the environmental data sent by the sensor, if the intelligent control terminal successfully verifies the two functional modules, it uses the first functional program to process the environmental data 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 on 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 It is a schematic diagram of generating comprehensive data. After receiving the comprehensive data, the cloud computing platform can judge whether the comprehensive data has been tampered with during the sending process based on the processing information and the first encrypted data.

[0044] 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, returns to the step of obtaining its own sending target, and repeats this method until the sending target is a cloud computing platform, and ends this step.

[0045] 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 transmission efficiency of the intelligent control terminals, Figure 4As shown, this is a method of sending comprehensive data or packaged data to a 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 acquired sending target is a cloud computing platform, the cloud computing platform receives the comprehensive data or packaged data. When the sending target is an 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 a cloud computing platform. The cloud computing platform receives the comprehensive data or packaged data, and then ends this step.

[0046] 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 a 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 a 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.

[0047] In a specific embodiment, the intelligent control terminal obtains the self-set sending target, which specifically includes the following steps: Before sending the comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record, 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 communication history records, the intelligent control terminal obtains a first intelligent control terminal, which satisfies the requirement of being adjacent to the intelligent control terminal and having a shorter distance to the cloud computing platform than the distance between the intelligent control terminal and the cloud computing platform. In the case of 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, obtain a first number of downstream nodes of a communication path passing through the first intelligent control terminal. When the first number is greater than or equal to a preset first threshold, mark the corresponding first intelligent control terminal so that other intelligent control terminals avoid the marked first intelligent control terminal when acquiring the first intelligent control terminal.

[0048] Specifically, before sending comprehensive data to the cloud computing platform, the intelligent control terminal obtains the communication history record of 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, and these transit devices refer to other intelligent control terminals.

[0049] In the absence of communication history, such as Figure 4 As shown, assuming Figure 4 The points in it are the distribution of each intelligent control terminal and the cloud computing platform, among which point Q is the cloud computing platform, and the other points represent each intelligent control terminal. Now suppose you want to obtain the first intelligent control terminal of intelligent control terminal A, and find 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 use the same method 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, and the intelligent control terminal E is marked, for example Figure 4 When the intelligent control terminal F in the example 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. In this case, G can be selected as the transfer device of F.

[0050] In a specific embodiment, the sending target packages the integrated data to generate the packaged data, which specifically includes the following steps: 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 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 based on the transit data. The third ciphertext data and the transit information are combined to generate packaged data.

[0051] 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 SHA-2 algorithm) based on the transit data. The third ciphertext data and the transit information are combined to generate packaging data.

[0052] 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.

[0053] In a specific embodiment, the cloud computing platform verifies the received integrated data or packaged data, specifically including the following steps: When receiving the comprehensive data, the cloud computing platform 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 the environmental data, and saves the environmental data and processing information; if they are not the same, notifies the relevant staff to check the communication security between the cloud computing platform and the corresponding intelligent control terminal.

[0054] 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 transmission. The first key is used to decrypt the second encrypted data to obtain 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 transmission, and the relevant staff is notified to check the communication security between the cloud computing platform and the corresponding intelligent control terminal.

[0055] In a specific embodiment, the cloud computing platform verifies the received integrated data or packaging data, further comprising the following steps: When receiving the packaging data, the cloud computing platform obtains the third ciphertext data and the transfer information based on the packaging data, obtains the second verification value and the transfer data based on the transfer information, generates the 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, uses the first key to decrypt the third ciphertext data to obtain the comprehensive data, records the transfer data, determines whether the external data is the packaging data, and if so, repeats this step until the external data is the comprehensive data, records all the transfer data in the process of obtaining the comprehensive data, and records all the recorded transfer data as the communication history record from the intelligent control terminal corresponding to the comprehensive data to the cloud computing platform, and then the communication path of the corresponding intelligent control terminal can be obtained based on the communication history record; If they are not the same, 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.

[0056] Specifically, when the cloud computing platform receives the packaging data, it obtains the third ciphertext data and transit information based on the packaging data, obtains the second verification value and transit data based on the transit information, generates a fourth verification value based on the transit data using the same method as the intelligent control terminal, determines whether the second verification value and the fourth verification value are the same, if they are the same, it indicates that the data has not been tampered with during transmission, decrypts the third ciphertext data using the first key to obtain the corresponding decrypted data, records the transit data, determines whether the decrypted data is packaging data, and if so, repeats this step until the decrypted data is comprehensive data, records the corresponding transit data in the process of obtaining the comprehensive data, and records all recorded transit data as the communication history record from the intelligent control terminal corresponding to the comprehensive data to the cloud computing platform, and then the communication path of the corresponding intelligent control terminal can be obtained based on the communication history record.

[0057] If they are not the same, it means that the data has not been tampered with during the transmission process. The corresponding device ID is obtained based on the transferred data, and the relevant staff is notified to check the communication security of the intelligent control terminal corresponding to the device ID.

[0058] The above describes the intelligent greenhouse monitoring method based on cloud computing in the embodiment of the present application. The following describes the intelligent greenhouse monitoring system based on cloud computing in the embodiment of the present application. Figure 6 In the embodiment of the present application, an embodiment of the intelligent greenhouse monitoring system based on cloud computing includes: A 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 through a wireless network; an authentication module, used to generate a function program, the function program includes a first function program and a second function program, generate first data based on the first function program, generate second data based on the second function program, create a first key and a second key, generate authentication information based on a security platform, process the two function programs to generate relevant data, and send the relevant data to the intelligent control terminal; A control module is used to verify the two functional programs based on relevant data, save the functional programs after successful verification, and process the environmental data based on the first functional program to obtain a processing result after receiving the environmental data sent by the sensor, 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 packaging data and send 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 conducts in-depth analysis on all saved environmental data to optimize the second function program.

[0059] 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. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of a cloud computing-based intelligent greenhouse monitoring method.

[0060] Those skilled in the art can 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.

[0061] 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 is essentially 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, including several instructions to enable 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 codes.

[0062] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned 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: deploy 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 send 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, processes the two functional programs 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 to obtain a processing result after receiving the environmental data sent by the sensor, 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 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, it conducts in-depth analysis on all saved environmental data to optimize the second function program.

2. The method according to claim 1, characterized in that Generate authentication information based on the security platform, and process the two functional programs to generate relevant data, including: 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, then sends the authentication information to the cloud computing platform, and also stores the authentication information in a database of the security platform; The cloud computing platform generates first data based on a first functional program, generates second data based on a second functional program, encrypts the first data and the second data using a 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 related data.

3. The method according to claim 2, 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 data identical to the authentication information in its own database. If yes, a message of authentication success is sent to the intelligent control terminal. If no, a message of authentication failure is sent 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 function program, generates the second data based on the second function 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 function program and the second function program are saved; otherwise, a verification failure message is sent to the cloud computing platform.

4. 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: Processing the environmental data based on the first function 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; 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, returns to the step of obtaining its own sending target, and repeats this method until the sending target is a cloud computing platform, and ends this step.

5. The method according to claim 4, 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, 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 communication history records, the intelligent control terminal obtains a first intelligent control terminal, which satisfies the requirement of being adjacent to the intelligent control terminal and having a shorter distance to the cloud computing platform than the distance between the intelligent control terminal and the cloud computing platform. In the case of 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, obtain a first number of downstream nodes of a communication path passing through the first intelligent control terminal. When the first number is greater than or equal to a preset first threshold, mark the corresponding first intelligent control terminal so that other intelligent control terminals avoid the marked first intelligent control terminal when acquiring the first intelligent control terminal.

6. The method according to claim 4, characterized in that The sending target packages the comprehensive 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 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 based on the transit data. The third ciphertext data and the transit information are combined to generate packaged data.

7. The method according to claim 1, characterized in that The cloud computing platform verifies the received comprehensive data or packaging data, including: When receiving the comprehensive data, the cloud computing platform 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 the environmental data, and saves the environmental data and processing information; if they are not the same, notifies the relevant staff to check the communication security between the cloud computing platform and the corresponding intelligent control terminal.

8. The method according to claim 1, characterized in that The cloud computing platform verifies the received comprehensive data or packaging data, including: When receiving the packaging data, the cloud computing platform obtains the third ciphertext data and the transfer information based on the packaging data, obtains the second verification value and the transfer data based on the transfer information, generates the 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, uses the first key to decrypt the third ciphertext data to obtain the comprehensive data, records the transfer data, determines whether the external data is the packaging data, and if so, repeats this step until the external data is the comprehensive data, records all the transfer data in the process of obtaining the comprehensive data, and records all the recorded transfer data as the communication history record from the intelligent control terminal corresponding to the comprehensive data to the cloud computing platform, and then the communication path of the corresponding intelligent control terminal can be obtained based on the communication history record; If they are not the same, 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.

9. A cloud computing-based intelligent greenhouse monitoring system, used to implement the cloud computing-based intelligent greenhouse monitoring method according to any one of claims 1 to 8, characterized in that: The system comprises: A 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 through a wireless network; an authentication module, used to generate a function program, the function program includes a first function program and a second function program, generate first data based on the first function program, generate second data based on the second function program, create a first key and a second key, generate authentication information based on a security platform, process the two function programs to generate relevant data, and send the relevant data to the intelligent control terminal; A control module is used to verify the two functional programs based on relevant data, save the functional programs after successful verification, and process the environmental data based on the first functional program to obtain a processing result after receiving the environmental data sent by the sensor, 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 packaging data and send 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 conducts in-depth analysis on all saved environmental data to optimize the second function program.

10. 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 as described in any one of claims 1-8 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

  • Greenhouse environment cloud control system

    CN206820785U