Household equipment control method and device, electronic equipment and storage medium

By dynamically evaluating the communication protocol priority and environmental status of smart home devices, the problem of command loss or delayed transmission caused by unstable communication is solved, achieving highly reliable and efficient multi-device control.

CN121967101APending Publication Date: 2026-05-01GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2025-12-19
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing smart home systems, unstable communication protocols can lead to lost or delayed command transmissions, affecting the reliability of device responses and user experience.

Method used

By acquiring user control requests and the environmental status of communication protocols, the system dynamically determines device and protocol priorities, selects the target communication protocol, and retransmits or switches protocols when necessary to ensure successful instruction transmission.

Benefits of technology

It improved the success rate of commands, reduced the overall control latency, and enhanced the efficiency and user experience of concurrent control of multiple devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967101A_ABST
    Figure CN121967101A_ABST
Patent Text Reader

Abstract

The invention discloses a control method of household equipment, and belongs to the technical field of communication protocol control. The method comprises the following steps: acquiring control requests of a user for a plurality of home devices and environment states of a plurality of communication protocols; determining device priorities of the plurality of household devices according to the control requests of the plurality of household devices, and determining communication protocols supported by the plurality of household devices; determining protocol priorities of the plurality of communication protocols according to the environment states of the plurality of communication protocols; determining a target communication protocol corresponding to the plurality of home devices according to the communication protocols supported by the plurality of home devices and the protocol priorities of the plurality of communication protocols; according to the method and the device, the control instruction is sequentially sent to the plurality of home devices through the target communication protocols corresponding to the plurality of home devices according to the device priorities of the plurality of home devices, so that the plurality of home devices supporting different communication protocols can be managed at the same time, and the multi-device concurrency control efficiency and the user experience are remarkably improved while high reliability is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of communication protocol control technology, specifically relating to a control method, device, electronic device, and storage medium for home appliances. Background Technology

[0002] In existing smart home systems, various communication protocols exist between devices (such as Wi-Fi, Bluetooth Mesh, Zigbee, and infrared). These protocols differ significantly in transmission speed, coverage, interference resistance, and power consumption. For example, Wi-Fi offers high transmission speeds but is susceptible to network fluctuations, Zigbee boasts low power consumption but limited coverage, and infrared requires line-of-sight transmission and is easily blocked. When users send control commands (such as "turn on the air conditioner to 24°C") to home devices via a central controller, if the communication protocol used suffers from environmental interference (such as weak Wi-Fi signals or Zigbee node congestion) or device compatibility issues (such as older infrared devices only supporting infrared commands), resulting in command loss or delayed transmission, it will affect the reliability of device responses and the user experience. Summary of the Invention

[0003] The purpose of this invention is to provide a control method, device, electronic device, and storage medium for home appliances, which can solve the problem of command loss or delayed transmission caused by unstable communication protocols.

[0004] In a first aspect, embodiments of the present invention provide a method for controlling home appliances, the method comprising: Acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; The device priority of the multiple home devices is determined based on the control requests of the multiple home devices, and the communication protocols supported by the multiple home devices are also determined. Based on the environmental status of the multiple communication protocols, determine the protocol priority of the multiple communication protocols; Based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols, the target communication protocol corresponding to the multiple home devices is determined; Based on the device priority of the multiple home devices, control commands are sent sequentially to the multiple home devices through the target communication protocol corresponding to the multiple home devices.

[0005] Optionally, the method further includes: If no response is received from the home appliance in response to the control command within a preset time, the control command is resent to the home appliance via the target communication protocol corresponding to the home appliance.

[0006] Optionally, resending the control command to the home device via the target communication protocol corresponding to the home device includes: Adjust the transmission parameters of the target communication protocol corresponding to the home appliance, and send the control command to the home appliance through the target communication protocol with the adjusted transmission parameters.

[0007] Optionally, the method further includes: When the home device supports multiple communication protocols, the alternative communication protocol corresponding to the home device is determined according to the protocol priority of the multiple communication protocols; The control command is sent to the home appliance through the alternative communication protocol corresponding to the home appliance.

[0008] Optionally, the method further includes: If the home appliance does not support multiple communication protocols, the fault information is recorded and output to the user.

[0009] Optionally, the method further includes: Obtain the scene information corresponding to the control request, and determine whether the control request has a preset strategy based on the scene information corresponding to the control request; If the control request has a preset strategy, the control command is sent to the plurality of home devices in sequence according to the preset strategy; The step of sending control commands sequentially to the multiple home devices according to their device priorities and through the target communication protocols corresponding to the multiple home devices includes: If the control request does not have a preset strategy, control commands are sent sequentially to the multiple home devices according to their device priorities and through the target communication protocols corresponding to the multiple home devices.

[0010] Optionally, the method further includes: Acquire historical communication data; the historical communication data includes: the historical control time of the home device, the communication protocol used during the historical control time, and the environmental status of the communication protocol; The preset strategy is generated based on the historical communication data.

[0011] Optionally, the plurality of communication protocols include at least one of Wi-Fi, Zigbee, and infrared protocols; the environmental status of the Wi-Fi protocol includes signal strength and channel congestion rate, the environmental status of the Zigbee protocol includes network packet loss rate and number of neighboring nodes, and the environmental status of the infrared protocol includes the obstruction status between the transmitter and receiver and ambient light intensity; determining the protocol priority of the plurality of communication protocols based on their environmental status includes: When the signal strength and channel congestion rate of the Wi-Fi protocol meet the first preset condition, the Wi-Fi protocol has the highest protocol priority. If the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol meet the second preset condition, the Zigbee protocol has the highest protocol priority. If the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol do not meet the second preset condition, the infrared protocol has the highest protocol priority.

[0012] Optionally, adjusting the transmission parameters of the target communication protocol corresponding to the home appliance includes: Adjust the communication channel, signal transmission power, signal transmission angle, and / or extend the signal transmission duration of the target communication protocol corresponding to the home appliance.

[0013] Secondly, embodiments of the present invention provide a control device for home appliances, the device comprising: The control request acquisition module is used to acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; A home appliance sorting module is used to determine the device priority of the multiple home appliances based on the control requests of the multiple home appliances, and to determine the communication protocols supported by the multiple home appliances; A communication protocol sorting module is used to determine the protocol priority of the multiple communication protocols based on the environmental status of the multiple communication protocols; A communication protocol determination module is used to determine the target communication protocol corresponding to the multiple home devices based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols; The control command sending module is used to send control commands to the multiple home devices sequentially according to their device priorities and through the target communication protocols corresponding to the multiple home devices.

[0014] Optionally, the device further includes: The control command retransmission module is used to resend the control command to the home device via the target communication protocol corresponding to the home device if no receiving response is received from the home device for the control command within a preset time.

[0015] Optionally, the control command retransmission module includes: The first-level retransmission submodule is used to adjust the transmission parameters of the target communication protocol corresponding to the home device, and send the control command to the home device through the target communication protocol after adjusting the transmission parameters.

[0016] Optionally, the control command retransmission module further includes: The alternative protocol submodule is used to determine the alternative communication protocol corresponding to the home device based on the protocol priority of the multiple communication protocols when the home device supports multiple communication protocols. The secondary retransmission submodule is used to send the control command to the home device through the alternative communication protocol corresponding to the home device.

[0017] Optionally, the control command retransmission module further includes: The fault information recording submodule is used to record fault information and output the fault information to the user when the home device does not support multi-party communication protocols.

[0018] Optionally, the device further includes: The scene information acquisition module is used to acquire scene information corresponding to the control request, and determine whether the control request has a preset strategy based on the scene information corresponding to the control request. A preset strategy control module is used to send the control command to the plurality of home devices sequentially according to the preset strategy when the control request has a preset strategy; The control command sending module includes: The control command sending submodule is used to send control commands to the multiple home devices sequentially according to their device priorities and through the target communication protocols corresponding to the multiple home devices when the control request does not have a preset strategy.

[0019] Optionally, the device further includes: A historical data acquisition module is used to acquire historical communication data; the historical communication data includes: the historical control time of the home device, the communication protocol used during the historical control time, and the environmental status of the communication protocol; The preset strategy generation module is used to generate the preset strategy based on the historical communication data.

[0020] Optionally, the plurality of communication protocols include at least one of Wi-Fi protocol, Zigbee protocol, and infrared protocol; the environmental status of the Wi-Fi protocol includes signal strength and channel congestion rate, the environmental status of the Zigbee protocol includes network packet loss rate and number of neighboring nodes, and the environmental status of the infrared protocol includes the obstruction status between the transmitter and receiver and ambient light intensity; the communication protocol sorting module includes: The first protocol sorting submodule is configured to prioritize the Wi-Fi protocol to the highest level when the signal strength and channel congestion rate of the Wi-Fi protocol meet a first preset condition. The second protocol sorting submodule is used to prioritize the Zigbee protocol when the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol meet the second preset condition. The third protocol sorting submodule is used to prioritize the infrared protocol when the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol do not meet the second preset condition.

[0021] Optionally, the first-level retransmission submodule includes: The first-level retransmission unit is used to adjust the communication channel, signal transmission power, or signal transmission angle of the target communication protocol corresponding to the home device and / or extend the signal transmission duration.

[0022] Thirdly, embodiments of the present invention provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0023] Fourthly, embodiments of the present invention provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0024] The embodiments of the present invention have the following advantages: This invention can acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; determine the device priorities of multiple home devices based on the control requests, and determine the communication protocols supported by multiple home devices; by pre-determining device priorities, it can ensure the rapid issuance of instructions to critical devices, avoid low-priority devices occupying high-load communication channels, thereby reducing overall control latency. Based on the environmental status of multiple communication protocols, the protocol priorities of multiple communication protocols are determined; based on the communication protocols supported by multiple home devices and the protocol priorities of multiple communication protocols, the target communication protocol corresponding to multiple home devices is determined; the selection of communication protocols not only relies on preset priorities, but also dynamically evaluates the availability of each protocol in conjunction with real-time environmental status, avoiding failures caused by forcibly using a certain protocol under weak signal or high interference conditions, and even if a certain protocol temporarily deteriorates, it can automatically switch to the currently optimal available protocol, significantly improving the command success rate. Based on the device priorities of multiple home devices, control commands are sent to multiple home devices sequentially through the target communication protocols corresponding to the multiple home devices. The process of sending control commands in this embodiment of the invention does not rely on a single communication standard. It can simultaneously manage multiple home devices that support different communication protocols, realize unified intelligent scheduling of home devices, and significantly improve the efficiency and user experience of concurrent control of multiple devices while ensuring high reliability. Attached Figure Description

[0025] Figure 1 This is a flowchart illustrating the steps of a home appliance control method according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating the steps of another method for controlling a home appliance according to an embodiment of the present invention; Figure 3 This is a logic diagram of a home appliance control method according to an embodiment of the present invention; Figure 4 This is a structural block diagram of a control device for a home appliance according to an embodiment of the present invention. Detailed Implementation

[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0027] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and are not used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0028] The control method for home appliances provided in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0029] Reference Figure 1 The diagram illustrates a flowchart of a method for controlling a home appliance according to an embodiment of the present invention. The method may specifically include the following steps: Step 101: Obtain the user's control requests for multiple home devices and the environmental status of multiple communication protocols; In this embodiment of the invention, obtaining user control requests for multiple home devices can refer to the system receiving and parsing concurrent or batch control commands from the user. Each command includes: target device identifier (e.g., living room air conditioner, master bedroom curtains); control action content (e.g., adjusting temperature to 24℃, turning off, turning on cinema mode); and trigger context (e.g., manual APP operation, voice assistant command, automated scene trigger). Obtaining the environmental status of multiple communication protocols can refer to real-time collection of link quality and availability parameters of each available communication protocol in the current environment.

[0030] Step 102: Determine the device priority of the multiple home devices based on the control requests of the multiple home devices, and determine the communication protocols supported by the multiple home devices; In this embodiment of the invention, the content, context, or device type of the user's current control request can be analyzed to assign an execution priority level to each home device for subsequent instruction scheduling decisions. For example, based on device functional importance: air conditioner, door lock, security sensor > lights > ambient lights, aromatherapy diffuser; based on the urgency of the control action: turning off the gas valve > dimming the lights; based on scene semantics: in "away mode," door locks and cameras have higher priority than curtains; based on user-defined rules: the user marks "bedroom air conditioner as high priority" in the app; based on historical behavior learning: the user pre-confirms the air conditioner's status, and the system automatically increases its priority.

[0031] Simultaneously, query the compatible communication methods (such as Wi-Fi, Zigbee, infrared, Bluetooth, etc.) for each home device. The acquisition methods may include: reading from device registration information or protocol libraries (such as the protocol list corresponding to device ID "Air Conditioner 001": [Wi-Fi, Infrared]); parsing through device description files; automatically reporting the supported protocol stacks when the device joins the network (such as through mDNS or Zigbee Commissioning); for older devices, relying on manual entry by the user or pre-configuration in the instruction manual.

[0032] Step 103: Determine the protocol priority of the multiple communication protocols based on the environmental status of the multiple communication protocols; In this embodiment of the invention, the system can continuously collect key performance indicators of each protocol link. For example: the environmental status corresponding to the Wi-Fi protocol: RSSI (e.g., -68dBm), channel occupancy rate (e.g., 55%), latency (ms), packet loss rate (%); the environmental status corresponding to the Zigbee protocol: Link Quality Indicator (LQI), number of neighboring nodes (e.g., 4), end-to-end packet loss rate (e.g., 2.1%), route hop count; the environmental status corresponding to the infrared protocol: transmission path obstruction status (yes / no), ambient light intensity (e.g., 800 lux), transmission angle alignment; the environmental status corresponding to the Bluetooth protocol: connection stability, broadcast success rate, RSSI fluctuation range. The above multi-dimensional environmental parameters are integrated and evaluated to assign a priority level to each protocol at the current moment, such as high availability, weak availability, or unavailable.

[0033] Step 104: Determine the target communication protocol corresponding to the multiple home devices based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols; In this embodiment of the invention, the communication protocols supported by home appliances can be a set of capabilities for each device, such as: Air conditioner 001: {Wi-Fi, Infrared}; Smart light A: {Zigbee}; Curtain motor B: {Zigbee, Bluetooth}. The protocol priority of multiple communication protocols can be the availability ranking of each protocol at the current moment, for example: Wi-Fi: priority = high (RSSI = -62 dBm, congestion rate = 30%); Zigbee: priority = medium (packet loss rate = 4%, number of neighbors = 3); Infrared: priority = low (ambient light = 1200 lux, obstruction exists); Bluetooth: priority = low (unstable connection).

[0034] For each device, the target communication protocol is selected from the subset of supported protocols, choosing the highest priority and currently available protocol as the channel for this command transmission. For example, Air Conditioner 001 uses the Wi-Fi protocol, although it also supports infrared, but infrared is currently a "low priority" protocol; Smart Light uses the Zigbee protocol; Curtain Motor uses the Zigbee protocol, Bluetooth is currently unreliable, and Zigbee is the second best but still available protocol.

[0035] Step 105: Based on the device priority of the multiple home devices, control commands are sent sequentially to the multiple home devices through the target communication protocol corresponding to the multiple home devices.

[0036] In this embodiment of the invention, assuming the device priorities of multiple home devices are as follows: air conditioner (high), door lock (high), main light (medium), and ambient light (low), the target communication protocols corresponding to these devices can be: air conditioner → Wi-Fi, door lock → Zigbee, main light → Zig-Fi, and ambient light → Zigbee. The system can send control commands sequentially according to priority, ensuring that high-priority devices receive communication resources and execution guarantees first. Specifically, high-priority devices send commands immediately; devices of the same priority can send commands in parallel (if the protocol channels do not conflict); low-priority devices send commands with delay or rate limiting to avoid interfering with critical commands.

[0037] This invention can acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; determine the device priorities of multiple home devices based on the control requests, and determine the communication protocols supported by multiple home devices; by pre-determining device priorities, it can ensure the rapid issuance of instructions to critical devices, avoid low-priority devices occupying high-load communication channels, thereby reducing overall control latency. Based on the environmental status of multiple communication protocols, the protocol priorities of multiple communication protocols are determined; based on the communication protocols supported by multiple home devices and the protocol priorities of multiple communication protocols, the target communication protocol corresponding to multiple home devices is determined; the selection of communication protocols not only relies on preset priorities, but also dynamically evaluates the availability of each protocol in conjunction with real-time environmental status, avoiding failures caused by forcibly using a certain protocol under weak signal or high interference conditions, and even if a certain protocol temporarily deteriorates, it can automatically switch to the currently optimal available protocol, significantly improving the command success rate. Based on the device priorities of multiple home devices, control commands are sent to multiple home devices sequentially through the target communication protocols corresponding to the multiple home devices. The process of sending control commands in this embodiment of the invention does not rely on a single communication standard. It can simultaneously manage multiple home devices that support different communication protocols, realize unified intelligent scheduling of home devices, and significantly improve the efficiency and user experience of concurrent control of multiple devices while ensuring high reliability.

[0038] Reference Figure 2The diagram illustrates a flowchart of another method for controlling a home appliance according to an embodiment of the present invention. The method may specifically include the following steps: Step 201: Obtain the user's control requests for multiple home devices and the environmental status of multiple communication protocols; Step 202: Determine the device priority of the multiple home devices based on the control requests of the multiple home devices, and determine the communication protocols supported by the multiple home devices; Step 203: Determine the protocol priority of the multiple communication protocols based on the environmental status of the multiple communication protocols; In one embodiment, the plurality of communication protocols include at least one of Wi-Fi, Zigbee, and infrared protocols; the environmental state of the Wi-Fi protocol includes signal strength and channel congestion rate; the environmental state of the Zigbee protocol includes network packet loss rate and number of neighboring nodes; and the environmental state of the infrared protocol includes the obstruction state between the transmitter and receiver and ambient light intensity. The step of determining the protocol priority of the plurality of communication protocols based on their environmental states may further include the following sub-steps: Sub-step S11: If the signal strength and channel congestion rate of the Wi-Fi protocol meet the first preset condition, the Wi-Fi protocol has the highest protocol priority. Sub-step S12: If the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol meet the second preset condition, the Zigbee protocol has the highest protocol priority. In sub-step S13, if the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol do not meet the second preset condition, the infrared protocol has the highest protocol priority.

[0039] In this embodiment of the invention, by setting explicit environmental state threshold conditions, the system only enables the high-bandwidth but interference-sensitive Wi-Fi protocol when the link quality is reliable, avoiding blind use in weak signal or high congestion scenarios that could lead to timeout failures. When Wi-Fi is unavailable, the system automatically assesses the health of the Zigbee network, ensuring the Mesh network has stable routing capabilities before switching, preventing commands from being sent to isolated or high-packet-loss Zigbee nodes. The system only degrades to infrared when all wireless protocols are degraded, maximizing the use of highly reliable wireless channels and reducing reliance on infrared communication sensitive to physical visibility and ambient light. This embodiment of the invention, through a tiered activation strategy, avoids forcing the use of high-load protocols in degraded states, thereby reducing channel occupation caused by invalid retransmissions, lowering the RF power consumption of the central controller and terminal devices, and preventing overall performance degradation due to protocol contention when multiple devices are running concurrently.

[0040] Step 204: Determine the target communication protocol corresponding to the multiple home devices based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols; Step 205: Obtain the scene information corresponding to the control request, and determine whether the control request has a preset strategy based on the scene information corresponding to the control request; Step 206: If the control request has a preset strategy, send the control command to the plurality of home devices in sequence according to the preset strategy; In this embodiment of the invention, scene information can originate from: explicit user triggering, such as clicking "Sleep Mode" in the app; automatic system recognition, inferring the "homecoming scene" based on context such as time, location (phone entering the home gate fence), and device status (door lock open + lights off); and voice semantic parsing, such as mapping "I want to watch a movie" to "Cinema Mode". The system can maintain a scene policy library, including: scene identifiers; corresponding device lists and target states (air conditioner → 24℃ cooling, curtains → closed, lights → 30% warm yellow); preset device priority order (air conditioner > curtains > lights); and pre-selected target communication protocols (air conditioner → Zigbee, lights → Zigbee, curtains → infrared). If the current scene ID has a matching item in the policy library, it can be determined that a preset policy exists. When the control request has a preset policy, instructions can be issued directly using the device execution order and communication protocol defined in the policy. This can significantly reduce control latency, improve response speed, ensure the consistency of execution in critical scenes, and reduce the computational load on the central controller. This mechanism transforms intelligent decision-making from real-time computation to cache hits through scenario-driven strategy preloading, achieving a leap in system performance and optimization of user experience without reducing system reliability.

[0041] In one embodiment, the generation of the preset strategy may include the following sub-steps: Sub-step S21: Obtain historical communication data; the historical communication data includes: the historical control time of the home device, the communication protocol used during the historical control time, and the environmental status of the communication protocol; Sub-step S22: Generate the preset strategy based on the historical communication data.

[0042] In this embodiment of the invention, the system can continuously record the context and results of each control operation, forming a structured log. Through offline or low-frequency online analysis, the following patterns are identified: temporal regularity, where a device is frequently controlled between 18:00 and 20:00 on weekdays; protocol effectiveness, where Wi-Fi often fails due to congestion during the above-mentioned period, while Zigbee has a success rate >95%; and scenario relevance, where control during this period is often accompanied by "door lock opening" events, which can be categorized as a "homecoming scenario". The generated strategy content may include: triggering conditions, scenario = "homecoming mode" AND time ∈ [18:00, 20:00] AND weekday ∈ {weekday}; device action list: [air conditioner → cooling to 24℃, lights → on]; pre-selected communication protocols: air conditioner → Zigbee, lights → Zigbee; execution order, sorted by device priority (air conditioner first). The preset strategy of this embodiment of the invention can directly specify the target protocol and order, skipping real-time monitoring and decision calculation, improving the response speed of high-frequency scenarios; moreover, because the strategy is generated based on historical successful paths, the first transmission success rate is high, which can reduce retransmissions.

[0043] Step 207: If the control request does not have a preset strategy, control commands are sent to the multiple home devices sequentially according to their device priorities and through the target communication protocols corresponding to the multiple home devices. Step 208: If no response is received from the home appliance in response to the control command within a preset time, the control command is resent to the home appliance via the target communication protocol corresponding to the home appliance.

[0044] In this embodiment of the invention, the timer can be started after the control command is sent. If no response (such as ACK) is received from the target device within a preset time, the same command is immediately resent through the original target communication protocol to cope with communication loss caused by momentary interference, signal attenuation or device processing delay, thereby improving control reliability.

