Control methods and devices for household appliances, storage media and electronic devices

CN116527426BActive Publication Date: 2025-12-02HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310344217.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2025-12-02
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种家电设备的控制方法和装置、存储介质及电子装置,以至少解决相关技术中,无法同步控制具有不同协议的设备进行同步响应的问题

Benefits of technology

[0016]在本申请实施例中,通过获取多个家电设备的设备信息,其中,多个家电分布在目标区域中,且多个家电设备之间至少存在两种设备协议,设备信息至少包括:家电设备的设备标识,家电设备的设备功能,设备功能的工作参数;根据设备信息对多个家电设备进行分组,得到多个设备组,其中,设备组用于对具有相同设备功能的不同家电设备进行统一控制;为多个设备组中的每一个设备组配置控制指令,以通过控制指令控制每一个设备组包括的多个目标家电设备进行同步响应。也就是说,通过设备信息提取设备之间的共性,对设备进行分组,继而为归属于同一设备组的设备设置控制指令,因此,使得不同协议的设备可以同时获取同一时间的控制指令进行同步响应,解决了无法同步控制具有不同协议的设备进行同步响应等问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116527426B_ABST
    Figure CN116527426B_ABST
Patent Text Reader

Abstract

This application discloses a control method and apparatus for home appliances, a storage medium, and an electronic device, relating to the field of smart home technology. The control method for home appliances includes: acquiring device information of multiple home appliances, wherein the multiple home appliances are distributed in a target area, and at least two device protocols exist between the multiple home appliances; the device information includes at least: device identifier of the home appliance, device function of the home appliance, and operating parameters of the device function; grouping the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function; configuring control instructions for each device group in the multiple device groups, so as to control the multiple target home appliances included in each device group to respond synchronously through the control instructions. By adopting the above technical solution, the problem of being unable to synchronously control devices with different protocols to respond synchronously is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and more specifically, to a control method and apparatus for home appliances, a storage medium, and an electronic device. Background Technology

[0002] Currently, many smart home appliances use different protocols (such as WiFi, ZigBee, BLE mesh, etc.). To non-professionals, they appear to be ordinary smart appliances. However, when controlling these appliances, some scenarios require simultaneous responses to create the right environment, meaning they cannot be used together. Therefore, some devices remain as single-device smart devices. To transform a single-smart mode into a multi-smart mode, the extension capabilities of the protocol itself need to be utilized for configuration. Taking ZigBee as an example, the ZigBee protocol needs to support group control capabilities to implement batch logic for multi-smart modes. Furthermore, appliances using different protocols cannot be controlled by the user in a single setup due to their different network characteristics (different security protocols). This results in each type of appliance being controlled separately, leading to a very cumbersome user experience.

[0003] There is no effective solution yet to address the problem of the inability to synchronously control devices with different protocols to respond synchronously in related technologies. Summary of the Invention

[0004] This application provides a method and apparatus for controlling home appliances, a storage medium, and an electronic device, to at least solve the problem in related technologies that it is impossible to synchronously control devices with different protocols to respond synchronously.

[0005] According to one embodiment of this application, a method for controlling home appliances is provided, comprising: acquiring device information of multiple home appliances, wherein the multiple home appliances are distributed in a target area and at least two device protocols exist between the multiple home appliances, and the device information includes at least: device identifier of the home appliance, device function of the home appliance, and operating parameters of the device function; grouping the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function; configuring control instructions for each of the multiple device groups to control multiple target home appliances included in each device group to respond synchronously through the control instructions.

[0006] In one exemplary embodiment, configuring control instructions for each of the plurality of device groups includes: obtaining conversion standards corresponding to different protocols, wherein the conversion standards include device attributes corresponding to different types of home appliances and compilation requirements for control commands; and converting target control instructions corresponding to device functions based on the conversion standards to obtain control instructions that can be applied to different home appliances.

[0007] In an exemplary embodiment, after configuring control instructions for each of the plurality of device groups, the method further includes: acquiring the response speed of the same home appliance under different channels and the status information corresponding to each channel; wherein, each channel is used to transmit control instructions to the home appliance; prioritizing the same home appliance according to the response speed and the status information; and determining the target channel with the highest priority as the control instruction delivery channel for the home appliance.

[0008] In one exemplary embodiment, after configuring control instructions for each of the plurality of device groups, the method further includes: obtaining the response duration of each device group after receiving the control instructions; if the response duration is less than or equal to a preset time range, sending a first prompt message to a target object, wherein the first prompt message is used to prompt the target object that the control instructions have been successfully configured; if the response duration is greater than the preset time range, sending a second prompt message to the target object, wherein the second prompt message is used to prompt the target object whether to reconfigure the control instructions.

[0009] In an exemplary embodiment, grouping the plurality of home appliances according to the device information to obtain multiple device groups includes: determining the device similarity between home appliances with different protocols based on the device information, wherein the device similarity is the number of identical device functions between different home appliances; and recording target home appliances with device similarity greater than a similarity threshold in the same group to obtain a device group.

[0010] In an exemplary embodiment, after recording target home appliances with a similarity greater than a similarity threshold in the same group to obtain a device group, the method further includes: determining the service type corresponding to the device group; wherein the service type includes at least one of the following: target object active control service, device application control service, system control service; and determining the triggering condition corresponding to the device group based on the service type, wherein the triggering condition is used to indicate the control timing that allows collective control of multiple home appliances in the target area.

[0011] In an exemplary embodiment, after grouping the plurality of home appliances according to the device information to obtain a plurality of device groups, the method further includes: identifying the number of devices in each of the plurality of device groups; if the number of devices is greater than or equal to a preset number of devices, issuing a third prompt message to a target object, wherein the third prompt message is used to remind the target object to reduce the number of devices in the device group; if the number of devices is less than the preset number of devices, issuing a fourth prompt message to the target object, wherein the fourth prompt message is used to indicate that the number of devices in the device group is allowed to be increased.

[0012] In an exemplary embodiment, after grouping the plurality of home appliances according to the device information to obtain a plurality of device groups, the method further includes: naming the plurality of device groups according to a preset naming rule to obtain a plurality of device groups with target names; storing the plurality of device groups with target names in a cloud database; when a service request carrying name information is received from a target object, searching for a target device group that matches the name information from the cloud database; and identifying the target device group as a device group that is given priority in configuring control commands and issuing control commands.

[0013] According to another embodiment of this application, a control device for home appliances is also provided, comprising: an acquisition module, configured to acquire device information of multiple home appliances, wherein the multiple home appliances are distributed in a target area, and at least two device protocols exist between the multiple home appliances, the device information including at least: device identifier of the home appliance, device function of the home appliance, and operating parameters of the device function; a grouping module, configured to group the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function; and a configuration module, configured to configure control instructions for each of the multiple device groups, so as to control the multiple target home appliances included in each device group to respond synchronously through the control instructions.

[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the control method of the above-mentioned home appliance when it is run.

[0015] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the control method of the aforementioned home appliance through the computer program.

[0016] In this embodiment, device information of multiple home appliances is obtained. These appliances are distributed across a target area, and at least two different device protocols exist between them. The device information includes at least: the device identifier, the device function, and the operating parameters of the device function. The multiple home appliances are grouped according to the device information to obtain multiple device groups. These device groups are used for unified control of different home appliances with the same device function. Control commands are configured for each device group to control the multiple target home appliances included in each group to respond synchronously. In other words, by extracting commonalities between devices from the device information, grouping the devices, and then setting control commands for devices belonging to the same device group, devices with different protocols can simultaneously obtain control commands at the same time and respond synchronously, solving the problem of not being able to synchronously control devices with different protocols. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the hardware environment for a control method of a home appliance according to an embodiment of this application;

[0020] Figure 2 This is a flowchart of a method for controlling a home appliance according to an embodiment of this application;

[0021] Figure 3 This is a schematic diagram illustrating the relationship between group devices according to optional embodiments of this application;

[0022] Figure 4 This is a flowchart illustrating a control method for a home appliance according to an optional embodiment of this application;

[0023] Figure 5 This is a structural block diagram of a control device for a household appliance according to an embodiment of this application. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] According to one aspect of the embodiments of this application, a method for controlling home appliances is provided. This method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned method for controlling home appliances can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0027] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0028] This embodiment provides a method for controlling home appliances, applied to the aforementioned terminal device. Figure 2 This is a flowchart of a method for controlling a home appliance according to an embodiment of this application, the process including the following steps:

[0029] Step S202: Obtain device information for multiple home appliances, wherein the multiple home appliances are distributed in the target area and there are at least two device protocols between the multiple home appliances. The device information includes at least: device identifier of the home appliance, device function of the home appliance, and working parameters of the device function.

[0030] Step S204: Group the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function;

[0031] Step S206: Configure control instructions for each of the plurality of device groups to control the plurality of target home appliances included in each device group to respond synchronously through the control instructions.

[0032] In short, although home appliances with different protocols cannot be controlled by the same type of control command, since they have the same device functions and corresponding device function operating parameters, multiple devices with different protocols can be grouped based on their device functions. Within the corresponding device group, control commands can be adapted before being sent to the corresponding device, so that the control commands can be converted into corresponding specific commands and sent to the relevant devices for execution.

[0033] Through the above steps, device information for multiple home appliances is obtained. These appliances are distributed across a target area, and at least two different device protocols exist between them. The device information includes at least: the appliance's identifier, its function, and its operating parameters. Based on this information, the appliances are grouped into multiple device groups. These groups are used for unified control of different appliances with the same function. Control commands are configured for each device group to synchronously control the target appliances within that group. In other words, by extracting commonalities from the device information, grouping the devices, and then setting control commands for devices belonging to the same group, devices with different protocols can simultaneously receive control commands and respond synchronously, solving the problem of not being able to synchronously control devices with different protocols.

[0034] Optionally, the device group can be established according to preset rules, including device identifier, device function, and function value range (equivalent to the working parameters in the above embodiment). For example: group service ID (unique identifier) ​​- function list - value range of the standard model corresponding to the device group. For example, when the device group is a lighting group, the group service ID is DZ12345 - the function list includes on, off, color (0~255), color temperature (3000~5000), and brightness (0~100).

[0035] In one exemplary embodiment, configuring control instructions for each of the plurality of device groups includes: obtaining conversion standards corresponding to different protocols, wherein the conversion standards include device attributes corresponding to different types of home appliances and compilation requirements for control commands; and converting target control instructions corresponding to device functions based on the conversion standards to obtain control instructions that can be applied to different home appliances.

[0036] The target control command refers to the working parameters to be implemented for the device function, determined based on the scenario requirements of the target object in the target area. It should be noted that different home appliances correspond to different protocols, such as WiFi, ZigBee, and BLE mesh. Therefore, protocol type conversion is required for devices with different protocols to apply the same command to devices with different protocols.

[0037] In an exemplary embodiment, after configuring control instructions for each of the plurality of device groups, the method further includes: acquiring the response speed of the same home appliance under different channels and the status information corresponding to each channel; wherein, each channel is used to transmit control instructions to the home appliance; prioritizing the same home appliance according to the response speed and the status information; and determining the target channel with the highest priority as the control instruction delivery channel for the home appliance.

[0038] It's important to note that multiple transmission paths exist during control command transmission. This system is compatible with three control paths: remote control (cloud), LAN control (local), and BLE control. Therefore, it's necessary to define control path priorities and rules to adapt to the current device scenario. To enable faster model response, priorities can be assigned based on the response speed of different paths. That is, the faster the response speed of a path, the higher its priority. For example, for WiFi + ZigBee protocols, remote control (cloud) > LAN control (local). This dynamic rule engine allows for real-time dynamic rule allocation based on the offline status of paths when actually controlling group devices, facilitating rapid control response and improving user experience.

[0039] In one exemplary embodiment, after configuring control instructions for each of the plurality of device groups, the method further includes: obtaining the response duration of each device group after receiving the control instructions; if the response duration is less than or equal to a preset time range, sending a first prompt message to a target object, wherein the first prompt message is used to prompt the target object that the control instructions have been successfully configured; if the response duration is greater than the preset time range, sending a second prompt message to the target object, wherein the second prompt message is used to prompt the target object whether to reconfigure the control instructions.

[0040] In an exemplary embodiment, grouping the plurality of home appliances according to the device information to obtain multiple device groups includes: determining the device similarity between home appliances with different protocols based on the device information, wherein the device similarity is the number of identical device functions between different home appliances; and recording target home appliances with device similarity greater than a similarity threshold in the same group to obtain a device group.

[0041] In an exemplary embodiment, after recording target home appliances with a similarity greater than a similarity threshold in the same group to obtain a device group, the method further includes: determining the service type corresponding to the device group; wherein the service type includes at least one of the following: target object active control service, device application control service, system control service; and determining the triggering condition corresponding to the device group based on the service type, wherein the triggering condition is used to indicate the control timing that allows collective control of multiple home appliances in the target area.

[0042] In other words, devices can be grouped based on their information. For example, devices with the same identifier can be grouped together, or devices with the same function can be grouped together. Each group of devices must share at least one common characteristic. The number of common characteristics is then used to determine whether the group qualifies as a group device model.

[0043] Alternatively, the above-mentioned user grouping method can also be:

[0044] Users actively trigger the creation and use of devices, grouping them together for control, such as controlling several lights together. User grouping requires accountability to the user, who can then locate and control specific devices via interactive terminals (such as apps, voice control, etc.).

[0045] Application grouping: This type of grouping is triggered by the application itself, and the user is unaware of its existence. It facilitates the use of grouping capabilities by certain applications, such as batch control of lights in a scene. Devices in this group can only be accessed through quick control and utilize the underlying device model and control.

[0046] System grouping: This type of grouping is triggered by the system and is not perceived by the user. It is commonly used to automatically group lights and switches in a specific space. For example, automatically grouping living room lights or bedroom curtains.

[0047] In an exemplary embodiment, after grouping the plurality of home appliances according to the device information to obtain a plurality of device groups, the method further includes: identifying the number of devices in each of the plurality of device groups; if the number of devices is greater than or equal to a preset number of devices, issuing a third prompt message to a target object, wherein the third prompt message is used to remind the target object to reduce the number of devices in the device group; if the number of devices is less than the preset number of devices, issuing a fourth prompt message to the target object, wherein the fourth prompt message is used to indicate that the number of devices in the device group is allowed to be increased.

[0048] It should be noted that the number of devices in each group device model is limited. When the number of devices in the generated group device model exceeds the preset limit, a prompt will be sent to the target object to confirm whether to delete devices in the group device model.

[0049] Optionally, if the number of devices exceeds a preset upper limit, it is confirmed whether the total size of the devices in the device model exceeds a preset volume range. If the total size exceeds the preset volume range, the target object is prompted whether to delete devices from the group device model.

[0050] In an exemplary embodiment, after grouping the plurality of home appliances according to the device information to obtain a plurality of device groups, the method further includes: naming the plurality of device groups according to a preset naming rule to obtain a plurality of device groups with target names; storing the plurality of device groups with target names in a cloud database; when a service request carrying name information is received from a target object, searching for a target device group that matches the name information from the cloud database; and identifying the target device group as a device group that is given priority in configuring control commands and issuing control commands.

[0051] In other words, after defining the group device models, different group device models can be named to facilitate future reference. Optionally, the device model can be named according to its usage scenario. If the device model is mainly used for festive celebrations, it can be named "Festival Model". Optionally, the device model can be named according to its usage location. If the device model is used in a bedroom, kitchen, or other similar location, it can be named "Bedroom Model" or "Kitchen Model". Optionally, the device model can be named according to the types of devices it contains. For example, if a device model contains multiple different smart lights, it can be named "Light Group Model".

[0052] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. To better understand the above method, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of this application. Specifically:

[0053] This application provides a method for controlling home appliances in an optional embodiment. Figure 3 This is a schematic diagram illustrating the relationship between group devices according to optional embodiments of this application, such as... Figure 3 As shown, the specific steps are as follows:

[0054] The logical group device (equivalent to the device group in the embodiments of the present invention) includes ZigBee protocol group device, BLEmesh protocol group device, WIFI device, and BLE group device. Among them, the ZigBee protocol group device includes ZigBee device, and the BLEmesh protocol group device includes BLEmesh device.

[0055] This embodiment provides a method for controlling home appliances, which includes the following steps:

[0056] Step 1: Define the group service standard model;

[0057] In this optional embodiment, the server predefines the control capabilities corresponding to the group service device model (a brief description of the digital model of the control functions supported by the device, hereinafter referred to as the group service model). The relationship is: group service ID (unique identifier) ​​— function list — value range of the standard model, such as: DZ12345 — on, off, color (0~255), color temperature (3000~5000), brightness (0~100).

[0058] Group service types are divided into:

[0059] User groups: These are created and used by users who actively initiate the process. Users group devices together for control, such as controlling several lights together. User groups are accountable to the users, who can find and control specific devices through interactive terminals (such as apps, voice control, etc.).

[0060] Application grouping: This type of grouping is triggered by the application itself, and the user is unaware of its existence. It facilitates the use of grouping capabilities by certain applications, such as batch control of lights in a scene. Devices in this group can only be accessed through quick control and utilize the underlying device model and control.

[0061] System grouping: This type of grouping is triggered by the system and is not perceived by the user. It is commonly used to automatically group lights and switches in a specific space. For example, automatically grouping living room lights or bedroom curtains.

[0062] Step 2: Determine the range of equipment models to be included in the group;

[0063] After defining the value range in step 1, the cloud provides a service that compares the group service model with the standard model of ordinary devices. The service can save the correspondence between the device model data and the group service and store this correspondence on the cloud server as the basic data for users to create group control services. The relationship is as follows: Model - Group Service ID (unique identifier) ​​- Function list - Value range of the standard model, such as: WiFi Smart Light A - WiFi12345 - On, Off, Color (0~255), Color Temperature (3000~5000), Brightness (0~100).

[0064] Step 3: Build the control policy rule engine;

[0065] In this optional embodiment, the control strategy can be compatible with three control paths: remote control (cloud), LAN control (local), and BLE control. Therefore, it is necessary to define control path priorities and control rules to adapt to the current device scenario. The relationship can be summarized as: dynamically allocating and adjusting the online path priority at the device instance level - control priority. For example: WiFi protocol + ZigBee protocol, remote control (cloud) > LAN control (local). By building this dynamic rule engine, when actually controlling group devices, rules can be dynamically allocated in real time based on the offline status of the path, facilitating rapid control response and improving user experience.

[0066] Step 4: Define the standard capabilities of the group service;

[0067] Capability Layer: Group Device Creation: Creates groups for devices that meet the group service criteria, and names and sets up rooms for group devices. Group Device Disbandment: Group devices can be disbanded, and all devices within the group are removed from the group. Group Device Management: Manages and maintains devices within the group, including deleting and adding devices within the group.

[0068] Adaptation Layer: The service standardizes the service standard attributes and commands for each device with different protocols, and completes the protocol type conversion while connecting various device terminals.

[0069] Step 5: Create a group control instance device;

[0070] In the smart home operating system, all smart home devices can be connected via QR code scanning. Users can view information about connected smart home devices through a mobile app. Connected devices upload their information to the operating system's server via the Internet of Things (IoT). Within the smart home operating system's app, users can group devices according to the model rules defined in step 2. For example, to turn on spotlights, table lamps, and ceiling lights in the living room upon returning home, users can select ZigBee lights, WiFi lights, BLE mesh lights, and BLE lights to create a group.

[0071] Optional, Figure 4 This is a schematic flowchart of a control method for a home appliance according to an optional embodiment of this application, such as... Figure 4As shown, the group equipment control engine confirms the group equipment control operation, and further determines the issuance of control commands corresponding to different control operations through the control switch to the path decision. In addition, the control range can be decomposed into large loop control and small loop control according to the control range. Thus, after determining the control operation to be executed by the group equipment, the control operation is issued according to the control range or control type through the control path issuance component.

[0072] In summary, based on the above embodiments, by utilizing the cross-protocol group control device standard model configuration and solution cross-protocol group control rule engine and control scheme, the problem of home appliances with different protocols being unable to be controlled synchronously in groups is solved, and the synchronous response of smart devices with different protocols can be seamlessly solved.

[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0074] Figure 5 This is a structural block diagram of a control device for a household appliance according to an embodiment of this application; as shown below. Figure 5 As shown, it includes:

[0075] The acquisition module 52 is used to acquire device information of multiple home appliances, wherein the multiple home appliances are distributed in a target area and there are at least two device protocols among the multiple home appliances. The device information includes at least: the device identifier of the home appliance, the device function of the home appliance, and the working parameters of the device function.

[0076] Grouping module 54 is used to group the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function;

[0077] Configuration module 56 is used to configure control instructions for each of the plurality of device groups, so as to control the plurality of target home appliances included in each device group to respond synchronously through the control instructions.

[0078] The aforementioned device acquires device information from multiple home appliances distributed across a target area, with at least two different device protocols existing between them. The device information includes at least: the appliance's identifier, its function, and its operating parameters. Based on this information, the multiple appliances are grouped into multiple device groups. These groups are used for unified control of different appliances with the same function. Control commands are configured for each device group to synchronously control the target appliances within that group. In other words, by extracting commonalities from the device information, grouping the devices, and then setting control commands for devices belonging to the same group, devices with different protocols can simultaneously receive control commands and respond synchronously, solving the problem of not being able to synchronously control devices with different protocols.

