Terminal device and communication method therefor, and related device
By sending channel reservation indication information to the Wi-Fi module and receiving a success notification, the HB BLE module can interact with the peer HB BLE device within the reserved time, thus solving the interference problem when the HB BLE module and the Wi-Fi module coexist and improving the communication quality.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2026-04-02
AI Technical Summary
In terminal devices, when HB BLE modules and Wi-Fi modules coexist, how can we improve communication quality to reduce throughput loss or data loss caused by mutual interference?
The HB BLE module sends a channel reservation instruction to the Wi-Fi module. The Wi-Fi module reserves the channel based on this information and sends a notification to the HB BLE module when the reservation is successful. The HB BLE module then interacts with the peer HB BLE device for data during the reserved usage time.
Through channel reservation and notification mechanisms, the HB BLE module interacts with the peer HB BLE device within the reserved usage time, avoiding interference from Wi-Fi devices and improving communication quality.
Smart Images

Figure CN2024123052_02042026_PF_FP_ABST
Abstract
Description
Terminal device and communication method thereof, and related device TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of communication technology, in particular to a terminal device and a communication method thereof, and a related device. BACKGROUND
[0002] The proliferation of network communication devices, especially in unlicensed bands, has led to challenges in attempting to utilize multiple network protocols. For example, Bluetooth Low Energy (BLE) and Wireless Fidelity (Wi-Fi) with much higher transmission power levels both operate in unlicensed spectrum.
[0003] Various communication protocols can interfere with each other, resulting in a decrease in throughput or data loss. Therefore, when an HB BLE module and a Wi-Fi module coexist in the same terminal device, how to improve the communication quality of the terminal device becomes a problem to be solved. TECHNICAL PROBLEM
[0004] The problem solved by embodiments of the present application is to provide a terminal device and a communication method thereof, and a related device to improve the communication quality of the terminal device. TECHNICAL SOLUTION
[0005] To solve the above problem, embodiments of the present application provide a communication method of a terminal device, comprising:
[0006] The HB BLE module sends channel reservation indication information to the Wi-Fi module, the channel reservation indication information comprising information of a reserved use time of a Wi-Fi channel, and the Wi-Fi channel overlapping at least one HB BLE channel;
[0007] The Wi-Fi module receives the channel reservation indication information and reserves the Wi-Fi channel according to the channel reservation indication information;
[0008] The Wi-Fi module sends channel reservation success notification information to the HB BLE module when the reservation of the Wi-Fi channel according to the channel reservation indication information is successful;
[0009] The HB BLE module receives the channel reservation success notification information sent by the Wi-Fi module, and uses the at least one HB BLE channel to interact with a peer HB BLE device for data within the reserved use time.
[0010] Optionally, the Wi-Fi module reserves the Wi-Fi channel according to the channel reservation indication information, comprising:
[0011] detecting a Wi-Fi channel by using the Wi-Fi module;
[0012] When detecting that the Wi-Fi channel is in an idle state, sending a channel reservation frame on the Wi-Fi channel by using the Wi-Fi module, so that other Wi-Fi devices avoid using the Wi-Fi channel within the reserved use time.
[0013] Optionally, the channel reservation frame includes a Wi-Fi clear-to-send frame.
[0014] Optionally, the data interaction with the opposite HB BLE device by using the at least one HB BLE channel includes: data interaction with the opposite HB BLE device in units of BLE events.
[0015] Optionally, the communication method of the terminal device further includes:
[0016] When detecting that the target channel is in a busy state, sending information of a subsequent unavailable communication time of the HB BLE module to the Wi-Fi module by using the HB BLE module;
[0017] When receiving the information of the subsequent unavailable communication time of the HB BLE module, using the target channel to perform data interaction with the opposite Wi-Fi device within the subsequent unavailable communication time of the HB BLE module by using the Wi-Fi module.
[0018] Optionally, the data interaction with the opposite Wi-Fi device by using the target channel within the subsequent unavailable communication time of the HB BLE module by using the Wi-Fi module includes:
[0019] Detecting the target channel within the subsequent unavailable communication time of the HB BLE module by using the Wi-Fi module;
[0020] When detecting that the target channel is in an idle state, using the Wi-Fi module to perform data interaction with the opposite Wi-Fi device within the subsequent unavailable communication time of the HB BLE module.
[0021] Optionally, when detecting that the target channel is in a busy state and the opposite Wi-Fi device acquires the use right of the target channel, the communication method of the terminal device further includes:
[0022] The Wi-Fi module is used to send information of available time of the target channel to a peer Wi-Fi device, so that the peer Wi-Fi device controls data interaction time between the Wi-Fi module to be within the subsequent unavailable communication time of the HB BLE module.
[0023] Optionally, the subsequent unavailable communication time of the HB BLE module includes information of a fixed frame period in which the HB BLE module is subsequently unavailable.
[0024] Optionally, the information of the fixed frame period in which the HB BLE module is subsequently unavailable includes information of a start time and / or duration of the fixed frame period in which the HB BLE module is subsequently unavailable.
[0025] Correspondingly, the embodiment of the application further provides a terminal device, comprising:
[0026] The HB BLE module is adapted to send channel reservation indication information to the Wi-Fi module, the channel reservation indication information including information of reserved use time of a Wi-Fi channel, the Wi-Fi channel overlapping at least one HB BLE channel; when receiving channel reservation success notification information sent by the Wi-Fi module, using the at least one HB BLE channel to perform data interaction with a peer HB BLE device within the reserved use time.
[0027] The Wi-Fi module is adapted to receive the channel reservation indication information and reserve the Wi-Fi channel according to the channel reservation indication information; when reserving the Wi-Fi channel successfully according to the channel reservation indication information, send channel reservation success notification information to the HB BLE module.
[0028] Optionally, the HB BLE module is further adapted to send information of subsequent unavailable communication time of the HB BLE module to the Wi-Fi module when detecting that the target channel is in a busy state.
[0029] The Wi-Fi module is further adapted to perform data interaction with a peer Wi-Fi device using the target channel within the subsequent unavailable communication time of the HB BLE module when receiving the information of subsequent unavailable communication time of the HB BLE module.
[0030] Correspondingly, the embodiment of the application further provides a computer program product, comprising computer programs / instructions, which are executed by a processor to implement the communication method of the terminal device as described in any one of the above embodiments.
[0031] Correspondingly, the embodiment of the present application also provides a device comprising at least one memory and at least one processor, the memory storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the communication method of the terminal device according to any one of the above.
[0032] Correspondingly, the embodiment of the present application also provides a storage medium storing one or more computer instructions for implementing the communication method of the terminal device according to any one of the above. Advantages
[0033] Compared with the prior art, the technical scheme of the embodiment of the present application has the following advantages:
[0034] The communication method of the terminal device provided by the embodiment of the present application comprises: sending channel reservation indication information to a Wi-Fi module by using an HB BLE module, wherein the channel reservation indication information comprises information of a reserved use time of a Wi-Fi channel, and the Wi-Fi channel overlaps with at least one HB BLE channel; receiving the channel reservation indication information by using the Wi-Fi module, and reserving the Wi-Fi channel according to the channel reservation indication information; sending channel reservation success notification information to the HB BLE module by using the Wi-Fi module when the Wi-Fi channel is successfully reserved according to the channel reservation indication information; and when the channel reservation success notification information sent by the Wi-Fi module is received by using the HB BLE module, using the at least one HB BLE channel to perform data interaction with a peer HB BLE device within the reserved use time.
[0035] In the communication method of the terminal device provided by the embodiment of the present application, the HB BLE module sends channel reservation indication information to the Wi-Fi module, so that the Wi-Fi module reserves the Wi-Fi channel, and when the Wi-Fi module successfully reserves the Wi-Fi channel, the HB BLE module will not be interfered by the Wi-Fi device in the process of using the at least one HB BLE channel to perform data interaction with the peer HB BLE device, so as to improve the communication quality of the terminal device. BRIEF DESCRIPTION OF DRAWINGS
[0036] Fig. 1 is a flow diagram of an embodiment of the communication method of the terminal device provided by the technical scheme of the present application;
[0037] Fig. 2 is an example diagram of reserving a Wi-Fi channel by using a Wi-Fi in the technical scheme of the present application;
[0038] Fig. 3 is a schematic diagram of one embodiment of the communication method of the terminal device according to the present application;
[0039] Fig. 4 is a schematic diagram of another embodiment of the communication method of the terminal device according to the present application;
[0040] Fig. 5 is a schematic diagram of the structure of one embodiment of the terminal device according to the present application;
[0041] Fig. 6 is a schematic diagram of an optional hardware structure of the terminal device according to the present application. Embodiments of the present application
[0042] As can be known from the background, when the HB BLE module and the Wi-Fi module coexist in the same terminal device, how to improve the communication quality of the terminal device becomes a problem to be solved.
[0043] To solve the above problem, to solve the technical problem, the communication method of the terminal device provided by the embodiments of the present application comprises: sending channel reservation indication information to the Wi-Fi module by using the HB BLE module, the channel reservation indication information comprising information of the reservation use time of the Wi-Fi channel, the Wi-Fi channel overlapping with at least one HB BLE channel; receiving the channel reservation indication information by using the Wi-Fi module, and reserving the Wi-Fi channel according to the channel reservation indication information; sending channel reservation success notification information to the HB BLE module by using the Wi-Fi module when reserving the Wi-Fi channel successfully according to the channel reservation indication information; using the at least one HB BLE channel to interact with the opposite HB BLE device for data during the reservation use time by using the HB BLE module when receiving the channel reservation success notification information sent by the Wi-Fi module.
[0044] In the communication method of the terminal device provided by the embodiments of the present application, the HB BLE module sends channel reservation indication information to the Wi-Fi module, so that the Wi-Fi module reserves the Wi-Fi channel, and when the Wi-Fi module reserves the Wi-Fi channel successfully, the HB BLE module will not be interfered by other Wi-Fi devices in the process of using the at least one HB BLE channel to interact with the opposite HB BLE device for data during the reservation use time, so as to improve the communication quality of the terminal device.
[0045] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0046] Figure 1 shows a flowchart of an embodiment of a communication method of a terminal device according to the present application. Referring to Figure 1, a communication method of a terminal device can include the following steps:
[0047] Step S110: sending channel reservation indication information to a Wi-Fi module using an HB BLE module, the channel reservation indication information including information of a reserved use time of a Wi-Fi channel, the Wi-Fi channel overlapping at least one HB BLE channel;
[0048] Step S120: receiving the channel reservation indication information using the Wi-Fi module, and reserving the Wi-Fi channel according to the channel reservation indication information;
[0049] Step S130: sending channel reservation success notification information to the HB BLE module using the Wi-Fi module when the Wi-Fi channel is successfully reserved according to the channel reservation indication information;
[0050] Step S140: using the at least one HB BLE channel to interact with a peer HB BLE device for data during the reserved use time using the HB BLE module when the channel reservation success notification information sent by the Wi-Fi module is received.
[0051] Please continue to refer to Figure 1, and perform step S110, send channel reservation indication information to a Wi-Fi module using an HB BLE module, the channel reservation indication information including information of a reserved use time of a Wi-Fi channel, the Wi-Fi channel overlapping at least one HB BLE channel.
[0052] Sending channel reservation indication information to a Wi-Fi module using an HB BLE module provides a basis for subsequently receiving the channel reservation indication information using the Wi-Fi module, and reserving the Wi-Fi channel according to the channel reservation indication information.
[0053] In this embodiment, the terminal device includes the HB BLE module and the Wi-Fi module. In other words, the HB BLE module and the Wi-Fi module are co-located communication modules. Accordingly, the terminal device can communicate with other HB BLE devices using the HB BLE module, and can communicate with other Wi-Fi devices using the Wi-Fi module.
[0054] In this embodiment, the terminal device sends channel reservation indication information to a Wi-Fi module using an HB BLE module when it needs to communicate with a peer HB BLE device.
[0055] In this embodiment, the HB BLE module and the Wi-Fi module are connected through a preset connection port. Accordingly, the terminal device sends the channel reservation indication information generated by the HB BLE module to the Wi-Fi module through the connection port between the HB BLE module and the Wi-Fi module. The connection port can be a general-purpose input / output (GPIO) port or other suitable type of connection port, which is not limited herein.
[0056] The channel reservation indication information includes information of a reserved use time of a Wi-Fi channel, that is, the channel reservation indication information includes information of a specified bandwidth and a reserved use time of a reserved Wi-Fi channel.
[0057] The specified bandwidth and the reserved use time of the Wi-Fi channel can be set according to the need of HB BLE communication between the terminal device and a peer HB BLE device. Specifically, a Wi-Fi channel overlaps at least one HB BLE channel, and the reserved use time can include one or more fixed frame periods (FFP).
[0058] Please continue to refer to FIG. 1, and perform step S120 to receive the channel reservation indication information by using the Wi-Fi module, and reserve a Wi-Fi channel according to the channel reservation indication information.
[0059] Receiving the channel reservation indication information by using the Wi-Fi module and reserving a Wi-Fi channel according to the channel reservation indication information provide a basis for subsequently sending channel reservation success notification information to the HB BLE module when reserving a Wi-Fi channel according to the channel reservation indication information is successful by using the Wi-Fi module.
[0060] In this embodiment, the step of reserving a Wi-Fi channel according to the channel reservation indication information by using the Wi-Fi module includes: detecting a Wi-Fi channel by using the Wi-Fi module; when detecting that the Wi-Fi channel is in an idle state, sending a channel reservation frame on the Wi-Fi channel by using the Wi-Fi module, so that other Wi-Fi devices avoid using the Wi-Fi channel in the reserved use time.
[0061] In this embodiment, the Wi-Fi module detects a Wi-Fi channel by using a clear channel assessment (CCA) technology to determine whether the Wi-Fi channel is in an idle state or a busy state.
[0062] In other embodiments, the Wi-Fi module can also employ other channel detection techniques to detect the Wi-Fi channel, which can be selected by those skilled in the art according to actual needs, and is not limited herein.
[0063] In this embodiment, when the terminal device determines that the Wi-Fi channel is in an idle state through the CCA detection technique, the Wi-Fi module is used to send a preset channel reservation frame in the Wi-Fi channel, so that other Wi-Fi devices avoid using the reserved Wi-Fi channel within the predetermined use time.
[0064] As an example, the channel reservation frame is a Wi-Fi Clear To Send to Self (CTS2Self) frame. The Wi-Fi CTS2Self frame includes a duration field indicating network allocation vector (NAV) information, and the NAV information in the duration field is used to indicate information of the predetermined use time of the Wi-Fi channel.
[0065] Correspondingly, when other Wi-Fi devices listen to the Wi-Fi CTS2Self frame on the Wi-Fi channel, the information of the predetermined use time of the Wi-Fi channel carried in the duration field can be obtained by analyzing the Wi-Fi CTS2Self frame, so that other Wi-Fi devices no longer compete for access to the reserved Wi-Fi channel within the predetermined use time.
[0066] It can be understood that the channel reservation frame is not limited to the Wi-Fi CTS2Self frame, but can also be other types of frames, as long as other Wi-Fi devices avoid using the reserved Wi-Fi channel within the predetermined use time after detecting the other type of frame, and is not limited herein.
[0067] Please continue to refer to FIG. 1, and perform step S130. When the Wi-Fi channel is successfully reserved according to the channel reservation indication information, the Wi-Fi module is used to send channel reservation success notification information to the HB BLE module.
[0068] When the Wi-Fi channel is successfully reserved according to the channel reservation indication information, the Wi-Fi module is used to send channel reservation success notification information to the HB BLE module, which provides a basis for using the HB BLE module to use the Wi-Fi channel to interact with the opposite HB BLE device within the predetermined use time when the channel reservation success notification information sent by the Wi-Fi module is received subsequently.
[0069] In this embodiment, when the terminal device successfully reserves the Wi-Fi channel by using the Wi-Fi module according to the channel reservation indication information, the terminal device generates channel reservation success notification information and sends the channel reservation success notification information to the HB BLE module through a connection port between the Wi-Fi module and the HB BLE module.
[0070] In this embodiment, the channel reservation success notification information includes information of the successfully reserved Wi-Fi channel and the start time of the reserved use time. Accordingly, the terminal device sends the channel reservation success notification information to the HB BLE module by using the Wi-Fi module, so that the HB BLE module can obtain the information of the successfully reserved Wi-Fi channel and the start time of the reserved use time.
[0071] The successfully reserved Wi-Fi channel and the start time and end time of the reserved use time by using the Wi-Fi module are unknown information to the HB BLE module. Therefore, by sending the channel reservation success notification information to the HB BLE module by using the Wi-Fi module, and the channel reservation success notification information including information of the successfully reserved Wi-Fi channel and the start time of the reserved use time, the HB BLE module can obtain the information of the successfully reserved Wi-Fi channel and the start time of the reserved use time, so as to facilitate subsequent use of the HB BLE module to use the successfully reserved Wi-Fi channel to perform data interaction with the opposite HB BLE device within the reserved use time.
[0072] Please continue to refer to FIG. 1, and perform step S140. When the HB BLE module receives the channel reservation success notification information sent by the Wi-Fi module, the HB BLE module uses the at least one HB BLE channel to perform data interaction with the opposite HB BLE device within the reserved use time.
[0073] When the Wi-Fi channel is successfully reserved by using the Wi-Fi module according to the channel reservation indication information, other Wi-Fi devices will not compete for access to the successfully reserved Wi-Fi channel within the reserved use time.
[0074] Accordingly, by using the HB BLE module to use the at least one HB BLE channel overlapping with the successfully reserved Wi-Fi channel to perform data interaction with the opposite HB BLE device within the reserved use time, the communication quality of the data interaction with the opposite HB BLE device will not be affected by the communication of other Wi-Fi devices using the Wi-Fi channel, so as to improve the communication quality of the data interaction with the opposite HB BLE device.
[0075] In this embodiment, the step of using the at least one HB BLE channel to interact data with the peer HB BLE device includes: interacting data with the peer HB BLE device in units of BLE events.
[0076] The target channel is divided into time units at the BLE link layer (LL) of the HB BLE module, and the time unit is referred to as a BLE event. The starting time and the closing time of each BLE event are determined by the terminal device and the peer HB BLE device in advance.
[0077] Please refer to FIG. 2, taking the example of the Wi-Fi channel overlapping with three HB BLE channels, when the Wi-Fi module receives the channel reservation indication information sent by the HB BLE module, if the Wi-Fi channel is in an idle state at this time, a Wi-Fi CTF2Self frame is sent, and the Wi-Fi CTF2Self frame includes information of the reservation use time T of the Wi-Fi channel with a bandwidth of three HB BLE channels.
[0078] After the Wi-Fi module sends the Wi-Fi CTF2Self frame on the Wi-Fi channel overlapping with three HB BLE channels, the Wi-Fi channel overlapping with three HB BLE channels is immediately reserved successfully, and the Wi-Fi module generates corresponding channel reservation success notification information and sends it to the HB BLE module.
[0079] When the HB BLE module receives the channel reservation success notification information sent by the Wi-Fi module, by analyzing the channel reservation success notification information, the information of the successfully reserved Wi-Fi channel and the use starting time t1 can be obtained, and according to the reservation use time T in the channel reservation indication information of the HB BLE module, the use ending time t2 of the successfully reserved Wi-Fi channel can be obtained.
[0080] Afterwards, the HB BLE module performs HB BLE communication with the peer HB BLE device in BLE event 1, BLE event 2 and BLE event 3 respectively before the end time t2 arrives. Specifically, in BLE event 1, the HB BLE module sends data packet 211 to the peer HB BLE device and receives data packet 221 sent by the peer HB BLE device; in BLE event 2, the HB BLE module sends data packet 231 to the peer HB BLE device and receives data packet 241 sent by the peer HB BLE device; in BLE event 3, the HB BLE module sends data packet 251 to the peer HB BLE device and receives data packet 261 sent by the peer HB BLE device.
[0081] After the Wi-Fi module sends the Wi-Fi CTF2Self frame on the Wi-Fi channel overlapping with the 3 HB BLE channels and other Wi-Fi devices detect the Wi-Fi CTF2Self frame on the Wi-Fi channel overlapping with the 3 HB BLE channels, the other Wi-Fi devices will not compete for access to the Wi-Fi channel overlapping with the 3 HB BLE channels within the predetermined use time T carried in the Wi-Fi CTF2Self frame, so that the communication of the HB BLE module will not be interfered by other Wi-Fi devices, and the communication quality between the HB BLE module and the peer HB BLE device is improved.
[0082] In the embodiment, the communication method of the terminal device can further include the following steps:
[0083] Step S150: sending, by the HB BLE module, information of subsequent unavailable communication time of the HB BLE module to the Wi-Fi module when it is detected that the target channel is in a busy state;
[0084] Step S160: using, by the Wi-Fi module, the target channel to perform data interaction with the peer Wi-Fi device within the subsequent unavailable communication time of the HB BLE module when the information of the subsequent unavailable communication time of the HB BLE module is received.
[0085] Please continue to refer to FIG. 1, and perform step S150: sending, by the HB BLE module, information of subsequent unavailable communication time of the HB BLE module to the Wi-Fi module when it is detected that the target channel is in a busy state.
[0086] When detecting that the target channel is in a busy state, the HB BLE module sends information of a subsequent unavailable communication time of the HB BLE module to the Wi-Fi module, so that the subsequent use of the Wi-Fi module in the subsequent unavailable communication time of the HB BLE module provides a basis for data interaction with the opposite Wi-Fi device using the target channel.
[0087] In the embodiment, the terminal device includes the HB BLE module and the Wi-Fi module. In other words, the HB BLE module and the Wi-Fi module are co-located communication modules. Accordingly, the terminal device can communicate with other HB BLE devices using the HB BLE module, and can communicate with other Wi-Fi devices using the Wi-Fi module.
[0088] In the embodiment, the terminal device uses the HB BLE to use a channel access method based on frame-based listen before talk (FB-LBT). Specifically, the terminal device needs to send data to the opposite HB BLE device, and first listens to the target channel to determine whether the target channel is in an idle state or a busy state.
[0089] As an example, the terminal device uses the HB BLE module to detect the target channel by using a physical carrier sensing mechanism to determine whether the target channel is in an idle state or a busy state. Specifically, before using the HB BLE module to send valid data to the opposite HB BLE device, the terminal device uses a clear channel assessment (CCA) technology to listen to the target channel for a period of time; if the target channel is detected to be in an idle state, the terminal device can use the HB BLE module to send data to the opposite HB BLE device using the target channel in the next preset time period; if the target channel is detected to be in a busy state, the terminal device will not be able to use the HB BLE module to send data to the opposite HB BLE device using the target channel in the next preset time period.
[0090] In other embodiments, the terminal device using the HB BLE module can also use other channel detection technologies such as using a virtual carrier sensing technology to detect the target channel, and those skilled in the art can select according to actual needs, which are not limited here.
[0091] In a case where it is detected that the target channel is busy, a preset time period during which the terminal device cannot use the target channel to send data to the opposite HB BLE device by using the HB BLE module is referred to as a subsequent unavailable communication time of the HB BLE module.
[0092] Correspondingly, in a case where it is detected that the target channel is busy, the terminal device sends, by using the HB BLE module, information about the subsequent unavailable communication time of the HB BLE module to the Wi-Fi module, so that the Wi-Fi module can use the subsequent unavailable communication time of the HB BLE module when it is necessary to send data to the opposite Wi-Fi device.
[0093] In this embodiment, the HB BLE module and the Wi-Fi module are connected through a preset connection port in the terminal device. Correspondingly, the HB BLE module sends the information about the subsequent unavailable communication time of the HB BLE module to the Wi-Fi module through the connection port between the HB BLE module and the Wi-Fi module.
[0094] As an example, the HB BLE module and the Wi-Fi module are connected through a General-Purpose Input / Output (GPIO) interface. In other embodiments, the HB BLE module and the Wi-Fi module can also be connected through other types of connection ports, which can be selected according to actual needs by those skilled in the art, and are not limited herein.
[0095] In this embodiment, the subsequent unavailable communication time of the HB BLE module is one fixed frame period starting from the time when it is detected that the target channel is busy. Correspondingly, the one fixed frame period starting from the time when it is detected that the target channel is busy is referred to as a subsequent unavailable fixed frame period of the HB BLE module.
[0096] In this embodiment, the information about the subsequent unavailable communication time of the HB BLE module includes information about the start time and the duration of the subsequent unavailable fixed frame period of the HB BLE module, so that the Wi-Fi module can determine the start time and the end time of the subsequent unavailable fixed frame period of the HB BLE module according to the information about the start time and the duration of the subsequent unavailable fixed frame period of the HB BLE module, and can control the time for data interaction with the opposite Wi-Fi device in the subsequent period to be between the start time and the end time of the subsequent unavailable fixed frame period of the HB BLE module.
[0097] Please continue to refer to Figure 1, and perform step S160, using the Wi-Fi module to use the target channel to interact with the opposite Wi-Fi device for data during the subsequent unavailable communication time of the HB BLE module when receiving the information of the subsequent unavailable communication time of the HB BLE module.
[0098] Using the Wi-Fi module to use the target channel to interact with the opposite Wi-Fi device for data during the subsequent unavailable communication time of the HB BLE module when receiving the information of the subsequent unavailable communication time of the HB BLE module can make the data interaction of the Wi-Fi module and the opposite Wi-Fi device not be disturbed, and is beneficial to improve the communication quality of the Wi-Fi module. At the same time, using the Wi-Fi module to use the target channel to interact with the opposite Wi-Fi device for data during the subsequent unavailable communication time of the HB BLE module is beneficial to improve the utilization rate of the channel and improve the system throughput.
[0099] In this embodiment, the step of using the Wi-Fi module to use the target channel to interact with the opposite Wi-Fi device for data during the subsequent unavailable communication time of the HB BLE module includes: using the Wi-Fi module to detect the target channel during the subsequent unavailable communication time of the HB BLE module; and using the Wi-Fi module to interact with the opposite Wi-Fi device for data during the subsequent unavailable communication time of the HB BLE module when detecting that the target channel is in an idle state.
[0100] In this embodiment, the subsequent unavailable communication time of the HB BLE module is a subsequent unavailable fixed frame period of the HB BLE module. Accordingly, the Wi-Fi module is used to detect the target channel during the subsequent unavailable fixed frame period of the HB BLE module, and the Wi-Fi module is used to interact with the opposite Wi-Fi device for data during the subsequent unavailable fixed frame period of the HB BLE module when detecting that the target channel is in an idle state.
[0101] In this embodiment, the terminal device uses the Wi-Fi module to detect the target channel in the subsequent fixed frame period in which the HB BLE module is unavailable, using the Clear Channel Assessment (CCA) technology, to determine whether the target channel is in an idle state or a busy state. Specifically, when the signal strength of the target channel is detected to be greater than a preset signal strength threshold, it is determined that the target channel is in a busy state; when the signal strength of the target channel is detected to be less than the preset strength threshold, it is determined that the target channel is in an idle state. The signal strength threshold can be set according to actual needs, and is not limited herein.
[0102] In other embodiments, the Wi-Fi module can also use other channel detection technologies to detect the target channel, which can be selected by those skilled in the art according to actual needs, and is not limited herein.
[0103] In this embodiment, when it is determined that the target channel is in an idle state, the Wi-Fi module can access the target channel and acquire the use right of the target channel. In other words, the Wi-Fi module pre-emptively competes with the opposite Wi-Fi device for the use right of the target channel.
[0104] Correspondingly, in the case where the Wi-Fi module pre-emptively competes with the opposite Wi-Fi device for the use right of the target channel, the Wi-Fi module as the initiator of the connection can control the time of data interaction between the Wi-Fi module and the opposite Wi-Fi device using the target channel, so that the time of data interaction between the Wi-Fi module and the opposite Wi-Fi device using the target channel is before the end time of the subsequent fixed frame period in which the HB BLE module is unavailable.
[0105] Please refer to FIG. 3, the terminal device uses the HB BLE module to perform CCA detection on the target channel in the fixed frame period 1, and the result of CCA detection indicates that the target channel is in a busy state. Correspondingly, before the end of the fixed frame period 1, the terminal device will not be able to use the HB BLE module to communicate with the opposite HB BLE device through the target channel. At the same time, when the result of CCA detection indicates that the target channel is in a busy state, the terminal device uses the HB BLE module to send the start time and the end time of the fixed frame period 1 to the Wi-Fi module.
[0106] After receiving the start time and the end time of the fixed frame period 1 sent by the HB BLE module, the Wi-Fi module detects the target channel in the fixed frame period 1 according to the start time and the end time of the fixed frame period 1 sent by the HB BLE module when it needs to send data to the opposite Wi-Fi device. When it is detected that the target channel is in an idle state, the Wi-Fi module accesses the target channel to interact data with the opposite Wi-Fi device, and controls the data interaction time of the opposite Wi-Fi device to be before the end time of the fixed frame period 1. Wherein, before the end of the fixed frame period 1, the Wi-Fi module sends data packets 301, 302 and 303 to the opposite Wi-Fi device by using the target channel, and receives data packets 311 and 312 sent by the opposite Wi-Fi device by using the target channel.
[0107] After the end of the fixed frame period 1, the HB BLE module tries to access the target channel again in the next fixed frame period 2. Specifically, the HB BLE module performs CCA detection on the target channel, and when the CCA detection result shows that the target channel is in an idle state, the HB BLE module uses the target channel to interact data with the opposite HB BLE device until the end of the fixed frame period 2. Wherein, in the fixed frame period 2, the HB BLE module sends data packets 321 and 322 to the opposite HB BLE device by using the target channel, and receives data packets 331 and 332 sent by the opposite HB BLE device by using the target channel.
[0108] In other embodiments, there can also be a situation that the opposite Wi-Fi device acquires the use right of the target channel ahead of the Wi-Fi module of the terminal device in the subsequent unavailable fixed frame period of the HB BLE module.
[0109] In this embodiment, when it is detected that the target channel is in a busy state and the opposite Wi-Fi device acquires the use right of the target channel, the communication method of the terminal device further comprises: sending, by using the Wi-Fi module, information of the available time of the target channel to the opposite Wi-Fi device, so that the data interaction time between the opposite Wi-Fi device and the Wi-Fi module is in the subsequent unavailable communication time of the HB BLE module.
[0110] In the case that the peer Wi-Fi device pre-emptively competes for the use right of the target channel, the peer Wi-Fi device as the initiator of the connection can control the time of data interaction with the peer Wi-Fi device using the target channel. Therefore, the Wi-Fi module sends information of the available time of the target channel to the peer Wi-Fi device, so that the peer Wi-Fi device controls the time of data interaction with the Wi-Fi module before the end time of the subsequent unavailable fixed frame period of the HB BLE module.
[0111] Please refer to Fig. 4, which is different from Fig. 3. The terminal device receives the start time and the end time of the fixed frame period 1 sent by the HB BLE module using the Wi-Fi module, and determines the information of the time of data interaction with the peer Wi-Fi device using the fixed frame period 1 according to the start time and the end time of the fixed frame period 1 sent by the HB BLE module.
[0112] When it is detected that the target channel is in the busy state and the peer Wi-Fi device competes for the use right of the target channel, the Wi-Fi module carries the information of the time of data interaction with the peer Wi-Fi device using the fixed frame period 1 in the data packet 411 sent to the peer Wi-Fi device, so that the peer Wi-Fi device controls the time of data interaction with the Wi-Fi module using the target channel before the end time of the fixed frame period 1.
[0113] In the fixed frame period 1, the Wi-Fi module receives the data packets 401, 402 and 403 sent by the peer Wi-Fi device using the target channel, and sends the data packets 411, 412 and 413 to the peer Wi-Fi device using the target channel. In the fixed frame period 2, the HB BLE module sends the data packets 421 and 422 to the peer HB BLE device using the target channel, and receives the data packets 431 and 432 sent by the peer HB BLE device using the target channel.
[0114] Correspondingly, the embodiment of the present application further provides a terminal device.
[0115] Figure 5 shows a structural schematic diagram of an embodiment of the terminal device provided by the present application. In combination with Figure 5, a terminal device 50 can comprise: an HB BLE module 501, adapted to send channel reservation indication information to a Wi-Fi module, the channel reservation indication information comprising information of a reserved use time of a Wi-Fi channel, the Wi-Fi channel overlapping at least one HB BLE channel; when receiving channel reservation success notification information sent by the Wi-Fi module, using the at least one HB BLE channel to perform data interaction with a peer HB BLE device within the reserved use time; the Wi-Fi module 502, adapted to receive the channel reservation indication information, and reserve a Wi-Fi channel according to the channel reservation indication information; when reserving the Wi-Fi channel according to the channel reservation indication information succeeds, sending channel reservation success notification to the HB BLE module.
[0116] The HB BLE module 501 is further adapted to, when detecting that the target channel is in a busy state, send information of a subsequent unavailable communication time of the HB BLE module to the Wi-Fi module.
[0117] The Wi-Fi module 502 is further adapted to, when receiving the information of the subsequent unavailable communication time of the HB BLE module, using the target channel to perform data interaction with a peer Wi-Fi device within the subsequent unavailable communication time of the HB BLE module.
[0118] The terminal device in the embodiment of the present application can be used to execute the communication method of the terminal device as described above, or other functional modules can also be used to execute the communication method of the terminal device as described above. For the communication method of the terminal device, please refer to the detailed description in the foregoing part, which will not be repeated here.
[0119] Correspondingly, the embodiment of the present application further provides a device, which can load the communication method of the terminal device in the form of a program to implement the communication method of the terminal device provided by the embodiment of the present application.
[0120] Referring to Figure 6, an optional hardware structure schematic diagram of the device provided by the embodiment of the present application is shown. The device in the embodiment of the present application comprises: at least one processor 01, at least one communication interface 02, at least one memory 03 and at least one communication bus 04.
[0121] In the embodiment, the number of the processor 01, the communication interface 02, the memory 03 and the communication bus 04 is at least one, and the processor 01, the communication interface 02 and the memory 03 complete the communication among each other through the communication bus 04.
[0122] The communication interface 02 can be an interface of a communication module for network communication, for example, an interface of a GSM module.
[0123] The processor 01 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the communication method of the terminal device according to the embodiments.
[0124] The memory 03 can include a high-speed RAM memory, and can also include a non-volatile memory, for example, at least one disk memory. The memory 03 stores one or more computer instructions, which are executed by the processor 01 to implement the communication method of the terminal device according to the embodiments.
[0125] It should be noted that the electronic device described above can further include other devices (not shown) that can not be necessary for the disclosure of the embodiments of the present application; since these other devices can not be necessary for understanding the disclosure of the embodiments of the present application, the embodiments of the present application do not introduce them one by one.
[0126] Correspondingly, the embodiments of the present application further provide a computer program product, which includes computer programs / instructions, and the computer programs / instructions are executed by a processor to implement the communication method of the terminal device according to the embodiments of the present application.
[0127] The embodiments of the present application further provide a storage medium, which stores one or more computer instructions, and the one or more computer instructions are used to implement the communication method of the terminal device according to the embodiments described above.
[0128] The above-described embodiments of the present application are combinations of elements and features of the present application. The elements or features can be optionally taken or not taken in the embodiments of the present application unless otherwise mentioned. Each element or feature can be practiced without being combined with other elements or features. Also, some constructions of any one of the embodiments of the present application can be included in the other embodiments of the present application, and a corresponding construction of another embodiment can be substituted for the same. It is apparent that the order or sequence of the operations can be changed, and some construction of one embodiment can be included in another embodiment and can be substituted for the same. It is obvious that a person skilled in the art can make modifications or improvements without departing from the scope of the present application. Therefore, the above-described embodiments should be considered in a descriptive sense only and not for purposes of limitation. The scope of the present application should be defined by the appended claims rather than by the foregoing description, and all differences within the scope equivalent to those described herein are thus intended to be embraced therein.
[0129] Embodiments of the present application can be implemented in various forms, for example, hardware, firmware, software, or a combination thereof. In a hardware configuration, the method according to exemplary embodiments of the present application can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, or the like.
[0130] In a firmware or software configuration, embodiments of the present application can be implemented in the form of modules, procedures, functions, and the like. Software code can be stored in a memory unit and executed by a processor. The memory unit is located at the interior or exterior of the processor and can deliver data to and receive data from the processor via various known means.
[0131] The above description of disclosed embodiments is merely intended to illustrate the principles of the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be applied to other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0132] While the present application has been disclosed in connection with the embodiments presented, it should be understood that certain modifications can be made to the described embodiments and additional implementations can be implemented without departing from the spirit and scope of the application. Therefore, other implementations are intended to be within the scope of the present application. Accordingly, the patent is not to be limited by the specific illustrative embodiments disclosed in the specification.
Claims
1. A communication method of a terminal device, characterized by, The method comprises the following steps: sending channel reservation indication information to a Wi-Fi module by using an HB BLE module, wherein the channel reservation indication information comprises information of a reserved use time of a Wi-Fi channel, and the Wi-Fi channel overlaps at least one HB BLE channel; receiving the channel reservation indication information by using the Wi-Fi module, and reserving the Wi-Fi channel according to the channel reservation indication information; sending channel reservation success notification information to the HB BLE module by using the Wi-Fi module when the Wi-Fi channel is successfully reserved according to the channel reservation indication information; using the at least one HB BLE channel to interact with a peer HB BLE device for data within the reserved use time by using the HB BLE module when the channel reservation success notification information sent by the Wi-Fi module is received.
2. The communication method of the terminal device according to claim 1, characterized by, reserving the Wi-Fi channel according to the channel reservation indication information by using the Wi-Fi module, comprising the following steps: detecting the Wi-Fi channel by using the Wi-Fi module; sending a channel reservation frame on the Wi-Fi channel by using the Wi-Fi module when the Wi-Fi channel is detected to be in an idle state, so that other Wi-Fi devices avoid using the Wi-Fi channel within the reserved use time.
3. The communication method of the terminal device according to claim 2, wherein The channel reservation frame comprises a Wi-Fi self-clearing transmission frame.
4. The communication method of the terminal device according to claim 1, characterized by, The data interaction with the peer HB BLE device by using the at least one HB BLE channel comprises data interaction with the peer HB BLE device in a BLE event unit.
5. The communication method of the terminal device according to claim 1, wherein The method further comprises the following steps: sending information of a subsequent unavailable communication time of the HB BLE module to the Wi-Fi module by using the HB BLE module when the target channel is detected to be in a busy state; using the target channel to interact with a peer Wi-Fi device for data within the subsequent unavailable communication time of the HB BLE module by using the Wi-Fi module when the information of the subsequent unavailable communication time of the HB BLE module is received.
6. The communication method of the terminal device according to claim 5, wherein using the target channel to interact with the peer Wi-Fi device for data within the subsequent unavailable communication time of the HB BLE module by using the Wi-Fi module, comprising the following steps: detecting the target channel by using the Wi-Fi module within the subsequent unavailable communication time of the HB BLE module; interacting with the peer Wi-Fi device for data within the subsequent unavailable communication time of the HB BLE module by using the Wi-Fi module when the target channel is detected to be in an idle state.
7. The communication method of the terminal device according to Claim 6, characterized by, When the target channel is detected to be in a busy state and the peer Wi-Fi device acquires the use right of the target channel, the method further comprises the following steps: sending information of an available time of the target channel to the peer Wi-Fi device by using the Wi-Fi module, so that the peer Wi-Fi device controls the data interaction time with the Wi-Fi module within the subsequent unavailable communication time of the HB BLE module.
8. The communication method of the terminal device according to Claim 5, characterized by, The subsequent unavailable communication time of the HB BLE module includes information of a fixed frame period in which the HB BLE module is subsequent unavailable.
9. The communication method of the terminal device according to Claim 8, characterized by, The information of the fixed frame period in which the HB BLE module is subsequent unavailable includes information of a start time and a duration of the fixed frame period in which the HB BLE module is subsequent unavailable.
10. A terminal device, comprising: The method comprises: The HB BLE module is adapted to send channel reservation indication information to the Wi-Fi module, the channel reservation indication information including information of a reserved use time of a Wi-Fi channel, the Wi-Fi channel overlapping at least one HB BLE channel; when receiving channel reservation success notification information sent by the Wi-Fi module, using the at least one HB BLE channel to interact with a peer HB BLE device in the reserved use time; The Wi-Fi module is adapted to receive the channel reservation indication information and reserve a Wi-Fi channel according to the channel reservation indication information; when reserving the Wi-Fi channel successfully according to the channel reservation indication information, send channel reservation success notification information to the HB BLE module.
11. The terminal device according to claim 10, characterized by The method comprises: The HB BLE module is further adapted to send information of a subsequent unavailable communication time of the HB BLE module to the Wi-Fi module when detecting that a target channel is in a busy state; The Wi-Fi module is further adapted to use the target channel to interact with a peer Wi-Fi device in the subsequent unavailable communication time of the HB BLE module when receiving the information of the subsequent unavailable communication time of the HB BLE module.
12. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by a processor to implement a communication method of a terminal device as claimed in any one of claims 1-9.
13. An apparatus, comprising: The terminal device comprises at least one memory and at least one processor, the memory storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement a communication method of a terminal device as claimed in any one of claims 1-9.
14. A storage medium, characterized by The storage medium stores one or more computer instructions, and the one or more computer instructions are used to implement a communication method of a terminal device as claimed in any one of claims 1-9.
Citation Information
Patent Citations
Method and device for preventing mutual interference between WIFI communication and Bluetooth communication
CN105704725A
WiFi and Bluetooth coexistence scheduling method and device and mobile terminal
CN109392177A
Data transmission method and device and readable storage medium
CN113301549A
Apparatus and method for coexistence between wi-fi communication and bluetooth communication
US20210204140A1
System, methods, and apparatus to facilitate channelization
WO2019212503A1