[0045] In one embodiment, the step of resending the control command to the home device via the target communication protocol corresponding to the home device may further include the following sub-steps: Sub-step S31: Adjust the transmission parameters of the target communication protocol corresponding to the home appliance, and send the control command to the home appliance through the target communication protocol with adjusted transmission parameters; the adjustment of the transmission parameters of the target communication protocol corresponding to the home appliance includes: adjusting the communication channel of the signal of the target communication protocol corresponding to the home appliance, or the signal transmission power, or the signal transmission angle and / or extending the signal transmission duration; In this embodiment of the invention, if a response is not received within a preset time after a control command is sent via the target communication protocol (i.e., the first-level retransmission condition is met), the system determines that the current protocol still has room for optimization. For example, Wi-Fi supports channel switching, Zigbee supports power adjustment, and infrared supports angle / duration adjustment. Therefore, instead of immediately switching to other protocols, the system first optimizes the physical layer or link layer transmission parameters of the current protocol (such as channel, transmission power, transmission angle, transmission duration, etc.) and then retransmits the command. This proactively improves communication conditions and increases the probability of successful command delivery while maintaining protocol consistency.

[0046] In one embodiment, the method may further include the following sub-steps: Sub-step S41: If the home device supports multiple communication protocols, determine the alternative communication protocol corresponding to the home device according to the protocol priority of the multiple communication protocols. Sub-step S42: Send the control command to the home device through the alternative communication protocol corresponding to the home device; In this embodiment of the invention, when a home appliance supports multiple communication protocols (such as Wi-Fi + Zigbee + infrared), if the primary target communication protocol still fails to successfully transmit control commands after retransmission or parameter optimization, the optimal protocol is selected from the remaining available protocols as a backup communication protocol based on the protocol priority of each protocol. The device then attempts to resend the command through this backup channel, thereby maximizing the success rate of command delivery. By fully utilizing the device's multi-protocol redundancy capabilities, functional interruptions due to temporary failure of a single protocol are avoided, significantly improving the control reliability of multi-mode devices.

[0047] Sub-step S43: If the home appliance does not support multiple communication protocols, record the fault information and output the fault information to the user; In this embodiment of the invention, when the system determines that a home appliance only supports a single communication protocol, and the protocol still cannot successfully transmit control commands after multiple retransmissions and parameter optimizations, it actively records structured fault information and outputs understandable and operable alarm prompts to the user, thereby improving system transparency, assisting users in quickly locating problems, and avoiding confusion and misjudgment caused by "device not responding".

[0048] This invention can acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; determine the device priorities of multiple home devices based on the control requests, and determine the communication protocols supported by multiple home devices; by pre-determining device priorities, it can ensure the rapid issuance of instructions to critical devices, avoid low-priority devices occupying high-load communication channels, thereby reducing overall control latency. Based on the environmental status of multiple communication protocols, the protocol priorities of multiple communication protocols are determined; based on the communication protocols supported by multiple home devices and the protocol priorities of multiple communication protocols, the target communication protocol corresponding to multiple home devices is determined; the selection of communication protocols not only relies on preset priorities, but also dynamically evaluates the availability of each protocol in conjunction with real-time environmental status, avoiding failures caused by forcibly using a certain protocol under weak signal or high interference conditions, and even if a certain protocol temporarily deteriorates, it can automatically switch to the currently optimal available protocol, significantly improving the command success rate. Based on the device priorities of multiple home devices, control commands are sent to multiple home devices sequentially through the target communication protocols corresponding to the multiple home devices. The process of sending control commands in this embodiment of the invention does not rely on a single communication standard. It can simultaneously manage multiple home devices that support different communication protocols, realize unified intelligent scheduling of home devices, and significantly improve the efficiency and user experience of concurrent control of multiple devices while ensuring high reliability.

[0049] Reference Figure 3 The diagram illustrates a logic diagram of a home appliance control method according to an embodiment of the present invention. To enable those skilled in the art to better understand the embodiments of the present invention, the following explanation is provided... Figure 3 The embodiments of the present invention are described below: 1. When a new device is connected after the system starts up: Parse the broadcast protocol support information (e.g., Zigbee devices broadcast support for Zigbee 3.0), or manually enter the protocol into the protocol library using the protocol types pre-stored in the device manual (e.g., older infrared air conditioners only support infrared commands). The protocol library is stored in the format of "Device ID-Protocol Type-Priority" (e.g., Air Conditioner 001: Wi-Fi high priority, Infrared low priority). Simultaneously, periodically check for changes in device protocol support (e.g., the addition of Bluetooth Mesh support after a software upgrade) and update the protocol library accordingly.

[0050] 2. The environmental monitoring module of the central controller continuously collects key parameters of various communication protocols: Wi-Fi protocol: Obtain signal strength (RSSI, in dBm) and channel congestion rate through router API, such as the number of devices currently occupying the channel / total channel capacity; set thresholds, such as RSSI < -70dBm or congestion rate > 60%, to determine "weak availability".

[0051] Zigbee protocol: Monitors packet loss rate between nodes (statistics based on ACK confirmation packets) and the number of neighboring nodes (a node is considered isolated if it has fewer than 3 neighboring nodes); sets thresholds, such as determining "weak availability" if the packet loss rate is greater than 5% or the number of neighboring nodes is less than 3.

[0052] Infrared protocol: Detects the line-of-sight between the transmitter and receiver (using infrared sensors to assist in determining the occlusion status) and ambient light intensity (strong light may interfere with infrared signals); sets thresholds, such as determining "weak availability" when there is occlusion or light intensity > 1000 lux.

