# US 2024/0406266 A1 · Method, apparatus, storage medium, and electronic device for controlling iot device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0406266 A1
- Document ID: US20240406266A1
- Status: Published application
- Kind: A1
- Application number: 18/507,747
- Filed: 2023-11-13
- Published: 2024-12-05
- Earliest claimed: 2023-06-01
- Assignees: Beijing Xiaomi Mobile Software Co., Ltd.
- Applicants: Beijing Xiaomi Mobile Software Co., Ltd.
- Inventors: Peng LIU; Xiaodong GAO; She DU; Guanghui WANG; Tingting SHU; Kaifeng DUAN; Yongchao ZHANG; Bin LI
- Web page: https://patentgrep.com/patent/US20240406266A1

## CPC

- H04L 12/281: {indicating a format for calling an appliance service function in a home automation network (for remote control or remote monitoring of applications H04L67/025)}
- H04L 67/125: involving control of end-device applications over a network
- H04L 12/2816: {Controlling appliance services of a home automation network by calling their functionalities (arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station; in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom H04Q9/00)}
- H04L 12/2825: {Reporting to a device located outside the home and the home network (access arrangements H04L12/2856; for remote control or remote monitoring of applications H04L67/025; telephonic communication systems adapted for combination with telemetering systems H04M11/002)}
- H04W 4/70: Services for machine-to-machine communication [M2M] or machine type communication [MTC]
- H04L 2012/285: {Generic home appliances, e.g. refrigerators}
- Y02P 90/02: Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- Y02P: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS

## Abstract

The present disclosure provides a method, an apparatus, a storage medium, and an electronic device for controlling an IoT device. The method includes: receiving detection data reported by an IoT device; verifying device control information based on the detection data; and sending, in response to second data in the device control information being successfully verified, a control instruction configured for execution of a pending action to the IoT device to be controlled based on first data. The above method is conductive to improving the response speed of the IoT device.

## Claims

### Claim 1

A method for controlling an IoT device, performed by a server, the method comprising:
receiving detection data reported by an IoT device;
verifying device control information based on the detection data, wherein the device control information includes separately stored first data and second data, the first data is configured to indicate a pending action set for an IoT device to be controlled, and the second data is configured to indicate an operating parameter condition that needs to be met to execute the pending action; and
sending, in response to the second data in the device control information being successfully verified, a control instruction to the IoT device to be controlled based on the first data, wherein the control instruction is configured for execution of the pending action.

### Claim 2 (depends on 1)

The method according to claim 1, wherein receiving the detection data reported by the IoT device comprises:
determining a parameter type corresponding to the operating parameter condition in the second data;
sending the parameter type to a data matching module; and
receiving detection data that matches with the parameter type based on the data matching module.

### Claim 3 (depends on 2)

The method according to claim 2,
wherein the detection data includes real-time detection data and state detection data, the real-time detection data includes data sent by the IoT device after the IoT device is triggered, and the state detection data includes data periodically reported by the IoT device, and wherein 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, and
wherein receiving the detection data that matches with the parameter type based on the data matching module includes:
receiving real-time detection data that matches with the first parameter type based on the data matching module; and
receiving state detection data that matches with the second parameter type based on the data matching module after each real-time detection data that matches with the first parameter type is received.

### Claim 4 (depends on 1)

The method according to claim 1,
wherein the second data includes separately stored first condition data and second condition data, and a priority of the first condition data is higher than a priority of the second condition data; and wherein the detection data includes real-time detection data and state detection data, the real-time detection data includes data sent by the IoT device after the IoT device is triggered, and the state detection data includes data periodically reported by the IoT device, and
wherein verifying the device control information based on the detection data includes:
verifying the first condition data in the device control information based on the real-time detection data;
in response to determination that each of the first condition data is successfully verified, verifying the second condition data based on the state detection data; and
in response to determination that each of the first condition data and each of the second condition data are both successfully verified, determining that the second data in the device control information is successfully verified.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
receiving the device control information before receiving the detection data reported by the IoT device; and
splitting the device control information into multiple target data, wherein the target data belongs to the first data, or belongs to first condition data in the second data, or belongs to second condition data in the second data.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising, for each of the multiple target data:
determining a first storage identifier of the target data, wherein the first storage identifier indicates that the target data belongs to the first data, the first condition data, or the second condition data;
generating, in response to existence of at least one subdata in the target data, a second storage identifier for each of the at least one subdata, wherein the subdata includes the pending action or the operating parameter condition, and the second storage identifier is configured to distinguish different subdata; and
storing each of the at least one subdata separately, wherein the subdata carries the first storage identifier, the second storage identifier, and a parameter value corresponding to the subdata.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the device control information is stored based on a cluster storage technology.

### Claim 8

A method for controlling an IoT device, performed by an IoT device to be controlled, the method comprising:
receiving a control instruction sent by a server, wherein the control instruction is configured for execution of a pending action, and is generated by the server based on first data in device control information when second data in the device control information is successfully verified based on detection data, and wherein the first data and the second data are separately stored, the detection data is reported by an IoT device to the server, the first data is configured to indicate the pending action set for an IoT device to be controlled, and the second data is configured to indicate an operating parameter condition that needs to be met to execute the pending action; and
executing the pending action based on the control instruction.

### Claim 9

A system for controlling an IoT device, the system comprising:
an IoT device configured to report detection data to a server, wherein the IoT device includes an IoT device to be controlled, and the IoT device to be controlled is configured to receive a control instruction sent by the server, and execute a pending action based on the control instruction; and
the server configured to verify device control information based on the detection data received, wherein the device control information includes separately stored first data and second data, the first data is configured to indicate the pending action set for the IoT device to be controlled, and the second data is configured to indicate an operating parameter condition that needs to be met to execute the pending action; and the server is further configured to send, in response to the second data in the device control information being successfully verified, the control instruction to the IoT device to be controlled based on the first data, wherein the control instruction is configured for execution of the pending action.

### Claim 10 (depends on 9)

The system according to claim 9, wherein the server is further configured to:
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 that matches with the parameter type based on the data matching module.

### Claim 11 (depends on 10)

The system according to claim 10,
wherein the detection data includes real-time detection data and state detection data, the real-time detection data includes data sent by the IoT device after the IoT device is triggered, and the state detection data includes data periodically reported by the IoT device, and wherein 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; and
wherein the server is further configured to:
receive real-time detection data that matches with the first parameter type based on the data matching module; and
receive state detection data that matches with the second parameter type based on the data matching module after each real-time detection data that matches with the first parameter type is received.

### Claim 12 (depends on 9)

The system according to claim 9,
wherein the second data includes separately stored first condition data and second condition data, and a priority of the first condition data is higher than a priority of the second condition data; and wherein the detection data includes real-time detection data and state detection data, the real-time detection data includes data sent by the IoT device after the IoT device is triggered, and the state detection data includes data periodically reported by the IoT device; and
wherein the server is further configured to:
verify the first condition data in the device control information based on the real-time detection data;
in response to determination that each of the first condition data is successfully verified, verify the second condition data based on the state detection data; and
in response to determination that each of the first condition data and each of the second condition data are both successfully verified, determine that the second data in the device control information is successfully verified.

### Claim 13 (depends on 9)

The system according to claim 9, wherein the server is further configured to:
receive the device control information before receiving the detection data reported by the IoT device; and
split the device control information into multiple target data, wherein the target data belongs to the first data, or belongs to first condition data in the second data, or belongs to second condition data in the second data.

### Claim 14 (depends on 13)

The system according to claim 13, wherein the server is further configured to, for each of the multiple target data:
determine a first storage identifier of the target data, wherein the first storage identifier indicates that the target data belongs to the first data, the first condition data, or the second condition data;
generate, in response to existence of at least one subdata in the target data, a second storage identifier for each of the at least one subdata, wherein the subdata includes the pending action or the operating parameter condition, and the second storage identifier is configured to distinguish different subdata; and
store each of the at least one subdata separately, wherein the subdata carries the first storage identifier, the second storage identifier, and a parameter value corresponding to the subdata.

### Claim 15 (depends on 9)

The system according to claim 9, wherein the device control information is stored based on a cluster storage technology.

### Claim 16 (depends on 1)

An electronic device comprising:
a processor; and
a memory configured to store instructions executable by the processor,
wherein the processor is configured to execute the instructions to implement the method for controlling the IoT device according to claim 1.

### Claim 17 (depends on 8)

An electronic device comprising:
a processor; and
a memory configured to store instructions executable by the processor,
wherein the processor is configured to execute the instructions to implement the method for controlling the IoT device according to claim 8.

### Claim 18 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the method for controlling the IoT device according to claim 1 to be implemented.

### Claim 19 (depends on 8)

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the method for controlling the IoT device according to claim 8 to be implemented.
