Intelligent control method and system of Internet of Things equipment, equipment, medium and product

By introducing a synchronization mechanism of virtual device status in the intelligent control system of IoT devices, the control inaccuracy caused by device status synchronization delay in traditional technology is solved, and higher device control accuracy is achieved.

CN119544757APending Publication Date: 2025-02-28SHENZHEN OURUIBO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411444448.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When the intelligent control technology of traditional IoT devices controls multiple devices at the same time, it cannot synchronize the device status in time, resulting in inaccurate control.

Method used

The gateway device obtains the group control instructions sent by the first control end, determines the virtual device status of the target device, and synchronizes it to the second control end, ensuring that the virtual device status can be updated in time after the target device responds to the group control instruction.

Benefits of technology

It effectively improves the accuracy of equipment control, avoids control inaccuracy problems caused by delays, and ensures that the second control end can adjust the status of the target equipment in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544757A_ABST
    Figure CN119544757A_ABST
Patent Text Reader

Abstract

The invention relates to an intelligent control method and system for Internet of Things equipment, the equipment, a medium and a product. The method comprises the following steps: acquiring a group control instruction sent by a first control end, wherein the group control instruction is used for controlling at least two controlled devices; target equipment bound with the second control end is determined from the controlled equipment; according to the group control instruction, a virtual device state of the target device is generated, and the virtual device state is used for representing a device state after the target device successfully responds to the group control instruction; after the virtual device state is synchronized to the second control end, a group control instruction is sent to the target device, so that the target device executes the group control instruction and reports the current device state; and sending the received current equipment state to the second control end, so that the second control end adjusts the virtual equipment state. By adopting the method, the accuracy of intelligent control 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 present application relates to the technical field of Internet of Things, and in particular to an intelligent control method, system, device, medium and product for Internet of Things devices. Background Art

[0002] With the development of Internet of Things technology, intelligent control technology for Internet of Things devices has emerged. Through the intelligent control technology of Internet of Things devices, remote monitoring, control, debugging and optimization of Internet of Things devices can be achieved, thereby improving the operating efficiency and reliability of Internet of Things devices.

[0003] In traditional technologies, in order to avoid network congestion, when controlling multiple IoT devices at the same time, each IoT device will randomly delay for a period of time before reporting its status, resulting in the inability to synchronize the status of the IoT devices in a timely manner and the inability to ensure the accuracy of control. Summary of the invention

[0004] Based on this, it is necessary to provide an intelligent control method, system, device, medium and product for IoT devices that can improve accuracy in response to the above technical problems.

[0005] In a first aspect, the present application provides an intelligent control method for an Internet of Things device, which is applied to a gateway device, and the method includes:

[0006] Acquire a group control instruction sent by the first control terminal, where the group control instruction is used to control at least two controlled devices;

[0007] Determine a target device bound to the second control terminal from the controlled devices;

[0008] Generate a virtual device state of the target device according to the group control instruction, wherein the virtual device state is used to represent the device state of the target device after successfully responding to the group control instruction;

[0009] After synchronizing the virtual device state to the second control terminal, sending the group control instruction to the target device, so that the target device executes the group control instruction and reports the current device state;

[0010] The received current device state is sent to the second control end, so that the second control end adjusts the virtual device state.

[0011] In a second aspect, the present application also provides an intelligent control system for an Internet of Things device, including:

[0012] The first control terminal is used to send a group control instruction, where the group control instruction is used to control at least two controlled devices.

[0013] A gateway device, used for acquiring the group control instruction sent by the first control terminal; determining the target device bound to the second control terminal from the controlled devices; generating a virtual device state of the target device according to the group control instruction, wherein the virtual device state is used to represent the device state after the target device successfully responds to the group control instruction; after synchronizing the virtual device state to the second control terminal, sending the group control instruction to the target device so that the target device executes the group control instruction and reports the current device state; sending the received current device state to the second control terminal so that the second control terminal adjusts the virtual device state.

[0014] The second control terminal is used to obtain the virtual device state and the current device state of the target device.

