CN115499814A - Bluetooth equipment system - Google Patents

Bluetooth equipment system Download PDF

Info

Publication number
CN115499814A
CN115499814A CN202211105357.7A CN202211105357A CN115499814A CN 115499814 A CN115499814 A CN 115499814A CN 202211105357 A CN202211105357 A CN 202211105357A CN 115499814 A CN115499814 A CN 115499814A
Authority
CN
China
Prior art keywords
bluetooth device
data
bluetooth
communication link
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211105357.7A
Other languages
Chinese (zh)
Inventor
吴叶富
郭锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anker Innovations Co Ltd
Original Assignee
Anker Innovations Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anker Innovations Co Ltd filed Critical Anker Innovations Co Ltd
Priority to CN202211105357.7A priority Critical patent/CN115499814A/en
Publication of CN115499814A publication Critical patent/CN115499814A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a bluetooth device system. The Bluetooth device system includes a first Bluetooth device, a second Bluetooth device, and an external Bluetooth device. The first Bluetooth device and the second Bluetooth device establish a first communication link and a second communication link with an external Bluetooth device, respectively, and a third communication link is established between the first Bluetooth device and the second Bluetooth device. The first Bluetooth device is used for receiving first audio data sent by the external Bluetooth device through the first Bluetooth chip through the first communication link, and the second Bluetooth device is used for receiving second audio data sent by the external Bluetooth device through the second Bluetooth chip through the second communication link. The first Bluetooth device and the second Bluetooth device are used for synchronously playing audio according to the received first audio data and the second audio data. The method and the device can improve the data volume transmitted between the external Bluetooth device and the first Bluetooth device and between the external Bluetooth device and the second Bluetooth device, and can improve the efficiency of audio data synchronization.

Description

