Equipment management method and device, electronic equipment and storage medium

Through the smart home gateway, the data of smart home devices from different brands is solved, and the efficient and stable smart home system performance and user experience are achieved.

CN119892541AActive Publication Date: 2025-04-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411883778.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-04-25
Estimated Expiration
2044-12-19

AI Technical Summary

Technical Problem

The interconnection between smart home devices of different brands cannot be achieved, resulting in poor system compatibility and insufficient stability of smart home systems.

Method used

Through the smart home gateway, the device data sent by smart home devices of different brands is received, the target device attributes are identified based on the device identification, and the data is converted into an internal data format to realize data interoperability between different communication protocols.

Benefits of technology

It has achieved efficient and stable interconnection between smart home devices of different brands, and improved the overall performance and user experience of smart home systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892541A_ABST
    Figure CN119892541A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment management method and device, electronic equipment and a storage medium, and relates to the technical field of smart home, the method comprises the following steps: receiving equipment data sent by first smart home equipment, the equipment data at least comprising an equipment identifier, the first smart home device is a smart home device performing communication based on a first communication protocol; identifying a target device attribute corresponding to the first smart home device based on the device identifier; converting the equipment data into target data in an internal data format according to the target equipment attribute; and sending the target data to a second smart home device, and controlling the second smart home device to execute a device operation corresponding to the target data, the second smart home device being a smart home device performing communication based on a second communication protocol, thereby ensuring intercommunication and interconnection of data communication between the smart home devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a device management method, a device management device, an electronic device and a computer-readable storage medium. Background Art

[0002] With the development of science and technology, the smart home market is showing a booming trend. Among them, various smart home devices have sprung up, covering multiple fields such as smart lamps, smart appliances and smart security equipment. However, for users, when deploying smart home scenes, they may use smart home devices of different brands in the same smart home scene. Smart home devices of different brands are often difficult to achieve unified control, and smart home devices cannot be interconnected, which limits the overall performance and user experience of the smart home system. Summary of the invention

[0003] The embodiments of the present invention provide a device management method, apparatus, electronic device and computer-readable storage medium to solve or partially solve the problem that smart home devices of different brands cannot be interconnected, resulting in poor system compatibility and insufficient stability of the smart home system.

[0004] An embodiment of the present invention discloses a device management method, which is applied to a smart home gateway, wherein the smart home gateway is deployed in a smart home system, wherein the smart home system further includes smart home devices, and wherein the smart home devices include smart home devices that communicate based on different communication protocols. The method includes:

[0005] Receiving device data sent by a first smart home device, the device data including at least a device identifier, wherein the first smart home device is a smart home device that communicates based on a first communication protocol;

[0006] Identify a target device attribute corresponding to the first smart home device based on the device identifier;

[0007] Converting the device data into target data in an internal data format according to the target device attributes, wherein the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system;

[0008] The target data is sent to a second smart home device, and the second smart home device is controlled to perform a device operation corresponding to the target data, wherein the second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols.

[0009] In some feasible implementations, the device identifier includes at least one of a MAC address and a device model code, and identifying a target device attribute corresponding to the first smart home device based on the device identifier includes:

[0010] The first smart home device is identified by using the MAC address and / or the device model code to determine a target device attribute corresponding to the first smart home device.

[0011] In some feasible implementations, the target device attributes include at least target brand information and target device type, and converting the device data into target data in an internal data format according to the target device attributes includes:

[0012] Determine a target data packet structure corresponding to the first matching information and the target device type, wherein the target data packet structure is adapted to the first communication protocol;

[0013] Acquire a target mapping relationship corresponding to the first smart home device, and compare the target device type and the target brand information with the target mapping relationship respectively to determine target control configuration information corresponding to the first smart home device;

[0014] Extracting key information corresponding to the device data from the target data packet structure according to the target control configuration information;

[0015] The key information is added to a preset data packet structure to obtain target data in an internal data format corresponding to the device data. The preset data packet structure is a data structure used when the smart home gateway interacts with smart home devices.

[0016] Some possible implementations also include:

[0017] Periodically sending a detection signal to the communication network where the smart home gateway is located;

[0018] In response to receiving first broadcast information for the detection signal sent by a first target smart home device, extracting first basic information corresponding to the target smart home device from the first broadcast information;

[0019] Comparing the first basic information with a preset device feature library, and determining a first device type and first control configuration information corresponding to the first target smart home device based on the comparison result, wherein the first control configuration information at least includes information characterizing a control mode and control parameter requirements of the smart home device;

[0020] The first target smart home device is added to the device list of the smart home gateway, and a mapping relationship between the first device type, the first control configuration information and the target smart home device is established.

[0021] In some feasible implementations, the first basic information includes at least one of first brand information, first device type, and first function information, and determining the first device type and first control configuration information corresponding to the first target smart home device based on the comparison result includes:

[0022] If at least one of the first brand information, the first device type, and the first function information exists in the device feature library, sending identity authentication information to the first target smart home device, and receiving identity information sent by the first target smart home device, the identity information including at least a device serial number and an authentication key;

[0023] If the authentication key is authenticated successfully, the device serial number is recorded, and the first device type and first control configuration information corresponding to the first target smart home device are extracted from the device feature library.

[0024] Some possible implementations also include:

[0025] In response to receiving second broadcast information actively broadcasted externally by a second target smart home device, extracting second basic information corresponding to the target smart home device from the second broadcast information;

[0026] Comparing the second basic information with a preset device feature library, and determining a second device type and second control configuration information corresponding to the second target smart home device based on the comparison result;

[0027] Add the second target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the second device type, the second control configuration information and the target smart home device.

[0028] In some feasible implementations, an encrypted channel is established between the smart home gateway and the smart home device, and sending the target data to the second smart home device includes:

[0029] Encrypting the target data to obtain corresponding encrypted data;

[0030] The encrypted data is sent to the second smart home device through the encrypted channel.

[0031] Some possible implementations also include:

[0032] Receiving a device processing instruction for the smart home device sent by a user device;

[0033] Processing the smart home devices in the device list according to the device processing instruction;

[0034] The device processing instruction is at least one of a device adding instruction, a device deleting instruction and a device modifying instruction.

[0035] Some possible implementations also include:

[0036] Receiving a scene control instruction sent by a user device and a trigger condition corresponding to the scene control instruction, wherein the scene control instruction includes a device control instruction for at least one smart home device;

[0037] In response to detecting that the trigger condition is met, the device control instruction is sent to at least one corresponding smart home device, and the device control instruction is used to instruct the smart home device to perform a device operation corresponding to the scene control instruction.

[0038] The embodiment of the present invention further discloses a device management apparatus, which is applied to a smart home gateway, wherein the smart home gateway is deployed in a smart home system, wherein the smart home system further includes smart home devices, wherein the smart home devices include smart home devices that communicate based on different communication protocols, and wherein the apparatus includes:

[0039] A data receiving module, configured to receive device data sent by a first smart home device, wherein the device data at least includes a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol;

[0040] A device identification module, configured to identify a target device attribute corresponding to the first smart home device based on the device identifier;

[0041] A data conversion module, used for converting the device data into target data in an internal data format according to the target device attributes, wherein the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system;

[0042] A data sending module is used to send the target data to a second smart home device, and control the second smart home device to perform a device operation corresponding to the target data. The second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols.

[0043] In some feasible implementations, the device identification includes at least one of a MAC address and a device model code, and the device identification module is specifically used to:

[0044] The first smart home device is identified by using the MAC address and / or the device model code to determine a target device attribute corresponding to the first smart home device.

[0045] In some feasible implementations, the target device attributes include at least target brand information and target device type, and the data conversion module is specifically used to:

[0046] Determine a target data packet structure corresponding to the first matching information and the target device type, wherein the target data packet structure is adapted to the first communication protocol;

[0047] Acquire a target mapping relationship corresponding to the first smart home device, and compare the target device type and the target brand information with the target mapping relationship respectively to determine target control configuration information corresponding to the first smart home device;

[0048] Extracting key information corresponding to the device data from the target data packet structure according to the target control configuration information;

[0049] The key information is added to a preset data packet structure to obtain target data in an internal data format corresponding to the device data. The preset data packet structure is a data structure used when the smart home gateway interacts with smart home devices.

[0050] Some possible implementations also include:

[0051] A signal broadcast module, used to periodically send a detection signal to the communication network where the smart home gateway is located;

[0052] A first information extraction module, configured to extract first basic information corresponding to the target smart home device from the first broadcast information in response to receiving first broadcast information for the detection signal sent by the first target smart home device;

[0053] a first information comparison module, configured to compare the first basic information with a preset device feature library, and determine a first device type and first control configuration information corresponding to the first target smart home device based on the comparison result, wherein the first control configuration information at least includes information characterizing a control mode and control parameter requirements of the smart home device;

[0054] The first adding module is used to add the first target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the first device type, the first control configuration information and the target smart home device.

[0055] In some feasible implementations, the first basic information includes at least one of first brand information, first device type, and first function information, and the first information comparison module is specifically used to:

[0056] If at least one of the first brand information, the first device type, and the first function information exists in the device feature library, sending identity authentication information to the first target smart home device, and receiving identity information sent by the first target smart home device, the identity information including at least a device serial number and an authentication key;

[0057] If the authentication key is authenticated successfully, the device serial number is recorded, and the first device type and first control configuration information corresponding to the first target smart home device are extracted from the device feature library.

[0058] Some possible implementations also include:

[0059] A second information extraction module, configured to extract second basic information corresponding to the target smart home device from the second broadcast information in response to receiving second broadcast information actively broadcasted externally by the second target smart home device;

[0060] A second information comparison module, configured to compare the second basic information with a preset device feature library, and determine a second device type and second control configuration information corresponding to the second target smart home device based on the comparison result;

[0061] The second adding module is used to add the second target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the second device type, the second control configuration information and the target smart home device.

[0062] In some feasible implementations, an encrypted channel is established between the smart home gateway and the smart home device, and the data sending module is specifically used to:

[0063] Encrypting the target data to obtain corresponding encrypted data;

[0064] The encrypted data is sent to the second smart home device through the encrypted channel.

[0065] Some possible implementations also include:

[0066] An instruction receiving module, used to receive a device processing instruction for the smart home device sent by a user device;

[0067] An instruction execution module, used to process the smart home devices in the device list according to the device processing instruction;

[0068] The device processing instruction is at least one of a device adding instruction, a device deleting instruction and a device modifying instruction.

[0069] Some possible implementations also include:

[0070] A device control module, configured to receive a scene control instruction sent by a user device and a trigger condition corresponding to the scene control instruction, wherein the scene control instruction includes a device control instruction for at least one smart home device;

[0071] The instruction sending module is used to send the device control instruction to at least one corresponding smart home device in response to detecting that the trigger condition is met, and the device control instruction is used to instruct the smart home device to perform a device operation corresponding to the scene control instruction.

[0072] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0073] The memory is used to store computer programs;

[0074] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0075] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0076] The embodiments of the present invention include the following advantages:

[0077] In an embodiment of the present invention, the smart home gateway is applied, and the smart home gateway can be deployed in a smart home system. The smart home system can also include smart home devices, and the smart home devices include smart home devices that communicate based on different communication protocols. In the process of managing and controlling the smart home devices, especially when data interaction is required between different smart home devices, the gateway can receive device data sent by a first smart home device, and the device data at least includes a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol. The target device attribute corresponding to the first smart home device is identified based on the device identifier, and then the device data is converted into target data in an internal data format according to the target device attribute, and the internal data format is the smart home device. The smart home gateway in the system uses a standard format for data interaction with smart home devices, and then sends the target data to the second smart home device, controlling the second smart home device to perform device operations corresponding to the target data. The second smart home device is a smart home device that communicates based on the second communication protocol. The first communication protocol and the second communication protocol are different communication protocols. Therefore, when smart home devices based on different communication protocols need to interact with data, the gateway can convert the device data that needs to interact with data, and overcome the differences in communication protocols between different smart home devices based on the converted data, to achieve unified control, thereby ensuring efficient and stable interconnection between smart home devices, providing great convenience for users to control smart home devices, and ensuring user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 is a flowchart of a method for managing a device provided in an embodiment of the present invention;

[0079] Figure 2 is a schematic diagram of a flow chart of device control provided in an embodiment of the present invention;

[0080] Figure 3 It is a structural block diagram of a device management apparatus provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0081] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0082] As an example, when deploying a smart home scenario, users may use smart home devices of different brands in the same smart home scenario. Smart home devices of different brands are often difficult to achieve unified control, and smart home devices cannot be interconnected, which limits the overall performance and user experience of the smart home system.

[0083] In this regard, in the present invention, in the process of managing and controlling smart home devices, especially when data interaction is required between different smart home devices, the gateway can receive device data sent by the first smart home device, the device data at least includes a device identifier, the first smart home device is a smart home device that communicates based on a first communication protocol, and identifies the target device attribute corresponding to the first smart home device based on the device identifier, and then converts the device data into target data in an internal data format according to the target device attribute, the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system, and then sends the target data to the second smart home device, controls the second smart home device to perform device operations corresponding to the target data, the second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols, so that when smart home devices based on different communication protocols need to interact with data, the gateway can convert the device data that needs to interact with data, and overcome the communication protocol differences between different smart home devices based on the converted data, to achieve unified control, thereby ensuring efficient and stable interconnection between smart home devices, providing great convenience for users to control smart home devices, and ensuring the user experience.

[0084] Reference Figure 1 , shows a flowchart of a method for managing a device provided in an embodiment of the present invention, which is applied to a smart home gateway, wherein the smart home gateway is deployed in a smart home system, wherein the smart home system further includes smart home devices, wherein the smart home devices include smart home devices that communicate based on different communication protocols, and specifically may include the following steps:

[0085] Step 101, receiving device data sent by a first smart home device, wherein the device data at least includes a device identification, and the first smart home device is a smart home device that communicates based on a first communication protocol;

[0086] In an embodiment of the present invention, a smart home system may include a corresponding smart home gateway and several different smart home devices. When deploying the smart home system, a user may configure smart home devices of different brands, models, and types. Therefore, the smart home system may include smart home devices that perform data communication based on different communication protocols.

[0087] For example, a smart home device that performs data communication based on a first communication protocol, a smart home device that performs data communication based on a second communication protocol, and a smart home device that performs data communication based on a third communication protocol, etc. Optionally, the communication protocol may include WiFi (Wireless Fidelity), Zigbee (Zigbee protocol), Z-Wave (Z-wave protocol), Bluetooth protocol, Thread (thread protocol) protocol, NFC (Near Field Communication) and IR (Infrared Communication), etc., and the present invention is not limited to this.

[0088] Among them, for the smart home gateway, it can serve as the core hub of the smart home system, responsible for data communication between different smart home devices and between user devices and smart home devices. Optionally, the smart home gateway can integrate multiple standard communication protocol interfaces, such as WiFi, Zignee, Z-Wave, Bluetooth protocol, Thread protocol, NFC and IR, so that the smart home gateway can communicate data with smart home devices of different communication protocols. At the same time, in order to improve the stability and reliability of the system, a redundant power supply design can be adopted to ensure that when the main power supply of the smart home gateway fails, the backup power supply of the smart home gateway can take over in time to ensure the continuous operation of the smart home system.

[0089] Before managing and controlling the smart home devices of the smart home system, a communication connection can be established between the smart home gateway and each smart home device so as to realize data interaction based on the established data transmission channel. The smart home gateway can discover newly connected smart home devices by automatic scanning and device broadcasting, and the present invention does not limit this.

[0090] For the automatic scanning process, the smart home gateway can periodically send a detection signal to the communication network where the smart home gateway is located, and then in response to receiving a first broadcast information for the detection signal sent by the first target smart home device, extract the first basic information corresponding to the target smart home device from the first broadcast information, and then compare the first basic information with a preset device feature library, and determine the first device type and first control configuration information corresponding to the first target smart home device based on the comparison result, the first control configuration information at least includes information characterizing the control method and control parameter requirements of the smart home device, and then add the first target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the first device type, the first control configuration information and the target smart home device.

[0091] Among them, the first basic information includes at least one of the first brand information, the first device type and the first function information. The smart home gateway can search for corresponding information in the device feature library based on the first brand information, the first device type and the first function information to determine whether the smart home device to be connected to the communication network can be found. Specifically, if at least one of the first brand information, the first device type and the first function information exists in the device feature library, that is, the smart home gateway has found the corresponding smart home device in the device feature library, then it can further send identity authentication information to the first target smart home device and receive the identity information sent by the first target smart home device. The identity information includes at least the device serial number and the authentication key. If the authentication key is authenticated, the device serial number is recorded, and the first device type and the first control configuration information corresponding to the first target smart home device are extracted from the device feature library. Before officially connecting the first target smart home device to the communication network, the smart home gateway also needs to perform identity authentication on the first target smart home device to ensure the security of the overall data of the smart home system.

[0092] For example, when a smart home device accesses the smart home communication network, it can send the corresponding device serial number and a pre-set authentication key to the smart home gateway. The smart home gateway will allow the smart home device to access the smart home system only after verification; correspondingly, for the user terminal, when logging into the mobile application, it is necessary to enter authentication information such as user name and password to ensure that only legitimate users can control the device.

[0093] In addition, for the device broadcasting process, the smart home gateway can respond to receiving the second broadcast information actively broadcast by the second target smart home device, extract the second basic information corresponding to the target smart home device from the second broadcast information, compare the second basic information with the preset device feature library, and determine the second device type and second control configuration information corresponding to the second target smart home device based on the comparison result, and then add the second target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the second device type, the second control configuration information and the target smart home device. Accordingly, the smart home gateway can also authenticate the smart home device that actively accesses the communication network, so that before officially connecting the smart home device to the communication network, the smart home gateway also needs to authenticate the smart home device to ensure the security of the overall data of the smart home system.

[0094] Through the above process, the smart home devices are connected to the smart home system, so that the smart home gateway can perform data interaction based on the established communication connection during the subsequent management of the smart home devices.

[0095] In some examples, it is assumed that a smart home gateway is in a communication network that includes multiple smart home devices, including smart light bulbs, smart sockets, smart thermostats, etc. The gateway needs to automatically scan and identify these devices and connect them to the smart home system.

[0096] For the automatic scanning process, the corresponding processing process may include:

[0097] Step 1: Send a probe signal:

[0098] The smart home gateway periodically sends a detection signal (for example, a Zigbee, Z-Wave, or WiFi broadcast signal) to the communication network in which it is located to detect whether there are new devices connected to the network.

[0099] Step 2: Receive the first broadcast information:

[0100] Assume that the first target smart home device is a smart light bulb (brand is "brand ①", device type is "smart light bulb", function is "dimming, color adjustment"). After receiving the detection signal, the device sends the first broadcast information to the gateway, the content of which is as follows:

[0101] First brand information: Brand ①;

[0102] First device type: smart light bulb;

[0103] First function information: dimming and color adjustment.

[0104] Step 3: Extract the first basic information:

[0105] The gateway extracts the following basic information from the first broadcast information:

[0106] First brand information: Brand ①;

[0107] First device type: smart light bulb;

[0108] First function information: dimming and color adjustment.

