Wireless communication management method and system based on Bluetooth and WIFI synchronization

By detecting environmental interference and analyzing internal bottlenecks, the mutual exclusion and adjustment strategies are dynamically set to solve the communication interference problem when Bluetooth and WIFI devices run concurrently, and improve the communication stability and efficiency of IoT devices.

CN120499836BActive Publication Date: 2025-09-12SHENZHEN ZO VIDEO TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510999913.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-09-12
Estimated Expiration
2045-07-21

AI Technical Summary

Technical Problem

In complex IoT application scenarios, when Bluetooth and Wi-Fi devices run concurrently, problems such as communication congestion, MAC address or SSID conflicts, and spectrum overlap interference are likely to occur, affecting the real-time and stability of communication, and causing abnormalities or failures in device identification, network configuration, and connection functions.

Method used

By conducting wireless communication environment interference detection on Bluetooth and WIFI, obtaining environmental conflict observation parameters, analyzing environmental communication conflict scores, and combining internal communication bottleneck observation indicators, dynamic mutual exclusion and adjustment strategies are set, including adaptive selection of parallel execution, soft mutual exclusion and strong mutual exclusion strategies, triggering consistency detection and repair processes to ensure communication stability and coordination.

Benefits of technology

It effectively reduces broadcast interruptions, connection failures and data congestion, improves the stability, coordination and overall system operation efficiency of wireless communications, improves the continuity of Bluetooth broadcasts and the response efficiency of Wi-Fi scans, and ensures the continuity and stability of Bluetooth and Wi-Fi synchronous communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499836B_ABST
    Figure CN120499836B_ABST
Patent Text Reader

Abstract

The present invention discloses a wireless communication management method and system based on Bluetooth and WiFi synchronization, belonging to the technical field of Bluetooth and WiFi synchronization communication technology. The method includes: detecting interference in the wireless communication environment of Bluetooth and WiFi, analyzing the environmental communication conflict score, setting a mutual exclusion strategy, analyzing the internal communication bottleneck observation correction index, determining the internal conflict level of wireless communication, setting the internal conflict adjustment strategy, and triggering a consistency detection and repair process when the control center receives a conflict anomaly signal. The present invention can fully perceive the interference situation and internal bottleneck status of Bluetooth and WiFi in complex environments, dynamically evaluate the communication conflict level, intelligently set the mutual exclusion strategy and adjustment strategy, and quickly trigger the consistency repair mechanism in abnormal situations, effectively reducing problems such as broadcast interruption, connection failure and data blocking, and improving the stability and coordination of wireless communication and the overall operation efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Bluetooth and WIFI synchronous communication, and in particular to a wireless communication management method and system based on Bluetooth and WIFI synchronization. Background Art

[0002] With the rapid development of the Internet of Things and smart devices, Bluetooth and Wi-Fi have become two widely used technologies in wireless communications. Bluetooth is mainly used for short-range, low-power data transmission, while Wi-Fi provides high-speed wireless network connection services.

[0003] Since both Bluetooth and Wi-Fi use wireless spectrum for data transmission and some frequency bands overlap, when the two are running simultaneously on the same device or in a nearby environment, signal interference or resource contention may occur, affecting communication performance and stability.

[0004] For example, the invention patent announcement with announcement number: CN112020079B discloses a wireless communication device, method, electronic device and storage medium for an electronic device, wherein the device includes: a wireless fidelity WiFi antenna; a WiFi chip connected to the WiFi antenna; a Bluetooth chip connected to the WiFi antenna; a controller, which controls the WiFi chip and the Bluetooth chip to time-division multiplex the WiFi antenna, and obtains the WiFi usage status and Bluetooth usage status of the electronic device, and adjusts the time-division ratio between the WiFi chip and the Bluetooth chip according to the WiFi usage status and Bluetooth usage status of the electronic device.

[0005] For example, the communication device, system and interaction method disclosed in the invention patent announcement with announcement number CN111163446B, the communication device includes: a first WiFi module; and a first Bluetooth module, which is used to send WiFi information to the second Bluetooth module of the receiving communication device via a Bluetooth link. The WiFi information is used to carry information of the first WiFi module or control information of the second WiFi module of the receiving communication device.

[0006] However, in the process of implementing the technical solutions of the embodiments of the present application, the present application discovered that the above technology has at least the following technical problems:

[0007] Current Bluetooth and Wi-Fi synchronous communication methods focus primarily on basic data synchronization mechanisms or scheduling strategies, such as polling control, priority configuration, and time-slicing scheduling. However, in complex IoT applications, especially when multiple Bluetooth and Wi-Fi devices are operating concurrently, communication congestion, MAC address or SSID conflicts, and spectrum overlap interference are prone to occur. These issues severely impact the real-time and stability of communication, leading to malfunctions or failures in device identification, network configuration, and connection.

[0008] Furthermore, in many IoT chip designs, Bluetooth and Wi-Fi modules share a single radio frequency unit. When these two modules need to communicate within the same timeframe, competition for underlying resources arises. For example, Wi-Fi scanning and connection operations typically occupy higher bandwidth and have higher priority. While Bluetooth broadcasts occupy less bandwidth, overlapping with Wi-Fi broadcasts can cause broadcast interruptions, impacting Bluetooth device discovery and connection. Summary of the Invention

