Bluetooth ear-to-ear transmission method and device and Bluetooth earphone

By using the second time slot to extend the data frame transmission time in the Bluetooth headset system, master-slave interaction between the first headset and the second headset is realized, and the problem of poor robustness of information interaction in the prior art is solved, and data consistency and time slot resource utilization are improved.

CN120151809AActive Publication Date: 2025-06-13GUANGZHOU ANYKA MICROELECTRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510232879.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-06-13
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

In the existing classic Bluetooth technology, the information interaction between the master-slave link and the terminal link is poor, especially in the presence of an interference source, which may lead to an error in one end of reception.

Method used

By establishing a Bluetooth link between the first headset and the terminal device, and establishing another Bluetooth link between the first headset and the second headset, using the available time slot resources in the second time slot, the data transmission time of the data frame is extended, and the first headset is caused to send master-slave interaction information to the second headset. The master-slave interaction information includes the current frame format, the payload information length, the master-slave interaction information length and the verification code.

Benefits of technology

It improves the information interaction robustness of the master-slave link and the terminal link, improves the time slot resource utilization, and ensures data consistency and synchronization between the master and slave ears.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151809A_ABST
    Figure CN120151809A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Bluetooth communication, and discloses a Bluetooth-to-ear transmission method and device and a Bluetooth headset, and the method comprises the steps: building a first Bluetooth link between a first headset and a terminal device, building a second Bluetooth link between the first headset and a second headset, and building a third Bluetooth link between the second headset and the terminal device, the terminal device is a Bluetooth master role, and the first earphone and the second earphone are Bluetooth slave roles; in the first time slot, the terminal equipment sends an audio packet to the first earphone, and both the first earphone and the second earphone receive the audio packet; and in the second time slot, the first earphone replies a data frame representing the receiving state information of the first earphone to the terminal equipment, the data sending time of the data frame is prolonged, and the terminal equipment and the second earphone receive the data frame, so that the first earphone sends the master-slave interaction information to the second earphone. According to the invention, the information interaction robustness of the master-slave link and the terminal link can be improved, the time slot resources are efficiently utilized, and the practicability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Bluetooth communication, and in particular, to a Bluetooth earbud transmission method, apparatus, and Bluetooth headset. Background Art

[0002] In the application of Bluetooth earbuds, it is necessary to ensure that the data received by the master earbud / slave earbud is consistent and the reception times are basically synchronized. Since Bluetooth uses unlicensed spectrum and there are interference sources such as WIFI and microwave ovens in this spectrum, in actual Bluetooth transmission, when the master earbud and the slave earbud receive data from the terminal device simultaneously, there may be a situation where one end receives correctly and the other end receives incorrectly. Therefore, it is necessary to increase the interaction between the master and the slave in the earbud transmission mode.

[0003] In classic Bluetooth, if interaction between earbuds is to be achieved, time slot resources must be reserved for master-slave transmission; in this time slot resource, the earbuds cannot receive data packets of the terminal link. If too many time slot resources are reserved for master-slave interaction, it will affect the reception of data packets on the terminal link.

[0004] In view of the above related technologies, the inventors found that the existing classic Bluetooth method has the problem of poor robustness in information interaction between the master-slave link and the terminal link. Summary of the Invention

[0005] In order to improve the robustness of information interaction between the master-slave link and the terminal link and improve the utilization rate of time slot resources, the present application provides a Bluetooth earbud transmission method, apparatus, and Bluetooth headset.

[0006] In a first aspect, the present application provides a Bluetooth earbud transmission method.

[0007] The present application is achieved through the following technical solutions: A Bluetooth earbud transmission method includes the following steps. Establish a first Bluetooth link between a first earbud and a terminal device, establish a second Bluetooth link between the first earbud and a second earbud, and establish a third Bluetooth link between the second earbud and the terminal device. The terminal device is the Bluetooth master role, and the first earbud and the second earbud are the Bluetooth slave roles. In a first time slot, the terminal device sends an audio packet to the first earbud, and both the first earbud and the second earbud receive the audio packet. In a second time slot, the first earbud replies with a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame. Both the terminal device and the second earbud receive the data frame, so that the first earbud sends master-slave interaction information to the second earbud. Among them, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information. At this time, the current frame format represents a preset first-format data packet.

[0008] In a preferred example, the present application can be further configured as follows: It further includes the following steps. In the second time slot, there is also a reserved time. Based on the reserved time, the second earphone feeds back the master-slave interaction reception status information to the first earphone.

[0009] In a preferred example, the present application can be further configured as follows: It further includes the following steps. When the second earphone receives a data packet sent by the first earphone, it first decodes the current frame format. When the current frame format represents the first-format data packet, the second earphone determines that the data packet sent by the first earphone carries the master-slave interaction information, continues to decode the subsequent bit information of the master-slave interaction information, and feeds back the master-slave interaction reception status information ACK to the first earphone during the reserved time.

[0010] In a preferred example, the present application can be further configured as follows: It further includes the following steps. When the current frame format is inconsistent with the first-format data packet, the second earphone determines that the data packet sent by the first earphone does not carry the master-slave interaction information, and at this time, closes the receiving channel of the second earphone.

[0011] In a preferred example, the present application can be further configured as follows: It further includes the following steps. Before and after feeding back the master-slave interaction reception status information, frequency hopping protection time intervals are respectively reserved.

[0012] In a preferred example, the present application can be further configured as follows: After the step that the first earphone replies with a data frame representing its own reception status information to the terminal device in the second time slot, it further includes judging whether the packet length of the data frame meets a first preset condition; When the packet length of the data frame meets the first preset condition, the first earphone extends the data sending time of the data frame so that the first earphone sends master-slave interaction information to the second earphone.

[0013] In a preferred example, the present application can be further configured as follows: The first preset condition is that the typical value of the maximum duration of the first-format data packet is 376 us, and the maximum typical value of the frequency hopping protection time interval is 100 us.

[0014] In a preferred example, the present application can be further configured to further include the following steps: The first earphone repeatedly sends the master-slave interaction information at a preset periodic interval.

[0015] In a preferred example, the present application can be further configured to further include the following steps: After the time slot of the first-format data packet, a preset frequency-hopping protection time interval is added, and no time is reserved for the second earphone to feedback the reception status information of the master-slave interaction information; When the second earphone receives the master-slave interaction information sent by the first earphone, it does not feedback the reception status information to the first earphone.

[0016] In a preferred example, the present application can be further configured to further include the following steps: The typical value of the maximum duration of the first-format data packet is designed to be 525 us, and the maximum typical value of the frequency-hopping protection time interval is 100 us.

[0017] In a preferred example, the present application can be further configured to further include the following steps: Before the first earphone sends the master-slave interaction information, channel coding is performed on the master-slave interaction information.

[0018] In a preferred example, the present application can be further configured to: after the step that in the first time slot, the terminal device sends an audio packet to the first earphone, and both the first earphone and the second earphone receive the audio packet, further include that in the first time slot, when the radio frequency front end of the first earphone is in the receiving state, it judges whether the received signal meets a second preset condition in a preset first detection window; If the first earphone judges that the received signal meets the second preset condition, then in the second time slot, the first earphone replies a data frame representing its own reception status information to the terminal device, and extends the data sending time of the data frame so that the first earphone sends the master-slave interaction information to the second earphone.

[0019] In a preferred example, the present application can be further configured to further include the following steps: In the first time slot, when the radio frequency front end of the first earphone is in the receiving state, it judges whether the received signal meets a third preset condition in a preset first detection window; If the first earphone judges that the received signal meets the third preset condition, then in the first time slot, after a preset first interval, the first earphone uses a preset first preemption sending window to send the master-slave interaction information to the second earphone; In the second time slot, after the second earphone receives the master-slave interaction information sent by the first earphone, the first earphone and the second earphone switch their radio frequency states at a preset first interval, and then the second earphone sends a data packet to the first earphone by using a preset second preemption transmission window.

[0020] In a preferred example of the present application, it can be further configured that: the second preset condition includes correctly decoding the relevant access code and the header error check code of the audio packet sent by the terminal device, and the third preset condition includes not correctly decoding the relevant access code of the audio packet sent by the terminal device and the received power being less than a preset threshold. The method further includes the following steps. When the first earphone correctly decodes the relevant access code and the header error check code of the audio packet sent by the terminal device, the first earphone determines that the received signal meets the second preset condition. When the first earphone detects that it does not correctly decode the relevant access code of the audio packet sent by the terminal device and the received power is less than a preset threshold, the first earphone determines that the received signal meets the third preset condition.

[0021] In a second aspect, the present application provides a Bluetooth pair of ear transmission method.

[0022] The present application is realized through the following technical solutions: A Bluetooth pair of ear transmission method includes the following steps. Establish a first Bluetooth link between the first earphone and the terminal device, establish a second Bluetooth link between the first earphone and the second earphone, and establish a third Bluetooth link between the second earphone and the terminal device. The first earphone is the Bluetooth master role, and the terminal device and the second earphone are the Bluetooth slave roles. In the first time slot, the terminal device sends an audio packet to the first earphone or the second earphone, and both the second earphone and the first earphone receive the audio packet. In the second time slot, the first earphone replies a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame. Both the terminal device and the second earphone receive the data frame, so that the master-slave interaction information is sent to the second earphone. Among them, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information. At this time, the current frame format represents a data packet of a preset first format.

[0023] In a preferred example of the present application, it can be further configured that: at least 2×K Bluetooth time slots are reserved between the first time slot and the second time slot, where K is a natural number.

[0024] In a third aspect, the present application provides a Bluetooth earbud transmission method.

[0025] The present application is implemented through the following technical solutions: A Bluetooth earbud transmission method, comprising the following steps: Establish a first Bluetooth link between the first earbud and the terminal device, establish a second Bluetooth link between the first earbud and the second earbud, and establish a third Bluetooth link between one of the second earbuds and the terminal device; In a first time slot, the terminal device sends an audio packet to the first earbud or the second earbud, and both the first earbud and the second earbud receive the audio packet; Design a master-slave interaction cycle to determine the interaction time slots for the first earbud and the second earbud to take turns in master-slave interaction, including determining, according to floor(N / M), the interaction time slots for the first earbud to send master-slave interaction information to the second earbud or the second earbud to send master-slave interaction information to the first earbud, where floor() is the floor operation, M is the one-way interaction duration of the first earbud or the second earbud, and N is the current frame; When floor(N / M) is odd, in a second time slot, the first earbud replies with a data frame representing its own reception status information to the terminal device and extends the data transmission time of the data frame, and both the terminal device and the second earbud receive the data frame to send the master-slave interaction information to the second earbud; When floor(N / M) is even, in a second time slot, the second earbud replies with a data frame representing its own reception status information to the terminal device and extends the data transmission time of the data frame, and both the terminal device and the first earbud receive the data frame to send the master-slave interaction information to the first earbud; Wherein, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information, and the current frame format represents a preset first format data packet.

[0026] In a fourth aspect, the present application provides a Bluetooth earbud transmission device.

[0027] The present application is implemented through the following technical solutions: A Bluetooth earbud transmission device includes a first Bluetooth link established between a first earbud and a terminal device, a second Bluetooth link established between the first earbud and the second earbud, and a third Bluetooth link established between one of the second earbuds and the terminal device, and further includes: An audio data sending module, configured to send audio packets from the terminal device to the first earphone or the second earphone, and both the first earphone and the second earphone receive the audio packets; An interaction information sending module, configured to send a data frame representing the receiving status information of itself from the first earphone to the terminal device, and extend the data sending time of the data frame, and both the terminal device and the second earphone receive the data frame, so that the first earphone sends master-slave interaction information to the second earphone, or, send a data frame representing the receiving status information of itself from the second earphone to the terminal device, and extend the data sending time of the data frame, and both the terminal device and the first earphone receive the data frame, so that the second earphone sends master-slave interaction information to the first earphone, where the master-slave interaction information includes a current frame format, a length of valid payload information of the current frame, a length of master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information, and the current frame format represents a preset first format data packet.

[0028] In a preferred example of the present application, it may be further configured to: further include, An interaction information feedback module, configured to feedback master-slave interaction receiving status information from the second earphone to the first earphone at a preset reserved time.

[0029] In a preferred example of the present application, it may be further configured to: the interaction information sending module is further configured to repeat sending the master-slave interaction information from the first earphone at a preset periodic interval.

[0030] In a preferred example of the present application, it may be further configured to: further include, A receiving window detection module, configured to determine whether a received signal meets a second preset condition in a preset first detection window when the first earphone is in a receiving state at a radio frequency front end in a first time slot; When the first earphone determines that the received signal meets the second preset condition, in a second time slot, the interaction information sending module sends a data frame representing the receiving status information of itself from the first earphone to the terminal device, and extends the data sending time of the data frame, so that the first earphone sends master-slave interaction information to the second earphone; or, when the second earphone determines that the received signal meets the second preset condition, in a second time slot, the second earphone sends a data frame representing the receiving status information of itself to the terminal device, and extends the data sending time of the data frame, so that the second earphone sends master-slave interaction information to the first earphone.

[0031] In a preferred example of the present application, it may be further configured to: further include, The preemptive master-slave information interaction module is used to, when the first earphone determines that the received signal meets the third preset condition, in the first time slot, after a preset first interval, the first earphone uses a preset first preemptive transmission window to send master-slave interaction information to the second earphone. In the second time slot, after the second earphone receives the master-slave interaction information sent by the first earphone, the first earphone and the second earphone perform a radio frequency state switch at a preset first interval, and then the second earphone uses a preset second preemptive transmission window to send a data packet to the first earphone; or, when the second earphone determines that the received signal meets the third preset condition, in the first time slot, after a preset first interval, the second earphone uses a preset first preemptive transmission window to send master-slave interaction information to the first earphone. In the second time slot, after the first earphone receives the master-slave interaction information sent by the second earphone, the first earphone and the second earphone perform a radio frequency state switch at a preset first interval, and then the first earphone uses a preset second preemptive transmission window to send a data packet to the second earphone.

[0032] In a preferred example of the present application, it can be further configured that: the interaction information sending module further includes a master-slave interaction cycle unit for determining the interaction time slots for the first earphone and the second earphone to take turns for master-slave interaction; The master-slave interaction cycle unit determines the interaction time slot for the first earphone to send master-slave interaction information to the second earphone or the second earphone to send master-slave interaction information to the first earphone according to floor(N / M), where floor() is the floor operation, M is the one-way interaction duration of the first earphone or the second earphone, and N is the current frame; When floor(N / M) is odd, the first earphone sends master-slave interaction information to the second earphone; When floor(N / M) is even, the second earphone sends master-slave interaction information to the first earphone.

[0033] In a fifth aspect, the present application provides a pair of Bluetooth earphones.

[0034] The present application is achieved through the following technical solutions: A pair of Bluetooth earphones includes a first earphone and a second earphone, and is applied to any of the above Bluetooth earbud transmission methods.

[0035] In a sixth aspect, the present application provides a computer device.

[0036] The present application is achieved through the following technical solutions: A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of any of the above Bluetooth earbud transmission methods.

[0037] In a seventh aspect, the present application provides a computer-readable storage medium.

[0038] The present application is implemented through the following technical solutions: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above Bluetooth earbud transmission methods are implemented.

[0039] In an eighth aspect, the present application provides a computer program product.

[0040] The present application is implemented through the following technical solutions: A computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any of the above Bluetooth earbud transmission methods are implemented.

[0041] In summary, compared with the prior art, the beneficial effects brought by the technical solutions provided by the present application at least include: when the first earbud replies with a data frame representing its own reception status information to the terminal device, the data transmission time of the data frame is extended, and both the terminal device and the second earbud receive the data frame, so that the first earbud sends master-slave interaction information to the second earbud, where the frame of the master-slave interaction information is designed as the current frame format: the first format data packet, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information, so as to realize the master-slave interaction between the first earbud and the second earbud under the time slot resources of the terminal link information interaction between the first earbud and the terminal device; from the perspective of the terminal device, the extended period does not affect the reception of the data frame defined by the original protocol; compared with the prior art solutions that utilize the remaining time domain resources within the time slot, this solution extends the transmission time based on the existing Bluetooth frame, and there is no frequency hopping protection interval during the earbud's reply to the terminal data packet and the master-slave information interaction, improving the utilization rate of time domain resources; the master-slave interaction does not affect the information interaction of the terminal link, improving the robustness of the information interaction of the master-slave link and the terminal link. At the same time, it can efficiently utilize time slot resources, improving the utilization rate of time slot resources for master-slave interaction. This solution does not affect the sending and receiving of the master-slave data frames defined by the Bluetooth protocol and has strong practicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of a communication link of a Bluetooth earbud transmission method provided for an exemplary embodiment of the present application.

[0043] Figure 2 It is a schematic diagram of portable master-slave interaction of a Bluetooth earbud transmission method provided for an exemplary embodiment of the present application.

[0044] Figure 3 Schematic diagram of the first data packet format for portable master-slave interaction in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0045] Figure 4 Schematic diagram of the time slot allocation for the second time slot transmission in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0046] Figure 5 Another schematic diagram of the time slot allocation for the second time slot transmission in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0047] Figure 6 Schematic diagram of portable master-slave broadcast interaction in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0048] Figure 7 Schematic diagram of the first data packet format for portable master-slave broadcast interaction in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0049] Figure 8 Schematic diagram of preemptive master-slave interaction in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0050] Figure 9 Flowchart for determining preemptive master-slave interaction and portable master-slave interaction in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0051] Figure 10 Schematic diagram of master-slave periodic alternating interaction in a Bluetooth earbud transmission method provided by an exemplary embodiment of the present application.

[0052] Figure 11 Schematic diagram of portable master-slave interaction in a Bluetooth earbud transmission method provided by another exemplary embodiment of the present application. Detailed implementation

[0053] This specific embodiment is only an interpretation of the present application and does not limit the present application. After reading this specification, those skilled in the art can make modifications to this embodiment without creative contributions as needed, but as long as it is within the scope of the claims of the present application, it is protected by the patent law.

[0054] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Apparently, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of this application without creative efforts shall fall within the scope of protection of this application.

[0055] In addition, the term "and / or" in this document is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after, unless otherwise specified.

[0056] The embodiments of this application provide a method for Bluetooth stereo transmission. The main steps of the method are described as follows.

[0057] Establish a first Bluetooth link between the first earphone and the terminal device, establish a second Bluetooth link between the first earphone and the second earphone, and establish a third Bluetooth link between the second earphone and the terminal device. The terminal device is the Bluetooth master role, and the first earphone and the second earphone are the Bluetooth slave roles; In the first time slot, the terminal device sends an audio packet to the first earphone, and both the first earphone and the second earphone receive the audio packet; In the second time slot, the first earphone replies with a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame. Both the terminal device and the second earphone receive the data frame, so that the first earphone sends master-slave interaction information to the second earphone; Among them, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information. At this time, the current frame format represents a preset first format data packet.

[0058] The embodiments of this application will be further described in detail below with reference to the accompanying drawings of the specification.

[0059] Referring to Figure 1 , taking a method for Bluetooth stereo transmission with a terminal device as the Bluetooth master device, a first earphone as the first Bluetooth slave device, and a second earphone as the second Bluetooth slave device as an example, the communication link between the first earphone and the terminal device is the first link, the communication link between the first earphone and the second earphone is the second link, and the link between the second earphone and the terminal device is the third link. Among them, the first link is a listening / one-way link, and the second link and the third link are two-way links.

[0060] The terminal device can be a smart phone, a computer, a tablet, etc.

[0061] Refer to Figure 2 , after establishing a connection with classic Bluetooth, during the playback period, the terminal device sends an audio data packet to the first earphone, and both the first earphone and the second earphone receive the audio data packet (audio packet). The time slot occupied is defined as the first time slot. In the first time slot, the typical data format is 2DH5, and the duration is 3.125 ms. In the Bluetooth standard, the duration of a Bluetooth time slot is 625 us, that is, it lasts for 5 Bluetooth time slots.

[0062] In the second time slot, the first earphone needs to feedback the packet reception status information of the first time slot to the terminal device, that is, reply a data frame representing its own reception status information to the terminal device. Both the terminal device and the second earphone receive the data frame. The data frame is defined as a Poll frame or a Null frame, and the duration is one Bluetooth time slot, that is, 625 us. According to the Bluetooth protocol definition, when only replying the reception status, the data frame sent by the Bluetooth master device is a Poll frame, and the data frame sent by the Bluetooth slave device is a Null frame. At this time, there are available time slot resources.

[0063] By adding information interaction between the master and slave ears when the first earphone replies the Poll frame / Null frame to the terminal device in the second time slot, a first-format data packet is defined. That is, on the basis of the standard Bluetooth Pull frame / Null frame, the data transmission time is extended, so that the first earphone sends master-slave interaction information to the second earphone, and the master-slave interaction is realized by using the extended period to improve the utilization rate of time slot resources; and from the perspective of the terminal device, the extended period will not affect the reception of the Pull frame / Null frame defined by the original protocol, and can efficiently utilize the time slot resources. In the prior art, the first earphone only replies the packet reception status of the first time slot, and the utilization rate of time slot resources is low.

[0064] Among them, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information. At this time, the current frame format represents a preset first-format data packet.

[0065] When the first-format data packet replies the reception status, it also carries user data payload, which belongs to an ordinary data frame, and the transmission format is 2DH1-2DH3-2DH5 / 3DH1-3DH3-3DH5, and the durations are 1, 3, and 5 Bluetooth time slots respectively.

