CN107454510A - Audio sync player method of the bluetooth to case, system - Google Patents

Audio sync player method of the bluetooth to case, system Download PDF

Info

Publication number
CN107454510A
CN107454510A CN201710556320.9A CN201710556320A CN107454510A CN 107454510 A CN107454510 A CN 107454510A CN 201710556320 A CN201710556320 A CN 201710556320A CN 107454510 A CN107454510 A CN 107454510A
Authority
CN
China
Prior art keywords
slave
main frame
audio
bluetooth
bluetooth clock
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.)
Granted
Application number
CN201710556320.9A
Other languages
Chinese (zh)
Other versions
CN107454510B (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.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology 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 Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN201710556320.9A priority Critical patent/CN107454510B/en
Publication of CN107454510A publication Critical patent/CN107454510A/en
Application granted granted Critical
Publication of CN107454510B publication Critical patent/CN107454510B/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
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The present invention relates to a kind of audio sync player method of bluetooth to case, system, comprise the following steps:After main frame bluetooth clock interval estimation according to being undergone during main frame bluetooth clock when sending synch command and adjacent interruption twice sends the synch command, main frame plays the destination host bluetooth clock of the audio when interrupting next time;The amount of audio data played during being interrupted twice according to the main frame bluetooth clock interval calculation undergone during main frame broadcasting speed and adjacent interruption twice is adjacent, target play position is calculated according to the amount of audio data and current hosts audio play position;Target play position and destination host bluetooth clock are sent to slave.Audio sync player method of the above-mentioned bluetooth to case, system, slave is set to synchronize audio broadcasting with main frame, avoid causes the music of different passages asynchronous between independent equipment due to crystal oscillator difference be present.

Description

Audio sync player method of the bluetooth to case, system
Technical field
The present invention relates to audio signal processing technique field, more particularly to a kind of bluetooth to the audio sync player method of case, System.
Background technology
With the development of Audiotechnica, the stereosonic application of multichannel analog is increasingly extensive.Multichannel analog is stereo Technology application can truly reproduce the sound of original sound field in bluetooth is to the advanced audio of case, can bring for audience and preferably listen Audio fruit.
Bluetooth is to connect host device passage different from slave devices by bluetooth to the advanced audio of case, makes difference Passage plays identical audio file.But due to that can have crystal oscillator difference, the accumulation that crystal oscillator difference is brought between independent equipment Error can cause the music of different passages asynchronous.
The content of the invention
Based on this, it is necessary to for the accumulated error that crystal oscillator difference is brought the music of different passages can be caused asynchronous The problem of, there is provided a kind of audio sync player method of bluetooth to case.
A kind of bluetooth comprises the following steps to the audio sync player method of case:
According to the main frame bluetooth undergone during main frame bluetooth clock when sending synch command and adjacent interruption twice Clock interval estimates destination host bluetooth clock;Wherein, the destination host bluetooth clock is after sending the synch command, Main frame plays the main frame bluetooth clock of the audio when interrupting next time;
The sound played during being interrupted twice according to main frame broadcasting speed is adjacent with the main frame bluetooth clock interval calculation Frequency data volume, target play position is calculated according to the amount of audio data and current hosts audio play position;Wherein, it is described Target play position is that main frame plays the play position of the audio when interrupting next time after sending the synch command;
Target play position and destination host bluetooth clock are sent to slave, wherein, slave is according to the target master Machine bluetooth clock and target play position synchronize audio broadcasting with main frame.
A kind of bluetooth comprises the following steps to the audio sync player method of case:
Calculate the slave broadcasting speed that slave plays audio;
Synch command, destination host bluetooth clock and the target play position that Receiving Host is sent;
The destination host bluetooth clock is converted into target slave bluetooth clock;
According to the synch command, target slave bluetooth clock and target play position adjust slave broadcasting speed, make from Machine synchronizes audio broadcasting with main frame;
Wherein, the destination host bluetooth clock is after main frame sends the synch command, when performing interruption next time Main frame bluetooth clock;The target play position is after main frame sends the synch command, is performed next time when interrupting Audio play position.
A kind of bluetooth to the audio sync play system of case, including:
First computing module, according to send synch command when main frame bluetooth clock and it is adjacent twice interrupt during pass through The main frame bluetooth clock interval estimation destination host bluetooth clock gone through;Wherein, the destination host bluetooth clock is described in transmission After synch command, main frame plays the main frame bluetooth clock of the audio when interrupting next time;
Second computing module, for according to main frame broadcasting speed it is adjacent with the main frame bluetooth clock interval calculation twice in The amount of audio data played during disconnected, target is calculated according to the amount of audio data and current hosts audio play position and broadcast Put position;Wherein, the target play position is that main frame plays the sound when interrupting next time after sending the synch command The play position of frequency;
Sending module, sending module, for target play position and destination host bluetooth clock to be sent into slave, its In, slave synchronizes audio with main frame according to the destination host bluetooth clock and target play position and played.
A kind of bluetooth to the audio sync play system of case, including:
Computing module, the slave broadcasting speed of audio is played for calculating slave;
Receiving module, synch command, destination host bluetooth clock and the target play position sent for Receiving Host;
Convert module, for the destination host bluetooth clock to be converted into target slave bluetooth clock;
Speed adjusting module, for adjusting slave according to the synch command, target slave bluetooth clock and target play position Broadcasting speed, slave is set to synchronize audio broadcasting with main frame;
Wherein, the destination host bluetooth clock is after main frame sends the synch command, next time corresponding to interruption Main frame bluetooth clock;The target play position is that audio when interrupting next time is broadcast after main frame sends the synch command Put position.
Audio sync player method of the above-mentioned bluetooth to case, system, synch command is sent to slave by main frame, works as main frame When bluetooth clock is equal to destination host bluetooth clock, audio is played to target play position.Slave receives synch command, and mesh Mark main frame bluetooth clock is converted into target slave bluetooth clock, is adjusted according to the target slave bluetooth clock and target play position Whole slave broadcasting speed, slave and main frame is synchronized audio broadcasting, avoid between independent equipment due to crystal oscillator be present Difference causes the music of different passages asynchronous.
Brief description of the drawings
Fig. 1 is the step schematic diagram of the calculating main frame broadcasting speed of one embodiment of the invention;
Fig. 2 is the schematic flow sheet of one embodiment of the invention;
Fig. 3 is the step schematic diagram of the calculating slave broadcasting speed of one embodiment of the invention;
Fig. 4 is the step schematic diagram of the adjustment slave broadcasting speed of one embodiment of the invention;
Fig. 5 is audio sync play system structural representation of the bluetooth to case of one embodiment of the invention.
Embodiment
The bluetooth of the present invention is retouched in detail to audio sync player method, the system work of case with reference to the accompanying drawings and examples State.
The bluetooth of one embodiment of the invention comprises the following steps to the audio sync player method of case:
S101:According to the main frame undergone during main frame bluetooth clock when sending synch command and adjacent interruption twice Estimate destination host bluetooth clock in bluetooth clock interval;Wherein, the destination host bluetooth clock is to send the synch command Afterwards, main frame plays the main frame bluetooth clock of the audio when interrupting next time;
S102:Played during being interrupted twice according to main frame broadcasting speed is adjacent with the main frame bluetooth clock interval calculation Amount of audio data, target play position is calculated according to the amount of audio data and current hosts audio play position;Wherein, The target play position is that main frame plays the broadcasting position of the audio when interrupting next time after sending the synch command Put;
S103:Target play position and destination host bluetooth clock are sent to slave, wherein, slave is according to the mesh Mark main frame bluetooth clock and target play position synchronize audio broadcasting with main frame.
In the above-described embodiments, bluetooth connection has been set up between two audio amplifiers of main frame and slave, executive agent is main frame, Main frame can be with voice data of the order caching from mobile phone terminal or other voice data transmitting terminals, while sends what is received to slave Voice data.During main frame sends voice data to slave, if main frame and slave are to discriminate between sound channel, and main frame with The different sound channel of each leisure of slave plays audio, and main frame can first make a sound audio data separation, and saving bandwidth and caching needs Resource.For step S101, main frame carries out interruption driving by main frame bluetooth clock, and the main frame of interval driving at regular intervals enters Row once interrupts, and when interruption times reach default frequency threshold value, main frame sends synch command to slave;For step S102:Main frame can obtain the main frame bluetooth clock and host audio play position at interruption when interrupting each time, according to Main frame bluetooth clock and host audio play position when interrupting each time at acquired interruption can calculate it is adjacent twice in The main frame bluetooth clock interval undergone during disconnected and the amount of audio data played during adjacent interruption twice, wherein main frame are blue The count value of tooth clock can include slot (groove) count values and 1us count values, and 1 slot counts equivalent to 625us, 1us Value can be reset when counting down to 625us, and now, slot counting can enter 1, and in the present embodiment, main frame is estimating the target master of oneself During machine bluetooth clock, computing, the value of 1us meter digitals only can be carried out according to the estimated value for the bluetooth clock slot positions recorded It can be ignored;For step S103:Slave Receiving Host send destination host bluetooth clock, can be converted into target from Machine bluetooth clock.
By the above-mentioned means, make slave and main frame synchronize audio broadcasting, avoid between independent equipment due to depositing Cause the music of different passages asynchronous in crystal oscillator difference.
In a specific embodiment, bluetooth is to the audio sync player method of case, according to main frame broadcasting speed and institute The amount of audio data played during the adjacent interruption twice of main frame bluetooth clock interval calculation is stated, specifically includes following steps:
Obtain it is adjacent send twice during synch command the first amount of audio data for playing and it is described it is adjacent twice The the first main frame bluetooth clock interval undergone during sending synch command;According to the adjacent synch command of transmission twice During the amount of audio data that plays and the first main frame bluetooth clock interval estimation main frame play the main frame of the audio and play speed Degree;The amount of audio data played during adjacent interruption twice is calculated according to the main frame broadcasting speed.
The scheme of above-described embodiment, the specific evaluation method of main frame broadcasting speed is as shown in figure 1, according to the main frame bluetooth Clock obtain it is adjacent send the interruption twice during the main frame bluetooth clock interval T1, wherein T1 that undergo can be by current The main frame bluetooth clock recorded during interruption subtracts the last main frame bluetooth clock recorded when interrupting and obtained, and during Current interrupt The main frame bluetooth clock of record can be unsigned number with the main frame bluetooth clock recorded during last interrupt, can will be without symbol The value and the overflow value of holder that number subtraction obtains carry out obtaining final main frame bluetooth clock interval T1 with computing, it is possible to protect It is positive number to demonstrate,prove obtained T1.The main frame bluetooth clock undergone during sending the synch command twice according to T1 calculating is adjacent T2 is spaced, if main frame is often interrupted to slave by n times sends a synch command, T2=NT1.Played further according to the audio Position obtain it is adjacent send the interruption twice during the amount of audio data S1 that plays, calculated and adjacent sent twice according to S1 The amount of audio data S2 played during the synch command, if main frame is often interrupted to slave by n times sends a synchronization Order, then S2=NS1.Removed with S2 in T2, obtain the main frame broadcasting speed, the broadcasting speed of main frame can carry out low pass filtered Ripple, to reduce statistical error, all statistical values can be carried out LPF in of the invention.During the main frame bluetooth interrupted every time Clock is identical without being strict with very much, as long as because the synch command that slave is sent according to main frame constantly adjusts, constantly forces The audio play position of nearly main frame.
In the above-described embodiments, the main frame bluetooth clock and host audio play position by being obtained at Host Interrupt The broadcasting speed of calculating main frame, the broadcasting speed of slave is adjusted further according to the broadcasting speed of main frame, main frame and slave is carried out together Walk audio to play, avoid causes the music of different passages asynchronous between independent equipment due to crystal oscillator difference be present.
Wherein, it is described to obtain the adjacent mistake for sending synch command twice in bluetooth in the audio sync player method of case The amount of audio data played in journey, specifically includes following steps:
Obtain adjacent audio play position at interruption twice;According to the adjacent audio play position at interruption twice Obtain it is adjacent interrupted twice during main frame play the first amount of audio data, according to the first voice data gauge Calculate it is adjacent twice send synch command during main frame play second audio data amount.
In practice, also can be found in Fig. 1, the first amount of audio data equivalent to S1, second audio data amount equivalent to S2, here is omitted.
In one embodiment, bluetooth may comprise steps of to the audio sync player method of case:
Calculate the slave broadcasting speed that slave plays audio;Receiving Host send synch command, destination host bluetooth when Clock and target play position;The destination host bluetooth clock is converted into target slave bluetooth clock;According to the synchronous life Make, target slave bluetooth clock and target play position adjustment slave broadcasting speed, slave is synchronized audio with main frame and broadcast Put;Wherein, the destination host bluetooth clock is after main frame sends the synch command, performs main frame when interrupting next time Bluetooth clock;The target play position is after main frame sends the synch command, performs audio when interrupting next time and broadcasts Put position.
In the above-described embodiments, executive agent is slave, synch command that slave Receiving Host is sent, destination host bluetooth Clock and target play position, and make main frame and slave synchronously playing audio frequency, slave and master by adjusting the broadcasting speed of slave Interactive relation between machine is as shown in Fig. 2 wherein Interruption is driven by main frame bluetooth clock, DAC (Digital to Analog converter, digital analog converter) interrupt refer to that the data signal collected is converted into simulating by main frame and slave Signal, that is, it is converted into the interruption of simulated sound.The clock source that DAC is interrupted is local clock, and the communication between main frame and slave All it is to be carried out by bluetooth clock, when the destination host bluetooth clock that main frame is sent being converted into target slave bluetooth from chance Clock.
Above-described embodiment, when the destination host bluetooth clock that main frame is sent being converted into target slave bluetooth by slave Clock, the data of slave oneself are conversed relative to the depletion rate of slave bluetooth clock in conjunction with target play position can, Main frame and slave synchronously playing audio frequency can be made by the broadcasting speed for adjusting slave, avoided between independent equipment due to depositing Cause the music of different passages asynchronous in crystal oscillator difference.
Specifically, audio sync player method of the bluetooth to case, the slave broadcasting speed for calculating slave and playing audio, As shown in figure 3, specifically include following steps:
S201:Obtain it is adjacent receive the synch command twice during the slave bluetooth clock T3 that undergoes;
S202:Obtain it is adjacent receive the synch command twice during the slave amount of audio data S3 that plays;
S203:The slave broadcasting speed is calculated according to the slave amount of audio data and the slave bluetooth clock.
In the above-described embodiments, for step S201:During slave bluetooth when receiving synch command by obtaining slave Clock can get the adjacent slave bluetooth clock T3 undergone during receiving the synch command twice;For step S202:Slave play position when receiving synch command by obtaining slave can be got adjacent receives the synchronization twice The slave amount of audio data S3 played during order;For step S203:Removed with S3 and can be obtained by slave broadcasting in T3 Speed, wherein slave broadcasting speed will pass through LPF, to reduce statistical error.
Above-described embodiment can calculate broadcasting for slave according to the slave amount of audio data and the slave bluetooth clock Put speed, main frame and slave synchronously playing audio frequency can be made by the broadcasting speed for adjusting slave, avoid independent equipment it Between due to crystal oscillator difference be present cause the music of different passages asynchronous.
For example, in bluetooth in the audio sync player method of case, according to the target slave bluetooth clock and mesh Play position adjustment slave broadcasting speed is marked, as shown in figure 4, specifically including following steps:
S301:Current slave bluetooth clock when receiving synch command is obtained, according to the target slave bluetooth clock The remaining time of slave arrival target play position is calculated with the current slave bluetooth clock;
S302:Current slave play position is obtained, according to the target play position and the current slave play position Calculate the amount of audio data for needing to play;
S303:Slave target broadcasting speed is obtained with the remaining time according to the amount of audio data for needing to play;
S304:Slave adjusts the slave broadcasting speed according to the slave target broadcasting speed.
In the above-described embodiments, the destination host bluetooth clock that the target slave bluetooth clock can be sent by main frame turns Change, for step S301:Can be subtracted with the target slave bluetooth clock the current slave bluetooth clock obtain from Machine reaches the remaining time of target play position;For step S302:It can be subtracted with the target play position described current Play position obtains needing the amount of audio data played;For step S303:The amount of audio data for needing to play can be used Except obtaining slave target broadcasting speed in the remaining time;For step S304:Slave plays speed according to the slave target Degree adjusts the slave broadcasting speed and obtains slave actual play speed, and the slave actual play speed is equal to slave and plays speed Degree is multiplied by certain scale factor, wherein the scale factor is low with the ratio of slave broadcasting speed equal to target broadcasting speed Logical value.
Above-described embodiment can make main frame and slave synchronously playing audio frequency by adjusting the broadcasting speed of slave, avoid solely Cause the music of different passages asynchronous due to crystal oscillator difference be present between vertical equipment.
Alternatively, described bluetooth is in the audio sync player method of case, can be with when system supports regulation phaselocked loop Slave broadcasting speed is adjusted by adjusting phaselocked loop;, can be by adjusting input when system does not support to adjust phaselocked loop Amount of audio data adjusts slave broadcasting speed.
In the above-described embodiments, can be by adjusting the lock of slave if system clock source supports regulation phase-locked loop clock Phase ring clock finely tunes the broadcasting speed of the access speed of digital-to-analogue conversion, i.e. voice data.If system clock source is not supported to adjust Phase-locked loop clock is saved, the amount of audio data of input can be changed by the interpolation algorithm of software, so as to change audio sample frequency Rate is to adjust slave broadcasting speed.Vacant for calculation resources, i.e. slave broadcasting speed is too fast, can be by accurately Variable sampling goes to adjust parameter ratio, nervous for calculation resources, i.e. slave broadcasting speed is excessively slow, if error per second is n It is individual, line can be gone to insert a voice data point to adjust slave broadcasting speed by every 1/n distance.
Above-described embodiment can be adjusted gradually by adjusting phase-locked loop clock or changing the sample frequency of audio by computing Whole slave broadcasting speed, being unlikely to slave broadcasting speed has too big shake, make slave find with host clock difference, and gradually Slowly adjust the broadcasting speed of slave, do not influence former data as far as possible, ensure main frame and slave synchronously playing audio frequency and main frame with The broadcasting speed of slave does not have too macromutation, former audio is normally played glibly.
In one embodiment, bluetooth is to the audio sync player method of case, when the slave target broadcasting speed and institute When stating the difference of slave broadcasting speed and exceeding certain proportion, slave carries out F.F. or slave and realigns broadcasting starting point with main frame.
In the above-described embodiments, because each slave is walked in the target of and then main frame, constantly approach, so their meetings It is always held in the error range of very little.When the difference of the slave target broadcasting speed and the slave broadcasting speed exceedes During certain proportion, it is possible to be due to that number failure is received among slave, cause slave to snap past machine, at this moment slave can carry out F.F. or Broadcasting starting point is realigned with main frame, can be again using above-mentioned timing hair synch command after waiting the broadcasting of slave to recover stable Method of adjustment.
Above-described embodiment realigns broadcasting starting point come quick alignment master by allowing slave to carry out F.F. or slave with main frame It the play position of machine and slave, can quickly allow slave to recover normal playing status, improve the slave card as caused by the failure of receipts number Machine phenomenon.
In a specific embodiment, the audio sync of case is played as shown in figure 5, the present invention also provides a kind of bluetooth System, it may include:
First computing module, according to send synch command when main frame bluetooth clock and it is adjacent twice interrupt during pass through The main frame bluetooth clock interval estimation destination host bluetooth clock gone through;Wherein, the destination host bluetooth clock is described in transmission After synch command, main frame plays the main frame bluetooth clock of the audio when interrupting next time;
Second computing module, for according to main frame broadcasting speed it is adjacent with the main frame bluetooth clock interval calculation twice in The amount of audio data played during disconnected, target is calculated according to the amount of audio data and current hosts audio play position and broadcast Put position;Wherein, the target play position is that main frame plays the sound when interrupting next time after sending the synch command The play position of frequency;
Sending module, for target play position and destination host bluetooth clock to be sent into slave, wherein, slave root Audio is synchronized according to the destination host bluetooth clock and target play position with main frame to play.
In the above-described embodiments, bluetooth connection has been set up between two audio amplifiers of main frame and slave, executive agent is main frame, Main frame can be with voice data of the order caching from mobile phone terminal or other voice data transmitting terminals, while sends what is received to slave Voice data.During main frame sends voice data to slave, if main frame and slave are to discriminate between sound channel, and main frame with The different sound channel of each leisure of slave plays audio, and main frame can first make a sound audio data separation, and saving bandwidth and caching needs Resource.For the first computing module, main frame carries out interruption driving by main frame bluetooth clock, the master of interval driving at regular intervals Machine is once interrupted, and when interruption times reach default frequency threshold value, main frame sends synch command to slave;For second Computing module:Main frame can obtain the main frame bluetooth clock and host audio play position at interruption when interrupting each time, Adjacent two can be calculated according to the main frame bluetooth clock at the interruption all obtained when interrupting each time and host audio play position The main frame bluetooth clock interval undergone during secondary interruption and the amount of audio data played during adjacent interruption twice, wherein main The count value of machine bluetooth clock can include slot (groove) count values and 1us count values, and 1 slot is equivalent to 625us, 1us Count can be reset to during 625us, and now, slot counting can enter 1, and in the present embodiment, main frame is estimating the mesh of oneself When marking main frame bluetooth clock, computing only can be carried out with the estimated value for the bluetooth clock slot positions recorded, 1us meter digitals Value can be ignored;For sending module:The destination host bluetooth clock that slave Receiving Host is sent, can be converted into target Slave bluetooth clock.
By the above-mentioned means, make slave and main frame synchronize audio broadcasting, avoid between independent equipment due to depositing Cause the music of different passages asynchronous in crystal oscillator difference.
In another specific embodiment, bluetooth of the invention in the audio sync play system of case, including:
Computing module, the slave broadcasting speed of audio is played for calculating slave;
Receiving module, synch command, destination host bluetooth clock and the target play position sent for Receiving Host;
Convert module, for the destination host bluetooth clock to be converted into target slave bluetooth clock;
Speed adjusting module, for adjusting slave according to the synch command, target slave bluetooth clock and target play position Broadcasting speed, slave is set to synchronize audio broadcasting with main frame;
Wherein, the destination host bluetooth clock is after main frame sends the synch command, next time corresponding to interruption Main frame bluetooth clock;The target play position is that audio when interrupting next time is broadcast after main frame sends the synch command Put position.
In the above-described embodiments, executive agent is slave, synch command that slave Receiving Host is sent, destination host bluetooth Clock and target play position, and make main frame and slave synchronously playing audio frequency, slave and master by adjusting the broadcasting speed of slave Interactive relation between machine is as shown in Fig. 2 wherein Interruption is driven by main frame bluetooth clock, DAC (Digital to Analog converter, digital analog converter) interrupt refer to that the data signal collected is converted into simulating by main frame and slave Signal, that is, it is converted into the interruption of simulated sound.The clock source that DAC is interrupted is local clock, and the communication between main frame and slave All it is to be carried out by bluetooth clock, when the destination host bluetooth clock that main frame is sent being converted into target slave bluetooth from chance Clock.
Above-described embodiment, when the destination host bluetooth clock that main frame is sent being converted into target slave bluetooth by slave Clock, the data of slave oneself are conversed relative to the depletion rate of slave bluetooth clock in conjunction with target play position can, Main frame and slave synchronously playing audio frequency can be made by the broadcasting speed for adjusting slave, avoided between independent equipment due to depositing Cause the music of different passages asynchronous in crystal oscillator difference.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of bluetooth is to the audio sync player method of case, it is characterised in that comprises the following steps:
According to the main frame bluetooth clock undergone during main frame bluetooth clock when sending synch command and adjacent interruption twice Interval estimation destination host bluetooth clock;Wherein, the destination host bluetooth clock is after sending the synch command, next Main frame plays the main frame bluetooth clock of the audio during secondary interruption;
The audio number played during being interrupted twice according to main frame broadcasting speed is adjacent with the main frame bluetooth clock interval calculation According to amount, target play position is calculated according to the amount of audio data and current hosts audio play position;Wherein, the target Play position is that main frame plays the play position of the audio when interrupting next time after sending the synch command;
Target play position and destination host bluetooth clock are sent to slave, wherein, slave is blue according to the destination host Tooth clock and target play position synchronize audio broadcasting with main frame.
2. bluetooth according to claim 1 is to the audio sync player method of case, it is characterised in that plays speed according to main frame The amount of audio data played during degree interruption twice adjacent with the main frame bluetooth clock interval calculation, specifically includes following step Suddenly:
The amount of audio data and the adjacent transmission twice played during obtaining the adjacent synch command of transmission twice is synchronous The the first main frame bluetooth clock interval undergone during order;
Adjacent sent twice during synch command between the amount of audio data that plays and the first main frame bluetooth clock according to described The main frame broadcasting speed of the audio is played every estimation main frame;
The amount of audio data played during adjacent interruption twice is calculated according to the main frame broadcasting speed.
3. bluetooth according to claim 2 is to the audio sync player method of case, it is characterised in that described to obtain adjacent two The amount of audio data played during secondary transmission synch command, specifically includes following steps:
Obtain adjacent audio play position at interruption twice;
Main frame plays during being interrupted twice according to the adjacent audio play position acquisition twice at interruption is adjacent The first amount of audio data, according to first amount of audio data calculate it is adjacent twice send synch command during main frame broadcast The second audio data amount put.
4. a kind of bluetooth is to the audio sync player method of case, it is characterised in that comprises the following steps:
Calculate the slave broadcasting speed that slave plays audio;
Synch command, destination host bluetooth clock and the target play position that Receiving Host is sent;
The destination host bluetooth clock is converted into target slave bluetooth clock;
According to the synch command, target slave bluetooth clock and target play position adjust slave broadcasting speed, make slave with Main frame synchronizes audio broadcasting;
Wherein, the destination host bluetooth clock is after main frame sends the synch command, performs master when interrupting next time Machine bluetooth clock;The target play position is after main frame sends the synch command, performs audio when interrupting next time Play position.
5. bluetooth according to claim 4 is to the audio sync player method of case, it is characterised in that described to calculate from machine sowing The slave broadcasting speed of playback frequency, specifically includes following steps:
Obtain it is adjacent receive the synch command twice during the slave bluetooth clock that undergoes;
Obtain it is adjacent receive the synch command twice during the slave amount of audio data that plays;
The slave broadcasting speed is calculated according to the slave amount of audio data and the slave bluetooth clock.
6. bluetooth according to claim 4 is to the audio sync player method of case, it is characterised in that described according to the mesh Slave bluetooth clock and target play position adjustment slave broadcasting speed are marked, specifically includes following steps:
Obtain current slave bluetooth clock when receiving synch command, according to the target slave bluetooth clock with it is described current Slave bluetooth clock calculates the remaining time that slave reaches target play position;
Current slave play position is obtained, calculating needs with the current slave play position according to the target play position broadcasts The amount of audio data put;
Slave target broadcasting speed is obtained with the remaining time according to the amount of audio data for needing to play;
Slave adjusts the slave broadcasting speed according to the slave target broadcasting speed.
7. bluetooth according to claim 6 is to the audio sync player method of case, it is characterised in that when system is supported to adjust During phaselocked loop, slave broadcasting speed is adjusted by adjusting phaselocked loop;It is defeated by adjusting when system does not support to adjust phaselocked loop The amount of audio data entered adjusts slave broadcasting speed.
8. bluetooth according to claim 6 is to the audio sync player method of case, it is characterised in that when the slave target When the difference of broadcasting speed and the slave broadcasting speed exceedes certain proportion, slave carries out F.F. or slave and main frame is again right It is neat to play starting point.
9. a kind of bluetooth is to the audio sync play system of case, it is characterised in that including:
First computing module, according to what is undergone during main frame bluetooth clock when sending synch command and adjacent interruption twice Estimate destination host bluetooth clock in main frame bluetooth clock interval;Wherein, the destination host bluetooth clock is to send the synchronization After order, main frame plays the main frame bluetooth clock of the audio when interrupting next time;
Second computing module, for being interrupted twice according to main frame broadcasting speed is adjacent with the main frame bluetooth clock interval calculation The amount of audio data played in journey, target is calculated according to the amount of audio data and current hosts audio play position and plays position Put;Wherein, the target play position is that main frame plays the audio when interrupting next time after sending the synch command Play position;
Sending module, for target play position and destination host bluetooth clock to be sent into slave, wherein, slave is according to institute State destination host bluetooth clock and target play position and synchronize audio broadcasting with main frame.
10. a kind of bluetooth is to the audio sync play system of case, it is characterised in that including:
Computing module, the slave broadcasting speed of audio is played for calculating slave;
Receiving module, synch command, destination host bluetooth clock and the target play position sent for Receiving Host;
Convert module, for the destination host bluetooth clock to be converted into target slave bluetooth clock;
Speed adjusting module, played for adjusting slave according to the synch command, target slave bluetooth clock and target play position Speed, slave is set to synchronize audio broadcasting with main frame;
Wherein, the destination host bluetooth clock be after main frame sends the synch command interrupt next time corresponding to main frame Bluetooth clock;The target play position is after main frame sends the synch command, and audio when interrupting next time plays position Put.
CN201710556320.9A 2017-07-10 2017-07-10 Bluetooth is to the audio sync playback method of case, system Active CN107454510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710556320.9A CN107454510B (en) 2017-07-10 2017-07-10 Bluetooth is to the audio sync playback method of case, system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710556320.9A CN107454510B (en) 2017-07-10 2017-07-10 Bluetooth is to the audio sync playback method of case, system

Publications (2)

Publication Number Publication Date
CN107454510A true CN107454510A (en) 2017-12-08
CN107454510B CN107454510B (en) 2019-05-03

Family

ID=60488744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710556320.9A Active CN107454510B (en) 2017-07-10 2017-07-10 Bluetooth is to the audio sync playback method of case, system

Country Status (1)

Country Link
CN (1) CN107454510B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111997A (en) * 2017-12-15 2018-06-01 珠海市杰理科技股份有限公司 Bluetooth equipment audio synchronization method and system
CN110636349A (en) * 2019-08-20 2019-12-31 恒玄科技(上海)有限公司 Audio synchronous playing method for wireless equipment
CN111405336A (en) * 2019-08-09 2020-07-10 合肥炬芯智能科技有限公司 Multi-device synchronous playing method and system, electronic device and storage medium
CN112953600A (en) * 2021-02-07 2021-06-11 炬芯科技股份有限公司 Bluetooth system and communication method thereof
US11240586B1 (en) 2020-11-05 2022-02-01 Shenzhen Goodix Technology Co Ltd. Method, apparatus and device for synchronously playing audio
CN114978805A (en) * 2022-08-02 2022-08-30 上海富芮坤微电子有限公司 Instruction synchronization method and system based on low-power-consumption Bluetooth

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014159448A1 (en) * 2013-03-14 2014-10-02 Qualcomm Incorporated Inter-radio access technology (irat) handover
CN105306110A (en) * 2015-09-18 2016-02-03 深圳市冠旭电子有限公司 Methods and system for realizing music synchronous play
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN107040848A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Synchronization parameter transmission method, device and the equipment of AVDTP agreements

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014159448A1 (en) * 2013-03-14 2014-10-02 Qualcomm Incorporated Inter-radio access technology (irat) handover
CN105306110A (en) * 2015-09-18 2016-02-03 深圳市冠旭电子有限公司 Methods and system for realizing music synchronous play
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN107040848A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Synchronization parameter transmission method, device and the equipment of AVDTP agreements

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111997A (en) * 2017-12-15 2018-06-01 珠海市杰理科技股份有限公司 Bluetooth equipment audio synchronization method and system
CN108111997B (en) * 2017-12-15 2020-12-08 珠海市杰理科技股份有限公司 Bluetooth device audio synchronization method and system
CN111405336A (en) * 2019-08-09 2020-07-10 合肥炬芯智能科技有限公司 Multi-device synchronous playing method and system, electronic device and storage medium
CN110636349A (en) * 2019-08-20 2019-12-31 恒玄科技(上海)有限公司 Audio synchronous playing method for wireless equipment
CN110636349B (en) * 2019-08-20 2022-01-18 恒玄科技(上海)股份有限公司 Audio synchronous playing method for wireless equipment
US11240586B1 (en) 2020-11-05 2022-02-01 Shenzhen Goodix Technology Co Ltd. Method, apparatus and device for synchronously playing audio
WO2022094835A1 (en) * 2020-11-05 2022-05-12 深圳市汇顶科技股份有限公司 Audio synchronization playback method, apparatus, device, and storage medium
US11632617B2 (en) 2020-11-05 2023-04-18 Shenzhen GOODIX Technology Co., Ltd. Method, apparatus and device for synchronously playing audio
CN112953600A (en) * 2021-02-07 2021-06-11 炬芯科技股份有限公司 Bluetooth system and communication method thereof
CN112953600B (en) * 2021-02-07 2022-09-23 炬芯科技股份有限公司 Bluetooth system and communication method thereof
CN114978805A (en) * 2022-08-02 2022-08-30 上海富芮坤微电子有限公司 Instruction synchronization method and system based on low-power-consumption Bluetooth
CN114978805B (en) * 2022-08-02 2022-11-04 上海富芮坤微电子有限公司 Instruction synchronization method and system based on low-power-consumption Bluetooth

Also Published As

Publication number Publication date
CN107454510B (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN107454510B (en) Bluetooth is to the audio sync playback method of case, system
US11394524B2 (en) Method and apparatus for time synchronization in wireless networks
US11287843B2 (en) Synchronisation of hardware clock using software clock synchronisation error
US7773606B2 (en) Timing distribution within a network element while supporting multiple timing domains
US8670439B2 (en) Method for accurate distribution of time to a receiver node in an access network
CN103220060A (en) Time control apparatus, time control method, and program
US10602468B2 (en) Software based audio timing and synchronization
CN110636600B (en) Audio synchronous playing method for wireless equipment
US20150163048A1 (en) Method and apparatus for mitigation of packet delay variation
CN110636349A (en) Audio synchronous playing method for wireless equipment
JP5444910B2 (en) Synchronization system
CN112235860A (en) Active antenna unit time delay alignment method and device and active antenna unit
CN104079958B (en) A kind of method of video broadcast synchronous with multichannel audio
CN103378916A (en) Clock transmission method, boundary clock and transparent clock
CN105897998A (en) Smart phone recording method and system
EP3868043B1 (en) Wireless audio synchronization
JP2007306497A (en) Clock synchronization method and circuit in packet transmission
CN107239253B (en) Wireless local area network player, system and method for synchronizing playing speed
CN106209343B (en) Synchronize the broadcasting of the digital signal sent to multiple movable audio frequency terminals
CN1848713B (en) Time division multiplexing system minor node frame synchronization realizing method and apparatus
WO2020206465A1 (en) Software based audio timing and synchronization
CN102111231B (en) Clock frequency synchronization method in STM-N network and equipment and system adopting same
CN112333610B (en) Audio playing method and device of Bluetooth TWS equipment
TW201906460A (en) Synchronous signal transmission path adaptive change system and method applied to a network for transmitting a synchronization signal to automatically maintain the synchronization signal transmission quality of the network
JP2020202444A (en) Transmission device and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 519000 No. 333, Kexing Road, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee after: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

Address before: Floor 1-107, building 904, ShiJiHua Road, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder