Unified control method and device for smart home equipment

By integrating multi-mode communication chipsets and protocol identification algorithms, it achieves unified control of smart home devices across brands, solves the problems of protocol compatibility and ecosystem barriers, provides high reliability and security, and supports automated scene execution and fine-grained permission management in the event of network outage.

CN121770919APending Publication Date: 2026-03-31GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511957921.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-23
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

When smart home devices interconnect across brands, there are protocol compatibility and ecosystem barriers, making it difficult to achieve unified control between devices. Furthermore, existing solutions are highly dependent on networks, have rudimentary access control, and pose security risks.

Method used

By integrating a multi-mode communication chipset to receive device data with different wireless protocols, using a protocol identification algorithm to parse and select the target protocol parsing plugin, storing it locally, and processing device status and control commands, combined with a local rule engine and cloud collaboration, it provides fine-grained permission management.

Benefits of technology

It enables unified access and control of smart home devices across brands and protocols, reduces network dependence, ensures uninterrupted functionality in the event of a network outage, provides high reliability and security, supports fine-grained permission settings, and prevents unauthorized operations and privacy leaks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121770919A_ABST
    Figure CN121770919A_ABST
Patent Text Reader

Abstract

The invention discloses a unified control method and device for smart home equipment. The method comprises the following steps: receiving original equipment communication data through an integrated multimode communication chipset; analyzing the original equipment communication data through a protocol identification algorithm to obtain equipment analysis data; selecting a target protocol analysis plug-in from a cloud protocol library according to the equipment analysis data; then, storing the target protocol analysis plug-in into a local memory of a system gateway; processing the original equipment communication data by using the target protocol analysis plug-in to obtain the current equipment state of the smart home, and / or encoding the control instruction by using the target protocol analysis plug-in to obtain a target control instruction which can be identified by the smart home equipment; and controlling the smart home device according to the current device state and / or the target control instruction. According to the invention, the technical problem that protocol compatibility and ecological barriers coexist during cross-brand interconnection and intercommunication of all smart home devices in a smart home system in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart home control technology, and more specifically, to a unified control method and device for smart home devices. Background Technology

[0002] With the rapid development of IoT technology, smart homes have gradually become an indispensable part of modern families. Through various sensors and smart devices, home environments can become more comfortable, safer, and more energy-efficient. However, the smart home industry suffers from severe fragmentation. Devices from different brands and ecosystems often use different communication protocols, such as Zigbee, Bluetooth, Wi-Fi, and Z-Wave, making interoperability and unified control between devices a major challenge.

[0003] Current smart home solutions, such as multi-protocol gateways and ecosystem interconnection systems, while addressing communication compatibility between devices to some extent, have significant limitations. Multi-protocol gateways typically require the integration of multiple communication modules to control devices using different protocols, but user device control remains confined to brand-specific apps or cloud platforms. While seamless connectivity within a single ecosystem is possible, cross-ecosystem device collaboration remains challenging, requiring users to manage multiple entry points, resulting in a fragmented user experience and hindering truly unified smart home control.

[0004] Furthermore, the control logic of existing smart home solutions heavily relies on cloud servers. Whether it's protocol conversion, data relay, or the execution of automated scenarios, a stable network connection is essential. Once the home network or cloud services are interrupted, device control will essentially fail, resulting not only in a degraded user experience but also in core home functions such as lighting and security systems, which may malfunction due to network issues, posing security risks. While some solutions utilize cloud servers for protocol conversion and data relay to achieve a degree of compatibility, this method has a significant weakness in network dependence, failing to guarantee system reliability and responsiveness during network outages.

[0005] Furthermore, existing technologies offer relatively rudimentary device access management, lacking fine-grained access control for multiple users, roles, and scenarios within a home. For instance, simple device sharing may not suffice when family members, tenants, or visitors need to use smart devices, especially regarding privacy protection and the delineation of device control permissions. Traditional smart home platforms struggle to grant device function levels to different user roles, which is particularly crucial in home role management and rental scenarios. Moreover, inadequate access management can lead to risks of privacy breaches and unauthorized access, impacting the security of the smart home system and user trust.

[0006] There is currently no effective solution to the above problems. Summary of the Invention

[0007] This invention provides a unified control method and apparatus for smart home devices, which at least solves the technical problem of protocol compatibility and ecosystem barriers coexisting when various smart home devices in a smart home system are interconnected across brands in related technologies.

[0008] According to one aspect of the present invention, a unified control method for smart home devices is provided, comprising: receiving raw device communication data from smart home devices employing different wireless communication protocols via an integrated multi-mode communication chipset, wherein the multi-mode communication chipset is a hardware component integrating multiple wireless communication function modules in a smart home system, and the smart home system includes the smart home devices; parsing the raw device communication data using a protocol identification algorithm to obtain device parsing data; selecting a target protocol parsing plugin from a cloud protocol library based on the device parsing data; storing the selected target protocol parsing plugin in the local memory of the gateway of the smart home system; processing the raw device communication data using the target protocol parsing plugin to obtain the current device state of the smart home device, and / or encoding control instructions using the target protocol parsing plugin to obtain a target control instruction recognizable by the smart home device; and controlling the smart home device according to the current device state and / or the target control instruction.

[0009] Optionally, by means of an integrated multi-mode communication chipset, raw device communication data from smart home devices using different wireless communication protocols is received, including: continuously monitoring the home network corresponding to the smart home system through the multi-mode communication chipset of the gateway to wait for receiving broadcast signals from the smart home devices; and determining the broadcast signal as the raw device communication data after receiving the broadcast signal from the smart home devices.

[0010] Optionally, selecting a target protocol parsing plugin from a cloud protocol library based on device parsing data includes: extracting the target device feature code of the smart home device from the device parsing data; matching the target device feature code with the cloud protocol library to obtain the target protocol parsing plugin, wherein the cloud protocol library stores multiple records of device feature codes and protocol parsing plugins.

[0011] Optionally, matching the target device feature code with a cloud protocol library to obtain the target protocol parsing plugin includes: performing cosine similarity calculation on the target device feature code and each of the device feature codes stored in the cloud protocol library to obtain a cosine similarity calculation result; determining the device feature code used when the calculation result of the highest cosine similarity calculation result is the target device feature code; and determining the protocol parsing plugin corresponding to the device feature code used when the calculation result is the highest as the target protocol parsing plugin.