[0066] The terminal device receives a status frame (pollull) representing its own reception status information. When the length of the payload information of the current frame is 0, it means that the information received by the terminal device can stop, and it is impossible to parse the subsequent received data. The second earphone receives a complete first-format data packet. By continuously parsing, the master-slave interaction information is obtained, and the master-slave interaction with the first earphone is completed. From the perspective of the terminal device, extending the time period will not affect the reception of the Pull frame / Null frame defined by the original protocol. Compared with the existing technical solutions that utilize the remaining time domain resources within a time slot, this solution extends the transmission time based on the existing Bluetooth frame. When the earphone replies to the terminal data packet and the master-slave information is interacted, there is no frequency hopping protection interval in the middle, improving the utilization rate of the time domain resources.

[0067] Specifically, referring to Figure 3 and Figure 4 , in the first-format data packet, after the Poll frame / Null frame, the current frame format Flag_Type, the length of the payload information of the current frame Length, the length of the payload information of the current frame (master-slave payload), and the check code follow. Among them, Flag_Type indicates that the current frame format is the first-format data packet and carries the master-slave interaction information of the first earphone and the second earphone; Length represents the length of the master-slave payload information and carries the master-slave interaction information; the master-slave payload carries the master-slave interaction information; the check code realizes the information verification of Length and the master-slave payload.

[0068] Optionally, multiple types of Flag_Type can be defined, such as master-slave interaction information types representing switching control classes, master-slave synchronization information classes, power control types, etc., to further improve the robustness of the master-slave interaction and have a wider applicability.

[0069] In one embodiment, before the first earphone sends the master-slave interaction information, channel coding is performed on the master-slave interaction information. By performing channel coding on Length, the master-slave payload, the check code, etc., the robustness of the master-slave interaction is improved, and the data reception success rate is increased.

[0070] Referring to Figure 2 , in one embodiment, in the second time slot, there is also reserved time. Based on the reserved time, the second earphone feeds back the master-slave interaction reception status information to the first earphone.

[0071] Referring to Figure 4, since the maximum reserved time can be 625 us – (126 us + 250 us) = 249 us, the reserved time is used to carry ACK / NACK information, and the second earphone can feedback the reception status information of the first - format data packet to the first earphone to tell the first earphone whether it has received the master - slave information and determine whether the interaction between the master and the slave is successful.

[0072] In one embodiment, when the second earphone receives a data packet sent by the first earphone, it first decodes the current frame format; when the current frame format represents the first - format data packet, the second earphone determines that the data packet sent by the first earphone carries the master - slave interaction information, continues to decode the subsequent bit information of the master - slave interaction information to obtain the length of the valid payload information of the current frame, and feedbacks the master - slave interaction reception status information ACK to the first earphone during the reserved time.

[0073] Specifically, when the second earphone correctly decodes Flag_Type, that is, the current frame format represents the first - format data packet, such as when the receiver decodes the air interface signal and obtains the corresponding baseband data, if the baseband data is equal to the predefined Flag_type, for example, "0101", it indicates that the first earphone carries the master - slave interaction information. The second earphone continues to decode the subsequent bit information of the first - format data packet, and during the reserved time, the second earphone feedbacks the master - slave interaction reception status information ACK to the first earphone, and the first earphone receives the returned master - slave interaction reception status information.

[0074] In one embodiment, when the second earphone receives a data packet sent by the first earphone, it first decodes the current frame format; when the current frame format is inconsistent with the first - format data packet, the second earphone determines that the data packet sent by the first earphone does not carry the master - slave interaction information. At this time, the receiving channel of the second earphone is closed, and during the reserved time, the second earphone feedbacks the master - slave interaction reception status information NACK to the first earphone.

[0075] Specifically, when the second earphone fails to correctly decode Flag_Type, that is, the current frame format is inconsistent with the first - format data packet, it indicates that the first earphone does not carry the master - slave interaction information. At this time, the receiving channel of the second earphone is closed, that is, the second earphone closes the Rx channel to save power consumption, and during the reserved time, the second earphone feedbacks the master - slave interaction reception status information NACK to the first earphone, and the first earphone receives the returned master - slave interaction reception status information.

[0076] Refer to Figure 4, in one embodiment, the typical value of the maximum duration of the first - format data packet is 376 us (126 us + 250 us). Among them, 126 us is the Poll / Null frame length specified by the Bluetooth protocol, and 250 us is used for the master - slave interaction information sent from the first earphone to the second earphone. According to the Bluetooth protocol, the Poll / Null frame uses the GFSK modulation method. Therefore, 250 us can carry 250 bits of information. A hopping protection time interval is reserved after the first - format data packet for hopping protection during Bluetooth ear - to - ear transmission, improving data security. In this embodiment, the maximum typical value of the hopping protection time interval can be 100 us.

[0077] In one embodiment, before and after the feedback of the master - slave interaction reception status information, a hopping protection time interval is reserved respectively.

[0078] By reserving a hopping protection time interval of about 100 us before and after the reserved time for hopping protection, data security is improved. Therefore, the reserved time part is about 49 us.

[0079] Optionally, when the first earphone replies to the terminal device with a data packet in the second time slot, in addition to using the Poll / Null data frame, the reserved time can also be used to transmit the master - slave information. For example, the first earphone replies to the terminal device with a data frame carrying data, that is, the payload of the data packet is not zero at this time. At this time, the reserved time in the second time slot is used to carry the master - slave information. As Figure 5 shown, the data packet length is (126 + x) us; the maximum length of the master - slave information is (250 - x) us; the length of the master - slave information can be set not less than T_thre, with the unit of us. When the length of the master - slave information in the data packet is less than T_thre, the master - slave information is not sent. The typical value of T_thre can be greater than 5 us. Not only the Poll / Null frame, but other ordinary user data frames can also be used for master - slave interaction, which will not be elaborated here.

[0080] In one embodiment, when the second earphone receives the data packet sent by the first earphone, it first decodes the current frame format; when the current frame format is inconsistent with the first - format data packet, the second earphone determines that the data packet sent by the first earphone does not carry the master - slave interaction information, and at this time, the receiving channel (Rx channel) of the second earphone is closed to save power consumption.

[0081] Refer to Figure 6 , in one embodiment, the first earphone repeats sending the master - slave interaction information at a preset periodic interval.

[0082] In one embodiment, after the time slot of the first - format data packet, a preset hopping protection time interval is added, and the time for the second earphone to feedback the master - slave interaction information reception status information is not reserved; After the second earphone receives the master-slave interaction information sent by the first earphone, it does not feedback the reception status information to the first earphone.

[0083] In the second time slot, the first earphone further extends the data length sent to the second earphone, without reserving the reception status information feedback from the second earphone to the first earphone, so that the information sent from the first earphone to the second earphone is broadcast and repeatedly sent at a preset periodic interval to achieve master-slave interaction, improving the success rate of the second earphone receiving data packets and enhancing the transmission robustness.

[0084] Refer to Figure 7 , when the first earphone further extends the data length sent to the second earphone and does not reserve the reception status information feedback from the second earphone to the first earphone, the typical value of the maximum duration of the first format data packet is designed to be 525 us, and the maximum typical value of the hopping protection time interval is 100 us.

[0085] At this time, the maximum length of the master-slave information is 399 us, the maximum duration of the first format data packet is 525 us, and 100 us is reserved at the tail as the hopping protection.

[0086] In an embodiment, after the step that in the second time slot, the first earphone replies a data frame representing its own reception status information to the terminal device, it further includes judging whether the packet length of the data frame meets a first preset condition, where the first preset condition is that the typical value of the maximum duration of the first format data packet is designed to be 376 us, and the maximum typical value of the hopping protection time interval is 100 us; When the packet length of the data frame meets the first preset condition, the first earphone extends the data sending time of the data frame so that the first earphone sends the master-slave interaction information to the second earphone.

[0087] By judging whether the packet length of the data frame that the first earphone replies representing its own reception status information meets the first preset condition and when it meets the first preset condition, extending the data sending time of the data frame to carry the master-slave interaction information, this master-slave interaction method is similar to "carrying a private interaction protocol", hereinafter referred to as the "carrying type master-slave interaction mechanism" for short.

[0088] In an embodiment, after the step that in the first time slot, the terminal device sends an audio packet to the first earphone and both the first earphone and the second earphone receive the audio packet, it further includes, In the first time slot, when the radio frequency front end of the first earphone is in the receiving state, it judges whether the received signal meets a second preset condition in a preset first detection window; If the first earphone determines that the received signal meets the second preset condition, then in the second time slot, the first earphone replies with a data frame representing its own reception status information to the terminal device, and extends the data transmission time of the data frame, so that the first earphone sends master-slave interaction information to the second earphone; And in the first time slot, when the radio frequency front end of the first earphone is in the reception state, it judges whether the received signal meets the third preset condition in a preset first detection window; If the first earphone determines that the received signal meets the third preset condition, then in the first time slot, after a preset first interval, the first earphone uses a preset first preemption transmission window to send master-slave interaction information to the second earphone; In the second time slot, after the second earphone receives the master-slave interaction information sent by the first earphone, the first earphone and the second earphone switch the radio frequency state at a preset first interval, and then the second earphone uses a preset second preemption transmission window to send a data packet to the first earphone.

[0089] The second preset condition includes correctly decoding the relevant access code of the audio packet sent by the terminal device, and correctly decoding the header error check code (HEC, Header Error Check). When the first earphone correctly decodes the relevant access code and the header error check code of the audio packet sent by the terminal device, the first earphone determines that the received signal meets the second preset condition.

[0090] The third preset condition includes not correctly decoding the relevant access code of the audio packet sent by the terminal device and the received power being less than a preset threshold. When the first earphone detects that it does not correctly decode the relevant access code of the audio packet sent by the terminal device and the received power is less than the preset threshold, the first earphone determines that the received signal meets the third preset condition.

[0091] Specifically, referring to Figure 8 , in the Bluetooth protocol, the Bluetooth master device has the "right to send" in the previous Bluetooth time slot in a Bluetooth frame, that is Figure 8 the first time slot in; after the Bluetooth slave device receives the data packet from the master device in the previous time slot, it has the "right to send" the data packet in the current time slot, that is Figure 8 the second time slot in. Taking the terminal device as the Bluetooth master device, the first earphone and the second earphone as Bluetooth slave devices; in the first time slot, when the terminal device has data to send, it is in the data sending state; when there is no data to send, the terminal device is not in the sending state at this moment, and the time slot resources are in the idle state.

[0092] Therefore, in this embodiment, a "first detection window" is defined at the start of the first time slot, with a duration of T1. The typical range of T1 can be 72 us to 300 us, and the maximum value does not exceed one Bluetooth time slot, i.e., 625 us.

[0093] Within the first detection window, the first earphone checks whether the following conditions are met: 1) The second preset condition: correctly decode the relevant access code of the audio packet sent by the terminal device and correctly decode the header error check code (HEC, Header Error Check); 2) The third preset condition: fail to correctly decode the relevant access code of the audio packet sent by the terminal device and the measured received power is less than a predetermined threshold; that is, RSSI_measured < RSSI_threshold; where RSSI represents Received Signal Strength Indicator, RSSI_measured is the RSSI value measured by the receiver, and RSSI_threshold is the defined RSSI threshold.

[0094] When the first earphone detects that the second preset condition is met, it enables the portable master-slave interaction mechanism in the second time slot. The first earphone replies with a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame, so that the first earphone sends the master-slave interaction information to the second earphone.

[0095] When the first earphone detects that the third preset condition is met, that is, it neither detects the data packet sent by the terminal device nor the detected RSSI is less than the preset threshold. At this time, the first earphone determines that the received signal definitely does not meet the second preset condition, so it enables the preemptive master-slave interaction mechanism. The first earphone preempts the time domain resources of the first time slot for master-slave interaction, including: Define a first interval, in units of us, with a typical value of 100 us. After the first interval, the first earphone sends the master-slave interaction information to the second earphone within the "first preemptive transmission window". To reduce the frequency hopping protection time, the first earphone still uses the frequency hopping points used by the terminal device when sending in the first time slot at this time. The duration of the first preemptive transmission window is T2, and the typical duration can be 126 us to 838 us. After receiving the data packet sent by the first earphone, the second earphone switches its radio frequency state from Rx to Tx during the first interval.

[0096] Meanwhile, the first earphone switches its RF state from Tx to Rx during the first interval after T2. After the first interval, the second earphone sends a data packet to the first earphone in the "second preemptive transmission window" for a duration of T3, and the typical duration can be from 126 us to 838 us. The hopping frequency points can adopt the hopping frequency points specified by the second time slot Bluetooth protocol. After the second preemptive transmission window, a second interval is reserved as the hopping protection duration, and the typical value can be 100 us. The total duration of the master-slave information interaction does not exceed 2 Bluetooth time slots, that is: the first detection window T1 + the first interval + the first preemptive transmission window + the first interval + the second preemptive transmission window + the second interval <= 1250 us.

[0097] When the first earphone detects that the third preset condition is not met, the first earphone does not execute the preemptive master-slave interaction mechanism.

[0098] The preemptive master-slave interaction mechanism is applicable to the earphone as a Bluetooth slave device role.

[0099] When the earphone is in the Bluetooth slave role, the earphone can adopt the preemptive master-slave interaction mechanism and the portable master-slave interaction mechanism respectively.

[0100] Refer to Figure 9 , a Bluetooth pair of earphones transmission method includes, In the first time slot, the first earphone turns on the Rx channel and determines whether the preset conditions, namely the second preset condition and the third preset condition, are met within the first detection window T1.

[0101] If the second preset condition is met, then the first time slot is occupied, so the first earphone does not execute the preemptive mechanism in the first time slot and executes the portable master-slave interaction mechanism in the second time slot.

[0102] If the third preset condition is met, at this time it can be inferred that the second preset condition is not met, then the first time slot is not occupied, and the first earphone executes the preemptive mechanism in the first time slot.

[0103] If the third preset condition is not met, it means that the channel of the first time slot has been occupied, so the first earphone does not execute the preemptive mechanism.

[0104] If the earphone is in the Bluetooth master role, then the earphone can directly adopt the portable master-slave interaction mechanism.

[0105] The embodiment of the present application further provides a Bluetooth ear-to-ear transmission method, which is applicable to the scenario where the earphone acts as a Slave role. Taking the first earphone as the Bluetooth master role, the terminal device and the second earphone act as Bluetooth slave roles. A first Bluetooth link is established between the first earphone and the terminal device, a second Bluetooth link is established between the first earphone and the second earphone, and a third Bluetooth link is established between the second earphone and the terminal device; In the first time slot, the terminal device sends an audio packet to the first earphone or the second earphone, and both the second earphone and the first earphone receive the audio packet; In the second time slot, the first earphone replies with a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame. Both the terminal device and the second earphone receive the data frame, so that the master-slave interaction information is sent to the second earphone; Wherein, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information. At this time, the current frame format represents a preset first format data packet; At this time, at least 2×K Bluetooth time slots are reserved between the first time slot and the second time slot, where K is a natural number.