[0015] In one of the embodiments, the virtual device status is used to indicate the device status of the target device by the second control end when the target device does not report the current device status; the gateway device is used to obtain the current device status reported by the target device after responding to the control instruction; the control instruction is sent by the second control end to the target device when the target device does not report the current device status and the second control end obtains the control operation for the target device.

[0016] In one of the embodiments, the second control end includes an intelligent switch device; the intelligent switch device and the gateway device are in the same Internet of Things; the intelligent switch device includes a target button bound to the target device; and the intelligent switch device is used to obtain the control operation when the target button is triggered.

[0017] In one of the embodiments, the first control end includes a user terminal; the user terminal is used to generate the group control instruction in response to a trigger operation for a target group control.

[0018] In one of the embodiments, the gateway device is used to determine that the current device state of the target device is offline when the current device state reported by the target device is not received within a preset time period; and adjust the virtual device state in the second control end to an offline state.

[0019] In one of the embodiments, the gateway device is used to correct the virtual device state to the current device state when the current device state reported by the target device does not match the virtual device state; and to maintain the virtual device state when the current device state reported by the target device matches the virtual device state.

[0020] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.

[0021] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in the above method when executed by a processor.

[0022] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above method when executed by a processor.

[0023] The intelligent control method, system, computer device, storage medium and computer program product of the Internet of Things device obtains the group control instruction sent by the first control terminal through the gateway device, and the group control instruction is used to control at least two controlled devices; the target device bound to the second control terminal is determined from the at least two controlled devices; after synchronizing the virtual device state of the target device to the second control terminal, the group control instruction is sent to at least one controlled device; the virtual device state is used to characterize the device state of the target device after successfully responding to the group control instruction. By synchronizing the virtual device state of the target device to the second control terminal before the gateway device sends the group control instruction, it can avoid the problem that the original device state of the target device is still maintained in the second control terminal due to the delay that the second control terminal has no time to synchronize the current device state of the target device when the device state changes after the target device responds to the group control instruction, so that the second control terminal can accurately control the target device according to the virtual device state in a timely manner. Afterwards, the virtual device state is corrected according to the current device state reported by the target device, and the corrected device state is synchronized to the second control terminal, which can ensure the accuracy of the device state of the target device in the second control terminal, and effectively improve the accuracy of device control. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. 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 paying creative work.

[0025] Figure 1 An application environment diagram of an intelligent control method for an Internet of Things device provided in an embodiment of the present application.

[0026] Figure 2 A flowchart of an intelligent control method for an Internet of Things device provided in an embodiment of the present application.

[0027] Figure 3 A simplified flowchart of an intelligent control method for an Internet of Things device provided in an embodiment of the present application.

[0028] Figure 4 A structural block diagram of an intelligent control system for an Internet of Things device provided in an embodiment of the present application.

[0029] Figure 5 An internal structure diagram of an Internet of Things device provided in an embodiment of the present application.

[0030] Figure 6 An internal structure diagram of another IoT device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] The intelligent control method of the Internet of Things device provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the gateway device 102 communicates with the first control terminal 104 through the network, and the gateway device 102, the second control terminal 106 and the controlled device 108 communicate through the Internet of Things.

[0033] The first control terminal 104 may be a terminal. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The controlled device and the second control terminal may be IoT devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc.

[0034] In an exemplary embodiment, Figure 2 As shown, a smart control method for an Internet of Things device is provided, and the method is applied to Figure 1 The gateway device in the example is used to illustrate, including the following steps 202 to 210. Among them:

[0035] Step 202: Acquire a group control instruction sent by the first control terminal, where the group control instruction is used to control at least two controlled devices.

[0036] Among them, the controlled device refers to the IoT device that receives and executes instructions. It can be understood that in the group control mechanism of the IoT, the control end can send instructions to the controlled device through the gateway device, and the controlled device also feeds back the status information or data to the control end through the gateway device. This mechanism ensures the remote control and management of IoT devices.

[0037] Exemplarily, the first control terminal may be, but is not limited to, a terminal. The first control terminal may send a group control instruction to the gateway device. The gateway device may obtain the group control instruction.

[0038] In some embodiments, an intelligent control application is running in the first control terminal. The first control terminal can display a control interface provided by the intelligent control application, generate a group control instruction in response to a group control operation in the control interface, and send the group control instruction to a gateway device in the Internet of Things. It is understood that the gateway device can communicate with the first control terminal through the Internet.

[0039] In some embodiments, the first control terminal may first send the group control instruction to the cloud, and the cloud sends the group control instruction to the gateway device.

[0040] In other embodiments, the first control terminal may also send the group control instruction to the gateway device simultaneously with sending the group control instruction to the cloud to ensure stable sending of the group control instruction. When the controlled device receives the instructions sent by the cloud and the gateway device respectively, it performs deduplication execution.

[0041] In some embodiments, the gateway device may determine at least two controlled devices by parsing the group control instruction. The process of parsing the group control instruction may include identifying the format and content of the group control instruction and the information of the controlled device. Exemplarily, the gateway device may interpret the group control instruction item by item according to a pre-set protocol or rule to implement the parsing of the group control instruction and ensure accurate understanding of the intention of the control terminal.

[0042] Step 204: determine the target device bound to the second control terminal from the controlled devices.

[0043] The target device refers to the target device bound to the second control terminal.

[0044] Exemplarily, the first control terminal can control each IoT device, while the second control terminal can only control a preset number of IoT devices among the IoT devices. It can be understood that the second control terminal is bound to no more than a preset number of IoT devices, so the second control terminal can control the IoT devices bound to this terminal. The gateway device can store the binding relationship between the second control terminal and the IoT device. When a controlled device has a binding relationship with the second control terminal, the controlled device is the target device bound to the second control terminal.

[0045] In some embodiments, the second control terminal may be, but is not limited to, an intelligent switch device or an intelligent control panel. The intelligent switch device may include at least one of a physical switch button or a virtual switch button. The intelligent switch device may be used to control the switch or mode switching of an IoT device bound to the local terminal. Each button in the intelligent switch device may be bound to at least one IoT device. It is understood that there may be different operations for a button, and these operations may be used to control at least one IoT device, so each button is not limited to being bound to only one IoT device.

[0046] Step 206: Generate a virtual device state of the target device according to the group control instruction. The virtual device state is used to represent the device state of the target device after successfully responding to the group control instruction.

[0047] Among them, the virtual device state refers to the virtual device state. It can be understood that when the IoT device reports its own state to the gateway device, the gateway device obtains the real device state of the IoT device. The device state virtualized by the gateway device for the IoT device is the virtual device state of the IoT device.

[0048] Exemplarily, one of the main functions of the group control instruction is to specify the device state that multiple IoT devices should reach. These device states may include at least one of the on or off state of the IoT device, the setting of the working mode, or the adjustment of the parameters. The gateway device can parse the group control instruction, determine the device state that the target device indicated by the group control instruction should reach, and use the device state as the virtual device state of the target device. It can be understood that when the target device successfully responds to the group control instruction, the device state of the target device is the device state that the target device indicated by the group control instruction should reach.

[0049] Step 208: after synchronizing the virtual device state to the second control terminal, a group control instruction is sent to the target device, so that the target device executes the group control instruction and reports the current device state.

[0050] It can be understood that the process of sending a group control command from the gateway device -> the target device successfully responds to the group control command -> the target device reports the current device status will consume a certain amount of time. If the second control terminal sends a control command when the target device does not report the current device status, the control command may not be able to accurately control the device status of the target device. For example, the first control terminal is a user terminal, and the second control terminal is an intelligent switch device. The user operates on the user terminal to control a group of lighting devices in the living room to turn on. Before the lighting device reports the current device status, if the user does not want a certain lighting device in the living room to turn on, the user may switch the status of the lighting device by pressing a button on the intelligent switch device. Since the lighting device does not report the current device status, the lighting device recorded in the intelligent switch device is in the off state. Then the control command generated by pressing the button indicates switching from the off state to the on state, not from the on state to the off state, resulting in inaccurate control of the lighting device.