[0012] Optionally, the unified control method further includes: when the smart home device first connects to the smart home system, after the smart home device is powered on, performing two-way authentication on the smart home device to obtain a two-way authentication result, wherein the two-way authentication includes: confirmation operation of the physical button of the smart home device and digital certificate signing; when both two-way authentication results are successful, allowing the smart home device to join the smart home system.

[0013] Optionally, the unified control method further includes: when the smart home system is detected to be offline, triggering the startup of the local rule engine of the smart home system, wherein the local rule engine is a software component running on the smart home device or the gateway of the smart home system, the software component is used to process and execute predefined scenario-based rules, the scenario-based rules are predefined operating parameters and operating modes of the smart home device in different scenarios; after determining that the local rule engine has started, controlling the smart home device to execute scenario-based control instructions corresponding to preset automation scenarios.

[0014] Optionally, the unified control method further includes: when the network of the smart home system is detected to be restored, automatically synchronizing the device data and control records generated by the offline devices corresponding to the network outage state of the smart home system to the cloud.

[0015] According to another aspect of the present invention, a unified control device for smart home devices is also provided, comprising: a receiving unit, configured to receive raw device communication data from smart home devices employing different wireless communication protocols via an integrated multi-mode communication chipset, wherein the multi-mode communication chipset is a hardware component integrating multiple wireless communication function modules in a smart home system, and the smart home system includes the smart home devices; a parsing unit, configured to parse the raw device communication data using a protocol identification algorithm to obtain device parsing data; a selection unit, configured to select a target protocol parsing plugin from a cloud protocol library based on the device parsing data; a storage unit, configured to store the selected target protocol parsing plugin in the local memory of the gateway of the smart home system; a processing unit, configured to process the raw device communication data using the target protocol parsing plugin to obtain the current device state of the smart home device, and / or to encode control instructions using the target protocol parsing plugin to obtain target control instructions recognizable by the smart home device; and a first control unit, configured to control the smart home device according to the current device state and / or the target control instructions.

[0016] Optionally, the receiving unit includes: a monitoring module, configured to continuously monitor the home network corresponding to the smart home system through the multi-mode communication chipset of the gateway, in order to wait to receive the broadcast signal of the smart home device; and a determining module, configured to determine that the broadcast signal is the original device communication data after receiving the broadcast signal of the smart home device.

[0017] Optionally, the selection unit includes: an extraction module for extracting the target device feature code of the smart home device from the device parsing data; and a matching module for matching the target device feature code with a cloud protocol library to obtain the target protocol parsing plugin, wherein the cloud protocol library stores multiple records of device feature codes and protocol parsing plugins.

[0018] Optionally, the matching module includes: a calculation submodule, used to perform cosine similarity calculation on the target device feature code and each of the device feature codes stored in the cloud protocol library to obtain a cosine similarity calculation result; a first determination submodule, used to determine the device feature code used when the calculation result of each of the cosine similarity calculation results is the highest as the target device feature code; and a second determination submodule, used to determine the protocol parsing plugin corresponding to the device feature code used when the calculation result is the highest as the target protocol parsing plugin.

[0019] Optionally, the unified control device further includes: a verification unit, configured to perform two-way authentication on the smart home device when it first connects to the smart home system, after the smart home device is powered on, and obtain a two-way authentication result, wherein the two-way authentication includes: confirmation operation of the physical button of the smart home device and digital certificate signing; and a joining unit, configured to allow the smart home device to join the smart home system when both two-way authentication results are passed.

[0020] Optionally, the unified control device further includes: a triggering unit, configured to trigger the startup of the local rule engine of the smart home system when the smart home system is detected to be offline, wherein the local rule engine is a software component running on the smart home device or the gateway of the smart home system, the software component being used to process and execute predefined scenario-based rules, the scenario-based rules being predefined operating parameters and operating modes of the smart home device under different scenarios; and a second control unit, configured to control the smart home device to execute scenario-based control commands corresponding to preset automation scenarios after determining that the local rule engine has started.

[0021] Optionally, the unified control device further includes a synchronization unit, used to automatically synchronize device data and control records generated by offline devices in the network outage state of the smart home system to the cloud when the network of the smart home system is detected to be restored.

[0022] According to one aspect of the present invention, a smart home system is provided, the smart home system using the unified control method for smart home devices described in any one of the above embodiments.

[0023] According to one aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes the unified control method for smart home devices described in any of the preceding embodiments.

[0024] According to one aspect of the present invention, a processor is provided for running a program, wherein the program executes the unified control method for smart home devices described in any of the above embodiments.

[0025] According to one aspect of the present invention, a computer program product is provided, including computer instructions, which, when executed by a processor, perform the unified control method for smart home devices as described above.

[0026] In this embodiment of the invention, an integrated multi-mode communication chipset is used to receive raw device communication data from smart home devices employing different wireless communication protocols. The multi-mode communication chipset is a hardware component in the smart home system that integrates multiple wireless communication functional modules. The smart home system includes smart home devices. The raw device communication data is parsed using a protocol identification algorithm to obtain device parsing data. A target protocol parsing plugin is selected from a cloud-based protocol library based on the device parsing data. After selecting the target protocol parsing plugin, it is stored in the local memory of the smart home system's gateway. The target protocol parsing plugin is used to process the raw device communication data to obtain the current device status of the smart home device, and / or, the target protocol parsing plugin is used to encode control commands to obtain target control commands recognizable by the smart home device. The smart home device is controlled based on the current device status and / or the target control commands. The above technical solution achieves unified access and control of smart home devices across brands and protocols, eliminating barriers between different ecosystems. It employs a dual-mode control architecture combining local edge computing and cloud collaboration, reducing system dependence on the network and ensuring uninterrupted critical business functions even in network outages. It provides granular and scenario-based device permission management, enhancing system security and preventing unauthorized operations and privacy leaks. This results in a gateway with lifelong evolution capabilities, the ability to connect to devices from different brands, high ecosystem coverage, and the continued execution of automated scenarios locally even in network outages. It also reduces response time, enhances reliability, and supports more than 10 fine-grained permission settings, effectively preventing unauthorized operations and privacy leaks. Ultimately, it solves the technical problem of protocol compatibility and ecosystem barriers coexisting when smart home devices in cross-brand interconnection systems. Attached Figure Description

[0027] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0028] Figure 1 This is a hardware structure block diagram of a mobile terminal for a unified control method for smart home devices according to an embodiment of the present invention.

[0029] Figure 2 This is a flowchart of a unified control method for smart home devices according to an embodiment of the present invention;

[0030] Figure 3 This is a flowchart of an optional unified control method for smart home devices according to an embodiment of the present invention;

