Cross-platform smart home control method, apparatus, device, and storage medium

By constructing an instruction recognition model and protocol conversion rules, the interoperability problem of smart home devices was solved, enabling cross-platform smart home control without the need for multiple applications, thus improving the system's flexibility and scalability.

CN119644785BActive Publication Date: 2026-01-27GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510033065.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2026-01-27
Estimated Expiration
2045-01-09

AI Technical Summary

Technical Problem

Existing smart home devices use their own proprietary protocols, making interoperability difficult between devices of different brands and types. Users need to use multiple applications for control, which increases operational complexity and limits the system's flexibility and scalability.

Method used

By constructing an instruction recognition model, the protocol conversion rules for the instruction information to be converted are determined, and the protocol conversion is performed based on these rules, thereby achieving interoperability between different smart devices without the need for different applications.

Benefits of technology

It enables interoperability between different smart devices, reduces user operation steps, and improves the flexibility and scalability of smart home systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119644785B_ABST
    Figure CN119644785B_ABST
Patent Text Reader

Abstract

The application discloses a cross-platform smart home control method and device, equipment and a storage medium, comprising: in response to a user instruction, determining a target device and corresponding to-be-converted instruction information of the target device; using a pre-constructed instruction recognition model to determine a protocol conversion rule applicable to the to-be-converted instruction information; based on the protocol conversion rule, performing protocol conversion on the to-be-converted instruction information to obtain target instruction information of the target device; and based on the target instruction information, controlling the target device to operate. The cross-platform smart home control method and device, equipment and storage medium disclosed by the application solve the problem that in the existing communication mode, a user needs to use multiple application programs to control different smart devices, so that the interoperability between different smart devices is realized, different application programs do not need to be used to control different smart devices, the operation steps of the user are reduced, and the flexibility and expansibility of the smart home system are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart home technology, and in particular to a cross-platform smart home control method, device, equipment, and storage medium. Background Technology

[0002] With the rapid development of IoT and cloud computing technologies, smart home control systems have become an indispensable part of modern families, providing residents with a more comprehensive and intelligent home device control experience by integrating various home appliances.

[0003] In some technologies, smart home devices typically communicate using their own proprietary protocols. However, existing communication methods can lead to difficulties in interoperability between devices of different brands and types. Users need to use multiple applications to control different smart devices, which not only increases the complexity of operation but also limits the flexibility and scalability of the smart home system. Summary of the Invention

[0004] The purpose of this invention is to provide at least one cross-platform smart home control method, device, equipment, and storage medium. This invention addresses the technical problem that existing communication methods often lead to difficulties in interoperability between devices of different brands and types, requiring users to use multiple applications to control different smart devices. This not only increases operational complexity but also limits the flexibility and scalability of smart home systems. The invention aims to achieve interoperability between different smart devices, eliminating the need for different applications to control them, reducing user operation steps, and effectively improving the flexibility and scalability of smart home systems.

[0005] To address the aforementioned technical problems, at least one embodiment of this application provides a cross-platform smart home control method, comprising: in response to a user instruction, determining a target device and instruction information to be converted corresponding to the target device;

[0006] The protocol conversion rules applicable to the instruction information to be converted are determined using a pre-built instruction recognition model;

[0007] Based on the protocol conversion rules, the instruction information to be converted is converted to obtain the target instruction information of the target device;

[0008] The target device is controlled to operate based on the target instruction information.

[0009] At least one embodiment of this application also provides a cross-platform smart home control system, characterized in that it includes: a protocol parser, an instruction adapter, a protocol generator, a smart adapter unit, and a control unit;

[0010] The control unit is used to respond to user commands by determining the target device and the corresponding command information to be converted through the protocol parser; determining the applicable protocol conversion rules for the command information to be converted through the command adapter using the command recognition model pre-built by the intelligent adaptation unit; converting the command information to be converted through the protocol generator based on the protocol conversion rules to obtain the target command information of the target device; and controlling the operation of the target device based on the target command information.

[0011] At least one embodiment of this application also provides a cross-platform smart home control device, comprising:

[0012] The parsing module is used to determine the target device and the corresponding instruction information to be converted in response to user instructions;

[0013] The rule determination module is used to determine the protocol conversion rules applicable to the instruction information to be converted using a pre-built instruction recognition model;

[0014] The protocol conversion module is used to perform protocol conversion on the instruction information to be converted based on the protocol conversion rules to obtain the target instruction information of the target device;

[0015] The control module is used to control the operation of the target device based on the target instruction information.

[0016] At least one embodiment of this application also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the cross-platform smart home control method described above.

[0017] At least one embodiment of this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described cross-platform smart home control method.

[0018] The cross-platform smart home control method, apparatus, device, and storage medium provided in the embodiments of this application, in response to user commands, determine the target device and the corresponding command information to be converted, and then use a pre-built command recognition model to determine the applicable protocol conversion rules for the command information to be converted. Then, based on the protocol conversion rules, the command information to be converted is protocol-converted to obtain the target command information for the target device, and the target device is then controlled to operate based on the target command information. In this way, interoperability between different smart devices can be achieved, eliminating the need for different applications to control different smart devices, reducing user operation steps, and effectively improving the flexibility and scalability of the smart home system.

[0019] In some optional embodiments, the instruction recognition model includes a feature extraction unit and a feature matching unit;

[0020] The step of determining the applicable protocol conversion rules for the instruction information to be converted using a pre-built instruction recognition model includes:

[0021] The feature extraction unit extracts the protocol features of the applicable protocol from the instruction information to be converted.

[0022] The feature matching unit matches the protocol features to determine the protocol conversion rules applicable to the protocol features.

[0023] By determining protocol conversion rules applicable to protocol characteristics, the protocol conversion of the instruction information to be converted is performed to obtain the target instruction information of the target device. Then, the operation of the target device is controlled based on the target instruction information, thereby achieving interoperability between different smart devices.

[0024] In some optional embodiments, the step of matching the protocol features through the feature matching unit to determine the protocol conversion rule applicable to the protocol features includes:

[0025] The feature matching unit performs a series of matching operations on the protocol features and multiple preset conversion rules to determine at least one candidate conversion rule whose matching degree with the protocol features is greater than or equal to a preset matching threshold.

[0026] The candidate conversion rule with the highest matching degree and greater than or equal to the preset matching threshold is selected from at least one candidate conversion rule and determined as the protocol conversion rule.

[0027] By comparing the matching degree between protocol features and conversion rules, the protocol conversion rules required by the target device are determined from multiple conversion rules. The protocol conversion rules are then used to convert the instruction information to be converted, thereby achieving interoperability between different smart devices. Users do not need to use different applications to control different smart devices, thus reducing the number of user operation steps.

[0028] In some optional embodiments, the instruction recognition model is obtained through the following steps:

[0029] Construct the original model;

[0030] The original model is trained using a reinforcement learning algorithm on the acquired instruction information samples of multiple protocols and the corresponding protocol conversion rule samples to obtain the instruction recognition model.

[0031] The original model is continuously reinforced and trained by using instruction information samples from multiple protocols and corresponding protocol conversion rule samples to obtain an instruction recognition model. The protocol features of the instruction information to be converted are then extracted using the instruction recognition model, and protocol conversion rules applicable to the protocol features are determined to facilitate protocol conversion of the instruction information to be converted, thereby further improving the accuracy of the target device in correctly receiving the target instruction information.

[0032] In some optional embodiments, the original model includes: a feature extraction training unit and a feature matching training unit;

[0033] The instruction recognition model is obtained by training the original model with a reinforcement learning algorithm on the acquired instruction information samples of multiple protocols and the corresponding protocol conversion rule samples, including:

[0034] Multiple instruction information samples of the protocols are input into the feature extraction training unit for training, so as to extract protocol features corresponding to the instruction information samples of each protocol.

[0035] The feature matching training unit is trained based on the protocol features and the corresponding protocol conversion rule samples to obtain the instruction recognition model.

[0036] By training the feature extraction training unit and the feature matching training unit, a command recognition model can be constructed.

[0037] In some optional embodiments, the protocol conversion rules include a first type of conversion rules and a second type of conversion rules;

[0038] The step of performing protocol conversion on the instruction information to be converted based on the protocol conversion rules to obtain the target instruction information of the target device includes:

[0039] Based on the first type of conversion rule, the instruction information to be converted is generalized to obtain general instruction information;

[0040] Based on the second type of conversion rule, the general instruction information is converted into a protocol to obtain the target instruction information of the target device.

[0041] By generalizing the instruction information to be converted before protocol conversion, the device protocol conversion and communication of smart devices can be facilitated, effectively ensuring the accuracy of protocol conversion of instruction information, thereby making it easier for the target device to correctly receive the target instruction information. Attached Figure Description

[0042] One or more embodiments are illustrated by way of example with reference to the accompanying drawings, and these illustrative descriptions do not constitute a limitation on the embodiments.

[0043] Figure 1 This is a flowchart illustrating a cross-platform smart home control method provided in one embodiment of this application;

[0044] Figure 2 This is a schematic flowchart of a cross-platform smart home control device provided in one embodiment of this application;

[0045] Figure 3 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application;

[0046] Figure 4 This is a flowchart illustrating a cross-platform smart home control method provided in one embodiment of this application. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the various embodiments of this application to help readers better understand this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for the convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined with and referenced by each other without contradiction.

[0048] To facilitate understanding of the embodiments of this application, relevant content regarding cross-platform smart home control methods will be introduced first.

[0049] With the rapid development of IoT and cloud computing technologies, smart home control systems have become an indispensable part of modern families, providing residents with a more comprehensive and intelligent home device control experience by integrating various home appliances.

[0050] In some technologies, smart home devices typically communicate using their own proprietary protocols. However, existing communication methods can lead to difficulties in interoperability between devices of different brands and types. Users need to use multiple applications to control different smart devices, which not only increases the complexity of operation but also limits the flexibility and scalability of the smart home system.

[0051] To address the technical issues that existing communication methods often lead to interoperability difficulties between devices of different brands and types, requiring users to use multiple applications to control different smart devices, which not only increases operational complexity but also limits the flexibility and scalability of smart home systems, this invention proposes a cross-platform smart home control method. The implementation details of this cross-platform smart home control method are described below. The following implementation details are provided for ease of understanding and are not essential for implementing this solution.

[0052] Example 1:

[0053] The cross-platform smart home control method of this embodiment can be applied to electronic devices with communication, computing, and data storage capabilities. Its specific process can be as follows: Figure 1 As shown, it includes:

[0054] Step 101: In response to the user instruction, determine the target device and the instruction information to be converted corresponding to the target device.

[0055] Specifically, the instruction information includes the instruction itself and the data carried within it. When a user controls multiple smart devices, they send instruction information to one of the smart devices. This smart device is the device to be converted. The instruction information from the device to be converted (i.e., the instruction information to be converted) is converted into another protocol format, and then a corresponding instruction message is generated and sent to the smart device with the corresponding protocol format. This smart device is then the target device. In some examples, to achieve communication between device A and device B, the user sends instruction information to device A (the device to be converted). Since the protocol A format of the instruction information received by device A needs to be converted to the protocol B format of device B (the target device) so that device B can correctly receive the instruction, this process is necessary.

[0056] In this embodiment, upon receiving a user instruction, the system responds by parsing the user instruction to determine the target device and the corresponding device to be converted, as well as the conversion instruction information.

[0057] Step 102: Use the pre-built instruction recognition model to determine the protocol conversion rules applicable to the instruction information to be converted.

[0058] Specifically, the instruction recognition model is a reinforcement learning model, which is a model trained by a reinforcement learning algorithm to determine the applicable protocol conversion rules based on the instruction information to be converted.

[0059] Step 103: Based on the protocol conversion rules, perform protocol conversion on the instruction information to be converted to obtain the target instruction information of the target device.

[0060] Specifically, protocol conversion rules are used to convert the protocol of the instruction information to be converted, that is, to convert the protocol corresponding to the instruction information to be converted into the protocol corresponding to the target device. After obtaining the protocol conversion rules, the instruction information to be converted is then converted to obtain the target instruction information of the target device. In some examples, to realize communication between device A and device B, the user sends instruction information to device A (the device to be converted). The protocol format of the instruction information to be converted is protocol A. A pre-built instruction recognition model is used to determine the applicable protocol conversion rules for the instruction information to be converted. The protocol conversion rules are used to convert the protocol of the instruction information to be converted, that is, to convert the protocol A format corresponding to the instruction information to be converted into the protocol B format corresponding to device B (the target device). According to the protocol conversion rules, the instruction information to be converted is converted to obtain the target instruction information in protocol B format in device B, so that device B can correctly receive the target instruction information.

[0061] Step 104: Control the operation of the target device based on the target instruction information.

[0062] Specifically, the target instruction information is in a format that enables the target device to correctly receive the instruction information. After obtaining the target instruction information, the target device is controlled to operate based on the target instruction information.

[0063] In this embodiment, in response to a user command, the target device and the corresponding command information to be converted are determined. Then, a pre-built command recognition model is used to determine the applicable protocol conversion rules for the command information to be converted. Based on the protocol conversion rules, the command information to be converted is protocol-converted to obtain the target command information for the target device. Finally, the target device is controlled to operate based on the target command information. This enables interoperability between different smart devices, eliminating the need for different applications to control different smart devices, reducing user operation steps, and effectively improving the flexibility and scalability of the smart home system.

