Method for synchronizing a slave master clock with a master master clock

The method synchronizes slave and master clocks using timestamp exchange and a PID regulator to achieve precise synchronization, overcoming sector frequency variations and ensuring accurate sound reproduction across audio systems.

FR3136582B1Active Publication Date: 2024-10-04DEVIALET
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2022005504
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2024-10-04
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

Existing methods for synchronizing audio systems using a common time base from the electrical supply network suffer from frequency variations, making precise synchronization between systems impossible, especially when reproducing sound signals across different equipment.

Method used

A method involving timestamping and regulation of slave and master clocks using a common time base, where timestamp information is exchanged and a PID regulator adjusts the slave clock based on master clock timestamps to achieve precise synchronization.

Benefits of technology

This method ensures precise synchronization of slave and master clocks, independent of sector frequency variations, allowing simultaneous and accurate sound reproduction across equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000010_0000
    Figure 00000010_0000
  • Figure 00000011_0000
    Figure 00000011_0000
Patent Text Reader

Abstract

Method for synchronizing a slave master clock with a master master clock The method for synchronizing the time between a slave master clock of a slave device and a master master clock of a master device, from a common time base, comprises the steps of: - receiving (210) clock pulses from the common time base by the master and slave devices; - performing (212), from the master and slave devices, a master timestamp and a slave timestamp of clock pulses received from the common time base respectively on the master and slave master clocks to produce the master and slave timestamp information; - communicating (216, 218) the master timestamp information to the slave device;- regulate (220, 222, 224), in the slave equipment, the master slave clock from the communicated master timestamp information and the produced slave timestamp information. Figure for the abbreviation: 2;
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Method for synchronizing a slave main clock with a master main clock

[0001] The present invention relates to a method for time synchronization of a slave main clock of a slave device with a master main clock of a master device from a common time base.

[0002] It is known, in particular from the Devialet document US 10134442, to synchronize audio systems from a time base generated by a local clock of each audio system. These local clocks are synchronized from a common time base at 50 or 60 Hz originating from the detection of the instants of passage of the sector supplied by the electrical power supply network by the zero value.

[0003] This synchronization method, however, suffers from a disadvantage which is that it is dependent on the mains frequency, which varies greatly over time. This frequency varies in the order of 50 to 200 mHz, or even more, i.e. variations in the order of 1000 to 4000 ppm.

[0004] These variations make precise synchronization impossible between systems not employing a similar synchronization device.

[0005] This problem arises for example when reproducing a sound signal on equipment implementing the method described in document US 10134442 and other equipment implementing another synchronization method. It is then difficult to maintain the broadcast time differences between the different equipment at values ​​compatible with the recommendations of Apple Air Play Legacy, Airplay 2, Google Cast for Audio or Amazon Multiroom Music.

[0006] Document US 2006 / 0233266 describes a method for synchronizing two devices for the simultaneous sound reproduction of sound samples. In this method, the different devices detect the same 0 crossings of the sector and each generates its own time base. The samples to be reproduced are transmitted from a first device to the other devices while being accompanied by time information from the transmitting device and corresponding to the instant of emission in its own time base. From this information, the receiving devices compare the instant of emission of the sample to be reproduced with the instant of their own time base and correct their own time base in order to allow simultaneous reproduction.

[0007] The method described in this document is mainly intended to compensate for variations due to the transport time of the samples to be reproduced but does not allow fine synchronization of the time bases of the different equipment on the basis of the sector 0 crossings.

[0008] The aim of the invention is to propose a method for the time synchronization of clocks, one master and one or more slaves present in equipment which, by using a common time base with low frequency stability, nevertheless allows very precise synchronization of the clocks.

[0009] To this end, the invention relates to a method for time synchronization of a slave main clock of a slave device with a master main clock of a master device from a common time base comprising the steps of:

[0010] - receive pulses from the master equipment and from the slave equipment common time base clock;

[0011] - proceed, from the master equipment and from the slave equipment to a ho master time stamping and slave time stamping of at least some of the clock pulses received from the common time base respectively based on the master main clock and the slave main clock to produce the master time stamp information and the slave time stamp information;

[0012] - communicate the master timestamp information to the slave equipment;