[0031] Figure 4 This is a schematic diagram of a unified control device for smart home devices according to an embodiment of the present invention.

[0032] The above figures include the following reference numerals:

[0033] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

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

[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention 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 the invention 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 a 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.

[0036] As described in the background section, in related technologies, smart home systems suffer from both protocol compatibility and ecosystem barriers when interconnecting across brands. This invention provides a unified control method and apparatus for smart home devices, a smart home system, a computer-readable storage medium, a processor, and a computer program product.

[0037] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0038] The methods and embodiments provided in this invention can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a unified control method for smart home devices according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0039] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the unified control method for smart home devices in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0040] Example 1

[0041] According to an embodiment of the present invention, a method embodiment of a unified control method for smart home devices is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0042] Figure 2 This is a flowchart of a unified control method for smart home devices according to an embodiment of the present invention, such as... Figure 2As shown, the method includes the following steps:

[0043] Step S202: Receive raw device communication data from smart home devices using different wireless communication protocols via an integrated multi-mode communication chipset. The multi-mode communication chipset is a hardware component in the smart home system that integrates multiple wireless communication function modules. The smart home system includes smart home devices.

[0044] In this embodiment, integrating multiple communication chips is merely the hardware foundation. This embodiment achieves complete decoupling between protocols and applications through a "protocol-independent architecture," rather than simply stacking hardware. Compared to existing technologies, this is the first time that a unified data model (UDM) and a dynamic protocol-driven hot-swappable mechanism are used within the gateway to shield private protocol differences, freeing application developers from concern for the underlying protocols and significantly reducing development complexity. This hardware-software co-design transcends conventional thinking in the field.

[0045] This method leverages the versatility of multi-mode communication chipsets, which integrate various wireless communication technologies such as Zigbee, Bluetooth Mesh, and Wi-Fi, enabling the reception and processing of signals from different protocols on a single hardware platform. When smart home devices send signals, the corresponding modules of the chipset (antenna, demodulator, and protocol parser) identify and parse these signals, converting them into data formats that the system can understand, thereby achieving information collection and interconnection between multi-protocol devices.

[0046] By implementing this control method, the compatibility and responsiveness of the smart home system are significantly enhanced. The integration of a multi-mode communication chipset enables the smart home gateway to seamlessly receive and process data from devices of different brands and protocols, greatly expanding the system's device access capabilities and freeing it from the limitations of a single communication standard, providing users with a comprehensive smart home network. Simultaneously, by optimizing the signal reception and parsing process, high-efficiency and low-latency data transmission is ensured. Even in environments with dense devices or signal interference, accurate data capture and timely processing are guaranteed, improving the immediacy of user operation and the overall robustness of the system.

[0047] Step S204: Parse the original device communication data using a protocol identification algorithm to obtain device parsed data.

[0048] In this embodiment, the core of the system employs a dynamic protocol identification algorithm for the identification and access of multi-protocol devices. This dynamic protocol identification algorithm is not simply a matter of applying existing technologies; its innovation lies in combining cosine similarity calculation (threshold > 0.92) with real-time interaction with a cloud-based protocol library.

[0049] In this method, the raw device communication data packets received by the gateway contain specific protocol characteristics, such as header information, vendor ID, and data format. The protocol identification algorithm uses these characteristics to compare and match them with pre-stored protocol templates, employing methods such as cosine similarity calculation to determine the protocol of the received data packet. Once the specific protocol is identified, the algorithm further parses the payload in the data packet, extracting protocol-specific instructions, parameters, and status information to form device parsing data, preparing for subsequent protocol conversion and instruction execution.

[0050] By implementing this control method, the device access and protocol compatibility capabilities of the smart gateway are greatly enhanced. Through precise protocol identification, the gateway can quickly and accurately parse the communication data of various devices, regardless of whether the devices use different protocols such as Zigbee, Bluetooth Mesh, or Wi-Fi. This means that users can connect smart home devices of different brands and protocols to the system and enjoy a unified control experience without complex settings or reliance on specific brand apps. Simultaneously, the generation of device-parsed data provides accurate foundational information for subsequent protocol conversion and unified data model mapping, ensuring that device commands are correctly understood and executed, thereby improving the overall operational efficiency and user experience of the smart home system.

[0051] Step S206: Select the target protocol parsing plugin from the cloud protocol library based on the device parsing data.

[0052] In this embodiment, after the new device is powered on, the bridging box continuously scans broadcast packets across various frequency bands. It extracts feature codes using multiple characteristic fields such as "vendor ID, message length, and checksum," and relies on a cloud library of over 100 pre-stored protocol templates for matching, achieving automatic identification and adaptation of the new device. This identification mechanism based on a dynamic protocol library significantly improves compatibility and scalability compared to static matching methods.

[0053] In this method, after the gateway parses the raw communication data using a protocol identification algorithm, it uploads key parameters from the parsed data (such as manufacturer ID, device type, protocol version, etc.) to a cloud server. The cloud server then possesses a vast library of protocol parsing plugins, containing dedicated parsing scripts or drivers for numerous smart home brands and devices. Based on the parameters in the received device parsing data, the server queries the protocol library to find the most suitable target protocol parsing plugin and pushes it to the smart gateway.

[0054] By implementing this control method, the smart gateway gains the ability to dynamically adapt to and learn new devices, significantly improving the system's flexibility and scalability. This on-demand acquisition of protocol parsing plugins means that whenever a new smart home device joins the system, the gateway does not need to pre-install all possible protocol parsing programs. Instead, it can download the necessary plugins from a cloud library in real time to identify and control the new device. This approach not only reduces the cost and complexity of the gateway hardware but also enables the system to continuously evolve as new devices and protocols emerge in the market, maintaining its cutting-edge nature and competitiveness.

[0055] Step S208: After selecting the target protocol parsing plugin, store the target protocol parsing plugin in the local storage of the smart home system's gateway.

[0056] In this embodiment, security authentication is performed through two-way authentication. The device requires physical button confirmation and digital certificate signing (using the ECDSA algorithm of the ATECC608B security chip) to prevent unauthorized access.

[0057] This method is based on the concepts of distributed computing and edge storage, utilizing the local storage resources of the smart gateway to cache necessary protocol parsing logic. Once the gateway successfully identifies and matches a specific smart home device protocol, it requests the corresponding protocol parsing plugin from the cloud server. The plugin is transmitted in the form of binary code or a configuration script. After receiving the plugin, the gateway stores it in local non-volatile memory, such as flash memory or a hard drive, so that it can be directly accessed in subsequent device communications without needing to retrieve it from the cloud again.