[0109] Step 4: Compare device feature database:

[0110] The gateway compares the extracted basic information with the preset device feature library. Assume that the device feature library contains the following information:

[0111] Brand: Brand①;

[0112] Device type: Smart light bulb;

[0113] Function: dimming, color adjustment.

[0114] Control configuration information:

[0115] Control method: through Zigbee protocol;

[0116] Control parameter requirements: brightness range 0-100, color temperature range 2700K-6500K.

[0117] Step 5: Determine the device type and control configuration information:

[0118] The comparison result shows that there is device information matching the first broadcast information in the device feature database. Therefore, the gateway determines:

[0119] First device type: smart light bulb;

[0120] First control configuration information:

[0121] Control method: through Zigbee protocol;

[0122] Control parameter requirements: brightness range 0-100, color temperature range 2700K-6500K.

[0123] Step 6: Add to the device list and establish a mapping relationship:

[0124] The gateway adds the first target smart home device (brand ① smart bulb) to the device list and establishes the following mapping relationship:

[0125] Device type: Smart light bulb;

[0126] Control configuration information: control mode (Zigbee), control parameters (brightness 0-100, color temperature 2700K-6500K);

[0127] Target device: Brand ① Smart light bulb.

[0128] After finding the corresponding smart home device in the device feature database, the identity of the smart home device can be authenticated, which may include:

[0129] Step 1: Send authentication information:

[0130] The gateway sends identity authentication information to the first target smart home device, requiring the device to provide identity information.

[0131] Step 2: Receive identity information:

[0132] The first target smart home device (brand ① smart bulb) responds and sends the following identity information:

[0133] Equipment serial number: Brand ①-LIGHT-001;

[0134] Authentication key: 1234567890ABCDEF.

[0135] Step 3: Verify the authentication key:

[0136] The gateway compares the received authentication key with the pre-stored authentication key. Assuming the authentication keys match, the gateway records the device serial number:

[0137] Equipment serial number: Brand ①-LIGHT-001.

[0138] Step 4: Complete identity verification

[0139] After the identity authentication is passed, the gateway officially connects the first target smart home device (brand ① smart bulb) to the communication network and records its identity information.

[0140] For the device broadcast process, the corresponding processing process may include:

[0141] Step 1: Receive the second broadcast information

[0142] Assume that the second target smart home device is a smart socket (brand is "Brand ②", device type is "smart socket", function is "switch control"). The device actively broadcasts the second broadcast information to the gateway, the content is as follows:

[0143] Second brand information: Brand ②;

[0144] Second device type: smart socket;

[0145] Second function information: switch control.

[0146] Step 2: Extract the second basic information:

[0147] The gateway extracts the following basic information from the second broadcast information:

[0148] Second brand information: Brand ②;

[0149] Second device type: smart socket;

[0150] Second function information: switch control.

[0151] Step 3: Compare device feature database:

[0152] The gateway compares the extracted basic information with the device feature database. Assume that the device feature database contains the following information:

[0153] Brand: Brand②;

[0154] Device type: Smart socket;

[0155] Function: switch control.

[0156] Control configuration information:

[0157] Control method: via WiFi protocol;

[0158] Control parameter requirements: switch status (on / off).

[0159] Step 4: Determine the device type and control configuration information:

[0160] The comparison result shows that there is device information matching the second broadcast information in the device feature database. Therefore, the gateway determines:

[0161] Second device type: smart socket;

[0162] Second control configuration information:

[0163] Control method: via WiFi protocol;

[0164] Control parameter requirements: switch status (on / off).

[0165] Step 5: Add to the device list and establish a mapping relationship:

[0166] The gateway adds the second target smart home device (brand ② smart socket) to the device list and establishes the following mapping relationship:

[0167] Device type: Smart socket;

[0168] Control configuration information: control mode (WiFi), control parameters (switch status);

[0169] Target device: Brand ② Smart socket.

[0170] Step 6: Identity Authentication

[0171] The gateway authenticates the second target smart home device in a similar process to the first target device to ensure legal access to the device.

[0172] In addition, for the authentication of user devices, assuming that the user logs in to the smart home system through a mobile application, the following authentication information needs to be entered: Username: user123; Password: password123. After the gateway verifies the username and password, it allows the user to control the smart home device through the mobile application.

[0173] Through the above process, the smart home gateway can automatically scan and identify new devices, extract basic information from the device broadcast information, and compare it with the device feature library to determine the type and control configuration information of the device, establish a mapping relationship, and authenticate the device to ensure legal access to the device, as well as authenticate the user terminal to ensure that only legitimate users can control the device.

[0174] In the process of managing smart home devices, the smart home gateway can receive device data sent by a first smart home device, the device data at least including a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol. The device identifier can be used to identify a unique smart home device, and the smart home gateway can determine which communication protocol the smart home device uses for data communication based on the device identifier.

[0175] For example, assuming that the first smart home device is a temperature sensor, after accessing the smart home communication network, it can transmit corresponding temperature data to the smart home gateway regularly or in real time, and carry the corresponding device identification in the temperature data, so that the smart home gateway can determine the communication protocol adopted by the temperature sensor based on the device identification, such as WiFi, Zignee, Z-Wave, Bluetooth protocol, Thread protocol, NFC and IR, etc., and then perform corresponding processing on the device data transmitted by the temperature sensor based on the determined communication protocol.

[0176] Step 102, identifying a target device attribute corresponding to the first smart home device based on the device identifier;

[0177] After receiving the corresponding device data, the smart home gateway can extract the corresponding device identifier from the device data, and identify the target device attributes corresponding to the first smart home device based on the device identifier. The target device attributes can uniquely identify the device type and brand of the smart home device.

[0178] Among them, the device identification includes at least one of a MAC (Media Access Control Address) address and a device model code, and the smart home gateway can use the MAC address and / or the device model code to identify the first smart home device and determine the target device attribute corresponding to the first smart home device.

[0179] It should be noted that, for smart home devices, the corresponding smart home devices can be accurately identified by either the MAC address or the device model code, thereby determining the target device attribute used to characterize the type and brand of the smart home device. It is understandable that, since smart home devices of different brands and types can use different communication protocols for data communication, by determining the target device attribute of the smart home device, the brand and type information corresponding to the smart home device can be accurately identified, so as to further determine the communication protocol used by the smart home device.

[0180] Step 103, converting the device data into target data in an internal data format according to the target device attributes, wherein the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system;

