Internet of Things equipment control method and device, storage medium and electronic equipment

By splitting the device control information into the actions to be executed and the operating parameter conditions, the server only reads the operating parameter conditions for verification, solving the problem of delayed response of IoT devices and improving the response speed.

CN119071333APending Publication Date: 2024-12-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310643876.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-01
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

As the number of IoT devices increases, it is difficult for servers to respond to control rules in a timely manner, resulting in the problem of delayed response of IoT devices.

Method used

By splitting the device control information into first data and second data, storing the actions to be executed and the operating parameter conditions respectively, the server only reads the second data for verification, responds quickly and sends control instructions.

Benefits of technology

It improves the server's verification speed of operating parameter conditions, reduces the reading time of device control information, and improves the response speed of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071333A_ABST
    Figure CN119071333A_ABST
Patent Text Reader

Abstract

The invention provides an Internet of Things equipment control method and device, a storage medium and electronic equipment, and the method comprises the steps: receiving detection data reported by Internet of Things equipment; verifying at least one piece of equipment control information based on the detection data; and for each piece of equipment control information, in response to a verification result of successful verification of second data in the equipment control information, sending a control instruction for executing the to-be-executed action to the to-be-controlled Internet of Things equipment according to the first data, and through the method, the response speed of the Internet of Things equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The technical solution disclosed herein relates to the field of intelligent control technology, and in particular to a method, device, storage medium and electronic device for controlling an Internet of Things device. Background Art

[0002] With the development of IoT technology, more and more IoT devices can be connected to a server for coordinated actions. For example, in a smart home scenario, when the user sets a control rule that the light turns on automatically after the door is opened, the server can control another IoT device to turn on the light after one of the IoT devices detects that the user has opened the door.

[0003] However, as the number of IoT devices connected to the server increases, the number of control rules for these IoT devices also increases. This can easily lead to the server being unable to respond to each control rule in a timely manner, leading to delayed response problems for IoT devices. Summary of the invention

[0004] In view of this, the present disclosure provides an Internet of Things device control method, device, storage medium and electronic device to solve the problem of delayed response of Internet of Things devices.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for controlling an Internet of Things device is provided, the method comprising:

[0006] Receive detection data reported by IoT devices;

[0007] Verify at least one device control information based on the detection data; each device control information includes: first data and second data stored separately, the first data is used to represent the action to be executed set for the IoT device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met for executing the action to be executed;

[0008] For each device control information, in response to a verification result that the second data in the device control information is successfully verified, a control instruction for executing the action to be executed is sent to the Internet of Things device to be controlled according to the first data.

[0009] According to a second aspect of an embodiment of the present disclosure, a method for controlling an Internet of Things device is provided, the method comprising:

[0010] Receive a control instruction for executing an action to be executed sent by a server; the control instruction is generated by the server according to the first data in the device control information when the second data in the device control information is successfully verified based on the detection data; the first data and the second data are stored separately; the detection data is reported to the server by the IoT device, the first data is used to indicate the action to be executed set for the IoT device to be controlled, and the second data is used to indicate the operating parameter conditions that need to be met for executing the action to be executed;

[0011] The to-be-performed action is executed based on the control instruction.

[0012] According to a third aspect of an embodiment of the present disclosure, there is provided an Internet of Things device control system, the system comprising:

[0013] IoT devices, used to report detection data to the server;

[0014] The server is configured to verify at least one device control information based on the received detection data; for each device control information, in response to a verification result that the second data in the device control information is successfully verified, a control instruction for executing the to-be-executed action is sent to the IoT device to be controlled according to the first data in the device control information; each device control information includes: first data and second data stored separately, the first data is used to represent the to-be-executed action set for the IoT device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met for executing the to-be-executed action;

[0015] The IoT device to be controlled is used to receive the control instruction sent by the server for executing the action to be executed, and execute the action to be executed based on the control instruction.

[0016] According to a fourth aspect of an embodiment of the present disclosure, there is provided an Internet of Things device control device, the device comprising:

[0017] A receiving module, used to receive detection data reported by IoT devices;

[0018] A verification module, configured to verify at least one device control information based on the detection data; each device control information includes: first data and second data stored separately, the first data being used to represent an action to be performed set for the IoT device to be controlled, and the second data being used to represent an operating parameter condition to be satisfied for performing the action to be performed;

[0019] A sending module is used to send, for each device control information, a control instruction for executing the action to be executed to the IoT device to be controlled according to the first data in response to a successful verification result of the second data in the device control information.

[0020] According to a fifth aspect of an embodiment of the present disclosure, there is provided an Internet of Things device control device, the device comprising:

[0021] An instruction receiving module, used for receiving a control instruction for executing an action to be executed sent by a server; the control instruction is generated by the server according to the first data in the device control information when the second data in the device control information is successfully verified based on the detection data; the first data and the second data are stored separately; the detection data is reported to the server by the IoT device, the first data is used to indicate the action to be executed set for the IoT device to be controlled, and the second data is used to indicate the operating parameter conditions that need to be met for executing the action to be executed;

[0022] An execution module is used to execute the action to be executed based on the control instruction.

[0023] According to a sixth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0024] processor;

[0025] a memory for storing processor-executable instructions;

[0026] Among them, the processor is configured to implement the steps of the Internet of Things device control method described in any one of the first aspect or the second aspect by running the executable instructions.

[0027] According to a seventh aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the Internet of Things device control method described in any one of the first aspect or the second aspect are implemented.

[0028] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0029] The device control information generally includes first data for setting an action to be performed for the IoT device to be controlled, and second data for setting an operating parameter condition to be satisfied for performing the action to be performed. Therefore, the device control information can be split into the first data and the second data for separate storage.

[0030] In this way, after the server receives the detection data reported by the IoT device, since the detection data is only related to the operating parameter conditions in the device control information, when the server verifies at least one device control information based on the detection data, since it is verifying the second data, it can only read the second data without having to read all the device control information, which helps to improve the reading speed, thereby helping to quickly verify whether the operating parameter conditions in the second data are met and promptly send control instructions for executing the action to be executed to the IoT device to be controlled.

[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0033] Figure 1 is a flow chart of a method for controlling an Internet of Things device according to an exemplary embodiment of the present disclosure;

[0034] Figure 2 is an application scenario diagram of an Internet of Things device control method according to an exemplary embodiment of the present disclosure;

[0035] Figure 3 is a flow chart of another method for controlling an IoT device according to an exemplary embodiment of the present disclosure;

[0036] Figure 4 is an application scenario diagram of another method for controlling an Internet of Things device according to an exemplary embodiment of the present disclosure;

[0037] Figure 5 is a structural schematic diagram of an Internet of Things device control device according to an exemplary embodiment of the present disclosure;

[0038] Figure 6 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0040] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0041] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0042] The Internet of Things technology enables the various IoT devices connected to the server to cooperate and work together. As more and more IoT devices are connected to the server, more intelligent control actions can be achieved.

[0043] For example, in a smart home IoT control scenario, if the server is only connected to lighting IoT devices and door lock IoT devices, then only control requirements based on lighting IoT devices and door lock IoT devices can be implemented, such as the following device control information: when it is detected that the door lock IoT device is turned on, control the lighting IoT device to turn on the light.

[0044] Generally speaking, device control information includes but is not limited to the following:

[0045] The pending actions that the IoT device is required to perform (such as turning on the lights), the operating parameter conditions that must be met to perform the pending actions (such as opening the door lock), the device model, device interface, data type, data format, etc. of the IoT device.

[0046] Therefore, the device control information contains a lot of information, and when the operating parameter conditions need to be verified, the complete device control information is often required to be read, which is a waste of time for verifying the operating parameter conditions.

[0047] Moreover, in one of the IoT control scenarios, when you want to achieve more intelligent home IoT control, you often need to connect the server to more IoT devices, such as air conditioners, televisions, audio equipment, curtain control equipment, etc. At this time, the device control information can be set to: if the light in the house is very dark, the door lock is open, and the curtains are already open, then turn on the lights in the living room. It can be found that the action to be executed in the above device control information is to turn on the lights in the living room, and the conditions that the action to be executed must meet include: the light in the house is very dark, the door lock is open, and the curtains are already open.

[0048] As a result, the device control information will contain more content, and the server's reading time will need to be further extended, resulting in a slower response time for IoT devices.

[0049] Figure 1 is a flow chart of a method for controlling an IoT device according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method is applied to a server, the server is connected to the IoT device for communication, and the method includes the following steps:

[0050] Step 101, receiving detection data reported by IoT devices.

[0051] The detection data may be reported by any one or more IoT devices that are connected to the server. The detection data may represent environmental data detected by the IoT device (e.g., ambient temperature, ambient humidity, etc.), or data of the IoT device itself (e.g., startup status, fault condition, trigger condition, etc.).

[0052] For example, when the IoT device includes a temperature sensor, a light sensor, and a switch sensor, the detection data may be the temperature detected by the temperature sensor, the light intensity detected by the light sensor, the switch state detected by the switch sensor, and so on.

[0053] Step 102, verify at least one device control information based on the detection data; each of the device control information includes: first data and second data stored separately, the first data is used to represent the action to be executed set for the IoT device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met to execute the action to be executed.

[0054] The operating parameter conditions of the second data can be set by the user, automatically set by the server according to the user's situation, or the initial setting conditions of the IoT device. The operating parameter conditions are set around the detection data, and the parameter requirements that the detection data must meet are set in the operating parameter conditions (for example, the light intensity is less than the first threshold, the door lock state is open, etc.).

[0055] Therefore, after the detection data is obtained, at least one device control information can be verified based on the detection data, especially the second data in the device control information, to verify whether the current detection data meets the operating parameter conditions in the second data. If satisfied, a verification result indicating successful verification of the second data is obtained; if not satisfied, a verification result indicating failed verification of the second data is obtained.

[0056] Step 103: For each device control information, in response to a successful verification result of the second data in the device control information, a control instruction for executing the action to be executed is sent to the IoT device to be controlled according to the first data.

[0057] After obtaining a successful verification result for the second data, it is considered that the IoT device to be controlled can now execute the action to be executed required in the first data. Therefore, the server can generate a control instruction for executing the action to be executed, and send the control instruction to the IoT device to be controlled, so that the IoT device executes the corresponding execution action after receiving the control instruction.

[0058] The IoT device to be controlled may be any one or more IoT devices among several IoT devices connected to the server in communication. Each IoT device connected to the server in communication may only be used as an IoT device for reporting detection data, or may be controlled by the server as an IoT device to be controlled while reporting detection data to the server.

[0059] The following uses the home IoT scenario as an example for illustration:

[0060] Assume that the server is connected to a door lock IoT device and a light IoT device; the device control information is: when it is detected that the door lock of the door lock IoT device is opened, the light IoT device is controlled to turn on the light.

[0061] Then the first data in the device control information is: the IoT device to be controlled is a lighting IoT device, and the action to be executed is to turn on the light; the second data in the device control information is: the door lock of the door lock IoT device is turned on. The server stores the first data and the second data corresponding to the device control information respectively.

[0062] When the detection data is received, the second data in the server is directly read, and then the second data is verified based on the detection data to determine whether the current detection data indicates that the door lock of the door lock IoT device is open; if the detection data indicates that the door lock of the door lock IoT device is open, a verification result of successful verification of the second data is obtained; conversely, if the detection data indicates that the door lock of the door lock IoT device is closed, a verification result of failed verification of the second data is obtained.

[0063] After obtaining the verification result of the successful verification of the second data, it is considered that the door lock of the current door lock IoT device is opened, and the to-be-executed action of turning on the light set for the lighting IoT device set by the first data in the device control information can be executed.

[0064] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0065] The device control information generally includes first data for setting an action to be performed for the IoT device to be controlled, and second data for setting an operating parameter condition to be satisfied for performing the action to be performed. Therefore, the device control information can be split into the first data and the second data for separate storage.

[0066] In this way, after the server receives the detection data reported by the IoT device, since the detection data is only related to the operating parameter conditions in the device control information, when the server verifies at least one device control information based on the detection data, since it is verifying the second data, it can only read the second data without having to read all the device control information, which helps to improve the reading speed, thereby helping to quickly verify whether the operating parameter conditions in the second data are met and promptly send control instructions for executing the action to be executed to the IoT device to be controlled.

[0067] Figure 2 is an application scenario diagram of an IoT device control method according to an exemplary embodiment of the present disclosure, such as Figure 2 As shown, it is assumed that the device control information is generated by the user on the client and then sent to the server. The server receives and stores the device control information, then receives the detection data reported by the IoT device, and verifies the device control information based on the detection data. When the verification is successful, the control instruction is sent to the IoT device to be controlled, so that the IoT device to be controlled executes the instruction to be executed.

[0068] In a feasible implementation, when the above method is applied to a server, the server includes a data matching module for receiving the detection data;

[0069] When executing step 101 to receive the detection data reported by the IoT device, the following steps are included:

[0070] Determine a parameter type corresponding to the operating parameter condition in the second data; send the parameter type to a data matching module; and receive detection data matching the parameter type based on the data matching module.

[0071] The parameter type is used to distinguish different detection data. The parameter type can be divided according to the different IoT devices or the different information properties represented by the detection data. For example, the parameter type can include but is not limited to:

[0072] Ambient temperature, equipment temperature, ambient humidity, light intensity, equipment startup status, equipment failure status, etc.

[0073] Each operating parameter condition is set for one of the parameter types. For example, when the parameter type is ambient temperature, the operating parameter condition can be set as: the ambient temperature is less than or equal to the second threshold. Therefore, according to the operating parameter condition in the second data, the parameter type corresponding to the operating parameter condition can be obtained.

[0074] The parameter types corresponding to the operating parameter conditions set in the second data are limited, but the parameter types of the detection data reported by the IoT devices connected to the server are diverse, so the detection data reported by the IoT devices may not conform to the parameter types set in the second data. Therefore, it is necessary to send the parameter types obtained by sorting the second data to the data matching module, so that the data matching module can obtain the detection data that matches the parameter types of the operating parameter conditions in the second data.

[0075] The data matching module may only receive detection data that matches the parameter type. Alternatively, all detection data sent by the IoT device may be received first, and then the detection data that matches the parameter type may be screened out from all the detection data. At this time, the data matching module includes a first submodule and a second submodule, the first submodule is used to receive all detection data sent by the IoT device (exemplarily, the first submodule is used to run a pre-set device receiving service); the second submodule is used to screen out detection data that matches the parameter type from all the detection data.

[0076] Through the above method, valid detection data can be obtained before verifying the second data in at least one device control information, avoiding the use of invalid detection data to perform invalid verification on the second data, which helps to improve the response speed.

[0077] In a feasible implementation scheme, the detection data includes: real-time detection data and state detection data; the real-time detection data is data sent after the IoT device is triggered, and the state detection data is data periodically reported by the IoT device. The parameter type includes a first parameter type corresponding to the real-time detection data and a second parameter type corresponding to the state detection data.

[0078] Real-time detection data is data generated by IoT devices after the operating state changes due to being triggered by the user or its own running program. For example, when the IoT device is a door lock device, when the user opens the door, the door lock device changes from the closed state to the open state. At this time, the door lock device is considered to be triggered, and the open state of the door lock device is sent to the server as real-time detection data. For another example, when the IoT device is a lighting device, when the user presses the start switch of the lighting device, the lighting device changes from the closed state to the started state. At this time, the lighting device is considered to be triggered, and the open state of the lighting device is sent to the server as real-time detection data.

[0079] The status detection data enables the IoT device to periodically send its own operating data or detection data detected by itself to the server during the communication connection with the server, in order to let the server know its own operating status, operating conditions and other information. For example, when the IoT device is a camera, the status detection data can be image information sent by the camera to the server according to a preset period. Or when the IoT device is a light intensity detection device, the status detection data can be light intensity information (such as light intensity value) sent by the light intensity detection device to the server according to a preset period.

[0080] The difference between status detection data and real-time detection data is that real-time detection data is sent to the server in real time after the IoT device is triggered. Status detection data may be sent after the IoT device is triggered, or it may be sent a period of time after the IoT device is triggered. It is not necessarily real-time data. The real-time nature of status detection data depends on the value of the preset period.

[0081] Since the parameter type is obtained by sorting out the operating parameter conditions in the second data, and the operating parameter conditions set the parameter requirements that the detection data must meet, there is also a corresponding relationship between the parameter type and the detection data.

[0082] Since the detection data includes real-time detection data and state detection data, the parameter type is also correspondingly divided into a first parameter type corresponding to the real-time detection data and a second parameter type corresponding to the state detection data.

[0083] For example, the operating parameter conditions set in the second data include:

[0084] Operating parameter condition 1: Door lock is open.

[0085] Operation parameter condition two: the light intensity value is less than or equal to the third threshold value.

[0086] Among them, operating parameter condition one needs to be verified based on the detection data of the "door lock switch status", and operating parameter condition two needs to be verified based on the detection data of the "light intensity value".

[0087] At this time, the parameter type corresponding to the detection data of the operating parameter condition 1 and the "door lock switch status" is "door lock"; the parameter type corresponding to the detection data of the operating parameter condition 2 and the "light intensity value" is "light intensity".

[0088] Since the "door lock switch status" is a status that is generated after the door lock is triggered (for example, the user opens the door, causing the door lock status to change from closed to open), the detection data of the "door lock switch status" is real-time detection data, and the parameter type "door lock" is the first parameter type; and the "light intensity value" is not generated after being triggered, it may be obtained by the IoT device detecting the current ambient light intensity according to a certain period (for example, detecting once every 5 minutes, obtaining the current light intensity value and sending it to the server, then within 5 minutes from the IoT device sending it to the server, the light intensity value remains unchanged), so the detection data of the "light intensity value" is status detection data, and the parameter type "light intensity" is the second parameter type.

[0089] The receiving the detection data matching the parameter type based on the data matching module includes:

[0090] The data matching module receives the real-time detection data matching the first parameter type. After receiving each real-time detection data matching the first parameter type, the data matching module receives the state detection data matching the second parameter type.

[0091] Real-time detection data has a higher priority than status detection data. Therefore, you need to receive real-time detection data before receiving status detection data. This is because:

[0092] Real-time detection data is generated after the IoT device is triggered, while status detection data is reported periodically by the IoT device. Therefore, if the status detection data is received first and the second data is verified based on the received status detection data, the second data verification based on the current status detection data may be successful. However, since the IoT device is not currently triggered and it is unknown when it will be triggered, after the second data verification based on the current status detection data is successful, it is still necessary to wait for the reception of real-time detection data. This will result in that when the real-time detection data is sent to the server, the status detection data periodically sent by the IoT device may have changed, making the previous verification result of the second data invalid.

[0093] For example, the device control information is: after determining that the door lock is opened and the light intensity value is less than or equal to the third threshold, turn on the lighting device.

[0094] Then, the first data is: turn on the lighting device. The second data is: the door lock is open and the light intensity value is less than or equal to the third threshold. The operating parameter conditions set in the second data include:

[0095] Operating parameter condition 1: Door lock is open.

[0096] Operation parameter condition two: the light intensity value is less than or equal to the third threshold value.

[0097] Based on the above analysis, the parameter type corresponding to the operating parameter condition one is the first parameter type, and the detection data verifying the operating parameter condition one is real-time detection data; the parameter type corresponding to the operating parameter condition two is the second parameter type, and the detection data verifying the operating parameter condition two is state detection data.

[0098] Assume that the light intensity IoT device reports the light intensity to the server at the 0th minute, the 10th minute, and the 20th minute respectively (the corresponding light intensity values ​​are 10, 50, and 40 respectively), and the door lock in the door lock IoT device is triggered to open by the user at the 15th minute (that is, the door lock IoT device detects that the door lock is opened at the 15th minute). Then, assuming that the status detection data is received first, and the real-time detection data is received after the status detection data is received, and the third threshold is 20, the following situations may occur:

[0099] Due to the light intensity Internet of Things, the light intensity value reported to the server by the IoT device at the 0th minute is 10. Then, when the light intensity value required by the operating parameter condition 2 in the second data according to the light intensity value (10) reported at the 0th minute is less than or equal to the third threshold value (20), the verification result obtained is a successful verification (10 < the third threshold value). Then, it is only necessary to determine whether the real-time detection data is a successful verification of the second data (verification of operating parameter condition 1).