[0079] In one exemplary embodiment, configuring control instructions for each of the plurality of device groups includes: obtaining conversion standards corresponding to different protocols, wherein the conversion standards include device attributes corresponding to different types of home appliances and compilation requirements for control commands; and converting target control instructions corresponding to device functions based on the conversion standards to obtain control instructions that can be applied to different home appliances.

[0080] In an exemplary embodiment, after configuring control instructions for each of the plurality of device groups, the method further includes: acquiring the response speed of the same home appliance under different channels and the status information corresponding to each channel; wherein, each channel is used to transmit control instructions to the home appliance; prioritizing the same home appliance according to the response speed and the status information; and determining the target channel with the highest priority as the control instruction delivery channel for the home appliance.

[0081] In one exemplary embodiment, after configuring control instructions for each of the plurality of device groups, the method further includes: obtaining the response duration of each device group after receiving the control instructions; if the response duration is less than or equal to a preset time range, sending a first prompt message to a target object, wherein the first prompt message is used to prompt the target object that the control instructions have been successfully configured; if the response duration is greater than the preset time range, sending a second prompt message to the target object, wherein the second prompt message is used to prompt the target object whether to reconfigure the control instructions.

[0082] In an exemplary embodiment, grouping the plurality of home appliances according to the device information to obtain multiple device groups includes: determining the device similarity between home appliances with different protocols based on the device information, wherein the device similarity is the number of identical device functions between different home appliances; and recording target home appliances with device similarity greater than a similarity threshold in the same group to obtain a device group.

[0083] In an exemplary embodiment, after recording target home appliances with a similarity greater than a similarity threshold in the same group to obtain a device group, the method further includes: determining the service type corresponding to the device group; wherein the service type includes at least one of the following: target object active control service, device application control service, system control service; and determining the triggering condition corresponding to the device group based on the service type, wherein the triggering condition is used to indicate the control timing that allows collective control of multiple home appliances in the target area.

[0084] In an exemplary embodiment, after grouping the plurality of home appliances according to the device information to obtain a plurality of device groups, the method further includes: identifying the number of devices in each of the plurality of device groups; if the number of devices is greater than or equal to a preset number of devices, issuing a third prompt message to a target object, wherein the third prompt message is used to remind the target object to reduce the number of devices in the device group; if the number of devices is less than the preset number of devices, issuing a fourth prompt message to the target object, wherein the fourth prompt message is used to indicate that the number of devices in the device group is allowed to be increased.

[0085] In an exemplary embodiment, after grouping the plurality of home appliances according to the device information to obtain a plurality of device groups, the method further includes: naming the plurality of device groups according to a preset naming rule to obtain a plurality of device groups with target names; storing the plurality of device groups with target names in a cloud database; when a service request carrying name information is received from a target object, searching for a target device group that matches the name information from the cloud database; and identifying the target device group as a device group that is given priority in configuring control commands and issuing control commands.

[0086] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.

[0087] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:

[0088] S1, Obtain device information for multiple home appliances, wherein the multiple home appliances are distributed in a target area, and there are at least two device protocols between the multiple home appliances, and the device information includes at least: device identifier of the home appliance, device function of the home appliance, and working parameters of the device function;

[0089] S2, group the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function;

[0090] S3, configure control instructions for each of the plurality of device groups to control the plurality of target home appliances included in each device group to respond synchronously through the control instructions.

[0091] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0092] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0093] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0094] S1, Obtain device information for multiple home appliances, wherein the multiple home appliances are distributed in a target area, and there are at least two device protocols between the multiple home appliances, and the device information includes at least: device identifier of the home appliance, device function of the home appliance, and working parameters of the device function;

[0095] S2, group the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device function;

[0096] S3, configure control instructions for each of the plurality of device groups to control the plurality of target home appliances included in each device group to respond synchronously through the control instructions.

