APPARATUSES AND METHODS FOR COMPARING REDUNDANT SIGNALS IN FUNCTIONAL SAFE SYSTEMS
20260056039 · 2026-02-26
Inventors
- Benjamin KOLLMITZER (Pörtschach am Wörther See, AT)
- Wolfgang Granig (Seeboden, AT)
- Christof MICHENTHALER (Feistritz an der Gail, AT)
- Mario Motz (Wernberg, AT)
- Peter Slama (Klagenfurt, AT)
Cpc classification
G01D18/00
PHYSICS
G01D3/08
PHYSICS
G08C13/00
PHYSICS
G01D5/145
PHYSICS
International classification
G01D18/00
PHYSICS
G08C13/00
PHYSICS
Abstract
A method for sensing a physical quantity includes receiving a first measurement signal of the physical quantity from a first sensor in accordance with a first sensor technology; receiving at least a second measurement signal of the physical quantity from a second sensor in accordance with a second sensor technology, wherein the first sensor technology and the second sensor technology are different; determining an expected accuracy of the first sensor and the second sensor; and computing an estimate of the physical quantity based on a combination of the first measurement signal and the second measurement signal. A result of the combination is dependent on the expected accuracy of the first sensor and the second sensor.
Claims
1. An apparatus for sensing a physical quantity, the apparatus comprising: an interface configured to receive a first measurement signal of the physical quantity from a first sensor in accordance with a first sensor technology, and to receive at least a second measurement signal of the physical quantity from a second sensor in accordance with a second sensor technology, wherein the first sensor technology and the second sensor technology are different; and a processor configured to determine an expected accuracy of the first sensor and the second sensor, and compute an estimate of the physical quantity based on a combination of the first measurement signal and the second measurement signal, wherein a result of the combination is dependent on the expected accuracy of the first sensor and the second sensor.
2. The apparatus of claim 1, wherein the first sensor and the second sensor are angle sensors, wherein the first measurement signal is a first angle measurement signal from the first sensor in accordance with a first angle sensor technology, and wherein the second measurement signal is a second angle measurement signal from the second sensor in accordance with a second angle sensor technology.
3. The apparatus of claim 2, wherein the processor is configured to combine the first angle measurement signal and the second angle measurement signal dependent on a current angular velocity or dependent on a respective status of the first sensor and the second sensor.
4. The apparatus of claim 2, wherein the processor is configured to combine the first angle measurement signal and the second angle measurement signal dependent on an angular velocity measured by at least one of the first sensor or the second sensor, wherein the processor is configured to increase a weight of the first angle measurement signal with respect to the second angle measurement signal with increasing angular velocity, and wherein the processor is configured to increase a weight of the second angle measurement signal with respect to the first angle measurement signal with decreasing angular velocity.
5. The apparatus of claim 2, wherein the processor is configured to selectively output either the first angle measurement signal or the angle second measurement signal that has a best expected accuracy as the estimate of the physical quantity.
6. The apparatus of claim 2, wherein the processor comprises a Kalman filter configured to compute the estimate using the first angle measurement signal and the second angle measurement signal corrupted with respective measurement errors.
7. The apparatus of claim 2, wherein the first sensor is a magneto-resistive angle sensor and the second sensor is a vertical Hall sensor.
8. The apparatus of claim 7, wherein the expected accuracy of the magneto-resistive angle sensor is dependent on an autocalibration activation status of the magneto-resistive angle sensor, and wherein the expected accuracy of the vertical Hall sensor is dependent on a current angular velocity.
9. The apparatus of claim 1, wherein the processor is configured to selectively output either the first measurement signal or the second measurement signal that has a best expected accuracy as the estimate of the physical quantity.
10. The apparatus of claim 1, wherein the processor comprises a Kalman filter configured to compute the estimate using the first measurement signal and the second measurement signal corrupted with respective measurement errors.
11. The apparatus of claim 1, further comprising: comparison circuitry configured to compare the first measurement signal and the second measurement signal and to output a functional safety indicator based on the comparison of the first measurement signal and the second measurement signal.
12. The apparatus of claim 1, further comprising: a first signal path for the first measurement signal, the first signal path having a first signal propagation delay; a second signal path for the second measurement signal, the second signal path having a second signal propagation delay different from the first signal propagation delay; and a delay compensation circuit configured to compensate for a difference between the first and second signal propagation delays to generate a delay-compensated first measurement signal and a delay-compensated second measurement signal, wherein the processor is configured to compute the estimate based on a combination of the delay-compensated first measurement signal and the delay-compensated second measurement signal.
13. The apparatus of claim 12, wherein the delay compensation circuit is configured to trigger a first signal processing of the first signal path and a second signal processing of the second signal path at different time instances to obtain the delay-compensated first measurement signal and the delay-compensated second measurement signal at respective outputs of the first signal path and the second signal path.
14. The apparatus of claim 12, wherein the delay compensation circuit comprises a filter circuit configured to generate a first filtered measurement signal for the first signal path, and wherein the first filtered measurement signal is time-aligned with the second measurement signal.
15. A method for sensing a physical quantity, the method comprising: receiving a first measurement signal of the physical quantity from a first sensor in accordance with a first sensor technology; receiving at least a second measurement signal of the physical quantity from a second sensor in accordance with a second sensor technology, wherein the first sensor technology and the second sensor technology are different; determining an expected accuracy of the first sensor and the second sensor; and computing an estimate of the physical quantity based on a combination of the first measurement signal and the second measurement signal, wherein a result of the combination is dependent on the expected accuracy of the first sensor and the second sensor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Some examples of apparatuses and/or methods will be described in the following by way of example only, and with reference to the accompanying figures, in which
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
DETAILED DESCRIPTION
[0061] Various examples will now be described more fully with reference to the accompanying drawings in which some examples are illustrated. In the figures, the thicknesses of lines, layers and/or regions may be exaggerated for clarity.
[0062] Accordingly, while further examples are capable of various modifications and alternative forms, some particular examples thereof are shown in the figures and will subsequently be described in detail. However, this detailed description does not limit further examples to the particular forms described. Further examples may cover all modifications, equivalents, and alternatives falling within the scope of the disclosure. Same or like numbers refer to like or similar elements throughout the description of the figures, which may be implemented identically or in modified form when compared to one another while providing for the same or a similar functionality.
[0063] It will be understood that when an element is referred to as being connected or coupled to another element, the elements may be directly connected or coupled or via one or more intervening elements. If two elements A and B are combined using an or, this is to be understood to disclose all possible combinations, i.e. only A, only B as well as A and B, if not explicitly or implicitly defined otherwise. An alternative wording for the same combinations is at least one of A and B or A and/or B. The same applies, mutatis mutandis, for combinations of more than two Elements.
[0064] The terminology used herein for the purpose of describing particular examples is not intended to be limiting for further examples. Whenever a singular form such as a, an and the is used and using only a single element is neither explicitly or implicitly defined as being mandatory, further examples may also use plural elements to implement the same functionality. Likewise, when a functionality is subsequently described as being implemented using multiple elements, further examples may implement the same functionality using a single element or processing entity. It will be further understood that the terms comprises, comprising, includes and/or including, when used, specify the presence of the stated features, integers, steps, operations, processes, acts, elements and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, processes, acts, elements, components and/or any group thereof.
[0065] Unless otherwise defined, all terms (including technical and scientific terms) are used herein in their ordinary meaning of the art to which the examples belong.
[0066] Signal comparison safety mechanisms may provide excellent diagnostic coverage for applications requiring functional safety, especially when using diverse (redundant) signal paths. Such safety mechanisms are usually straightforward to implement, requiring comparing the difference of two signals against certain limits. Two conventional concepts for signal comparison are shown in
[0067]
[0068] According to embodiments, the first and the second signal paths 110A, 110B may comprise respective sensor elements and further respective electrical circuit components which configured to transform the physical quantity 102 into the first measurement signal and the second measurement signal 120A, 120B. Depending on the implementation, the first measurement signal and the second measurement signal 120A, 120B may be analog or digital signals indicative of the physical quantity 102 of interest. The first and the second signal paths 110A, 110B may be integrate in a common integrated circuit (IC), or may be implemented in different ICs, for example. The sensor elements and electrical circuit components of the first and the second signal paths 110A, 110B may not be identical and thus the respective sensor elements and/or respective further circuit components of the first and the second signal paths 110A, 110B may cause the respective different signal propagation delays t.sub.ca, t.sub.cb.
[0069] In some embodiments, the respective sensor elements of the first and second signal paths 110A, 110B may employ the same sensor technology. Alternatively, the sensor elements may also employ different sensor technologies. In case of rotational sensors (angle sensors), an angle sensor of the first signal path 110A may comprise an xMR angle sensor, for example. In some embodiments, an angle sensor used for the second signal path 110A could also be an xMR angle sensor or could be implemented as a Hall-sensor. In some embodiments, the angle sensors of both signal paths 110A, 110B could both be implemented as Hall-sensors. Embodiments with sensor elements of different sensor technologies will be addressed in more detail at the end of this disclosure.
[0070] Apart from the sensor elements, the respective signal paths 110A, 110B may comprise further circuit components such as analog-to-digital converters (ADC), signal processing for offset compensation, and signal processing for converting measurement signals to angle estimates, for example. Sampling times of respective ADCs of the signal paths 110A, 110B may differ, also contributing to the different signal propagation delays Ica, Ich.
[0071] An example signal path 110 for angle sensing applications is schematically illustrated in
[0072] A physical signal of interest 102, for example a rotating magnetic field, may be converted to electrical signals via one or more sensing elements 111. In angle sensing applications, the sensing elements 112 may deliver a first analog signal component 112-1 ideally corresponding to cos (a) and a second analog signal component 112-2 ideally corresponding to of sin (a), where a denotes an angle to be measured based on the rotating magnetic field. Subsequent analog-to-digital converters (ADCs) 113 may convert the analog signal components 112-1, 112-2 to the digital domain. Instead of the ADC 113, amplifiers could be used if one wants to process the signal components 112-1, 112-2 directly in the analog domain. Optional compensation circuitry 114 (for example, autocalibration circuitry) may minimize unintended effects of non-idealities of the sensing elements 111 and ADC 113 on the signal components 112-1, 112-2. Post-processing 115 may estimate the physical quantity of interest (e.g., angle ) from the one or many signals provided by the ADC 113 and optional compensation 114. For angle sensors, a CORDIC (COordinate Rotation Digital Computer) 115 may be used to calculate the angle from the cos- and sin-components 112-1, 112-2 generated by the sensing elements 111. Finally, a look-up table (LUT) 116 or more advanced schemes can be used to compensate further signal non-idealities.
[0073] The skilled person having benefit from the present disclosure will appreciate that the analog and digital signal processing of a signal path 110 from a sensor element to the estimate or measurement signal 120 causes a signal propagation delay. Thus, internal signal processing of integrated sensor systems influence the acquired signals and timing. This is illustrated in
[0074]
[0075] A trigger of sample acquisition is assumed at a certain time t.sub.trig. A certain timespan T.sub.del later, the central time t.sub.c of averaging is encountered. Depending on the signal path architecture, the central time t.sub.c might come even before the trigger timein such cases T.sub.del is negative. Signal processing and optional transmission takes another timespan T.sub.proc. After the accumulated timespan (T.sub.del+T.sub.proc), at the time t.sub.s, the triggered sample y.sub.i (measurement signals 120A, 120B) would be available for signal comparison. As a good approximation, the sample y.sub.i will correspond to the physical signal at the central time t.sub.c, thus y.sub.iy(t.sub.c). Therefore, this central time the will also be referred to as effective sample time. The sampling period T.sub.s may be defined as the timespan until the next sample becomes available.
[0076]
[0077] Reference numeral 102 denotes actual course of a physical quantity of interest such as, for example, an angle of a rotating magnetic field. Internal signal processing along a signal path 110 of a sensor device includes different time delays, such as filter delay 201, processing delay 202, for example due to sampling and digital signal processing, and additional timing effects 203 due to sampling. This internal signal processing leads to an offset or error 204 between the actual physical quantity 102 and the output measurement signal 120.
[0078] Signal comparison safety mechanisms, as illustrated in
[0079] For both synchronous and asynchronous concepts illustrated in
[0080] A graphical explanation of false alarms caused by different timings between two sensing signal paths 110A, 110B is shown in
[0081] One approach could be considering this effect and relaxing the limits for the signal compare safety mechanism in block 130 accordingly. However, this might not be possible for high accuracy applications and thus reduce the achievable diagnostic coverage of the safety mechanism.
[0082] As has been explained before, different and especially diverse signal paths 110A, 110B have in general different timing properties. For optimal signal comparison, the target should be achieving as similar effective sampling times t.sub.c for the different signal paths as possible. In high-speed applications, accurate timing for safety mechanisms, which compare signals of different signal paths, may be of vital importance. Embodiments of the present disclosure propose various concepts ensuring optimal timely agreement between samples 120A, 120B from different signal paths, thus keeping the error 205 between two redundant measurement signals 120A, 120B of the same physical quantity possibly low.
[0083]
[0084] The apparatus 300 comprises a first signal path 110A for a first measurement signal 120A of a physical quantity 102. The first signal path 110A has a first signal propagation delay t.sub.ca. The apparatus 300 also comprises a (redundant) second signal path 110B for a second measurement signal 120B of the physical quantity 102. The second signal path 110B has a second signal propagation delay fc different from the first signal propagation delay t.sub.ca. The apparatus 300 comprises a delay compensation circuit 310 which is configured to compensate for a difference d between the first and second signal propagation delays delay t.sub.ca, t.sub.cb to generate delay-compensated or time-aligned first and second measurement signals 120A, 120B. The apparatus 300 also comprises comparison circuit 130 configured to compare the delay-compensated first and second measurement signals 120A, 120B for functional safety. Comparison circuit 130 may correspond to conventional comparison schemes or may comprises additional signal combination functionalities in case sensors of different sensor technologies are employed. This will be described in more detail later.
[0085] Although the present disclosure focusses on signal comparison of two signals 120A, 120B, it should be noted that the proposed concepts are applicable as well for comparing more signals, e.g. for three or four signals. The skilled person having benefit from the present disclosure will also appreciate that the comparison circuit 130 can be implemented together with the signal paths 110A, 110B in one sensor device, or externally. For the case of external signal comparison, the signal paths 110A, 110B can be implemented in one device or in two separate devices.
[0086] In the following, an embodiment for obtaining equal effective sampling times and thus an optimal signal comparison for synchronous operation of the signal paths 110A, 110B will be described with reference to
[0087]
[0088] For example, it may be assumed that the two signal paths 110A, 110B have internal filter delays of T.sub.del,a and T.sub.del,b, and without loss of generality it may be defined that dt.sub.a=T.sub.del,bT.sub.del,a and assumed that dt.sub.a>0, i.e., the filter delay of signal path 110B is larger than the filter delay of signal path 110A. In this case, a trigger delay dt.sub.b for signal path 110B may be skipped, i.e. dt.sub.b=0. Suppose at time t=0, the delay compensation circuit 310 including a trigger logic outputs a trigger pulse. Signal path 110B may be triggered immediately and acquire a measurement sample y.sub.b 120B with effective sampling time t.sub.c,b=T.sub.del,b. Signal path 110B may output the sample y.sub.b at a time t.sub.s,b=T.sub.del,b+T.sub.proc,b. Apart from signal path imperfections and effects of averaging, this sample y.sub.b corresponds to the physical signal of interest y(t) 102 at the effective sampling time t.sub.c,b, i.e. y.sub.by(t.sub.c,b).
[0089] Signal path 110A receives a delayed trigger at t.sub.trig,a=dt.sub.a=T.sub.del,bT.sub.del,a from delay compensation circuit 310 including the trigger logic. Signal path 110A acquires a measurement sample y.sub.a 120A with effective sampling time t.sub.c,a=t.sub.trig,a+T.sub.del,a=t.sub.c,b, i.e. with the same effective sampling time as signal path 110B. Signal path 110A outputs the sample y.sub.a at a time t.sub.s,a=T.sub.del,a+T.sub.proc,a. Although the sample y.sub.a becomes in general available at another point in time than sample y.sub.b, it corresponds to the sample physical signal of interest y(t) at the same effective sampling time t.sub.c,b, i.e. y.sub.ay(t.sub.c,b). Thus, the signal comparison circuit 130 only needs to fetch each measurement sample 120A, 120B when it becomes available and compare their difference against certain thresholds.
[0090] In some embodiments, however, diverse signal paths 110A, 110B might need different sampling periods T.sub.s,A, T.sub.s,B. For signal comparison, it may make sense to choose the longer sampling period as a multiple of the shorter sampling period. The general concept of
[0091] With the concept of
[0092] For asynchronous operation (see
[0093]
[0094] For asynchronous operation, delay compensation circuit 310 may comprise a filter circuit 510 coupled to the respective outputs of signal paths 110A, 110B and configured to generate a filtered measurement signal for at least one of the first or the second signal paths 110A, 110B. The filtered measurement signal 120A or 120B is essentially time-aligned with the other measurement signal 120B or 120A of the other signal path. Additionally, delay compensation circuit 310 may comprise respective sample and hold (S/H) circuits 515A, 515B coupled between filter circuit 510 and comparison circuit 130 and associated with the respective signal paths 110A, 110B. Filter circuit 510 may perform interpolation/extrapolation of at least one of the measurement signals 120A or 120B provided at the output of signal paths 110A, 110B. Together with the S/H circuits 515A, 515B, filter circuit 510 may equalize the timing of the two measurement signals under comparison.
[0095] For delay-synchronization, simple digital filters can be used to reduce the bandwidth of the signal path with higher bandwidth (faster channel) to that of the lower bandwidth signal path (slower channel). Most functional safety applications require safety-reaction times much larger than a sensor signal update-time, which allows an additional filtering of the faster channel. For example, Finite Impulse Response (FIR) filters may be used in this context with constant phase delay as shown in
[0096]
[0097] In case of channel a comprising a fast, high bandwidth signal path, the timing can be synchronized by reducing the bandwidth by a digital filter 610. This concept has the benefit of providing delay-compensated sample values 120A and/or 120B. In case of signal path 110A representing the fast, high bandwidth channel this idea can be implemented according to
[0098] Comparison of this high and low speed sensing channels works as follows for this concept (
[0102] In case of one channel comprising a fast, high bandwidth signal path and the other channel with a slow, low bandwidth signal path, the low bandwidth channel outputs may be treated in a way to implement a signal prediction to fit the signal delay of the fast, high bandwidth channel. For this purpose, a prediction filter may be foreseen in the first signal path 110A or the second signal path 110B, the prediction filter having a prediction time interval essentially corresponding to a difference between the first and the second signal propagation delay. Here, prediction time interval denotes a time interval which the prediction filter looks into the future. This concept may have the benefit of providing delay-synchronized samples.
[0103]
[0104] For example, the prediction filter 710 may comprise a Kalman filter, which is schematically shown in
[0105]
[0106] By using a Kalman filter for state space estimation as the prediction filter 710, one can minimize the effect of inevitable signal noise on the prediction. While this might not be strictly required if one restricts the adjustment of the sample times to interpolation, it may improve interpolation quality and may be recommended for any kind of signal extrapolation. For adequate systems, a Kalman filter may provide the optimal estimator from signal theory point.
[0107] Typical system state spaces comprise estimators for the signal of interest y(t) 102, its first derivative dy(t)/dt, and optional higher order derivatives d.sub.ny(t)/dt.sub.n, and the uncertainties of these estimators in terms of their covariance matrix. For sufficiently fast sampling periods and well-behaved physical signals of interest y(t), a linearized first order system model up to dy(t)/dt may suffice for acceptable accuracy. Then, linear Kalman filters suffice, which can be implemented very efficiently with limited computational resources.
[0108] What follows is a short explanation of the Kalman filter: At any point in time, a system model 711 reflects the available knowledge about the estimators and their uncertainty (via their covariance matrix) based on all previously acquired samples. When a new sample arrives (or ideally shortly before), a Kalman predict block 712 calculates an expected sample and its uncertainty based on the available knowledge. A Kalman update block 713 compares the measured sample y, against this expected sample and updates the system model 711 appropriately.
[0109] Because delayed samples y.sub.iy(t.sub.c,i) are provided to the Kalman filter 710, also its state estimations correspond to these delayed times. The optimal estimator, y.sub.iy(t), for the physical signal of interest 102 at the present point in time (or actually any other time point t>t.sub.c,i) may be calculated by a latency predict block 714. In general, this may be the same operation, which the Kalman predict block 712 already performs. Therefore, these two blocks may be combined in an implementation.
[0110] As alternative a simpler concept for prediction would be linear interpolation/extrapolation. With each new sample y, with corresponding effective sampling time t.sub.c,i, received by the prediction filter 710, a finite difference quotient y.sub.i/t=(y.sub.iy.sub.i(old))/(t.sub.c,it.sub.c,i(old)) using the previously received sample y.sub.i (old) and its effective sampling time t.sub.c,i(old), may be calculated. y.sub.i/t and additionally y.sub.i and t.sub.c,i need to be stored. Then, the physical signal of interest y.sub.i(t) at a certain time/can be estimated with linear interpolation/extrapolation according to y.sub.i=y.sub.i+y.sub.i/t*(tt.sub.c,i). Of course, this scheme may be inferior to a properly designed Kalman filter for extrapolation due to the effect of signal noise on the difference quotient. For interpolation, however, the performance of this scheme might be sufficient.
[0111] High-speed comparison works as follows for the concept of
[0116] As additional benefit of this concept, the signal comparison circuit 130 inherently checks the prediction. Thus, it may ensure that the physical signal of interest has actually evolved as predicted by the system model 711 in the Kalman filter/prediction block 710.
[0117] With small adaptations, this implementation may suit interfaces with constant latency (i.e. low jitter) as well. In this case, the latency predict block would be configured slightly different. Say, the interface adds a latency of 72 for transmitting the information. Then, one would add this timespan to the configured prediction time of the latency predict block, such that it provides at any time/a value y.sub.a(t) corresponding to the physical signal at time (t+T.sub.tx), i.e. y.sub.a(t)y(t+T.sub.tx). Transmission via the constant latency interface lasts a timespan T.sub.tx. Then, the received value, say y.sub.a, corresponds again to the physical signal at the correct point in time, y.sub.a(t+T.sub.tx)y(t+T.sub.tx). Of course, the delay block has to be adjusted accordingly, i.e. to a delay of dt.sub.sh=T.sub.del,b+T.sub.tx.
[0118] The implementation shown in
[0119] The procedure for this implementation can be as follows:
[0120] 1. The safety signal path 110B should be triggered as often as possible, say with a sampling period T.sub.s,b. This provides the best possible data for signal comparison. Different implementations for the prediction block 710 are conceivable: Of course, one can implement a full-blown Kalman filter as for signal path 110A above. However, the simpler linear interpolation scheme described above may be chosen for this implementation.
[0121] In this case, for any time, the prediction block 10 should interpolate the samples corresponding to the time (tT.sub.s,bT.sub.proc,b). In terms of the linear interpolation, this results in y.sub.b(t)=y.sub.b+y.sub.b/t*(tT.sub.s,bT.sub.proch,bt.sub.c,i)(tT.sub.s,bT.sub.proc,b). This behavior may ensure that the prediction block 710 is always operated in interpolation mode and does not have to extrapolate. This may minimize errors due to sampling noise.
[0122] 2. When the main signal path 110A gets triggered, say at a time t.sub.trig,a, this trigger signal may be delayed by a certain timespan dish and then be forwarded to the S/H block 515B. This delay may ensure that a new sample of signal path 110B is available for signal comparison, for which the effective sampling time is not earlier than the effective sampling time of the triggered sample from signal path 110A, thus t.sub.c,bt.sub.c,a. This allows us to limit the prediction block 710 to signal interpolation instead of extrapolation (which would introduce unnecessary errors due to signal noise and delay).
[0123] One option is to delay the trigger by a fixed time, dt.sub.sh=T.sub.del,a+T.sub.proc,b+T.sub.s,b. After this timespan, a new sample from signal path 110B is available, for which t.sub.c,bt.sub.c,a holds. Thus, only interpolation and no signal extrapolation is required.
[0124] 3. When the triggered sample from signal_path a, y.sub.ay(t.sub.ca), becomes available, the signal comparison block 130 may store it for later comparison.
[0125] 4. When the delayed trigger arrives at the S/H block 515B at time t.sub.trig,sh=t.sub.trig,a+dt.sub.sh, the S/H block 515B may obtain a sample y.sub.b(t.sub.trig,sh) from the prediction block 710. Due to the definition in step 1, this sample corresponds to y.sub.b(t.sub.trig,sh)(t.sub.trig,shT.sub.s,bT.sub.proc,b)=t(t.sub.ca), i.e. to the effective sampling time of signal from signal path 110A.
[0126] Again, both samples correspond to the physical signal of interest at the same point in time. Therefore, an optimal signal comparison with tight limits and good diagnostic coverage is possible.
[0127] Another example implementation can be done by delaying both channels by respective filters, which may also compensate delay differences. Potential implementations are shown in
[0128]
[0129] In this case, the timing and operation for 2 filter 610A, 610B are straight-forward: [0130] 1. Both signal paths 110A, 110B should be triggered synchronously, to provide optimal synchronized information for the two filter blocks 610A, 610B. [0131] 2. Due to synchronous sampling, the signals can be compared in time, according to the needs of the functional safety application.
[0132] The timing and operation for 2 prediction 710A, 710B are also straight-forward: [0133] 1. Both signal paths should be triggered as fast as possible, to provide optimal information for the two prediction blocks 710A, 710B. Due to prediction, estimators for the physical signal of interest are available (virtually without delay) for any time of interest and for both signal paths. [0134] 2. Thus, the signals can be compared at any point in time, according to the needs of the functional safety application.
[0135] For signal paths with certain properties, also high-speed signal comparison without any kind of prediction is possible, see
[0136] The procedure for this implementation can be as follows: [0137] 1. The main signal path 110A is triggered at a certain point in time, say t.sub.trig,a. Signal path 110A acquires and processes the sample y.sub.a, which then corresponds to the physical signal of interest at time t.sub.ca, i.e. y.sub.ay(t.sub.ca). [0138] 2. The delay compensation circuit 910 may trigger 110B a timespan dt.sub.b after t.sub.trig,a. This may cause the effective sampling times for both signal paths 110A, 110B to coincide. To achieve this, we choose dt.sub.b=T.sub.del,aT.sub.del,b and require dt.sub.b>0 for causality.
[0139] Signal path 110B acquires and processes the sample y.sub.b, which corresponds to the physical signal of interest at the very same time as sample y.sub.a, i.e. y.sub.by(t.sub.ca).
[0140] 3. The signal comparison block 130 compares the difference of the two samples y.sub.a and y.sub.b against the specified limits. Because both samples correspond to the physical signal of interest at the same point in time, an optimal signal comparison with tight limits and good diagnostic coverage is possible.
[0141] A restriction for applicability of the implementation of
[0142] As already mentioned before, some embodiments of the present disclosure may be used for functional safe angle-measurement. Accurate angle-measurements using integrated magnetic angle sensors. Recent requirements of angle sensors used for electrical commutation of electric motors decreased to very low values of allowed angle errors. Angle measurement systems today comprise SINE (typically named Y-component) and COSINE (typically named X-component) measurement with adjacent angle calculation using the ARCTAN-function (or also named tan.sup.1):
[0143] The problem today is to get very accurate angle measurements in the range <0.2 angle error.
[0144] Combinations of angle sensors of different sensor technologies are promising candidates to achieve very accurate angle measurements and furthermore provide redundant and diverse sensing technologies for functional safety applications. Therefore, in embodiments of the present disclosure signal path 110A could be used to determine the first measurement signal 120A of the physical quantity 102 from a first sensor in accordance with a first sensor technology, while signal path 110B could be used to determine the second measurement signal 120A of the physical quantity 102 from a second sensor in accordance with a second sensor technology.
[0145] For example, combinations of saturated angle sensors (xMR-based) and linear angle sensors (based e.g. on vertical Hall probes, subsequently denoted VHall) may be used. Each sensing technology has its benefits and weaknesses. For example,
[0146] xMR-based sensor technologies provide usually better signal-to-noise ratio than Hall-based sensor technologies.
[0147] AMR-based sensors provide excellent stability with respect to phase drifts and higher harmonic errors but are usually limited to 180 and show significant drifts of output amplitudes and offsets.
[0148] VHall-based sensors provide excellent linearity and minimal residual offsets due to current spinning (offset cancellation) techniques.
[0149] Autocalibration methods exist, which compensate the detrimental effects of amplitude- and offset-drifts of xMR-based sensor technologies. However, these methods need at least a half or full mechanical rotation before they can provide any improvements, for AMR or GMR/TMR technologies, respectively. Thus, immediately after start-up, and for very slow rotation speeds, VHall-based sensors could provide a better angle accuracy than xMR-based sensors. Thus, embodiments of the present disclosure also propose optimum angle estimators from combined xMR- and VHall-based sensors, taking into account the status of autocalibration and the angular velocity.
[0150] For this purpose, the comparison circuitry 130 may be expanded with additional signal combination functionalities. Comparison circuitry 130 may be configured to receive a first measurement signal y.sub.a of the physical quantity 102 from a first sensor in signal path 110A in accordance with a first sensor technology and to receive at least a second measurement signal y.sub.b of the physical quantity 102 from a second sensor in signal path 110A in accordance with a second sensor technology. The measurement signals may be delay-compensated or time-aligned in accordance with any one of the previously described embodiments. Comparison circuitry 130 may be configured to compute an estimate of the physical quantity based on a combination of the first measurement signal and the second measurement signal y.sub.a, y.sub.b. The combination is dependent on an expected accuracy of the first and the second sensor. In some embodiments, the first measurement signal y.sub.a is a first angle estimate from a first angle sensor in accordance with a first angle sensor technology and the second measurement signal y.sub.b is a second angle estimate from a second angle sensor in accordance with a second angle sensor technology. As mentioned before, the first angle sensor technology can be an xMR-based sensor technology, while the second sensor technology can be an VHall-based sensor technology. However, the skilled person having benefit from the present disclosure will appreciate that embodiments of the present disclosure are neither limited to angle sensing nor to this combination of sensors. The principle can be applied to sensing arbitrary physical quantities.
[0151] For better understanding,
[0152] Apparatus 1000 comprises an interface 1010 configured to receive a first angle measurement signal 120A from a first angle sensor 111A in accordance with a first angle sensor technology (e.g. xMR) and to receive at least a second angle measurement signal 120B from a second angle sensor 111B in accordance with a second sensor technology (e.g. VHall). The first angle sensor 111A can be part of a first signal path 110A of a functional safe system. The second angle sensor 111B can be part of a second signal path 110B of the functional safe system. The apparatus 1000 further comprises a processor 1020 configured to compute an estimate of the angle based on a combination of the first and the second angle measurement signals 120A, 120B. The combination is dependent on an expected accuracy of the first and the second angle sensor 111A, 111B.
[0153] The processor 1020 may be configured to combine the first and the second angle measurement signals dependent on a current angular velocity and/or on a respective status of the first and the second angle sensors 111A, 111B. For this purpose, the interface 1010 may be configured to receive a first status signal 1030A from the first sensor 111A and to receive a second status signal 1030B from the second angle sensor 111B. The status signals 1030A, 1030B may be indicative of respective observed angular velocities and/or calibration statuses of the angle sensors 111A, 111B.
[0154] As mentioned before, the proposed concept is not limited to angle sensing but can be applied to sensing arbitrary physical quantities.
[0155] Processor 1020 may be configured to weight the individual sensor signals 120A, 120B based on their expected accuracy. For example, for xMR-based sensors, the accuracy may depend solely on the status of the autocalibration (active or inactive), but not on the rotation speed due to their in general excellent signal to noise performance.
[0156] For VHall-based sensors, the accuracy may be modeled by the accuracy for static measurements, and a factor proportional to the angular velocity, accounting for the significant averaging time required for reasonable signal-to-noise ratio (SNR).
[0157] In one example implementation, the angular velocity can be derived from the finite difference quotient of two angle samples, e.g. from the VHall-based angle sensor 111B. As stated above, the VHall-based angle sensor 111B might need a significant averaging time, T.sub.av, to achieve an adequate SNR. Of course, the sensor's output angle signal 120B is insensitive to variations of the angular velocity, which may happen faster than T.sub.av. For very slow rotational speeds, the resulting inaccuracies may be negligible, but may become more and more important for faster speeds. For simplicity, it is proposed to assign T_eff to a certain constant fraction of T.sub.av, e.g. T_eff=T.sub.av/4.
[0158] The processor 1020 may be configured to increase a computational weight of the first angle measurement signal 120A from xMR sensor 111A with respect to the second angle measurement signal 120B from VHall sensor 111B with increasing angular velocity . Correspondingly, the processor 1020 may be configured to increase a weight of the second angle measurement signal 120B from VHall sensor 111B with respect to the first angle measurement signal 120A from xMR sensor 111A with decreasing angular velocity .
[0159] In one embodiment, the weighting scheme may be a pure binary weighting, which just outputs the angle estimate angle_out with the better expected accuracy. A corresponding embodiment of combination processor 1020 is illustrated in
[0160] Combination processor 1020 receives the first angle measurement signal 120A and the first status signal 1030A from xMR sensor 111A as well as the second angle measurement signal 120B and the second status signal 1030B from VHall sensor 111B. Based on the first angle measurement signal 120A and the status signal 1030A, a first error value error_xMR may be determined in a first accuracy estimator 1021A, for example according to eq. (1). Based on the second angle measurement signal 120B and the second status signal 1030B, a second error value error_VHall may be determined in a second accuracy estimator 1021B, for example according to eq. (2). The error signals error_xMR and error WHall may be compared using a comparator 1022. Based on this comparison, the first angle measurement signal 120A may be selected by selector 1023 as output signal angle_out if error_xMR<error_VHall, or the second angle measurement signal 120B may be selected as output signal angle_out if error_xMR>error_VHall.
[0161] A considerably improved weighting scheme uses an appropriate filter, e.g. a Kalman filter, see
[0162] In
[0163] A system model 711 appropriate for most applications may comprise of a two-dimensional state space and a minimal differential equation, given in Eq. (3). Here, is the angle, is the angular velocity, and the dot denotes the time derivative. It contains the implicit assumption, that the angular velocity remains constant. Higher order models are of course feasible and follow basically the same formalism as derived below.
[0164] A linear system model in the usual convention is given in Eq. (4). Here, u denotes a control input (unnecessary in the example case), y is the vectors of observables y=(angle_xMR, angle_VHall).sup.T, , B, C, and D are the matrices describing state transitions, influence of controls, and measurements. The process noise is modeled with the vector w, whose covariance matrix is denoted {tilde over (Q)}, and the measurement noise by v, whose covariance matrix is denoted by R. Both noise terms are modeled as zero-mean Gaussian noise.
[0165] For the illustrated example, the system matrices can be identified as
[0166] Because the errors of the two diverse angle sensor technologies are independent, the off-diagonal elements of the measurement noise covariance matrix vanish, and the matrix is given by
[0167] For process noise, it suffices to model the uncertainty in propagating w. Thus, we find
[0169] Although it is not necessary, it may be reasonable to calculate the expected errors error_xMR and error_VHall with the already available information from the system model 711 and feed them back to accuracy estimators 1021A, 1021B. Thus, it is proposed to use the from the system model 711, see Eq. (3), to calculate the error_VHall with Eq. (2).
[0170] For discrete systems with a finite sampling time T.sub.s, however, the state representation may be given in terms of finite differences by
[0171] In this representation, the system matrices differ slightly, and are given by
[0172] Equivalently, the process noise covariance matrix may be adapted, resulting in
[0173] The measurement noise covariance matrix, R, remains the same as in the continuous model.
[0174] Of course, the discrete model is based on the same implicit assumption as the continuous model, that the angular velocity remains constant. This is reasonably well justified, as long as the error due to the maximum angular acceleration |T.sub.s.sup.2.Math.{dot over ()}.sub.max/2| is small compared to the targeted angular accuracy.
[0175] Refer to the literature for derivation of the Kalman equations. For each sample, in general we [0176] 1. predict the outcome of the system model via Eq. (11), [0177] 2. obtain the measurement samples yr, and [0178] 3. update the system model via Eq. (12).
[0179] Kalman prediction:
[0180] Kalman update:
[0181] The expected accuracies of the xMR- and the VHall-based angle sensors 111A, 111B determine the measurement covariance matrix, which is used to calculate the Kalman gain K.sub.k. The Kalman gain, in turn, may determine the weights assigned to their respective measurement samples y.sub.k=(angle_xMR, angle_VHall).sup.T.
[0182] Of course, the angles .sub.k and
[0183] In conventional systems, the angle accuracy without autocalibration (i.e. directly after startup, at very slow rotations, and for start-stop use-cases) of AMR sensors may be insufficient to fulfill tight accuracy requirements. Embodiments may enable to design a better product, with suitable angle accuracies in all relevant use-cases.
[0184] The aspects and features mentioned and described together with one or more of the previously detailed examples and figures, may as well be combined with one or more of the other examples in order to replace a like feature of the other example or in order to additionally introduce the feature to the other example.
[0185] Examples may further be or relate to a computer program having a program code for performing one or more of the above methods, when the computer program is executed on a computer or processor. Steps, operations or processes of various above-described methods may be performed by programmed computers or processors. Examples may also cover program storage devices such as digital data storage media, which are machine, processor or computer readable and encode machine-executable, processor-executable or computer-executable programs of instructions. The instructions perform or cause performing some or all of the acts of the above-described methods. The program storage devices may comprise or be, for instance, digital memories, magnetic storage media such as magnetic disks and magnetic tapes, hard drives, or optically readable digital data storage media. Further examples may also cover computers, processors or control units programmed to perform the acts of the above-described methods or (field) programmable logic arrays ((F) PLAs) or (field) programmable gate arrays ((F) PGAs), programmed to perform the acts of the above-described methods.
[0186] The description and drawings merely illustrate the principles of the disclosure. Furthermore, all examples recited herein are principally intended expressly to be only for illustrative purposes to aid the reader in understanding the principles of the disclosure and the concepts contributed by the inventor(s) to furthering the art. All statements herein reciting principles, aspects, and examples of the disclosure, as well as specific examples thereof, are intended to encompass equivalents thereof.
[0187] A functional block denoted as means for . . . performing a certain function may refer to a circuit that is configured to perform a certain function. Hence, a means for s.th. may be implemented as a means configured to or suited for s.th., such as a device or a circuit configured to or suited for the respective task.
[0188] Functions of various elements shown in the figures, including any functional blocks labeled as means, means for providing a signal, means for generating a signal., etc., may be implemented in the form of dedicated hardware, such as a signal provider, a signal processing unit, a processor, a controller, etc. as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions may be provided by a single dedicated processor, by a single shared processor, or by a plurality of individual processors, some of which or all of which may be shared. However, the term processor or controller is by far not limited to hardware exclusively capable of executing software, but may include digital signal processor (DSP) hardware, network processor, application specific integrated circuit (ASIC), field programmable gate array (FPGA), read only memory (ROM) for storing software, random access memory (RAM), and non-volatile storage. Other hardware, conventional and/or custom, may also be included.
[0189] A block diagram may, for instance, illustrate a high-level circuit diagram implementing the principles of the disclosure. Similarly, a flow chart, a flow diagram, a state transition diagram, a pseudo code, and the like may represent various processes, operations or steps, which may, for instance, be substantially represented in computer readable medium and so executed by a computer or processor, whether or not such computer or processor is explicitly shown. Methods disclosed in the specification or in the claims may be implemented by a device having means for performing each of the respective acts of these methods.
[0190] It is to be understood that the disclosure of multiple acts, processes, operations, steps or functions disclosed in the specification or claims may not be construed as to be within the specific order, unless explicitly or implicitly stated otherwise, for instance for technical reasons. Therefore, the disclosure of multiple acts or functions will not limit these to a particular order unless such acts or functions are not interchangeable for technical reasons. Furthermore, in some examples a single act, function, process, operation or step may include or may be broken into multiple sub-acts,-functions,-processes,-operations or -steps, respectively. Such sub acts may be included and part of the disclosure of this single act unless explicitly excluded.
[0191] Furthermore, the following claims are hereby incorporated into the detailed description, where each claim may stand on its own as a separate example. While each claim may stand on its own as a separate example, it is to be noted thatalthough a dependent claim may refer in the claims to a specific combination with one or more other claimsother examples may also include a combination of the dependent claim with the subject matter of each other dependent or independent claim. Such combinations are explicitly proposed herein unless it is stated that a specific combination is not intended. Furthermore, it is intended to include also features of a claim to any other independent claim even if this claim is not directly made dependent to the independent claim.