[0009] A first aspect of the present invention provides a wireless communication management method based on Bluetooth and WIFI synchronization, comprising the following steps:

[0010] Conduct interference detection on wireless communication environments of Bluetooth and WIFI, obtain environmental conflict observation parameters, analyze environmental communication conflict scores, and set mutual exclusion strategies accordingly.

[0011] Conduct internal conflict detection for wireless communications between Bluetooth and WIFI, analyze internal communication bottleneck observation indicators, and analyze internal communication bottleneck observation correction indicators in combination with environmental communication conflict scores.

[0012] The current resource occupancy is obtained, and the internal conflict level of wireless communication is determined based on the internal communication bottleneck observation correction index and the current resource occupancy, thereby setting the internal conflict adjustment strategy.

[0013] When the control center receives a conflict anomaly signal, it triggers the consistency detection and repair process and continues the wireless communication of Bluetooth and WIFI synchronization.

[0014] A second aspect of the present invention provides a wireless communication management system based on Bluetooth and WIFI synchronization, comprising:

[0015] The mutual exclusion strategy setting module is used to detect interference in the wireless communication environment between Bluetooth and WIFI, obtain environmental conflict observation parameters, analyze the environmental communication conflict score, and thus set the mutual exclusion strategy.

[0016] The internal communication bottleneck observation module is used to detect internal conflicts in wireless communications between Bluetooth and WIFI, analyze internal communication bottleneck observation indicators, and analyze internal communication bottleneck observation correction indicators in combination with the environmental communication conflict score.

[0017] The internal conflict adjustment strategy setting module is used to obtain the current resource occupancy, determine the internal conflict level of wireless communication based on the internal communication bottleneck observation correction index and the current resource occupancy, and thus set the internal conflict adjustment strategy.

[0018] The consistency detection and repair module is used to trigger the consistency detection and repair process when the control center receives a conflict abnormal signal, and continue the wireless communication of Bluetooth and WIFI synchronization.

[0019] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:

[0020] 1. The wireless communication management method based on Bluetooth and WiFi synchronization provided by the present invention can fully perceive the interference and internal bottleneck status of Bluetooth and WiFi in complex environments, dynamically evaluate the communication conflict level, intelligently set mutual exclusion and adjustment strategies, and quickly trigger the consistency repair mechanism under abnormal circumstances, effectively reducing problems such as broadcast interruptions, connection failures, and data blocking, thereby improving the stability, coordination, and overall system operation efficiency of wireless communications.

[0021] 2. By setting mutual exclusion strategies, the present invention dynamically adjusts the execution mode between Bluetooth broadcast and Wi-Fi scanning based on the real-time communication conflict score, effectively avoiding channel conflicts and communication interference caused by the concurrent operation of the two. By adaptively selecting between three strategies: parallel execution, soft mutual exclusion, and strong mutual exclusion, the continuity and stability of Bluetooth broadcast are improved, while the effectiveness and response efficiency of Wi-Fi scanning are also guaranteed, thereby improving the reliability and collaborative performance of the overall wireless communication system.

[0022] 3. By setting internal conflict adjustment strategies, the present invention can flexibly identify the internal conflict level of wireless communication based on the actual communication bottleneck status and resource occupancy of Bluetooth and WIFI, and take graded response measures accordingly, such as soft time slice adjustment of Bluetooth broadcast frequency and hard time slice isolation operation, effectively alleviating communication interference and data anomalies caused by RF resource competition or MCU response blocking, improving the system's adaptability and self-recovery ability to complex communication conflicts, thereby ensuring the continuity and stability of Bluetooth and WIFI synchronous communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 Flowchart of a wireless communication management method based on Bluetooth and WIFI synchronization provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of the structure of a wireless communication management system based on Bluetooth and WIFI synchronization provided in an embodiment of the present application;

[0025] Figure 3 A flowchart of the mutual exclusion strategy setting involved in the embodiment of the present application;

[0026] Figure 4 FIG2 is a circuit diagram of a WIFI module according to an embodiment of the present invention;

[0027] Figure 5 FIG2 is a circuit diagram of a Bluetooth module according to an embodiment of the present invention;

[0028] Figure 6This is a connection diagram of the Bluetooth controller and WIFI module involved in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0030] Reference Figure 1 As shown, the first aspect of the present invention provides a wireless communication management method based on Bluetooth and WIFI synchronization, comprising the following steps:

[0031] It should be noted that the Bluetooth protocol communication interface involved in this embodiment is UART, with a baud rate of 115200, 8 data bits, none check bit, 1 stop bit, and none flow control.

[0032] Conduct interference detection on wireless communication environments of Bluetooth and WIFI, obtain environmental conflict observation parameters, analyze environmental communication conflict scores, and set mutual exclusion strategies accordingly.

[0033] See Figure 3 As shown, this is a flow chart for setting the mutual exclusion strategy involved in an embodiment of the present application, analyzing the current environment communication conflict score and determining whether the score is less than or equal to the first verification score. If so, the mutual exclusion strategy is set to execute Bluetooth broadcast and WIFI scan in parallel, and the mutual exclusion mechanism is not enabled; if not, it is further determined whether the score is lower than the second verification score. If it is lower than the second verification score, a soft mutual exclusion strategy is enabled, specifically including setting the WIFI scan delay time and delaying the start of the WIFI scan before the Bluetooth broadcast; if the score is higher than or equal to the second verification score, a strong mutual exclusion strategy is enabled, forcing the Bluetooth broadcast and WIFI scan to execute serially to avoid serious communication conflicts.

