Intelligent door control method and system for smart agricultural greenhouse based on Arduino
By combining Arduino controllers and wearable devices, users' work tasks can be identified and verified, ensuring that the smart doors of smart agricultural greenhouses are unlocked only to legitimate personnel with work tasks. This solves the problem of smart doors being mislocked, reduces pests and improves work accuracy.
Patent Information
- Application Number
- CN202210521310.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-05-13
AI Technical Summary
When the smart doors of existing smart agricultural greenhouses are locked, it is easy to misunderstand and lock out unnecessary legal workers, leading to pests.
By combining an Arduino controller with a wearable device, the camera module recognizes the user's facial image and verifies whether the wearable device plays a specified audio file, ensuring that only legitimate operators with work tasks can unlock the smart door.
It reduces unnecessary unlocking of smart doors, reduces the occurrence of pests in smart agricultural greenhouses, and improves the accuracy and completeness of the execution of work tasks.
Smart Images

Figure CN114840087B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart agricultural greenhouses, and specifically to an intelligent door control method and system for smart agricultural greenhouses based on Arduino. Background Art
[0002] Currently, some smart agricultural greenhouses are equipped with smart doors. When these smart doors are in the locked state, if they scan the face of a legitimate operator near the smart agricultural greenhouse from outside, the smart door will be unlocked to allow the legitimate operator to enter the smart agricultural greenhouse.
[0003] In practice, it is found that when the smart door is in the locked state, if the face of a legitimate operator without any work tasks is scanned, the smart door will also be unlocked. Summary of the Invention
[0004] The embodiment of the present application discloses an Arduino-based smart door control method and system for a smart agricultural greenhouse. The smart door is unlocked only when the face of a legitimate operator with an operating task is scanned, thereby reducing the occurrence of insect pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0005] In a first aspect, an embodiment of the present application discloses a method for controlling a smart door of a smart agricultural greenhouse based on Arduino. The smart door is provided with an Arduino controller, and a wearable device is worn by a user. The method includes:
[0006] The Arduino controller captures a facial image of the user using a camera module when the user approaches the locked smart door outside the smart agricultural greenhouse;
[0007] When the Arduino controller recognizes, based on the user's facial image, that the user is a legal worker preset by the Arduino controller and is allowed to enter the smart agricultural greenhouse, if it recognizes that the wearable device is playing a specified audio file, it unlocks the smart door; wherein, the specified audio file is used to describe the work tasks of the legal worker after entering the smart agricultural greenhouse.
[0008] As an optional implementation, in the first aspect of the embodiment of the present application, when the Arduino controller recognizes, based on the user's facial image, a legal operator preset by the user for the Arduino controller to be allowed to enter the smart agricultural greenhouse, if it is recognized that the wearable device is playing a specified audio file, then unlocking the smart door includes:
[0009] When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and is allowed to enter the smart agricultural greenhouse, it determines a unique device ID corresponding to the preset legal operator;
[0010] The Arduino controller broadcasts first interaction information including the unique device ID, where the first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device;
[0011] The wearable device receives the first interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, determines that the wearable device is the target device to which the unique device ID belongs, and broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device in response to the first interactive information;
[0012] The Arduino controller receives the first response information and identifies whether the unique audio ID of the target audio file being played by the wearable device is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, it is determined that the target audio file being played by the wearable device is the specified audio file, and the smart door is unlocked.
[0013] As another optional implementation manner, in the first aspect of the embodiment of the present application, after the Arduino controller unlocks the smart door, the method further includes:
[0014] The wearable device is connected to the Internet of Things management platform corresponding to the smart agricultural greenhouse;
[0015] The Arduino controller reports a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the Internet of Things management platform;
[0016] The wearable device obtains the operation instruction information of the operation task matched with the task type issued by the Internet of Things management platform in response to the operation task instruction information acquisition request and according to the unique device ID;
[0017] The wearable device outputs the operation guidance information.
[0018] As another optional implementation, in the first aspect of the embodiment of the present application, the first response information also includes the actual playback time of the target audio file when the wearable device receives the first interaction information. After the Arduino controller unlocks the smart door, the method further includes:
[0019] The Arduino controller determines the unlocking completion time of the smart door, and estimates the estimated playing time of the target audio file played by the wearable device according to the actual playing time of the target audio file and the unlocking completion time of the smart door;
[0020] The Arduino controller calculates a ratio of the estimated playback duration of the target audio file to the total playback duration of the designated audio file;
[0021] The Arduino controller determines whether the ratio exceeds a specified target threshold; if so, broadcasts a second interactive message including the unique device ID, the unique identifier of the IoT management platform corresponding to the smart agricultural greenhouse, and access verification information of the IoT management platform;
[0022] The wearable device is connected to the Internet of Things management platform corresponding to the smart agricultural greenhouse, including:
[0023] The wearable device receives the second interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, it accesses the Internet of Things management platform corresponding to the smart agricultural greenhouse based on the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform.
[0024] As another optional implementation manner, in the first aspect of the embodiment of the present application, after the Arduino controller determines that the ratio exceeds a specified target threshold, the method further includes:
[0025] The Arduino controller reads the recorded number of executions of historical tasks matching the task type that have been performed by the legal operator in the smart agricultural greenhouse;
[0026] The Arduino controller determines whether the execution times exceed the specified times; if not, executes the step of broadcasting the second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and the access verification information of the Internet of Things management platform.
[0027] A second aspect of an embodiment of the present application discloses an Arduino-based smart door control system for a smart agricultural greenhouse, comprising an Arduino controller and a wearable device, wherein the Arduino controller is provided on the smart door, and the wearable device is worn by a user, wherein:
[0028] The Arduino controller is configured to capture a facial image of the user using a camera module when the user approaches the locked smart door outside the smart agricultural greenhouse;
[0029] The Arduino controller is also used to unlock the smart door when the user recognizes a legal operator preset by the Arduino controller to enter the smart agricultural greenhouse based on the user's facial image, and if it is recognized that the wearable device is playing a specified audio file; wherein the specified audio file is used to describe the work tasks of the legal operator after entering the smart agricultural greenhouse.
[0030] As an optional implementation, in the second aspect of the embodiment of the present application, when the Arduino controller recognizes the user as a legal operator preset by the Arduino controller to enter the smart agricultural greenhouse based on the user's facial image, if it is recognized that the wearable device is playing a specified audio file, the method of unlocking the smart door is specifically as follows:
[0031] When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and is allowed to enter the smart agricultural greenhouse, it determines a unique device ID corresponding to the preset legal operator;
[0032] The Arduino controller broadcasts first interaction information including the unique device ID, where the first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device;
[0033] The wearable device receives the first interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, determines that the wearable device is the target device to which the unique device ID belongs, and broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device in response to the first interactive information;
[0034] The Arduino controller receives the first response information and identifies whether the unique audio ID of the target audio file being played by the wearable device is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, it is determined that the target audio file being played by the wearable device is the specified audio file, and the smart door is unlocked.
[0035] As another optional implementation, in the second aspect of the embodiments of the present application:
[0036] The wearable device is further configured to access the Internet of Things management platform corresponding to the smart agricultural greenhouse after the Arduino controller unlocks the smart door;
[0037] The Arduino controller is further configured to report a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the Internet of Things management platform;
[0038] The wearable device is further configured to obtain the operation instruction information of the operation task matched with the task type issued by the Internet of Things management platform in response to the operation task instruction information acquisition request and according to the unique device ID;
[0039] The wearable device is further configured to output the operation guidance information.
[0040] As another optional implementation, in the second aspect of the embodiment of the present application, the first response information also includes the actual playback time of the target audio file when the wearable device receives the first interaction information, then:
[0041] The Arduino controller is further configured to, after unlocking the smart door, determine a time point at which the smart door is unlocked, and estimate an estimated playback time length of the target audio file played by the wearable device based on the actual playback time length of the target audio file and the time point at which the smart door is unlocked;
[0042] The Arduino controller is further configured to calculate a ratio of the estimated playback duration of the target audio file to the total playback duration of the designated audio file;
[0043] The Arduino controller is further configured to determine whether the ratio exceeds a specified target threshold; if so, broadcast a second interactive message including the unique device ID, a unique identifier of the IoT management platform corresponding to the smart agricultural greenhouse, and access verification information of the IoT management platform;
[0044] The wearable device is connected to the Internet of Things management platform corresponding to the smart agricultural greenhouse in the following manner:
[0045] The wearable device receives the second interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, it accesses the Internet of Things management platform corresponding to the smart agricultural greenhouse based on the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform.
[0046] As another optional implementation, in the second aspect of the embodiments of the present application:
[0047] The Arduino controller is further configured to read the number of executions of historical tasks matching the task type that have been recorded by the legal operator in the smart agricultural greenhouse after determining that the ratio exceeds a specified target threshold;
[0048] The Arduino controller is further used to determine whether the execution times exceed the specified times; if not, execute the step of broadcasting the second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and the access verification information of the Internet of Things management platform.
[0049] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0050] In an embodiment of the present application, an Arduino controller is provided on the smart door of the smart agricultural greenhouse, and a wearable device is worn by a certain user. In this application scenario, the Arduino controller can use a shooting module to capture the facial image of the user when the user approaches the smart door in a locked state outside the smart agricultural greenhouse; and when the user is identified as a legal operator preset by the Arduino controller and allowed to enter the smart agricultural greenhouse based on the facial image of the user, if it is further identified that the wearable device is playing a specified audio file for describing the operating tasks of the legal operator after entering the smart agricultural greenhouse, the smart door is unlocked. It can be seen that when implementing the embodiment of the present application, the unlocking operation of the smart door is performed only when the face of the legal operator with the operating tasks is swiped, thereby reducing the occurrence of insect pests in the smart agricultural greenhouse caused by unnecessary unlocking of the smart door. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 This is a flow chart of a first embodiment of the smart door control method for a smart agricultural greenhouse based on Arduino disclosed in an embodiment of the present application;
[0053] Figure 2 This is a flow chart of a second embodiment of the smart door control method for a smart agricultural greenhouse based on Arduino disclosed in an embodiment of the present application;
[0054] Figure 3 This is a flow chart of a third embodiment of the smart door control method for a smart agricultural greenhouse based on Arduino disclosed in an embodiment of the present application;
[0055] Figure 4 This is a flow chart of a fourth embodiment of the smart door control method for a smart agricultural greenhouse based on Arduino disclosed in the embodiments of the present application;
[0056] Figure 5 This is a schematic diagram of the architecture of an Arduino-based smart door control system for a smart agricultural greenhouse disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0058] It should be noted that the terms "including" and "having" in the embodiments of the present application 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 clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.
[0059] This application discloses an Arduino-based smart door control method and system for smart agricultural greenhouses. This system unlocks the smart door only when the face of a legitimate operator with a task is scanned, reducing the risk of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking. This is described in detail below with reference to the accompanying figures.
[0060] See also Figure 1 , Figure 1This is a flow chart of the first embodiment of the smart door control method for a smart agricultural greenhouse based on Arduino disclosed in the embodiment of this application. Figure 1 In the smart door control method of the smart agricultural greenhouse based on Arduino, the smart door is provided with an Arduino controller, and the wearable device is worn by a certain user. It is understandable that the Arduino controller involved in the embodiment of the present application can be a controller with an Arduino UNO development board. It is understandable that the wearable device involved in the embodiment of the present application can include but is not limited to smart bracelets, smart watches, phone watches, wrist phones or headphones, and the embodiment of the present application does not limit it. Figure 1 As shown, the Arduino-based smart door control method for a smart agricultural greenhouse may include the following steps:
[0061] 101. When the user approaches the locked smart door outside the smart agricultural greenhouse, the Arduino controller uses a camera module to capture the user's facial image.
[0062] In an embodiment of the present application, a shooting module (i.e., a camera) may be provided on the Arduino controller. When the user wearing the wearable device approaches the locked smart door outside the smart agricultural greenhouse, the Arduino controller may use the shooting module to capture the user's facial image.
[0063] 102. When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and allowed to enter the smart agricultural greenhouse, if it recognizes that the wearable device is playing a specified audio file, the smart door is unlocked; wherein the specified audio file is used to describe the work tasks of the legal operator after entering the smart agricultural greenhouse.
[0064] In some embodiments, when the Arduino controller recognizes a legal operator who is allowed to enter the smart agricultural greenhouse and is preset by the user for the Arduino controller based on the user's facial image, it can identify whether the unique audio ID of the target audio file being played by the wearable device broadcast by the wearable device is the same as the unique audio ID of the designated audio file preset by the Arduino controller for the wearable device; if they are the same, it is determined that the wearable device is playing the designated audio file (that is, the target audio file being played by the wearable device is the designated audio file) and the smart door is unlocked.
[0065] For example, the work task of the legal operator described in the designated audio file after entering the smart agricultural greenhouse may be to perform deep plowing and turning over the soil in certain areas to be planted in the smart agricultural greenhouse; wherein, deep plowing and turning over the soil in certain areas to be planted in the smart agricultural greenhouse can destroy the compaction in the soil, thereby preventing and improving the salinization of the soil in these areas to be planted.
[0066] It can be seen that implementation Figure 1 In the Arduino-based smart door control method for a smart agricultural greenhouse shown in the figure, the smart door is unlocked only when the face of a legitimate operator with an operating task is scanned, thereby reducing the occurrence of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0067] See also Figure 2 , Figure 2 This is a flow chart of the second embodiment of the smart door control method for smart agricultural greenhouses based on Arduino disclosed in the embodiment of this application. Figure 2 In the smart door control method of the smart agricultural greenhouse based on Arduino, the smart door is provided with an Arduino controller, and the wearable device is worn by a user. Figure 2 As shown, the Arduino-based smart door control method for a smart agricultural greenhouse may include the following steps:
[0068] 201. When the user approaches the locked smart door outside the smart agricultural greenhouse, the Arduino controller uses a camera module to capture the user's facial image.
[0069] 202. When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and allowed to enter the smart agricultural greenhouse, it determines a unique device ID corresponding to the preset legal operator.
[0070] Exemplarily, the unique device ID corresponding to the legal operator may include a unique MAC address corresponding to the legal operator.
[0071] 203. The Arduino controller broadcasts first interaction information including the unique device ID, where the first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device.
[0072] 204. The wearable device receives the first interaction information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, execute step 205; if they are not the same, end this process.
[0073] Exemplarily, the unique identity ID of the wearable device may be a unique MAC address of the wearable device.
[0074] 205. The wearable device determines that the wearable device is the target device to which the unique device ID belongs, and broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device in response to the first interactive information.
[0075] 206. The Arduino controller receives the first response information and identifies whether the unique audio ID of the target audio file being played by the wearable device is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, execute step 207; if not, end this process.
[0076] Among them, the designated audio file is used to describe the work tasks of the legal workers after entering the smart agricultural greenhouse.
[0077] 207. The Arduino controller determines that the target audio file being played by the wearable device is the designated audio file, and unlocks the smart door.
[0078] In an embodiment of the present application, the implementation of the above steps 202 to 206 enables the Arduino controller to accurately identify that the wearable device is playing a specified audio file describing the work tasks of the legal operator after entering the smart agricultural greenhouse when the Arduino controller recognizes a legal operator preset by the user for the Arduino controller based on the user's facial image, thereby accurately unlocking the smart door and reducing the occurrence of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0079] 208. The wearable device is connected to the Internet of Things management platform corresponding to the smart agricultural greenhouse.
[0080] In some embodiments, after the Arduino controller unlocks the smart door, it can broadcast a second interactive message including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and the access verification information of the Internet of Things management platform; accordingly, the wearable device can receive the second interactive message and identify whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, the Internet of Things management platform corresponding to the smart agricultural greenhouse is accessed according to the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform.
[0081] It is understandable that the access verification information of the Internet of Things management platform may include the access key of the Internet of Things management platform.
[0082] 209. The Arduino controller reports a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the Internet of Things management platform.
[0083] For example, when the operation task is to perform deep plowing and turning over the soil in certain areas to be planted in the smart agricultural greenhouse, the task type of the operation task is deep plowing and turning over the soil to break up compaction.
[0084] 210. The wearable device obtains the operation guidance information of the operation task that matches the task type and is issued by the Internet of Things management platform in response to the operation task guidance information acquisition request and according to the unique device ID.
[0085] For example, when the task type of the operation task is deep plowing and soil turning to break up compaction (at this time, the operation task is to perform deep plowing and soil turning operations on the soil in certain areas to be planted in the smart agricultural greenhouse), the Internet of Things management platform responds to the operation task guidance information acquisition request and matches the operation guidance information of the operation task according to the task type issued by the unique device ID, which may include a specified deep plowing and soil turning thickness (such as 50 cm) and a setting method for setting the specified deep plowing and soil turning depth (such as 50 cm) on the deep plowing and soil turning machine.
[0086] 211. The wearable device outputs the operation guidance information.
[0087] In the embodiment of the present application, implementing the above steps 202 to 206 allows the user wearing the wearable device to perform the operation task under the guidance of the operation guidance information, thereby improving the accuracy of the user's operation task.
[0088] It can be seen that implementation Figure 2In the Arduino-based smart door control method for a smart agricultural greenhouse shown in the figure, the smart door is unlocked only when the face of a legitimate operator with an operating task is scanned, thereby reducing the occurrence of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0089] See also Figure 3 , Figure 3 This is a flow chart of the third embodiment of the smart door control method for smart agricultural greenhouses based on Arduino disclosed in the embodiment of this application. Figure 3 In the smart door control method of the smart agricultural greenhouse based on Arduino, the smart door is provided with an Arduino controller, and the wearable device is worn by a user. Figure 3 As shown, the Arduino-based smart door control method for a smart agricultural greenhouse may include the following steps:
[0090] 301. When the user approaches the locked smart door outside the smart agricultural greenhouse, the Arduino controller uses a camera module to capture the user's facial image.
[0091] 302. When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and allowed to enter the smart agricultural greenhouse, it determines a unique device ID corresponding to the preset legal operator.
[0092] 303. The Arduino controller broadcasts first interaction information including the unique device ID, where the first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device.
[0093] 304. The wearable device receives the first interaction information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, execute step 305; if they are not the same, end this process.
[0094] 305. The wearable device determines that the wearable device is the target device to which the unique device ID belongs, and in response to the first interactive information, broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device and the actual playback duration of the target audio file when the wearable device receives the first interactive information.
[0095] 306. The Arduino controller receives the first response information and identifies whether the unique audio ID of the target audio file being played by the wearable device is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, execute steps 307 to 310; if they are not the same, end this process.
[0096] Among them, the designated audio file is used to describe the work tasks of the legal workers after entering the smart agricultural greenhouse.
[0097] 307. The Arduino controller determines that the target audio file being played by the wearable device is the designated audio file, and unlocks the smart door.
[0098] 308. The Arduino controller determines the unlocking completion time of the smart door, and estimates the estimated playing time of the target audio file played by the wearable device based on the actual playing time of the target audio file and the unlocking completion time of the smart door.
[0099] 309. The Arduino controller calculates a ratio of the estimated playback time of the target audio file to the total playback time of the designated audio file.
[0100] 310. The Arduino controller determines whether the ratio exceeds a specified target threshold; if so, executes step 311; if not, terminates the process.
[0101] 311. The Arduino controller broadcasts second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and access verification information of the Internet of Things management platform.
[0102] 312. The wearable device receives the second interaction information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, execute step 313; if they are not the same, end this process.
[0103] 313. The wearable device accesses the Internet of Things management platform corresponding to the smart agricultural greenhouse according to the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform.
[0104] It should be noted that, in the embodiment of the present application, the designated target threshold can be set according to actual needs, and the embodiment of the present application does not limit it.
[0105] It can be understood that when the specified target threshold is large, the estimated playback time of the target audio file is required to be longer when the wearable device receives the first interactive information in order to increase the probability that the ratio of the estimated playback time of the target audio file to the total playback time of the specified audio file (this is a fixed value) exceeds the specified target threshold. Requiring that the estimated playback time of the target audio file is longer when the wearable device receives the first interactive information means that the user wearing the wearable device is required to listen to the target audio file through the wearable device for a longer time when the wearable device receives the first interactive information, so that the user wearing the wearable device is as clear as possible about his or her work tasks after entering the smart agricultural greenhouse.
[0106] 314. The Arduino controller reports a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the IoT management platform.
[0107] 315. The wearable device obtains the operation guidance information of the operation task that matches the task type and is issued by the Internet of Things management platform in response to the operation task guidance information acquisition request and according to the unique device ID.
[0108] 316. The wearable device outputs the operation guidance information.
[0109] In an embodiment of the present application, when implementing the above steps 308 to 313, only on the premise that the user wearing the wearable device is as clear as possible about the work tasks after entering the smart agricultural greenhouse, is the wearable device allowed to access the Internet of Things management platform corresponding to the smart agricultural greenhouse to obtain the work guidance information of the work tasks, so as to improve the integrity and correctness of the execution of the work tasks.
[0110] For example, when the task type of the operation task is deep plowing and soil breaking (in this case, the operation task is to perform deep plowing and soil breaking operations on the soil in certain areas to be planted in the smart agricultural greenhouse), the Internet of Things management platform responds to the operation task guidance information acquisition request and matches the operation task with the task type issued according to the unique device ID. The operation guidance information may include a specified deep plowing and soil breaking thickness (such as 50 cm), a setting method for setting the specified deep plowing and soil breaking depth (such as 50 cm) on the deep plowing machine, and a rear door for the user to open the cockpit door of the deep plowing machine. key segment; wherein, the Internet of Things management platform can divide the preset complete opening key corresponding to the cockpit door of the deep tillage machine according to the actual playing time of the target audio file when the wearable device receives the first interactive information, and obtain the front key segment and the back key segment; wherein, the character length of the front key segment is directly proportional to the actual playing time of the target audio file when the wearable device receives the first interactive information, that is, the longer the actual playing time of the target audio file when the wearable device receives the first interactive information, the longer the character length of the front key segment. , accordingly, the character length of the rear key segment is shorter; and, the Internet of Things management platform sends the front key segment to the gate control device of the deep tillage machine for storage, and uses the specified deep tillage thickness (such as 50 cm), the setting method of setting the specified deep tillage depth (such as 50 cm) on the deep tillage machine, and the rear key segment as the operation guidance information of the operation task matching the task type and sends it to the wearable device according to the unique device ID, so that the user can input the rear key segment to the gate control device of the deep tillage machine, and the gate control device of the deep tillage machine The front key segment and the rear key segment are spliced to form a verification key, and the verification key is checked to see if it is the same as the preset complete opening key pre-stored in the door control device. If they are the same, the cockpit door of the deep plowing machine is controlled to open so that the user can enter the cockpit of the deep plowing machine, and the specified deep plowing thickness (such as 50 cm) is set according to the setting method of setting the specified deep plowing depth (such as 50 cm) on the deep plowing machine, so that the deep plowing machine performs deep plowing operations according to the specified deep plowing thickness (such as 50 cm) under the control of the user.
[0111] In an embodiment of the present application, when the wearable device receives the first interactive information, the longer the actual playback time of the target audio file is, the longer the character length of the front key segment is, and correspondingly the character length of the rear key segment is shorter. The shorter the character length of the rear key segment, the higher the efficiency of the user in inputting the rear key segment into the door control device of the deep plowing machine, thereby quickly controlling the opening of the cockpit door of the deep plowing machine, which helps to improve the efficiency of the deep plowing machine in deep plowing operations according to the specified deep plowing thickness (such as 50 cm) under the control of the user.
[0112] In some optional implementations, the user may input the rear key segment into the gate control device of the deep tillage machine in the following manner:
[0113] The Internet of Things management platform sends the connection verification string randomly assigned by the Internet of Things management platform to the door control device of the deep tillage scarifier when the door control device of the deep tillage scarifier was last wirelessly connected to the Internet of Things management platform to the wearable device;
[0114] The wearable device receives the connection verification string and broadcasts a wireless connection request including the connection verification string, a unique identity ID of the wearable device, and an instant location of the wearable device;
[0115] The gate control device of the deep tillage scarifier receives the wireless connection request, and upon recognizing that the gate control device of the deep tillage scarifier has stored the connection verification string included in the wireless connection request, determines a target distance, and determines whether the distance value between the instantaneous position of the wearable device and the instantaneous position of the deep tillage scarifier is less than or equal to the target distance, and if so, establishes a wireless connection with the wearable device;
[0116] The wearable device automatically inputs the rear key segment to the gate control device of the deep tillage machine through the wireless connection.
[0117] The gate control device of the deep tillage scarifier determines the target distance when recognizing that the gate control device of the deep tillage scarifier has stored the connection verification string included in the wireless connection request, including:
[0118] When the gate control device of the deep tillage scarifier identifies that the gate control device of the deep tillage scarifier has stored the connection verification string included in the wireless connection request, the gate control device of the deep tillage scarifier determines whether the number of historical connections between the wearable device and the gate control device of the deep tillage scarifier in a set historical period exceeds a specified number of connections based on the unique identity ID of the wearable device; if not, the preset distance is used as the target distance; if exceeded, the difference between the number of historical connections and the specified number of connections is calculated;
[0119] The gate control device of the deep tillage scarifier obtains a distance change, which is proportional to the difference in the number of connections; and calculates the sum of the preset distance and the distance change as the target distance.
[0120] Among them, when implementing the above-mentioned embodiment, when the number of historical connections for establishing a wireless connection between the wearable device and the gate control device of the deep plowing machine within a set historical period exceeds the specified number of connections, the probability of judging that the distance value between the instant position of the wearable device and the instant position of the deep plowing machine is less than or equal to the target distance can be increased, thereby improving the success rate of establishing a wireless connection between the wearable device and the gate control device of the deep plowing machine.
[0121] It can be seen that implementation Figure 3 In the Arduino-based smart door control method for a smart agricultural greenhouse shown in the figure, the smart door is unlocked only when the face of a legitimate operator with an operating task is scanned, thereby reducing the occurrence of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0122] See also Figure 4 , Figure 4 This is a flow chart of the fourth embodiment of the smart door control method for smart agricultural greenhouses based on Arduino disclosed in the embodiment of this application. Figure 4 In the smart door control method of the smart agricultural greenhouse based on Arduino, the smart door is provided with an Arduino controller, and the wearable device is worn by a user. Figure 4 As shown, the Arduino-based smart door control method for a smart agricultural greenhouse may include the following steps:
[0123] Among them, steps 401 to 409 are the same as steps 301 to 309 in the previous embodiment and are not repeated here.
[0124] 410. The Arduino controller determines whether the ratio exceeds a specified target threshold; if so, executes steps 411 and 412; if not, terminates the process.
[0125] 411. The Arduino controller reads the recorded number of executions of historical tasks matching the task type that have been performed by the legal operator in the smart agricultural greenhouse.
[0126] The historical task and the operation task are the same task.
[0127] 412. The Arduino controller determines whether the execution times exceed the specified times; if not, execute step 413; if exceeded, end this process.
[0128] 413. The Arduino controller broadcasts second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and access verification information of the Internet of Things management platform.
[0129] 414. The wearable device receives the second interaction information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, execute step 415; if they are not the same, end this process.
[0130] 415. The wearable device accesses the Internet of Things management platform corresponding to the smart agricultural greenhouse according to the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform.
[0131] 416. The Arduino controller reports a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the IoT management platform.
[0132] 417. The wearable device obtains the operation guidance information of the operation task that matches the task type and is issued by the Internet of Things management platform in response to the operation task guidance information acquisition request and based on the unique device ID.
[0133] 418. The wearable device outputs the operation guidance information.
[0134] In an embodiment of the present application, the Arduino controller reads the recorded number of executions of historical tasks matching the task type that have been performed by the legal operator in the smart agricultural greenhouse, and when it is determined that the number of executions does not exceed the specified number, the Arduino controller may consider that there is a risk that the user may be unfamiliar with the task. Only then is the wearable device allowed to access the Internet of Things management platform corresponding to the smart agricultural greenhouse and obtain the operation guidance information of the task issued by the Internet of Things management platform. This not only improves the completeness and correctness of the user's operation on the task, but also helps to reduce the number of devices connected to the Internet of Things management platform, thereby reducing the workload of the Internet of Things management platform.
[0135] It can be seen that implementation Figure 4In the Arduino-based smart door control method for a smart agricultural greenhouse shown in the figure, the smart door is unlocked only when the face of a legitimate operator with an operating task is scanned, thereby reducing the occurrence of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0136] See also Figure 5 , Figure 5 This is a schematic diagram of the architecture of an Arduino-based smart door control system for a smart agricultural greenhouse disclosed in an embodiment of the present application. Figure 5 As shown, the intelligent door control system of the smart agricultural greenhouse based on Arduino may include:
[0137] Arduino controller 501 and wearable device 502; wherein, the Arduino controller 501 is set on the smart door, and the wearable device 502 is worn by a user. It is understood that the Arduino controller 501 can be a controller with an Arduino UNO development board. It is understood that the wearable device 502 can include but is not limited to a smart bracelet, a smart watch, a phone watch, a wrist phone or a headset, and is not limited in this embodiment of the application. Among them:
[0138] The Arduino controller 501 is configured to capture a facial image of the user using a camera module when the user approaches the locked smart door outside the smart agricultural greenhouse;
[0139] The Arduino controller 501 is also used to unlock the smart door when it is recognized that the user is a legal operator preset by the Arduino controller 501 and allowed to enter the smart agricultural greenhouse based on the user's facial image, and if it is recognized that the wearable device 502 is playing a specified audio file; wherein the specified audio file is used to describe the work tasks of the legal operator after entering the smart agricultural greenhouse.
[0140] In some optional embodiments, when the Arduino controller 501 recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller 501 and allowed to enter the smart agricultural greenhouse, and if it is recognized that the wearable device 502 is playing a specified audio file, the method of unlocking the smart door is specifically as follows:
[0141] When the Arduino controller 501 recognizes the user as a legal operator preset by the Arduino controller 501 and allowed to enter the smart agricultural greenhouse based on the user's facial image, it determines the unique device ID corresponding to the preset legal operator;
[0142] The Arduino controller 501 broadcasts first interaction information including the unique device ID, where the first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device;
[0143] The wearable device 502 receives the first interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device 502; if they are the same, the wearable device 502 is determined to be the target device to which the unique device ID belongs, and in response to the first interactive information, broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device 502;
[0144] The Arduino controller 501 receives the first response information and identifies whether the unique audio ID of the target audio file being played by the wearable device 502 is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, it is determined that the target audio file being played by the wearable device 502 is the specified audio file, and the smart door is unlocked.
[0145] In some optional embodiments, Figure 5 The Arduino-based smart door control system for the smart agricultural greenhouse shown also includes an Internet of Things management platform 503 corresponding to the smart agricultural greenhouse, wherein:
[0146] The wearable device 502 is further configured to access the Internet of Things management platform 503 corresponding to the smart agricultural greenhouse after the Arduino controller 501 unlocks the smart door;
[0147] The Arduino controller 501 is further configured to report a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the Internet of Things management platform 503;
[0148] The wearable device 502 is further configured to obtain the operation instruction information of the operation task matched with the task type issued by the Internet of Things management platform 503 in response to the operation task instruction information acquisition request and according to the unique device ID;
[0149] The wearable device 502 is further configured to output the operation guidance information.
[0150] In some other optional embodiments, Figure 5 In the Arduino-based smart door control system for smart agricultural greenhouses shown in FIG, the first response information also includes the actual playback duration of the target audio file when the wearable device 502 receives the first interactive information. Then:
[0151] The Arduino controller 501 is further configured to, after unlocking the smart door, determine a time point at which the smart door is unlocked, and estimate an estimated playback time length of the target audio file played by the wearable device 502 based on the actual playback time length of the target audio file and the time point at which the smart door is unlocked;
[0152] The Arduino controller 501 is further configured to calculate a ratio of the estimated playback duration of the target audio file to the total playback duration of the designated audio file;
[0153] The Arduino controller 501 is further configured to determine whether the ratio exceeds a specified target threshold; if so, broadcast a second interactive message including the unique device ID, the unique identifier of the IoT management platform 503 corresponding to the smart agricultural greenhouse, and access verification information of the IoT management platform 503;
[0154] The wearable device 502 is connected to the Internet of Things management platform 503 corresponding to the smart agricultural greenhouse in the following manner:
[0155] The wearable device 502 receives the second interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device 502; if they are the same, it accesses the Internet of Things management platform 503 corresponding to the smart agricultural greenhouse based on the unique identifier of the Internet of Things management platform 503 corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform 503.
[0156] In some other optional embodiments, Figure 5 In the smart door control system of the smart agricultural greenhouse based on Arduino:
[0157] The Arduino controller 501 is further configured to read the number of executions of historical tasks matching the task type that have been recorded by the legal operator in the smart agricultural greenhouse after determining that the ratio exceeds a specified target threshold;
[0158] The Arduino controller 501 is also used to determine whether the execution times exceed the specified times; if not, execute the step of broadcasting the second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform 503 corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform 503.
[0159] For example, when the task type of the operation task is deep plowing and soil breaking (in this case, the operation task is to perform deep plowing and soil breaking operations on the soil in certain areas to be planted in the smart agricultural greenhouse), the Internet of Things management platform 503 responds to the operation task guidance information acquisition request and matches the operation task with the task type issued according to the unique device ID. The operation guidance information may include a specified deep plowing and soil breaking thickness (such as 50 cm), a setting method for setting the specified deep plowing and soil breaking depth (such as 50 cm) on the deep plowing machine, and a rear seal for the user to open the cockpit door of the deep plowing machine. key segment; wherein, the Internet of Things management platform 503 can divide the preset complete opening key corresponding to the cockpit door of the deep tillage machine according to the actual playing time of the target audio file when the wearable device 502 receives the first interactive information, and obtain the front key segment and the back key segment; wherein, the character length of the front key segment is directly proportional to the actual playing time of the target audio file when the wearable device receives the first interactive information, that is, the longer the actual playing time of the target audio file when the wearable device receives the first interactive information, the longer the character length of the front key segment. The longer the character length of the rear key segment is, the shorter the character length of the rear key segment will be; and the Internet of Things management platform 503 sends the front key segment to the gate control device of the deep tillage tiller for storage, and uses the specified deep tillage thickness (such as 50 cm), the setting method of setting the specified deep tillage depth (such as 50 cm) on the deep tillage tiller, and the rear key segment as the operation guidance information of the operation task matching the task type and sends it to the wearable device 502 according to the unique device ID, so that the user can input the rear key segment to the gate control device of the deep tillage tiller, and the deep tillage tiller The gate control device splices the front key segment and the rear key segment to form a verification key, and verifies whether the verification key is the same as the preset complete opening key pre-stored in the gate control device. If they are the same, the cockpit door of the deep plowing machine is controlled to open so that the user can enter the cockpit of the deep plowing machine, and the specified deep plowing thickness (such as 50 cm) is set according to the setting method of setting the specified deep plowing depth (such as 50 cm) on the deep plowing machine, so that the deep plowing machine performs deep plowing operations according to the specified deep plowing thickness (such as 50 cm) under the control of the user.
[0160] In an embodiment of the present application, when the wearable device 502 receives the first interactive information, the longer the actual playback time of the target audio file is, the longer the character length of the front key segment is, and correspondingly the character length of the rear key segment is shorter. The shorter the character length of the rear key segment, the higher the efficiency of the user in inputting the rear key segment into the door control device of the deep plowing machine, thereby quickly controlling the opening of the cockpit door of the deep plowing machine, which helps to improve the efficiency of the deep plowing machine in deep plowing operations according to the specified deep plowing thickness (such as 50 cm) under the control of the user.
[0161] In some optional implementations, the user may input the rear key segment into the gate control device of the deep tillage machine in the following manner:
[0162] The Internet of Things management platform 503 sends the connection verification string randomly assigned by the Internet of Things management platform 503 to the door control device of the deep tillage scarifier when the door control device of the deep tillage scarifier was last wirelessly connected to the Internet of Things management platform 503 to the wearable device 502;
[0163] The wearable device 502 receives the connection verification string and broadcasts a wireless connection request including the connection verification string, the unique identity ID of the wearable device 502 and the current location of the wearable device 502;
[0164] The gate control device of the deep tillage scarifier receives the wireless connection request, and upon recognizing that the gate control device of the deep tillage scarifier has stored the connection verification string included in the wireless connection request, determines a target distance, and determines whether the distance value between the instantaneous position of the wearable device 502 and the instantaneous position of the deep tillage scarifier is less than or equal to the target distance. If so, establishes a wireless connection with the wearable device 502;
[0165] The wearable device 502 automatically inputs the rear key segment to the gate control device of the deep tillage machine through the wireless connection.
[0166] The gate control device of the deep tillage scarifier determines the target distance when recognizing that the gate control device of the deep tillage scarifier has stored the connection verification string included in the wireless connection request, including:
[0167] When the gate control device of the deep tillage scarifier identifies that the gate control device of the deep tillage scarifier has stored the connection verification string included in the wireless connection request, the gate control device of the deep tillage scarifier determines whether the number of historical connections between the wearable device 502 and the gate control device of the deep tillage scarifier in a set historical period exceeds the specified number of connections according to the unique identity ID of the wearable device 502; if not, the preset distance is used as the target distance; if exceeded, the difference between the number of historical connections and the specified number of connections is calculated;
[0168] The gate control device of the deep tillage scarifier obtains a distance change, which is proportional to the difference in the number of connections; and calculates the sum of the preset distance and the distance change as the target distance.
[0169] Among them, when implementing the above-mentioned embodiment, when the number of historical connections for establishing a wireless connection between the wearable device 502 and the gate control device of the deep plowing machine within a set historical period exceeds the specified number of connections, the probability of judging that the distance value between the instant position of the wearable device and the instant position of the deep plowing machine is less than or equal to the target distance can be increased, thereby improving the success rate of establishing a wireless connection between the wearable device and the gate control device of the deep plowing machine.
[0170] It can be seen that implementation Figure 5 In the Arduino-based smart door control system for smart agricultural greenhouses shown in the figure, the smart door is unlocked only when the face of a legitimate operator with an assignment is scanned, thus reducing the occurrence of pests in the smart agricultural greenhouse caused by unnecessary smart door unlocking.
[0171] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program implements part or all of the steps in the above method embodiments when executed by a processor.
[0172] An embodiment of the present application discloses a computer program product, wherein when the computer program product is run on a computer, the computer is caused to execute part or all of the steps in the above method embodiments.
[0173] An embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the above-mentioned computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.
[0174] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electronically erasable rewritable read-only memory (EEPROM), read-only compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0175] The above is a detailed introduction to the Arduino-based smart door control method and system for smart agricultural greenhouses disclosed in the embodiments of this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core idea; at the same time, for general technical personnel in this field, there will be changes in the specific implementation methods and application scope based on the ideas of this application. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A smart door control method for a smart agricultural greenhouse based on Arduino, characterized in that: The smart door is provided with an Arduino controller, and the wearable device is worn by a user. The method includes: The Arduino controller captures a facial image of the user using a camera module when the user approaches the locked smart door outside the smart agricultural greenhouse; When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and is allowed to enter the smart agricultural greenhouse, it determines a unique device ID corresponding to the preset legal operator; The Arduino controller broadcasts a first interaction message including the unique device ID, and the wearable device to which the unique device ID belongs broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device in response to the first interaction message; The Arduino controller identifies whether the unique audio ID in the first response information is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, determines that the target audio file is the specified audio file, and unlocks the smart door; The designated audio file is used to describe the work tasks of the legal operator after entering the smart agricultural greenhouse; The first response information also includes the actual playback time of the target audio file when the wearable device receives the first interaction information. The Arduino controller determines the unlocking completion time of the smart door and estimates the estimated playback time of the target audio file played by the wearable device based on the actual playback time and the unlocking completion time. The Arduino controller allows the wearable device to access the Internet of Things management platform corresponding to the smart agricultural greenhouse to obtain the operation guidance information of the operation task only when it determines that the ratio of the estimated playback time to the total playback time of the specified audio file exceeds a specified target threshold; The operation guidance information includes a specified deep plowing depth, a setting method for setting the specified deep plowing depth on the deep plowing machine, and a rear key segment for the user to open the cockpit door of the deep plowing machine; the Internet of Things management platform divides the preset complete opening key corresponding to the cockpit door of the deep plowing machine into a front key segment and a rear key segment according to the actual playback time; the character length of the front key segment is directly proportional to the actual playback time; the user inputs the rear key segment to the door control device of the deep plowing machine, and the door control device splices the stored front key segment issued by the Internet of Things management platform and the input rear key segment to form a verification key, and verifies whether the verification key is the same as the preset complete opening key pre-stored in the door control device. If they are the same, the cockpit door of the deep plowing machine is controlled to open.
2. The intelligent door control method for the smart agricultural greenhouse based on Arduino according to claim 1, characterized in that, The method further comprises: The first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device; The wearable device receives the first interaction information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, it is determined that the wearable device is the target device to which the unique device ID belongs.
3. The intelligent door control method of the smart agricultural greenhouse based on Arduino according to claim 2, characterized in that, The Arduino controller allows the wearable device to access the IoT management platform corresponding to the smart agricultural greenhouse to obtain the operation guidance information of the operation task only when it determines that the ratio of the estimated playback time to the total playback time of the specified audio file exceeds a specified target threshold. Specifically, When the Arduino controller determines that the ratio exceeds a specified target threshold, it broadcasts a second interactive message including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and access verification information of the Internet of Things management platform; The wearable device receives the second interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, accessing the Internet of Things management platform corresponding to the smart agricultural greenhouse based on the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform; The Arduino controller reports a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the Internet of Things management platform; The wearable device obtains the operation instruction information of the operation task that matches the task type and is issued by the Internet of Things management platform in response to the operation instruction information acquisition request and according to the unique device ID; The wearable device outputs the operation guidance information; The task type of the operation task is deep plowing, turning over the soil and breaking up compaction.
4. The intelligent door control method of the smart agricultural greenhouse based on Arduino according to claim 3, characterized in that, After the Arduino controller determines that the ratio exceeds a specified target threshold, the method further includes: The Arduino controller reads the recorded number of executions of historical tasks matching the task type that have been performed by the legal operator in the smart agricultural greenhouse; The Arduino controller determines whether the execution times exceed the specified times; if not, executes the step of broadcasting the second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and the access verification information of the Internet of Things management platform.
5. An intelligent door control system for smart agricultural greenhouses based on Arduino, characterized in that: The invention comprises an Arduino controller and a wearable device, wherein the Arduino controller is provided on the smart door and the wearable device is worn by a user, wherein: The Arduino controller is configured to capture a facial image of the user using a camera module when the user approaches the locked smart door outside the smart agricultural greenhouse; When the Arduino controller recognizes, based on the user's facial image, that the user is a legal operator preset by the Arduino controller and is allowed to enter the smart agricultural greenhouse, it determines a unique device ID corresponding to the preset legal operator; The Arduino controller broadcasts a first interaction message including the unique device ID, and the wearable device to which the unique device ID belongs broadcasts a first response message including the unique audio ID of the target audio file being played by the wearable device in response to the first interaction message; The Arduino controller identifies whether the unique audio ID in the first response information is the same as the unique audio ID of the specified audio file associated with the preset unique device ID; if they are the same, determines that the target audio file is the specified audio file, and unlocks the smart door; The designated audio file is used to describe the work tasks of the legal operator after entering the smart agricultural greenhouse; The first response information further includes the actual playing time of the target audio file when the wearable device receives the first interaction information; The Arduino controller is further configured to determine a time point at which unlocking of the smart door is completed, and estimate an estimated playback time of the target audio file played by the wearable device based on the actual playback time and the unlocking completion time point; The Arduino controller allows the wearable device to access the Internet of Things management platform corresponding to the smart agricultural greenhouse to obtain the operation guidance information of the operation task only when it determines that the ratio of the estimated playback time to the total playback time of the specified audio file exceeds a specified target threshold; The operation guidance information includes a specified deep plowing depth, a setting method for setting the specified deep plowing depth on the deep plowing machine, and a rear key segment for the user to open the cockpit door of the deep plowing machine; the Internet of Things management platform divides the preset complete opening key corresponding to the cockpit door of the deep plowing machine into a front key segment and a rear key segment according to the actual playback time; the character length of the front key segment is directly proportional to the actual playback time; the user inputs the rear key segment to the door control device of the deep plowing machine, and the door control device splices the front key segment issued by the Internet of Things management platform and the input rear key segment to form a verification key, and verifies whether the verification key is the same as the preset complete opening key pre-stored in the door control device. If they are the same, the cockpit door of the deep plowing machine is controlled to open.
6. The intelligent door control system for smart agricultural greenhouses based on Arduino according to claim 5 is characterized in that: The first interaction information is used to instruct the target device to which the unique device ID belongs to report the unique audio ID of the target audio file being played by the target device; The wearable device receives the first interaction information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, it is determined that the wearable device is the target device to which the unique device ID belongs.
7. The intelligent door control system of the smart agricultural greenhouse based on Arduino according to claim 6, characterized in that, The Arduino controller allows the wearable device to access the IoT management platform corresponding to the smart agricultural greenhouse to obtain the operation guidance information of the operation task only when it determines that the ratio of the estimated playback time to the total playback time of the specified audio file exceeds a specified target threshold. Specifically, When the Arduino controller determines that the ratio exceeds a specified target threshold, it broadcasts a second interactive message including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and access verification information of the Internet of Things management platform; The wearable device receives the second interactive information and identifies whether the unique device ID is the same as the unique identity ID of the wearable device; if they are the same, accessing the Internet of Things management platform corresponding to the smart agricultural greenhouse based on the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse and the access verification information of the Internet of Things management platform; The Arduino controller reports a request for obtaining operation instruction information including the task type of the operation task and the unique device ID to the Internet of Things management platform; The wearable device obtains the operation instruction information of the operation task that matches the task type and is issued by the Internet of Things management platform in response to the operation instruction information acquisition request and according to the unique device ID; The wearable device outputs the operation guidance information; The task type of the operation task is deep plowing, turning over the soil and breaking up compaction.
8. The intelligent door control system for smart agricultural greenhouses based on Arduino according to claim 7, characterized in that, The Arduino controller is further configured to read the number of executions of historical tasks matching the task type that have been recorded by the legal operator in the smart agricultural greenhouse after determining that the ratio exceeds a specified target threshold; The Arduino controller is further used to determine whether the execution times exceed the specified times; if not, execute the step of broadcasting the second interactive information including the unique device ID, the unique identifier of the Internet of Things management platform corresponding to the smart agricultural greenhouse, and the access verification information of the Internet of Things management platform.
Citation Information
Patent Citations
Method used for providing prompt message before operation and system
CN104915752A
Data processing method, access control server and access control system
CN106296943A
Intelligent monitoring and management method for in-out personnel of unattended substation
CN111833502A
Door lock management method and device, intelligent operation recorder, medium and system
CN114419769A