Bluetooth data transmission method and device, storage medium and wireless communication device

By accurately calculating the start time of BLE connection events in wireless communication devices and sending CTS-TO-SELF frames, the problem of WiFi interference with BLE is solved, and the stability of BLE connections and WiFi transmission efficiency are improved. In particular, interference is significantly reduced in high-density wireless environments, and communication timing and resource utilization are optimized.

CN119996981BActive Publication Date: 2025-11-04ZHUHAI HUGE IC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510157774.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-11-04
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

In wireless communication, when WiFi and BLE share the same 2.4GHz radio frequency module, WiFi transmission may interfere with BLE connection, causing BLE connection instability. This interference is particularly severe in high-density wireless environments, affecting the stability and reliability of data transmission.

Method used

By using a shared 2.4G radio frequency module between the built-in WiFi4 controller and BLE controller in the wireless communication device, the start time point P1 of the BLE connection event is accurately calculated. At time point P2, a CTS-TO-SELF frame is sent to notify other devices to give way, ensuring channel occupancy during the BLE connection event, and then switching to WiFi data transmission.

Benefits of technology

It effectively avoids communication conflicts between BLE connection events and other WiFi devices, maintains low latency and high reliability of BLE connections, improves the stability of BLE connections, and achieves seamless switching between WiFi and BLE, thereby improving overall communication efficiency and hardware resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996981B_ABST
    Figure CN119996981B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a Bluetooth data transmission method and device, a storage medium and a wireless communication device, and belongs to the wireless communication field. The starting time point P1 of the BLE connection event is accurately calculated, and the time point P2 of sending the CTS-TO-SELF frame is determined according to the starting time point P1. The technical scheme can send the CTS-TO-SELF frame to inform other WiFi devices that the current frequency band will be occupied for a period of time when the BLE connection event is about to occur. After receiving the CTS-TO-SELF frame, other devices will adjust the NAV network allocation vector according to the information in the frame, so that data transmission is avoided on the frequency band in the period of time, and the communication conflict between the BLE connection event and other WiFi devices is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of wireless communication, and in particular to a Bluetooth data transmission method and device, a storage medium and a wireless communication device. BACKGROUND

[0002] With the rapid development of wireless communication technology, more and more devices begin to integrate multiple wireless communication technologies to meet different application requirements. In the fields of smart home, wearable devices and Internet of Things (IoT), there is a demand for both WiFi and Bluetooth Low Energy (BLE) technologies. WiFi technology has become the first choice for many devices to access the Internet due to its high-speed data transmission capability, while BLE technology plays an important role in short-range communication between devices due to its low power consumption and fast connection characteristics.

[0003] In particular, in some high-level intelligent terminal devices, in order to optimize user experience and reduce hardware cost, designers tend to integrate WiFi and BLE on the same 2.4GHz radio frequency (RF) module. Although this design improves the utilization of hardware resources, it also brings challenges to radio frequency resource management. Since both WiFi and BLE work in the 2.4GHz frequency band, there is a natural spectrum competition problem between them.

[0004] In actual applications, WiFi transmission usually requires continuous data flow to ensure high-speed data transmission efficiency, while BLE communication exchanges data periodically according to negotiated connection intervals. Each BLE connection event includes a communication process between a master and a slave device, which needs to ensure low latency and high reliability. However, when WiFi and BLE share the same RF module, if not properly managed in the time domain, WiFi transmission may interfere with BLE connection events, resulting in unstable or even disconnected BLE connections.

[0005] Referring to Figure 1 To alleviate this interference, the prior art adopts a time-sharing transmission strategy. That is, at the time point when the BLE connection interval is about to arrive, the device will interrupt the WiFi transmission to ensure the smooth progress of the BLE connection event. The BLE master and slave will communicate on the agreed frequency according to the pre-negotiated frequency hopping algorithm in the connection event, thereby reducing the interference from other 2.4GHz devices to some extent. However, this strategy, although it can improve the stability of BLE connection to some extent, still cannot completely avoid the interference from other WiFi devices using the 2.4GHz frequency band.

[0006] Especially in high-density wireless environments such as home networks, office networks and the like, the activities of other WiFi devices are frequent, which causes the BLE device to be easily interfered, and affects the stability and reliability of data transmission. Therefore, how to improve the stability of BLE connection while ensuring the transmission efficiency of WiFi has become a technical problem to be solved in the current wireless communication field. SUMMARY

[0007] The embodiments of the present application provide a Bluetooth data transmission method and device, a storage medium and a wireless communication device, which can solve the problem that the Bluetooth data transmission process is easily interfered in the related art. The technical solution is as follows:

[0008] In a first aspect, the embodiments of the present application provide a Bluetooth data transmission method, a wireless communication device is built-in with a WiFi4 controller and a BLE controller, the WiFi4 controller and the BLE controller share one 2.4G radio frequency module;

[0009] The method comprises the following steps:

[0010] The wireless communication device establishes Bluetooth connection with a BLE slave through the BLE controller;

[0011] The wireless communication device calculates a starting time point P1 of a next BLE connection event;

[0012] The wireless communication device calculates a time point P2 according to the starting time point P1; the time length between the time point P2 and the time point P1 is equal to the sum of the time length of a CTS-TO-SELF frame and a SIFS short interframe space;

[0013] The wireless communication device sends the CTS-TO-SELF frame at the time point P2, waits for the SIFS after the CTS-TO-SELF frame is sent, and then transmits a Bluetooth data frame with the BLE slave at a first frequency point through the BLE controller; wherein the CTS-TO-SELF frame refers to a CTS frame with a RA receiving address being the MAC address of the wireless communication device; other devices receiving the CTS-TO-SELF frame set their NAV to T, T = the time length of the CTS-TO-SELF frame + SIFS + the time length of the BLE connection event;

[0014] When the wireless communication device detects that the Bluetooth data frame transmission is completed, the wireless communication device transmits a WiFi data frame at a second frequency point through the built-in WiFi4 controller.

[0015] In a second aspect, the embodiments of the present application provide a Bluetooth data transmission device, which comprises:

[0016] A connection unit is configured to establish a Bluetooth connection with a BLE slave through a BLE controller;

[0017] A calculation unit is configured to calculate a starting time point P1 of a next BLE connection event;

[0018] The calculation unit is further configured to calculate a time point P2 according to the starting time point P1; a time length between the time point P2 and the time point P1 is equal to a sum of a time length of a CTS-TO-SELF frame and a SIFS short interframe space;

[0019] A sending unit is configured to send the CTS-TO-SELF frame at the time point P2, wait for the SIFS after the CTS-TO-SELF frame is sent, and then transmit a Bluetooth data frame with the BLE slave at a first frequency point through the BLE controller; wherein the CTS-TO-SELF frame refers to a CTS frame with a RA receiving address being a MAC address of the wireless communication device; other devices receiving the CTS-TO-SELF frame set their NAVs to T, T = a time length of the CTS-TO-SELF frame + SIFS + a time length of the BLE connection event;

[0020] The sending unit is further configured to detect that the Bluetooth data frame is transmitted, and transmit a WiFi data frame at a second frequency point through a built-in WiFi4 controller.

[0021] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and performing the method steps described above.

[0022] In a fourth aspect, an embodiment of the present application provides a wireless communication device, which can include a WiFi4 controller, a BLE controller, a 2.4G radio frequency module, a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and performing the method steps described above.

[0023] The technical scheme provided by some embodiments of the present application has at least the following beneficial effects:

[0024] By calculating the starting time point P1 of the BLE connection event accurately, and determining the time point P2 of sending the CTS-TO-SELF frame according to the time point P1, the technical solution can send the CTS-TO-SELF frame to inform other WiFi devices that the current frequency band will be occupied for a period of time when the BLE connection event is about to occur. After receiving the CTS-TO-SELF frame, other devices will adjust their NAV (Network Allocation Vector) according to the information in the frame, so as to avoid data transmission on the frequency band in this period of time, effectively avoiding the communication conflict between the BLE connection event and other WiFi devices. BRIEF DESCRIPTION OF DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0026] Figure 1 is a timing diagram of transmitting WiFi data and Bluetooth data in the prior art;

[0027] Figure 2 is a flowchart of a Bluetooth data transmission method provided by the embodiments of the present application;

[0028] Figure 3 is Figure 2 a corresponding timing diagram of Bluetooth data transmission;

[0029] Figure 4 is a schematic diagram of a hidden node provided by the embodiments of the present application;

[0030] Figure 5 is another flowchart of a Bluetooth data transmission method provided by the embodiments of the present application;

[0031] Figure 6 Figure 5 a corresponding timing diagram of Bluetooth data transmission;

[0032] Figure 7 is a structural schematic diagram of a Bluetooth data transmission device provided by the present application;

[0033] Figure 8 is a structural schematic diagram of a wireless communication device provided by the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0035] Please refer to Figure 2 , a flowchart of a Bluetooth data transmission method provided for an embodiment of the present application. The method of the present application can include the following steps:

[0036] S201, the wireless communication device establishes a Bluetooth connection with the BLE slave through the BLE controller.

[0037] Among them, the wireless communication device is built-in with WiFi4 controller and BLE controller, and the WiFi4 controller and the BLE controller share a 2.4G radio frequency module. The wireless communication device first initializes its built-in BLE controller. The device scans the surrounding BLE devices through the BLE controller to find a specific BLE slave. Once the target BLE slave is found, the wireless communication device will initiate a Bluetooth connection request. This request includes the MAC address of the device, service UUID and other information to ensure the correctness and security of the connection. After receiving the connection request, the BLE slave will verify and respond with a connection confirmation frame. Once the connection confirmation frame is received by the wireless communication device, the Bluetooth connection between the two is established. It is worth noting that since the WiFi4 controller and the BLE controller in the wireless communication device share a 2.4G radio frequency module, during the Bluetooth connection process, it is necessary to ensure that the WiFi4 controller does not occupy the radio frequency module to avoid interference.

[0038] Suppose the wireless communication device is a smart phone and the BLE slave is a smart bracelet. The smart phone first scans the surrounding BLE devices to find the MAC address of the smart bracelet, and then initiates a connection request. After the smart bracelet verifies the request, the Bluetooth connection between the two is established and data transmission can begin.

[0039] S202, the wireless communication device calculates the starting time point P1 of the next BLE connection event.

[0040] Among them, the BLE connection event occurs periodically and is used to send Bluetooth data frames. The wireless communication device calculates the starting time point P1 of the next BLE connection event according to the parameters of the established Bluetooth connection (such as connection interval, slave delay, etc.). This time point is usually a future time point relative to the current time.

[0041] For example: refer to Figure 3 , the starting time point P1 is the starting time of the Bluetooth data frame transmission period, and the BLE connection interval represents the duration between adjacent two transmission periods. If the BLE connection interval is set to 100ms and there is no slave delay, then the wireless communication device will calculate that the next BLE connection event will start 100ms after the current time.

[0042] S203, the wireless communication device calculates a time point P2 according to the starting time point P1; the time length between the time point P2 and the time point P1 is equal to the sum of the time length of the CTS-TO-SELF frame and the SIFS (Short Interframe Space).

[0043] Wherein, after calculating P1, the wireless communication device further calculates a time point P2. P2 is a time point before P1, and the time length between P2 and P1 is equal to the time length of the CTS-TO-SELF frame plus the time length of the SIFS (Short Interframe Space). The CTS-TO-SELF frame is a special control frame used to inform other devices of the upcoming transmission so that they can adjust their own transmission plan to avoid conflicts. The SIFS is a fixed time interval used to provide sufficient interval between frames to ensure that the receiving device can correctly process the received frame.

[0044] Suppose the time length of the CTS-TO-SELF frame is 160us, and the SIFS is 10us. If P1 is 100ms after the current time, then P2 will be a time point 170us before P1.

[0045] S204, the wireless communication device sends a CTS-TO-SELF frame at the time point P2, waits for SIFS after the CTS-TO-SELF frame is sent, and then transmits a Bluetooth data frame with the BLE slave through the BLE controller at the first frequency point; wherein, the CTS-TO-SELF frame refers to a CTS frame with the RA (Receiver Address) as the MAC address of the wireless communication device; other devices receiving the CTS-TO-SELF frame will set their NAV to T, T = the time length of the CTS-TO-SELF frame + SIFS + the time length of the BLE connection event.

[0046] At time point P2, the wireless communication device sends a CTS-TO-SELF frame. The RA (Receive Address) of the frame is set to the MAC address of the wireless communication device itself, indicating that this is a self-sending behavior of the device. Other devices receiving the CTS-TO-SELF frame set their NAV (Network Allocation Vector) to T, where T is equal to the duration of the CTS-TO-SELF frame plus SIFS plus the duration of the BLE connection event, the other devices referring to devices other than the device sending the CTS-TO-SELF frame, here referring to devices other than the wireless communication device. In this way, the other devices know that the wireless channel will be occupied in the following period of time, and they should avoid sending data in this period of time. After the CTS-TO-SELF frame is sent and SIFS is waited, the wireless communication device transmits a Bluetooth data frame with the BLE slave through the BLE controller at the first frequency point (usually a channel in the 2.4 GHz frequency band).

[0047] At time point P2, the smartphone sends a CTS-TO-SELF frame and waits for SIFS of 10 μs. Then, it transmits a Bluetooth data frame with the smartband through the BLE controller on a channel in the 2.4 GHz frequency band.

[0048] S205, when the wireless communication device detects that the Bluetooth data frame transmission is complete, it transmits a WiFi data frame at the second frequency point through the built-in WiFi4 controller.

[0049] In this case, the wireless communication device switches to the built-in WiFi4 controller as soon as the Bluetooth data frame transmission is complete. Since the WiFi4 controller and the BLE controller share one 2.4G RF module, it is necessary to ensure that the RF module has been released after the Bluetooth transmission is completed before starting the WiFi transmission. The wireless communication device selects a second frequency point (in the 2.4 GHz frequency band) different from the Bluetooth transmission frequency point and transmits a WiFi data frame at the frequency point through the WiFi4 controller. In this way, interference between Bluetooth and WiFi can be avoided.

[0050] After the Bluetooth data frame transmission is complete, the smartphone switches to the WiFi4 controller and transmits a WiFi data frame on a channel in the 2.4 GHz frequency band different from the Bluetooth transmission frequency point. This ensures that Bluetooth and WiFi transmissions can be performed in parallel without interfering with each other.

