CN105429724B - Clock correction method, clock correction device and audio amplifier - Google Patents
Clock correction method, clock correction device and audio amplifier Download PDFInfo
- Publication number
- CN105429724B CN105429724B CN201510685771.3A CN201510685771A CN105429724B CN 105429724 B CN105429724 B CN 105429724B CN 201510685771 A CN201510685771 A CN 201510685771A CN 105429724 B CN105429724 B CN 105429724B
- Authority
- CN
- China
- Prior art keywords
- clock
- time
- local
- clock information
- audio amplifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012937 correction Methods 0.000 title claims abstract description 41
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000001360 synchronised effect Effects 0.000 claims abstract description 77
- 238000004891 communication Methods 0.000 claims abstract description 38
- 238000001514 detection method Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 description 39
- 238000010586 diagram Methods 0.000 description 21
- 238000003860 storage Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 239000013078 crystal Substances 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000005422 blasting Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/004—Synchronisation arrangements compensating for timing error of reception due to propagation delay
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a kind of clock correction method, clock correction device and audio amplifier.The clock correction method includes:Receive synchronised clock information;Obtain local clock information;Based on synchronised clock information and local clock information, the timing differential δ of calculating local clock and synchronised clock;Detect communications status;In the case where communications status is deteriorated, local clock is corrected using the timing differential δ.
Description
Technical field
The present invention relates to clock correction, more particularly, to a kind of clock correction method, clock correction device and audio amplifier.
Background technology
In general, time synchronized refers to, two equipment have uniformity in time.In the synchronization comprising multiple equipment
In system, the equipment where clock source is referred to as main equipment or main synchronizer, other equipment communicate with main equipment, with synchronization certainly
Oneself local clock, so as to reach the purpose being consistent with the clock of main equipment.
But multiple technologies problem is there may be in synchronization system.
For example, if the network condition of main equipment is deteriorated, for example, under Wi-Fi environment, if main equipment is away from Wi-Fi
Router, then this will cause the overall time synchronized effect of synchronization system to be deteriorated.
, can be by two voice box groups into stereo playing system for example, in wireless WiFi audio systems.Usually require that two
Individual audio amplifier plays the different sound channels of same music in the same time.If the reproduction time difference of two audio amplifiers reaches Millisecond, this
The experience that user listens music can be largely effected on.Especially, in the case where using WiFi as telecommunication media, communication conditions are worked as
During variation (for example, WiFi channels are crowded), synchronization accuracy can be deteriorated.
For example, with the raising of people's standard of living, multiple routers, multiple audio amplifier connections are there may be in user family
To different routers.This there may be situation about being communicated across router.In this case, communication link lengthens, so as to lead
Synchronous effect is caused to be deteriorated.
Therefore, present inventors have realized that, particularly with for sound system, it is necessary to be improved.
The content of the invention
It is an object of the present invention to provide a kind of new solution for clock correction.
According to the first aspect of the invention, there is provided a kind of clock correction method, including:Receive synchronised clock information;Obtain
Obtain local clock information;Based on synchronised clock information and local clock information, the clock difference of calculating local clock and synchronised clock
Different δ;Detect communications status;In the case where communications status is deteriorated, local clock is corrected using the timing differential δ.
Preferably, the synchronised clock information includes the first lock in time Ts1 and from Ts1 by very first time interval
Second lock in time Ts2, and the local clock information include the first local zone time corresponding with the first lock in time Ts1
To1 and second local zone time To2 corresponding with the second lock in time Ts1.
Preferably, the timing differential δ=(Ts2-Ts1)-(To2-To1), and the step of correction local clock include:
From after last time is synchronized using synchronised clock information, at interval of the very first time interval, the clock is used
Difference correction local clock.
Preferably, the timing differential δ=((Ts2-Ts1)-(To2-To1)) ÷ (To2-To1), and correction it is local when
The step of clock, includes:From after last time is synchronized using synchronised clock information, at interval of the Δ t times, Δ t* δ are used
Correct local clock.
Preferably, when not receiving synchronised clock information continuous n synchronizing cycle, determine that communications status is deteriorated.
Preferably, the timing differential δ is the average value of the timing differential repeatedly calculated.
Preferably, the local clock is the local clock of audio amplifier.
According to the second aspect of the invention, there is provided a kind of clock correction device, including:Receiving unit, it is configured to connect
Receive synchronised clock information;Obtaining unit, it is configured to obtain local clock information;Computing unit, when being configured to be based on synchronous
Clock information and local clock information, calculate the timing differential δ of local clock and synchronised clock;Detection unit, it is configured to detect
Communications status;Unit is corrected, in the case of being provided in communications status variation, when correcting local using the timing differential δ
Clock.
Preferably, the synchronised clock information includes the first lock in time Ts1 and from Ts1 by very first time interval
Second lock in time Ts2, and the local clock information include the first local zone time corresponding with the first lock in time Ts1
To1 and the second local zone time To2 by the very first time interval.
Preferably, the timing differential δ=(Ts2-Ts1)-(To2-To1), and it is described correction unit be configured to from
Last time is risen after being synchronized using synchronised clock information, at interval of the very first time interval, uses the clock difference
Different δ corrects local clock.
Preferably, the timing differential δ=((Ts2-Ts1)-(To2-To1)) ÷ (To2-To1), and the correction are single
Member is configured to from after last time is synchronized using synchronised clock information, at interval of the Δ t times, uses Δ t* δ schools
Positive local clock.
Preferably, the detection unit is configured to when not receiving synchronised clock information continuous n synchronizing cycle, really
Determine communications status variation.
Preferably, the timing differential δ is the average value of the timing differential repeatedly calculated.
Preferably, the local clock is the local clock of audio amplifier.
According to the third aspect of the invention we, there is provided a kind of audio amplifier, including the clock correction device according to the present invention.
It was found by the inventors of the present invention that in the prior art, not in the case where communication conditions are deteriorated by deviation come
Correct the technical scheme of local clock.Therefore, the technical assignment of the invention to be realized or technical problem to be solved are
It is that those skilled in the art never expect or it is not expected that, therefore the present invention is a kind of new technical scheme.
In addition, it will be appreciated by those skilled in the art that although many problems in the prior art be present, it is still, of the invention
The technical scheme of each embodiment or claim only can be improved at one or several aspects, existing without solving simultaneously
The whole technical problems for having in technology or being listed in background technology.It will be appreciated by those skilled in the art that for a right
The content do not mentioned in it is required that should not be taken as the limitation for the claim.
By referring to the drawings to the present invention exemplary embodiment detailed description, further feature of the invention and its
Advantage will be made apparent from.
Brief description of the drawings
It is combined in the description and the accompanying drawing of a part for constitution instruction shows embodiments of the invention, and even
It is used for the principle for explaining the present invention together with its explanation.
Fig. 1 is the schematic block diagram for the example for showing the configuration available for the audio amplifier for realizing embodiments of the invention.
Fig. 2 shows in the multiple electronic equipments being used in a communications system according to the first embodiment of the present invention and selected
The flow chart of the method for main synchronizer.
Fig. 3 shows the block diagram of the selection device according to the first embodiment of the present invention.
Fig. 4 shows the schematic diagram of an example according to the present invention.
Fig. 5 shows the example that synchronous difference is produced between two audio amplifiers.
Fig. 6 shows the flow chart of clock correction method according to the second embodiment of the present invention.
Fig. 7 shows the block diagram of clock correction device according to the second embodiment of the present invention.
Fig. 8 shows the flow of the method for being used to select multistage main synchronizer according to the third embodiment of the invention
Figure.
Fig. 9 shows the block diagram of selection device according to the third embodiment of the invention.
Figure 10 shows the schematic diagram of another example according to the present invention.
Figure 11 shows the schematic diagram of another example according to the present invention.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless have in addition
Body illustrates that the unlimited system of part and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The scope of invention.
The description only actually at least one exemplary embodiment is illustrative to be never used as to the present invention below
And its application or any restrictions that use.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
<The configuration of audio amplifier>
Fig. 1 is the block diagram for the example for showing the configuration available for the audio amplifier 1000 for realizing embodiments of the invention.
As shown in figure 1, audio amplifier 1000 includes processing unit 1010, storage device 1020, communicator 1030, display device
1040th, loudspeaker 1050, etc..
Processing unit 1010 is such as can be central processor CPU, Micro-processor MCV.Storage device 1020 for example wraps
Include nonvolatile memory of ROM (read-only storage), RAM (random access memory), hard disk etc..
Communicator 1030 can for example carry out wired or wireless communication.
Display device 1040 is, for example, LCDs, for example, be displayed for the information of played music etc..Sound
Case 1000 plays sound by loudspeaker 1050, for example, music etc..
Audio amplifier shown in Fig. 1 is only explanatory, and is never intended to limit invention, its application, or uses.
<First embodiment>
Fig. 2 shows in the multiple electronic equipments being used in a communications system according to the first embodiment of the present invention and selected
The method of main synchronizer.
As shown in Fig. 2 in step S2100, the independent transmission obtained between each electronic equipment and other electronic equipments is prolonged
Late.
Independent transmission delay refers to the transmission delay between two points on network.Generally, it is believed that for network
On two nodes A and B, transmission delay from A to B is equal to the transmission delay from B to A.Thus, for example, calculating can be passed through
Time synchronized bag is sent from an electronic equipment to another electronic equipment and receives the time synchronized to an electronic equipment
Time between the feedback bag of bag, obtain independent transmission delay (half for being equal to the time).
In order to obtain more accurate transmission delay, for example, the individually transmission delay is from an electronic equipment to another
The average value of the transmission delay of multiple acquisition between one electronic equipment.For example, the number obtained is more than or equal to 2.
In some cases, it is not directly connected between each electronic equipment, but by access point (for example, wireless
Access point) connection.As shown in figure 4, electronic equipment 4020a, 4020b, 4020c and 4020d are interconnected by WAP 4010.
Transmission delay between such case, two electronic equipments can be equal to the biography that two electronic equipments arrive WAP respectively
Defeated delay (such as Tar, Tbr, Tcr, Tdr) sum.For example, the transmission delay Tab=Tar+Tbr between 4020a and 4020b;
By that analogy.
In step S2200, total transmission delay of each electronic equipment is calculated, wherein, total transmission delay is each electricity
The independent transmission delay sum of sub- equipment.
For example, in the example shown in Figure 4,4 electronic equipments be present.For electronic equipment 4020a, total transmission delay Ta
=Tab+Tac+Tad, wherein Tab, Tac, Tad are 4020a to 4020b, 4020c and 4020d independent transmission delay respectively.According to
It is secondary to analogize, Tb=Tba+Tbc+Tbd, Tc=Tca+Tcb+Tcd, Td=Tda+Tdb+Tdc.
In step S2300, the minimum electronic equipment of total transmission delay is selected as main synchronizer.
In the example in fig. 4, for example, in Ta, Tb, Tc and Td, Ta value is minimum.It is thereby possible to select equipment 4020a
As main synchronizer.
In one example, for example, total transmission delay is weighted.This design can prevent from continually cutting
Change owner synchronizer.For example, it is assumed that current device A overall transmission time is TA.When A equipment obtains once new overall transmission time
During TA ', the overall transmission time for being weighted the A equipment after calculating is TAnew=TA × 90%+TA ' × 10%.This weighting meter
Calculation mode can reduce influences of the single overall transmission time TA' to overall transmission time TA, so as to more effectively select conjunction
Suitable main synchronizer.
It will be appreciated by those skilled in the art that the method according to the invention can be performed at interval of the scheduled time, with dynamic
The net synchronization capability of optimization system;Methods described can be performed when checking synchronous effect deterioration;Or can be only at the beginning of system
Methods described is performed during the beginning.
For example, the communication system is to need the system of simultaneously operating, for example, video-splicing screen system, multiple spot explosion system
System, multipath electronic switch etc..The electronic equipment can be each sub- equipment in the system, for example, video-splicing screen
In each sub-screen, each sub- blow-up point in multiple spot blasting system, each switch in multipath electronic switch etc..It is preferred that
Ground, the communication system is sound system, and the multiple electronic equipment is audio amplifier.By this method of synchronization, can subtract
Small audio amplifier plays the time difference of sound (music).It is in the acoustic system particularly advantageous using the solution of the present invention.
Advantageously, synchronized by using according to the main synchronizer selected by the present invention, system can be improved
Synchronous effect.
Fig. 3 shows in the multiple electronic equipments being used in a communications system according to the first embodiment of the present invention and selected
The selection device 3000 of main synchronizer.
Obtaining unit 3100 is configured to obtain the independent transmission delay between each electronic equipment and other electronic equipments.
For example, the obtaining unit 3100 is configured to send out by calculating from an electronic equipment to another electronic equipment
Send time synchronized bag to receive the time between the feedback bag of the time synchronized bag to an electronic equipment, obtain individually transmission
Delay.
For example, the obtaining unit is configured to by calculating from an electronic equipment to another electronic equipment
The average value of the transmission delay repeatedly obtained, obtain the independent transmission delay.
Computing unit 3200 is configured to calculate total transmission delay of each electronic equipment, wherein, total transmission delay
It is the independent transmission delay sum of each electronic equipment.
For example, total transmission delay is weighted, and total transmission delay of current main synchronizer is endowed
Less weight.
The electronic equipment that selecting unit 3300 is configured to select total transmission delay minimum is as main synchronizer.
The communication system is sound system, and the multiple electronic equipment is audio amplifier.
It will be appreciated by those skilled in the art that can be by various modes come the unit in realization device 3000.Example
Such as, unit can be realized by instructing configuration processor.For example, instruction can be stored in ROM, and when startup
During equipment, instruction is read in programming device to realize unit from ROM.For example, unit can be cured to
In dedicated devices (such as ASIC).Unit can be divided into separate unit, or they can be merged one
Rise and realize.The unit can be realized by one kind in above-mentioned various implementations, or can pass through above-mentioned various realities
The combinations of two or more modes in existing mode is realized.To those skilled in the art, these embodiments are all
It is equivalent.
Fig. 4 shows the schematic diagram of an example according to the present invention.
In the example in fig. 4, communication system include control device 4010 and electronic equipment 4020a, 4020b, 4020c and
4020d。
In the example in fig. 4, control device 4010 is, for example, WAP.But those skilled in the art should manage
Solution, control device is not limited to WAP, it may also is that wire network devices.In a communications system, electronic equipment may be used also
To be connected to control device by wired mode.In addition, control device 4010, which can also be, is connected to the extra of WAP
Equipment.
Electronic equipment 4020a, 4020b, 4020c and 4020d are, for example, the audio amplifier with network connecting function.
In the communication system shown in Fig. 4, main synchronizer is selected in multiple electronic equipments.Include in the system
According to the selection device of the present invention, such as the selection device 3000 shown in Fig. 3.Selection device can be arranged on control device
In 4010, or selection device can also be separately positioned in electronic equipment 4020a, 4020b, 4020c and 4020d.
<Second embodiment>
Fig. 5 shows the example that synchronous difference is produced between two audio amplifiers.
As shown in figure 5, audio amplifier A, B, which are about scheduled on the T1 times, starts simultaneously at the same first stereo music of broadcasting.A audio amplifiers play left
Channel data, B audio amplifiers play right data.It is assumed that in the T1 times, A, B are played simultaneously.But because in audio amplifier A, B when
There is error in the crystal frequency of clock, thus the left and right sound channels data for causing audio amplifier A, B to play are more and more asynchronous.In T2, A
Audio amplifier played La sampled point of this song, and B audio amplifiers have then only played Lb sampled point of this song.This leads
Cause, at the T2 moment, the left and right acoustic channels of music are asynchronous.Therefore, the music experience of user is deteriorated.
Easily occurs above-mentioned different situation in following environment.For example, in T1, communication conditions are good, audio amplifier A, B energy
Enough reach good synchronization.But communication conditions are deteriorated afterwards, for example, in extreme circumstances, being disconnected between A, B.Now,
Audio amplifier A, B each play out according to the clock (crystal oscillator step) of oneself.
In this case, the difference of audio amplifier A, B crystal oscillator frequency determines the synchronous situation between two audio amplifiers.This hair
Bright design is, predefines the timing differential (crystal oscillator frequency difference) between two audio amplifiers, and the feelings being deteriorated in communication
Timing differential adjustment local clock is used under condition.So,, can be with relative to prior art in the case where communicating and being deteriorated
Preferable clock is provided.
Fig. 6 shows the flow chart of clock correction method according to the second embodiment of the present invention.
As shown in fig. 6, in step S6100, synchronised clock information is received.Synchronised clock information is, for example, independently synchronously to set
Standby information.
In step S6200, local clock information is obtained.
For example, the synchronised clock information includes the first lock in time Ts1 and from Ts1 by the of very first time interval
Two lock in time Ts2, and the local clock information include first local zone time To1 corresponding with the first lock in time Ts1
And second local zone time To2 corresponding with the second lock in time.The very first time interval can be arbitrary time span.
For example, lock in time Ts1 and Ts2 can be main synchronizer time or main synchronizer instruction from
The time that category equipment is adjusted.
The lock in time and local zone time are explained referring to Fig. 5.Assuming that audio amplifier A is main synchronizer and audio amplifier B
It is slave.It will be appreciated by those skilled in the art that in physical device development process, the time also refers to be based on
The count value of clock crystal oscillator.Assuming that when starting, time Ts1 is sent to audio amplifier B or audio amplifier B through being interacted with audio amplifier A by audio amplifier A
And Ts1 is calculated.Time Ts1 can be audio amplifier A time or the time of audio amplifier A instruction audio amplifier B modifications.Audio amplifier B
Record local zone time To1 corresponding with time Ts1, i.e. To1 can be time when receiving Ts1 or receive
Time after Ts1 Jing Guo fixed intervals.Then, by very first time interval, audio amplifier A by time Ts2 be sent to audio amplifier B or
Audio amplifier B is through interacting and being calculated Ts2 with audio amplifier A.Audio amplifier B records local zone time To2 corresponding with time Ts2.Institute herein
What is obtained is clock (crystal oscillator step) difference between audio amplifier A and audio amplifier B, therefore, as long as reference clock and this can be obtained
The difference between ground clock, the lock in time and local zone time can use arbitrary form.
In step S6300, based on synchronised clock information and local clock information, calculate local clock and synchronised clock when
The different δ of clock correction.
For example, the timing differential δ is the average value of the timing differential repeatedly calculated.The δ so calculated is more accurate.
In step S6400, communications status is detected.
For example, when not receiving synchronised clock information continuous n synchronizing cycle, determine that communications status is deteriorated.At one
In example, n can be equal to 1.
In step S6500, in the case where communications status is deteriorated, local clock is corrected using the timing differential δ.
In one example, the timing differential δ=(Ts2-Ts1)-(To2-To1).The step of correcting local clock can
With including:It is synchronized and (that is, calibrates local clock using synchronised clock information) from last time using synchronised clock information
After rise, at interval of the very first time interval, use timing differential correction local clock.
In another example, the timing differential δ=((Ts2-Ts1)-(To2-To1)) ÷ (To2-To1).For example,
The step of correcting local clock can include:From after last time is synchronized using synchronised clock information, at interval of Δ t
Time, local clock is corrected using Δ t* δ.
As described in Fig. 5 example, it is particularly advantageous that the present invention, which is applied to audio amplifier,.Thus, for example, the local clock
It is the local clock of audio amplifier.
Fig. 7 shows the block diagram of clock correction device 7000 according to the second embodiment of the present invention.
As shown in fig. 7, clock correction device 7000 include receiving unit 7100, obtaining unit 7200, computing unit 7300,
Detection unit 7400 and correction unit 7500.
Receiving unit 7100 is configured to receive synchronised clock information.
Obtaining unit 7200 is configured to obtain local clock information.
For example, the synchronised clock information includes the first lock in time Ts1 and from Ts1 by the of very first time interval
Two lock in time Ts2, and the local clock information include first local zone time To1 corresponding with the first lock in time Ts1
And second local zone time To2 corresponding with the second lock in time.
Computing unit 7300 is configured to be based on synchronised clock information and local clock information, calculate local clock with it is synchronous
The timing differential δ of clock.
For example, the timing differential δ can be the average value of the timing differential repeatedly calculated.
Detection unit 7400 is configured to detect communications status.
For example, the detection unit 7400 is configured to when not receiving synchronised clock information continuous n synchronizing cycle,
Determine that communications status is deteriorated.
In the case that correction unit 7500 is provided in communications status variation, corrected using the timing differential δ local
Clock.
In one example, the timing differential δ=(Ts2-Ts1)-(To2-To1).The correction unit 7500 is set
It is set to from after last time is synchronized using synchronised clock information, at interval of the very first time interval, using described
Timing differential δ corrects local clock.
In another example, the timing differential δ=((Ts2-Ts1)-(To2-To1)) ÷ (To2-To1).The school
Positive unit 7500 is configured to from after last time is synchronized using synchronised clock information, at interval of the Δ t times, is used
Δ t* δ correct local clock.
It will be appreciated by those skilled in the art that the unit in clock correction device 7000 can pass through software, hardware
The mode combined with software/hardware is realized.To those skilled in the art, software realization mode and hardware implementation mode
It is equivalent.
Advantageously, the local clock is the local clock of audio amplifier.
The technical scheme of the present embodiment can be applied in the example shown in Figure 4.For example, the electronic equipment in Fig. 4
4020a, 4020b, 4020c and 4020d are audio amplifiers.The audio amplifier includes the clock correction device 7000 shown in Fig. 7.In audio amplifier
In the case that 4020a is chosen as main synchronizer, in the case where communication conditions are deteriorated, audio amplifier 4020b, 4020c and 4020d
In each can correct local clock using the clock correction device 7000 wherein included.
<3rd embodiment>
Fig. 8 shows the flow of the method for being used to select multistage main synchronizer according to the third embodiment of the invention
Figure.
It is each main synchronizer of group selection one-level in multigroup electronic equipment as shown in figure 8, in step S8100.It is described
Main synchronizer of the main synchronizer of one-level as this group of electronic equipment.
For example, a WAP is set in each room in multiple rooms.Electronic equipment is connected to each difference
WAP.In such a case, it is possible to multigroup electronic equipment is divided based on multiple WAPs.Same group
In electronic equipment be connected to same WAP.
For example, for each group, can be selected based on total transmission delay of each electronic equipment to other electronic equipments
The main synchronizer of one-level.For example, scheme before use described in first embodiment selects the main synchronizer of one-level.
It will be appreciated by those skilled in the art that " one-level " and " two level " here represent be equipment relative rank, and
Actual rank is not indicated that.In other words, for example, each electronic equipment in multigroup electronic equipment can be other in itself
The main synchronizer of electronic equipment, and the main synchronizer of one-level can be selected in these main synchronizers.
Example in Figure 11 shows the relativity of this rank.For example, as shown in figure 11, selected in slave unit a2, a3
Main synchronizer represent that the main synchronizer selected in slave unit a5, a6 is represented with b2, is selected in slave unit a7, a8 with b1
Main synchronizer represented with b3.The main synchronizer selected in slave unit a1, b1, a4, b2 represents with c1, slave unit b3, a9
The main synchronizer of middle selection is represented with c2.The main synchronizer selected in slave unit c1, c2 is represented with d1.Wherein, a1, a4,
A9 can be regarded as including the group of individual equipment, and the main synchronizer in the group is exactly a1, a4, a9 itself.Equipment b1, b2,
B3 is the main synchronizer of one-level.Equipment c1, c2 is a1, a4, a9, b1, b2, b3 main synchronizer of two level respectively.But from d1
From the perspective of, equipment c1, c2 is the main synchronizer of one-level again, and d1 is their the main synchronizer of two level.
In step S8200, the main synchronizer of two level is selected in the main synchronizer of one-level.The main synchronizer of two level is made
For the main synchronizer of the one-level main equipment.
For example, it can be selected based on the main synchronizer of each one-level to total transmission delay of the main synchronizer of other one-levels
The main synchronizer of two level.For example, scheme before use described in first embodiment selects the main synchronizer of two level.
Advantageously, the electronic equipment is audio amplifier.For example, in the case where multiple rooms be present, can be by each room
Audio amplifier be divided into same group.In the solution of the present invention, in each room, the synchronous effect between audio amplifier is preferable.It is right
In the audio amplifier of not chummery, synchronous requirement can be reduced suitably.So, it may provide the user with more preferable experience.In addition,
It is appropriate to reduce the overall requirement synchronous to audio amplifier.
According to the present invention it is possible to avoid excessively causing communication pressure excessive in the equipment that a rank needs to synchronize
The problem of.The present invention is especially suitable for region compared with the wide, network that equipment is more, scope is larger.
Fig. 9 shows the frame of the selection device 9000 for being used for multistage main synchronizer according to the third embodiment of the invention
Figure.
As shown in figure 9, selection device 9000 includes the selecting unit 9200 of first choice unit 9100 and second.
First choice unit 9100 is provided as each main synchronizer of group selection one-level in multigroup electronic equipment.Institute
State main synchronizer of the main synchronizer of one-level as this group of electronic equipment.
For example, first choice unit 9100 is configured to be divided multigroup electronics based on multiple WAPs and set
It is standby, wherein the electronic equipment in same group is connected to same WAP.
For example, first choice unit 9100 is configured to for each group, set based on each electronic equipment to other electronics
Standby total transmission delay selects the main synchronizer of one-level.
Second selecting unit 9200 is provided in the selection main synchronizer of two level in the main synchronizer of one-level.The two level
Main synchronizer of the main synchronizer as the one-level main equipment.
For example, the second selecting unit 9200 is configured to synchronously set to other one-levels are main based on the main synchronizer of each one-level
Standby total transmission delay selects the main synchronizer of two level.
For example, the electronic equipment is audio amplifier.
It will be appreciated by those skilled in the art that unit in selection device 9000 can pass through software, hardware and soft
The mode of part/combination of hardware is realized.To those skilled in the art, software realization mode and hardware implementation mode are
With.
Figure 10 shows the schematic diagram of another example according to the present invention.
In the example shown in Figure 10, room 1210 and room 1220 be present.There is control device in room 1210
1211 (for example, WAPs) and electronic equipment 1212,1213 (for example, audio amplifier).There is control device in room 1220
1221 (for example, WAPs) and electronic equipment 1222,1223 (for example, audio amplifier).It will be appreciated by those skilled in the art that control
Control equipment can be located in WAP, or can be attached to the extras of WAP.
In room 1210, for example, selection equipment 1212 is used as the main synchronizer of one-level, equipment 1213 is subordinated to equipment
1212.In room 1220, for example, selection equipment 1222 is used as the main synchronizer of one-level, equipment 1223 is subordinated to equipment 1222.
In the main synchronizer 1212 and 1222 of one-level, main synchronizer 1212 is selected to be used as the main synchronizer of two level.Due to equipment
1212 and 1213 apart from closer, and therefore, synchronous effect therebetween is preferable.Similarly, in room 1220, the He of equipment 1222
The synchronous effect of equipment 1223 is preferable.Because equipment 1212 and 1213 and equipment 1222 and equipment 1223 are located at different rooms, because
This, synchronously being influenceed on Consumer's Experience between them is not fairly obvious.Therefore, it is possible to suitably reduce the equipment in two rooms
Synchronous requirement.
Alternatively, it will be appreciated by those skilled in the art that the room can also include other electronic equipments.Electronic equipment
1212nd, 1213 itself can be other electronic equipments in room 1210 host electronic equipment.Electronic equipment 1222,1223 itself
It can be the host electronic equipment of other electronic equipments in room 1220.
Selection device in Fig. 9 can be arranged in control device 1211 or 1221, or for control device 1211
Or in the extra control device for 1221.Selectively, the selection device in Fig. 9 can be arranged on electronic equipment (sound
Case) in.
It will be appreciated by those skilled in the art that although three embodiments according to the present invention have been described separately above,
Three embodiments can be combined with each other.For example, in the example shown in Figure 10, can be selected using the scheme of first embodiment
Per the main synchronizer of one-level.For example, after main synchronizer has been selected, the electronic equipment (audio amplifier) positioned at subordinate status can be with
Local clock is corrected using the scheme according to second embodiment.Therefore, it will be appreciated by those skilled in the art that, if not bright
True opposite instruction, each embodiment may be by the feature in other embodiments to provide superior technique effect.Three
This combination of embodiment will be readily apparent to one having ordinary skill, therefore, it is not necessary in this repeated description.
Apparatus and method of the present invention can be embodied by program product.Program product can include readable storage medium storing program for executing,
Containing for making processor realize the readable program instructions of various aspects of the invention.
Readable storage medium storing program for executing can keep and store the tangible device that the instruction that equipment uses is performed by instruction.Can
Reading storage medium, which for example can be ,-- but is not limited to-- storage device electric, magnetic storage apparatus, light storage device, electromagnetism storage
Equipment, semiconductor memory apparatus or above-mentioned any appropriate combination.The more specifically example of readable storage medium storing program for executing is (non exhaustive
List) include:Portable disc, hard disk, random access memory (RAM), read-only storage (ROM), erasable type are programmable only
Read memory (EPROM or flash memory), static RAM (SRAM), Portable compressed disk read-only storage (CD-
ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, the punch card for being for example stored thereon with instruction or
Groove internal projection structure and above-mentioned any appropriate combination.Readable storage medium storing program for executing used herein above is not construed as wink
When signal in itself, the electromagnetic wave of such as radio wave or other Free propagations, propagated by waveguide or other transmission mediums
Electromagnetic wave (for example, the light pulse for passing through fiber optic cables) or the electric signal transmitted by electric wire.
Readable program instructions as described herein can download to each electronic equipment from readable storage medium storing program for executing, or pass through
Network, such as internet, LAN, wide area network and/or wireless network download to external electronic device or External memory equipment.Network
Can include copper transmission cable, optical fiber transmit, be wirelessly transferred, router, fire wall, interchanger, gateway computer and/or edge
Server.Adapter or network interface in each electronic equipment receive readable program instructions from network, and forward and be somebody's turn to do
Readable program instructions, for being stored in the readable storage medium storing program for executing in each calculating/processing equipment.
For performing, the programmed instruction that the present invention operates can be assembly instruction, instruction set architecture (ISA) instructs, machine refers to
Make, machine-dependent instructions, microcode, firmware instructions, condition setup data or any group with one or more programming languages
The source code or object code write are compiled in collaboration with, the programming language includes programming language-such as Smalltalk, C+ of object-oriented
+ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Readable program instructions can be with complete
Entirely on consumer electronic devices perform, partly on consumer electronic devices perform, the software kit independent as one perform,
Part performs or held completely on remote computer or server on the remote computer in consumer electronic devices upper part
OK.In the situation of remote computer is related to, remote computer can be by the network of any kind-include LAN (LAN)
Or wide area network (WAN)-consumer electronic devices are connected to, or, it may be connected to outer computer (such as taken using internet
Provider be engaged in pass through Internet connection).In certain embodiments, individual character is carried out by using the status information of readable program instructions
Change customization electronic circuit, such as PLD, field programmable gate array (FPGA) or programmable logic array
(PLA), the electronic circuit can perform computer-readable program instructions, so as to realize various aspects of the invention.
Flow chart and/or block diagram referring herein to method, apparatus according to embodiments of the present invention describe each of the present invention
Individual aspect.It should be appreciated that in each square frame and flow chart and/or block diagram of flow chart and/or block diagram each square frame combination, all
It can be realized by readable program instructions.
These readable program instructions can be supplied to the processor of electronic equipment, so as to produce a kind of machine so that this
Instruct a bit when by the computing device of electronic equipment, generate one or more of implementation process figure and/or block diagram side
The device of function/action specified in frame.These readable program instructions can also be stored in readable storage medium storing program for executing, these refer to
Order causes electronic equipment to work in a specific way, so as to which being stored with the computer-readable recording medium of instruction then includes a manufacture, and it includes
The instruction of the various aspects of function/action specified in one or more of implementation process figure and/or block diagram square frame.
Readable program instructions can also be loaded on electronic equipment so that perform sequence of operations step on an electronic device
Suddenly, the process realized is instructed to produce, so that in the instruction implementation process figure and/or block diagram that perform on an electronic device
Function/action specified in one or more square frames.
Flow chart and block diagram in accompanying drawing show that the possibility of the apparatus and method of multiple embodiments according to the present invention is real
Existing architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a journey
Sequence section or a part for instruction, the module, program segment or a part for instruction include one or more defined for realizing
The executable instruction of logic function.At some as in the realization replaced, the function that is marked in square frame can also with different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes
It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart
The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used
Realize, or can be realized with specialized hardware with the combination instructed in the system of hardware.Come for those skilled in the art
Say it is well known that, realized hardware mode, realized software mode and by software and hardware combination by way of realize
All it is of equal value.
It is described above various embodiments of the present invention, described above is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
The principle of each embodiment, practical application or technological improvement to the technology in market are best being explained, or is leading this technology
Other those of ordinary skill in domain are understood that each embodiment disclosed herein.The scope of the present invention is limited by appended claims
It is fixed.
Claims (9)
1. a kind of clock correction method, including:
Receive synchronised clock information;
Obtain local clock information;
Based on synchronised clock information and local clock information, the timing differential δ of calculating local clock and synchronised clock;
Detect communications status;
In the case where communications status is deteriorated, local clock is corrected using the timing differential δ;
The synchronised clock information include the first lock in time Ts1 and from Ts1 by very first time interval second it is synchronous when
Between Ts2, and the local clock information includes first local zone time To1 corresponding with the first lock in time Ts1 and with the
Second local zone time To2 corresponding to one lock in time Ts2;
The timing differential δ=((Ts2-Ts1)-(To2-To1)) ÷ (To2-To1), and the step of correction local clock wrap
Include:From after last time is synchronized using synchronised clock information, at interval of the Δ t times, using Δ t* δ corrections it is local when
Clock.
2. the method according to claim 11, wherein, when not receiving synchronised clock information continuous n synchronizing cycle, really
Determine communications status variation.
3. according to the method for claim 1, wherein, the timing differential δ is the average value of the timing differential repeatedly calculated.
4. according to the method for claim 1, wherein, the local clock is the local clock of audio amplifier.
5. a kind of clock correction device, including:
Receiving unit, it is configured to receive synchronised clock information;
Obtaining unit, it is configured to obtain local clock information;
Computing unit, it is configured to be based on synchronised clock information and local clock information, calculates local clock and synchronised clock
Timing differential δ;
Detection unit, it is configured to detect communications status;
Unit is corrected, in the case of being provided in communications status variation, uses the timing differential δ to correct local clock;
The synchronised clock information include the first lock in time Ts1 and from Ts1 by very first time interval second it is synchronous when
Between Ts2, and the local clock information includes first local zone time To1 corresponding with the first lock in time Ts1 and with the
Second local zone time To2 corresponding to two lock in time Ts1;
The timing differential δ=((Ts2-Ts1)-(To2-To1)) ÷ (To2-To1), and the correction unit are configured to
From after last time is synchronized using synchronised clock information, at interval of the Δ t times, local clock is corrected using Δ t* δ.
6. clock correction device according to claim 5, wherein, the detection unit is configured to when continuous n is synchronous
When cycle does not receive synchronised clock information, determine that communications status is deteriorated.
7. clock correction device according to claim 5, wherein, the timing differential δ is the timing differential repeatedly calculated
Average value.
8. clock correction device according to claim 5, wherein, the local clock is the local clock of audio amplifier.
9. a kind of audio amplifier, including clock correction device according to claim 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510685771.3A CN105429724B (en) | 2015-10-20 | 2015-10-20 | Clock correction method, clock correction device and audio amplifier |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510685771.3A CN105429724B (en) | 2015-10-20 | 2015-10-20 | Clock correction method, clock correction device and audio amplifier |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105429724A CN105429724A (en) | 2016-03-23 |
| CN105429724B true CN105429724B (en) | 2018-03-23 |
Family
ID=55507686
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510685771.3A Active CN105429724B (en) | 2015-10-20 | 2015-10-20 | Clock correction method, clock correction device and audio amplifier |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105429724B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108206683B (en) * | 2016-12-19 | 2021-09-24 | 上海申贝科技发展有限公司 | Dynamic compensation pulse circuit |
| CN111954050B (en) * | 2019-05-14 | 2022-08-30 | 福州瑞芯微电子股份有限公司 | Method and system for synchronizing videos among multiple devices |
| CN112887773A (en) * | 2021-01-22 | 2021-06-01 | 昆腾微电子股份有限公司 | Synchronization method and device of audio equipment |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1471769A (en) * | 2001-07-25 | 2004-01-28 | ���ṫ˾ | Network system and output devices used in the system |
| CN1531795A (en) * | 2001-02-20 | 2004-09-22 | 摩托罗拉公司 | Time Synchronization of Mobile Receivers and Base Stations Activated by Satellite Positioning System |
| JP2005217787A (en) * | 2004-01-29 | 2005-08-11 | Fainaaku Kk | Method and system for synchronizing a plurality of equipment having independent clock source, and computer program |
| CN102027699A (en) * | 2008-03-12 | 2011-04-20 | 珍尼雷克公司 | Data transfer method and system for loudspeakers in a digital sound reproduction system |
| CN102938220A (en) * | 2012-11-28 | 2013-02-20 | 天津七一二通信广播有限公司 | Method for correcting clock of automatic ship identifying terminal equipment |
| CN103684729A (en) * | 2012-09-05 | 2014-03-26 | 中国移动通信集团公司 | Clock synchronization device and method |
| CN103869687A (en) * | 2012-12-18 | 2014-06-18 | 深圳市飞亚达科技发展有限公司 | Clock controller and clock |
| CN104244399A (en) * | 2014-09-15 | 2014-12-24 | 歌尔声学股份有限公司 | Wireless device time synchronizing method, wireless devices and wireless communication system |
| CN104981742A (en) * | 2013-06-12 | 2015-10-14 | 富士电机株式会社 | Distribution device, distribution system, and distribution method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8503596B2 (en) * | 2008-10-02 | 2013-08-06 | Aliphcom | Wireless clock regeneration and synchronization |
-
2015
- 2015-10-20 CN CN201510685771.3A patent/CN105429724B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1531795A (en) * | 2001-02-20 | 2004-09-22 | 摩托罗拉公司 | Time Synchronization of Mobile Receivers and Base Stations Activated by Satellite Positioning System |
| CN1471769A (en) * | 2001-07-25 | 2004-01-28 | ���ṫ˾ | Network system and output devices used in the system |
| JP2005217787A (en) * | 2004-01-29 | 2005-08-11 | Fainaaku Kk | Method and system for synchronizing a plurality of equipment having independent clock source, and computer program |
| CN102027699A (en) * | 2008-03-12 | 2011-04-20 | 珍尼雷克公司 | Data transfer method and system for loudspeakers in a digital sound reproduction system |
| CN103684729A (en) * | 2012-09-05 | 2014-03-26 | 中国移动通信集团公司 | Clock synchronization device and method |
| CN102938220A (en) * | 2012-11-28 | 2013-02-20 | 天津七一二通信广播有限公司 | Method for correcting clock of automatic ship identifying terminal equipment |
| CN103869687A (en) * | 2012-12-18 | 2014-06-18 | 深圳市飞亚达科技发展有限公司 | Clock controller and clock |
| CN104981742A (en) * | 2013-06-12 | 2015-10-14 | 富士电机株式会社 | Distribution device, distribution system, and distribution method |
| CN104244399A (en) * | 2014-09-15 | 2014-12-24 | 歌尔声学股份有限公司 | Wireless device time synchronizing method, wireless devices and wireless communication system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105429724A (en) | 2016-03-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3016306B1 (en) | Method and apparatus for providing in-vehicle network time synchronization using redundant grandmaster | |
| KR101355059B1 (en) | Synchronizing media streams using time signal(s) from an independent time source | |
| JP5525032B2 (en) | Synchronization control system including main device and slave device and synchronization control method thereof | |
| JP6192995B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMPUTER PROGRAM | |
| CN105429724B (en) | Clock correction method, clock correction device and audio amplifier | |
| US11394480B2 (en) | Systems and methods for synchronizing device clocks | |
| JP5419129B2 (en) | COMMUNICATION SYSTEM AND SYNCHRONIZATION METHOD, BASE STATION DEVICE | |
| JPWO2011058625A1 (en) | COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND TIME SYNCHRONIZATION METHOD | |
| US10033521B2 (en) | Method for training time slot synchronization of nodes in optical burst transport network, node device and network | |
| US20250365225A1 (en) | Real-time o-ran fronthaul analyzer and graphical user interface | |
| CN107070577B (en) | A kind of synchronous method and its equipment of equipment clock | |
| EP3225059A1 (en) | Clock synchronization using wifi beacons | |
| CN105357750A (en) | Method and selection device for selecting master synchronization equipment, control equipment and electronic equipment | |
| WO2016050916A1 (en) | Method to handle problematic patterns in a low latency multimedia streaming environment | |
| JP2025540850A (en) | Wireless network node synchronization method, system, device, and readable storage medium | |
| KR102229353B1 (en) | Video playing apparatus, controlling method of the video playing apparatus, and video playing system | |
| JP2013123224A (en) | Method and system for determining dependence relationship between device parameters of mobile phone and signal parameters | |
| CN105407526A (en) | Selection method, selection device, control equipment and electronic equipment | |
| JP2018088644A (en) | Time synchronization method and time synchronization system between a plurality of wirelessly connected terminals | |
| WO2025251591A1 (en) | Clock synchronization method and wireless communication system | |
| JP2012195846A (en) | Fading simulator, mobile communication terminal test system, and fading processing method | |
| JPWO2012014462A1 (en) | Wireless communication device | |
| JP5115265B2 (en) | Information processing apparatus and timing synchronization method | |
| CN107995022A (en) | Session synchronization method and device, storage medium, electronic equipment | |
| KR101593822B1 (en) | Apparatus for providing communication service, control method thereof, recording medium for recording program for executing the control method, application saved in the recording medium for executing the control method being combined with hardware |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20221110 Address after: 100191 room 1801, block D, Zhizhen building, 7 Zhichun Road, Haidian District, Beijing Patentee after: Bird innovation (Beijing) Technology Co.,Ltd. Address before: 100191 No. d-203, floor 1, No. 28, information road, Haidian District, Beijing Patentee before: BEIJING XIAONIAO TINGTING TECHNOLOGY Co.,Ltd. |