Network distribution method and device of equipment, electronic equipment and storage medium
By combining environmental data, voice commands and network parameters to prioritize smart home devices, the problems of inefficient distribution networks and unreasonable resource allocation are solved, rapid response and personalized configuration are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411627951.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-14
AI Technical Summary
The distribution network efficiency of smart home devices, unreasonable allocation of network resources, and the inability to achieve personalized configuration.
By obtaining the environmental data collected by the sensor and the voice commands entered by the user, combining the network parameters of smart home devices in the home network, the equipment is assigned priority, the distribution network priority is determined, and the home network is connected in turn in response to the adaptive distribution network command.
It improves the connection speed and response time of smart home devices, ensures the reasonable allocation of network resources, realizes personalized configuration, and improves user experience.
Smart Images

Figure CN119629040A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment management, and in particular to a network distribution method for equipment, a network distribution device for equipment, an electronic device and a computer-readable storage medium. Background Art
[0002] With the continuous development of smart home technology, more and more smart devices are entering the home environment. However, in the smart home system, how to efficiently connect numerous devices to the network has become a key issue. In related technologies, the commonly used network connection method is to connect the devices in a fixed order or manually by the user, which lacks flexibility and intelligence. At the same time, when using smart homes, users not only hope that the devices can respond quickly, but also hope to be able to flexibly perform personalized configurations. In addition, in the actual home network environment, network latency problems often affect the connection speed and response time of the device, giving users a bad experience. Summary of the invention
[0003] The embodiments of the present invention provide a network configuration method, an apparatus, an electronic device, and a computer-readable storage medium to solve or partially solve the problems of low network configuration efficiency, unreasonable network resource allocation, and inability to achieve personalized configuration of smart home devices.
[0004] The embodiment of the present invention discloses a network distribution method for a device, which is applied to a control device in a smart home system. The smart home system also includes smart home devices and sensors. The method includes:
[0005] Acquiring environmental data collected by the sensor and voice commands input by the user;
[0006] Obtaining network parameters corresponding to the smart home device in the home network;
[0007] Assigning priorities to the smart home devices according to the voice instructions and / or the environmental data, and the network parameters, and determining the network configuration priorities corresponding to the smart home devices;
[0008] In response to detecting the adaptive network configuration instruction for the smart home device, each of the smart home devices is connected to the home network in sequence according to the network configuration priority.
[0009] In some feasible embodiments, in response to detecting the adaptive network configuration instruction for the smart home device, sequentially connecting each of the smart home devices to the home network according to the network configuration priority includes:
[0010] Acquire the command type corresponding to the voice command, the network status corresponding to the home network, and the device status corresponding to the smart home device;
[0011] If the instruction type meets the first preset condition, or the network status meets the second preset condition, or the device status meets the third preset condition, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0012] In some feasible embodiments, if the instruction type satisfies the first preset condition, then connecting each of the smart home devices to the home network in sequence according to the network configuration priority includes:
[0013] If the command type indicates that the voice command is an emergency command, each of the smart home devices is connected to the home network in sequence according to the network configuration priority.
[0014] In some feasible embodiments, if the network status satisfies the second preset condition, then connecting each of the smart home devices to the home network in sequence according to the network configuration priority includes:
[0015] If the network status indicates that a network upgrade or network update has occurred in the home network, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0016] In some feasible embodiments, if the device status satisfies the third preset condition, then connecting each of the smart home devices to the home network in sequence according to the network configuration priority includes:
[0017] If the device status indicates that the smart home device is reconnected to the home network after failure recovery, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0018] In some feasible embodiments, the assigning priorities to the smart home devices according to the voice command and / or the environmental data, and the network parameters, and determining the network configuration priorities corresponding to the smart home devices, includes:
[0019] Determining a target smart home device corresponding to the voice command and / or the environmental data;
[0020] The target smart home device is weighted by using the voice command to obtain a target voice command weight value of the target smart home device, and / or the target smart home device is weighted by using the environmental data to obtain a target environment weight value of the target smart home device;
[0021] According to the network parameters, weights are assigned to the target smart home devices to determine target network weight values corresponding to the target smart home devices;
[0022] The target voice command weight value and / or the target environment weight value and the target network weight value are used for calculation to obtain the network configuration priority corresponding to the target smart home device.
[0023] In some feasible embodiments, the target smart home device includes a first smart home device corresponding to the voice command, and the step of using the voice command to weight the target smart home device to obtain a target voice command weight value of the target smart home device includes:
[0024] Recognize the voice command and obtain the command type corresponding to the voice command;
[0025] If the command type indicates that the voice command is an emergency command, a target voice command weight value corresponding to the emergency command is configured for the first smart home device, and the target voice command weight value is higher than the voice command weight values corresponding to other smart home devices.
[0026] In some feasible embodiments, the target smart home device includes a second smart home device corresponding to the environmental data, and the step of using the environmental data to weight the target smart home device to obtain a target environment weight value of the target smart home device includes:
[0027] If the environmental data meets a preset condition, a target environmental weight value corresponding to the environmental data is configured for the second smart home device, and the target environmental weight value is higher than environmental weight values corresponding to other smart home devices.
[0028] In some feasible embodiments, the environmental data includes at least one of a temperature value, a light intensity, a humidity value, a carbon dioxide concentration, and an organic compound concentration, and the smart home device includes at least a temperature control device, a humidity adjustment device, an air quality adjustment device, and a smart curtain, and if the environmental data meets a preset condition, configuring a target environment weight value corresponding to the environmental data for the second smart home device includes:
[0029] If the temperature value is greater than or equal to a first preset temperature threshold, configuring a first environment weight value corresponding to the temperature value for the temperature control device;
[0030] If the temperature value is less than a second preset temperature threshold, configuring a second environment weight value corresponding to the temperature value for the temperature control device, and the first preset temperature threshold is greater than the second preset temperature threshold;
[0031] If the humidity value is greater than or equal to a first preset humidity threshold, configuring a third environment weight value corresponding to the temperature value for the humidity adjustment device;
[0032] If the humidity value is less than a second preset humidity threshold, configuring a fourth environment weight value corresponding to the temperature value for the humidity adjustment device, and the first preset humidity threshold is greater than the second preset humidity threshold;
[0033] If the light intensity is greater than or equal to a first preset light threshold, a fourth environment weight value corresponding to the temperature value is configured for the smart curtain;
[0034] If the light intensity is less than the second preset light threshold, a fifth environment weight value corresponding to the temperature value is configured for the smart curtain, and the first preset light threshold is greater than the second preset light threshold;
[0035] If the carbon dioxide concentration is greater than or equal to a first preset concentration threshold, and / or the organic compound concentration is greater than or equal to a second preset concentration threshold, a sixth environmental weight value corresponding to the carbon dioxide concentration and / or the organic compound concentration is configured for the air quality control device.
[0036] In some feasible embodiments, the target smart home device includes a third smart home device corresponding to the voice command and the environmental data, and the step of using the voice command to weight the target smart home device to obtain a target voice command weight value of the target smart home device, and using the environmental data to weight the target smart home device to obtain a target environment weight value of the target smart home device includes:
[0037] Recognize the voice command and obtain the command type corresponding to the voice command;
[0038] If the command type indicates that the voice command is an emergency command, configuring a first voice command weight value corresponding to the emergency command for the third smart home device;
[0039] If the command type indicates that the voice command is a regular command, a second voice command weight value corresponding to the emergency command is configured for the third smart home device, and the first voice command weight value is greater than the second voice command weight value;
[0040] If the environmental data meets a preset condition, configuring a first environmental weight value corresponding to the environmental data for the third smart home device;
[0041] If the environmental data does not meet the preset condition, a second environmental weight value corresponding to the environmental data is configured for the third smart home device, and the first environmental weight value is greater than the second environmental weight value.
[0042] In some feasible embodiments, the network parameter includes a network delay corresponding to the smart home device, and the weighting of the target smart home device is assigned according to the network parameter to determine a target network weight value corresponding to the target smart home device, including:
[0043] Obtaining a current network weight value corresponding to the target smart home device;
[0044] If the network delay is less than or equal to a preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
[0045] In some feasible embodiments, the weighting of the target smart home device according to the network parameter to determine the target network weight value corresponding to the target smart home device further includes:
[0046] If the target smart home device accesses the home network for the first time, sending a test data packet to the target smart home device and obtaining a round trip time corresponding to the test data packet;
[0047] determining a target network delay corresponding to the round trip time;
[0048] If the target network delay is less than or equal to the preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
[0049] In some feasible embodiments, it also includes:
[0050] Continuously detecting the current network delay corresponding to the target smart home device;
[0051] If the current network delay corresponding to the target smart home device is less than the preset network delay threshold, the current network weight value of the target smart home device is increased according to a preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device, or the current network weight value is adjusted to a preset network weight value, and the preset network weight value is the network weight value corresponding to the target smart home device when no network delay occurs.
[0052] The embodiment of the present invention further discloses a network distribution device for equipment, which is applied to a control device in a smart home system. The smart home system also includes smart home equipment and sensors. The device includes:
[0053] A data acquisition module, used to acquire environmental data collected by the sensor and voice commands input by the user;
[0054] A network parameter acquisition module, used to acquire the network parameters corresponding to the smart home device in the home network;
[0055] A priority determination module, configured to assign priorities to the smart home devices according to the voice instructions and / or the environmental data, and the network parameters, and determine the network configuration priorities corresponding to the smart home devices;
[0056] The network configuration module is used to connect each of the smart home devices to the home network in sequence according to the network configuration priority in response to detecting the adaptive network configuration instruction for the smart home device.
[0057] In some feasible embodiments, the network distribution module is specifically used for:
[0058] Acquire the command type corresponding to the voice command, the network status corresponding to the home network, and the device status corresponding to the smart home device;
[0059] If the instruction type meets the first preset condition, or the network status meets the second preset condition, or the device status meets the third preset condition, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0060] In some feasible embodiments, the network distribution module is specifically used for:
[0061] If the command type indicates that the voice command is an emergency command, each of the smart home devices is connected to the home network in sequence according to the network configuration priority.
[0062] In some feasible embodiments, the network distribution module is specifically used for:
[0063] If the network status indicates that a network upgrade or network update has occurred in the home network, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0064] In some feasible embodiments, the network distribution module is specifically used for:
[0065] If the device status indicates that the smart home device is reconnected to the home network after failure recovery, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0066] In some feasible embodiments, the priority determination module is specifically used to:
[0067] Determining a target smart home device corresponding to the voice command and / or the environmental data;
[0068] The target smart home device is weighted by using the voice command to obtain a target voice command weight value of the target smart home device, and / or the target smart home device is weighted by using the environmental data to obtain a target environment weight value of the target smart home device;
[0069] According to the network parameters, weights are assigned to the target smart home devices to determine target network weight values corresponding to the target smart home devices;
[0070] The target voice command weight value and / or the target environment weight value and the target network weight value are used for calculation to obtain the network configuration priority corresponding to the target smart home device.
[0071] In some feasible embodiments, the target smart home device includes a first smart home device corresponding to the voice command, and the priority determination module is specifically used to:
[0072] Recognize the voice command and obtain the command type corresponding to the voice command;
[0073] If the command type indicates that the voice command is an emergency command, a target voice command weight value corresponding to the emergency command is configured for the first smart home device, and the target voice command weight value is higher than the voice command weight values corresponding to other smart home devices.
[0074] In some feasible embodiments, the target smart home device includes a second smart home device corresponding to the environmental data, and the priority determination module is specifically configured to:
[0075] If the environmental data meets a preset condition, a target environmental weight value corresponding to the environmental data is configured for the second smart home device, and the target environmental weight value is higher than environmental weight values corresponding to other smart home devices.
[0076] In some feasible embodiments, the environmental data includes at least one of a temperature value, a light intensity, a humidity value, a carbon dioxide concentration, and an organic compound concentration, the smart home device includes at least a temperature control device, a humidity control device, an air quality control device, and a smart curtain, and the priority determination module is specifically used to:
[0077] If the temperature value is greater than or equal to a first preset temperature threshold, configuring a first environment weight value corresponding to the temperature value for the temperature control device;
[0078] If the temperature value is less than a second preset temperature threshold, configuring a second environment weight value corresponding to the temperature value for the temperature control device, and the first preset temperature threshold is greater than the second preset temperature threshold;
[0079] If the humidity value is greater than or equal to a first preset humidity threshold, configuring a third environment weight value corresponding to the temperature value for the humidity adjustment device;
[0080] If the humidity value is less than a second preset humidity threshold, configuring a fourth environment weight value corresponding to the temperature value for the humidity adjustment device, and the first preset humidity threshold is greater than the second preset humidity threshold;
[0081] If the light intensity is greater than or equal to a first preset light threshold, a fourth environment weight value corresponding to the temperature value is configured for the smart curtain;
[0082] If the light intensity is less than the second preset light threshold, a fifth environment weight value corresponding to the temperature value is configured for the smart curtain, and the first preset light threshold is greater than the second preset light threshold;
[0083] If the carbon dioxide concentration is greater than or equal to a first preset concentration threshold, and / or the organic compound concentration is greater than or equal to a second preset concentration threshold, a sixth environmental weight value corresponding to the carbon dioxide concentration and / or the organic compound concentration is configured for the air quality control device.
[0084] In some feasible embodiments, the target smart home device includes a third smart home device corresponding to the voice command and the environmental data, and the priority determination module is specifically used to:
[0085] Recognize the voice command and obtain the command type corresponding to the voice command;
[0086] If the command type indicates that the voice command is an emergency command, configuring a first voice command weight value corresponding to the emergency command for the third smart home device;
[0087] If the command type indicates that the voice command is a regular command, a second voice command weight value corresponding to the emergency command is configured for the third smart home device, and the first voice command weight value is greater than the second voice command weight value;
[0088] If the environmental data meets a preset condition, configuring a first environmental weight value corresponding to the environmental data for the third smart home device;
[0089] If the environmental data does not meet the preset condition, a second environmental weight value corresponding to the environmental data is configured for the third smart home device, and the first environmental weight value is greater than the second environmental weight value.
[0090] In some feasible embodiments, the network parameter includes a network delay corresponding to the smart home device, and the priority determination module is specifically used to:
[0091] Obtaining a current network weight value corresponding to the target smart home device;
[0092] If the network delay is less than or equal to a preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
[0093] In some feasible embodiments, the priority determination module is further configured to:
[0094] If the target smart home device accesses the home network for the first time, sending a test data packet to the target smart home device and obtaining a round trip time corresponding to the test data packet;
[0095] determining a target network delay corresponding to the round trip time;
[0096] If the target network delay is less than or equal to the preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
[0097] In some feasible embodiments, it also includes:
[0098] A network delay detection module, used to continuously detect the current network delay corresponding to the target smart home device;
[0099] The weight adjustment module is used to increase the current network weight value of the target smart home device according to a preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device if the current network delay corresponding to the target smart home device is less than the preset network delay threshold, or to adjust the current network weight value to a preset network weight value, wherein the preset network weight value is the network weight value corresponding to the target smart home device when no network delay occurs.
[0100] 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;
[0101] The memory is used to store computer programs;
[0102] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0103] 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.
[0104] The embodiments of the present invention include the following advantages:
[0105] In an embodiment of the present invention, a control device is applied to a smart home system, and the smart home system also includes smart home devices and sensors. The control device can obtain environmental data collected by the sensor and voice commands input by the user, and then obtain the network parameters corresponding to the smart home devices in the home network. Then, priority is assigned to the smart home devices according to the voice commands and / or environmental data, and the network parameters, and the network configuration priority corresponding to the smart home devices is determined. By combining voice commands, environmental data, and network parameters, a more comprehensive and accurate basis is provided for determining the network configuration priority of the smart home devices. Therefore, during the network configuration process, the control device can respond to the detection of an adaptive network configuration instruction for the smart home device, and connect each smart home device to the home network in turn according to the network configuration priority. The network configuration is performed for each smart home device according to the network configuration priority. While achieving adaptive network configuration, the overall connection speed and response time of the smart home devices can be guaranteed, and the rationality of network resource allocation can be ensured, so that the smart home system can adapt to different usage scenarios and demand changes more flexibly. BRIEF DESCRIPTION OF THE DRAWINGS
[0106] Figure 1 is a flowchart of a method for network configuration of a device provided in an embodiment of the present invention;
[0107] Figure 2 It is a schematic diagram of the process of equipment network configuration provided in an embodiment of the present invention;
[0108] Figure 3 is a structural block diagram of a network distribution device of a device provided in an embodiment of the present invention;
[0109] Figure 4 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0110] 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.
[0111] As an example, the commonly used network configuration method is to configure the devices in a fixed order or manually by the user, which lacks flexibility and intelligence. At the same time, when using smart homes, users not only want the devices to respond quickly, but also want to be able to flexibly perform personalized configurations. In addition, in a home network environment, network latency often affects the connection speed and response time of the device, giving users a bad experience.
[0112] In this regard, in the present invention, a control device is applied to a smart home system, and the smart home system also includes smart home devices and sensors. The control device can obtain environmental data collected by the sensor and voice commands input by the user, and then obtain the network parameters corresponding to the smart home devices in the home network. Then, the smart home devices are prioritized according to the voice commands and / or environmental data, and the network parameters, and the network configuration priority corresponding to the smart home devices is determined. By combining voice commands, environmental data, and network parameters, a more comprehensive and accurate basis is provided for determining the network configuration priority of smart home devices. Therefore, during the network configuration process, the control device can respond to the detection of an adaptive network configuration instruction for the smart home device, and connect each smart home device to the home network in turn according to the network configuration priority. The network configuration is performed for each smart home device according to the network configuration priority. While achieving adaptive network configuration, the overall connection speed and response time of the smart home devices can be guaranteed, and the rationality of network resource allocation can be ensured, so that the smart home system can adapt to different usage scenarios and demand changes more flexibly.
[0113] Reference Figure 1 , shows a flow chart of the steps of a network configuration method for a device provided in an embodiment of the present invention, which is applied to a control device in a smart home system, wherein the smart home system also includes smart home devices and sensors, and specifically may include the following steps:
[0114] Step 101, acquiring environmental data collected by the sensor and a voice command input by a user;
[0115] Optionally, the smart home system may include control devices, smart home devices, and corresponding sensors, etc. The control device is responsible for managing the smart home devices, such as configuring the network for the smart home devices, controlling the smart home devices to perform corresponding device operations, and receiving environmental data sent by sensors, etc. In practice, the smart home system can receive user voice commands through the control device, and in combination with the environmental data collected by the sensor, perform network connection and management of various smart home devices based on a priority adaptive network configuration algorithm, so as to respond to user needs and environmental changes more intelligently, and provide users with convenient and efficient smart home services.
[0116] Among them, in the process of managing and controlling smart home devices, sensors can collect environmental data corresponding to the environment in which they are located, and can also obtain voice commands input by users. For example, sensors may include temperature sensors, light sensors, humidity sensors, and air quality detection sensors, etc. Correspondingly, environmental data may include at least one of temperature values, light intensity, humidity values, carbon dioxide concentrations, and organic compound concentrations. By collecting environmental data, the state of the current home environment can be reflected based on the environmental data. For example, excessively high indoor temperature may mean that the air conditioner needs to be connected first for adjustment. At the same time, continuous monitoring of changes in environmental data is conducive to real-time adjustment of the network distribution priority of smart home devices.
[0117] In addition, the control device can also collect the user's voice commands through microphones and other sound pickup devices, so as to convert the voice commands input by the user into corresponding text, and perform semantic recognition and emotion recognition on the text, so as to determine the accent, speaking speed, language expression method and expression content corresponding to the voice commands input by the user, and then accurately analyze the user's intentions, so as to configure the smart home devices according to the user's intentions.
[0118] Step 102, obtaining the network parameters corresponding to the smart home device in the home network;
[0119] During the network configuration process for smart home devices, the control device can also obtain the corresponding network parameters of the smart home devices in the home network, so as to consider the impact of the network on the smart home devices during the network configuration process, providing a more comprehensive and accurate basis for determining the network configuration priority of smart home devices.
[0120] Step 103, assigning priorities to the smart home devices according to the voice command and / or the environmental data, and the network parameters, and determining the network configuration priorities corresponding to the smart home devices;
[0121] In an embodiment of the present invention, after the voice instructions and / or environmental data, and network parameters are determined, priorities can be assigned to smart home devices according to the voice instructions and / or environmental data, and network parameters, and the network configuration priority corresponding to the smart home devices can be determined. By combining voice instructions, environmental data, and network parameters, a more comprehensive and accurate basis is provided for determining the network configuration priority of smart home devices. Among them, different network configuration priorities represent the network configuration order, bandwidth allocation, etc. corresponding to different smart home devices in the network configuration process. For example, assuming that the smart home system includes smart home devices ①, smart home devices ②, smart home devices ③, etc., the control device determines the network configuration priorities corresponding to smart home devices ①, smart home devices ②, smart home devices ③ based on corresponding data: smart home device ②> smart home device ①> smart home device ③. Then, when configuring and connecting each smart home device, the control device can give priority to connecting smart home device ② to the home network, and then connect smart home device ① to the home network when ensuring that smart home device ② has been connected to the home network, and connect smart home device ③ to the home network when ensuring that both smart home device ② and smart home device ① have been connected to the home network. In this way, different smart home devices are classified according to the network configuration priority, so that the smart home devices that are "just needed by users" can be quickly connected to the home network and respond through the network configuration priority, so as to ensure that user needs are met quickly and effectively.
[0122] In some feasible implementations, the control device may first determine the target smart home device corresponding to the voice command and / or environmental data, and then use the voice command to assign weights to the target smart home device to obtain the target voice command weight value of the target smart home device, and / or use the environmental data to assign weights to the target smart home device to obtain the target environment weight value of the target smart home device, and assign weights to the target smart home device according to the network parameters to determine the target network weight value corresponding to the target smart home device, and then use the target voice command weight value and / or the target environment weight value and the target network weight value for calculation to obtain the network distribution priority corresponding to the target smart home device. By combining voice commands, environmental data, network parameters, etc., a more comprehensive and accurate basis is provided for determining the network distribution priority of smart home devices, so that different smart home devices can be classified by network distribution priority, so that the network distribution priority can ensure that the smart home devices that are "just needed by users" can quickly access the home network and respond, thereby ensuring that user needs are met quickly and effectively.
[0123] It should be noted that in the process of calculating the network configuration priority, the user does not necessarily input the corresponding voice command, and the environmental data collected by the sensor does not necessarily trigger the network configuration of the smart home device. Therefore, in the process of configuring the network for the smart home device, the control device can determine the network configuration priority corresponding to the smart home device based on voice commands and network parameters, environmental data and network parameters, and voice commands and environmental data and network parameters. Through multi-dimensional data detection, the network configuration of the smart home device can flexibly adjust the network configuration strategy according to the actual situation to ensure that user needs are met quickly and effectively.
[0124] For voice commands, assuming that the voice command input by the user is for the first smart home device, the control device can recognize the voice command and obtain the command type corresponding to the voice command. If the command type indicates that the voice command is an emergency command, the first smart home device is configured with a target voice command weight value corresponding to the emergency command. The target voice command weight value is higher than the voice command weight values corresponding to other smart home devices.
[0125] Among them, voice commands may include emergency commands and regular commands. The control device can analyze the user's emotions by analyzing the accent, speech speed, and language expression corresponding to the voice command input by the user, and determine the command type to which the voice command belongs based on the emotion analysis results. When the voice command is determined to be an emergency command, it indicates that the user's current control demand is very strong. Then, the first smart home device can be configured with a target voice command weight value corresponding to the emergency command, and the target voice command weight value is made higher than the voice command weight values corresponding to other smart home devices, thereby ensuring that the first smart home device can be configured with a network first to meet the user's current urgent control needs.
[0126] Optionally, the control device can analyze the user's command through a corresponding emotion analysis model to determine the command type corresponding to the voice command. For example, the corresponding emotion analysis model can be pre-trained by collecting the voice commands input by the user, ensuring that the data set covers a variety of accents, speaking speeds and emotional states, and pre-processing the voice commands (such as noise reduction, framing, feature extraction, etc.) to obtain corresponding training data. Then, the emotion analysis model can be trained through the processes of accent analysis, speaking speed analysis, and language expression analysis. For example, for accent analysis, an accent recognition model can be trained by using machine learning or deep learning models, and accents can be classified into different types by extracting features related to accents, such as phoneme pronunciation, pitch changes, etc.; for speech rate analysis, the number of frames per second can be calculated as a preliminary indicator of speech rate, and then the syllables in the speech can be identified, and the number of syllables per second can be calculated, so that the speech rate can be classified into fast, medium, slow, etc. by syllable rate; for language expression analysis, an emotional dictionary can be used to identify emotional words in the speech, calculate the emotional intensity of emotional words, and analyze the pitch changes of the speech signal, identify the ups and downs of the tone, and extract rhythmic features, etc. After extracting the corresponding features of the corresponding accent, speech rate, language expression, etc. based on the above process, the various features can be fused to form a comprehensive feature vector, and then the emotional analysis model can be further trained using a classification algorithm (such as random forest, deep learning model) so that the corresponding emotions of the user can be identified through the emotional analysis model, and then the voice command can be judged as an emergency command or a regular command based on the identified emotions.
[0127] In addition, different weight values can be set for voice command weight values based on the command type, for example, a regular command corresponds to a first weight value, an emergency command corresponds to a second weight value, the second weight value is greater than the first weight value, etc. In practical applications, assuming that the voice command input by the user is "I'm so hot, turn on the air conditioner for me", it can be determined through recognition that the voice command is an emergency command, then the corresponding target voice command weight value, such as 0.9, can be configured for the voice command to improve the response priority of the voice command; accordingly, assuming that the voice command input by the user is "turn on the air conditioner", it can be determined through recognition that the voice command is a regular command, then the corresponding target voice command weight value, such as 0.5, can be configured for the voice command, so as to identify the command type corresponding to the voice command, analyze the user's control intention and the urgency of the control demand, and determine the weight value corresponding to the voice command, so as to ensure that smart home devices can be configured with the network first to meet the user's current urgent control needs.
[0128] For environmental data, assuming that the environmental data corresponds to a second smart home device, the control device can determine whether the environmental data meets the corresponding preset conditions. If the environmental data meets the preset conditions, a target environmental weight value corresponding to the environmental data is configured for the second smart home device. The target environmental weight value is higher than the environmental weight values corresponding to other smart home devices.
[0129] In a specific implementation, the environmental data includes at least one of temperature value, light intensity, humidity value, carbon dioxide concentration and organic compound concentration, and the smart home device includes at least temperature control device, humidity adjustment device, air quality adjustment device and smart curtain. The control device compares the temperature value, light intensity, humidity value, carbon dioxide concentration and organic compound concentration with the corresponding threshold conditions to determine whether the environmental data meets the corresponding conditions. Specifically, if the temperature value is greater than or equal to the first preset temperature threshold, the temperature control device is configured with a first environmental weight value corresponding to the temperature value; if the temperature value is less than the second preset temperature threshold, the temperature control device is configured with a second environmental weight value corresponding to the temperature value, and the first preset temperature threshold is greater than the second preset temperature threshold; if the humidity value is greater than or equal to the first preset humidity threshold, The third environment weight value corresponding to the temperature value is configured for the humidity adjustment device; if the humidity value is less than the second preset humidity threshold, the fourth environment weight value corresponding to the temperature value is configured for the humidity adjustment device, and the first preset humidity threshold is greater than the second preset humidity threshold; if the light intensity is greater than or equal to the first preset light threshold, the fourth environment weight value corresponding to the temperature value is configured for the smart curtain; if the light intensity is less than the second preset light threshold, the fifth environment weight value corresponding to the temperature value is configured for the smart curtain, and the first preset light threshold is greater than the second preset light threshold; if the carbon dioxide concentration is greater than or equal to the first preset concentration threshold, and / or the organic compound concentration is greater than or equal to the second preset concentration threshold, the sixth environment weight value corresponding to the carbon dioxide concentration and / or the organic compound concentration is configured for the air quality adjustment device.
[0130] It should be noted that, referring to the voice command weight value, when the environmental data meets the preset conditions, a corresponding first weight value can be configured for the environmental data; when the environmental data does not meet the preset conditions, a corresponding second weight value can be configured for the environmental data, and the first weight value is greater than the second weight value. Therefore, when the environmental data meets the conditions, the control of the corresponding smart home device can be triggered so that the corresponding device operation can be performed through the corresponding smart home device.
[0131] In one example, it is assumed that the environmental data includes at least:
[0132] Temperature value: 25℃;
[0133] Light intensity: 1200 lux;
[0134] Humidity value: 60%;
[0135] Carbon dioxide concentration: 1000ppm;
[0136] Organic compound concentration: 0.5ppm.
[0137] Meanwhile, the corresponding preset thresholds may include:
[0138] The first preset temperature threshold: 24°C;
[0139] Second preset temperature threshold: 20°C;
[0140] First preset humidity threshold: 55%;
[0141] Second preset humidity threshold: 40%;
[0142] The first preset light threshold: 1000 lux;
[0143] The second preset light threshold: 800 lux;
[0144] The first preset carbon dioxide concentration threshold: 800ppm;
[0145] The second preset organic compound concentration threshold is 0.3 ppm.
[0146] Based on the above data, the control device can compare the corresponding environmental data with the preset threshold value to determine the environmental weight value corresponding to the environmental data, specifically:
[0147] For the temperature control device: temperature value: 25°C, 25°C ≥ 24°C (first preset temperature threshold), the control device can be configured with a first environmental weight value, such as 1.0.
[0148] For the humidity adjustment device: humidity value: 60%, 60% ≥ 55% (first preset humidity threshold), the control device can configure a second environment weight value, such as 0.8.
[0149] For smart curtains: light intensity: 1200lux, 1200lux≥1000lux (first preset light threshold), the control device can configure a third environment weight value, such as 1.2.
[0150] For air quality control equipment: carbon dioxide concentration: 1000ppm, 1000ppm≥800ppm (first preset carbon dioxide concentration threshold); and, organic compound concentration: 0.5ppm, 0.5ppm≥0.3ppm (second preset organic compound concentration threshold), the control device can configure the corresponding fourth environmental weight value, such as 1.5, etc., so that the control device can adjust the environmental weight value corresponding to the smart home device according to the current environmental data, so as to determine the network distribution priority of the smart home device based on the environmental weight value.
[0151] In addition, assuming that the voice command and the environmental data correspond to the same third smart home device, the control device can first identify the voice command and obtain the command type corresponding to the voice command. If the command type indicates that the voice command is an emergency command, the third smart home device is configured with a first voice command weight value corresponding to the emergency command; if the command type indicates that the voice command is a regular command, the third smart home device is configured with a second voice command weight value corresponding to the emergency command, and the first voice command weight value is greater than the second voice command weight value. At the same time, the control device can also analyze the environmental data. If the environmental data meets the preset conditions, the third smart home device is configured with a first environmental weight value corresponding to the environmental data; if the environmental data does not meet the preset conditions, the third smart home device is configured with a second environmental weight value corresponding to the environmental data, and the first environmental weight value is greater than the second environmental weight value.
[0152] Through the above process, voice commands and environmental perception data can be combined to provide a more comprehensive and accurate basis for determining the priority of network distribution for smart home devices. By analyzing the user's voice commands, the user's needs and intentions can be directly understood; at the same time, combined with environmental perception data, the user's potential needs can be further inferred, improving the intelligence of the network distribution.
[0153] Furthermore, after determining the network configuration priority corresponding to the smart home device, the control device can also obtain the network parameters corresponding to the smart home device so as to calculate the network configuration priority corresponding to the smart home device based on the network parameters, environmental weight values and voice command weight values.
[0154] Wherein, the network parameters include the network delay corresponding to the smart home device, and the control device can first obtain the current network weight value corresponding to the target smart home device. If the network delay is less than or equal to the preset network delay threshold, the current network weight value is reduced according to the preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device. For example, assuming that the current network weight value corresponding to the target smart home device is 1.0, and the current network delay of the target smart home device is 100ms, that is, 50ms (preset network delay threshold) ≤ 100ms, then the current network weight value can be reduced according to the corresponding adjustment ratio. If the preset adjustment ratio is 0.5, the target network weight value: current network weight value × preset adjustment ratio, that is, target network weight value = 1.0 × 0.5 = 0.5, so that when determining the network distribution priority of the smart home device, the network delay factor is fully considered, so that in the network distribution process, the device with better network condition can be connected first, the overall connection speed and response time are improved, and the failure of some devices to respond in time due to network delay is avoided, thereby improving the user experience.
[0155] In addition, if the target smart home device is connected to the home network for the first time, a test data packet is sent to the target smart home device, and the round-trip time corresponding to the test data packet is obtained, and then the target network delay corresponding to the round-trip time is determined. If the target network delay is less than or equal to the preset network delay threshold, the current network weight value is reduced according to the preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device.
[0156] It should be noted that in the above process, the control device can use the network monitoring tool to continuously monitor the status of the entire home network, including indicators such as network delay and bandwidth utilization in the area where each device is located. At the same time, for devices newly added to the network, network delay tests can be performed, for example, sending test data packets and measuring the round-trip time to determine the network delay of the device. When determining the network configuration priority of smart home devices, if the network area where a device is located has a high delay, the priority of the device can be appropriately lowered. The specific adjustment method can be based on the corresponding method, such as: setting a network delay threshold, and when the network delay of the device exceeds the threshold, its priority is reduced according to a certain proportion. For example, if the network delay in the area where the smart speaker is located is large, and at this time there are other devices such as smart lights and smart curtains with relatively low priorities but small network delays, then the devices with small network delays can be connected to the network first. And for some devices with high requirements for network delay, such as video surveillance equipment, if the network delay is too high, it may affect its performance. At this time, its priority can be greatly reduced until the network condition improves.
[0157] After the voice command weight value, environment weight value and network weight value are determined, the weighted summation and other calculation methods can be used for calculation, and the network distribution priority corresponding to each smart home device can be determined by sorting the final value of each smart home device. For example, the priority score of the device can be calculated using the following formula: priority score = environment perception weight × environment factor score + voice command weight × voice command score + network delay weight × network delay score. Among them, the environment factor score, voice command score and network delay score can be quantified and standardized according to the specific situation.
[0158] In one example, assuming the weight value calculated is:
[0159] Environmental perception weight: 0.4
[0160] Voice command weight: 0.3
[0161] Network delay weight: 0.3
[0162] For two smart home devices A and B, their scores on different factors are as follows:
[0163] Device A:
[0164] Environmental factors score: 80
[0165] Voice command score: 70
[0166] Network latency score: 60
[0167] Device B:
[0168] Environmental factors score: 70
[0169] Voice command score: 80
[0170] Network latency score: 50
[0171] According to the formula, priority score = environmental perception weight × environmental factor score + voice command weight × voice command score + network delay weight × network delay score
[0172] Furthermore, for each device's priority score:
[0173] For device A: priority score = 0.4 × 80 + 0.3 × 70 + 0.3 × 60 = 71
[0174] For device B: priority score = 0.4 × 70 + 0.3 × 80 + 0.3 × 50 = 67
[0175] According to the calculation results, the priority score of device A is 71, and the priority score of device B is 67. Therefore, the network configuration priority of device A is higher than that of device B.
[0176] Through the above process, the control device can sort the devices according to their priority scores and determine the network configuration priority of each smart home device. By combining voice commands with environmental perception data, a more comprehensive and accurate basis is provided for determining the network configuration priority of smart home devices. By analyzing the user's voice commands, the user's needs and intentions can be directly understood; at the same time, combined with environmental perception data, the user's potential needs can be further inferred, the intelligence of the network configuration is improved, and the network delay factor is fully considered, so that in the network configuration process, devices with better network conditions can be connected first, improving the overall connection speed and response time, avoiding the failure of some devices to respond in time due to network delays, and improving the user experience.
[0177] Step 104: in response to detecting the adaptive network configuration instruction for the smart home device, connecting each of the smart home devices to the home network in sequence according to the network configuration priority.
[0178] In an embodiment of the present invention, based on the determined network configuration priority, when the smart home device needs to be networked, the control device can respond to detecting an adaptive network configuration instruction for the smart home device, and connect each smart home device to the home network in sequence according to the network configuration priority. While achieving adaptive network configuration, the overall connection speed and response time of the smart home device can be guaranteed, and the rationality of network resource allocation can be ensured, so that the smart home system can adapt more flexibly to different usage scenarios and changes in demand.
[0179] In a feasible implementation method, the control device can obtain the command type corresponding to the voice command, the network status corresponding to the home network, and the device status corresponding to the smart home device. If the command type meets the first preset condition, or the network status meets the second preset condition, or the device status meets the third preset condition, then each smart home device will be connected to the home network in sequence according to the network distribution priority.
[0180] For example, if the command type indicates that the voice command is an emergency command, each smart home device will be connected to the home network in sequence according to the network configuration priority. Therefore, when the voice command input by the user is identified as an emergency command, the corresponding smart home device will be triggered to perform priority network configuration to ensure that the smart home device can be configured with the network first to meet the user's current urgent control needs.
[0181] For example, if the network status indicates that the home network has undergone a network upgrade or network update, each smart home device will be connected to the home network in sequence according to the network distribution priority. Therefore, when the home network is upgraded or updated, each smart home device needs to be reconnected to the home network. The control device can connect each smart home device to the network according to the determined network distribution priority to ensure that each smart home device can operate normally.
[0182] For example, if the device status indicates that the smart home device reconnects to the home network after recovering from a fault, each smart home device will be connected to the home network in sequence according to the network distribution priority. Therefore, when the smart home device is disconnected from the network due to a fault and then restored, the control device can reconnect it to the network according to the network distribution priority to ensure that it can quickly return to its original working state and ensure the stability of the smart home system operation.
[0183] In some examples, in the case of emergency response, such as when a user issues an emergency voice command, such as "Turn on the smoke alarm quickly, the kitchen is on fire." The system will set the priority of the smoke alarm to the highest based on the priority calculation. At this time, the control device can configure the smart home devices based on the adaptive network distribution, and connect and configure the smoke alarm first so that it can respond quickly and issue an alarm in time to ensure home safety. Alternatively, when the user urgently needs a device working scenario, such as in cold weather, the user says "I'm so cold, turn on the electric heater", the control device determines that the electric heater has a high priority through priority evaluation and calculation, and then in the adaptive network distribution stage, the control device can first connect the electric heater to the network, so that the electric heater can start working quickly and provide a warm environment for the user.
[0184] In the scenario of device reconnection after the network environment changes, when the home network router is upgraded or replaced, all smart home devices need to reconnect to the new network. At this time, the system will connect the smart door locks to the network first based on the previously calculated device priority. For example, the smart door locks (involving home security) have a higher priority, so as to ensure that the home security protection function is restored as soon as possible.
[0185] In the scenario of reconnecting after device failure recovery, assuming that a smart camera fails and is repaired, when it is reconnected to the smart home system, the system will adaptively configure the network according to the priority. If the smart camera has a higher priority in the security monitoring scenario, it will be configured first so that it can quickly return to working state and ensure the continuity of home monitoring.
[0186] In practice, although devices usually complete network configuration when they are used for the first time, there is still a need for network configuration later. For example, for network changes: when the home network is upgraded from Wi-Fi 5 to Wi-Fi 6, the network name, password, or security protocol may change. Take the smart refrigerator as an example. It was previously connected to the Wi-Fi 5 network, and now it needs to be re-configured to connect to the new Wi-Fi 6 network so that smart functions such as remotely viewing the status of food in the refrigerator can continue to be realized. For another example, for the device failure recovery scenario: if the smart light has a software failure, the user restores it to factory settings. After restoring the factory settings, the network configuration information of the device is cleared. In this case, the smart light needs to be re-configured to reconnect to the smart home system and work with other devices in the system, such as adjusting the brightness according to ambient light and user voice commands.
[0187] In addition, during the network distribution process, the control device can adopt appropriate network protocols and technologies to ensure the stability and reliability of the connection. For example, the use of advanced wireless network technologies such as Wi-Fi 6 can improve network speed and stability and reduce interruptions and errors during network distribution. In addition, for devices with higher priority, priority allocation of bandwidth and other methods can be used to ensure that they can connect quickly and operate normally. At the same time, for some key devices, alternative connection methods such as Bluetooth connection or wired connection can be set to deal with network failures and other situations, and the present invention is not limited to this.
[0188] Optionally, during the normal operation of the smart home system, the control device can also dynamically adjust the network configuration priority corresponding to each smart home device. Specifically, as the environment changes or new voice commands are received from the user, the control device can continuously adjust the network configuration priority of the device. For example, when the ambient temperature drops, the priority of the air conditioner may be reduced, while the priority of other devices may be increased accordingly. At the same time, the control device can also continuously monitor changes in the network status. If the network delay improves or deteriorates, the priority of the device can be adjusted in time. Specifically, by continuously detecting the current network delay corresponding to the target smart home device, if the current network delay corresponding to the target smart home device is less than the preset network delay threshold, the current network weight value of the target smart home device is increased according to the preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device, or the current network weight value is adjusted to the preset network weight value, which is the network weight value corresponding to the target smart home device when there is no network delay. For example, if the network delay in a certain area suddenly decreases, the priority of the devices in that area can be re-evaluated, and the devices whose priority was originally reduced due to network delay can be reconsidered for connection.
[0189] In addition, users’ usage habits and historical data can be regularly analyzed to further optimize priority evaluation indicators and weights. For example, if it is found that a user frequently uses a certain device during a specific time period, the priority of the device can be appropriately increased during that time period.
[0190] In one example, referring to Figure 2 , showing a schematic diagram of the device network configuration process provided in an embodiment of the present invention. In the process of configuring the network for smart home devices, the smart home system can dynamically collect environmental perception data, as well as collect and identify voice commands input by users. Then, priority evaluation indicators can be determined based on environmental perception data, voice commands, etc., and priority calculation can be performed in combination with network delay to obtain the network configuration priority corresponding to the smart home device. Then, the smart home system can adaptively configure the network for the smart home devices based on the network configuration priority, and in the subsequent process, as the environment changes or new voice commands appear, the network configuration priority of the device is continuously adjusted to ensure the rationality of network resource allocation, so that the smart home system can more flexibly adapt to different usage scenarios and changes in demand.
[0191] 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.
[0192] In an embodiment of the present invention, a control device is applied to a smart home system, and the smart home system also includes smart home devices and sensors. The control device can obtain environmental data collected by the sensor and voice commands input by the user, and then obtain the network parameters corresponding to the smart home devices in the home network. Then, priority is assigned to the smart home devices according to the voice commands and / or environmental data, and the network parameters, and the network configuration priority corresponding to the smart home devices is determined. By combining voice commands, environmental data, and network parameters, a more comprehensive and accurate basis is provided for determining the network configuration priority of the smart home devices. Therefore, during the network configuration process, the control device can respond to the detection of an adaptive network configuration instruction for the smart home device, and connect each smart home device to the home network in turn according to the network configuration priority. The network configuration is performed for each smart home device according to the network configuration priority. While achieving adaptive network configuration, the overall connection speed and response time of the smart home devices can be guaranteed, and the rationality of network resource allocation can be ensured, so that the smart home system can adapt to different usage scenarios and demand changes more flexibly.
[0193] 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:
[0194] Assume a smart home scenario where the home is equipped with smart air conditioners, smart lights, smart curtains, smart speakers, air purifiers and other devices. Among them:
[0195] Environmental perception: The current indoor temperature is 30 degrees Celsius, the light is strong, and the air quality is average.
[0196] For voice commands: the user says "It's too hot, turn on the air conditioner". In this embodiment, the temperature sensor first senses that the indoor temperature is high, and at the same time receives the user's voice command to turn on the air conditioner. According to the priority evaluation index, since the ambient temperature is high and the user has a clear need to turn on the air conditioner, the connection priority of the smart air conditioner is set to the highest. Then, the control device can further combine the network delay and use the network monitoring tool to find that the network delay in the area where the smart air conditioner is located is 50ms, the network delay in the area where the smart light is located is 30ms, the network delay in the area where the smart curtain is located is 40ms, the network delay in the area where the smart speaker is located is 80ms, and the network delay in the area where the air purifier is located is 60ms. Set the network delay threshold to 70ms, and the priority of devices exceeding this threshold will be appropriately reduced. At this time, calculate according to the priority evaluation formula:
[0197] Assume that the weight of environment perception is 0.4, the weight of voice command is 0.5, and the weight of network delay is 0.1.
[0198] For the smart air conditioner, the environmental factor score (temperature factor) is 0.8, the voice command score (matching degree with user commands) is 0.9, and the network delay score (score corresponding to 50ms) is 0.8. The priority score of the smart air conditioner is: 0.4×0.8+0.5×0.9+0.1×0.8=0.85.
[0199] For smart lights, the environmental factor score (lighting factor) is 0.6, the voice command score (not directly related to user commands, assumed to be 0.3), and the network delay score (score corresponding to 30ms) is 0.9. The priority score of smart lights is: 0.4×0.6+0.5×0.3+0.1×0.9=0.48. And so on, calculate the priority scores of other devices. Then according to the calculation results, the smart air conditioner has the highest priority. The algorithm will first connect the smart air conditioner to the network to ensure that the air conditioner can respond and start working as soon as possible to reduce the indoor temperature. Then, the smart lights, smart curtains and other devices are connected to the network in turn. Since the smart speaker has a relatively low priority due to the large network delay, it can be connected to the network after other devices are connected.
[0200] If after a period of time, the indoor temperature drops to a comfortable range, and the user issues a voice command to "dim the lights", the algorithm will recalculate the priority of the devices. As the temperature drops, the priority of the smart air conditioner decreases, while the priority of the smart light increases. At the same time, the network delay factor is considered again, and a path with less network delay is selected for connection. If the network status changes at this time, for example, the network delay in the area where the smart speaker is located is reduced to 60ms, while the network delay in the area where the smart curtains are located is increased to 50ms, then when the priority is recalculated, the priority scores of each device will be adjusted accordingly, and the network connection will be performed according to the new priority.
[0201] By combining voice commands, environmental data, and network parameters, a more comprehensive and accurate basis is provided for determining the network configuration priority of smart home devices. Therefore, during the network configuration process, the control device connects each smart home device to the home network in turn according to the network configuration priority, and configures the network for each smart home device based on the network configuration priority. While achieving adaptive network configuration, it can ensure the overall connection speed and response time of smart home devices, ensure the rationality of network resource allocation, and enable the smart home system to adapt more flexibly to different usage scenarios and changes in demand.
[0202] 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.
[0203] Reference Figure 3 , shows a structural block diagram of a network distribution device of a device provided in an embodiment of the present invention, which is applied to a control device in a smart home system. The smart home system also includes smart home devices and sensors, and may specifically include the following modules:
[0204] The data acquisition module 301 is used to acquire the environmental data collected by the sensor and the voice command input by the user;
[0205] The network parameter acquisition module 302 is used to obtain the network parameters corresponding to the smart home device in the home network;
[0206] A priority determination module 303 is used to assign priorities to the smart home devices according to the voice instructions and / or the environmental data, and the network parameters, and determine the network configuration priority corresponding to the smart home devices;
[0207] The network configuration module 304 is configured to, in response to detecting an adaptive network configuration instruction for the smart home device, sequentially connect each of the smart home devices to the home network according to the network configuration priority.
[0208] In some feasible embodiments, the network distribution module 304 is specifically used for:
[0209] Acquire the command type corresponding to the voice command, the network status corresponding to the home network, and the device status corresponding to the smart home device;
[0210] If the instruction type meets the first preset condition, or the network status meets the second preset condition, or the device status meets the third preset condition, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0211] In some feasible embodiments, the network distribution module 304 is specifically used for:
[0212] If the command type indicates that the voice command is an emergency command, each of the smart home devices is connected to the home network in sequence according to the network configuration priority.
[0213] In some feasible embodiments, the network distribution module 304 is specifically used for:
[0214] If the network status indicates that a network upgrade or network update has occurred in the home network, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0215] In some feasible embodiments, the network distribution module 304 is specifically used for:
[0216] If the device status indicates that the smart home device is reconnected to the home network after failure recovery, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
[0217] In some feasible embodiments, the priority determination module 303 is specifically used to:
[0218] Determining a target smart home device corresponding to the voice command and / or the environmental data;
[0219] The target smart home device is weighted by using the voice command to obtain a target voice command weight value of the target smart home device, and / or the target smart home device is weighted by using the environmental data to obtain a target environment weight value of the target smart home device;
[0220] According to the network parameters, weights are assigned to the target smart home devices to determine target network weight values corresponding to the target smart home devices;
[0221] The target voice command weight value and / or the target environment weight value and the target network weight value are used for calculation to obtain the network configuration priority corresponding to the target smart home device.
[0222] In some feasible embodiments, the target smart home device includes a first smart home device corresponding to the voice command, and the priority determination module 303 is specifically used to:
[0223] Recognize the voice command and obtain the command type corresponding to the voice command;
[0224] If the command type indicates that the voice command is an emergency command, a target voice command weight value corresponding to the emergency command is configured for the first smart home device, and the target voice command weight value is higher than the voice command weight values corresponding to other smart home devices.
[0225] In some feasible embodiments, the target smart home device includes a second smart home device corresponding to the environmental data, and the priority determination module 303 is specifically used to:
[0226] If the environmental data meets a preset condition, a target environmental weight value corresponding to the environmental data is configured for the second smart home device, and the target environmental weight value is higher than environmental weight values corresponding to other smart home devices.
[0227] In some feasible embodiments, the environmental data includes at least one of a temperature value, a light intensity, a humidity value, a carbon dioxide concentration, and an organic compound concentration, the smart home device includes at least a temperature control device, a humidity control device, an air quality control device, and a smart curtain, and the priority determination module 303 is specifically used to:
[0228] If the temperature value is greater than or equal to a first preset temperature threshold, configuring a first environment weight value corresponding to the temperature value for the temperature control device;
[0229] If the temperature value is less than a second preset temperature threshold, configuring a second environment weight value corresponding to the temperature value for the temperature control device, and the first preset temperature threshold is greater than the second preset temperature threshold;
[0230] If the humidity value is greater than or equal to a first preset humidity threshold, configuring a third environment weight value corresponding to the temperature value for the humidity adjustment device;
[0231] If the humidity value is less than a second preset humidity threshold, configuring a fourth environment weight value corresponding to the temperature value for the humidity adjustment device, and the first preset humidity threshold is greater than the second preset humidity threshold;
[0232] If the light intensity is greater than or equal to a first preset light threshold, a fourth environment weight value corresponding to the temperature value is configured for the smart curtain;
[0233] If the light intensity is less than the second preset light threshold, a fifth environment weight value corresponding to the temperature value is configured for the smart curtain, and the first preset light threshold is greater than the second preset light threshold;
[0234] If the carbon dioxide concentration is greater than or equal to a first preset concentration threshold, and / or the organic compound concentration is greater than or equal to a second preset concentration threshold, a sixth environmental weight value corresponding to the carbon dioxide concentration and / or the organic compound concentration is configured for the air quality control device.
[0235] In some feasible embodiments, the target smart home device includes a third smart home device corresponding to the voice command and the environmental data, and the priority determination module 303 is specifically used to:
[0236] Recognize the voice command and obtain the command type corresponding to the voice command;
[0237] If the command type indicates that the voice command is an emergency command, configuring a first voice command weight value corresponding to the emergency command for the third smart home device;
[0238] If the command type indicates that the voice command is a regular command, a second voice command weight value corresponding to the emergency command is configured for the third smart home device, and the first voice command weight value is greater than the second voice command weight value;
[0239] If the environmental data meets a preset condition, configuring a first environmental weight value corresponding to the environmental data for the third smart home device;
[0240] If the environmental data does not meet the preset condition, a second environmental weight value corresponding to the environmental data is configured for the third smart home device, and the first environmental weight value is greater than the second environmental weight value.
[0241] In some feasible embodiments, the network parameter includes a network delay corresponding to the smart home device, and the priority determination module 303 is specifically used to:
[0242] Obtaining a current network weight value corresponding to the target smart home device;
[0243] If the network delay is less than or equal to a preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
[0244] In some feasible embodiments, the priority determination module 303 is further configured to:
[0245] If the target smart home device accesses the home network for the first time, sending a test data packet to the target smart home device and obtaining a round trip time corresponding to the test data packet;
[0246] determining a target network delay corresponding to the round trip time;
[0247] If the target network delay is less than or equal to the preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
[0248] In some feasible embodiments, it also includes:
[0249] A network delay detection module, used to continuously detect the current network delay corresponding to the target smart home device;
[0250] The weight adjustment module is used to increase the current network weight value of the target smart home device according to a preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device if the current network delay corresponding to the target smart home device is less than the preset network delay threshold, or to adjust the current network weight value to a preset network weight value, wherein the preset network weight value is the network weight value corresponding to the target smart home device when no network delay occurs.
[0251] 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.
[0252] In addition, an embodiment of the present invention further provides an electronic device, including: 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 network configuration method embodiment of the above-mentioned device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0253] 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 network configuration 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.
[0254] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0255] The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. Those skilled in the art will appreciate that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0256] It should be understood that in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 410 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 401 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
[0257] The electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0258] The audio output unit 403 can convert the audio data received by the RF unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 can also provide audio output related to a specific function performed by the electronic device 400 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, etc.
[0259] The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processor (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 can be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
[0260] The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and / or the backlight when the electronic device 400 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 405 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0261] The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0262] The user input unit 407 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 4071 or near the touch panel 4071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 410, receives the command sent by the processor 410 and executes it. In addition, the touch panel 4071 can be implemented using various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.
[0263] Further, the touch panel 4071 may be covered on the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. It can be understood that in one embodiment, the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, but in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated to implement the input and output functions of the electronic device, which is not limited here.
[0264] The interface unit 408 is an interface for connecting an external device to the electronic device 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 400 or may be used to transmit data between the electronic device 400 and an external device.
[0265] The memory 409 can be used to store software programs and various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 409 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0266] The processor 410 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 409, and calling data stored in the memory 409, so as to monitor the electronic device as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.
[0267] The electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to each component. Preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0268] In addition, the electronic device 400 includes some functional modules not shown, which will not be described in detail here.
[0269] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0270] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0271] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0272] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0273] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0274] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0275] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0276] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0277] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0278] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A network distribution method for a device, characterized in that: A control device applied to a smart home system, wherein the smart home system also includes smart home devices and sensors, and the method includes: Acquiring environmental data collected by the sensor and voice commands input by the user; Obtaining network parameters corresponding to the smart home device in the home network; Assigning priorities to the smart home devices according to the voice instructions and / or the environmental data, and the network parameters, and determining the network configuration priorities corresponding to the smart home devices; In response to detecting the adaptive network configuration instruction for the smart home device, each of the smart home devices is connected to the home network in sequence according to the network configuration priority.
2. The method according to claim 1, characterized in that In response to detecting the adaptive network configuration instruction for the smart home device, sequentially connecting each of the smart home devices to the home network according to the network configuration priority, including: Acquire the command type corresponding to the voice command, the network status corresponding to the home network, and the device status corresponding to the smart home device; If the instruction type meets the first preset condition, or the network status meets the second preset condition, or the device status meets the third preset condition, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
3. The method according to claim 2, characterized in that If the instruction type satisfies the first preset condition, then connecting each of the smart home devices to the home network in sequence according to the network configuration priority, including: If the command type indicates that the voice command is an emergency command, each of the smart home devices is connected to the home network in sequence according to the network configuration priority.
4. The method according to claim 2, characterized in that: If the network status satisfies the second preset condition, then connecting each of the smart home devices to the home network in sequence according to the network configuration priority, including: If the network status indicates that a network upgrade or network update has occurred in the home network, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
5. The method according to claim 2, characterized in that: If the device status satisfies the third preset condition, then connecting each of the smart home devices to the home network in sequence according to the network configuration priority, including: If the device status indicates that the smart home device is reconnected to the home network after failure recovery, each of the smart home devices is connected to the home network in sequence according to the network distribution priority.
6. The method according to claim 1, characterized in that The assigning priorities to the smart home devices according to the voice command and / or the environmental data and the network parameters to determine the network configuration priorities corresponding to the smart home devices includes: Determining a target smart home device corresponding to the voice command and / or the environmental data; Using the voice command to assign weights to the target smart home devices to obtain target voice command weight values of the target smart home devices, and / or using the environmental data to assign weights to the target smart home devices to obtain target environmental weight values of the target smart home devices; According to the network parameters, weights are assigned to the target smart home devices to determine target network weight values corresponding to the target smart home devices; The target voice command weight value and / or the target environment weight value and the target network weight value are used for calculation to obtain the network configuration priority corresponding to the target smart home device.
7. The method according to claim 6, characterized in that The target smart home device includes a first smart home device corresponding to the voice command, and the step of using the voice command to weight the target smart home device to obtain a target voice command weight value of the target smart home device includes: Recognize the voice command and obtain the command type corresponding to the voice command; If the command type indicates that the voice command is an emergency command, a target voice command weight value corresponding to the emergency command is configured for the first smart home device, and the target voice command weight value is higher than the voice command weight values corresponding to other smart home devices.
8. The method according to claim 6, characterized in that The target smart home device includes a second smart home device corresponding to the environmental data, and the step of using the environmental data to weight the target smart home device to obtain a target environment weight value of the target smart home device includes: If the environmental data meets a preset condition, a target environmental weight value corresponding to the environmental data is configured for the second smart home device, and the target environmental weight value is higher than environmental weight values corresponding to other smart home devices.
9. The method according to claim 8, characterized in that The environmental data includes at least one of a temperature value, a light intensity, a humidity value, a carbon dioxide concentration, and an organic compound concentration, and the smart home device includes at least a temperature control device, a humidity adjustment device, an air quality adjustment device, and a smart curtain. If the environmental data meets a preset condition, configuring a target environment weight value corresponding to the environmental data for the second smart home device includes: If the temperature value is greater than or equal to a first preset temperature threshold, configuring a first environment weight value corresponding to the temperature value for the temperature control device; If the temperature value is less than a second preset temperature threshold, configuring a second environment weight value corresponding to the temperature value for the temperature control device, and the first preset temperature threshold is greater than the second preset temperature threshold; If the humidity value is greater than or equal to a first preset humidity threshold, configuring a third environment weight value corresponding to the temperature value for the humidity adjustment device; If the humidity value is less than a second preset humidity threshold, configuring a fourth environment weight value corresponding to the temperature value for the humidity adjustment device, and the first preset humidity threshold is greater than the second preset humidity threshold; If the light intensity is greater than or equal to a first preset light threshold, a fourth environment weight value corresponding to the temperature value is configured for the smart curtain; If the light intensity is less than the second preset light threshold, a fifth environment weight value corresponding to the temperature value is configured for the smart curtain, and the first preset light threshold is greater than the second preset light threshold; If the carbon dioxide concentration is greater than or equal to a first preset concentration threshold, and / or the organic compound concentration is greater than or equal to a second preset concentration threshold, a sixth environmental weight value corresponding to the carbon dioxide concentration and / or the organic compound concentration is configured for the air quality control device.
10. The method according to claim 6, characterized in that The target smart home device includes a third smart home device corresponding to the voice command and the environmental data, and the step of using the voice command to weight the target smart home device to obtain a target voice command weight value of the target smart home device, and using the environmental data to weight the target smart home device to obtain a target environment weight value of the target smart home device includes: Recognize the voice command and obtain the command type corresponding to the voice command; If the command type indicates that the voice command is an emergency command, configuring a first voice command weight value corresponding to the emergency command for the third smart home device; If the command type indicates that the voice command is a regular command, a second voice command weight value corresponding to the emergency command is configured for the third smart home device, and the first voice command weight value is greater than the second voice command weight value; If the environmental data meets a preset condition, configuring a first environmental weight value corresponding to the environmental data for the third smart home device; If the environmental data does not meet the preset condition, a second environmental weight value corresponding to the environmental data is configured for the third smart home device, and the first environmental weight value is greater than the second environmental weight value.
11. The method according to claim 6, characterized in that The network parameters include a network delay corresponding to the smart home device, and the weighting of the target smart home device is assigned according to the network parameters to determine a target network weight value corresponding to the target smart home device, including: Obtaining a current network weight value corresponding to the target smart home device; If the network delay is less than or equal to a preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
12. The method according to claim 11, characterized in that The step of allocating weights to the target smart home devices according to the network parameters and determining target network weight values corresponding to the target smart home devices further includes: If the target smart home device accesses the home network for the first time, sending a test data packet to the target smart home device and obtaining a round trip time corresponding to the test data packet; determining a target network delay corresponding to the round trip time; If the target network delay is less than or equal to the preset network delay threshold, the current network weight value is reduced according to a preset adjustment ratio to obtain a target network weight value corresponding to the target smart home device.
13. The method according to claim 11 or 12, characterized in that: Also includes: Continuously detecting the current network delay corresponding to the target smart home device; If the current network delay corresponding to the target smart home device is less than the preset network delay threshold, the current network weight value of the target smart home device is increased according to a preset adjustment ratio to obtain the target network weight value corresponding to the target smart home device, or the current network weight value is adjusted to a preset network weight value, and the preset network weight value is the network weight value corresponding to the target smart home device when no network delay occurs.
14. A network distribution device for equipment, characterized in that: A control device applied to a smart home system, wherein the smart home system also includes smart home devices and sensors, and the device includes: A data acquisition module, used to acquire environmental data collected by the sensor and voice commands input by the user; A network parameter acquisition module, used to acquire the network parameters corresponding to the smart home device in the home network; A priority determination module, configured to assign priorities to the smart home devices according to the voice instructions and / or the environmental data, and the network parameters, and determine the network configuration priorities corresponding to the smart home devices; The network configuration module is used to connect each of the smart home devices to the home network in sequence according to the network configuration priority in response to detecting the adaptive network configuration instruction for the smart home device.
15. 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 13 when executing the program stored in the memory.
16. 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 13.
Citation Information
Patent Citations
Network configuration method of terminal equipment, terminal equipment and computer readable storage medium
CN112332997A
Smart home device adaptive configuration systems and methods
US20160183030A1
Method and system for application-based access control using network slicing
US20200351756A1
Prioritizing incidents in a utility supply network
US20210409980A1
Method for implementing mobility management and user terminal
WO2022151735A1