Dual bluetooth global time slot scheduling method, system and bluetooth communication device

CN122846433APending Publication Date: 2026-09-29LANYUN JINGXIN MICROELECTRONICS (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611316070.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

然而,两个控制器若各自采用独立的蓝牙时钟并独立执行链路调度,彼此之间完全不知晓对方未来的时隙安排、收发方向和工作频点

Benefits of technology

目标生成模块,用于基于检测结果以及预设的调度策略生成双蓝牙控制器共享的全局协同调度计划表。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122846433A_ABST
    Figure CN122846433A_ABST
Patent Text Reader

Abstract

The application discloses a dual-Bluetooth global time slot scheduling method, a system and a Bluetooth communication device. The dual-Bluetooth global time slot scheduling method provides a unified Bluetooth clock for a first Bluetooth controller and a second Bluetooth controller, so that time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis. Current link state information of the first Bluetooth controller and the second Bluetooth controller is acquired. According to the current link state information, planned transmission and reception behaviors of the first Bluetooth controller and the second Bluetooth controller in a future scheduling window are predicted respectively, and the prediction results are mapped onto the global time axis to generate a future scheduling prediction table. Working frequencies of the first Bluetooth controller and the second Bluetooth controller are predicted. Whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller is detected according to the future scheduling prediction table and / or the working frequencies. A global collaborative scheduling plan table is generated based on a detection result and a preset scheduling strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, specifically to a dual Bluetooth global time slot scheduling method, system, and Bluetooth communication device. Background Technology

[0002] Bluetooth technology has been widely used in audio transmission, data interaction, and IoT device interconnection. As users increasingly demand integrated functionality, Bluetooth devices often need to support multiple service links simultaneously, such as Advanced Audio Distribution Profile (A2DP) music playback, Hands-Free Profile (HFP) voice calls, Low Energy Audio (LE Audio) low-latency audio, and Bluetooth Low Energy (BLE) data interaction. Traditional single Bluetooth controller architectures concentrate all links in the same baseband and RF front-end, leading to multiple links competing for time slots within a limited air interface, increasing audio transmission latency. This is particularly difficult to meet the low-latency requirements of scenarios such as game audio, and the frequency hopping plans for each link are independent, making it impossible for the system to avoid co-channel or adjacent-channel interference from a global perspective.

[0003] To improve concurrency, some systems currently employ a dual Bluetooth controller architecture, assigning different services to two independent Bluetooth controllers. However, if each controller uses an independent Bluetooth clock and performs link scheduling independently, they are completely unaware of each other's future time slot arrangements, transmission / reception directions, and operating frequencies. In actual operation, conflicts can easily arise, such as both controllers transmitting simultaneously, one transmitting while the other receives a weak signal leading to congestion, and collisions occurring when the same or adjacent frequencies are used in the same time slot. Furthermore, since each controller independently performs Adaptive Frequency Hopping (AFH), it is impossible to know the other's future frequency usage plans in advance to proactively avoid conflicts.

[0004] Currently, conflict handling for dual Bluetooth controllers typically only involves temporarily interrupting or disabling one of the Bluetooth channels after a conflict occurs. This passive "post-event remedy" approach not only reduces spectrum utilization and link stability but also introduces additional latency jitter due to frequent link shutdowns. Consequently, the concurrent communication advantages of the dual Bluetooth architecture cannot be effectively utilized, and significant latency and stability bottlenecks still exist when facing multiple concurrent services. Summary of the Invention

[0005] This application provides a dual Bluetooth global time slot scheduling method, system, and Bluetooth communication device, which can effectively leverage the advantages of concurrent communication under the dual Bluetooth architecture.

[0006] In a first aspect, embodiments of this application provide a dual Bluetooth global time slot scheduling method applied to a dual Bluetooth global time slot scheduling system including a first Bluetooth controller and a second Bluetooth controller, comprising: Provide a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; Obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller; Based on the current link status information, the planned transmission and reception behaviors of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window are predicted respectively, and the prediction results are mapped onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information. Based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship and link clock, predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at the corresponding time nodes in the future scheduling window; Based on the future scheduling prediction table and / or the operating frequency, detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller; Based on the detection results and the preset scheduling strategy, a global collaborative scheduling plan table shared by the two Bluetooth controllers is generated.

[0007] In the dual Bluetooth global time slot scheduling method provided in this application embodiment, the step of detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or the operating frequency point includes: Based on the future scheduling prediction table, detect whether there are link scheduling events with overlapping time resources in the same global time slot of the first Bluetooth controller and the second Bluetooth controller within the future scheduling window, so as to determine whether there is time domain resource contention. And / or, based on the operating frequency, detect whether the operating frequencies of the first Bluetooth controller and the second Bluetooth controller overlap in the same global time slot within the future scheduling window, whether the adjacent channel spacing is less than a preset protection distance, or whether there is a frequency relationship that causes radio frequency interference, so as to determine whether there is a frequency domain conflict.

[0008] The dual Bluetooth global time slot scheduling method provided in this application embodiment also includes at least one of the following: Based on the future scheduling prediction table, the operating frequency, and the current link status information, assess whether the interference caused by the transmission activity of the first Bluetooth controller to the receiving link of the second Bluetooth controller exceeds a preset interference threshold. Based on the future scheduling prediction table and the operating frequency, when both the first Bluetooth controller and the second Bluetooth controller are in transmit mode within the same global time slot, it is estimated whether the total transmit power exceeds the RF front-end isolation tolerance range. Based on the future scheduling prediction table, detect whether the transmit and receive time slots of high-priority links are occupied by low-priority links; Based on the future scheduling prediction table, detect whether the latency budget of the audio link has been compromised; Based on the future scheduling prediction table, check whether the retransmission window is occupied.

[0009] In the dual Bluetooth global time slot scheduling method provided in this application embodiment, the step of generating a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and a preset scheduling strategy includes: When a conflict is detected, the future scheduling prediction table is modified according to the preset scheduling strategy to generate a global collaborative scheduling plan table shared by the two Bluetooth controllers. When no conflict is detected, the future scheduling prediction table is used as a global collaborative scheduling plan table shared by the two Bluetooth controllers.

[0010] In the dual Bluetooth global time slot scheduling method provided in this application embodiment, after predicting the operating frequencies of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes within the future scheduling window based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock, and before detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or the operating frequencies, the method further includes: Based on the operating frequency of the first Bluetooth controller within the future scheduling window, the adaptive frequency hopping available channel set of the second Bluetooth controller is modified; and / or Based on the operating frequency of the second Bluetooth controller within the future scheduling window, the set of available adaptive frequency hopping channels for the first Bluetooth controller is modified.

[0011] In the dual Bluetooth global time slot scheduling method provided in this application embodiment, the unified Bluetooth clock includes at least one of the following: a base Bluetooth clock, a half-time slot count, a micro-time slot count, a local high-precision timer, an offset correction value after synchronization with an external Bluetooth device, the link clock offset of the first Bluetooth controller, and the link clock offset of the second Bluetooth controller.

[0012] In the dual Bluetooth global time slot scheduling method provided in this application embodiment, each time slot entry in the future scheduling prediction table and the global cooperative scheduling plan table corresponds to a global time slot, and each time slot entry includes at least the following information: Global slot numbering; Does the first Bluetooth controller occupy a global time slot? Does the second Bluetooth controller occupy a global time slot? The transmit / receive direction of the first Bluetooth controller in the global time slot; The transmit / receive direction of the second Bluetooth controller in the global time slot; The operating frequency of the first Bluetooth controller in the global time slot; The operating frequency of the second Bluetooth controller in the global time slot; The link type and / or link priority of the first Bluetooth controller in the global time slot; The second Bluetooth controller determines the link type and / or link priority in the global time slot.

[0013] The dual Bluetooth global time slot scheduling method provided in this application embodiment further includes: The global collaborative scheduling plan is synchronized to the first Bluetooth controller and the second Bluetooth controller via hardware interface, shared storage area or control message, so that the first Bluetooth controller and the second Bluetooth controller perform transmit and receive operations according to the global collaborative scheduling plan.

[0014] Secondly, embodiments of this application provide a dual Bluetooth global time slot scheduling system, including: First Bluetooth controller and second Bluetooth controller; A unified Bluetooth clock generator is provided, with the first Bluetooth controller and the second Bluetooth controller respectively connected to the unified Bluetooth clock generator, for providing a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller, so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; A dual Bluetooth global time-slot scheduler, wherein the first Bluetooth controller and the second Bluetooth controller are respectively connected to the dual Bluetooth global time-slot scheduler, the dual Bluetooth global time-slot scheduler comprising: The link management module is used to obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller; The time slot prediction module is used to predict the planned transmission and reception behavior of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window based on the current link status information, and to map the prediction results onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information. The spectrum resource prediction module is used to predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes within the future scheduling window, based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock. The conflict detection module is used to detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or the operating frequency. The target generation module is used to generate a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and the preset scheduling strategy.

[0015] Thirdly, this application provides a Bluetooth communication device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the dual Bluetooth global time slot scheduling method described in any of the above claims.

[0016] In summary, the dual Bluetooth global time slot scheduling method provided in this application includes providing a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller, so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; obtaining the current link status information of the first Bluetooth controller and the second Bluetooth controller; predicting the planned transmission and reception behavior of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window according to the current link status information, and mapping the prediction results onto the global time axis to generate a future scheduling prediction table containing time occupancy information, transmission and reception direction information, link priority information, and frequency point information; predicting the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes in the future scheduling window according to the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock; detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller according to the future scheduling prediction table and / or the operating frequency points; and generating a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and a preset scheduling strategy. This application embodiment can effectively leverage the advantages of concurrent communication under the dual Bluetooth architecture by uniformly pre-calculating and pre-detecting the future scheduling time slots and operating frequencies of the two Bluetooth controllers, completing scheduling correction before a conflict occurs. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1This is a flowchart illustrating the dual Bluetooth global time slot scheduling method provided in this application embodiment.

[0019] Figure 2 This is a schematic diagram of the unified Bluetooth clock mapping to the global time slot table provided in the embodiments of this application.

[0020] Figure 3 This is a representation of the future scheduling prediction of the first Bluetooth controller and the second Bluetooth controller on a unified global time axis provided in the embodiments of this application.

[0021] Figure 4 This is a schematic diagram of cooperative adaptive frequency hopping pre-calculation and operating frequency interval protection provided in the embodiments of this application.

[0022] Figure 5 This is a schematic diagram of dual Bluetooth transceiver direction collaborative scheduling provided in an embodiment of this application.

[0023] Figure 6 This is a schematic diagram of the structure of the dual Bluetooth global time slot scheduling system provided in the embodiments of this application.

[0024] Figure 7 This is a schematic diagram of the structure of the dual Bluetooth global time slot scheduler provided in the embodiments of this application.

[0025] Figure 8 This is another structural schematic diagram of the dual Bluetooth global time slot scheduling system provided in the embodiments of this application.

[0026] Figure 9 This is another schematic diagram of the dual Bluetooth global time slot scheduler provided in the embodiments of this application.

[0027] Figure 10 This is a schematic diagram of the structure of the Bluetooth communication device provided in the embodiments of this application. Detailed Implementation

[0028] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of systems and methods consistent with some aspects of this application as detailed in the appended claims.

[0029] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.

[0030] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0031] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0032] In the description of this application, it should be noted that the terms "upper," "lower," "left," "right," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and for simplifying the description, and do not indicate or imply that the system or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. In addition, terms such as "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0033] Currently, conflict handling for dual Bluetooth controllers typically only involves temporarily interrupting or disabling one of the Bluetooth channels after a conflict occurs. This passive "post-event remedy" approach not only reduces spectrum utilization and link stability but also introduces additional latency jitter due to frequent link shutdowns. Consequently, the concurrent communication advantages of the dual Bluetooth architecture cannot be effectively utilized, and significant latency and stability bottlenecks still exist when facing multiple concurrent services.

