Configuration method and device of smart home equipment, equipment and storage medium
Through automated configuration methods, smart home equipment information is obtained, safe authentication and type identification are performed, configuration strategies are matched and parameters are sent, which solves the problems of cumbersome configuration processes and lack of flexibility, and efficient and reliable equipment configuration is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202510290438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-12
- Publication Date
- 2025-06-13
AI Technical Summary
The configuration process of existing smart home devices is cumbersome and the user's technical level is limited, making it difficult to achieve efficient and stable connections between devices, and the configuration lacks flexibility. Users need to reconfigure when the device location or environment changes.
By obtaining the device information of smart home devices, we can determine whether the device is connected to the system for the first time, and if it is the first time, we will conduct security authentication, identify the device type and function, match the configuration strategy, generate and send configuration parameters, and realize automated configuration.
It improves the convenience and reliability of smart home equipment configuration, reduces user operation burden, and improves the overall efficiency and user experience of smart home systems.
Smart Images

Figure CN120143639A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of intelligent control technology, and particularly to a configuration method, device, equipment and storage medium for smart home devices. Background Art
[0002] Currently, with the development of smart home, users can manually configure to achieve the interconnection and interoperability between furniture devices. However, due to the complexity of the manual configuration process and the limitation of users' technical level, it is often difficult to achieve efficient and stable connection between furniture devices. In addition, manual configuration lacks flexibility. Once the location or environment of the furniture device changes, users need to reconfigure, which not only increases the operation burden of users, but also reduces the overall efficiency and user experience of the smart home system. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention provide a configuration method, device, equipment and storage medium for smart home devices.
[0004] According to one aspect of the embodiments of the present invention, a configuration method for smart home devices is provided. The method includes: obtaining device information broadcast by the smart home device; judging whether the smart home device is newly accessed to the smart home system according to the device information; if the smart home device is newly accessed to the smart home system, performing security authentication on the smart home device, and identifying the device type and corresponding device functions of the smart home device based on the security authentication result and the device information; matching a corresponding configuration strategy from a configuration strategy library based on the device type and device functions; generating configuration parameters for the smart home device according to the configuration strategy, and sending the configuration parameters to the smart home device for parameter configuration. Through the above process, the convenience and reliability of configuring smart home devices can be improved.
[0005] In an alternative embodiment, identifying the device type and corresponding device functions of the smart home device based on the device information includes:
[0006] Parsing the device identifier in the device information;
[0007] Querying a device type look-up table through the device identifier to determine the device type of the smart home device;
[0008] Parsing the device information based on the device type to identify the device functions of the smart home device.
[0009] In an alternative embodiment, matching a corresponding configuration strategy from a configuration strategy library based on the device type and device functions includes:
[0010] Find a candidate configuration policy set that matches the device type and device functions in the configuration policy library;
[0011] Based on the candidate configuration policy set, determine the configuration policy that is most suitable for the smart home device.
[0012] In an alternative embodiment, generate configuration parameters for the smart home device according to the configuration policy, and send the configuration parameters to the smart home device for parameter configuration, including:
[0013] Parse the configuration policy to extract the configuration parameter items for the smart home device;
[0014] The configuration parameter values generated according to the configuration parameter items;
[0015] Generate a parameter configuration instruction based on the configuration parameter items and the corresponding configuration parameter values;
[0016] Send the parameter configuration instruction to the smart home device through the communication protocol, so that the smart home device performs parameter configuration according to the parameter configuration instruction.
[0017] In an alternative embodiment, if the smart home device is not accessing the smart home system for the first time, the method further includes:
[0018] Obtain the environmental parameters of the smart home device in the current working space during the target time period;
[0019] Compare the current working space with the target working space during the target time period to obtain a space comparison result;
[0020] If the space comparison result indicates that the current working space is the same as the target working space, obtain the target environmental parameters of the smart home device at the corresponding moment in the target working space;
[0021] Adjust the current configuration parameters of the smart home device based on the target environmental parameters.
[0022] In an alternative embodiment, the above method further includes:
[0023] If the space comparison result indicates that the current working space is different from the target working space, use the current working space as the target working space;
[0024] Based on the current configuration parameters and the received parameter adjustment instruction, use the adjusted space environmental parameters as the target space environmental parameters of the smart home device at the corresponding moment in the target working space.
[0025] In an alternative embodiment, the above method further includes:
[0026] Obtain the current firmware version of the smart home device;
[0027] Compare the current firmware version with the target firmware version to obtain a firmware comparison result;
[0028] Update the current firmware version based on the firmware comparison result, and update the configuration parameters of the smart home device based on the updated firmware version.
[0029] According to another aspect of the embodiments of the present invention, there is provided a configuration device for a smart home device, including: an information acquisition module for acquiring device information broadcast by the smart home device; an information determination module for determining whether the smart home device is first accessed to the smart home system according to the device information; a security authentication module for performing security authentication on the smart home device if the smart home device is first accessed to the smart home system, and identifying the device type and corresponding device functions of the smart home device based on the security authentication result and the device information; a policy matching module for matching a corresponding configuration policy from a configuration policy library based on the device type and device functions; a parameter configuration module for generating configuration parameters for the smart home device according to the configuration policy, and sending the configuration parameters to the smart home device for parameter configuration. Through the above modules, the convenience and reliability of configuring the smart home device can be improved.
[0030] According to another aspect of the embodiments of the present invention, there is provided an electronic device, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to perform the operations of the foregoing configuration method for a smart home device.
[0031] According to still another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, in which at least one executable instruction is stored, and the executable instruction causes an electronic device / device to perform the operations of the foregoing configuration method for a smart home device.
[0032] According to still another aspect of the embodiments of the present invention, there is provided a computer program product, including computer instructions, and the computer instructions are used for causing a computer to perform the operations of the configuration method for a smart home device according to the first aspect or any corresponding embodiment thereof described above.
[0033] The above description is only an overview of the technical solutions of the embodiments of the present invention. In order to be able to understand the technical means of the embodiments of the present invention more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features, and advantages of the embodiments of the present invention more obvious and understandable, the following specifically describes the embodiments of the present invention. Description of the Drawings
[0034] The accompanying drawings are only used to illustrate the embodiments and are not considered as a limitation to the present invention. Moreover, throughout the drawings, the same reference signs are used to denote the same components. In the drawings:
[0035] Figure 1 A schematic flow chart of a configuration method for a smart home device provided by the present invention is shown;
[0036] Figure 2 Another schematic flow chart of a configuration method for a smart home device provided by the present invention is shown;
[0037] Figure 3 A schematic structural diagram of a configuration device for a smart home device provided by the present invention is shown;
[0038] Figure 4 A schematic structural diagram of an electronic device provided by the present invention is shown. Specific embodiments
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0040] Figure 1 A flow chart of the first embodiment of a configuration method for a smart home device of the present invention is shown, which is applied to a smart home system. The smart home system includes an edge computing gateway, smart home devices connected to the smart gateway, and a mobile terminal. The user can access and manage the smart home through the edge computing gateway at any time and place via the mobile terminal, such as a smart phone or a computer. As Figure 1 shown, the method includes the following steps:
[0041] Step 110, obtaining the device information broadcast by the smart home device.
[0042] Among them, the device information broadcast by the smart home device may include a device identifier (device unique ID), a device type, and an authentication status. The device identifier is used to uniquely identify each smart home device, enabling the user or the system to accurately identify and distinguish different devices. The device type provides information about the function or use of the device, such as a lighting device, a temperature control device, or a security device, etc. The authentication status indicates whether the device has passed the security authentication to ensure the security of the device accessing the home network.
[0043] Furthermore, the device type may include product type, manufacturer information, and function description. The product type may include smart bulbs, thermostats, door locks, security cameras, etc. Example: Device information broadcast by a smart bulb: "Product type: smart bulb, ID: 12345, Function description: dimming, color temperature adjustment, RGB change". In addition, in order to adapt to different device functions, function classification can also be performed according to the self-description information of smart home devices to determine the application scenarios of the devices (such as control type, monitoring type, perception type, etc.).
[0044] During specific implementation, the device information broadcast by the smart home device includes information such as a unique identifier, device type, status, etc. The field information is as follows:
[0045] * device_id: String, the unique ID of the device.
[0046] * device_name: String, the device name (visible to the user).
[0047] * device_type: String, the device type, such as "bulb", "thermostat", etc.
[0048] * manufacturer: String, the device manufacturer.
[0049] * model: String, the device model.
[0050] * configuration: JSON, the device configuration information. Such as:
[0051]
[0052] * authentication: JSON, the device authentication information. Such as:
[0053]
[0054] Step 120, based on the device information, determine whether the smart home device is accessing the smart home system for the first time.
[0055] As described above, by determining whether the smart home device is accessing the smart home system for the first time based on the device information, it is determined whether security verification needs to be performed on the smart home device.
[0056] In some alternative embodiments, when determining whether a smart home device is accessing the smart home system for the first time based on device information, it is possible to check the device record database of the smart home system to find out whether there is a device record that matches the device information. If there is no device record in the device record database that matches the device information, it is determined that the smart home device is accessing the smart home system for the first time, and a security verification process, such as device certificate verification, user authorization, etc., needs to be carried out to ensure the security and legality of the device. At the same time, the device information of this access is added to the device record database for subsequent management and tracking. If there is already a device record in the device record database that matches the device information, it is determined that the smart home device is not accessing for the first time, and the subsequent configuration and usage processes can be directly carried out.
[0057] Step 130, if the smart home device accesses the smart home system for the first time, perform a security authentication on the smart home device, and based on the security authentication result and device information, identify the device type of the smart home device and the corresponding device functions.
[0058] As described above, if the smart home device accesses the smart home system for the first time, perform a security authentication on the smart home device, and based on the security authentication result and device information, identify the device type of the smart home device and the corresponding device functions, so as to achieve precise configuration of the smart home device. The security authentication process may include steps such as verification of the device digital certificate and confirmation of user authorization to ensure that the accessed device is secure and legal. Once the security authentication is passed, based on the device information, such as device model, manufacturer identification, etc., the type of the device is automatically identified, such as smart lighting device, smart curtain device, smart temperature control device, etc. Then, further analyze the functional characteristics corresponding to the device type, such as the brightness adjustment and color transformation functions of smart lighting, the opening / closing and timing functions of smart curtains, and the temperature setting and automatic adjustment functions of smart temperature control. Through such an automatic identification and configuration process, users can more conveniently connect smart home devices to the smart home system and quickly enjoy the convenience and comfort brought by smart home.
[0059] Specifically, when a smart home device attempts to access the edge computing gateway, the device will submit its digital certificate (provided by the PKI system of the device manufacturer). The device will also provide the device ID, certificate information, etc. The edge computing gateway uses the root certificate of the device manufacturer to verify whether the digital certificate of the device is legal to ensure the authenticity of the device identity. After the verification is passed, the device is allowed to continue with the network connection and further operations.
[0060] Among them, the above data certificate information includes but is not limited to key data such as device model, manufacturer information, serial number, and device authentication status. These data certificate information are received from the smart home device side through a secure communication channel, such as the HTTPS protocol, to ensure the security and integrity of the information during transmission. After obtaining the data certificate information, the validity of the certificate is verified, including checking whether the certificate has expired, whether it has been revoked, and whether the certificate signature is valid, etc., to ensure that the devices accessing the smart home system are legal and secure.
[0061] In some alternative embodiments, when identifying the device type and corresponding device functions of a smart home device based on device information, the device identifier in the device information can be parsed first; the device type look-up table is queried through the device identifier to determine the device type of the smart home device; the device information is parsed based on the device type to identify the device functions of the smart home device.
[0062] Specifically, the device identifier is usually a unique code or string used to distinguish different smart home devices. The device type look-up table is a database or look-up table that stores the corresponding relationship between the device identifier and the device type. In actual operation, when a smart home device is first connected to the smart home system, the device information of the device is first read, and the device identifier is extracted from it. Then, the device identifier is used to look up in the device type look-up table to determine the type of the device. Once the device type is determined, the device information can be further parsed according to the information format and parsing rules unique to the device type to identify all the functional characteristics of the device, which not only improves the efficiency and accuracy of the smart home device accessing the smart home system, but also greatly simplifies the user's configuration process, enabling the user to more conveniently enjoy the convenience brought by the smart home.
[0063] Step 140, match the corresponding configuration policy from the configuration policy library based on the device type and device functions.
[0064] As described above, by matching the corresponding configuration policy from the configuration policy library based on the device type and device functions, corresponding configuration parameters are assigned to the smart home device based on the configuration policy. These configuration parameters may include the device's network settings, working mode, security policy, etc., which together determine the operation mode and behavior of the device in the smart home system. The configuration policy library is a database that stores various device types and their corresponding configuration policies, and these configuration policies are preset according to the characteristics of the devices and user requirements. By matching the device type and functions to the corresponding configuration policies, it can ensure that each smart home device can operate in the expected manner while meeting the user's needs and expectations. This automated configuration method not only improves the configuration efficiency but also reduces the possibility of human errors, significantly enhancing the overall performance and user experience of the smart home system.
[0065] In a specific embodiment, the configuration policy library may contain predefined configuration templates for different device types and functions. For example, for a smart temperature control device, the configuration policy may include the default temperature range, energy-saving mode settings, and linkage rules with other smart home devices. For a smart lighting device, the configuration policy may involve brightness levels, color preferences, and linkage with motion sensors to achieve automated control of turning on the lights when people arrive and turning off the lights when people leave. After matching the corresponding configuration policy, these configuration parameters can be applied to the smart home device automatically or semi-automatically. The automatic configuration process may involve sending parameter configuration instructions to the device via a wireless network, while semi-automatic configuration may require user participation, such as confirming certain settings on a smartphone application. In addition, the configuration policy library can be updated so that as new device types emerge or user requirements change, configuration policies can be easily added or modified. At the same time, the system can also provide user-defined configuration options, allowing users to adjust the configuration parameters of the device according to their preferences, thereby further enhancing the personalization and flexibility of the smart home system.
[0066] In some alternative embodiments, when matching the corresponding configuration policy from the configuration policy library based on the device type and device functions, a set of candidate configuration policies that match the device type and device functions can be found in the configuration policy library; based on the set of candidate configuration policies, the configuration policy that is most suitable for the smart home device can be determined.
[0067] Specifically, to more precisely match the configuration policy, a candidate set of configuration policies that roughly match the device type and functions can be quickly screened out from the configuration policy library first. This candidate set may contain multiple configuration policies, all of which have a certain degree of match with the target device. Subsequently, further analyze these candidate policies, considering factors such as the specific requirements of the device, user preferences, system compatibility, etc., and select the configuration policy that is most suitable for the smart home device from them. This process ensures that the configuration policy not only meets the basic requirements of the device but also optimizes the performance and user experience of the device to the greatest extent.
[0068] Step 150, generate configuration parameters for the smart home device according to the configuration policy, and send the configuration parameters to the smart home device for parameter configuration.
[0069] As above, by generating configuration parameters for the smart home device according to the configuration policy and sending the configuration parameters to the smart home device for parameter configuration, the configuration parameters can include the network connection settings, working mode settings, security authentication information, etc. of the device. After sending the configuration parameters, the smart home device will automatically or according to the user's instructions apply these parameters to complete the configuration process. Once the configuration is completed, the smart home device can access the smart home system and work in coordination with other devices. This greatly simplifies the process of device accessing the system, reduces the need for manual intervention, and the device can quickly adapt to the system environment and achieve plug-and-play without complex setting operations; at the same time, since the configuration parameters are tailored according to the device characteristics, the device can fully exert its performance and reach the best working state.
[0070] In some optional embodiments, when generating configuration parameters for the smart home device according to the configuration policy and sending the configuration parameters to the smart home device for parameter configuration, the configuration policy can be parsed first to extract the configuration parameter items for the smart home device; generate the configuration parameter values according to the configuration parameter items; generate a parameter configuration instruction based on the configuration parameter items and the corresponding configuration parameter values; send the parameter configuration instruction to the smart home device through a communication protocol, so that the smart home device can perform parameter configuration according to the parameter configuration instruction, thereby ensuring the accuracy and integrity of the configuration parameters and avoiding the device from malfunctioning or its performance degrading due to configuration errors. The process of parsing the configuration policy includes parsing the policy content and adapting it according to the device characteristics and user requirements. The generated configuration parameter values need to meet the specification requirements of the device to ensure that the device can correctly identify and apply these parameters. The generation of the parameter configuration instruction is a process of encapsulating the configuration parameter items and parameter values into a format recognizable by the device. The selection of the communication protocol depends on the communication methods supported by the device to ensure that the parameter configuration instruction can be accurately transmitted to the device side.
[0071] In specific implementation, when generating configuration parameters for smart home devices, they can be differentiated based on the preset configuration file templates according to device types and functions. These configuration file templates contain the configurations required for the initialization of smart home devices, such as network parameters, protocol parameters, and device characteristics (such as the brightness range of a light bulb, the resolution setting of a camera, etc.).
[0072] Example: For a smart light bulb, the preset configuration file template may include: initial brightness (e.g., 50%), initial color temperature (e.g., 4000K), and default working mode (e.g., "energy-saving mode").
[0073] In some alternative implementation manners, it is also possible to first obtain the current firmware version of the smart home device; compare the current firmware version with the target firmware version to obtain a firmware comparison result; update the current firmware version based on the firmware comparison result, and update the configuration parameters of the smart home device based on the updated firmware version.
[0074] Specifically, the firmware comparison result will clearly show the differences between the current firmware version and the target firmware version, including whether an update is required, the content of the update, and the update priority, etc. If the current firmware version is lower than the target firmware version, the firmware update process will be automatically triggered, and the firmware update process can also be triggered based on the user's update instruction to download and install the target firmware version. After the firmware update is completed, it is detected whether the configuration parameters need to be adjusted based on the new firmware version. For the configuration parameters that need to be adjusted, the configuration parameter values that meet the requirements of the new firmware are regenerated, and new parameter configuration instructions are generated and sent to the smart home device through the previously determined communication protocol to ensure that the device can operate stably in the new firmware environment. This process not only improves the compatibility and stability of the device but also simplifies the firmware and configuration parameter update processes in an automated manner, improving the management efficiency.
[0075] For example, the edge computing gateway regularly communicates with the device and queries the firmware version of the device, and uses the version comparison mechanism to detect whether there is a new firmware. If there is a new version (e.g., updated from 1.0.0 to 1.1.0), an update prompt is sent to the user. When the user selects "Update immediately", the edge computing gateway pushes the firmware update package to the light bulb device. After the light bulb device downloads and installs the new firmware, it verifies the integrity of the update (checks the hash value, verifies the signature, etc.). After the update is successful, the firmware version of the device is updated to 1.1.0. The firmware update and configuration file change logs are recorded to ensure the traceability of the device's update history. The user can choose to enable these new functions, such as adjusting the RGB color of the light bulb and creating new lighting scenes. The user adjusts the brightness of the light bulb to 70% through the edge computing gateway interface and sets it to "reading mode". The user can view the update details, including the updated version, the content of the update, etc.
[0076] The configuration method of the smart home device according to the embodiment of the present invention obtains the device information broadcast by the smart home device, and determines whether the smart home device is newly connected to the smart home system according to the device information; if the smart home device is newly connected to the smart home system, security authentication is performed on the smart home device, and based on the security authentication result and the device information, the device type and the corresponding device functions of the smart home device are identified; by matching the corresponding configuration policy from the configuration policy library based on the device type and the device functions, configuration parameters for the smart home device are generated according to the configuration policy, and the configuration parameters are sent to the smart home device for parameter configuration, so as to ensure that the most suitable configuration parameters are provided for different types of smart home devices, thereby optimizing the device performance and user experience.
[0077] Figure 2 The flowchart of another embodiment of the configuration method of the smart home device according to the present invention is shown.
[0078] As Figure 2 shown, the method includes the following steps:
[0079] Step 210, obtain the device information broadcast by the smart home device.
[0080] For details, please refer to Figure 1 step 110 of the embodiment shown, which will not be elaborated here.
[0081] Step 220, determine whether the smart home device is newly connected to the smart home system according to the device information.
[0082] For details, please refer to Figure 1 step 120 of the embodiment shown, which will not be elaborated here.
[0083] Step 230, if the smart home device is not newly connected to the smart home system, obtain the environmental parameters of the smart home device in the current working space during the target time period.
[0084] Specifically, when the smart home device is not newly connected to the smart home system, by obtaining the environmental parameters of the smart home device in the current working space during the target time period, the usage habits and environmental changes of the smart home device are further analyzed. The environmental parameters may include but are not limited to temperature, humidity, light intensity, noise level, etc., providing a data basis for determining the operating environment of the smart home device. By comparing historical data, the changing trend of the environment can be identified, such as whether the temperature is gradually rising or falling, whether the humidity remains stable, etc. Based on these analysis results, the configuration parameters of the device can be intelligently adjusted to adapt to the current working environment, further improving the user's living comfort. For example, when the temperature is detected to rise, the working mode of the air conditioner can be automatically adjusted to lower the indoor temperature and maintain a comfortable living environment.
[0085] Step 240: Compare the current workspace with the target workspace within the target time period to obtain a spatial comparison result.
[0086] Specifically, when comparing the current workspace with the target workspace within the target time period to obtain a spatial comparison result, the environmental parameters of the current workspace and the target workspace within the target time period can be compared in detail first. These environmental parameters may include, but are not limited to, spatial size, layout structure, furniture placement location, etc. Through the comparison, the similarities and differences between the current workspace and the target workspace can be identified, such as whether the spatial layout has changed, whether the furniture has been moved, etc. Based on these comparison results, the operating effect of the smart home devices in the current workspace can be further analyzed, and the configuration parameters of the devices can be adjusted accordingly to ensure that they can best adapt to the current working environment. In addition, the spatial comparison result can also provide the user with an intuitive feedback on the changes in the workspace, helping the user better understand and optimize their working environment.
[0087] Step 250: If the spatial comparison result indicates that the current workspace is the same as the target workspace, obtain the target environmental parameters of the smart home devices at the corresponding moment in the target workspace.
[0088] Specifically, the key environmental parameters such as temperature, humidity, and light intensity of the smart home devices at the corresponding moment in the target workspace can be obtained to get the environmental conditions of the target workspace at the corresponding moment, providing an important reference for the configuration of the smart home devices. At the same time, ensure that the smart home devices can be automatically adjusted to the best operating state in the current workspace, creating a more comfortable and healthy living environment for the user.
[0089] Step 260: Adjust the current configuration parameters of the smart home devices based on the target environmental parameters.
[0090] Specifically, when adjusting the current configuration parameters of the smart home devices based on the target environmental parameters, the differences between the target environmental parameters and the current configuration parameters of the smart home devices can be analyzed first to identify the parameter items that need to be adjusted; according to the difference analysis results, the current configuration parameters of the smart home devices can be adjusted one by one to ensure that each parameter matches the target environmental parameters and achieves the best operating effect; at the same time, during the adjustment process, the operating state of the smart home devices and the environmental changes in the workspace are monitored in real time to ensure that the adjusted configuration parameters can effectively improve the operating efficiency of the devices and the comfort of the user.
[0091] In some alternative embodiments, if the spatial comparison result indicates that the current working space is different from the target working space, the current working space is taken as the target working space; based on the current configuration parameters and the received parameter adjustment instruction, the adjusted spatial environment parameters are taken as the target spatial environment parameters of the smart home device at the corresponding moment in the target working space.
[0092] Specifically, when it is detected that the current working space is inconsistent with the target working space, the current working space will be automatically set as the new target working space. Subsequently, according to the current configuration parameters and the parameter adjustment instruction set by the user or preset, the spatial environment parameters are adjusted accordingly. The adjusted spatial environment parameters will be regarded as the target spatial environment parameters of the smart home device at the corresponding moment in the new target working space. In this way, no matter which working space the user is in, the smart home device can provide suitable environmental conditions according to actual needs, greatly improving the user experience and comfort.
[0093] In some alternative embodiments, when obtaining the target environmental parameters of the smart home device at the corresponding moment in the target working space, intelligent prediction and dynamic adjustment can be performed in combination with historical data, user preferences, and external environmental factors at the corresponding moment. For example, it is possible to analyze the user's preference settings for spatial environment parameters such as temperature, humidity, and light intensity in different past time periods, so as to predict the environmental conditions that the user may expect at the corresponding moment. At the same time, the current external environmental factors such as weather conditions and outdoor temperature can be monitored in real time to further adjust and optimize the operating parameters of the smart home device, so as to provide more personalized and intelligent services while meeting the basic needs of the user, and further improving the user's quality of life and satisfaction.
[0094] In addition, it is also possible to intelligently infer the possible needs of the user at a specific time or in a specific scenario according to the user's daily behavior habits. For example, if it is detected that the user usually enters the bedroom to prepare for rest at about nine o'clock in the evening, the light brightness and temperature of the bedroom can be automatically adjusted to create a comfortable sleeping environment for the user. Or, when the user turns on the fitness mode at home, the background music, light, and temperature of the living room or fitness area are automatically adjusted to stimulate the user's enthusiasm for exercise and improve the exercise effect. Through these intelligent predictions and adjustments, the smart home device can more accurately meet the personalized needs of the user, making the user's home life more convenient, comfortable, and pleasant.
[0095] In some alternative embodiments, when obtaining the target environmental parameters of the smart home device at a corresponding moment in the target working space, it is also possible to obtain those determined by performing statistical analysis (such as summation average, weighted average, trimmed mean, median, etc.) on the received parameter configuration instructions when the smart home device is working in the target working space within a target time period, or those obtained by learning through machine learning algorithms (such as decision trees, K-means clustering, etc.).
[0096] In some alternative embodiments, when adjusting the current configuration parameters of the smart home device based on the target environmental parameters, it is also possible to obtain the device configuration parameters of other smart home devices in the target working space, as well as the association information between the devices, and adjust the current configuration parameters of the smart home device based on the device configuration parameters of other smart home devices and the association information between the devices. For example, when adjusting the light brightness and temperature in the bedroom, the light status in the living room or bathroom connected to the bedroom can be considered to avoid discomfort caused by excessive light differences. Or, when adjusting the background music in the fitness area, whether there are people resting or working in other rooms can be considered to avoid noise interference. Through this comprehensive consideration, the collaborative working efficiency of the smart home devices can be further improved, creating a more harmonious and comfortable home environment for users.
[0097] The configuration method of the smart home device according to the embodiments of the present invention realizes the efficient configuration of the smart home device through an intelligent comparison and adjustment process; at the same time, this configuration method not only takes into account the needs of users in different working environments, but also can automatically optimize the device settings by comparing the current and target working environments to ensure that users can enjoy the dual experience of comfort and energy conservation in various scenarios. In addition, this configuration method also demonstrates excellent flexibility and scalability, and can be customized according to the specific needs and preferences of each user, significantly improving the user experience of the smart home device. During the execution process, this method realizes the precise control of the space environmental parameters by combining the parameter adjustment instructions with the existing configuration parameters, further improving the intelligence level of the smart home device.
[0098] As a specific embodiment, a configuration method for a smart home device according to the present invention includes the following steps:
[0099] Step 1: The device (smart home device) first broadcasts a self-description message to inform the system (smart home system) of information such as the device type and function.
[0100] Specifically, when each smart home device joins the network for the first time, it will broadcast its device type (such as smart bulb, thermostat, door lock, security camera, etc.) through a self-description message. The device will include a set of identifiers, such as device ID, manufacturer information, product type, and function description.
[0101] Example: The smart bulb broadcasts the message: "Device type: smart bulb, ID: 12345, functions: dimming, color temperature adjustment, RGB change."
[0102] During specific implementation, each device added to the smart home system has information such as a unique identifier, device type, status, etc. The field information is as follows:
[0103] * device_id: String, the unique ID of the device.
[0104] * device_name: String, the device name (visible to the user).
[0105] * device_type: String, the device type, such as "bulb", "thermostat", etc.
[0106] * manufacturer: String, the device manufacturer.
[0107] * model: String, the device model.
[0108] * configuration: JSON, the device configuration information. For example:
[0109]
[0110] * authentication: JSON, the device authentication information. For example:
[0111]
[0112] Step 2: The smart home device submits a digital certificate, and the edge computing gateway verifies the device identity through PKI to ensure the legality of the device.
[0113] Specifically, when a smart home device attempts to connect to the edge computing gateway, the device will submit its digital certificate (provided by the PKI system of the device manufacturer). The device will also provide the device ID, certificate information, etc. The edge computing gateway uses the root certificate of the device manufacturer to verify whether the digital certificate of the device is legal, ensuring the authenticity of the device identity. After successful verification, the device is allowed to continue with network connection and further operations.
[0114] Among them, the above data certificate information includes, but is not limited to, key data such as device model, manufacturer information, serial number, and device authentication status. These data certificate information are received from the smart home device side through a secure communication channel, such as the HTTPS protocol, to ensure the security and integrity of the information during transmission. After obtaining the data certificate information, the validity of the certificate is verified, including checking whether the certificate has expired, whether it has been revoked, and whether the certificate signature is valid, etc., to ensure that the devices accessing the smart home system are legal and secure.
[0115] During specific implementation, the field information of the authentication information of each device is as follows:
[0116] * authentication_id: String, authentication record ID.
[0117] * device_id: String, device ID, associated with the device table.
[0118] * certificate_id: String, certificate ID.
[0119] * certificate_status: String, certificate status, such as "valid", "expired".
[0120] * verification_status: String, authentication status, such as "authenticated", "pending authentication".
[0121] * verification_ts: TimeStamp, authentication time.
[0122] * last_verified: TimeStamp, last verification time.
[0123] * is_primary: Boolean, whether it is the primary device authentication, used to distinguish the primary device in a multi-device scenario.
[0124] * revoke_status: String, revocation status, such as "not revoked", "revoked", used to manage authentication records that have expired or pose security risks.
[0125] * revoke_reason: String, revocation reason, detailed description of the reason for revoking the authentication, facilitating subsequent auditing and traceability.
[0126] * retry_count: Integer, retry times, records the retry times after the device authentication fails, preventing frequent verification requests caused by malicious attacks or misoperations.
[0127] *lock_status: String, the locking status, such as "unlocked", "locked", which is used to lock the device after multiple authentication failures to enhance system security.
[0128] *lock_until: TimeStamp, the unlocking time, which specifies the duration for which the device is locked and will be automatically unlocked after the specified time or requires manual unlocking by an administrator.
[0129] *The authentication information also includes interfaces for interacting with other modules, such as being associated with the configuration file model to ensure that only authenticated devices can obtain and update their configuration files, realizing the full life-cycle management of devices in the system. From the initial access to subsequent maintenance and upgrades, a strict authentication process is required.
[0130] Step 3: After successful verification, the edge computing gateway selects appropriate configuration parameters (configuration file) and pushes them to the device, and the device performs initialization.
[0131] Specifically, the edge computing gateway prepares a series of configuration file templates in advance, which are distinguished according to device types and functions. These templates contain the configurations required for device initialization, such as network parameters, protocol parameters, and device characteristics (such as the brightness range of a light bulb, the resolution setting of a camera, etc.).
[0132] Example: For a smart light bulb, the preset configuration file may include: initial brightness (e.g., 50%), initial color temperature (e.g., 4000K), default working mode (e.g., "energy-saving mode").
[0133] When the edge computing gateway receives the self-description information of the device, it will automatically select the corresponding configuration file according to the device type and function and push it to the device. After the device receives it, it initializes according to the configuration file. This automatic configuration push mechanism greatly simplifies the process of device access to the system and reduces the need for manual intervention. The device can quickly adapt to the system environment without complex setting operations and achieve plug-and-play. At the same time, since the configuration file is tailored according to the device characteristics, the device can fully exert its performance and reach the best working state.
[0134] During specific implementation, the configuration file includes the default parameters and function settings required by the device, and the field information is as follows:
[0135] *config_id: String, the configuration file ID.
[0136] *device_type: String, the applicable device type. Such as: "light bulb".
[0137] *default_configuration: JSON, the default configuration. Such as:
[0138]
[0139] * version: String, the version of the configuration file. For example: "1.0.0".
[0140] * created_ts: TimeStamp, the creation time of the configuration file.
[0141] * updated_ts: TimeStamp, the update time of the configuration file.
[0142] Step 4: During the operation of the smart home device, the edge computing gateway dynamically adjusts the configuration file according to usage data (such as temperature, brightness, humidity, etc.) and performs intelligent optimization based on user behavior.
[0143] Specifically, the usage data and status feedback of the device can help the system automatically adjust the configuration. For example, if the smart air conditioner has been operating at "high wind speed, low temperature" for a continuous period of time, and the temperature has dropped to an appropriate level as captured by the temperature and humidity sensor, the system can automatically push the "energy-saving mode" configuration based on the data.
[0144] In addition to the preset configuration file, the system also allows users to make personalized adjustments to the device configuration. Through the edge computing gateway or a mobile application, users can modify the working mode, parameters, etc. of the device, or set automation rules for the device (such as timed switching, scene modes, etc.).
[0145] Example: Users can adjust the color temperature of the smart bulb from 4000K to 3000K through the mobile application interface, or set the automatic switching rule for the bulb. Also, when the season changes, users can increase the configuration distribution, and the air conditioner will automatically adjust its mode / temperature.
[0146] Furthermore, through machine learning and intelligent algorithms, the edge computing gateway can analyze the user's usage behavior and automatically recommend adjustments. For example, if the system discovers that the user is accustomed to using soft warm-colored lights at night, it will actively push this mode. That is, by collecting the interaction data between the user and the device (such as the brightness adjustment of the smart bulb, the temperature setting of the air conditioner, the automatic switching time, etc.), machine learning algorithms (such as decision trees, K-means clustering, etc.) are used to analyze the user's behavior pattern. These data can help the system identify the user's habits, such as preferring a certain specific temperature, light intensity, or working mode.
[0147] Step 5: The edge computing gateway continuously monitors the device status and communication health. If abnormal behavior is detected (such as frequent access to other networks), it will trigger alarms and security measures to ensure system security.
[0148] Specifically, after the device is connected to the system, the edge computing gateway can continuously monitor the running status and communication health of the device. If the device behaves abnormally or emits suspicious signals (such as frequently attempting to access other networks, data anomalies, etc.), the system will automatically alarm and take measures (such as isolating the device, disconnecting the connection, etc.). Regularly conduct identity audits on all devices in the system to ensure that each device is in a valid authentication state. If it is found that the certificate or identity information of the device has changed (such as the certificate has expired or been tampered with), the edge computing gateway will actively verify and prompt the administrator. The communication between the device and the edge computing gateway must be encrypted to prevent data from being attacked or tampered with by a man-in-the-middle. Common encryption protocols include TLS (Transport Layer Security Protocol), SSL, etc. The firmware and configuration files of the device should also be verified for integrity. When the device starts up, it needs to verify the hash values of its firmware and configuration files to prevent malware attacks.
[0149] In summary, for the configuration method of the smart home device in the embodiment of the present invention, when the device is first connected to the smart home system, it can automatically identify and load the configuration file suitable for its function and environment without manual operation by the user, saving time and improving the convenience of device connection and the system's self-adaptive ability. At the same time, the system can not only automatically push the configuration based on the device type, but also dynamically adjust the configuration according to the device usage feedback and environmental changes. For example, after the air conditioner has been running for a period of time, it automatically switches to the energy-saving mode, improving the adaptability and intelligence of the system. By continuously monitoring the running status and communication health of the device, dynamically detecting abnormal device behaviors (such as frequently attempting to access other networks or data anomalies), and taking security measures (such as isolating the device or disconnecting the connection). This continuous security monitoring effectively prevents potential security threats and the access of malicious devices. *By analyzing the user's device usage habits, preferences, and environmental changes through machine learning algorithms, automatically optimizing the working mode and parameters of the device, that is, it can actively push the scenario mode that meets the user's preferences (such as adjusting the lights to a warm tone, or automatically setting the air conditioner temperature) without user intervention, providing a personalized home experience. By introducing digital certificate authentication and encrypted communication mechanisms, it ensures the legal identity of the device, prevents malicious devices from accessing, guarantees the security of the system and user privacy, and at the same time can support the access of devices of different brands and device types, and through the automatic configuration and push mechanism, realizes seamless integration and management across brands and devices. The edge computing gateway can continuously monitor the device status and make dynamic adjustments according to the feedback, timely detect abnormal device behaviors, and ensure the stability and security of the system.
[0150] Figure 3 The structural schematic diagram of an embodiment of a configuration device for a smart home device of the present invention is shown. As Figure 3 shown, the device includes:
[0151] An information acquisition module 310, configured to acquire device information broadcast by a smart home device;
[0152] An information determination module 320, configured to determine whether the smart home device is accessing the smart home system for the first time according to the device information;
[0153] A security authentication module 330, configured to, if the smart home device accesses the smart home system for the first time, perform security authentication on the smart home device, and identify the device type and corresponding device functions of the smart home device based on the security authentication result and the device information;
[0154] A policy matching module 340, configured to match corresponding configuration policies from a configuration policy library based on the device type and device functions;
[0155] A parameter configuration module 350, configured to generate configuration parameters for the smart home device according to the configuration policies, and send the configuration parameters to the smart home device for parameter configuration.
[0156] In an alternative embodiment, the security authentication module 330 includes:
[0157] An information parsing sub-module, configured to parse the device identifier in the device information;
[0158] A type determination sub-module, configured to query a device type look-up table through the device identifier to determine the device type of the smart home device;
[0159] A function identification sub-module, configured to parse the device information based on the device type to identify the device functions of the smart home device.
[0160] In an alternative embodiment, the policy matching module 340 includes:
[0161] A policy search sub-module, configured to search for a candidate configuration policy set that matches the device type and device functions in the configuration policy library;
[0162] A policy determination sub-module, configured to determine the configuration policy that is most suitable for the smart home device based on the candidate configuration policy set.
[0163] In an alternative embodiment, the parameter configuration module 350 includes:
[0164] A policy parsing sub-module, configured to parse the configuration policy to extract configuration parameter items for the smart home device;
[0165] A parameter generation sub-module, configured to generate configuration parameter values according to the configuration parameter items;
[0166] An instruction generation sub-module, configured to generate a parameter configuration instruction based on the configuration parameter items and the corresponding configuration parameter values;
[0167] A parameter configuration sub-module, configured to send a parameter configuration instruction to a smart home device through a communication protocol, so that the smart home device performs parameter configuration according to the parameter configuration instruction.
[0168] In an alternative embodiment, the security authentication module 330 further includes:
[0169] A parameter acquisition sub-module, configured to acquire environmental parameters of the smart home device in the current working space during a target time period;
[0170] A space comparison sub-module, configured to compare the current working space with a target working space during a target time period to obtain a space comparison result;
[0171] An environment acquisition sub-module, configured to acquire target environmental parameters of the smart home device at a corresponding moment in the target working space if the space comparison result indicates that the current working space is the same as the target working space;
[0172] A parameter adjustment sub-module, configured to adjust the current configuration parameters of the smart home device based on the target environmental parameters.
[0173] In some alternative embodiments, the security authentication module 330 further includes:
[0174] A working space adjustment sub-module, configured to use the current working space as the target working space if the space comparison result indicates that the current working space is different from the target working space;
[0175] A target parameter determination sub-module, configured to use the adjusted space environmental parameters as the target space environmental parameters of the smart home device at a corresponding moment in the target working space based on the current configuration parameters and the received parameter adjustment instruction.
[0176] In some alternative embodiments, the parameter configuration module 350 is further configured to acquire the current firmware version of the smart home device; compare the current firmware version with the target firmware version to obtain a firmware comparison result; update the current firmware version based on the firmware comparison result, and update the configuration parameters of the smart home device based on the updated firmware version.
[0177] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding method embodiments described above, and will not be elaborated here.
[0178] Through the above device and its components, the technical solution provided by the embodiments of the present invention has the following advantages:
[0179] The configuration device of the smart home device according to the embodiment of the present invention obtains the device information broadcast by the smart home device, and determines whether the smart home device is newly connected to the smart home system according to the device information. If the smart home device is newly connected to the smart home system, security authentication is performed on the smart home device, and based on the security authentication result and the device information, the device type and the corresponding device functions of the smart home device are identified. By matching the corresponding configuration policy from the configuration policy library based on the device type and the device functions, configuration parameters for the smart home device are generated according to the configuration policy, and the configuration parameters are sent to the smart home device for parameter configuration, so as to ensure that the most suitable configuration parameters are provided for different types of smart home devices, thereby optimizing the performance of the device and the user experience.
[0180] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of an electronic device provided by an alternative embodiment of the present invention. As Figure 4 shown, the electronic device includes: one or more processors 410, a memory 420, and an interface for connecting each component, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common main board or installed in other ways as needed. The processor can process instructions executed within the electronic device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (such as a server array, a set of blade servers, or a multi-processor system). Figure 4 In
[0181] which, one processor 410 is taken as an example.
[0182] The memory 420 stores instructions executable by at least one processor 410, so that at least one processor 410 executes the method shown in the above embodiment.
[0183] The memory 420 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the electronic device presented by a kind of mini-program landing page, etc. In addition, the memory 420 may include a high-speed random access memory and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 420 may optionally include a memory remotely disposed relative to the processor 410, and these remote memories may be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a server cluster, a mobile communication network, and combinations thereof.
[0184] The memory 420 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive; the memory 420 may further include a combination of the above types of memories.
[0185] The electronic device further includes a communication interface 430 for communicating the electronic device with other devices or communication networks.
[0186] An embodiment of the present invention further provides a computer-readable storage medium storing at least one executable instruction. When the executable instruction runs on a configuration device of an electronic device / smart home device, the configuration device of the electronic device / smart home device is caused to execute the configuration method of the smart home device in any of the above method embodiments.
[0187] An embodiment of the present invention further provides a computer program product including computer instructions for causing a computer to execute the configuration method of the smart home device in the first aspect or any corresponding embodiment thereof above.
[0188] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. In addition, embodiments of the present invention are not directed to any particular programming language.
[0189] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that embodiments of the present invention may be practiced without these specific details. Similarly, in order to streamline the present invention and assist in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Among them, the claims following the specific implementation manners are hereby expressly incorporated into the specific implementation manners, and each claim itself serves as a separate embodiment of the present invention.
[0190] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from those of the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive.
[0191] It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim listing several devices, several of these devices can be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A configuration method for a smart home device, characterized in that: The method comprises: Get device information broadcast by smart home devices; Determining, based on the device information, whether the smart home device is connected to the smart home system for the first time; If the smart home device is connected to the smart home system for the first time, performing security authentication on the smart home device, and identifying the device type and corresponding device function of the smart home device based on the security authentication result and the device information; Based on the device type and the device function, matching a corresponding configuration policy from a configuration policy library; According to the configuration strategy, configuration parameters for the smart home device are generated, and the configuration parameters are sent to the smart home device for parameter configuration.
2. The method according to claim 1, characterized in that The identifying the device type and corresponding device function of the smart home device based on the device information includes: Parsing a device identifier in the device information; Querying a device type comparison table through the device identifier to determine the device type of the smart home device; The device information is parsed based on the device type to identify the device function of the smart home device.
3. The method according to claim 1, characterized in that The matching of the corresponding configuration policy from the configuration policy library based on the device type and the device function includes: Searching the configuration policy library for a candidate configuration policy set that matches the device type and the device function; Based on the candidate configuration strategy set, determine the configuration strategy that is most suitable for the smart home device.
4. The method according to claim 1, characterized in that: The step of generating configuration parameters for the smart home device according to the configuration strategy, and sending the configuration parameters to the smart home device for parameter configuration includes: Parsing the configuration strategy to extract configuration parameter items for the smart home device; A configuration parameter value generated according to the configuration parameter item; Generate a parameter configuration instruction based on the configuration parameter item and the corresponding configuration parameter value; The parameter configuration instruction is sent to the smart home device, so that the smart home device performs parameter configuration according to the parameter configuration instruction.
5. The method according to claim 1, characterized in that If the smart home device is not accessing the smart home system for the first time, the method further includes: Obtaining environmental parameters of the smart home device in the current working space within a target time period; Comparing the current workspace with the target workspace within the target time period to obtain a space comparison result; If the space comparison result indicates that the current workspace is the same as the target workspace, then obtaining the target environment parameters of the smart home device at the target workspace at the corresponding time; The current configuration parameters of the smart home device are adjusted based on the target environment parameters.
6. The method according to claim 5, characterized in that The method further comprises: If the spatial comparison result indicates that the current workspace is different from the target workspace, the current workspace is used as the target workspace; Based on the current configuration parameters and the received parameter adjustment instructions, the adjusted space environment parameters are used as the target space environment parameters of the smart home device in the target workspace at the corresponding moment.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining the current firmware version of the smart home device; Compare the current firmware version with the target firmware version to obtain a firmware comparison result; The current firmware version is updated based on the firmware comparison result, and the configuration parameters of the smart home device are updated based on the updated firmware version.
8. A configuration device for smart home equipment, characterized in that: The device comprises: An information acquisition module is used to acquire device information broadcasted by smart home devices; An information determination module, used to determine whether the smart home device is connected to the smart home system for the first time according to the device information; A security authentication module, configured to perform security authentication on the smart home device if the smart home device is connected to the smart home system for the first time, and identify the device type and corresponding device function of the smart home device based on the security authentication result and the device information; A policy matching module, used to match a corresponding configuration policy from a configuration policy library based on the device type and the device function; The parameter configuration module is used to generate configuration parameters for the smart home device according to the configuration strategy, and send the configuration parameters to the smart home device for parameter configuration.
9. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the configuration method of the smart home device as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the electronic device, the electronic device executes the operation of the configuration method of the smart home device according to any one of claims 1 to 7.