Bluetooth and wi-fi coexistence communication method, system, electronic device, storage medium

CN116744271BActive Publication Date: 2026-10-27SHANGHAI WU QI MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310835519.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2026-10-27
Estimated Expiration
2043-07-07

AI Technical Summary

Technical Problem

[0005]本申请实施例的目的在于提供一种蓝牙和Wi-Fi共存的通信方法、系统、电子设备、计算机可读存储介质,用于解决Wi-Fi和蓝牙共用天线的场景下,只有一方可以正常通信的问题

Benefits of technology

[0032]本申请方案,结合优先级策略和时间片策略,在蓝牙模块和Wi-Fi模块的优先级相同的情况下,基于时间片策略选择能够接管天线进行通信的模块,避免了蓝牙模块和Wi-Fi模块共用天线、且优先级相同的情况下,只有一方可以通信,而另一方始终无法通信的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116744271B_ABST
    Figure CN116744271B_ABST
Patent Text Reader

Abstract

The application provides a Bluetooth and Wi-Fi coexistence communication method, system, electronic device and storage medium. The method comprises the following steps: obtaining the relative priority between a Bluetooth module and a Wi-Fi module; judging whether the relative priority is the same; if yes, determining an antenna takeover module based on a current time slice allocation result; and controlling the Bluetooth module or the Wi-Fi module indicated by the antenna takeover module to perform communication. The application solves the problem that only one party can normally communicate in the scenario of Wi-Fi and Bluetooth sharing an antenna.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication method, system, electronic device, and computer-readable storage medium in which Bluetooth and Wi-Fi coexist. Background Technology

[0002] With the development of Wi-Fi and Bluetooth technologies, more and more Wi-Fi products on the market are incorporating Bluetooth functionality, known as Wi-Fi / Bluetooth combo chips. Since both Bluetooth and Wi-Fi operate in the 2.4GHz band, the question of how they can coexist needs to be considered.

[0003] In related technologies, in systems where Bluetooth and Wi-Fi coexist and share an antenna, priorities can be set for Bluetooth and Wi-Fi respectively based on the actual scenario, allowing the higher-priority protocol to communicate. As the system progresses, the priorities of Bluetooth and Wi-Fi change, allowing them to communicate alternately. See also Figure 1 This is a schematic diagram illustrating alternating Bluetooth and Wi-Fi communication under a priority strategy provided in an embodiment of this application, as shown below. Figure 1 As shown, Wi-Fi priority is always 5, while Bluetooth priorities are 10, 5, and 4 respectively. In this case, the PTA (Packet Traffic Arbitration) results for the three stages are: Bluetooth communication, Bluetooth communication, and Wi-Fi communication. Figure 1 In the PTA result, the low-order bits indicate Wi-Fi communication, and the high-order bits indicate Bluetooth communication.

[0004] However, if Bluetooth and Wi-Fi have the same priority at any given time, the previous priority will be used, causing one of them to be unable to communicate properly. If Bluetooth and Wi-Fi have the same priority for a long period of time, one of them will inevitably be unable to communicate for an extended period. Summary of the Invention

[0005] The purpose of this application is to provide a communication method, system, electronic device, and computer-readable storage medium in which Bluetooth and Wi-Fi coexist, to solve the problem that only one of them can communicate normally in scenarios where Wi-Fi and Bluetooth share an antenna.

[0006] On the one hand, this application provides a communication method in which Bluetooth and Wi-Fi coexist, including:

[0007] Obtain the relative priority between the Bluetooth module and the Wi-Fi module;

[0008] Determine whether the relative priorities are the same; if so, determine the antenna takeover module based on the current time slice allocation result.

[0009] The antenna takeover module controls the Bluetooth or Wi-Fi module to communicate.

[0010] In one embodiment, obtaining the relative priority between the Bluetooth module and the Wi-Fi module includes:

[0011] Obtain the first priority of the Bluetooth module and the second priority of the Wi-Fi module;

[0012] Check the relationship between the first priority and the second priority to obtain the relative priority.

[0013] In one embodiment, before obtaining the first priority of the Bluetooth module and the second priority of the Wi-Fi module, the method further includes:

[0014] When the Bluetooth module has an urgent service, its first priority is configured as the highest priority; or...

[0015] When the Wi-Fi module has an urgent service, the second priority of the Wi-Fi module is configured as the highest priority.

[0016] In one embodiment, the method further includes:

[0017] Once the emergency service is completed, configure the priority corresponding to the current service for the Bluetooth module or Wi-Fi module that performed the emergency service.

[0018] In one embodiment, before determining the antenna takeover module based on the current time slice allocation result, the method further includes:

[0019] Based on the current time point, the first time slice distribution interval corresponding to the Bluetooth module, and the second time slice distribution interval corresponding to the Wi-Fi module, the current time slice allocation result is determined.

[0020] In one embodiment, the method further includes:

[0021] If the relative priorities are different, control the Bluetooth module or Wi-Fi module with the higher priority to communicate.

[0022] On the other hand, this application provides a communication system that allows Bluetooth and Wi-Fi to coexist, including:

[0023] The priority module is used to obtain the first priority of the Bluetooth module and the second priority of the Wi-Fi module; check the high-low relationship between the first priority and the second priority to obtain the relative priority;

[0024] The PTA module, connected to the priority module, is used to obtain the relative priority between the Bluetooth module and the Wi-Fi module; determine whether the relative priorities are the same; if so, determine the antenna takeover module based on the current time slice allocation result; and control the Bluetooth module or Wi-Fi module indicated by the antenna takeover module to communicate.

[0025] In one embodiment, the system further includes:

[0026] The time slice module, connected to the PTA module, is used to determine the current time slice allocation result based on the current time point, the first time slice distribution interval corresponding to the Bluetooth module, and the second time slice distribution interval corresponding to the Wi-Fi module; and to transmit the time slice allocation result to the PTA module.

[0027] Furthermore, this application provides an electronic device, the electronic device comprising:

[0028] processor;

[0029] Memory used to store processor-executable instructions;

[0030] The processor is configured to execute the aforementioned communication method that allows Bluetooth and Wi-Fi to coexist.

[0031] In addition, this application provides a computer-readable storage medium storing a computer program that can be executed by a processor to perform the above-described communication method for coexistence of Bluetooth and Wi-Fi.

[0032] This application's solution combines a priority strategy and a time-slice strategy. When the Bluetooth module and the Wi-Fi module have the same priority, the time-slice strategy selects the module that can take over the antenna for communication. This avoids the problem that when the Bluetooth module and the Wi-Fi module share an antenna and have the same priority, only one can communicate while the other cannot. Attached Figure Description

[0033] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly described below.

[0034] Figure 1 A schematic diagram illustrating alternating Bluetooth and Wi-Fi communication under a priority strategy provided in an embodiment of this application;

[0035] Figure 2A schematic diagram of the architecture of a communication system that allows Bluetooth and Wi-Fi to coexist, provided in an embodiment of this application;

[0036] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0037] Figure 4 A schematic flowchart illustrating a communication method for coexistence of Bluetooth and Wi-Fi provided in an embodiment of this application;

[0038] Figure 5 This is a schematic diagram illustrating alternating Bluetooth and Wi-Fi communication according to an embodiment of this application;

[0039] Figure 6 A block diagram of a communication device that allows Bluetooth and Wi-Fi to coexist, provided as an embodiment of this application. Detailed Implementation

[0040] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0041] Similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0042] See Figure 2 This is a schematic diagram of the architecture of a communication system that allows Bluetooth and Wi-Fi to coexist, provided in an embodiment of this application. Figure 2 As shown, the communication system may include a Wi-Fi module, a Bluetooth module, a priority module, a PTA module, and a time slice module.

[0043] The Wi-Fi module is used for communication via the Wi-Fi protocol. The Wi-Fi module can initiate a Priority Request (PTA) to the Priority Module to confirm whether it can use the antenna for communication. Here, the PTA request initiated by the Wi-Fi module can include the first priority of the service currently being processed by the Wi-Fi module. In one embodiment, the Wi-Fi module can initiate PTA requests periodically, with the period duration configurable as needed. Alternatively, the Wi-Fi module can initiate a PTA request when the first priority changes.

[0044] The Bluetooth module is used for communication via the Bluetooth protocol. The Bluetooth module can initiate a Priority Request (PTA) to the Priority Module to confirm whether it can use the antenna for communication. Here, the PTA request initiated by the Bluetooth module may include the second priority of the service currently being processed by the Bluetooth module. In one embodiment, the Bluetooth module can initiate PTA requests periodically, which can be done simultaneously with the Wi-Fi module. Alternatively, the Bluetooth module can initiate a PTA request when the second priority changes.

[0045] The priority module connects to the Wi-Fi and Bluetooth modules to acquire PTA requests initiated by both and parse out the first and second priorities. The priority module can check the relative priority between the first and second priorities to obtain the relative priority. The relative priority can be either the first priority being higher, the second priority being higher, or the first and second priorities being the same.

[0046] The PTA module connects to the priority module to obtain the relative priority between the Bluetooth and Wi-Fi modules and determine if the relative priorities are the same. If they are different, the module with the higher priority (Bluetooth or Wi-Fi) can be controlled to communicate. This is achieved by returning a PTA result to the Wi-Fi and Bluetooth modules, controlling the lower-priority module to stop communication and the higher-priority module to communicate via the antenna. If they are the same, the antenna takeover module can be determined based on the current time slice allocation result. Furthermore, the module can control the Bluetooth or Wi-Fi module indicated by the antenna takeover module to communicate. This is achieved by returning a PTA result to the Wi-Fi and Bluetooth modules, controlling the one indicated by the antenna takeover module to communicate via the antenna. The time slice allocation result is used to identify the module to which the current time slice belongs.

[0047] The Bluetooth and Wi-Fi coexisting communication system provided in this application can control the higher-priority module to communicate via the antenna when the Bluetooth and Wi-Fi modules have different priorities; and when the priorities are the same, the corresponding module can be controlled to communicate via the antenna based on the time slice allocation result, thereby effectively solving the problem that only one module can communicate while the other module cannot communicate when the priorities are the same for a long time.

[0048] In one embodiment, the time-slice module of the communication system is connected to the PTA module. The time-slice module can pre-configure a first time-slice distribution interval corresponding to the Bluetooth module and a second time-slice distribution interval corresponding to the Wi-Fi module. The first time-slice distribution interval includes multiple time slices allocated to the Bluetooth module, and the second time-slice distribution interval includes multiple time slices allocated to the Wi-Fi module. The time slices in the first and second time-slice distribution intervals can be complementary, forming a continuous time period. For example, the time slices in the first time-slice distribution interval include 8:00 to 8:10, 8:20 to 8:30, 8:40 to 8:50, etc., and the time slices in the second time-slice distribution interval include 8:10 to 8:20, 8:30 to 8:40, 8:50 to 8:60, etc.

[0049] The time slice module is used to determine the time slice in which the current time point is located based on the current time point, the first time slice distribution interval, and the second time slice distribution interval, and use this as the current time slice allocation result; furthermore, the time slice allocation result can be passed to the PTA module.

[0050] The specific processing logic of each module of the above communication system is detailed in the relevant descriptions below.

[0051] like Figure 3 As shown, this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12. Figure 3 Taking a processor 11 as an example, the processor 11 and the memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 to enable the electronic device 1 to perform all or part of the processes of the methods in the embodiments described below. In one embodiment, the electronic device 1 may be a smart device (e.g., a chip, mobile phone, computer, etc.) equipped with a communication system that enables both Bluetooth and Wi-Fi, for executing the communication method that enables both Bluetooth and Wi-Fi.

[0052] The memory 12 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0053] This application also provides a computer-readable storage medium storing a computer program that can be executed by a processor 11 to perform the Bluetooth and Wi-Fi coexistence communication method provided in this application.

[0054] See Figure 4 This is a flowchart illustrating a communication method for coexistence of Bluetooth and Wi-Fi provided in an embodiment of this application. Figure 4 As shown, the method may include steps 410-430.

[0055] Step 410: Obtain the relative priority between the Bluetooth module and the Wi-Fi module.

[0056] Smart devices equipped with communication systems that support both Bluetooth and Wi-Fi can determine the relative priority between the two modules when selecting either for communication. Here, the relative priority can be: first priority is higher, second priority is higher, or first priority and second priority are the same.

[0057] In one embodiment, the priority module of the smart device can obtain a first priority from the Bluetooth module and a second priority from the Wi-Fi module. The priority module can periodically obtain the first and second priorities from the Bluetooth and Wi-Fi modules. Alternatively, the Bluetooth and Wi-Fi modules can send updated priorities to the priority module when the priorities of the services they process are updated.

[0058] Furthermore, the relative priority can be determined by examining the hierarchy between the first and second priorities. This relative priority can then be passed to the PTA module of the smart device.

[0059] For example, if the first priority is higher than the second priority, the relative priority can be recorded as 0; if the first priority is lower than the second priority, the relative priority can be recorded as 1; if the first priority is equal to the second priority, the relative priority can be recorded as 2. In this case, after the PTA module obtains the value corresponding to the relative priority from the priority module, it can directly determine the relative priority.

[0060] For example, if the first priority is higher than the second priority, the relative priority can be recorded as 0; if the first priority is lower than the second priority, the relative priority can be recorded as 1; if the first priority is equal to the second priority, the relative priority can use the previous value. In this case, the priority module can send the corresponding values ​​of the first priority, the second priority, and the relative priority to the PTA module. The PTA module can determine the actual relative priority based on the corresponding values ​​of the first priority, the second priority, and the relative priority.

[0061] Step 420: Determine if the relative priorities are the same. If so, determine the antenna takeover module based on the current time slice allocation result.

[0062] Step 430: Control the Bluetooth module or Wi-Fi module indicated by the antenna takeover module to communicate.

[0063] The PTA module of a smart device can determine whether the relative priorities are the same. If the relative priorities are the same, the antenna takeover module can be determined based on the current time slice allocation result. Here, the antenna takeover module is a module that can take over the antenna for communication. For example, if the time slice allocation result indicates that the time slice corresponding to the current time point belongs to the Bluetooth module, then the antenna takeover module is the Bluetooth module; if the time slice allocation result indicates that the time slice corresponding to the current time point belongs to the Wi-Fi module, then the antenna takeover module is the Wi-Fi module.

[0064] After identifying the antenna takeover module, if it is a Bluetooth module, the PTA module can be controlled to communicate via the antenna, and the Wi-Fi module can be controlled to stop communication. The PTA module can return a PTA result indicating that communication is enabled (Bluetooth enable) to the Bluetooth module and a PTA result indicating that communication is disabled (Wi-Fi disable) to the Wi-Fi module.

[0065] If the antenna control module is a Wi-Fi module, it can control the Wi-Fi module to communicate via the antenna and control the Bluetooth module to stop communication. The PTA module can return a PTA result indicating that communication is disabled (Wi-Fi enable) to the Wi-Fi module and a PTA result indicating that communication is disabled (Bluetooth disable) to the Bluetooth module.

[0066] When relative priorities are the same, whenever the time slice allocation result changes, the PTA module can redetermine the antenna takeover module, thereby switching the module that can currently communicate.

[0067] By combining the priority strategy and the time slice strategy, when the Bluetooth module and the Wi-Fi module have the same priority, the module that can take over the antenna for communication can be selected based on the time slice strategy. This avoids the problem that when the Bluetooth module and the Wi-Fi module share the antenna and have the same priority, only one can communicate while the other cannot.

[0068] In one embodiment, the current time slice allocation result can be determined before performing step 420.

[0069] The smart device's time-slice module is pre-configured with a first time-slice distribution interval corresponding to the Bluetooth module and a second time-slice distribution interval corresponding to the Wi-Fi module. The smart device can check the current time point and determine which time slice it belongs to within either the first or second time-slice distribution interval. In one scenario, if the current time point falls within any time slice of the first time-slice distribution interval, the current time slice allocation result is assigned to the Bluetooth module. In another scenario, if the current time point falls within any time slice of the second time-slice distribution interval, the current time slice allocation result is assigned to the Wi-Fi module.

[0070] The time slice allocation result determines the modules allowed to communicate based on the time slice strategy. The time slice module can then pass the current time slice allocation result to the PTA module. If the Bluetooth and Wi-Fi modules have different priorities, the PTA module can ignore the received time slice allocation result. If the Bluetooth and Wi-Fi modules have the same priority, the PTA module can determine the antenna takeover module based on the time slice allocation result.

[0071] In one embodiment, when the PTA module of the smart device determines that the relative priorities are different, it can control the Bluetooth module or the Wi-Fi module with the higher priority to communicate. On one hand, if the Bluetooth module has a higher priority, it can return a PTA result indicating that communication is allowed (Bluetooth enable) to the Bluetooth module and return a PTA result indicating that communication is disabled (Wi-Fi disable) to the Wi-Fi module. On the other hand, if the Wi-Fi module has a higher priority, it can return a PTA result indicating that communication is disabled (Wi-Fi enable) to the Wi-Fi module and return a PTA result indicating that communication is disabled (Bluetooth disable) to the Bluetooth module.

[0072] This measure allows the module with higher service priority to communicate via the antenna when the Bluetooth and Wi-Fi modules handle services with different priorities. Therefore, this application's solution schedules communication capabilities based on a priority strategy when the priorities differ, and based on time slice allocation results when the priorities are the same.

[0073] See Figure 5 This is a schematic diagram illustrating alternating Bluetooth and Wi-Fi communication according to an embodiment of this application, as shown below. Figure 5 As shown, the second priority of the Wi-Fi module is always 5, while the first priority of the Bluetooth module is 10, 5, and 4 respectively. Therefore, the relative priorities are: first priority is higher than second priority, first priority is equal to second priority, and first priority is lower than second priority. The time slice allocation result is that the Bluetooth module and the Wi-Fi module are alternately allocated one time slice. The length of each time slice for the Bluetooth module is 10 milliseconds, and the length of each time slice for the Wi-Fi module is 20 milliseconds.

[0074] By combining the priority strategy and the time slice strategy, the PTA results can be obtained. When the priorities are different, the module with the higher priority can use the antenna to communicate. When the priorities are the same (both are 5), the modules that can communicate at each time point can be determined based on the time slice allocation results.

[0075] For example, suppose the Wi-Fi module acts as a client (station) to establish a connection, requiring a long period of receiving and listening; the Bluetooth module is in the active scanning (BLE scan) phase, also requiring a long period of receiving and listening. In this case, the Wi-Fi and Bluetooth modules can be configured with the same priority, and a time-slice strategy can be switched to balance the performance of both. However, when the Wi-Fi module needs to send packets, a higher priority can be set for the Wi-Fi module, thus switching to a priority strategy to ensure the real-time performance of the Wi-Fi module's packet sending.

[0076] In one embodiment, when the Bluetooth module has an emergency service, its first priority can be configured as the highest priority. Here, the highest priority can be a priority higher than the general service priority. After configuring the first priority as the highest priority, the Bluetooth module can be controlled to communicate based on the antenna to execute the emergency service.

[0077] When an emergency service is required by the Wi-Fi module, its second priority can be configured to the highest priority. After configuring the second priority to the highest priority, the Wi-Fi module can be controlled to communicate via the antenna to execute the emergency service.

[0078] This measure allows the Bluetooth or Wi-Fi module to be configured with the highest priority when there is an urgent service, ensuring that the module with the highest priority can handle the urgent service first and guaranteeing the timely transmission and reception of the urgent service.

[0079] In one embodiment, after configuring the highest priority for the Bluetooth module or Wi-Fi module, once the emergency task has been completed, the priority corresponding to the current service of the Bluetooth module or Wi-Fi module that performed the emergency task can be configured.

[0080] This measure allows the Bluetooth or Wi-Fi module that performed the emergency service to be restored to the priority corresponding to the service it was currently handling after the emergency service is completed. This allows the module that can communicate via the antenna to be re-determined based on the priority of the service being handled.

[0081] Figure 6 This is a block diagram of a communication device that allows Bluetooth and Wi-Fi to coexist according to an embodiment of the present invention, as shown below. Figure 6 As shown, the device may include:

[0082] Module 610 is used to obtain the relative priority between the Bluetooth module and the Wi-Fi module;