[0034] Based on this, embodiments of this application provide a dual Bluetooth global time-slot scheduling method, system, and Bluetooth communication device. The dual Bluetooth global time-slot scheduling method can be applied to a dual Bluetooth global time-slot scheduling system including a first Bluetooth controller and a second Bluetooth controller. This dual Bluetooth global time-slot scheduling system can be integrated into a Bluetooth communication device. The Bluetooth communication device can be a mobile phone, wearable smart device (e.g., smartwatch, smart bracelet, smart glasses, smart head-mounted device, etc.), tablet computer, laptop computer, personal computer (PC), game controller, game headset, Bluetooth headset, Bluetooth speaker, Bluetooth transmitter (dongle), in-vehicle Bluetooth device, smart home device (e.g., smart speaker, smart TV, smart projector, etc.), augmented reality (AR) device, or virtual reality (VR) device, etc., etc.

[0035] The technical solutions shown in this application will be described in detail below through specific embodiments. It should be noted that the order of description of the following embodiments is not intended to limit the priority of the embodiments.

[0036] Please see Figure 1 , Figure 1 This is a flowchart illustrating the dual Bluetooth global time slot scheduling method provided in an embodiment of this application. Figure 1 As shown, the specific process of the dual Bluetooth global time slot scheduling method applied to a dual Bluetooth global time slot scheduling system including a first Bluetooth controller and a second Bluetooth controller can be as follows: 101. Provide a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis.

[0037] In this embodiment, the unified Bluetooth clock is generated by a unified Bluetooth clock generator. This unified Bluetooth clock generator can simultaneously provide the unified Bluetooth clock to the first Bluetooth controller, the second Bluetooth controller, and the dual Bluetooth global time slot scheduler.

[0038] The unified Bluetooth clock may include at least one of the following: a base Bluetooth clock, a half-slot count, a micro-slot count, a local high-precision timer, an offset correction value after synchronization with an external Bluetooth device, a link clock offset of the first Bluetooth controller, and a link clock offset of the second Bluetooth controller. The base Bluetooth clock can provide a 312.5 microsecond slot boundary; the half-slot count and micro-slot count are used to handle inter-frame intervals (T_IFS) and slave device response timing; and the local high-precision timer provides a timing reference with higher precision than the base Bluetooth clock.

[0039] For the first piconet to which the first Bluetooth controller is connected and the second piconet to which the second Bluetooth controller is connected, the master clocks of the two piconets may differ. Therefore, the dual Bluetooth global time slot scheduler maintains an offset correction value for each Bluetooth controller. The time slot boundaries of the two Bluetooth controllers are aligned to a unified global time axis through the following mapping: the global time axis equals the local clock of the first Bluetooth controller plus the link clock offset of the first Bluetooth controller, and also equals the local clock of the second Bluetooth controller plus the link clock offset of the second Bluetooth controller.

[0040] For a clearer understanding of the mapping process described above, please refer to [link / reference]. Figure 2 , Figure 2 This is a diagram illustrating the mapping of Bluetooth clocks to a global timeslot table. (See diagram below.) Figure 2 As shown, the unified Bluetooth clock generator provides a unified time slot reference for the first and second Bluetooth controllers. The figure illustrates the global time slot numbers (Slot0 to Slot5) from time slot 0 to time slot 5. The time slot boundaries of the first Bluetooth controller (BT0) are mapped onto the global time axis through the link clock offset of the first Bluetooth controller (BT0 link clock offset Δ0); the local time slot boundaries of the second Bluetooth controller (BT1) are mapped onto the global time axis through the link clock offset of the second Bluetooth controller (BT1 link clock offset Δ1). The unified Bluetooth clock generator summarizes the mapping results of the two Bluetooth controllers into a global time slot table.