[0013] - regulate, in the slave equipment, the slave main clock from the in master timestamp formations communicated and slave timestamp information produced.

[0014] According to particular modes of implementation, the method comprises one or more of the following characteristics:

[0015] - the step of receiving the clock pulses from the common time base comprises the step of producing clock pulses, from the detection of the passage through at least one threshold of the periodic signal of an electrical supply network;

[0016] - the timestamp information includes a pulse sequence number clock received from the common time base and a timestamp instant of the main clock pulse of the equipment;

[0017] - the time base of the master clock is produced from a sub-multiple of the clock frequency of a crystal, this sub-multiple being controlled by an external time base;

[0018] - the time base of the master clock is produced from a sub-multiple of the clock frequency of a crystal, this sub-multiple being fixed;

[0019] - the regulation of the master slave clock implements a regulator of type proportional integral derivative;

[0020] The invention also relates to slave sound reproduction equipment comprising a slave main clock and sound reproduction means on the base of the master slave clock, the equipment comprising:

[0021] - means for receiving clock pulses from a time base commune;

[0022] - means for carrying out slave timestamping of at least some of the im clock pulses received from the common time base (30) based on the slave master clock to produce slave timestamp information;

[0023] - means for receiving master timestamp information from at least some of the clock pulses received from the common time base produced by a master device; and

[0024] - means for regulating, in the slave equipment, the slave master clock to from the received master timestamp information and the produced slave timestamp information;

[0025] The invention further relates to a master sound reproduction equipment comprising a master main clock and sound reproduction means based on the master main clock, the equipment then comprising:

[0026] - means for receiving clock pulses from a time base commune;

[0027] - means for performing a master timestamp of at least some of the im clock pulses received from the common time base based on the master main clock to produce master timestamp information; and

[0028] - means for transmitting master timestamp information to equipment slave.

[0029] The invention will be better understood on reading the following description, given solely by way of example and with reference to the drawings in which:

[0030] - [Fig.l] [Fig.l] is a schematic view of a sound reproduction assembly comprising a master device and a slave device; and

[0031] - [Fig.2] [Fig.2] is a flowchart of a process implemented by the method according to the invention.

[0032] In [Fig.l] two sound reproduction devices are illustrated, one master noted 12, and the other slave noted 14.

[0033] These two pieces of equipment each comprise means 20 for sound reproduction of an audio stream comprising for example an information processing unit 22 and an amplifier 24 connected to a loudspeaker 26.

[0034] The information processing unit 22 is connected to an audio signal source 23, such as a Wi-Fi network, a wired network, or any other means of transmitting information capable of providing an audio stream consisting of a succession of samples each associated with temporal restitution information.

[0035] Each piece of equipment 12, 14 is connected to an electrical power supply network 30 for its power supply and to provide a common time base for each of the two devices.

[0036] As known per se, the network provides an electric current of frequency of 50 or 60 Hz depending on the geographical area. The precision of this frequency is commonly of the order of 1000 to 4000 ppm.

[0037] Each equipment 12, 14 comprises, connected to the power supply network, a module 32 for detecting alternations in the electrical network. This module implements a hysteresis comparator in order to filter out any interference present on the electrical supply. The switching thresholds for a power supply voltage of 230 V are taken to be equal, for example, to 43 V when the mains voltage goes from a value lower than 43 V to a value higher than 43 V and to 11 V when the voltage decreases from a value higher than 11 V to a value lower than 11 volts.

[0038] Advantageously, when the hysteresis comparator proves insufficient to filter out the interference from the power supply network, a digital filter is implemented in a processor, for example the power supply processor of each piece of equipment.

[0039] The different alternation detection modules 32 are capable of providing at output the same clock signal with a frequency equal to 100 Hz or 120 Hz depending on the mains frequency, the output signal forming a common time base for the two devices, the frequency of which depends only on the variations in the mains frequency.

[0040] Each equipment 12, 14 has its own main clock designated by master main clock 142 for the master equipment 12, and designated by slave main clock 144 for the slave equipment 114.

[0041] Each clock comprises a crystal 146, capable of generating a reference clock frequency, for example equal to 25 MHz for each of the two clocks.

