Frequency band-based communication method, apparatus, device, and storage medium

By automatically selecting the optimal frequency band for communication through the intelligent control terminal, the problem of low communication efficiency between smart home devices and the intelligent control terminal is solved, achieving more efficient and stable communication, adapting to complex environmental changes, and improving the response speed of devices and user experience.

CN119893519BActive Publication Date: 2025-12-05GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411905166.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-12-05
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

In existing technologies, the communication efficiency between smart home devices and smart control terminals is low, mainly due to problems such as frequency band interference, signal attenuation and channel congestion, which leads to unstable communication. Traditional manual frequency band configuration methods are inefficient and difficult to adapt to dynamically changing communication environments.

Method used

The system acquires frequency band detection data and preset weights of smart home devices through intelligent control terminals, calculates comprehensive scores, automatically selects the optimal frequency band for communication connection, including frequency band evaluation of wireless communication components and Bluetooth components, and dynamically adjusts communication strategies to adapt to environmental changes.

Benefits of technology

It improves the communication stability and efficiency between smart home devices and smart control terminals, reduces the waste of frequency band resources, enhances device response speed and connection reliability, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893519B_ABST
    Figure CN119893519B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a frequency band-based communication method, device, equipment and storage medium. Detection data corresponding to a frequency band and a preset weight value corresponding to a smart home device are obtained. A comprehensive score corresponding to the frequency band is calculated according to the detection data corresponding to the frequency band and the preset weight value corresponding to the smart home device. A target frequency band is determined from the multiple frequency bands according to the comprehensive score corresponding to the frequency band. A communication connection is established between the target frequency band and the smart home device. Embodiments of the present application automatically select the optimal frequency band, reducing the error and inadaptability of manual configuration of the frequency band, thereby improving the stability and efficiency of communication between the smart home device and the intelligent control terminal. By improving the stability and efficiency of communication, the use experience of the smart home device is improved, and the response speed of the device is faster and the connection is more reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a frequency band-based communication method and apparatus, an electronic device, and a storage medium. Background Technology

[0002] In current smart home device applications, remote control and automated management of smart home devices can be achieved through a smart control terminal. Therefore, the stability and efficiency of communication between the smart control terminal and the smart home devices are crucial factors. Frequency bands play a key role in the communication process between smart home devices and the smart control terminal.

[0003] However, due to the complexity and variability of the communication environment, problems such as frequency band interference, signal attenuation, and channel congestion can occur. These problems directly affect communication quality, leading to unstable or failed communication between devices and intelligent control terminals. Traditional solutions typically rely on manual frequency band configuration, but this method is not only inefficient but also difficult to adapt to dynamically changing communication environments. Summary of the Invention

[0004] This application provides a frequency band-based communication method to solve the problem of low communication efficiency between smart home devices and smart control terminals caused by manually configuring frequency bands.

[0005] Accordingly, embodiments of this application also provide a frequency band-based communication device, an electronic device, and a storage medium to ensure the implementation and application of the above methods.

[0006] To address the aforementioned problems, this application discloses a frequency band-based communication method applied to a smart control terminal. The smart control terminal and smart home devices share multiple frequency bands for communication. The method includes:

[0007] Acquire the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0008] Calculate the comprehensive score corresponding to the frequency band based on the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0009] The target frequency band is determined from multiple frequency bands based on the comprehensive score corresponding to the frequency band.

[0010] A communication connection is established between the target frequency band and the smart home device.

[0011] Optionally, the intelligent control terminal includes a weight template that corresponds one-to-one with the device model and preset weights. The smart home device includes an interface, a wireless communication component, and a Bluetooth component. The wireless communication component supports a first frequency band, and the Bluetooth component supports a second frequency band. The step of obtaining the detection data corresponding to the frequency band and the preset weights corresponding to the smart home device includes:

[0012] By calling the interface, the detection data corresponding to the first frequency band can be obtained;

[0013] Scan the Bluetooth component to obtain the detection data corresponding to the second frequency band;

[0014] Determine the device model corresponding to the smart home device;

[0015] Based on the device model corresponding to the smart home device, a preset weight value corresponding to the smart home device is determined in the weight template.

[0016] Optionally, the preset weights include preset weights corresponding to the first frequency band and preset weights corresponding to the second frequency band. The step of calculating the comprehensive score corresponding to the frequency band based on the detection data corresponding to the frequency band and the preset weights corresponding to the smart home device includes:

[0017] Calculate the comprehensive score corresponding to the first frequency band based on the detection data corresponding to the first frequency band and the preset weights corresponding to the first frequency band.

[0018] Based on the detection data corresponding to the second frequency band and the preset weights corresponding to the second frequency band, calculate the comprehensive score corresponding to the second frequency band.

[0019] Optionally, after determining the target frequency band from multiple frequency bands based on the comprehensive score corresponding to the frequency band, the method further includes:

[0020] Candidate frequency bands are determined from multiple frequency bands based on the comprehensive score corresponding to the frequency band; the comprehensive score corresponding to the candidate frequency band is lower than the comprehensive score corresponding to the target frequency band.

[0021] Optionally, establishing a communication connection with the smart home device based on the target frequency band includes:

[0022] Control commands for controlling the smart home device are sent to the smart home device via the target frequency band, so that the smart home device executes the target operation corresponding to the control command.

[0023] Optionally, after establishing a communication connection with the smart home device based on the target frequency band, the method further includes:

[0024] The response time of the smart home device in response to the control command and the execution result of the smart home device in performing the target operation are obtained.

[0025] Determine the device area where the smart home device is located;

[0026] The communication strategy corresponding to the device region is determined based on the response time and the execution result.

[0027] Optionally, the intelligent control terminal includes a preset time and a preset result, and the step of determining the communication strategy corresponding to the device area based on the response time and the execution result includes:

[0028] If the response time meets the preset time and the execution result meets the preset result, then the preset weight corresponding to the target frequency band is adjusted to obtain the target weight corresponding to the target frequency band;

[0029] Based on the target weight corresponding to the target frequency band, a communication strategy is determined to adjust the comprehensive score corresponding to the target frequency band, so as to establish a communication connection between the smart home devices located in the device area based on the target frequency band.

[0030] Optionally, establishing a communication connection with the smart home device based on the target frequency band includes:

[0031] If the response time does not meet the preset time, and / or the execution result does not meet the preset result, the control command will be sent to the smart home device through the alternative frequency band so that the smart home device can execute the target operation corresponding to the control command.