[0041] In the global timeslot table, in global timeslot 0, the first Bluetooth controller is in idle state, and the second Bluetooth controller is in transmit state with the operating frequency channel 20; in global timeslot 1, the first Bluetooth controller is in transmit state with the operating frequency channel 37, and the second Bluetooth controller is in idle state; in global timeslot 2, the first Bluetooth controller is in idle state, and the second Bluetooth controller is in receive state with the operating frequency channel 45; in global timeslot 3, the first Bluetooth controller is in receive state with the operating frequency channel 37, and the second Bluetooth controller is in idle state; in global timeslot 4, the first Bluetooth controller is in idle state, and the second Bluetooth controller is in transmit state with the operating frequency channel 20; in global timeslot 5, the first Bluetooth controller is in transmit state with the operating frequency channel 45, and the second Bluetooth controller is in idle state. The transmit and receive actions of the first and second Bluetooth controllers are uniformly arranged based on this global timeslot table.

[0042] In this way, the transmit and receive time slot start boundaries (time slot boundaries) of both the first and second Bluetooth controllers are aligned to the rising edge of the unified Bluetooth clock, fundamentally eliminating the time slot drift that may accumulate between the two independent Bluetooth controllers during operation.

[0043] In this embodiment, by establishing a unified Bluetooth clock, the future send / receive actions of the first and second Bluetooth controllers can be mapped onto the same global timeline. This allows the dual Bluetooth global time slot scheduling system to predict in advance which time slots conflict, which time slots can run concurrently, which time slots need to be staggered, and which operating frequencies need to be avoided. This prevents time slot drift caused by the two independent Bluetooth controllers using their own independent Bluetooth clocks, providing a unified time reference for subsequent global time slot scheduling.

[0044] 102. Obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller.

[0045] In this embodiment of the application, the current link status information may include at least one of the following: connection type, link role, connection interval, listening timeout, frequency hopping parameters, received signal strength indication, bit error rate, retransmission status, service type, delay budget, and air interface data packet queue depth.

[0046] The connection type can include ACL link, SCO link, eSCO link, BLE Coded link, LE AudioCIS link, etc.; the link role includes master device or slave device; the connection interval is, for example, 7.5 milliseconds to 4 seconds; the retransmission status includes the number of retransmissions in the past period; the latency budget refers to the remaining tolerable latency of the current link, for example, the game audio link has 5 milliseconds left to be delivered, otherwise the buffer will underflow; the air interface packet queue depth refers to the number of currently buffered packets to be sent.

[0047] In some embodiments, the aforementioned dispersed link state information can be packaged into a link state table, and a global timestamp can be added to the link state table to ensure that subsequent steps use snapshot data at the current moment. This provides accurate and complete current link state information for dual Bluetooth global time slot scheduling, enabling scheduling decisions to be made based on real-time link conditions, thereby improving the accuracy and adaptability of scheduling.

[0048] 103. Based on the current link status information, predict the planned transmission and reception behavior of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window, and map the prediction results onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information.

[0049] In some embodiments, N future Bluetooth time slots can be selected as the future scheduling window. N can be 4, 8, 16, 32, or 64. For example, N of 32 corresponds to a time window of approximately 10 milliseconds; N of 64 corresponds to a time window of approximately 20 milliseconds. If the future scheduling window is too small, there will not be enough time to perform complex adaptive frequency hopping adjustments; if the future scheduling window is too large, the computational load will be too high, and the link state may already be outdated. In practical applications, the value of N can be dynamically configured according to the computational capabilities and link latency requirements of the dual Bluetooth global time slot scheduling system.

[0050] Among them, the time occupancy information is used to indicate whether the first Bluetooth controller or the second Bluetooth controller occupies air interface resources for transmission and reception operations in a certain global time slot; the transmission and reception direction information is used to indicate whether the first Bluetooth controller or the second Bluetooth controller is in a transmitting state, a receiving state, or an idle state in a certain global time slot; the link priority information is used to indicate the priority level of the link type carried by the first Bluetooth controller or the second Bluetooth controller in a certain global time slot; and the frequency point information is used to indicate the operating frequency point that the first Bluetooth controller or the second Bluetooth controller plans to use in a certain global time slot.

[0051] After determining the future scheduling window, potential conflicts between the first and second Bluetooth controllers can be temporarily ignored. Strictly adhering to their respective connection intervals, time occupancy information is entered into the global timeline for each controller. For example, if the first Bluetooth controller performs a transmit / receive operation every 6 time slots and the second Bluetooth controller performs one every 8 time slots, then the transmit / receive occupancy is marked at the corresponding time slot position on the global timeline according to their respective connection intervals. Simultaneously, transmit / receive direction information is marked for each time slot, indicating whether the Bluetooth controller is in transmit, receive, or idle state in that time slot.

[0052] The future scheduling prediction table generated at this time is an unoptimized conflict draft table. Each time slot entry in this future scheduling prediction table corresponds to a global time slot, and each time slot entry includes at least the following information: global time slot number; whether the first Bluetooth controller occupies the global time slot; whether the second Bluetooth controller occupies the global time slot; the transmit / receive direction of the first Bluetooth controller in the global time slot; the transmit / receive direction of the second Bluetooth controller in the global time slot; the operating frequency of the first Bluetooth controller in the global time slot; the operating frequency of the second Bluetooth controller in the global time slot; the link type and / or link priority of the first Bluetooth controller in the global time slot; and the link type and / or link priority of the second Bluetooth controller in the global time slot.

[0053] To facilitate a clear understanding of the time-domain scheduling arrangements corresponding to this future scheduling prediction table, please refer to [link / reference]. Figure 3 , Figure 3This represents the intent of future scheduling predictions for the first and second Bluetooth controllers on a unified global timeline.

[0054] like Figure 3 As shown, the global timeline is arranged from left to right, with time slots 0 to 7 (Slot 0 to Slot 7). The first Bluetooth controller (BT0) is in transmit mode and operating frequency channel 20 in time slot 0, receive mode and operating frequency channel 55 in time slot 1, idle mode in time slot 2, transmit mode and operating frequency channel 20 in time slot 3, receive mode and operating frequency channel 55 in time slot 4, transmit mode and operating frequency channel 20 in time slot 5, receive mode and operating frequency channel 55 in time slot 6, and idle mode in time slot 7.

[0055] The second Bluetooth controller (BT1) is in idle state in time slot 0, in transmitting state in time slot 1 with operating frequency channel 20, in receiving state in time slot 2 with operating frequency channel 55, in idle state in time slot 3, in transmitting state in time slot 4 with operating frequency channel 20, in receiving state in time slot 5 with operating frequency channel 55, in idle state in time slot 6, and in transmitting state in time slot 7 with operating frequency channel 20.

[0056] Figure 3 The following scheduling strategies are marked: At time slot 0, it is marked "Peak shifting protection, avoid co-channel interference," in which case the first Bluetooth controller transmits on channel 20 and the second Bluetooth controller is idle; at time slot 1, it is marked "Concurrency allowed, inter-frequency communication (Ch20 / Ch55)," in which case the first Bluetooth controller receives on channel 55 and the second Bluetooth controller transmits on channel 20; at time slot 2, it is marked "Inter-frequency communication (Ch20 / Ch55)," in which case the first Bluetooth controller is idle and the second Bluetooth controller receives on channel 55; at time slot 3, it is marked "Avoid co-channel interference," in which case the first Bluetooth controller transmits on channel 20. The first Bluetooth controller is transmitting on channel 55, and the second Bluetooth controller is idle. At time slot 4, marked "Concurrency Allowed," the first Bluetooth controller receives on channel 55, and the second Bluetooth controller transmits on channel 20. At time slots 5 and 6, marked "Concurrency Allowed, Inter-frequency Communication (Ch20 / Ch55)," the first Bluetooth controller transmits on channel 20 and the second Bluetooth controller receives on channel 55 in time slot 5, and the first Bluetooth controller receives on channel 55 while the second Bluetooth controller is idle in time slot 6. The diagram also indicates "Alternating Directions, Improving Channel Fairness," indicating that the transmission and reception directions of the first and second Bluetooth controllers alternate. Using this future scheduling prediction table, the dual Bluetooth global time slot scheduler can identify time slots with conflict risks and formulate corresponding scheduling strategies before actually executing transmission and reception operations.