[0051] In summary, the beneficial effects of implementing the embodiments of the present application include:

[0052] By accurately calculating the starting time point P1 of the BLE connection event and determining the time point P2 of sending the CTS-TO-SELF frame based on it, the technical solution can notify other WiFi devices that the current frequency band will be occupied for a period of time by sending the CTS-TO-SELF frame when the BLE connection event is about to occur. After receiving the CTS-TO-SELF frame, other devices will adjust their NAV (Network Allocation Vector) according to the information in the frame, so as to avoid data transmission on the frequency band during this period of time, effectively avoiding the communication conflict between the BLE connection event and other WiFi devices.

[0053] Since the sending of the CTS-TO-SELF frame and the waiting of SIFS ensure that the BLE connection event proceeds without interference from other WiFi devices, the communication between the BLE master and slave can maintain low latency and high reliability. This design greatly improves the stability of BLE connection, especially in high-density wireless environments such as home networks and office networks, which can significantly reduce the possibility of interference to BLE devices.

[0054] The technical solution not only avoids communication conflicts, but also fully considers the efficiency of WiFi transmission. By switching to WiFi data transmission immediately after the BLE connection event ends, seamless switching between WiFi and BLE communication modes is achieved. This design not only improves the utilization of hardware resources, but also optimizes the communication timing, reduces the latency caused by mode switching, and thus improves the overall communication efficiency.

[0055] The technical solution is designed based on existing WiFi and BLE technology standards, so it has good compatibility and scalability. It can adapt to wireless communication devices of different brands and models, and also support future higher versions of WiFi and BLE technology.

[0056] In wireless communication, hidden nodes are devices that are outside the communication range of both communicating parties but may interfere with or be interfered by them. As shown in Figure 4 Device C is a hidden node for device B because it cannot detect the CTS-TO-SELF frame sent by B. Similarly, device D is also a hidden node for device A. In this case, if only one of devices A or B sends the CTS-TO-SELF frame, hidden node C or D may not receive the frame, so it cannot correctly set the NAV (Network Allocation Vector), and may initiate interference when A and B perform BLE data frame transmission.

[0057] Referring to Figure 5 To solve the problem of hidden nodes, the present application further provides a flowchart of a Bluetooth data transmission method, comprising:

[0058] S501, the wireless communication device establishes a Bluetooth connection with the BLE slave through the BLE controller.

[0059] Wherein, the wireless communication device starts its BLE controller and enters a broadcast / scanning mode to find nearby BLE slaves. Once a target BLE slave is found, the wireless communication device initiates a connection request, which usually involves a series of connection parameters (such as connection interval, slave latency, monitoring timeout, etc.) negotiation. Once these parameters are accepted by both parties, the BLE connection is established.

[0060] S502, the wireless communication device calculates the starting time point P1 of the next BLE connection event.

[0061] Wherein, once the BLE connection is established, the wireless communication device calculates the starting time point P1 of the next BLE connection event according to the negotiated connection parameters (especially the connection interval and slave latency). This time point marks the time when the next data transmission between the wireless communication device and the BLE slave can begin.

[0062] S503, calculate time point P2 according to starting time point P1, the duration between time point P2 and starting time point P1 is equal to the duration of CTS-TO-SELF frame, SIFS and IDLE duration.

[0063] Wherein, the wireless communication device calculates time point P2 according to the provisions of the BLE protocol and the current system state. P2 is the time when the wireless communication device starts to send CTS-TO-SELF frame, and the duration between P2 and P1 is equal to the sum of the duration of CTS-TO-SELF frame, SIFS (Short Inter-Frame Space) and IDLE duration. SIFS is a fixed time used for inter-frame interval in wireless local area network, and IDLE duration is to ensure that the channel is idle before sending CTS-TO-SELF frame.

[0064] S504, the wireless communication device starts to send the first CTS-TO-SELF frame at time point P2, after sending, waits for SIFS and IDLE, and then transmits Bluetooth data frame to the BLE slave at the first frequency point through the built-in BLE controller; wherein, the second CTS-TO-SELF frame refers to the CTS frame with the MAC address of the wireless communication device as the RA address, and other devices receiving the CTS-TO-SELF frame will set the NAV to Tm, Tm=2*(the duration of the first CTS-TO-SELF frame+SIFS)+the duration of the BLE connection event.

[0065] Wherein, at time point P2, the wireless communication device starts sending a CTS-TO-SELF frame. The RA (Receiver Address) field of this frame is set as the MAC address of the wireless communication device, aiming to inform other devices that the wireless communication device will occupy the channel for data transmission in the following time. Other devices receiving the CTS-TO-SELF frame will set their NAV (Network Allocation Vector) as Tm, as shown in Figure 6 Tm = 2*(the time length of the first CTS-TO-SELF frame + SIFS) + the time length of the BLE connection event. In order to prevent other devices from attempting to occupy the channel in this time. After sending, the wireless communication device waits for SIFS and IDLE time, and then transmits Bluetooth data frames to the BLE slave through the first frequency point on its built-in BLE controller.