[0051] The gateway device synchronizes the virtual device status to the second control end, and then sends a group control instruction to the target device after the virtual device status is synchronized, so that the target device executes the group control instruction and reports the current device status. This can avoid the problem of inaccurate control when the device status of the target device continues to be switched through the second control end after the group control instruction is issued.

[0052] In some embodiments, the group control instruction may be composed of multiple sub-instructions, which together realize the control and management of the entire controlled device group. The gateway device may parse the group control instruction and split the group control instruction into sub-instructions to be executed by each controlled device. It is understood that the sub-instructions are specifically for controlling a single controlled device. The gateway device may send the sub-instructions to be executed by the target device to the target device, and the target device executes the received sub-instructions and reports the current device status. It is understood that the target device successfully responds to the group control instruction, which is actually the target device successfully executing the received sub-instructions.

[0053] In some embodiments, the gateway device can adjust the device state of the target device in the second control terminal according to the received current device state. It can be understood that after the gateway device synchronizes the virtual device state of the target device to the second control terminal, the device state of the target device in the second control terminal is the virtual device state. After the gateway device synchronizes the current device state of the target device to the second control terminal, the device state of the target device in the second control terminal is the current device state. In the case where the second control terminal obtains a control operation for the target device, the second control terminal can generate a control instruction according to the device state of the target device in the local terminal.

[0054] Step 210: Send the received current device status to the second control terminal, so that the second control terminal adjusts the virtual device status.

[0055] In some embodiments, the gateway device can directly send the received current device status to the second control terminal. The gateway device can also compare the current device status and the virtual device status, and synchronize the received current device status to the second control terminal if the two do not match. It can be understood that each time the gateway device sends the device status of the target device to the second control terminal, it can be but not limited to the virtual device status or offline status generated by the gateway device according to the situation, the current device status reported by the target device, etc. These device statuses are used to update the device status of the target device in the second control terminal.

[0056] In some embodiments, when the received current device state does not match the virtual device state, the gateway device will synchronize the received current device state to the second control end, and the device state of the target device in the second control end will be adjusted from the virtual device state to the current device state.

[0057] In some embodiments, when the received current device state matches the virtual device state, the gateway device no longer sends the current device state to the second control terminal, and the virtual state of the target device is maintained in the second control terminal.

[0058] In some embodiments, if the current device status is not received within a preset time period, the gateway device can determine that the current device status of the target device is an offline status, and the gateway device synchronizes the offline status of the target device to the second control end, and the virtual device status of the target device in the second control end is adjusted to the current device status.

[0059] In the above-mentioned intelligent control method for IoT devices, a group control instruction sent by a first control terminal is obtained through a gateway device, and the group control instruction is used to control at least two controlled devices; a target device bound to a second control terminal is determined from at least two controlled devices; after synchronizing the virtual device state of the target device to the second control terminal, a group control instruction is sent to at least one controlled device; the virtual device state is used to characterize the device state of the target device after successfully responding to the group control instruction. By synchronizing the virtual device state of the target device to the second control terminal before the gateway device sends the group control instruction, it is possible to avoid the problem that the original device state of the target device is still maintained in the second control terminal due to the delay in synchronizing the current device state of the target device when the device state changes after the target device responds to the group control instruction, so that the second control terminal can accurately control the target device according to the virtual device state in a timely manner. Afterwards, the virtual device state is corrected according to the current device state reported by the target device, and the corrected device state is synchronized to the second control terminal, which can ensure the accuracy of the device state of the target device in the second control terminal, and effectively improve the accuracy of device control.

[0060] In some embodiments, the virtual device status is used to indicate the device status of the target device by the second control end when the target device does not report the current device status, and the method also includes: obtaining the current device status reported by the target device after responding to the control instruction; the control instruction is sent by the second control end to the target device when the target device does not report the current device status and the second control end obtains the control operation for the target device.