[0064] In some embodiments, the instruction recognition model includes a feature extraction unit and a feature matching unit;

[0065] The protocol conversion rules applicable to the instruction information to be converted are determined using a pre-built instruction recognition model, including:

[0066] The feature extraction unit extracts the protocol features of the applicable protocol from the instruction information to be converted.

[0067] The protocol features are matched by the feature matching unit to determine the protocol conversion rules applicable to the protocol features.

[0068] Specifically, the instruction recognition model includes a feature extraction unit and a feature matching unit. These units operate sequentially; that is, the feature extraction unit extracts the protocol features of the applicable protocol from the instruction information to be converted. Subsequently, the feature matching unit matches these protocol features to determine the appropriate protocol conversion rules. Protocol features are key attributes and patterns extracted from the applicable protocol of the instruction information to be converted. These features typically include: protocol header information, command words, data field structures, checksums, instruction codes, timestamps, and sequence numbers. In some cases, protocol features can be used to identify the brand and version of the protocol; for example, protocol header information and instruction codes can be used to classify different protocol versions.

[0069] In this embodiment, by determining the protocol conversion rules applicable to the protocol characteristics, the protocol conversion is performed on the instruction information to be converted to obtain the target instruction information of the target device, and then the operation of the target device is controlled based on the target instruction information, thereby realizing the interoperability between different smart devices.

[0070] In some embodiments, the protocol features are matched by a feature matching unit to determine a protocol conversion rule applicable to the protocol features, including:

[0071] The feature matching unit matches the protocol features with multiple preset conversion rules one by one to determine at least one candidate conversion rule whose matching degree with the protocol features is greater than or equal to the preset matching threshold.

[0072] The candidate conversion rule with the highest matching degree and greater than or equal to the preset matching threshold is selected from at least one candidate conversion rule and determined as the protocol conversion rule.

[0073] Specifically, after the feature extraction unit extracts the protocol features of the protocol applicable to the instruction information to be converted, it is necessary to consider the matching degree between the protocol features and the preset conversion rules. That is, when the matching degree between the protocol features and the preset conversion rules is high, it means that the conversion rule is more suitable for converting the instruction information to be converted into the target instruction information of the target device, and the probability of the target device correctly receiving the target instruction information is also high.

[0074] In this embodiment, a feature matching unit matches protocol features with multiple preset conversion rules one by one to determine at least one candidate conversion rule whose matching degree with the protocol feature is greater than or equal to a preset matching threshold. Specifically, the number of candidate conversion rules can be one or more. When there is only one candidate conversion rule, it is determined as the protocol conversion rule, and the command information to be converted is converted using the protocol conversion rule to obtain the target command information of the target device. When there are multiple candidate conversion rules, the matching degree of the multiple candidate conversion rules needs to be compared, and the candidate conversion rule with the highest matching degree and greater than or equal to the preset matching threshold is selected as the protocol conversion rule. The command information to be converted is converted using the protocol conversion rule to obtain the target command information of the target device. By comparing the matching degree of protocol features and conversion rules, the protocol conversion rule required by the target device is determined from multiple conversion rules, and the command information to be converted is converted using the protocol conversion rule, achieving interoperability between different smart devices. This eliminates the need for users to use different applications to control different smart devices, thereby reducing the user's operation steps.

[0075] In some cases, preset conversion rules can be stored in a rule base. When the matching degree between multiple conversion rules in the rule base and the protocol features is less than the preset matching threshold, a new protocol conversion rule suitable for the target device is introduced according to the protocol format of the target device. The matching degree between the protocol conversion rule and the protocol features is greater than or equal to the preset matching threshold, and the protocol conversion rule is determined as a new conversion rule and stored in the rule base.

[0076] In some embodiments, the instruction recognition model is obtained through the following steps:

[0077] Construct the original model;

[0078] The original model is trained using a reinforcement learning algorithm on the acquired instruction information samples of multiple protocols and the corresponding protocol conversion rule samples to obtain an instruction recognition model.