[0181] After determining the target device attribute corresponding to the first smart home device, the device data can be converted into target data in an internal data format according to the target device attribute. The internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system. By converting the data into a standard format that can be used for data interaction between the smart home gateway and the smart home device, the defect that different smart home devices cannot interact with each other due to differences in communication protocols is effectively overcome, unified control is achieved, and efficient and stable interconnection between smart home devices is guaranteed, which provides great convenience for users to control smart home devices and ensures user experience.

[0182] In an embodiment of the present invention, the target device attribute includes at least target brand information and target device type, then the smart home gateway can determine a target data packet structure corresponding to the first matching information and the target device type, the target data packet structure is adapted to the first communication protocol, then obtain the target mapping relationship corresponding to the first smart home device, and compare the target device type and the target brand information with the target mapping relationship respectively, determine the target control configuration information corresponding to the first smart home device, and then extract the key information corresponding to the device data from the target data packet structure according to the target control configuration information, and then add the key information to the preset data packet structure to obtain the target data in the internal data format corresponding to the device data, the preset data packet structure is the data structure used when the smart home gateway and the smart home device perform data interaction, thereby effectively overcoming the defect that different smart home devices cannot perform data interaction due to differences in communication protocols by defining the internal data format for data interaction between the smart home gateway and the smart home device in the smart home system, achieving unified control, and ensuring efficient and stable interconnection between smart home devices, providing great convenience for users to control smart home devices, and ensuring the user experience.

[0183] In a specific implementation, the smart home gateway can first determine the target data packet structure adapted to the first communication protocol according to the first matching information and the target device type. For example, if the device uses the Zigbee protocol, the gateway will determine the data packet structure of the Zigbee protocol. Then, the smart home gateway can further obtain the target mapping relationship of the first smart home device, and compare the target device type and target brand information with the mapping relationship to determine the target control configuration information. For example, if the device is an "XX smart bulb", the gateway will extract its control configuration information (such as control mode, control parameters) from the mapping relationship. Then, the smart home gateway can extract the key information of the device data from the target data packet structure according to the target control configuration information. For example, extract the brightness, color and other information of the light from the Zigbee data packet. And, add the extracted key information to the preset data packet structure to obtain the internal data format corresponding to the device data. Among them, the preset data packet structure is a unified data structure used when the smart home gateway interacts with the device. Through the above process, based on the definition of a unified internal data format, the problem that different devices cannot interact with each other due to differences in communication protocols is overcome, and efficient and stable interconnection is achieved.

[0184] For some examples, assume that a smart home gateway has the following two devices connected:

[0185] Brand ①Smart light bulb (using Zigbee protocol).

[0186] Brand ② Thermostat (using WiFi protocol).

[0187] The gateway needs to standardize the data of the two devices into a unified internal data format to achieve unified control.

[0188] Target device attributes include: brand ①+smart light bulb;

[0189] Target data packet structure: Data packet structure adapted to the Zigbee protocol.

[0190] Target mapping relationship:

[0191] Control method: through Zigbee protocol;

[0192] Control parameters: brightness range 0-100, color temperature range 2700K-6500K.

[0193] Based on the above data, the smart home gateway can extract the following data from the Zigbee data packet: Brightness: 75;

[0194] Color: warm_white.

[0195] Next, the extracted data can be normalized to an internal data format:

[0196] Add key information to the preset data packet structure to generate the following internal data format:

[0197] In addition, for the data processing target device attributes of brand ② thermostat: brand ②+thermostat;

[0198] Target data packet structure: Data packet structure adapted to the WiFi protocol.

[0199] Target mapping relationship:

[0200] Control method: via WiFi protocol;

[0201] Control parameters: temperature range 18-30℃, mode (heating / cooling).

[0202] Based on the above data, the smart home gateway can extract from the WiFi data packet:

[0203] Temperature: 22.5℃;

[0204] Mode: heating.

[0205] Next, the extracted data can be normalized to an internal data format:

[0206] Add key information to the preset data packet structure to generate the following internal data format:

[0207]

[0208]

[0209] Through the above process, the smart home gateway can standardize the internal data format, and devices with different communication protocols (such as Zigbee, WiFi, etc.) can interact seamlessly. The gateway only needs to process the unified internal data format, without having to write control logic for each communication protocol separately, and users can control all devices through a unified interface (such as mobile phone applications, etc.) without having to care about the specific communication protocol of the device. In addition, the unified data format reduces the complexity of data parsing and processing, and improves the stability of the system.

[0210] Step 104: Send the target data to a second smart home device, and control the second smart home device to perform a device operation corresponding to the target data. The second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols.

[0211] After obtaining the target data in an internal data format that can be used for data exchange between the smart home gateway and the smart home devices through data conversion, the smart home gateway can send the target data to the corresponding second smart home device to control the second smart home device to perform the corresponding device operation. The second smart home device is a smart home device that communicates based on the second communication protocol. The first communication protocol and the second communication protocol are different communication protocols. Therefore, when smart home devices based on different communication protocols need to exchange data, the gateway can convert the device data that needs to exchange data, and overcome the communication protocol differences between different smart home devices based on the converted data to achieve unified control, thereby ensuring efficient and stable interconnection between smart home devices, providing great convenience for users to control smart home devices, and ensuring user experience.

[0212] In addition, an encrypted channel is established between the smart home gateway and the smart home device. During the data transmission process, the smart home gateway can encrypt the target data, obtain corresponding encrypted data, and then send the encrypted data to the second smart home device through the encrypted channel, thereby preventing the data from being eavesdropped and attacked, and ensuring the security of the data.

[0213] In addition, the user can also manage the smart home devices through the user device. Specifically, the smart home gateway can receive the device processing instructions for the smart home devices sent by the user device, and then process the smart home devices in the device list according to the device processing instructions. The device processing instructions are at least one of the device adding instructions, device deleting instructions and device modifying instructions.

[0214] In addition, users can also control smart home devices in a linkage manner through user devices by inputting corresponding user operations in the user devices, and the user devices generate corresponding scene control instructions based on the user operations to control smart home devices through scene control instructions. Specifically, the smart home gateway can receive scene control instructions sent by the user devices and trigger conditions corresponding to the scene control instructions. The scene control instructions include device control instructions for at least one smart home device, and then in response to detecting that the trigger conditions are met, the device control instructions are sent to at least one corresponding smart home device. The device control instructions are used to instruct the smart home devices to perform device operations corresponding to the scene control instructions. Therefore, in the scene setting, the user can select multiple devices for linkage control, thereby realizing the function of controlling multiple devices with one click.