[0053] 3. Dynamic Protocol Selection and Command Transmission: When a user sends a control request (such as "set the living room air conditioner to 24℃ for cooling") via a mobile app or voice command, the system executes the following process: First, based on the target device ID (e.g., "Air Conditioner 001"), retrieve the list of supported protocols (Wi-Fi, Infrared) from the protocol library and sort them by priority (Wi-Fi has a higher priority than Infrared by default). Then, check the real-time environmental status of each protocol—if Wi-Fi RSSI ≥ -65dBm and channel congestion rate < 40% (high availability), prioritize the Wi-Fi protocol; if Wi-Fi is weakly available (e.g., RSSI = -75dBm), but the Zigbee node load is normal (packet loss rate < 3%), switch to the Zigbee protocol; if all wireless protocols are unavailable (e.g., no Wi-Fi due to power failure), select the Infrared protocol (ensure that the transmitter and the air conditioner's infrared receiving window are unobstructed).

[0054] 4. Command transmission and timeout detection: After selecting the protocol, the central controller sends instructions through the corresponding communication module (e.g., sending the "temperature setting 24℃ + cooling mode" instruction via TCP / IP packets using the Wi-Fi protocol) and starts a 2-second timer (which can be adjusted according to the device's response speed, e.g., 1 second for infrared instructions). If an ACK confirmation packet is received from the device before the timer expires (e.g., the air conditioner returns "instruction received"), the transmission is considered successful; if no response is received after the timeout, a retransmission compensation mechanism is triggered.

[0055] 5. Multi-level retransmission compensation mechanism: Level 1 retransmission (parameter adjustment): After the first failure, the system adjusts the current protocol parameters to optimize transmission conditions—for example, the Wi-Fi protocol switches to a less interfered channel (such as switching from channel 6 to channel 11), the Zigbee protocol increases the transmit power (such as increasing from 10dBm to 15dBm), and retransmits the command (up to 2 retries, with an interval of 0.5 seconds between each retrieval).

[0056] Secondary retransmission (protocol switch): If it still fails after parameter adjustment (for example, if ACK is not received after retrying 3 times), the system automatically switches to other alternative protocols supported by the device for retransmission (such as switching from Wi-Fi to infrared). For the infrared protocol, the central controller adjusts the angle of the infrared emitter through a stepper motor (to ensure alignment with the air conditioner receiving window) and extends the transmission duration (for example, transmitting a normal instruction for 100 ms and transmitting for 200 ms in the compensation mode).

[0057] Termination: If all available protocols fail after retrying (for example, infrared transmission fails due to occlusion), the system records the fault information (including the target device ID, the type of failed protocol, environmental parameters, and the number of retries), and pushes a "command not executed" reminder to the user's mobile phone APP. At the same time, it is recommended that the user check the device status (such as whether the infrared receiving window of the air conditioner is occluded).

[0058] 6. Optimization of collaborative control scenarios: In a multi-device linkage scenario, such as the "go home mode" which needs to control the air conditioner, lights, and curtains simultaneously, the system preferentially assigns a highly available protocol (such as Wi-Fi) to key devices (such as the air conditioner), and selects an alternative protocol (such as Zigbee) for low-priority devices (such as ambient lights). By dynamically adjusting the protocol selection order of each device, it avoids channel congestion caused by multi-protocol concurrency. For example, when Wi-Fi transmits multiple instructions simultaneously, it gives priority to ensuring air conditioner instructions. At the same time, if the instruction retransmission of a certain device fails, such as the curtain motor does not respond due to Zigbee packet loss, the system only retransmits the instruction of that device without affecting other devices. For example, if the lights have been turned on normally, it ensures partial availability of the linkage scenario.

[0059] Through historical data statistics, such as "the Wi-Fi signal in the living room is usually weak at 7 pm on weekdays", it anticipates the optimal protocol in a specific scenario and caches it in advance, reducing the calculation delay of real-time monitoring, but still retaining the dynamic switching ability. [[ID=十三]]

[0060] The embodiment of the present invention can also anticipate the optimal protocol in a specific scenario through historical data statistics. The specific process is as follows: I. Data collection and storage 1. Data content: The system continuously records and stores historical communication data. Each data record should contain the following key information: 1) Timestamp: The exact time (year, month, day, hour, minute) when the instruction is sent, as well as the week information.

[0061] 2) Scenario identifier: Such as scenarios triggered by users such as "go home mode", "leave home mode", "theater mode", or scenarios automatically recognized by the system, such as "weekday evenings", "weekend days".

[0062] 3) Device ID: The identifier of the target device that executes the instruction.

[0063] 4) Protocol used: The type of protocol used for each successful transmission of a command, such as Wi-Fi, Zigbee, or infrared.

[0064] 5) Protocol performance parameters: Real-time environmental status of each optional protocol during command transmission, such as: Wi-Fi signal strength (RSSI) and channel congestion rate; Zigbee packet loss rate and number of neighboring nodes; infrared occlusion status and ambient light intensity.

[0065] 6) Transmission result: success or failure; if it fails, record the reason for the failure, such as timeout or no response. Alternatively, integrate Wi-Fi, Zigbee, and infrared multi-protocol transceiver chips into the central controller, and control the start and stop of the chips through software to avoid the additional cost of external gateways. For example, a single chip can support both Zigbee and infrared transmission simultaneously.

[0066] 2. Database structure: Use a time-series database or relational database (SQL, Oracle), and index it by device ID, scenario, time period, etc., to enable efficient querying and analysis.

[0067] II. Data Analysis 1. Periodic analysis: The system periodically (e.g., every early morning) analyzes historical data to uncover patterns in the relationship between communication quality and time and scenario.

[0068] 2. Based on the analysis results, summarize the "expected optimal protocol" or "protocol priority list" for each device in different scenarios or time periods. For example, generate the following mode rules for device "Air Conditioner 001": Weekday AND time period: 18:00-20:00 -> Preferred protocol: Zigbee, secondary protocol: Infrared. Weekend AND time period: 14:00-17:00 -> Preferred protocol: Wi-Fi.

[0069] III. Prediction and Caching When the system is running or a scenario is about to be activated, the corresponding predictive strategies are loaded into memory in advance from the strategy library based on the current time, preset scheduled tasks, or user habits. For example, the system will automatically preset the preferred protocol for "Air Conditioner 001" from 19:00 to 20:00 to Zigbee at 18:50 every day.