[0097] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0098] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0099] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0100] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for controlling a household appliance, characterized in that, include: Obtain device information for multiple home appliances, wherein the multiple home appliances are distributed in a target area and there are at least two device protocols between the multiple home appliances, and the device information includes at least: device identifier of the home appliance, device function of the home appliance, and operating parameters of the device function; The multiple home appliances are grouped according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device functions; Configure control instructions for each of the plurality of device groups to control the plurality of target home appliances included in each device group to respond synchronously through the control instructions; The method further includes, after configuring control instructions for each of the plurality of device groups, the following: The system acquires the response speed of the same home appliance under different channels and the status information corresponding to each channel; wherein each channel is used to transmit control commands to the home appliance. Based on the response speed and the status information, the same home appliance is prioritized according to its access path. The highest priority target path is determined as the channel for issuing control commands to home appliances.

2. The control method for household appliances according to claim 1, characterized in that, Configure control instructions for each of the plurality of device groups, including: Obtain the conversion standards corresponding to different protocols, wherein the conversion standards include the device attributes and compilation requirements of control commands corresponding to different types of home appliances; Based on the conversion standard, the target control instructions corresponding to the device functions are converted to obtain control instructions that can be applied to different home appliances.

3. The control method for household appliances according to claim 1, characterized in that, After configuring control instructions for each of the plurality of device groups, the method further includes: The response time of each device group after receiving the control command is obtained; If the response time is less than or equal to a preset time range, a first prompt message is sent to the target object, wherein the first prompt message is used to indicate to the target object that the control command has been configured successfully; If the response duration exceeds a preset time range, a second prompt message is sent to the target object, wherein the second prompt message is used to prompt the target object whether to reconfigure the control command.

4. The control method for household appliances according to claim 1, characterized in that, Based on the device information, the multiple home appliances are grouped to obtain multiple device groups, including: Based on the device information, the device similarity between home appliances with different protocols is determined, wherein the device similarity is the number of identical device functions between different home appliances; Target home appliances with a similarity greater than the similarity threshold are recorded in the same group to obtain a device group.

5. The control method for household appliances according to claim 4, characterized in that, After recording target home appliances with a similarity greater than a similarity threshold in the same group to obtain a device group, the method further includes: Determine the service type corresponding to the device group; wherein the service type includes at least one of the following: target object active control service, device application control service, and system control service; The triggering conditions corresponding to the device group are determined based on the service type, wherein the triggering conditions are used to indicate the timing when collective control of multiple home appliances in the target area is permitted.

6. The control method for household appliances according to claim 1, characterized in that, After grouping the multiple home appliances according to the device information to obtain multiple device groups, the method further includes: Identify the number of devices present in each of the plurality of device groups; If the number of devices is greater than or equal to the preset number of devices, a third prompt message is sent to the target object, wherein the third prompt message is used to remind the target object to reduce the number of devices in the device group; If the number of devices is less than the preset number of devices, a fourth prompt message is sent to the target object, wherein the fourth prompt message is used to indicate that the device group is allowed to increase the number of devices.

7. The control method for household appliances according to claim 1, characterized in that, After grouping the multiple home appliances according to the device information to obtain multiple device groups, the method further includes: The multiple device groups are named according to the preset naming rules to obtain multiple device groups with target names; The multiple device groups with target names are stored in a cloud database; Upon receiving a service request carrying name information sent by the target object, the system searches the cloud database for a target device group that matches the name information. The target device group is identified as the device group that is given priority in configuring control commands and issuing control commands.

8. A control device for a household appliance, characterized in that, include: The acquisition module is used to acquire device information of multiple home appliances, wherein the multiple home appliances are distributed in a target area and there are at least two device protocols among the multiple home appliances. The device information includes at least: the device identifier of the home appliance, the device function of the home appliance, and the working parameters of the device function. The grouping module is used to group the multiple home appliances according to the device information to obtain multiple device groups, wherein the device groups are used to uniformly control different home appliances with the same device functions; A configuration module is used to configure control instructions for each of the plurality of device groups, so as to control the plurality of target home appliances included in each device group to respond synchronously through the control instructions; The device further includes: a determining module, configured to, after configuring control commands for each of the plurality of device groups, acquire the response speed of the same home appliance under different channels and the status information corresponding to each channel; wherein, each channel is used to transmit control commands to the home appliance; prioritize the same home appliance according to the response speed and the status information; and determine the target channel with the highest priority as the control command distribution channel for the home appliance.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System and method for detecting unknown IoT device types by monitoring their behavior

    CN110115015A

  • Control instruction sending method and device, storage medium and electronic device

    CN115174609A