[0215] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention is not limited to this.

[0216] In an embodiment of the present invention, the smart home gateway is applied, and the smart home gateway can be deployed in a smart home system. The smart home system can also include smart home devices, and the smart home devices include smart home devices that communicate based on different communication protocols. In the process of managing and controlling the smart home devices, especially when data interaction is required between different smart home devices, the gateway can receive device data sent by a first smart home device, and the device data at least includes a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol. The target device attribute corresponding to the first smart home device is identified based on the device identifier, and then the device data is converted into target data in an internal data format according to the target device attribute, and the internal data format is the smart home device. The smart home gateway in the system uses a standard format for data interaction with smart home devices, and then sends the target data to the second smart home device, controlling the second smart home device to perform device operations corresponding to the target data. The second smart home device is a smart home device that communicates based on the second communication protocol. The first communication protocol and the second communication protocol are different communication protocols. Therefore, when smart home devices based on different communication protocols need to interact with data, the gateway can convert the device data that needs to interact with data, and overcome the differences in communication protocols between different smart home devices based on the converted data, to achieve unified control, thereby ensuring efficient and stable interconnection between smart home devices, providing great convenience for users to control smart home devices, and ensuring user experience.

[0217] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are used for exemplary description:

[0218] As an example, see Figure 2, shows a flow chart of device control provided in an embodiment of the present invention. When smart devices of different brands are connected to the smart home gateway, the protocol conversion mechanism begins to play a role. First, the gateway identifies the device through the device identification module. This module uses the specific identification information of the device, such as the MAC address of the device, the device model code, etc., to determine the brand and type of the device. Once the device is identified, the protocol parsing module will parse it according to the communication protocol of the device. For example, if it is a smart door lock using the Z-Wave protocol, the protocol parsing module will understand the data packet structure of the Z-Wave protocol and extract key information therein, such as the door lock status, unlocking instructions, etc. Then, the protocol conversion module converts the parsed device data into a unified internal data format. This internal data format is a standard format for the gateway to interact with other devices and can be understood by devices of different brands. For example, after the door lock status data of the Z-Wave protocol is converted into a unified format, other devices, such as smart lamps or smart appliances, can also perform corresponding linkage operations according to this status.

[0219] Internal format (The following is an example of how to standardize the data of different devices into a unified internal data format. For example, take lighting devices and temperature control devices as examples:):

[0220] {"devices":[{"device_id":"light_001","type":"light","status":"on","brightness":75,"color":"warm_white","protocol":"Zigbee"} ,{"device_id":"thermostat_001","type":"thermostat","status":"auto","temperature":22.5,"mode":"heating","protocol":"WiFi"}]}

[0221] Among them, in the above internal data format:

[0222] device_id: Unique identifier of the device.

[0223] type: device type (such as lighting, temperature control).

[0224] status: The current status of the device (such as on, off, automatic).

[0225] brightness: The brightness of the light device (only applicable to light devices).

[0226] color: The color of the light (only applicable to light devices).

[0227] temperature: The current temperature of the temperature-controlled device (only applicable to temperature-controlled devices).

[0228] mode: The working mode of the temperature control device (such as heating or cooling).

[0229] protocol: The communication protocol used by the device (such as Zigbee, WiFi).

[0230] In order to ensure the accuracy and efficiency of protocol conversion, a dynamic protocol library is established. This protocol library is constantly updated and expanded to adapt to the emerging smart device protocols. When a new device is launched, its protocol is added to the protocol library through online updates to ensure that the system can support the new device in a timely manner.

[0231] Among them, for the discovery and identification of smart devices, the smart home gateway discovers newly connected smart devices through two methods: automatic scanning and device broadcast response. The automatic scanning function scans the communication network regularly and sends specific detection signals. For example, in a WiFi network, the gateway can send a specific broadcast data packet to ask if there are new devices connected. When smart devices access the network, they will actively send broadcast messages to the gateway, containing basic information about the device, such as brand, model, function, etc. After receiving these broadcast messages, the gateway adds the device information to the device list. In order to accurately identify the device type and control method, the gateway matches the scanned device information with the built-in device database. This database stores the feature information of various known devices, and by comparison, the specific type of the device can be determined. For example, if the device's broadcast message contains specific brand code and model information, the gateway can find the corresponding record in the database, determine that the device is a smart camera, and understand its control method and parameter requirements.

[0232] For some devices that cannot be automatically identified, the gateway can obtain device information through online query or by guiding users to manually input. For example, users can enter the brand and model of the device through a mobile phone application, and the gateway will query and configure based on this information.

[0233] In addition, in order to ensure the security and reliability of data transmission between cross-brand devices, a series of advanced security technologies are adopted. First of all, data encryption is the key. Use high-strength encryption algorithms, such as AES-256 (Advanced Encryption Standard, 256-bit key length), to encrypt the transmitted data. Establish an encrypted channel between the device and the gateway to ensure that the data is not stolen or tampered with during transmission. In addition, the identity authentication mechanism is also indispensable. Strict identity authentication is performed on smart devices and user terminals. When a device accesses the gateway, it needs to provide a unique identity and authentication key. For example, when a smart home appliance is connected, it will send its device serial number and pre-set authentication key to the gateway. The gateway will allow the device to access the system only after verification. When the user terminal logs in to the mobile application, it needs to enter authentication information such as username and password to ensure that only legitimate users can control the device. And data integrity verification is equally important. Specifically, hash algorithms (such as SHA-256) or message authentication codes can be used to perform integrity verification on the transmitted data. After receiving the data, the receiver performs integrity verification to ensure that the data has not been damaged or tampered with during transmission. In addition, secure communication protocols such as TLS / SSL (Transport Layer Security / Secure Sockets Layer) are used to ensure the security and reliability of data transmission. These protocols establish an encrypted channel between the device and the gateway to prevent data from being eavesdropped and attacked.

[0234] For user terminal application development, the user terminal application is an important tool for users to interact with the smart home gateway. During the development process, we focus on user experience and functional practicality. In terms of device management, users can add, delete and modify smart devices through the application, and view the status and parameters of the devices. Provide device grouping management function to facilitate users to classify and manage different types of devices. For example, users can group all smart lamps into one group and smart home appliances into another group for more convenient control. In the scene setting function, users can be allowed to set different scenes according to their needs. For example, in the home mode, when the user returns home, the gateway can automatically open the smart door lock, turn on the lights in the living room, and adjust the air conditioning temperature to a comfortable range. In the scene setting, users can select multiple devices for linkage control to realize the function of controlling multiple devices with one click. In the timed task function, users can set timed tasks to allow smart devices to automatically perform corresponding operations at specified times. For example, users can set the curtains to open automatically at 7 am every day and turn off all lights automatically at 10 pm. Provide repeated timed task setting function to facilitate users to set periodic tasks. In terms of remote control function, users can remotely control smart devices through the application, and control the devices at home anytime and anywhere no matter where they are. The application provides real-time device status feedback to let users understand the operation of the device. For example, users can view the real-time picture of the smart camera through their mobile phone to understand the situation at home.