[0100] At the 15th minute, the real-time detection data of the door lock opening reported by the door lock IoT device is received. At this time, the operating parameter condition 1 in the second data is verified according to the real-time detection data, and the obtained verification result indicates that the operating parameter condition 1 in the second data is successfully verified. At this time, since both operating parameter conditions in the second data are met, the server will send a control instruction to the lighting device to turn on the light. However, at the 15th minute, the light intensity value in the server is actually 50 (which does not meet the requirement of less than or equal to 20 in the operating parameter condition 2), so the server should not send the control instruction to the lighting device at this time (the light should not be controlled to turn on).

[0101] On the contrary, if real-time detection data matching each first parameter type is received first, and then the status detection data is received, the result of verifying the second data based on the real-time detection data and the status detection data is effective, which helps to obtain more accurate verification results and avoid the above problems.

[0102] It should be noted that when the data matching module includes a first submodule and a second submodule, and the second submodule is used to filter out detection data matching the parameter type from all detection data, the second submodule may also include a message engine (such as a publish-subscribe message engine, also known as a pubsub message engine) for obtaining real-time detection data matching the first parameter type, and a state storage device (such as a device shadow, which is a virtual mapping of an IoT device on a server, used to record the device's most recent state and expected state) for obtaining state detection data of the second parameter type.

[0103] Among them, when the second submodule includes a publish-subscribe message engine for obtaining real-time detection data matching the first parameter type, after receiving the device control information, the parameter type corresponding to the second data in the device control information can be sent to the publish-subscribe message engine, and the real-time detection data matching the parameter type in the second data can be subscribed to the publish-subscribe message engine. In this way, only the real-time detection data matching the parameter type of the second data can be received.

[0104] In a feasible implementation scheme, the second data includes: split and stored first condition data and second condition data, the first condition data has a higher priority than the second condition data; the detection data includes: real-time detection data and status detection data; the real-time detection data is the data sent after the IoT device is triggered, and the status detection data is the data periodically reported by the IoT device.

[0105] The second data may include operating parameter conditions, and multiple operating parameter conditions may be split into separate operating parameter conditions for storage, and each operating parameter condition may be used as the first condition data or the second condition data.

[0106] When performing the verification of at least one device control information based on the detection data in step 102, the following steps are included:

[0107] For each of the device control information, the first condition data in the device control information is verified based on the real-time detection data; if it is determined that each of the first condition data is successfully verified, the second condition data is verified based on the status detection data; if it is determined that each of the first condition data and each of the second condition data is successfully verified, it is determined that a verification result of successful verification of the second data in the device control information is obtained.

[0108] The first condition data is set for the real-time detection data, and the second condition data is set for the state detection data, so the priority of setting the first condition data is higher than that of the second condition data.

[0109] Before real-time detection data that can meet the first condition data is received, the verification result of the second condition data based on the status detection data may not always be valid. The verification result may be updated after the status detection data is updated. Therefore, there is no need to check the second condition data before verifying the first condition data.

[0110] Only after each first condition data is successfully verified, it is necessary to verify the second condition data, which can ensure the effectiveness of the second condition data verification and improve the verification efficiency.

[0111] It should be noted that if the server includes a trigger check service for verifying the second data specifically for the real-time detection data, and a status check service for verifying the status detection data.

[0112] Then, the status check service needs to check the second condition data after the trigger check service obtains the result that each first condition data is successfully checked. That is, the trigger check service performs real-time verification on the first condition data after receiving the real-time detection data. After obtaining the real-time detection data corresponding to each first parameter type, if the trigger check service successfully verifies each first condition data based on the real-time detection data, it is considered that the status check service can be executed. At this time, the status check service can continue to verify each second condition data based on the status detection data currently stored in the status storage device to obtain the final verification result.

[0113] In one possible embodiment, Figure 3 is a flow chart of another method for controlling an IoT device according to an exemplary embodiment of the present disclosure, such as Figure 3 As shown, before executing step 101 to receive the detection data reported by the IoT device, the method further includes the following steps:

[0114] Step 301, receiving device control information; splitting the device control information into a plurality of target data; the target data belongs to the first data, or the first condition data in the second data, or the second condition data in the second data.

[0115] One (or more) actions to be executed in the device control information are stored as a first data, and according to the priority of each operating parameter condition in the device control information (set by the user or automatically determined according to the parameter type corresponding to the operating parameter condition), each operating parameter condition is stored separately as the first condition data (or second condition data) in the second data.

[0116] Step 302: for each of the target data, determine a first storage identifier of the target data; the first storage identifier indicates that the target data belongs to the first data, or the first condition data, or the second condition data.

[0117] For example, for one of the device control information (assuming that the unique code corresponding to the device control information is 111), after splitting the device control information into several target data, for one of the target data, when this target data is the first data, the first storage identifier corresponding to the target data can be set to: "action_111", where "action" represents the action to be executed set in the device control information.

[0118] Alternatively, if the target data is first condition data, the first storage identifier corresponding to the target data may be set to "trigger_111", where "trigger" represents an operating parameter condition in the device control information.

[0119] Alternatively, if the target data is second condition data, the first storage identifier corresponding to the target data may be set to "condition_111", where "condition" represents the operating parameter condition in the device control information.

[0120] Step 303: when there is at least one sub-data in the target data, generate a second storage identifier for each sub-data; the sub-data is the action to be executed or the operating parameter condition, and the second storage identifier is used to distinguish different sub-data.

[0121] When the target data is the first data, the sub-data in the target data is the action to be executed. At this time, a second storage identifier is set for each action to be executed (sub-data). For example, when there is one sub-data, the second storage identifier of the sub-data is set to "sort_1". If there is a second sub-data, the second storage identifier of the second sub-data can be set to "sort_2", and so on.

[0122] Similarly, when the target data is the first condition data or the second condition data, the sub-data in the target data is the operating parameter condition. At this time, a second storage identifier is set for each operating parameter condition. The second storage identifier of the first sub-data can be set to "sort_1" and the second storage identifier of the second sub-data can be set to "sort_2".

[0123] Step 304: store each of the sub-data separately; the sub-data carries the first storage identifier, the second storage identifier, and a parameter value corresponding to the sub-data.

[0124] When the target data is the first data, the sub-data is the action to be executed set in the device control information. In this case, the parameter value is used to represent the specific information of the action to be executed, including but not limited to:

[0125] The execution order of the action to be executed in the target data, for example, order: 1, means setting the execution order of the sub-data corresponding to the action to be executed to 1.

[0126] The action type of the action to be executed, for example: type: 1, means setting the action type of the action to be executed to 1 (for example, 1 is sending a notification).

[0127] A custom name for the action to be executed, which is used for display on the client (for example, "Hello").

[0128] Protocol type.

[0129] The specific content of the action to be executed, such as defining the delay time, display content, etc.

[0130] Exemplarily, the storage results are as follows:

[0131] Table 1:

[0132]

[0133] Among them, parameter one, parameter two, and parameter three are only exemplary and can be modified according to needs. For example, parameter one can be modified to: {"order":1,"src":"device","key":"prop.2.1","name":"Left key to open","value_type":4,"protocol_type":2,"extra_json":{"device_name":"Restaurant light","did":"1027137908.s2","model":"zimi.switch.dhkg02"}. Among them, "order": 1 indicates the first operating parameter condition, "src": "device" indicates that the detection data comes from the trigger of the IoT device, "key": "prop.2.1" indicates that the event number of the specific event triggered is "prop.2.1" (one of the pre-defined events, such as door lock opening), "name": "left key open" indicates that the content of the sub-data displayed on the user's client corresponding to the operating parameter condition is "left key open", "value_type": 4 indicates that the value set in the sub-data is 4 (Boolean type), "protocol_type": 2 indicates that the protocol type is set to 2 (one of the pre-defined protocol types), and "extra_json" indicates the content of the extended field, for example, you can set it in the extended field:

[0134] "device_name": "Restaurant Light", which means the device name displayed on the user's client is "Restaurant Light".

[0135] "did": "1027137908.s2", indicating that the unique ID of the device is "1027137908.s2".

[0136] "model": "zimi.switch.dhkg02", indicating that the product model of the device is zimi.switch.dhkg02.

[0137] The target data can also be set as follows: "value_json": true, indicating that when the data in the detection data satisfies true, the running parameter condition verification is successful. "sc_id": 6389, indicating that the condition number set for the current target data is "6389", "from": 1, indicating that the source of the device control information corresponding to this target data is 1 (1 is one of the pre-defined sources).

[0138] Through the above steps 301 to 304, the device control information is stored, and the device control information can be stored in a database, so that when the server performs step 102 to verify at least one device control information based on the detection data, it obtains the device control information in the database (especially the second data) and performs corresponding verification. Alternatively, the device control information can also be directly stored in the server.

[0139] In a feasible implementation manner, the device control information is stored based on cluster storage technology.

[0140] The device control information is stored through cluster storage technology, so when the storage space needs to be increased, it will not affect the original storage structure, which is conducive to expanding the storage space and thus improving the response speed of the server.

[0141] Figure 4 is an application scenario diagram of another IoT device control method according to an exemplary embodiment of the present disclosure, such as Figure 4 As shown, the server specifically includes a data matching module, an interface service (a user receives device control information sent by a client, determines the corresponding parameter type in the device control information, and sends the device control information to a control information storage module), a control information storage module (device control information is stored in the form of a first storage identifier, a second storage identifier, and a parameter value), a trigger check service, a status check service, and an action execution service (for generating control instructions).

[0142] Among them, the data matching module includes: a first submodule and a second submodule; the first submodule is used to receive the detection data reported by the Internet of Things device; the second submodule is used to filter out the detection data matching the parameter type, and the second submodule includes: a message engine and a state storage device.

[0143] It should be noted that the interface service in the figure is an example of sending the parameter type (or the first parameter type) to the message engine, but the parameter type (or the second parameter type) can also be sent to the state storage device synchronously, or the first parameter type can be sent to the message engine and the second parameter type can be sent to the state storage device.

[0144] It should be noted that there is no set execution order between the trigger check service, status check service and action execution service in the figure. However, in fact, for better execution effect, the trigger check service can be set to be executed first, and the status check service can be executed after the trigger check service is executed and verified successfully. After the status check service is executed, the trigger action execution service is executed.

[0145] In a feasible implementation scheme, a method for controlling an IoT device is provided, which is applied to an IoT device to be controlled, wherein the IoT device to be controlled is communicatively connected to a server, and the method comprises:

[0146] Receive a control instruction for executing an action to be executed sent by a server; the control instruction is generated by the server according to the first data in the device control information when the server successfully verifies the second data in the device control information based on the detection data; the first data and the second data are stored separately; the detection data is reported to the server by the Internet of Things device, the first data is used to represent the action to be executed set for the Internet of Things device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met to execute the action to be executed.

[0147] The to-be-performed action is executed based on the control instruction.

[0148] The contents of the above steps have been described in the above embodiments and will not be repeated here.

[0149] In one feasible embodiment, an Internet of Things device control system is provided, the system comprising:

[0150] IoT devices are used to report detection data to the server.

[0151] The server is used to verify at least one device control information based on the received detection data; for each device control information, in response to the verification result of the successful verification of the second data in the device control information, a control instruction for executing the action to be executed is sent to the Internet of Things device to be controlled according to the first data in the device control information; each of the device control information includes: first data and second data stored separately, the first data is used to represent the action to be executed set for the Internet of Things device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met to execute the action to be executed.

[0152] The IoT device to be controlled is used to receive the control instruction sent by the server for executing the action to be executed, and execute the action to be executed based on the control instruction.

[0153] The above contents have been described in the above embodiments and will not be repeated here.

[0154] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.

[0155] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0156] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an embodiment of an Internet of Things device control device and a corresponding terminal.

[0157] In one possible embodiment, Figure 5 is a schematic diagram of a structure of an IoT device control device according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the device is applied to a server, the server is connected to the IoT device for communication, and the device includes:

[0158] The receiving module 501 is used to receive the detection data reported by the IoT device.

[0159] The verification module 502 is used to verify at least one device control information based on the detection data; each of the device control information includes: first data and second data stored separately, the first data is used to represent the action to be executed set for the IoT device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met to execute the action to be executed.

[0160] The sending module 503 is used to send a control instruction for executing the action to be executed to the IoT device to be controlled according to the first data for each device control information in response to a successful verification result of the second data in the device control information.

[0161] In a feasible implementation scheme, when the receiving module is used to receive the detection data reported by the IoT device, it is used to:

[0162] Determine a parameter type corresponding to the operating parameter condition in the second data.

[0163] The parameter type is sent to the data matching module.

[0164] The detection data matching the parameter type is received based on the data matching module.

[0165] In a feasible implementation scheme, the detection data includes: real-time detection data and status detection data; the real-time detection data is the data sent after the Internet of Things device is triggered, and the status detection data is the data periodically reported by the Internet of Things device; the parameter type includes a first parameter type corresponding to the real-time detection data, and a second parameter type corresponding to the status detection data.

[0166] When the receiving module is used to receive the detection data matching the parameter type based on the data matching module, the receiving module is used to:

[0167] Receiving real-time detection data matching the first parameter type based on the data matching module;

[0168] After receiving each real-time detection data matching the first parameter type, receiving state detection data matching the second parameter type based on the data matching module.

[0169] In a feasible implementation scheme, the second data includes: split and stored first condition data and second condition data, the first condition data has a higher priority than the second condition data; the detection data includes: real-time detection data and status detection data; the real-time detection data is the data sent after the IoT device is triggered, and the status detection data is the data periodically reported by the IoT device.

[0170] When the verification module is used to verify at least one device control information based on the detection data, it is used to:

[0171] For each piece of the device control information, the first condition data in the device control information is verified based on the real-time detection data.

[0172] If it is determined that each of the first condition data is successfully verified, the second condition data is verified based on the state detection data.

[0173] If it is determined that each of the first condition data and each of the second condition data is successfully verified, it is determined that a verification result indicating that the second data in the device control information is successfully verified is obtained.

[0174] In a feasible embodiment, the device further comprises:

[0175] The control information receiving module is used to receive device control information before receiving the detection data reported by the Internet of Things device.

[0176] A splitting module is used to split the device control information into a plurality of target data; the target data belongs to the first data, or the first condition data in the second data, or the second condition data in the second data.

[0177] The first determination module is used to determine, for each of the target data, a first storage identifier of the target data; the first storage identifier indicates that the target data belongs to the first data, or the first condition data, or the second condition data.

[0178] The second determination module is used to generate a second storage identifier for each sub-data when there is at least one sub-data in the target data; the sub-data is the action to be executed or the operating parameter condition, and the second storage identifier is used to distinguish different sub-data.

[0179] The storage module is used to store each of the sub-data respectively; the sub-data carries the first storage identifier, the second storage identifier, and the parameter value corresponding to the sub-data.

[0180] In a feasible implementation manner, the device control information is stored based on cluster storage technology.

[0181] In a feasible implementation scheme, an IoT device control device is provided, which is applied to an IoT device to be controlled, wherein the IoT device to be controlled is communicatively connected to a server, and the device comprises:

[0182] An instruction receiving module is used to receive a control instruction sent by a server for executing an action to be executed; the control instruction is generated by the server according to the first data in the device control information when the second data in the device control information is successfully verified based on the detection data; the first data and the second data are stored separately; the detection data is reported to the server by the Internet of Things device, the first data is used to represent the action to be executed set for the Internet of Things device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met to execute the action to be executed.

[0183] An execution module is used to execute the action to be executed based on the control instruction.

[0184] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.

[0185] Accordingly, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to implement the steps of any of the above-mentioned Internet of Things device control methods by running the executable instructions.

[0186] Figure 66 is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. For example, the electronic device 600 may be a user device, which may specifically be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, a smart glasses, a smart bracelet, a smart running shoe, etc.

[0187] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0188] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0189] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0190] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0191] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0192] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0193] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0194] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0195] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, 4G LTE, 5G NR or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0196] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0197] In an exemplary embodiment, a non-temporary computer-readable storage medium is also provided, such as a memory 604 including instructions, which, when the instructions in the storage medium are executed by a processor 620 of an electronic device 600, enables the electronic device 600 to execute any of the above-mentioned Internet of Things device control methods.

