SAFETY MECHANISM FOR SENSORS
20220373574 · 2022-11-24
Inventors
Cpc classification
B81B7/008
PERFORMING OPERATIONS; TRANSPORTING
G01P21/00
PHYSICS
G01C25/00
PHYSICS
International classification
Abstract
The present invention relates to a method and an apparatus for detecting a failure of a sensor device during operation of the sensor device. A test signal is generated in a first frequency band that is above a signal frequency band of the sensor device and fed into a sensor element of the sensor device. A set of samples is obtained, and a magnitude value is derived from said at least two consecutive samples at the first frequency band. The magnitude value is compared to a magnitude threshold value that defines a minimum for the magnitude value and if the magnitude value is below the magnitude threshold value, it is determined that an error has occurred in the sensor device.
Claims
1. A method for detecting a failure of a sensor device comprising a sensor element during operation of the sensor device, the method comprising: a) generating a test signal in a first frequency band; b) feeding the test signal into the sensor element of the sensor device; c) obtaining samples; d) calculating a magnitude value from said samples; e) comparing the magnitude value to a magnitude threshold value that defines a minimum for the magnitude value; and f) if the magnitude value is below the magnitude threshold value, determining that an error has occurred in the sensor device; wherein the first frequency band is above a signal frequency band of the sensor device, wherein magnitude of the test signal is at least 5 times the magnitude of any intrinsic noise of the sensor element in the first frequency band, said samples comprise a set of samples comprising at least two consecutive samples of an output signal provided at an output of the sensor element during a sampling period, and wherein the magnitude value is derived from said at least two consecutive samples at the first frequency band.
2. The method according to claim 1, further comprising continuously repeating steps c) to f) for a plurality of sets of samples obtained during consecutive sampling periods.
3. The method according to claim 2, further comprising: g) determining a fail count threshold and initializing a fail counter; h) for each set of samples, repeating steps c) to f) and i) if occurrence of an error is determined in the step f), incrementing value of the fail counter; j) if no error is determined in the step f), returning the fail counter into its initial value; and k) if current value of the fail counter equals with the error count threshold, determining that the sensor device fails.
4. The method according to claim 1, wherein the magnitude value is any one of a peak-to-peak value, a root-mean-square value and a standard deviation value.
5. The method according to claim 1, wherein the test signal comprises at least two discrete test tones, wherein each of the test tones reside within the first frequency band.
6. The method according to claim 5, wherein the test signal has a repeating envelope, and wherein length of the sampling period is equal or greater than a period of the envelope.
7. The method according to claim 1, wherein the test signal is a noise signal or a pseudorandom noise signal, and wherein the frequency band of the test signal is limited to the first frequency band.
8. The method according to claim 1, wherein the sensor device is a MEMS sensor device, and wherein the sensor element comprises one or more mechanical elements.
9. The method according to claim 1, wherein the sensor device is an inertial sensor device, such as an accelerometer or a gyroscope, or the sensor device is a pressure sensor, or the sensor device is a Hall effect sensor.
10. An apparatus for detecting a failure of a sensor device comprising a sensor element during operation of the sensor device, the apparatus comprising: test signal generating means configured to generate a test signal in a first frequency band; input transducer means configured to feed the test signal into the sensor element; sampling means configured to obtain samples during a sampling period; calculating means configured to calculate a magnitude value from said samples; and comparing means configured to compare the magnitude value to a magnitude threshold value that defines a minimum for the magnitude value, and if the magnitude value is below the magnitude threshold value, determining that an error in the sensor device has occurred; wherein the first frequency band is above a signal frequency band of the sensor device, wherein magnitude of the test signal is at least 5 times the magnitude of any intrinsic noise of the sensor element in the first frequency band, said samples comprise a set of samples comprising at least two consecutive samples of an output signal provided at an output of the sensor element during a sampling period, and the magnitude value is derived from said at least two consecutive samples at the first frequency band.
11. The apparatus according to claim 10, wherein the apparatus is configured to continuously repeat said obtaining sets of samples during consecutive sampling periods, calculating the magnitude value and comparing the magnitude value to the magnitude threshold.
12. The apparatus according to claim 11, further comprising: a fail counter; and initialization means configured to initialize the fail counter; wherein the sampling means, the calculating means and the comparing means are configured to process each set of samples, and, based on said processing: if occurrence of an error is determined by the comparing means, to increment value of the fail counter; and if no error is determined by the comparing means, returning the fail counter into its initial value; and if current value of the fail counter equals with the error count threshold, to determine that the sensor device fails.
13. The apparatus according to claim 10, wherein the magnitude value is any one of a peak-to-peak value, a root-mean-square value and a standard deviation value.
14. The apparatus according to claim 10, wherein the test signal comprises at least two discrete test tones, wherein each of the test tones reside within the first frequency band.
15. The apparatus according to claim 14, wherein the test signal has a repeating envelope, and wherein length of the sampling period is equal or greater than a period of the envelope.
16. The apparatus according to claim 10, wherein the test signal is a noise signal or a pseudorandom noise signal, and wherein frequency band of the test signal is limited to the first frequency band.
17. The apparatus according to claim 10, wherein the sensor device is a MEMS sensor device, and wherein the sensor element comprises one or more mechanical elements.
18. The apparatus according to claim 10, wherein the sensor device is an inertial sensor device, such as an accelerometer or a gyroscope, or the sensor device is a pressure sensor, or the sensor device is a Hall effect sensor.
19. A computer program embodied on a non-statutory computer-readable medium, said computer program comprising instructions which, when executed in hardware, cause the hardware to perform the method according to claim 1.
20. The method according to claim 1, wherein the magnitude of the test signal is at least 10 times the magnitude of any intrinsic noise of the sensor element in the first frequency band.
21. The apparatus according to claim 10, wherein the magnitude of the test signal is at least 10 times the magnitude of any intrinsic noise of the sensor element in the first frequency band.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In the following the invention will be described in greater detail, in connection with preferred embodiments, with reference to the attached drawings, in which
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
DETAILED DESCRIPTION
[0042] The term “test signal” refers to a single signal with at least two distinctive test frequencies, also referred to as test tones, or to a plurality of signals each carrying at least one distinctive test frequency (test tone), or to a single signal carrying a band-limited noise signal or a band-limited pseudo-noise signal, or a combination thereof. The test signal is generated as an electrical signal and fed to the mechanical element via an input transducer that transforms the electrical test signal into a mechanical test signal.
[0043] The term “signal frequency band” refers to a frequency band on which the sensor element and the sensor device provides signals that represent values of the physical parameter sensed.
[0044] The term “output signal of the sensor element” refers to an output signal obtainable from the sensor element. The output signal of the sensor element can be obtained from an output transducer, in which case it typically represents a current, a capacitance or a resistance. Output signal of the sensor element may be a pre-processed signal. Pre-processing may comprise for example filtering and/or amplifying the signal received from the output transducer internally by the sensor device's interface circuitry. Frequency band of an output signal of the sensor element used for the invented safety mechanism may optionally be restricted so that it does not include information of the sensed parameter on the signal frequency band.
[0045] The term “output signal of the sensor device” may be a current or a voltage or a digital value, comprising information on a magnitude of a parameter sensed with the sensor device, for example acceleration, angular rate, pressure or magnetic field. Preferably, output signal of the sensor device excludes signals above the signal frequency band, such as the test signal.
[0046] External signals can easily increase sensor noise, but it is very unlikely that external excitation would cause external signals to cause sensor noise to appear lower than what it intrinsically is. When deliberately adding noise, or a test signal, to out-of-band frequency region, observation of a predefined minimum noise level can be made more reliable and faster. When the safety mechanism is built to detect a minimum noise level, it cannot observe faults that lead to increased noise or signal content. However, it may detect many fail cases that lead to decreased noise or signal content that would otherwise need custom safety features. Fails that decrease noise or signal content received from a MEMS sensor include, for example, failure in common mode (CM) control circuitry in a differential signal path that does not add differential signal, a mechanical issue where e.g. a particle prevents motion of an inertial mass, absence of detection voltage of the sensor element and/or a switch failure for example in capacitance-to-voltage converting transducer that would result in lower sensitivity that normal. Basically, any issues on the entire signal path that cause signal to be stuck at a value can thus be detected as a decrease in the deliberately added noise. A further security check can be performed by detecting intrinsic noise at the signal path, since many types of malfunction would also cause lack or significant reduction of intrinsic noise, too.
[0047] The
[0048] An exemplary method for generating and feeding a test signal in a discrete time MEMS inertial sensor system is presented in U.S. Pat. No. 10,024,882. The inertial sensor has at least two inertial channels. One of the inertial channels can be biased with a test signal as needed, when (one of) the other inertial channel(s) is/are being detected to obtain sensor readings. Naturally, potential cross-coupling risk between channels need to be considered but this is quite straightforward. MEMS systems tend to have low-pass characteristics, which is which is due to typical mass-spring-damper system where moving mass, rotor, is reacting for example to external inertial force and causing the rotor to move with respect to the fixed inertial frame of reference of the sensor element where the mass-spring-damper system is anchored to. For example, accelerometer response is typically that of damped resonator, while rate-response of a gyroscope is that of low-pass filter, typically a peaking one. This means that when electrostatic pulses are fed at much higher rate that the bandwidth of the system, the pulse stream becomes filtered by the system itself and thus smoothened into a single input (test) frequency.
[0049] In the example shown in the
[0050] In the same exemplary system used for plotting data in the
[0051] Although the example above has been given with a test signal with specific test tones, similar effect is caused by feeding band-limited noise or band-limited pseudo-noise in the sensor system. Like with specific test tones frequency band of any deliberately added noise should be significantly above the signal frequency band to avoid decreasing accuracy of the measurements by the added noise. The signal frequency band can also be referred to as the frequency band of interest. It is also important that the test signal, whether comprising band-limited noise, pseudo-noise signal and/or test tones, have significantly higher magnitude, for example at least 5×, preferably at least 10× higher magnitude, than remaining noise sources in the system in the frequency band of the test signal. Especially the peak-to-peak noise level with added signal should be higher than the intrinsic peak-to-peak noise level of the signal channel in the frequency band of the test signal. This way it can be seen reliably, in form of a lower than expected detected noise level, when sensor signal becomes blocked because of some mechanical or electrical failure. When band limited noise or pseudo-noise is used as test signal, characteristics of the noise or pseudo-noise shall also be considered when designing appropriate size for sampling windows. In case of using noise as test signal, the sampling window size, in other words length of the sampling period, and/or a fail counter can be selected so that false error detection threshold has a sigma probability that is preferably lower than 5-sigma or more preferably lower than 10-sigma. The same applies of course any type of combination of test tones used as the test signal.
[0052] The
[0053] In the phase 302, a noise level value is calculated based on the samples of the output signal of the sensor element. Noise level value is a magnitude value. In the phase 303 the calculated noise level value is compared to the noise level threshold value, representing a magnitude threshold value. If the calculated noise level value is greater than the noise level threshold value, the sensor device is deemed to pass the safety test and an OK flag is set to “true” in the phase 304. If the calculated noise level value is less than the noise level threshold value, the sensor device is deemed to fail the safety test and the OK flag is set to “false” in the phase 307. An alert may be provided when the OK flag is false. The test is repeated as long as the sensor device is operational, returning to phase 301 for obtaining another plurality of new samples. Determination “OK=false” in the phase 307 can be considered as rising an “error flag”, or status OK=false can be used to trigger rising error flag. Rising of the error flag refers to a situation in which the self-test recognizes that the sensor device is not operating properly, which can be indicated by rising an “error flag”, which may for example be simply a change in a binary value of a signal output from the electronic circuitry, but may be implemented using any applicable method.
[0054] The
[0055] During the initialization (300) a further parameter “fail count threshold” (F_TH) is defined, and a fail counter is zeroed. The fail counter is used to confirm that if more than one consecutive calculated noise level value fails to exceed the predefined noise level threshold value (noise_TH), then the checks fails, and an error flag is risen.
[0056] Steps 301 to 303 are similar to those disclosed in connection to the
[0057] Only after an integer number “F_TH”, referred here as a fail count threshold, of consecutive comparisons in the step 303 between the calculated noise level values and the noise level threshold value fail, the OK is set to “false” in the step 307 and an error flag is thereby triggered. Consequently, comparing the fail counter to the fail count threshold (F_TH) allows trading between failure detection speed and robustness.
[0058] As understood by a skilled person, the state machine of
[0059] The test bench referred above was also used for testing various types of external noise. The sensor device tested comprised an ideal capacitive transducer, where input signals are directly modulating the plate capacitor gap. The motion magnitude of the sensor element was matched to g-sensitivity of rotor displacement in an accelerometer, which is initially detected as a change of capacitance. This capacitance is detected using a voltage bias, converted into a digital signal using a 1-bit sigma-delta analog-to-digital converter (ADC), and filtered and decimated down to sample rate of 12 kHz, which forms the output signal of the sensor element. The output signal of the sensor element shown in the following plots represents an acceleration value in comparison to normal acceleration g. Selecting acceleration as the reference value for magnitude of the signal is optional. Measured magnitude and the respective threshold can be any measurable parameter that can be obtained from an output of the sensor element or sensor device, such as acceleration, angular rate, capacitance, voltage or current.
[0060]
[0061]
[0062]
[0063]
[0064]
[0065] Increased robustness of the safety mechanism can also be achieved by creating a more complex test signal, i.e. more test tones or more noise alike test excitation and using longer period of data for noise level calculation, but this easily leads to more complex and less tunable implementation. It is very important that the added “noise” is not visible in the signal frequency band of interest.
[0066] It is apparent to a person skilled in the art that as technology advanced, the basic idea of the invention can be implemented in various ways. The invention and its embodiments are therefore not restricted to the above examples, but they may vary within the scope of the claims.