[0079] Specifically, a reinforcement learning algorithm is used to construct the original model. Training sample data is collected from instruction information of multiple protocols and their corresponding protocol conversion rules, and the original model is trained using reinforcement learning to obtain an instruction recognition model. The original model is then continuously reinforced and trained using instruction information samples and corresponding protocol conversion rule samples from multiple protocols to obtain the instruction recognition model. The protocol features of the instruction information to be converted are extracted using the instruction recognition model, and protocol conversion rules applicable to these features are determined to facilitate protocol conversion of the instruction information, thereby further improving the accuracy of the target device in correctly receiving the target instruction information.

[0080] In some embodiments, the original model includes: a feature extraction training unit and a feature matching training unit;

[0081] For the acquired instruction information samples from multiple protocols and the corresponding protocol conversion rule samples, a reinforcement learning algorithm is used to train the original model to obtain an instruction recognition model, including:

[0082] Instruction information samples from multiple protocols are input into the feature extraction training unit for training, so as to extract protocol features corresponding to the instruction information samples of each protocol.

[0083] The feature matching training unit is trained based on protocol features and corresponding protocol conversion rule samples to obtain the instruction recognition model.

[0084] Specifically, the original model includes a feature extraction training unit and a feature matching training unit. These units operate sequentially; that is, the feature extraction training unit extracts the protocol features of the applicable protocol from instruction information samples of multiple protocols. Subsequently, the feature matching training unit determines the appropriate protocol conversion rule samples based on the protocol features. By training the feature extraction and feature matching training units, the resulting feature extraction and feature matching units are constructed, thus building the instruction recognition model.

[0085] In some embodiments, the protocol conversion rules include a first type of conversion rules and a second type of conversion rules;

[0086] Based on protocol conversion rules, the command information to be converted is converted to obtain the target command information of the target device, including:

[0087] Based on the first type of conversion rule, the instruction information to be converted is generalized to obtain general instruction information;

[0088] Based on the second type of conversion rule, the general instruction information is converted into a protocol to obtain the target instruction information of the target device.

[0089] Specifically, the protocol conversion rules include a first type and a second type. The first type of conversion rules performs protocol conversion on the instruction information to be converted, transforming it into general instruction information (i.e., standardized instructions and data). The second type of conversion rules performs protocol conversion on the general instruction information, transforming it into target instruction information suitable for the target device's protocol. In some examples, an intermediate abstraction layer converts the instruction information to be converted into general instruction information based on the first type of conversion rules. This intermediate abstraction layer is a standardized interface for the device protocols of all smart devices, defining a set of common communication instructions and data formats. By generalizing the instruction information before protocol conversion, the accuracy of protocol conversion for smart devices is effectively ensured, facilitating the correct reception of target instruction information by the target device.

[0090] Example 2:

[0091] The embodiments of the present invention also provide a cross-platform smart home control system, which is applicable to the cross-platform smart home control method in Embodiment 1. The cross-platform smart home control system includes: a protocol parser, an instruction adapter, a protocol generator, a smart adapter unit, and a control unit.

[0092] The control unit responds to user commands by determining the target device and the corresponding command information to be converted through a protocol parser; using a command adapter and a command recognition model pre-built by an intelligent adaptation unit, it determines the applicable protocol conversion rules for the command information to be converted; based on the protocol conversion rules, it performs protocol conversion on the command information to be converted through a protocol generator to obtain the target command information of the target device; and controls the operation of the target device based on the target command information.

[0093] Specifically, the protocol parser is used to parse the instruction information to be converted, thereby extracting the protocol characteristics, instruction type, parameters, and data content of the instruction information. The protocol parser can also preprocess the parsed instruction information, such as data format conversion, encoding / decoding, and error correction.

[0094] In this embodiment, the control system further includes an intermediate instruction generator, which maps the parsed instruction information to be converted to an intermediate abstraction layer and generates general instruction information for the intermediate abstraction layer based on the mapping result. An instruction adapter converts the general instruction information of the intermediate abstraction layer into target protocol information that the target device can understand. Specifically, the instruction adapter uses an instruction recognition model to determine the applicable protocol conversion rules for the instruction information to be converted. The instruction recognition model is constructed through an intelligent adaptation unit, which contains an intelligent adaptation algorithm capable of converting the general instruction information of the intermediate abstraction layer into target protocol information that the target device can understand. A protocol generator performs protocol conversion on the instruction information to be converted according to the protocol conversion rules to obtain the target instruction information for the target device; and controls the operation of the target device based on the target instruction information.

[0095] Example 3:

[0096] like Figure 4 As shown, this embodiment provides exemplary content for Embodiment 1 and Embodiment 2, that is, an exemplary process for a cross-platform smart home control method, specifically including:

[0097] I. General Protocol Definition

