The embodiments described herein relate to a method for offset compensation for sensor signals, an offset compensation device, and a sensor device for sensors used with an automotive vehicle.
Analysis and correction of incorrect signals from sensors, in particular wheel speed sensors (WSSs) in electronic braking systems is a concern for automotive vehicles. Signals from WSSs are modulated onto the positive and negative terminals of the power supply of the WSSs in the form of current level transitions or defined current pulses.
WSS signals are essentially subject to two categories of causes of error. Internal sensor errors (that is to say errors on the sensor element itself) are usually caused by electrical or mechanical influences on the sensor element. Defective sensor elements can immediately cause an incorrect WSS signal. Errors in the transmission channel of the WSS signal (caused for example by environmental influences, aging, mechanical disturbances, etc., and the channel isolation) can also immediately cause an incorrect WSS signal.
WSS signals are usually conditioned (acquired and processed) by an analog signal interface, which is the electrical link between the WSS and a microcontroller (MCU). This signal interface is responsible for ensuring the integrity of the signal transmission between the WSS and the MCU. For this purpose, measures are put in place within the analog signal interface to gauge the state of the WSS transmission channel.
Known technologies for checking the WSS transmission channel can be divided in this case into two fundamentally different measurement methods. Invasive measurement methods convert the transmission channel between the WSS and the analog signal interface into a defined state, which is as interference-free as possible, during the measurement process. This requires the signal transmission between the WSS and the signal interface to be decoupled. The electrical parameters of the transmission channel are then gauged under known external electrical conditions. Non-invasive measurement methods are performed by analyzing the WSS signal itself. This allows conclusions to be drawn about the state of the signal channel or the state of the WSS itself.
Error patterns are manifested by a shift (offset) and/or a compression (attenuation) of the original WSS waveform. In order to detect the incorrect state early, the signal interface must provide a measuring device that examines the signal-carrying nodes for causes of signal errors. Depending on the measurement technology, the sensors cannot be operated during the measurement period, which is why measurement takes place outside of safety-critical periods. For vehicles, this usually means that the measurement process takes place immediately after the ignition is operated and when the vehicle is at a standstill.
In the case of invasive measurement methods, particularly the interruption of signal transmission between the WSS and the analog signal interface has an adverse effect. Due to safety demands on the WSS signal chain, this prevents error detection while driving.
A method and a device by means of which signal errors in the signal transmission chain between the sensor and the analog signal interface can be detected and compensated for without interruption is provided.
A method for offset compensation for sensor signals by means of an offset compensation device is provided. The offset compensation device comprises a shift register containing elements in a number N, an averaging unit and a low-pass filter. The method involves the following steps storing sensor values in the shift register, calculating the difference between the first element of the shift register and the last element of the shift register, determining multiple mean values, determining the lowest signal level by means of the low-pass filter based on the mean values, determining the offset by calculating the difference between the lowest signal level and a reference current value, and correcting the sensor values by means of the determined offset. The mean values are determined by starting the averaging by the averaging unit if the difference between the first element of the shift register and the last element of the shift register is greater than a threshold value, and stopping the averaging if the difference is less than the threshold value
A non-invasive measurement method is thus provided. As a result of the purely digital implementation, the method is robust and exhibits a predictable response. As technology advances, implementation of the method becomes cheaper (scaling effects). There is a quality improvement using the method as a result of high test coverage in production, as digital tests are automated. The method provides compensation for tolerances of analog circuit parts.
Even if the signal and the sampling times are uncorrelated, a well chosen sampling rate guarantees that the computed amplitude corresponds to the signal amplitude following use of the shift register. The computed amplitude is determined by the calculation of the difference between the first and last elements of the shift register.
The low-pass filter is used to mitigate the influence of a single averaging. If the averaging is carried out successfully multiple times, the output of the low-pass filter delivers the value of the lowest signal level.
In a development, the reference current value of the signal to be examined is set to 7 mA. This is relevant for commercially used variants of WSS that have a current flow of 7 mA as a basic level (for pulsed or three-level sensors) or as a low level (for standard two-level sensors). The variance between the measured value and the reference current value yields the determined offset.
In a development, a number for the shift register is chosen such that at least all samples of an edge can be stored and the number is greater than two.
In an alternative further development, the window of the averaging unit is chosen such that it is longer than the phases having the lowest level in the protocol, with the result that the averaging takes place after the protocol. A protocol involves each magnetic pole triggering a complete sequence of sensor pulses. These pulses have a defined length and contain further information about the sensor status. A protocol sensor thus sends a defined pulse sequence. The pauses between the protocols are determined by the wheel speeds.
In a development, the window of the averaging unit is chosen such that it is shorter than the phases having the lowest level in the protocol, with the result that the averaging is completed multiple times during a protocol. This achieves a more robust and accurate result. As few transmitted protocols as possible are lost, as the correction value can appear much more quickly.
In a development, the following steps are carried out: supplying at least one sensor with a voltage by way of an evaluation circuit, modulating a sensor current by way of the sensor, and measuring and evaluating the sensor current by way of the evaluation circuit.
In a development, the evaluation circuit has a high-side path and a low-side path and the following steps are carried out: using the high-side path and the low-side path in parallel, and determining the present offset values for the high-side path and the low-side path.
Using the high-side path and the low-side path in parallel and determining the present offset values allows the type of error to be determined and/or the error to be located. The acquisition and conversion of the WSS signal by means of an analog-to-digital converter (ADC) is characteristic of non-invasive measurement methods. After the WSS signal has been suitably conditioned (e.g. low-pass filtering), it may converted into a digital waveform with sufficiently accurate resolution using an ADC (connected to the positive supply=high side or the negative supply=low side, depending on the circuit architecture) or optionally using two ADCs (connected to the high side and the low side). Signal properties are examined by processing the digitized WSS signal values.
In a development, the determined offset values for the high-side path and the low-side path are constructively overlaid, thereby forming an improved vector. Two bits each having the same index from LVL_HS[x] and LVL_LS[x] are considered for this overlaying. The output bit LVL[x] is set to 1 if LVL_HS[x] or LVL_LS[x] exhibit a rising signal edge. The output bit LVL[x] is set to 0 if LVL_HS[x] or LVL_LS [x] exhibit a falling signal edge.
This ensures that an evaluation path that detects the signal edge first is sufficient for signal detection in the event of an error.
Offset compensation may be first carried out separately for the high-side path and the low-side path and then the two partial results are overlaid.
In a development a hysteresis is additionally implemented at the individual detection thresholds, which further improves robustness.
In a further development the threshold values are defined between the specific signal levels of the sensors.
The object is also achieved by an offset compensation device for compensating for offsets in sensor signals, wherein the offset compensation device has a shift register and an averaging unit. The offset compensation device carries out at least parts of the previously described method.
Furthermore, the object is achieved by a sensor device comprising the offset compensation device, the evaluation device and at least one sensor. In a development, the sensor is a wheel speed sensor for an electric braking system. The sensor device is designed to perform the previously described method.
Further preferred embodiments result from the subclaims and the description of exemplary embodiments on the basis of figures that follows.
In the drawings, in a schematic representation,
An algorithm for determining and calibrating offsets in WSS signals is described, within the context of a non-invasive measurement method.
Many sensors in the motor vehicle are connected to evaluation electronics via the wiring harness.
Different data protocols are used for the wheel sensors in the motor vehicle. These data are transmitted from the wheels to the electronic control unit via a current interface in the vehicle.
However, there may be a series of sensor errors during vehicle operation: offset errors in the positive and negative directions and amplitude errors (sensor amplitude too high or too low)
The signal detection for forming the vector LVL[3:0] fails because the sensor signal is no longer below the threshold S1. In addition, threshold S3 is exceeded, which is not intended for correct protocol detection for the sensor 1. In this case, the sensor signal in the vehicle is lost and is no longer available for control functions in safety-critical control units. However, it can be seen in
The detection method that follows, an offset compensation, allows signal detection even if sensor errors exist, in order to achieve increased availability for the wheel sensor signals in the vehicle. First, only one of the two detection paths, e.g. the high-side path 5, is considered.
As shown in
A difference AS is calculated from the first and last elements of the shift register 17. If the difference at the output of the shift register 17 is positive and greater than an edge steepness value (threshold value) S, this indicates a rising edge; if it is negative and less than an edge steepness value (threshold value) −S, a falling edge is detected.
The definition of the length N of the shift register 17 is explained with reference to
In
A lower sampling rate has been used in
In addition to the shift register 17, an averaging unit 19 is implemented for the AD converter values (see
Together with the shift register, this results in the following response in the system: If the input signal from the ADC is constant, the shift register 17 is filled with almost identical values; the difference calculation at the output results in neither of the two thresholds S or −S being exceeded or undershot and the status of the averaging unit 19 does not change.
If the input signal has a falling edge, the shift register 17 is first filled with larger values and then with smaller values. The difference at the output is at the maximum as soon as the entire edge is stored in the shift register 17. During a falling edge, the threshold S may be exceeded multiple times. In this case, the averaging unit 19 is restarted each time and all previous partial results are discarded. Only at the end of the falling edge is the threshold S no longer exceeded and the averaging continues. This ensures that the averaging begins only at the end of a falling edge. Thus, it is not necessary to know when an edge begins or ends. The end of the edge is found automatically, as the averaging unit 19 is no longer interrupted.
If no further edge (falling or rising) is detected during the averaging, the averaging of M values is terminated and the result is transferred to the next low-pass filter 21. However, if a rising edge occurs during the operation, the shift register 17 is first filled with lower values and then with higher values. In this case, the threshold −S is undershot and the averaging is immediately terminated. All intermediate results are discarded and nothing is transferred to the low-pass filter 21.
This method ensures that the averaging starts and is performed exactly at the end of a falling edge, provided that the input signal does not change again afterward. The next low-pass filter 21 is implemented to mitigate the influence of a single averaging. If the averaging is carried out successfully multiple times, the output of the low-pass filter 21 delivers the value of the lowest signal level.
If a difference is calculated using the expected level for the lowest threshold of the sensor 1, the variance of the sensor signal from this expected value is obtained. This variance is used for correcting the AD converter values for the sensor evaluation. The sensor evaluation therefore also functions when an offset error exists.
The discovered offset error is additionally used as a monitoring parameter for the software. If the value becomes too great, the system software can react thereto and inform the driver or workshop of the error.
The following general conditions must be observed when designing the averaging unit:
The longer the value M of the averaging unit 19 is chosen to be, the more robust and accurate the determined result. On the other hand, however, the available waveform must also be considered. In the case of the sensor protocol in
If the averaging is chosen to be longer than the phases having the lowest level in the protocol, the averaging can take place only after the protocol. In this case, it will take longer for the correct correction value to be computed. Both implementations are possible.
If, as shown in
Two bits each having the same index from LVL_HS[x] and LVL_LS[x] are considered for this overlaying. The output bit LVL[x] is set to 1 if LVL_HS[x] or LVL_LS[x] exhibit a rising signal edge. The output bit LVL[x] is set to 0 if LVL_HS[x] or LVL_LS[x] exhibit a falling signal edge.
This ensures that an evaluation path that detects the signal edge first is sufficient for signal detection in the event of an error. An additional hysteresis at the individual detection thresholds improves robustness further.
Number | Date | Country | Kind |
---|---|---|---|
10 2021 211 337.0 | Oct 2021 | DE | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/DE2022/200080 | 4/28/2022 | WO |