[0034] In this embodiment, the communication conflict score of the analysis environment is analyzed, and the specific analysis method is as follows:

[0035] During the preset monitoring period, environmental conflict observation parameters are obtained, including signal strength standard deviation, number of broadcast failures, number of connection failures, and SSID (Service Set Identifier) ​​repetition rate.

[0036] It should be noted that the signal strength standard deviation refers to the discrete degree of fluctuation in the wireless signal strength received by the Wi-Fi module during a preset monitoring period. The number of broadcast failures refers to the number of times the Bluetooth module failed to successfully send a broadcast packet during a preset monitoring period. The number of connection failures refers to the total number of connection requests initiated by the Bluetooth module and the Wi-Fi module but failed to establish a successful connection during a preset monitoring period. The SSID repetition rate refers to the ratio of the number of SSIDs detected that are identical to the current Wi-Fi module's SSID to the total number of SSIDs detected during a preset monitoring period.

[0037] It should also be noted that the environmental conflict observation parameters can be read from the system program log.

[0038] The reference signal strength standard deviation, reference broadcast failure count, reference connection failure count, and reference SSID repetition rate stored in the database are extracted.

[0039] The signal strength standard deviation weight distribution coefficient, broadcast failure number weight distribution coefficient, connection failure number weight distribution coefficient and SSID repetition rate weight distribution coefficient preset in the database are extracted.

[0040] It should be noted that the signal strength standard deviation weight distribution coefficient, the broadcast failure number weight distribution coefficient, the connection failure number weight distribution coefficient and the SSID repetition rate weight distribution coefficient all have value ranges between 0 and 1, and the sum of the signal strength standard deviation weight distribution coefficient, the broadcast failure number weight distribution coefficient, the connection failure number weight distribution coefficient and the SSID repetition rate weight distribution coefficient is 1. When used, the pre-set values ​​can be directly extracted from the database. The specific extraction method is, for example, to construct a one-to-one mapping set of the signal strength standard deviation, the broadcast failure number, the connection failure number and the SSID repetition rate with the corresponding signal strength standard deviation weight distribution coefficient, the broadcast failure number weight distribution coefficient, the connection failure number weight distribution coefficient and the SSID repetition rate weight distribution coefficient respectively. When used, the obtained signal strength standard deviation, the broadcast failure number, the connection failure number and the SSID repetition rate are respectively input into the corresponding mapping set, so as to extract the signal strength standard deviation weight distribution coefficient, the broadcast failure number weight distribution coefficient, the connection failure number weight distribution coefficient and the SSID repetition rate weight distribution coefficient.

[0041] Analyze the environmental communication conflict score based on the environmental conflict observation parameters.

[0042] The Environmental Communication Conflict Score (ACCS) is a quantitative indicator of the impact of the signal strength standard deviation, number of broadcast failures, number of connection failures, and SSID repetition rate on the wireless communication environment conflicts between Bluetooth and Wi-Fi. The specific analysis process is as follows: the signal strength standard deviation, number of broadcast failures, number of connection failures, and SSID repetition rate are compared with the corresponding reference values, and the results of each comparison are combined with the corresponding weight allocation coefficients to obtain the ACCS score.

[0043] It should be noted that when the signal strength standard deviation increases, it means that there is increased interference or instability in the communication environment, such as increased multipath effects or external interference. This fluctuation makes Bluetooth broadcast packets more likely to be lost during transmission, which directly increases the number of broadcast failures. Unstable broadcasts make it difficult for scanning devices to obtain target device information, making the connection establishment process unreliable and increasing the number of connection failures. At the same time, in complex or densely populated device environments, the device identification mechanism relies on the uniqueness of the SSID and Bluetooth name. If a broadcast failure or connection failure causes synchronization interruption, the device may not update its name in a timely manner, thereby increasing the probability of SSID duplication.

[0044] In a specific embodiment, the environmental communication conflict scoring is analyzed in the following specific process:

[0045] ,

[0046] in, Score the environmental communication conflicts, is the standard deviation of signal strength, is the number of broadcast failures, The number of connection failures. is the SSID repetition rate, is the standard deviation of the reference signal intensity, is the number of reference broadcast failures, is the number of reference connection failures, For reference SSID repetition rate, is the signal strength standard deviation weight distribution coefficient, is the weight distribution coefficient for the number of broadcast failures, The weight distribution coefficient for the number of connection failures, Assign a coefficient to the SSID repetition rate weight.

[0047] In this embodiment, a mutual exclusion strategy is set, and the specific analysis process is as follows:

[0048] The first verification score of the environmental communication conflict and the second verification score of the environmental communication conflict preset in the database are extracted.

[0049] It should be noted that the first verification score of the environmental communication conflict is less than the second verification score of the environmental communication conflict.

[0050] If the environment communication conflict score is less than or equal to the environment communication conflict first verification score, the mutual exclusion strategy is set to execute Bluetooth broadcast and WIFI scanning in parallel without enabling mutual exclusion.

[0051] If the Environmental Communication Conflict Score is less than or equal to the First Environmental Communication Conflict Verification Score, the risk of inter-device communication interference is low. Simultaneous Bluetooth broadcasts and Wi-Fi scans will not cause significant conflicts, so parallel execution can be chosen to improve communication efficiency without introducing a mutual exclusion mechanism and avoiding unnecessary scheduling delays.