[0106] The embodiment of the present application further provides a Bluetooth ear-to-ear transmission method, including the following steps, A first Bluetooth link is established between the first earphone and the terminal device, a second Bluetooth link is established between the first earphone and the second earphone, and a third Bluetooth link is established between one second earphone and the terminal device; In the first time slot, the terminal device sends an audio packet to the first earphone or the second earphone, and both the first earphone and the second earphone receive the audio packet; Design a master-slave interaction period to determine the interaction time slots for the first earphone and the second earphone to take turns for master-slave interaction, including determining, according to floor(N / M), the interaction time slot for the first earphone to send master-slave interaction information to the second earphone or the second earphone to send master-slave interaction information to the first earphone, where floor() is the floor operation, M is the one-way interaction duration of the first earphone or the second earphone, and N is the current frame; When floor(N / M) is odd, in the second time slot, the first earphone replies with a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame. Both the terminal device and the second earphone receive the data frame to send the master-slave interaction information to the second earphone; When floor(N / M) is even, in the second time slot, the second earphone replies to the terminal device with a data frame representing its own reception status information and extends the data transmission time of the data frame. Both the terminal device and the first earphone receive the data frame to send the master-slave interaction information to the first earphone. Wherein, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information, and the current frame format represents a preset first format data packet.

[0107] Refer to Figure 10 , by defining the master-slave alternating interaction period, N is the current Bluetooth frame, and M is the duration of the one-way interaction of the first earphone (or the second earphone), with the unit of Bluetooth frame. For example, when X = floor(N / M) and X is odd, the first earphone replies to the Bluetooth terminal device. At this time, the first earphone sends information to the second earphone through the first format data packet. Among them, Floor(N / M) is the floor operation of N / M, and typical values of M are 4, 6, and 8. When X is even, the second earphone replies to the Bluetooth terminal device. At this time, the second earphone sends information to the first earphone through the first format data packet. The first earphone and the second earphone use periodic alternating replies to the terminal device to achieve two-way interaction between the first earphone and the second earphone, that is, the master ear can send interaction information to the slave ear, and the slave ear can also send interaction information to the master ear.

[0108] Refer to Figure 11 , in an embodiment, a Bluetooth paired-ear transmission method is that the second master ear replies to the terminal device with a data frame representing its own reception status information, extends the data transmission time of the data frame, and carries the first format data packet. Both the terminal device and the first earphone receive the data frame to send the master-slave interaction information to the first earphone.

[0109] In summary, a Bluetooth paired-ear transmission method realizes the master-slave interaction between the first earphone and the second earphone by using the time slot resources for terminal link information interaction; from the perspective of the terminal device, extending the time period does not affect the reception of the data frames defined by the original protocol; compared with the existing technical solutions that utilize the remaining time domain resources within the time slot, this solution extends the transmission time based on the existing Bluetooth frames. When the earphone replies to the terminal data packet and the master-slave information is interacted, there is no frequency hopping protection interval in the middle, which improves the utilization rate of time domain resources; the master-slave interaction does not affect the information interaction of the terminal link, improves the robustness of the information interaction of the master-slave link and the terminal link, and at the same time, can efficiently utilize the time slot resources, improving the utilization rate of the time slot resources for master-slave interaction. This solution does not affect the sending and receiving of the master-slave data frames defined by the Bluetooth protocol and has strong practicability.

[0110] A Bluetooth earbud transmission method can maximize the utilization of idle time-domain resources by designing a preemptive master-slave interaction mechanism and a portable master-slave interaction mechanism. It uses the remaining time slot resources of the data frame sent by the earbud to the terminal device to achieve master-slave information interaction, improving the utilization rate of time slot resources for master-slave interaction. Moreover, master-slave interaction does not affect the information interaction of the terminal link, enhancing the robustness of information interaction for both the master-slave link and the terminal link.

[0111] The master-slave interaction types of a Bluetooth earbud transmission method include master-slave interaction information such as switching control type, master-slave synchronization information type, power control type, etc., which can carry more master-slave information and have flexible data bits.

[0112] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.

[0113] The embodiments of this application also provide a Bluetooth earbud transmission device, which corresponds one-to-one with a Bluetooth earbud transmission method in the above embodiments. The Bluetooth earbud transmission device includes a first Bluetooth link established between a first earbud and a terminal device, a second Bluetooth link established between the first earbud and a second earbud, and a third Bluetooth link established between the second earbud and the terminal device. It also includes, An audio data sending module for sending an audio packet from the terminal device to the first earbud or the second earbud, and both the first earbud and the second earbud receive the audio packet; An interaction information sending module for the first earbud to reply a data frame representing its own reception status information to the terminal device and extend the data sending time of the data frame, and both the terminal device and the second earbud receive the data frame, so that the first earbud sends master-slave interaction information to the second earbud, or the second earbud replies a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame, and both the terminal device and the first earbud receive the data frame, so that the second earbud sends master-slave interaction information to the first earbud. Among them, the master-slave interaction information includes the current frame format, the length of the valid payload information of the current frame, the length of the master-slave interaction information of the current frame, and a check code for verifying the length of the valid payload information and the length of the master-slave interaction information. The current frame format represents a preset first format data packet.

[0114] Furthermore, the interaction information sending module is also used for the first earbud to repeatedly send the master-slave interaction information at a preset periodic interval.

[0115] Further, the interaction information sending module further includes a master-slave interaction cycle unit for determining a master-slave interaction time slot in which the first earphone and the second earphone take turns to perform master-slave interaction; The master-slave interaction cycle unit determines, according to floor(N / M), a master-slave interaction time slot in which the first earphone sends master-slave interaction information to the second earphone or the second earphone sends master-slave interaction information to the first earphone, where floor() is a floor operation, M is the one-way interaction duration of the first earphone or the second earphone, and N is the current frame; When floor(N / M) is odd, the first earphone sends master-slave interaction information to the second earphone; When floor(N / M) is even, the second earphone sends master-slave interaction information to the first earphone.

[0116] Further, a Bluetooth stereo transmission device further includes an interaction information feedback module for, at a preset reserved time, the second earphone feeding back master-slave interaction reception status information to the first earphone.

[0117] Further, a Bluetooth stereo transmission device further includes a reception window detection module for, at a first time slot, when the first earphone is in a reception state at the radio frequency front end, determining whether a received signal meets a second preset condition in a preset first detection window; When the first earphone determines that the received signal meets the second preset condition, at a second time slot, the interaction information sending module makes the first earphone reply a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame, so that the first earphone sends master-slave interaction information to the second earphone; or when the second earphone determines that the received signal meets the second preset condition, at a second time slot, the second earphone replies a data frame representing its own reception status information to the terminal device and extends the data sending time of the data frame, so that the second earphone sends master-slave interaction information to the first earphone.

[0118] Further, a Bluetooth stereo transmission device further includes The preemptive master-slave information interaction module is used to, when the first earphone determines that the received signal meets the third preset condition, in the first time slot, after a preset first interval, the first earphone uses a preset first preemptive transmission window to send master-slave interaction information to the second earphone. In the second time slot, after the second earphone receives the master-slave interaction information sent by the first earphone, the first earphone and the second earphone perform a radio frequency state switch at a preset first interval, and then the second earphone uses a preset second preemptive transmission window to send a data packet to the first earphone; or, when the second earphone determines that the received signal meets the third preset condition, in the first time slot, after a preset first interval, the second earphone uses a preset first preemptive transmission window to send master-slave interaction information to the first earphone. In the second time slot, after the first earphone receives the master-slave interaction information sent by the second earphone, the first earphone and the second earphone perform a radio frequency state switch at a preset first interval, and then the first earphone uses a preset second preemptive transmission window to send a data packet to the second earphone.

[0119] For the specific limitations of a Bluetooth earbud transmission device, reference can be made to the limitations of a Bluetooth earbud transmission method in the above text, which will not be elaborated here.

[0120] Each module in the above Bluetooth earbud transmission device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above respective modules.

[0121] In one embodiment, a Bluetooth earphone is provided, including a first earphone and a second earphone, and is applied to any of the above Bluetooth earbud transmission methods. Among them, the Bluetooth earphone can be a TWS earphone or an OWS earphone.

[0122] In one embodiment, a computer device is provided. The computer device can be a server. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes any of the above Bluetooth earbud transmission methods.

[0123] In one embodiment, a computer-readable storage medium is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-mentioned any one of the Bluetooth earbud transmission methods is implemented.

[0124] Those of ordinary skill in the art can understand that all or part of the processes in the above-described embodiment methods can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium, including several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. When the computer program is executed, it can include the processes of the above-described method embodiments. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or an external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0125] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the system is divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A Bluetooth to-ear transmission method, characterized in that: The following steps are included: Establishing a first Bluetooth link between a first headset and a terminal device, establishing a second Bluetooth link between the first headset and a second headset, and establishing a third Bluetooth link between the second headset and the terminal device, wherein the terminal device is a Bluetooth master role, and the first headset and the second headset are Bluetooth slave roles; In a first time slot, the terminal device sends an audio packet to the first earphone, and both the first earphone and the second earphone receive the audio packet; In the second time slot, the first headset replies a data frame representing its own receiving state information to the terminal device, and extends the data sending time of the data frame, and the terminal device and the second headset both receive the data frame, so that the first headset sends the master-slave interaction information to the second headset; The master-slave interaction information includes the current frame format, the effective load information length of the current frame, the master-slave interaction information length of the current frame and a check code for checking the effective load information length and the master-slave interaction information length. At this time, the current frame format represents a preset first format data packet.

2. The Bluetooth to-ear transmission method according to claim 1, characterized in that: The following steps are also included: The second time slot also includes a reserved time, based on which the second earphone feeds back master-slave interaction reception status information to the first earphone.

3. The Bluetooth to-ear transmission method according to claim 2, characterized in that: The following steps are also included: When the second earphone receives the data packet sent by the first earphone, it first decodes the current frame format; When the current frame format represents the first format data packet, the second earphone determines that the data packet sent by the first earphone carries the master-slave interaction information, continues to decode subsequent bit information of the master-slave interaction information, and feeds back master-slave interaction reception status information ACK to the first earphone within the reserved time.

4. The Bluetooth to-ear transmission method according to claim 3, characterized in that: The following steps are also included: When the current frame format is inconsistent with the first format data packet, the second earphone determines that the data packet sent by the first earphone does not carry the master-slave interaction information, and closes the receiving channel of the second earphone.

5. The Bluetooth to-ear transmission method according to claim 2, characterized in that: The following steps are also included: Before and after the master-slave interaction reception status information is fed back, a frequency hopping protection time interval is reserved respectively.

6. The Bluetooth to-ear transmission method according to claim 1, characterized in that: After the step of the first headset replying a data frame representing its own receiving status information to the terminal device in the second time slot, the method further includes: Determining whether the packet length of the data frame meets a first preset condition; When the packet length of the data frame meets the first preset condition, the first earphone prolongs the data sending time of the data frame, so that the first earphone sends the master-slave interaction information to the second earphone.

7. The Bluetooth to-ear transmission method according to claim 6, characterized in that: The first preset condition is that a typical value of the maximum duration of the first format data packet is designed to be 376us, and a typical maximum value of the frequency hopping protection time interval is 100us.

8. The Bluetooth to-ear transmission method according to claim 1, characterized in that: The following steps are also included: The first headset repeatedly sends the master-slave interaction information at preset periodic intervals.

9. The Bluetooth to-ear transmission method according to claim 8, characterized in that: The following steps are also included: After the time slot of the first format data packet, a preset frequency hopping protection time interval is added, and no time is reserved for the second headset to feed back master-slave interaction information reception status information; After the second earphone receives the master-slave interaction information sent by the first earphone, the second earphone does not feed back reception status information to the first earphone.

10. The Bluetooth to-ear transmission method according to claim 9, characterized in that: The following steps are also included: The typical maximum duration of the first format data packet is designed to be 525 us, and the typical maximum duration of the frequency hopping protection time interval is 100 us.

11. The Bluetooth to-ear transmission method according to claim 1, characterized in that: The following steps are also included: Before the first earphone sends the master-slave interaction information, channel coding is performed on the master-slave interaction information.

12. The Bluetooth to-ear transmission method according to any one of claims 1 to 11, characterized in that: After the step of the terminal device sending an audio packet to the first earphone in the first time slot, and the first earphone and the second earphone both receiving the audio packet, the method further includes: In the first time slot, the first earphone is in a receiving state when the radio frequency front end is in a receiving state, and determines whether the received signal meets the second preset condition in a preset first detection window; If the first earphone determines that the received signal meets the second preset condition, then in the second time slot, the first earphone replies with a data frame representing its own receiving status information to the terminal device, and extends the data sending time of the data frame so that the first earphone sends master-slave interaction information to the second earphone.

13. The Bluetooth to-ear transmission method according to claim 12, characterized in that: The following steps are also included: In the first time slot, the first earphone is in a receiving state when the radio frequency front end is in a receiving state, and determines in a preset first detection window whether the received signal meets a third preset condition; If the first headset determines that the received signal meets the third preset condition, then in the first time slot, the first headset sends the master-slave interaction information to the second headset using the preset first preemption sending window after the preset first interval; In the second time slot, after the second earphone receives the master-slave interaction information sent by the first earphone, the first earphone and the second earphone switch the radio frequency state at a preset first interval, and then the second earphone sends a data packet to the first earphone using a preset second preemptive sending window.

14. The Bluetooth to-ear transmission method according to claim 13, characterized in that: The second preset condition includes correctly decoding the relevant access code and header error check code of the audio packet sent by the terminal device, the third preset condition includes not correctly decoding the relevant access code of the audio packet sent by the terminal device and the receiving power is less than the preset threshold, and The method comprises the following steps: when the first earphone correctly decodes the relevant access code and header error check code of the audio packet sent by the terminal device, the first earphone determines that the received signal meets the second preset condition; When the first earphone detects that the relevant access code of the audio packet sent by the terminal device is not correctly decoded and the receiving power is less than a preset threshold, the first earphone determines that the received signal meets the third preset condition.