[0032] Optionally, the detection data corresponding to the first frequency band includes multiple first parameters, and the step of calculating the comprehensive score corresponding to the first frequency band based on the detection data corresponding to the first frequency band and the preset weights corresponding to the first frequency band includes:

[0033] Determine the first parameter value for each first parameter in the detection data corresponding to the first frequency band;

[0034] Determine the maximum and minimum values ​​of the first parameter across multiple first frequency bands;

[0035] Determine the preset weight value corresponding to the first parameter from the preset weight values ​​corresponding to the first frequency band;

[0036] The weighted value of the first parameter is obtained based on the first parameter value, the maximum first parameter value, the minimum first parameter value, and the preset weight value corresponding to the first parameter.

[0037] The weighted values ​​of all the first parameters are summed to obtain the comprehensive score corresponding to the first frequency band.

[0038] Optionally, the detection data corresponding to the second frequency band includes multiple second parameters, and the step of calculating the comprehensive score corresponding to the second frequency band based on the detection data corresponding to the second frequency band and the preset weights corresponding to the second frequency band includes:

[0039] Determine the value of the second parameter for each second parameter in the detection data corresponding to the second frequency band;

[0040] Determine the preset weight value corresponding to the second parameter from the preset weight values ​​corresponding to the second frequency band;

[0041] Multiply the second parameter value by the preset weight corresponding to the second parameter to obtain the weighted value of the second parameter;

[0042] The weighted values ​​of all the second parameters are summed to obtain the comprehensive score corresponding to the second frequency band.

[0043] This application also discloses a frequency band-based communication device applied to a smart control terminal. The smart control terminal and smart home devices share multiple frequency bands for communication. The device includes:

[0044] The acquisition module is used to acquire the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0045] The calculation module is used to calculate the comprehensive score corresponding to the frequency band based on the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0046] The determination module is used to determine the target frequency band from multiple frequency bands based on the comprehensive score corresponding to the frequency band;

[0047] A module is established to establish a communication connection with the smart home device based on the target frequency band.

[0048] This application also discloses an electronic device, including: a processor; and a memory storing executable code thereon, which, when executed, causes the processor to perform any of the frequency band-based communication methods described in the embodiments of this application.

[0049] This application also discloses one or more machine-readable media storing executable code thereon, which, when executed, causes a processor to perform a frequency band-based communication method as described in any of the embodiments of this application.

[0050] Compared with the prior art, the embodiments of this application have the following advantages:

[0051] In this embodiment, the intelligent control terminal acquires detection data corresponding to the frequency band and preset weights corresponding to the smart home device; calculates a comprehensive score for the frequency band based on the detection data and preset weights; determines a target frequency band from multiple frequency bands based on the comprehensive score; and establishes a communication connection with the smart home device based on the target frequency band. This embodiment automatically selects the optimal frequency band, reducing errors and incompatibility associated with manual frequency band configuration, thereby improving the stability and efficiency of communication between the smart home device and the intelligent control terminal. It can calculate a comprehensive score based on real-time detection data and preset weights, dynamically selecting the best frequency band to adapt to constantly changing communication environments and avoid problems such as frequency band interference, signal attenuation, and channel congestion. Through the comprehensive scoring mechanism, available frequency band resources can be utilized more rationally, avoiding waste and improving utilization efficiency. By improving communication stability and efficiency, the user experience of smart home devices is enhanced, resulting in faster device response and more reliable connections. Attached Figure Description

[0052] Figure 1 This is a schematic diagram illustrating the communication between an intelligent control terminal and smart home devices.

[0053] Figure 2 This is a flowchart illustrating the steps of an embodiment of a frequency band-based communication method according to this application;

[0054] Figure 3 This is a structural block diagram of an embodiment of a frequency band-based communication device according to this application;

[0055] Figure 4 This is a schematic diagram of the structure of a device provided in an embodiment of this application. Detailed Implementation

[0056] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0057] Reference Figure 1 This is a communication diagram between a smart control terminal and smart home devices. The smart control terminal and smart home devices have multiple frequency bands for communication. Specifically, the smart control terminal selects the corresponding frequency band through an automatic switching component to establish a communication connection with the smart home devices.

[0058] Reference Figure 2 This is a flowchart illustrating the steps of an embodiment of a frequency band-based communication method according to this application, including the following steps:

[0059] Step 201: Obtain the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0060] In this embodiment, to determine the optimal frequency band among multiple available frequency bands, necessary data and information need to be collected. First, detection data for each available frequency band is acquired, including key parameters such as signal strength, interference level, and channel occupancy. Preset weights reflect the importance of each parameter in selecting the optimal frequency band.

[0061] By collecting these two key pieces of information, the embodiments of this application lay the foundation for subsequent frequency band selection and scoring calculation. Accurate detection data and reasonable preset weights are the prerequisites for making the right decision.

[0062] Step 202: Calculate the comprehensive score corresponding to the frequency band based on the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0063] In this embodiment, a quantitative evaluation of each frequency band is required. Specifically, a weighted summation method is used, combining the detection data of each frequency band and its corresponding weights to calculate a comprehensive score for each frequency band. This score reflects the actual performance of each frequency band in the current environment and the device's preference.

[0064] The comprehensive score provides a quantitative evaluation metric, enabling comparison and ranking between different frequency bands. This quantitative evaluation method is more scientific and objective than relying solely on experience or a single indicator.

[0065] Step 203: Determine the target frequency band from multiple frequency bands based on the comprehensive score corresponding to the frequency band;

[0066] In this embodiment of the application, based on the comprehensive score calculated in the previous step, the frequency band with the highest comprehensive score is selected as the target frequency band to ensure optimal communication quality.

[0067] By selecting the target frequency band in this embodiment, the most suitable frequency band for communication with smart home devices in the current environment can be selected, thereby maximizing communication quality, reducing interference, and optimizing device performance.

[0068] Step 204: Establish a communication connection with the smart home device based on the target frequency band.

[0069] In this embodiment, a communication connection is established with smart home devices using a selected target frequency band to ensure the stability and efficiency of the communication.

[0070] By using optimized frequency bands, the embodiments of this application can ensure the reliability, speed, and efficiency of communication, thereby improving the overall performance and user experience of smart home devices.

[0071] In this embodiment, the intelligent control terminal acquires detection data corresponding to the frequency band and preset weights corresponding to the smart home device; calculates a comprehensive score for the frequency band based on the detection data and preset weights; determines a target frequency band from multiple frequency bands based on the comprehensive score; and establishes a communication connection with the smart home device based on the target frequency band. This embodiment automatically selects the optimal frequency band, reducing errors and incompatibility associated with manual frequency band configuration, thereby improving the stability and efficiency of communication between the smart home device and the intelligent control terminal. It can calculate a comprehensive score based on real-time detection data and preset weights, dynamically selecting the best frequency band to adapt to constantly changing communication environments and avoid problems such as frequency band interference, signal attenuation, and channel congestion. Through the comprehensive scoring mechanism, available frequency band resources can be utilized more rationally, avoiding waste and improving utilization efficiency. By improving communication stability and efficiency, the user experience of smart home devices is enhanced, resulting in faster device response and more reliable connections.

[0072] In one embodiment of this application, the intelligent control terminal includes a weight template that corresponds one-to-one with the device model and preset weights. The smart home device includes an interface, a wireless communication component, and a Bluetooth component. The wireless communication component supports a first frequency band, and the Bluetooth component supports a second frequency band. The step of obtaining the detection data corresponding to the frequency band and the preset weights corresponding to the smart home device includes:

[0073] By calling the interface, the detection data corresponding to the first frequency band can be obtained;

[0074] Scan the Bluetooth component to obtain the detection data corresponding to the second frequency band;

[0075] Determine the device model corresponding to the smart home device;

[0076] Based on the device model corresponding to the smart home device, a preset weight value corresponding to the smart home device is determined in the weight template.

[0077] In this embodiment, the smart home device has a built-in wireless communication component (such as a Wi-Fi module). After switching to each frequency band sequentially, the wireless communication component performs signal detection. On each frequency band, the wireless communication component detects parameters such as the received signal strength, interference level, and channel occupancy. Specifically, the smart control terminal obtains the detection data of the first frequency band supported by the wireless communication component, such as signal strength, channel occupancy, and interference level, by calling the interface of the smart home device.

[0078] 1) Signal strength corresponding to the first frequency band

[0079] Definition: The strength of the signal received by a wireless communication component (such as a Wi-Fi module) on the first frequency band, usually expressed in dBm (decibels milliwatts).

[0080] Function: Signal strength is an important indicator of communication quality. The higher the signal strength, the better the communication quality; the lower the signal strength, the worse the communication quality.

[0081] Detection method: The signal strength on the first frequency band is detected by the receiving function of a wireless communication component (such as a Wi-Fi module).

[0082] 2) Interference level corresponding to the first frequency band

[0083] Definition: The degree of interference between other wireless signals present in the first frequency band and the current communication signal. Interfering signals may come from other wireless devices (such as routers, microwave ovens, Bluetooth devices, etc.).

[0084] Function: Interference level directly affects communication stability. The higher the interference level, the worse the communication quality; the lower the interference level, the better the communication quality.

[0085] Detection method: The signal analysis function of the wireless communication component (such as a Wi-Fi module) is used to detect the strength of the interference signal on the first frequency band.

[0086] 3) Channel occupancy status corresponding to the first frequency band

[0087] Definition: The number and occupancy level of channels currently occupied in the first frequency band. A channel is a transmission path for wireless communication, and multiple devices may occupy the same channel simultaneously.

[0088] Function: Channel occupancy directly affects communication efficiency. The less channel occupancy, the higher the communication efficiency; the more channel occupancy, the lower the communication efficiency.

[0089] Detection method: The occupancy status of each channel in the first frequency band is detected by using the channel scanning function of the wireless communication component (such as a Wi-Fi module).

[0090] Smart home devices also have built-in Bluetooth components (such as BLE modules). These components actively broadcast BLE hotspots, carrying RSSI (Received Signal Strength Indicator) information during the broadcast. Specifically, the smart control terminal scans for nearby Bluetooth hotspots. During this scan, the smart control terminal receives the BLE hotspot information broadcast by the Bluetooth component, including the RSSI value. The smart control terminal then obtains the RSSI value of the corresponding BLE hotspot from the scanned information. The RSSI value represents the detection data for the second frequency band supported by the Bluetooth component, such as the Bluetooth hotspot's signal strength (RSSI) and the number of connected devices.

[0091] 1) Signal strength (RSSI) corresponding to the second frequency band

[0092] Definition: RSSI (Received Signal Strength Indicator) refers to the signal strength received by a Bluetooth component (such as a BLE module) on the second frequency band, usually expressed in dBm.

[0093] Purpose: RSSI is an important indicator for measuring the quality of Bluetooth communication. The higher the RSSI value, the stronger the signal and the better the communication quality; the lower the RSSI value, the weaker the signal and the worse the communication quality.

[0094] Detection method: Detect the RSSI value on the second frequency band through the receiving function of Bluetooth components (such as BLE modules).

[0095] 2) Number of devices connected in the second frequency band

[0096] Definition: The number of connected devices refers to the number of devices that have established a connection with the current Bluetooth component (such as a BLE module) on the second frequency band.

[0097] Function: The number of connected devices directly affects the Bluetooth communication load. More connections result in a higher communication load and potentially lower communication quality; fewer connections result in a lower communication load and potentially higher communication quality.

[0098] Detection method: Count the number of devices currently connected to the Bluetooth component (such as a BLE module) through the connection management function.

[0099] In this embodiment, by calling an interface to obtain detection data for the first frequency band and scanning the Bluetooth component to obtain detection data for the second frequency band, the communication quality of each frequency band can be comprehensively and accurately evaluated. Combined with preset weights corresponding to the device model, the accuracy of frequency band selection is further improved, ensuring the selection of the optimal frequency band. Since smart home devices simultaneously support wireless communication components (such as Wi-Fi) and Bluetooth components (such as BLE), this embodiment can cover different frequency band requirements. By obtaining detection data for the first and second frequency bands respectively, it can flexibly respond to multi-frequency band communication scenarios, improving the flexibility and adaptability of communication.

[0100] In practical applications, device-related information, such as device model, parameter weight templates, and user configuration data, is typically stored and managed in the cloud. The intelligent control terminal can interact with the cloud, for example, by uploading device data and downloading cloud configurations (such as weight templates), and data synchronization occurs between the intelligent control terminal and the cloud.

[0101] In this embodiment, the weight template is a predefined set of parameter weights used to calculate the comprehensive score of the frequency band. Specifically, different device models may require different weight templates to suit their specific communication needs.

[0102] The cloud stores weight templates corresponding to device models. These templates may be generated based on historical data, experimental testing, or algorithm optimization. The smart control terminal can request weight templates from the cloud; therefore, weight templates are stored in the smart control terminal.