[0058] By implementing this control method, the response speed and stability of the smart home system are significantly improved. Because the protocol parsing plugin is stored internally in the gateway, it can directly call the local plugin for data parsing and command conversion when processing device communication, avoiding network transmission delays and potential connection instability risks. Even in the event of a network outage or poor network conditions, the gateway can continue to use the downloaded plugin to control and manage connected smart home devices, ensuring the smooth execution of automation scenarios and user control commands.

[0059] Step S210: Process the original device communication data using the target protocol parsing plugin to obtain the current device status of the smart home, and / or encode the control commands using the target protocol parsing plugin to obtain target control commands that the smart home devices can recognize.

[0060] In this embodiment, for protocol conversion and data unification, the system defines a Unified Data Model (UDM) as an intermediate language: all device commands are mapped to a standardized JSON format. The conversion process employs a differential compression algorithm (bsdiff), optimized for the data characteristics of smart home devices, transmitting only the changed data and saving bandwidth.

[0061] For example, {"dev_id":"light_01","action":"set_brightness","value":80}) achieves semantic conversion through field-level mapping rules (such as converting the "brightness" field of the Mi Home protocol to the "light_level" field of the Huawei HiLink protocol).

[0062] In this method, when the gateway receives raw communication data from the device, it calls the corresponding plugin stored locally to interpret the information in the data packet according to the specific protocol specifications used by the device, and extract the device's real-time status (such as the brightness of lights, the temperature setting of air conditioners, etc.). Similarly, when the user issues control commands through a smart home application or voice assistant, the gateway also uses the same plugin to convert general control intentions into control commands that conform to the specific device protocol, ensuring that the commands can be accurately received and executed by the device.

[0063] By implementing this control method, device status transparency and precise transmission of control commands are achieved, greatly enhancing the intelligence level and user experience of the entire smart home system. First, real-time device status monitoring allows users to understand the status of various facilities in their home at any time, making it more intuitive and convenient to view information through a mobile app or set automation scenes. Second, accurate encoding of control commands ensures that user intentions are correctly understood and executed by smart home devices, avoiding control failures or misunderstandings caused by protocol incompatibility.

[0064] Step S212: Control the smart home device according to the current device status and / or target control command.

[0065] In this embodiment, the current device status or encoded target control commands obtained by the smart home gateway are used to directly control or adjust the behavior of the smart home devices.

