Method and device for reducing mutual interference of wifi and Bluetooth on same equipment
By implementing methods to manage WiFi frame transmission within allocated time slots using response determination and MAC header adjustments, interference with Bluetooth is reduced in devices sharing RF resources.
Patent Information
- Application Number
- CN202510370695.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-07-15
AI Technical Summary
When the wifi module and the Bluetooth module share RF resources on the same electronic device, how to limit the reception and transmission behavior of the wifi module to the allocated time slice as much as possible while considering the wifi throughput, in order to reduce interference to the Bluetooth signal.
By performing a series of judgment and processing steps within the wifi time slice, including determining whether it is necessary to immediately reply to the response frame, adjust the transmission time of the frame and use the power management bit, ensuring that the transmission behavior of the wifi module is completed within the time slice, and notifying the peer device to enter the energy-saving state if necessary.
It effectively avoids the impact of the sending behavior of the wifi module on Bluetooth signals, reduces mutual interference between devices, and improves the efficiency of wifi and Bluetooth usage.
Smart Images

Figure CN120321778A_ABST
Abstract
Description
Technical Field
[0001] This application relates to a method for an electronic device to reduce interference from the same frequency or similar frequencies. Background Art
[0002] Please refer to Figure 1 , when the same electronic device supports both the wifi function and the bluetooth function (including any one of bluetooth and bluetooth low energy BLE), and the wifi module and the bluetooth module share the same radio frequency transmission path or radio frequency reception path, the wifi module and the bluetooth module need to use the radio frequency resources in a time division multiplexing manner.
[0003] Please refer to Figure 2 , where each box represents a time slice. The usual time division multiplexing method is to divide the radio frequency resources according to time slices and allocate them to the wifi module and the bluetooth module for use respectively. This requires that the receiving and sending behaviors of the wifi module and the bluetooth module be completed as much as possible within their own time slices. Among them, wifi is an imprecise timing network, and there is no precise time requirement for sending and receiving, so it is not easy to limit its receiving and sending behaviors within its own time slice. Summary of the Invention
[0004] The technical problem to be solved by this application is: under the premise of fully considering the wifi throughput, limit the receiving and sending behaviors of the wifi module within the time slice when the wifi module is allocated to use the radio frequency resources as much as possible.
[0005] To solve the above technical problem, this application proposes a method for reducing the mutual interference between wifi and bluetooth on the same device, including the following steps. Step S31: When the wifi module of the local device wants to send any frame within a certain wifi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame. If yes, go to step S32. If no, go to step S33. Step S32: The wifi module of the local device determines whether the sum of the air interface time occupied by the frame, the time of the short inter-frame space SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment. If yes, the wifi module of the local device does not send the frame. If no, the wifi module of the local device sends the frame. Step S33: The wifi module of the local device determines whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment. If yes, the wifi module of the local device does not send the frame. If no, the wifi module of the local device sends the frame.
[0006] Further, when the Wi-Fi module of the local device actively sends frames within a Wi-Fi time slice, the duration field in the MAC header of all actively sent frames is increased by the length of the Bluetooth time slice immediately following the current Wi-Fi time slice on the basis of the original value.
[0007] Preferably, assume that a certain Bluetooth time slice with a duration of a microseconds follows a certain Wi-Fi time slice; within the current Wi-Fi time slice, the Wi-Fi module of the local device actively sends a certain frame, and assume that the original value of the duration field in the MAC header of this frame is b microseconds; if a + b ≤ 32767, then configure the duration field in the MAC header of this frame to a + b; if a + b > 32767, then configure the duration field in the MAC header of this frame to 32767.
[0008] The present application also proposes another method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, including the following steps. Step S41: Mark the time point T1 within each Wi-Fi time slice; when the Wi-Fi module of the local device wants to send any frame within a certain Wi-Fi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame. If yes, go to step S42. If no, go to step S43. Step S42: The Wi-Fi module of the local device determines whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the frame is sent at the current moment. (1) If yes, the Wi-Fi module of the local device does not send the frame. (2) If no, the Wi-Fi module of the local device continues to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice before the time point T1, and is processed in the following two cases respectively; (2-1) If yes, set the "power management bit" in the frame control field of the MAC header of the frame to 1; (2-2) If no, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit. Step S43: The Wi-Fi module of the local device determines whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice if the frame is sent at the current moment. (1) If yes, the Wi-Fi module of the local device does not send the frame. (2) If no, the Wi-Fi module of the local device continues to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice before the time point T1, and is processed in the following two cases respectively; (2-1) If yes, set the "power management bit" in the frame control field of the MAC header of the frame to 1; (2-2) If no, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit.
[0009] Preferably, the duration of the time point T1 from the end point of each Wi-Fi time slice is in the range of 0 to 20 ms.
[0010] The present application also proposes another method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, including the following steps. Step S51: Mark two time points T1 and T2 within each Wi-Fi time slice, where T1 is earlier than T2; when the Wi-Fi module of the local device needs to send any frame within a certain Wi-Fi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame. If so, proceed to step S52. If not, proceed to step S53. Step S52: The Wi-Fi module of the local device determines whether the sum of the air interface time occupied by the frame, plus the SIFS time, plus the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the frame is sent at the current moment. (1) If so, the Wi-Fi module of the local device does not send the frame. (2) If not, the Wi-Fi module of the local device continues to determine whether the sum of the air interface time occupied by the frame, plus the SIFS time, plus the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice before T1, and is processed separately in the following two cases; (2-1) If so, set the "power management bit" in the frame control field of the MAC header of the frame to 1; (2-2) If not, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit. Step S53: The Wi-Fi module of the local device determines whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice if the frame is sent at the current moment. (1) If so, the Wi-Fi module of the local device does not send the frame. (2) If not, the Wi-Fi module of the local device continues to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice before T1, and is processed separately in the following two cases; (2-1) If so, set the "power management bit" in the frame control field of the MAC header of the frame to 1; (2-2) If not, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit. After steps S52 and S53, there is also step S54; Step S54: After the current Wi-Fi time slice reaches T2, determine whether the Wi-Fi module of the local device has ever sent a frame with the power management bit set to 1 within the current Wi-Fi time slice. If so, do nothing. If not, select any one of the following options A, B, and C to execute.Solution A: Determine whether the wifi module of the local device is currently receiving frames from wifi devices within the current basic service set (BSS); if not, determine whether the total airtime of the QoS Null frame plus the response frame exceeds the remaining length of the current wifi time slice; if not, send the QoS Null frame and set the "Power Management Bit" in the frame control field of the MAC header of this frame to 1; if it exceeds, do nothing; if it is receiving, repeat Solution A until the condition is met or the current wifi time slice has been exceeded. Solution B: Determine whether the wifi module of the local device is currently receiving any type of frame; if not, determine whether the total airtime of the QoS Null frame plus the response frame exceeds the remaining length of the current wifi time slice; if not, send the QoS Null frame and set the "Power Management Bit" in the frame control field of the MAC header of this frame to 1; if it exceeds, do nothing; if it is receiving, repeat Solution B until the condition is met or the current wifi time slice has been exceeded. Solution C: Determine whether the wifi module of the local device is currently receiving any type of frame and whether the current received signal strength indication (RSSI) is less than the threshold value; if not receiving and the current RSSI meets the condition, determine whether the total airtime of the QoS Null frame plus the response frame exceeds the remaining length of the current wifi time slice; if not, send the QoS Null frame and set the "Power Management Bit" in the frame control field of the MAC header of this frame to 1; if it exceeds, do nothing; if not receiving and the current RSSI does not meet the condition, or if it is receiving, repeat Solution C until the condition is met or the current wifi time slice has been exceeded.
[0011] Preferably, the duration from time T1 to the end point of each wifi time slice is in the range of 0 to 20 ms, and the duration from time T2 to the end point of each wifi time slice is in the range of 0 to 10 ms.
[0012] The present application also provides a device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, including an immediate response judgment unit, a first remaining length judgment unit, and a second remaining length judgment unit. The immediate response judgment unit is configured to, when the Wi-Fi module of the local device needs to send any frame within a certain Wi-Fi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame; if so, the subsequent processing is continued by the first remaining length judgment unit; if not, the subsequent processing is continued by the second remaining length judgment unit. The first remaining length judgment unit is configured to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment; if so, the Wi-Fi module of the local device does not send the frame; if not, the Wi-Fi module of the local device sends the frame. The second remaining length judgment unit is configured to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment; if so, the Wi-Fi module of the local device does not send the frame; if not, the Wi-Fi module of the local device sends the frame.
[0013] The present application also proposes a device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, including a T1 marking and immediate response judgment unit, a first remaining length judgment unit, a second remaining length judgment unit, a first remaining length judgment unit before T1, and a second remaining length judgment unit before T1. The T1 marking and immediate response judgment unit is used to mark the T1 time point within each Wi-Fi time slice, and when the Wi-Fi module of the local device is to send any frame within a certain Wi-Fi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame; if so, the subsequent processing is continued by the first remaining length judgment unit; if not, the subsequent processing is continued by the second remaining length judgment unit. The first remaining length judgment unit is used to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment; if so, the Wi-Fi module of the local device does not send the frame; if not, the subsequent processing is continued by the first remaining length judgment unit before T1. The first remaining length judgment unit before T1 is used to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice before the T1 moment, and is processed separately in the following two cases; if so, set the "power management bit" in the frame control field of the MAC header of the frame to 1; if not, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit. The second remaining length judgment unit is used to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment; if so, the Wi-Fi module of the local device does not send the frame; if not, the subsequent processing is continued by the second remaining length judgment unit before T1. The second remaining length judgment unit before T1 is used to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice before the T1 moment, and is processed separately in the following two cases; if so, set the "power management bit" in the frame control field of the MAC header of the frame to 1; if not, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit.
[0014] Further, the T1 tag and the immediate reply judgment unit are changed to the T1 and T2 tags and the immediate reply judgment unit, and a T2 moment judgment unit is also added. The T1 and T2 tags and the immediate reply judgment unit are used to mark two time points, T1 and T2, within each wifi time slice, where the T1 moment is earlier than the T2 moment; when the wifi module of the local device needs to send any frame within a certain wifi time slice, it is also judged whether the frame requires the receiving device to immediately reply with a response frame; if so, it is subsequently handed over to the remaining length first judgment unit for continued processing; if not, it is subsequently handed over to the remaining length second judgment unit for continued processing. The T2 moment judgment unit is used to judge whether the wifi module of the local device has ever sent a frame with a power management bit of 1 within the current wifi time slice after the remaining length first judgment unit before the T1 and the remaining length second judgment unit before the T1 have processed and the current wifi time slice reaches the T2 moment; if so, no operation is performed; if not, any one of the foregoing schemes A, B, and C is selected for execution.
[0015] The technical effect achieved by this application is that the receiving and sending behaviors of the wifi module are restricted as much as possible within the time slices when the wifi module is allocated radio frequency resources, effectively avoiding the influence of wifi transceiver on the Bluetooth signal. Brief Description of the Drawings
[0016] Figure 1 It is a schematic diagram of the coexistence of the wifi module and the Bluetooth module on the same electronic device.
[0017] Figure 2 It is a schematic diagram of the time-division multiplexing of radio frequency resources by the wifi module and the Bluetooth module on the same electronic device.
[0018] Figure 3 It is a schematic flowchart of Embodiment 1 of the method for reducing the mutual interference between wifi and Bluetooth on the same device in this application.
[0019] Figure 4 It is a schematic flowchart of Embodiment 2 of the method for reducing the mutual interference between wifi and Bluetooth on the same device in this application.
[0020] Figure 5a and Figure 5b It is a schematic flowchart of Embodiment 3 of the method for reducing the mutual interference between wifi and Bluetooth on the same device in this application.
[0021] Figure 6 It is a schematic diagram of marking two time points in step S51 of the third embodiment.
[0022] Figure 7 It is a schematic structural diagram of Embodiment 1 of the device for reducing the mutual interference between wifi and Bluetooth on the same device in this application.
[0023] Figure 8 This is a schematic structural diagram of Embodiment 2 of the device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device in the present application.
[0024] Figure 9 This is a schematic structural diagram of Embodiment 3 of the device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device in the present application.
[0025] Explanation of the reference numerals in the figure: Immediate reply judgment unit 31, first remaining length judgment unit 32, second remaining length judgment unit 33, first remaining length judgment unit 42 before T1, second remaining length judgment unit 43 before T1, T1 and T2 mark and immediate reply judgment unit 51, T2 moment judgment unit 54. Specific embodiments
[0026] In the present application, not only the receiving and sending behaviors of the Wi-Fi module of the local device are restricted within the time slice when the Wi-Fi module of the local device is allocated radio frequency resources, but also the Wi-Fi device at the opposite end (such as a Wi-Fi access point) is prevented from sending data to the Wi-Fi module of the local device outside the time slice when the Wi-Fi module of the local device is allocated radio frequency resources.
[0027] Please refer to Figure 3 , Embodiment 1 of the method for reducing the mutual interference between Wi-Fi and Bluetooth proposed in the present application includes the following steps.
[0028] Step S31: Abbreviate the time slice when the Wi-Fi module of the local device is allocated radio frequency resources as the Wi-Fi time slice, and abbreviate the time slice when the Bluetooth module of the local device is allocated radio frequency resources as the Bluetooth time slice. When the Wi-Fi module of the local device wants to send any frame within a certain Wi-Fi time slice, first judge whether the frame requires the receiving device to immediately reply with a response frame.
[0029] If so, go to step S32.
[0030] If not, go to step S33.
[0031] Step S32: The Wi-Fi module of the local device judges whether the sum of the air interface time occupied by the frame, the time of SIFS (short interframe space), and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the frame is sent at the current moment.
[0032] If so, the Wi-Fi module of the local device does not send the frame.
[0033] If not, the Wi-Fi module of the local device sends the frame.
[0034] Step S33: The wifi module of the local device determines whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment.
[0035] If so, the wifi module of the local device does not send the frame.
[0036] If not, the wifi module of the local device sends the frame.
[0037] The above Embodiment 1 can ensure that the frames actively sent by the wifi module of the local device are restricted within the time slice in which the wifi module of the local device is allocated and uses radio frequency resources.
[0038] Please refer to Figure 4 , Embodiment 2 of the method for reducing the mutual interference between wifi and bluetooth on the same device proposed in this application includes the following steps.
[0039] Step S41: Mark the T1 time point within each wifi time slice, and the specific time value can be flexibly configured. For example, the duration from the T1 moment to the end point of each wifi time slice is within the range of 0 to 20 ms. When the wifi module of the local device wants to send any frame within a certain wifi time slice, first determine whether the frame requires the receiving device to immediately reply with a response frame.
[0040] If so, go to Step S42.
[0041] If not, go to Step S43.
[0042] Step S42: The wifi module of the local device determines whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment.
[0043] If so, the wifi module of the local device does not send the frame.
[0044] If the answer is no, the wifi module of the local device continues to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice before time T1 if the frame is sent at the current moment. This is divided into the following two cases for separate processing. (1) If so, set the Power Management bit in the Frame Control field of the MAC Header of the frame to 1. Setting the "Power Management bit" to 1 is used to notify the peer wifi device that the wifi module of the local device has entered the power-saving state, and the peer wifi device should not send frames to the wifi module of the local device hereafter. (2) If not, set the "Power Management bit" in the Frame Control field of the MAC Header of the frame to 0. Setting the "Power Management bit" to 0 is used to notify the peer wifi device that the wifi module of the local device has not entered the power-saving state, and the peer wifi device can send frames to the wifi module of the local device. After processing the above two cases, the wifi module of the local device sends the frame carrying the power management bit.
[0045] Step S43: The wifi module of the local device determines whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment.
[0046] If so, the wifi module of the local device does not send the frame.
[0047] If not, the wifi module of the local device continues to determine whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice before time T1 if the frame is sent at the current moment. This is divided into the following two cases for separate processing. (1) If so, set the "Power Management bit" in the Frame Control field of the MAC Header of the frame to 1. (2) If not, set the "Power Management bit" in the Frame Control field of the MAC Header of the frame to 0. After processing the above two cases, the wifi module of the local device sends the frame carrying the power management bit.
[0048] In the above Second Embodiment, the power management bit of the currently to-be-sent frame is used to notify the peer wifi device of its own power-saving state, and there is no need to send a special frame to represent its own power-saving state.
[0049] Please refer to Figure 5a and Figure 5b , Embodiment 3 of the method for reducing the mutual interference between wifi and bluetooth on the same device proposed in this application includes the following steps.
[0050] Step S51: Mark two time points T1 and T2 within each Wi-Fi time slice, where the time of T1 is earlier than that of T2, and the specific time values can be flexibly configured, such as Figure 6 as shown. For example, the duration from the time point T1 to the end point of each Wi-Fi time slice is in the range of 0 to 20 ms, and the duration from the time point T2 to the end point of each Wi-Fi time slice is in the range of 0 to 10 ms. When the Wi-Fi module of the local device needs to send any frame within a certain Wi-Fi time slice, first determine whether the frame requires the receiving device to immediately reply with a response frame. If yes, go to Step S52. If no, go to Step S53.
[0051] Step S52: It is equivalent to Step S42.
[0052] Step S53: It is equivalent to Step S43.
[0053] Add Step S54 after Step S52 and Step S53. Step S54: After the current Wi-Fi time slice reaches the time point T2, determine whether the Wi-Fi module of the local device has ever sent a frame with the power management bit set to 1 within the current Wi-Fi time slice. If yes, do nothing. If no, select any one of the following options A, B, and C to execute, with options A, B, and C ranging from loose to strict.
[0054] Option A: Determine whether the Wi-Fi module of the local device is currently receiving frames from Wi-Fi devices within the current BSS (basic service set). (1) If not, determine whether the sum of the air interface time of the QoS Null frame and the response frame exceeds the remaining length of the current Wi-Fi time slice. If not, send the QoS Null frame and set the "power management bit" in the frame control field of the MAC header of the frame to 1. If it exceeds, do nothing. (2) If it is receiving, repeat Option A until the condition is met or the current Wi-Fi time slice has passed.
[0055] Option B: Determine whether the Wi-Fi module of the local device is currently receiving any type of frame. (1) If not, determine whether the sum of the air interface time of the QoS Null frame and the response frame exceeds the remaining length of the current Wi-Fi time slice. If not, send the QoS Null frame and set the "power management bit" in the frame control field of the MAC header of the frame to 1. If it exceeds, do nothing. (2) If it is receiving, repeat Option B until the condition is met or the current Wi-Fi time slice has passed.
[0056] Scenario C: Determine whether the Wi-Fi module of the local device is currently receiving any type of frame and whether the current RSSI (Received Signal Strength Indicator) is less than a certain threshold value. The threshold value can be flexibly configured within the range of -110 dbm to -60 dbm. (1) If there is no frame being received and the current RSSI meets the condition, then determine whether the sum of the airtime of the QoS Null frame plus the response frame exceeds the remaining length of the current Wi-Fi time slice. If it does not exceed, then send the QoS Null frame and set the "Power Management Bit" in the Frame Control Field of the MAC header of this frame to 1. If it exceeds, then do nothing. (2) If there is no frame being received and the current RSSI does not meet the condition, or if there is a frame being received, then repeat Scenario C until the condition is met or the current Wi-Fi time slice has been exceeded.
[0057] The advantages of the above Embodiment 3 are as follows: Before the end of the current Wi-Fi time slice, without affecting the Wi-Fi reception process, frames carrying a Power Management Bit of 1 are sent as much as possible to notify the peer Wi-Fi device that the Wi-Fi module of the local device has entered the power-saving state.
[0058] In the above three embodiments, they are all used to limit the Wi-Fi frames actively sent by the Wi-Fi module of the local device within the time slice when the Wi-Fi module of the local device is allocated radio frequency resources. However, if the Wi-Fi module of the local device receives a frame within the time slice when the Wi-Fi module of the local device is allocated radio frequency resources, and the Address 1 field in the MAC header of this frame is equal to the MAC address of the Wi-Fi module of the local device, indicating that this frame is sent to the Wi-Fi module of the local device; and this frame requires the Wi-Fi module of the local device to immediately reply with a response frame; then the Wi-Fi module of the local device will immediately reply with a response frame, regardless of whether the airtime of this response frame exceeds the current Wi-Fi time slice when the Wi-Fi module of the local device is allocated radio frequency resources.
[0059] Since the wifi 2.4G band and the Bluetooth band are close, the wifi signal will interfere with the Bluetooth signal. If all transmission behaviors of the wifi modules of nearby devices are blocked within the time slice when the Bluetooth module of the local device is allocated to use the radio frequency resources, the interference of the wifi signal on the Bluetooth signal will be reduced. The solution provided in this application is that when the wifi module of the local device actively sends a frame within the wifi time slice when the wifi module of the local device is allocated to use the radio frequency resources, the Duration field in the MAC header of all actively sent frames is increased by the length of the immediately following Bluetooth time slice after the current wifi time slice on the basis of the original value. This additional solution can be superimposed on any of the previous embodiments. The following is a preferred example.
[0060] Please refer to Figure 2 , assuming that a certain Bluetooth time slice with a duration of a microseconds follows a certain wifi time slice. Within the current wifi time slice, the wifi module of the local device actively sends a certain frame. Assuming that the original value of the Duration field in the MAC header of this frame is b microseconds. If a + b ≤ 32767, the Duration field in the MAC header of this frame is configured to a + b. If a + b > 32767, the Duration field in the MAC header of this frame is configured to 32767. In this way, without affecting the transceiver performance of the wifi module of the local device, the transmission behavior of the wifi modules of other devices within the immediately following Bluetooth time slice is blocked, thereby reducing the interference of the wifi modules of other devices on the Bluetooth signal of the local device within the Bluetooth time slice.
[0061] Please refer to Figure 7 , Embodiment 1 of the device for reducing the mutual interference between wifi and Bluetooth on the same device proposed in this application includes an immediate reply judgment unit 31, a remaining length first judgment unit 32, and a remaining length second judgment unit 33. Figure 7 The shown device corresponds to Figure 3 the shown method.
[0062] The immediate reply judgment unit 31 is used to judge whether the frame requires the receiving device to immediately reply with a response frame when the wifi module of the local device is to send any frame within a certain wifi time slice. If so, it is subsequently handed over to the remaining length first judgment unit 32 for further processing. If not, it is subsequently handed over to the remaining length second judgment unit 33 for further processing.
[0063] The remaining length first determination unit 32 is configured to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment. If so, the Wi-Fi module of the local device does not send the frame. If not, the Wi-Fi module of the local device sends the frame.
[0064] The remaining length second determination unit 33 is configured to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment. If so, the Wi-Fi module of the local device does not send the frame. If not, the Wi-Fi module of the local device sends the frame.
[0065] Please refer to Figure 8 , Embodiment 2 of the device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device proposed in this application includes a T1 mark and immediate response determination unit 41, a remaining length first determination unit 32, a remaining length second determination unit 33, a remaining length first determination unit 42 before T1, and a remaining length second determination unit 43 before T1. Figure 8 The device shown corresponds to Figure 4 the method shown.
[0066] The T1 mark and immediate response determination unit 41 is configured to mark the T1 time point within each Wi-Fi time slice, and when the Wi-Fi module of the local device needs to send any frame within a certain Wi-Fi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame. If so, the subsequent processing is continued by the remaining length first determination unit 32. If not, the subsequent processing is continued by the remaining length second determination unit 33.
[0067] The remaining length first determination unit 32 is configured to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current Wi-Fi time slice if the Wi-Fi module of the local device sends the frame at the current moment. If so, the Wi-Fi module of the local device does not send the frame. If not, the subsequent processing is continued by the remaining length first determination unit 42 before T1.
[0068] The remaining length first determination unit 42 before T1 is used to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice before T1 if the wifi module of the local device sends the frame at the current moment, and it is processed in the following two cases respectively. (1) If so, set the "power management bit" in the frame control field of the MAC header of the frame to 1. (2) If not, set the "power management bit" in the frame control field of the MAC header of the frame to 0. After the processing of the above two cases, the wifi module of the local device sends the frame carrying the power management bit.
[0069] The remaining length second determination unit 33 is used to determine whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the wifi module of the local device sends the frame at the current moment. If so, the wifi module of the local device does not send the frame. If not, it is subsequently handed over to the remaining length second determination unit 43 before T1 for further processing.
[0070] The remaining length second determination unit 43 before T1 is used to determine whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice before T1 if the wifi module of the local device sends the frame at the current moment, and it is processed in the following two cases respectively. (1) If so, set the "power management bit" in the frame control field of the MAC header of the frame to 1. (2) If not, set the "power management bit" in the frame control field of the MAC header of the frame to 0. After the processing of the above two cases, the wifi module of the local device sends the frame carrying the power management bit.
[0071] Please refer to Figure 9 , Embodiment 3 of the device for reducing the mutual interference between wifi and bluetooth on the same device proposed in this application includes the T1 and T2 marking and immediate response determination unit 51, the remaining length first determination unit 32, the remaining length second determination unit 33, the remaining length first determination unit 42 before T1, the remaining length second determination unit 43 before T1, and the T2 moment determination unit 54. Figure 9 The shown device corresponds to Figure 5a and Figure 5b the shown method.
[0072] The T1 and T2 markers and the immediate response determination unit 51 are used to mark two time points, T1 and T2, within each Wi-Fi time slice, where the T1 time is earlier than the T2 time. When the Wi-Fi module of the local device is about to send any frame within a certain Wi-Fi time slice, it determines whether the frame requires the receiving device to immediately reply with a response frame. If so, it is subsequently handed over to the remaining length first determination unit 32 for further processing. If not, it is subsequently handed over to the remaining length second determination unit 33 for further processing.
[0073] The remaining length first determination unit 32, the remaining length first determination unit 42 before T1, the remaining length second determination unit 33, and the remaining length second determination unit 43 before T1 are all the same as those in Embodiment 2 and will not be elaborated here.
[0074] The T2 time determination unit 54 is used to determine whether the Wi-Fi module of the local device has ever sent a frame with a power management bit of 1 within the current Wi-Fi time slice after the processing by the remaining length first determination unit 42 before T1 and the remaining length second determination unit 43 before T1. When the current Wi-Fi time slice reaches the T2 time, if so, no operation is performed. If not, any one of the foregoing options A, B, and C is selected for execution, and options A, B, and C are from loose to strict.
[0075] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, characterized in that, It includes the following steps; Step S31: When the wifi module of the local device wants to send any frame within a certain wifi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame; If yes, go to step S32; If no, go to step S33; Step S32: The wifi module of the local device determines whether the sum of the air interface time occupied by the frame, the time of the Short Inter-Frame Space (SIFS), and the air interface time of the response frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment; If yes, the wifi module of the local device does not send the frame; If no, the wifi module of the local device sends the frame; Step S33: The wifi module of the local device determines whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment; If yes, the wifi module of the local device does not send the frame; If no, the wifi module of the local device sends the frame.
2. The method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device according to claim 1, wherein When the wifi module of the local device actively sends a frame within a wifi time slice, increase the value of the Duration field in the MAC header of all actively sent frames by the length of the bluetooth time slice immediately following the current wifi time slice on the original value basis.
3. The method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device according to claim 1, wherein Suppose there is a bluetooth time slice with a duration of a microseconds immediately following a certain wifi time slice; within the current wifi time slice, the wifi module of the local device actively sends a certain frame. Suppose the original value of the Duration field in the MAC header of this frame is b microseconds; if a + b ≤ 32767, then configure the Duration field in the MAC header of this frame to a + b; if a + b > 32767, then configure the Duration field in the MAC header of this frame to 32767.
4. A method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, characterized in that It includes the following steps; Step S41: Mark the T1 time point within each wifi time slice; when the wifi module of the local device wants to send any frame within a certain wifi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame; If yes, go to step S42; If no, go to step S43; Step S42: The wifi module of the local device determines whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment; If yes, the wifi module of the local device does not send the frame; If no, the wifi module of the local device continues to determine whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice before the T1 time point if the frame is sent at the current moment, and handle it in the following two cases respectively; if yes, set the "Power Management Bit" in the Frame Control field of the MAC header of this frame to 1; if no, set the "Power Management Bit" in the Frame Control field of the MAC header of this frame to 0; the wifi module of the local device sends this frame carrying the power management bit. Step S43: The wifi module of the local device determines whether the airtime occupied by the frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment; If so, the wifi module of the local device does not send the frame; If not, the wifi module of the local device continues to determine whether the airtime occupied by the frame will exceed the remaining length of the current wifi time slice before time T1 if the frame is sent at the current moment, and is processed in the following two cases respectively; if so, set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 1; if not, set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 0; the wifi module of the local device sends the frame carrying the power management bit.
5. The method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device according to claim 4, characterized in that, The duration from time T1 to the end point of each wifi time slice is in the range of 0 to 20 ms.
6. A method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, characterized in that, Including the following steps; Step S51: Mark two time points T1 and T2 within each wifi time slice, where T1 is earlier than T2; when the wifi module of the local device wants to send any frame within a certain wifi time slice, determine whether the frame requires the receiving device to immediately reply with a response frame; If so, go to step S52; If not, go to step S53; Step S52: The wifi module of the local device determines whether the sum of the airtime occupied by the frame, the time of SIFS, and the airtime of the response frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment; If so, the wifi module of the local device does not send the frame; If not, the wifi module of the local device continues to determine whether the sum of the airtime occupied by the frame, the time of SIFS, and the airtime of the response frame will exceed the remaining length of the current wifi time slice before time T1 if the frame is sent at the current moment, and is processed in the following two cases respectively; if so, set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 1; if not, set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 0; the wifi module of the local device sends the frame carrying the power management bit; Step S53: The wifi module of the local device determines whether the airtime occupied by the frame will exceed the remaining length of the current wifi time slice if the frame is sent at the current moment; If so, the wifi module of the local device does not send the frame; If not, the wifi module of the local device continues to determine whether the airtime occupied by the frame will exceed the remaining length of the current wifi time slice before time T1 if the frame is sent at the current moment, and is processed in the following two cases respectively; if so, set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 1; if not, set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 0; the wifi module of the local device sends the frame carrying the power management bit; After steps S52 and S53, step S54 is further included; step S54: After the current wifi time slice reaches the moment of T2, it is judged whether the wifi module of the local device has ever sent a frame with the power management bit being 1 within the current wifi time slice; If so, do nothing; If not, select any one of the following solutions A, B, and C to execute; Solution A: Judge whether the wifi module of the local device is currently receiving frames from wifi devices within the current basic service set BSS; If not currently receiving, then judge whether the sum of the air interface time of the QoS Null frame plus the response frame exceeds the remaining length of the current wifi time slice; If not exceeding, then send a QoS Null frame and set the "power management bit" in the frame control field of the MAC header of this frame to 1; If exceeding, then do nothing; If currently receiving, then repeat solution A until the condition is met or the current wifi time slice has been exceeded; Solution B: Judge whether the wifi module of the local device is currently receiving any type of frame; If not currently receiving, then judge whether the sum of the air interface time of the QoS Null frame plus the response frame exceeds the remaining length of the current wifi time slice; If not exceeding, then send a QoS Null frame and set the "power management bit" in the frame control field of the MAC header of this frame to 1; If exceeding, then do nothing; If currently receiving, then repeat solution B until the condition is met or the current wifi time slice has been exceeded; Solution C: Judge whether the wifi module of the local device is currently receiving any type of frame and whether the current received signal strength indication RSSI is less than the threshold value; If not currently receiving and the current RSSI meets the condition, then judge whether the sum of the air interface time of the QoS Null frame plus the response frame exceeds the remaining length of the current wifi time slice; If not exceeding, then send a QoS Null frame and set the "power management bit" in the frame control field of the MAC header of this frame to 1; If exceeding, then do nothing; If not currently receiving and the current RSSI does not meet the condition, or currently receiving, then repeat solution C until the condition is met or the current wifi time slice has been exceeded.
7. The method for reducing the mutual interference between Wi-Fi and Bluetooth on the same device according to claim 6, characterized in that, The duration from the moment of T1 to the end point of each wifi time slice is within the range of 0 to 20 ms, and the duration from the moment of T2 to the end point of each wifi time slice is within the range of 0 to 10 ms.
8. A device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, characterized in that, It includes an immediate reply judgment unit, a remaining length first judgment unit, and a remaining length second judgment unit; The immediate reply judgment unit is used to judge whether the frame requires the receiving device to immediately reply with a response frame when the wifi module of the local device needs to send any frame within a certain wifi time slice; If so, the subsequent processing is handed over to the remaining length first judgment unit to continue; If not, the subsequent processing is handed over to the remaining length second judgment unit to continue; The remaining length first judgment unit is used to judge whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice if the wifi module of the local device sends the frame at the current moment; if so, the wifi module of the local device does not send the frame; if not, the wifi module of the local device sends the frame; The remaining length second judgment unit is used to judge whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the wifi module of the local device sends the frame at the current moment; if so, the wifi module of the local device does not send the frame; if not, the wifi module of the local device sends the frame.
9. A device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device, characterized in that It includes a T1 mark and immediate reply judgment unit, a remaining length first judgment unit, a remaining length second judgment unit, a remaining length first judgment unit before T1, and a remaining length second judgment unit before T1; The T1 mark and immediate reply judgment unit is used to mark the T1 time point within each wifi time slice, and when the wifi module of the local device needs to send any frame within a certain wifi time slice, judge whether the frame requires the receiving device to immediately reply with a response frame; if so, the subsequent processing is continued by the remaining length first judgment unit; if not, the subsequent processing is continued by the remaining length second judgment unit; The remaining length first judgment unit is used to judge whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice if the wifi module of the local device sends the frame at the current moment; if so, the wifi module of the local device does not send the frame; if not, the subsequent processing is continued by the remaining length first judgment unit before T1; The remaining length first judgment unit before T1 is used to judge whether the sum of the air interface time occupied by the frame, the time of SIFS, and the air interface time of the response frame will exceed the remaining length of the current wifi time slice before the T1 moment, and it is processed in the following two cases respectively; if so, set the "power management bit" in the frame control field of the MAC header of the frame to 1; if not, set the "power management bit" in the frame control field of the MAC header of the frame to 0; the wifi module of the local device sends the frame carrying the power management bit; The remaining length second judgment unit is used to judge whether the air interface time occupied by the frame will exceed the remaining length of the current wifi time slice if the wifi module of the local device sends the frame at the current moment; if so, the wifi module of the local device does not send the frame; if not, the subsequent processing is continued by the remaining length second judgment unit before T1; The remaining length second determination unit before T1 is used to determine whether the air interface time occupied by the frame will exceed the remaining length of the current Wi-Fi time slice before T1 if the Wi-Fi module of the local device sends the frame at the current moment. It is processed in the following two cases respectively; if so, the "Power Management Bit" in the Frame Control Field of the MAC header of the frame is set to 1; if not, the "Power Management Bit" in the Frame Control Field of the MAC header of the frame is set to 0; the Wi-Fi module of the local device sends the frame carrying the power management bit.
10. The device for reducing the mutual interference between Wi-Fi and Bluetooth on the same device according to claim 9, wherein Change the T1 mark and immediate response determination unit to the T1 and T2 marks and immediate response determination unit, and also add a T2 time determination unit; The T1 and T2 marks and immediate response determination unit is used to mark two time points, T1 and T2, within each Wi-Fi time slice, where the T1 time is earlier than the T2 time; when the Wi-Fi module of the local device needs to send any frame within a certain Wi-Fi time slice, it determines whether the frame requires the receiving device to immediately reply with a response frame; if so, it is subsequently handed over to the remaining length first determination unit for continued processing; if not, it is subsequently handed over to the remaining length second determination unit for continued processing; The T2 time determination unit is used to determine whether the Wi-Fi module of the local device has ever sent a frame with a power management bit of 1 within the current Wi-Fi time slice after the processing of the remaining length first determination unit before T1 and the remaining length second determination unit before T1 when the current Wi-Fi time slice reaches T2; If so, do nothing; if not, select any one of the schemes A, B, and C to execute; Scheme A: Determine whether the Wi-Fi module of the local device is currently receiving frames from Wi-Fi devices within the current Basic Service Set (BSS); If not receiving, then determine whether the total air interface time of the QoS Null frame plus the response frame exceeds the remaining length of the current Wi-Fi time slice; If not exceeding, then send the QoS Null frame and set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 1; If exceeding, then do nothing; If receiving, then repeat Scheme A until the condition is met or the current Wi-Fi time slice has been exceeded; Scheme B: Determine whether the Wi-Fi module of the local device is currently receiving any type of frame; If not receiving, then determine whether the total air interface time of the QoS Null frame plus the response frame exceeds the remaining length of the current Wi-Fi time slice; If not exceeding, then send the QoS Null frame and set the "Power Management Bit" in the Frame Control Field of the MAC header of the frame to 1; If exceeding, then do nothing; if receiving, then repeat Scheme B until the condition is met or the current Wi-Fi time slice has been exceeded; Solution C: Determine whether the Wi-Fi module of the local device is currently receiving any type of frame, and whether the current Received Signal Strength Indicator (RSSI) is less than the threshold value; if it is not receiving and the current RSSI meets the condition, then determine whether the total air interface time of the QoS Null frame plus the response frame exceeds the remaining length of the current Wi-Fi time slice; If it does not exceed, then send a QoS Null frame and set the "Power Management Bit" in the Frame Control Field of the MAC header of this frame to 1; If it exceeds, then do nothing; if it is not receiving and the current RSSI does not meet the condition, or it is receiving, then repeat Solution C until the condition is met or the current Wi-Fi time slice has been exceeded.