[0103] In this embodiment, the model of the smart home device is determined based on the device's identification information (such as device serial number, model number, etc.). Based on the device model, a preset weight corresponding to that device model is obtained from the weight template of the smart control terminal.

[0104] Specifically, the intelligent control terminal scans nearby BLE hotspots via Bluetooth scanning to obtain hotspot information (such as device identifiers, RSSI, etc.). Based on the device identifiers (such as MAC addresses, UUIDs, etc.) in the hotspot information, the intelligent control terminal identifies the device's product model. For example, the device identifier may be pre-bound to the device model, and the intelligent control terminal can determine the device model by querying the mapping relationship. The intelligent control terminal sends the device model to the cloud, requesting a weight template corresponding to that model. The cloud searches for and sends the corresponding weight template to the intelligent control terminal based on the device model. After receiving the weight template from the cloud, the intelligent control terminal parses it. The weight template typically contains weight values ​​for multiple parameters, such as signal strength, interference level, and channel occupancy. Based on the parsed weight template, the intelligent control terminal extracts preset weights related to the current device.

[0105] For example, a weight template might contain the following:

[0106] Signal strength weight: 0.4

[0107] Disturbance level weight: 0.3

[0108] Weight of channel occupancy: 0.2

[0109] Weights of other parameters: 0.1

[0110] This application also utilizes a weighting template to dynamically adjust the weights of various parameters based on the device model, ensuring more rational utilization of communication resources under different devices and environments. For example, in environments with significant signal interference, the weight of interference level can be preset to be greater than the weight of channel occupancy, thus prioritizing the selection of frequency bands with less interference.

[0111] Furthermore, this application embodiment avoids frequency band interference and signal attenuation problems by automatically detecting and selecting the optimal frequency band, thereby improving communication stability and efficiency. Simultaneously, detection data from Bluetooth components (such as the RSSI of BLE hotspots) further enhances the reliability of frequency band selection.

[0112] In one embodiment of this application, the preset weights include preset weights corresponding to the first frequency band and preset weights corresponding to the second frequency band. The step of calculating the comprehensive score corresponding to the frequency band based on the detection data corresponding to the frequency band and the preset weights corresponding to the smart home device includes:

[0113] Calculate the comprehensive score corresponding to the first frequency band based on the detection data corresponding to the first frequency band and the preset weights corresponding to the first frequency band.

[0114] Based on the detection data corresponding to the second frequency band and the preset weights corresponding to the second frequency band, calculate the comprehensive score corresponding to the second frequency band.

[0115] The first frequency band refers to the frequency band supported by wireless communication components (such as Wi-Fi modules) in smart home devices. The detection data for the first frequency band includes parameters such as signal strength, interference level, and channel occupancy. Pre-set weight values ​​for each parameter in the first frequency band reflect their importance in frequency band selection.

[0116] Similarly, the second frequency band refers to the frequency band supported by Bluetooth components (such as BLE modules) in smart home devices. The detection data for the second frequency band includes parameters such as the signal strength index (RSSI) and the number of connected devices. The pre-set weights for each parameter in the second frequency band reflect their importance in frequency band selection.

[0117] This application embodiment, by calculating the comprehensive scores of the first and second frequency bands respectively, can more comprehensively evaluate the communication quality of each frequency band and ensure the selection of the optimal frequency band. Smart home devices simultaneously support wireless communication components (such as Wi-Fi) and Bluetooth components (such as BLE). By calculating the comprehensive scores of the first and second frequency bands respectively, they can flexibly handle multi-frequency band communication scenarios, improving communication flexibility and adaptability. Through a weighting template, the weights of each parameter can be dynamically adjusted according to the device model, ensuring more rational utilization of communication resources under different devices and environments.

[0118] In one embodiment of this application, after determining the target frequency band from multiple frequency bands based on the comprehensive score corresponding to the frequency band, the method further includes:

[0119] Candidate frequency bands are determined from multiple frequency bands based on the comprehensive score corresponding to the frequency band; the comprehensive score corresponding to the candidate frequency band is lower than the comprehensive score corresponding to the target frequency band.

[0120] In this embodiment, after selecting the target frequency band, the intelligent control terminal sorts other frequency bands according to a comprehensive score and selects frequency bands with scores lower than the target frequency band as candidate frequency bands. The candidate frequency bands have lower comprehensive scores than the target frequency band, but still possess a certain level of communication quality and can serve as alternatives to the target frequency band. For example, if the target frequency band has a comprehensive score of 90, the candidate frequency bands might have comprehensive scores of 80, 70, etc.

[0121] The smart control terminal will prioritize using the target frequency band to establish communication connections with smart home devices. If the target frequency band experiences anomalies (such as signal interference or channel congestion), the smart control terminal can switch to an alternative frequency band to ensure the continuity and stability of communication.

[0122] This application embodiment allows the intelligent control terminal to quickly switch to an alternative frequency band when the target frequency band experiences anomalies, avoiding communication interruptions, improving communication reliability, ensuring device response speed and connection reliability, and enhancing user experience. Since the communication quality of frequency bands may dynamically change in complex wireless environments, setting alternative frequency bands enables the intelligent control terminal to adapt to these changes, ensuring continuous optimization of communication performance.

[0123] In one embodiment of this application, establishing a communication connection with the smart home device based on the target frequency band includes:

[0124] Control commands for controlling the smart home device are sent to the smart home device via the target frequency band, so that the smart home device executes the target operation corresponding to the control command.

[0125] In this embodiment of the application, after determining the target frequency band, the intelligent control terminal sends control commands to the smart home device through the frequency band.

[0126] Control commands can be operation commands issued by users through intelligent control terminals (such as turning lights on and off, adjusting temperature, etc.), or preset commands in automated scenarios.

[0127] After receiving a control command, smart home devices will perform the corresponding operation based on the command. For example, if the command is "adjust the temperature," the air conditioner's temperature will be adjusted.

[0128] Specifically, the smart control terminal sends control commands to smart home devices via the target frequency band. Control commands typically include the command type (e.g., switch, adjust), the target device identifier (e.g., device ID), and operating parameters (e.g., temperature, brightness). The smart home devices receive the control commands via components corresponding to the target frequency band (wireless communication components or Bluetooth components). The smart home devices parse the control commands and execute the corresponding operations based on the command content. For example, if the command is "turn on the lights," the device will activate the lighting control module and turn on the lights.

