Communication method and device based on frequency band, equipment and storage medium
By implementing a frequency band-based communication method on the intelligent control terminal, and automatically selecting the optimal frequency band for communication connection, the problem of low communication efficiency between smart home devices and smart control terminals is solved, communication stability and efficiency are improved, and the device's response speed and connection reliability are improved.
Patent Information
- Application Number
- CN202411905166.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The communication efficiency between smart home devices and smart control terminals is inefficient, mainly due to problems such as frequency band interference, signal attenuation and channel congestion. The traditional manual configuration frequency band method is inefficient and difficult to adapt to dynamically changing communication environments.
By implementing a frequency band-based communication method on the intelligent control terminal, the detection data of multiple frequency bands and the preset weights of smart home devices are obtained, the comprehensive score of each frequency band is calculated, the optimal frequency band is automatically selected for communication connection, and the frequency band selection strategy is dynamically adjusted to adapt to the changing communication environment.
It improves the communication stability and efficiency between smart home devices and smart control terminals, reduces the error and inadequacy of manually configured frequency bands, avoids problems such as frequency band interference, signal attenuation and channel congestion, and improves the response speed and connection reliability of the equipment.
Smart Images

Figure CN119893519A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a frequency band-based communication method and device, an electronic device, and a storage medium. Background Art
[0002] In the current application of smart home devices, a smart control terminal can be used to realize remote control and automatic management of smart home devices. Therefore, the communication stability and efficiency between the smart control terminal and smart home devices are key factors. In the communication process between smart home devices and smart control terminals, the frequency band plays a key role.
[0003] However, due to the complexity and variability of the communication environment, problems such as frequency band interference, signal attenuation and channel congestion will occur, which will directly affect the communication quality and cause unstable or failed communication between the device and the intelligent control terminal. Traditional solutions usually rely on manual configuration of frequency bands, but this method is not only inefficient, but also difficult to adapt to the dynamically changing communication environment. Summary of the invention
[0004] The embodiment of the present 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] Correspondingly, an embodiment of the present application also provides a frequency band-based communication device, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0006] In order to solve the above problems, the embodiment of the present application discloses a frequency band-based communication method, which is applied to an intelligent control terminal, wherein there are multiple frequency bands for communication between the intelligent control terminal and the smart home device, and the method includes:
[0007] Acquire detection data corresponding to the frequency band and preset weights corresponding to the smart home device;
[0008] Calculate a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device;
[0009] determining a target frequency band from a plurality of frequency bands according to a comprehensive score corresponding to the frequency band;
[0010] A communication connection with the smart home device is established based on the target frequency band.
[0011] Optionally, the intelligent control terminal includes a weight template in which device models and preset weights correspond one to one, the smart home device includes an interface, a wireless communication component, and a Bluetooth component, the frequency band supported by the wireless communication component is a first frequency band, and the frequency band supported by the Bluetooth component is a second frequency band, and the acquiring of the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device includes:
[0012] Calling the interface to obtain detection data corresponding to the first frequency band;
[0013] Scan the Bluetooth component to obtain detection data corresponding to the second frequency band;
[0014] Determine a device model corresponding to the smart home device;
[0015] According to the device model corresponding to the smart home device, a preset weight corresponding to the smart home device is determined in the weight template.
[0016] Optionally, the preset weight includes a preset weight corresponding to the first frequency band and a preset weight corresponding to the second frequency band, and calculating the comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device includes:
[0017] Calculating a comprehensive score corresponding to the first frequency band according to the detection data corresponding to the first frequency band and a preset weight corresponding to the first frequency band;
[0018] A 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 corresponding to the second frequency band.
[0019] Optionally, after determining the target frequency band from the multiple frequency bands according to the comprehensive scores corresponding to the frequency bands, the method further includes:
[0020] An alternative frequency band is determined from multiple frequency bands according to the comprehensive score corresponding to the frequency band; the comprehensive score corresponding to the alternative 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] A 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.
[0023] Optionally, after establishing a communication connection with the smart home device based on the target frequency band, the method further includes:
[0024] Acquire the response time of the smart home device in response to the control instruction, and the execution result of the smart home device in executing the target operation;
[0025] Determine a device zone where the smart home device is located;
[0026] Determine a communication strategy corresponding to the device area according to the response time and the execution result.
[0027] Optionally, the intelligent control terminal includes a preset time and a preset result, and determining the communication strategy corresponding to the device area according to 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, adjusting the preset weight corresponding to the target frequency band to obtain the target weight corresponding to the target frequency band;
[0029] 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, so as to establish a communication connection based on the target frequency band and a smart home device located in the device area.
[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 instruction is sent to the smart home device through the alternative frequency band, so that the smart home device executes the target operation corresponding to the control instruction.
[0032] Optionally, the detection data corresponding to the first frequency band includes a plurality of first parameters, and the calculating the comprehensive score corresponding to the first frequency band according to the detection data corresponding to the first frequency band and a preset weight corresponding to the first frequency band includes:
[0033] Determine a first parameter value of each first parameter in the detection data corresponding to the first frequency band;
[0034] Determining a maximum first parameter value and a minimum second parameter value of the first parameter in a plurality of first frequency bands;
[0035] Determining a preset weight corresponding to the first parameter from the preset weights corresponding to the first frequency band;
[0036] Obtaining a weighted value of the first parameter according to the first parameter value, the maximum first parameter value, the minimum first parameter value, and a preset weight corresponding to the first parameter;
[0037] The weighted values of all the first parameters are accumulated to obtain a comprehensive score corresponding to the first frequency band.
[0038] Optionally, the detection data corresponding to the second frequency band includes a plurality of second parameters, and the calculating the comprehensive score corresponding to the second frequency band according to the detection data corresponding to the second frequency band and a preset weight corresponding to the second frequency band includes:
[0039] Determine a second parameter value of each second parameter in the detection data corresponding to the second frequency band;
[0040] Determining a preset weight corresponding to the second parameter from the preset weights corresponding to the second frequency band;
[0041] Multiplying the second parameter value by a preset weight value corresponding to the second parameter to obtain a weighted value of the second parameter;
[0042] The weighted values of all the second parameters are accumulated to obtain a comprehensive score corresponding to the second frequency band.
[0043] The embodiment of the present application further discloses a frequency band-based communication device, which is applied to an intelligent control terminal. There are multiple frequency bands for communication between the intelligent control terminal and the smart home device. The device includes:
[0044] An acquisition module, used to acquire detection data corresponding to the frequency band and preset weights corresponding to the smart home device;
[0045] A calculation module, used to calculate a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device;
[0046] A determination module, configured to determine a target frequency band from a plurality of frequency bands according to a comprehensive score corresponding to the frequency band;
[0047] An establishing module is used to establish a communication connection with the smart home device based on the target frequency band.
[0048] An embodiment of the present application further discloses an electronic device, comprising: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the frequency band-based communication method as described in any one of the embodiments of the present application.
[0049] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the frequency band-based communication method as described in any one of the embodiments of the present application.
[0050] Compared with the prior art, the embodiments of the present application have the following advantages:
[0051] In an embodiment of the present application, the intelligent control terminal obtains the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device; calculates the comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device; determines the target frequency band from multiple frequency bands according to the comprehensive score corresponding to the frequency band; and establishes a communication connection with the smart home device based on the target frequency band. The embodiment of the present application reduces the error and inadaptability of manually configured frequency bands by automatically selecting the optimal frequency band, thereby improving the stability and efficiency of communication between smart home devices and intelligent control terminals. It is possible to calculate the comprehensive score based on real-time detection data and preset weights, so as to dynamically select the best frequency band, adapt to the ever-changing communication environment, and avoid problems such as frequency band interference, signal attenuation and channel congestion. Through the comprehensive scoring mechanism, it is possible to more reasonably utilize available frequency band resources, avoid waste of frequency band resources, and improve the utilization efficiency of frequency band resources. By improving the stability and efficiency of communication, the user experience of smart home devices is improved, making the device respond faster and the connection more reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a communication diagram between a smart control terminal and smart home devices;
[0053] Figure 2 is a flowchart of a frequency band-based communication method embodiment of the present application;
[0054] Figure 3 is a structural block diagram of an embodiment of a communication device based on a frequency band of the present application;
[0055] Figure 4 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] Reference Figure 1 , is a communication diagram between an intelligent control terminal and a smart home device. There are multiple frequency bands for communication between the intelligent control terminal and the smart home device. Specifically, the intelligent control terminal selects the corresponding frequency band through an automatic switching component to establish a communication connection with the smart home device.
[0058] Reference Figure 2 , is a flow chart of a frequency band-based communication method embodiment of the present application, comprising the following steps:
[0059] Step 201: Acquire detection data corresponding to the frequency band and preset weights corresponding to the smart home device;
[0060] In the embodiment of the present application, in order to determine the optimal frequency band among multiple available frequency bands, necessary data and information need to be collected. First, the detection data of each available frequency band is obtained, which includes key parameters such as signal strength, interference level, channel occupancy, etc. of each frequency band. The preset weight reflects the importance of each parameter in selecting the optimal frequency band.
[0061] The embodiment of the present application lays a foundation for subsequent frequency band selection and score calculation by collecting these two key information, and accurate detection data and reasonable preset weights are the prerequisites for making correct decisions.
[0062] Step 202: Calculate a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device;
[0063] In the embodiment of the present application, each frequency band needs to be quantitatively evaluated. Specifically, a weighted summation method is used to combine the detection data of each frequency band and its corresponding weight to calculate the comprehensive score of each frequency band. This score can reflect the actual performance and device preference of each frequency band in the current environment.
[0064] The comprehensive score provides a quantitative evaluation index, which allows the comparison and ranking of different frequency bands. This quantitative evaluation method is more scientific and objective than relying solely on experience or a single index.
[0065] Step 203: determining a target frequency band from multiple frequency bands according to the comprehensive scores corresponding to the frequency bands;
[0066] In the embodiment of the present 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 way, the embodiment of the present application can ensure that the most suitable frequency band for communicating with the smart home device in the current environment is selected, which can maximize the communication quality and reduce interference, thereby optimizing device performance.
[0068] Step 204: Establish a communication connection with the smart home device based on the target frequency band.
[0069] In an embodiment of the present application, a communication connection is established with a smart home device using a selected target frequency band to ensure the stability and efficiency of the communication.
[0070] The embodiments of the present application can ensure the reliability, speed and efficiency of communication by using an optimized selected frequency band, thereby improving the overall performance and user experience of smart home devices.
[0071] In an embodiment of the present application, the intelligent control terminal obtains the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device; calculates the comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device; determines the target frequency band from multiple frequency bands according to the comprehensive score corresponding to the frequency band; and establishes a communication connection with the smart home device based on the target frequency band. The embodiment of the present application reduces the error and inadaptability of manually configured frequency bands by automatically selecting the optimal frequency band, thereby improving the stability and efficiency of communication between smart home devices and intelligent control terminals. It is possible to calculate the comprehensive score based on real-time detection data and preset weights, so as to dynamically select the best frequency band, adapt to the ever-changing communication environment, and avoid problems such as frequency band interference, signal attenuation and channel congestion. Through the comprehensive scoring mechanism, it is possible to more reasonably utilize available frequency band resources, avoid waste of frequency band resources, and improve the utilization efficiency of frequency band resources. By improving the stability and efficiency of communication, the user experience of smart home devices is improved, making the device respond faster and the connection more reliable.
[0072] In one embodiment of the present application, the intelligent control terminal includes a weight template in which device models and preset weights correspond one to one, the smart home device includes an interface, a wireless communication component, and a Bluetooth component, the frequency band supported by the wireless communication component is a first frequency band, and the frequency band supported by the Bluetooth component is a second frequency band, and the obtaining of the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device includes:
[0073] Calling the interface to obtain detection data corresponding to the first frequency band;
[0074] Scan the Bluetooth component to obtain detection data corresponding to the second frequency band;
[0075] Determine a device model corresponding to the smart home device;
[0076] According to the device model corresponding to the smart home device, a preset weight corresponding to the smart home device is determined in the weight template.
[0077] In the embodiment of the present application, a wireless communication component (such as a Wi-Fi module) is built into the smart home device. After switching to each frequency band in turn, the wireless communication component performs signal detection. On each frequency band, the wireless communication component detects the received signal strength, interference level, channel occupancy and other parameters. Specifically, the intelligent control terminal obtains the detection data of the first frequency band supported by the wireless communication component, such as signal strength, channel occupancy, interference level, etc., 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 (decibel milliwatt).
[0080] Function: Signal strength is an important indicator to measure 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: Detect the signal strength on the first frequency band through the receiving function of the 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 to the current communication signal from other wireless signals existing on the first frequency band. Interference signals may come from other wireless devices (such as routers, microwave ovens, Bluetooth devices, etc.).
[0084] Function: The interference level directly affects the stability of communication. The higher the interference level, the worse the communication quality; the lower the interference level, the better the communication quality.
[0085] Detection method: Detect the interference signal strength on the first frequency band through the signal analysis function of the wireless communication component (such as the Wi-Fi module).
[0086] 3) Channel occupancy corresponding to the first frequency band
[0087] Definition: The number and occupancy level of currently occupied channels on the first frequency band. A channel is a transmission path for wireless communications, and multiple devices may occupy the same channel at the same time.
[0088] Function: Channel occupancy directly affects communication efficiency. The less the channel is occupied, the higher the communication efficiency; the more the channel is occupied, the lower the communication efficiency.
[0089] Detection method: Detect the occupancy of each channel on the first frequency band through 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). Bluetooth components will actively broadcast BLE hotspots and carry RSSI (received signal strength indication) information during the broadcast process. Specifically, the smart control terminal will scan nearby Bluetooth hotspots. During the scanning process, the smart control terminal will receive the BLE hotspot information broadcast by the Bluetooth component, including the RSSI value. The smart control terminal obtains the RSSI value of the corresponding BLE hotspot through the scanned BLE hotspot information, and the RSSI value is the detection data of the second frequency band supported by the Bluetooth component, such as the signal strength (RSSI) of the Bluetooth hotspot, the number of device connections, etc.
[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] Function: RSSI is an important indicator for measuring the quality of Bluetooth communication. The higher the RSSI value, the stronger the signal strength and the better the communication quality; the lower the RSSI value, the weaker the signal strength and the worse the communication quality.
[0094] Detection method: Detect the RSSI value on the second frequency band through the receiving function of the Bluetooth component (such as the BLE module).
[0095] 2) Number of devices connected to the second frequency band
[0096] Definition: The number of device connections refers to the number of devices that have established connections with the current Bluetooth component (such as a BLE module) on the second frequency band.
[0097] Function: The number of device connections directly affects the load of Bluetooth communication. The more connections, the greater the communication load, and the communication quality may decrease; the fewer connections, the smaller the communication load, and the communication quality may improve.
[0098] Detection method: Through the connection management function of the Bluetooth component (such as the BLE module), count the number of devices currently connected to the component.
[0099] In an embodiment of the present application, by calling an interface to obtain detection data of the first frequency band, and scanning the Bluetooth component to obtain detection data of the second frequency band, the communication quality of each frequency band can be comprehensively and accurately evaluated. Combined with the preset weights corresponding to the device model, the accuracy of the frequency band selection is further improved to ensure the selection of the optimal frequency band. Since smart home devices support both wireless communication components (such as Wi-Fi) and Bluetooth components (such as BLE), the embodiment of the present application can cover different frequency band requirements. By respectively obtaining detection data of the first frequency band and the second frequency band, it can flexibly respond to multi-band communication scenarios and improve the flexibility and adaptability of communication.
[0100] In actual applications, the cloud usually stores and manages relevant information about the device, such as device model, parameter weight template, user configuration data, etc. The intelligent control terminal can interact with the cloud, such as uploading device data, downloading cloud configuration (such as weight template), and data synchronization is performed between the intelligent control terminal and the cloud.
[0101] In the embodiment of the present application, the weight template is a set of predefined parameter weights used to calculate the comprehensive score of the frequency band. Specifically, different device models may require different weight templates to adapt to their specific communication needs.
[0102] The cloud will store weight templates corresponding to the device model, which may be generated based on historical data, experimental tests or algorithm optimization. The intelligent control terminal can request the weight template from the cloud, so the weight template is stored in the intelligent control terminal.
[0103] In the embodiment of the present application, the model of the smart home device is determined according to the identification information of the device (such as the device serial number, model, etc.) According to the model of the device, the preset weight corresponding to the device model is obtained from the weight template of the smart control terminal.
[0104] Specifically, the intelligent control terminal uses the Bluetooth scanning function to scan nearby BLE hotspots and obtain hotspot information (such as device identification, RSSI, etc.); based on the device identification in the hotspot information (such as MAC address, UUID, etc.), the intelligent control terminal identifies the product model of the device. For example, the device identification 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 and requests a weight template corresponding to the 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 sent by the cloud, the intelligent control terminal parses it. The weight template usually contains weight values of multiple parameters, such as signal strength, interference level, channel occupancy, etc.; the intelligent control terminal extracts the preset weights related to the current device based on the parsed weight template.
[0105] For example, the weight template may include the following:
[0106] Signal strength weight: 0.4
[0107] Weight of interference level: 0.3
[0108] Weight of channel occupancy: 0.2
[0109] Weight of other parameters: 0.1
[0110] The embodiment of the present application also uses a weight template to dynamically adjust the weight of each parameter according to the device model to ensure that the communication resources are used more reasonably in different devices and environments. For example, in an environment with large signal interference, the weight of the interference level can be preset to be larger than the weight of the channel occupancy to give priority to selecting the frequency band with less interference.
[0111] In addition, the embodiment of the present application avoids the problem of frequency band interference and signal attenuation by automatically detecting and selecting the optimal frequency band, thereby improving the stability and efficiency of communication. At the same time, the detection data of the Bluetooth component (such as the RSSI of the BLE hotspot) further enhances the reliability of the frequency band selection.
[0112] In an embodiment of the present application, the preset weight includes a preset weight corresponding to the first frequency band and a preset weight corresponding to the second frequency band, and the calculating the comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device includes:
[0113] Calculating a comprehensive score corresponding to the first frequency band according to the detection data corresponding to the first frequency band and a preset weight corresponding to the first frequency band;
[0114] A 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 corresponding to the second frequency band.
[0115] The first frequency band refers to the frequency band supported by the wireless communication component (such as the Wi-Fi module) in the smart home device. The detection data corresponding to the first frequency band includes parameters such as the signal strength, interference level, and channel occupancy of the first frequency band. The pre-set weight values for each parameter of the first frequency band can reflect the importance of these parameters in the frequency band selection.
[0116] Similarly, the second frequency band refers to the frequency band supported by the Bluetooth component (such as the BLE module) in the smart home device. The detection data corresponding to the second frequency band includes parameters such as the signal strength (RSSI) of the second frequency band and the number of device connections. The pre-set weight values of the parameters of the second frequency band can reflect the importance of these parameters in the frequency band selection.
[0117] The embodiment of the present application can more comprehensively evaluate the communication quality of each frequency band and ensure the selection of the optimal frequency band by calculating the comprehensive scores of the first frequency band and the second frequency band respectively. The smart home device supports both wireless communication components (such as Wi-Fi) and Bluetooth components (such as BLE). By calculating the comprehensive scores of the first frequency band and the second frequency band respectively, it can flexibly respond to multi-band communication scenarios and improve the flexibility and adaptability of communication. Through the weight template, the weight of each parameter can be dynamically adjusted according to the device model to ensure that the use of communication resources is more reasonable in different devices and environments.
[0118] In one embodiment of the present application, after determining the target frequency band from the multiple frequency bands according to the comprehensive scores corresponding to the frequency bands, the method further includes:
[0119] An alternative frequency band is determined from multiple frequency bands according to the comprehensive score corresponding to the frequency band; the comprehensive score corresponding to the alternative frequency band is lower than the comprehensive score corresponding to the target frequency band.
[0120] In an embodiment of the present application, after selecting the target frequency band, the intelligent control terminal will sort the other frequency bands according to the comprehensive score, and select the frequency band with a score lower than the target frequency band as the alternative frequency band. The comprehensive score of the alternative frequency band is lower than the target frequency band, but it still has a certain communication quality and can be used as an alternative to the target frequency band. For example, if the comprehensive score of the target frequency band is 90 points, the comprehensive score of the alternative frequency band may be 80 points, 70 points, etc.
[0121] The smart control terminal will give priority to using the target frequency band to establish a communication connection with the smart home device. If the target frequency band has an abnormality (such as signal interference, channel congestion, etc.), the smart control terminal can switch to an alternative frequency band to ensure the continuity and stability of communication.
[0122] By selecting an alternative frequency band, the embodiment of the present application enables the intelligent control terminal to quickly switch to the alternative frequency band when an abnormality occurs in the target frequency band, thereby avoiding communication interruption, improving communication reliability, ensuring the response speed and connection reliability of the device, and improving user experience. In a complex wireless environment, the communication quality of the frequency band may change dynamically. By setting the alternative frequency band, the intelligent control terminal can adapt to such changes and ensure continuous optimization of communication performance.
[0123] In one embodiment of the present application, establishing a communication connection with the smart home device based on the target frequency band includes:
[0124] A 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.
[0125] In an embodiment of the present application, after determining the target frequency band, the intelligent control terminal sends the control instruction to the smart home device through the frequency band.
[0126] Control instructions can be operation instructions issued by users through intelligent control terminals (such as turning on and off lights, adjusting temperature, etc.), or they can be preset instructions in automation scenarios.
[0127] After receiving the control command, the smart home device will perform the corresponding operation according to the command content. For example, if it is "adjust the temperature", the temperature of the air conditioner will be adjusted.
[0128] Specifically, the intelligent control terminal sends the control instruction to the smart home device through the target frequency band. The control instruction usually includes the instruction type (such as switch, adjustment, etc.), the target device identification (such as device ID), and the operating parameters (such as temperature value, brightness value, etc.). The smart home device receives the control instruction through the component corresponding to the target frequency band (wireless communication component or Bluetooth component). The smart home device parses the control instruction and performs the corresponding operation according to the instruction content. For example, if the instruction is "turn on the light", the device will start the light control module and perform the light-on operation.
[0129] The embodiment of the present application sends control instructions through the target frequency band, which can ensure the stability and efficiency of instruction transmission and avoid frequency band interference and signal attenuation problems. Since the target frequency band is the frequency band with the highest comprehensive score and the best communication quality, it can reduce the delay of instruction transmission and improve the response speed of the device. Through efficient communication connections, smart home devices can quickly respond to user control instructions and improve the user experience. By sending control instructions through the target frequency band, remote control and automated management can be achieved. Users can remotely operate the device through the intelligent control terminal, or the device can automatically perform operations according to preset scenarios, which simplifies user operations and lowers the threshold for use.
[0130] In one embodiment of the present application, after establishing a communication connection with the smart home device based on the target frequency band, the method further includes:
[0131] Acquire the response time of the smart home device in response to the control instruction, and the execution result of the smart home device in executing the target operation;
[0132] Determine a device zone where the smart home device is located;
[0133] Determine a communication strategy corresponding to the device area according to the response time and the execution result.
[0134] In the embodiment of the present application, the response time refers to the time from when the control instruction is issued to when the smart home device starts to respond. The execution result refers to whether the smart home device successfully executes the target operation corresponding to the control instruction (such as turning on and off the light, adjusting the temperature, etc.).
[0135] Devices are divided into different zones based on their physical location or network environment. For example, devices may be located in different rooms, floors, or network coverage areas. Specifically, the zone where a device is located can be determined by information such as the device's IP address, Wi-Fi signal strength, or Bluetooth signal strength.
[0136] According to the response time and execution results of the device, the effectiveness of the current communication strategy is evaluated, and the communication strategy is adjusted according to the area where the device is located. Specifically, if the response time and execution results of the device are within the expected range (that is, the communication quality is good), 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 large interference) and determine the scores of each frequency band corresponding to the area.
[0137] By adding weight parameters to feed back to the intelligent control terminal, the frequency band selection strategy is optimized to avoid frequent switching of communication modes in the same area, thereby improving the stability and efficiency of communication.
[0138] The embodiment of the present application optimizes the frequency band selection strategy to avoid frequent switching of communication modes in the same area, thereby ensuring the stability and efficiency of communication. The intelligent control terminal can dynamically adjust the communication strategy based on real-time detection data and device feedback to adapt to the ever-changing wireless environment and ensure continuous optimization of communication performance. By dynamically adjusting the communication strategy, the intelligent control terminal can reduce the risk of communication interruption and ensure the stable operation of the device in a complex wireless environment.
[0139] By optimizing the communication strategy, the response time and operation failure rate of the device are reduced, and the user experience is improved. In addition, the intelligent control terminal can divide the device into different areas according to the physical location or network environment of the device, and formulate a personalized communication strategy for each area, supporting multi-area management. The intelligent control terminal automatically adjusts the communication strategy according to the feedback and communication effect of the device, reducing the need for manual intervention and simplifying the complexity of device management and maintenance.
[0140] In one embodiment of the present application, the intelligent control terminal includes a preset time and a preset result, and determining the communication strategy corresponding to the device area according to 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, adjusting the preset weight corresponding to the target frequency band to obtain the target weight corresponding to the target frequency band;
[0142] 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, so as to establish a communication connection based on the target frequency band and a smart home device located in the device area.
[0143] The preset time is the response time threshold preset by the intelligent control terminal, indicating the response speed that the device should achieve after receiving the control command. The preset result refers to the execution result standard preset by the intelligent control terminal, indicating that the device responds successfully and executes the target operation of the control command.
[0144] If the device's response time and execution results meet the preset standards (such as short response time and high operation success rate), the intelligent control terminal will adjust the preset weight of the target frequency band based on these feedback information and generate the target weight 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 is adjusted from 0.3 to 0.2, and the channel occupancy weight is adjusted from 0.2 to 0.1.
[0145] The adjusted weight reflects the importance of the target frequency band in the current communication environment. According to the target weight, the intelligent control terminal determines the strategy used to communicate with the smart home devices in the device area to ensure the stability and efficiency of communication. Specifically, after the weight is adjusted, the comprehensive score of the target frequency band will also change. For example, if the comprehensive score of the target frequency band is high, the intelligent control terminal will give priority to using this frequency band to communicate with the device. For another example, if the signal interference in a certain area is large, the intelligent control terminal will increase the weight of the interference level and feed it back to the intelligent control terminal to avoid frequent switching of communication methods in the same area.
[0146] In an embodiment of the present application, by obtaining the response time and execution results of the device, determining whether it meets the preset standards, and adjusting the preset weights of the target frequency band according to the feedback information, generating the target weights, and determining the communication strategy, it is possible to optimize the communication quality, improve the stability and efficiency of the communication, adapt to the dynamic environment, and enhance the user experience.
[0147] In one embodiment of the present 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 instruction is sent to the smart home device through the alternative frequency band, so that the smart home device executes the target operation corresponding to the control instruction.
[0149] If the response time of the device is greater than the preset time, and / or the execution result does not meet the preset result, it is considered that the communication quality of the target frequency band is poor.
[0150] Exemplarily, the preset time is 100 milliseconds, and the preset result is that the operation success rate should reach 95%. When the response time is 101 milliseconds and the operation success rate is 80%, it is considered that the communication quality of the target frequency band is poor.
[0151] At this time, the intelligent control terminal sends the control command to the smart home device through the alternative frequency band to ensure that the device can perform the target operation. After receiving the control command, the smart home device performs the corresponding operation according to the command content.
[0152] In an embodiment of the present application, by selecting an alternative frequency band to issue control instructions when the communication quality of the target frequency band is poor, it can 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 an embodiment of the present application, the detection data corresponding to the first frequency band includes a plurality of first parameters, and the calculating the comprehensive score corresponding to the first frequency band according to the detection data corresponding to the first frequency band and the preset weight corresponding to the first frequency band includes:
[0154] Determine a first parameter value of each first parameter in the detection data corresponding to the first frequency band;
[0155] Determining a maximum first parameter value and a minimum second parameter value of the first parameter in a plurality of first frequency bands;
[0156] Determining a preset weight corresponding to the first parameter from the preset weights corresponding to the first frequency band;
[0157] Obtaining a weighted value of the first parameter according to the first parameter value, the maximum first parameter value, the minimum first parameter value and a preset weight corresponding to the first parameter;
[0158] The weighted values of all the first parameters are accumulated to obtain a comprehensive score corresponding to the first frequency band.
[0159] In an embodiment of the present application, the detection data of the first frequency band includes multiple first parameters, such as signal strength, interference level, channel occupancy, etc. The intelligent control terminal needs to extract the specific value of each first parameter (i.e., the first parameter value) from the detection data, and also needs to determine the maximum value and the minimum value from the multiple first parameter values. The intelligent control terminal finds the corresponding preset weight of the first parameter from the preset weights according to the type of the first parameter.
[0160] Specifically, in the embodiment of the present application, the comprehensive score S1 corresponding to the first frequency band is calculated by the following formula (1):
[0161]
[0162] Where j represents the number of the first parameter, w j represents the preset weight corresponding to the jth first parameter, P j represents the first parameter value, P minj represents the minimum value of the first parameter of the jth frequency band (minimum first parameter value), P maxj represents the maximum value of the j-th first parameter in all first frequency bands (maximum first parameter value).
[0163] In an embodiment of the present application, the detection data corresponding to the second frequency band includes a plurality of second parameters, and the calculating the comprehensive score corresponding to the second frequency band according to the detection data corresponding to the second frequency band and the preset weight corresponding to the second frequency band includes:
[0164] Determine a second parameter value of each second parameter in the detection data corresponding to the second frequency band;
[0165] Determining a preset weight corresponding to the second parameter from the preset weights corresponding to the second frequency band;
[0166] Multiplying the second parameter value by a preset weight value corresponding to the second parameter to obtain a weighted value of the second parameter;
[0167] The weighted values of all the second parameters are accumulated to obtain a comprehensive score corresponding to the second frequency band.
[0168] In an embodiment of the present application, the detection data of the second frequency band includes multiple second parameters, such as RSSI (received signal strength indication) and the number of device connections. The intelligent control terminal needs to extract the specific value of each second parameter (i.e., the second parameter value) from the detection data. The intelligent control terminal finds the corresponding preset weight of the second parameter from the preset weights according to the type of the second parameter. The intelligent control terminal multiplies the value of each second parameter by its corresponding preset weight to obtain the weighted value of the parameter.
[0169] Specifically, in the embodiment of the present application, the comprehensive score S2 corresponding to the first frequency band is calculated by the following formula (2):
[0170] S2=w1·RSSI-w2·Device_count (2)
[0171] Among them, PSSI represents the signal strength value, w1 represents the preset weight corresponding to the signal strength value, Device_count represents the number of device connections, and w2 represents the preset weight corresponding to the number of device connections.
[0172] The embodiments of the present application reduce the errors and inadaptability of manually configured frequency bands by automatically selecting the optimal frequency band, thereby improving the stability and efficiency of communication between smart home devices and smart control terminals. It is possible to calculate a comprehensive score based on real-time detection data and preset weights, thereby dynamically selecting the best frequency band, adapting to the ever-changing communication environment, and avoiding problems such as frequency band interference, signal attenuation, and channel congestion. Through the comprehensive scoring mechanism, it is possible to more reasonably utilize available frequency band resources, avoid wasting frequency band resources, and improve the utilization efficiency of frequency band resources. By improving the stability and efficiency of communication, the user experience of smart home devices is improved, making the device respond faster and the connection more reliable.
[0173] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, an example is given below for illustrative purposes:
[0174] Assume that a user uses a smart control terminal (such as a mobile phone APP) at home to control multiple smart home devices, including smart light bulbs, smart air conditioners, and smart door locks. These devices communicate with the smart control terminal through wireless communication components (such as Wi-Fi) and Bluetooth components (such as BLE). Since there are multiple wireless devices in the home environment (such as routers, Bluetooth headsets, etc.), frequency band interference and signal attenuation problems are common, resulting in slow device response or unstable communication.
[0175] 1) Frequency band detection and data acquisition
[0176] The intelligent 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 the Bluetooth component (such as BLE) to obtain the detection data of the second frequency band, including RSSI (received signal strength indication) and the number of device connections.
[0178] 2) Weight template and preset weights
[0179] The intelligent control terminal obtains the corresponding preset weights from the weight template according to the device model of the smart home device. For example, the weight template of a smart light bulb may be: signal strength weight 0.4, interference level weight 0.3, channel occupancy weight 0.2, and device connection number weight 0.1.
[0180] 3) Comprehensive score calculation**
[0181] According to the detection data of the first frequency band and the preset weights, the comprehensive score of the first frequency band is calculated. For example, if the signal strength is -50dBm, the interference level is -60dBm, and the channel occupancy is 20%, the comprehensive score of the first frequency band is: Comprehensive score 1 = 0.4 × (-50) + 0.3 × (-60) + 0.2 × 20 = -30
[0182] Similarly, the comprehensive score of the second frequency band is calculated based on the detection data of the second frequency band and the preset weights. For example, if the RSSI is -70dBm and the number of connected devices is 3, the comprehensive score of the second frequency band is: Comprehensive score 2 = 0.4 × (-70) + 0.1 × 3 = -28
[0183] 4) Target frequency band selection
[0184] Compare the comprehensive scores of the first and second frequency bands, and select the frequency band with the highest score as the target frequency band. In this example, the comprehensive score of the first frequency band is -30, and the comprehensive score of the second frequency band is -28, so the second frequency band is selected as the target frequency band.
[0185] 5) Communication connection establishment
[0186] The smart control terminal establishes a communication connection with the smart home device through the target frequency band (the second frequency band) and issues a control command. For example, the user sends a "turn on the light" command through the smart control terminal, and the smart bulb performs the light-on operation after receiving the command.
[0187] 6) Response time and execution result feedback
[0188] The intelligent 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 that the light is turned on successfully.
[0189] According to the response time and execution results, the preset weight of the target frequency band is adjusted. If the response time and execution results meet the preset standards, the weight of the target frequency band is increased to optimize future communication strategies.
[0190] 7) Alternative frequency band selection
[0191] If the communication quality of the target frequency band is poor (such as long response time or failed execution result), the intelligent control terminal will send the control command to the smart home device through the alternative frequency band to ensure that the device can perform the target operation.
[0192] Through the above examples, it can be seen that the embodiment of the present application reduces the error and inadaptability of manually configuring the frequency band by automatically selecting the optimal frequency band, thereby improving the stability and efficiency of communication between smart home devices and smart control terminals. Through the comprehensive scoring mechanism, available frequency band resources can be used more reasonably, avoiding the waste of frequency band resources and improving user experience.
[0193] Another example, suppose Figure 1 The scores of each frequency band in are as follows:
[0194] Band 1: 50
[0195] Band 2: 66
[0196] Band 3: 25
[0197] Band 4: 59
[0198] Band 5: 85
[0199] Band 6: 70
[0200] Then, the smart control terminal will use band 5 as the target band and band 6 as the alternative band, and send the control command to the smart home device through band 5. If the response time and execution result of the smart home device do not meet expectations, the control command will be sent to the smart home device through band 6.
[0201] The embodiments of the present application reduce the errors and inadaptability of manually configured frequency bands by automatically selecting the optimal frequency band, thereby improving the stability and efficiency of communication between smart home devices and smart control terminals. It is possible to calculate a comprehensive score based on real-time detection data and preset weights, thereby dynamically selecting the best frequency band, adapting to the ever-changing communication environment, and avoiding problems such as frequency band interference, signal attenuation, and channel congestion. Through the comprehensive scoring mechanism, it is possible to more reasonably utilize available frequency band resources, avoid wasting frequency band resources, and improve the utilization efficiency of frequency band resources. By improving the stability and efficiency of communication, the user experience of smart home devices is improved, making the device respond faster and the connection more reliable.
[0202] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, 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 application.
[0203] On the basis of the above embodiments, this embodiment further provides a frequency band-based communication device, which is applied to electronic devices such as terminal devices and servers.
[0204] Reference Figure 3 , shows a structural block diagram of an embodiment of a communication device based on a frequency band of the present application, which may specifically include the following modules:
[0205] An acquisition module 301 is used to acquire detection data corresponding to the frequency band and a preset weight corresponding to the smart home device;
[0206] A calculation module 302, configured to calculate a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and a preset weight corresponding to the smart home device;
[0207] A determination module 303, configured to determine a target frequency band from a plurality of frequency bands according to a comprehensive score corresponding to the frequency band;
[0208] The establishing module 304 is used to establish a communication connection with the smart home device based on the target frequency band.
[0209] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0210] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).
[0211] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 4 An exemplary apparatus 400 that may be used to implement various embodiments described in this application is schematically illustrated.
[0212] For one embodiment, Figure 4 An exemplary apparatus 400 is shown having one or more processors 402, a control module (chip set) 404 coupled to at least one of the processor(s) 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] The processor 402 may include one or more single-core or multi-core processors, and the processor 402 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 400 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present 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 combined with the one or more computer-readable media and configured to execute the instructions 414 to implement a module to perform the actions described in the present disclosure.
[0215] For one embodiment, control module 404 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 402 and / or any suitable device or component in communication with 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] The memory 406 may be used, for example, to load and store data and / or instructions 414 for the device 400. For one embodiment, the memory 406 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 406 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0218] For one embodiment, control module 404 may include one or more input / output controllers to provide interfaces to NVM / storage device 408 and input / output device(s) 410 .
[0219] For example, NVM / storage 408 may be used to store data and / or instructions 414. NVM / storage 408 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0220] NVM / storage device 408 may include storage resources that are physically part of the device on which apparatus 400 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 408 may be accessed via input / output device(s) 410 over a network.
[0221] (One or more) input / output devices 410 may provide an interface for the apparatus 400 to communicate with any other appropriate device, and the input / output device 410 may include a communication component, an audio component, a sensor component, etc. The network interface 412 may provide an interface for the apparatus 400 to communicate through one or more networks, and the apparatus 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, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0222] For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 404. For one embodiment, at least one of the processor(s) 402 may be packaged together with the logic of one or more controllers of the control module 404 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404. For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with the logic of one or more controllers of the control module 404 to form a system-on-chip (SoC).
[0223] In various embodiments, the device 400 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 400 may have more or fewer components and / or different architectures. For example, in some embodiments, the device 400 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0224] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0225] 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.
[0226] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0227] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable frequency-band-based communication terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable frequency-band-based communication terminal device generate instructions for implementing the processes in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0228] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable frequency band-based communication terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0229] These computer program instructions can also be loaded onto a computer or other programmable frequency band-based communication terminal device, so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0230] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0231] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0232] The above is a detailed introduction to a frequency band-based communication method and device, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A frequency band-based communication method, characterized in that: Applied to an intelligent control terminal, there are multiple frequency bands for communication between the intelligent control terminal and the smart home device, and the method includes: Acquire detection data corresponding to the frequency band and preset weights corresponding to the smart home device; Calculate a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device; determining a target frequency band from a plurality of frequency bands according to a comprehensive score corresponding to the frequency band; A communication connection with the smart home device is established based on the target frequency band.
2. The method according to claim 1, characterized in that The intelligent control terminal includes a weight template in which device models and preset weights correspond one to one, the smart home device includes an interface, a wireless communication component and a Bluetooth component, the frequency band supported by the wireless communication component is a first frequency band, and the frequency band supported by the Bluetooth component is a second frequency band, and the acquisition of detection data corresponding to the frequency band and the preset weight corresponding to the smart home device includes: Calling the interface to obtain detection data corresponding to the first frequency band; Scan the Bluetooth component to obtain detection data corresponding to the second frequency band; Determine a device model corresponding to the smart home device; According to the device model corresponding to the smart home device, a preset weight corresponding to the smart home device is determined in the weight template.
3. The method according to claim 2, characterized in that The preset weights include a preset weight corresponding to the first frequency band and a preset weight corresponding to the second frequency band, and calculating the comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device, including: Calculating a comprehensive score corresponding to the first frequency band according to the detection data corresponding to the first frequency band and a preset weight corresponding to the first frequency band; A 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 corresponding to the second frequency band.
4. The method according to claim 1, characterized in that: After determining the target frequency band from the multiple frequency bands according to the comprehensive scores corresponding to the frequency bands, the method further includes: An alternative frequency band is determined from multiple frequency bands according to the comprehensive score corresponding to the frequency band; the comprehensive score corresponding to the alternative frequency band is lower than the comprehensive score corresponding to the target frequency band.
5. The method according to claim 1, characterized in that The establishing a communication connection with the smart home device based on the target frequency band includes: A 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 according to claim 7, characterized in that: After establishing a communication connection with the smart home device based on the target frequency band, the method further includes: Acquire the response time of the smart home device in response to the control instruction, and the execution result of the smart home device in executing the target operation; Determine a device zone where the smart home device is located; Determine a communication strategy corresponding to the device area according to the response time and the execution result.
7. The method according to claim 6, characterized in that The intelligent control terminal includes a preset time and a preset result, and the communication strategy corresponding to the device area is determined according to the response time and the execution result, including: If the response time meets the preset time and the execution result meets the preset result, adjusting the preset weight corresponding to the target frequency band 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, so as to establish a communication connection based on the target frequency band and a smart home device located in the device area.
8. The method according to claim 1, characterized in that The establishing a communication connection with the smart home device based on the target frequency band 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 executes the target operation corresponding to the control instruction.
9. The method according to claim 1, characterized in that: The detection data corresponding to the first frequency band includes a plurality of first parameters, and the calculating the comprehensive score corresponding to the first frequency band according to the detection data corresponding to the first frequency band and the preset weight corresponding to the first frequency band includes: Determine 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 corresponding to the first parameter from the preset weights 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 first parameter value, and a preset weight corresponding to the first parameter; The weighted values of all the first parameters are accumulated to obtain a comprehensive score corresponding to the first frequency band.
10. The method according to claim 1, characterized in that The detection data corresponding to the second frequency band includes a plurality of second parameters, and the calculating the comprehensive score corresponding to the second frequency band according to the detection data corresponding to the second frequency band and the preset weight corresponding to the second frequency band includes: Determine a second parameter value of each second parameter in the detection data corresponding to the second frequency band; Determining a preset weight corresponding to the second parameter from the preset weights corresponding to the second frequency band; Multiplying the second parameter value by a preset weight value corresponding to the second parameter to obtain a weighted value of the second parameter; The weighted values of all the second parameters are accumulated to obtain a comprehensive score corresponding to the second frequency band.
11. A frequency band based communication device, characterized in that: Applied to an intelligent control terminal, there are multiple frequency bands for communication between the intelligent control terminal and the smart home device, and the device includes: An acquisition module, used to acquire detection data corresponding to the frequency band and preset weights corresponding to the smart home device; A calculation module, used to calculate a comprehensive score corresponding to the frequency band according to the detection data corresponding to the frequency band and the preset weight corresponding to the smart home device; A determination module, configured to determine a target frequency band from a plurality of frequency bands according to a comprehensive score corresponding to the frequency band; An establishing module is used to establish a communication connection with the smart home device based on the target frequency band.
12. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the frequency band-based communication method as claimed in any one of claims 1 to 10.
13. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to execute the frequency band-based communication method according to any one of claims 1 to 10.
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
WiFi device channel adjustment method and device, storage medium and product
CN118714654A
Systems and methods for identifying wireless channels
US20230029256A1
Cited By
Wireless communication method and device of intelligent door lock
CN120224410A