A multi-protocol fusion-based whole-house intelligent control method and system
Patent Information
- Application Number
- CN202611086837.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-21
- Publication Date
- 2026-09-29
AI Technical Summary
这就导致当多个不同的智能家居同时进行通信时,彼此之间会出现不同程度的干扰,这严重影响了综合管理效果
本发明通过邻域求和约束,使得所选信道在物理层上存在一个宽度为5MHz的“洁净区”,足够容纳Zigbee的2MHz信号带宽且有充足保护间隔。由此,有效提升信道迁移后的通信成功率并降低因邻道干扰导致的重传和丢包。
Smart Images

Figure CN122845317A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home control technology, and in particular to a whole-house smart control method and system based on multi-protocol fusion. Background Technology
[0002] With the continuous iteration of IoT, AI, and edge computing technologies, home intelligence has evolved from remote control of single devices to a system-level ecosystem of whole-house sensing, linkage, and autonomous decision-making. Today, lighting, security, environmental control, audio-visual entertainment, and even home appliances are all endowed with "smart" attributes, leading to an exponential increase in data nodes within the home. This trend has spurred a strong demand from users for centralized and visualized management, giving rise to open-source smart home integrated management platforms such as Home Assistant. These platforms, through a unified data bus and rule engine, attempt to connect disparate devices to a single management interface, enabling users to set up scene linkages, scheduled tasks, and status monitoring across brands and categories, thereby truly achieving the convenient experience of "managing the whole family with one screen," becoming the central nervous system of the modern smart home.
[0003] However, in practice, different types and brands of smart home devices often use different communication solutions. Common communication solutions include Zigbee, Bluetooth, and Wi-Fi. Zigbee uses 16 channels in the 2.4GHz band (channels 11-26, spaced 5MHz apart). Bluetooth uses 79 channels in the 2.4GHz band, employing frequency hopping spread spectrum. Wi-Fi uses 13 channels in the 2.4GHz band with a bandwidth of 20MHz. It is evident that there is some overlap between these three solutions. This leads to varying degrees of interference when multiple smart home devices communicate simultaneously, severely impacting overall management effectiveness.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] This invention provides a whole-house smart control method based on multi-protocol fusion, including: S1: performing detection on frequency points within 2400 to 2483.5MHz to obtain the interference margin at the frequency points, and obtaining the frequency point status table based on the interference margin; S2: Map the operating bandwidths of Wi-Fi, Zigbee, and Bluetooth to the frequency point status table to obtain the initial available channel sets for Wi-Fi, Zigbee, and Bluetooth respectively; S3: Preset maximum queuing delay and calculate real-time scheduling weight based on the maximum queuing delay; S4: Calculate the time slot ratio of Zigbee and Bluetooth based on the real-time scheduling weight; S5: When the interference margin is higher than the preset engineering threshold for a continuous period, the target channel to be migrated is selected based on the available channel set to execute the channel migration process.
[0006] Furthermore, S1 also includes the following steps: Detection is performed on frequency points within the range of 2400 to 2483.5 MHz to obtain the received signal strength and local noise power at each frequency point. The difference between the received signal strength and the local noise power is calculated to obtain the interference margin.
[0007] This is for interference margin; Let k be the received signal strength at frequency k. Let k be the local noise power at frequency k. Compare the interference margin with the preset engineering threshold. When the interference margin reaches or exceeds the engineering threshold, mark the corresponding frequency point as unavailable. When the interference margin does not reach the engineering threshold, mark the corresponding frequency point as available to obtain the frequency point status table.
[0008] Furthermore, S2 also includes the following steps: Map the operating bandwidths of Wi-Fi, Zigbee, and Bluetooth onto a frequency point status table to form a binary matrix C; In the binary matrix C, the frequency points covered by the working bandwidth are marked as 1, and the frequency points not covered by the working bandwidth are marked as 0, so as to obtain the marking results; Frequency points are selected based on the marking results to form an initial set of available channels.
[0009] Furthermore, S3 also includes the following steps: Define the transmission queues for Zigbee and Bluetooth respectively; Read the current number of frames to be sent and read the waiting time of the header frame in the sending queue; Real-time scheduling weights are calculated based on the number of frames to be sent, the waiting time for header frames, and the maximum queuing delay.
[0010] For real-time scheduling weights; Number of frames to be sent; The header frame has been waiting time; Maximum queuing delay; This is the queue overflow threshold.
[0011] Furthermore, S4 also includes the following steps: A fixed period is preset; At the end of a fixed period, the time slot ratios for Bluetooth and Zigbee in the next period are calculated based on the real-time scheduling weights:
[0012] This represents the time slot ratio for the next cycle; This represents the current time slot ratio; It is a symbolic function; The real-time scheduling weights for Zigbee; Real-time scheduling weights for Bluetooth; The constraints are: .
[0013] Furthermore, S5 also includes the following steps: The selection rules are as follows: The dwell penalty value is calculated based on the time interval between the current moment and the last departure from the channel. This dwell penalty value is then added to the interference margin to calculate the total cost.
[0014] This refers to the interval duration; Select the frequency point with the lowest total cost as the target channel:
[0015] For the target channel.
[0016] Furthermore, it also includes step S6; Step S6 also includes the following steps: Compare the interference margin with the baseline reference value, compare the actual packet error rate with the preset packet error rate, and adjust the current power based on the comparison results to obtain the power setting value; The power setting is limited to between the minimum and maximum power by using a clamping function.
[0017] Furthermore, it also includes step S7; S7 includes the following steps: Calculate the calibration value before adjustment; Based on the current operating parameters, adjust the step size in both the positive and negative directions, and calculate the adjusted calibration value; If the adjusted calibration value is less than the original calibration value, the adjustment is retained. If the adjusted calibration value is greater than the original calibration value, roll back the adjustment.
[0018] Furthermore, the calculation steps for the calibration value include: Obtain the current average packet error rate, average end-to-end delay, and average transmit power; The calibration values are calculated based on the average packet error rate, average end-to-end delay, and average transmit power.
[0019] This is the calibration value; This represents the average packet error rate. This represents the average end-to-end delay. This represents the average transmit power.
[0020] The present invention also provides a whole-house intelligent control system based on multi-protocol fusion, which applies the method described above.
[0021] Compared with the prior art, the present invention has the following advantages: This invention uses neighborhood summation constraints This ensures that the selected channel has a 5MHz "clean zone" at the physical layer, sufficient to accommodate the 2MHz bandwidth of Zigbee signals with adequate guard intervals. This effectively improves the communication success rate after channel migration and reduces retransmissions and packet loss caused by adjacent channel interference.
[0022] This invention enables short messages that are about to time out to obtain a scheduling window. Therefore, even if the security queue only has 3 frames, as long as it has waited for nearly 50ms, its weight can exceed that of the sensor queue with dozens of backlogged frames, thus being sent first. This ensures the real-time performance of critical alarms in smart home systems under mixed business loads.
[0023] The calculation process of the time slot ratio makes the time slot ratio of Zigbee and Bluetooth exhibit a "gradual change with inertia" characteristic when the load changes, thus avoiding the violent oscillation of time slots caused by instantaneous load fluctuations.
[0024] The exponential penalty term of this invention This is equivalent to applying an "electronic seal" to a recently departed channel: after 1 second of departure, the equivalent interference increases by approximately 5.8 dB, making the channel almost impossible to select in the short term; after 30 seconds, the penalty drops to 2.2 dB, and after 60 seconds, it is only 0.8 dB, allowing the channel to gradually regain normal eligibility. This time constant matches precisely the period (30 seconds to several minutes) of a typical household impulse interference source, effectively reducing the number of invalid migrations and thus enhancing network topology stability.
[0025] This invention eliminates meaningless adjustments near the reference value and achieves closed-loop verification through the PER feedback branch. As a result, when the packet error rate rises after power reduction, it can automatically replenish power, thus adding an extra layer of safety. It is more suitable for remote residential environments with severe outdoor signal fluctuations.
[0026] This invention possesses the ability to continuously climb and find the optimal solution. The results obtained in the initial stage of execution may not be the optimal configuration, but after several trials and iterations, the final result gradually converges to the optimal solution feasible under the current environment. Attached Figure Description
[0027] Figure 1 Overall process diagram. Detailed Implementation
[0028] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0029] Example 1: This invention provides a multi-protocol fusion whole-house smart control method, referring to... Figure 1 , Figure 1 This is a schematic diagram of the process of the present invention. It includes the following steps: S1: The radio frequency front end performs detection on 84 frequency points within the range of 2400 to 2483.5MHz in 1MHz steps to obtain the received signal strength and local noise power at the corresponding frequency points, and calculates the difference between the received signal strength and the background noise power to obtain the interference margin.
[0030] This is for interference margin; Let k be the received signal strength at frequency k. Let k be the local noise power at frequency k. The larger the interference margin, the more severely the frequency is occupied by environmental signals.
[0031] By comparing the interference margin with the preset engineering threshold, when the interference margin reaches or exceeds the engineering threshold, the corresponding frequency point is marked as unavailable, and when the interference margin does not reach the engineering threshold, the corresponding frequency point is marked as available, so as to obtain a binary frequency point status table with a length of 84.
[0032] The determination process is expressed by the following formula:
[0033] in, As an engineering threshold, a value of 13dB is preferred.
[0034] The aforementioned judgment result is 1, which represents unavailable, and 0, which represents available.
[0035] S2: Map the operating bandwidths of Wi-Fi (20MHz standard mode and 40MHz bonded mode), Zigbee (16 fixed channels), and Bluetooth (40 data channels) onto the frequency point status table to form a binary matrix C. Each row of this matrix represents a communication protocol, and each column represents a frequency point.
[0036] In the binary matrix C, the frequency points covered by the working bandwidth are marked as 1, and the frequency points not covered by the working bandwidth are marked as 0, so as to obtain the marking results; Specifically as follows:
[0037] BLE stands for Bluetooth.
[0038] The frequency range covered by the operating bandwidth.
[0039] but .
[0040] For each communication protocol, select the frequencies in the binary matrix C that are 1 (i.e., the frequency points covered by the working bandwidth) and the frequencies corresponding to those frequencies. =0 (marked as available). Simultaneously, the four adjacent frequency points before and after this frequency point, i.e., the 5MHz neighborhood... All are 0. Thus, an initial set of available channels is formed.
[0041] Specifically:
[0042] In summary, this invention utilizes neighborhood summation constraints. This ensures that the selected channel has a 5MHz "clean zone" at the physical layer, sufficient to accommodate the 2MHz bandwidth of Zigbee signals with adequate guard intervals. This effectively improves the communication success rate after channel migration and reduces retransmissions and packet loss caused by adjacent channel interference.
[0043] S3: Defines the transmission queues for Zigbee and Bluetooth respectively; Read the current number of frames to be sent and read the waiting time of the header frame in the sending queue; Define the maximum queuing delay based on the service type. Preferably, 50ms is used for security applications and 200ms is used for sensor applications.
[0044] Real-time scheduling weights are calculated based on the number of frames to be sent, the waiting time for header frames, and the maximum queuing delay.
[0045] For real-time scheduling weights; Number of frames to be sent; The header frame has been waiting time; Maximum queuing delay; The queue overflow threshold is preferably set to 32 frames.
[0046] 0.4 and 0.6 are preset coefficients.
[0047] The higher the real-time scheduling weight, the more priority the protocol needs to obtain the sending window at the current moment.
[0048] In practice, smart homes exhibit significant asymmetry: security data (door sensors, infrared alarms) is extremely sensitive to latency, tolerating a maximum delay of only 50ms, but the data volume is extremely small; while environmental sensor data (temperature, humidity, light intensity) has a slightly larger data volume but is not sensitive to delays within 200ms. This invention, through the aforementioned process, ensures that short messages about to time out receive a scheduling window. Therefore, even if the security queue only has 3 frames, as long as it has waited close to 50ms, its weight can exceed that of the sensor queue with dozens of backlogged frames, thus being sent first. This ensures the real-time performance of critical alarms in smart home systems under mixed workloads.
[0049] S4: Preset a fixed period; preferably, the fixed period is 150ms.
[0050] At the end of a fixed period, the time slot ratios for Bluetooth and Zigbee in the next period are calculated based on the real-time scheduling weights.
[0051] The specific calculation rule is as follows: the current time slot ratio is moved closer to the "target value allocated according to real-time scheduling weights", and the step size of the approach is determined by a coefficient. Control. Simultaneously, to prevent drastic changes in the time slot proportion between adjacent fixed periods, a damping term is introduced. That is, if the direction of the current adjustment is the same as the previous fixed period, a small reverse pullback is applied, with the pullback magnitude determined by a coefficient. Control. After calculation, the sum of the time slot ratios of Zigbee and Bluetooth is forced to normalize to 1. The specific formula is as follows:
[0052] This represents the time slot ratio for the next cycle; This represents the current time slot ratio; It is a symbolic function; The real-time scheduling weights for Zigbee; Real-time scheduling weights for Bluetooth; The constraints are: .
[0053] In summary, the aforementioned calculation process for the time slot ratio ensures that the time slot ratios of Zigbee and Bluetooth exhibit a "gradually changing with inertia" characteristic as the load changes, avoiding drastic time slot oscillations caused by instantaneous load fluctuations. For example, if Bluetooth suddenly receives a large amount of data in a certain cycle, causing the time slot ratio to jump from 50% to 90%, and then jumps back to 50% after the Bluetooth data is transmitted in the next cycle, this invention effectively prevents Zigbee devices from experiencing extreme switching from "almost no window" to "excessive window" within two cycles, thereby avoiding frequent synchronization loss between the transmitting and receiving parties.
[0054] S5: When the interference margin of Zigbee or Bluetooth on the current channel is higher than the preset engineering threshold for a continuous period, the target channel to be migrated is selected according to the available channel set to execute the channel migration process.
[0055] The selection rules are as follows: An interference margin is added to the channel clearance by a dwell penalty. The magnitude of the dwell penalty depends on the time interval between the current moment and the last departure from the channel; the longer the departure, the smaller the dwell penalty. The shorter the departure, the larger the dwell penalty. Therefore, the total cost of the interference margin and the dwell penalty is expressed by the following formula:
[0056] in, This refers to the interval duration.
[0057] 6. The specific value of the penalty amplitude.
[0058] 30 represents the specific value of the exponential decay time constant.
[0059] Select the frequency point with the lowest total cost as the target channel:
[0060] For the target channel.
[0061] In summary, the exponential penalty term of this invention This is equivalent to applying an "electronic seal" to a recently departed channel: after 1 second of departure, the equivalent interference increases by approximately 5.8 dB, making the channel almost impossible to select in the short term; after 30 seconds, the penalty drops to 2.2 dB, and after 60 seconds, it is only 0.8 dB, allowing the channel to gradually regain normal eligibility. This time constant matches precisely the period (30 seconds to several minutes) of a typical household impulse interference source, effectively reducing the number of invalid migrations and thus enhancing network topology stability.
[0062] S6: Compare the interference margin with the baseline reference value, compare the actual packet error rate with the preset packet error rate, and adjust the current power according to the comparison results to obtain the power setting value; The power setting is limited to between the minimum and maximum power by using a clamping function.
[0063] Specifically, the current power adjustment method is as follows: The reference value is set to -75dBm. The difference between the interference margin and the reference value is calculated. If the absolute value of this difference is less than or equal to 2dB, the adjustment amount is 0. If it is greater than 2dB, the power is reduced by a factor of 0.3. If it is less than -2dB, the power is increased by a factor of 0.3. Simultaneously, the actual packet error rate of the last 50 data packets is obtained, and the difference between the actual packet error rate and the preset packet error rate is calculated. Based on this difference and the increase factor (0.2), the current power value is adjusted. Finally, the two calculation results are superimposed on the current power to obtain the power setting value for the next cycle. Subsequently, a clamping function is used to limit the power setting value for the next cycle to between the minimum and maximum power allowed by regulations. The formula is expressed as follows:
[0064]
[0065] The power setting value for the next cycle.
[0066] This is the current power value.
[0067] This represents the actual packet error rate.
[0068] This is a clamping function.
[0069] This is the minimum power.
[0070] This is the maximum power.
[0071] In summary, this invention eliminates meaningless adjustments near the reference value through the aforementioned process and achieves closed-loop verification through the PER feedback branch. As a result, when the packet error rate increases after power reduction, it can automatically replenish power, thus adding an extra layer of safety. This makes it more suitable for remote residential environments with severe outdoor signal fluctuations.
[0072] S7: Every 2 seconds, while maintaining the current operating parameters (i.e., maintaining the time slot ratio calculated in S4 and the power setpoint calculated in S6), make small, tentative adjustments in both the positive and negative directions. After each adjustment, immediately read back the current average packet error rate, average end-to-end delay, and average transmit power. Based on the readback values of the average packet error rate, average end-to-end delay, and average transmit power, calculate the adjusted calibration values:
[0073] This is the calibration value; This represents the average packet error rate. This represents the average end-to-end delay. This represents the average transmit power.
[0074] Therefore, the average packet error rate has the greatest penalty weight on the calibration value (coefficient 2.0), followed by the average end-to-end delay (coefficient 0.5), while the average transmit power has the least impact (coefficient 0.3).
[0075] Similarly, the above method of calculating calibration values can be used to calculate the calibration values before adjustment.
[0076] Compare the calibration values before and after adjustment. If the adjusted calibration value is less than the original calibration value, retain the adjustment. If the adjusted calibration value is greater than the original calibration value, revert the adjustment.
[0077] In summary, through the aforementioned process, this invention possesses the ability to continuously climb and find the optimal solution. The results obtained in the initial stage of execution may not be the optimal configuration, but through the aforementioned several trials and iterations, the final result gradually converges to the optimal solution feasible under the current environment.
[0078] It's worth noting that Wi-Fi, Zigbee, and Bluetooth differ in their hardware logic. Wi-Fi chips use a complete 802.11 protocol stack, have closed-source firmware, and their MAC layer incorporates a complex CSMA / CA backoff algorithm. Their transmission behavior is bursty and uninterrupted. Once Wi-Fi starts transmitting an A-MPDU (aggregated data frame), the hardware is unaffected by external commands. In contrast, the MAC layers of Zigbee and Bluetooth are controlled directly by the main MCU via the HCI interface, allowing for control of the transmission window.
[0079] Therefore, due to differences in hardware, Wi-Fi does not participate in the calculation of the S4 time slot ratio. Its management primarily relies on S1, S2, and S6. The control methods are as follows: By executing S1 and S2, all frequency bands occupied by WIFI are marked as "unavailable", causing Zigbee and Bluetooth to hop to sidebands outside the main WIFI channel.
[0080] By executing S6, the power of Wi-Fi is reduced when Zigbee and Bluetooth are transmitting data urgently.
[0081] In summary, this invention effectively avoids mutual interference between Wi-Fi, Zigbee, and Bluetooth, enabling different smart home devices to communicate effectively within the same management system, thereby effectively optimizing the overall management effect.
[0082] To facilitate understanding of the above process, corresponding calculation examples are provided below.
[0083] Assume the following scenario: At 8 PM, the living room TV turns on Wi-Fi casting. The router is operating on channel 6 (center frequency 2437MHz, 40MHz bonding mode), causing strong signals to dominate the 2425–2455MHz band. Zigbee is currently operating on channel 18 (center frequency 2440MHz), with an initial transmit power of 0dBm. There are 3 frames of security door sensor data in the transmission queue, and the header frame has been waiting for 10ms. Bluetooth is connected to 4 temperature and humidity sensors, with a total of 4 frames in the transmission queue, and the header frame has been waiting for an average of 5ms. The current system time slot allocation is as follows: , .
[0084] S1: When the RF front-end is swept to frequency point 18 (the current operating channel of Zigbee), the measured frequency is... , .
[0085]
[0086] Engineering threshold ,because ,determination:
[0087] That is, channel 18 is marked as unavailable.
[0088] Simultaneously, when the frequency was swept to frequency point 24 (center frequency 2475MHz, located in the high-frequency sideband, far from the main Wi-Fi channel), the measurement was... , :
[0089] Therefore Frequency 24 itself is marked as available.
[0090] S2: Check the frequency sweep results of the two frequency points adjacent to frequency point 24 (i.e., frequency points 22, 23, 24, 25, and 26), assuming that there are no other interference sources in this high-frequency band and that U=0 is satisfied for all of them:
[0091] Therefore, frequency point 24 satisfies the neighborhood cleanliness condition and is included in the initial available channel set of Zigbee. .
[0092] S3: Real-time scheduling weight calculation for Zigbee: (Security category) , , , ).
[0093]
[0094] Real-time scheduling weight calculation for Bluetooth (sensor class) , , )
[0095] S4: Calculate first:
[0096] Substituting into the formula, we get (current) Assuming the adjustment amount in the previous cycle was 0, that is... ):
[0097] After normalization:
[0098] That is, in the next cycle, Zigbee will get about 48.7% of the time slot (about 73ms) and Bluetooth will get about 51.3% of the time slot (about 77ms).
[0099] S5: The system has detected Zigbee interference on current channel 18, with sufficient interference margin. The channel migration process has been triggered because the channel has exceeded the engineering threshold by 13dB for five consecutive cycles (5×150ms=750ms).
[0100] The system's internal timer records: 120 seconds have passed since the last departure from channel 24. Only 1 second has passed since the last evaluation of channel 18. ).
[0101] Calculate the total cost of each channel separately: Channel 18 (currently resident):
[0102] Channel 24 (candidate target):
[0103] Select the frequency point with the lowest value for the general agent:
[0104] The system migrates the Zigbee from channel 18 to channel 24. After the migration, the dwell timer on channel 24 is reset to zero. ).
[0105] S6: After the migration is complete, the Zigbee's current operating channel becomes 24. Read the interference margin of this channel. .
[0106] The reference value is an absolute level of -75dBm, which is used as a reference for local noise NF=-95dBm, and is converted into an interference margin reference.
[0107] Calculate interference deviation:
[0108] because Exiting the dead zone, effective deviation .
[0109] Interference feedforward branch correction (negative values indicate a clean environment and increased power):
[0110] At the same time, the system calculates the actual packet error rate of the most recent 50 data packets, assuming... (5% better than the target).
[0111] PER feedback branch correction amount:
[0112] Superimposed on the current power (current) )
[0113] Assuming the Zigbee regulations allow for the following scope: , After being clamped by the clamping function:
[0114] That is, the Zigbee transmit power for the next cycle is set to approximately +3dBm.
[0115] S7: After the system completes channel migration and power adjustment, wait 2 seconds to enter steady state and then read back key performance indicators: Average error rate .
[0116] Average end-to-end delay .
[0117] Average transmit power .
[0118] Substitute the values into the calibration formula:
[0119] If channel switching is not performed and power remains at 0dBm, the predicted performance under strong interference is as follows: , , .
[0120]
[0121] Comparison and judgment:
[0122] If the adjusted calibration value is less than the original calibration value, the system retains this adjustment and uses it as the steady-state operating parameter for the next stage.
[0123] Example 2: A multi-protocol integrated whole-house intelligent control system applies the method described in Example 1.
[0124] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system 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 system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0125] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0126] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0127] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
[0128] It is understood that the system provided in the embodiments of the present invention corresponds to the method provided in the embodiments of the present invention, and the explanation, examples and beneficial effects of the relevant content can be referred to the corresponding parts of the above methods.
Claims
1. A whole-house intelligent control method based on multi-protocol fusion, characterized in that, include: S1: Perform detection on frequency points within the range of 2400 to 2483.5MHz to obtain the interference margin at the frequency points, and obtain the frequency point status table based on the interference margin; S2: Map the operating bandwidths of Wi-Fi, Zigbee, and Bluetooth to the frequency point status table to obtain the initial available channel sets for Wi-Fi, Zigbee, and Bluetooth respectively; S3: Preset the maximum queuing delay, and calculate the real-time scheduling weight based on the maximum queuing delay; S4: Calculate the time slot ratio of Zigbee and Bluetooth based on the real-time scheduling weight; S5: When the interference margin is higher than the preset engineering threshold for a continuous period, the target channel to be migrated is selected according to the available channel set to execute the channel migration process.
2. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, S1 further includes the following steps: Detection is performed on frequency points within the range of 2400 to 2483.5 MHz to obtain the received signal strength and local noise power at the frequency points, and the difference between the received signal strength and the local noise power is calculated to obtain the interference margin. The This refers to the interference margin; The The received signal strength at frequency point k; The The local noise power at frequency k; By comparing the interference margin with the preset engineering threshold, when the interference margin reaches or exceeds the engineering threshold, the corresponding frequency point is marked as unusable; when the interference margin does not reach the engineering threshold, the corresponding frequency point is marked as usable, so as to obtain the frequency point status table.
3. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, S2 further includes the following steps: The operating bandwidths of Wi-Fi, Zigbee, and Bluetooth are mapped onto the frequency point status table to form a binary matrix C; In the binary matrix C, when the working bandwidth covers the frequency point, it is marked as 1, and when the working bandwidth does not cover the frequency point, it is marked as 0, so as to obtain the marking result; The frequency points are selected based on the marking results to form the initial set of available channels.
4. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, S3 further includes the following steps: These refer to the Zigbee and Bluetooth definitions, respectively, for the transmission queue. Read the current number of frames to be sent and read the waiting time of the header frame of the sending queue; The real-time scheduling weight is calculated based on the number of frames to be sent, the waiting time of the header frame, and the maximum queuing delay. The The real-time scheduling weight; The The number of frames to be sent; The The waiting time for the header frame; The The maximum queuing delay; The This is the queue overflow threshold.
5. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, S4 further includes the following steps: A fixed period is preset; At the end of the fixed period, based on the real-time scheduling weight, the time slot ratio of Bluetooth and Zigbee for the next period is calculated: The This represents the time slot ratio for the next cycle; The This represents the current time slot ratio; The It is a symbolic function; The The real-time scheduling weight of the Zigbee; The The real-time scheduling weight of the Bluetooth; The constraints are: 。 6. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, S5 further includes the following steps: The selection rules are as follows: The dwell penalty value is calculated based on the time interval between the current moment and the last departure from the channel. This dwell penalty value is then added to the interference margin to calculate the total cost. The The interval duration; The frequency point with the lowest total generation value is selected as the target channel: The The target channel is referred to here.
7. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, It also includes step S6; Step S6 further includes the following steps: Compare the interference margin with the benchmark reference value, compare the actual packet error rate with the preset packet error rate, and adjust the current power according to the comparison results to obtain the power setting value; The power setting value is limited to between the minimum power and the maximum power by a clamping function.
8. The whole-house intelligent control method based on multi-protocol fusion as described in claim 1, characterized in that, It also includes step S7; S7 includes the following steps: Calculate the calibration value before adjustment; Based on the current operating parameters, adjust the step size in both the positive and negative directions, and calculate the adjusted calibration value; If the adjusted calibration value is less than the original calibration value, the adjustment is retained. If the adjusted calibration value is greater than the original calibration value, the adjustment is reversed.
9. A whole-house intelligent control method based on multi-protocol fusion as described in claim 8, characterized in that, The calculation steps for the calibration value include: Obtain the current average packet error rate, average end-to-end delay, and average transmit power; The calibration value is calculated based on the average packet error rate, the average end-to-end delay, and the average transmit power. The The calibration value; The The average packet error rate; The The average end-to-end delay; The The average transmission power is denoted as .
10. A whole-house intelligent control system based on multi-protocol fusion, characterized in that, The method described in any one of claims 1 to 9 is applied.