[0198] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0199] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0200] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling an Internet of Things device, characterized in that: The method comprises: Receive detection data reported by IoT devices; Verify at least one device control information based on the detection data; each device control information includes: first data and second data stored separately, the first data is used to represent the action to be executed set for the IoT device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met for executing the action to be executed; For each device control information, in response to a verification result that the second data in the device control information is successfully verified, a control instruction for executing the action to be executed is sent to the IoT device to be controlled according to the first data.

2. The method according to claim 1, characterized in that The receiving detection data reported by the IoT device includes: Determining a parameter type corresponding to the operating parameter condition in the second data; Sending the parameter type to a data matching module; The detection data matching the parameter type is received based on the data matching module.

3. The method according to claim 2, characterized in that The detection data includes: real-time detection data and status detection data; the real-time detection data is the data sent after the IoT device is triggered, and the status detection data is the data periodically reported by the IoT device; The parameter type includes a first parameter type corresponding to the real-time detection data, and a second parameter type corresponding to the state detection data; The receiving the detection data matching the parameter type based on the data matching module includes: Receiving real-time detection data matching the first parameter type based on the data matching module; After receiving each real-time detection data matching the first parameter type, receiving state detection data matching the second parameter type based on the data matching module.

4. The method according to claim 1, characterized in that The second data includes: split and stored first condition data and second condition data, the first condition data has a higher priority than the second condition data; the detection data includes: real-time detection data and status detection data; the real-time detection data is data sent after the IoT device is triggered, and the status detection data is data periodically reported by the IoT device; The verifying at least one device control information based on the detection data includes: For each piece of the device control information, verify the first condition data in the device control information based on the real-time detection data; If it is determined that each of the first condition data is successfully verified, verifying the second condition data based on the state detection data; If it is determined that each of the first condition data and each of the second condition data is successfully verified, it is determined that a verification result indicating that the second data in the device control information is successfully verified is obtained.