[0057] Understandably, mapping the future send and receive behaviors of the two Bluetooth controllers onto the same global timeline can provide a data foundation for subsequent conflict detection and scheduling correction.

[0058] 104. Based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock, predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes in the future scheduling window.

[0059] Here, the corresponding time node refers to each global time slot within the future scheduling window, with each global time slot corresponding to a time node. Step 104 predicts the operating frequency points that the first Bluetooth controller and the second Bluetooth controller plan to use in each global time slot within the future scheduling window, that is, assigning a specific Bluetooth channel number (such as a channel between channel 0 and channel 78) to each global time slot.

[0060] It should be noted that predicting the operating frequency of the first Bluetooth controller at the corresponding time point within the future scheduling window and predicting the operating frequency of the second Bluetooth controller at the corresponding time point within the future scheduling window are performed independently. In other words, the operating frequency of each Bluetooth controller can be predicted independently based on its respective frequency hopping algorithm, its respective adaptive frequency hopping mapping relationship, and its respective link clock.

[0061] Specifically, based on the master device clock and Bluetooth device address connected to each Bluetooth controller, a local default frequency hopping sequence for the next time step can be generated using a standard Bluetooth frequency hopping function. Each hopping point in this sequence corresponds to a global time slot, thus determining the planned operating frequency for the Bluetooth controller in each global time slot. During the generation of the frequency hopping sequence, the current adaptive frequency hopping channel mapping of the Bluetooth controller, i.e., the external channel quality map, also needs to be considered. This external channel quality map records the situations where each Bluetooth channel is marked as an unavailable or low-priority channel by external interference sources (such as Wi-Fi interference, interference from other Bluetooth devices, or interference from non-Bluetooth devices). When a hopping point in the sequence falls into a channel marked as unavailable by external interference, this hopping point is replaced with an available channel in the adaptive frequency hopping channel mapping, thereby ensuring that the predicted operating frequency conforms to the current interference environment.

[0062] Since the first Bluetooth controller and the second Bluetooth controller are connected to different piconet or different master devices, their master device clocks and Bluetooth device addresses are different, and therefore their generated frequency hopping sequences are also different. Step 104 independently predicts the operating frequency points of the two Bluetooth controllers to obtain the operating frequency point sequence that corresponds one-to-one with each global time slot in the future scheduling prediction table, providing accurate frequency point data for subsequent frequency domain conflict detection.

[0063] In this embodiment of the application, by obtaining the operating frequency usage plans of the two Bluetooth controllers in future time slots in advance, the dual Bluetooth global time slot scheduling system can predict potential conflicts in the frequency domain dimension, avoiding the limitation of scheduling only in the time domain dimension.

[0064] 105. Based on the future scheduling prediction table and / or operating frequency, detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller.

[0065] In this embodiment of the application, after predicting the operating frequencies that the first Bluetooth controller and the second Bluetooth controller plan to use in the future scheduling window, and before detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and the operating frequencies, a cooperative adaptive frequency hopping pre-calculation step may be included: modifying the adaptive frequency hopping available channel set of the second Bluetooth controller based on the operating frequencies of the first Bluetooth controller in the future scheduling window; and / or modifying the adaptive frequency hopping available channel set of the first Bluetooth controller based on the operating frequencies of the second Bluetooth controller in the future scheduling window.

[0066] Specifically, when calculating the adaptive frequency hopping available channel set for the first Bluetooth controller, the operating frequencies of the second Bluetooth controller within the future scheduling window can be referenced. The operating frequencies planned for use by the second Bluetooth controller and their adjacent frequencies can be removed or downweighted from the adaptive frequency hopping available channel set of the first Bluetooth controller. For example, when the second Bluetooth controller plans to use channel 20 in a future global time slot, channels 18 to 22 are considered as cooperative avoidance targets in the adaptive frequency hopping available channel set of the first Bluetooth controller. This causes the first Bluetooth controller to no longer select channels 18 to 22 from the candidate channel set corresponding to that global time slot, but instead selects a more distant operating frequency from the adaptive frequency hopping available channel set. Similarly, when calculating the adaptive frequency hopping available channel set of the second Bluetooth controller, similar adjustments can be made by referring to the operating frequencies of the first Bluetooth controller within the future scheduling window.

[0067] To facilitate a more intuitive understanding of the above cooperative adaptive frequency hopping pre-calculation process, please refer to [link / reference]. Figure 4 , Figure 4 A schematic diagram of pre-calculation for collaborative adaptive frequency hopping and working frequency interval protection.

[0068] like Figure 4As shown, the operating frequencies of the first Bluetooth controller (BT0) and the second Bluetooth controller (BT1) are distributed within the range of Bluetooth channels 0 to 78. Taking a certain global time slot as an example, the first Bluetooth controller plans to use channel 20, and the original candidate channels of the second Bluetooth controller include channels 18 to 22. During the cooperative adaptive frequency hopping pre-calculation process, in order to avoid co-channel or adjacent-channel interference, channels 18 to 22 in the adaptive frequency hopping available channel set of the second Bluetooth controller are eliminated as adjacent-channel avoidance objects. The candidate channels of the second Bluetooth controller in this time slot are constrained to channels that are far away from channel 20, such as channel 55. This schematic diagram illustrates the basis of the cooperative adaptive frequency hopping pre-calculation—the frequency point spacing protection strategy, that is, constraining the adaptive frequency hopping available channel set of the second Bluetooth controller according to the operating frequency of the first Bluetooth controller, and outputting the constrained candidate channel set of the second Bluetooth controller. This candidate channel set excludes channels that are co-channel or adjacent to the operating frequency of the first Bluetooth controller.

[0069] Through this cooperative adaptive frequency hopping pre-calculation, the available channel set of each Bluetooth controller not only includes the air interface available channels determined by traditional adaptive frequency hopping, but also the system-level available channels corrected based on the cooperative relationship. This avoids two Bluetooth controllers from selecting the same or adjacent operating frequencies in the same or adjacent time slots, thereby improving concurrency stability.

[0070] After completing the cooperative adaptive frequency hopping pre-calculation, a conflict between the first Bluetooth controller and the second Bluetooth controller can be detected based on the future scheduling prediction table and / or operating frequency.

[0071] In the embodiments of this application, at least one of the following is included: Based on the future scheduling prediction table, the system detects whether there are overlapping link scheduling events in the same global time slot within the future scheduling window for the first and second Bluetooth controllers, in order to determine whether there is time domain resource contention. Time domain resource contention refers to a situation where the first and second Bluetooth controllers simultaneously perform transmit and receive actions in the same global time slot, causing a conflict in air interface resources in the time dimension. For example, if the first Bluetooth controller is receiving audio in time slot K, and the second Bluetooth controller originally planned to transmit data in time slot K, then this constitutes time domain resource contention. Based on the operating frequency, the system detects whether the first Bluetooth controller and the second Bluetooth controller plan to use the same operating frequency in the same global time slot within the future scheduling window, or whether the interval between their operating frequencies is less than a preset protection interval, to determine if a frequency domain conflict exists. A frequency domain conflict occurs when two Bluetooth controllers plan to use the same operating frequency in the same global time slot, or when the interval between their operating frequencies is less than the preset protection interval. For example, if the first Bluetooth controller uses channel 20 and the second Bluetooth controller uses channel 21, with a one-channel interval between them, and the preset protection interval is two channels, then a frequency domain conflict is determined to exist. Based on the future scheduling prediction table and operating frequency, when the first Bluetooth controller is in transmit mode and the second Bluetooth controller is in receive mode within the same global time slot, it is detected whether the received signal strength in the receive mode is lower than a preset threshold. When the received signal strength is lower than the preset threshold and the transmit power is higher than a certain level, it is determined that there is a risk of a conflict between transmit and weak receive. For example, when the received signal strength indication is less than -70dBm and the transmit power is greater than 0dBm, it is determined that there is a risk of a conflict between transmit and weak receive. Based on the future scheduling prediction table and operating frequency, when both the first and second Bluetooth controllers are in transmit mode within the same global time slot, it is determined whether the estimated total transmit power exceeds the isolation tolerance of the RF front-end. If both Bluetooth controllers are in transmit mode and the estimated total transmit power exceeds the isolation tolerance of the RF front-end, a conflict risk of dual transmit power exceeding the limit is identified. Based on the future scheduling prediction table, it is detected whether the transmit / receive slots of high-priority links are occupied by low-priority links. For example, when the transmit / receive slots of a low-latency game audio link are occupied by a regular BLE data link, it is determined that there is a conflict where a high-priority link is preempted. Based on the future scheduling prediction table, it is detected whether the audio link's delay budget has been violated. For example, if the remaining delay budget of an audio link is insufficient to guarantee the delivery of audio data before the buffer underflows, but the time slot is occupied by another link, a conflict is determined to have violated the audio link's delay budget. Based on the future scheduling prediction table, it is checked whether the retransmission window is occupied. For example, if the retransmission window of the first or second Bluetooth controller, which is about to enter its last retransmission opportunity before the refresh timeout, is occupied by the other party's link, it is determined that there is a conflict where the retransmission window is occupied.

