Control method and device

CN119439767BActive Publication Date: 2026-09-04HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310970364.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-02
Publication Date
2026-09-04
Estimated Expiration
2043-08-02

AI Technical Summary

Technical Problem

在全屋智能的场景下,一般需要用户在控制应用程序中对智能家居设备进行场景配置,智能家居设备一般根据配置的场景执行相应动作,对用户的专业化要求较高,且设备的智能化程度较低

Benefits of technology

[0027] Based on the embodiments of this application, the second device can subscribe to the first information through the subscription registration interface, so that after the first device determines the first information, it can send the first information to the second device, and the second device can perform the first operation according to the first information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119439767B_ABST
    Figure CN119439767B_ABST
Patent Text Reader

Abstract

The application provides a control method and device. The method can be applied to a first device and a second device, and the method comprises the following steps: the second device subscribes to first information, the first information being information related to the capability of the second device; the first device receives data information sent by one or more devices and determines the first information according to the data information sent by the one or more devices; after determining the second device that subscribes to the first information, the first device sends the first information to the second device; and the second device performs a first operation according to the first information. In the technical solution, the device can perform the corresponding operation without manual configuration by the user, so that the intelligent degree of the whole-house intelligence can be improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of whole-house intelligence, and more specifically, to a control method and device. Background Technology

[0002] Currently, users own an increasing number of smart home devices, making it easier to create a smart home ecosystem. In a smart home ecosystem, users typically need to configure scenes for smart home devices in a control app. These devices generally perform corresponding actions based on the configured scenes, requiring a high level of user expertise and resulting in a relatively low level of device intelligence. Summary of the Invention

[0003] This application provides a control method and device. In this technical solution, the device can perform corresponding operations without the need for manual configuration by the user, thereby improving the intelligence level of the whole house to a certain extent.

[0004] A first aspect provides a control method applied to a first device, the method comprising: receiving data information sent by one or more devices; determining first information based on the data information sent by the one or more devices; determining a second device subscribing to the first information; and sending the first information to the second device.

[0005] This data can be acquired by the device based on its own capabilities. For example, if the device is a temperature and humidity sensor, the data can be temperature, humidity, etc.; if the device is a camera, the data can be video footage or images.

[0006] The number of the second device can be one or more, and this application embodiment does not limit this. The type included in the first information can be one or more. For example, the first information includes one or more of the following: temperature, humidity, whether someone is home, whether no one is home.

[0007] Based on the embodiments of this application, a first device can receive data information sent by one or more devices and determine first information based on the data information; then, the first device can determine a second device that subscribes to the first information and send the first information to the second device.

[0008] In this way, the first device can receive data from one or more devices, integrate the data to determine first information, and then send the first information to a second device that has subscribed to it. This technical solution requires no manual configuration by the user; the first device can perform the above operations automatically, thereby improving the intelligence level of the first device.

[0009] In conjunction with the first aspect, in one implementation of the first aspect, determining the second device subscribing to the first information includes: receiving subscription information sent by the second device, the subscription information being used to instruct the second device to subscribe to the first information; and determining the second device subscribing to the first information based on the subscription information.

[0010] For example, the second device can send the subscription information to the first device when it first establishes a connection with the first device. This helps the first device determine which devices have subscribed to the first information.

[0011] Alternatively, the second device can send a request message to the connected device and receive subscription information from the device when it needs to determine which devices have subscribed to the first information, thereby determining which devices have subscribed to the first information.

[0012] This technical solution enables the first device to determine which second devices have subscribed to the first information, thereby allowing the first information to be accurately pushed to the second devices.

[0013] In conjunction with the first aspect, in one implementation of the first aspect, determining the second device subscribing to the first information includes: determining the second device subscribing to the first information from information stored in a cloud server.

[0014] For example, the second device can also upload the subscribed information to a cloud server, so that the first device can access the cloud server and determine which devices have subscribed to the first information.

[0015] In conjunction with the first aspect, in one implementation of the first aspect, when the first information is information with a specific numerical value, the step of sending the first information to the second device includes: determining whether the difference between the first information and the second information is greater than a threshold, wherein the second information is information related to the first information obtained by the second device; and when it is determined that the difference between the first information and the second information is greater than the threshold, sending the first information to the second device.

[0016] For example, the first information includes one or more of the following: temperature value, humidity value, heart rate value, and blood pressure value.

[0017] The threshold can be 0.5 or 0.3, etc., and the specific value of the threshold is not limited in the embodiments of this application.

[0018] Based on the embodiments of this application, when the first information is information with a specific value, the first device can determine whether the difference between the first information and the second information related to the first information obtained by the second device is greater than a threshold. When it is determined that the difference between the first information and the second information is greater than the threshold, the first information can be sent to the second device.

[0019] This technical solution enables the first device to send the changed first information to the second device when it determines that the data has changed, thereby allowing the second device to adjust the corresponding values ​​and make the values ​​in the second device more accurate.

[0020] In conjunction with the first aspect, in one implementation of the first aspect, before determining whether the difference between the first information and the second information is greater than a threshold, the method further includes: receiving the second information sent by the second device.

[0021] For example, the second device can periodically send second information to the first device, thereby updating the second information obtained by the first device. Alternatively, the second device can also send the changed second information to the first device when the second information changes, thereby enabling the first device to obtain the latest second information.

[0022] In conjunction with the first aspect, in one implementation of the first aspect, sending the first information to the second device includes: sending the first information and first indication information to the second device, wherein the first indication information is used to instruct the second device to perform a first operation according to the first information.

[0023] For example, the first device can determine the first operation it needs to perform based on the capability information of the second device.