[0066] S505, the BLE slave sends a second CTS-TO-SELF frame to the outside when detecting the end of SIFS, and waits for SIFS before transmitting Bluetooth data frames between the wireless communication devices; the second CTS-TO-SELF frame refers to a CTS frame with the RA address as the MAC address of the BLE slave, and other devices receiving the second CTS-TO-SELF frame will set their NAV as Ts, Ts = the time length of the second CTS-TO-SELF frame + SIFS + the time length of the BLE connection event.

[0067] Wherein, before the wireless communication device starts transmitting Bluetooth data frames (or at the end of SIFS), the BLE slave detects the idle state on the channel and sends its own CTS-TO-SELF frame (second CTS-TO-SELF frame). The RA field of this frame is set as the MAC address of the BLE slave. Referring to Figure 6 As shown, other devices receiving this frame will set their NAV as Ts to prevent the channel from being occupied by other devices during the transmission of data frames by the BLE slave. After sending, the BLE slave waits for SIFS time, and then transmits Bluetooth data frames between the wireless communication devices (actually, to the BLE controller of the wireless communication device) as a response.

[0068] S506, the wireless communication device detects the end of the transmission of Bluetooth data frames, and transmits WiFi data frames through the built-in WiFi4 controller on the second frequency point.

[0069] Once the Bluetooth data frame transmission is complete, the wireless communication device switches to its built-in WiFi 4 controller and begins transmitting WiFi data frames on the second frequency. This process involves channel switching and data frame preparation. Since Bluetooth and WiFi typically use different frequency bands (or different channels within the same frequency band), the wireless communication device needs to ensure the channel is idle before switching. Once the channel is idle, the wireless communication device begins transmitting WiFi data frames.

[0070] In this embodiment, the CTS-TO-SELF frame is sent to announce the upcoming data transmission to other devices in the network and request them not to occupy the channel during this period. Although hidden nodes cannot directly receive CTS frames sent to specific devices (because they are outside the communication range of the sending device), through clever design, we can use CTS-TO-SELF frames to indirectly notify these hidden nodes.

[0071] by Figure 4 For example, wireless communication devices A and B both send CTS-TO-SELF frames to minimize interference from hidden nodes. When A sends a CTS-TO-SELF frame, although hidden node C cannot receive this frame, any device within A's communication range (including devices that may act as relays or bridges) can receive it. These devices will then set their own NAVs to avoid initiating transmissions while A is transmitting data.

[0072] Similarly, when B sends a CTS-TO-SELF frame, the hidden node D cannot receive it, but devices within B's communication range will receive it and set NAV. Importantly, if the communication ranges of A and B overlap (or are indirectly connected through other devices), then these shared coverage devices (or relay devices) can act as "messengers," indirectly informing the hidden nodes C and D about the upcoming data transmission.

[0073] Of course, this notification is not direct, but depends on how devices in the network respond to CTS-TO-SELF frames and set their NAV. Ideally, each device in the network updates its own NAV based on the received CTS frame and remains silent during the NAV period, thus avoiding conflicts with devices that are transmitting data.

[0074] Furthermore, in the embodiments of this application, the following is a detailed description of the duration of the BLE (Bluetooth Low Energy) connection event and the duration of the CTS-TO-SELF frame set by the wireless communication device, based on existing information:

[0075] The duration of a BLE connection event is determined by several factors, with the most critical being the settings of the connection parameters, including the connection interval, slave latency, and supervision timeout.

[0076] Connection Interval: This refers to the time distance between the start of two consecutive connection events, which can be any value within 7.5ms to 4s, but must be an integer multiple of 1.25ms. It determines the interaction frequency between the master and slave devices.

[0077] Slave Latency: This represents how many connection events the slave device can ignore before it must listen. This parameter allows the slave device to skip a certain number of connection events if there is no data to send, thereby saving power consumption.

[0078] Supervision Timeout: This sets a timeout period after which the BLE connection will automatically disconnect if no communication has occurred within that time. The unit is 10ms, and the variable ranges from 10 to 3200, which translates to a time range of 100ms to 32s.

[0079] The duration of a connection event is actually determined by these parameters together. For example, if the connection interval is 100ms and the slave latency is 9, the slave device can ignore 9 connection events but must listen at the 10th connection event. At this time, the duration of the connection event will depend on the data transmission rate and packet size between the master and slave devices.

[0080] The CTS-TO-SELF frame is a management frame used in 802.11 wireless networks to inform other devices that the channel will be occupied. Its duration is usually short because the main purpose of the CTS-TO-SELF frame is to quickly announce the use of the channel so that other devices can adjust their transmission plans accordingly.