[0052] If the environment communication conflict score is greater than the environment communication conflict first verification score and less than the environment communication conflict second verification score, soft mutex is enabled, the Wi-Fi scan delay time is set, and the Wi-Fi scan is delayed before Bluetooth broadcast.

[0053] If the environmental communication conflict score is greater than the first verification score and less than the second verification score, the current communication environment is in the medium risk range. Some interference or conflict signs are beginning to appear, but they haven't yet seriously impacted system operation. To prevent minor conflicts from escalating, a coordination mechanism should be introduced. In this case, a soft mutual exclusion strategy is employed, which delays the start of Wi-Fi scanning before Bluetooth broadcasts to mitigate RF resource contention and achieve a basic scheduling balance of "no interference."

[0054] If the environmental communication conflict score is greater than or equal to the environmental communication conflict second verification score, the strong mutual exclusion strategy is enabled, and the Bluetooth broadcast and WIFI scan are forced to be executed serially.

[0055] If the environmental communication conflict score is greater than or equal to the environmental communication conflict second verification score, it means that the system is currently in a high-risk communication conflict state and multi-device interference occurs. In this case, if Bluetooth and Wi-Fi are still allowed to execute in parallel, the number of broadcast failures and connection failures will increase significantly, leading to device recognition errors or synchronization interruptions. Therefore, a strong mutual exclusion mechanism must be enabled to prevent Bluetooth and Wi-Fi from occupying resources at the same time through time slicing or forced serial execution, giving priority to ensuring the consistency and reliability of data transmission and device recognition.

[0056] In this embodiment, the specific analysis steps for the Wi-Fi scan delay are as follows:

[0057] The environmental communication conflict score is subtracted from the environmental communication conflict first verification score to obtain the environmental communication conflict deviation score.

[0058] The delay duration corresponding to each environment communication conflict deviation score interval stored in the database is extracted, and the delay duration corresponding to the interval in which the environment communication conflict deviation score is extracted is mapped and recorded as the Wi-Fi scanning delay duration.

[0059] It should be noted that the larger the environmental communication conflict deviation score, the more severe the interference in the wireless communication environment of the current device. In order to effectively alleviate the resource competition between Bluetooth broadcast and Wi-Fi scanning and reduce the risk of transmission interruption or synchronization failure caused by communication conflicts, the corresponding extracted Wi-Fi scanning delay time will be longer to ensure the integrity and stability of Bluetooth broadcast and achieve dynamic avoidance and conflict suppression.

[0060] Conduct internal conflict detection for wireless communications between Bluetooth and WIFI, analyze internal communication bottleneck observation indicators, and analyze internal communication bottleneck observation correction indicators in combination with environmental communication conflict scores.

[0061] In this embodiment, the internal communication bottleneck observation indicator is analyzed, and the specific process is as follows:

[0062] During the preset observation period, internal communication bottleneck data is collected, including Bluetooth broadcast transmission delay, Wi-Fi packet loss rate and serial port response delay.

[0063] It should be noted that internal communication bottleneck data can be collected through system program logs.

[0064] Extract the reference Bluetooth broadcast transmission delay, reference Wi-Fi packet loss rate, and reference serial port response delay stored in the database.

[0065] Extract the Bluetooth broadcast transmission delay time weight distribution coefficient, WIFI packet loss rate weight distribution coefficient and serial port response delay time weight distribution coefficient preset in the database.

[0066] It should be noted that the value range of the Bluetooth broadcast transmission delay time weight distribution coefficient, the WIFI packet loss rate weight distribution coefficient and the serial port response delay time weight distribution coefficient are all between 0 and 1, and the sum of the Bluetooth broadcast transmission delay time weight distribution coefficient, the WIFI packet loss rate weight distribution coefficient and the serial port response delay time weight distribution coefficient is 1. When used, the pre-set value can be directly extracted from the database. The specific extraction method is, for example, to construct a one-to-one mapping set with the Bluetooth broadcast transmission delay time, the WIFI packet loss rate and the serial port response delay time and the corresponding Bluetooth broadcast transmission delay time weight distribution coefficient, the WIFI packet loss rate weight distribution coefficient and the serial port response delay time weight distribution coefficient respectively. When used, the obtained Bluetooth broadcast transmission delay time, the WIFI packet loss rate and the serial port response delay time are respectively input into the corresponding mapping set, so as to extract the Bluetooth broadcast transmission delay time weight distribution coefficient, the WIFI packet loss rate weight distribution coefficient and the serial port response delay time weight distribution coefficient.

[0067] Analyze internal communication bottleneck observation indicators based on internal communication bottleneck data.

[0068] The internal communication bottleneck observation index is a quantitative indicator of the degree of impact of Bluetooth broadcast transmission delay, Wi-Fi packet loss rate and serial port response delay on internal communication conflicts. The specific analysis method is as follows: the Bluetooth broadcast transmission delay, Wi-Fi packet loss rate and serial port response delay are compared with the corresponding reference values ​​respectively, and the comparison results are coupled with the corresponding weight distribution coefficient to obtain the internal communication bottleneck observation index.

[0069] It's important to note that increasing serial port response delays indicate master processing congestion or scheduling delays, potentially preventing the timely issuance of Bluetooth broadcast commands. This can lead to increased Bluetooth broadcast transmission latency. Furthermore, if Bluetooth resources are occupied for extended periods, the Wi-Fi module may be blocked during transmission or reception, increasing packet loss. Conversely, a persistently high Wi-Fi packet loss rate indicates frequent Wi-Fi retransmissions, which can compress the Bluetooth broadcast window and increase broadcast latency.

[0070] In a specific embodiment, the internal communication bottleneck observation indicator is specifically expressed as follows:

[0071] ,

[0072] in, is the internal communication bottleneck observation indicator, The delay time for sending Bluetooth broadcast. is the WIFI packet loss rate, is the serial port response delay time, For reference, the Bluetooth broadcast sending delay time is For reference WIFI packet loss rate, For reference serial port response delay, The weight distribution coefficient for the Bluetooth broadcast delay time. is the Wi-Fi packet loss rate weight distribution coefficient, The weight distribution coefficient for the serial port response delay time.

[0073] In this embodiment, the internal communication bottleneck observation correction index is analyzed, and the specific analysis process is as follows:

[0074] The bottleneck observation correction factor corresponding to each environment communication conflict score interval stored in the database is extracted, and the bottleneck observation correction factor corresponding to the interval where the environment communication conflict score is located is mapped and recorded as the internal communication bottleneck observation correction factor.

[0075] It's important to note that a higher environmental communication conflict score indicates stronger external wireless interference, higher levels of multi-device concurrency, a greater probability of Bluetooth and Wi-Fi communication conflicts, and a more unstable overall communication environment. To prevent the system from misjudging resource usage (for example, misinterpreting communication delay as an internal bottleneck in a high-interference environment), it's necessary to rationally modify the internal conflict indicator to reduce its sensitivity and avoid false triggering of overly aggressive control mechanisms. Therefore, a higher environmental score results in a smaller internal communication bottleneck observation correction factor. This factor is used to appropriately downgrade parameters like broadcast delay, packet loss rate, and serial port response, thereby more objectively reflecting the true performance of the internal system itself, rather than false conflicts amplified by environmental noise.

[0076] The internal communication bottleneck observation correction index is analyzed based on the internal communication bottleneck observation index and the internal communication bottleneck observation correction factor.

[0077] The specific analysis process of the internal communication bottleneck observation correction index is: the internal communication bottleneck observation index is corrected based on the environmental communication conflict score, so as to obtain the internal communication bottleneck observation correction index, which is specifically expressed as: the product of the internal communication bottleneck observation index and the internal communication bottleneck observation correction factor is used as the numerical result of the internal communication bottleneck observation correction index.

[0078] The current resource occupancy is obtained, and the internal conflict level of wireless communication is determined based on the internal communication bottleneck observation correction index and the current resource occupancy, thereby setting the internal conflict adjustment strategy.

[0079] It should be noted that the current resource occupancy can be extracted from the system program log. The resource occupancy involved in the present invention refers to the real-time occupancy of radio frequency resources during the Bluetooth and WIFI synchronous communication process.

[0080] In this embodiment, the internal conflict level of wireless communication is determined, and the specific analysis process is as follows:

[0081] Read the current Bluetooth status and extract the expected value of resource occupancy intensity from the database based on the current Bluetooth status.

[0082] It should be noted that the Bluetooth status includes broadcasting, establishing connection and maintaining connection.

[0083] It should be added that the current Bluetooth status is read through the MCU (Microcontroller Unit) Bluetooth protocol stack.

[0084] The actual resource usage deviation is obtained by performing a difference process between the current resource usage and the expected resource usage intensity.

[0085] It should be noted that the difference processing refers to the current resource occupancy minus the expected value of resource occupancy intensity.

[0086] The resource occupancy correction factor is extracted based on the actual resource occupancy deviation. The specific extraction method is: extract the occupancy correction factor corresponding to each actual resource occupancy deviation interval stored in the database, and map the occupancy correction factor corresponding to the interval in which the actual resource occupancy deviation is located, and record it as the resource occupancy correction factor.

[0087] It should be noted that when the actual resource occupancy deviation is less than zero and the larger the absolute value, it means that the current system resource usage is lower than expected, that is, the actual load is lighter, but communication delays or anomalies still occur in the system, which may be caused by external interference rather than internal bottlenecks. In order to avoid excessively amplifying such "false positives", the internal score needs to be downgraded. Therefore, the corresponding extracted resource occupancy correction factor should be between 0 and 1, and the larger the absolute value of the deviation, the smaller the correction factor, which is used to further lower the internal conflict score. Conversely, when the actual resource occupancy deviation is greater than or equal to zero and the value is larger, it means that the current resource occupancy has exceeded or is close to the expected load, and there is a real risk of a system bottleneck. In order to enhance the sensitivity of the control response, the conflict score should be amplified. Therefore, the corresponding extracted resource occupancy correction factor should be greater than 1, and the larger the deviation, the larger the correction factor, so as to enhance the ability of the internal conflict score to reflect real congestion.

[0088] The internal conflict correction score of wireless communication is analyzed based on the internal communication bottleneck observation correction index and resource occupancy correction factor.

[0089] The specific analysis process of the wireless communication internal conflict correction score is: based on the actual resource occupancy deviation, the internal communication bottleneck observation correction index is corrected to obtain the wireless communication internal conflict correction score, which is specifically expressed as: the product of the internal communication bottleneck observation correction index and the resource occupancy correction factor is used as the numerical result of the wireless communication internal conflict correction score.

[0090] A first wireless communication internal conflict correction threshold and a second wireless communication internal conflict correction threshold preset in a database are extracted.

[0091] If the wireless communication internal conflict correction score is less than or equal to the wireless communication internal conflict correction first threshold, the wireless communication internal conflict level is recorded as a first-level internal conflict.

[0092] If the wireless communication internal conflict correction score is less than or equal to the first wireless communication internal conflict correction threshold, it means that the wireless communication internal conflict is in the lowest risk range, the internal communication runs stably, and there is no obvious bottleneck. At this time, no adjustment measures are needed, and the system can maintain the existing communication strategy.

[0093] If the wireless communication internal conflict correction score is greater than the wireless communication internal conflict correction first threshold and less than the wireless communication internal conflict correction second threshold, the wireless communication internal conflict level is recorded as a second-level internal conflict.

[0094] If the wireless communication internal conflict correction score is greater than the first wireless communication internal conflict correction threshold and less than the second wireless communication internal conflict correction threshold, it means that the wireless communication internal conflict is in a medium risk range and a certain degree of internal communication resource conflict has occurred. At this time, appropriate adjustments should be made to reduce the broadcast frequency and use soft time slices to improve communication stability.

[0095] If the wireless communication internal conflict correction score is greater than or equal to the wireless communication internal conflict correction second threshold, the wireless communication internal conflict level is recorded as a third-level internal conflict.

[0096] If the wireless communication internal conflict correction score is greater than or equal to the second threshold of the wireless communication internal conflict correction, it means that the wireless communication internal conflict is in a high-risk range, indicating that the current system internal communication is in a serious congestion state, multiple key indicators are abnormal, and resource usage deviates significantly from expectations, which may cause communication deadlock or data loss. At this time, the forced adjustment strategy should be enabled immediately, that is, the hard time slice should be enabled to prevent the problem from spreading.

[0097] In this embodiment, the internal conflict adjustment strategy is set, and the specific analysis process is as follows:

[0098] If the internal conflict level of the wireless communication is a level one internal conflict, no internal conflict adjustment is performed and the wireless communication connection is continued.

[0099] If the wireless communication internal conflict level is a level 2 internal conflict, a conflict prompt signal is generated and the soft time slice is started. The wireless communication internal conflict correction score is simultaneously subtracted from the wireless communication internal conflict correction first threshold to obtain the wireless communication internal conflict correction deviation score.

[0100] It should be noted that in this implementation, enabling soft time slicing refers to a flexible, non-mandatory mutual exclusion mechanism in wireless resource scheduling. When the system detects moderate communication conflicts, it mitigates the risk of resource preemption between Bluetooth broadcasts and Wi-Fi scans by delaying the start of one of the two, reducing the broadcast frequency, or limiting Wi-Fi activity. This staggers resource usage and alleviates communication interference, while allowing both to run concurrently during certain periods, resulting in more moderate and flexible scheduling.

[0101] The broadcast frequency reduction value corresponding to each wireless communication internal conflict correction deviation score interval stored in the database is extracted, and the broadcast frequency reduction value corresponding to the interval where the wireless communication internal conflict correction deviation score is located is mapped and extracted, and recorded as the Bluetooth broadcast frequency reduction value.

[0102] Extract the current Bluetooth broadcast frequency from the system program log.

[0103] The Bluetooth broadcast frequency is adaptively adjusted based on the Bluetooth broadcast frequency reduction value, specifically: the sum of the current Bluetooth broadcast frequency and the Bluetooth broadcast frequency reduction value is used as the Bluetooth broadcast execution frequency.

[0104] If the internal conflict level of the wireless communication is a level 3 internal conflict, a conflict prompt signal is generated and the hard time slice is enabled.

[0105] It's important to note that enabling hard time slicing means that when a high-level communication conflict is detected, the system enforces resource isolation between Bluetooth and Wi-Fi, clearly demarcating their respective operating time windows. This ensures that only one communication module occupies RF resources at any given time, completely eliminating resource contention and crosstalk. This mechanism serializes Bluetooth broadcasts and Wi-Fi connections, combined with status monitoring and failure-fault isolation strategies, ensures stable and reliable communication performance even in high-interference environments.

[0106] When the control center receives a conflict anomaly signal, it triggers the consistency detection and repair process and continues the wireless communication of Bluetooth and WIFI synchronization.

[0107] In this embodiment, the consistency detection and repair process is triggered, and the specific analysis steps are as follows:

[0108] After receiving the conflict prompt signal, the control center obtains the number of Bluetooth broadcast failures and the UART (Universal Asynchronous Receiver / Transmitter) channel delay duration from the system program log.

[0109] Extract the Bluetooth broadcast failure count threshold and UART channel delay time threshold preset in the database.

[0110] If the number of Bluetooth broadcast failures is greater than or equal to the Bluetooth broadcast failure threshold, and the UART channel delay is greater than or equal to the UART channel delay threshold, a conflict exception signal is generated to trigger the consistency detection and repair process.

[0111] In this embodiment, the consistency detection and repair process has the following specific steps:

[0112] The MCU reads the MACID of the Wi-Fi module, generates a unique SSID, and transmits the SSID to the Bluetooth controller through the UART channel. The Bluetooth controller updates the broadcast name to the new SSID.

[0113] If the update fails when Bluetooth is in the broadcasting state, the update task will be suspended and executed again when the state is idle.

[0114] If the Bluetooth state does not enter the non-broadcasting or non-connected state for a period longer than the preset operating time threshold in the database, a prompt message is generated to force the WIFI frequency to be reduced or blown.

[0115] See Figure 2 As shown, the second aspect of the present invention provides a wireless communication management system based on Bluetooth and WIFI synchronization, including:

[0116] The mutual exclusion strategy setting module is used to detect interference in the wireless communication environment between Bluetooth and WIFI, obtain environmental conflict observation parameters, analyze the environmental communication conflict score, and thus set the mutual exclusion strategy.

[0117] The internal communication bottleneck observation module is used to detect internal conflicts in wireless communications between Bluetooth and WIFI, analyze internal communication bottleneck observation indicators, and analyze internal communication bottleneck observation correction indicators in combination with the environmental communication conflict score.

[0118] The internal conflict adjustment strategy setting module is used to obtain the current resource occupancy, determine the internal conflict level of wireless communication based on the internal communication bottleneck observation correction index and the current resource occupancy, and thus set the internal conflict adjustment strategy.

[0119] The consistency detection and repair module is used to trigger the consistency detection and repair process when the control center receives a conflict abnormal signal, and continue the wireless communication of Bluetooth and WIFI synchronization.

[0120] See Figure 4 FIG. 1 is a circuit diagram of a WIFI module according to an embodiment of the present invention.

[0121] See Figure 5 FIG. 1 is a circuit diagram of a Bluetooth module according to an embodiment of the present invention.

[0122] See Figure 6 As shown in FIG, a connection diagram of the Bluetooth controller and the WIFI module involved in an embodiment of the present invention, the Bluetooth controller IC (Lenze ST17H78T) is connected to the main IC Allwinner V536 through the serial port IO, and the Allwinner V536 main control is connected to the WIFI module 6111E-UC through the USB interface.

[0123] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0125] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0127] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0128] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.

Claims

1. A wireless communication management method based on Bluetooth and WIFI synchronization, characterized in that: The following steps are involved: Conduct interference detection on wireless communication environments between Bluetooth and Wi-Fi, obtain environmental conflict observation parameters, analyze environmental communication conflict scores, and set mutual exclusion strategies accordingly. Environmental conflict observation parameters include signal strength standard deviation, number of broadcast failures, number of connection failures, and SSID repetition rate. Conduct internal conflict detection for wireless communications between Bluetooth and Wi-Fi, analyze internal communication bottleneck observation indicators, and analyze internal communication bottleneck observation correction indicators based on the environmental communication conflict score. The internal communication bottleneck observation indicator is a quantitative indicator of the degree to which the Bluetooth broadcast transmission delay, Wi-Fi packet loss rate, and serial port response delay affect internal communication conflicts. Obtaining the current resource occupancy, determining the internal conflict level of wireless communication based on the internal communication bottleneck observation correction index and the current resource occupancy, and setting the internal conflict adjustment strategy accordingly; When the control center receives a conflict anomaly signal, it triggers the consistency detection and repair process and continues the wireless communication of Bluetooth and WIFI synchronization; The specific analysis process of setting the mutual exclusion strategy is as follows: Extracting a first verification score of an environmental communication conflict and a second verification score of an environmental communication conflict preset in a database; If the environmental communication conflict score is less than or equal to the environmental communication conflict first verification score, the mutual exclusion strategy is set to execute Bluetooth broadcast and Wi-Fi scan in parallel without enabling mutual exclusion; If the environmental communication conflict score is greater than the environmental communication conflict first verification score and less than the environmental communication conflict second verification score, then enable soft mutex, set the Wi-Fi scan delay time, and delay Wi-Fi scanning before Bluetooth broadcasting; If the environmental communication conflict score is greater than or equal to the environmental communication conflict second verification score, the strong mutual exclusion strategy is enabled, and the Bluetooth broadcast and WIFI scan are forced to be executed serially.

2. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 1, characterized in that: The analysis environment communication conflict score is specifically analyzed as follows: Analyze the environmental communication conflict score based on environmental conflict observation parameters; The environmental communication conflict score is a quantitative indicator of the degree to which the signal strength standard deviation, number of broadcast failures, number of connection failures, and SSID repetition rate jointly influence the wireless communication environment conflicts between Bluetooth and Wi-Fi. The specific analysis process is as follows: the signal strength standard deviation, number of broadcast failures, number of connection failures, and SSID repetition rate are compared with the corresponding reference values, and the results of each comparison are combined with the corresponding weight allocation coefficients for coupling processing to obtain the environmental communication conflict score.

3. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 2, characterized in that: The specific analysis steps for the Wi-Fi scan delay are as follows: The environmental communication conflict score was subtracted from the environmental communication conflict first verification score to obtain the environmental communication conflict deviation score; The delay duration corresponding to each environment communication conflict deviation score interval stored in the database is extracted, and the delay duration corresponding to the interval in which the environment communication conflict deviation score is extracted is mapped and recorded as the Wi-Fi scanning delay duration.

4. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 1, characterized in that: The specific process of analyzing the internal communication bottleneck observation indicators is as follows: During the preset observation period, internal communication bottleneck data is collected, including Bluetooth broadcast transmission delay, Wi-Fi packet loss rate, and serial port response delay. Analyze internal communication bottleneck observation indicators based on internal communication bottleneck data; The specific analysis method of the internal communication bottleneck observation indicator is as follows: the Bluetooth broadcast transmission delay time, the Wi-Fi packet loss rate and the serial port response delay time are compared with the corresponding reference values ​​respectively, and the comparison results are coupled with the corresponding weight distribution coefficients to obtain the internal communication bottleneck observation indicator.

5. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 4, characterized in that: The analysis of the internal communication bottleneck observation correction indicator is as follows: Extract the bottleneck observation correction factor corresponding to each environment communication conflict score interval stored in the database, and map the bottleneck observation correction factor corresponding to the interval where the environment communication conflict score is extracted, and record it as the internal communication bottleneck observation correction factor; Analyze the internal communication bottleneck observation correction index based on the internal communication bottleneck observation index and the internal communication bottleneck observation correction factor; The specific analysis process of the internal communication bottleneck observation correction index is: correcting the internal communication bottleneck observation index based on the environmental communication conflict score, thereby obtaining the internal communication bottleneck observation correction index.

6. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 1, characterized in that: The specific analysis process for determining the internal conflict level of wireless communication is as follows: Read the current Bluetooth status and extract the expected value of resource occupancy intensity based on the current Bluetooth status; The difference between the current resource usage and the expected resource usage intensity is processed to obtain the actual resource usage deviation; Extracting a resource occupancy correction factor based on the actual resource occupancy deviation; Analyze the internal conflict correction score of wireless communication based on the internal communication bottleneck observation correction index and resource occupancy correction factor; Extracting a first wireless communication internal conflict correction threshold and a second wireless communication internal conflict correction threshold preset in a database; If the wireless communication internal conflict correction score is less than or equal to the wireless communication internal conflict correction first threshold, the wireless communication internal conflict level is recorded as a first-level internal conflict; If the wireless communication internal conflict correction score is greater than the wireless communication internal conflict correction first threshold and less than the wireless communication internal conflict correction second threshold, the wireless communication internal conflict level is recorded as a level 2 internal conflict; If the wireless communication internal conflict correction score is greater than or equal to the wireless communication internal conflict correction second threshold, the wireless communication internal conflict level is recorded as a third-level internal conflict.

7. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 1, characterized in that: The specific analysis process of setting the internal conflict adjustment strategy is as follows: If the wireless communication internal conflict level is level one, no internal conflict adjustment is performed and the wireless communication connection is continued; If the wireless communication internal conflict level is a level 2 internal conflict, a conflict prompt signal is generated and a soft time slice is started, and a wireless communication internal conflict correction score is simultaneously subtracted from a wireless communication internal conflict correction first threshold to obtain a wireless communication internal conflict correction deviation score; Extracting the broadcast frequency reduction value corresponding to each wireless communication internal conflict correction deviation score interval stored in the database, and mapping and extracting the broadcast frequency reduction value corresponding to the interval in which the wireless communication internal conflict correction deviation score is located, and recording it as the Bluetooth broadcast frequency reduction value; Adaptively adjust the Bluetooth broadcast frequency based on the Bluetooth broadcast frequency reduction value; If the internal conflict level of the wireless communication is a level 3 internal conflict, a conflict prompt signal is generated and the hard time slice is enabled.

8. The wireless communication management method based on Bluetooth and WIFI synchronization as claimed in claim 1, characterized in that: The trigger consistency detection and repair process, the specific analysis steps are as follows: After receiving the conflict prompt signal, the control center obtains the number of Bluetooth broadcast failures and the UART channel delay duration; Extract the Bluetooth broadcast failure count threshold and UART channel delay time threshold preset in the database; If the number of Bluetooth broadcast failures is greater than or equal to the Bluetooth broadcast failure threshold, and the UART channel delay is greater than or equal to the UART channel delay threshold, a conflict exception signal is generated to trigger the consistency detection and repair process.

9. A system using the wireless communication management method based on Bluetooth and WIFI synchronization as described in any one of claims 1 to 8, characterized in that: include: The mutual exclusion strategy setting module is used to detect interference between Bluetooth and WIFI wireless communication environments, obtain environmental conflict observation parameters, analyze environmental communication conflict scores, and thus set mutual exclusion strategies; Internal communication bottleneck observation module, used to detect internal conflicts in wireless communications between Bluetooth and WIFI, analyze internal communication bottleneck observation indicators, and analyze internal communication bottleneck observation correction indicators in combination with environmental communication conflict scores; An internal conflict adjustment strategy setting module is used to obtain the current resource occupancy, determine the internal conflict level of wireless communication based on the internal communication bottleneck observation correction index and the current resource occupancy, and thus set the internal conflict adjustment strategy; The consistency detection and repair module is used to trigger the consistency detection and repair process when the control center receives a conflict abnormal signal, and continue the wireless communication synchronized with Bluetooth and WIFI.

Citation Information

Patent Citations

  • Communication equipment, systems and interaction methods

    CN111163446B

  • Wireless communication device and method for electronic device, electronic device and storage medium

    CN112020079B

  • Method and apparatus for controlling WIFI and Bluetooth BLE data transmission

    CN106455085A

  • Bluetooth connection method and system

    CN120201398A