Bluetooth equipment system
Technical Field
The present application relates to the field of bluetooth technology, and more particularly, to a bluetooth device system.
Background
With the development of bluetooth wireless communication technology, bluetooth devices such as bluetooth wireless headsets, etc., which play audio and are convenient to carry and wear, are increasingly widely used.
In the related art, a plurality of bluetooth devices such as bluetooth wireless headsets often form a corresponding bluetooth device combination in a master-slave device mode, after the master device is connected with the intelligent device, bluetooth connection is performed between the master device and the intelligent device to realize data transmission, the intelligent device sends data to the master device, the master device forwards the data to the slave device, the transmission path is long, transmission is slow under the condition of large data volume, even the data needs to be subjected to lossy compression and then transmitted, for example, for the bluetooth headsets, high-quality audio is difficult to transmit.
Disclosure of Invention
Embodiments of the present application provide a bluetooth device system, which can improve the amount of data transmitted between an external bluetooth device and first and second bluetooth devices, and enhance high-quality audio transmission.
The embodiment of the application provides a Bluetooth device system, which comprises a first Bluetooth device, a second Bluetooth device and an external Bluetooth device. The first Bluetooth device is used for establishing communication connection of a first communication link with a first Bluetooth chip of an external Bluetooth device. The second Bluetooth device is used for establishing communication connection of a second communication link with a second Bluetooth chip of the external Bluetooth device, which is different from the first Bluetooth chip, and establishing communication connection of a third communication link with the first Bluetooth device. The first Bluetooth device is used for receiving first audio data sent by an external Bluetooth device through the first Bluetooth chip through a first communication link, and the second Bluetooth device is used for receiving second audio data sent by the external Bluetooth device through the second Bluetooth chip through a second communication link. The first Bluetooth device and the second Bluetooth device are used for synchronously playing audio according to the received first audio data and the second audio data.
The beneficial effect of this application is: different from the prior art, the first path of communication link and the second path of communication link are respectively established with the external Bluetooth device through the first Bluetooth device and the second Bluetooth device, the efficiency and the quality of communication between the first Bluetooth device and the external Bluetooth device and between the first Bluetooth device and the second Bluetooth device can be improved by respectively receiving audio data, the data volume transmitted between the external Bluetooth device and the first Bluetooth device and between the external Bluetooth device and the second Bluetooth device can also be improved, the loss compression of the audio data is avoided, and then the external Bluetooth device can transmit high-quality audio to the first Bluetooth device and the second Bluetooth device in different construction sites. Moreover, the first Bluetooth device and the second Bluetooth device establish a third communication link with each other, so that the first Bluetooth device and the second Bluetooth device can perform audio synchronization conveniently, the efficiency of audio synchronization is improved, and further the influence on user experience caused by the pause and delay of the audio card is reduced.
Drawings
FIG. 1 is a schematic diagram of a system configuration of an embodiment of a Bluetooth (R) device system of the present application;
FIG. 2 is a schematic diagram of channel selection for the embodiment of the Bluetooth device system shown in FIG. 1;
FIG. 3 is a schematic diagram of audio synchronization of the embodiment of the Bluetooth (R) device system shown in FIG. 1;
FIG. 4 is another audio synchronization diagram of the embodiment of the Bluetooth (R) device system shown in FIG. 1;
FIG. 5 is a schematic diagram of the channel processing of the embodiment of the Bluetooth device system shown in FIG. 1;
fig. 6 is a schematic diagram of data loss processing of the embodiment of the bluetooth device system shown in fig. 1.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following embodiments of the bluetooth device system of the present application describe an exemplary architecture of the bluetooth device system 10.
Referring to fig. 1, fig. 1 is a schematic diagram of a system of a bluetooth device system according to an embodiment of the present application.
The bluetooth device system 10 includes a first bluetooth device 11, a second bluetooth device 12, and an external bluetooth device 13.
The first bluetooth device 11 and the second bluetooth device 12 may be two bluetooth devices integrated in the same bluetooth apparatus, which can respectively play audio. For example, the first bluetooth device 11 and the second bluetooth device 12 may be a left earphone and a right earphone of a tws earphone (True Wireless Stereo) and a left earphone and a right earphone of a headset, respectively. The first bluetooth device 11 and the second bluetooth device 12 may also be a left earpiece and a right earpiece of audio glasses, respectively, and are not limited specifically. Of course, the first bluetooth device 11 and the second bluetooth device 12 may also be independent bluetooth devices, such as a smart phone, a personal computer, a personal digital assistant, a tablet computer, a bluetooth sound, a bluetooth mouse, a bluetooth keyboard, a sweeping robot, an intelligent vacuum cleaner, an intelligent electric fan, an intelligent robot, an intelligent television, a wearable device worn on a limb or embedded in clothing or accessories, and any electronic device capable of playing audio and capable of implementing a bluetooth function. The second bluetooth device 12 may be the same electronic device as the first bluetooth device 11, but may be a different electronic device. The external bluetooth device 13 also has a bluetooth function, and may be the same electronic device as the first bluetooth device 11 or the second bluetooth device 12, or may be a different electronic device. For example, the first bluetooth device 11 is a bluetooth headset, the second bluetooth device 12 is a bluetooth sound, and the external bluetooth device 13 is a smartphone; or the first bluetooth device 11 is a personal computer, the second bluetooth device 12 is a smart phone, the external bluetooth device 13 is a personal computer, and the like, which is not limited specifically.
The external bluetooth device 13 is provided with at least two bluetooth chips, one of which is a first bluetooth chip 131, and the other of which is a second bluetooth chip 132. The first bluetooth Chip 131 and the second bluetooth Chip 132 are both SOC (System on Chip) systems of the external bluetooth device 13. Each of the first bluetooth chip 131 and the second bluetooth chip 132 may include a Central Processing Unit (CPU), which is an operation and control core of the external bluetooth device 13 and is a final execution Unit for information Processing and program operation. The processor may be an integrated circuit chip having signal processing capabilities. The processor may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a Microprocessor (MCU) or the processor may be any conventional processor or the like. Further, the first bluetooth device 11 and the second bluetooth device 12 are respectively provided with at least one bluetooth chip to respectively establish two bluetooth connections with the external bluetooth device 13.
The first bluetooth device 11 is configured to establish a communication connection of a first communication link with the first bluetooth chip 131 of the external bluetooth device 13. The second bluetooth device 12 is configured to establish a communication connection of a second communication link with a second bluetooth chip 132 of the external bluetooth device 13, where the second bluetooth chip 132 is different from the first bluetooth chip 131; and the second bluetooth device 12 is also used for establishing a communication connection of a third communication link with the first bluetooth device 11. The first bluetooth device 11 is configured to receive first audio data sent by the external bluetooth device 13 through the first bluetooth chip 131 through a first communication link, and the second bluetooth device 12 is configured to receive second audio data sent by the external bluetooth device 13 through the second bluetooth chip 132 through a second communication link. The first bluetooth device 11 and the second bluetooth device 12 are configured to perform audio synchronous playing on the received first audio data and second audio data. The first audio data and the second audio data may be the same or different. For example, the first audio data is left channel data, the second audio data is right channel data, or both the first audio data and the second audio data are mixed monaural data. The first Bluetooth device 11 and the second Bluetooth device 12 respectively establish two Bluetooth connections with the external Bluetooth device 13, so that the anti-interference capability of the first communication link and the second communication link can be improved, and the communication quality is further ensured. For example, in one application scenario, the first bluetooth device 11 is a left headset of a user, the second bluetooth device 12 is a right headset of the user, and the external bluetooth device 13 is a smartphone, that is, the left headset of the user and the smartphone establish a first communication link, the right headset and the smartphone establish a second communication link, and the left headset and the right headset establish a third communication link with each other. The left earphone receives first audio data sent by the smart phone through the first Bluetooth chip 131 through the first communication link, the right earphone receives second audio data sent by the smart phone through the second Bluetooth chip 132 through the second communication link, and the first audio data and the second audio data are the same and are stereo channel data. And the left earphone and the right earphone synchronize the received first audio data and second audio data sent by the smart phone so as to synchronously output the same stereo channel data. That is, after the audio is synchronized, the audio played by the left and right earphones of the user is consistent.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating channel selection of the bluetooth device system of fig. 1 according to an embodiment.
Optionally, the first bluetooth device 11, the second bluetooth device 12, and the external bluetooth device 13 may each support a classic bluetooth protocol or a bluetooth low energy protocol. The classic Bluetooth protocol or the low power consumption Bluetooth protocol is a Bluetooth technology alliance (SIG) that successively develops different Bluetooth protocol version specifications. For example, the first official version 1.0A of 1999 to the subsequent versions 1.1, 2.0, 3.0, 4.0, 5.0, 5.2, etc. Among them, version 4.0 was previously referred to as a classic bluetooth protocol, and version 4.0 was later referred to as a bluetooth low energy protocol. Bluetooth devices supporting different bluetooth protocol versions all use the 2.4GHz ISM (Industrial Scientific Medical, industrial, scientific, and Medical) band. The operating frequency of a bluetooth device supporting the classic bluetooth protocol is divided into 79 channels in the ISM frequency range, whereas the operating frequency of a bluetooth device supporting the bluetooth low energy protocol is divided into 40 channels in the ISM frequency range. Taking the bluetooth low energy version as an example, 40 channels are defined in the 2.4GHz ISM band. These channels are divided into three types: broadcast (advertising), periodic (periodic) and data (data) channels. The broadcast channel uses all 40 channels to discover devices, initiate connections, and broadcast data. Wherein 3 channels, called primary broadcast channels, are used for initial broadcast and all conventional broadcast activities; the remaining 37 channels are referred to as secondary broadcast channels and are used for most of the communications involved. Bluetooth devices supporting low power protocols can thus communicate using 37 channels. The classical bluetooth protocol does not distinguish between broadcast channels, periodic channels and data channels and therefore can use 79 channels for communication.
Specifically, the first bluetooth device 11 is configured to receive first idle channel information sent by the first bluetooth chip 131, and frequency hop to an idle channel corresponding to the first idle channel information following the first bluetooth chip 131. The second bluetooth device 12 is configured to receive the second idle channel information sent by the second bluetooth chip 132, and frequency hop to an idle channel corresponding to the second idle channel information following the second bluetooth chip 132. The first idle channel information is generated when the first bluetooth chip 131 determines all idle channels from all channels supported by traversal during frequency hopping, and selects one idle channel from all idle channels. The first bluetooth chip 131 and transmits the remaining idle channels to the second bluetooth chip 132. The second idle channel information is generated when the second bluetooth chip 132 selects one idle channel from the remaining idle channels. Specifically, before the external bluetooth device 13 is connected to the first bluetooth device 11 and the second bluetooth device 12, information between the two devices is exchanged according to a Link Manager Protocol (LMP). The LMP information includes the minimum number of channels that can be used by the first bluetooth device 11 and the second bluetooth device 12. The external bluetooth device 13 may inform the first bluetooth device 11 of exchanging channel quality information, which is divided into a good channel, a bad channel, and an unused channel, through an LMP command. The external bluetooth device 13 determines which are idle channels and which are occupied. For example, in this embodiment, the first bluetooth device 11, the second bluetooth device 12, and the external bluetooth device 13 all support the classic bluetooth protocol, the external bluetooth device 13 determines all idle channels from the 79 supported channels during frequency hopping, selects one idle channel from all the idle channels, and sends the remaining idle channels to the second bluetooth chip 132, and the second bluetooth chip 132 selects one idle channel from the remaining idle channels. In this way, it is possible to avoid the external bluetooth device 13 from hopping to a congested or unavailable channel when establishing communication links with the first bluetooth device 11 and the second bluetooth device 12, respectively, and further affecting communication efficiency.
Optionally, at least two channels may be spaced between the channel on which the first communication link hops and the channel on which the second communication link hops. For example, in the present embodiment, the first bluetooth device 11, the second bluetooth device 12, and the external bluetooth device 13 all support the classic bluetooth protocol, and the external bluetooth device 13 selects a channel 15 from 79 channels through the first bluetooth chip 131 and sends the channel 15 to the first bluetooth device 11, so that the first bluetooth device 11 hops to the channel 15. The external bluetooth device 13 selects a channel 21 among the 79 channels through the second bluetooth chip 132 to transmit to the second bluetooth device, so that the second bluetooth device 12 hops to the corresponding channel 21. At least two channels are spaced between the frequency hopping channels when the first bluetooth device 11 and the second bluetooth device 12 establish communication links with the external bluetooth device 13, respectively, so that mutual interference during frequency hopping can be avoided, and further, the communication quality is prevented from being influenced. Optionally, the first bluetooth device 11 may also send the remaining idle channels to the second bluetooth device 12, so that the first bluetooth device 11 and the second bluetooth device 12 hop the third communication link to the corresponding idle channels. In this way, the first communication link, the second communication link and the third communication link can be guaranteed to avoid mutual interference.
Referring to fig. 3, fig. 3 is a schematic diagram of audio synchronization of the bluetooth device system shown in fig. 1 according to an embodiment.
Either one of the first bluetooth device 11 and the second bluetooth device 12 is configured to interact with the other one of the first bluetooth device 11 and the second bluetooth device 12 through the third communication link by at least one byte of data, so that the first bluetooth device 11 and the second bluetooth device 12 perform synchronous playing by using the at least one byte of data. Wherein the at least one byte of data comprises at least one of a sequence number of the data packet, a type of the data packet, a reception time difference of the data packet, and a transmission time stamp of the data packet.
Specifically, the at least one byte of data includes a sequence number of the data packet. All data, called packets, of one command needs to be transmitted between bluetooth devices. The data packets may be split into single/multi-frame transmissions. The data packet is the sum of the first frame and other data frames. The data format of the first frame includes a sequence number, a total number of data frames, an instruction value, and the like. The sequence number of the first frame is 0 × 00 by default. The data format of the second and subsequent frames also includes the sequence number of the current frame and other split data frame content. Wherein the sequence numbers of the second and following current frames start from 0 x 01 by default. For example, the sequence number of the second frame is 0 × 01, the sequence number of the third frame is 0 × 02, and so on.
The first bluetooth device 11 and the second bluetooth device 12 are configured to exchange the sequence numbers of the packets currently received by each other through the third communication link and compare the sequence numbers of the packets currently received by each other. If the serial numbers of the data packets currently received by the first bluetooth device 11 and the second bluetooth device 12 are different from each other, when one of the first bluetooth device and the second bluetooth device that has the larger serial number of the currently received data packet waits for the other to receive the data packet having the same larger serial number, the respective corresponding data packets having the same serial numbers are output in audio synchronously. For example, if the serial number of the current packet received by the first bluetooth device 11 is 0 × 07, and the serial number of the previous packet received by the second bluetooth device 12 is 0 × 06, the first bluetooth device 11 waits for the second bluetooth device 12 to receive the packet with the serial number of 0 × 07, and then outputs the corresponding packet with audio. Thus, the first bluetooth device 11 and the second bluetooth device 12 can ensure that consistent audio is output at the same time, and influence on listening experience of a user due to delay is avoided. For example, in an application scenario, the first bluetooth device 11 is a left earphone, the second bluetooth device 12 is a right earphone, and the external bluetooth device 13 is a smart phone, that is, audio of the left earphone and the right earphone of the user is synchronized, so as to avoid bad experience of the user.
Further, the at least one byte of data includes a type of the data packet. Taking bluetooth low energy protocol as an example, the data packet format includes: broadcast packets, scan packets, initialization connection packets, link layer control packets, logical link control and adaptive protocol data packets, etc. The first bluetooth device 11 and the second bluetooth device 12 are configured to exchange the types of data packets currently received by each other through the third communication link and determine whether the types of data packets currently received by each other are the same. If the types of the data packets currently received by the first bluetooth device 11 and the second bluetooth device 12 are different, the first bluetooth device and the second bluetooth device may synchronize and output the audio of the data packets with the same type when the data packets with the same type are received by the other bluetooth device. For example, taking the bluetooth low energy protocol as an example, if the type of the current data packet received by the first bluetooth device 11 and sent by the external bluetooth device 13 is a broadcast packet, and the type of the current data packet received by the second bluetooth device 12 and sent by the external bluetooth device 13 is a scan packet, the second bluetooth device 12 synchronizes and outputs the corresponding data packet with audio when the first bluetooth device 11 also receives the scan packet sent by the external bluetooth device 13. For example, in an application scenario of another home theater, the first bluetooth device 11 of the home theater is an intelligent sound device, the second bluetooth device 12 is another intelligent sound device, the two intelligent sound devices are disposed at different positions in front of and behind the home theater, the external bluetooth device 13 is a personal computer, and the personal computer establishes a first link connection and a second link connection with the two intelligent sound devices respectively and sends the audio of a certain movie to the two intelligent sound devices respectively. Therefore, two intelligent sound equipment can also be through this kind of mode audio frequency synchronization, avoid two intelligent sound equipment broadcast audio frequencies asynchronous and then influence and see the shadow and experience.
Further, the at least one byte of data includes a transmission time stamp of the data packet. A Timestamp (Timestamp) is typically a sequence of characters that uniquely identifies a time of day. The time stamp includes three parts: a digest of the file to be time stamped, the date and time the data was received, and a digital signature. For example, a bluetooth device may represent a timestamp in 4 bytes.
The first bluetooth device 11 and the second bluetooth device 12 are configured to exchange transmission timestamps of data packets currently received by each other through the third communication link, and determine whether the transmission timestamps of the data packets currently received by each other are the same. If the transmission timestamps of the data packets currently received by the first bluetooth device 11 are different from the transmission timestamps of the data packets currently received by the second bluetooth device 12, the first bluetooth device 11 and the second bluetooth device 12 respectively wait for the data packets with the same transmission timestamp received by the other party, and then synchronously output the audio of the corresponding data packets with the same transmission timestamp. In other words, the first bluetooth device 11 and the second bluetooth device 12 receive different timestamps sent by the external bluetooth device 13, that is, the first bluetooth device 11 and the second bluetooth device 12 receive different audio data sent by the external bluetooth device 13, and the first bluetooth device 11 and the second bluetooth device 12 need to wait for the same sending timestamp received by the other party, and then synchronize and output the corresponding data packet with audio. For example, in the application scenario as described above, the first bluetooth device 11 is a left earphone, the second bluetooth device 12 is a right earphone, the external bluetooth device 13 is a smart phone, and the left earphone and the right earphone of the user may also be audio-synchronized in this way, so as to further avoid that the user experience is affected by delay of the left earphone and the right earphone.
Still further, the at least one byte of data includes a reception time difference of the data packet. The reception time difference is a difference between a time when the first bluetooth device 11 and the second bluetooth device 12 respectively receive the same packet and a time when the external bluetooth device 13 transmits the same packet. The wireless audio delay is mainly determined by the characteristics of the digital audio encoder and the transmission redundancy introduced to ensure the quality of service of the transmission in interfering environmental conditions. The wireless audio delay refers to the time difference between the input of the analog audio signal into the wireless transmitter and the output of the analog audio signal from the wireless receiver. The wireless audio delay is composed of three parts of coding delay, transmission delay and decoding delay. Coding delay: the analog audio signal is sampled. Perceptual coding based on a psychoacoustic model requires an encoder to analyze a plurality of consecutive samples to identify opportunities to be compressible, and the basic principle is to allocate no information bits to an audio signal that actually exists in the samples but cannot be perceived by the human ear based on the auditory properties of the human ear determined in psychoacoustic to obtain the number of bits per unit time of compression. The above properties of perceptual coding mean that the encoder needs to collect enough consecutive sound samples to apply the psychoacoustic model. Each successive sound sample is called a frame and the sound sample duration is called a frame duration. Different coding techniques employ different frame durations. The frame duration needs to be adapted to the technical characteristics of the encoder itself and the requirements of the digital audio application scenario. The limited number of samples reduces the compression efficiency of the encoder if the frame duration is too short, and the delay increases to affect the user experience if it is too long. Also, a frame duration that is too long increases the complexity of the encoder and thus power consumption. Frame duration in a practical encoder is a result of tradeoffs between encoder efficiency, delay, and power consumption. To meet the requirements of both speech and music applications, an optimal frame duration is found in the industry: 10 milliseconds (1 millisecond =1ms =0.001 second). The encoding time is usually several milliseconds, depending on the encoding algorithm and the computational efficiency of the encoding processor. The frame duration and the coding time together constitute a coding delay. Transmission delay: the coded digital audio stream is transmitted by a wireless communication technology, a data packet is formed according to a specific packet format, and the data packet is moved to a radio frequency carrier wave by a certain modulation mode for wireless transmission. Due to interference in a real wireless transmission environment, the same data packet is usually transmitted repeatedly within a certain time period to improve the quality of service of the transmission, thereby causing transmission delay. The transmission delay is typically between a few milliseconds and a few tens of milliseconds, depending on the requirements on quality of service and data reliability. Decoding delay: the time taken for the decoder to decode the digital audio stream results in a delay that is typically shorter than the encoding delay and not the frame duration resulting delay in the encoder, since the decoder will automatically expand the output frames to form a continuous bit stream for audio digital/analog signal conversion. The decoding delay is typically a few milliseconds. The wireless audio delay may cause the difference in the reception time when the first bluetooth device 11 or the second bluetooth device 12 receives the audio data transmitted by the external bluetooth device 13, respectively.
The first bluetooth device 11 and the second bluetooth device 12 are configured to exchange reception time differences of the same data packet received by each other through the third communication link, and compare the reception time differences of the same data packet received by each other. The first bluetooth apparatus 11 and the second bluetooth apparatus 12 may perform a corresponding delay process according to a difference between the receiving time differences of the same packet received, so as to synchronously output the same packet. For example, in the application scenario as described above, the first bluetooth device 11 is a left headset, the second bluetooth device 12 is a right headset, the external bluetooth device 13 is a smart phone, and a time difference of receiving a data packet sent by the smart phone by the left headset is greater than 30ms compared with a time difference of receiving the data packet sent by the smart phone by the right headset, that is, the data packet sent by the smart phone is received by the left headset later than 30 ms. Thus, the left earphone and the right earphone can exchange the received receiving time difference of the data packet by establishing a third communication link therebetween, that is, the right earphone can perform a delay process of 30ms, so that the left earphone and the right earphone output the data packet at the same time.
Referring to fig. 4, fig. 4 is a schematic diagram of another audio synchronization of the bluetooth device system shown in fig. 1 according to an embodiment.
The external bluetooth device 13 is configured to transmit the same packet or packets of audio data to the first bluetooth device 11 and the second bluetooth device 12 successively in order at least twice, respectively. The first bluetooth device 11 and the second bluetooth device 12 are configured to receive all data packets sent by the external bluetooth device 13 at least twice continuously, and synchronously output the same data packet received at the last time or a plurality of received data packets according to a preset rule at a preset time after the external bluetooth device 13 finishes sending. In order to avoid the external bluetooth device 13 from failing to transmit audio data to the first bluetooth device 11 and the second bluetooth device 12 or failing to receive the audio data from the first bluetooth device 11 and the second bluetooth device 12, the external bluetooth device 13 may continuously transmit the same packet or a plurality of packets of audio data to the first bluetooth device 11 and the second bluetooth device 12 at least twice. The external bluetooth device 13 may transmit the same packet or a plurality of packets of audio data to the first bluetooth device 11 and the second bluetooth device 12 twice, three times, four times, and the like, and the specific times are not limited. The first bluetooth device 11 and the second bluetooth device 12 may set the preset time to 20ms, 30ms, 50ms, etc. The preset rule may be that the first bluetooth device 11 and the second bluetooth device 12 respectively receive the data packet sent by the external bluetooth device 13 for the last time for 30ms and then output the audio synchronously, which is not limited specifically. For example, in one embodiment, the external bluetooth device 13 may continuously transmit the same packet of audio data to the first bluetooth device 11 and the second bluetooth device 12 three times, the first bluetooth device 11 and the second bluetooth device 12 set the preset time to 30ms, and the first bluetooth device 11 and the second bluetooth device 12 perform audio output on the same data of the audio data transmitted the third time at 30ms, so that the first bluetooth device 11 and the second bluetooth device 12 may play the audio at 30ms simultaneously.
Further, the plurality of data packets respectively transmitted by the external bluetooth device 13 to the first bluetooth device 11 and the second bluetooth device 12 may be different. The first bluetooth device 11 and the second bluetooth device 12 are configured to, when receiving the data packet sent by the external bluetooth device 13, exchange the data packets received by each other through the third communication link, and synchronously output the audio of the corresponding data packet according to the synchronization information in the received data packet. That is, the first bluetooth device 11 and the second bluetooth device 12 exchange synchronization information of a plurality of data packets through the third communication link established with each other.
Optionally, the synchronization information includes at least one of a secondary number of a plurality of packets received by the first bluetooth device 11 and the second bluetooth device 12 from each other and a reception time difference of each packet. The receiving time difference is the difference between the time when the first bluetooth device 11 and the second bluetooth device 12 receive each data packet and the time when the first bluetooth device 11 sends the same data packet. The secondary number of the packet is the sequence number of the packet transmitted by the external bluetooth device 13, and may be represented as 01, 02, 03, or the like, for example. For example, in one embodiment, the external bluetooth device 13 may transmit data packets of audio data to the first bluetooth device 11 and the second bluetooth device 12 three consecutive times. The first bluetooth device 11 and the second bluetooth device 12 exchange information of the audio data reception through a third communication link established with each other. Thus, the first bluetooth device 11 and the second bluetooth device 12 can play the audio while receiving the data packet transmitted by the external bluetooth device 13 for the second time, so as to implement audio synchronous play. In another embodiment, the first bluetooth device 11 successfully receives the audio data transmitted by the external bluetooth device 13 for the first time at 10ms, and the second bluetooth device 12 successfully receives the audio data transmitted by the external bluetooth device 13 for the second time at 20 ms. The first bluetooth device 11 and the second bluetooth device 12 exchange information of the audio data reception through a third communication link established with each other. Thus, the first bluetooth device 11 and the second bluetooth device 12 can play the audio at 20ms simultaneously to achieve audio synchronous playing.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a channel processing of the bluetooth device system shown in fig. 1 according to an embodiment.
And at least one of the first bluetooth device 11 and the second bluetooth device 12, which is in normal communication connection with the external bluetooth device 13, is configured to receive the online status of the first communication link and the second communication link and process the audio data into channel data matched with a preset channel processing policy according to the preset channel processing policy matched with the online status and the external bluetooth device 13. The Sound Channel (Sound Channel) refers to the audio signals that are collected or played back at different spatial positions when the Sound is recorded or played, and the number of Sound channels is also the number of Sound sources when the Sound is recorded or the number of corresponding speakers when the Sound is played back. The channels may be classified into left channels, right channels, stereo, etc. according to different classification rules. The left channel is usually played by compressing the related bass region signal and playing the dialogue and translation of the human voice through the audio track. The right channel is usually played through the audio track after compressing the signals of the related high and middle audio regions, so as to achieve smooth sound playing. The stereo sound is played by using a left channel audio track and a right channel audio track, and after deep analysis and stripping processing is carried out on the sound, a middle audio frequency and a sub-bass audio frequency audio track are added, so that the auditory sense of sound playing is clearer and more mellow, and the positioning of the sound can be accurately judged, so that people can feel like being personally on the scene. For example, the external bluetooth device 13 sends the left channel data to the first bluetooth device 11 and sends the right channel data to the second bluetooth device 12, and the preset channel processing policy may be that when one of the first bluetooth device 11 and the second bluetooth device 12 is disconnected, the external bluetooth device 13 simultaneously sends the left channel data and the right channel data to the non-disconnected one of the first bluetooth device 11 and the second bluetooth device 12. Therefore, the first bluetooth device 11 and the second bluetooth device 12 which are not disconnected can play two channel data, and even if only one bluetooth device plays audio, the effect that the first bluetooth device 11 and the second bluetooth device 12 simultaneously play audio can be achieved.
If the online state is that one of the first communication link and the second communication link is abnormal and the other one is normal, the preset sound channel processing strategy correspondingly sends the mixed single-sound-channel data through the normal one of the first communication link and the second communication link. Wherein the matched channel data is correspondingly mixed mono data. The mixed monaural data is one channel data mixed by left channel data and right channel data. For example, in the application scenario as described above, the external bluetooth device 13 sends the left channel data to the first bluetooth device 11 and sends the right channel data to the second bluetooth device 12, and the preset channel processing policy may be that when one of the first bluetooth device 11 and the second bluetooth device 12 is disconnected, the external bluetooth device 13 simultaneously sends the mixed mono channel data to the un-disconnected one of the first bluetooth device 11 and the second bluetooth device 12. Thus, the first bluetooth device 11 and the second bluetooth device 12 that are not disconnected can play the mixed mono data, and even if only one bluetooth device plays the audio, the effect that the first bluetooth device 11 and the second bluetooth device 12 simultaneously play the audio can be achieved.
If the online state is that the first communication link and the second communication link are both normal, the preset sound channel processing strategy is correspondingly that corresponding stereo channel data are respectively sent through the normal first communication link and the normal second communication link. Wherein the matched channel data is correspondingly stereo channel data. The stereo channel data is left channel data or right channel data. That is, the external bluetooth device 13 transmits the left channel data to the first bluetooth device 11 and the right channel data to the second bluetooth device 12 through the first communication link and the second communication link, respectively. In other words, the first bluetooth chip 131 and the second bluetooth chip 132 of the external bluetooth device 13 respectively establish two bluetooth connections, so that the data transmission efficiency is higher.
Referring to fig. 6, fig. 6 is a schematic diagram of data loss processing of the bluetooth device system shown in fig. 1 according to an embodiment.
When the first communication link is lost, the second bluetooth device 12 is configured to receive, through the second communication link, clipped data that is lost by the first communication link and is obtained by clipping, by the external bluetooth device 13, a data packet that passes through the first communication link, and send the clipped data to the first bluetooth device 11 through the third communication link. The first bluetooth device 11 is configured to package the cropping data and the partial data of the data packet that has been received via the first channel link. For example, in the application scenario described above, the external bluetooth device 13 establishes a first communication link with the first bluetooth device 11 and a second communication link with the second bluetooth device 12. When the first communication link loses packets, the first bluetooth device 11 cannot play complete audio, and the external bluetooth device 13 clips the data packets to obtain the lost clipping data, and sends the clipping data to the second bluetooth device 12 through the second communication link. The second bluetooth device 12 then sends the cropping data to the first bluetooth device 11 via the third communication link. Thus, the first bluetooth device 11 can normally play audio.
Further, when a packet loss occurs in the second communication link, the first bluetooth device 11 is configured to receive, through the first communication link, the cut data lost by the second communication link, where the cut data is obtained by cutting the data packet through the second communication link by the external bluetooth device 13, and send the cut data to the second bluetooth device 12 through the third communication link. In this case, the processing mode is consistent with the mode of packet loss occurring in the first communication link, and is not described herein again. Therefore, the second bluetooth device 12 can also play the audio normally.
In summary, according to the present application, the first bluetooth device 11 and the second bluetooth device 12 respectively establish the first communication link and the second communication link with the external bluetooth device 13 to receive the audio data, so that the data amount transmitted between the external bluetooth device 13 and the first bluetooth device 11 as well as between the external bluetooth device 13 and the second bluetooth device 12 can be increased, and the efficiency and quality of communication can be improved. And the first bluetooth device 11 and the second bluetooth device 12 establish a third communication link with each other, so that the first bluetooth device 11 and the second bluetooth device 12 perform audio synchronization, thereby avoiding audio jamming, delay and the like from affecting the listening experience of the user.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. A bluetooth device system, comprising:
the first Bluetooth device is used for establishing communication connection of a first communication link with a first Bluetooth chip of the external Bluetooth device;
a second bluetooth device for establishing a communication connection of a second communication link with a second bluetooth chip of the external bluetooth device different from the first bluetooth chip, and for establishing a communication connection of a third communication link with the first bluetooth device;
the first Bluetooth device is used for receiving first audio data sent by the external Bluetooth device through the first Bluetooth chip through the first communication link, and the second Bluetooth device is used for receiving second audio data sent by the external Bluetooth device through the second Bluetooth chip through the second communication link; the first Bluetooth device and the second Bluetooth device are used for synchronously playing audio according to the received first audio data and the second audio data.
2. The system of claim 1,
any one of the first Bluetooth device and the second Bluetooth device is configured to interact with the other one of the first Bluetooth device and the second Bluetooth device through the third communication link by at least one byte of data, so that the first Bluetooth device and the second Bluetooth device perform synchronous playing by using the at least one byte of data; wherein the at least one byte of data comprises at least one of a sequence number of the data packet, a type of the data packet, a reception time difference of the data packet, and a transmission time stamp of the data packet.
3. The system of claim 2,
when the at least one byte of data includes the serial number of the data packet, the first bluetooth device and the second bluetooth device are configured to exchange the serial numbers of the data packets currently received by each other through the third communication link, and compare the serial numbers of the data packets currently received by each other; if the serial numbers of the data packets currently received by the first Bluetooth equipment and the second Bluetooth equipment are different, the one of the first Bluetooth equipment and the second Bluetooth equipment, which has a larger serial number, waits for the other one to receive the data packet with the same larger serial number, and then the audio output is carried out on the data packets corresponding to the data packets with the same serial numbers synchronously; and/or the presence of a gas in the gas,
when the at least one byte of data comprises a type of a data packet, the first bluetooth device and the second bluetooth device are used for exchanging the types of the data packets currently received by each other through the third communication link and determining whether the types of the data packets currently received by each other are the same; if the types of the data packets currently received by the first Bluetooth device and the second Bluetooth device are different, the first Bluetooth device and the second Bluetooth device synchronously output the audio of the data packets corresponding to the same type when waiting for the data packets of the same type received by the other side; and/or the presence of a gas in the gas,
when the at least one byte of data includes a transmission time stamp of a data packet, the first bluetooth device and the second bluetooth device are configured to exchange the transmission time stamps of the data packets currently received by each other through the third communication link, and determine whether the transmission time stamps of the data packets currently received by each other are the same; if the sending timestamps of the data packets currently received by the first Bluetooth device and the second Bluetooth device are different, the first Bluetooth device and the second Bluetooth device synchronously output the audio of the corresponding data packets with the same sending timestamps when waiting for the data packets with the same sending timestamps received by the other party; and/or the presence of a gas in the gas,
when the at least one byte of data comprises a receiving time difference of a data packet, the receiving time difference is a difference between the time when the first Bluetooth device and the second Bluetooth device respectively receive the same data packet and the time when the external Bluetooth device sends the same data packet; the first bluetooth device and the second bluetooth device are configured to exchange the reception time differences of the same data packet received by each other through the third communication link, and compare the reception time differences of the same data packet received by each other; and one of the first Bluetooth device and the second Bluetooth device, which has a smaller receiving time difference of the same received data packet, performs corresponding delay processing according to a difference value between the receiving time differences, so as to synchronously output the corresponding same data packet in an audio mode.
4. The system of claim 1,
the external Bluetooth device is used for continuously sending the same data packet or a plurality of data packets of the audio data to the first Bluetooth device and the second Bluetooth device at least twice according to sequence; the first Bluetooth device and the second Bluetooth device are used for receiving all data packets sent by the external Bluetooth device at least twice continuously, and synchronously outputting audio of the same data packet received at the last time or the plurality of received data packets according to a preset rule at a preset time after the external Bluetooth device finishes sending.
5. The system of claim 4,
the plurality of data packets respectively sent by the external Bluetooth device to the first Bluetooth device and the second Bluetooth device are different; the first Bluetooth device and the second Bluetooth device are used for exchanging data packets received by each other through the third communication link when receiving the data packets sent by the external Bluetooth device respectively, and synchronously outputting audio of the corresponding data packets according to the synchronous information in the received data packets.
6. The system of claim 1,
and at least one of the first Bluetooth device and the second Bluetooth device, which is in normal communication connection with the external Bluetooth device, is configured to receive the online status of the first communication link and the second communication link from the external Bluetooth device and process the audio data into channel data matched with a preset channel processing policy according to the online status of the first communication link and the second communication link and the preset channel processing policy matched with the online status.
7. The system of claim 6,
if the online status is that one of the first communication link and the second communication link is abnormal and the other one is normal, the preset sound channel processing strategy correspondingly sends mixed single-channel data through the normal one of the first communication link and the second communication link, wherein the matched sound channel data correspondingly is the mixed single-channel data, and the mixed single-channel data is sound channel data formed by mixing left sound channel data and right sound channel data.
8. The system of claim 6,
if the online status is that the first communication link and the second communication link are both normal, the preset channel processing strategy correspondingly sends corresponding stereo channel data through the normal first communication link and the normal second communication link, wherein the matched channel data correspondingly is the stereo channel data, and the stereo channel data is left channel data or right channel data.
9. The system of claim 1,
when the packet loss occurs in the first communication link, the second bluetooth device is configured to receive, through the second communication link, the cut data lost by the first communication link, where the cut data is obtained by cutting the data packet passing through the first communication link by the external bluetooth device, and send the cut data to the first bluetooth device through the third communication link; the first Bluetooth device is used for packaging the cutting data and partial data of the data packet received by the first channel link.
10. The system of claim 1,
the first Bluetooth device is used for receiving first idle channel information sent by the first Bluetooth chip and hopping to an idle channel corresponding to the first idle channel information along with the first Bluetooth chip;
the second Bluetooth device is used for receiving second idle channel information sent by the second Bluetooth chip and hopping to an idle channel corresponding to the second idle channel information along with the second Bluetooth chip;
the first idle channel information is generated when the first Bluetooth chip determines all idle channels from all supported channels in a traversing manner during frequency hopping, selects one idle channel from all the idle channels, and sends the rest idle channels to the second Bluetooth chip; the second idle channel information is generated when the second bluetooth chip selects one idle channel from the remaining idle channels.
CN202211105357.7A 2022-09-09 2022-09-09 Bluetooth equipment system Pending CN115499814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211105357.7A CN115499814A (en) 2022-09-09 2022-09-09 Bluetooth equipment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211105357.7A CN115499814A (en) 2022-09-09 2022-09-09 Bluetooth equipment system

Publications (1)

Publication Number Publication Date
CN115499814A true CN115499814A (en) 2022-12-20

Family

ID=84468343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211105357.7A Pending CN115499814A (en) 2022-09-09 2022-09-09 Bluetooth equipment system

Country Status (1)

Country Link
CN (1) CN115499814A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033404A (en) * 2023-03-29 2023-04-28 上海物骐微电子有限公司 Multi-path Bluetooth-linked hybrid communication system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033404A (en) * 2023-03-29 2023-04-28 上海物骐微电子有限公司 Multi-path Bluetooth-linked hybrid communication system and method

Similar Documents

Publication Publication Date Title
US10271152B1 (en) Synchronization of wireless headphones
TWI287371B (en) Method and system for dynamically changing audio stream bit rate based on condition of a bluetooth connection
CN100556043C (en) Crew-served method and system between at least two equipment in the network enabled
CN215187283U (en) Low wireless earphone receiver and wireless earphone that postpones
CN109995479A (en) A kind of voice data communication method, system and audio communication device
CN111901730B (en) TWS earphone interaction method and system and TWS earphone
CN111294783B (en) Audio data transmission method, device, chip and electronic equipment
TW200805901A (en) Method and system for optimized architecture for bluetooth streaming audio applications
CN115499814A (en) Bluetooth equipment system
CN114982369A (en) Audio data transmission method, device, chip and electronic equipment
CN112910488B (en) Public and private network fusion system and data processing method thereof
CN113473319A (en) Bluetooth multi-channel audio playing method, device and system
US11172303B2 (en) Audio concealment method and wireless audio output device using the same
CN113795016A (en) High-reliability Bluetooth multicast audio communication method and system and TWS earphone
CN113825125B (en) Audio sharing method for multiple groups of wireless Bluetooth headsets
CN112954527B (en) Wireless earphone, audio synchronization method, system, equipment and computer medium
US20230353920A1 (en) Wireless headset and audio device
CN115883711A (en) Bluetooth voice communication system and storage circuit
CN115567086B (en) Audio transmission device, audio playing device and audio transmission and synchronization system
CN114666741B (en) Wireless communication method and system
CN115776628B (en) Method for accurate synchronization of two-ear recording of TWS Bluetooth headset
CN216930326U (en) Portable wireless audio distribution device, equipment and wireless audio distribution system
CN209897136U (en) Host device, slave device, and audio conference system
CN115967929A (en) Communication method, bluetooth headset and Bluetooth communication system
CN115103431A (en) Method for realizing synchronous playing of Bluetooth headset equipment and Bluetooth headset equipment thereof

Legal Events

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