[0081] However, the specific duration of a CTS-TO-SELF frame may vary depending on the device manufacturer, network configuration, and transmission rate. In addition, the duration of a CTS-TO-SELF frame may also be affected by network congestion, signal interference, and transmission distance, among other factors.

[0082] Setting the duration of a BLE connection event and the duration of a CTS-TO-SELF frame for a wireless communication device is complex and is influenced by multiple factors. For the duration of a BLE connection event, the interaction efficiency and power consumption between the master and slave devices can be optimized by adjusting the connection parameters. For the duration of a CTS-TO-SELF frame, it needs to be determined according to the specific network configuration and device implementation.

[0083] In practical applications, it is recommended to set these parameters according to the specific needs of the device and network environment to ensure the stability and efficiency of wireless communication. At the same time, it is also necessary to fully test and verify the device to ensure its performance and reliability in actual use.

[0084] Further, in some embodiments of the present application, the Bluetooth data frame size refers to the maximum packet size that can be sent in one transmission, which determines the amount of information that can be transmitted between devices each time of communication. In the Bluetooth LE (Low Energy) protocol, the size of MTU has a direct impact on data transmission efficiency and power consumption.

[0085] Different application scenarios have different requirements for Bluetooth data frame size. For example:

[0086] Real-time data transmission: Applications such as audio streaming or video streaming that require continuous and real-time transmission may require larger data frame size to reduce transmission times and delay.

[0087] Intermittent data transmission: Applications such as sensor data reporting that require intermittent communication may not be as strict in data frame size requirements, but also need to be reasonably set according to data volume and transmission frequency.

[0088] Low power consumption requirement: For devices that need to run for a long time, such as wearable devices or Internet of Things sensors, it may be necessary to reduce the data frame size as much as possible to reduce power consumption while ensuring reliable data transmission.

[0089] In Bluetooth communication, adjusting the data frame size is usually achieved by adjusting the MTU. Here are the basic steps to adjust the MTU:

[0090] Connect devices: First, wireless communication devices need to establish a connection through the Bluetooth protocol stack. This usually includes device discovery, pairing and connection steps.

[0091] Request MTU: Once the connection is established, the master device (such as a smartphone or computer) can initiate an MTU request to the slave device (such as an external Bluetooth device). This request usually contains the maximum MTU value supported by the master device.

[0092] Negotiate MTU: After receiving the MTU request, the slave device will choose a suitable MTU value according to its own capabilities and the requirements of the master device as a reply. This negotiation process ensures that both parties can accept and handle the selected MTU size.

[0093] Apply MTU: Once the MTU negotiation is successful, both parties can start data transmission according to the negotiated MTU size.

[0094] In summary, adjusting the data frame size in Bluetooth communication according to the application scenario is an important optimization method for wireless communication devices. By reasonably setting the MTU size, the data transmission efficiency can be improved, the power consumption can be reduced, and the user experience can be improved.

[0095] Further, time division multiplexing (TDM) is a technology that divides time into a plurality of equal-length time division multiplexing frames (TDM frames). Each time-division multiplexed user occupies a time slot with a fixed sequence number in each TDM frame, and the time slot occupied by each user appears periodically (the period is the length of the TDM frame). All time-division multiplexed users occupy the same frequency bandwidth at different times. This approach can effectively avoid signal interference between different users.

[0096] In wireless communication devices, Bluetooth and WiFi usually work in the 2.4 GHz frequency band, so their working channels almost completely overlap, and mutual interference is easy to occur. In order to avoid such interference, the device can use time division multiplexing to transmit Bluetooth data frames and WiFi data frames separately in time.

[0097] In specific implementation, the device divides the channel into a plurality of time slices, and allocates these time slices to Bluetooth and WiFi as needed. For example, a period of time slices can be set for Bluetooth data transmission, then another period of time slices can be set for WiFi data transmission, and then it can return to Bluetooth data transmission, and so on. In this way, Bluetooth and WiFi can perform data transmission in different time slices, respectively, thereby avoiding mutual interference.

[0098] In the embodiments of the present application, in wireless communication, hidden nodes refer to devices that are outside the communication range of each other but can interfere with the common receiving node. The technical solution sends CTS-TO-SELF frames before and after the connection event by the BLE master and the BLE slave, and sets the corresponding NAV (Network Allocation Vector), effectively notifying the potential interference devices (i.e. hidden nodes) to avoid data transmission in this frequency band within a certain period of time. This approach significantly reduces communication conflicts and interference caused by hidden nodes, improving the stability of communication.

[0099] By accurately calculating and sending CTS-TO-SELF frames in time, the technical solution ensures that the BLE connection event can proceed smoothly without interference from other devices. At the same time, after the BLE data transmission is completed, WiFi data transmission is immediately switched to, achieving efficient use of spectrum resources. This design not only improves communication efficiency, but also reduces the waste of spectrum resources.

[0100] The communication between the BLE master and slave is effectively protected by sending the CTS-TO-SELF frame in time-sharing manner, reducing the risk of connection interruption and data loss caused by communication conflict. This design enhances the reliability of communication, especially in application scenarios with high requirements for communication stability.