[0072] In this embodiment, multi-dimensional conflict detection comprehensively covers various interference scenarios that may occur when dual Bluetooth devices operate concurrently, providing accurate decision-making basis for scheduling correction. Simultaneously, through collaborative adaptive frequency hopping pre-calculation, conflict detection is upgraded from runtime ad-hoc detection to pre-calculated avoidance, improving the predictability and stability of the dual Bluetooth global time slot scheduling system.

[0073] 106. Generate a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and the preset scheduling strategy.

[0074] Specifically, when a conflict is detected, the future scheduling prediction table is modified according to the preset scheduling strategy to generate a global collaborative scheduling plan table shared by both Bluetooth controllers; when no conflict is detected, the future scheduling prediction table is used as the global collaborative scheduling plan table shared by both Bluetooth controllers.

[0075] The shared global collaborative scheduling plan table for the two Bluetooth controllers refers to the same scheduling plan table that both the first and second Bluetooth controllers follow. This scheduling plan table uniformly specifies the transmit and receive behaviors, operating frequencies, and link priorities of the two Bluetooth controllers in each global time slot in the future. Both Bluetooth controllers perform transmit and receive operations according to this plan table, thereby realizing collaborative work between the two Bluetooth controllers.

[0076] Specifically, when any of the above-mentioned conflicts are detected, scheduling corrections can be performed on the future scheduling prediction table according to the preset scheduling strategy.

[0077] In this embodiment, the link priority, in descending order, may include at least one of the following: low-latency gaming audio link, low-power audio Bluetooth real-time audio link, HFP voice link, A2DP music link, BLE control link, BLE general data link, scanning link, broadcast link, and background maintenance link. When multiple links conflict in the same global time slot, the transmission and reception time slots of the higher-priority link are given priority. For example, the low-latency gaming audio link has strict latency requirements, and its transmission and reception time slots are given priority in case of conflict; the general BLE data link can be postponed to a subsequent idle time slot; the A2DP music link, due to its large buffer capacity, can be adjusted within a certain range; and the HFP voice link, due to its strong interactivity, can obtain a higher priority.

[0078] In some embodiments, the preset scheduling strategy may include at least one of the following: Adjust the transmission time slot of at least one of the first or second Bluetooth controllers to move the transmission operation to an adjacent or subsequent available time slot. For example, if the first Bluetooth controller is receiving audio in time slot K, and the second Bluetooth controller was originally scheduled to transmit data in time slot K, if the data link of the second Bluetooth controller allows for a certain delay, then the transmission of the second Bluetooth controller can be adjusted to time slot K+1 or time slot K+2, thereby creating time slot staggering.

[0079] Adjust the set of available adaptive frequency hopping channels for at least one of the first or second Bluetooth controllers. When a frequency domain conflict is detected, remove the conflicting operating frequency from the set of available adaptive frequency hopping channels for the low-priority link through cooperative adaptive frequency hopping pre-calculation.

[0080] Adjust the frequency hopping candidate frequency point of at least one of the first or second Bluetooth controllers in the current time slot. When it is not possible to avoid conflicts by adjusting the set of available channels for adaptive frequency hopping, directly replace the frequency hopping candidate frequency point of the low-priority link with other available operating frequencies that are farther away from the operating frequency point of the high-priority link in the current time slot.

[0081] Reduce the transmit power of at least one of the first or second Bluetooth controllers. When the dual transmit power exceeds the limit, appropriately reduce the transmit power of one or both Bluetooth controllers to meet the RF front-end isolation requirements.

[0082] Mark the high-priority receive window as protected and prevent another Bluetooth controller from transmitting in the same time slot. For example, when the first Bluetooth controller is receiving a weak signal from a remote device, mark the first Bluetooth controller's receive window as protected and prevent the second Bluetooth controller from transmitting in the same time slot.

[0083] Defer the transmission and reception operations of low-priority data links. When a high-priority link needs to occupy the current time slot, the transmission and reception operations of the low-priority data link will be postponed to a subsequent idle time slot.

[0084] When concurrency conditions are met, the first Bluetooth controller and the second Bluetooth controller are allowed to operate concurrently in the same time slot. These concurrency conditions include at least one of the following: both the first and second Bluetooth controllers are in receive mode; both are in transmit mode and the planned operating frequency interval between them is greater than a preset frequency interval threshold; the first and second Bluetooth controllers use different antennas and the antenna isolation meets a preset isolation requirement; one of the first and second Bluetooth controllers is transmitting at low power, and the received signal strength of the other is higher than a preset high signal threshold; both the first and second Bluetooth controllers use low-priority links and a certain bit error rate is allowed; the dual Bluetooth global time slot scheduling system detects that the current air interface interference is lower than a preset interference threshold; and the operating frequencies of the first and second Bluetooth controllers meet the protection interval requirement after cooperative adaptive frequency hopping pre-calculation.

[0085] During dual Bluetooth global time-slot scheduling, the first Bluetooth controller and the second Bluetooth controller may have multiple transmit / receive direction combinations within the same global time slot, and different combinations correspond to different scheduling strategies. Please refer to [link / reference]. Figure 5 , Figure 5This is a schematic diagram of coordinated scheduling for dual Bluetooth transceiver directions. Figure 5 Four typical combinations of send and receive directions and their scheduling strategies are demonstrated: The first combination involves the first Bluetooth controller transmitting and the second Bluetooth controller receiving (BT0 transmits / BT1 receives). In this combination, if one Bluetooth controller is transmitting a signal while the other is receiving, it may cause reception congestion. Therefore, the scheduling strategy is "protect reception or off-peak," specifically including: if the receiving link is a high-priority receiving link, then the receiving link is protected first, and the transmitting link is delayed or adjusted; if the transmitting link is low-priority data, then the low-priority data is processed later.

[0086] The second combination involves the first Bluetooth controller receiving and the second Bluetooth controller transmitting (BT0 receive / BT1 transmit). This combination is the opposite of the first, but the risk level is the same; the receiving link also faces the risk of being blocked by the transmitting link. Therefore, the scheduling strategy is also "protect the receiver or stagger the peak," that is, protect the high-priority receiving link or postpone low-priority data.

[0087] The third combination involves the first Bluetooth controller transmitting and the second Bluetooth controller transmitting (BT0 transmit / BT1 transmit). This combination is a dual-transmission scenario where both Bluetooth controllers transmit simultaneously. Whether concurrency is allowed depends on whether isolation conditions are met. The scheduling strategy is "allow concurrency after judging the frequency interval": if the two transmission links meet the isolation conditions (such as a sufficiently large frequency interval, power level meeting requirements, and antenna isolation meeting preset isolation requirements), then concurrency is allowed; if the isolation conditions are not met, peak shifting or frequency adjustment is performed, adjusting the transmission of one Bluetooth link to another time slot or frequency.

[0088] The fourth combination is a first Bluetooth controller receiving and a second Bluetooth controller receiving (BT0 receiving / BT1 receiving). This combination is a dual-receiver scenario, with both channels receiving, resulting in minimal mutual interference. The scheduling strategy is "allow concurrency," meaning that the two Bluetooth controllers can receive simultaneously without interfering with each other.

