CN108337595B - Bluetooth headset realizes the method being precisely played simultaneously - Google Patents

Bluetooth headset realizes the method being precisely played simultaneously Download PDF

Info

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
audio signal
signal
audio
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810626195.9A
Other languages
Chinese (zh)
Other versions
CN108337595A (en
Inventor
童伟峰
张亮
杨磊
马千里
刘俊宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bestechnic Shanghai Co Ltd
Original Assignee
Heng Xuan Technology (shanghai) 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 Heng Xuan Technology (shanghai) Co Ltd filed Critical Heng Xuan Technology (shanghai) Co Ltd
Priority to CN201810626195.9A priority Critical patent/CN108337595B/en
Publication of CN108337595A publication Critical patent/CN108337595A/en
Application granted granted Critical
Publication of CN108337595B publication Critical patent/CN108337595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details 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

Bluetooth headset realizes the method being precisely played simultaneously
Technical field
The present invention relates to wireless communication technology field, more particularly to bluetooth headset realizes the method being precisely played simultaneously.
Background technology
With the raising of social progress and living standards of the people, earphone has become the essential daily necessities of people.It passes System wired earphone connects smart machine by conducting wire(Such as smart mobile phone, laptop, tablet computer etc.), this can limit pendant The action of wearer is especially inconvenient in sports ground conjunction.Meanwhile it the winding of earphone cable and pullling and stethoscope effect all shadows Ring user experience.Common bluetooth headset eliminates the line between earphone and smart machine, but there are still connect between the ear of left and right Line.True wireless stereo headset comes into being.
One kind of existing true wireless headset be achieved in that smart machine respectively with left and right earphone by bluetooth into line number According to transmission(Can be music, voice or data packet etc.).For example stereo music is played, music is transmitted to a left side by smart machine respectively Right earphone.But left and right earphone adheres to two subsystems separately, is realized in two sets of different chips, has separate clock system System.In existing true wireless headphone system, left and right ear is often difficult to realize preferable synchronization.Such as when playing music, left and right ear Music be difficult to play simultaneously, significantly impact musical qualities.When voice communication, the voice of left and right ear is difficult to precisely while broadcasting It puts.
Therefore, to solve the above-mentioned problems, bluetooth headset is needed to realize the method being precisely played simultaneously.
Invention content
One aspect of the present invention is that a kind of bluetooth headset realizes the method being precisely played simultaneously, and the method includes such as Lower method and step:
Bluetooth headset sends audio signal to smart machine to the left, and bluetooth headset forwards audio signal to left bluetooth headset to the right, Wherein, in a certain slot(Slot index)Initial time described in left bluetooth headset to the right bluetooth headset send audio signal, and 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 misses Difference and carrier synchronization error;
The timing synchronization errors and/or carrier synchronization error of right bluetooth headset adjust crystal oscillation frequency using phaselocked loop, The same frequency of clock frequency of the clock frequency for making the right bluetooth headset and the left bluetooth headset, meanwhile, time synchronization signals The bluetooth headset transmission initial time of slot of audio signal is synchronous to the right with the left bluetooth headset for initial time;
In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller, left bluetooth ear simultaneously The DMA of machine and right bluetooth headset(Direct Memory Access, direct memory access)Controller accesses audio letter simultaneously Number, and audio signal is sent to respective playback equipment.
Preferably, it includes following steps that the left bluetooth headset forwards audio signal to the right bluetooth headset:
Left bluetooth headset carries out monophonic audio coding to audio signal, is converted to radiofrequency signal through bluetooth module and is sent to Right bluetooth headset;Right bluetooth headset receives radiofrequency signal, and being converted to audio signal through bluetooth module carries out monophonic decoding;
After right bluetooth headset decodes audio signal monophonic, synchronized, demodulation obtains time synchronization signals, Timing Synchronization Error and carrier synchronization error.
Another aspect of the present invention is to provide a kind of method that bluetooth headset realization is precisely played simultaneously, the method Including following method and step:
Audio is divided into left channel audio signal and right channel audio signal by smart machine, and is sent out respectively by bluetooth connection It send to left bluetooth headset and right bluetooth headset;Wherein,
The smart machine described in the initial time of a certain slot sends left sound to the left bluetooth headset and right bluetooth headset Audio channel signal and right channel audio signal, and the duration of every slot fix;
The left bluetooth headset and right bluetooth headset divide the L channel radiofrequency signal and right channel radiofrequency signal that receive Other conversion process obtains time synchronization signals, timing synchronization errors and carrier synchronization error;
The timing synchronization errors and/or carrier synchronization error of the left bluetooth headset and right bluetooth headset utilize phaselocked loop tune Whole crystal oscillation frequency makes the clock frequency of the clock frequency and the smart machine of the left bluetooth headset and right bluetooth headset With frequency, meanwhile, the initial time of the time synchronization signals and the smart machine are to the left bluetooth headset and right bluetooth ear It is synchronous with the initial time of the slot of right channel audio signal that machine sends left channel audio signal;
In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller, left bluetooth ear simultaneously The dma controller of machine and right bluetooth headset accesses audio signal simultaneously, and audio signal is sent to respective playback equipment.
Preferably, it before audio is divided into left channel audio signal and right channel audio signal by the smart machine, carries out Initialize stereo audio and stereo audio decoding.
Preferably, left channel audio and right audio channel separation are carried out after the stereo audio decoding, and to the left side Channel audio and right audio channel carry out monophonic audio coding respectively, obtain left channel audio signal and right audio channel letter Number, the left channel audio signal and right channel audio signal are converted to L channel radiofrequency signal and right channel by bluetooth module Radiofrequency signal is sent to left bluetooth headset and right bluetooth headset.
Preferably, the monophonic coding uses Opus formats(A kind of format damaging acoustic coding)Carry out audio volume Code.
Preferably, the left bluetooth headset and right bluetooth headset receive L channel radiofrequency signal and right channel radiofrequency signal Left channel audio signal is converted to by bluetooth module and right channel audio signal carries out monophonic decoding afterwards.
Preferably, the monophonic decoding carries out audio decoder using Opus formats.
Preferably, the left bluetooth headset and right bluetooth headset are to the L channel radiofrequency signal and right channel radio frequency that receive Signal distinguishes conversion process:
The radio-frequency front-end of the left bluetooth headset receives L channel radiofrequency signal, samples to obtain left indigo plant by digital analog converter Tooth earphone digital signal, the left bluetooth headset digital signal is synchronized, demodulation obtains left bluetooth headset time synchronization signals, fixed When synchronous error and carrier synchronization error;
The radio-frequency front-end of the right bluetooth headset receives right channel radiofrequency signal, samples to obtain right indigo plant by digital analog converter Tooth earphone digital signal, the right bluetooth headset digital signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, fixed When synchronous error and carrier synchronization error.
Another aspect of the invention is that a kind of bluetooth headset realizes the method being precisely played simultaneously, the method includes Following method and step:
Smart machine establishes bluetooth connection with left bluetooth headset, and left earphone establishes bluetooth connection, smart machine with right earphone Audio signal is sent to left bluetooth headset, while right earphone monitors audio signal, wherein
Initial time of the smart machine in a certain slot sends audio signal to the left bluetooth headset, and each The duration of slot is fixed;
The left bluetooth headset and right bluetooth headset distinguish conversion process to the radiofrequency signal received, obtain Timing Synchronization Signal, timing synchronization errors and carrier synchronization error;
The timing synchronization errors and/or carrier synchronization error of the left bluetooth headset and right bluetooth headset utilize phaselocked loop tune Whole crystal oscillation frequency makes the clock frequency of the clock frequency and the smart machine of the left bluetooth headset and right bluetooth headset With frequency, meanwhile, the initial time of time synchronization signals and the initial time for the slot that the smart machine sends audio signal are same Step;
In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller, left bluetooth ear simultaneously The dma controller of machine and right bluetooth headset accesses audio signal simultaneously, and audio signal is sent to respective playback equipment.
Preferably, the left bluetooth headset and right bluetooth headset distinguish conversion process to the radiofrequency signal received and include:
The radio-frequency front-end of the left bluetooth headset receives radiofrequency signal, samples to obtain left bluetooth headset by digital analog converter Digital signal, the left bluetooth headset digital signal is synchronized, demodulation obtains left bluetooth headset time synchronization signals, Timing Synchronization Error and carrier synchronization error;
The radio-frequency front-end of the right bluetooth headset receives radiofrequency signal, samples to obtain right bluetooth headset by digital analog converter Digital signal, the right bluetooth headset digital signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, Timing Synchronization Error and carrier synchronization error.
The present invention left bluetooth headset is received and dispatched with the bluetooth of right bluetooth headset first it is synchronous into row clock, clock synchronize On the basis of, trigger respective DMA in same clock time(Direct Memory Access, direct memory access)Control Device, left bluetooth headset and right bluetooth headset access audio signal by respective dma controller, realize that left and right earphone precisely synchronizes and broadcast It puts.
It should be appreciated that aforementioned description substantially and follow-up description in detail are exemplary illustration and explanation, it should not As the limitation to the claimed content of the present invention.
Description of the drawings
With reference to the attached drawing of accompanying, the more purposes of the present invention, function and advantage are by the as follows of embodiment through the invention Description is illustrated, wherein:
Fig. 1 shows that smart machine sends audio with left bluetooth headset and right bluetooth headset in one embodiment of the invention System block diagram.
Fig. 2 shows the flow chart elements of the audio signal of bluetooth headset forwarding to the right of left bluetooth headset in one embodiment of the invention Figure.
Fig. 3 shows more slot of left bluetooth headset bluetooth headset transmission to the right radiofrequency signal in one embodiment of the invention The sequence diagram of packet.
Fig. 4 shows single slot of left bluetooth headset bluetooth headset transmission to the right radiofrequency signal in one embodiment of the invention The sequence diagram of packet.
Fig. 5 shows flow diagram synchronous between left bluetooth headset and right bluetooth headset in one embodiment of the invention.
Fig. 6 shows the sequential of left bluetooth headset and right bluetooth headset triggering dma controller in one embodiment of the invention Figure.
Smart machine sends audio with left bluetooth headset and right bluetooth headset in the schematic another embodiment of the present invention of Fig. 7 System block diagram.
Fig. 8 shows that smart machine carries out pretreated flow diagram to audio in another embodiment of the present invention.
Fig. 9 shows the flow for carrying out audio transmission in another embodiment of the present invention between smart machine and bluetooth headset Block diagram.
Figure 10 shows that smart machine in another embodiment of the present invention sends more slot of radiofrequency signal to bluetooth headset The sequence diagram of packet.
Figure 11 shows that smart machine in another embodiment of the present invention sends single slot of radiofrequency signal to bluetooth headset The sequence diagram of packet.
Figure 12 shows flow diagram synchronous between smart machine and bluetooth headset in another embodiment of the present invention.
Figure 13 show left bluetooth headset and right bluetooth headset triggering dma controller in another embodiment of the present invention when Sequence figure.
Schematically bluetooth headset sends audio signal, right bluetooth to smart machine to Figure 14 to the left in further embodiment of the present invention The system block diagram of headphone monitor audio signal.
Figure 15 shows that smart machine in further embodiment of the present invention sends more slot of radiofrequency signal to bluetooth headset The sequence diagram of packet.
Figure 16 shows that smart machine in further embodiment of the present invention sends single slot of radiofrequency signal to bluetooth headset The sequence diagram of packet.
Figure 17 shows flow diagrams synchronous between smart machine and bluetooth headset in further embodiment of the present invention.
Figure 18 show left bluetooth headset and right bluetooth headset triggering dma controller in further embodiment of the present invention when Sequence figure.
Specific implementation mode
By reference to exemplary embodiment, the purpose of the present invention and function and the side for realizing these purposes and function Method will be illustrated.However, the present invention is not limited to exemplary embodiment as disclosed below;Can by different form come It is realized.The essence of specification is only to aid in the detail of the various equivalent modifications Integrated Understanding present invention.
Hereinafter, the embodiment of the present invention will be described with reference to the drawings, relevant technical terms should be people in the art Known to member.In the accompanying drawings, identical reference numeral represents same or similar component or same or like step, Unless otherwise indicated.With reference to specific embodiment, present disclosure is illustrated.Left bluetooth mentioned by the present invention Earphone and right bluetooth headset are simultaneously not fixed, it will be appreciated by those skilled in the art that left bluetooth headset and right bluetooth headset are can be with It is replaced mutually.
Embodiment 1:
Realize that the method that Bluetooth Synchronous plays is suitable for smart machine according to the present invention, in the present embodiment(Such as mobile phone, The Intelligent music players such as ipad)Audio data transmission between left bluetooth headset and right bluetooth headset, in existing left indigo plant Tooth earphone and right bluetooth headset are respectively to carry out technological improvement on the basis of independent particle system, make left bluetooth headset and right bluetooth ear The synchronous music that machine sowing is put plays.Smart machine and left bluetooth headset and right bluetooth ear in invention one embodiment as shown in Figure 1 Machine sends the system block diagram of audio, and bluetooth connection is established between smart machine 10 and left bluetooth headset 20(A2DP:Advanced Audio Distribution Profile, audio transmission model agreement), built between left bluetooth headset 20 and right bluetooth headset 30 Vertical bluetooth connection(A2DP:Advanced Audio Distribution Profile, audio transmission model agreement).Intelligence is set Standby 10 audio signals of the transmission of bluetooth headset 20 to the left, bluetooth headset 30 forwards audio signal to left bluetooth headset 20 to the right.
According to the present invention, a kind of method for realizing that bluetooth headset is precisely played simultaneously of the present embodiment includes following method step Suddenly:
Bluetooth headset sends audio signal to smart machine to the left
Bluetooth headset 20 sends audio signal to smart machine 10 to the left, and audio signal is sent to left bluetooth by bluetooth connection Earphone 20.
Bluetooth headset forwards audio signal to left bluetooth headset to the right
Bluetooth headset forwards audio signal to left bluetooth headset to the right, left bluetooth in one embodiment of the invention as shown in Figure 2 The flow diagram of the earphone audio signal of bluetooth headset forwarding to the right, left bluetooth headset 20 carry out monophonic audio volume to audio signal Code 101, is converted to radiofrequency signal 102 through bluetooth module and is sent to right bluetooth headset.Right bluetooth headset 30 receives radiofrequency signal 202, it is converted to audio signal through bluetooth module and carries out monophonic decoding 201.Right bluetooth headset 30 is to audio signal monophonic solution After code, synchronized, demodulation obtains time synchronization signals, timing synchronization errors and carrier synchronization error.
According to an embodiment of the invention, monophonic coding carries out audio coding using Opus formats, and monophonic decoding uses Opus formats carry out audio decoder, and the present invention allows to increase number of retransmissions using the higher code efficiencies of Opus, to carry The reliability of data transmission between high left bluetooth headset 20 and right bluetooth headset 30.
According to the present invention, the transmission of bluetooth headset 30 to the right of left bluetooth headset 20 audio signal can be more in the present embodiment Slot packets can also be single slot packets in some embodiments.It is blue to the right in the left bluetooth headset 20 of the initial time of a certain slot Tooth earphone 30 sends audio signal, and the duration of every slot is fixed.Left indigo plant in one embodiment of the invention shown in Fig. 3 Tooth earphone to the right bluetooth headset send radiofrequency signal more slot packets sequence diagram, a left side in one embodiment of the invention shown in Fig. 4 The sequence diagram of single slot packets of the bluetooth headset radiofrequency signal of bluetooth headset transmission to the right,
No matter using more slot packets or using list slot packets, bluetooth headset 30 sends audio letter to left bluetooth headset 20 to the right Number always in the initial time of a certain slot, and the duration of every slot is fixed(Such as the duration of every slot It is 625us).
Left bluetooth headset is synchronous with right bluetooth headset clock
Flow diagram synchronous between left bluetooth headset and right bluetooth headset in one embodiment of the invention as shown in Figure 5, Right bluetooth headset 30 carries out conversion process to the radiofrequency signal received, obtains time synchronization signals, timing synchronization errors and load Wave synchronous error.Specifically, the radio-frequency front-end 203 of right bluetooth headset receives radiofrequency signal, sample to obtain by digital analog converter Audio signal(Digital signal), audio signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, timing synchronization errors With carrier synchronization error.
The radio-frequency front-end 203 of right bluetooth headset receives radiofrequency signal, and audio signal is obtained by digital-to-analogue conversion 204, right Time synchronization signals, timing synchronization errors 206 are obtained by synchronization, 205 processing of demodulation and carry after the decoding of audio signal monophonic Wave synchronous error 208.
The timing synchronization errors and/or carrier synchronization error 208 of right bluetooth headset 30 adjust crystal oscillation through phaselocked loop 207 Frequency so that clock frequency same frequency of the clock frequency of right bluetooth headset with left bluetooth headset.Meanwhile of time synchronization signals Beginning, the time, the bluetooth headset transmission initial time of slot of audio signal was synchronous to the right with left bluetooth headset.
Demodulated signal after phaselocked loop 207 adjusts crystal oscillation frequency feeds back to radio-frequency front-end and frequency divider.By Above-mentioned signal synchronization process, left bluetooth headset realize that clock is synchronous between right bluetooth headset.
In the present embodiment, timing synchronization errors and carrier synchronization error are adjusted into crystal oscillation frequency through phaselocked loop 207 simultaneously Rate can be in some embodiments that any synchronous error is adjusted through phaselocked loop 207 in timing synchronization errors and carrier synchronization error Whole crystal oscillation frequency.
Left bluetooth headset is played simultaneously with right bluetooth headset
By the above process, it is synchronous that left bluetooth headset with right bluetooth headset realizes clock.It is same in clock according to the present invention Audio signal is carried out on the basis of step to be played simultaneously.
The sequential of left bluetooth headset and right bluetooth headset triggering dma controller in one embodiment of the invention as shown in Figure 6 Figure, in a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously.Due to left bluetooth ear Machine had been carried out with the bluetooth clock of right bluetooth headset it is synchronous, such as left bluetooth headset bluetooth clock in the clock of SLOT N It carves(1,2,3 ... ..., n, n+1, M), with the bluetooth clock of right bluetooth headset SLOT N clock time(1,2,3 ... ..., n, N+1, M)It is synchronous.In a certain clock time(Such as moment n), left bluetooth headset and right bluetooth headset trigger respective DMA simultaneously The dma controller of controller, left bluetooth headset and right bluetooth headset accesses audio signal simultaneously, and audio signal is sent to respectively From playback equipment(Such as play loudspeaker).
Similarly, the bluetooth clock of left bluetooth headset is in SLOT N+1, the clock time of SLOT N+2 ..., SLOT N+n, For bluetooth clock with right bluetooth headset in SLOT N+1, the clock time of SLOT N+2 ..., SLOT N+n are synchronous, such as The bluetooth clock of left bluetooth headset starts to access data in the p time trigger dma controllers of SLOT N+2, then right bluetooth headset Bluetooth clock the p time trigger dma controllers of SLOT N+2 start access data, you can realize left bluetooth headset and right indigo plant Tooth earphone controls synchronous access data by respective DMA, and then realizes that audio signal is sent to respective playback equipment simultaneously Precisely played.
It is controlled in the present invention for triggering respective DMA simultaneously in the left bluetooth headset of a certain clock time and right bluetooth headset Device, in some embodiments, left bluetooth headset and right bluetooth headset are made an appointment a certain clock time, and the n moment is for example, about set to, Then respective dma controller is triggered in n moment left bluetooth headset and right bluetooth headset simultaneously.
In further embodiments, left bluetooth headset or right bluetooth headset send a triggering letter by bluetooth to other side Number, to realize left bluetooth headset and right bluetooth headset in a certain clock time while triggering respective dma controller.Example Such as, left bluetooth headset first passes through bluetooth bluetooth headset transmission to the right one in advance in n time trigger dma controllers, then left bluetooth headset The triggering moment of left bluetooth headset is notified right bluetooth headset, i.e., by a trigger signal:Notify right bluetooth headset that will be touched at the n moment Send out dma controller.After right bluetooth headset receives trigger signal, respective DMA is triggered simultaneously at the n moment with left bluetooth headset and is controlled Device processed.
Further, after left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, left bluetooth ear The dma controller of machine and right bluetooth headset accesses audio signal simultaneously.Then at interval of a fixed time period(Such as 2ms)Afterwards, It is repeated once left bluetooth headset and right bluetooth headset while triggering respective dma controller.
The present invention left bluetooth headset is received and dispatched with the bluetooth of right bluetooth headset first it is synchronous into row clock, clock synchronize On the basis of, trigger respective DMA in same clock time(Direct Memory Access, direct memory access)Control Device, left bluetooth headset and right bluetooth headset access audio signal by respective dma controller, realize that left and right earphone precisely synchronizes and broadcast It puts.
Embodiment 2:
According to the present invention, the present embodiment realizes that the method that Bluetooth Synchronous plays is suitable for smart machine(Such as mobile phone, ipad Equal Intelligent music players)Audio data transmission between left bluetooth headset and right bluetooth headset, in existing left bluetooth ear Machine and right bluetooth headset are respectively to carry out technological improvement on the basis of independent particle system, and left bluetooth headset and right bluetooth headset is made to broadcast The synchronous music put plays.Smart machine and left bluetooth headset and right bluetooth ear in another embodiment of the present invention as shown in Figure 7 Machine sends the system block diagram of audio, establishes bluetooth company between smart machine 10 and left bluetooth headset 20 and right bluetooth headset 30 respectively It connects(A2DP:Advanced Audio Distribution Profile, audio transmission model agreement), the difference of smart machine 10 Bluetooth headset 20 and right bluetooth headset 30 send radiofrequency signal to the left.
According to the present invention, a kind of method for realizing that bluetooth headset is precisely played simultaneously of the present embodiment includes following method step Suddenly:
Audio is divided into left channel audio signal and right channel audio signal by smart machine 10, and is distinguished by bluetooth connection It is sent to left bluetooth headset 20 and right bluetooth headset 30.Audio is divided into left channel audio signal and right channel in smart machine 10 Before audio signal, stereo audio coding and the decoded pretreatment of stereo audio are carried out.
Smart machine pre-processes stereo audio
Smart machine of the present invention as shown in Figure 8 carries out pretreated flow diagram to audio, and smart machine 10 plays vertical Body sound audio is the stereo audio for having completed coding, and initialization stereo audio is carried out to the stereo audio after coding 401。
Stereo audio decoding 402, stereo sound are carried out to stereo audio after initialization stereo audio processing Left channel stereo audio and right channel stereo audio separation are carried out after frequency decoding 402, i.e., by decoded stereo audio It is divided into left channel audio 403 and right audio channel 405.
Monophonic audio coding is carried out to left channel audio 403 and right audio channel 405 respectively, i.e., to left channel audio into Row L channel coding 404, right audio channel carry out right audio channel coding 406, obtain left channel audio signal and right channel sound Frequency signal, left channel audio signal and right channel audio signal are converted to L channel radiofrequency signal and right channel by bluetooth module Radiofrequency signal is sent.
Audio transmission between smart machine and bluetooth headset
Left channel audio signal is sent to left bluetooth headset 20 by bluetooth connection, and right channel radiofrequency signal is connected by bluetooth It connects and is sent to right bluetooth headset 30.The present embodiment is respectively transmitted by isolating left channel audio signal and right channel audio signal Pattern, reduce volume of transmitted data of the smart machine to earphone.
The flow of audio transmission is carried out in another embodiment of the present invention as shown in Figure 9 between smart machine and bluetooth headset Block diagram, left bluetooth headset and right bluetooth headset receive L channel radiofrequency signal and right channel radiofrequency signal and turn by bluetooth module It is changed to left channel audio signal and right channel audio signal carries out monophonic decoding.Illustratively with smart machine 10 in embodiment For audio transmission process between left bluetooth headset 20, it should be understood that the audio between smart machine 10 and bluetooth headset Transmission should be transmission audio synchronous with left bluetooth headset 20 and right bluetooth headset 30.
Smart machine 10 carries out left channel audio coding 404(It should be understood that including left channel audio coding and right channel sound Frequency encodes)Afterwards, radiofrequency signal 407 is converted to through bluetooth module.Radiofrequency signal is sent to left bluetooth headset by bluetooth connection 20, left bluetooth headset receives radiofrequency signal 408 and carries out left channel audio decoding 409 after bluetooth module is converted, by a left side after decoding Bluetooth headset 20 is by music.
According to an embodiment of the invention, monophonic coding carries out audio coding using Opus formats, i.e. left channel audio is compiled Code and right audio channel coding carry out audio coding using Opus formats.Monophonic decoding carries out audio solution using Opus formats The decoding of code, i.e. left channel audio and right audio channel decoding carry out audio decoder using Opus formats.The present invention using Opus compared with High code efficiency allows to increase number of retransmissions, to improve the reliability of data transmission between smart machine and earphone.
Bluetooth headset 20 and right bluetooth headset 30 send left channel audio signal and right audio channel to smart machine 10 to the left Signal can be more slot packets, can also be single slot packets in some embodiments.Another implementation of the present invention as shown in Figure 10 Smart machine sends the sequence diagram of more slot packets of radiofrequency signal to bluetooth headset in example, another implementation of the present invention shown in Figure 11 Smart machine sends the sequence diagram of single slot packets of radiofrequency signal to bluetooth headset in example.Smart machine bluetooth headset and the right side to the left Bluetooth headset sends left channel audio signal and right channel audio signal in the initial time of a certain slot, and every slot Duration is fixed.That is in the initial time of a certain slot, smart machine to the left send out by bluetooth headset and right bluetooth headset Send left channel audio signal and right channel audio signal.I.e.:No matter using more slot packets or using list slot packets, smart machine 10 to the left bluetooth headset 20 and right bluetooth headset 30 send audio signal always in the initial time of a certain slot, and it is each The duration of slot is fixed(Such as the duration of every slot is 625us).
Smart machine is synchronous with the clock of bluetooth headset audio transmission
Left bluetooth headset and right bluetooth headset turn the L channel radiofrequency signal and right channel radiofrequency signal that receive respectively Processing is changed, time synchronization signals, timing synchronization errors and carrier synchronization error are obtained.Specifically translation process includes:
The radio-frequency front-end of left bluetooth headset receives L channel radiofrequency signal, samples to obtain left bluetooth ear by digital analog converter Machine digital signal, left bluetooth headset digital signal is synchronized, demodulation obtains left bluetooth headset time synchronization signals, Timing Synchronization misses Difference and carrier synchronization error.
The radio-frequency front-end of right bluetooth headset receives right channel radiofrequency signal, samples to obtain right bluetooth ear by digital analog converter Machine digital signal, right bluetooth headset digital signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, Timing Synchronization misses Difference and carrier synchronization error.
The timing synchronization errors and/or carrier synchronization error of left bluetooth headset and right bluetooth headset are adjusted brilliant using phaselocked loop Bulk oscillation frequency, the clock frequency of the clock frequency and smart machine that make left bluetooth headset and right bluetooth headset are fixed simultaneously with frequency When synchronizing signal initial time and smart machine bluetooth headset and right bluetooth headset send left channel audio signal and the right side to the left The initial time of the slot of channel audio signal synchronizes.
Flow diagram synchronous between smart machine and bluetooth headset in another embodiment of the present invention as shown in figure 12, this In embodiment equally by taking the signal between smart machine and left bluetooth headset is synchronous as an example, it should be understood that smart machine and left indigo plant While carrying out signal clock synchronization between tooth earphone, to carry out signal clock between same synchronous method and right bluetooth headset It is synchronous.
The radio-frequency front-end 503 of left bluetooth headset receives L channel radiofrequency signal, and left bluetooth is obtained by digital-to-analogue conversion 504 Earphone digital signal obtains time synchronization signals 509, timing synchronization errors 506, carrier synchronization by synchronization, 505 processing of demodulation Error 508.
Timing synchronization errors and/or carrier synchronization error 508 adjust crystal oscillation frequency through phaselocked loop 507 so that Zuo Lan Clock frequency same frequency of the tooth earphone with smart machine.The initial time of time synchronization signals 509 and smart machine are blue to the left simultaneously The initial time that tooth earphone sends the slot of left channel audio signal synchronizes, after phaselocked loop 507 adjusts crystal oscillation frequency Demodulated signal feed back to radio-frequency front-end and frequency divider.
Realize that clock is synchronous by above-mentioned signal synchronization process, between left bluetooth headset and smart machine.In the present embodiment Right bluetooth headset realizes that clock is synchronous between smart machine in the same way, to realize left bluetooth headset and right bluetooth ear Clock between machine synchronizes.
In the present embodiment, timing synchronization errors and carrier synchronization error are adjusted into crystal oscillation frequency through phaselocked loop 507 simultaneously Rate can be in some embodiments that any synchronous error is adjusted through phaselocked loop 507 in timing synchronization errors and carrier synchronization error Whole crystal oscillation frequency.
In this embodiment, when playing stereo music, stereo music is divided into left and right acoustic channels audio by smart machine first Signal is sent to left and right bluetooth headset.Since left bluetooth headset and right bluetooth headset are individually an independent subsystem, respectively Possess independent crystal and clock system, by carrying out audio transmission between smart machine and left bluetooth headset, right bluetooth headset, It is synchronous with the clock of smart machine with right bluetooth headset to realize left bluetooth headset, to realize indirectly left bluetooth headset and Synchronization between right bluetooth headset.
Left bluetooth headset is played simultaneously with right bluetooth headset
By the above process, left bluetooth headset is synchronous with clock is realized by bluetooth headset.It is same in clock according to the present invention Audio signal is carried out on the basis of step to be played simultaneously.
In another embodiment of the present invention as shown in figure 13 left bluetooth headset and right bluetooth headset triggering dma controller when Sequence figure, in a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously.Due to left bluetooth Earphone had been carried out with the bluetooth clock of right bluetooth headset it is synchronous, such as left bluetooth headset bluetooth clock SLOT N clock Moment(1,2,3 ... ..., n, n+1, M), with the bluetooth clock of right bluetooth headset SLOT N clock time(1,2,3 ... ..., N, n+1, M)It is synchronous.In a certain clock time(Such as moment n), left bluetooth headset and right bluetooth headset trigger respective simultaneously The dma controller of dma controller, left bluetooth headset and right bluetooth headset accesses audio signal simultaneously, and audio signal is sent To respective playback equipment(Such as play loudspeaker).
Similarly, the bluetooth clock of left bluetooth headset is in SLOT N+1, the clock time of SLOT N+2 ..., SLOT N+n, For bluetooth clock with right bluetooth headset in SLOT N+1, the clock time of SLOT N+2 ..., SLOT N+n are synchronous, such as The bluetooth clock of left bluetooth headset starts to access data in the p time trigger dma controllers of SLOT N+2, then right bluetooth headset Bluetooth clock the p time trigger dma controllers of SLOT N+2 start access data, you can realize left bluetooth headset and right indigo plant Tooth earphone controls synchronous access data by respective DMA, and then realizes that audio signal is sent to respective playback equipment simultaneously Precisely played.
It is controlled in the present invention for triggering respective DMA simultaneously in the left bluetooth headset of a certain clock time and right bluetooth headset Device, in some embodiments, left bluetooth headset and right bluetooth headset are made an appointment a certain clock time, and the n moment is for example, about set to, Then respective dma controller is triggered in n moment left bluetooth headset and right bluetooth headset simultaneously.
In other implementations, left bluetooth headset or right bluetooth headset send a trigger signal by bluetooth to other side, To realize left bluetooth headset and right bluetooth headset in a certain clock time while triggering respective dma controller.For example, left Bluetooth headset first passes through bluetooth one triggering of bluetooth headset transmission to the right in advance in n time trigger dma controllers, then left bluetooth headset The triggering moment of left bluetooth headset is notified right bluetooth headset, i.e., by signal:Notify right bluetooth headset that will be controlled in n time triggers DMA Device processed.After right bluetooth headset receives trigger signal, respective dma controller is triggered simultaneously at the n moment with left bluetooth headset.
Further, after left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, left bluetooth ear The dma controller of machine and right bluetooth headset accesses audio signal simultaneously.Then at interval of a fixed time period(Such as 2ms)Afterwards, It is repeated once left bluetooth headset and right bluetooth headset while triggering respective dma controller.
The present invention left bluetooth headset is received and dispatched with the bluetooth of right bluetooth headset first it is synchronous into row clock, clock synchronize On the basis of, trigger respective DMA in same clock time(Direct Memory Access, direct memory access)Control Device, left bluetooth headset and right bluetooth headset access audio signal by respective dma controller, realize that left and right earphone precisely synchronizes and broadcast It puts.
Embodiment 3:
According to the present invention, the present embodiment realizes that the method that Bluetooth Synchronous plays is suitable for smart machine(Such as mobile phone, ipad Equal Intelligent music players)Audio data transmission between left bluetooth headset, it is blue to the left that right bluetooth headset monitors smart machine The audio signal that tooth earphone is sent.On the basis of existing left bluetooth headset and right bluetooth headset are respectively independent particle system into Row technological improvement makes the synchronous music that left bluetooth headset and right bluetooth headset play play.As shown in figure 14 the present invention another Bluetooth headset sends audio signal to smart machine to the left in embodiment, and right bluetooth headset monitors the system block diagram of audio signal, intelligence Energy equipment 10 establishes bluetooth connection with left bluetooth headset 20(A2DP:Advanced Audio Distribution Profile, Audio transmission model agreement), bluetooth connection is established between left bluetooth headset 20 and right bluetooth headset 30(A2DP:Advanced Audio Distribution Profile, audio transmission model agreement), bluetooth headset 20 is sent smart machine 10 to the left respectively Radiofrequency signal, right bluetooth headset 30 monitor the radiofrequency signal that smart machine 10 is sent.
Audio transmission between smart machine and bluetooth headset
In an embodiment of the present invention, root between smart machine 10 and left earphone 20, between left earphone 20 and right earphone 30 According to the bluetooth connection that A2DP agreements are established, after establishing bluetooth connection, left earphone 20 is by 10 Bluetooth address of smart machine, left earphone 20 send right earphone 30 to the encryption parameter information of 10 linking bluetooth of smart machine, to facilitate right earphone 30 to monitor and receive intelligence The audio signal that energy equipment 10 is sent.When playing stereo music, smart machine 10 plays stereo music, is connected by bluetooth It connects(A2DP agreements)Packets of audio data is sent to left earphone 20, right earphone is according to 10 Bluetooth address of smart machine, left earphone 20 With the encryption parameter information of 10 linking bluetooth of smart machine, the audio letter that bluetooth headset 20 is sent to the left of smart machine 10 is obtained Number.
Smart machine 10 carries out monophonic audio coding to audio signal in the present embodiment, and radio frequency is converted to through bluetooth module Signal is sent to left bluetooth headset 20.Left bluetooth headset 20 receives radiofrequency signal, through bluetooth module be converted to audio signal into After the decoding of row monophonic, synchronized, demodulation obtains time synchronization signals, timing synchronization errors and carrier synchronization error.Meanwhile it is right After bluetooth headset 30 decodes the audio signal monophonic listened to, synchronized, demodulation obtains time synchronization signals, Timing Synchronization Error and carrier synchronization error.
According to an embodiment of the invention, monophonic coding carries out audio coding using Opus formats, and monophonic decoding uses Opus formats carry out audio decoder, and the present invention allows to increase number of retransmissions using the higher code efficiencies of Opus, to carry The reliability of data transmission between high left bluetooth headset 20 and right bluetooth headset 30.
20 audio signal of bluetooth headset can be more slot packets to smart machine 10 to the left, can also be in some embodiments Single slot packets.Smart machine sends more slot of radiofrequency signal to bluetooth headset in further embodiment of the present invention as shown in figure 15 The sequence diagram of packet, smart machine sends single slot of radiofrequency signal to bluetooth headset in further embodiment of the present invention shown in Figure 16 The sequence diagram of packet.Bluetooth headset sends audio signal in the initial time of a certain slot, and every slot to smart machine to the left Duration fix.That is in the initial time of a certain slot, smart machine bluetooth headset audio signal to the left.I.e.: No matter using more slot packets or using list slot packets, bluetooth headset 20 sends audio signal always at certain to smart machine 10 to the left The initial time of one slot, and the duration of every slot fix(Such as the duration of every slot is 625us).
Smart machine is synchronous with the clock of bluetooth headset audio transmission
Left bluetooth headset and right bluetooth headset distinguish conversion process to the radiofrequency signal received, obtain Timing Synchronization letter Number, timing synchronization errors and carrier synchronization error.Specifically translation process includes:
The radio-frequency front-end of left bluetooth headset receives radiofrequency signal, samples to obtain left bluetooth headset number by digital analog converter Signal, left bluetooth headset digital signal is synchronized, demodulation obtains left bluetooth headset time synchronization signals, timing synchronization errors and load Wave synchronous error.
The radio-frequency front-end of right bluetooth headset receives radiofrequency signal, samples to obtain right bluetooth headset number by digital analog converter Signal, right bluetooth headset digital signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, timing synchronization errors and load Wave synchronous error.
The timing synchronization errors and/or carrier synchronization error of left bluetooth headset and right bluetooth headset are adjusted brilliant using phaselocked loop Bulk oscillation frequency makes clock frequency same frequency of the clock frequency of left bluetooth headset and right bluetooth headset with smart machine 10, simultaneously The initial times of time synchronization signals and smart machine to the left bluetooth headset and right bluetooth headset send left channel audio signal and The initial time of the slot of right channel audio signal synchronizes.
Flow diagram synchronous between smart machine and bluetooth headset, left in further embodiment of the present invention as shown in figure 17 The radio-frequency front-end 603 of bluetooth headset receives radiofrequency signal, and left bluetooth headset digital signal is obtained by digital-to-analogue conversion 604, warp It crosses synchronous, 605 processing of demodulation and obtains time synchronization signals 609, timing synchronization errors 606, carrier synchronization error 608.
Timing synchronization errors and/or carrier synchronization error 608 adjust crystal oscillation frequency through phaselocked loop 607 so that Zuo Lan Clock frequency same frequency of the tooth earphone with smart machine.The initial time of time synchronization signals 609 and smart machine are blue to the left simultaneously The initial time that tooth earphone sends the slot of audio signal synchronizes, the demodulation after phaselocked loop 607 adjusts crystal oscillation frequency Signal feeds back to radio-frequency front-end and frequency divider.
By above-mentioned signal synchronization process, left bluetooth headset realizes that clock is synchronous between smart machine.In this implementation According to the smart machine listened to, bluetooth headset sends audio signal to right bluetooth headset 30 to the left, is set in the same way with intelligence Realize that clock synchronizes between standby 10, to realize that the clock between left bluetooth headset and right bluetooth headset is synchronous.
In the present embodiment, timing synchronization errors and carrier synchronization error are adjusted into crystal oscillation frequency through phaselocked loop 607 simultaneously Rate can be in some embodiments that any synchronous error is adjusted through phaselocked loop 607 in timing synchronization errors and carrier synchronization error Whole crystal oscillation frequency.
Left bluetooth headset is played simultaneously with right bluetooth headset
By the above process, left bluetooth headset is synchronous with clock is realized by bluetooth headset.It is same in clock according to the present invention Audio signal is carried out on the basis of step to be played simultaneously.
In further embodiment of the present invention as shown in figure 18 left bluetooth headset and right bluetooth headset trigger dma controller when Sequence figure, in a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously.Due to left bluetooth Earphone had been carried out with the bluetooth clock of right bluetooth headset it is synchronous, such as left bluetooth headset bluetooth clock SLOT N clock Moment(1,2,3 ... ..., n, n+1, M), with the bluetooth clock of right bluetooth headset SLOT N clock time(1,2,3 ... ..., N, n+1, M)It is synchronous.In a certain clock time(Such as moment n), left bluetooth headset and right bluetooth headset trigger respective simultaneously The dma controller of dma controller, left bluetooth headset and right bluetooth headset accesses audio signal simultaneously, and audio signal is sent To respective playback equipment(Such as play loudspeaker).
Similarly, the bluetooth clock of left bluetooth headset is in SLOT N+1, the clock time of SLOT N+2 ..., SLOT N+n, For bluetooth clock with right bluetooth headset in SLOT N+1, the clock time of SLOT N+2 ..., SLOT N+n are synchronous, such as The bluetooth clock of left bluetooth headset starts to access data in the p time trigger dma controllers of SLOT N+2, then right bluetooth headset Bluetooth clock the p time trigger dma controllers of SLOT N+2 start access data, you can realize left bluetooth headset and right indigo plant Tooth earphone controls synchronous access data by respective DMA, and then realizes that audio signal is sent to respective playback equipment simultaneously Precisely played.
It is controlled in the present invention for triggering respective DMA simultaneously in the left bluetooth headset of a certain clock time and right bluetooth headset Device, in some embodiments, left bluetooth headset and right bluetooth headset are made an appointment a certain clock time, and the n moment is for example, about set to, Then respective dma controller is triggered in n moment left bluetooth headset and right bluetooth headset simultaneously.
In other implementations, left bluetooth headset or right bluetooth headset send a trigger signal by bluetooth to other side, To realize left bluetooth headset and right bluetooth headset in a certain clock time while triggering respective dma controller.For example, left Bluetooth headset first passes through bluetooth one triggering of bluetooth headset transmission to the right in advance in n time trigger dma controllers, then left bluetooth headset The triggering moment of left bluetooth headset is notified right bluetooth headset, i.e., by signal:Notify right bluetooth headset that will be controlled in n time triggers DMA Device processed.After right bluetooth headset receives trigger signal, respective dma controller is triggered simultaneously at the n moment with left bluetooth headset.
Further, after left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, left bluetooth ear The dma controller of machine and right bluetooth headset accesses audio signal simultaneously.Then at interval of a fixed time period(Such as 2ms)Afterwards, It is repeated once left bluetooth headset and right bluetooth headset while triggering respective dma controller.
The present invention left bluetooth headset is received and dispatched with the bluetooth of right bluetooth headset first it is synchronous into row clock, clock synchronize On the basis of, trigger respective DMA in same clock time(Direct Memory Access, direct memory access)Control Device, left bluetooth headset and right bluetooth headset access audio signal by respective dma controller, realize that left and right earphone precisely synchronizes and broadcast It puts.
Explanation in conjunction with the present invention disclosed here and practice, the other embodiment of the present invention is for those skilled in the art It all will be readily apparent and understand.Illustrate and embodiment is regarded only as being exemplary, true scope of the invention and purport are equal It is defined in the claims.

Claims (10)

1. a kind of bluetooth headset realizes the method being precisely played simultaneously, which is characterized in that the method includes following method and steps:
Bluetooth headset sends audio signal to smart machine to the left, and bluetooth headset forwards audio signal to left bluetooth headset to the right, wherein In a certain slot index(slot)Initial time described in left bluetooth headset bluetooth headset sends audio signal to the right, and it is each The duration of slot is fixed;
Right bluetooth headset carries out conversion process to the radiofrequency signal that receives, obtain time synchronization signals, timing synchronization errors and Carrier synchronization error;
The timing synchronization errors and/or carrier synchronization error of right bluetooth headset adjust crystal oscillation frequency using phaselocked loop, make institute The clock frequency of right bluetooth headset and the clock frequency of the left bluetooth headset are stated with frequency, meanwhile, the starting of time synchronization signals Time, the bluetooth headset transmission initial time of slot of audio signal was synchronous to the right with the left bluetooth headset;
In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, left bluetooth headset and The direct memory access of right bluetooth headset(DMA)Controller accesses audio signal simultaneously, and audio signal is sent to respectively Playback equipment.
2. according to the method described in claim 1, it is characterized in that, the left bluetooth headset forwards sound to the right bluetooth headset Frequency signal includes the following steps:
Left bluetooth headset carries out monophonic audio coding to audio signal, is converted to radiofrequency signal through bluetooth module and is sent to right indigo plant Tooth earphone;Right bluetooth headset receives radiofrequency signal, and being converted to audio signal through bluetooth module carries out monophonic decoding;
After right bluetooth headset decodes audio signal monophonic, synchronized, demodulation obtains time synchronization signals, timing synchronization errors With carrier synchronization error.
3. a kind of bluetooth headset realizes the method being precisely played simultaneously, which is characterized in that the method includes following method and steps:
Audio is divided into left channel audio signal and right channel audio signal by smart machine, and is respectively sent to by bluetooth connection Left bluetooth headset and right bluetooth headset;Wherein,
In the initial time of a certain slot, the smart machine sends L channel sound to the left bluetooth headset and right bluetooth headset Frequency signal and right channel audio signal, and the duration of every slot fix;
The left bluetooth headset and right bluetooth headset turn the L channel radiofrequency signal and right channel radiofrequency signal that receive respectively Processing is changed, time synchronization signals, timing synchronization errors and carrier synchronization error are obtained;
The timing synchronization errors and/or carrier synchronization error of the left bluetooth headset and right bluetooth headset are adjusted brilliant using phaselocked loop Bulk oscillation frequency keeps the clock frequency of the left bluetooth headset and right bluetooth headset and the clock frequency of the smart machine same Frequently, meanwhile, the initial time of the time synchronization signals and the smart machine are to the left bluetooth headset and right bluetooth headset It is synchronous with the initial time of the slot of right channel audio signal to send left channel audio signal;
In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, left bluetooth headset and The dma controller of right bluetooth headset accesses audio signal simultaneously, and audio signal is sent to respective playback equipment.
4. according to the method described in claim 3, it is characterized in that, audio is divided into left channel audio signal by the smart machine Before right channel audio signal, initialization stereo audio and stereo audio decoding are carried out.
5. according to the method described in claim 4, it is characterized in that, the stereo audio decoding after carry out left channel audio and Right audio channel detaches, and carries out monophonic audio coding respectively to the left channel audio and right audio channel, obtains left sound Audio channel signal and right channel audio signal, the left channel audio signal and right channel audio signal are converted by bluetooth module It is sent to left bluetooth headset and right bluetooth headset for L channel radiofrequency signal and right channel radiofrequency signal.
6. according to the method described in claim 3, it is characterized in that, the left bluetooth headset and right bluetooth headset receive left sound After road radiofrequency signal and right channel radiofrequency signal left channel audio signal and right channel audio signal are converted to by bluetooth module Carry out monophonic decoding.
7. according to the method described in claim 3, it is characterized in that, the left bluetooth headset and right bluetooth headset are to receiving L channel radiofrequency signal and right channel radiofrequency signal distinguish conversion process and include:
The radio-frequency front-end of the left bluetooth headset receives L channel radiofrequency signal, samples to obtain left bluetooth ear by digital analog converter Machine digital signal, the left bluetooth headset digital signal is synchronized, demodulation obtains left bluetooth headset time synchronization signals, periodically same Walk error and carrier synchronization error;
The radio-frequency front-end of the right bluetooth headset receives right channel radiofrequency signal, samples to obtain right bluetooth ear by digital analog converter Machine digital signal, the right bluetooth headset digital signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, periodically same Walk error and carrier synchronization error.
8. a kind of bluetooth headset realizes the method being precisely played simultaneously, which is characterized in that the method includes following method and steps:
Smart machine and left bluetooth headset establish bluetooth connection, and left earphone and right earphone establish bluetooth connection, and smart machine is by sound Frequency signal is sent to left bluetooth headset, while right earphone monitors audio signal, wherein
Initial time of the smart machine in a certain slot sends audio signal, and every slot to the left bluetooth headset Duration fix;
The left bluetooth headset and right bluetooth headset distinguish conversion process to the radiofrequency signal received, obtain Timing Synchronization letter Number, timing synchronization errors and carrier synchronization error;
The timing synchronization errors and/or carrier synchronization error of the left bluetooth headset and right bluetooth headset are adjusted brilliant using phaselocked loop Bulk oscillation frequency keeps the clock frequency of the left bluetooth headset and right bluetooth headset and the clock frequency of the smart machine same Frequently, meanwhile, the initial time of time synchronization signals is synchronous with the smart machine transmission initial time of slot of audio signal;
In a certain clock time, left bluetooth headset and right bluetooth headset trigger respective dma controller simultaneously, left bluetooth headset and The dma controller of right bluetooth headset accesses audio signal simultaneously, and audio signal is sent to respective playback equipment.
9. according to the method described in claim 8, it is characterized in that, the left bluetooth headset and right bluetooth headset are to receiving Radiofrequency signal distinguishes conversion process:
The radio-frequency front-end of the left bluetooth headset receives radiofrequency signal, samples to obtain left bluetooth headset number by digital analog converter Signal, the left bluetooth headset digital signal is synchronized, demodulation obtains left bluetooth headset time synchronization signals, timing synchronization errors With carrier synchronization error;
The radio-frequency front-end of the right bluetooth headset receives radiofrequency signal, samples to obtain right bluetooth headset number by digital analog converter Signal, the right bluetooth headset digital signal is synchronized, demodulation obtains right bluetooth headset time synchronization signals, timing synchronization errors With carrier synchronization error.
10. according to the method described in claim 1 or 3 or 8, which is characterized in that left bluetooth headset or right bluetooth headset pass through indigo plant Tooth gives other side to send a trigger signal, to tactile simultaneously in the left bluetooth headset of a certain clock time and right bluetooth headset to realize Send out dma controller respective.
CN201810626195.9A 2018-06-19 2018-06-19 Bluetooth headset realizes the method being precisely played simultaneously Active CN108337595B (en)

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 (23)

* Cited by examiner, † Cited by third party
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
US11570081B2 (en) 2019-10-03 2023-01-31 Realtek Semiconductor Corp. Multi-member bluetooth device capable of dynamically switching operation mode
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
TWI736378B (en) * 2019-10-03 2021-08-11 瑞昱半導體股份有限公司 Multi-member bluetooth device capable of dynamically switching operation mode, 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
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
TWI727897B (en) * 2019-11-05 2021-05-11 瑞昱半導體股份有限公司 Auxiliary bluetooth circuit of 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
CN112039623B (en) * 2020-11-05 2021-05-18 深圳市汇顶科技股份有限公司 Audio synchronous playing method, device, equipment and storage medium
KR102523889B1 (en) 2020-11-05 2023-04-19 선전 구딕스 테크놀로지 컴퍼니, 리미티드 Method, device, and equipment for simultaneous audio playback
CN115883711A (en) * 2021-09-29 2023-03-31 瑞昱半导体股份有限公司 Bluetooth voice communication system and storage circuit
CN115103431A (en) * 2022-03-25 2022-09-23 恒玄科技(上海)股份有限公司 Method for realizing synchronous playing of Bluetooth headset equipment and Bluetooth headset equipment thereof

Citations (4)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201318802D0 (en) * 2013-10-24 2013-12-11 Linn Prod Ltd Linn Exakt

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN108415685B (en) Wireless Bluetooth headsets realize the method being precisely played simultaneously
CN108200495A (en) A kind of method realized bluetooth headset and be played simultaneously
CN110290412B (en) A kind of audio sync playback method, device and loudspeaker apparatus, wireless headset
CN108419228B (en) A kind of wireless communications method suitable for bluetooth headset
CN108429949A (en) A kind of Bluetooth audio frequency mixed communication method suitable for bluetooth headset
CN102047594B (en) Synchronization of signals for multiple data sinks
CN110177313B (en) Binaural audio capture using cordless wireless headphones
EP2692152B1 (en) Wireless sound transmission system and method
CN105357604B (en) Audio playing device with Bluetooth function and audio playing method
CN107333339A (en) Audio data transmission method and double wireless headsets between a kind of pair of wireless headset
CN105306110B (en) A kind of method and system realized synchronous music and played
CN102047592A (en) Apparatus and methods for time synchronization of wireless audio data streams
CN106209130B (en) A kind of wireless headset and the method using wireless headset output audio data
CN110460931A (en) Method, bluetooth headset and the storage medium of call are realized based on bluetooth headset
CN109819303A (en) Data output method and relevant device
CN107431859B (en) The device and method of the radio broadcasting of audio data for the encapsulation with control data
CN102224699B (en) System and method to implement synchronous channel timing in a wireless communications network
CN207706373U (en) A kind of K songs microphone
CN102362510A (en) Sound and image reproduction system, hearing aid, and sound and image processing device
CN203747954U (en) Microphone and audio transmission system
KR101001329B1 (en) Dual headset and communication method using the same
CN101155439A (en) Method for intensifying sound effect processing function of Bluetooth stereo device
CN112953600B (en) Bluetooth system and communication method thereof
CN106209343B (en) Synchronize the broadcasting of the digital signal sent to multiple movable audio frequency terminals

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