5. The method according to claim 1, characterized in that Before receiving the detection data reported by the IoT device, the method further includes: Receive device control information; Splitting the device control information into a plurality of target data; the target data belongs to the first data, or the first condition data in the second data, or the second condition data in the second data; For each of the target data, determining a first storage identifier of the target data; the first storage identifier indicates that the target data belongs to the first data, or the first condition data, or the second condition data; When there is at least one sub-data in the target data, a second storage identifier is generated for each sub-data; the sub-data is the action to be executed or the operating parameter condition, and the second storage identifier is used to distinguish different sub-data; Each of the sub-data is stored separately; the sub-data carries the first storage identifier, the second storage identifier, and a parameter value corresponding to the sub-data.

6. The method according to claim 1, characterized in that The device control information is stored based on cluster storage technology.

7. A method for controlling an Internet of Things device, characterized in that: The method comprises: Receive a control instruction for executing an action to be executed sent by a server; the control instruction is generated by the server according to the first data in the device control information when the second data in the device control information is successfully verified based on the detection data; the first data and the second data are stored separately; the detection data is reported to the server by the IoT device, the first data is used to indicate the action to be executed set for the IoT device to be controlled, and the second data is used to indicate the operating parameter conditions that need to be met for executing the action to be executed; The to-be-performed action is executed based on the control instruction.

8. An Internet of Things device control system, characterized in that: The system comprises: IoT devices, used to report detection data to the server; The server is configured to verify at least one device control information based on the received detection data; for each device control information, in response to a verification result that the second data in the device control information is successfully verified, a control instruction for executing the to-be-executed action is sent to the IoT device to be controlled according to the first data in the device control information; each device control information includes: first data and second data stored separately, the first data is used to represent the to-be-executed action set for the IoT device to be controlled, and the second data is used to represent the operating parameter conditions that need to be met for executing the to-be-executed action; The IoT device to be controlled is used to receive the control instruction sent by the server for executing the action to be executed, and execute the action to be executed based on the control instruction.

9. An Internet of Things device control device, characterized in that: The device comprises: A receiving module, used to receive detection data reported by IoT devices; A verification module, configured to verify at least one device control information based on the detection data; each device control information comprises: first data and second data stored separately, the first data being used to represent an action to be performed set for the IoT device to be controlled, and the second data being used to represent an operating parameter condition to be satisfied for performing the action to be performed; A sending module is used to send, for each device control information, a control instruction for executing the action to be executed to the IoT device to be controlled according to the first data in response to a successful verification result of the second data in the device control information.

10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of any one of the methods of claims 1 to 7 by running the executable instructions.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of any method described in claims 1 to 7 are implemented.