[0070] IV. Application during instruction sending When a user initiates a control command or triggers a scenario, the system first checks if there is a predictive strategy applicable to the current context (device, time, scenario). If a predictive strategy exists, the system directly uses the predicted optimal protocol for the initial command transmission, eliminating the need for real-time monitoring and comparison of the status of each protocol, thus reducing computational latency. If the predicted protocol transmission fails (timeout without ACK), the system immediately falls back to the standard dynamic monitoring and switching process, selecting another available protocol for retransmission based on the real-time status of each protocol. This ensures the system's robustness even if predictions are inaccurate.

[0071] The embodiments of the present invention can automatically identify the communication protocol types supported by the device, such as through device broadcast information or pre-stored protocol library, and dynamically switch the optimal protocol according to the real-time environmental status (such as signal strength, node load) to ensure efficient transmission of instructions; through the instruction retransmission compensation mechanism, such as timeout detection and multiple retransmissions, the problem of instruction loss caused by environmental interference is solved, and the instruction success rate is ≥99%; the dynamic switching of multiple protocols and the retransmission mechanism work together to ensure the timing accuracy and execution integrity of multi-device linkage scenarios (such as the synchronous response of air conditioner, lights and curtains in "home mode").

[0072] It should be noted that the control method for home appliances provided in this embodiment of the invention can be executed by a control device for the home appliance, or a control module within the control device for executing the control method for loading the home appliance. This embodiment of the invention uses the execution of the control method for loading the home appliance by a control device for the home appliance as an example to illustrate the control method for the home appliance provided in this embodiment of the invention.

[0073] Reference Figure 4 The diagram illustrates a structural block diagram of a control device for a home appliance according to an embodiment of the present invention. The device includes: The control request acquisition module 301 is used to acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; Home appliance sorting module 302 is used to determine the device priority of the multiple home appliances based on the control requests of the multiple home appliances, and to determine the communication protocols supported by the multiple home appliances; The communication protocol sorting module 303 is used to determine the protocol priority of the multiple communication protocols based on the environmental status of the multiple communication protocols; The communication protocol determination module 304 is used to determine the target communication protocol corresponding to the multiple home devices based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols; The control command sending module 305 is used to send control commands to the multiple home devices sequentially according to the device priority of the multiple home devices and through the target communication protocol corresponding to the multiple home devices.

[0074] In this embodiment of the invention, the device further includes: The control command retransmission module is used to resend the control command to the home device via the target communication protocol corresponding to the home device if no receiving response is received from the home device for the control command within a preset time.

[0075] In this embodiment of the invention, the control command retransmission module includes: The first-level retransmission submodule is used to adjust the transmission parameters of the target communication protocol corresponding to the home device, and send the control command to the home device through the target communication protocol after adjusting the transmission parameters.

[0076] In this embodiment of the invention, the control command retransmission module further includes: The alternative protocol submodule is used to determine the alternative communication protocol corresponding to the home device based on the protocol priority of the multiple communication protocols when the home device supports multiple communication protocols. The secondary retransmission submodule is used to send the control command to the home device through the alternative communication protocol corresponding to the home device.

[0077] In this embodiment of the invention, the control command retransmission module further includes: The fault information recording submodule is used to record fault information and output the fault information to the user when the home device does not support multiple communication protocols.

[0078] In this embodiment of the invention, the device further includes: The scene information acquisition module is used to acquire scene information corresponding to the control request, and determine whether the control request has a preset strategy based on the scene information corresponding to the control request. A preset strategy control module is used to send the control command to the plurality of home devices sequentially according to the preset strategy when the control request has a preset strategy; The control command sending module includes: The control command sending submodule is used to send control commands to the multiple home devices sequentially according to their device priorities and through the target communication protocols corresponding to the multiple home devices when the control request does not have a preset strategy.

[0079] In this embodiment of the invention, the device further includes: A historical data acquisition module is used to acquire historical communication data; the historical communication data includes: the historical control time of the home device, the communication protocol used during the historical control time, and the environmental status of the communication protocol; The preset strategy generation module is used to generate the preset strategy based on the historical communication data.

[0080] In this embodiment of the invention, the plurality of communication protocols include at least one of Wi-Fi protocol, Zigbee protocol, and infrared protocol; the environmental status of the Wi-Fi protocol includes signal strength and channel congestion rate, the environmental status of the Zigbee protocol includes network packet loss rate and number of neighboring nodes, and the environmental status of the infrared protocol includes the obstruction status between the transmitter and receiver and ambient light intensity; the communication protocol sorting module includes: The first protocol sorting submodule is configured to prioritize the Wi-Fi protocol to the highest level when the signal strength and channel congestion rate of the Wi-Fi protocol meet a first preset condition. The second protocol sorting submodule is used to prioritize the Zigbee protocol when the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol meet the second preset condition. The third protocol sorting submodule is used to prioritize the infrared protocol when the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol do not meet the second preset condition.

[0081] In this embodiment of the invention, the first-level retransmission submodule includes: The first-level retransmission unit is used to adjust the communication channel, signal transmission power, or signal transmission angle of the target communication protocol corresponding to the home device and / or extend the signal transmission duration.

[0082] This invention can acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; determine the device priorities of multiple home devices based on the control requests, and determine the communication protocols supported by multiple home devices; by pre-determining device priorities, it can ensure the rapid issuance of instructions to critical devices, avoid low-priority devices occupying high-load communication channels, thereby reducing overall control latency. Based on the environmental status of multiple communication protocols, the protocol priorities of multiple communication protocols are determined; based on the communication protocols supported by multiple home devices and the protocol priorities of multiple communication protocols, the target communication protocol corresponding to multiple home devices is determined; the selection of communication protocols not only relies on preset priorities, but also dynamically evaluates the availability of each protocol in conjunction with real-time environmental status, avoiding failures caused by forcibly using a certain protocol under weak signal or high interference conditions, and even if a certain protocol temporarily deteriorates, it can automatically switch to the currently optimal available protocol, significantly improving the command success rate. Based on the device priorities of multiple home devices, control commands are sent to multiple home devices sequentially through the target communication protocols corresponding to the multiple home devices. The process of sending control commands in this embodiment of the invention does not rely on a single communication standard. It can simultaneously manage multiple home devices that support different communication protocols, realize unified intelligent scheduling of home devices, and significantly improve the efficiency and user experience of concurrent control of multiple devices while ensuring high reliability.

[0083] The control device for home appliances in this embodiment of the invention can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network-attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This embodiment of the invention does not impose specific limitations.

[0084] The control device for the home appliances in this embodiment of the invention can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this embodiment of the invention does not impose specific limitations.

[0085] The control device for home appliances provided in this embodiment of the invention can achieve Figures 1 to 3The various processes implemented by the control device of the home appliance in the control method embodiment will not be described again here to avoid repetition.

[0086] Optionally, embodiments of the present invention also provide an electronic device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When executed by the processor, the program or instructions implement the various processes of the above-described home appliance control method embodiments and achieve the same technical effects. To avoid repetition, further details are omitted here. It should be noted that the electronic device in the embodiments of the present invention includes the aforementioned mobile electronic device and non-mobile electronic device.

[0087] This invention also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described home appliance control method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0088] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0089] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of the present invention is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0090] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of 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 the present invention, 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 (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0091] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other modifications under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these modifications are within the protection scope of the present invention.

Claims

1. A method for controlling home appliances, characterized in that, The method includes: Acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; The device priority of the multiple home devices is determined based on the control requests of the multiple home devices, and the communication protocols supported by the multiple home devices are also determined. Based on the environmental status of the multiple communication protocols, determine the protocol priority of the multiple communication protocols; Based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols, the target communication protocol corresponding to the multiple home devices is determined; Based on the device priority of the multiple home devices, control commands are sent sequentially to the multiple home devices through the target communication protocol corresponding to the multiple home devices.

2. The control method for home appliances according to claim 1, characterized in that, The method further includes: If no response is received from the home appliance in response to the control command within a preset time, the control command is resent to the home appliance via the target communication protocol corresponding to the home appliance.

3. The control method for home appliances according to claim 2, characterized in that, The step of resending the control command to the home device via the target communication protocol corresponding to the home device includes: Adjust the transmission parameters of the target communication protocol corresponding to the home appliance, and send the control command to the home appliance through the target communication protocol with the adjusted transmission parameters.

4. The control method for home appliances according to claim 2, characterized in that, The method further includes: When the home device supports multiple communication protocols, the alternative communication protocol corresponding to the home device is determined according to the protocol priority of the multiple communication protocols; The control command is sent to the home appliance through the alternative communication protocol corresponding to the home appliance.

5. The control method for home appliances according to claim 4, characterized in that, The method further includes: If the home appliance does not support multiple communication protocols, the fault information is recorded and output to the user.

6. The control method for home appliances according to claim 1, characterized in that, The method further includes: Obtain the scene information corresponding to the control request, and determine whether the control request has a preset strategy based on the scene information corresponding to the control request; If the control request has a preset strategy, the control command is sent to the plurality of home devices in sequence according to the preset strategy; The step of sending control commands sequentially to the multiple home devices according to their device priorities and through the target communication protocols corresponding to the multiple home devices includes: If the control request does not have a preset strategy, control commands are sent sequentially to the multiple home devices according to their device priorities and through the target communication protocols corresponding to the multiple home devices.

7. The control method for home appliances according to claim 6, characterized in that, The method further includes: Acquire historical communication data; the historical communication data includes: the historical control time of the home device, the communication protocol used during the historical control time, and the environmental status of the communication protocol; The preset strategy is generated based on the historical communication data.

8. The control method for home appliances according to claim 1, characterized in that, The plurality of communication protocols include at least one of the following: Wi-Fi protocol, Zigbee protocol, and infrared protocol; the environmental status of the Wi-Fi protocol includes signal strength and channel congestion rate, the environmental status of the Zigbee protocol includes network packet loss rate and number of neighboring nodes, and the environmental status of the infrared protocol includes the obstruction status between the transmitter and receiver and ambient light intensity; determining the protocol priority of the plurality of communication protocols based on the environmental status of the plurality of communication protocols includes: When the signal strength and channel congestion rate of the Wi-Fi protocol meet the first preset condition, the Wi-Fi protocol has the highest protocol priority. If the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol meet the second preset condition, the Zigbee protocol has the highest protocol priority. If the signal strength and channel congestion rate of the Wi-Fi protocol do not meet the first preset condition, and the network packet loss rate and number of neighboring nodes of the Zigbee protocol do not meet the second preset condition, the infrared protocol has the highest protocol priority.

9. The control method for home appliances according to claim 3, characterized in that, The adjustment of the transmission parameters of the target communication protocol corresponding to the home appliance includes: Adjust the communication channel, signal transmission power, signal transmission angle, and / or extend the signal transmission duration of the target communication protocol corresponding to the home appliance.

10. A control device for a home appliance, characterized in that, The device includes: The control request acquisition module is used to acquire user control requests for multiple home devices and the environmental status of multiple communication protocols; A home appliance sorting module is used to determine the device priority of the multiple home appliances based on the control requests of the multiple home appliances, and to determine the communication protocols supported by the multiple home appliances; A communication protocol sorting module is used to determine the protocol priority of the multiple communication protocols based on the environmental status of the multiple communication protocols; A communication protocol determination module is used to determine the target communication protocol corresponding to the multiple home devices based on the communication protocols supported by the multiple home devices and the protocol priority of the multiple communication protocols; The control command sending module is used to send control commands to the multiple home devices sequentially according to their device priorities and through the target communication protocols corresponding to the multiple home devices.

11. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the control method for the home appliance as described in claims 1-9.

12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the control method for home appliances as described in claims 1-9.