[0129] This application embodiment uses the target frequency band to send control commands, ensuring the stability and efficiency of command transmission and avoiding frequency interference and signal attenuation issues. Since the target frequency band has the highest overall score and the best communication quality, command transmission latency can be reduced, improving device response speed. Through efficient communication connections, smart home devices can quickly respond to user control commands, enhancing the user experience. Sending control commands via the target frequency band enables remote control and automated management. Users can remotely operate devices through smart control terminals, or devices can automatically execute operations according to preset scenarios, simplifying user operation and lowering the barrier to entry.

[0130] In one embodiment of this application, after establishing a communication connection with the smart home device based on the target frequency band, the method further includes:

[0131] The response time of the smart home device in response to the control command and the execution result of the smart home device in performing the target operation are obtained.

[0132] Determine the device area where the smart home device is located;

[0133] The communication strategy corresponding to the device region is determined based on the response time and the execution result.

[0134] In this embodiment, response time refers to the time from the issuance of the control command to the start of the smart home device's response. Execution result refers to whether the smart home device successfully executed the target operation corresponding to the control command (such as turning lights on / off, adjusting temperature, etc.).

[0135] Based on the device's physical location or network environment, devices can be divided into different zones. For example, devices may be located in different rooms, floors, or areas covered by network coverage. Specifically, the area where a device is located can be determined using information such as its IP address, Wi-Fi signal strength, or Bluetooth signal strength.

[0136] Based on the device's response time and execution results, the effectiveness of the current communication strategy is evaluated, and the communication strategy is adjusted for the area where the device is located. Specifically, if the device's response time and execution results are within the expected range (i.e., good communication quality), the intelligent control terminal will divide the area according to the network-free environment where the device is located (such as areas with weak signal coverage or high interference) and determine the corresponding frequency band score for that area.

[0137] By adding weight parameters and feeding them back to the intelligent control terminal, the frequency band selection strategy is optimized, avoiding frequent switching of communication modes within the same area, thereby improving the stability and efficiency of communication.

[0138] This application's embodiments optimize frequency band selection strategies to avoid frequent switching of communication modes within the same area, ensuring communication stability and efficiency. The intelligent control terminal can dynamically adjust its communication strategy based on real-time detection data and device feedback, adapting to the ever-changing wireless environment and ensuring continuous optimization of communication performance. By dynamically adjusting the communication strategy, the intelligent control terminal can reduce the risk of communication interruptions and ensure stable operation of the device in complex wireless environments.

[0139] By optimizing communication strategies, device response time and operation failure rates are reduced, improving the user experience. Furthermore, the intelligent control terminal can divide devices into different zones based on their physical location or network environment, and formulate personalized communication strategies for each zone, supporting multi-zone management. The intelligent control terminal automatically adjusts communication strategies based on device feedback and communication effectiveness, reducing the need for manual intervention and simplifying the complexity of device management and maintenance.

[0140] In one embodiment of this application, the intelligent control terminal includes a preset time and a preset result, and the step of determining the communication strategy corresponding to the device area based on the response time and the execution result includes:

[0141] If the response time meets the preset time and the execution result meets the preset result, then the preset weight corresponding to the target frequency band is adjusted to obtain the target weight corresponding to the target frequency band;

[0142] Based on the target weight corresponding to the target frequency band, a communication strategy is determined to adjust the comprehensive score corresponding to the target frequency band, so as to establish a communication connection between the smart home devices located in the device area based on the target frequency band.

[0143] The preset time is a response time threshold pre-set by the intelligent control terminal, representing the response speed that the device should achieve after receiving a control command. The preset result refers to the execution result standard pre-set by the intelligent control terminal, indicating that the device has successfully responded and executed the target operation of the control command.

[0144] If the device's response time and execution results meet the preset standards (e.g., short response time, high operation success rate), the intelligent control terminal will adjust the preset weights of the target frequency band based on this feedback information, generating the target weights corresponding to the target frequency band. For example, the signal strength weight of the target frequency band is adjusted from 0.4 to 0.5, the interference level weight from 0.3 to 0.2, and the channel occupancy weight from 0.2 to 0.1.

[0145] The adjusted weights reflect the importance of the target frequency band in the current communication environment. Based on the target weights, the smart control terminal determines the strategy for communicating with smart home devices within the device's area, ensuring communication stability and efficiency. Specifically, the overall score of the target frequency band will also change after the weights are adjusted. For example, if the overall score of the target frequency band is high, the smart control terminal will prioritize using that frequency band to communicate with devices. Or, for example, if there is significant signal interference in a certain area, the smart control terminal will increase the weight of the interference level and feed it back to the device to avoid frequent switching of communication methods within the same area.

[0146] In this embodiment of the application, by obtaining the response time and execution result of the device, it is determined whether it meets the preset standard, and the preset weight of the target frequency band is adjusted according to the feedback information to generate the target weight and determine the communication strategy. This can optimize the communication quality, improve the stability and efficiency of communication, adapt to the dynamic environment, and enhance the user experience.

[0147] In one embodiment of this application, establishing a communication connection with the smart home device based on the target frequency band includes:

[0148] If the response time does not meet the preset time, and / or the execution result does not meet the preset result, the control command will be sent to the smart home device through the alternative frequency band so that the smart home device can execute the target operation corresponding to the control command.

[0149] If the device's response time is longer than the preset time, and / or the execution result does not meet the preset result, then the communication quality of the target frequency band is considered poor.

[0150] For example, if the preset time is 100 milliseconds and the preset result is that the operation success rate should reach 95%, then when the response time is 101 milliseconds and the operation success rate is 80%, the communication quality of the target frequency band will be considered poor.

[0151] At this point, the intelligent control terminal sends control commands to the smart home devices via the alternative frequency band, ensuring that the devices can execute the target operation. Upon receiving the control commands, the smart home devices perform the corresponding operations according to the command content.

[0152] In this embodiment of the application, by selecting an alternative frequency band to issue control commands when the communication quality of the target frequency band is poor, it is possible to ensure that the device can perform the target operation, improve the reliability of communication, reduce the risk of communication interruption, and enhance the user experience.

[0153] In one embodiment of this application, the detection data corresponding to the first frequency band includes multiple first parameters, and the step of calculating the comprehensive score corresponding to the first frequency band based on the detection data corresponding to the first frequency band and the preset weights corresponding to the first frequency band includes:

[0154] Determine the first parameter value for each first parameter in the detection data corresponding to the first frequency band;

[0155] Determine the maximum and minimum values ​​of the first parameter across multiple first frequency bands;

[0156] Determine the preset weight value corresponding to the first parameter from the preset weight values ​​corresponding to the first frequency band;

[0157] The weighted value of the first parameter is obtained based on the first parameter value, the maximum first parameter value, the minimum first parameter value, and the preset weight value corresponding to the first parameter.

[0158] The weighted values ​​of all the first parameters are summed to obtain the comprehensive score corresponding to the first frequency band.

[0159] In this embodiment, the detection data for the first frequency band includes multiple first parameters, such as signal strength, interference level, and channel occupancy. The intelligent control terminal needs to extract the specific value (i.e., the first parameter value) of each first parameter from the detection data, and also needs to determine the maximum and minimum values ​​from the multiple first parameter values. Based on the type of the first parameter, the intelligent control terminal finds the corresponding preset weight value for the first parameter from preset weight values.

[0160] Specifically, in this embodiment, the comprehensive score S1 corresponding to the first frequency band is calculated using the following formula (1):

[0161]

[0162] Where j represents the number of the first parameter, w j P represents the preset weight corresponding to the j-th first parameter. j P represents the value of the first parameter. minj P represents the minimum value of the first parameter (minimum first parameter value) of the j-th frequency band across all frequency bands. maxj This represents the maximum value of the first parameter of the j-th frequency band (maximum first parameter value).

[0163] In one embodiment of this application, the detection data corresponding to the second frequency band includes multiple second parameters, and the step of calculating the comprehensive score corresponding to the second frequency band based on the detection data corresponding to the second frequency band and the preset weights corresponding to the second frequency band includes:

[0164] Determine the value of the second parameter for each second parameter in the detection data corresponding to the second frequency band;

[0165] Determine the preset weight value corresponding to the second parameter from the preset weight values ​​corresponding to the second frequency band;

[0166] Multiply the second parameter value by the preset weight corresponding to the second parameter to obtain the weighted value of the second parameter;

[0167] The weighted values ​​of all the second parameters are summed to obtain the comprehensive score corresponding to the second frequency band.

[0168] In this embodiment, the detection data for the second frequency band includes multiple second parameters, such as RSSI (Received Signal Strength Indication) and the number of connected devices. The intelligent control terminal needs to extract the specific value (i.e., the second parameter value) of each second parameter from the detection data. Based on the type of the second parameter, the intelligent control terminal finds the corresponding preset weight value for the second parameter from a preset weighting list. The intelligent control terminal multiplies the value of each second parameter by its corresponding preset weight value to obtain the weighted value of that parameter.

[0169] Specifically, in this embodiment, the comprehensive score S2 corresponding to the first frequency band is calculated using the following formula (2):

[0170] S2=w1·RSSI-w2·Device_count (2)

[0171] Where PSSI represents the signal strength value, w1 represents the preset weight corresponding to the signal strength value, Device_count represents the number of connected devices, and w2 represents the preset weight corresponding to the number of connected devices.

[0172] This application's embodiments automatically select the optimal frequency band, reducing errors and incompatibility associated with manual frequency band configuration, thereby improving the stability and efficiency of communication between smart home devices and smart control terminals. It can calculate a comprehensive score based on real-time detection data and preset weights, dynamically selecting the best frequency band to adapt to constantly changing communication environments and avoid problems such as frequency band interference, signal attenuation, and channel congestion. Through the comprehensive scoring mechanism, available frequency band resources can be utilized more rationally, avoiding waste and improving utilization efficiency. By improving communication stability and efficiency, the user experience of smart home devices is enhanced, resulting in faster response times and more reliable connections.

[0173] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, an example is provided below for illustration:

[0174] Suppose a user controls multiple smart home devices, including smart light bulbs, smart air conditioners, and smart door locks, using a smart control terminal (such as a mobile app). These devices communicate with the smart control terminal via wireless communication components (such as Wi-Fi) and Bluetooth components (such as BLE). Due to the presence of multiple wireless devices in a home environment (such as routers and Bluetooth headsets), frequency interference and signal attenuation are common problems, leading to slow device response times or unstable communication.

[0175] 1) Frequency band detection and data acquisition

[0176] The smart control terminal obtains detection data of the first frequency band supported by the wireless communication component (such as Wi-Fi) by calling the interface of the smart home device, including signal strength, interference level and channel occupancy.

[0177] At the same time, the intelligent control terminal scans Bluetooth components (such as BLE) to obtain detection data of the second frequency band, including RSSI (Received Signal Strength Indicator) and the number of connected devices.

[0178] 2) Weight template and preset weight

[0179] The intelligent control terminal obtains the corresponding preset weights from the weight template based on the device model of the smart home device. For example, the weight template for a smart light bulb might be: signal strength weight 0.4, interference level weight 0.3, channel occupancy weight 0.2, and number of connected devices weight 0.1.

[0180] 3) Calculation of overall score**

[0181] Based on the detection data and preset weights of the first frequency band, calculate the comprehensive score of the first frequency band. For example, if the signal strength is -50dBm, the interference level is -60dBm, and the channel occupancy is 20%, then the comprehensive score of the first frequency band is: Comprehensive score 1 = 0.4 × (-50) + 0.3 × (-60) + 0.2 × 20 = -30

[0182] Similarly, based on the detection data and preset weights of the second frequency band, the comprehensive score of the second frequency band is calculated. For example, if the RSSI is -70dBm and the number of connected devices is 3, then the comprehensive score of the second frequency band is: Comprehensive score2 = 0.4 × (-70) + 0.1 × 3 = -28

[0183] 4) Target frequency band selection

[0184] Compare the overall scores of the first and second frequency bands, and select the band with the highest score as the target frequency band. In this example, the overall score of the first frequency band is -30, and the overall score of the second frequency band is -28, so the second frequency band is selected as the target frequency band.

[0185] 5) Establishing a communication connection

[0186] The smart control terminal establishes a communication connection with smart home devices through the target frequency band (second frequency band) and sends control commands. For example, a user sends a "turn on the lights" command through the smart control terminal, and the smart bulb receives the command and turns on the lights.

[0187] 6) Response time and execution result feedback

[0188] The smart control terminal obtains the response time and execution result of the smart home device. For example, the response time is 100 milliseconds, and the execution result is "lights turned on successfully".

[0189] Based on the response time and execution results, adjust the preset weights of the target frequency band. If the response time and execution results meet the preset standards, increase the weights of the target frequency band to optimize future communication strategies.

[0190] 7) Selection of alternative frequency bands

[0191] If the communication quality of the target frequency band is poor (e.g., the response time is too long or the execution result fails), the smart control terminal will send control commands to the smart home devices through the alternative frequency band to ensure that the devices can perform the target operation.

[0192] The above examples demonstrate that this application's embodiments, by automatically selecting the optimal frequency band, reduce the errors and incompatibilities of manual frequency band configuration, thereby improving the stability and efficiency of communication between smart home devices and smart control terminals. Through a comprehensive scoring mechanism, available frequency band resources can be utilized more rationally, avoiding waste and enhancing the user experience.

[0193] Another example, suppose Figure 1 The scores for each frequency band are shown below:

[0194] Frequency Band 1:50

[0195] Frequency Band 2: 66

[0196] Frequency band 3:25

[0197] Frequency band 4:59

[0198] Frequency band 5: 85

[0199] Frequency band 6:70

[0200] Therefore, the intelligent control terminal will use frequency band 5 as the target frequency band and frequency band 6 as the alternative frequency band. It will send control commands to the smart home devices through frequency band 5. If the response time and execution result of the smart home devices do not meet expectations, it will send control commands to the smart home devices through frequency band 6.

[0201] This application's embodiments automatically select the optimal frequency band, reducing errors and incompatibility associated with manual frequency band configuration, thereby improving the stability and efficiency of communication between smart home devices and smart control terminals. It can calculate a comprehensive score based on real-time detection data and preset weights, dynamically selecting the best frequency band to adapt to constantly changing communication environments and avoid problems such as frequency band interference, signal attenuation, and channel congestion. Through the comprehensive scoring mechanism, available frequency band resources can be utilized more rationally, avoiding waste and improving utilization efficiency. By improving communication stability and efficiency, the user experience of smart home devices is enhanced, resulting in faster response times and more reliable connections.

[0202] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.

[0203] Based on the above embodiments, this embodiment also provides a frequency band-based communication device, which can be applied to electronic devices such as terminal devices and servers.

[0204] Reference Figure 3 The diagram illustrates a structural block diagram of an embodiment of a frequency band-based communication device according to this application, which may specifically include the following modules:

[0205] The acquisition module 301 is used to acquire the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices;

[0206] The calculation module 302 is used to calculate the comprehensive score corresponding to the frequency band based on the detection data corresponding to the frequency band and the preset weights corresponding to the smart home devices.

[0207] The determining module 303 is used to determine the target frequency band from multiple frequency bands based on the comprehensive score corresponding to the frequency band;

[0208] Module 304 is used to establish a communication connection with the smart home device based on the target frequency band.

[0209] This application also provides a non-volatile readable storage medium storing one or more modules (programs). When these modules are applied to a device, they enable the device to execute the instructions for the method steps in this application.

[0210] This application provides one or more machine-readable media storing instructions that, when executed by one or more processors, cause an electronic device to perform one or more of the methods described in the above embodiments. In this application, the electronic device includes various types of devices such as terminal devices and servers (clusters).

[0211] The embodiments of this disclosure can be implemented as an apparatus configured as desired using any suitable hardware, firmware, software, or any combination thereof, including electronic devices such as terminal devices, servers (clusters), etc. Figure 4 An exemplary apparatus 400 is schematically shown that can be used to implement the various embodiments described in this application.

[0212] In one embodiment, Figure 4 An exemplary device 400 is shown, which includes one or more processors 402, a control module (chipset) 404 coupled to at least one of the processors 402, a memory 406 coupled to the control module 404, a non-volatile memory (NVM) / storage device 408 coupled to the control module 404, one or more input / output devices 410 coupled to the control module 404, and a network interface 412 coupled to the control module 404.

[0213] Processor 402 may include one or more single-core or multi-core processors, and processor 402 may include any combination of general-purpose processors or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, device 400 can serve as a terminal device, server (cluster), or other device as described in the embodiments of this application.

[0214] In some embodiments, the apparatus 400 may include one or more computer-readable media (e.g., memory 406 or NVM / storage device 408) having instructions 414 and one or more processors 402 that are combined with the one or more computer-readable media and configured to execute the instructions 414 to implement the module and thus perform the actions described in this disclosure.

[0215] In one embodiment, the control module 404 may include any suitable interface controller to provide any suitable interface to at least one of the processors 402 and / or any suitable device or component communicating with the control module 404.

[0216] The control module 404 may include a memory controller module to provide an interface to the memory 406. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0217] Memory 406 may be used, for example, to load and store data and / or instructions 414 for device 400. In one embodiment, memory 406 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, memory 406 may include double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).

[0218] In one embodiment, the control module 404 may include one or more input / output controllers to provide an interface to the NVM / storage device 408 and (one or more) input / output devices 410.

[0219] For example, NVM / storage device 408 may be used to store data and / or instructions 414. NVM / storage device 408 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable (one or more) non-volatile storage devices (e.g., one or more hard disk drives (HDDs), one or more optical disc drives (CDs), and / or one or more digital universal optical disc (DVD) drives).

[0220] NVM / storage device 408 may include storage resources that are physically part of a device on which device 400 is mounted, or that can be accessed by the device but do not necessarily have to be part of the device. For example, NVM / storage device 408 may be accessed via a network via one or more input / output devices 410.

[0221] One or more input / output devices 410 may provide an interface for device 400 to communicate with any other suitable device. Input / output devices 410 may include communication components, audio components, sensor components, etc. Network interface 412 may provide an interface for device 400 to communicate via one or more networks. Device 400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, such as accessing wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, etc., or combinations thereof.

[0222] In one embodiment, at least one of the processors 402 may be logically packaged with one or more controllers (e.g., memory controller modules) of the control module 404. In one embodiment, at least one of the processors 402 may be logically packaged with one or more controllers of the control module 404 to form a system-in-package (SiP). In one embodiment, at least one of the processors 402 may be integrated with the logic of one or more controllers of the control module 404 on the same die. In one embodiment, at least one of the processors 402 may be integrated with the logic of one or more controllers of the control module 404 on the same die to form a system-on-a-chip (SoC).

[0223] In various embodiments, device 400 may be, but is not limited to, a server, desktop computing device, or mobile computing device (e.g., laptop, handheld computing device, tablet, netbook, etc.). In various embodiments, device 400 may have more or fewer components and / or different architectures. For example, in some embodiments, device 400 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0224] The detection device can use a main control chip as a processor or control module, and sensor data, position information, etc. can be stored in a memory or NVM / storage device. The sensor group can be used as an input / output device, and the communication interface can include a network interface.