[0098] a. Equipment discovery:

[0099] Definition: Device discovery refers to the process by which a system can automatically detect new devices in a network.

[0100] Implementation method: Using multicast DNS (mDNS) or Universal Plug and Play (UPnP) technology, the device automatically broadcasts its presence information when it connects to the network, and the control module receives and recognizes this information.

[0101] b. Equipment Description:

[0102] Definition: Equipment description refers to a detailed description of the equipment type, function, and status.

[0103] Implementation method: Use XML or JSON format to define a device description file, which includes basic device information (such as name, model), a list of functions (such as switch), and the current status (such as on, off, mode).

[0104] c. Command and Control:

[0105] Definition: Command and control refers to the process by which a system sends operation commands to devices and receives their responses.

[0106] Implementation method: Send and receive commands via communication protocols such as HTTP, MQTT or WebSocket. Commands include operations such as switching on / off, adjusting, and mode switching.

[0107] d. Status Report:

[0108] Definition: Status reporting refers to the process by which a device reports its status changes to the system in real time.

[0109] Implementation method: The device sends status change information to the control module via HTTP POST, MQTT publish, or WebSocket push.

[0110] II. Intermediate Abstraction Layer: The intermediate abstraction layer serves as the standardized interface for all device protocols, defining a set of common communication commands and data formats. It includes the following components:

[0111] Standardized instruction set: Contains a set of general operation instructions, such as start, stop, status query, configuration update, etc. These instructions are device-independent and universal.

[0112] Standardized data format: Define a set of common data formats for representing device status, configuration information, sensor data, etc. Standardized data formats use XML, JSON, or other common data formats to facilitate parsing and conversion.

[0113] Abstract Layer Interface: Provides a set of API interfaces for device protocol conversion and communication. These API interfaces include functions such as sending commands, receiving responses, and parsing data.

[0114] III. Intelligent Adaptation Algorithm:

[0115] Protocol identification: Using machine learning and artificial intelligence technologies, it automatically identifies the version and format of device protocols. Through training datasets, the intelligent adaptation algorithm can identify the protocol characteristics of different brands and versions.

[0116] Dynamic adaptation: The intelligent adaptation algorithm dynamically adjusts the protocol conversion rules based on the recognition results, ensuring seamless conversion between different protocol versions. Specifically, dynamic adaptation includes the following steps:

[0117] a. Feature extraction: Extract feature information from the device protocol, such as protocol version, instruction format, data structure, etc.

[0118] b. Rule matching: The extracted feature information is matched with predefined protocol conversion rules to determine the applicable conversion rules.

[0119] c. Rule Adjustment: Dynamically adjust conversion rules based on protocol version and format differences to ensure the accuracy and effectiveness of conversion.

[0120] IV. Protocol Conversion Module:

[0121] 1. Protocol parser:

[0122] a. Parse input: Parse the original protocol commands and data (i.e. command information to be converted) sent by the device, and extract the command type, parameters and data content.

[0123] b. Data preprocessing: Preprocessing the parsed data, such as data format conversion, encoding / decoding, and error correction.

[0124] 2. Intermediate instruction generator:

[0125] a. Mapping and transformation: Mapping the parsed raw instructions and data to the standardized instruction and data format (i.e., general instruction information) of the intermediate abstraction layer.

[0126] b. Instruction generation: Based on the mapping results, generate standardized instructions and data for the intermediate abstraction layer.

[0127] 3. Command adapter:

[0128] a. Adaptation and Conversion: Using intelligent adaptation algorithms, the standardized instructions and data of the intermediate abstraction layer are converted into protocol instructions and data (i.e., target instruction information) that the target device can understand.

[0129] 4. Protocol Generator:

[0130] a. Output generation: Generate the protocol commands and data required by the target device.

[0131] b. Sending instructions: Send the generated protocol instructions and data to the target device to ensure that the device can correctly receive and execute the instructions.

[0132] V. Control Unit

[0133] The control unit is the core component for user interaction with the smart home system, responsible for device management, command distribution, and status monitoring. Specifically, it includes the following aspects:

[0134] a. Equipment Management:

[0135] Definition: Device management refers to the process of adding, deleting, and managing all devices in a system.

[0136] Implementation method: Provide a device management interface, where users can add new devices by scanning QR codes, entering device IDs, etc. The system will automatically perform device discovery and profile parsing.

[0137] b. Command distribution:

[0138] Definition: Command distribution refers to the process of receiving user commands and sending them to the appropriate devices.