[0089] Figure 5 The criteria for collaborative decision-making are also shown, including: link status, service priority, channel quality, interference estimation, frequency spacing, isolation conditions, and resource consumption. Based on the above collaborative decision-making criteria, the dual Bluetooth global time slot scheduler can select an appropriate scheduling strategy from various transmit / receive direction combinations to decide whether to allow concurrency or execute corresponding transmit / receive direction collaborative scheduling.

[0090] Using the above scheduling strategy, the final global collaborative scheduling plan table can be generated. Each time slot entry in this global collaborative scheduling plan table corresponds to a global time slot, and each time slot entry includes at least the following information: global time slot number; whether the first Bluetooth controller occupies the global time slot; whether the second Bluetooth controller occupies the global time slot; the transmit / receive direction of the first Bluetooth controller in the global time slot; the transmit / receive direction of the second Bluetooth controller in the global time slot; the operating frequency of the first Bluetooth controller in the global time slot; the operating frequency of the second Bluetooth controller in the global time slot; the link type and / or link priority of the first Bluetooth controller in the global time slot; and the link type and / or link priority of the second Bluetooth controller in the global time slot.

[0091] In some embodiments, after generating the corresponding global collaborative scheduling plan table based on the detection results, the method further includes: synchronizing the global collaborative scheduling plan table to the first Bluetooth controller and the second Bluetooth controller respectively through a hardware interface, a shared storage area, or a control message, so that the first Bluetooth controller and the second Bluetooth controller perform transmit and receive operations according to the global collaborative scheduling plan table.

[0092] Among them, the hardware interface refers to the physical communication interface between the first and second Bluetooth controllers and the dual Bluetooth global time slot scheduler, such as inter-controller communication (HCI / signaling) via the on-chip internal bus; the shared storage area refers to the memory area shared by the dual Bluetooth global time slot scheduler and the first and second Bluetooth controllers, by writing the global collaborative scheduling plan table into this shared storage area for the two Bluetooth controllers to read; the control message refers to the scheduling instruction message sent by the dual Bluetooth global time slot scheduler to the first and second Bluetooth controllers through message queues or signaling channels.

[0093] Specifically, the global collaborative scheduling plan can be pre-written into the future execution queue in the hardware link control registers of the first and second Bluetooth controllers. This global collaborative scheduling plan includes information such as transmit enable bits, receive enable bits, and frequency control words for the next N time slots. When issuing commands, a precise execution timestamp is carried. The internal hardware timers of the first and second Bluetooth controllers automatically trigger the transmit / receive switch the instant the unified Bluetooth clock reaches this timestamp, without software interruption intervention, ensuring microsecond-level deterministic execution. After the command is issued, the acknowledgment flags of the two Bluetooth controllers are read back to ensure that the global collaborative scheduling plan is correctly latched.

[0094] In some embodiments, the dual Bluetooth global time-slot scheduling method may further include a dynamic update step. Specifically, during the operation of the dual Bluetooth global time-slot scheduling system, the global collaborative scheduling plan table can be updated periodically or through event-triggered mechanisms. Event-triggered mechanisms include at least one of the following triggering conditions: changes in link status, changes in channel quality, switching of service type, changes in latency constraints, retransmission count exceeding a preset threshold, and bit error rate exceeding a preset threshold. Through dynamic updates, the dual Bluetooth global time-slot scheduling system can continuously optimize the scheduling plan based on real-time changes in link conditions and service requirements.

[0095] In this embodiment, the first Bluetooth controller and the second Bluetooth controller each support at least one of the following Bluetooth types: Classic Bluetooth, Bluetooth Low Energy, Bluetooth Low Energy Audio, and Dual-Mode Bluetooth. The first and second Bluetooth controllers operate different link types, or the link type can be dynamically allocated according to service requirements. For example, in the Dongle gaming headset scenario, the first Bluetooth controller is responsible for the Classic Bluetooth A2DP music link, while the second Bluetooth controller is responsible for the Bluetooth Low Energy Audio Low Latency voice or gaming audio link.

[0096] In practical applications, the first Bluetooth controller and the second Bluetooth controller can be integrated on different cores of the same chip, or they can be integrated on two different chips. This application does not limit this.

[0097] To more clearly illustrate the technical solutions of the embodiments of this application, several specific application scenarios are described below.

[0098] Application Scenario 1: Concurrent use of Bluetooth Low Energy Audio and Classic Bluetooth A2DP.

[0099] In a Dongle gaming headset scenario, the first Bluetooth controller handles the classic Bluetooth A2DP audio link, while the second Bluetooth controller handles the Bluetooth Low Energy (BLE) low-latency voice or gaming audio link. The BLE link of the second controller is more sensitive to latency, so its receive window is set to high priority. When the first controller's A2DP link is scheduled to transmit in the same global time slot, it's determined that this transmission might affect the second controller's low-latency reception. Therefore, the first controller's transmission is moved to a later allowed time slot, or a channel further away from the second controller's operating frequency is selected in the cooperative adaptive frequency hopping calculation. In this way, the dual Bluetooth global time slot scheduling system maintains normal playback of the A2DP audio link while ensuring stable low-latency operation of the BLE link, providing users with a seamless gaming audio experience.

[0100] Application Scenario 2: Simultaneous transmission of dual Bluetooth devices.

[0101] In a given global time slot, both the first and second Bluetooth controllers need to transmit data. The decision is made based on the operating frequencies of the two links: if the first Bluetooth controller uses channel 10 and the second Bluetooth controller uses channel 65, and the isolation between the two antennas meets the requirements, then both Bluetooth controllers are allowed to transmit simultaneously. If the first Bluetooth controller uses channel 20, while the second Bluetooth controller was originally planned to use channel 21, then during pre-calculation, it is determined that this combination poses a risk of adjacent-channel interference. Therefore, through cooperative adaptive frequency hopping pre-calculation, the candidate channel for the second Bluetooth controller in that time slot is adjusted to another channel far from channel 20, such as channel 65. This method avoids temporarily prohibiting the second Bluetooth controller from transmitting during runtime, improving concurrent transmission capability while ensuring communication quality.

[0102] Application Scenario 3: Protecting weak signal reception.

[0103] When the first Bluetooth controller is receiving a weak signal from a remote device, such as a received signal strength indicator below -70dBm, and the second Bluetooth controller plans to transmit in the same time slot, the receiving window of the first Bluetooth controller needs protection based on the received signal strength indicator, bit error rate, and link type. If the second Bluetooth controller's service is a normal BLE data link, its transmission is delayed. If the second Bluetooth controller's service is also high-priority real-time audio, further decisions are made based on the operating frequency interval, transmit power, and link delay budget to determine whether concurrency is allowed or peak shifting is implemented. This method prevents the transmission of one Bluetooth controller from blocking the weak signal reception of another, ensuring link stability in long-distance communication scenarios.

[0104] Application Scenario 4: Concurrent Game Audio and Backend Data Scenario.

[0105] In gaming headset applications, the first Bluetooth controller carries the low-latency gaming audio link, which has the highest priority; the second Bluetooth controller carries the background firmware upgrade data link, which has the lowest priority. When the two links conflict in the same global time slot, according to the link priority scheduling strategy, the transmission and reception time slots of the first Bluetooth controller's gaming audio link are prioritized, while the background firmware upgrade data of the second Bluetooth controller is postponed to a subsequent idle time slot. Since the background firmware upgrade is not sensitive to latency, this scheduling strategy ensures the gaming audio experience without affecting the final completion of background services.

[0106] Application Scenario 5: Dual-channel audio concurrency scenario.

[0107] In a two-person shared audio scenario, a first Bluetooth controller connects to the first pair of headphones to play audio stream A, and a second Bluetooth controller connects to the second pair of headphones to play audio stream B. Based on the latency budget and buffering status of the two audio streams, the audio data transmission time slots of the two Bluetooth controllers are staggered to avoid mutual interference caused by simultaneous transmission. Simultaneously, through cooperative adaptive frequency hopping pre-calculation, sufficient operating frequency intervals are ensured when the two Bluetooth controllers are using different operating frequencies, enabling both pairs of headphones to obtain a stable audio playback experience.