[0083] The determination module 620 is used to determine whether the relative priorities are the same. If so, it determines the antenna takeover module based on the current time slice allocation result.

[0084] The control module 630 is used to control the Bluetooth module or Wi-Fi module indicated by the antenna take-off module to communicate.

[0085] The specific implementation process of the functions and roles of each module in the above-mentioned device can be found in the implementation process of the corresponding steps in the above-mentioned communication method for coexistence of Bluetooth and Wi-Fi, and will not be repeated here.

[0086] The apparatuses and methods disclosed in the several embodiments provided in this application can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatuses, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0087] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0088] If a function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Claims

1. A communication method that allows Bluetooth and Wi-Fi to coexist, characterized in that, include: Obtain the relative priority between the Bluetooth module and the Wi-Fi module; Determine whether the relative priorities are the same; if so, determine the antenna takeover module based on the current time slice allocation result. The antenna control module is controlled to perform communication; the antenna control module is a Bluetooth module or a Wi-Fi module. The step of determining the antenna takeover module based on the current time slice allocation result includes: Check the time slice to which the current time point belongs in the first time slice distribution interval corresponding to the Bluetooth module and the second time slice distribution interval corresponding to the Wi-Fi module; If the current time point is located within any time slice of the first time slice distribution interval, then the antenna takeover module is determined to be the Bluetooth module; If the current time point is located within any time slice of the second time slice distribution interval, then the antenna takeover module is determined to be the Wi-Fi module; The process of obtaining the relative priority between the Bluetooth module and the Wi-Fi module includes: Obtain the first priority of the Bluetooth module and the second priority of the Wi-Fi module, wherein the first priority is used to indicate the priority of the service currently being processed by the Bluetooth module, and the second priority is used to indicate the priority of the service currently being processed by the Wi-Fi module; Check the relationship between the first priority and the second priority to obtain the relative priority; The method further includes: If the relative priorities are different, control the Bluetooth module or Wi-Fi module with the higher priority to communicate.

2. The method according to claim 1, characterized in that, Before obtaining the first priority of the Bluetooth module and the second priority of the Wi-Fi module, the method further includes: When the Bluetooth module has an urgent service, its first priority is configured as the highest priority; or... When the Wi-Fi module has an urgent service, the second priority of the Wi-Fi module is configured as the highest priority.

3. The method according to claim 2, characterized in that, The method further includes: Once the emergency service is completed, configure the priority corresponding to the current service for the Bluetooth module or Wi-Fi module that performed the emergency service.

4. A communication system that allows Bluetooth and Wi-Fi to coexist, characterized in that, include: The priority module is used to obtain the first priority of the Bluetooth module and the second priority of the Wi-Fi module; check the high-low relationship between the first priority and the second priority to obtain the relative priority, wherein the first priority is used to indicate the priority of the service currently being processed by the Bluetooth module, and the second priority is used to indicate the priority of the service currently being processed by the Wi-Fi module; The PTA module, connected to the priority module, is used to obtain the relative priority between the Bluetooth module and the Wi-Fi module; determine whether the relative priorities are the same; if so, determine the antenna takeover module based on the current time slice allocation result; control the antenna takeover module to communicate, the antenna takeover module being either the Bluetooth module or the Wi-Fi module; if the relative priorities are different, control the Bluetooth module or Wi-Fi module with the higher priority to communicate. A time slice module, connected to the PTA module, is used to check the time slice to which the current time point belongs in the first time slice distribution interval corresponding to the Bluetooth module and the second time slice distribution interval corresponding to the Wi-Fi module. If the current time point is located within any time slice of the first time slice distribution interval, then the antenna takeover module is determined to be the Bluetooth module; If the current time point is located within any time slice of the second time slice distribution interval, then the antenna takeover module is determined to be the Wi-Fi module.

5. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to perform the Bluetooth and Wi-Fi coexistence communication method according to any one of claims 1-3.

6. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that can be executed by a processor to perform the Bluetooth and Wi-Fi coexistence communication method as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Wireless communication system, scheduling method, integrated chip and electronic equipment

    CN110519855A

  • Communication method and device, computer equipment and storage medium

    CN115866762A