[0066] This method involves a local intelligent decision-making and control mechanism for smart home systems. After the status data acquired from the devices is uploaded to the gateway, the internal rule engine judges and decides whether to issue control commands to the relevant devices based on preset automation rules (such as automatically activating the air conditioner's cooling mode if the temperature exceeds a set value). Simultaneously, for control commands input by the user through an application or other control interface, the gateway converts these commands into signals that the devices can recognize locally. Then, through the previously established multi-mode communication connection, the commands are sent to the corresponding smart home devices, guiding them to perform specific operations, such as turning lights on and off, adjusting curtain positions, and controlling the air conditioner temperature.

[0067] By implementing this control method, the intelligent responsiveness of smart homes and the convenience of the user experience are significantly improved. Firstly, localized intelligent decision-making allows automated scenarios to respond quickly to environmental changes or user behavior, eliminating the need to wait for long cloud processing times and drastically reducing response time, thus enhancing the system's immediacy and usability. Secondly, the local transmission and execution of control commands reduces the impact of network latency and external interference. Especially in situations of network instability or outages, users can still effectively control home devices, ensuring the system's continuous availability and stability.

[0068] As described above, in this embodiment, the integrated multi-mode communication chipset receives raw device communication data from smart home devices employing different wireless communication protocols. The multi-mode communication chipset is a hardware component in the smart home system that integrates multiple wireless communication functional modules. The smart home system includes smart home devices. The raw device communication data is parsed using a protocol identification algorithm to obtain device parsing data. A target protocol parsing plugin is selected from a cloud protocol library based on the device parsing data. After selecting the target protocol parsing plugin, it is stored in the local memory of the smart home system's gateway. The target protocol parsing plugin is used to process the raw device communication data to obtain the current device status of the smart home, and / or, the target protocol parsing plugin is used to encode control commands to obtain... It enables the gateway to recognize target control commands from smart home devices; it controls smart home devices based on the current device status and / or target control commands, achieving unified access and control of smart home devices across brands and protocols, eliminating barriers between different ecosystems. It employs a dual-mode control architecture combining local edge computing and cloud collaboration, reducing system dependence on the network and ensuring uninterrupted critical business functions even in network outages. It provides fine-grained, scenario-based device permission management, enhancing system security and preventing unauthorized operations and privacy leaks. This allows the gateway to have lifelong evolution capabilities, connect to devices from different brands, achieve high ecosystem coverage, and still execute automated scenarios locally even in network outages, reducing response time, enhancing reliability, and supporting more than 10 fine-grained permission settings, effectively preventing unauthorized operations and privacy leaks.

[0069] Therefore, the technical solution provided by the above embodiments of the present invention solves the technical problem of protocol compatibility and ecosystem barriers coexisting when various smart home devices in a smart home system are interconnected across brands in the related art.

[0070] According to the above embodiments of the present invention, receiving raw device communication data from smart home devices using different wireless communication protocols through an integrated multi-mode communication chipset includes: continuously monitoring the home network corresponding to the smart home system through the multi-mode communication chipset of the gateway to wait for receiving broadcast signals from smart home devices; and determining that the broadcast signal is raw device communication data after receiving the broadcast signal from the smart home device.

[0071] In this embodiment, firstly, in terms of the physical layout of the home network, to achieve comprehensive coverage and precise control of various protocol devices, a multi-protocol adaptive bridging box is deployed as the core hub in the central location of the home (such as the TV cabinet in the living room). This bridging box uses a quad-core ARM Cortex-A55 processor (1.8GHz), is equipped with 256MB DDR4 memory, and integrates multiple communication modules: including a TICC2652R7 chip supporting Zigbee 3.0 (receiver sensitivity -120dBm), a Nordicn RF5340 chip supporting Bluetooth 5.2 Mesh (throughput 2Mbps), and an Espressif ESP32-C6 module supporting Wi-Fi 6 (speed 150Mbps). Simultaneously, Bluetooth Mesh relay nodes and Zigbee routers are additionally deployed in densely populated areas (such as the kitchen and bedrooms) to form a multi-layered wireless mesh network, ensuring a signal strength > -85dBm (full signal strength through three walls) within a 200㎡ apartment, completely eliminating communication blind spots.

[0072] This method combines multimode communication technology with an active monitoring mechanism. The gateway's multimode communication chipset continuously monitors various frequency bands in the home network, actively searching for and receiving broadcast signals from various devices. These signals contain device status information, control requests, or protocol identifiers. Once a signal is detected, the gateway analyzes the signal content, including but not limited to vendor ID, device type, and protocol version, to determine whether the received data is valid original device communication data. If so, it proceeds to subsequent processing steps, such as protocol identification and data parsing.

[0073] By implementing this control method, broad compatibility and support for smart home devices are achieved, along with real-time monitoring of device status. First, multi-mode communication technology ensures the gateway can seamlessly connect to devices using various protocols, eliminating the need for manual configuration or additional adapter purchases by users, greatly simplifying the device access process and improving system flexibility. Second, the continuous monitoring mechanism enables the gateway to promptly capture the latest status changes or control requests from devices, responding quickly even when the network environment changes or new devices are added, avoiding information delays or loss, and enhancing the system's real-time performance and reliability.

[0074] According to the above embodiments of the present invention, selecting a target protocol parsing plugin from a cloud protocol library based on device parsing data includes: extracting the target device feature code of the smart home device from the device parsing data; matching the target device feature code with the cloud protocol library to obtain the target protocol parsing plugin, wherein the cloud protocol library stores multiple records of device feature codes and protocol parsing plugins.

[0075] In this embodiment, the feature extraction involves parsing fields such as vendor ID, message length, and checksum in the broadcast message (e.g., Zigbee devices contain a 16-bit manufacturer code, and Bluetooth devices contain a 128-bit UUID).

[0076] In a smart home system, each device has a unique identifier, containing key information such as the device's manufacturer, type, and supported communication protocols. The smart gateway extracts the target device's identifier from the received device parsing data and then uses this identifier to perform a high-precision match with a cloud-based protocol library. This cloud-based protocol library is a large database that stores records of various device identifiers and corresponding protocol parsing plugins, establishing a bridge between devices and protocols. When the gateway uploads the extracted identifier to the cloud, the cloud quickly locates the protocol parsing plugin compatible with the target device by calculating the similarity between identifiers or directly searching for matches, and then returns the plugin to the gateway.

[0077] By implementing this control method, the system's compatibility and scalability are greatly improved. First, the dynamic update and matching mechanism of the cloud-based protocol library ensures that the system can promptly support newly emerging smart devices on the market, without relying on hardware upgrades or manual configuration. Users only need to add new devices to the system, and the system can automatically identify and download the corresponding protocol parsing plugin, simplifying the device access process. Second, the selection and download of target protocol parsing plugins enables the gateway to correctly parse and process the device's communication data, converting it into a unified data format within the system, providing a technical foundation for device control, status monitoring, and the execution of automated scenarios.

[0078] According to the above embodiments of the present invention, matching the target device feature code with a cloud protocol library to obtain a target protocol parsing plugin includes: performing cosine similarity calculation on the target device feature code and each device feature code stored in the cloud protocol library to obtain a cosine similarity calculation result; determining the device feature code used when the calculation result is the highest among the cosine similarity calculation results as the target device feature code; and determining the protocol parsing plugin corresponding to the device feature code used when the calculation result is the highest as the target protocol parsing plugin.

[0079] In this embodiment, protocol matching involves calculating the cosine similarity (threshold > 0.92) between the feature code and the cloud protocol library (pre-stored 100+ protocol templates), and automatically loading the corresponding driver.

[0080] This method utilizes cosine similarity, a commonly used metric for measuring the similarity between two vectors in a multidimensional space, particularly suitable for comparing feature vectors. Specifically, the gateway treats the target device feature code extracted from the parsed device data as a multidimensional vector, where each dimension corresponds to a specific attribute of the device (such as manufacturer ID, protocol version number, message length, etc.). This vector is then compared one by one with all device feature code vectors stored in the cloud protocol library, calculating the cosine similarity between the two vectors to measure their similarity. The system automatically identifies the device feature codes with the highest cosine similarity calculation results—the records most similar to the target device—and marks the corresponding protocol parsing plugin as the target plugin for subsequent data parsing and instruction conversion.

[0081] By implementing this control method, the accuracy and efficiency of smart home systems in device identification and protocol parsing are significantly improved. First, it effectively filters the most matching target plugins from a massive database of device signatures, ensuring accurate matching every time, even in the face of a complex and ever-changing smart home device ecosystem. This reduces device control failures or system anomalies caused by protocol parsing errors. Second, the rapid identification and adaptation of new devices improves system response speed and ease of operation. Users no longer need to perform complex configurations or wait for lengthy device scans; the system can quickly download the required plugins and begin device control.

[0082] According to the above embodiments of the present invention, the unified control method further includes: when a smart home device first accesses the smart home system, after the smart home device is powered on, performing two-way authentication on the smart home device to obtain a two-way authentication result, wherein the two-way authentication includes: confirmation operation of the physical button of the smart home device and digital certificate signing; when both two-way authentication results are passed, the smart home device is allowed to join the smart home system.

[0083] In this embodiment, security authentication introduces a two-way verification process of "physical button confirmation + digital certificate signature", combined with a dedicated security chip (ATECC608B) to prevent unauthorized access.

[0084] When a new device is powered on, it must undergo a rigorous verification process before being recognized by the system. First, the user needs to confirm the device via a physical button – a human-interventional verification step that proves the device is physically in the intended environment and has been activated by the actual user. Second, the device uses a pre-installed security chip (such as ATECC608B) to generate a digital certificate and signs it using the ECDSA algorithm to verify the device's identity and legitimacy, preventing counterfeit or unauthorized devices from accessing the system. Upon receiving the device's request and signature information, the cloud performs a second verification to confirm the device's legitimacy and the authenticity of the user's actions. Only when both verifications pass will the smart home gateway allow the device to join the system and assign it the appropriate network address and control permissions.

[0085] Implementing this control method enhances the security and reliability of the smart home system. First, the dual verification of physical button confirmation and digital certificate signing ensures that each device undergoes rigorous identity verification before connection, effectively resisting intrusion by unauthorized devices or remote hacker attacks, and protecting the home network from unauthorized access. Second, through this mechanism, the smart home system can establish a chain of trust, ensuring that every interaction between devices and users occurs within a secure framework, significantly reducing the risk of privacy leaks and data tampering.

[0086] According to the above embodiments of the present invention, the unified control method further includes: when the smart home system is detected to be in a network outage state, triggering the start of the local rule engine of the smart home system, wherein the local rule engine is a software component running on the smart home device or the gateway of the smart home system, the software component is used to process and execute predefined scenario-based rules, the scenario-based rules are predefined operating parameters and operating modes of the smart home device in different scenarios; after determining that the local rule engine has started, controlling the smart home device to execute the scenario-based control instructions corresponding to the preset automation scenario.

[0087] In this embodiment, for localized intelligent decision-making, a Lua virtual machine rule engine is used in the bridging box. User-preset automation scenarios (such as "door and window sensors open → automatic light turn on") are executed locally in the local area network with low response latency (<0.5 seconds). The core rules are still 100% available when the network is disconnected. Basic linkage is maintained through Bluetooth Mesh to support complex condition judgments (such as "when the temperature is >28°C and the light intensity is <10 lux for 5 minutes, the air conditioner is started to cool down").

[0088] When the smart home system detects a network outage, it immediately triggers the local rule engine pre-deployed on the gateway. The local rule engine is a software component whose core function is to process and execute a series of predefined, scenario-based rules. These rules are customized by users based on their daily needs and habits, covering specific scenarios such as "automatically turning off non-essential appliances at night" and "automatically arming the security system in 'away mode'." In an offline environment, the gateway no longer relies on cloud-based commands or data synchronization, but instead autonomously judges and executes control actions based on its built-in rule engine. The local rule engine compares the current device status and information collected by environmental sensors, such as brightness, temperature, and humidity, with preset automation scenario conditions. Once the conditions are met, it immediately generates and sends corresponding scenario-based control commands to the relevant devices, thus achieving automated control unaffected by network fluctuations.

[0089] By implementing this control method, the stability and user experience of the smart home system have been significantly improved. First, the local rule engine ensures that the smart home system can maintain core functions, such as emergency notifications and security alarms, even when the network is down, greatly enhancing the system's reliability in emergencies and avoiding security risks caused by network interruptions. Second, the local execution of automated scenarios significantly shortens control response time. Users no longer need to wait for the network to be restored before manually intervening; smart devices can respond instantly to environmental changes, such as automatically turning on the air conditioner when the indoor temperature is detected to be too high, improving convenience and comfort.

[0090] According to the above embodiments of the present invention, the unified control method further includes: when the network of the smart home system is detected to be restored, automatically synchronizing the device data and control records generated by the offline devices corresponding to the offline state of the smart home system to the cloud.

[0091] In this embodiment, the system employs a two-tiered access control model for secure command execution. For device-level security, each operation command is encrypted using AES-128-GCM, with the key dynamically rotated every 24 hours. For user-level permissions, a three-tiered role system based on the RBAC model is used: owner (full access), family member (control of designated devices), and visitor (temporary basic operations), preventing unauthorized access. This extends enterprise-level security management to the home environment. This systematic integration addresses the pain points of existing technologies, such as high response latency and unavailability during network outages.

[0092] This method is based on a data caching and network recovery monitoring mechanism. When the system detects a network interruption, it temporarily stores critical data such as device status changes and user control commands in the gateway's local cache instead of immediately uploading them to the cloud. This caching mechanism ensures that the system can continue to collect and process data even in a network outage environment, avoiding data loss or delayed execution of control commands. Subsequently, once the network service is re-established, the system immediately triggers the network recovery monitoring mechanism to automatically detect the network status and confirm that the communication link has been restored. At this time, the gateway begins to upload the device data and control log data accumulated in the local cache to the cloud through an encrypted channel. Data synchronization algorithms are used to ensure the consistency between the cloud database and the local cache data. Considering network bandwidth and data transmission efficiency, strategies such as batch uploading and differential backup may be adopted.

[0093] By implementing this control method, the impact of network fluctuations on the data integrity and continuity of smart home systems is effectively addressed. First, the caching and synchronization of device data and control records ensures that user operation records and device status changes are not lost during network outages, providing users with a seamless experience. Even network interruptions do not affect the tracing of historical data and device management. Second, this mechanism enhances system reliability. Even in environments with unstable networks or service interruptions, users can still execute automated scenarios and control commands through the local rule engine without worrying about the loss of operation records.

[0094] Figure 3 This is a flowchart of an optional unified control method for smart home devices according to an embodiment of the present invention, such as... Figure 3 As shown, physical signal access is achieved through modules such as Zigbee 3.0, Bluetooth 5.2 Mesh, and Wi-Fi 6 at the hardware interface layer. After being connected by a unified driver framework, the core processing layer performs protocol identification and decoding, unified data model conversion, and security authentication. Then, the rule engine executes automated scenarios, data mapping and forwarding, and device monitoring and self-healing. Data is transmitted to the application and service layer through the data exchange bus to provide unified control APIs, permission management, and network configuration services. Finally, it faces users through unified control entry points such as WeChat mini-programs, web management backends, and voice assistants, forming a full-link smart device management architecture from device access to user interaction. This architecture provides an innovative and comprehensive solution that effectively addresses the core challenges in the smart home field, achieving broad device compatibility, high system security, local execution of automated scenarios, and convenient user control. This marks a step forward for smart home technology towards greater intelligence, personalization, and security.

[0095] As described above, the technical solution provided by the embodiments of this invention constructs a smart gateway hardware unit that supports multi-protocol adaptive conversion. Through a unified intermediate data format, it shields the differences in proprietary protocols between different brands, achieving seamless access and control across ecosystem devices. A dual-mode control architecture combining local edge computing and cloud collaboration is designed, pushing core control logic and automation rules to the gateway for local execution, ensuring uninterrupted critical business operations during network outages. An enterprise-level RBAC (Role-Based Access Control) model is introduced into smart home scenarios, providing granular, secure, and controllable device permission management capabilities for complex user relationships such as families, rental properties, and homestays. Dynamic expansion capabilities, through a cloud protocol library and hot-swappable mechanism, enable the gateway to evolve throughout its lifecycle. Reliability is improved; even in network outages, automated scenarios can be executed locally, reducing local scenario triggering and execution response time—at least twice as fast as cloud-based solutions. It supports more than 10 fine-grained permission settings for individual devices, meeting family role management needs, successfully preventing unauthorized operation attempts, and reducing the risk of user privacy data leakage.

[0096] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0097] 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.

