A smart home wireless signal enhancement system based on radio frequency switch multi-path antenna switching
Patent Information
- Application Number
- CN202611120101.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-27
- Publication Date
- 2026-10-30
AI Technical Summary
智能家居终端设备一旦安装完毕,其位置和周围环境在绝大多数时间内保持不变,在已锁定最优天线的情况下仍以固定高频次遍历全部天线进行扫描,会产生射频开关的额外切换和通信中断风险
[0040]1、该基于射频开关多路天线切换的智能家居无线信号增强系统,通过在每次启动天线扫描之前执行故障预检,将连续N个扫描周期内RSSI均值低于故障门限或RSSI方差超过稳定门限的天线标记为非健康并从候选天线池中剔除,可使后续扫描仅针对健康天线执行,减少切换至故障天线造成的无效扫描耗时;通过动态恢复机制在每次扫描前对静默观测后的非健康天线进行性能复检,在性能恢复后自动重新加入候选池并建立新的趋势模型,可在临时性故障恢复后及时重新利用该天线资源。
Smart Images

Figure CN123019807A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart homes, and in particular to a smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching. Background Technology
[0002] Smart home terminal devices (such as smart switches, smart sensors, smart door locks, curtain motors, etc.) generally use a single-transmitter, single-receiver radio frequency link with a single omnidirectional antenna to transmit and receive WiFi / Bluetooth signals. Due to the inherent contradiction between the gain and coverage of the omnidirectional antenna, and the actual usage scenarios where terminal devices are mostly installed on walls, inside cabinets, corners, etc., the signal penetration through walls and long-distance communication capabilities are insufficient.
[0003] Some existing solutions attempt to introduce a multi-antenna switching architecture in terminal devices, dynamically switching between different antennas to adapt to changing wireless environments. However, in practical applications of multi-antenna switching, when an antenna's signal reception capability deteriorates due to physical damage (such as a broken antenna cable or a loose connector), the system will still switch to the faulty antenna in each round due to the lack of continuous tracking of the individual antenna's health status. This occupies scanning time slots, and the abnormal RSSI data generated by the faulty antenna may interfere with the determination of the optimal antenna. For antennas marked as degraded, existing solutions usually exclude them from the scanning range. However, the performance degradation of some antennas may be temporary (such as recovering on their own after a poor connector contact). Existing solutions do not provide subsequent monitoring and reactivation mechanisms for these antenna performance recovery events, resulting in idle available antenna resources.
[0004] Existing solutions typically perform a scan of all antennas at fixed time intervals after antenna optimization. Once installed, smart home devices remain in their location and surrounding environment for most of the time. Scanning all antennas at a fixed high frequency, even after the optimal antenna has been selected, introduces additional switching of RF switches and risks of communication interruptions. Furthermore, in solutions that build antenna performance prediction models based on historical data, all historical measurement data are generally assumed to be valuable. Abnormal data from faulty antennas may continuously affect the accuracy of subsequent model predictions, and existing solutions have not yet addressed this issue specifically. Summary of the Invention
[0005] The purpose of this invention is to provide a smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching, so as to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching, comprising:
[0007] A single-transmitter, single-receiver RF main chip used for transmitting and receiving WiFi and / or Bluetooth signals;
[0008] Main control MCU;
[0009] A single-pole multiple-throw radio frequency switch having one common terminal and M branch terminals, where M≥2;
[0010] M-type directional high-gain passive antennas;
[0011] The antenna port of the single-transmitter single-receiver RF main chip is connected to the common terminal of the single-pole multi-throw RF switch, and the M branch terminals of the single-pole multi-throw RF switch are respectively connected to the M directional high-gain passive antennas.
[0012] The directional high-gain passive antennas described in M are arranged along the circumference, and the directional high-gain radiation sectors of each antenna are spliced together to cover a horizontal 360° omnidirectional space.
[0013] The main control MCU is connected to the control pin of the single-pole multi-throw RF switch, which controls the single-pole multi-throw RF switch to switch each branch terminal in a time-division manner, sequentially connecting each directional high-gain passive antenna to the RF main link, collecting the router RSSI signal strength corresponding to each antenna, and locking the antenna with the highest signal strength as the normal communication antenna.
[0014] Preferably, before each antenna scan is initiated, the main control MCU performs fault pre-detection and candidate pool purification:
[0015] The main control MCU reads the historical scan records of each antenna and marks antennas whose average RSSI value is lower than the fault threshold or whose RSSI variance exceeds the stability threshold within N consecutive scan cycles as unhealthy antennas, and removes them from the candidate antenna pool, where N≥2.
[0016] Preferably, the main control MCU is connected to a non-volatile memory for storing the RSSI signal strength values of each antenna in each historical scan cycle and the corresponding timestamps;
[0017] The main control MCU establishes a trend model of RSSI signal strength changing over time for each antenna based on the stored historical data;
[0018] When establishing the trend model, the main control MCU only uses the historical RSSI data of each antenna during the period when it was marked as a healthy antenna; the historical RSSI data during the period when it was marked as an unhealthy antenna is not included in the establishment of the trend model.
[0019] Before the start of the next scan cycle, the main control MCU predicts the expected RSSI signal strength of each antenna at the current moment according to the trend model, and determines the scan priority order according to the descending order of the expected RSSI signal strength.
[0020] Preferably, before each antenna scan is initiated, the main control MCU also performs dynamic recovery:
[0021] If, after a silent observation period, an antenna marked as unhealthy is found to have an RSSI signal strength higher than the fault threshold and a variance lower than the stability threshold, it will be automatically re-added to the candidate antenna pool.
[0022] When the antenna is re-added to the candidate antenna pool, the main control MCU immediately establishes a new RSSI trend model for the antenna and includes the antenna in the prediction priority ranking in the next scan cycle.
[0023] Preferably, after each scan, the main control MCU uses the deviation between the actual RSSI signal strength of each antenna and the predicted value of the trend model as a health weighting factor, and adds it to the health status determination of the fault pre-detection:
[0024] When the actual RSSI signal strength of a certain antenna is lower than the predicted value for several consecutive scanning cycles and the deviation exceeds the preset deviation threshold, the main control MCU marks the antenna as an unhealthy antenna and removes it from the candidate antenna pool.
[0025] Preferably, the main control MCU obtains the current power consumption status of the system, which is provided by the system's power management unit and includes active state, light sleep state, and deep sleep state.
[0026] In the active state, the main control MCU executes a complete scan control strategy;
[0027] In the light sleep state, the main control MCU pauses antenna scanning and maintains the current normal communication antenna unchanged;
[0028] In the deep sleep state, the main control MCU controls the single-pole multi-throw RF switch to disconnect all branch terminals.
[0029] Preferably, the main control MCU is also connected to an inter-device communication module for exchanging antenna scanning result data between multiple systems within the same home network;
[0030] After the first device completes antenna scanning and locks onto the normal communication antenna, it sends the scanning results to the second device through the inter-device communication module.
[0031] The second device adjusts the priority order and / or scanning start phase of its own antenna scanning based on the scanning results of the first device.
[0032] Preferably, the main control MCU collects router RSSI signal strength, signal-to-noise ratio, and packet loss rate data for each antenna during each round-robin scan, and calculates a comprehensive score for each antenna:
[0033]
[0034] in, This is the signal strength value. For signal-to-noise ratio, For packet loss rate, , , Preset weighting coefficients;
[0035] The main control MCU selects the antenna with the highest comprehensive score as the normal communication antenna.
[0036] Preferably, the M-type directional high-gain passive antennas are 4 in number, arranged in four orthogonal directions: front, back, left, and right of the device, with each antenna having a directional high-gain radiation sector of 110°.
[0037] Preferably, when the device is powered on for the first time, the main control MCU traverses all healthy antennas in the candidate antenna pool after the fault pre-detection and purification, collects the RSSI signal strength of each antenna, and locks the antenna with the highest signal strength as the initial normal communication antenna.
[0038] After locking the normal communication antenna, when the real-time RSSI signal strength is higher than the trigger threshold, the main control MCU only performs a partial scan of the adjacent antennas; when it is lower than or equal to the trigger threshold, the main control MCU rescans the candidate antenna pool and locks the antenna with the highest signal strength.
[0039] The technical effects and advantages of this invention are as follows:
[0040] 1. This smart home wireless signal enhancement system based on RF switch multi-antenna switching performs fault pre-detection before each antenna scan. Antennas with an RSSI mean value below the fault threshold or an RSSI variance exceeding the stability threshold within N consecutive scan cycles are marked as unhealthy and removed from the candidate antenna pool. This allows subsequent scans to be performed only on healthy antennas, reducing the time spent on invalid scans caused by switching to faulty antennas. Through a dynamic recovery mechanism, the performance of unhealthy antennas after silent observation is re-checked before each scan. After performance recovery, they are automatically added back to the candidate pool and a new trend model is established, allowing timely reuse of the antenna resource after temporary fault recovery.
[0041] 2. This smart home wireless signal enhancement system based on RF switch multi-antenna switching stores historical RSSI data of each antenna in non-volatile memory and establishes a trend model. It uses only data from healthy antennas in the model building process, reducing the continuous impact of abnormal data on the model's prediction accuracy. Predicting the expected RSSI of each antenna and determining the scanning priority before the next scan cycle reduces the number of RF switch switching operations and scanning time required to scan all antennas one by one. Simultaneously, by adding the deviation between the actual RSSI value and the predicted value after scanning to the health assessment, the gradual degradation of antenna performance is detected when it deviates from the expected trend. Early detection of checks is achieved before the absolute value of RSSI drops to the conventional fault threshold, which helps identify potential antenna performance problems before a significant decline in communication quality. Attached Figure Description
[0042] Figure 1 This is a diagram of the overall architecture of the present invention.
[0043] In the diagram: 1. Main control MCU; 2. Single-transmitter single-receiver RF main chip; 3. Single-pole multi-throw RF switch; 4. Directional high-gain passive antenna. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] This invention provides, for example Figure 1 The smart home wireless signal enhancement system shown includes:
[0046] Single-transmitter, single-receiver RF main chip 2, used for transmitting and receiving WiFi and / or Bluetooth signals;
[0047] Main control MCU1;
[0048] A single-pole multi-throw radio frequency switch 3 has one common terminal and M branch terminals, where M≥2;
[0049] M-type directional high-gain passive antennas 4;
[0050] The antenna port of the single-transmitter single-receiver RF main chip 2 is connected to the common terminal of the single-pole multi-throw RF switch 3, and the M branch terminals of the single-pole multi-throw RF switch 3 are respectively connected to the M directional high-gain passive antennas 4.
[0051] The directional high-gain passive antenna 4 described by M is arranged along the circumference, and the directional high-gain radiation sectors of each antenna are spliced together to cover the horizontal 360° omnidirectional space.
[0052] The main control MCU1 is connected to the control pin of the single-pole multi-throw RF switch 3, which controls the single-pole multi-throw RF switch 3 to switch each branch terminal in a time-division manner, sequentially connecting each directional high-gain passive antenna 4 to the RF main link, collecting the router RSSI signal strength corresponding to each antenna, and locking the antenna with the highest signal strength as the normal communication antenna.
[0053] Furthermore, before each antenna scan is initiated, the main control MCU1 performs fault pre-detection and candidate pool purification:
[0054] The main control MCU1 reads the historical scan records of each antenna and marks antennas whose average RSSI value is lower than the fault threshold or whose RSSI variance exceeds the stability threshold within N consecutive scan cycles as unhealthy antennas, and removes them from the candidate antenna pool, where N≥2.
[0055] Furthermore, the main control MCU1 is connected to a non-volatile memory for storing the RSSI signal strength values of each antenna in each historical scan cycle and the corresponding timestamps.
[0056] The main control MCU1 establishes a trend model of RSSI signal strength changing over time for each antenna based on the stored historical data;
[0057] When establishing the trend model, the main control MCU1 only uses the historical RSSI data of each antenna during the period when it was marked as a healthy antenna; the historical RSSI data during the period when it was marked as an unhealthy antenna is not included in the establishment of the trend model.
[0058] Before the start of the next scan cycle, the main control MCU1 predicts the expected RSSI signal strength of each antenna at the current moment according to the trend model, and determines the scan priority order according to the descending order of the expected RSSI signal strength.
[0059] Furthermore, before each antenna scan is initiated, the main control MCU1 also performs dynamic recovery:
[0060] If, after a silent observation period, an antenna marked as unhealthy is found to have an RSSI signal strength higher than the fault threshold and a variance lower than the stability threshold, it will be automatically re-added to the candidate antenna pool.
[0061] When the antenna is re-added to the candidate antenna pool, the main control MCU1 immediately establishes a new RSSI trend model for the antenna and includes the antenna in the prediction priority ranking in the next scanning cycle.
[0062] Furthermore, after each scan, the main control MCU1 uses the deviation between the actual RSSI signal strength of each antenna and the predicted value of the trend model as a health weighting factor, and adds it to the health status determination of the fault pre-detection:
[0063] When the actual RSSI signal strength of a certain antenna is lower than the predicted value for several consecutive scanning cycles and the deviation exceeds the preset deviation threshold, the main control MCU1 marks the antenna as an unhealthy antenna and removes it from the candidate antenna pool.
[0064] Furthermore, the main control MCU1 acquires the current power consumption status of the system, which is provided by the system's power management unit and includes active state, light sleep state, and deep sleep state.
[0065] In the active state, the main control MCU1 executes the complete scanning control strategy;
[0066] In the light sleep state, the main control MCU1 pauses antenna scanning and maintains the current normal communication antenna unchanged;
[0067] In the deep sleep state, the main control MCU1 controls the single-pole multi-throw RF switch 3 to disconnect all branch terminals.
[0068] Furthermore, the main control MCU1 is also connected to an inter-device communication module for exchanging antenna scanning result data between multiple systems within the same home network;
[0069] After the first device completes antenna scanning and locks onto the normal communication antenna, it sends the scanning results to the second device through the inter-device communication module.
[0070] The second device adjusts the priority order and / or scanning start phase of its own antenna scanning based on the scanning results of the first device.
[0071] Furthermore, the main control MCU1 collects router RSSI signal strength, signal-to-noise ratio, and packet loss rate data for each antenna during each round-robin scan, and calculates a comprehensive score for each antenna:
[0072]
[0073] in, This is the signal strength value. For signal-to-noise ratio, For packet loss rate, , , Preset weighting coefficients;
[0074] The main control MCU1 selects the antenna with the highest comprehensive score as the normal communication antenna.
[0075] Furthermore, the M-type directional high-gain passive antenna 4 consists of 4 antennas, which are arranged in four orthogonal directions: front, back, left, and right of the device. The directional high-gain radiation sector of each antenna is 110°.
[0076] Furthermore, when the device is powered on for the first time, the main control MCU1 traverses all healthy antennas in the candidate antenna pool after the fault pre-detection and purification, collects the RSSI signal strength of each antenna, and locks the antenna with the highest signal strength as the initial normal communication antenna.
[0077] After locking the normal communication antenna, when the real-time RSSI signal strength is higher than the trigger threshold, the main control MCU1 only performs a local scan of the adjacent antennas; when it is lower than or equal to the trigger threshold, the main control MCU1 rescans the candidate antenna pool and locks the antenna with the highest signal strength.
[0078] By performing fault pre-detection before each antenna scan, antennas whose mean RSSI value is below the fault threshold or whose RSSI variance exceeds the stability threshold within N consecutive scan cycles are marked as unhealthy and removed from the candidate antenna pool. This allows subsequent scans to be performed only on healthy antennas, reducing the time spent on invalid scans caused by switching to faulty antennas. The dynamic recovery mechanism performs performance re-checks on unhealthy antennas after silent observation before each scan. After performance recovery, the antennas are automatically re-added to the candidate pool and a new trend model is established, allowing the antenna resources to be reused in a timely manner after temporary fault recovery.
[0079] By storing historical RSSI data for each antenna in non-volatile memory and establishing a trend model, and by using only data from healthy antennas in the model building process, the continuous impact of abnormal data on the model's prediction accuracy can be reduced. Predicting the expected RSSI for each antenna and determining the scanning priority before the next scan cycle can reduce the number of RF switch switching and scanning time required to scan all antennas one by one. At the same time, by adding the deviation between the actual RSSI value and the predicted value after the scan is completed to the health determination, the gradual degradation of antenna performance can be detected when it deviates from the expected trend. Checks can be triggered in advance before the absolute value of RSSI drops to the conventional fault threshold, which is beneficial for identifying potential antenna performance problems before communication quality deteriorates significantly.
[0080] Example: The specific implementation process of a smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching is as follows:
[0081] I. Fault Pre-detection and Candidate Pool Purification:
[0082] Before each directional high-gain passive antenna 4 scan is initiated, the main control MCU1 performs a fault pre-detection and candidate pool purification process.
[0083] The main control MCU1 is connected to a non-volatile memory (such as EEPROM or Flash memory) to store the RSSI signal strength values and corresponding timestamps of each directional high-gain passive antenna 4 in each historical scan period. When the device is powered on for the first time, there is no historical data in the non-volatile memory, and the main control MCU1 directly traverses all M directional high-gain passive antennas 4 to perform an initial scan.
[0084] Before each subsequent scan of the directional high-gain passive antenna 4, the main control MCU1 reads the historical scan records of each directional high-gain passive antenna 4 and marks antennas whose average RSSI value is below the fault threshold (e.g., -85dBm) for N consecutive scan cycles as unhealthy antennas; or antennas whose RSSI variance exceeds the stability threshold (e.g., variance greater than 10dB²) for N consecutive scan cycles as unhealthy antennas, where N≥2 (preferably N=3). Antennas marked as unhealthy antennas are removed from the candidate antenna pool, and subsequent scans are performed only on healthy antennas in the candidate antenna pool.
[0085] II. Trend Model Establishment and Scan Priority Ranking:
[0086] The main control MCU1 establishes a trend model of RSSI signal strength over time for each directional high-gain passive antenna 4 based on historical data stored in the non-volatile memory. The trend model can be established using methods such as linear regression, exponential smoothing, or moving average to describe the variation of RSSI signal strength of the directional high-gain passive antenna 4 over time.
[0087] When building the trend model, the main control MCU1 only uses the historical RSSI data of each directional high-gain passive antenna 4 during the period when it is marked as a healthy antenna; historical RSSI data during the period when it is marked as an unhealthy antenna is not used in the construction of the trend model. Specifically, each historical RSSI data record is accompanied by a corresponding health status flag bit. When reading historical data, the main control MCU1 only selects data with the health status flag bit set to "healthy" for model training, and excludes data from unhealthy periods.
[0088] Before the next scan cycle begins, the main control MCU1 predicts the expected RSSI signal strength of each directional high-gain passive antenna 4 at the current moment based on the trend model, and determines the scan priority order according to the descending order of the expected RSSI signal strength. For example, if the expected RSSI of the four directional high-gain passive antennas 4 are Antenna 1: -65dBm, Antenna 2: -72dBm, Antenna 3: -58dBm, and Antenna 4: -70dBm, then the scan priority order is: Antenna 3 → Antenna 1 → Antenna 4 → Antenna 2. The main control MCU1 switches each directional high-gain passive antenna 4 sequentially according to this priority order to collect the actual RSSI. When the actual RSSI of a certain directional high-gain passive antenna 4 is higher than a preset sufficiently good threshold (e.g., -55dBm), the scanning of the subsequent directional high-gain passive antennas 4 can be terminated in advance to further reduce the scanning time and the number of RF switch switching.
[0089] III. Dynamic Recovery Mechanism
[0090] Before each directional high-gain passive antenna 4 scan is initiated, the main control MCU1 also performs a dynamic recovery process.
[0091] After a silent observation period (e.g., 10 scan cycles), the main control MCU1 performs a performance retest on the directional high-gain passive antenna 4, which was marked as an unhealthy antenna. During the retest, the main control MCU1 controls the single-pole multi-throw RF switch 3 to switch to the directional high-gain passive antenna 4, collects its RSSI signal strength, and calculates the variance. If the RSSI signal strength of the directional high-gain passive antenna 4 is higher than the fault threshold (e.g., -85dBm) and the variance is lower than the stability threshold (e.g., 10dB²), then the performance of the directional high-gain passive antenna 4 is determined to have recovered, and it is automatically re-added to the candidate antenna pool.
[0092] When the directional high-gain passive antenna 4 is re-added to the candidate antenna pool, since its historical RSSI data during the period marked as unhealthy does not participate in the trend model establishment, the main control MCU1 immediately establishes a new RSSI trend model for the directional high-gain passive antenna 4, using the current measured RSSI value as the initial value of the new model, clearing the abnormal historical data accumulated by the directional high-gain passive antenna 4 during the unhealthy period, and including the directional high-gain passive antenna 4 in the prediction priority ranking in the next scanning cycle.
[0093] IV. Health Status Feedback and Prediction Deviation Monitoring
[0094] After each scan, the main control MCU1 uses the deviation between the actual RSSI signal strength of each directional high-gain passive antenna 4 and the predicted value of the trend model as a health weighting factor, and adds it to the health status determination of fault pre-detection.
[0095] Specifically, let P be the predicted RSSI value of a certain directional high-gain passive antenna 4 in the current scanning period, and A be the actual acquired RSSI value, then the deviation Δ = AP. When the actual RSSI signal strength of a certain directional high-gain passive antenna 4 is lower than the predicted value for several consecutive scanning periods (e.g., 3 consecutive periods) and the deviation exceeds the preset deviation threshold (e.g., Δ < -5dB), it indicates that the performance of the directional high-gain passive antenna 4 has experienced abnormal degradation beyond the normal fluctuation range. The main control MCU1 marks the directional high-gain passive antenna 4 as an unhealthy antenna and removes it from the candidate antenna pool.
[0096] This mechanism allows the gradual degradation of antenna performance to be detected when it deviates from the expected trend, and can trigger checks in advance before the absolute value of RSSI drops to the normal fault threshold, which helps to identify potential antenna performance problems before communication quality deteriorates significantly.
[0097] V. Power Consumption Status Management
[0098] The main control MCU1 obtains the current power consumption status of the system. The power consumption status is provided by the system's power management unit (PMU), including active state, light sleep state, and deep sleep state.
[0099] In active state, the main control MCU1 executes a complete scanning control strategy, including all processes such as fault pre-detection, trend prediction, dynamic recovery, priority sorting, and antenna scanning.
[0100] In light sleep mode, the main control MCU1 pauses antenna scanning and maintains the current normal communication antenna unchanged to reduce system power consumption; however, the main control MCU1 still maintains real-time RSSI monitoring of the current normal communication antenna, and actively wakes up and performs scanning when the RSSI is lower than the trigger threshold.
[0101] In deep sleep mode, the main control MCU1 controls the single-pole multi-throw RF switch 3 to disconnect all branch terminals, isolating all directional high-gain passive antennas 4 from the RF main link, so as to minimize the static power consumption of the RF front end.
[0102] VI. Collaborative Scanning Between Devices
[0103] The main control MCU1 is also connected to an inter-device communication module (such as a Zigbee, Thread, or WiFi P2P communication module) for exchanging antenna scanning result data between multiple systems within the same home network.
[0104] After the first device completes the antenna scan and locks onto the normal communication antenna, it sends the scan results (including the locked antenna direction, RSSI value, timestamp, etc.) to the second device through the inter-device communication module.
[0105] The second device adjusts its own antenna scanning priority and / or scanning start phase based on the scanning results of the first device. For example, if the first device reports that its strongest signal direction is east, the second device located in the same room can prioritize scanning its corresponding directional high-gain passive antenna 4 in the east direction, reducing the time spent on invalid scanning; or, the second device can stagger its own scanning start phase from the scanning period of the first device to avoid interference to the wireless channel caused by multiple devices scanning antennas simultaneously.
[0106] VII. Overall Scoring and Antenna Optimization
[0107] In each round-robin scan, the main control MCU1 collects RSSI signal strength, signal-to-noise ratio (SNR), and packet loss rate (PER) data for each antenna, and calculates a comprehensive score for each antenna.
[0108] Where RSSI is the signal strength value (in dBm), SNR is the signal-to-noise ratio (in dB), and PER is the packet loss rate (range 0~1). , , These are preset weighting coefficients. As a preferred option, , , .
[0109] The main control MCU1 selects the directional high-gain passive antenna 4, which has the highest overall score, as the normal communication antenna. For example, if antenna 1 has RSSI=-65dBm, SNR=25dB, and PER=0.02, then antenna 2 has RSSI=-60dBm, SNR=20dB, and PER=0.08.
[0110] The overall score for antenna 1 is as follows:
[0111] =0.5×(-65)+0.3×25-0.2×0.02=-32.5+7.5-0.004=-25.004;
[0112] Overall rating of Antenna 2:
[0113] =0.5×(-60)+0.3×20-0.2×0.08=-30+6-0.016=-24.016;
[0114] Antenna 2 received a higher overall score and was selected as the standard communication antenna.
[0115] VIII. Initial Power-On and Local Scan Strategy
[0116] When the device is powered on for the first time, there is no historical data in the non-volatile memory. The main control MCU1 traverses all healthy antennas in the candidate antenna pool after fault pre-detection and purification (all antennas are considered healthy by default when powered on for the first time), collects the RSSI signal strength of each directional high-gain passive antenna 4, and locks the directional high-gain passive antenna 4 with the highest signal strength as the initial normal communication antenna.
[0117] After locking onto the normal communication antenna, the main control MCU1 continuously monitors its real-time RSSI signal strength. When the real-time RSSI signal strength is higher than the trigger threshold (e.g., -60dBm), it indicates that the current communication quality is good. The main control MCU1 only performs a partial scan of the adjacent antennas, that is, only scans the two antennas adjacent to the current normal communication antenna (for a 4-antenna layout, the two antennas that are adjacent on the left and right). If the RSSI of the adjacent antenna is higher than the current antenna by a certain hysteresis (e.g., 3dB), it switches; otherwise, it remains unchanged.
[0118] When the real-time RSSI signal strength is lower than or equal to the trigger threshold, it indicates that the current communication quality has deteriorated. The main control MCU1 rescans all healthy antennas in the candidate antenna pool and locks the antenna with the highest signal strength.
[0119] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching, characterized in that, include: A single-transmitter, single-receiver RF main chip (2) is used for transmitting and receiving WiFi and / or Bluetooth signals; Main control MCU (1); A single-pole multi-throw radio frequency switch (3) has a common terminal and M branch terminals, where M≥2; M directional high-gain passive antennas (4); The antenna port of the single-transmit single-receive RF main chip (2) is connected to the common terminal of the single-pole multi-throw RF switch (3), and the M branch terminals of the single-pole multi-throw RF switch (3) are respectively connected to the M directional high-gain passive antennas (4). The M-root directional high-gain passive antenna (4) is arranged along the circumference, and the directional high-gain radiation sectors of each antenna are spliced together to cover the horizontal 360° omnidirectional space. The main control MCU (1) is connected to the control pin of the single-pole multi-throw RF switch (3) to control the single-pole multi-throw RF switch (3) to switch each branch terminal in a time-division manner, and sequentially connect each directional high-gain passive antenna (4) to the RF main link, collect the router RSSI signal strength corresponding to each antenna, and lock the antenna with the highest signal strength as the normal communication antenna.
2. The smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 1, characterized in that, Before each antenna scan is initiated, the main control MCU (1) performs fault pre-detection and candidate pool purification: The main control MCU (1) reads the historical scan records of each antenna, marks the antennas whose RSSI mean is lower than the fault threshold or whose RSSI variance exceeds the stability threshold within N consecutive scan cycles as unhealthy antennas, and removes them from the candidate antenna pool, N≥2.
3. The smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 2, characterized in that, The main control MCU (1) is connected to a non-volatile memory for storing the RSSI signal strength values and corresponding timestamps of each antenna in each historical scanning cycle; The main control MCU (1) establishes a trend model of RSSI signal strength changing over time for each antenna based on the stored historical data; When establishing the trend model, the main control MCU (1) only uses the historical RSSI data of each antenna during the period when it was marked as a healthy antenna; Historical RSSI data during periods marked as unhealthy antennas are not included in the establishment of the trend model; Before the start of the next scan cycle, the main control MCU (1) predicts the expected RSSI signal strength of each antenna at the current moment according to the trend model, and determines the scan priority order according to the descending order of the expected RSSI signal strength.
4. The smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 3, characterized in that, Before each antenna scan is initiated, the main control MCU (1) also performs dynamic recovery: If, after a silent observation period, an antenna marked as unhealthy is found to have an RSSI signal strength higher than the fault threshold and a variance lower than the stability threshold, it will be automatically re-added to the candidate antenna pool. When the antenna is re-added to the candidate antenna pool, the main control MCU (1) immediately establishes a new RSSI trend model for the antenna and includes the antenna in the prediction priority ranking in the next scanning cycle.
5. A smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 3, characterized in that, After each scan, the main control MCU (1) uses the deviation between the actual RSSI signal strength of each antenna and the predicted value of the trend model as a health weighting factor, and adds it to the health status determination of the fault pre-detection: When the actual RSSI signal strength of a certain antenna is lower than the predicted value for several consecutive scanning cycles and the deviation exceeds the preset deviation threshold, the main control MCU (1) marks the antenna as an unhealthy antenna and removes it from the candidate antenna pool.
6. The smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 1, characterized in that, The main control MCU (1) obtains the current power consumption status of the system, which is provided by the power management unit of the system, including active state, light sleep state and deep sleep state: In the active state, the main control MCU (1) executes the complete scan control strategy; In the light sleep state, the main control MCU (1) suspends antenna scanning and maintains the current normal communication antenna unchanged; In the deep sleep state, the main control MCU (1) controls the single-pole multi-throw radio frequency switch (3) to disconnect all branch terminals.
7. A smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 1, characterized in that, The main control MCU (1) is also connected to an inter-device communication module for exchanging antenna scanning result data between multiple systems within the same home network; After the first device completes antenna scanning and locks onto the normal communication antenna, it sends the scanning results to the second device through the inter-device communication module. The second device adjusts the priority order of its own antenna scanning and / or the scanning start phase based on the scanning results of the first device.
8. A smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 1, characterized in that, The main control MCU (1) collects router RSSI signal strength, signal-to-noise ratio, and packet loss rate data for each antenna in each round-robin scan, and calculates a comprehensive score for each antenna: in, This is the signal strength value. For signal-to-noise ratio, For packet loss rate, , , Preset weighting coefficients; The main control MCU (1) selects the antenna with the highest comprehensive score as the normal communication antenna.
9. A smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 1, characterized in that, The M-type directional high-gain passive antenna (4) consists of 4 antennas, which are arranged in four orthogonal directions: front, back, left, and right of the device. The directional high-gain radiation sector of each antenna is 110°.
10. A smart home wireless signal enhancement system based on radio frequency switch multi-antenna switching according to claim 2, characterized in that, When the device is powered on for the first time, the main control MCU (1) traverses all healthy antennas in the candidate antenna pool after the fault pre-detection and purification, collects the RSSI signal strength of each antenna, and locks the antenna with the highest signal strength as the initial normal communication antenna. After locking the normal communication antenna, when the real-time RSSI signal strength is higher than the trigger threshold, the main control MCU (1) only performs a local scan on the adjacent antennas; when it is lower than or equal to the trigger threshold, the main control MCU (1) rescans the candidate antenna pool and locks the antenna with the highest signal strength.