[0061] The control instruction may be generated by the second control terminal according to the virtual device state of the target device. It can be understood that after the gateway device synchronizes the virtual device state to the second control terminal and before the gateway device synchronizes the current device state to the second control terminal, when the second control terminal obtains the control operation for the target device, the second control terminal may generate the control instruction according to the virtual device state and send the control instruction to the target device.

[0062] In some embodiments, the control instruction may be used to instruct the target device to switch to a non-virtual device state. The non-virtual device state refers to a device state other than a virtual device state.

[0063] In some embodiments, the second control terminal may include at least one button. The target device may be bound to the target button. When the target button bound to the target device is triggered, the second control terminal may obtain a control operation for the target device and send a control instruction to the target device. It is understood that the second control terminal may determine that the button is triggered when a trigger operation for the button is detected. The trigger operation for the button may be, but is not limited to, a single press of the button, multiple presses of the button, a touch button, or a long press of the button.

[0064] In some embodiments, the control instruction may be, but is not limited to, a state switching instruction. The second control terminal is used to issue a state switching instruction to the IoT device bound to this terminal, and switch the state of the IoT device bound to this terminal. For example, the lighting device is bound to a button on the second control terminal, and the lighting device is currently in the on state. When the button is pressed, the second control terminal is triggered to issue a state switching instruction to the lighting device, so as to switch the lighting device from the on state to the off state. It can be understood that the state switching instruction issued by the second control terminal can be directly issued to the IoT device bound to the second control terminal, or it can be forwarded to the IoT device bound to the second control terminal through the gateway device as an intermediary.

[0065] In some embodiments, the control instruction may be, but is not limited to, a flip instruction. The flip instruction is not limited to the flipping of the two states of the device being turned on and off, but may also be the flipping of two mode states in the device. The flip instruction is essentially used to switch between two states, that is, the flipping of a state or the inversion of a state. Therefore, the control instruction obtained by the second control end through the calculation of the flip instruction can instruct the target device to flip from the device state of the target device recorded inside the second control end to another device state. For example, the target device has a first state and a second state. If the first state is recorded in the second control end, then when the second control end obtains a control operation for the target device, the control instruction issued is used to instruct the target device to switch its own device state to the second state.

[0066] In some embodiments, the gateway device may obtain a state switching instruction issued by the second control terminal to the target device after synchronizing the virtual device state to the second control terminal. The state switching instruction is used to instruct the target device to switch from the virtual device state to the non-virtual device state. The gateway device may send a state switching instruction to the target device so that the target device executes the state switching instruction and reports the current device state. It can be understood that the group control instruction will be sent to the target device first compared to the state switching instruction, and the target device will first execute the group control instruction and report the current device state, and then the target device will execute the state switching instruction and report the current device state.

[0067] In this embodiment, the virtual device status is used to indicate the device status of the target device when the target device fails to report the current device status. The second control end can generate a control instruction based on the virtual device status to avoid the problem of inaccurate control by the second control end when the target device fails to report the current device status in time. The gateway device can then obtain the current device status reported by the target device after responding to the control instruction, thereby ensuring the accuracy of control over the target device.

[0068] In some embodiments, the second control end includes a smart switch device; the smart switch device and the gateway device are in the same Internet of Things; the smart switch device includes a target button bound to the target device; and the control operation is obtained by the smart switch device when the target button is triggered.

[0069] It can be understood that the smart switch device, the gateway device and the controlled device can be in the same Internet of Things, and the smart switch device, the gateway device and the controlled device communicate through the Internet of Things.