[0098] Example 2

[0099] According to embodiments of the present invention, a unified control device for smart home devices for implementing the above-described unified control method for smart home devices is also provided. Figure 4 This is a schematic diagram of a unified control device for smart home devices according to an embodiment of the present invention, such as... Figure 4As shown, the device includes: a receiving unit 401, a parsing unit 403, a selection unit 405, a storage unit 407, a processing unit 409, and a first control unit 411. The device will now be described in detail.

[0100] The receiving unit 401 is used to receive raw device communication data from smart home devices using different wireless communication protocols through an integrated multi-mode communication chipset. The multi-mode communication chipset is a hardware component that integrates multiple wireless communication function modules in a smart home system, which includes smart home devices.

[0101] The parsing unit 403 is used to parse the original device communication data through a protocol identification algorithm to obtain device parsing data.

[0102] Selection unit 405 is used to select a target protocol parsing plugin from the cloud protocol library based on the device parsing data.

[0103] Storage unit 407 is used to store the target protocol parsing plugin in the local storage of the gateway of the smart home system after the target protocol parsing plugin is selected.

[0104] The processing unit 409 is used to process the original device communication data using the target protocol parsing plugin to obtain the current device status of the smart home, and / or to encode the control instructions using the target protocol parsing plugin to obtain target control instructions that can be recognized by the smart home device.