15. A Bluetooth to-ear transmission method, characterized in that: The following steps are included: Establishing a first Bluetooth link between a first headset and a terminal device, establishing a second Bluetooth link between the first headset and a second headset, and establishing a third Bluetooth link between the second headset and the terminal device, wherein the first headset is a Bluetooth master role, and the terminal device and the second headset are Bluetooth slave roles; In a first time slot, the terminal device sends an audio packet to the first earphone or the second earphone, and both the second earphone and the first earphone receive the audio packet; In the second time slot, the first headset replies a data frame representing its own receiving state information to the terminal device, and extends the data sending time of the data frame, and the terminal device and the second headset both receive the data frame, so that the master-slave interaction information is sent to the second headset; The master-slave interaction information includes the current frame format, the effective load information length of the current frame, the master-slave interaction information length of the current frame and a check code for checking the effective load information length and the master-slave interaction information length. At this time, the current frame format represents a preset first format data packet.

16. The Bluetooth to-ear transmission method according to claim 15, characterized in that: At least 2×K Bluetooth time slots are reserved between the first time slot and the second time slot, where K is a natural number.

17. A Bluetooth to-ear transmission method, characterized in that: The following steps are included: Establishing a first Bluetooth link between a first headset and a terminal device, establishing a second Bluetooth link between the first headset and a second headset, and establishing a third Bluetooth link between a second headset and the terminal device; In a first time slot, the terminal device sends an audio packet to the first earphone or the second earphone, and both the first earphone and the second earphone receive the audio packet; Designing a master-slave interaction cycle, determining an interaction time slot for the first earphone and the second earphone to perform the master-slave interaction in turn, including, according to floor(N / M), determining an interaction time slot for the first earphone to send master-slave interaction information to the second earphone or for the second earphone to send master-slave interaction information to the first earphone, wherein floor() is a rounding-down operation, M is the duration of the one-way interaction of the first earphone or the second earphone, and N is the current frame; When floor(N / M) is an odd number, in the second time slot, the first headset replies a data frame representing its own receiving status information to the terminal device, and extends the data sending time of the data frame. The terminal device and the second headset both receive the data frame to send the master-slave interaction information to the second headset. When floor(N / M) is an even number, in the second time slot, the second headset replies a data frame representing its own receiving status information to the terminal device, and extends the data sending time of the data frame. The terminal device and the first headset both receive the data frame to send the master-slave interaction information to the first headset. The master-slave interaction information includes the current frame format, the effective load information length of the current frame, the master-slave interaction information length of the current frame and a check code for checking the effective load information length and the master-slave interaction information length, and the current frame format represents a preset first format data packet.

18. A Bluetooth to-ear transmission device, characterized in that: The method comprises a first Bluetooth link established between a first headset and a terminal device, a second Bluetooth link established between the first headset and a second headset, a third Bluetooth link established between the second headset and the terminal device, and further comprises: An audio data sending module, used for the terminal device to send an audio packet to the first earphone or the second earphone, and the first earphone and the second earphone both receive the audio packet; An interactive information sending module is used for the first earphone to reply a data frame representing its own reception status information to the terminal device, and extend the data sending time of the data frame, and the terminal device and the second earphone both receive the data frame, so that the first earphone sends master-slave interactive information to the second earphone, or the second earphone replies a data frame representing its own reception status information to the terminal device, and extends the data sending time of the data frame, and the terminal device and the first earphone both receive the data frame, so that the second earphone sends master-slave interactive information to the first earphone, wherein the master-slave interactive information includes a current frame format, a valid load information length of the current frame, a master-slave interactive information length of the current frame, and a check code for verifying the valid load information length and the master-slave interactive information length, and the current frame format represents a preset first format data packet.

19. The Bluetooth to-ear transmission device according to claim 18, characterized in that: Also includes, The interactive information feedback module is used for the second earphone to feed back the master-slave interactive reception state information to the first earphone at a preset reserved time.

20. The Bluetooth to-ear transmission device according to claim 18, characterized in that: The interaction information sending module is further configured to cause the first headset to repeatedly send the master-slave interaction information at preset periodic intervals.

21. The Bluetooth to-ear transmission device according to claim 18, characterized in that: Also includes, A receiving window detection module, configured to determine, in a first time slot, when the first earphone is in a receiving state at the RF front end, whether a received signal meets a second preset condition in a preset first detection window; When the first earphone determines that the received signal meets the second preset condition, the interactive information sending module replies, in a second time slot, with a data frame representing its own reception status information to the terminal device, and extends the data sending time of the data frame, so that the first earphone sends the master-slave interactive information to the second earphone; or, when the second earphone determines that the received signal meets the second preset condition, in a second time slot, the second earphone replies, in a second time slot, with a data frame representing its own reception status information to the terminal device, and extends the data sending time of the data frame, so that the second earphone sends the master-slave interactive information to the first earphone.

22. The Bluetooth to-ear transmission device according to claim 21, characterized in that: Also includes, The preemptive master-slave information interaction module is configured to: when the first earphone determines that the received signal meets the third preset condition, in a first time slot, the first earphone sends master-slave interaction information to the second earphone by using a preset first preemptive sending window after a preset first interval; in a second time slot, after the second earphone receives the master-slave interaction information sent by the first earphone, the first earphone and the second earphone switch the radio frequency state at a preset first interval, and then the second earphone sends a data packet to the first earphone by using a preset second preemptive sending window; or, when the second earphone determines that the received signal meets the third preset condition, in a first time slot, the second earphone sends master-slave interaction information to the first earphone by using a preset first preemptive sending window after a preset first interval; in a second time slot, after the first earphone receives the master-slave interaction information sent by the second earphone, the first earphone and the second earphone switch the radio frequency state at a preset first interval, and then the first earphone sends a data packet to the second earphone by using a preset second preemptive sending window.

23. The Bluetooth to-ear transmission device according to any one of claims 18 to 22, characterized in that: The interaction information sending module further includes a master-slave interaction period unit for determining an interaction time slot for the first headset and the second headset to perform the master-slave interaction in turn; The master-slave interaction period unit determines, according to floor(N / M), an interaction time slot in which the first earphone sends the master-slave interaction information to the second earphone or the second earphone sends the master-slave interaction information to the first earphone, wherein floor() is a rounding-down operation, M is the duration of the one-way interaction of the first earphone or the second earphone, and N is the current frame; When floor(N / M) is an odd number, the first earphone sends master-slave interaction information to the second earphone; When floor(N / M) is an even number, the second earphone sends master-slave interaction information to the first earphone.

24. A Bluetooth headset, comprising a first headset and a second headset, characterized in that: The method for transmitting to the ear via Bluetooth as claimed in any one of claims 1 to 14.

25. A computer device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the Bluetooth to-ear transmission method according to any one of claims 1 to 14.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the Bluetooth to-ear transmission method according to any one of claims 1 to 14 are implemented.

27. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the Bluetooth to-ear transmission method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • A wireless communication method for a headset, a main headset, a slave headset, and a headset system.

    CN109314813A

  • Wireless earphone and communication method for wireless earphone

    CN109660971A

  • TWS earphone communication method and system based on carrier monitoring, and TWS earphone

    CN111818496A

  • TWS earphone interaction method and system, and TWS earphone

    CN111901730A

  • Wireless pair earphone, wireless communication system and storage medium

    CN116801155A