[0024] Based on the embodiments of this application, the first device can also send first information and first instruction information to the second device, wherein the first instruction information is used to instruct the second device to perform a first operation according to the first information. This technical solution enables the second device to perform specific operations.

[0025] A second aspect provides a control method applied to a second device, the method comprising: subscribing to first information, the first information being information related to the capabilities of the second device; receiving the first information sent by a first device; and performing a first operation based on the first information.

[0026] For example, the second device can subscribe to the corresponding first information through a subscription registration interface, and can specify the first operation to be performed by the second device after receiving the first information.

[0027] Based on the embodiments of this application, the second device can subscribe to the first information through the subscription registration interface, so that after the first device determines the first information, it can send the first information to the second device, and the second device can perform the first operation according to the first information.

[0028] This allows the second device to subscribe to various types of information, thereby increasing the diversity of actions it can perform. Furthermore, this technical solution eliminates the need for manual configuration by the user, enabling the second device to automatically execute corresponding actions and enhancing its level of intelligence.

[0029] In conjunction with the second aspect, in one implementation of the second aspect, the method further includes: sending subscription information to the first device, the subscription information being used to instruct the second device to subscribe to the first information.

[0030] For example, the second device can send subscription information to the first device when it first establishes a connection with the first device.

[0031] Based on the embodiments of this application, the second device may also send subscription information to the first device to instruct the second device to subscribe to the first information, thereby helping the first device to determine which devices have subscribed to the first information.

[0032] In conjunction with the second aspect, in one implementation of the second aspect, the method further includes: sending subscription information to a cloud server, the subscription information being used to instruct the second device to subscribe to the first information.

[0033] For example, the second device can upload subscription information to the cloud server when it first connects to the home network.

[0034] Based on the embodiments of this application, the second device can also send subscription information to the cloud server to instruct the second device to subscribe to the first information, thereby enabling the first device to obtain from the cloud server which devices have subscribed to the first information.

[0035] In conjunction with the second aspect, in one implementation of the second aspect, the method further includes: acquiring second information related to the first information; and sending the second information to the first device.

[0036] For example, the second device may periodically send the second information to the first device. Alternatively, the second device may send the changed second information to the first device when it determines that the second information has changed, thereby enabling the first device to obtain the latest second information.

[0037] Based on the embodiments of this application, the second device can also acquire second information related to the first information and send the second information to the first device. This facilitates decision-making and judgment by the first device.

[0038] In conjunction with the second aspect, in one implementation of the second aspect, the method further includes: receiving first indication information sent by the first device; wherein, performing a first operation according to the first information includes: performing a first operation according to the first indication information.

[0039] Based on the embodiments of this application, the second device may also receive first instruction information sent by the first device, so that the second device can clearly specify which operations to perform.

[0040] In other examples, the second device may also perform the first operation directly based on the first information without receiving the first instruction information. In this case, the first device does not send the first instruction information to the second device.

[0041] For example, if the first information is temperature, specifically 28 degrees Celsius, and the second device is a smart air conditioner displaying a temperature of 25 degrees Celsius, then after receiving the first information, the second device can adjust the displayed temperature to 28 degrees Celsius based on that information. Alternatively, if the first information is that no one is home, and the second device is a smart air conditioner, upon receiving the first information, the second device can turn off the smart air conditioner to save power.

[0042] A third aspect provides a first device comprising: one or more processors; one or more memories; said one or more memories storing one or more programs that, when executed by said one or more processors, cause a control method as described in the first aspect and any possible implementation thereof to be executed.

[0043] The fourth aspect provides a second device comprising: one or more processors; one or more memories; said one or more memories storing one or more programs that, when executed by said one or more processors, cause the control method as described in the second aspect and any possible implementation thereof to be executed.

[0044] This application also provides a system including a first device as described in the third aspect and a second device as described in the fourth aspect.

[0045] The fifth aspect provides an apparatus including modules for implementing the control methods described in the first aspect, the second aspect, and any possible implementation thereof.

[0046] A sixth aspect provides an apparatus comprising a processor and a communication interface for receiving and transmitting signals to the processor, the processor processing the signals such that a control method as described in the first aspect and any possible implementation thereof is executed.

[0047] The seventh aspect provides an apparatus comprising a processor and a communication interface for receiving and transmitting signals to the processor, the processor processing the signals such that a control method as described in the second aspect and any possible implementation thereof is executed.

[0048] The device in the sixth and seventh aspects can be a chip. For example, the chip can be a chip system or a standalone chip, etc.

[0049] The eighth aspect provides a readable storage medium storing instructions that, when executed on a device, cause the control method described in the first aspect and any possible implementation thereof to be performed.

[0050] A ninth aspect provides a readable storage medium storing instructions that, when executed on a device, cause the control method described in the second aspect and any possible implementation thereof to be performed.

[0051] The tenth aspect provides a program product comprising program code that, when run on a device, causes the control method described in the first aspect and any possible implementation thereof to be executed.

[0052] The eleventh aspect provides a program product comprising program code that, when run on a device, causes the control method described in the second aspect and any possible implementation thereof to be executed. Attached Figure Description

[0053] Figure 1 This is a schematic diagram of the scenarios to which this application can be applied.

[0054] Figure 2 This is a schematic interactive diagram of a control method provided in an embodiment of this application.

[0055] Figure 3 This is a schematic interactive diagram of another control method provided in the embodiments of this application.

[0056] Figure 4 This is a schematic flowchart of a control method provided in an embodiment of this application.

[0057] Figure 5 This is a schematic flowchart of another control method provided in the embodiments of this application.

[0058] Figure 6 This is a schematic block diagram of a device provided in an embodiment of this application. Detailed Implementation

[0059] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0060] The technical solutions in this application can be applied to control equipment, Internet of Things (IoT) devices, etc.

[0061] The control devices in this application embodiment include intelligent hosts, etc. Internet of Things (IoT) devices include smart TVs, smart desk lamps, smart speakers, smart air conditioners, security cameras, temperature and humidity sensors, wearable devices, smart curtains, smart door locks, etc., and this application embodiment does not specifically limit these.

[0062] Currently, users own an increasing number of smart home devices, making it easier to create a smart home ecosystem. In a smart home ecosystem, users typically need to configure scenes for smart home devices in a control app. These devices generally perform corresponding actions based on the configured scenes, requiring a high level of user expertise and resulting in a relatively low level of device intelligence.

[0063] In view of this, embodiments of this application provide a control method and device. In this technical solution, the device can perform corresponding operations without requiring manual configuration by the user, thereby improving the level of intelligence of the whole house to a certain extent.

[0064] Figure 1 This is a schematic diagram illustrating the scenarios to which this application can be applied. For example... Figure 1 As shown, the scenario may include at least the following devices: device 100a, smart switch 100b, smart desk lamp 100c, smart air conditioner 100d, smart speaker 100e, etc.

[0065] For example, the device 100a can be a whole-house smart home hub. The smart switch 100b, smart desk lamp 100c, smart air conditioner 100d, smart speaker 100e, and other devices are smart devices owned by the user under the whole-house smart home system.

[0066] The smart switch 100b, smart desk lamp 100c, smart air conditioner 100d, and smart speaker 100e can wirelessly connect to device 100a. This wireless connection method includes, but is not limited to, Bluetooth, Bluetooth Low Energy, Wi-Fi, and Ultra Wide Bandwidth (UWB). The smart switch 100b, smart desk lamp 100c, smart air conditioner 100d, and smart speaker 100e can also be wired to device 100a. This wired connection method includes, but is not limited to, power line communication (PLC) connection and Ethernet connection.

[0067] In some examples, the aforementioned smart devices can send their own capability information to device 100a. For instance, a smart switch 100b for a living room light, which has the ability to turn the light on or off, automatically sends this capability information to device 100a. Similarly, a smart desk lamp 100c, which has a lighting function, automatically sends this lighting capability information to device 100a. A smart air conditioner 100d, which has the ability to adjust temperature, humidity, and air cleanliness, automatically sends this capability information to device 100a. Likewise, a smart speaker 100e, which has the ability to play music and voice messages, automatically sends this capability information to device 100a.

[0068] It should be understood that all smart devices owned by the user under the whole-house smart system automatically send their own capability information to device 100a, so that device 100a can obtain the various capabilities of each device, so as to integrate various capability information.

[0069] In this embodiment, the aforementioned smart device can subscribe to various information related to its own capabilities. For example, each smart device connected to the whole-house smart system can integrate a software development kit (SDK) for the corresponding whole-house smart services. This SDK can provide a corresponding subscription and registration interface, allowing the smart device to subscribe to various information by calling this subscription and registration interface.

[0070] For example, the smart air conditioner 100a can subscribe to temperature information, humidity information, and home occupancy information through this subscription registration interface.

[0071] It is understandable that each smart device can subscribe to one or more pieces of information through the aforementioned subscription registration interface. The smart device can also send the subscribed information to device 100a so that device 100a can push the changed information to the corresponding smart device when the aforementioned information changes.

[0072] It should be understood that the names of the subscription / registration interfaces described above are merely illustrative. In other examples, the interface may also be called a subscription interface, a registration interface, or some other interface.

[0073] In other examples, the aforementioned smart devices can also automatically send data acquired through their own capabilities to device 100a, enabling device 100a to make corresponding judgments and decisions.

[0074] For example, device 100a can determine several target information based on data information sent by various devices. For example, the target information may include one or more of the following: room temperature value, humidity value, whether there is someone in the room or whether there is someone in the house.

[0075] For example, device 100a determines the room temperature to be 28 degrees Celsius based on data from multiple devices (such as multiple temperature and humidity sensors), while smart air conditioner 100d determines the temperature to be 25 degrees Celsius (e.g., the temperature displayed on the air conditioner). Device 100a determines that smart air conditioner 100a has subscribed to temperature information, and can then send the determined temperature value of 28 degrees Celsius to smart air conditioner 100d so that smart air conditioner 100d can adjust the temperature accordingly. Alternatively, device 100a can also send the determined temperature value of 28 degrees Celsius along with an instruction to smart air conditioner 100d to continue cooling so that the room temperature eventually reaches 25 degrees Celsius.

[0076] For example, device 100a determines that no one is home using multiple devices (such as millimeter-wave sensors and cameras). Device 100a also determines that smart air conditioner 100a has subscribed to home occupancy information. At this time, smart air conditioner 100d is still working. Device 100a can then send the home occupancy information to smart air conditioner 100d. Afterward, smart air conditioner 100d can stop working based on this home occupancy information, or stop working after a preset time, thereby saving electricity and avoiding unnecessary resource waste.

[0077] For example, device 100a determines that someone is in the room through multiple devices (such as millimeter-wave sensors, cameras, etc.). Device 100a also determines that smart air conditioner 100a has subscribed to information about someone being in the room. In this case, device 100a can send the information about someone being in the room to smart air conditioner 100d. After receiving the information about someone being in the room, smart air conditioner 100d can adjust its airflow direction to avoid blowing directly on the user.

[0078] The following will combine Figure 2-5 The control methods described in the embodiments of this application are introduced.

[0079] For example, Figure 2 This is a schematic interactive diagram illustrating a control method provided in an embodiment of this application. For example... Figure 2 As shown, the method 200 may include steps 210 to 260.

[0080] In some examples, device A and device C are the aforementioned smart devices, and device B is the smart host. Device A and device C are connected to device B wirelessly or via a wired connection.

[0081] 210. Device C subscribes to first information related to its own capabilities.

[0082] For example, device C may integrate an SDK for whole-house smart home services. This SDK may provide a corresponding subscription and registration interface, allowing smart devices to subscribe to various information by calling this interface.

[0083] For example, if device C is a smart air conditioner with the ability to regulate temperature, humidity, and air cleanliness, then the first information includes temperature information, humidity information, and air cleanliness information. Since the user may only need to turn on the air conditioner when at home, and can turn it off when the user is away to save power, the first information also includes one or more of the following: no one is home, someone is home, no one is in the room, and someone is in the room.

[0084] After device C subscribes to the aforementioned first information, device C can perform different functional operations upon receiving different first information.

[0085] In this way, device C can conveniently subscribe to various information through the aforementioned subscription and registration interface, thereby improving the intelligence level of device C and the diversity of usage results to a certain extent.

[0086] 220. Device A acquires data related to its own capabilities.

[0087] In one example, a user's smart home system might include multiple devices of the same type, each capable of acquiring data related to its own capabilities. For instance, if device A is a temperature and humidity sensor, the user's room might have multiple temperature and humidity sensors, which could be installed in different locations within the room. In this case, each temperature and humidity sensor can be used to acquire data such as temperature and humidity in the vicinity of its installation location. Alternatively, the user's home might have multiple rooms, each of which could have one or more temperature and humidity sensors installed.

[0088] In another example, a user's smart home system might include multiple different types of devices A. For instance, device A1 might be a temperature and humidity sensor, device A2 a security camera, and device A3 a smart door lock. In this case, each device A acquires different data. Device A1 acquires temperature and humidity information, device A2 acquires video and image information, and device A3 acquires fingerprint information.

[0089] In some cases, the number of devices A can be one, but this application embodiment does not limit this.

[0090] 230. Device A sends data information to Device B. Device B then receives the data information.

[0091] For example, device A can send data information to device B once at preset intervals. Alternatively, device A can send the data information to device B when it first receives the data information, and send the changed data information to device B when it is determined that the received data information has changed subsequently.

[0092] 240. Device B determines the first information based on one or more data pieces.

[0093] In one example, when there is only one device A, device B can determine the first piece of information based on the data sent by that single device A. For instance, if device A is a camera in a room, and the data is a video clip of a preset duration captured by the camera, then device B can determine whether there is anyone in the room based on the video clip. If device B analyzes the video clip and determines that no one is present, then device B can determine that the room is empty; if device B analyzes the video clip and determines that someone is present, then device B can determine that someone is in the room.

[0094] In another example, when there are multiple devices A, device B can determine the first information based on the data sent by these multiple devices A. For instance, if device A is a temperature and humidity sensor, and multiple temperature and humidity sensors are installed in a user's room, each sensor can acquire information such as temperature and humidity values. If the first information is temperature information, device B can determine the final first information based on multiple temperature values. For example, device B can use the average of multiple temperature values ​​as the first information, or the average of multiple temperature values ​​excluding the maximum and minimum values. This makes the determined first information more accurate.

[0095] In another example, when there are multiple devices A, and these devices A are of different types, device B can determine the first piece of information based on the data sent by these multiple devices A. For example, if device A1 is a camera in room A, and device A2 is a millimeter-wave sensor, then the data sent by device A1 is video footage, and the data sent by device A2 is information acquired by the millimeter-wave sensor. If the first piece of information is whether anyone is home, then device B can determine whether anyone is home based on the video footage and the information acquired by the millimeter-wave sensor.

[0096] 250, Device B determines that Device C is subscribing to the first information.

[0097] In one example, device C can send its subscribed first information to device B, allowing device B to determine which devices have subscribed to the first information. For instance, when all smart devices in a user's smart home establish a connection with device B for the first time, they can send their own subscribed first information to device B. Device B can store the correspondence between device names and their subscribed first information. Thus, in step 250, device B can determine the corresponding device name by querying the first information, thereby identifying device C that has subscribed to the first information.

[0098] In other examples, device C can also upload the first information of its subscription to a cloud server, so that device B can obtain information from the cloud server about which devices have subscribed to the first information.

[0099] It should be understood that in other examples, device B may also obtain the information of device C that has subscribed to the first information through other means. The specific implementation method of device B obtaining the information of device C that has subscribed to the first information is not limited in the embodiments of this application.

[0100] 260. Device B sends the first message to device C. Correspondingly, device C receives the first message.

[0101] It should be understood that when device B determines that there are multiple devices C that have subscribed to the first information, it can send the first information to all of the multiple devices C. In this case, the multiple devices C can be of the same type or different types, and this application embodiment does not limit this.

[0102] 270. Device C performs the first operation based on the first information.

[0103] After receiving the first information, device C can perform the corresponding first operation.

[0104] For example, device C is a smart air conditioner that subscribes to temperature information. This first piece of information is temperature data. Device B determines the temperature to be 28 degrees Celsius using multiple temperature and humidity sensors. Device B can then send this 28 degrees Celsius to the smart air conditioner. If the smart air conditioner is currently displaying a temperature of 25 degrees Celsius, this first operation can be to adjust the displayed temperature to 28 degrees Celsius. This makes the temperature displayed by the air conditioner more accurate.

[0105] Alternatively, device C can be a smart air conditioner. The first piece of information is that the room is unoccupied. After device B confirms the room is unoccupied, it can send this information to the smart air conditioner. If the smart air conditioner is already running, the first action can be to stop it or stop it after a preset time. In this way, the smart air conditioner stops operating when the room is unoccupied, saving energy and avoiding unnecessary resource waste.

[0106] For example, device C is a smart air conditioner. The first piece of information is that someone is in the room. After device B confirms that someone is in the room, it can send this information to the smart air conditioner. If the smart air conditioner is already running, this first action can be to adjust the airflow direction to avoid blowing directly on the user. In this way, when someone is in the room, the smart air conditioner can adjust the airflow direction to avoid blowing directly on the user without any user intervention, providing a better user experience.

[0107] In other examples, device B may also send a first instruction to device C, which can be used to instruct device C to perform a first operation. In this case, device C can perform the first operation based on the first instruction.

[0108] For example, device B can determine the first operation it needs to perform based on the capability information of device C, and thus send first instruction information to device C to instruct device C to perform the first operation. For example, if device C is a smart air conditioner, the first information is that someone is in the room, and the first instruction information can be used to instruct the smart air conditioner to turn on cooling or heating to regulate the room temperature.

[0109] It is understood that the above description uses device C as an example of a smart air conditioner, but this should not limit the scope of application of the embodiments of this application in any way. In other examples, device C may also be other Internet of Things devices, and the embodiments of this application are not limited thereto.

[0110] It should also be understood that the specific execution order of steps 210 to 270 described above is not limited in the embodiments of this application. In other examples, some steps in steps 210 to 270 may be omitted or replaced by other steps. For example, step 210 may be omitted, in which case it can be assumed that device C has already subscribed to the first information, and method 200 may start execution from step 220.

[0111] Based on the embodiments of this application, the smart device C can subscribe to various first information. When the smart host determines the corresponding first information through data information obtained from other smart devices A, it can send the first information to the smart device C. The smart device C can then perform the corresponding first operation based on the first information.

[0112] In this way, smart device C can subscribe to various information based on its own capabilities, thereby improving its intelligence level to a certain extent. Furthermore, after device B determines the corresponding initial information from data obtained from other smart device A, it can send this initial information to smart device C, causing smart device C to automatically perform the corresponding operation, thus eliminating the need for manual configuration by the user and improving the user experience. Further, device B (e.g., a smart host) can integrate information from multiple devices and make decisions, thereby improving the intelligence level of the first device. Consequently, device C's elimination of the need for information integration and decision-making simplifies its functional configuration and significantly reduces its cost and development difficulty.

[0113] Figure 3 This is a schematic interactive diagram of another control method provided in an embodiment of this application. The method 300 may include steps 310 to 395.

[0114] 310, Device C subscribes to the first information.

[0115] 320. Device A acquires data related to its own capabilities.

[0116] 330. Device A sends data information to Device B. Device B then receives the data information.

[0117] It should be understood that steps 310-330 can be found in the relevant descriptions in steps 210-230, and for the sake of brevity, they will not be repeated here.

[0118] 340, Device C acquires second information related to the first information.

[0119] For example, if device C is a smart air conditioner and the first information is temperature information, then the second information can be a specific temperature value obtained from the smart air conditioner, such as the temperature value displayed on the smart air conditioner. Alternatively, if device C is a central control panel, the second information can be the temperature value displayed on the central control panel.

[0120] 350. Device C sends a second message to device B. Correspondingly, device C receives this second message.

[0121] For example, device C may periodically send the second information to device B, or device C may send the second information to device B when the second information changes. This application embodiment does not limit this.

[0122] 360. Device B determines the first information based on one or more data pieces.

[0123] 370, Device B determines that Device C is subscribing to the first information.

[0124] It should be understood that steps 360-370 can be found in the relevant descriptions in steps 240-250, and for the sake of brevity, they will not be repeated here.

[0125] 380. Device B determines whether the difference between the first information and the second information is greater than the threshold.

[0126] The specific value of the threshold is not limited in the embodiments of this application. For example, the threshold can be 0.5 or 0.3, etc.

[0127] For example, the first information is temperature information, such as the temperature value determined by device B, and the second information is the temperature value displayed in device C. Device B can compare the first information and the second information to determine whether the difference between the first information and the second information is greater than a threshold.

[0128] In other examples, the first information may also include one or more of the following: humidity information, heart rate value, blood pressure value, etc., which have specific numerical values.

[0129] 390. When device B determines that the difference between the first information and the second information is greater than a threshold, it sends the first information to device C. Accordingly, device C receives the first information.

[0130] In other examples, when device B determines that the difference between the first and second pieces of information is less than or equal to a threshold, it may not send the first piece of information to device C. In this way, since the difference between the first and second pieces of information is small, it can be understood that the values ​​of the first and second pieces of information are the same, and the data has not changed. Therefore, device B can choose not to send the first piece of information to device C, thereby saving power consumption for both devices B and C.

[0131] 395, Device C performs the first operation based on the first information.

[0132] For example, the first information is temperature information, the specific value of the second information obtained by device C is 25, and the temperature value determined by device B is 28 degrees. At this time, device B can send the temperature value of 28 degrees to device C. After receiving the temperature value of 28 degrees, device C can modify the temperature to 28 degrees.

[0133] For example, device C is a smart air conditioner, a central control panel, or other smart device that can display temperature information. This makes the values ​​displayed by smart air conditioners, central control panels, and other such devices more accurate.

[0134] It should be understood that the specific execution order of steps 310 to 395 described above is not limited in the embodiments of this application. For example, steps 340-350 may be executed before or simultaneously with step 320. In other examples, some steps among steps 310 to 395 may be omitted or replaced by other steps. For example, step 310 may be omitted. In this case, it can be assumed that device C has already subscribed to the first information, and method 300 can start execution from step 320.

[0135] In other examples, device B may also send a first instruction to device C, which can be used to instruct device C to perform a first operation. In this case, device C can perform the first operation according to the first instruction, as detailed in the preceding description.

[0136] Based on the embodiments of this application, device C can subscribe to first information and obtain second information related to the first information; then, device C can send the second information to device B; device A can obtain data information related to its own capabilities and send the data information to device B; device B can determine the first information based on the first or multiple data information, determine the device C that subscribed to the first information, and determine whether the difference between the first information and the second information is greater than a threshold; when it is determined that the difference between the first information and the second information is greater than the threshold, the device B sends the first information to device C so that device C performs a first operation based on the first information.

[0137] In this way, device C can subscribe to various information based on its own capabilities, thereby improving its intelligence level to a certain extent. Furthermore, device B (e.g., a smart host) can integrate information from multiple devices and make decisions, thus enhancing the intelligence level of the first device. Consequently, device C's elimination of the need for information integration and decision-making simplifies its configuration and significantly reduces its cost and development difficulty. Moreover, this technical solution can automatically calibrate the data in device C without manual user configuration, resulting in more accurate displayed values.

[0138] It is understood that the technical solutions in the above embodiments can be combined with each other to form new technical solutions, and such technical solutions should not be considered to be outside the scope of protection of this application.

[0139] Figure 4 This is a schematic flowchart illustrating a control method provided in an embodiment of this application. Figure 4 As shown, the method 400 can be applied to the first device, and the method 400 may include steps 410 to 440.

[0140] 410, The first device receives data information sent by one or more devices.

[0141] For example, the data information can be information acquired by the device based on its own capabilities. For instance, if the device is a temperature and humidity sensor, the corresponding data information can be temperature and humidity; if the device is a camera, the corresponding data information can be video footage; if the device is a smart door lock, the corresponding data information can be detected fingerprint information.

[0142] These multiple devices can also be of the same type; for example, they can all be temperature and humidity sensors.

[0143] 420, The first device determines the first information based on data information sent by one or more devices.

[0144] For example, the first information includes one or more of the following: temperature, humidity, whether the house is empty, whether the house is occupied, whether the room is empty, and whether the room is occupied.

[0145] The first piece of information can include one or more types of information. Alternatively, a device can subscribe to multiple pieces of information.

[0146] The first device determines the first information based on data information sent by one or more devices. For a detailed description of this, please refer to the relevant description of device B determining the first information in step 240 above.

[0147] 430, the first device determines the second device to subscribe to the first information.

[0148] In one example, the second device can send the subscribed first information to the first device, allowing the first device to determine which devices have subscribed to the first information. For instance, when all the smart devices in a user's smart home establish a connection with the first device for the first time, they can send their subscribed information to the first device. The first device can store the correspondence between device names and their subscribed information, allowing it to determine the corresponding device name by querying the first information, and thus identify the second devices that have subscribed to the first information.

[0149] In other examples, the second device can also upload the subscription information to a cloud server, so that the first device can obtain information from the cloud server about which devices have subscribed to the first information.

[0150] It should be understood that in other examples, the first device may also obtain the second device that has subscribed to the first information through other means. The specific implementation method of the first device obtaining the second device that has subscribed to the first information is not limited in the embodiments of this application.

[0151] 440, the first device sends the first message to the second device.

[0152] In one implementation, the first device may send the first information to the second device after determining the first information each time.

[0153] In another implementation, the first device may also send the changed first information to the second device when the first information changes.

[0154] In another implementation, the first device may also send first information to the second device at preset time intervals.

[0155] The number of the second device can be one or more, and this application embodiment does not limit it.

[0156] Based on the embodiments of this application, a first device can receive data information sent by one or more devices and determine first information based on the data information; then, the first device can determine a second device that subscribes to the first information and send the first information to the second device.

[0157] In this way, the first device can receive data from one or more devices, integrate the data to determine first information, and then send the first information to a second device that has subscribed to it. This technical solution requires no manual configuration by the user; the first device can perform the above operations automatically, thereby improving the intelligence level of the first device.

[0158] In some embodiments, the first device determines the second device that subscribes to the first information, including:

[0159] The first device receives subscription information sent by the second device, and the subscription information is used to instruct the second device to subscribe to the first information;

[0160] The first device determines the second device to subscribe to the first information based on the subscription information.

[0161] The subscription information can also include various other information. For example, if the second device is a smart air conditioner, the subscription information may include temperature information, humidity information, and information such as whether the home is unoccupied. In this case, the first information may include one or more of these various types of information.

[0162] For example, the second device can send the subscription information to the first device when it first establishes a connection with the first device. This helps the first device determine which devices have subscribed to the first information.

[0163] Alternatively, the second device can send a request message to the connected device and receive subscription information from the device when it needs to determine which devices have subscribed to the first information, thereby determining which devices have subscribed to the first information.

[0164] This technical solution enables the first device to determine which second devices have subscribed to the first information, thereby allowing the first information to be accurately pushed to the second devices.

[0165] In some embodiments, the first device determines the second device that subscribes to the first information, including:

[0166] The first device determines the second device to subscribe to the first information from the information stored on the cloud server.

[0167] For example, the second device can also upload the subscribed information to a cloud server, so that the first device can access the cloud server and determine which devices have subscribed to the first information.

[0168] This technical solution enables the first device to determine which second devices have subscribed to the first information, thereby allowing the first information to be accurately pushed to the second devices.

[0169] In some embodiments, when the first information is information with a specific numerical value, the process of the first device sending the first information to the second device includes:

[0170] The first device determines whether the difference between the first information and the second information is greater than a threshold, where the second information is information related to the first information obtained by the second device.

[0171] When the first device determines that the difference between the first information and the second information is greater than a threshold, it sends the first information to the second device.

[0172] For example, the first information includes one or more of the following: temperature value, humidity value, heart rate value, and blood pressure value.

[0173] The second information can be related to the first information. For example, when the first information is a temperature value, the second information can also be a temperature value, so that the first device can compare the first information with the second information.

[0174] The threshold can be 0.5 or 0.3, etc., and the specific value of the threshold is not limited in the embodiments of this application.

[0175] Based on the embodiments of this application, when the first information is information with a specific value, the first device can determine whether the difference between the first information and the second information related to the first information obtained by the second device is greater than a threshold. When it is determined that the difference between the first information and the second information is greater than the threshold, the first information can be sent to the second device.

[0176] This technical solution enables the first device to send the changed first information to the second device when it determines that the data has changed, thereby allowing the second device to adjust the corresponding values ​​and make the values ​​in the second device more accurate.

[0177] In some embodiments, before the first device determines whether the difference between the first information and the second information is greater than a threshold, the method 400 further includes:

[0178] The first device receives the second information sent by the second device.

[0179] For example, the second device can periodically send second information to the first device, thereby updating the second information obtained by the first device. Alternatively, the second device can also send the changed second information to the first device when the second information changes, thereby enabling the first device to obtain the latest second information.

[0180] In some embodiments, the first device sends first information to the second device, including:

[0181] The first device sends first information and first instruction information to the second device. The first instruction information is used to instruct the second device to perform the first operation according to the first information.

[0182] For example, the first device can determine the first operation it needs to perform based on the capability information of the second device.

[0183] For example, if the second device is a smart air conditioner that has the ability to regulate temperature and humidity, then the first operation can be related to regulating temperature and humidity.

[0184] Based on the embodiments of this application, the first device can also send first information and first instruction information to the second device, wherein the first instruction information is used to instruct the second device to perform a first operation according to the first information. This technical solution enables the second device to perform specific operations.

[0185] Figure 5 This is a schematic flowchart illustrating another control method provided in an embodiment of this application. Figure 5 As shown, the method 500 can be applied to a second device, and the method 500 may include steps 510 to 530.

[0186] 510, The second device subscribes to the first information, which is information related to the capabilities of the second device.

[0187] The second device can integrate an SDK for whole-house smart home services. This SDK can provide corresponding subscription and registration interfaces, allowing the second device to subscribe to various information by calling these interfaces.

[0188] For example, the second device can be a smart air conditioner, which has the ability to regulate temperature, humidity, etc. The smart air conditioner can subscribe to one or more of the following information through the subscription registration interface: temperature information, humidity information, and no one at home.

[0189] 520, the second device receives the first information sent by the first device.

[0190] For example, after the first device determines the first information, it can directly send the first information to the second device, which then receives the first information.

[0191] Alternatively, the first device may periodically send the first information to the second device, and the second device may periodically receive the first information sent by the first device.

[0192] 530, the second device performs the first operation based on the first information.

[0193] The first operation can be related to the capabilities of the second device. For example, if the second device is a smart air conditioner, the second operation could be adjusting the temperature or humidity. Alternatively, when the first information indicates that no one is home, the first operation could be turning off the smart air conditioner, thereby saving electricity and avoiding unnecessary waste of resources.

[0194] It should be understood that the first operation performed by the second device based on the first information can be determined by the second device when it subscribes to the first information through the subscription registration interface. In this way, the second device can subscribe to various information based on the capability information and specify the corresponding actions to be performed.

[0195] Based on the embodiments of this application, the second device can subscribe to the first information through the subscription registration interface, so that after the first device determines the first information, it can send the first information to the second device, and the second device can perform the first operation according to the first information.

[0196] This allows the second device to subscribe to various types of information, thereby increasing the diversity of actions it can perform. Furthermore, this technical solution eliminates the need for manual configuration by the user, enabling the second device to automatically execute corresponding actions and enhancing its level of intelligence.

[0197] In some embodiments, the method 500 further includes:

[0198] The second device sends subscription information to the first device, which instructs the second device to subscribe to the first information.

[0199] For example, the second device can send subscription information to the first device when it first establishes a connection with the first device.

[0200] In other examples, the subscription information can also be used to indicate information other than the first information. For example, if the first information is temperature information, the subscription information may include both temperature and humidity information.

[0201] Based on the embodiments of this application, the second device may also send subscription information to the first device to instruct the second device to subscribe to the first information, thereby helping the first device to determine which devices have subscribed to the first information.

[0202] In some embodiments, the method 500 further includes:

[0203] The second device sends subscription information to the cloud server, which instructs the second device to subscribe to the first information.

[0204] For example, the second device can upload subscription information to the cloud server when it first connects to the home network.

[0205] Based on the embodiments of this application, the second device can also send subscription information to the cloud server to instruct the second device to subscribe to the first information, thereby enabling the first device to obtain from the cloud server which devices have subscribed to the first information.

[0206] In some embodiments, the method 500 further includes:

[0207] The second device acquires second information related to the first information;

[0208] The second device sends a second message to the first device.

[0209] For example, the second device may periodically send the second information to the first device. Alternatively, the second device may send the changed second information to the first device when it determines that the second information has changed, thereby enabling the first device to obtain the latest second information.

[0210] Based on the embodiments of this application, the second device can also acquire second information related to the first information and send the second information to the first device. This facilitates decision-making and judgment by the first device.

[0211] In some embodiments, the method 500 further includes:

[0212] The second device receives the first instruction information sent by the first device;

[0213] The second device performs a first operation based on the first information, including:

[0214] The second device performs the first operation according to the first instruction information.

[0215] Based on the embodiments of this application, the second device may also receive first instruction information sent by the first device, so that the second device can clearly specify which operations to perform.

[0216] In other examples, the second device may also perform the first operation directly based on the first information without receiving the first instruction information. In this case, the first device does not send the first instruction information to the second device.

[0217] For example, if the first information is temperature, specifically 28 degrees Celsius, and the second device is a smart air conditioner displaying a temperature of 25 degrees Celsius, then after receiving the first information, the second device can adjust the displayed temperature to 28 degrees Celsius based on that information. Alternatively, if the first information is that no one is home, and the second device is a smart air conditioner, upon receiving the first information, the second device can turn off the smart air conditioner to save power.

[0218] Figure 6 This is a schematic block diagram of a device provided in an embodiment of this application. Figure 6 As shown, the device 600 may include one or more processors 610; one or more memories 620; the one or more memories 620 storing one or more instructions that, when executed by one or more processors 610, cause the control method as described in any of the possible implementations above to be executed.

[0219] For example, the device 600 may be device B, device C, the first device, or the second device mentioned above.

[0220] This application also provides an apparatus including a processor and a communication interface. The communication interface is used to receive signals and transmit the signals to the processor. The processor processes the signals so that the control method described in any of the possible implementations above is executed.

[0221] The device can be a chip. For example, the chip can be a chip system or a standalone chip.

[0222] This application also provides a readable storage medium storing instructions that, when executed on a device, cause the device to perform the aforementioned method steps to implement the control method described above.

[0223] This application also provides a program product that, when run on a device, causes the device to perform the aforementioned steps to implement the control method described in the above embodiments.

[0224] This application also provides a system including a first device and a second device as described above.

[0225] This application also provides a control device, including modules for implementing the control method as described in any of the preceding embodiments.

[0226] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store instructions, and when the apparatus is running, the processor may execute the instructions stored in the memory to cause the apparatus to perform the control methods in the above-described method embodiments.

[0227] In this embodiment, the device, readable storage medium, program product or apparatus are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0228] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0229] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0230] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0231] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0232] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0233] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks.

[0234] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A control method for smart homes, characterized in that, The method is applied to a first device, and the method includes: Receive data information sent by one or more devices; The first information is determined based on the data information sent by the one or more devices; Identify a second device that subscribes to the first information, wherein the first information is information related to the capabilities of the second device; Receive second information sent by the second device, wherein the second information is information related to the first information obtained by the second device; When it is determined that the difference between the first information and the second information is greater than a threshold, the first information is sent to the second device, and the first information is the target information for the second device to adjust the second information.

2. The method according to claim 1, characterized in that, The second device that determines the subscription to the first information includes: Receive subscription information sent by the second device, the subscription information being used to instruct the second device to subscribe to the first information; The second device that subscribes to the first information is determined based on the subscription information.

3. The method according to claim 1, characterized in that, The second device that determines the subscription to the first information includes: The second device that subscribes to the first information is determined from the information stored on the cloud server.

4. The method according to any one of claims 1-3, characterized in that, Sending the first information to the second device includes: The first information and the first instruction information are sent to the second device, wherein the first instruction information is used to instruct the second device to perform the first operation according to the first information.

5. A method for controlling a smart home, characterized in that, The method is applied to a second device, and the method includes: Subscribe to first information, which is information related to the capabilities of the second device; Obtain second information related to the first information; Send the second information to the first device; Receive the first information sent by the first device; When the difference between the first information and the second information is greater than a threshold, the second information is modified to the first information.

6. The method according to claim 5, characterized in that, The method further includes: Subscription information is sent to the first device, and the subscription information is used to instruct the second device to subscribe to the first information.

7. The method according to claim 6, characterized in that, The method further includes: Send subscription information to the cloud server, the subscription information being used to instruct the second device to subscribe to the first information.

8. The method according to any one of claims 5-7, characterized in that, The method further includes: Receive the first indication information sent by the first device; The step of modifying the second information to the first information includes: The second information is modified to the first information according to the first instruction information.

9. A smart home control device, characterized in that, include: One or more processors; One or more memories; the one or more memories storing one or more programs that, when executed by one or more processors, cause the control method as described in any one of claims 1-4 to be executed.

10. A smart home control device, characterized in that, include: One or more processors; One or more memories; the one or more memories storing one or more programs that, when executed by one or more processors, cause the control method as described in any one of claims 5-8 to be executed.

11. A smart home control device, characterized in that, The device includes a processor and a communication interface, the communication interface being used to receive signals and transmit the signals to the processor, the processor processing the signals such that the control method as described in any one of claims 1-4 is executed, or the control method as described in any one of claims 5-8 is executed.

12. A readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed on the device, cause the control method as described in any one of claims 1-4 to be executed, or the control method as described in any one of claims 5-8 to be executed.

Citation Information

Patent Citations

  • First machine, second machine, and method for controlling second machine by first machine

    CN106230882A