[0108] In summary, the dual Bluetooth global time slot scheduling method provided in this application includes providing a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller, so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; obtaining the current link status information of the first Bluetooth controller and the second Bluetooth controller; predicting the planned transmission and reception behavior of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window based on the current link status information, and mapping the prediction results onto the global time axis to generate a future scheduling prediction table containing time occupancy information, transmission and reception direction information, link priority information, and frequency point information; predicting the operating frequency points that the first Bluetooth controller and the second Bluetooth controller plan to use in the future scheduling window; detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or operating frequency points; and generating a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and a preset scheduling strategy. This application embodiment can effectively leverage the advantages of concurrent communication under the dual Bluetooth architecture by uniformly pre-calculating and pre-detecting the future scheduling time slots and operating frequencies of the two Bluetooth controllers, completing scheduling correction before a conflict occurs. This application's embodiments effectively solve the problems of time slot drift, transmit / receive conflicts, co-channel interference, adjacent channel interference, increased link latency, and low air interface resource utilization caused by the independent scheduling of two Bluetooth controllers in existing dual Bluetooth systems through mechanisms such as unified Bluetooth clock, dual Bluetooth global time slot scheduler, cooperative adaptive frequency hopping pre-calculation, and multi-dimensional conflict detection and scheduling correction. It is particularly suitable for low-latency application scenarios such as concurrent use of low-power audio Bluetooth and classic Bluetooth, game audio, dual-channel audio, and concurrent use of voice and music.

[0109] To facilitate better implementation of the dual Bluetooth global time slot scheduling method provided in this application, this application also provides a dual Bluetooth global time slot scheduling system. The meanings of the terms used are the same as in the dual Bluetooth global time slot scheduling method described above, and specific implementation details can be found in the descriptions within the method embodiments.

[0110] Please see Figure 6 , Figure 6This is a schematic diagram of the structure of the dual Bluetooth global time slot scheduling system provided in an embodiment of this application. The dual Bluetooth global time slot scheduling system may include a first Bluetooth controller 201, a second Bluetooth controller 202, a unified Bluetooth clock generator 203, and a dual Bluetooth global time slot scheduler 204.

[0111] The first Bluetooth controller 201 and the second Bluetooth controller 202 are respectively connected to the unified Bluetooth clock generator 203, which is used to provide a unified Bluetooth clock for the first Bluetooth controller 201 and the second Bluetooth controller 202, so that the time slot boundaries of the first Bluetooth controller 201 and the second Bluetooth controller 202 are aligned to a unified global time axis.

[0112] In some embodiments of this application, the unified Bluetooth clock generated by the unified Bluetooth clock generator 203 includes at least one of the following: a base Bluetooth clock, a half-slot count, a micro-slot count, a local high-precision timer, an offset correction value after synchronization with an external Bluetooth device, a link clock offset of the first Bluetooth controller 201, and a link clock offset of the second Bluetooth controller 202. The base Bluetooth clock provides a 312.5 microsecond slot boundary reference; the half-slot count and micro-slot count are used to handle inter-frame intervals and slave device response timing; and the local high-precision timer provides a timing reference with higher precision than the base Bluetooth clock.

[0113] The first Bluetooth controller 201 and the second Bluetooth controller 202 are respectively connected to the dual Bluetooth global time slot scheduler 204. Figure 7 As shown, the dual Bluetooth global time slot scheduler 204 includes a link management module 2041, a time slot prediction module 2042, a spectrum resource prediction module 2043, a collision detection module 2044, and a target generation module 2045.

[0114] The link management module 2041 is used to obtain the current link status information of the first Bluetooth controller 201 and the second Bluetooth controller 202. The time slot prediction module 2042 is used to predict the planned transmission and reception behavior of the first Bluetooth controller 201 and the second Bluetooth controller 202 in the future scheduling window based on the current link status information, and map the prediction results onto the global time axis to generate a future scheduling prediction table containing time occupancy information, transmission and reception direction information, link priority information, and frequency point information. The spectrum resource prediction module is used to predict the operating frequency points of the first Bluetooth controller 201 and the second Bluetooth controller 202 at corresponding time nodes in the future scheduling window based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock. The conflict detection module 2044 is used to detect whether there is a conflict between the first Bluetooth controller 201 and the second Bluetooth controller 202 based on the future scheduling prediction table and / or operating frequency points. The target generation module 2045 is used to generate a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and a preset scheduling strategy.

[0115] In some embodiments of this application, the dual Bluetooth global time-slot scheduler 204 is further configured to update the global collaborative scheduling plan table periodically or through event-triggered methods during the operation of the dual Bluetooth global time-slot scheduling system. Event-triggered methods include at least one of the following triggering conditions: a change in link status, a change in channel quality, a switch in service type, a change in delay constraints, a retransmission count exceeding a preset threshold, or a bit error rate exceeding a preset threshold.

[0116] In some embodiments of this application, the first Bluetooth controller 201 and the second Bluetooth controller 202 respectively support at least one of the following Bluetooth types: Bluetooth Classic, Bluetooth Low Energy, Bluetooth Low Energy Audio, and Dual-Mode Bluetooth. The first Bluetooth controller 201 and the second Bluetooth controller 202 operate on different link types, or the link type is dynamically allocated according to service requirements.

[0117] In some embodiments of this application, such as Figure 8 As shown, the dual Bluetooth global time slot scheduling system may also include a first radio frequency front-end / antenna 205 and a second radio frequency front-end / antenna 206 corresponding to the first Bluetooth controller 201 and the second Bluetooth controller 202, respectively, to provide isolation capability between the radio frequency front-end and the antenna.

[0118] In some embodiments of this application, such as Figure 9As shown, the dual Bluetooth global time-slot scheduler 204 may further include a command issuing module 2047 and a schedule storage module 2046. The command issuing module 2047 is used to issue the global collaborative scheduling schedule to the first Bluetooth controller 201 and the second Bluetooth controller 202 respectively, so that the first Bluetooth controller 201 and the second Bluetooth controller 202 perform transmit and receive operations according to the global collaborative scheduling schedule. The schedule storage module 2046 is used to store the global collaborative scheduling schedule.

[0119] It should be noted that the specific implementation methods and technical effects of each module in the above system embodiments can be found in the relevant descriptions in the foregoing method embodiments, and will not be repeated here.

[0120] In summary, the dual Bluetooth global time slot scheduling system provided in this application can effectively solve the problems of time slot drift, transmit / receive conflicts, co-channel interference, adjacent channel interference, increased link latency, and low air interface resource utilization caused by the independent scheduling of two Bluetooth controllers in existing dual Bluetooth systems through mechanisms such as unified Bluetooth clock, dual Bluetooth global time slot scheduler, cooperative adaptive frequency hopping pre-calculation, and multi-dimensional conflict detection and scheduling correction. It is particularly suitable for low-latency application scenarios such as concurrent use of low-power audio Bluetooth and classic Bluetooth, game audio, dual-channel audio, and concurrent use of voice and music.

[0121] This application also provides a Bluetooth communication device, which may integrate the dual Bluetooth global time slot scheduling system of this application, such as... Figure 10 As shown, it illustrates a structural schematic diagram of the Bluetooth communication device involved in the embodiments of this application. Specifically: The Bluetooth communication device may include components such as a processor 301 with one or more processing cores and a memory 302 of one or more computer-readable storage media. Those skilled in the art will understand that... Figure 10 The Bluetooth communication device structure shown does not constitute a limitation on the Bluetooth communication device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 301 is the control center of the Bluetooth communication device. It connects various parts of the Bluetooth communication device via various interfaces and lines. By running or executing software programs stored in the memory 302 and / or the methods provided in this application, and by calling data stored in the memory 302, it performs various functions and processes data of the Bluetooth communication device, thereby providing overall monitoring of the Bluetooth communication device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operation of the storage medium, user interface, and application programs, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.

