Control method, apparatus and device for internet of things device
By acquiring sensor data from the first IoT device and directly controlling the second IoT device, the high cost problem caused by the interaction between smart home appliances and servers is solved, resulting in cost reduction and network status improvement.
Patent Information
- Application Number
- CN202110229358.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-02
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2041-03-02
AI Technical Summary
In existing technologies, smart home appliances require communication modules to interact with servers, resulting in high production costs.
By acquiring sensor data from itself and the second IoT device through the first IoT device, control commands are determined and the second IoT device is directly controlled, thus avoiding direct interaction between the second IoT device and the server.
It reduces the production cost of IoT devices, improves network status, and reduces communication latency within signal coverage areas.
Smart Images

Figure CN115002172B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of Internet of Things, and in particular to a control method, device and equipment of Internet of Things equipment. BACKGROUND
[0002] With more and more smart home appliances entering the home, users can control smart home appliances (washing machines, air conditioners, etc.) through an Internet of Things system.
[0003] At present, a user can use a terminal device to send a control instruction of a smart home appliance to a server of an Internet of Things system, and the server can send the control instruction to the smart home appliance when receiving the control instruction of the smart home appliance. However, according to the above method, each smart home appliance in the Internet of Things system needs to be installed with a communication module for data interaction with the server, thereby resulting in a high production cost of the smart home appliance. SUMMARY
[0004] The present application provides a control method, device and equipment of Internet of Things equipment, to solve the technical problem of high production cost of smart home appliances in the prior art.
[0005] In a first aspect, the present application provides a control method of Internet of Things equipment, comprising:
[0006] A first Internet of Things equipment acquires first data, wherein the first data comprises sensing data collected by the first Internet of Things equipment and sensing data collected by a second Internet of Things equipment;
[0007] The first Internet of Things equipment determines a control instruction of the second Internet of Things equipment according to the first data;
[0008] The first Internet of Things equipment sends the control instruction to the second Internet of Things equipment to control the second Internet of Things equipment.
[0009] In a possible implementation, the first Internet of Things equipment determines the control instruction of the second Internet of Things equipment according to the first data, comprising:
[0010] The first Internet of Things equipment determines environmental information and a first state of the second Internet of Things equipment according to the first data, wherein the environmental information is information of an environment in which the first Internet of Things equipment and the second Internet of Things equipment are located;
[0011] The first Internet of Things equipment determines the control instruction according to the environmental information and the first state.
[0012] In a possible implementation, the first Internet of Things equipment determines the control instruction according to the environmental information and the first state, comprising:
[0013] The first Internet of Things device acquires a first preset relationship between the environment information and the state of the Internet of Things device, the first preset relationship including at least one environment information and the state of the Internet of Things device corresponding to each environment information;
[0014] The first Internet of Things device determines the control instruction according to the environment information, the first state and the first preset relationship.
[0015] In a possible implementation, the first Internet of Things device determines the control instruction according to the environment information, the first state and the first preset relationship, including:
[0016] The first Internet of Things device determines a second state of the second Internet of Things device according to the environment information and the first preset relationship;
[0017] The first Internet of Things device determines the control instruction according to the first state and the second state.
[0018] In a possible implementation, the first Internet of Things device determines the control instruction according to the first state and the second state, including:
[0019] If the first state and the second state are the same, the first Internet of Things device does not generate the control instruction;
[0020] If the first state and the second state are different, the first Internet of Things device generates the control instruction according to the second state.
[0021] In a possible implementation, the first Internet of Things device acquires the first data, including:
[0022] The first Internet of Things device acquires the sensing data of the first Internet of Things device through a sensor;
[0023] The first Internet of Things device acquires the sensing data of the second Internet of Things device through Bluetooth.
[0024] In another possible implementation, after the first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device, the method further includes:
[0025] The first Internet of Things device sends the first data and the second state of the second Internet of Things device to the server.
[0026] In a second aspect, the application provides a control device of an Internet of Things device, including an acquisition device, a determination device and a sending device, wherein:
[0027] The acquisition device is configured to acquire, by the first Internet of Things device, first data, the first data including sensing data collected by the first Internet of Things device and sensing data collected by a second Internet of Things device;
[0028] The determination device is configured to determine, by the first Internet of Things device, a control instruction of the second Internet of Things device according to the first data.
[0029] The sending device is configured to send, by the first Internet of Things device, the control instruction to the second Internet of Things device to control the second Internet of Things device.
[0030] In a possible implementation, the determination device is specifically configured to:
[0031] The first Internet of Things device determines, according to the first data, environmental information and a first state of the second Internet of Things device, the environmental information being information of an environment in which the first Internet of Things device and the second Internet of Things device are located.
[0032] The first Internet of Things device determines the control instruction according to the environmental information and the first state.
[0033] In a possible implementation, the determination device is specifically configured to:
[0034] The first Internet of Things device acquires a first preset relationship between the environmental information and states of Internet of Things devices, the first preset relationship including at least one environmental information and a state of an Internet of Things device corresponding to each environmental information.
[0035] The first Internet of Things device determines the control instruction according to the environmental information, the first state, and the first preset relationship.
[0036] In a possible implementation, the determination device is specifically configured to:
[0037] The first Internet of Things device determines a second state of the second Internet of Things device according to the environmental information and the first preset relationship.
[0038] The first Internet of Things device determines the control instruction according to the first state and the second state.
[0039] In a possible implementation, the determination device is specifically configured to:
[0040] If the first state and the second state are the same, the first Internet of Things device does not generate the control instruction.
[0041] If the first state and the second state are different, the first Internet of Things device generates the control instruction according to the second state.
[0042] In a possible implementation, the acquisition device is specifically configured to:
[0043] The first Internet of Things device acquires the sensor data of the first Internet of Things device through a sensor;
[0044] The first Internet of Things device acquires the sensor data of the second Internet of Things device through Bluetooth.
[0045] In another possible implementation, the sending device is further configured to:
[0046] The first Internet of Things device sends the first data and the second state of the second Internet of Things device to the server.
[0047] In a third aspect, an embodiment of the present application provides a control device of an Internet of Things device, comprising a transceiver, a processor, and a memory;
[0048] The memory stores computer execution instructions;
[0049] The processor executes the computer execution instructions stored in the memory, so that the processor executes the control method of the Internet of Things device according to any one of the first aspect.
[0050] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores computer execution instructions, and when the computer execution instructions are executed by a processor, the computer execution instructions are used to implement the control method of the Internet of Things device according to any one of the first aspect.
[0051] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the control method of the Internet of Things device according to any one of the preceding aspects.
[0052] The present application provides a control method, device and equipment of an Internet of Things device. A first Internet of Things device acquires first data, wherein the first data comprises sensor data collected by the first Internet of Things device and sensor data collected by a second Internet of Things device. The first Internet of Things device determines a control instruction of the second Internet of Things device according to the first data, and sends the control instruction to the second Internet of Things device to control the second Internet of Things device. In the above method, when the first Internet of Things device acquires the first data, the control instruction of the second Internet of Things device can be determined according to the first data, and the second Internet of Things device is controlled by the first Internet of Things device. Therefore, the second Internet of Things device does not need to directly interact with a server, and thus a device for communicating with the server does not need to be arranged in the second Internet of Things device, thereby reducing the production cost of the Internet of Things device. BRIEF DESCRIPTION OF DRAWINGS
[0053] Figure 1A An application scenario schematic diagram provided for an embodiment of the present application;
[0054] Figure 1B Another application scenario schematic diagram provided for an embodiment of the present application;
[0055] Figure 2 A flowchart of a control method of an Internet of Things device provided for an embodiment of the present application;
[0056] Figure 3 A process schematic diagram of determining a control instruction provided for an embodiment of the present application;
[0057] Figure 4A A process schematic diagram of controlling a second Internet of Things device provided for an embodiment of the present application;
[0058] Figure 4B Another process schematic diagram of controlling a second Internet of Things device provided for an embodiment of the present application;
[0059] Figure 5 A flowchart of another control method of an Internet of Things device provided for an embodiment of the present application;
[0060] Figure 6 Another process schematic diagram of controlling a second Internet of Things device provided for an embodiment of the present application;
[0061] Figure 7 A process schematic diagram of a control method of an Internet of Things device provided for an embodiment of the present application;
[0062] Figure 8 A schematic diagram of a control device of an Internet of Things device provided for an embodiment of the present application;
[0063] Figure 9 A hardware structure schematic diagram of a control device of an Internet of Things device provided for the present application. DETAILED DESCRIPTION
[0064] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals refer to like elements in the several figures. The following description of exemplary embodiments is not representative of all embodiments consistent with the present application. Rather, it is merely intended to be illustrative of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0065] It should be noted that, in this document, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0066] In the related art, a user can use a terminal device to send a control instruction for controlling a smart home appliance to a server of an Internet of Things system, and the server can send the control instruction to the corresponding smart home appliance after receiving the control instruction. However, according to the above method, each smart home appliance in the Internet of Things system needs to be installed with a communication module for data interaction with the server, thereby causing a high production cost of the smart home appliance.
[0067] To solve the technical problem of high production cost of the smart home appliance in the prior art, the embodiments of the present application provide a control method of an Internet of Things device. The first Internet of Things device can collect sensing data and acquire the sensing data collected by the second Internet of Things device through Bluetooth. The first Internet of Things device determines the control instruction of the second Internet of Things device according to the sensing data collected by the first Internet of Things device and the sensing data collected by the second Internet of Things device, and sends the control instruction to the second Internet of Things device to control the second Internet of Things device. The first Internet of Things device can send the sensing data collected by the first Internet of Things device, the sensing data collected by the second Internet of Things device, and the state of the second Internet of Things device to the server. In this way, the second Internet of Things device can be directly controlled by the first Internet of Things device, and the sensing data collected by the second Internet of Things device can be sent to the server by the first Internet of Things device, thereby avoiding data interaction between the second Internet of Things device and the server directly, so that there is no need to set a device for communication with the server in the second Internet of Things device, thereby reducing the production cost of the Internet of Things device.
[0068] For ease of understanding, the application scenario of the present application is described in detail below. Figures 1A-1B
[0069] Figure 1A An application scenario diagram is provided for the embodiments of the present application. Please refer to Figure 1A , which includes a washing machine, a clothes dryer, a lamp, a curtain, a clothes hanger, and a server. Among them, the first Internet of Things device in the Internet of Things system is the washing machine, and the second Internet of Things device in the Internet of Things system is the clothes dryer, the lamp, the curtain, and the clothes hanger. The washing machine is connected with the lamp, the curtain, the clothes hanger, and the clothes dryer through Bluetooth. The washing machine is provided with a network device, and the washing machine can communicate with the server through the network device.
[0070] Please see Figure 1A , the washing machine can obtain the sensing data of the lamp, the curtain, the clothes hanger and the clothes dryer through Bluetooth, and send control instructions to the lamp, the curtain, the clothes hanger and the clothes dryer through Bluetooth, so that the lamp, the curtain, the clothes hanger and the clothes dryer can be directly controlled by the washing machine, and the washing machine can send the sensing data of the lamp, the curtain, the clothes hanger and the clothes dryer to the server, thereby avoiding the lamp, the curtain, the clothes hanger and the clothes dryer directly interacting with the server, so that the lamp, the curtain, the clothes hanger and the clothes dryer do not need to be provided with a data communication device for communicating with the server, thereby reducing the production cost of the Internet of Things device.
[0071] Figure 1B Another application scenario provided by the embodiment of the present application is shown. Please see Figure 1B , including a clothes dryer, a washing machine and a server. Among them, the first Internet of Things device in the Internet of Things system is the washing machine, and the second Internet of Things device in the Internet of Things system is the clothes dryer. The clothes dryer is provided with a Bluetooth module, and the washing machine is provided with a Bluetooth gateway, a network device and a processor.
[0072] Please see Figure 1B , the clothes dryer sends the sensing data of the clothes dryer to the washing machine through the Bluetooth module, and the washing machine can process the sensing data of the clothes dryer and the sensing data of the washing machine according to the processor to obtain the control instruction of the clothes dryer. The washing machine sends the control instruction to the clothes dryer through the Bluetooth gateway, and sends the sensing data of the clothes dryer and the sensing data of the washing machine to the server. In this way, the washing machine is provided with a Bluetooth gateway and a network device, and the clothes dryer is provided with a Bluetooth module, data interaction is carried out between the washing machine and the clothes dryer, and the clothes dryer can interact with the server through the washing machine, so that the clothes dryer does not need to be provided with a network device for data interaction with the server, thereby reducing the cost of the Internet of Things device.
[0073] Next, the technical solutions shown in the present application will be described in detail through specific embodiments. It should be noted that the following embodiments can exist independently, or can be combined with each other. For the same or similar content, it will not be repeated in different embodiments.
[0074] Figure 2 A flowchart of a control method of an Internet of Things device provided by the embodiment of the present application is shown. Please see Figure 2 , the method can include:
[0075] S201, the first Internet of Things device obtains first data.
[0076] The execution subject of the embodiment of the present application can be the first Internet of Things device, or a control device of the Internet of Things device arranged in the first Internet of Things device. The control device of the Internet of Things device can be realized by the combination of software and / or hardware.
[0077] The first Internet of Things device can be a core device in the Internet of Things system. For example, the Internet of Things system in the balcony can include Internet of Things devices such as washing machines, dryers, clothes racks, and curtains. If the washing machine is the core device in the Internet of Things system, the washing machine is the first Internet of Things device in the Internet of Things system.
[0078] Optionally, the first Internet of Things device can be a device pre-set in the Internet of Things system. For example, the Internet of Things system in the kitchen can include Internet of Things devices such as refrigerators, ovens, and dishwashers. The refrigerator can be pre-set as the first Internet of Things device in the Internet of Things system.
[0079] The first data includes sensing data collected by the first Internet of Things device and sensing data collected by the second Internet of Things device. The second Internet of Things device can be other Internet of Things devices in the Internet of Things system except the first Internet of Things device. For example, the Internet of Things system in the balcony includes washing machines, dryers, clothes racks, and curtains. If the first Internet of Things device in the Internet of Things system is a washing machine, the second Internet of Things device in the Internet of Things system is a dryer, a clothes rack, and a curtain. The Internet of Things system in the kitchen includes refrigerators, ovens, microwaves, and dishwashers. If the first Internet of Things device in the Internet of Things system is a refrigerator, the second Internet of Things device in the Internet of Things system is an oven, a microwave, and a dishwasher.
[0080] Optionally, in one Internet of Things system, the first Internet of Things device can be one Internet of Things device or multiple Internet of Things devices, which is not limited by the embodiment of the present application. For example, the Internet of Things system in the balcony includes washing machines, dryers, clothes racks, and curtains. The first Internet of Things device in the Internet of Things system can be a washing machine and a dryer. The second Internet of Things device in the Internet of Things system can be a clothes rack and a curtain.
[0081] The sensing data collected by the first Internet of Things device is data collected by a sensor in the first Internet of Things device. For example, if the first Internet of Things device in the balcony Internet of Things system is a washing machine, the sensing data collected by the first Internet of Things device is data collected by a sensor in the washing machine. For example, the sensing data collected by the first Internet of Things device can be data collected by an infrared sensor and a speed sensor in the washing machine.
[0082] The sensing data collected by the second Internet of Things device is data collected by sensors in the second Internet of Things device. For example, if the second Internet of Things device in the balcony Internet of Things system is a clothes hanger and a curtain, the sensing data collected by the second Internet of Things device is data collected by sensors in the clothes hanger and the curtain. For example, the sensing data collected by the second Internet of Things device can be data collected by a photosensitive sensor in the curtain.
[0083] The first Internet of Things device can obtain the first data according to the following possible implementation manners: the first Internet of Things device obtains sensing data of the first Internet of Things device through sensors. For example, if the washing machine is the first Internet of Things device in the Internet of Things system, the sensing data of the first Internet of Things device can be data collected by infrared sensors, speed sensors, etc. of the washing machine. The first Internet of Things device obtains the sensing data of the second Internet of Things device through Bluetooth. For example, when the sensors in the second Internet of Things device collect data, the second Internet of Things device can obtain the data collected by the sensors in the second Internet of Things device through Bluetooth.
[0084] Bluetooth devices are arranged in the first Internet of Things device and the second Internet of Things device, and the first Internet of Things device and the second Internet of Things device can interact with each other through Bluetooth. For example, the second Internet of Things device can send data collected by sensors in the second Internet of Things device to the first Internet of Things device through Bluetooth.
[0085] Optionally, ZigBee devices can be arranged in the first Internet of Things device and the second Internet of Things device, and the first Internet of Things device and the second Internet of Things device can interact with each other through ZigBee. For example, the second Internet of Things device can send data collected by sensors in the second Internet of Things device to the first Internet of Things device through ZigBee.
[0086] S202, the first Internet of Things device determines a control instruction of the second Internet of Things device according to the first data.
[0087] The control instruction is used to control the second Internet of Things device. For example, if the second Internet of Things device is a curtain, a clothes hanger and a balcony lamp, the control instruction can control the curtain to open or close, control the clothes hanger to descend or ascend, and control the balcony lamp to open or close.
[0088] Optionally, the Internet of Things system can include multiple second Internet of Things devices, and the process of determining the control instruction of the second Internet of Things device by the first Internet of Things device according to the first data will be described in detail below by taking one second Internet of Things device as an example.
[0089] The first Internet of Things device can determine the control instruction of the second Internet of Things device according to the following possible implementation manners: the first Internet of Things device determines the environment information and the first state of the second Internet of Things device according to the first data. The environment information is information of an environment in which the first Internet of Things device and the second Internet of Things device are located. For example, if the first Internet of Things device and the second Internet of Things device are placed in a balcony, the environment information can be environment information of the balcony; if the first Internet of Things device and the second Internet of Things device are placed in a kitchen, the environment information can be environment information of the kitchen. The first state of the second Internet of Things device is used to indicate a current state of the second Internet of Things device. For example, if the second Internet of Things device is a balcony lamp, the first state of the balcony lamp can be on or off; if the second Internet of Things device is a clothes drying rack, the first state of the clothes drying rack can be rising or falling. Optionally, the environment information can be determined according to the first data. For example, in a balcony Internet of Things system, the illumination intensity of the balcony can be acquired according to a photosensitive sensor, the living body information in the balcony can be acquired according to an infrared sensor, and the working information of a washing machine can be acquired according to a rotating speed sensor. Optionally, the first state of the second Internet of Things device can be determined according to the first data. For example, according to the data collected by the sensor, it can be determined that the state of the balcony lamp is on or off, the state of the clothes drying rack is rising or falling, and the like.
[0090] Optionally, the first Internet of Things device determines the control instruction according to the environment information and the first state. Optionally, the first Internet of Things device acquires a first preset relationship between the environment information and the state of the Internet of Things device. The first preset relationship includes at least one environment information and the state of the Internet of Things device corresponding to each environment information. For example, the first preset relationship between the environment information and the state of the Internet of Things device can be as shown in Table 1:
[0091] Table 1
[0092] Environmental information State of the IoT device Environmental information 1 State 1 Environmental information 2 State 2 Environmental information 3 State 3 …… ……
[0093] It should be noted that Table 1 is only used to illustrate the first preset relationship between the environment information and the state of the Internet of Things device in the form of an example, and is not a limitation on the first preset relationship.
[0094] The first Internet of Things device determines the control instruction according to the environment information, the first state and the first preset relationship. Optionally, the first Internet of Things device determines the second state of the second Internet of Things device according to the environment information and the first preset relationship. For example, as shown in Table 1, when the environment information is environment information 1, the second state of the second Internet of Things device is state 1; when the environment information is environment information 2, the second state of the second Internet of Things device is state 2; and when the environment information is environment information 3, the second state of the second Internet of Things device is state 3.
[0095] Optionally, in the first preset relationship, each environment information can correspond to the state of multiple Internet of Things devices. For example, the environment information 1 can correspond to the state of the Internet of Things device A being state A, the state of the Internet of Things device B being state B, and the state of the Internet of Things device C being state C.
[0096] The first Internet of Things device determines the control instruction according to the first state and the second state. For example, if the first state and the second state are the same, the first Internet of Things device does not generate the control instruction, and if the first state and the second state are different, the first Internet of Things device generates the control instruction according to the second state. For example, when the first Internet of Things device is a washing machine and the second Internet of Things device is a balcony lamp, if the washing machine obtains the first state of the balcony lamp as the balcony lamp being off and the second state of the balcony lamp as the balcony lamp being off, the washing machine does not generate the control instruction; if the washing machine obtains the first state of the balcony lamp as the balcony lamp being off and the second state of the balcony lamp as the balcony lamp being on, the washing machine generates the control instruction of the balcony lamp being on according to the second state.
[0097] Next, the process in which the first Internet of Things device determines the control instruction of the second Internet of Things device according to the first data will be described in detail. Figure 3
[0098] Figure 3 A process diagram for determining a control instruction provided by an embodiment of the present application. Please refer to Figure 3 , including a washing machine and a balcony lamp. Among them, the washing machine is the first Internet of Things device in the Internet of Things system, and the balcony lamp is the second Internet of Things device in the Internet of Things system. The state of the balcony lamp is on.
[0099] Please refer to Figure 3 , after the sensor of the balcony lamp collects the sensing data, the balcony lamp sends the sensing data to the washing machine through Bluetooth. The washing machine can determine the environment information of the balcony where the washing machine and the balcony lamp are located and the second state of the balcony lamp corresponding to the environment information according to the sensing data collected by the sensor of the washing machine and the sensing data of the balcony lamp, and further determine the control instruction of the balcony lamp according to the state of the balcony lamp being on and the second state of the balcony lamp.
[0100] S203, the first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device.
[0101] The first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device. For example, when the first Internet of Things device is a washing machine and the second Internet of Things device is a clothesline, if the control instruction generated by the first Internet of Things device is to control the clothesline to descend, the washing machine can send the control instruction to the clothesline to control the clothesline to descend; if the control instruction generated by the first Internet of Things device is to control the clothesline to ascend, the washing machine can send the control instruction to the clothesline to control the clothesline to ascend.
[0102] The following will be described in detail in combination with Figures 4A-4B The process that the first Internet of Things device sends a control instruction to the second Internet of Things device to control the second Internet of Things device.
[0103] Figure 4A A process diagram for controlling the second Internet of Things device is provided in the embodiments of the present application. Please refer to Figure 4A , including a balcony. Among them, the balcony includes a washing machine and a balcony lamp, the washing machine is the first Internet of Things device in the Internet of Things system, and the balcony lamp is the second Internet of Things device in the Internet of Things system.
[0104] Please refer to Figure 4A , the state of the balcony lamp is closed, and the washing machine can generate a control instruction to open the balcony lamp according to the environmental information and the state of the balcony lamp, and send the control instruction to the balcony lamp. When the balcony lamp receives the control instruction sent by the washing machine, the balcony lamp is opened.
[0105] Figure 4B Another process diagram for controlling the second Internet of Things device is provided in the embodiments of the present application. Please refer to Figure 4B , including a balcony. Among them, the balcony includes a washing machine and a curtain, the washing machine is the first Internet of Things device in the Internet of Things system, and the curtain is the second Internet of Things device in the Internet of Things system.
[0106] Please refer to Figure 4B , the state of the curtain is closed, and the washing machine can generate a control instruction to open the curtain according to the environmental information and the state of the curtain, and send the control instruction to the curtain. When the curtain receives the control instruction sent by the washing machine, the curtain is opened.
[0107] Optionally, the first Internet of Things device can send multiple control instructions at the same time, and each control instruction controls one second Internet of Things device. For example, if the first Internet of Things device is a washing machine, the second Internet of Things device is a curtain, a balcony lamp and a clothes drying rack, the first Internet of Things device can send a control instruction to open the curtain to the curtain, a control instruction to close the balcony lamp to the balcony lamp, and a control instruction to raise the clothes drying rack to the clothes drying rack.
[0108] The embodiment of the application provides a control method of an Internet of Things device. A first Internet of Things device acquires sensing data of the first Internet of Things device through a sensor, acquires sensing data of a second Internet of Things device through Bluetooth, and determines environmental information and a first state of the second Internet of Things device according to the sensing data of the first Internet of Things device and the sensing data of the second Internet of Things device. The first Internet of Things device acquires a first preset relationship, and determines a second state of the second Internet of Things device according to the environmental information and the first preset relationship. The first Internet of Things device determines a control instruction of the second Internet of Things device according to the first state and the second state, and sends the control instruction to the second Internet of Things device to control the second Internet of Things device. In the above method, the first Internet of Things device can acquire the sensing data of the second Internet of Things device through Bluetooth, and the first Internet of Things device can directly control the second Internet of Things device, thereby avoiding that multiple second Internet of Things devices directly interact with a server, improving the network state in a family, avoiding communication delay caused by a small signal coverage range, and simultaneously not needing to set a device for communicating with the server in the second Internet of Things device, thereby reducing the production cost of the Internet of Things device.
[0109] In Figure 2 On the basis of the embodiment shown in the foregoing embodiment, the following Figure 5 The control method of the Internet of Things device is described in detail.
[0110] Figure 5 Another control method of an Internet of Things device is provided in the embodiment of the application. Please refer to Figure 5 The method can include the following steps.
[0111] S501, the first Internet of Things device acquires first data.
[0112] The first data includes sensing data collected by the first Internet of Things device and sensing data collected by the second Internet of Things device.
[0113] It should be noted that the execution process of S501 can refer to the execution process of S201, which will not be repeated here.
[0114] S502, the first Internet of Things device determines a control instruction of the second Internet of Things device according to the first data.
[0115] It should be noted that the execution process of S502 can refer to the execution process of S202, which will not be repeated here.
[0116] S503, the first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device.
[0117] It should be noted that the execution process of S503 can refer to the execution process of S203, which will not be repeated here.
[0118] S504, the first Internet of Things device sends the first data and the second state of the second Internet of Things device to the server.
[0119] The first Internet of Things device is provided with a network device, and when the first Internet of Things device sends a control instruction to the second Internet of Things device to control the second Internet of Things device, the first Internet of Things device can send the first data and the second state of the second Internet of Things device to the server through the network device. Optionally, the first Internet of Things device can be provided with a wireless fidelity (WiFi) module, and the first Internet of Things device can interact with the server through WiFi. For example, if the first Internet of Things device in the Internet of Things system is a washing machine, and the second Internet of Things device is a curtain and a clothes hanger, the washing machine can obtain the sensing data of the washing machine through a sensor, obtain the sensing data collected by the curtain and the clothes hanger through Bluetooth, and send the sensing data of the washing machine, the curtain and the clothes hanger, and the second state of the curtain and the clothes hanger to the server through WiFi. In this way, the server can use the first data and the second state of the second Internet of Things device as sample data to train a preset model and update the model in the first Internet of Things device in real time, thereby improving the accuracy of the control instruction of the second Internet of Things device determined by the first Internet of Things device according to the first data, and the user can also know the actual state of the second Internet of Things device in real time through the second state of the second Internet of Things device in the server.
[0120] Optionally, the server and the first Internet of Things device can send the control instruction to the second Internet of Things device. For example, the user can use a mobile phone to send a control instruction of the second Internet of Things device to the server, wherein the control instruction includes an identifier of the second Internet of Things device. When the server receives the control instruction of the second Internet of Things device, the server sends the control instruction of the second Internet of Things device to the first Internet of Things device, and the first Internet of Things device receives the control instruction of the second Internet of Things device and sends the control instruction to the second Internet of Things device according to the identifier of the second Internet of Things device. For example, if the user wants to control the balcony lamp to be turned off through the mobile phone, the user uses the mobile phone to send a control instruction to turn off the balcony lamp to the server, and when the server receives the control instruction to turn off the balcony lamp sent by the mobile phone, the server sends a control instruction to turn off the balcony lamp to the washing machine through WiFi. When the washing machine receives the control instruction to turn off the balcony lamp sent by the server, the washing machine sends a control instruction to turn off the balcony lamp to the balcony lamp through Bluetooth to control the balcony lamp to be turned off. In this way, when the user controls the second Internet of Things device through the server, the second Internet of Things device does not need to interact with the server, and the first Internet of Things device can send the control instruction to the second Internet of Things device through Bluetooth, thereby reducing the production cost of the Internet of Things device.
[0121] In the following, the application will be described in detail in combination with Figure 6, the process that the user controls the second Internet of Things device through the server is described in detail.
[0122] Figure 6 Another process diagram for controlling the second Internet of Things device is provided for the embodiments of the present application. Please refer to Figure 6 , including a mobile terminal, a server, a washing machine and a balcony lamp. Among them, the first Internet of Things device in the Internet of Things system is the washing machine, and the second Internet of Things device in the Internet of Things system is the balcony lamp. The washing machine and the balcony lamp perform data interaction through Bluetooth, and the washing machine and the server perform data interaction through a network device.
[0123] Please refer to Figure 6 , the page of the mobile terminal is the control page of the balcony lamp, and the state of the balcony lamp in the control page of the balcony lamp is the closed state. The control icon of the balcony lamp includes a closed icon and an open icon. When the user clicks the open icon, the mobile terminal sends the control instruction of opening the balcony lamp to the server. When the server receives the control instruction of opening the balcony lamp, it sends the control instruction of opening the balcony lamp to the washing machine through the network device. When the washing machine receives the control instruction sent by the server, it can send the control instruction of opening the balcony lamp to the balcony lamp to control the balcony lamp to open. In this way, when the user controls the second Internet of Things device through the server, the second Internet of Things device does not need to directly interact with the server, thereby reducing the cost of the second Internet of Things device.
[0124] The embodiments of the present application provide a control method of an Internet of Things device. The first Internet of Things device acquires first data, and determines a control instruction of the second Internet of Things device according to the first data. The first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device. The first Internet of Things device sends the first data and the second state of the second Internet of Things device to the server. In the above method, the first Internet of Things device can acquire the sensing data in the second Internet of Things device through Bluetooth, and send the sensing data in the first Internet of Things device and the sensing data in the second Internet of Things device, and the second state of the second Internet of Things device to the server through the network device. In this way, the accuracy of determining the control instruction of the second Internet of Things device according to the first data by the first Internet of Things device can be improved. At the same time, the user can know the actual state of the second Internet of Things device in real time through the second state of the second Internet of Things device in the server. When the user controls the second Internet of Things device through the server, the first Internet of Things device can acquire the control instruction in the server through the network device, and send the control instruction of the server to the second Internet of Things device through Bluetooth, avoiding the second Internet of Things device directly interacting with the server. The communication device for interacting with the server does not need to be set in the second Internet of Things device, thereby reducing the production cost of the Internet of Things device.
[0125] On the basis of any one of the above embodiments, in the following, combined withFigure 7 The process of the control method of the Internet of Things device is described in detail.
[0126] Figure 7 A process diagram of a control method of an Internet of Things device provided by an embodiment of the present application is shown. Please refer to Figure 7 , including a balcony. Among them, the balcony includes a washing machine, a balcony lamp and a user. The first Internet of Things device in the Internet of Things system is the washing machine, and the second Internet of Things device in the Internet of Things system is the balcony lamp. The washing machine and the balcony lamp are connected through Bluetooth, and the first state of the balcony lamp is the off state.
[0127] Please refer to Figure 7 , the balcony lamp sends the sensing data collected by the photosensitive sensor of the balcony lamp to the washing machine through Bluetooth, and the washing machine obtains the sensing data of the washing machine according to the infrared sensor. The washing machine can determine the environmental information and the first state of the balcony lamp according to the sensing data of the balcony lamp and the sensing data of the washing machine. For example, please refer to Figure 7 , the photosensitive sensor in the balcony lamp can determine that the illumination intensity in the balcony is weak, and the infrared sensor in the washing machine can determine that there is a user in the balcony according to the transmitted infrared rays. The washing machine determines that the environmental information is that there is a user in the balcony, the balcony illumination is weak, and the first state of the balcony lamp is the off state.
[0128] Please refer to Figure 7 , when the environmental information is that there is a user in the balcony and the balcony illumination is weak, the washing machine can determine that the second state of the balcony lamp is the on state according to the environmental information. Since the first state of the balcony lamp is different from the second state, at this time, the washing machine can generate a control instruction to turn on the balcony lamp and send the control instruction to the balcony lamp to control the balcony lamp to turn on.
[0129] Please refer to Figure 8 , when the user leaves the balcony, the environmental information changes, and the infrared rays emitted by the infrared sensor in the washing machine can determine that there is no user in the balcony. The balcony lamp sends the sensing data to the washing machine through Bluetooth, and the washing machine can determine that the environmental information is that there is no user in the balcony and the balcony illumination is strong according to the sensing data of the washing machine and the sensing data of the balcony lamp. The first state of the balcony lamp is the on state. When the environmental information is that there is no user in the balcony and the balcony illumination is strong, the washing machine can determine that the second state of the balcony lamp is the off state according to the environmental information. Since the first state of the balcony lamp is different from the second state, at this time, the washing machine can generate a control instruction to turn off the balcony lamp and send the control instruction to the balcony lamp to control the balcony lamp to turn off. In this way, the washing machine can obtain the sensing data of the balcony lamp through Bluetooth, and the washing machine can directly control the balcony lamp, avoiding the balcony lamp directly interacting with the server, so that the communication device for data interaction with the server does not need to be installed in the balcony lamp, thereby reducing the production cost of the Internet of Things device.
[0130] Figure 8 A schematic diagram of a control device of an Internet of Things device is provided for embodiments of the present application. The control device of the Internet of Things device 10 can be arranged in a first Internet of Things device. Please refer to Figure 9 The control device of the Internet of Things device 10 can include an acquisition device 11, a determination device 12 and a sending device 13, wherein:
[0131] The acquisition device 11 is configured to acquire, by the first Internet of Things device, first data, the first data including sensing data collected by the first Internet of Things device and sensing data collected by a second Internet of Things device;
[0132] The determination device 12 is configured to determine, by the first Internet of Things device, a control instruction of the second Internet of Things device according to the first data;
[0133] The sending device 13 is configured to send, by the first Internet of Things device, the control instruction to the second Internet of Things device to control the second Internet of Things device.
[0134] In a possible implementation, the determination device 12 is specifically configured to:
[0135] The first Internet of Things device determines, according to the first data, environmental information and a first state of the second Internet of Things device, the environmental information being information of an environment in which the first Internet of Things device and the second Internet of Things device are located;
[0136] The first Internet of Things device determines the control instruction according to the environmental information and the first state.
[0137] In a possible implementation, the determination device 12 is specifically configured to:
[0138] The first Internet of Things device acquires a first preset relationship between the environmental information and the state of the Internet of Things device, the first preset relationship including at least one environmental information and a state of an Internet of Things device corresponding to each environmental information;
[0139] The first Internet of Things device determines the control instruction according to the environmental information, the first state and the first preset relationship.
[0140] In a possible implementation, the determination device 12 is specifically configured to:
[0141] The first Internet of Things device determines, according to the environmental information and the first preset relationship, a second state of the second Internet of Things device;
[0142] The first Internet of Things device determines the control instruction according to the first state and the second state.
[0143] In a possible implementation, the determining apparatus 12 is specifically configured to:
[0144] if the first state and the second state are the same, the first Internet of Things device does not generate the control instruction;
[0145] if the first state and the second state are different, the first Internet of Things device generates the control instruction according to the second state.
[0146] In a possible implementation, the obtaining apparatus 11 is specifically configured to:
[0147] the first Internet of Things device obtains the sensing data of the first Internet of Things device through a sensor;
[0148] the first Internet of Things device obtains the sensing data of the second Internet of Things device through Bluetooth.
[0149] In another possible implementation, the sending apparatus 13 is further configured to:
[0150] the first Internet of Things device sends the first data and the second state of the second Internet of Things device to the server.
[0151] The control apparatus of the Internet of Things device provided by the embodiments of the present application can perform the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects are similar, which will not be repeated here.
[0152] The control apparatus of the Internet of Things device shown in the embodiments of the present application can be a chip, a hardware module, a processor, etc. Of course, the control apparatus of the Internet of Things device can be in other forms, which are not limited in the embodiments of the present application.
[0153] Figure 9 The hardware structure diagram of the control apparatus of the Internet of Things device provided by the present application is provided. Please refer to The control apparatus 20 of the Internet of Things device can include a processor 21 and a memory 22, wherein the processor 21 and the memory 22 can communicate; for example, the processor 21 and the memory 22 communicate through a communication bus 23, the memory 22 is used to store program instructions, and the processor 21 is used to call the program instructions in the memory to execute the control method of the Internet of Things device shown in any of the above method embodiments.
[0154] Optionally, the control apparatus 20 of the Internet of Things device can also include a communication interface, which can include a transmitter and / or a receiver.
[0155] Optionally, the processor can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or the like. The general-purpose processor can be a microprocessor or the like. The steps of the method disclosed in the present application can be directly embodied as the execution of hardware processor, or a combination of hardware and software modules in the processor.
[0156] The present application provides a readable storage medium, and the readable storage medium stores a computer program; the computer program is used for implementing the control method of the Internet of Things device according to any one of the above embodiments.
[0157] The present application provides a computer program product, and the computer program product includes instructions, when the instructions are executed, the computer executes the control method of the Internet of Things device.
[0158] All or part of the steps of the above method embodiments can be completed by program instruction related hardware. The foregoing program can be stored in a readable memory. When the program is executed, the steps of the foregoing method embodiments are executed; and the foregoing memory (storage medium) includes: a read-only memory (English: read-only memory, abbreviation: ROM), a RAM, a flash memory, a hard disk, a solid state disk, a magnetic tape, a floppy disk (English: floppy disk), an optical disc (English: optical disc), and any combination thereof.
[0159] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams according to the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal equipment to produce a machine, so that the instructions executed by the computer or other programmable terminal equipment produce a device for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.
[0160] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means that implement the function specified in the flowchart block or blocks and / or flowchart flow or flows and / or block or blocks of the block diagram.
[0161] These computer program instructions can also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions that are executed on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and / or flowchart flow or flows and / or block or blocks of the block diagram.
[0162] Obviously, persons having ordinary skill in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application belong to the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0163] In the present application, the term "comprising" and its variants can refer to non-limiting inclusion; the term "or" and its variants can refer to "and / or". In the present application, the terms "first", "second", etc. are used to distinguish similar objects, and do not necessarily refer to a specific order or sequence. In the present application, "a plurality of" refers to two or more. "And / or", which describes the relationship between the associated objects, means that there can be three relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after are in an "or" relationship.
Claims
1. A control method of an Internet of Things device, the method comprising: The method comprises the following steps: A first Internet of Things device acquires first data, the first data comprising sensing data collected by the first Internet of Things device and sensing data collected by a second Internet of Things device; The first Internet of Things device determines environmental information according to the sensing data collected by the first Internet of Things device and the sensing data collected by the second Internet of Things device; The environmental information comprises environmental information corresponding to the first Internet of Things device and environmental information corresponding to the second Internet of Things device; the environmental information corresponding to the first Internet of Things device is determined according to the sensing data of the first Internet of Things device, and the environmental information corresponding to the second Internet of Things device is determined according to the sensing data collected by the second Internet of Things device; The first Internet of Things device determines a first state of the second Internet of Things device according to the sensing data collected by the first Internet of Things device and the sensing data collected by the second Internet of Things device; The first Internet of Things device determines a control instruction according to the environmental information and the first state; The first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device.
2. The method of claim 1, wherein, The first Internet of Things device determines the control instruction according to the environmental information and the first state, comprising: The first Internet of Things device acquires a first preset relationship between the environmental information and the state of the Internet of Things device, the first preset relationship comprising at least one environmental information and the state of the Internet of Things device corresponding to each environmental information; The first Internet of Things device determines the control instruction according to the environmental information, the first state and the first preset relationship.
3. The method of claim 2, wherein, The first Internet of Things device determines the control instruction according to the environmental information, the first state and the first preset relationship, comprising: The first Internet of Things device determines a second state of the second Internet of Things device according to the environmental information and the first preset relationship; The first Internet of Things device determines the control instruction according to the first state and the second state.
4. The method of claim 3, wherein, The first Internet of Things device determines the control instruction according to the first state and the second state, comprising: If the first state and the second state are the same, the first Internet of Things device does not generate a control instruction; If the first state and the second state are different, the first Internet of Things device generates the control instruction according to the second state.
5. The method according to any one of claims 1 to 4, characterized in that, The first Internet of Things device acquires first data, comprising: The first Internet of Things device acquires sensing data of the first Internet of Things device through a sensor; The first Internet of Things device acquires sensing data of the second Internet of Things device through Bluetooth.
6. The method according to any one of claims 1 to 4, characterized in that, After the first Internet of Things device sends the control instruction to the second Internet of Things device to control the second Internet of Things device, the method further comprises: The first Internet of Things device sends the first data and a second state of the second Internet of Things device to a server.
7. A control device of an Internet of Things device, characterized in that, The method comprises an acquisition device, a determination device and a sending device, wherein: The acquisition device is configured to acquire, by a first Internet of Things device, first data, the first data comprising sensing data collected by the first Internet of Things device and sensing data collected by a second Internet of Things device; The determining apparatus is configured to determine environment information according to the sensing data collected by the first IoT device and the sensing data collected by the second IoT device; the environment information is composed of environment information corresponding to the first IoT device and environment information corresponding to the second IoT device; the environment information corresponding to the first IoT device is determined according to the sensing data of the first IoT device, and the environment information corresponding to the second IoT device is determined according to the sensing data collected by the second IoT device; the first IoT device determines a first state of the second IoT device according to the sensing data collected by the first IoT device and the sensing data collected by the second IoT device; and the first IoT device determines the control instruction according to the environment information and the first state. The sending apparatus is configured to send the control instruction to the second IoT device by the first IoT device to control the second IoT device.
8. A control device of an Internet of Things device, characterized by, The IoT device comprises: a processor and a memory; the memory is configured to store a computer program; the processor is configured to execute the computer program stored in the memory to implement the control method of the IoT device according to any one of claims 1 to 6.
9. A readable storage medium, characterized by, The readable storage medium stores a device control program, and when the device control program is executed by the processor, the control method of the IoT device according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the control method of the IoT device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Control method and device for intelligent household electrical appliances
CN105223936A
Control system, method and device of Internet Of Things (IOT)
CN106657398A