METHOD FOR SYNCHRONIZING SIGNALS
20220073087 · 2022-03-10
Assignee
Inventors
- Patrick Lueckel (Stuttgart, DE)
- Juergen Motz (Steinheim an der Murr, DE)
- Quang-Minh Le (Hemmingen, DE)
Cpc classification
G01R19/2506
PHYSICS
G01R19/0038
PHYSICS
International classification
Abstract
A method for synchronizing signals of a plurality of participants. A relationship between the signals is given by a physical relation. The signals are each filtered with a first filter in order to determine a shift between the signals. The determined shift is a measure of the phase shift between the signals. The shift is subsequently eliminated by filtering the signals respectively with a second filter.
Claims
1-13. (canceled)
14. A method for synchronizing signals of at least one participant, a relationship between the signals being given by a mathematical relation, the method comprising the following steps: filtering each of the signals with a first filter to determine a shift between the signals, the determined shift being a measure of the phase shift between the signals; and eliminating the determined shift by filtering the signals respectively with a second filter.
15. The method as recited in claim 14, wherein a symmetry of the first filter and the second filter is used to determine and to eliminate both a positive shift and a negative shift.
16. The method as recited in claim 14, wherein the first filter is a Kalman filter, a measurement equation being realized as a first-order fractional delay filter.
17. The method as recited in claim 14, wherein the first-order fractional delay filter is a Lagrange filter.
18. The method as recited claim 14, wherein the second filter is a first-order or higher-order fractional delay filter.
19. The method as recited in claim 14, wherein a Kalman filter for estimating the shift and a Lagrange filter for synchronizing the signals are combined in one filter.
20. The method as recited in claim 19, wherein after the synchronization of the signals, an estimation of at least one parameter is carried based on the synchronized signals.
21. The method as recited in claim 20, wherein the at least one parameter is estimated with a Kalman filter.
22. The method as recited in claim 14, wherein the method is carried out in an onboard electrical network of a vehicle.
23. The method as recited in claim 14, wherein the signals have different sampling rates, and the signals are treated with a resampling filter.
24. A system for synchronizing signals of a plurality of participants, a relationship between the signals being given by a mathematical relation, the system configured to: filter each of the signals with a first filter to determine a shift between the signals, the determined shift being a measure of the phase shift between the signals; and eliminate the determined shift by filtering the signals respectively with a second filter.
25. The system as recited in claim 24, wherein the system is a control device of a vehicle.
26. A non-transitory machine-readable storage medium on which is stored a computer program for synchronizing signals of at least one participant, a relationship between the signals being given by a mathematical relation, the computer program, when executed by a computer, causing the computer to perform the following steps: filtering each of the signals with a first filter to determine a shift between the signals, the determined shift being a measure of the phase shift between the signals; and eliminating the determined shift by filtering the signals respectively with a second filter.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0030] In the following, the problem with the asynchronicity of two signals is explained for the case of application of an onboard electrical network of a motor vehicle. It is to be kept in mind that the presented method is not limited to this case of application, but rather can be used whenever two asynchronous signals are to be synchronized.
[0031]
[0032]
[0033] Input variables u(k) go into physical system 10, first Kalman filter 12, and fractional delay filter 14. First Kalman filter 12 outputs a shift, or delay, D 24. Fractional delay filter 14 outputs u(k+D/2*t.sub.s), z(k−D/2*t.sub.s) 26, which represent the synchronized input and measured variables. Second Kalman filter 16 outputs estimated parameters 28 of physical system 12.
[0034] As already stated, in an onboard electrical or energy network of a vehicle diagnostic results are strongly influenced by the asynchronicity of the measured variables. If the asynchronicity can be determined and eliminated, this has a positive effect on the result of the diagnosis. The diagnostic design is based on time-discrete measured variables that have the same sampling rate but have a temporal shift relative to one another, the temporal shift being D*t.sub.s. Here, D is the delay factor between the signals as a linear factor relative to the sampling time, and t.sub.s is the sampling rate.
[0035] Therefore, under the assumption that the time shift is identical for both measured variables of a particular participant, of the named measured variables the following measured variables are available at sampling time k:
U.sub.v(k), I.sub.v(k), U.sub.Batt(k+D*t.sub.s), I.sub.Batt(k+D*t.sub.s)
[0036] For the determination of delay factor D, two designs can be distinguished. In the first design, for all signals of one of the participants a filtering is carried out that carries out a time shift by an initial factor D. The disadvantage of this design, compared to the following second design, is that only positive delays can be estimated and synchronized, and the signals of only one participant undergo the filter damping. Thus, it has to be known ahead of time which of the signals is advanced in order to make it possible to use the design.
[0037] According to the second design, for the determination of delay factor D the input and measured variables u(k), z(k) of all participants are filtered, as shown in
[0038] In the following, the realization of the fractional delay filter is described by a first-order Lagrange filter (N=1). Higher-order Lagrange filters (N>1) are also possible, but then the filter coefficients are different.
u(k−D*t.sub.s)=(u(k)*(1−D)+u(k−1)*D)
[0039] In this way, the estimated measurement variable z(k−(1/2−D/2) t.sub.s) and the estimated measured variable h (k−(1/2+D/2) t.sub.s) are calculated according to the procedure described above.
[0040] Here:
[0041] k: sampling time
[0042] z: measured variable
[0043] h: measured variable estimated from u via the model equation
[0044] u: input variable (measured variable, not synchronous with measured variable z)
[0045] For the parameter estimation of the supply line and contact resistances of the cable harness, the already-calculated values for z(k−(1/2−D/2) t.sub.s) and u(k−(1/2+D/2) t.sub.s) can then be used. Alternatively, as shown in
[0046] The synchronization is thus made up of two components: Kalman filter 12 for the estimation of the shift, and fractional delay filter 14 for the synchronization of the signals. The shift D is a linear factor that describes the time shift between the signals as D*t.sub.s, where t.sub.s is the sample rate. The synchronized signals are then used by Kalman filter 16 to estimate the parameters, for example of a resistor.
[0047] For the synchronization of the signals of two subscribers, the relative shift D*t.sub.s to one another is the critical factor. In order to determine this shift and to enable the named advantages to be realized, a fractional delay filter, for example an n-order Lagrange filter, is newly modeled. On this, see
[0048]
[0049] A D of 0.4 means that the signals of the first participant are advanced ahead of the signals of the second participant by 0.4*t.sub.s, where t.sub.s is equal to the sample time of the signals. A D of −0.4 means that the signals of the first participant run behind the signals of the second participant by 0.4*t.sub.s.
[0050] In the new modeling, the symmetry of the filter is used, which means that the damping |A| is equal for a delay of D and N−D. N corresponds here to the order of the filter. From this new modeling and the simultaneous filtering of the signals of the two participants, there result the two advantages, namely that an equal damping is achieved, and that both positive and negative delays are possible.
[0051] In the following, the filtering of the measured variables z(k) and of the estimated measured variables, calculated via the filtered input variables u(k) and the model equation h(k), are shown for the example of a first-order Lagrange filter (N=1):
z(k−(1/2−D/2) t.sub.s)=z(k)(1−(1/2−D/2))+z(k−1)(1/2−D/2)
h(k−(1/2+D/2) t.sub.s)=h(k)(1−(1/2+D/2))+h(k−1)(1/2+D/2)
[0052] If this measurement equation is implemented in a parameter estimator, then, using the noisy signals u(k) and z(k) and the model equation h(k), which is stated below, the delay D can be estimated.
D(k)=D(k−1)+[z(k−(1/2−D/2))−h(k−(1/2+D/2)t.sub.s)]*[h(k−1−(1/2+D/2) t.sub.s)−h(k−(1/2+D/2) t.sub.s)].sup.−1
[0053]
[0054] Thus, the addition unit outputs N/2+D/2 170. Subtraction unit 152 outputs N/2−D/2 172. h(k) 180 and N/2+D/2 170 are inputted to first fractional delay filter 154. z(k) 182 and N/2−D/2 172 are inputted to second fractional delay filter 156.
[0055] First fractional delay filter 154 outputs:
h(k−(N/2+D/2)*t.sub.s)
[0056] Second fractional delay filter 156 outputs:
z(k−(N/2−D/2)*t.sub.s)
[0057] The modeling of the shifts before fractional delay filters 154, 156 makes it possible to map positive and negative shifts between the components. Through the symmetry of fractional delay filters 154, 156, all signals undergo the same filter damping.
[0058]
U.sub.1=U.sub.2+I.sub.2*R,
z(k) h(k)
[0059] where the left side of the equation is represented by first signal 310 and the right part of the equation is represented by second signal 312. The filtering now means an interpolation between measurement points that are identified by points in the Figure. The interpolations are illustrated by the straight lines in the Figure. Deviations in the mathematical relationship are then corrected by shifting the measurements. The interpolation of the measured variables of the two components, namely U.sub.1, U.sub.2, I.sub.2, enables the signal shift. Here there take place a shift of the interpolated measurement variables (U.sub.1) of the first component by the factor D/2+N/2 and a shift of the interpolated measurement variables (U.sub.2, I.sub.2) of the second component by the factor N/2−D/2.
[0060]
[0061] System 200 is connected to a first participant, or control device 202, and to a second participant, or control device 204, first control device 202 sending a first signal 206 to system 200, and second control device 204 sending a second signal 208 to system 200. The two signals 206, 208, which each carry measured values as information, are to be combined for evaluation in system 200; here it is to be kept in mind that the two signals 206, 208 are asynchronous to one another. In system 200, using the method presented herein a synchronization of the two signals 206, 208 can now be carried out, so that subsequently an evaluation of signals 206, 208 can be carried out, in this embodiment also in system 200.
[0062] Of course, the method can also be carried out with more than two participants or control devices. Here, the control devices can be synchronized with one another. However, a synchronization can also be carried out between one or more control devices and system 200.
[0063] The method can be applied in many ways if the following requirements are met:
[0064] The signals of the participants must have a mathematical relation.
[0065] The signals of the participants must have the same sampling rate, which can be resolved by a resampling filter.