[0225] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0226] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0227] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable frequency-band-based communication terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable frequency-band-based communication terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0228] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable frequency-band-based communication terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0229] These computer program instructions can also be loaded onto a computer or other programmable frequency-band-based communication terminal equipment, causing a series of operational steps to be executed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0230] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.

[0231] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0232] The foregoing has provided a detailed description of a frequency band-based communication method and apparatus, an electronic device, and a storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and its core ideas. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A frequency band-based communication method, characterized by, The method is applied to an intelligent control terminal, the intelligent control terminal and smart home devices have multiple frequency bands for communication, the intelligent control terminal includes preset time and preset results, and the method includes: Obtaining detection data corresponding to the frequency bands and preset weights corresponding to the smart home devices; According to the detection data corresponding to the frequency bands and the preset weights corresponding to the smart home devices, the comprehensive scores corresponding to the frequency bands are calculated; According to the comprehensive scores corresponding to the frequency bands, a target frequency band is determined from the multiple frequency bands; Based on the target frequency band, a communication connection with the smart home device is established; Obtaining the response time of the smart home device in response to the control instruction for controlling the smart home device, and the execution result of the target operation corresponding to the control instruction executed by the smart home device; Determining the device area where the smart home device is located; If the response time meets the preset time, and the execution result meets the preset result, the preset weight corresponding to the target frequency band is adjusted to obtain the target weight corresponding to the target frequency band; According to the target weight corresponding to the target frequency band, a communication strategy for adjusting the comprehensive score corresponding to the target frequency band is determined, and a communication connection based on the target frequency band and the smart home device located in the device area is established.

2. The method of claim 1, wherein, The intelligent control terminal includes a weight value template corresponding to the device model and the preset weight value, the smart home device includes an interface, a Wi-Fi module and a Bluetooth component, the frequency band supported by the Wi-Fi module is a first frequency band, and the frequency band supported by the Bluetooth component is a second frequency band, the obtaining of the detection data corresponding to the frequency bands and the preset weights corresponding to the smart home devices includes: Calling the interface to obtain the detection data corresponding to the first frequency band; Scanning the Bluetooth component to obtain the detection data corresponding to the second frequency band; Determining the device model corresponding to the smart home device; According to the device model corresponding to the smart home device, the preset weight value corresponding to the smart home device is determined in the weight value template.

3. The method of claim 2, wherein, The preset weight value includes the preset weight value corresponding to the first frequency band and the preset weight value corresponding to the second frequency band, and the calculation of the comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight value corresponding to the smart home device includes: According to the detection data corresponding to the first frequency band and the preset weight value corresponding to the first frequency band, the comprehensive score corresponding to the first frequency band is calculated; According to the detection data corresponding to the second frequency band and the preset weight value corresponding to the second frequency band, the comprehensive score corresponding to the second frequency band is calculated.

4. The method of claim 1, wherein, After the target frequency band is determined from the multiple frequency bands according to the comprehensive scores corresponding to the frequency bands, the method further includes: According to the comprehensive scores corresponding to the frequency bands, a candidate frequency band is determined from the multiple frequency bands; the comprehensive score corresponding to the candidate frequency band is lower than the comprehensive score corresponding to the target frequency band.

5. The method of claim 1, wherein, The communication connection with the smart home device based on the target frequency band includes: The control instruction for controlling the smart home device is sent to the smart home device through the target frequency band, so that the smart home device performs a target operation corresponding to the control instruction.

6. The method of claim 4, wherein, After the communication connection between the smart home device and the target frequency band is established, the method further includes: If the response time does not meet the preset time, and / or the execution result does not meet the preset result, the control instruction is sent to the smart home device through the alternative frequency band, so that the smart home device performs a target operation corresponding to the control instruction.

7. The method of claim 3, wherein, The detection data corresponding to the first frequency band includes a plurality of first parameters. The comprehensive score corresponding to the first frequency band is calculated according to the detection data corresponding to the first frequency band and the preset weight value corresponding to the first frequency band, including: Determining a first parameter value of each first parameter in the detection data corresponding to the first frequency band; Determining a maximum first parameter value and a minimum second parameter value of the first parameter in a plurality of first frequency bands; Determining a preset weight value corresponding to the first parameter in the preset weight value corresponding to the first frequency band; Obtaining a weighted value of the first parameter according to the first parameter value, the maximum first parameter value, the minimum second parameter value, and the preset weight value corresponding to the first parameter; All first parameter weighted values are accumulated to obtain the comprehensive score corresponding to the first frequency band.

8. The method of claim 3, wherein, The detection data corresponding to the second frequency band includes a plurality of second parameters. The comprehensive score corresponding to the second frequency band is calculated according to the detection data corresponding to the second frequency band and the preset weight value corresponding to the second frequency band, including: Determining a second parameter value of each second parameter in the detection data corresponding to the second frequency band; Determining a preset weight value corresponding to the second parameter in the preset weight value corresponding to the second frequency band; Multiplying the second parameter value and the preset weight value corresponding to the second parameter to obtain a weighted value of the second parameter; All second parameter weighted values are accumulated to obtain the comprehensive score corresponding to the second frequency band.

9. A frequency band based communication apparatus, comprising: The smart control terminal and the smart home device have a plurality of frequency bands for communication. The smart control terminal includes a preset time and a preset result. The device includes: An acquisition module for acquiring detection data corresponding to the frequency band and a preset weight value corresponding to the smart home device; A calculation module for calculating a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight value corresponding to the smart home device; A determination module for determining a target frequency band from a plurality of frequency bands according to the comprehensive score corresponding to the frequency band. The establishing module is configured to establish a communication connection with the smart home device based on the target frequency band; obtain a response time of the smart home device responding to a control instruction for controlling the smart home device and an execution result of a target operation corresponding to the control instruction executed by the smart home device; determine a device area in which the smart home device is located; if the response time meets the preset time and the execution result meets the preset result, adjust a preset weight corresponding to the target frequency band to obtain a target weight corresponding to the target frequency band; and determine a communication strategy for adjusting a comprehensive score corresponding to the target frequency band according to the target weight corresponding to the target frequency band, so as to establish a communication connection with the smart home device located in the device area based on the target frequency band.

10. An electronic device, comprising: Comprise: a processor; and a memory having stored thereon executable code that, when executed, causes the processor to perform the frequency band-based communication method according to any one of claims 1-8.

11. One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform the frequency band-based communication method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Channel selection method, device and system for radio frequency communication, and storage medium

    CN115529095A

  • Multi-band switching method, system and equipment in portable WiFi (Wireless Fidelity) equipment

    CN118474822A