[0105] The first control unit 411 is used to control smart home devices according to the current device status and / or target control commands.

[0106] It should be noted that the receiving unit 401, parsing unit 403, selection unit 405, storage unit 407, processing unit 409 and first control unit 411 mentioned above correspond to steps S202 to S212 in the above embodiments. The six units and the corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in the above embodiments.

[0107] As can be seen from the above, in the solution described in the above embodiments of the present invention, a receiving unit is used to receive raw device communication data from smart home devices using different wireless communication protocols through an integrated multi-mode communication chipset. The multi-mode communication chipset is a hardware component integrating multiple wireless communication function modules in a smart home system, which includes smart home devices. A parsing unit is used to parse the raw device communication data using a protocol identification algorithm to obtain device parsing data. A selection unit is used to select a target protocol parsing plugin from a cloud protocol library based on the device parsing data. A storage unit is used to store the selected target protocol parsing plugin in the local memory of the gateway of the smart home system. A processing unit is used to process the raw device communication data using the target protocol parsing plugin to obtain the current device status of the smart home, and / or... By using a target protocol parsing plugin to encode control commands into target control commands recognizable by smart home devices, and utilizing a first control unit to control smart home devices based on the current device status and / or target control commands, unified access and control of smart home devices across brands and protocols is achieved, eliminating barriers between different ecosystems. A dual-mode control architecture combining local edge computing and cloud collaboration is designed to reduce the system's dependence on the network, ensuring uninterrupted critical business functions even in the event of a network outage. Fine-grained and scenario-based device permission management is provided to enhance system security and prevent unauthorized operations and privacy leaks. This enables the gateway to have lifelong evolution capabilities, can access devices from different brands, has high ecosystem coverage, and can still execute automated scenarios locally even in the event of a network outage. Response time is reduced, reliability is enhanced, and more than 10 fine-grained permission settings are supported, effectively preventing unauthorized operations and privacy leaks.

[0108] Therefore, the technical solution provided by the above embodiments of the present invention solves the technical problem of protocol compatibility and ecosystem barriers coexisting when various smart home devices in a smart home system are interconnected across brands in the related art.

[0109] Optionally, the receiving unit includes: a monitoring module, used to continuously monitor the home network corresponding to the smart home system through the multi-mode communication chipset of the gateway, in order to wait to receive broadcast signals from smart home devices; and a determination module, used to determine that the broadcast signal is original device communication data after receiving the broadcast signal from the smart home device.

[0110] Optionally, the selection unit includes: an extraction module for extracting the target device feature code of the smart home device from the device parsing data; and a matching module for matching the target device feature code with a cloud protocol library to obtain a target protocol parsing plugin, wherein the cloud protocol library stores multiple records of device feature codes and protocol parsing plugins.

[0111] Optionally, the matching module includes: a calculation submodule, used to perform cosine similarity calculation between the target device feature code and each device feature code stored in the cloud protocol library to obtain the cosine similarity calculation result; a first determination submodule, used to determine the device feature code used when the calculation result is the highest among the cosine similarity calculation results as the target device feature code; and a second determination submodule, used to determine the protocol parsing plugin corresponding to the device feature code used when the calculation result is the highest as the target protocol parsing plugin.

[0112] Optionally, the unified control device further includes: a verification unit, used to perform two-way authentication on the smart home device when it first connects to the smart home system, after the smart home device is powered on, and obtain a two-way authentication result, wherein the two-way authentication includes: confirmation operation of the physical button of the smart home device and digital certificate signing; and a joining unit, used to allow the smart home device to join the smart home system when both two-way authentication results are passed.

[0113] Optionally, the unified control device further includes: a triggering unit, used to trigger the startup of the local rule engine of the smart home system when the smart home system is detected to be offline, wherein the local rule engine is a software component running on the smart home device or the gateway of the smart home system, the software component is used to process and execute predefined scenario-based rules, the scenario-based rules are predefined operating parameters and operating modes of the smart home device in different scenarios; and a second control unit, used to control the smart home device to execute scenario-based control instructions corresponding to the preset automation scenario after determining that the local rule engine has started.

[0114] Optionally, the unified control device further includes a synchronization unit, which automatically synchronizes the device data and control records generated by the offline devices corresponding to the smart home system when the network of the smart home system is detected to be restored to the cloud.

[0115] According to one aspect of the present invention, a smart home system is provided, wherein the smart home system uses a unified control method for smart home devices as described above.

[0116] According to one aspect of the present invention, a processor is provided for running a program, wherein the program executes the unified control method for smart home devices described above.

[0117] According to one aspect of the present invention, a computer program product is provided, including computer instructions, which, when executed by a processor, perform a unified control method for smart home devices that executes any of the above-described methods.

[0118] According to one aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes the unified control method for smart home devices as described above.

[0119] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any communication device in a group of communication devices.

[0120] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: receiving raw device communication data from smart home devices employing different wireless communication protocols via an integrated multi-mode communication chipset, wherein the multi-mode communication chipset is a hardware component integrating multiple wireless communication function modules in the smart home system, and the smart home system includes smart home devices; parsing the raw device communication data using a protocol identification algorithm to obtain device parsing data; selecting a target protocol parsing plugin from a cloud protocol library based on the device parsing data; storing the target protocol parsing plugin in the local memory of the gateway of the smart home system after selection; processing the raw device communication data using the target protocol parsing plugin to obtain the current device state of the smart home, and / or encoding control instructions using the target protocol parsing plugin to obtain target control instructions recognizable by the smart home devices; and controlling the smart home devices based on the current device state and / or the target control instructions.

