CN108337595B - Bluetooth headset realizes the method being precisely played simultaneously - Google Patents
Bluetooth headset realizes the method being precisely played simultaneously Download PDFInfo
- Publication number
- CN108337595B CN108337595B CN201810626195.9A CN201810626195A CN108337595B CN 108337595 B CN108337595 B CN 108337595B CN 201810626195 A CN201810626195 A CN 201810626195A CN 108337595 B CN108337595 B CN 108337595B
- Authority
- CN
- China
- Prior art keywords
- bluetooth headset
- bluetooth
- signal
- headset
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000005236 sound signal Effects 0.000 claims abstract description 155
- 230000001360 synchronised effect Effects 0.000 claims abstract description 65
- 230000008569 process Effects 0.000 claims abstract description 13
- 238000006243 chemical reaction Methods 0.000 claims abstract description 10
- 239000013078 crystal Substances 0.000 claims description 21
- 230000010355 oscillation Effects 0.000 claims description 20
- 238000005070 sampling Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 abstract description 26
- 238000010586 diagram Methods 0.000 description 25
- 230000001960 triggered effect Effects 0.000 description 9
- 230000006872 improvement Effects 0.000 description 4
- 238000007781 pre-processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Headphones And Earphones (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of method that bluetooth headset realization is precisely played simultaneously, and the method includes following method and steps:Bluetooth headset sends audio signal to smart machine to the left, wherein bluetooth headset sends audio signal to the left bluetooth headset described in the initial time of a certain slot to the right, and the duration of every slot is fixed;Right bluetooth headset carries out conversion process to the radiofrequency signal received, obtains time synchronization signals, timing synchronization errors and carrier synchronization error;The bluetooth headset transmission initial time of slot of audio signal is synchronous to the right with the left bluetooth headset for the initial time of time synchronization signals;In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, and the dma controller of left bluetooth headset and right bluetooth headset accesses audio signal simultaneously, and audio signal is sent to respective playback equipment.The present invention is synchronous into row clock with right bluetooth headset to left bluetooth headset first, on the basis of clock synchronizes, accesses data by respective dma controller, reaches and be precisely played simultaneously.
Description
Technical Field
The invention relates to the technical field of wireless communication, in particular to a method for realizing accurate synchronous playing of a Bluetooth headset.
Background
With the social progress and the improvement of the living standard of people, the earphone becomes an indispensable living article for people. Traditional wired earphones are connected with intelligent equipment (such as a smart phone, a notebook computer, a tablet computer and the like) through wires, so that the actions of a wearer can be limited, and the traditional wired earphones are very inconvenient in sports occasions. Meanwhile, the winding and pulling of the earphone cord, as well as the stethoscope effect, all affect the user experience. The common Bluetooth headset cancels the connection between the headset and the intelligent device, but the connection still exists between the left ear and the right ear. True wireless stereo headphones are produced at the same time.
One implementation of the existing true wireless headset is that the smart device performs data transmission (which may be music, voice, or data packets, etc.) with the left and right headsets through bluetooth. For example, stereo music is played, and the intelligent device transmits the music to the left and right earphones respectively. However, the left and right earphones belong to two subsystems respectively, are realized in two sets of different chips and are provided with independent clock systems. In the existing true wireless earphone system, the left ear and the right ear are often difficult to realize better synchronization. For example, when music is played, the music of the left ear and the music of the right ear are difficult to be played simultaneously, which greatly affects the quality of the music. When the voice calls, the voices of the left ear and the right ear are difficult to be played simultaneously accurately.
Therefore, in order to solve the above problems, a method for implementing accurate synchronous playing by a bluetooth headset is needed.
Disclosure of Invention
One aspect of the present invention is a method for implementing accurate synchronous playing of a bluetooth headset, comprising the following steps:
the method comprises the steps that the intelligent equipment sends audio signals to a left Bluetooth headset and forwards the audio signals to a right Bluetooth headset, wherein the left Bluetooth headset sends the audio signals to the right Bluetooth headset at the starting time of a certain slot (time slot number), and the duration of each slot is fixed;
the right Bluetooth earphone carries out conversion processing on the received radio frequency signal to obtain a timing synchronization signal, a timing synchronization error and a carrier synchronization error;
adjusting the crystal oscillation frequency by utilizing a phase-locked loop for the timing synchronization error and/or the carrier synchronization error of the right Bluetooth earphone, so that the clock frequency of the right Bluetooth earphone has the same frequency as the clock frequency of the left Bluetooth earphone, and meanwhile, the starting time of a timing synchronization signal is synchronous with the starting time of a slot of the left Bluetooth earphone for sending an audio signal to the right Bluetooth earphone;
at a certain clock moment, the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers simultaneously, and the DMA (Direct Memory Access) controllers of the left bluetooth headset and the right bluetooth headset Access audio signals simultaneously and send the audio signals to respective playing devices.
Preferably, the step of forwarding the audio signal from the left bluetooth headset to the right bluetooth headset comprises the following steps:
the left Bluetooth earphone carries out monaural audio coding on the audio signal, and the audio signal is converted into a radio frequency signal through the Bluetooth module and is sent to the right Bluetooth earphone; the right Bluetooth earphone receives the radio frequency signal, and the radio frequency signal is converted into an audio signal through the Bluetooth module to be subjected to monaural decoding;
and after the right Bluetooth earphone decodes the audio signal single sound channel, the timing synchronization signal, the timing synchronization error and the carrier synchronization error are obtained through synchronization and demodulation.
Another aspect of the present invention is to provide a method for implementing accurate synchronous play for a bluetooth headset, where the method includes the following steps:
the intelligent equipment divides the audio into a left channel audio signal and a right channel audio signal, and respectively sends the audio signals to the left Bluetooth headset and the right Bluetooth headset through Bluetooth connection; wherein,
the intelligent equipment sends a left channel audio signal and a right channel audio signal to the left Bluetooth headset and the right Bluetooth headset at the starting time of a certain slot, and the duration of each slot is fixed;
the left Bluetooth earphone and the right Bluetooth earphone respectively convert and process the received left sound channel radio frequency signal and the right sound channel radio frequency signal to obtain a timing synchronization signal, a timing synchronization error and a carrier synchronization error;
the timing synchronization error and/or the carrier synchronization error of the left Bluetooth earphone and the right Bluetooth earphone utilizes a phase-locked loop to adjust the crystal oscillation frequency, so that the clock frequencies of the left Bluetooth earphone and the right Bluetooth earphone are the same as the clock frequency of the intelligent device, and meanwhile, the starting time of the timing synchronization signal is synchronous with the starting time of slots for the intelligent device to send left channel audio signals and right channel audio signals to the left Bluetooth earphone and the right Bluetooth earphone;
and at a certain clock moment, the left Bluetooth headset and the right Bluetooth headset trigger respective DMA controllers simultaneously, and the DMA controllers of the left Bluetooth headset and the right Bluetooth headset access audio signals simultaneously and send the audio signals to respective playing devices.
Preferably, the intelligent device performs initialization stereo audio and stereo audio decoding before dividing the audio into a left channel audio signal and a right channel audio signal.
Preferably, the stereo audio is decoded and then left channel audio and right channel audio are separated, and mono channel audio coding is respectively performed on the left channel audio and the right channel audio to obtain a left channel audio signal and a right channel audio signal, and the left channel audio signal and the right channel audio signal are converted into a left channel radio frequency signal and a right channel radio frequency signal through the bluetooth module and then sent to the left bluetooth headset and the right bluetooth headset.
Preferably, the mono coding is audio coded in the Opus format, a format for lossy vocoding.
Preferably, the left bluetooth headset and the right bluetooth headset receive the left channel radio frequency signal and the right channel radio frequency signal and convert the left channel radio frequency signal and the right channel radio frequency signal into a left channel audio signal and a right channel audio signal through the bluetooth module to perform mono channel decoding.
Preferably, the mono decoding employs Opus format for audio decoding.
Preferably, the respectively converting the received left channel radio frequency signal and the received right channel radio frequency signal by the left bluetooth headset and the right bluetooth headset includes:
the radio frequency front end of the left Bluetooth earphone receives a left sound channel radio frequency signal, a digital signal of the left Bluetooth earphone is obtained through sampling of a digital-to-analog converter, and a timing synchronization signal, a timing synchronization error and a carrier synchronization error of the left Bluetooth earphone are obtained through synchronization and demodulation of the digital signal of the left Bluetooth earphone;
the radio frequency front end of the right Bluetooth earphone receives right sound channel radio frequency signals, right Bluetooth earphone digital signals are obtained through sampling of a digital-to-analog converter, and right Bluetooth earphone timing synchronous signals, timing synchronous errors and carrier synchronous errors are obtained through synchronization and demodulation of the right Bluetooth earphone digital signals.
Another aspect of the present invention is a method for implementing accurate synchronous playing for a bluetooth headset, comprising the following steps:
the intelligent device establishes a Bluetooth connection with the left Bluetooth headset, the left headset establishes a Bluetooth connection with the right headset, the intelligent device transmits audio signals to the left Bluetooth headset, and the right headset simultaneously monitors the audio signals, wherein,
the intelligent device sends an audio signal to the left Bluetooth headset at the starting time of a certain slot, and the duration of each slot is fixed;
the left Bluetooth earphone and the right Bluetooth earphone respectively convert and process the received radio frequency signals to obtain timing synchronization signals, timing synchronization errors and carrier synchronization errors;
the timing synchronization error and/or the carrier synchronization error of the left Bluetooth earphone and the right Bluetooth earphone utilizes a phase-locked loop to adjust the crystal oscillation frequency, so that the clock frequencies of the left Bluetooth earphone and the right Bluetooth earphone are the same as the clock frequency of the intelligent device, and meanwhile, the starting time of a timing synchronization signal is synchronous with the starting time of a slot for sending an audio signal by the intelligent device;
and at a certain clock moment, the left Bluetooth headset and the right Bluetooth headset trigger respective DMA controllers simultaneously, and the DMA controllers of the left Bluetooth headset and the right Bluetooth headset access audio signals simultaneously and send the audio signals to respective playing devices.
Preferably, the respectively converting and processing the received radio frequency signals by the left bluetooth headset and the right bluetooth headset comprises:
the radio frequency front end of the left Bluetooth earphone receives a radio frequency signal, a digital signal of the left Bluetooth earphone is obtained through sampling by a digital-to-analog converter, and a timing synchronization signal, a timing synchronization error and a carrier synchronization error of the left Bluetooth earphone are obtained through synchronization and demodulation of the digital signal of the left Bluetooth earphone;
and the radio frequency front end of the right Bluetooth earphone receives a radio frequency signal, a digital signal of the right Bluetooth earphone is obtained by sampling through a digital-to-analog converter, and a timing synchronous signal, a timing synchronous error and a carrier synchronous error of the right Bluetooth earphone are obtained by synchronizing and demodulating the digital signal of the right Bluetooth earphone.
The invention firstly carries out clock synchronization to the Bluetooth receiving and transmitting of the left Bluetooth earphone and the right Bluetooth earphone, and triggers respective DMA (Direct Memory Access) controllers at the same clock moment on the basis of clock synchronization, and the audio signals of the left Bluetooth earphone and the right Bluetooth earphone are accessed by the respective DMA controllers, thereby realizing the accurate synchronous playing of the left earphone and the right earphone.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
Further objects, features and advantages of the present invention will become apparent from the following description of embodiments of the invention, with reference to the accompanying drawings, in which:
fig. 1 shows a block diagram of a system for transmitting audio with a left bluetooth headset and a right bluetooth headset in an intelligent device according to an embodiment of the present invention.
Fig. 2 shows a block diagram of a process for forwarding audio signals from a left bluetooth headset to a right bluetooth headset in an embodiment of the invention.
Fig. 3 shows a timing diagram of multiple slot packets for a left bluetooth headset transmitting a radio frequency signal to a right bluetooth headset in one embodiment of the invention.
Fig. 4 shows a timing diagram of a single slot packet for a left bluetooth headset transmitting a radio frequency signal to a right bluetooth headset in one embodiment of the invention.
Fig. 5 shows a block diagram of the flow of synchronization between a left bluetooth headset and a right bluetooth headset in one embodiment of the invention.
Fig. 6 shows a timing diagram for the triggering of the DMA controller by the left bluetooth headset and the right bluetooth headset in one embodiment of the invention.
Fig. 7 is a block diagram of a system for transmitting audio to a left bluetooth headset and a right bluetooth headset in an intelligent device according to another embodiment of the present invention.
Fig. 8 is a block diagram illustrating the flow of audio preprocessing by the smart device in another embodiment of the present invention.
Fig. 9 is a block diagram illustrating the flow of audio transmission between a smart device and a bluetooth headset in another embodiment of the present invention.
Fig. 10 shows a timing diagram of a smart device sending multiple slot packets of radio frequency signals to a bluetooth headset in another embodiment of the invention.
Fig. 11 shows a timing diagram of a single slot packet of a radio frequency signal sent by a smart device to a bluetooth headset in another embodiment of the invention.
Fig. 12 is a block diagram illustrating a process for synchronizing the smart device and the bluetooth headset in another embodiment of the present invention.
Fig. 13 shows a timing diagram of the triggering of the DMA controller by the left bluetooth headset and the right bluetooth headset in another embodiment of the present invention.
Fig. 14 is a block diagram of a system in which an intelligent device transmits an audio signal to a left bluetooth headset and a right bluetooth headset listens to the audio signal in accordance with still another embodiment of the present invention.
Fig. 15 shows a timing diagram of a smart device sending multiple slot packets of radio frequency signals to a bluetooth headset in yet another embodiment of the invention.
Fig. 16 shows a timing diagram of a single slot packet of a radio frequency signal sent by a smart device to a bluetooth headset in a further embodiment of the invention.
Fig. 17 is a block diagram illustrating a flow chart of synchronization between a smart device and a bluetooth headset in a further embodiment of the present invention.
Fig. 18 shows a timing diagram for the triggering of the DMA controller by the left bluetooth headset and the right bluetooth headset in a further embodiment of the invention.
Detailed Description
The objects and functions of the present invention and methods for accomplishing the same will be apparent by reference to the exemplary embodiments. However, the present invention is not limited to the exemplary embodiments disclosed below; it can be implemented in different forms. The nature of the description is merely to assist those skilled in the relevant art in a comprehensive understanding of the specific details of the invention.
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings, and related technical terms should be well known to those skilled in the art. In the drawings, the same reference numerals denote the same or similar parts, or the same or similar steps, unless otherwise specified. The present invention will be described with reference to specific examples. The left bluetooth headset and the right bluetooth headset mentioned in the present invention are not fixed, and those skilled in the art will understand that the left bluetooth headset and the right bluetooth headset may be replaced with each other.
Example 1:
according to the invention, the method for realizing synchronous Bluetooth playing in the embodiment is suitable for audio data transmission between intelligent equipment (such as an intelligent music player of a mobile phone, an ipad and the like) and a left Bluetooth headset and a right Bluetooth headset, and technology improvement is carried out on the basis that the existing left Bluetooth headset and the existing right Bluetooth headset are independent subsystems respectively, so that music played by the left Bluetooth headset and the right Bluetooth headset is played synchronously. As shown in fig. 1, a system block diagram of an embodiment of the present invention is a system block diagram of an intelligent device for sending Audio to a left bluetooth headset and a right bluetooth headset, a bluetooth connection (A2 DP: Advanced Audio Distribution Profile, Audio transmission model protocol) is established between the intelligent device 10 and the left bluetooth headset 20, and a bluetooth connection (A2 DP: Advanced Audio Distribution Profile, Audio transmission model protocol) is established between the left bluetooth headset 20 and the right bluetooth headset 30. The smart device 10 sends an audio signal to the left bluetooth headset 20 and the left bluetooth headset 20 forwards the audio signal to the right bluetooth headset 30.
According to the present invention, the method for implementing accurate and synchronous play of a bluetooth headset in this embodiment includes the following steps:
intelligent device left Bluetooth earphone audio signal transmission
The smart device 10 sends an audio signal to the left bluetooth headset 20, which is transmitted to the left bluetooth headset 20 via the bluetooth connection.
Left Bluetooth earphone forwards audio signal to right Bluetooth earphone
Referring to fig. 2, a flow chart of audio signals forwarded by a left bluetooth headset to a right bluetooth headset in an embodiment of the present invention is shown, where the left bluetooth headset 20 performs a monaural audio coding 101 on the audio signals, converts the audio signals into radio frequency signals 102 through a bluetooth module, and sends the radio frequency signals 102 to the right bluetooth headset. The right bluetooth headset 30 receives the rf signal 202, and converts the rf signal into an audio signal through the bluetooth module for mono decoding 201. The right bluetooth headset 30 decodes the audio signal monaural, and then obtains a timing synchronization signal, a timing synchronization error, and a carrier synchronization error through synchronization and demodulation.
According to the embodiment of the present invention, the audio coding is performed on the monaural channel by using the Opus format, and the audio decoding is performed on the monaural channel by using the Opus format, so that the number of retransmission times can be increased by using higher coding efficiency of the Opus, thereby improving the reliability of data transmission between the left bluetooth headset 20 and the right bluetooth headset 30.
According to the present invention, the audio signal sent by the left bluetooth headset 20 to the right bluetooth headset 30 in this embodiment may be a multi-slot packet, or may be a single slot packet in some embodiments. The left bluetooth headset 20 transmits an audio signal to the right bluetooth headset 30 at a start time of a certain slot, and the duration of each slot is fixed. Fig. 3 is a timing diagram of multiple slot packets of a radio frequency signal transmitted from a left bluetooth headset to a right bluetooth headset according to an embodiment of the present invention, fig. 4 is a timing diagram of a single slot packet of a radio frequency signal transmitted from a left bluetooth headset to a right bluetooth headset according to an embodiment of the present invention,
whether multiple slot packets or a single slot packet is used, the audio signal sent by the left bluetooth headset 20 to the right bluetooth headset 30 is always at a starting time of a certain slot, and the duration of each slot is fixed (e.g., 625us for each slot).
Clock synchronization of left Bluetooth earphone and right Bluetooth earphone
As shown in fig. 5, a flow chart of synchronization between the left bluetooth headset and the right bluetooth headset in an embodiment of the present invention is that the right bluetooth headset 30 performs conversion processing on the received radio frequency signal to obtain a timing synchronization signal, a timing synchronization error, and a carrier synchronization error. Specifically, the rf front end 203 of the right bluetooth headset receives an rf signal, and obtains an audio signal (digital signal) through sampling by a digital-to-analog converter, and the audio signal is synchronized and demodulated to obtain a timing synchronization signal, a timing synchronization error, and a carrier synchronization error of the right bluetooth headset.
The radio frequency front end 203 of the right bluetooth headset receives the radio frequency signal, obtains an audio signal through digital-to-analog conversion 204, and obtains a timing synchronization signal, a timing synchronization error 206 and a carrier synchronization error 208 through synchronization and demodulation 205 after decoding a single channel of the audio signal.
The timing synchronization error and/or carrier synchronization error 208 of the right bluetooth headset 30 is adjusted by the phase locked loop 207 to the crystal oscillation frequency so that the clock frequency of the right bluetooth headset is the same frequency as the clock frequency of the left bluetooth headset. Meanwhile, the starting time of the timing synchronization signal is synchronous with the starting time of the slot of the left Bluetooth earphone transmitting the audio signal to the right Bluetooth earphone.
The demodulated signal after the crystal oscillation frequency is adjusted by the phase-locked loop 207 is fed back to the rf front-end and the frequency divider. Through the signal synchronization processing, clock synchronization is realized between the left Bluetooth earphone and the right Bluetooth earphone.
In this embodiment, the crystal oscillation frequency is adjusted by the phase-locked loop 207 for both the timing synchronization error and the carrier synchronization error, and in some embodiments, the crystal oscillation frequency may be adjusted by the phase-locked loop 207 for any one of the timing synchronization error and the carrier synchronization error.
Synchronous play of left bluetooth headset and right bluetooth headset
Through the process, clock synchronization of the left Bluetooth headset and the right Bluetooth headset is achieved. According to the invention, the audio signal synchronous playing is carried out on the basis of clock synchronization.
As shown in fig. 6, in an embodiment of the invention, a timing chart of the DMA controllers triggered by the left bluetooth headset and the right bluetooth headset is shown, and at a certain clock time, the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously. Since the bluetooth clocks of the left and right bluetooth headsets are already synchronized, for example, the bluetooth clock of the left bluetooth headset is synchronized at the clock time (1, 2,3, … …, N, N +1, M) of SLOT N with the bluetooth clock of the right bluetooth headset at the clock time (1, 2,3, … …, N, N +1, M) of SLOT N. At a certain clock time (e.g., time n), the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously, and the DMA controllers of the left bluetooth headset and the right bluetooth headset access the audio signal simultaneously and send the audio signal to their respective playback devices (e.g., playback speakers).
Similarly, the bluetooth clock of the left bluetooth headset is synchronized with the bluetooth clock of the right bluetooth headset at the clock times of SLOT N +1, SLOT N +2, …, and SLOT N + N, for example, the bluetooth clock of the left bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, and the bluetooth clock of the right bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, so that the bluetooth clock of the right bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, and therefore the left bluetooth headset and the right bluetooth headset synchronously access data through respective DMA control, and further the audio signals are simultaneously transmitted to respective playback devices for accurate playback.
In the invention, for the left bluetooth headset and the right bluetooth headset to trigger respective DMA controllers at the same time at a certain clock time, in some embodiments, the left bluetooth headset and the right bluetooth headset agree a certain clock time in advance, for example, agree n times, and then the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers at the same time at n times.
In other embodiments, the left bluetooth headset or the right bluetooth headset sends a trigger signal to the other party through bluetooth, so that the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers at a certain clock time. For example, the left bluetooth headset triggers the DMA controller at n moments, then the left bluetooth headset sends a trigger signal to the right bluetooth headset through bluetooth in advance, notifies the right bluetooth headset of the trigger moment of the left bluetooth headset, namely: informing the right bluetooth headset that the DMA controller will be triggered at time n. And after the right Bluetooth headset receives the trigger signal, the right Bluetooth headset and the left Bluetooth headset trigger respective DMA controllers at the moment of n.
Furthermore, after the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously, the DMA controllers of the left bluetooth headset and the right bluetooth headset access the audio signals simultaneously. Then, after every fixed time interval (for example, 2 ms), the left bluetooth headset and the right bluetooth headset are repeatedly triggered by respective DMA controllers.
The invention firstly carries out clock synchronization to the Bluetooth receiving and transmitting of the left Bluetooth earphone and the right Bluetooth earphone, and triggers respective DMA (Direct Memory Access) controllers at the same clock moment on the basis of clock synchronization, and the audio signals of the left Bluetooth earphone and the right Bluetooth earphone are accessed by the respective DMA controllers, thereby realizing the accurate synchronous playing of the left earphone and the right earphone.
Example 2:
according to the invention, the method for realizing Bluetooth synchronous playing in the embodiment is suitable for audio data transmission between intelligent equipment (such as an intelligent music player of a mobile phone, an ipad and the like) and a left Bluetooth headset and a right Bluetooth headset, and technology improvement is carried out on the basis that the existing left Bluetooth headset and the existing right Bluetooth headset are independent subsystems respectively, so that music played by the left Bluetooth headset and the right Bluetooth headset is played synchronously. As shown in fig. 7, a system block diagram of the smart device and the left and right bluetooth headsets for sending Audio in another embodiment of the present invention, bluetooth connections (A2 DP: Advanced Audio Distribution Profile, Audio transmission model protocol) are respectively established between the smart device 10 and the left and right bluetooth headsets 20 and 30, and the smart device 10 sends radio frequency signals to the left and right bluetooth headsets 20 and 30, respectively.
According to the present invention, the method for implementing accurate and synchronous play of a bluetooth headset in this embodiment includes the following steps:
the smart device 10 divides the audio into a left channel audio signal and a right channel audio signal, and transmits the audio signals to the left bluetooth headset 20 and the right bluetooth headset 30 through bluetooth connection, respectively. The pre-processing of stereo audio encoding and stereo audio decoding is performed before the smart device 10 separates the audio into a left channel audio signal and a right channel audio signal.
Smart device pre-processing stereo audio
As shown in fig. 8, which is a block diagram illustrating a process of preprocessing audio by the smart device of the present invention, stereo audio played by the smart device 10 is already encoded, and the encoded stereo audio is initialized to the stereo audio 401.
After the initial stereo audio processing, stereo audio decoding 402 is performed on the stereo audio, and after the stereo audio decoding 402, left channel stereo audio and right channel stereo audio are separated, that is, the decoded stereo audio is divided into left channel audio 403 and right channel audio 405.
The method comprises the steps of respectively carrying out single-channel audio coding on a left-channel audio 403 and a right-channel audio 405, namely carrying out left-channel coding 404 on the left-channel audio, carrying out right-channel audio coding 406 on the right-channel audio to obtain a left-channel audio signal and a right-channel audio signal, and converting the left-channel audio signal and the right-channel audio signal into a left-channel radio-frequency signal and a right-channel radio-frequency signal through a Bluetooth module to be sent.
Audio transmission between intelligent device and Bluetooth headset
The left channel audio signal is transmitted to the left bluetooth headset 20 through the bluetooth connection, and the right channel radio frequency signal is transmitted to the right bluetooth headset 30 through the bluetooth connection. According to the embodiment, the data transmission amount of the intelligent device to the earphone is reduced by separating the mode of respectively transmitting the left channel audio signal and the right channel audio signal.
As shown in fig. 9, a flow chart of audio transmission between the smart device and the bluetooth headset in another embodiment of the present invention is shown, where the left bluetooth headset and the right bluetooth headset receive the left channel radio frequency signal and the right channel radio frequency signal and convert the left channel radio frequency signal and the right channel radio frequency signal into a left channel audio signal and a right channel audio signal through the bluetooth module to perform mono channel decoding. In the embodiment, the audio transmission process between the smart device 10 and the left bluetooth headset 20 is taken as an example, and it should be understood that the audio transmission between the smart device 10 and the bluetooth headset should be synchronized with the audio transmission of the left bluetooth headset 20 and the audio transmission of the right bluetooth headset 30.
After left channel audio encoding 404 (which should be understood to include both left channel audio encoding and right channel audio encoding) is performed by the smart device 10, it is converted to a radio frequency signal 407 by the bluetooth module. The radio frequency signal is sent to the left bluetooth headset 20 through bluetooth connection, the left bluetooth headset receives the radio frequency signal 408, the left channel audio decoding 409 is carried out after the conversion of the bluetooth module, and the music is played by the left bluetooth headset 20 after the decoding.
According to the embodiment of the invention, the monophonic coding uses the Opus format for audio coding, namely the left channel audio coding and the right channel audio coding use the Opus format for audio coding. And the monaural decoding adopts the Opus format for audio decoding, namely, the left channel audio decoding and the right channel audio decoding adopt the Opus format for audio decoding. The invention adopts the higher coding efficiency of the Opus to increase the retransmission times, thereby improving the reliability of data transmission between the intelligent equipment and the earphone.
The smart device 10 may send the left channel audio signal and the right channel audio signal to the left bluetooth headset 20 and the right bluetooth headset 30 as multiple slot packets, or as a single slot packet in some embodiments. Fig. 10 is a timing chart of a plurality of slot packets of a radio frequency signal sent by a smart device to a bluetooth headset according to another embodiment of the present invention, and fig. 11 is a timing chart of a single slot packet of a radio frequency signal sent by a smart device to a bluetooth headset according to another embodiment of the present invention. The intelligent device sends the starting time of the left channel audio signal and the right channel audio signal in a certain slot to the left Bluetooth headset and the right Bluetooth headset, and the duration of each slot is fixed. That is, at a certain slot starting time, the smart device sends a left channel audio signal and a right channel audio signal to the left bluetooth headset and the right bluetooth headset. Namely: whether multiple slot packets or a single slot packet is used, the smart device 10 always sends audio signals to the left bluetooth headset 20 and the right bluetooth headset 30 at a start time of a certain slot, and the duration of each slot is fixed (e.g., 625us for each slot).
Clock synchronization of intelligent device and Bluetooth headset audio transmission
And the left Bluetooth earphone and the right Bluetooth earphone respectively convert and process the received left sound channel radio frequency signal and the right sound channel radio frequency signal to obtain a timing synchronization signal, a timing synchronization error and a carrier synchronization error. The conversion processing specifically includes:
the radio frequency front end of the left Bluetooth earphone receives a left sound channel radio frequency signal, a digital-to-analog converter samples the left Bluetooth earphone digital signal, and the left Bluetooth earphone digital signal is synchronized and demodulated to obtain a left Bluetooth earphone timing synchronization signal, a timing synchronization error and a carrier synchronization error.
The radio frequency front end of the right Bluetooth earphone receives the right sound channel radio frequency signal, the right Bluetooth earphone digital signal is obtained through sampling of the digital-to-analog converter, and the right Bluetooth earphone digital signal is synchronized and demodulated to obtain a right Bluetooth earphone timing synchronization signal, a timing synchronization error and a carrier synchronization error.
The timing synchronization error and/or the carrier synchronization error of the left Bluetooth earphone and the right Bluetooth earphone utilize a phase-locked loop to adjust the crystal oscillation frequency, so that the clock frequencies of the left Bluetooth earphone and the right Bluetooth earphone are the same as the clock frequency of the intelligent device, and meanwhile, the starting time of the timing synchronization signal is synchronous with the starting time of slots for the intelligent device to send the left channel audio signal and the right channel audio signal to the left Bluetooth earphone and the right Bluetooth earphone.
As shown in fig. 12, a flow chart of synchronization between the smart device and the bluetooth headset in another embodiment of the present invention is also taken as an example of signal synchronization between the smart device and the left bluetooth headset in this embodiment, it should be understood that, while signal clock synchronization is performed between the smart device and the left bluetooth headset, signal clock synchronization is performed between the smart device and the right bluetooth headset in the same synchronization method.
The rf front end 503 of the left bluetooth headset receives the left channel rf signal, obtains the left bluetooth headset digital signal through digital-to-analog conversion 504, and obtains the timing synchronization signal 509, the timing synchronization error 506, and the carrier synchronization error 508 through synchronization and demodulation 505.
The timing synchronization error and/or the carrier synchronization error 508 adjust the crystal oscillation frequency through the phase-locked loop 507, so that the frequency of the left bluetooth headset is the same as the clock frequency of the intelligent device. Meanwhile, the starting time of the timing synchronization signal 509 is synchronized with the starting time of the slot of the left channel audio signal sent by the intelligent device to the left Bluetooth headset, and the demodulation signal after the crystal oscillation frequency is adjusted by the phase-locked loop 507 is fed back to the radio frequency front end and the frequency divider.
Through the signal synchronization processing, clock synchronization is achieved between the left Bluetooth headset and the intelligent device. In this embodiment, clock synchronization is realized between the right bluetooth headset and the intelligent device in the same manner, so that clock synchronization between the left bluetooth headset and the right bluetooth headset is realized.
In this embodiment, the crystal oscillation frequency is adjusted by the phase-locked loop 507 for both the timing synchronization error and the carrier synchronization error, and in some embodiments, the crystal oscillation frequency may be adjusted by any one of the timing synchronization error and the carrier synchronization error through the phase-locked loop 507.
In this implementation, when playing stereo music, the smart device first divides the stereo music into left and right channel audio signals and sends the audio signals to the left and right bluetooth headsets. Because left bluetooth headset and right bluetooth headset are respectively an independent subsystem, possess independent crystal and clock system separately, carry out the audio frequency transmission through between smart machine and left bluetooth headset, the right bluetooth headset, realized that left bluetooth headset and right bluetooth headset are synchronous with the clock of smart machine to the synchronization between left bluetooth headset and the right bluetooth headset has been realized indirectly.
Synchronous play of left bluetooth headset and right bluetooth headset
Through the process, the clock synchronization of the left Bluetooth headset and the Bluetooth headset is realized. According to the invention, the audio signal synchronous playing is carried out on the basis of clock synchronization.
As shown in fig. 13, the timing chart of the DMA controller triggered by the left bluetooth headset and the right bluetooth headset in another embodiment of the present invention, at a certain clock time, the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously. Since the bluetooth clocks of the left and right bluetooth headsets are already synchronized, for example, the bluetooth clock of the left bluetooth headset is synchronized at the clock time (1, 2,3, … …, N, N +1, M) of SLOT N with the bluetooth clock of the right bluetooth headset at the clock time (1, 2,3, … …, N, N +1, M) of SLOT N. At a certain clock time (e.g., time n), the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously, and the DMA controllers of the left bluetooth headset and the right bluetooth headset access the audio signal simultaneously and send the audio signal to their respective playback devices (e.g., playback speakers).
Similarly, the bluetooth clock of the left bluetooth headset is synchronized with the bluetooth clock of the right bluetooth headset at the clock times of SLOT N +1, SLOT N +2, …, and SLOT N + N, for example, the bluetooth clock of the left bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, and the bluetooth clock of the right bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, so that the bluetooth clock of the right bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, and therefore the left bluetooth headset and the right bluetooth headset synchronously access data through respective DMA control, and further the audio signals are simultaneously transmitted to respective playback devices for accurate playback.
In the invention, for the left bluetooth headset and the right bluetooth headset to trigger respective DMA controllers at the same time at a certain clock time, in some embodiments, the left bluetooth headset and the right bluetooth headset agree a certain clock time in advance, for example, agree n times, and then the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers at the same time at n times.
In other implementations, the left bluetooth headset or the right bluetooth headset sends a trigger signal to the other party through bluetooth, so that the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers at a certain clock time at the same time. For example, the left bluetooth headset triggers the DMA controller at n moments, then the left bluetooth headset sends a trigger signal to the right bluetooth headset through bluetooth in advance, notifies the right bluetooth headset of the trigger moment of the left bluetooth headset, namely: informing the right bluetooth headset that the DMA controller will be triggered at time n. And after the right Bluetooth headset receives the trigger signal, the right Bluetooth headset and the left Bluetooth headset trigger respective DMA controllers at the moment of n.
Furthermore, after the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously, the DMA controllers of the left bluetooth headset and the right bluetooth headset access the audio signals simultaneously. Then, after every fixed time interval (for example, 2 ms), the left bluetooth headset and the right bluetooth headset are repeatedly triggered by respective DMA controllers.
The invention firstly carries out clock synchronization to the Bluetooth receiving and transmitting of the left Bluetooth earphone and the right Bluetooth earphone, and triggers respective DMA (Direct Memory Access) controllers at the same clock moment on the basis of clock synchronization, and the audio signals of the left Bluetooth earphone and the right Bluetooth earphone are accessed by the respective DMA controllers, thereby realizing the accurate synchronous playing of the left earphone and the right earphone.
Example 3:
according to the invention, the method for realizing synchronous Bluetooth playing is suitable for audio data transmission between the intelligent device (such as an intelligent music player like a mobile phone and an ipad) and the left Bluetooth headset, and the right Bluetooth headset monitors the audio signal sent by the intelligent device to the left Bluetooth headset. The technical improvement is carried out on the basis that the existing left Bluetooth earphone and the existing right Bluetooth earphone are independent subsystems respectively, so that the music played by the left Bluetooth earphone and the right Bluetooth earphone is played synchronously. As shown in fig. 14, a system diagram of an intelligent device sending an Audio signal to a left bluetooth headset and a right bluetooth headset listening to the Audio signal in a further embodiment of the present invention is shown, where the intelligent device 10 establishes a bluetooth connection (A2 DP: Advanced Audio Distribution Profile, Audio transmission model protocol) with the left bluetooth headset 20, establishes a bluetooth connection (A2 DP: Advanced Audio Distribution Profile, Audio transmission model protocol) between the left bluetooth headset 20 and the right bluetooth headset 30, the intelligent device 10 sends a radio frequency signal to the left bluetooth headset 20, and the right bluetooth headset 30 listens to the radio frequency signal sent by the intelligent device 10.
Audio transmission between intelligent device and Bluetooth headset
In the embodiment of the present invention, after the bluetooth connections established between the smart device 10 and the left headset 20 and between the left headset 20 and the right headset 30 according to the A2DP protocol are established, the left headset 20 transmits the bluetooth address of the smart device 10 and the encrypted parameter information of the bluetooth link between the left headset 20 and the smart device 10 to the right headset 30, so as to facilitate the right headset 30 to listen and receive the audio signal transmitted by the smart device 10. When the stereo music is played, the smart device 10 plays the stereo music, and sends the audio data packet to the left earphone 20 through bluetooth connection (A2 DP protocol), and the right earphone acquires the audio signal sent by the smart device 10 to the left bluetooth earphone 20 according to the bluetooth address of the smart device 10 and the encryption parameter information linked by the bluetooth of the left earphone 20 and the smart device 10.
In this embodiment, the smart device 10 performs monaural audio coding on the audio signal, converts the audio signal into a radio frequency signal through the bluetooth module, and sends the radio frequency signal to the left bluetooth headset 20. The left bluetooth headset 20 receives the radio frequency signal, converts the radio frequency signal into an audio signal through the bluetooth module, performs monaural decoding, and obtains a timing synchronization signal, a timing synchronization error and a carrier synchronization error through synchronization and demodulation. Meanwhile, the right bluetooth headset 30 decodes the monitored audio signal monaural, and then obtains a timing synchronization signal, a timing synchronization error, and a carrier synchronization error through synchronization and demodulation.
According to the embodiment of the present invention, the audio coding is performed on the monaural channel by using the Opus format, and the audio decoding is performed on the monaural channel by using the Opus format, so that the number of retransmission times can be increased by using higher coding efficiency of the Opus, thereby improving the reliability of data transmission between the left bluetooth headset 20 and the right bluetooth headset 30.
The smart device 10 left bluetooth headset 20 audio signal may be a multiple slot packet, or in some embodiments, a single slot packet. Fig. 15 is a timing chart of a plurality of slot packets of a radio frequency signal sent by the smart device to the bluetooth headset according to another embodiment of the present invention, and fig. 16 is a timing chart of a single slot packet of a radio frequency signal sent by the smart device to the bluetooth headset according to another embodiment of the present invention. The smart device sends an audio signal to the left bluetooth headset at the start time of a certain slot, and the duration of each slot is fixed. That is, at a certain slot start time, the smart device is listening to the left bluetooth headset audio signal. Namely: whether multiple slot packets or single slot packets are used, the smart device 10 will always send audio signals to the left bluetooth headset 20 at the start time of a certain slot, and the duration of each slot is fixed (e.g., 625us for each slot).
Clock synchronization of intelligent device and Bluetooth headset audio transmission
The left Bluetooth earphone and the right Bluetooth earphone respectively convert and process the received radio frequency signals to obtain timing synchronization signals, timing synchronization errors and carrier synchronization errors. The conversion processing specifically includes:
the radio frequency front end of the left Bluetooth earphone receives a radio frequency signal, a digital-to-analog converter samples the radio frequency signal to obtain a left Bluetooth earphone digital signal, and the left Bluetooth earphone digital signal is synchronized and demodulated to obtain a left Bluetooth earphone timing synchronization signal, a timing synchronization error and a carrier synchronization error.
And the right Bluetooth earphone digital signal is synchronized and demodulated to obtain a right Bluetooth earphone timing synchronization signal, a timing synchronization error and a carrier synchronization error.
The timing synchronization error and/or the carrier synchronization error of the left bluetooth headset and the right bluetooth headset adjust the crystal oscillation frequency by using the phase-locked loop, so that the clock frequencies of the left bluetooth headset and the right bluetooth headset are the same as the clock frequency of the intelligent device 10, and meanwhile, the starting time of the timing synchronization signal is synchronous with the starting time of slots for the intelligent device to send the left channel audio signal and the right channel audio signal to the left bluetooth headset and the right bluetooth headset.
As shown in fig. 17, a flow chart of synchronization between the intelligent device and the bluetooth headset in another embodiment of the present invention is that a radio frequency front end 603 of the left bluetooth headset receives a radio frequency signal, obtains a left bluetooth headset digital signal through digital-to-analog conversion 604, and obtains a timing synchronization signal 609, a timing synchronization error 606, and a carrier synchronization error 608 through synchronization and demodulation 605.
The timing synchronization error and/or carrier synchronization error 608 adjusts the crystal oscillation frequency via the phase locked loop 607 such that the left bluetooth headset is at the same frequency as the clock frequency of the smart device. Meanwhile, the starting time of the timing synchronization signal 609 is synchronized with the starting time of the slot of the left Bluetooth headset of the intelligent device for sending the audio signal, and the demodulation signal after the crystal oscillation frequency is adjusted by the phase-locked loop 607 is fed back to the radio frequency front end and the frequency divider.
Through the signal synchronization processing, clock synchronization is achieved between the left Bluetooth headset and the intelligent device. In this embodiment, the right bluetooth headset 30 sends an audio signal to the left bluetooth headset according to the monitored smart device, and clock synchronization with the smart device 10 is achieved in the same manner, so that clock synchronization between the left bluetooth headset and the right bluetooth headset is achieved.
In this embodiment, the crystal oscillation frequency is adjusted by the phase-locked loop 607 for both the timing synchronization error and the carrier synchronization error, and in some embodiments, the crystal oscillation frequency is adjusted by the phase-locked loop 607 for any one of the timing synchronization error and the carrier synchronization error.
Synchronous play of left bluetooth headset and right bluetooth headset
Through the process, the clock synchronization of the left Bluetooth headset and the Bluetooth headset is realized. According to the invention, the audio signal synchronous playing is carried out on the basis of clock synchronization.
As shown in fig. 18, the timing chart of the DMA controller triggered by the left bluetooth headset and the right bluetooth headset in the further embodiment of the present invention, at a certain clock time, the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously. Since the bluetooth clocks of the left and right bluetooth headsets are already synchronized, for example, the bluetooth clock of the left bluetooth headset is synchronized at the clock time (1, 2,3, … …, N, N +1, M) of SLOT N with the bluetooth clock of the right bluetooth headset at the clock time (1, 2,3, … …, N, N +1, M) of SLOT N. At a certain clock time (e.g., time n), the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously, and the DMA controllers of the left bluetooth headset and the right bluetooth headset access the audio signal simultaneously and send the audio signal to their respective playback devices (e.g., playback speakers).
Similarly, the bluetooth clock of the left bluetooth headset is synchronized with the bluetooth clock of the right bluetooth headset at the clock times of SLOT N +1, SLOT N +2, …, and SLOT N + N, for example, the bluetooth clock of the left bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, and the bluetooth clock of the right bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, so that the bluetooth clock of the right bluetooth headset triggers the DMA controller to start accessing data at the p time of SLOT N +2, and therefore the left bluetooth headset and the right bluetooth headset synchronously access data through respective DMA control, and further the audio signals are simultaneously transmitted to respective playback devices for accurate playback.
In the invention, for the left bluetooth headset and the right bluetooth headset to trigger respective DMA controllers at the same time at a certain clock time, in some embodiments, the left bluetooth headset and the right bluetooth headset agree a certain clock time in advance, for example, agree n times, and then the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers at the same time at n times.
In other implementations, the left bluetooth headset or the right bluetooth headset sends a trigger signal to the other party through bluetooth, so that the left bluetooth headset and the right bluetooth headset trigger respective DMA controllers at a certain clock time at the same time. For example, the left bluetooth headset triggers the DMA controller at n moments, then the left bluetooth headset sends a trigger signal to the right bluetooth headset through bluetooth in advance, notifies the right bluetooth headset of the trigger moment of the left bluetooth headset, namely: informing the right bluetooth headset that the DMA controller will be triggered at time n. And after the right Bluetooth headset receives the trigger signal, the right Bluetooth headset and the left Bluetooth headset trigger respective DMA controllers at the moment of n.
Furthermore, after the left bluetooth headset and the right bluetooth headset trigger their respective DMA controllers simultaneously, the DMA controllers of the left bluetooth headset and the right bluetooth headset access the audio signals simultaneously. Then, after every fixed time interval (for example, 2 ms), the left bluetooth headset and the right bluetooth headset are repeatedly triggered by respective DMA controllers.
The invention firstly carries out clock synchronization to the Bluetooth receiving and transmitting of the left Bluetooth earphone and the right Bluetooth earphone, and triggers respective DMA (Direct Memory Access) controllers at the same clock moment on the basis of clock synchronization, and the audio signals of the left Bluetooth earphone and the right Bluetooth earphone are accessed by the respective DMA controllers, thereby realizing the accurate synchronous playing of the left earphone and the right earphone.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
Claims (10)
1. A method for realizing accurate synchronous playing of a Bluetooth headset is characterized by comprising the following steps:
the method comprises the steps that the intelligent equipment sends audio signals to a left Bluetooth headset and forwards the audio signals to a right Bluetooth headset, wherein the left Bluetooth headset sends the audio signals to the right Bluetooth headset at the starting time of a certain slot number (slot), and the duration of each slot is fixed;
the right Bluetooth earphone carries out conversion processing on the received radio frequency signal to obtain a timing synchronization signal, a timing synchronization error and a carrier synchronization error;
adjusting the crystal oscillation frequency by utilizing a phase-locked loop for the timing synchronization error and/or the carrier synchronization error of the right Bluetooth earphone, so that the clock frequency of the right Bluetooth earphone has the same frequency as the clock frequency of the left Bluetooth earphone, and meanwhile, the starting time of a timing synchronization signal is synchronous with the starting time of a slot of the left Bluetooth earphone for sending an audio signal to the right Bluetooth earphone;
at a certain clock moment, the left Bluetooth headset and the right Bluetooth headset trigger respective DMA controllers simultaneously, and the Direct Memory Access (DMA) controllers of the left Bluetooth headset and the right Bluetooth headset access audio signals simultaneously and send the audio signals to respective playing devices.
2. The method of claim 1, wherein the step of forwarding audio signals from the left bluetooth headset to the right bluetooth headset comprises the steps of:
the left Bluetooth earphone carries out monaural audio coding on the audio signal, and the audio signal is converted into a radio frequency signal through the Bluetooth module and is sent to the right Bluetooth earphone; the right Bluetooth earphone receives the radio frequency signal, and the radio frequency signal is converted into an audio signal through the Bluetooth module to be subjected to monaural decoding;
and after the right Bluetooth earphone decodes the audio signal single sound channel, the timing synchronization signal, the timing synchronization error and the carrier synchronization error are obtained through synchronization and demodulation.
3. A method for realizing accurate synchronous playing of a Bluetooth headset is characterized by comprising the following steps:
the intelligent equipment divides the audio into a left channel audio signal and a right channel audio signal, and respectively sends the audio signals to the left Bluetooth headset and the right Bluetooth headset through Bluetooth connection; wherein,
at the starting time of a certain slot, the intelligent device sends a left channel audio signal and a right channel audio signal to the left Bluetooth headset and the right Bluetooth headset, and the duration of each slot is fixed;
the left Bluetooth earphone and the right Bluetooth earphone respectively convert and process the received left sound channel radio frequency signal and the right sound channel radio frequency signal to obtain a timing synchronization signal, a timing synchronization error and a carrier synchronization error;
the timing synchronization error and/or the carrier synchronization error of the left Bluetooth earphone and the right Bluetooth earphone utilizes a phase-locked loop to adjust the crystal oscillation frequency, so that the clock frequencies of the left Bluetooth earphone and the right Bluetooth earphone are the same as the clock frequency of the intelligent device, and meanwhile, the starting time of the timing synchronization signal is synchronous with the starting time of slots for the intelligent device to send left channel audio signals and right channel audio signals to the left Bluetooth earphone and the right Bluetooth earphone;
and at a certain clock moment, the left Bluetooth headset and the right Bluetooth headset trigger respective DMA controllers simultaneously, and the DMA controllers of the left Bluetooth headset and the right Bluetooth headset access audio signals simultaneously and send the audio signals to respective playing devices.
4. The method of claim 3, wherein the smart device initiates stereo audio and stereo audio decoding before separating the audio into a left channel audio signal and a right channel audio signal.
5. The method according to claim 4, wherein the stereo audio is decoded and then separated into a left channel audio and a right channel audio, and the left channel audio and the right channel audio are respectively subjected to mono audio coding to obtain a left channel audio signal and a right channel audio signal, and the left channel audio signal and the right channel audio signal are converted into a left channel radio frequency signal and a right channel radio frequency signal by a Bluetooth module and then sent to a left Bluetooth headset and a right Bluetooth headset.
6. The method of claim 3, wherein the left and right Bluetooth headsets receive the left and right channel RF signals and convert the signals into left and right channel audio signals for mono-channel decoding.
7. The method of claim 3, wherein the left and right Bluetooth headsets respectively convert the received left and right channel radio frequency signals by:
the radio frequency front end of the left Bluetooth earphone receives a left sound channel radio frequency signal, a digital signal of the left Bluetooth earphone is obtained through sampling of a digital-to-analog converter, and a timing synchronization signal, a timing synchronization error and a carrier synchronization error of the left Bluetooth earphone are obtained through synchronization and demodulation of the digital signal of the left Bluetooth earphone;
the radio frequency front end of the right Bluetooth earphone receives right sound channel radio frequency signals, right Bluetooth earphone digital signals are obtained through sampling of a digital-to-analog converter, and right Bluetooth earphone timing synchronous signals, timing synchronous errors and carrier synchronous errors are obtained through synchronization and demodulation of the right Bluetooth earphone digital signals.
8. A method for realizing accurate synchronous playing of a Bluetooth headset is characterized by comprising the following steps:
the intelligent device establishes a Bluetooth connection with the left Bluetooth headset, the left headset establishes a Bluetooth connection with the right headset, the intelligent device transmits audio signals to the left Bluetooth headset, and the right headset simultaneously monitors the audio signals, wherein,
the intelligent device sends an audio signal to the left Bluetooth headset at the starting time of a certain slot, and the duration of each slot is fixed;
the left Bluetooth earphone and the right Bluetooth earphone respectively convert and process the received radio frequency signals to obtain timing synchronization signals, timing synchronization errors and carrier synchronization errors;
the timing synchronization error and/or the carrier synchronization error of the left Bluetooth earphone and the right Bluetooth earphone utilizes a phase-locked loop to adjust the crystal oscillation frequency, so that the clock frequencies of the left Bluetooth earphone and the right Bluetooth earphone are the same as the clock frequency of the intelligent device, and meanwhile, the starting time of a timing synchronization signal is synchronous with the starting time of a slot for sending an audio signal by the intelligent device;
and at a certain clock moment, the left Bluetooth headset and the right Bluetooth headset trigger respective DMA controllers simultaneously, and the DMA controllers of the left Bluetooth headset and the right Bluetooth headset access audio signals simultaneously and send the audio signals to respective playing devices.
9. The method of claim 8, wherein the converting the received radio frequency signals by the left bluetooth headset and the right bluetooth headset respectively comprises:
the radio frequency front end of the left Bluetooth earphone receives a radio frequency signal, a digital signal of the left Bluetooth earphone is obtained through sampling by a digital-to-analog converter, and a timing synchronization signal, a timing synchronization error and a carrier synchronization error of the left Bluetooth earphone are obtained through synchronization and demodulation of the digital signal of the left Bluetooth earphone;
and the radio frequency front end of the right Bluetooth earphone receives a radio frequency signal, a digital signal of the right Bluetooth earphone is obtained by sampling through a digital-to-analog converter, and a timing synchronous signal, a timing synchronous error and a carrier synchronous error of the right Bluetooth earphone are obtained by synchronizing and demodulating the digital signal of the right Bluetooth earphone.
10. The method of claim 1, 3 or 8, wherein the left bluetooth headset or the right bluetooth headset sends a trigger signal to the other party through bluetooth, so as to simultaneously trigger the respective DMA controllers at a certain clock time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810626195.9A CN108337595B (en) | 2018-06-19 | 2018-06-19 | Bluetooth headset realizes the method being precisely played simultaneously |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810626195.9A CN108337595B (en) | 2018-06-19 | 2018-06-19 | Bluetooth headset realizes the method being precisely played simultaneously |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108337595A CN108337595A (en) | 2018-07-27 |
CN108337595B true CN108337595B (en) | 2018-09-11 |
Family
ID=62934959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810626195.9A Active CN108337595B (en) | 2018-06-19 | 2018-06-19 | Bluetooth headset realizes the method being precisely played simultaneously |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108337595B (en) |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200059504A1 (en) * | 2018-08-19 | 2020-02-20 | Pixart Imaging Inc. | Schemes capable of synchronizing native clocks and audio codec clocks of audio playing for bluetooth wireless devices |
US10602257B1 (en) * | 2018-08-30 | 2020-03-24 | Semiconductor Components Industries, Llc | Methods and systems for wireless audio |
CN109587666B (en) * | 2018-11-22 | 2022-07-26 | 重庆物奇科技有限公司 | Bluetooth device, system and scheduling method |
CN109327829A (en) * | 2018-11-22 | 2019-02-12 | 重庆物奇科技有限公司 | The method of bluetooth equipment, Bluetooth communication system and equipment room transmission instruction |
EP3879848A4 (en) * | 2018-12-07 | 2021-11-24 | Huawei Technologies Co., Ltd. | Point-to-multipoint data transmission method, and electronic device |
CN109688528A (en) * | 2018-12-27 | 2019-04-26 | 安克创新科技股份有限公司 | The test method of audio frequency apparatus and signal delay, system and storage medium |
CN110503984A (en) * | 2019-08-12 | 2019-11-26 | 成都法兰特科技有限公司 | Playback method, equipment and the system of wireless audio playback equipment |
CN110636600B (en) * | 2019-08-20 | 2022-01-18 | 恒玄科技(上海)股份有限公司 | Audio synchronous playing method for wireless equipment |
CN112105005B (en) * | 2019-08-30 | 2024-05-03 | 炬力(珠海)微电子有限公司 | Method and device for controlling Bluetooth equipment to play |
WO2021042287A1 (en) | 2019-09-04 | 2021-03-11 | 深圳市汇顶科技股份有限公司 | Data synchronization method and apparatus, device, system, and storage medium |
US11134367B2 (en) | 2019-10-03 | 2021-09-28 | Realtek Semiconductor Corp. | Main bluetooth circuit of multi-member bluetooth device capable of dynamically switching operation mode |
US11375579B2 (en) | 2019-10-03 | 2022-06-28 | Realtek Semiconductor Corp. | Multi-member Bluetooth device capable of adaptively switching operation mode in response to data type change of received packets, and related main Bluetooth circuit and auxiliary Bluetooth circuit |
US11412576B2 (en) | 2019-10-03 | 2022-08-09 | Realtek Semiconductor Corp. | Auxiliary Bluetooth circuit of multi-member Bluetooth device capable of dynamically switching operation mode |
TWI763581B (en) * | 2019-10-03 | 2022-05-01 | 瑞昱半導體股份有限公司 | Main bluetooth circuit of multi-member bluetooth device capable of dynamically switching operation mode |
US11570081B2 (en) | 2019-10-03 | 2023-01-31 | Realtek Semiconductor Corp. | Multi-member bluetooth device capable of dynamically switching operation mode |
TWI733596B (en) * | 2019-11-05 | 2021-07-11 | 瑞昱半導體股份有限公司 | Multi-member bluetooth device capable of reducing complexity of updating internal clock of bluetooth circuit |
CN111954123B (en) * | 2020-08-13 | 2022-03-04 | 上海富芮坤微电子有限公司 | Method, system, medium, and wireless audio device for information synchronization of wireless audio devices |
CN112073878B (en) * | 2020-09-15 | 2022-02-22 | 北京字节跳动网络技术有限公司 | Control method and device of audio equipment, audio equipment and storage medium |
CN112383864A (en) * | 2020-09-29 | 2021-02-19 | 江苏清微智能科技有限公司 | Wireless earphone data transmission system and method |
WO2022094835A1 (en) | 2020-11-05 | 2022-05-12 | 深圳市汇顶科技股份有限公司 | Audio synchronization playback method, apparatus, device, and storage medium |
CN113179468B (en) * | 2020-11-05 | 2022-10-11 | 深圳市汇顶科技股份有限公司 | Audio synchronous playing method, device, equipment and storage medium |
CN115883711A (en) * | 2021-09-29 | 2023-03-31 | 瑞昱半导体股份有限公司 | Bluetooth voice communication system and storage circuit |
CN115103431B (en) * | 2022-03-25 | 2024-09-06 | 恒玄科技(上海)股份有限公司 | Method for realizing synchronous playing of Bluetooth headset equipment and Bluetooth headset equipment thereof |
CN115987478A (en) * | 2022-12-08 | 2023-04-18 | 广州安凯微电子股份有限公司 | Frequency adjustment method, device, bluetooth headset, storage medium and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101637012A (en) * | 2007-03-14 | 2010-01-27 | 高通股份有限公司 | Headset having wirelessly linked earpieces |
CN101681361A (en) * | 2007-12-24 | 2010-03-24 | 桑迪士克以色列有限公司 | Mobile device and method for concurrently processing content according to multiple playlists |
CN104954091A (en) * | 2014-03-24 | 2015-09-30 | 想象技术有限公司 | High definition timing synchronisation function |
CN107894881A (en) * | 2017-10-18 | 2018-04-10 | 恒玄科技(上海)有限公司 | The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB201318802D0 (en) * | 2013-10-24 | 2013-12-11 | Linn Prod Ltd | Linn Exakt |
-
2018
- 2018-06-19 CN CN201810626195.9A patent/CN108337595B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101637012A (en) * | 2007-03-14 | 2010-01-27 | 高通股份有限公司 | Headset having wirelessly linked earpieces |
CN101681361A (en) * | 2007-12-24 | 2010-03-24 | 桑迪士克以色列有限公司 | Mobile device and method for concurrently processing content according to multiple playlists |
CN104954091A (en) * | 2014-03-24 | 2015-09-30 | 想象技术有限公司 | High definition timing synchronisation function |
CN107894881A (en) * | 2017-10-18 | 2018-04-10 | 恒玄科技(上海)有限公司 | The method that principal and subordinate link switching, conversation monitoring and the Mike of bluetooth earphone switch |
Also Published As
Publication number | Publication date |
---|---|
CN108337595A (en) | 2018-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108337595B (en) | Bluetooth headset realizes the method being precisely played simultaneously | |
US10271152B1 (en) | Synchronization of wireless headphones | |
US11375312B2 (en) | Method, device, loudspeaker equipment and wireless headset for playing audio synchronously | |
US11800312B2 (en) | Wireless audio system for recording an audio information and method for using the same | |
CN108415685B (en) | Wireless Bluetooth headsets realize the method being precisely played simultaneously | |
CN107333339B (en) | Audio data transmission method between double wireless earphones and double wireless earphones | |
CN102047592A (en) | Apparatus and methods for time synchronization of wireless audio data streams | |
CN110460931A (en) | Method, bluetooth headset and the storage medium of call are realized based on bluetooth headset | |
CN109819377A (en) | The method for transmitting signals and wireless headphone system of wireless headset | |
CN204669601U (en) | A kind of full Wireless high fidelity sound system | |
US20230075802A1 (en) | Capturing and synchronizing data from multiple sensors | |
US20220225029A1 (en) | Systems and methods for broadcasting audio | |
CN115499814A (en) | Bluetooth equipment system | |
US12010496B2 (en) | Method and system for performing audio ducking for headsets | |
CN115103431B (en) | Method for realizing synchronous playing of Bluetooth headset equipment and Bluetooth headset equipment thereof | |
TWI798890B (en) | Bluetooth voice communication system and related computer program product for generating stereo voice effect | |
US20230353920A1 (en) | Wireless headset and audio device | |
CN220108215U (en) | Wireless earphone | |
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 | |
CN111263272B (en) | Audio signal shunting and returning method and system | |
US20150334478A1 (en) | Method for a Multi-Channel Wireless Speaker System | |
CN113709655A (en) | Mobile terminal, playing system and playing method | |
JP2023547200A (en) | DECT-based high-density wireless audio system | |
CN111273887A (en) | Audio signal shunting and returning method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 201306 room 904, No. 800, Huanhu West 2nd Road, Lingang New Area, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai Patentee after: Hengxuan Technology (Shanghai) Co., Ltd Address before: 200135 Shanghai 647 free trade pilot area, 171 Pudong New Area Road, 1 buildings, 6 rooms Patentee before: Heng Xuan Technology (Shanghai) Co., Ltd. |
|
CP03 | Change of name, title or address |