Method for counting events in an external network

The method addresses synchronization errors in audio systems by using a reference duration and error correction to accurately count events, ensuring precise timing and reduced synchronization offsets.

FR3109040B1Active Publication Date: 2024-11-22DEVIALET
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2020003239
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-04-01
Publication Date
2024-11-22
Estimated Expiration
2040-04-01

AI Technical Summary

Technical Problem

Existing methods for synchronizing audio systems using local clocks based on electrical supply network events are unreliable due to event duplication, omission, or saturation issues, leading to significant synchronization errors exceeding acceptable tolerances.

Method used

A method and device for event counting that involves determining a reference duration, comparing it to actual intervals, and adjusting a counter based on tolerance and error correction algorithms to ensure accurate event counting, even in the presence of detection errors.

Benefits of technology

Ensures robust and reliable event counting, minimizing synchronization errors and maintaining precise timing across audio systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000011_0000
    Figure 00000011_0000
  • Figure 00000012_0000
    Figure 00000012_0000
  • Figure 00000013_0000
    Figure 00000013_0000
Patent Text Reader

Abstract

Method for counting events from an external network. The method for counting events produced by an external source and distributed according to a cyclic pattern reproduced periodically and in which two successive events are separated by a time interval, the interval or each interval being associated with a rank in the pattern, comprising the steps of: a / determining (112), for each rank of intervals, a reference duration of the time interval between two successive events; b / detecting (122) events from the external source; c / for each detected event: c1 / calculating (122) the duration of the interval between the detected event and the previous detected event; c2 / comparing (124, 128) the duration of the calculated time interval to the reference duration of the interval of the same rank;- if the calculated time interval duration is equal, within a tolerance, to the reference duration of the interval of the same rank, increment (126) an event counter by one value; - otherwise, find an integer such that satisfies a condition on the difference between the calculated time interval duration and a sum of the reference durations of the same rank for the next time intervals repairing successive events, and increment (130) the event counter by the value. Figure for the abbreviation: Figure 3;
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Method for counting events in an external network

[0001] The present invention relates to a method for counting events produced by an external source and distributed according to a cyclic pattern reproduced periodically and in which two successive events are separated by a time interval ( t ), the or each interval ( t ) being associated with a rank ( p ) in the pattern.