[0121] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: continuously monitoring the home network corresponding to the smart home system through the multi-mode communication chipset of the gateway to wait for receiving broadcast signals from smart home devices; and after receiving the broadcast signals from smart home devices, determining that the broadcast signals are original device communication data.

[0122] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: extracting the target device feature code of the smart home device from the device parsing data; matching the target device feature code with a cloud protocol library to obtain a target protocol parsing plugin, wherein the cloud protocol library stores multiple records of device feature codes and protocol parsing plugins.

[0123] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: performing cosine similarity calculation on the target device feature code and each device feature code stored in the cloud protocol library to obtain the cosine similarity calculation result; determining the device feature code used when the calculation result is the highest among the cosine similarity calculation results as the target device feature code; and determining the protocol parsing plugin corresponding to the device feature code used when the calculation result is the highest as the target protocol parsing plugin.

[0124] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when a smart home device first connects to the smart home system, after the smart home device is powered on, two-way authentication is performed on the smart home device to obtain a two-way authentication result, wherein the two-way authentication includes: confirmation operation of the physical button of the smart home device, and digital certificate signing; when both two-way authentication results are successful, the smart home device is allowed to join the smart home system.

[0125] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when the smart home system is detected to be offline, the local rule engine of the smart home system is triggered to start, wherein the local rule engine is a software component running on the smart home device or the gateway of the smart home system, and the software component is used to process and execute predefined scenario-based rules, which are predefined operating parameters and operating modes of the smart home device in different scenarios; after determining that the local rule engine has started, the smart home device is controlled to execute scenario-based control instructions corresponding to the preset automation scenario.

[0126] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when the network of the smart home system is detected to be restored, automatically synchronize the device data and control records generated by the offline devices corresponding to the offline state of the smart home system to the cloud.

[0127] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0128] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0129] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

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

[0131] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0132] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes 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.

[0133] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A unified control method for smart home devices, characterized in that, include: The system receives raw device communication data from smart home devices using different wireless communication protocols via an integrated multi-mode communication chipset. The multi-mode communication chipset is a hardware component that integrates multiple wireless communication function modules in the smart home system, which includes the smart home devices. The original device communication data is parsed using a protocol identification algorithm to obtain device parsed data; Select the target protocol parsing plugin from the cloud protocol library based on the device parsing data; After selecting the target protocol parsing plugin, the target protocol parsing plugin is stored in the local storage of the gateway of the smart home system; The target protocol parsing plugin is used to process the original device communication data to obtain the current device status of the smart home, and / or the target protocol parsing plugin is used to encode the control commands to obtain target control commands that the smart home device can recognize; Control the smart home device according to the current device status and / or the target control command.

2. The unified control method for smart home devices according to claim 1, characterized in that, Through an integrated multi-mode communication chipset, it receives raw device communication data from smart home devices employing different wireless communication protocols, including: The gateway continuously monitors the home network corresponding to the smart home system through its multi-mode communication chipset, waiting to receive broadcast signals from the smart home devices. Upon receiving the broadcast signal from the smart home device, the system determines that the broadcast signal is the original device communication data.

3. The unified control method for smart home devices according to claim 1, characterized in that, Based on the device's parsing data, select the target protocol parsing plugin from the cloud protocol library, including: Extract the target device feature code of the smart home device from the device parsing data; The target device signature is matched with a cloud protocol library to obtain the target protocol parsing plugin. The cloud protocol library stores multiple records of device signatures and protocol parsing plugins.

4. The unified control method for smart home devices according to claim 3, characterized in that, The target device signature is matched with a cloud protocol library to obtain the target protocol parsing plugin, which includes: The cosine similarity of the target device feature code with each device feature code stored in the cloud protocol library is calculated to obtain the cosine similarity calculation result. The device feature code used when the cosine similarity calculation result is the highest is determined as the target device feature code; The protocol parsing plugin corresponding to the device feature code used when the calculation result is highest is determined to be the target protocol parsing plugin.

5. The unified control method for smart home devices according to claim 1, characterized in that, The unified control method also includes: When the smart home device is first connected to the smart home system, after the smart home device is powered on, two-way authentication is performed on the smart home device to obtain a two-way authentication result. The two-way authentication includes: confirmation operation of the physical button of the smart home device and digital certificate signing. When both authentication results are successful, the smart home device is allowed to join the smart home system.

6. The unified control method for smart home devices according to claim 1, characterized in that, The unified control method also includes: When the smart home system is detected to be offline, the local rule engine of the smart home system is triggered to start. The local rule engine is a software component that runs on the smart home device or the gateway of the smart home system. The software component is used to process and execute predefined scenario-based rules. The scenario-based rules are the predefined operating parameters and operating modes of the smart home device in different scenarios. After the local rules engine is activated, the smart home devices are controlled to execute scenario-based control commands corresponding to preset automation scenarios.

7. The unified control method for smart home devices according to claim 6, characterized in that, The unified control method also includes: When the network of the smart home system is detected to be restored, the device data and control records generated by the offline devices corresponding to the network outage state of the smart home system are automatically synchronized to the cloud.

8. A unified control device for smart home devices, characterized in that, include: A receiving unit is configured to receive raw device communication data from smart home devices employing different wireless communication protocols via an integrated multi-mode communication chipset, wherein the multi-mode communication chipset is a hardware component integrating multiple wireless communication function modules in a smart home system, and the smart home system includes the smart home devices. The parsing unit is used to parse the original device communication data using a protocol identification algorithm to obtain device parsed data; The selection unit is used to select the target protocol parsing plugin from the cloud protocol library based on the device parsing data. A storage unit is used to store the target protocol parsing plugin in the local storage of the gateway of the smart home system after the target protocol parsing plugin is selected; The processing unit is configured to process the original device communication data using the target protocol parsing plugin to obtain the current device status of the smart home, and / or to encode control commands using the target protocol parsing plugin to obtain target control commands that the smart home device can recognize. The first control unit is used to control the smart home device according to the current device status and / or the target control command.

9. A smart home device, characterized in that, The smart home device uses the unified control method for smart home devices as described in any one of claims 1 to 7.

10. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they perform the unified control method for smart home devices as described in any one of claims 1 to 7.