[0070] Among them, after the target button bound to the target device is triggered, it is used to switch the mode state of the target device. For example, the target device can be but is not limited to a lighting device. The lighting device can have an off state, a low-brightness mode state, and a high-brightness mode state. If the device state of the lighting device in the intelligent switch device is off, after the target button is triggered for the first time, the intelligent switch device will send a control instruction to the lighting device to indicate switching to the low-brightness mode state. The lighting device responds to the control instruction and switches to the low-brightness mode state. The intelligent switch device will synchronize the low-brightness mode state reported by the lighting device. After the target button is triggered for the second time, the intelligent switch device will send a control instruction to the light to indicate switching to the high-brightness mode state. The lighting device responds to the control instruction and switches to the high-brightness mode state. The intelligent switch device will synchronize the high-brightness mode state reported by the lighting device, and so on. It can be understood that after the target button is triggered, the intelligent switch device can generate a control instruction for instructing the target device to switch from the device state of the target device in the intelligent switch device to another device state.

[0071] In this embodiment, the device status of the target device can be conveniently controlled through the target button bound to the target device on the intelligent switch device. When the group control command controls multiple controlled devices, the target device among the multiple controlled devices can be conveniently controlled individually, thereby improving the convenience of controlling the Internet of Things devices.

[0072] In some embodiments, the first control end includes a user terminal, and the group control instruction is generated by the user terminal in response to a trigger operation for a target group control.

[0073] Exemplarily, the first control terminal can display the control interface provided by the intelligent control application. In the control interface, multiple device groups are displayed in the form of group controls, each group control can represent a group of related IoT devices, and the entire device group can be quickly controlled through a unified control entry. It can be understood that the control interface can include a control entry for each group control. The first control terminal can generate a group control instruction corresponding to the target group control in response to a trigger operation on the control entry of the target group control.

[0074] In some embodiments, a control interface displays a control button or control switch or other control entry for each device group, and by clicking or sliding the control button or control switch, the first control terminal can be triggered to generate a group control instruction.

[0075] In this embodiment, the first control end includes a user terminal, and the group control instruction is generated by the user terminal in response to a trigger operation for a target group control. By triggering the target group control, the entire device group can be quickly controlled, thereby improving the control efficiency of the Internet of Things devices.

[0076] In some embodiments, the received current device status is sent to the second control end so that the second control end adjusts the virtual device status, including: when the current device status reported by the target device is not received within a preset time period, determining that the current device status of the target device is an offline state; and adjusting the virtual device status in the second control end to an offline state.

[0077] It can be understood that after sending a group control command to the IoT device, if the current device status reported by the IoT device is not received within a preset time period, it means that the IoT device is offline. The gateway device can synchronize the offline status of the IoT device in the IoT.

[0078] Exemplarily, the gateway device may synchronize the offline state of the target device to the second control terminal if the current device state reported by the target device is not received within a preset time period. The virtual device state of the target device in the second control terminal is adjusted to the offline state.

[0079] In this embodiment, when the current device status reported by the target device is not received within a preset time period, the current device status of the target device is determined to be an offline status; the virtual device status in the second control end is adjusted to an offline status, so that the offline of the target device can be discovered in time and synchronized to the second control end in time, thereby ensuring the accuracy of control over the target device.

[0080] In some embodiments, before the received current device status is sent to the second control end so that the second control end adjusts the virtual device status, it also includes: when the current device status reported by the target device does not match the virtual device status, the virtual device status is corrected to the current device status; when the current device status reported by the target device matches the virtual device status, the virtual device status is maintained.

[0081] Exemplarily, the gateway device can compare the virtual device state of the target device with the current device state reported by the target device. If the two are inconsistent, the gateway device can correct its internal virtual device state to the current device state, and synchronize the current device state to the second control terminal, so that the second control terminal corrects its own recorded virtual device state to the current device state. If the virtual device state of the target device is consistent with the current device state reported by the target device, the gateway device can maintain its internal virtual device state, and at this time, the current device state can no longer be synchronized to the second control terminal.

[0082] In this embodiment, when the current device state reported by the target device does not match the virtual device state, the virtual device state is corrected to the current device state; when the current device state reported by the target device matches the virtual device state, the virtual device state is maintained, so that the device state of the target device can be corrected in time to ensure the accuracy of control.

[0083] In some embodiments, Figure 3 As shown, a simple flow chart of an intelligent control method for IoT devices is provided.

[0084] Step 302: The gateway device receives a group control instruction.

[0085] Step 304: The gateway device searches for the local switch button to see if there is a bound controlled device.

[0086] It is understood that the second control terminal in this application can be but is not limited to a switch button, and the target device is the controlled device bound to the switch button. The local switch button can be a switch button on the gateway device, or a switch button in the same Internet of Things as the gateway device.

[0087] Step 306: If there is a bound controlled device, the virtual device state of the controlled device is virtualized according to the group control instruction and directly synchronized to the switch button.

[0088] It can be understood that before the group control command is issued, there is no ZigBee network congestion, and at this time the virtual device state can be synchronized to the switch button more quickly.

[0089] Step 308, after synchronizing to the switch button, a group control command is issued.

[0090] Step 310: within a period of time after group control, the controlled devices successively report the current device status to the gateway device. The current device status of the successfully controlled controlled devices does not need to be synchronized again.

[0091] Step 312: if the controlled device does not report the current device status within a period of time after the group control, it is determined that the group control of the controlled device has failed, and then the offline status of the controlled device that failed to be controlled is synchronized to the switch button for correction.

[0092] The bandwidth of the Internet of Things is limited. For example, the ZigBee network has limited bandwidth. After group control, the controlled devices generally randomly delay for 5-15 seconds before reporting the current device status to the gateway device to avoid ZigBee network congestion. After receiving the current device status, the gateway device will delay for 9 seconds before synchronizing the device status to the switch button to ensure that the ZigBee network is not congested. Therefore, there is a long delay from group control to reporting the current device status, and then to synchronizing the current device status to the switch button by the gateway device. In the gap when the current device status is not synchronized to the switch button, if the switch button is controlled, the calculated flip command will be consistent with the current device status, resulting in the device not responding after the command is issued, and the control is not accurate enough.

[0093] In this embodiment, under this mechanism, when group control is achieved, the device status is immediately synchronized to the switch button. Even if group control is done at other ends, the switch button is pressed immediately and the correct control instructions can be made according to the virtual device status. Control failure will not occur, thereby improving the accuracy of control.

[0094] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0095] Based on the same inventive concept, the embodiment of the present application also provides an intelligent control system for an IoT device for implementing the above-mentioned intelligent control method for IoT devices. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiment of the intelligent control system for one or more IoT devices provided below can be referred to the limitations of the intelligent control method for IoT devices above, and will not be repeated here.

[0096] In an exemplary embodiment, Figure 4 As shown, an intelligent control system for an Internet of Things device is provided, including: a first control terminal 402, a gateway device 404, and a second control terminal 406, wherein:

[0097] In one of the embodiments, the virtual device status is used to indicate the device status of the target device to the second control end 406 when the target device does not report the current device status; the gateway device 404 is used to obtain the current device status reported by the target device after responding to the control instruction; the control instruction is sent by the second control end 406 to the target device when the target device does not report the current device status and the second control end 406 obtains the control operation for the target device.

[0098] In one embodiment, the second control end 406 includes an intelligent switch device; the intelligent switch device and the gateway device 404 are in the same Internet of Things; the intelligent switch device includes a target button bound to the target device; and the intelligent switch device is used to obtain the control operation when the target button is triggered.

[0099] In one of the embodiments, the first control end 402 includes a user terminal; the user terminal is used to generate the group control instruction in response to a trigger operation for a target group control.

[0100] In one embodiment, the gateway device 404 is used to determine that the current device state of the target device is offline when the current device state reported by the target device is not received within a preset time period; and adjust the virtual device state in the second control terminal 406 to an offline state.

[0101] In one of the embodiments, the gateway device 404 is used to correct the virtual device state to the current device state when the current device state reported by the target device does not match the virtual device state; and to maintain the virtual device state when the current device state reported by the target device matches the virtual device state.

[0102] Each device in the intelligent control system of the above-mentioned IoT devices can be implemented in whole or in part through software, hardware and their combination. Each of the above-mentioned devices can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above-mentioned devices.