[0042] The output of each crystal 146 is connected to the input of a digitally controlled oscillator 148. This oscillator 148 is capable of dividing the frequency of the clock signal by a division coefficient received on an input 150. The digitally controlled oscillator 148 is capable of providing at its output a natural frequency close to 48 kHz, that is to say with a division coefficient close to 521.

[0043] The output of the main clock 142, 144 is connected to the sound reproduction means 20 to provide them with a time base allowing them to synchronize the samples and reproduce them simultaneously.

[0044] According to the invention, each piece of equipment also comprises a time-stamping module 160 connected to the output of the main clock 142, 144 and a trigger input of which is connected to the output of the electronic circuit for detecting alternations 32 of the piece of equipment in question.

[0045] These timestamping modules 160 are capable of timestamping each detection. of alternation of the sector provided by the signal from the module 32. At the output, the time stamp module provides for each alternation time stamp information consisting of a pair consisting of the order number of the alternation of the sector detected by the module 32 and the time stamp instant provided by the main clock 142, 144.

[0046] The time stamping is therefore carried out in the equipment 12 in a time base specific to the master main clock 142 and in the equipment 14 in a time base specific to the slave main clock 144. The time stamping information is designated respectively by master time stamping information when it is produced by the module 160 of the master equipment 12 and slave time stamping information when it is produced by the module 160 of the slave equipment 14.

[0047] The master equipment 12 comprises, at the output of the time-stamping circuit 160, means 162 for transmitting the master time-stamping information to a reception module 164 provided in the slave equipment 14. These transmission means, known per se, implement for example a powerline technology, or even a wifi technology or use the communication network 23 ensuring the transmission of the musical streams to be reproduced.

[0048] The slave equipment 14 comprises a comparator 166 suitable for determining the time difference between the timestamp instants contained in the master and slave timestamp information for the detection of the same alternation carried out by the master equipment 12 and the slave equipment 14. To verify the detection of the same alternation, the comparator 166 comprises means for comparing the order numbers of the alternations contained in the master and slave timestamp information and is suitable for determining the time difference for a detection of the same alternation between the detection instants expressed for one in the time base of the master clock 142, and for the other, in the time base of the slave clock 144.

[0049] The slave equipment 14 comprises a regulation loop 168 capable of controlling the digitally controlled oscillator 148 from the time difference between the timestamp instants in order to ensure synchronization of the clocks 142 and 144.

[0050] Advantageously, this regulation loop implements a regulator 176 of the Proportional - Integral - Derivative (PID) type.

[0051] Thus, if the time stamp instant of an alternation detection in the time base produced by the master main clock 142 is ahead of the time stamp instant of the same alternation detection in the time base produced by the slave main clock 144, then the division coefficient applied to the digital controlled oscillator 148 of the clock 144 is reduced and brought for example to 522 or 521.

[0052] Each information processing unit 22 of the sound reproduction means of each equipment is connected to the output of the main clock 142, 144 and comprises software means for synthesizing an audio clock from the main clock of the equipment. This audio clock is used for the reproduction of audio samples as known per se according to a rhythm defined by the reproduction time information contained in the audio signal.

[0053] According to a first embodiment, the input 150 of the digitally controlled oscillator 148 of the master main clock 142 receives a fixed value over the course of time, here equal to 521 in the example considered.

[0054] Alternatively, the master equipment 142 comprises a time analysis chain for an external signal suitable for receiving as input, for example, an optical signal carrying an audio stream from a DVD player. This chain is suitable for determining the frequency of the optical signal broadcast clock and for calculating the division ratio to be applied to the digitally controlled oscillator 148 of the master main clock 142, so that the frequency of the master main clock 142 is equal to the frequency of the signal broadcast clock. The output of the detection chain is connected to the control input 150 of the master main clock 142.

[0055] Alternatively, all the equipment is potentially master and slave and for this purpose comprises all the elements described for a master equipment and a slave equipment. When setting up the network, their master or slave status is defined according to any suitable known mechanism and only the elements specific to the status of the equipment are then implemented.

[0056] The number of slave devices is one or more.

[0057] In [Fig.2] is illustrated the process implemented simultaneously by equipment master 12 and slave device 14.

[0058] Each piece of equipment continuously performs in steps 210 a detection of alternations of the sector from the detection modules 32.

[0059] For each detection, a timestamp is performed in step 212 in each of the time bases from the timestamp modules 160 from the time base of the master clock 142 for the master equipment 12 and from the time base of the slave clock 144 of the slave equipment. The timestamp information, namely the sequence number of the alternation and the instant of the alternation, are stored in steps 214.

[0060] At a predetermined frequency, or for each alternation detection, a transmission of the time stamp information not yet transmitted is carried out in step 216 from the master equipment and this time stamp information is received in step 218 by the slave equipment 14.

[0061] A reconciliation of the timestamp instants of the same alternation is carried out in step 220 in the slave equipment from the identification of the identical alternation order numbers.

[0062] A calculation of the time difference between the timestamp instants of an alternation of the same order number is carried out in step 222, then in step 224, a new command for the slave clock 144 is calculated and applied to this clock. The method is implemented continuously in the master 12 and slave 14 equipment.

[0063] Simultaneously, the sound reproduction means 20 ensure sound reproduction from the samples associated with restitution time information received from the audio signal source 23. This restitution is carried out on the basis of a time base produced by an audio clock specific to each master and slave equipment, each audio clock being synchronized on the master clock 142 for the master equipment 12 and the slave clock 144 for the slave equipment 14.

[0064] It is understood that with such a method, even if the sector forming a common time base for the two devices is of relatively unstable frequency, the permanent resynchronization of the slave main clock on the master main clock from the timestamp of the alternations of the sector makes it possible to have two clocks in the master and slave devices whose time synchronization is very precise. This does not depend directly on the frequency of the sector but only on the detection of the instants of detection of the same alternation of the sector.

Claims

Claims

1. Method for time synchronizing a slave main clock (144) of a slave equipment (14) with a master main clock (142) of a master equipment (12), from a common time base (30) comprising the steps of: - receiving (210) by the master equipment (12) and by the slave equipment (14) clock pulses from the common time base (30); - carrying out (212), from the master equipment (12) and from the slave equipment (14) a master timestamp and a slave timestamp of at least some of the clock pulses received from the common time base (30) respectively on the basis of the master main clock (142) and the slave main clock (144) to produce master timestamp information and slave timestamp information; - communicating (216, 218) the master timestamp information to the slave equipment (14);- regulating (220, 222, 224), in the slave equipment (14), the slave master clock (144) from the communicated master timestamp information and the produced slave timestamp information.;

2. Method according to claim 1, in which the step (210) of receiving the clock pulses from the common time base (30) comprises the step of producing the clock pulses, from the detection of the passage through at least one threshold of the periodic signal of an electrical power supply network (30).

3. Method according to any one of the preceding claims, in which the timestamp information comprises a sequence number of the clock pulse received from the common time base and a timestamp instant of the pulse of the main clock (142, 144) of the equipment.

4. A method according to any preceding claim, wherein the time base of the master clock (142, 144) is produced from a sub-multiple of the clock frequency of a crystal (146), this sub-multiple being slaved to an external time base.

5. A method according to any one of claims 1 to 3, in which the time base of the master clock (142, 144) is produced from a sub-multiple of the clock frequency of a crystal (146), this sub-multiple

6.

7.

8. multiple being fixed. Method according to any one of the preceding claims, in which the regulation of the slave master clock (144) implements a proportional integral derivative type regulator (170). Slave sound reproduction equipment (14) comprising a slave main clock (144) and means (20) for sound reproduction on the basis of the slave main clock (12), the equipment comprising: - means (32) for receiving clock pulses from a common time base (30); - means (160) for performing slave timestamping of at least some of the clock pulses received from the common time base (30) on the basis of the slave master clock (144) to produce slave timestamping information; - means (164) for receiving master time stamp information from at least some of the clock pulses received from the common time base produced by a master equipment (12); and - means (166, 168, 170) for regulating, in the slave equipment (14), the slave main clock (144) from the received master time stamp information and the produced slave time stamp information. Master sound reproduction equipment (12) comprising a master main clock (142) and means (20) for sound reproduction on the basis of the master main clock (12), the equipment then comprising: - means (32) for receiving clock pulses from a common time base (30); - means (160) for performing master timestamping of at least some of the clock pulses received from the common time base (30) on the basis of the master main clock (142) to produce master timestamping information; and - means (164) for transmitting the master timestamp information to a slave device (14).