CN111556475B - Bluetooth TWS device, master device and slave device thereof and data transmission method between devices - Google Patents

Bluetooth TWS device, master device and slave device thereof and data transmission method between devices Download PDF

Info

Publication number
CN111556475B
CN111556475B CN202010305288.9A CN202010305288A CN111556475B CN 111556475 B CN111556475 B CN 111556475B CN 202010305288 A CN202010305288 A CN 202010305288A CN 111556475 B CN111556475 B CN 111556475B
Authority
CN
China
Prior art keywords
bluetooth
tws
data
link
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010305288.9A
Other languages
Chinese (zh)
Other versions
CN111556475A (en
Inventor
陈金宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ju Li Zhuhai Microelectronics Co ltd
Original Assignee
Ju Li Zhuhai Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ju Li Zhuhai Microelectronics Co ltd filed Critical Ju Li Zhuhai Microelectronics Co ltd
Priority to CN202010305288.9A priority Critical patent/CN111556475B/en
Publication of CN111556475A publication Critical patent/CN111556475A/en
Priority to PCT/CN2020/117086 priority patent/WO2021208359A1/en
Application granted granted Critical
Publication of CN111556475B publication Critical patent/CN111556475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention is used for providing a data transmission method between Bluetooth TWS devices, and the data transmission method between the Bluetooth TWS devices is realized in the way that after a master device and a slave device receive a data packet of the Bluetooth device at a Bluetooth link moment N, the master device is switched to a state of receiving a first auxiliary frame; if the slave equipment has extra data to send to the master equipment, after sending the first auxiliary frame request data to the master equipment, the slave equipment is switched to a state of receiving a second auxiliary frame; the master device sends the second auxiliary frame to the slave device at a Bluetooth link moment N +1 and then switches to TWS link communication; and after receiving the second auxiliary frame, the slave device switches to the TWS link communication, and the slave device sends the additional data to the master device. Correspondingly, the Bluetooth TWS equipment is also provided, so that the time delay of communication between the TWS equipment is minimum, and the occupied Bluetooth bandwidth is minimum.

Description

Bluetooth TWS device, master device and slave device thereof and data transmission method between devices
Technical Field
The application relates to a wireless communication technology, in particular to a data transmission method between Bluetooth TWS devices, a data transmission method of a Bluetooth TWS master device, a data transmission method of a Bluetooth TWS slave device and the Bluetooth TWS devices.
Background
In the TWS (True Wireless Stereo) headset currently implemented in the market in a listening mode, in order to ensure that the primary ear and the secondary ear are either in a mobile phone data receiving communication mode or in a primary and secondary interaural communication mode at the same time, a bluetooth link between the primary ear and the secondary ear needs to enter a periodic fixed-point communication state similar to a sniff working mode. In this working state, the bluetooth link between the main ear and the sub-ear only occupies a small amount of bandwidth, more bluetooth bandwidth is reserved for the communication between the mobile phone and the main ear, and the sub-ear is receiving the data of the mobile phone at the moment. And the auxiliary ear can know the time when the main ear can send data or polling packets to the auxiliary ear, and only needs to switch to the main link and the auxiliary link at that time for communication.
However, when the fixed-point communication period of the TWS link is determined to be relatively large, the time delay of data interaction between TWSs is large, and is more serious particularly in an interference environment. When the fixed-point communication period of the TWS link is determined to be smaller, the TWS link occupies more bluetooth bandwidth, and then the communication with the mobile phone is affected.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method for transmitting data between two TWS devices of bluetooth, which achieves minimum time delay of communications between the TWS devices and minimum occupied bluetooth bandwidth. The embodiment of the invention is realized in such a way that a data transmission method between Bluetooth TWS devices comprises the following steps:
after the master device and the slave device receive a data packet of the Bluetooth device at the moment N of the Bluetooth link, the master device is switched to a state of receiving a first auxiliary frame;
if the slave equipment has extra data to send to the master equipment, after sending the first auxiliary frame request data to the master equipment, the slave equipment is switched to a state of receiving a second auxiliary frame;
the master device sends the second auxiliary frame to the slave device at a Bluetooth link moment N +1 and then switches to TWS link communication;
and after receiving the second auxiliary frame, the slave device switches to the TWS link communication, and the slave device sends the additional data to the master device.
Correspondingly, the embodiment of the invention also provides a data transmission method between the Bluetooth TWS devices, and the method further comprises the following steps:
the master device and the slave device receive a data packet of the Bluetooth device at the moment N of the Bluetooth link;
if the master device has extra data to send to the slave device, the slave device switches to a state of receiving a second auxiliary frame;
the master device sends the second auxiliary frame to the slave device at a Bluetooth link moment N +1 and then switches to TWS link communication;
switching to the TWS link communication after the slave device receives the second auxiliary frame;
the master device sends the additional data to the slave device.
Further, the data packet is a valid data packet, a null packet or a polling packet.
Further, the first auxiliary frame includes a request data transmission flag; the second assistance frame includes a communication handover command.
Further, the second assistance frame includes a communication handover command.
Further, if the master device receives a data packet of the bluetooth device at a bluetooth link time N, before the step of sending the second auxiliary frame to the slave device and switching to the TWS link communication, the method further includes: the master device sends data to the Bluetooth device at the moment N +1 of the Bluetooth link;
if the master device does not receive the data packet of the bluetooth device at the bluetooth link time N, before the step of sending the second auxiliary frame to the slave device and switching to the TWS link communication, the method further includes: the master device sends a second assistance frame directly to the slave device and switches to TWS link communication.
Further, the method further includes switching back the master device and the slave device to a communication link with the bluetooth device when the additional data transfer is complete.
Further, when the master device or the slave device receives the response of the opposite device, no more data needs to be sent to the opposite device, and the opposite device does not send the data needing the response, the additional data transmission is completed.
Further, after the master device switches to the TWS link communication, if the TWS link communication cannot be established with the slave device after the master device is continuously connected for a preset number of times, the master device switches back to the Bluetooth device after time-out.
Further, the method further includes presetting the maximum duration of single communication of the TWS link, and prolonging the interval waiting time of the additional data transmission according to the number of times of the additional data retransmission.
Further, the slave device sending the additional data to the master device includes: and the slave equipment broadcasts the extra data according to a preset time sequence, wherein the broadcasting times are preset.
Further, the master device sending the additional data to a slave device further comprises: and the main equipment broadcasts the extra data according to a preset time sequence, wherein the broadcasting times are preset.
According to another aspect of the embodiments of the present invention, an object of the embodiments of the present invention is to provide a data transmission method for a bluetooth master device, which achieves minimum time delay of communications between TWS devices and minimum occupied bluetooth bandwidth. The embodiment of the invention is realized by the following steps:
after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link, switching to a state of receiving a first auxiliary frame;
receiving a first auxiliary frame;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after sending a second auxiliary frame;
additional data is received.
Alternatively, the first and second electrodes may be,
receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link;
if extra data are sent to the slave equipment, switching to TWS link communication after sending a second auxiliary frame at the moment N +1 of the Bluetooth link;
the additional data is transmitted.
According to another aspect of the embodiments of the present invention, an object of the embodiments of the present invention is to provide a data transmission method for a bluetooth TWS slave device, which achieves minimum time delay of communications between TWS devices and minimum occupied bluetooth bandwidth. The embodiment of the invention is realized in such a way that a data transmission method of Bluetooth TWS slave equipment comprises the following steps:
after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link, sending a first auxiliary frame request data and switching to a state of receiving a second auxiliary frame;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after receiving the second auxiliary frame;
additional data is transmitted.
Alternatively, the first and second electrodes may be,
switching to a state of receiving a second auxiliary frame after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after receiving the second auxiliary frame;
additional data is received.
According to another aspect of the embodiments of the present invention, an object of the embodiments of the present invention is to provide a bluetooth TWS device, which achieves minimum time delay of communications between TWS devices and minimum occupied bluetooth bandwidth. The embodiment of the invention is realized in such a way that the Bluetooth TWS equipment comprises a master device and a slave device, wherein the master device is used for switching to a state of receiving a first auxiliary frame after receiving a data packet of the Bluetooth equipment at a Bluetooth link moment N, and switching to TWS link communication after sending a second auxiliary frame to the slave device at a Bluetooth link moment N + 1; or for switching to a state of receiving a second auxiliary frame when there is additional data to be transmitted;
the slave device is used for switching to a state of receiving a second auxiliary frame after sending the first auxiliary frame request data to the master device when extra data is sent; or after receiving the second auxiliary frame, switching to the TWS link communication, and sending the additional data to the primary device.
According to the technical scheme, the embodiment of the invention has the following effects: the master device and the slave device simultaneously receive data of the bluetooth device. When the slave device has additional data to send to the master device, a request is sent to the master device via a first auxiliary frame. And when the master device has extra data to be sent to the slave device or receives an extra data sending request of the slave device, the master device sends a communication switching command to the slave device through a second auxiliary frame. Then, the master device and the slave device switch to TWS communication together. When the TWS communication is completed or the TWS communication is overtime, the master device or the slave device is quickly switched back to communicate with the Bluetooth device. The first auxiliary frame and the second auxiliary frame do not occupy the extra bandwidth of the Bluetooth link, and the data between the master device and the slave device can be interacted quickly with minimum time delay. Once the additional data transfer is complete, the bluetooth device is switched back into communication, taking up a minimum of bluetooth bandwidth.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 shows a flowchart of a data transmission method between bluetooth TWS devices provided by the present application;
fig. 2 is a flowchart illustrating another method for data transmission between bluetooth TWS devices according to the present application;
fig. 3 shows a timing diagram of a bluetooth device and a TWS device provided in the present application;
fig. 4 is a flowchart illustrating another method for data transmission between bluetooth TWS devices according to the present application;
fig. 5 is a flowchart illustrating another method for data transmission between bluetooth TWS devices according to the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments, and the order of steps in the following embodiments is merely illustrative and can be modified without conflict.
As shown in fig. 1, the embodiment of the present invention is implemented as a method for data transmission between bluetooth TWS devices, where the method includes the following steps:
s101, after a master device and a slave device receive a data packet of a Bluetooth device at a Bluetooth link moment N, the master device is switched to a state of receiving a first auxiliary frame;
s102, if the slave equipment has extra data to be sent to the master equipment, after the first auxiliary frame request data is sent to the master equipment, the slave equipment is switched to a state of receiving a second auxiliary frame;
s103, the master device sends the second auxiliary frame to the slave device at the moment of the Bluetooth link N +1 and then switches to TWS link communication;
and S104, after receiving the second auxiliary frame, the slave device switches to the TWS link communication, and the slave device sends the additional data to the master device. The TWS device comprises a master device and a slave device, wherein the master device and the Bluetooth device establish a wireless connection, and the slave device is directly or indirectly informed of some relevant parameters of the wireless link from the master device. The slave device establishes a virtual connection with the bluetooth device based on the obtained parameters. The virtual connection can receive data sent to the main device by the Bluetooth device, and can also be converted into a real connection when needed to send data to the Bluetooth device. The slave device may directly or indirectly obtain parameters related to the link established by the master device and the bluetooth device, for example, the slave device establishes a connection with the master device, and then the master device transmits the parameters related to the slave device. For example, the master device broadcasts the relevant parameters and the slave device receives the parameters through scanning. Such as the slave device obtaining the relevant parameters from the master device via OOB communication. For example, the master device sends the relevant parameters to a third-party device, and then the slave device obtains the relevant parameters from the third-party device to establish a virtual connection. The main device and the Bluetooth device establish a standard Bluetooth ACL link which is a reliable connection. The TWS device can acquire data from the bluetooth device regardless of whether the host device establishes a reliable connection with the bluetooth device or the slave device establishes a virtual connection with the bluetooth device.
Specifically, as shown in fig. 3, which is a timing diagram of data transmission between the bluetooth device and the master device or the slave device, the bluetooth device sends a data packet to the master device at the bluetooth link time N, and the slave device also receives the data packet at the bluetooth link time N. When the master device and the slave device receive the data packet sent by the Bluetooth device, the master device switches to a state of receiving a first auxiliary frame, and if the slave device has extra data to be sent to the master device, the slave device switches to a state of sending the first auxiliary frame, the sent first auxiliary frame comprises a 'data sending request mark', and after the slave device sends the first auxiliary frame to the master device to request data to be sent, the slave device switches to a state of receiving a second auxiliary frame. After the master device transmits a packet to the bluetooth device at the bluetooth link time N +1, if an additional data transmission request of the slave device is granted, a second auxiliary frame including a "communication switching command" is then transmitted to the slave device. And after the master device finishes sending the second auxiliary frame, switching to the TWS link communication to prepare for receiving the data sent by the slave device. And after receiving the second auxiliary frame containing the "communication switching command", the slave device switches to TWS link communication, and sends additional data to be transmitted to the master device, where the additional data generally refers to upper layer user data, mainly refers to synchronization of various information between the TWS devices, such as fine-tuning play speed, and keeps the master device and the slave device playing audio data at the same time, such as synchronous key information, synchronous power information, synchronous alert tone, synchronous working state, and the like, and may also contain bottom layer link control data, such as frequency hopping sequence, power control, or no data, such as null packet, only for synchronizing the time sequence of the TWS devices.
Preferably, on the basis of the above embodiment, the flow of completing data transmission may be further supplemented, and when the additional data transmission is completed, the master device and the slave device switch back to the communication link with the bluetooth device. When the master device or the slave device receives the response of the opposite device, no more data needs to be sent to the opposite device, and the opposite device does not send the data needing to be responded, the additional data transmission is completed, and the response can be completed through the first auxiliary frame or the second auxiliary frame, or the other device is informed in a broadcasting mode.
In the case of the foregoing embodiment, if the slave device does not have extra data to send or the master device needs to send extra data, the master device may send the extra data that the master device needs to send directly without responding to the first auxiliary frame sent by the slave device, and the flow includes:
as shown in fig. 2, a method for data transmission between bluetooth TWS devices includes the following steps:
s201, the master device and the slave device receive a data packet of the Bluetooth device at a Bluetooth link moment N; if the master device has extra data to send to the slave device, the slave device switches to a state of receiving a second auxiliary frame;
s202, the master device sends the second auxiliary frame to the slave device at the moment of the Bluetooth link N +1 and then switches to the TWS link communication;
s203, after receiving the second auxiliary frame, the slave device switches to the TWS link communication;
s204, the master device sends the extra data to the slave device.
Specifically, referring to fig. 3, if the master device and the slave device have received the data packet of the bluetooth device at the bluetooth time N, the slave device has no extra data to send to the master device or the master device needs to send extra data, and when the master device and the slave device have received the packet sent by the bluetooth device, the slave device switches to a state of receiving the second auxiliary frame; after the master device sends a packet to the Bluetooth device at the moment N +1 of the Bluetooth link, if extra data needs to be sent to the slave device, sending a second auxiliary frame containing a communication switching command to the slave device; and after the master device finishes sending the second auxiliary frame, switching to the TWS link for communication, and sending data to the slave device. And after receiving the second auxiliary frame containing the communication switching command, the slave device switches to the TWS link communication to prepare for receiving the data sent by the master device, and the master device sends the additional data to the slave device.
In another embodiment of the present invention, during the actual communication process, whether the master device or the slave device has extra data to send, at the bluetooth link time N +1, if the master device receives the data packet of the bluetooth device at the bluetooth link time N, before the step of sending the second auxiliary frame to the slave device and switching to the TWS link communication, the method further includes: and the master device sends data to the Bluetooth device at the moment N +1 of the Bluetooth link. Specifically, as shown in fig. 4, the present embodiment includes the following steps: s401, after a master device and a slave device receive a data packet of a Bluetooth device at a Bluetooth link moment N, the master device is switched to a state of receiving a first auxiliary frame; s402, if the slave equipment has extra data to send to the master equipment, after sending the first auxiliary frame request data to the master equipment, the slave equipment is switched to a state of receiving a second auxiliary frame; s403, if the master device receives the data packet of the Bluetooth device at the moment N +1 of the Bluetooth link, the master device sends the data packet to the Bluetooth device at the moment N of the Bluetooth link; s404, after the master device sends data to the Bluetooth device at the moment N +1 of the Bluetooth link, the master device sends the second auxiliary frame to the slave device and switches to TWS link communication; s405, after receiving the second auxiliary frame, the slave device switches to the TWS link communication, and the slave device sends the extra data to the master device.
Accordingly, in another embodiment, at a bluetooth link time N +1, if the master device does not receive a data packet of the bluetooth device at the bluetooth link time N, before the step of sending the second auxiliary frame to the slave device and switching to the TWS link communication, the method further includes: the master device sends a second assistance frame directly to the slave device and switches to TWS link communication. Specifically, as shown in fig. 5, the present embodiment includes the following steps: s501, after a master device and a slave device receive a data packet of the Bluetooth device at a Bluetooth link moment N, the master device is switched to a state of receiving a first auxiliary frame; s502, if the slave equipment has extra data to send to the master equipment, after sending the first auxiliary frame request data to the master equipment, the slave equipment is switched to a state of receiving a second auxiliary frame; s503, the main device receives no data packet of the Bluetooth device at the moment N +1 of the Bluetooth link, if the main device does not receive the data packet of the Bluetooth device at the moment N of the Bluetooth link; s504, the master device directly sends a second auxiliary frame to the slave device and switches to TWS link communication; and S505, after receiving the second auxiliary frame, the slave device switches to the TWS link communication, and the slave device sends the additional data to the master device.
In the above embodiments, it may happen that the TWS link communication establishment is unsuccessful by either the master device or the slave device, which may not be correctly received by the slave device due to the second assistance frame sent by the master device to the slave device. Which in turn causes the master device to switch to TWS link communications while the slave device is still in communication with the bluetooth device. A timeout needs to be added to the TWS device that is handing over to the TWS link communication. For example, after the master device switches to the TWS link communication, if the master device fails to synchronize with another TWS device two consecutive times, the timeout switches back to communication with the bluetooth device. Therefore, on the basis of the above embodiments, the embodiments of the present invention provide a preferable solution, after the master device switches to the TWS link communication, if the TWS link communication cannot be established with the slave device after a predetermined number of continuous connections, the master device switches back to the bluetooth device after a timeout. The predetermined number of times can be preset during product design, and generally set for at least 2 times according to needs, and of course, 3 times, 4 times or more can be set according to different design schemes.
In order to prevent problems such as too much extra data to be transmitted between the TWS devices or blocking of data link transmission between the TWS devices, which in turn causes too much bandwidth occupied by communication of the TWS link, which may affect communication of the bluetooth device link. The present invention further provides a preferred embodiment, and on the basis of the above embodiment, the above process further includes presetting a maximum duration of single communication of the TWS link, and prolonging the interval waiting time of the additional data transmission according to the number of times of the additional data retransmission. The preset limit is to set the maximum duration of a single communication of a single TWS link, for example, the duration of the single TWS link communication cannot exceed 20 milliseconds or 15 milliseconds, and the duration can be adjusted by the product design. And meanwhile, the interval between two adjacent TWS link communications is increased when the same data packet is retransmitted. For example, the primary device has not successfully retransmitted a packet 3 times in one TWS communication. The master device needs to wait for 30ms for the next additional data transmission interval, and the more the number of retransmissions is set, the longer the waiting time is needed.
The above embodiments describe the method for transmitting extra data after the primary device and the secondary device establish the TWS link, where the TWS link is a link with links, that is, a link requiring bidirectional interaction, and a link with a response to flow control, and it is advantageous in that if both the primary device and the secondary device have extra data to transmit, a handover can be completed. In addition, the connection state of the link is conveniently maintained for the TWS team mode with connection.
Of course, after the TWS link is established by the first auxiliary frame and the second auxiliary frame in the above embodiment, the data transmission may also be unidirectional, and the data transmission is unidirectional interaction, no flow control, and no response. In this way, if the primary device has extra data to send, after switching to the TWS link, the data is broadcasted to the other party according to the predetermined timing sequence, and the number of broadcasts can be set. Conversely, the slave device may also broadcast data to the master device.
The above embodiment describes a technical solution for establishing communication and data transmission between two parties from the perspective of interaction between a master device and a slave device.
According to another aspect of the embodiments of the present invention, the embodiments of the present invention further describe the above scheme from the perspective of the master device or the slave device. The embodiment of the invention is realized in such a way that a data transmission method of Bluetooth master equipment comprises the following steps:
after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link, switching to a state of receiving a first auxiliary frame;
receiving a first auxiliary frame;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after sending a second auxiliary frame;
additional data is received.
The embodiment of the invention also provides another method for transmitting data of the Bluetooth master device, which comprises the following steps:
receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link;
if extra data are sent to the slave equipment, switching to TWS link communication after sending a second auxiliary frame at the moment N +1 of the Bluetooth link;
the additional data is transmitted.
Specifically, if the master device finishes receiving the data packet of the bluetooth device at the bluetooth time N, the master device switches to a state of receiving a first auxiliary frame; at this time, if the external slave device has extra data to send to the master device, the master device receives a first auxiliary frame containing a "request data sending" command sent by the external slave device, the master device performs data forwarding uniformly, after the master device sends a packet to the bluetooth device at a bluetooth link time N +1, the master device sends a second auxiliary frame containing a "communication switching command" to the external slave device, then switches to TWS link communication, and after establishing a TWS link with the external slave device, the master device receives the extra data sent by the external slave device. Or if the master device needs to send extra data, after the master device receives the data packet of the bluetooth device at the bluetooth time N and the master device sends the packet to the bluetooth device at the bluetooth link time N +1, the master device sends a second auxiliary frame containing a communication switching command to the slave device, then switches to the TWS link communication, and after establishing the TWS link with the external slave device, the master device sends the extra data to the external slave device.
Correspondingly, the invention also provides a bluetooth slave device, and the embodiment of the invention is realized by the method, which comprises the following steps:
after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link, sending a first auxiliary frame request data and switching to a state of receiving a second auxiliary frame;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after receiving the second auxiliary frame;
additional data is transmitted.
The embodiment of the invention also provides another method for transmitting data of the Bluetooth slave equipment, which comprises the following steps:
switching to a state of receiving a second auxiliary frame after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after receiving the second auxiliary frame;
additional data is received.
Specifically, if the slave device has extra data to be sent to the external master device, after receiving the data packet of the bluetooth device at the bluetooth link time N, the slave device switches to a state of receiving a second auxiliary frame after sending a first auxiliary frame request data containing a "request data sending" command; at this time, if the external master device agrees to receive the data transmission, a second auxiliary frame is transmitted to the slave device, and then the slave device switches to the TWS link communication to establish the TWS link with the external master device and transmits additional data to the external master device after receiving the second auxiliary frame containing the "communication switching command" at the bluetooth link time N + 1. Or, if the slave device does not have extra data to send and the external master device has extra data to send, the slave device directly switches to receive the second auxiliary frame state after receiving the data packet of the bluetooth device at the bluetooth link time N; the slave device switches to the TWS link communication to establish the TWS link with the external master device after receiving the second auxiliary frame containing the "communication switching command" at the bluetooth link time N +1, and receives the additional data sent by the external master device.
Since the above method flow and the implementation of the method in the foregoing embodiment are only described from different angles, they are not described herein again.
According to another aspect of the embodiments of the present invention, an embodiment of the present invention further provides a bluetooth TWS device for implementing the data transmission method, where the bluetooth TWS device includes a master device and a slave device, where the master device is configured to switch to a state of receiving a first auxiliary frame after receiving a packet of the bluetooth device at a bluetooth link time N, and switch to TWS link communication after sending the second auxiliary frame to the slave device at a bluetooth link time N + 1; or for switching to a state of receiving a second auxiliary frame when there is additional data to be transmitted;
the slave device is used for switching to a state of receiving a second auxiliary frame after sending the first auxiliary frame request data to the master device when extra data is sent; or after receiving the second auxiliary frame, switching to the TWS link communication, and sending the additional data to the primary device.
According to the embodiment provided by the invention, the master device and the Bluetooth device establish a wireless connection, and the slave device directly or indirectly learns some relevant parameters of the wireless link from the master device. The slave device establishes a virtual connection with the bluetooth device based on the obtained parameters. The virtual connection can receive data sent by the bluetooth device to the host device, and the virtual connection can be made a reliable connection to send data to the bluetooth device by means of the first auxiliary frame. Therefore, in the embodiment of the present invention, whether the master device or the slave device is described only in terms of the master and the slave implemented in the data transmission process, according to the above description of the technical solution, the master device may be converted into the slave device, and the slave device may also be converted into the master device.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (13)

1. A data transmission method between Bluetooth TWS devices is characterized in that the TWS devices comprise a master device and a slave device, wherein the master device and the Bluetooth device establish a wireless connection, the slave device and the Bluetooth device establish a virtual connection, and the master device and the slave device acquire data from the Bluetooth device; the method comprises the following steps:
after the master device and the slave device receive a data packet of the Bluetooth device at the moment N of the Bluetooth link, the master device is switched to a state of receiving a first auxiliary frame;
if the slave equipment has extra data to send to the master equipment, after sending the first auxiliary frame request data to the master equipment, the slave equipment is switched to a state of receiving a second auxiliary frame;
the master device sends the second auxiliary frame to the slave device at a Bluetooth link moment N +1 and then switches to TWS link communication;
and after receiving the second auxiliary frame, the slave device switches to the TWS link communication, and the slave device sends the additional data to the master device.
2. The method of claim 1, wherein the data packet is a valid data packet, a null data packet or a polling data packet.
3. The method of claim 2, wherein the first auxiliary frame includes a request data transmission flag; the second assistance frame includes a communication handover command.
4. The method of claim 2, wherein the second assistance frame comprises a handover command.
5. The method of data transmission between Bluetooth TWS devices of claim 2,
if the master device receives the data packet of the bluetooth device at the bluetooth link time N, before the step of sending the second auxiliary frame to the slave device and switching to TWS link communication, the method further includes: the master device sends data to the Bluetooth device at the moment N +1 of the Bluetooth link;
if the master device does not receive the data packet of the bluetooth device at the bluetooth link time N, before the step of sending the second auxiliary frame to the slave device and switching to TWS link communication, the method further includes: the master device sends the second assistance frame directly to the slave device and switches to TWS link communication.
6. The method of any of claims 3-5, further comprising switching the master device and the slave device back to the communication link with the Bluetooth device when the additional data transfer is complete.
7. The method for data transmission between Bluetooth TWS devices according to any of claims 3 to 5, wherein when the master device or the slave device receives the response from the other device, and no more data needs to be sent to the other device, and the other device does not send the data that needs to be responded, the additional data transmission is completed.
8. The method according to any of claims 3-5, wherein after the master device switches to the TWS link communication, if the TWS link communication cannot be established with the slave device after a predetermined number of consecutive connections, the master device switches back to the Bluetooth device after a timeout.
9. The method according to any of claims 3 to 5, wherein the method further comprises presetting a maximum duration of single communication of the TWS link, and prolonging the interval waiting time of the additional data transmission according to the number of times of the additional data retransmission.
10. The method for data transmission between Bluetooth TWS devices according to any of claims 3 to 5, wherein the sending of the additional data from the slave device to the master device comprises: and the slave equipment broadcasts the extra data according to a preset time sequence, wherein the broadcasting times are preset.
11. The method for data transmission between Bluetooth TWS devices according to any of claims 3 to 5, wherein the step of the master device sending the additional data to the slave device further comprises: and the main equipment broadcasts the extra data according to a preset time sequence, wherein the broadcasting times are preset.
12. A data transmission method of a Bluetooth TWS master device comprises the master device and a slave device, wherein the master device and the Bluetooth device establish a wireless connection, the slave device and the Bluetooth device establish a virtual connection, and the master device and the slave device acquire data from the Bluetooth device; it is characterized by comprising:
after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link, switching to a state of receiving a first auxiliary frame;
receiving a first auxiliary frame;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after sending a second auxiliary frame;
additional data is received.
13. A data transmission method of a Bluetooth TWS slave device, the TWS slave device comprises a master device and a slave device, wherein the master device and the Bluetooth device establish a wireless connection, the slave device and the Bluetooth device establish a virtual connection, and the master device and the slave device acquire data from the Bluetooth device; it is characterized by comprising:
after receiving a data packet of the Bluetooth equipment at the moment N of the Bluetooth link, sending a first auxiliary frame request data and switching to a state of receiving a second auxiliary frame;
at the moment N +1 of the Bluetooth link, switching to TWS link communication after receiving the second auxiliary frame;
additional data is transmitted.
CN202010305288.9A 2020-04-17 2020-04-17 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices Active CN111556475B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010305288.9A CN111556475B (en) 2020-04-17 2020-04-17 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices
PCT/CN2020/117086 WO2021208359A1 (en) 2020-04-17 2020-09-23 Tws bluetooth apparatus, primary apparatus and secondary apparatus thereof, and method of transmitting data between apparatuses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010305288.9A CN111556475B (en) 2020-04-17 2020-04-17 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices

Publications (2)

Publication Number Publication Date
CN111556475A CN111556475A (en) 2020-08-18
CN111556475B true CN111556475B (en) 2022-04-19

Family

ID=72003060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010305288.9A Active CN111556475B (en) 2020-04-17 2020-04-17 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices

Country Status (2)

Country Link
CN (1) CN111556475B (en)
WO (1) WO2021208359A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556475B (en) * 2020-04-17 2022-04-19 炬力(珠海)微电子有限公司 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices
CN113613223A (en) * 2021-06-29 2021-11-05 成都市安比科技有限公司 Master-slave switching method of TWS (time-and-time-shift switching) system, first equipment and second equipment
CN114710771B (en) * 2022-06-07 2022-08-23 成都市安比科技有限公司 Link switching method and device based on TWS (two way communication system) and Bluetooth communication system
CN114827974B (en) * 2022-06-29 2022-11-29 成都市安比科技有限公司 Bandwidth optimization method of TWS system
CN117858031B (en) * 2024-03-07 2024-05-28 深圳市汇杰芯科技有限公司 Low-delay wireless opposite-speaking and TWS seamless switching system, method and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277668A (en) * 2017-07-28 2017-10-20 广州黑格智能科技有限公司 double-Bluetooth earphone
US10432773B1 (en) * 2018-07-20 2019-10-01 Bestechnic (Shanghai) Co., Ltd. Wireless audio transceivers

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100389820B1 (en) * 2001-07-12 2003-07-02 삼성전자주식회사 Method for establishing link between bluetooth apparatuses using bluetooth wireless communication
CN109165390A (en) * 2018-07-25 2019-01-08 中译语通科技(青岛)有限公司 A kind of translation system for supporting TWS bluetooth headset
CN110970040B (en) * 2018-09-28 2022-05-27 炬芯科技股份有限公司 Audio synchronization method of wireless Bluetooth device and wireless Bluetooth device
CN109246672B (en) * 2018-09-30 2021-08-17 Oppo广东移动通信有限公司 Data transmission method, device and system and Bluetooth headset
CN109587666B (en) * 2018-11-22 2022-07-26 重庆物奇科技有限公司 Bluetooth device, system and scheduling method
CN109660971B (en) * 2018-12-05 2021-11-23 恒玄科技(上海)股份有限公司 Wireless earphone and communication method for wireless earphone
CN113225693B (en) * 2019-04-18 2022-04-15 华为技术有限公司 Bluetooth connection method, equipment and system
CN110191389B (en) * 2019-06-25 2021-02-12 歌尔股份有限公司 Multi-point connection method and device of wireless headset, Bluetooth headset and TWS headset
CN111556475B (en) * 2020-04-17 2022-04-19 炬力(珠海)微电子有限公司 Bluetooth TWS device, master device and slave device thereof and data transmission method between devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277668A (en) * 2017-07-28 2017-10-20 广州黑格智能科技有限公司 double-Bluetooth earphone
US10432773B1 (en) * 2018-07-20 2019-10-01 Bestechnic (Shanghai) Co., Ltd. Wireless audio transceivers

Also Published As

Publication number Publication date
WO2021208359A1 (en) 2021-10-21
CN111556475A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN111556475B (en) Bluetooth TWS device, master device and slave device thereof and data transmission method between devices
CN110995326B (en) Communication method of wireless earphone, wireless earphone and wireless earplug
JP3118168B2 (en) Method for direct communication between user stations
EP0786174B1 (en) Synchronizing a telecommunications connection in a mobile communications system
EP0809897B1 (en) Picking up of mobile stations from a direct mode channel
AU712648B2 (en) Synchronizing a telecommunications connection in a mobile communications system
CN110383767B (en) Topology switching method, device and system based on synchronous link and storage medium
JP4547832B2 (en) Wireless LAN system and communication method thereof
JPH10506775A (en) Cellular wireless communication system
CN111556476B (en) Data transmission method between Bluetooth TWS (two way communication) devices and Bluetooth TWS devices
CN111800238B (en) Carrier aggregation parameter configuration method, device and system
CN112672290B (en) Method, device and equipment for master-slave switching in wireless communication system
WO2023179159A1 (en) Communication chip, bluetooth communication devices and data transmission method
CN110166988B (en) Wireless communication system and method thereof
EP2667597B1 (en) Video communication method and terminal
CN114079897A (en) Bluetooth audio system, equipment and system communication method
EP4075914A1 (en) Method and apparatus for link switching, and communication device
CN114666741B (en) Wireless communication method and system
JP2589954B2 (en) Mobile communication system
JP3481582B2 (en) Wireless communication terminal
JP5495190B2 (en) Wireless communication system
JP7108944B2 (en) wireless communication system
CN117063607A (en) Wireless communication method and device
JP3435012B2 (en) Wireless communication system
JP2004260697A (en) Radio access system and radio equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant