A single-chip microcomputer-based dual-mode communication method and system
By introducing network fundamental parameter evaluation with regulatory and optimization cycles into the dual-mode communication system, the problems of system computing power consumption and switching latency in the prior art are solved, realizing real-time and reliable communication link switching control and improving the stability and efficiency of the system.
Patent Information
- Application Number
- CN202511573601.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2045-10-31
AI Technical Summary
Existing technologies in dual-mode communication systems rely on network status parameters for monitoring and analysis, which impacts system computing power and delays optimal switching times, making it impossible to achieve real-time adaptive switching control of communication links.
A dual-mode communication system based on a microcontroller is adopted, including a dual-mode control module, a handover monitoring module, a handover optimization module, and a verification and analysis module. The system monitors and optimizes the handover control of the communication link in real time by using the network basic parameters during the monitoring and optimization cycles, and evaluates and makes handover decisions by combining comprehensive signal strength, bit error rate, and latency jitter indicators.
Real-time communication link switching control based on network fundamental parameters was achieved, which reduced system computing power consumption, improved the timeliness and reliability of link switching, and ensured the stability and efficiency of the communication system.
Smart Images

Figure CN121056958B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of dual-mode communication and relates to data processing technology. Specifically, it is a dual-mode communication method and system based on a microcontroller. Background Technology
[0002] The dual-mode communication method based on a microcontroller refers to using a microcontroller as the core control brain, integrating two different communication technologies (such as Wi-Fi and Bluetooth, LoRa and 4G), and using intelligent software algorithms to achieve autonomous switching, collaborative work, or redundant backup between the two modes, thereby enabling the device to adapt to complex and ever-changing communication environments.
[0003] The invention patent with publication number CN116633389A discloses a configuration method and system for dual-mode communication fusion. This communication fusion system selects the dual-mode network communication channel with the best communication quality in each communication direction through a dual-mode communication module to transmit data, thereby improving the success rate and quality of network communication. However, this communication fusion system cannot monitor the communication status of the main communication link and therefore cannot perform adaptive switching control of the communication link. In addition, when performing communication status parameter analysis, the prior art often uses network status parameters for monitoring and analysis, but the data extraction and calculation of communication status parameters are high, which affects the system's computing power and delays the optimal switching time.
[0004] To address this, this application proposes a scheme that uses basic network parameters for optimized switching control and performs periodic optimization verification, thereby reducing system computing power while improving the timeliness of link switching. Summary of the Invention
[0005] The purpose of this invention is to provide a dual-mode communication method and system based on a microcontroller, which solves the problem that existing technologies use network status parameters for monitoring and analysis, which affects system computing power and delays the optimal switching time.
[0006] The technical problem to be solved by this invention is: how to provide a microcontroller-based dual-mode communication method and system that uses network basic parameters for optimized switching control and performs periodic optimization verification.
[0007] The objective of this invention can be achieved through the following technical solutions:
[0008] A dual-mode communication system based on a microcontroller includes a dual-mode control module, a switching monitoring module, a switching optimization module, and a verification and analysis module that are connected in sequence. The switching monitoring module and the switching optimization module are both connected in communication with a database.
[0009] The dual-mode control module is used to control and analyze the communication link: the control modes include normal mode and standby mode. When a normal control signal is received, the normal mode is used and data is transmitted through the main communication link; when a standby control signal is received, the standby mode is used and data is transmitted through the auxiliary communication link.
[0010] The switching monitoring module is used to perform switching monitoring analysis on the communication link: it generates a monitoring cycle, generates a normal control signal at the beginning of the monitoring cycle and sends the normal control signal to the dual-mode control module, then acquires the monitoring data of the main communication link, evaluates the communication status of the main communication link based on the monitoring data of the main communication link, and generates a backup control signal when the communication status of the main communication link does not meet the requirements and sends the backup control signal to the dual-mode control module; then, after the communication status of the main communication link returns to normal, it generates a normal control signal again and sends the normal control signal to the dual-mode control module.
[0011] The handover optimization module is used to optimize and analyze the handover control process of the communication link: after the monitoring period, a continuous optimization period is generated; at the end of the monitoring period, the handover threshold value QHi of the relevant parameter i is marked; and the handover control of the communication link is optimized by the handover threshold value QHi within the optimization period.
[0012] The verification and analysis module is used to verify and analyze the switching optimization status of the communication link.
[0013] Furthermore, the regulatory data includes comprehensive signal strength, bit error rate, and delay jitter. The process of obtaining comprehensive signal strength includes: generating a signal heatmap through multi-base station RSSI, locating the area ratio of weak signal coverage areas to obtain comprehensive signal strength, where weak signal coverage areas are areas with RSSI < -95dBm; the process of obtaining bit error rate includes: transmitting a known bit sequence through alternating signal inversion encoding, injecting additive white Gaussian noise, comparing the decoding results at the receiving end, and marking the ratio of the number of erroneous bits to the total number of transmitted bits as the bit error rate; the process of obtaining delay jitter includes: retaining the most recent 100 delay samples, removing the largest / smallest 5% outliers, calculating the standard deviation, and marking it as delay jitter.
[0014] Furthermore, the specific process for evaluating the communication status of the main communication link includes: obtaining the strength threshold, bit error rate threshold, and jitter threshold from the database; comparing the overall signal strength, bit error rate, and delay jitter with the strength threshold, bit error rate threshold, and jitter threshold respectively; if the overall signal strength is less than the strength threshold, the bit error rate is less than the bit error rate threshold, and the delay jitter is less than the jitter threshold, then the communication status of the main communication link is determined to meet the requirements; otherwise, the communication status of the main communication link is determined to not meet the requirements.
[0015] Furthermore, the marking process for the switching threshold QHi of the relevant parameter i includes: marking the L1 seconds before the moment when the communication status of the main communication link fails to meet the requirements within the regulatory period as an abnormal period; setting several collection time points within the abnormal period, acquiring the values of the relevant parameter i of the communication network at the collection time points and marking them as collection values CJi, i=1,2,…,n, where n is a positive integer, and the relevant parameter i includes network load, network traffic, and bandwidth utilization; constructing a relevant set XJi from the collection values Cji at all collection time points within the abnormal period corresponding to the same relevant parameter i, and performing numerical cleaning processing on the relevant set XJi to obtain the switching threshold QHi of the relevant parameter i.
[0016] Furthermore, the specific process of numerical cleaning of the relevant set XJi includes: calculating the variance of all elements in the relevant set XJi to obtain the distribution coefficient FBi of the relevant set XJi; retrieving the distribution threshold FBiy of the relevant parameter i from the database; comparing the distribution coefficient FBi with the distribution threshold FBiy; if the distribution coefficient FBi is greater than or equal to the distribution threshold FBiy, then the largest and smallest elements in the relevant set XJi are removed, and then the distribution coefficient FBi is recalculated, and so on, until the distribution coefficient FBi is less than the distribution threshold FBiy; if the distribution coefficient FBi is less than the distribution threshold FBiy, then the smallest element in the relevant set XJi is marked as the switching threshold QHi of the relevant parameter i.
[0017] Furthermore, the specific process of optimizing the switching control of the communication link includes: acquiring the value of the relevant parameter i in real time during the optimization period and marking it as the real-time value SSi; when the real-time value SSi of any relevant parameter i is greater than the corresponding switching threshold QHi, it is determined that the communication state of the main communication link does not meet the requirements, generating a backup control signal and sending the backup control signal to the dual-mode control module; then, after the communication state of the main communication link returns to normal, a normal control signal is generated again and sent to the dual-mode control module.
[0018] Furthermore, the specific process of the verification and analysis module to verify and analyze the switching optimization status of the communication link includes: setting several verification time points within the optimization period; identifying the communication status of the main communication link through the switching monitoring module at each verification time point; if the communication status of the main communication link identified by the switching monitoring module is consistent with the communication status of the main communication link identified by the switching optimization module, then the switching optimization effectiveness is determined to meet the requirements; otherwise, the switching optimization effectiveness is determined to not meet the requirements, and correction processing is performed.
[0019] Furthermore, the specific process of correction includes: enabling the switching monitoring module to monitor the communication status of the main communication link throughout the remaining time of the optimization cycle, updating the switching threshold value QHi of the relevant parameter i through the switching optimization module at the end of the optimization cycle, and using the updated switching threshold value QHi to optimize the switching control of the communication link at the beginning of the next optimization cycle.
[0020] A dual-mode communication method based on a microcontroller includes the following steps:
[0021] Step S1: Perform control analysis on the communication link using normal control mode or backup control mode;
[0022] Step S2: Perform a switching monitoring analysis on the communication link: Obtain the monitoring data of the main communication link and mark the communication control mode using the monitoring data;
[0023] Step S3: Optimize and analyze the handover control process of the communication link: Generate a continuous optimization cycle after the monitoring cycle, and mark the handover threshold value QHi of the relevant parameter i at the end of the monitoring cycle; perform link handover optimization control through the handover threshold value QHi within the optimization cycle;
[0024] Step S4: Verify and analyze the switching optimization status of the communication link: Set several verification time points within the optimization period, and determine the effectiveness of the switching optimization by comparing the communication status monitoring results of the main communication link at the verification time points.
[0025] The present invention has the following beneficial effects:
[0026] 1. This application realizes real-time communication link switching control based on network basic parameters, reduces system computing power consumption, adopts a periodic optimization mechanism to dynamically adjust the switching threshold, improves the adaptability of the switching criteria, introduces an independent verification link to verify the effectiveness of the switching logic, and forms a closed-loop control system. Compared with traditional methods, this application significantly improves the switching timeliness and reliability of dual-mode communication systems and solves the problem of primary and backup link switching delay.
[0027] 2. This application achieves a comprehensive assessment of communication link quality. The overall signal strength reflects the overall signal coverage, the bit error rate directly reflects the accuracy of data transmission, and the delay jitter reflects the stability of the network. The combined use of these three indicators can more accurately determine the status of the communication link and provide a reliable basis for subsequent link switching decisions. At the same time, by using standardized acquisition methods, such as RSSI heatmap, alternating signal inversion coding, and sample statistics, the accuracy and comparability of the data are guaranteed. This comprehensive and accurate link quality assessment method effectively improves the reliability and efficiency of the communication system.
[0028] 3. This application implements real-time optimized switching control based on network fundamental parameters. By using simple and intuitive network fundamental parameters as the basis for switching, the complexity of data acquisition and calculation is reduced, alleviating the system's computing power burden. At the same time, by setting reasonable switching thresholds, rapid judgment of communication status and timely switching are achieved, improving the timeliness and accuracy of link switching. This method not only ensures communication quality but also avoids unnecessary frequent switching, thereby improving the stability and efficiency of the entire dual-mode communication system.
[0029] 4. This application realizes the periodic verification and timely correction of the communication link switching optimization status, thereby improving the reliability and stability of the dual-mode communication system, ensuring the accuracy and timeliness of communication link switching. Furthermore, by periodically verifying and dynamically updating the switching threshold, this solution can adapt to changes in the network environment and continuously optimize the communication link switching control strategy, thereby improving the system's adaptability and communication quality. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a system block diagram of Embodiment 1 of the present invention;
[0032] Figure 2 This is a flowchart of the method in Embodiment 2 of the present invention. Detailed Implementation
[0033] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. 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.
[0034] In traditional dual-mode communication systems, the primary communication link status monitoring mechanism has significant shortcomings, failing to achieve dynamic switching control based on real-time network status. Due to the lack of a continuous evaluation system for primary link communication quality, the system struggles to promptly capture key degradation characteristics such as signal attenuation, spikes in bit error rate, or abnormal transmission delays, resulting in lag in primary / backup link switching. Furthermore, existing systems overly rely on high-dimensional communication status parameters for decision-making, requiring the continuous acquisition of complex datasets such as signal strength distribution matrices, bit error rate time-series sequences, and latency jitter spectrum characteristics. This leads to an exponential increase in data processing latency, causing a significant waste of system computing resources on non-core computational tasks.
[0035] For example, in industrial IoT scenarios, dual-mode communication nodes deployed on production lines use primary and backup dual-link transmission of equipment status data. When the primary link experiences signal strength fluctuations due to electromagnetic interference, traditional systems must wait until the entire communication quality assessment cycle is completed before triggering the switching mechanism. During this cycle, multi-base station RSSI heatmap reconstruction, alternating signal inversion coding verification testing, and delay sample statistical analysis must be completed, resulting in decision delays reaching the second level. During this period, the status data packets of critical equipment experience a sharp increase in data packet loss rate due to continuous transmission through degraded channels. Meanwhile, the backup link is not activated in time, causing real-time control commands to fail to be synchronously transmitted to the execution terminal.
[0036] If these issues are not addressed, the timing of primary / backup link switching will continuously deviate from the optimal window, creating communication black holes during critical data transmission periods. System computing resources will be inefficiently consumed in processing redundant parameters, weakening the execution efficiency of core control algorithms. The persistent switching delay will cause network topology updates to lag, leading to timing mismatches in multi-node collaborative operation scenarios, ultimately affecting the clock synchronization accuracy and process control reliability of the entire industrial control system.
[0037] Example 1: As Figure 1 As shown, a dual-mode communication system based on a microcontroller includes a dual-mode control module, a switching monitoring module, a switching optimization module, and a verification and analysis module that are connected in sequence. The switching monitoring module and the switching optimization module are both connected to a database.
[0038] The dual-mode control module is used to control and analyze the communication link: the control modes include normal mode and standby mode. When a normal control signal is received, the normal mode is used and data is transmitted through the main communication link; when a standby control signal is received, the standby mode is used and data is transmitted through the auxiliary communication link.
[0039] The handover monitoring module is used to perform handover monitoring analysis on the communication link: It generates a monitoring period, generates a normal control signal at the beginning of the monitoring period and sends it to the dual-mode control module, then acquires the monitoring data of the main communication link. This monitoring data includes comprehensive signal strength, bit error rate (BER), and delay jitter. The process of acquiring comprehensive signal strength involves generating a signal heatmap using multi-base station RSSI, locating the area ratio of weak signal coverage regions (areas with RSSI < -95dBm), and acquiring the BER by sending a known bit sequence using alternating signal inversion encoding, injecting additive white Gaussian noise, comparing the decoding results at the receiving end, and marking the ratio of the number of erroneous bits to the total number of transmitted bits as the BER. Delay jitter is also analyzed. The acquisition process includes: retaining the most recent 100 delay samples, removing the largest / smallest 5% outliers, calculating the standard deviation and marking it as delay jitter; obtaining the strength threshold, bit error rate threshold, and jitter threshold from the database, and comparing the overall signal strength, bit error rate, and delay jitter with the strength threshold, bit error rate threshold, and jitter threshold respectively: if the overall signal strength is less than the strength threshold, the bit error rate is less than the bit error rate threshold, and the delay jitter is less than the jitter threshold, then the communication status of the main communication link is determined to meet the requirements; otherwise, the communication status of the main communication link is determined to not meet the requirements, a backup control signal is generated and sent to the dual-mode control module; then, after the communication status of the main communication link returns to normal, a normal control signal is generated again and sent to the dual-mode control module.
[0040] Among them, the acquisition of comprehensive signal strength adopts the generation of heat map by multi-base station RSSI, and the signal coverage quality is quantified by area ratio. The weak signal coverage area is defined with -95dBm as the threshold. The bit error rate is simulated by predefined coding sequence and noise injection to simulate the actual transmission environment, and the link reliability is directly reflected by the error bit ratio. The delay jitter is eliminated by sample cleaning and standard deviation calculation to eliminate abnormal fluctuation interference and improve data stability.
[0041] Specifically, in the comprehensive signal strength calculation, multi-base station RSSI data, after heatmap processing, can quickly identify areas with weak signal coverage. The overall signal strength is quantified by area proportion, avoiding sampling errors from a single node. In the bit error rate (BER) test, alternating signal inversion coding effectively eliminates DC component interference, and additive white Gaussian noise simulates real channel conditions. Efficient BER calculation is achieved through comparison of known bit sequences. In delay jitter processing, 100 samples are retained and extreme values are removed. The standard deviation is used to reflect the degree of delay fluctuation, reducing the impact of abnormal data on the evaluation results. Therefore, the above methods, through structured parameter definition and simplified calculation logic, reduce data extraction complexity, shorten state assessment time, and provide real-time decision-making basis for link switching.
[0042] During the regulatory period, when the overall signal strength of the main communication link is lower than the strength threshold, it indicates insufficient signal coverage; when the bit error rate is higher than the bit error rate threshold, it indicates decreased data transmission reliability; and when the latency jitter exceeds the jitter threshold, it indicates insufficient network stability. If any parameter fails to meet the threshold conditions, a judgment of communication status failure is triggered, generating a backup control signal to initiate link switching. By independently comparing multi-dimensional parameters with preset thresholds, overall misjudgment caused by a single parameter anomaly is avoided, while complex correlation calculations are reduced, shortening the evaluation time.
[0043] The switching optimization module is used to optimize and analyze the switching control process of the communication link: It generates continuous optimization cycles after the monitoring cycle and acquires the abnormal periods of the main communication link at the end of the monitoring cycle: The L1 seconds before the moment when the main communication link's communication status fails to meet requirements are marked as abnormal periods; several collection time points are set within the abnormal periods, and the values of relevant parameters i of the communication network are acquired at these time points and marked as collected values CJi, i=1,2,…,n, where n is a positive integer. Relevant parameters i include network load, network traffic, and bandwidth occupancy; a correlation set XJi is constructed from the collected values Cji at all collection time points within the same abnormal period corresponding to the same relevant parameter i. The correlation set XJi undergoes numerical cleaning: the variance of all elements in the correlation set XJi is calculated to obtain the distribution coefficient FBi of the correlation set XJi; the distribution threshold FBiy of the relevant parameter i is retrieved from the database, and the distribution coefficient FBiy is then calculated. The distribution coefficient FBi is compared with the distribution threshold FBiy: if the distribution coefficient FBi is greater than or equal to the distribution threshold FBiy, the maximum and minimum elements in the relevant set XJi are removed, and the distribution coefficient FBi is recalculated. This process is repeated until the distribution coefficient FBi is less than the distribution threshold FBiy. If the distribution coefficient FBi is less than the distribution threshold FBiy, the minimum element in the relevant set XJi is marked as the switching threshold QHi of the relevant parameter i. The value of the relevant parameter i is acquired in real time during the optimization period and marked as the real-time value SSi. When the real-time value SSi of any relevant parameter i is greater than the corresponding switching threshold QHi, it is determined that the communication state of the main communication link does not meet the requirements, a backup control signal is generated, and the backup control signal is sent to the dual-mode control module. Then, after the communication state of the main communication link returns to normal, a normal control signal is generated again and sent to the dual-mode control module.
[0044] Among them, the marking of abnormal periods is based on tracing back L1 seconds from the moment when the communication status of the main communication link fails to meet the requirements, ensuring that the collected values reflect the network status before the link abnormality; the collection time points are evenly distributed within the abnormal period to avoid bias caused by data concentration; the relevant parameter i is selected from basic parameters such as network load, network traffic and bandwidth utilization to reduce the complexity of data collection; the numerical cleaning process improves the accuracy of the switching threshold by removing outliers.
[0045] Specifically, when an anomaly occurs in the main communication link during the monitoring period, an abnormal period of L1 seconds is defined as the time preceding the occurrence of the anomaly (e.g., L1 is set to 10 seconds). Within this abnormal period, a data collection point is set every 2 seconds, acquiring network load, network traffic, and bandwidth utilization data at a total of 5 time points. All collected values for the same parameter constitute a correlation set XJi, for example, the collected values for network load are [65%, 70%, 68%, 85%, 72%]. By calculating the variance of the set and comparing it with a preset distribution threshold, if the variance exceeds the threshold, the maximum and minimum values are removed (e.g., 85% and 65%), and the variance of the remaining data is recalculated until the threshold is met. Finally, the minimum collected value after cleaning is used as the switching threshold QHi, for example, QHi for network load is set to 68%. Therefore, the cleaned switching threshold more accurately reflects the critical point of network status changes, avoiding premature or delayed switching due to abnormal data interference, and improving the timeliness and accuracy of switching control within the optimization period.
[0046] Specifically, during the optimization cycle, basic parameters such as network load, network traffic, and bandwidth utilization are continuously monitored. For example, when the real-time network traffic reaches 105% of the critical value, the switching optimization module determines that the primary communication link is in an abnormal state and immediately sends a backup control signal to the dual-mode control module to start the secondary communication link. At this time, data transmission on the primary communication link is suspended, and the secondary communication link takes over the transmission task. Once the real-time network traffic drops below 95% of the critical value, the switching optimization module regenerates the normal control signal and restores the operation of the primary communication link. By directly using basic parameters for threshold judgment, complex state parameter calculations are avoided, effectively reducing system computing power consumption and shortening the switching response time.
[0047] The verification and analysis module is used to verify and analyze the switching optimization status of the communication link. Several verification time points are set within the optimization period. At each verification time point, the switching monitoring module identifies the communication status of the main communication link. If the communication status of the main communication link identified by the switching monitoring module is consistent with the communication status of the main communication link identified by the switching optimization module, the switching optimization effectiveness is determined to meet the requirements. Otherwise, the switching optimization effectiveness is determined to not meet the requirements, and correction processing is performed. During the remaining time of the optimization period, the switching monitoring module is enabled to monitor the communication status of the main communication link throughout the entire process. At the end of the optimization period, the switching optimization module updates the switching threshold value QHi of the relevant parameter i. At the beginning of the next optimization period, the updated switching threshold value QHi is used to optimize the switching control of the communication link.
[0048] The verification time points are distributed at fixed time intervals within the optimization period, for example, a verification time point is set every 100 seconds. The status of the main communication link identified by the handover monitoring module is determined by comparing the comprehensive signal strength, bit error rate, and delay jitter with the preset threshold. The status of the main communication link identified by the handover optimization module is determined by comparing the real-time value of the relevant parameter i, SSi, with the handover threshold value, QHi. When the status determination results of the two differ at a certain verification time point, a correction process is triggered. For example, the handover monitoring module is enabled to continuously monitor the status of the main communication link during the remaining time of the optimization period, and the handover threshold value, QHi, is updated at the end of the period.
[0049] Specifically, after the optimization cycle begins, the verification and analysis module generates a verification time point at fixed intervals. For example, in a 3000-second optimization cycle, 30 equally spaced verification points are set. At each verification time point, the communication status judgment result generated by the handover monitoring module based on the strength threshold, bit error threshold, and jitter threshold, and the communication status judgment result generated by the handover optimization module based on the real-time values of parameters such as network load and network traffic (SSi) and the handover threshold (QHi) are simultaneously obtained. When the two judgment results contradict each other at a certain verification point, for example, if the handover monitoring module determines that the main link is normal while the handover optimization module determines that a handover is required, a correction mechanism is immediately initiated. Control of the remaining time of the optimization cycle is transferred to the handover monitoring module, and the current abnormal event is recorded. At the end of the optimization cycle, the handover threshold (QHi) of the relevant parameter i is recalculated based on the abnormal event data recorded by the handover monitoring module. For example, the network load data collected when the abnormal event occurred is added to the relevant set XJi for cleaning and processing to generate an updated QHi value for use in the next optimization cycle. Through the periodic cross-validation mechanism, the handover optimization logic is kept synchronized with the real-time network status, avoiding misjudgment problems caused by the lag of parameter thresholds.
[0050] Example 2: Figure 2 As shown, a dual-mode communication method based on a microcontroller includes the following steps:
[0051] Step S1: Perform control analysis on the communication link using normal control mode or backup control mode;
[0052] Step S2: Perform a switching monitoring analysis on the communication link: Obtain the monitoring data of the main communication link and mark the communication control mode using the monitoring data;
[0053] Step S3: Optimize and analyze the handover control process of the communication link: Generate a continuous optimization cycle after the monitoring cycle, and mark the handover threshold value QHi of the relevant parameter i at the end of the monitoring cycle; perform link handover optimization control through the handover threshold value QHi within the optimization cycle;
[0054] Step S4: Verify and analyze the switching optimization status of the communication link: Set several verification time points within the optimization period, and determine the effectiveness of the switching optimization by comparing the communication status monitoring results of the main communication link at the verification time points.
[0055] A dual-mode communication method and system based on a microcontroller is disclosed. During operation, a dual-mode control module controls the communication link, transmitting data via the primary communication link in normal mode and via the secondary communication link in standby mode. A switching monitoring module generates a monitoring cycle, sending a normal control signal at the beginning of the cycle to acquire monitoring data from the primary communication link and evaluate its communication status. When the primary communication link status fails to meet requirements, a standby control signal is sent to switch to the secondary communication link. A switching optimization module generates an optimization cycle after the monitoring cycle, marking relevant parameter switching thresholds and optimizing the communication link switching control based on these thresholds within the optimization cycle. A verification and analysis module verifies and analyzes the switching optimization status. These modules work collaboratively to achieve dynamic switching control based on fundamental network parameters, reducing data processing complexity and improving switching timeliness.
[0056] The above description is merely an example and illustration of the structure of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described, or use similar methods to replace them, as long as they do not deviate from the structure of the invention or exceed the scope defined in the claims, all of which should fall within the protection scope of the present invention.
[0057] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0058] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to any specific implementation. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A single-chip microcomputer-based dual-mode communication system, characterized by comprising: The dual-mode control module, the switching supervision module, the switching optimization module and the verification analysis module are sequentially connected in communication, and the switching supervision module and the switching optimization module are connected with a database in communication; The dual-mode control module is used for control analysis of the communication link: the control mode includes a normal mode and a standby mode, when a normal control signal is received, the normal mode is adopted and data transmission is performed through a main communication link; when a standby control signal is received, the standby mode is adopted and data transmission is performed through an auxiliary communication link; The switching supervision module is used for switching supervision analysis of the communication link: a supervision period is generated, a normal control signal is generated at the beginning of the supervision period and is sent to the dual-mode control module, then supervision data of the main communication link is acquired, the communication state of the main communication link is evaluated through the supervision data of the main communication link, when the communication state of the main communication link does not meet the requirements, a standby control signal is generated and is sent to the dual-mode control module; then after the communication state of the main communication link returns to normal, a normal control signal is generated again and is sent to the dual-mode control module; The switching optimization module is used for optimization analysis of the switching control process of the communication link: a continuous optimization period is generated after the supervision period, at the end of the supervision period, the switching threshold QHi of the related parameter i is marked, and the communication link is controlled and optimized through the switching threshold QHi in the optimization period; The verification analysis module is used for verification analysis of the switching optimization state of the communication link; The specific process of the verification analysis module for verification analysis of the switching optimization state of the communication link includes: a plurality of verification time points are set in the optimization period, the communication state of the main communication link is identified through the switching supervision module at the verification time points, if the communication state of the main communication link identified by the switching supervision module is consistent with the communication state of the main communication link identified by the switching optimization module, it is determined that the switching optimization effectiveness meets the requirements; otherwise, it is determined that the switching optimization effectiveness does not meet the requirements, and correction processing is performed; The specific process of the correction processing includes: the switching supervision module is enabled to monitor the communication state of the main communication link throughout the remaining time of the optimization period, and the switching threshold QHi of the related parameter i is updated in value through the switching optimization module at the end of the optimization period, and the updated switching threshold QHi is used to control and optimize the switching of the communication link at the beginning of the next optimization period.
2. The dual-mode communication system based on single-chip microcomputer according to claim 1, characterized in that, The supervision data includes comprehensive signal strength, error code rate and delay jitter, the acquisition process of the comprehensive signal strength includes: generating a signal heat map through multi-base station RSSI, positioning the area proportion of the weak signal coverage area to obtain the comprehensive signal strength, the weak signal coverage area is the area with RSSI<-95dBm; the acquisition process of the error code rate includes: sending a known bit sequence through alternating mark inversion coding, injecting additive white Gaussian noise, comparing the decoding results of the receiving end and marking the ratio of the number of error bits to the total number of transmission bits as the error code rate; the acquisition process of the delay jitter includes: retaining the latest 100 delay samples, eliminating the maximum / minimum 5% outliers, calculating the standard deviation and marking it as the delay jitter.
3. The dual-mode communication system based on single-chip microcomputer according to claim 2, characterized in that, The specific process of evaluating the communication state of the main communication link includes: obtaining the strength threshold, error code threshold and jitter threshold from the database, comparing the comprehensive signal strength, error code rate and delay jitter with the strength threshold, error code threshold and jitter threshold respectively: if the comprehensive signal strength is less than the strength threshold, the error code rate is less than the error code threshold and the delay jitter is less than the jitter threshold, it is determined that the communication state of the main communication link meets the requirements; otherwise, it is determined that the communication state of the main communication link does not meet the requirements.
4. The dual-mode communication system based on single-chip microcomputer according to claim 3, characterized in that, The marking process of the switching threshold QHi of the related parameter i includes: marking L1 seconds before the time when the communication state of the main communication link does not meet the requirements in the supervision period as an abnormal period; setting a plurality of collection time points in the abnormal period, collecting the values of the related parameters i of the communication network at the collection time points and marking them as collection values CJi, i=1, 2, …, n, n is a positive integer, the related parameters i include network load, network traffic and broadband occupancy rate; the collection values Cji of all collection time points in the abnormal period corresponding to the same related parameter i form a related set XJi, and the related set XJi is subjected to numerical cleaning processing to obtain the switching threshold QHi of the related parameter i.
5. The dual mode communication system based on single chip microcomputer according to claim 4, characterized in that, The specific process of numerical cleaning processing of the related set XJi includes: calculating the distribution coefficient FBi of the related set XJi to obtain the distribution coefficient FBi of the related set XJi, retrieving the distribution threshold FBiy of the related parameter i through the database, comparing the distribution coefficient FBi with the distribution threshold FBiy: if the distribution coefficient FBi is greater than or equal to the distribution threshold FBiy, the maximum element and the minimum element in the related set XJi are removed, and then the distribution coefficient FBi is recalculated, and so on, until the distribution coefficient FBi is less than the distribution threshold FBiy; if the distribution coefficient FBi is less than the distribution threshold FBiy, the minimum element in the related set XJi is marked as the switching threshold QHi of the related parameter i.
6. The dual-mode communication system based on single-chip microcomputer according to claim 5, characterized in that, The specific process of optimizing the switching control of the communication link includes: obtaining the value of the relevant parameter i in real time within the optimization period and marking it as the real-time value SSi, determining that the communication state of the main communication link does not meet the requirements when the real-time value SSi of any relevant parameter i is greater than the corresponding switching threshold QHi, generating a standby control signal and sending the standby control signal to the dual-mode control module; then generating a normal control signal again and sending the normal control signal to the dual-mode control module after the communication state of the main communication link returns to normal.
7. A single-chip microcomputer-based dual-mode communication method, characterized by The method comprises the following steps: Step S1: controlling and analyzing the communication link through the normal control mode or the standby control mode; Step S2: switching supervision analysis of the communication link: obtaining the supervision data of the main communication link and marking the communication control mode through the supervision data; Step S3: optimization analysis of the switching control process of the communication link: generating a continuous optimization period after the supervision period, and marking the switching threshold QHi of the relevant parameter i at the end of the supervision period; Optimizing the link switching control through the switching threshold QHi within the optimization period; Step S4: checking the switching optimization state of the communication link: setting several check time points within the optimization period, and determining the switching optimization effectiveness through the comparison result of the communication state monitoring of the main communication link at the check time points.
Citation Information
Patent Citations
Configuration method for dual-mode communication fusion and dual-mode communication fusion system
CN116633389A
Broadband power line carrier HPLC and RF dual-mode communication unit
CN117675051A
Dual-mode network communication method and system based on HPLC + HRF
CN119603174A