[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 events constituted by the instants of passage through the zero value of the voltage of the sector supplied by the electrical power supply network.

[0003] The detection of the instants of passage of the sector by a zero value, or any other predetermined value is not completely reliable. Some events may be duplicated or on the contrary some others not detected.

[0004] For example, in the case of using zero crossings of the mains voltage, high amplitude harmonics can create double or triple crossings in the vicinity of the zero crossing.

[0005] Conversely, events may be missing following saturation of the waiting threads of the software in charge of processing or any other problem occurring during the actual detection of the passage through a predetermined value.

[0006] In the context of audio synchronization of several sound reproduction devices, the consequence of an error in counting an event is the offset of one sound reproduction device relative to the others. In the case of mains use, in Europe, this offset is at least 10 ms, i.e. more than 1000 times the acceptable tolerance for the synchronization of sound reproduction equipment.

[0007] It is therefore imperative to make the counting of events robust.

[0008] The invention therefore aims to propose a method and equipment allowing reliable counting of events produced by an external source, even in the event of an error in detecting certain events, or in the event of multiple detections thereof.

[0009] To this end, the invention relates to a method for counting events of the aforementioned type, comprising the steps of:

[0010] a / determine, for each rank (p) of intervals, a reference duration of the time interval between two successive events;

[0011] b / detect events from the external source;

[0012] c / for each detected event:

[0013] cl / calculate the duration of the interval (t) between the detected event and the previous detected event;

[0014] c2 / compare the duration (t) of the calculated time interval to the reference duration of the interval of the same rank (p);

[0015] - if the duration (Z) of the calculated time interval is equal to within a tolerance (you) to the reference duration of the interval of the same rank (p), increment of a unit value a counter (c) for counting events;

[0016] - otherwise, search for an integer m such that m satisfies a condition on the gap between the duration ( t ) of the calculated time interval and a sum of the m reference durations of the same rank for the next time intervals repairing the successive events, and increment the event counting counter (c) by the value m;

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

[0018] - the or each reference duration is calculated as a function of a number predetermined durations previously calculated, time intervals (t) of the same rank (p);

[0019] - if the previous durations calculated for a predetermined number of intervals of successive times of the same rank (p) are equal to a tolerance (toi), the or each reference duration is calculated as a function of a number predetermined from the last calculated previous durations (t) of the time intervals of the same rank (p); and

[0020] - otherwise, the or each reference duration is equal to a reference duration previously calculated;

[0021] - if the duration of the time interval 0 is not equal to the tolerance near the duration reference interval of the same rank, a new determination of the duration reference is carried out, from calculated time interval durations after the event for which the duration of the time interval (t) is not equal to the tolerance near the reference duration of the interval of the same rank (P');

[0022] - the tolerance is calculated as a function of the reference duration;

[0023] - the condition (124) on the difference between the duration ( / ) of the calculated time interval and a sum of the m reference durations 14-P>\ satisfied by the number of m is the fact that j this gap is less than a predetermined threshold;

[0024] - the condition (124) on the difference between the duration 0 of the calculated time interval and a sum of the m reference durations satisfied by the number of m is the fact that m minimizes this gap.

[0025] The invention also relates to an event counting device comprising means for implementing the event counting method as defined above.

[0026] It also relates to sound reproduction equipment comprising sound reproduction means and an event counting device as defined above.

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

[0028] [Fig.l] [Fig.l] is a schematic view of a sound reproduction system comprising two synchronized devices;

[0029] [Fig.2] [Fig.2] is a schematic representation of the synchronization signal; And

[0030] [Fig.3] [Fig.3] is a flowchart of a method implemented by the method according to the invention.

[0031] In [Fig.l] two sound reproduction devices 12, 14 are illustrated.

[0032] 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.

[0033] 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.

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

[0035] As known per se, the network provides an electric current of frequency of 50 or 60 Hz depending on the geographical area, commonly called sector.

[0036] Each piece of equipment 12, 14 comprises, connected to the power supply network, a module 32 for detecting events in the electrical network. This module implements a hysteresis comparator to filter out any interference present on the power supply. The switching thresholds for a 230 V supply voltage are taken as equal, for example, to 11 V and 43 V for positive alternations and -11 V and -43 V for negative alternations. An event is detected when the mains voltage changes from a value lower than 11 V or -11 V to a value higher than 43 V or -43 V.

[0037] As illustrated in Figure 2, the signal obtained at the output of the detection module 32 consists of events distributed according to a cyclic pattern reproduced in a quasi-periodic manner of slowly variable period T. The detection module 32 normally generates n events per period, these n events being distributed in the same way from one period to another but not necessarily uniformly. In the example shown in Figure 2, the number n of events per period is equal to 4. Three periods T are illustrated.

[0038] Advantageously, when the hysteresis comparator proves insufficient to filter the parasites of 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 200 Hz or 240 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 device 12, 14 has its own main clock 34. The main clocks of the different sound reproduction devices are synchronized in frequency and phase on the basis of the events provided by the alternation detection module 32 by any suitable means.

[0041] The output of the main clock 34 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.

[0042] According to the invention, each piece of equipment also comprises a time-stamping and counting module 40 connected to the output of the main clock 34 and a trigger input of which is connected to the output of the electronic event detection module 32 of the piece of equipment in question.

[0043] This same time-stamping and counting module 40 has an output connected to the clock 34 for its time synchronization with network events.

[0044] These counting and timestamping modules 40 are capable of timestamping each event from the module 32. At the output, the module 40 provides the clock 34 for each event with timestamping information consisting of a pair consisting of the

[0045]

[0046]

[0047]

[0048]

[0049]

[0050]

[0051]

[0052]

[0053]

[0054]

[0055]

[0056]

[0057]

[0058]

[0059] sequence number of the event detected by the module 32 and the time stamp of this event provided by the main clock 34. The counting and timestamping modules 40 are capable of numbering each event by an integer c as illustrated in [Fig.2], whether or not these events have been directly detected by the detection module 32. The counting and time-stamping modules 40 comprise a computer, integrating software means suitable for implementing the flowchart described in [Fig.3] and means for temporarily storing the data necessary for its operation. The processing carried out by the counting and timestamping module 40 will now be described with reference to [Fig.3] and is executed by the computer under the control of suitable software. The module 40 comprises means for continuously recording the numbers of the events detected by the module 32 as well as the time of detection of the event in the reference frame of the main clock 34. Some events may be missed by the detection means 32 and they are then missing from the memory of the counting and timestamping module 40. Module 40 includes means for calculating the noted duration of the time intervals between two successive detected events. The durations L of the intervals are illustrated in Figure 2. For the rest of the description, we denote / 99 pe [ ], A ] the N subsequences such that c^C — obtained from the calculated durations L. Module 40 determines in step 112 the average of the last M durations for each time interval / p) of the same rank p. This average noted 4^) is defined by wl the following formula: = -Lyn àp) At step 114, the minimum of the calculated means / 9») for the different ranks of the intervals is calculated. This minimum noted tmin is expressed in the form: . a(p) . tm{„ = A tolerance you is then defined in step 116. It is expressed in the form: you — With a a number between 0 and 1 and notably substantially equal to 0.1. In a test performed in step 118, the module 40 determines whether the last M durations of the intervals for each rank p are of equal durations, to within tolerance t0. For this purpose, the following test is performed:

[0060]

[0061]

[0062]

[0063]

[0064]

[0065]

[0066]

[0067]

[0068]

[0069]

[0070]

[0071]

[0072]

[0073] Vp <N,Wi e[n-M+l,n], tP-tol< <tP}+ tol When this condition is not satisfied, steps 112 and following are implemented again for the rank p considered. On the other hand, as soon as the condition of step 118 is satisfied, and as long as this condition remains true, the reference duration is stored in step 120 for each interval rank p. After detecting an event in step 122, a duration 1 of the corresponding interval is calculated as the time difference between the timestamp instants of the last two detected events. The duration * is compared in step 124 to the reference duration of the interval of the same rank p to determine whether these values ​​are equal to within a tolerance. The test carried out is expressed in the form: ^.c+ï)mod A7^ where c is the counter numbering the events. If this condition is satisfied, the counter c is incremented by one unit in step 126, this counter giving the number of the event. At the end of step 124, steps 112 and following are implemented again. On the other hand, if the condition of step 124 is not satisfied, the module 40 determines in step 128 whether there exists a non-zero integer m such that m satisfies a condition on the difference between the duration r of the calculated time interval and a sum of the m reference durations of the same rank p for the next time intervals separating the successive events. More specifically, in the embodiment described, the test performed consists of determining whether the difference between the duration * of the calculated time interval and a sum of the m reference durations is less than the predetermined threshold toi for the number m. This test is expressed mathematically in the form: । । mod A7! 1m / kL- J \ <tol' If the condition is satisfied, the counter c is incremented by m units at step 130. If this condition is not satisfied, or at the end of step 130 of incrementing the counter, the last m durations used for calculating the averages in step 112 are reset to zero in step 134 and then steps 112 and following are implemented again until the condition of step 118 is satisfied again. It is understood that with such a method, even if certain events are not correctly detected, the following detected events are nevertheless correctly numbered since the counter c in step 130 is incremented by a number corresponding to the number of events which should have been detected.