[0103] In an exemplary embodiment, an Internet of Things device is provided. The Internet of Things device may be a gateway device, and its internal structure diagram may be as follows: Figure 5 As shown. The Internet of Things device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the Internet of Things device is used to provide computing and control capabilities. The memory of the Internet of Things device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the Internet of Things device is used to exchange information between the processor and an external device. The communication interface of the Internet of Things device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an intelligent control method for an Internet of Things device is implemented.

[0104] In an exemplary embodiment, an Internet of Things device is provided. The Internet of Things device may be a gateway device, and its internal structure diagram may be as follows: Figure 6 As shown. The Internet of Things device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the Internet of Things device is used to provide computing and control capabilities. The memory of the Internet of Things device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the Internet of Things device is used to exchange information between the processor and the external device. The communication interface of the Internet of Things device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an intelligent control method of an Internet of Things device is realized. The display unit of the Internet of Things device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the Internet of Things device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the housing of the Internet of Things device, or an external keyboard, touchpad or mouse.

[0105] Those skilled in the art will understand that Figure 5 or Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the present application scheme, and does not constitute a limitation on the Internet of Things device to which the present application scheme is applied. The specific Internet of Things device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0106] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0107] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0108] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0109] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0111] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0112] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An intelligent control method for an Internet of Things device, characterized in that: Applied to a gateway device, the method comprises: Acquire a group control instruction sent by the first control terminal, where the group control instruction is used to control at least two controlled devices; Determine a target device bound to the second control terminal from the controlled devices; Generate a virtual device state of the target device according to the group control instruction, wherein the virtual device state is used to represent the device state of the target device after successfully responding to the group control instruction; After synchronizing the virtual device state to the second control terminal, sending the group control instruction to the target device, so that the target device executes the group control instruction and reports the current device state; The received current device state is sent to the second control end, so that the second control end adjusts the virtual device state.

2. The method according to claim 1, characterized in that: The virtual device state is used to indicate the device state of the target device when the target device does not report the current device state. The method further includes: Obtaining the current device state reported by the target device after responding to the control instruction; the control instruction is sent by the second control end to the target device when the target device does not report the current device state and the second control end obtains the control operation for the target device.

3. The method according to claim 2, characterized in that The second control end includes an intelligent switch device; the intelligent switch device and the gateway device are in the same Internet of Things; the intelligent switch device includes a target button bound to the target device; the control operation is obtained by the intelligent switch device when the target button is triggered.

4. The method according to claim 1, characterized in that: The first control end includes a user terminal, and the group control instruction is generated by the user terminal in response to a trigger operation for a target group control.

5. The method according to any one of claims 1 to 4, characterized in that: The step of sending the received current device state to the second control terminal so that the second control terminal adjusts the virtual device state includes: If the current device state reported by the target device is not received within a preset time period, determining that the current device state of the target device is an offline state; The state of the virtual device in the second control terminal is adjusted to an offline state.

6. The method according to any one of claims 1 to 4, characterized in that: The step of sending the received current device state to the second control terminal so that the second control terminal adjusts the virtual device state includes: In the case where the current device state reported by the target device does not match the virtual device state, correcting the virtual device state to the current device state; When the current device state reported by the target device matches the virtual device state, the virtual device state is maintained.

7. An intelligent control system for an Internet of Things device, characterized in that: The system includes a first control terminal, a gateway device and a second control terminal; The first control terminal is used to send a group control instruction, and the group control instruction is used to control at least two controlled devices; The gateway device is used to obtain the group control instruction sent by the first control terminal; determine the target device bound to the second control terminal from the controlled device; generate a virtual device state of the target device according to the group control instruction, and the virtual device state is used to represent the device state after the target device successfully responds to the group control instruction; after synchronizing the virtual device state to the second control terminal, send the group control instruction to the target device, so that the target device executes the group control instruction and reports the current device state; send the received current device state to the second control terminal, so that the second control terminal adjusts the virtual device state; The second control terminal is used to obtain the virtual device state and the current device state of the target device.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.