[0235] In addition, the data analysis function can analyze the usage data of smart devices and provide users with energy-saving suggestions and equipment maintenance tips. The analysis data includes the power consumption, operating time, fault records, etc. of the equipment. For example, if the power consumption of a smart home appliance suddenly increases, the application can remind the user to check whether the device is faulty, or provide energy-saving suggestions, such as adjusting the usage time of the device or setting a more reasonable temperature.

[0236] Furthermore, in order to meet the needs of the evolving smart home market, the smart home gateway has good scalability. Adding new device types is an important aspect. As new smart devices continue to emerge, the gateway should be able to easily add new device types. When new device types appear, support for new devices is achieved by updating the gateway's software and protocol library. For example, if a new type of smart sensor appears, developers can analyze and develop the protocol for the sensor, add its protocol to the gateway's protocol library, and then enable the gateway to recognize and control this new device through software updates.

[0237] Expanding functional modules is also an important means to improve system performance. According to user needs, the functional modules of the system are continuously expanded. For example, a voice control module can be added to allow users to control smart devices through voice commands. Or a smart scene module can be added to automatically adjust the status of the device according to different time, weather and other conditions. An energy management module can also be added to monitor and optimize the use of household energy. Functional modules can be added to the gateway through software upgrades to provide users with more intelligent services.

[0238] Connecting with third-party platforms can realize the integration of more devices and services. For example, connecting with smart speaker platforms can realize voice control of smart devices; connecting with smart security platforms can realize integrated management of home security. During the connection process, it is necessary to ensure the security and compatibility of data and protect the privacy and rights of users. Standardized interfaces and protocols, such as OAuth 2.0 authorization protocol, are used to ensure the security and reliability of the connection. At the same time, strict testing and verification are carried out to ensure the stable operation of the connected system.

[0239] Through the above process, when smart home devices based on different communication protocols need to interact with each other, the gateway can convert the device data that needs to interact with each other, and overcome the differences in communication protocols between different smart home devices based on the converted data to achieve unified control, thereby ensuring efficient and stable interconnection between smart home devices, providing great convenience for users to control smart home devices, and ensuring the user experience.

[0240] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0241] Reference Figure 3 , shows a structural block diagram of a device management device provided in an embodiment of the present invention, which is applied to a smart home gateway, and the smart home gateway is deployed in a smart home system. The smart home system also includes smart home devices, and the smart home devices include smart home devices that communicate based on different communication protocols, and specifically may include the following modules:

[0242] A data receiving module 301 is used to receive device data sent by a first smart home device, where the device data at least includes a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol;

[0243] A device identification module 302, configured to identify a target device attribute corresponding to the first smart home device based on the device identification;

[0244] A data conversion module 303, configured to convert the device data into target data in an internal data format according to the target device attributes, wherein the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system;

[0245] The data sending module 304 is used to send the target data to the second smart home device, and control the second smart home device to perform a device operation corresponding to the target data. The second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols.

[0246] In some feasible implementations, the device identification includes at least one of a MAC address and a device model code, and the device identification module 302 is specifically used to:

[0247] The first smart home device is identified by using the MAC address and / or the device model code to determine a target device attribute corresponding to the first smart home device.

[0248] In some feasible implementations, the target device attributes include at least target brand information and target device type, and the data conversion module 303 is specifically used to:

[0249] Determine a target data packet structure corresponding to the first matching information and the target device type, wherein the target data packet structure is adapted to the first communication protocol;

[0250] Acquire a target mapping relationship corresponding to the first smart home device, and compare the target device type and the target brand information with the target mapping relationship respectively to determine target control configuration information corresponding to the first smart home device;

[0251] Extracting key information corresponding to the device data from the target data packet structure according to the target control configuration information;

[0252] The key information is added to a preset data packet structure to obtain target data in an internal data format corresponding to the device data. The preset data packet structure is a data structure used when the smart home gateway interacts with smart home devices.

[0253] Some possible implementations also include:

[0254] A signal broadcast module, used to periodically send a detection signal to the communication network where the smart home gateway is located;

[0255] A first information extraction module, configured to extract first basic information corresponding to the target smart home device from the first broadcast information in response to receiving first broadcast information for the detection signal sent by the first target smart home device;

[0256] a first information comparison module, configured to compare the first basic information with a preset device feature library, and determine a first device type and first control configuration information corresponding to the first target smart home device based on the comparison result, wherein the first control configuration information at least includes information characterizing a control mode and control parameter requirements of the smart home device;

[0257] The first adding module is used to add the first target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the first device type, the first control configuration information and the target smart home device.

[0258] In some feasible implementations, the first basic information includes at least one of first brand information, first device type, and first function information, and the first information comparison module is specifically used to:

[0259] If at least one of the first brand information, the first device type, and the first function information exists in the device feature library, sending identity authentication information to the first target smart home device, and receiving identity information sent by the first target smart home device, the identity information including at least a device serial number and an authentication key;

[0260] If the authentication key is authenticated successfully, the device serial number is recorded, and the first device type and first control configuration information corresponding to the first target smart home device are extracted from the device feature library.

[0261] Some possible implementations also include:

[0262] A second information extraction module, configured to extract second basic information corresponding to the target smart home device from the second broadcast information in response to receiving second broadcast information actively broadcasted externally by the second target smart home device;

[0263] A second information comparison module, configured to compare the second basic information with a preset device feature library, and determine a second device type and second control configuration information corresponding to the second target smart home device based on the comparison result;

[0264] The second adding module is used to add the second target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the second device type, the second control configuration information and the target smart home device.

[0265] In some feasible implementations, an encrypted channel is established between the smart home gateway and the smart home device, and the data sending module 304 is specifically used to:

[0266] Encrypting the target data to obtain corresponding encrypted data;

[0267] The encrypted data is sent to the second smart home device through the encrypted channel.

[0268] Some possible implementations also include:

[0269] An instruction receiving module, used to receive a device processing instruction for the smart home device sent by a user device;

[0270] An instruction execution module, used to process the smart home devices in the device list according to the device processing instruction;

[0271] The device processing instruction is at least one of a device adding instruction, a device deleting instruction and a device modifying instruction.

[0272] Some possible implementations also include:

[0273] A device control module, configured to receive a scene control instruction sent by a user device and a trigger condition corresponding to the scene control instruction, wherein the scene control instruction includes a device control instruction for at least one smart home device;

[0274] The instruction sending module is used to send the device control instruction to at least one corresponding smart home device in response to detecting that the trigger condition is met, and the device control instruction is used to instruct the smart home device to perform a device operation corresponding to the scene control instruction.

[0275] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0276] In addition, an embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the management method embodiment of the above-mentioned device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0277] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the management method embodiment of the above-mentioned device is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0278] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0279] It should be understood by those skilled in the art that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, EEPROM, Flash, and eMMC, etc.) containing computer-usable program codes.

[0280] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0281] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0282] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0283] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0284] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0285] The above is a detailed introduction to a management method for a device and a management device for a device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A device management method, characterized in that: Applied to a smart home gateway, the smart home gateway is deployed in a smart home system, the smart home system also includes smart home devices, the smart home devices include smart home devices that communicate based on different communication protocols, the method includes: Receiving device data sent by a first smart home device, the device data at least including a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol; Identify a target device attribute corresponding to the first smart home device based on the device identifier; Converting the device data into target data in an internal data format according to the target device attributes, wherein the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system; The target data is sent to a second smart home device, and the second smart home device is controlled to perform a device operation corresponding to the target data, wherein the second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols.

2. The method according to claim 1, characterized in that The device identifier includes at least one of a MAC address and a device model code, and the identifying the target device attribute corresponding to the first smart home device based on the device identifier includes: The first smart home device is identified by using the MAC address and / or the device model code to determine a target device attribute corresponding to the first smart home device.

3. The method according to claim 1 or 2, characterized in that: The target device attributes include at least target brand information and target device type, and the step of converting the device data into target data in an internal data format according to the target device attributes includes: Determine a target data packet structure corresponding to the first matching information and the target device type, wherein the target data packet structure is adapted to the first communication protocol; Acquire a target mapping relationship corresponding to the first smart home device, and compare the target device type and the target brand information with the target mapping relationship respectively to determine target control configuration information corresponding to the first smart home device; Extracting key information corresponding to the device data from the target data packet structure according to the target control configuration information; The key information is added to a preset data packet structure to obtain target data in an internal data format corresponding to the device data. The preset data packet structure is a data structure used when the smart home gateway interacts with smart home devices.

4. The method according to claim 1, characterized in that: Also includes: Periodically sending a detection signal to the communication network where the smart home gateway is located; In response to receiving first broadcast information for the detection signal sent by a first target smart home device, extracting first basic information corresponding to the target smart home device from the first broadcast information; Comparing the first basic information with a preset device feature library, and determining a first device type and first control configuration information corresponding to the first target smart home device based on the comparison result, wherein the first control configuration information at least includes information characterizing a control mode and control parameter requirements of the smart home device; The first target smart home device is added to the device list of the smart home gateway, and a mapping relationship between the first device type, the first control configuration information and the target smart home device is established.

5. The method according to claim 4, characterized in that The first basic information includes at least one of first brand information, first device type, and first function information, and the determining, based on the comparison result, the first device type and first control configuration information corresponding to the first target smart home device includes: If at least one of the first brand information, the first device type, and the first function information exists in the device feature library, sending identity authentication information to the first target smart home device, and receiving identity information sent by the first target smart home device, the identity information including at least a device serial number and an authentication key; If the authentication key is authenticated successfully, the device serial number is recorded, and the first device type and first control configuration information corresponding to the first target smart home device are extracted from the device feature library.

6. The method according to claim 4 or 5, characterized in that: Also includes: In response to receiving second broadcast information actively broadcasted externally by a second target smart home device, extracting second basic information corresponding to the target smart home device from the second broadcast information; Comparing the second basic information with a preset device feature library, and determining a second device type and second control configuration information corresponding to the second target smart home device based on the comparison result; Add the second target smart home device to the device list of the smart home gateway, and establish a mapping relationship between the second device type, the second control configuration information and the target smart home device.

7. The method according to claim 4 or 5, characterized in that: An encrypted channel is established between the smart home gateway and the smart home device, and sending the target data to the second smart home device includes: Encrypting the target data to obtain corresponding encrypted data; The encrypted data is sent to the second smart home device through the encrypted channel.

8. The method according to claim 4 or 5, characterized in that: Also includes: Receiving a device processing instruction for the smart home device sent by a user device; Processing the smart home devices in the device list according to the device processing instruction; The device processing instruction is at least one of a device adding instruction, a device deleting instruction and a device modifying instruction.

9. The method according to claim 4 or 5, characterized in that: Also includes: Receiving a scene control instruction sent by a user device and a trigger condition corresponding to the scene control instruction, wherein the scene control instruction includes a device control instruction for at least one smart home device; In response to detecting that the trigger condition is met, the device control instruction is sent to at least one corresponding smart home device, and the device control instruction is used to instruct the smart home device to perform a device operation corresponding to the scene control instruction.

10. A device management apparatus, characterized in that: Applied to a smart home gateway, the smart home gateway is deployed in a smart home system, the smart home system also includes smart home devices, the smart home devices include smart home devices that communicate based on different communication protocols, and the device includes: A data receiving module, configured to receive device data sent by a first smart home device, wherein the device data at least includes a device identifier, and the first smart home device is a smart home device that communicates based on a first communication protocol; A device identification module, configured to identify a target device attribute corresponding to the first smart home device based on the device identifier; A data conversion module, used for converting the device data into target data in an internal data format according to the target device attributes, wherein the internal data format is a standard format for data interaction between the smart home gateway and the smart home device in the smart home system; A data sending module is used to send the target data to a second smart home device, and control the second smart home device to perform a device operation corresponding to the target data. The second smart home device is a smart home device that communicates based on a second communication protocol, and the first communication protocol and the second communication protocol are different communication protocols.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 9 when executing the program stored in the memory.

12. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • A communication method of a smart home system and a smart home gateway

    CN109039837A

  • Gateway structure for multi-protocol conversion

    CN112671638A

  • Smart home interaction method and device based on Internet of Things

    CN114743554A

  • Multi-protocol access smart home control system and method

    CN118625688A

  • Smart home information interaction method and system, electronic equipment and storage medium

    CN118740535A