[0139] Implementation method: Receive user input commands through the user interface, find the corresponding protocol adapter based on the device ID or type, and send commands through a common protocol.

[0140] c. Status monitoring:

[0141] Definition: Status monitoring refers to the process of monitoring the status of all devices in real time and updating the user interface or other system components.

[0142] Implementation method: Receive device status reports through a common protocol, update device status information in the system, and display it on the user interface in real time.

[0143] d. User interface:

[0144] Definition: The user interface is the main way for users to interact with the system, providing a unified interface for device control and management.

[0145] Implementation method: Employ responsive web design or mobile application development technologies to provide functions such as device list, status display, and command input.

[0146] In this embodiment, users can manage and control all smart home devices through a unified control unit, realizing the control of multiple different devices from one platform and achieving interoperability between different smart devices.

[0147] Example 4:

[0148] Another embodiment of this application relates to a cross-platform smart home control device. The implementation details of this cross-platform smart home control device are described below. The following implementation details are provided for ease of understanding and are not essential for implementing this solution. A schematic diagram of the cross-platform smart home control device in this embodiment can be seen as follows: Figure 2 As shown, it includes:

[0149] The parsing module 201 is used to respond to user instructions to determine the target device and the instruction information to be converted corresponding to the target device;

[0150] The rule determination module 202 is used to determine the protocol conversion rules applicable to the instruction information to be converted using a pre-built instruction recognition model;

[0151] Protocol conversion module 203 is used to perform protocol conversion on the instruction information to be converted based on protocol conversion rules to obtain the target instruction information of the target device;

[0152] The control module 204 is used to control the operation of the target device based on the target instruction information.

[0153] In some embodiments, the rule determination module 202 includes:

[0154] The feature extraction unit is used to extract the protocol features of the applicable protocol from the instruction information to be converted.

[0155] The rule determination unit is used to match protocol features with the feature matching unit to determine the protocol conversion rules applicable to the protocol features.

[0156] In some embodiments, the rule determination unit includes:

[0157] The matching subunit is used to match the protocol features with multiple preset conversion rules one by one through the feature matching unit, and determine at least one candidate conversion rule whose matching degree with the protocol features is greater than or equal to the preset matching threshold.

[0158] A sub-unit is defined to select the candidate conversion rule with the highest matching degree and greater than or equal to a preset matching threshold from at least one candidate conversion rule and determine it as the protocol conversion rule.

[0159] In some embodiments, the cross-platform smart home control device further includes:

[0160] Modules are used to build the original model;

[0161] The training module is used to train the original model using reinforcement learning algorithms on the acquired instruction information samples of multiple protocols and the corresponding protocol conversion rule samples to obtain the instruction recognition model.

[0162] In some embodiments, the training module includes:

[0163] The feature training unit is used to input instruction information samples of multiple protocols into the feature extraction training unit for training, so as to extract protocol features corresponding to the instruction information samples of each protocol.

[0164] The rule training unit is used to train the feature matching training unit based on protocol features and corresponding protocol conversion rule samples to obtain the instruction recognition model.

[0165] In some embodiments, the protocol conversion module 203 includes:

[0166] The generalization processing unit is used to perform generalization processing on the instruction information to be converted based on the first type of conversion rules to obtain general instruction information;

[0167] The protocol conversion unit is used to perform protocol conversion on general instruction information based on the second type of conversion rules to obtain the target instruction information of the target device.

[0168] It is worth mentioning that all modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. Furthermore, to highlight the innovative aspects of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed in this application; however, this does not mean that other units are absent in this embodiment.

[0169] Example 5:

[0170] Another embodiment of this application relates to an electronic device, such as... Figure 3 As shown, it includes: at least one processor 901; and a memory 902 communicatively connected to the at least one processor 901; wherein the memory 902 stores instructions executable by the at least one processor 901, the instructions being executed by the at least one processor 901 to enable the at least one processor 901 to execute the cross-platform smart home control method in the above embodiments.

[0171] The memory and processor are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors and memories. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and will not be described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.

[0172] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.

[0173] Example 6:

[0174] Another embodiment of this application relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method embodiments described above.

[0175] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0176] Those skilled in the art will understand that the above embodiments are specific embodiments for implementing this application, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of this application.

Claims

1. A cross-platform smart home control method, characterized in that, include: In response to a user instruction, determine the target device and the instruction information to be converted corresponding to the target device; The protocol conversion rules applicable to the instruction information to be converted are determined using a pre-built instruction recognition model; the protocol conversion rules include a first type of conversion rule and a second type of conversion rule. Based on the protocol conversion rules, the instruction information to be converted is converted to obtain the target instruction information of the target device; Control the operation of the target device based on the target instruction information; The step of performing protocol conversion on the instruction information to be converted based on the protocol conversion rules to obtain the target instruction information of the target device includes: The intermediate abstraction layer performs generalized processing on the instruction information to be converted based on the first type of conversion rules to obtain general instruction information; wherein, the intermediate abstraction layer is a standardized interface for the device protocol of all smart devices; Based on the second type of conversion rule, the general instruction information is converted into a protocol to obtain the target instruction information of the target device.

2. The cross-platform smart home control method according to claim 1, characterized in that, The instruction recognition model includes a feature extraction unit and a feature matching unit; The step of determining the applicable protocol conversion rules for the instruction information to be converted using a pre-built instruction recognition model includes: The feature extraction unit extracts the protocol features of the applicable protocol from the instruction information to be converted. The feature matching unit matches the protocol features to determine the protocol conversion rules applicable to the protocol features.

3. The cross-platform smart home control method according to claim 2, characterized in that, The step of matching the protocol features using the feature matching unit to determine the protocol conversion rules applicable to the protocol features includes: The feature matching unit performs a series of matching operations on the protocol features and multiple preset conversion rules to determine at least one candidate conversion rule whose matching degree with the protocol features is greater than or equal to a preset matching threshold. The candidate conversion rule with the highest matching degree and greater than or equal to the preset matching threshold is selected from at least one candidate conversion rule and determined as the protocol conversion rule.

4. The cross-platform smart home control method according to claim 1, characterized in that, The instruction recognition model is obtained through the following steps: Construct the original model; The original model is trained using a reinforcement learning algorithm on the acquired instruction information samples of multiple protocols and the corresponding protocol conversion rule samples to obtain the instruction recognition model.

5. The cross-platform smart home control method according to claim 4, characterized in that, The original model includes: a feature extraction training unit and a feature matching training unit; The instruction recognition model is obtained by training the original model with a reinforcement learning algorithm on the acquired instruction information samples of multiple protocols and the corresponding protocol conversion rule samples, including: Multiple instruction information samples of the protocols are input into the feature extraction training unit for training, so as to extract protocol features corresponding to the instruction information samples of each protocol. The feature matching training unit is trained based on the protocol features and the corresponding protocol conversion rule samples to obtain the instruction recognition model.

6. A cross-platform smart home control system, characterized in that, include: Protocol parser, instruction adapter, protocol generator, intelligent adapter unit, and control unit; The control unit is configured to respond to user commands by: determining a target device and corresponding command information to be converted using the protocol parser; determining the applicable protocol conversion rules for the command information to be converted using the command adapter and a command recognition model pre-built by the intelligent adaptation unit; the protocol conversion rules include a first type of conversion rule and a second type of conversion rule; performing protocol conversion on the command information to be converted using the protocol generator based on the protocol conversion rules to obtain target command information for the target device; and controlling the operation of the target device based on the target command information; the control unit is also configured to perform generalization processing on the command information to be converted based on the first type of conversion rule through an intermediate abstraction layer to obtain general command information; wherein, the intermediate abstraction layer is a standardized interface for the device protocols of all intelligent devices; Based on the second type of conversion rule, the general instruction information is converted into a protocol to obtain the target instruction information of the target device.

7. A cross-platform smart home control device, characterized in that, include: The parsing module is used to determine the target device and the corresponding instruction information to be converted in response to user instructions; The rule determination module is used to determine the protocol conversion rules applicable to the instruction information to be converted using a pre-built instruction recognition model; The protocol conversion module is used to perform protocol conversion on the instruction information to be converted based on the protocol conversion rules to obtain the target instruction information of the target device; The protocol conversion rules include a first type of conversion rule and a second type of conversion rule; the protocol conversion module includes: a generalization processing unit, used to perform generalization processing on the instruction information to be converted based on the first type of conversion rule using an intermediate abstraction layer to obtain general instruction information; wherein, the intermediate abstraction layer is a standardized interface for the device protocol of all smart devices; and a protocol conversion unit, used to perform protocol conversion on the general instruction information based on the second type of conversion rule to obtain the target instruction information of the target device. The control module is used to control the operation of the target device based on the target instruction information.

8. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the cross-platform smart home control method as described in any one of claims 1 to 5.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the cross-platform smart home control method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-protocol access smart home control system and method

    CN118625688A