[0122] The memory 302 can be used to store software programs and the methods provided in this application. The processor 301 executes various functional applications and data processing by running the software programs stored in the memory 302 and the methods provided in this application. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store applications required for operating the storage medium and at least one function; the data storage area may store data created based on the use of the Bluetooth communication device. In addition, the memory 302 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0123] Although not shown, the Bluetooth communication device may also include a display unit, an input unit, and a power supply, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the Bluetooth communication device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302 to realize various functions, as follows: Provide a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; Obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller; Based on the current link status information, the planned transmission and reception behaviors of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window are predicted respectively, and the prediction results are mapped onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information. Based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship and link clock, predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes in the future scheduling window; Based on the future scheduling prediction table and / or operating frequency, detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller; Based on the detection results and the preset scheduling strategy, a global collaborative scheduling plan table shared by the two Bluetooth controllers is generated.

[0124] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0125] Therefore, embodiments of this application provide a storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the methods provided in embodiments of this application. For example, the instructions can execute the following steps: Provide a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; Obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller; Based on the current link status information, the planned transmission and reception behaviors of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window are predicted respectively, and the prediction results are mapped onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information. Based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship and link clock, predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes in the future scheduling window; Based on the future scheduling prediction table and / or operating frequency, detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller; Based on the detection results and the preset scheduling strategy, a global collaborative scheduling plan table shared by the two Bluetooth controllers is generated.

[0126] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0127] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0128] Since the instructions stored in the storage medium can execute the steps of any method provided in the embodiments of this application, the beneficial effects that any method provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0129] The dual Bluetooth global time slot scheduling method, system, and Bluetooth communication device provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A dual Bluetooth global time slot scheduling method, characterized in that, Applied to a dual Bluetooth global time-slot scheduling system including a first Bluetooth controller and a second Bluetooth controller, the dual Bluetooth global time-slot scheduling method includes: Provide a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; Obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller; Based on the current link status information, the planned transmission and reception behaviors of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window are predicted respectively, and the prediction results are mapped onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information. Based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship and link clock, predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at the corresponding time nodes in the future scheduling window; Based on the future scheduling prediction table and / or the operating frequency, detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller; Based on the detection results and the preset scheduling strategy, a global collaborative scheduling plan table shared by the two Bluetooth controllers is generated.

2. The dual Bluetooth global time slot scheduling method as described in claim 1, characterized in that, The step of detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or the operating frequency includes: Based on the future scheduling prediction table, detect whether there are link scheduling events with overlapping time resources in the same global time slot of the first Bluetooth controller and the second Bluetooth controller within the future scheduling window, so as to determine whether there is time domain resource contention. And / or, based on the operating frequency, detect whether the operating frequencies of the first Bluetooth controller and the second Bluetooth controller overlap in the same global time slot within the future scheduling window, whether the adjacent channel spacing is less than a preset protection distance, or whether there is a frequency relationship that causes radio frequency interference, so as to determine whether there is a frequency domain conflict.

3. The dual Bluetooth global time slot scheduling method as described in claim 2, characterized in that, It also includes at least one of the following: Based on the future scheduling prediction table, the operating frequency, and the current link status information, assess whether the interference caused by the transmission activity of the first Bluetooth controller to the receiving link of the second Bluetooth controller exceeds a preset interference threshold. Based on the future scheduling prediction table and the operating frequency, when both the first Bluetooth controller and the second Bluetooth controller are in transmit mode within the same global time slot, it is estimated whether the total transmit power exceeds the RF front-end isolation tolerance range. Based on the future scheduling prediction table, detect whether the transmit and receive time slots of high-priority links are occupied by low-priority links; Based on the future scheduling prediction table, detect whether the latency budget of the audio link has been compromised; Based on the future scheduling prediction table, check whether the retransmission window is occupied.

4. The dual Bluetooth global time slot scheduling method as described in claim 1, characterized in that, The generation of a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and a preset scheduling strategy includes: When a conflict is detected, the future scheduling prediction table is modified according to the preset scheduling strategy to generate a global collaborative scheduling plan table shared by the two Bluetooth controllers. When no conflict is detected, the future scheduling prediction table is used as a global collaborative scheduling plan table shared by the two Bluetooth controllers.

5. The dual Bluetooth global time slot scheduling method as described in claim 1, characterized in that, After predicting the operating frequencies of the first Bluetooth controller and the second Bluetooth controller at corresponding time points within the future scheduling window based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock, and before detecting whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or the operating frequencies, the method further includes: Based on the operating frequency of the first Bluetooth controller within the future scheduling window, the adaptive frequency hopping available channel set of the second Bluetooth controller is modified; and / or Based on the operating frequency of the second Bluetooth controller within the future scheduling window, the set of available adaptive frequency hopping channels for the first Bluetooth controller is modified.

6. The dual Bluetooth global time slot scheduling method according to any one of claims 1-5, characterized in that, The unified Bluetooth clock includes at least one of the following: a base Bluetooth clock, a half-slot count, a micro-slot count, a local high-precision timer, an offset correction value after synchronization with an external Bluetooth device, a link clock offset of the first Bluetooth controller, and a link clock offset of the second Bluetooth controller.

7. The dual Bluetooth global time slot scheduling method according to any one of claims 1-5, characterized in that, Each time slot entry in the future scheduling prediction table and the global cooperative scheduling plan table corresponds to a global time slot, and each time slot entry includes at least the following information: Global slot numbering; Does the first Bluetooth controller occupy a global time slot? Does the second Bluetooth controller occupy a global time slot? The transmit / receive direction of the first Bluetooth controller in the global time slot; The transmit / receive direction of the second Bluetooth controller in the global time slot; The operating frequency of the first Bluetooth controller in the global time slot; The operating frequency of the second Bluetooth controller in the global time slot; The link type and / or link priority of the first Bluetooth controller in the global time slot; The second Bluetooth controller determines the link type and / or link priority in the global time slot.

8. The dual Bluetooth global time slot scheduling method according to any one of claims 1-5, characterized in that, Also includes: The global collaborative scheduling plan is synchronized to the first Bluetooth controller and the second Bluetooth controller via hardware interface, shared storage area or control message, so that the first Bluetooth controller and the second Bluetooth controller perform transmit and receive operations according to the global collaborative scheduling plan.

9. A dual Bluetooth global time-slot scheduling system, characterized in that, include: First Bluetooth controller and second Bluetooth controller; A unified Bluetooth clock generator is provided, with the first Bluetooth controller and the second Bluetooth controller respectively connected to the unified Bluetooth clock generator, for providing a unified Bluetooth clock for the first Bluetooth controller and the second Bluetooth controller, so that the time slot boundaries of the first Bluetooth controller and the second Bluetooth controller are aligned to a unified global time axis; A dual Bluetooth global time-slot scheduler, wherein a first Bluetooth controller and a second Bluetooth controller are respectively connected to the dual Bluetooth global time-slot scheduler, the dual Bluetooth global time-slot scheduler comprising: The link management module is used to obtain the current link status information of the first Bluetooth controller and the second Bluetooth controller; The time slot prediction module is used to predict the planned transmission and reception behavior of the first Bluetooth controller and the second Bluetooth controller in the future scheduling window based on the current link status information, and to map the prediction results onto the global time axis to generate a future scheduling prediction table containing time occupation information, transmission and reception direction information, link priority information and frequency point information. The spectrum resource prediction module is used to predict the operating frequency points of the first Bluetooth controller and the second Bluetooth controller at corresponding time nodes within the future scheduling window, based on the frequency hopping algorithm, adaptive frequency hopping mapping relationship, and link clock. The conflict detection module is used to detect whether there is a conflict between the first Bluetooth controller and the second Bluetooth controller based on the future scheduling prediction table and / or the operating frequency. The target generation module is used to generate a global collaborative scheduling plan table shared by the two Bluetooth controllers based on the detection results and the preset scheduling strategy.

10. A Bluetooth communication device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the dual Bluetooth global time slot scheduling method as claimed in any one of claims 1-8.