[0101] The technical solution is designed based on existing WiFi and BLE technical standards, so it has good compatibility. It can adapt to wireless communication devices of different brands and models, and can also coexist with other wireless communication technologies (such as Zigbee, Z-Wave, etc.) in the same wireless environment, improving the overall compatibility and scalability of the system.

[0102] The following is an embodiment of the device of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0103] Please refer to Figure 7 , which shows the structure diagram of the Bluetooth data transmission device provided by an exemplary embodiment of the present application. The device can be realized by software, hardware or a combination of both to become all or part of a wireless communication device. The Bluetooth data transmission device 7 (referred to as device 7) includes a connection unit 701, a calculation unit 702, and a sending unit 703.

[0104] The connection unit 701 is configured to establish a Bluetooth connection with a BLE slave through a BLE controller;

[0105] The calculation unit 702 is configured to calculate a starting time point P1 of a next BLE connection event;

[0106] The calculation unit 702 is further configured to calculate a time point P2 according to the starting time point P1; the duration between the time point P2 and the time point P1 is equal to the sum of the duration of the CTS-TO-SELF frame and the SIFS short interframe interval;

[0107] The sending unit 703 is configured to send a CTS-TO-SELF frame at the time point P2, wait for SIFS when the CTS-TO-SELF frame is sent, and then transmit a Bluetooth data frame with the BLE slave at a first frequency point through the BLE controller; wherein the CTS-TO-SELF frame refers to a CTS frame with a RA receiving address being the MAC address of the wireless communication device; other devices receiving the CTS-TO-SELF frame set their NAV to T, T = the duration of the CTS-TO-SELF frame + SIFS + the duration of the BLE connection event;

[0108] The sending unit 703 is further configured to, when detecting that the transmission of the Bluetooth data frame is completed, transmit a WiFi data frame at a second frequency point through the built-in WiFi4 controller.

[0109] In a possible implementation, the method further includes:

[0110] The setting unit is configured to set a time length of the BLE connection event and a time length of the SIFS.

[0111] In a possible implementation, the size of the Bluetooth data frame is adjusted according to an application scenario.

[0112] In a possible implementation, the Bluetooth data frame and the WiFi data frame are allocated to different time according to a time division multiplexing manner.

[0113] It should be noted that the apparatus 3 provided in the above embodiments is only used as an example to divide the above functions into different functional modules when the Bluetooth data transmission method is performed, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the Bluetooth data transmission apparatus and the Bluetooth data transmission method provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be described here.

[0114] The serial numbers of the above embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

[0115] The embodiments of the present application further provide a computer storage medium, which can store a plurality of instructions, the instructions being suitable for being loaded and executed by a processor to implement the method steps of the method of the embodiments as shown in the above Figure 2 The specific implementation process can be referred to the specific description of the embodiments as shown in the above Figure 2 The specific implementation process can be referred to the specific description of the embodiments as shown in the above

[0116] The present application further provides a computer program product, which stores at least one instruction, the at least one instruction being loaded and executed by the processor to implement the Bluetooth data transmission method of the embodiments as described above.

[0117] Please refer to Figure 8 , which provides a structural schematic diagram of a wireless communication device. As shown in the above Figure 8 , the wireless communication device 800 can include at least one processor 801, a communication interface 803, a memory 804, at least one communication bus 802, a WiFi4 controller and a BLE controller (not shown in the above Figure 8 ).

[0118] The communication bus 802 is configured to realize the connection communication among the components. The WiFi 4 controller and the BLE controller, the processor and the memory are connected with the communication bus respectively.

[0119] The communication interface 803 includes a 2.4G radio frequency module, and can transmit data packets of the WiFi protocol and data packets of the Bluetooth protocol.

[0120] The processor 801 can include one or more processing cores. The processor 801 is connected with various parts in the wireless communication device 800 by various interfaces and lines, and executes various functions of the wireless communication device 800 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804.

[0121] The memory 804 can include a random access memory (RAM) and a read-only memory (ROM). Optionally, the memory 804 includes a non-transitory computer-readable storage medium. The memory 804 can be configured to store instructions, programs, codes, code sets or instruction sets. The memory 804 can include a program storage area and a data storage area. The program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 804 can also be at least one storage device located away from the processor 801. As shown in the figure, the memory 804 as a computer storage medium can include an operating system, a network communication module and an application program. Figure 8

[0122] In the wireless communication device 800 as shown in the figure, the processor 801 can be configured to call the application program stored in the memory 804, and specifically execute the method as shown in the figure. The specific process can refer to the figure, and will not be described here. Figure 8 Figure 2 Figure 2

[0123] ​​​​Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, the program can include the processes of the above-mentioned embodiment methods. The storage medium can be a magnetic disc, an optical disc, a read-only memory or a random access memory, etc.