[0074] As known per se, the clock 34 of each piece of equipment ensures time synchronization on the detected events taking into account their detection time and their order number.

[0075] Alternatively, the test performed in step 128 is replaced by the determination of a value & which minimizes the function Fk equal to the fractional part of tû with

[0076] . A . : a(i: mm! Vç Tk representing the sum of the 1 o — u and vk < / v, 1 estimators of the intervals of the next k expected events.

[0077] Thus, by noting j the integer part of and p^ _ is the fractional part of , the value m is then determined by the following formula tn = , + k* K

[0078] where _ argmin Fk ia value of k which minimizes Fk-

[0079] In the example described with reference to Figure 2, the number N of ranks of intervals of time in the same period T is equal to 4. Alternatively, the module 32 is capable of determining the positive and negative alternations of the voltage, that is to say determining the instants of passage through zero of the latter so that the number of ranks A is equal to 2.

[0080] Each information processing unit 22 of the sound reproduction means of each equipment is connected to the output of the main clock 34 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.

[0081] The method described above is implemented continuously in the equipment 12 and 14.

[0082] 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 piece of equipment, each audio clock being synchronized to the mains.

Claims

Claims

1. Method for the sound reproduction of counting events produced by an external source and distributed according to a cyclic pattern reproduced periodically and in which two successive events are separated by a time interval (?), the or each interval (t) being associated with a rank (p) in the pattern, comprising the steps of: a / determining (112), for each rank (p) of intervals, a reference duration of the time interval between two successive events ï b 1 ; b / detecting (122) events from the external source; and c / for each detected event: cl / calculating (122) the duration of the interval (t ) between the detected event and the previous detected event; c2 / comparing (124, 128) the duration (?) of the calculated time interval with the reference duration of the interval of the same rank (p);- if the duration (?) of the calculated time interval is equal to within a tolerance (toi) to the reference duration of the interval of the same rank (p), increment (126) by a unit value a counter (c) for counting events; - otherwise, search for an integer m such that m satisfies a condition on the difference between the duration (?) of the calculated time interval and a sum of the m reference durations of the same rank for the next time intervals repairing the successive events, and increment (130) the counter (c) for counting events by the value m.;

2. A counting method according to claim 1, wherein the or each reference duration (jW) is calculated (112) as a function of a predetermined number of previously calculated durations, time intervals (?) of the same rank (p).

3. Method according to claim 2, in which: - if the previous durations calculated for a predetermined number of successive time intervals of the same rank (p) are equal to within a tolerance {toi), the or each reference duration is calculated (134, 112) as a function of a predetermined number of the last calculated previous durations (?) of the time intervals of the same rank (p); and - otherwise, the or each reference duration is equal to a previously calculated reference duration (120).

4. Method according to claim 2 or 3, in which if the duration of the time interval ( / ) is not equal to the tolerance near the reference duration (4M of the interval of the same rank, a new 1 * f determination of the reference duration is carried out, from durations of the time interval calculated after the event for which the duration of the time interval ( / ) is not equal to the tolerance near the reference duration of the interval of the same rank (p).

5. A method according to any preceding claim, wherein the tolerance Çtol) is calculated (116) as a function of the reference duration

6. Method according to any one of the preceding claims, in which the condition (124) on the deviation between the duration of the calculated time interval and a sum of the m reference durations satisfied by the number of m is the fact that this deviation is less than a predetermined threshold.

7. Method according to any one of claims 1 to 5, in which the condition (124) on the deviation between the duration of the calculated time interval and a sum of the m reference durations satisfied by the number of m is the fact that m minimizes this deviation.

8. Event counting device for sound reproduction comprising means for implementing the event counting method according to any one of the preceding claims.

9. Sound reproduction equipment comprising sound reproduction means (20) and an event counting device according to claim 8.