[0124] The above only discloses one preferred embodiment of the present application, and of course cannot limit the scope of the present application. Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment can be implemented, and equivalent changes made according to the claims of the present application still fall within the scope of the present application.

Claims

1. A method of transmitting Bluetooth data, characterized by, The wireless communication device is built-in with a WiFi4 controller and a BLE controller, and the WiFi4 controller and the BLE controller share one 2.4G radio frequency module; The method comprises: The wireless communication device establishes a Bluetooth connection with a BLE slave through the BLE controller; The wireless communication device calculates a starting time point P1 of a next BLE connection event; The wireless communication device calculates a time point P2 according to the starting time point P1, and a time length between the time point P2 and the starting time point P1 is equal to a sum of a time length of a CTS-TO-SELF frame and a SIFS short interframe space; The wireless communication device transmits the CTS-TO-SELF frame at the time point P2, waits for the SIFS after the CTS-TO-SELF frame is transmitted, and then transmits a Bluetooth data frame with the BLE slave at a first frequency point through the BLE controller; wherein the CTS-TO-SELF frame refers to a CTS frame with a RA receiving address being a MAC address of the wireless communication device; other devices receiving the CTS-TO-SELF frame set their NAVs to T, T = the time length of the CTS-TO-SELF frame + the SIFS + a time length of the BLE connection event; The wireless communication device detects that the Bluetooth data frame is transmitted, and transmits a WiFi data frame at a second frequency point through a built-in WiFi4 controller.

2. A method of transmitting Bluetooth data, characterized by, The method comprises: The wireless communication device establishes a Bluetooth connection with a BLE slave through the BLE controller; The wireless communication device calculates a starting time point P1 of a next BLE connection event; The wireless communication device calculates a time point P2 according to the starting time point P1, and a time length between the time point P2 and the starting time point P1 is equal to a sum of a time length of a CTS-TO-SELF frame, a SIFS, and an IDLE time length; The wireless communication device starts to transmit a first CTS-TO-SELF frame at the time point P2, waits for the SIFS and the IDLE after the first CTS-TO-SELF frame is transmitted, and then transmits a Bluetooth data frame with the BLE slave at a first frequency point through a built-in BLE controller; wherein other devices receiving the CTS-TO-SELF frame set their NAVs to Tm, Tm = 2*(the time length of the first CTS-TO-SELF frame + the SIFS) + a time length of the BLE connection event; the BLE slave sends a second CTS-TO-SELF frame to the outside when detecting that the SIFS ends, waits for the SIFS, and then transmits a Bluetooth data frame with the wireless communication device; other devices receiving the second CTS-TO-SELF frame set their NAVs to Ts, Ts = the time length of the second CTS-TO-SELF frame + the SIFS + the time length of the BLE connection event; The wireless communication device detects that the Bluetooth data frame is transmitted, and transmits a WiFi data frame at a second frequency point through a built-in WiFi4 controller.

3. The method according to claim 1 or 2, characterized in that, The method further comprises: Setting a time length of the BLE connection event and a time length of the SIFS.

4. The method of claim 3, wherein, Adjusting a size of the Bluetooth data frame according to an application scenario.

5. The method of claim 4, wherein, According to time division multiplexing, the Bluetooth data frame and the WiFi data frame are allocated to different times.

6. A transmission apparatus of Bluetooth data, characterized by, The application comprises: a connection unit for establishing Bluetooth connection with a BLE slave through a BLE controller; a calculation unit for calculating a starting time point P1 of a next BLE connection event; the calculation unit is further configured to calculate a time point P2 according to the starting time point P1; the time length between the time point P2 and the time point P1 is equal to the sum of the time length of a CTS-TO-SELF frame and a SIFS short interframe space; a sending unit for sending a CTS-TO-SELF frame at the time point P2, waiting for SIFS when the sending of the CTS-TO-SELF frame is completed, and then transmitting a Bluetooth data frame with the BLE slave at a first frequency point through the BLE controller; wherein the CTS-TO-SELF frame refers to a CTS frame with a RA receiving address being the MAC address of a wireless communication device; other devices receiving the CTS-TO-SELF frame set their NAV to T, T = the time length of the CTS-TO-SELF frame + SIFS + the time length of the BLE connection event; the sending unit is further configured to detect the completion of the transmission of the Bluetooth data frame, and transmit a WiFi data frame at a second frequency point through a built-in WiFi4 controller.

7. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded and executed by the processor, and perform the method steps of any one of claims 1-5.

8. A wireless communication device, comprising: The application comprises: a WiFi4 controller, a BLE controller, a 2.4G radio frequency module, a processor and a memory; wherein the memory stores a computer program, which is suitable for being loaded and executed by the processor, and perform the method steps of any one of claims 1-5.

Citation Information

Patent Citations

  • Data transmission method and device and storage medium

    CN114567872A

  • Beam configuration for secondary cells

    US20200100154A1