Method for offset compensation for a sensor signal, offset compensation device and sensor device - Patents.com
The method and device provide uninterrupted detection and correction of signal errors in wheel speed sensors using a shift register, averaging unit, and low-pass filter, ensuring robust and automated error compensation for continuous signal availability.
Patent Information
- Application Number
- JP2024520909
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-07
- Filing Date
- 2022-04-28
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2042-04-28
AI Technical Summary
Existing methods for detecting and compensating signal errors in sensor signals, particularly in wheel speed sensors of electronic braking systems, are unable to do so without interrupting signal transmission, which is critical for safety.
A method and device using a shift register, averaging unit, and low-pass filter for digital offset compensation, allowing uninterrupted detection and correction of signal errors by storing sensor values, calculating differences, and applying averaging and filtering techniques.
Enables robust, predictable, and automated detection and correction of signal errors, improving quality and reducing costs while ensuring continuous signal availability for safety-critical systems.
Smart Images

Figure 2024538704000001_ABST
Abstract
Description
[Technical field]
[0001] The invention relates to a method for offset compensation for a sensor signal according to the preamble of claim 1, to an offset compensation device according to claim 7 and to a sensor device according to claim 8.
[0002] The present invention relates to the analysis and correction of inaccurate signals from sensors, in particular wheel speed sensors (RDS) of electronic braking systems. The signal from the RDS is modulated on the positive and negative terminals of the power supply of the RDS in the form of current level transitions or defined current pulses. [Background technology]
[0003] RDS signals are basically divided into two categories of error sources: Internal sensor errors (errors in the sensor element itself) are usually caused by electrical or mechanical influences on the sensor element. Any defects in the sensor element can quickly result in an inaccurate RDS signal. Errors in the transmission channel of the RDS signal (caused in particular by environmental influences, ageing, mechanical disturbances, etc., as well as the insulation of the channel) can also quickly result in an inaccurate RDS signal.
[0004] The RDS signal is usually conditioned (acquired and processed) by an analog signal interface, which is an electrical link between the RDS and a microcontroller (MCU). This signal interface is responsible for ensuring the integrity of the signal transmission between the RDS and the MCU. For this purpose, special means are introduced in the analog signal interface to measure the state of the RDS transmission channel.
[0005] In this case, known technologies for checking the RDS transmission channel can be divided into two fundamentally different measurement methods. Invasive measurement methods convert the transmission channel between the RDS and the analog signal interface into a defined state that is as free from interference as possible during the measurement process. This requires isolating the signal transmission between the RDS and the signal interface. Thus, the electrical parameters of the transmission channel are measured under known external electrical conditions. Non-invasive measurement methods are performed by analyzing the RDS signal itself. This allows conclusions to be drawn about the state of the signal channel or the state of the RDS itself.
[0006] Error patterns are manifested by a shift (offset) and / or compression (attenuation) of the original RDS waveform. To detect inaccurate conditions early, the signal interface must be equipped with measurement devices that probe the signal-carrying nodes for sources of signal error. Depending on the measurement technology, the sensors cannot be operated during the measurement period, so the measurements are made outside safety-critical periods. In the case of vehicles, this usually means that the measurement process takes place immediately after the ignition is operated, when the vehicle is stationary.
[0007] For invasive measurement methods, interruptions to the signal transmission, especially between the RDS and analog signal interfaces, are detrimental. The RDS signal chain must be secure, which prevents error detection during operation. Summary of the Invention [Problem to be solved by the invention]
[0008] It is therefore an object of the present invention to provide a method and device that allows for uninterrupted detection and compensation of signal errors in the signal transmission chain between a sensor and an analog signal interface. [Means for solving the problem]
[0009] According to the invention, a method for offset compensation for a sensor signal by an offset compensation device is provided, the offset compensation device comprising a shift register with N elements, an averaging unit and a low pass filter, the method comprising the steps of: - storing the sensor values in a shift register; - calculating the difference between the first element of the shift register and the last element of the shift register; - determining a plurality of average values, the average value comprising: a) initiating averaging by an averaging unit if the difference is greater than a threshold S; b) stopping the averaging by the averaging unit if the difference is less than a threshold value −S; and - determining a minimum signal level using a low pass filter based on the average value; - determining an offset by calculating the difference between a minimum signal level and a reference current value; - correcting the sensor value using the determined offset; This includes executing:
[0010] Thus, a non-invasive measurement method is provided which has the following advantages: 1. As a result of the purely digital implementation, the method is very robust and exhibits a predictable response. 2. As technology improves, it becomes cheaper to implement (scaling effect). 3. Digital testing is automated, improving quality as a result of higher test coverage during manufacturing. 4. Analog circuit component tolerance compensation.
[0011] Even if the signal and the sampling time are uncorrelated, a proper choice of sampling rate will ensure that the calculated amplitude corresponds to the signal amplitude after the shift register is used: the calculated amplitude is determined by calculating the difference between the first and last elements of the shift register.
[0012] The low pass filter used may be advantageously used to mitigate the effects of a single averaging: if multiple averagings are performed successfully, the output of the low pass filter will provide the value of the lowest signal level.
[0013] In a preferred development of the invention, the reference current value of the signal to be examined is set to 7 mA. This is particularly relevant for commercially used RDS variants that pass a current of 7 mA as base level (for pulsed or three-level sensors) or low level (for standard two-level sensors). The difference between the measured and the reference current value results in the determined offset.
[0014] In a preferred development of the invention, the number N of shift registers is selected so that at least all samples of an edge can be stored, N being greater than 2.
[0015] In another further development of the invention, the window of the averaging unit is selected to be longer than the phase in the protocol with the lowest level, so that the averaging takes place after the protocol. The protocol involves each pole triggering a complete sequence of sensor pulses. These pulses have a defined length and contain further information about the status of the sensor. Thus, the protocol sensor transmits a defined pulse sequence. The pauses between the protocols depend on the wheel speed.
[0016] In a preferred development of the invention, the window of the averaging unit is selected to be shorter than the phase with the lowest level in the protocol, so that the averaging is completed several times during the protocol, which results in more robust and accurate results: as few transmission protocols as possible are lost, since correction values can appear earlier.
[0017] In a preferred development of the invention, - supplying a voltage to at least one sensor by means of an evaluation circuit; - modulating a sensor current by a sensor; - measuring and evaluating the sensor current by means of an evaluation circuit; is executed.
[0018] In a preferred development of the invention, the evaluation circuit has a high-side path and a low-side path, - using high-side and low-side paths in parallel; - determining current offset values for a high side path and a low side path; is executed.
[0019] By using the high-side and low-side paths in parallel and determining the current offset value, the type of error can be determined and / or the location of the error can be identified. Acquisition and conversion of the RDS signal by an analog-to-digital converter (ADC) is a feature of the non-invasive measurement method. After the RDS signal has been appropriately conditioned (e.g. low-pass filtered), it is preferably converted into a digital waveform with sufficiently accurate resolution using an ADC (connected to the positive supply = high side or to the negative supply = low side, depending on the circuit architecture) or optionally using two ADCs (connected to the high side and the low side). The signal characteristics are examined by processing the digitized RDS signal values.
[0020] In a preferred development of the invention, the offset values determined for the high-side path and the low-side path are constructively overlaid, thereby forming an improved vector. Preferably, two bits with the same index from LVL_HS[x] and LVL_LS[x], respectively, are considered for this overlay. If LVL_HS[x] or LVL_LS[x] indicate a rising signal edge, the output bit LVL[x] is set to 1. If LVL_HS[x] or LVL_LS[x] indicate a falling signal edge, the output bit LVL[x] is set to 0.
[0021] This ensures that the evaluation path which first detects the signal edge is sufficient to detect the signal in the event of an error.
[0022] Particularly preferably, offset compensation is first performed separately for the high-side and low-side paths and then the two partial results are overlaid.
[0023] In a preferred development of the invention, a hysteresis is additionally implemented for the individual detection thresholds, which advantageously improves the robustness further.
[0024] In a preferred further development of the invention, the threshold values are defined as ideally as possible between certain signal levels of the sensor.
[0025] This object is also achieved by an offset compensation device for compensating for an offset in a sensor signal, the offset compensation device comprising a shift register and an averaging unit. Preferably, the offset compensation device performs at least part of the method described above.
[0026] Furthermore, this object is achieved by a sensor device comprising an offset compensation device, an evaluation device and at least one sensor. In a preferred development, the sensor is a wheel speed sensor for an electric brake system. The sensor device is designed to perform the above-mentioned method.
[0027] Further preferred embodiments result from the dependent claims and the following description of exemplary embodiments on the basis of the drawings, in which: [Brief description of the drawings]
[0028] [Figure 1] 2 shows the connection of a vehicle wheel speed sensor to an evaluation circuit (prior art). [Diagram 2] 1 shows current curves of a wheel sensor according to a protocol with three different current levels (prior art); [Diagram 3] FIG. 1 shows a schematic diagram of an evaluation circuit (prior art). [Figure 4] FIG. 3 shows a wheel sensor current curve similar to FIG. 2 but with offset error (prior art). [Diagram 5] 4 shows an evaluation circuit similar to that of FIG. 3, but with an additional block for offset compensation according to the invention. [Figure 6] FIG. 1 shows an example study of the effect of ADC sampling rate and shift register length N on falling edges, in accordance with the present invention. [Figure 7] 1 shows an evaluation circuit when the HS path and the LS path are used in parallel according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] The present invention describes an algorithm for determining and calibrating the offset of an RDS signal within the context of a non-invasive measurement method.
[0030] Many sensors in a motor vehicle are connected to the evaluation electronics via a wiring harness. Figure 1 basically shows the connection of a vehicle wheel speed sensor 1 to an evaluation circuit 3 with evaluation logic 4. The sensor 1 is supplied with a voltage by the evaluation circuit (evaluation IC) 3 by connection to a power supply KL 30. The sensor current flows through both a high-side driver (HS) 5 and a low-side driver (LS) 7 of the evaluation ASIC 3. In operation, the sensor 1 modulates the sensor current. This current can be measured and evaluated in the integrated circuit (evaluation circuit 3) using a high-side analog-digital converter (HS ADC) 9 and / or a low-side analog-digital converter (LS ADC) 11 (see Figures 3 and 5).
[0031] Various data protocols are used for wheel sensors in motor vehicles. These data are transmitted from the wheel to the electronic control unit via the vehicle's current interface. Figure 2 shows the current curves of a wheel sensor 1 according to a protocol with three different current levels. Furthermore, four threshold values S0, S1, S2, S3 are shown in Figure 2.
[0032] FIG. 3 shows a schematic diagram of the evaluation circuit 3. The wheel sensor signals are first digitally converted using analog-to-digital converters (ADC) 9, 11 and the results are compared with different threshold values S0 to S3. The threshold values S0 to S3 are selected to fall as ideally as possible between the specified signal levels of the sensor 1. Each comparator 13 sets its digital output to 1 as soon as the value of the ADC 9, 11 is greater than the tested threshold value S0 to S3. If all the output signals of these comparators are combined into a digital signal vector, a vector LVL[3:0] is obtained, which is used for further signal detection. In this regard, please also refer to FIG. 1 and FIG. 2, where the vector is also shown.
[0033] However, a series of sensor errors can occur while the vehicle is operating: - Positive and negative offset errors - Amplitude error (sensor amplitude is too high or too low)
[0034] Figure 4 shows the signal curve of sensor 1 when all current levels are provided around a fixed absolute value. This error is called the offset error.
[0035] The signal detection for forming the vector LVL[3:0] fails, since the sensor signal is no longer below the threshold S1. In addition, the threshold S3 is exceeded, which is not intended for the correct protocol detection of sensor 1. In this case, the sensor signal in the vehicle is lost and is no longer available for the control functions of the safety-critical control unit. However, in Figure 4 it can be seen that the sensor information is still fully retained in the received signal, only the detection range has been shifted.
[0036] The subsequent detection method, offset compensation, allows signal detection even in the presence of sensor errors, improving the availability of the wheel sensor signals in the vehicle. First, only one of the two detection paths is considered, for example the high side path 5.
[0037] As shown in figure 5, an additional block 15 for offset compensation is introduced in the evaluation circuit 3. A shift register 17 of length N stores the values of the AD converter. The length N of the shift register 17 is chosen such that at least all samples of an edge can be stored and N>2.
[0038] The difference ΔS 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 the edge steepness value (threshold) S, this indicates a rising edge, if the difference is negative and less than the edge steepness value (threshold) -S, a falling edge is detected.
[0039] The definition of the length N of the shift register 17 is explained with reference to figures 6a to 6c, in which the influence of the sampling rate of the ADC and the length N of the shift register is examined for a falling edge.
[0040] In Figure 6a, N=2 and the sampling rate for the steepness of the edges increases. The sampling times are indicated by arrows in the signal curves. In this case, the value of ΔS decreases with increasing sampling rate of the ADCs 9, 11. The higher the sampling rate, the longer the shift register 17 should be selected.
[0041] In Figure 6b, a lower sampling rate is used. However, the time correlation between the sensor signal and the sampling time is unknown or random. In this case, the signal can be sampled exactly in the middle of the edge. This results in ΔS being at most half the magnitude of the signal amplitude.
[0042] Figure 6c now shows the case N=3. The sampling rate is chosen so that a whole edge occurs between two sample values. There is still no correlation between signal time and sampling time, but this ensures that the amplitude ΔS corresponds to the signal amplitude. This is the best possible result, which is why we introduce the shift register 17.
[0043] In addition to the shift register 17, an averaging unit 19 is implemented for the AD converter values (see Figure 5). This averaging unit 19 does not operate continuously but is controlled by the shift register output. If the output difference is greater than a threshold S, the averaging is started. If the output difference is less than a threshold -S, the averaging is stopped. If the averaging is successfully completed after exactly M input elements, the result is forwarded to the next low pass filter 21, whose output produces the lowest level in the signal curve.
[0044] Combined with a shift register, the following reaction is obtained in the system: if the input signal from the ADC is constant, the shift register 17 is filled with approximately identical values, the difference calculation at the output results in neither exceeding nor falling below either of the two thresholds S or -S, and the state of the averaging unit 19 does not change.
[0045] When the input signal has a falling edge, the shift register 17 is filled first with larger values and then with smaller values. As soon as the entire edge is stored in the shift register 17, the difference at the output is maximum. During a falling edge, the threshold S can be exceeded several 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 only starts at the end of a falling edge. The advantage of this method is that it is not necessary to know when an edge starts or ends. The end of an edge is automatically detected, since the averaging unit 19 is no longer interrupted.
[0046] If no further edges (falling or rising) are detected during averaging, the averaging of M values ends and the result is transferred to the next low pass filter 21. However, if a rising edge occurs during operation, the shift register 17 is filled first with a lower value and then with a higher value. In this case, the averaging ends immediately since the threshold -S is below. All intermediate results are discarded and nothing is transferred to the low pass filter 21.
[0047] In this way, it is guaranteed that the averaging will start and be performed exactly at the end of the falling edge, unless the input signal changes again after that. The following low pass filter 21 is implemented to mitigate the effect of a single averaging. If the averaging is performed successfully multiple times, the output of the low pass filter 21 provides the value of the lowest signal level.
[0048] Calculating the difference with the lowest threshold expected level of sensor 1 gives the difference of the sensor signal from this expected value. This difference is used to correct the value of the AD converter for the sensor evaluation. Thus, the sensor evaluation works even in the presence of offset errors.
[0049] The discovered offset error is further used as a monitoring parameter for the software: if the value becomes too large, the system software may react and notify the driver or workshop of the error.
[0050] When designing an averaging unit the following general conditions must be observed:
[0051] The longer the value M of the averaging unit 19 is selected, the more robust and accurate the determined results will be. On the other hand, however, the available waveforms must also be taken into account. In the case of the sensor protocol of FIG. 2, it is possible to determine whether an averaging unit 19 is selected that is short enough that the averaging is completed multiple times during the protocol. In this case, correction values can appear earlier, so that as few transmissions as possible are lost.
[0052] If the averaging is chosen to be longer than the phase with the lowest level in the protocol, the averaging can only be performed after the protocol, in which case it will take some time before the correct correction value can be calculated. Either implementation is possible.
[0053] When high-side and low-side paths 5, 7 are used in parallel in the evaluation IC 3, as shown in Fig. 7, the currently determined offset values of the high-side or low-side paths 5, 7 are continuously obtained during operation. These values can be used to identify the type and location of errors. In addition, the determined data LVL_HS and LVL_LS can be constructively overlaid, so that an improved vector LVL is formed. The overlay can be performed in an overlay unit 23.
[0054] Two bits with the same index from LVL_HS[x] and LVL_LS[x], respectively, are considered for this overlay. If LVL_HS[x] or LVL_LS[x] indicates a rising signal edge, the output bit LVL[x] is set to 1. If LVL_HS[x] or LVL_LS[x] indicates a falling signal edge, the output bit LVL[x] is set to 0.
[0055] This ensures that the evaluation path which first detects the signal edge is sufficient for signal detection in the event of an error. Additional hysteresis at the individual detection thresholds further increases robustness. [Explanation of symbols]
[0056] 1 Wheel Speed Sensor 3 Evaluation circuit 4. Evaluation logic 5 High Side Driver 7 Low Side Driver 9 High Side Analog-to-Digital Converter (HS ADC) 11 Low-side analog-to-digital converter (LS ADC) 13 Comparator 15 Offset compensation block (offset compensation device) 17 Shift Registers 19 Averaging Unit 21 Low-pass filter 23 Overlay Unit S0, S1, S2, S3 thresholds Connecting the KL30 to a power source
Claims
1. A method for offset compensation for a sensor signal by an offset compensation device (15), the offset compensation device comprising a shift register (17) containing N elements, an averaging unit (19) and a low pass filter (21), the method comprising the steps of: - storing the sensor values in said shift register (17); - calculating the difference between the first element of said shift register (17) and the last element of said shift register (17); determining a number of average values, the average values being: a) initiating averaging by the averaging unit (19) if the difference is greater than a threshold S; b) stopping the averaging by the averaging unit (19) if the difference is less than a threshold value −S; and - determining a minimum signal level using said low pass filter (21) based on said average value; determining an offset by calculating the difference between a minimum signal level and a reference current value; - correcting the sensor value using the determined offset; The method includes:
2. 2. The method of claim 1, wherein the number N of the shift registers (17) is selected to be able to store at least all samples of an edge, and N is greater than 2.
3. 3. The method according to claim 1 or 2, wherein the window of the averaging unit (19) is selected to be longer than the phase in the protocol having the lowest level, so that the averaging is performed only after the protocol.
4. 4. The method according to claim 1, wherein the window of the averaging unit (19) is selected to be shorter than the phase having the lowest level in the protocol, so that the averaging is completed multiple times during the protocol.
5. below, - supplying a voltage to at least one sensor (1) by means of an evaluation circuit (3); modulating a sensor current by said sensor (1); - measuring and evaluating said sensor current by means of said evaluation circuit (3); The method according to any one of claims 1 to 4, wherein:
6. The evaluation circuit (3) has a high-side path (5) and a low-side path (7), - using said high-side path (5) and said low-side path (7) in parallel; - determining the current offset values of the high side path (5) and the low side path (7); The method of claim 5 , wherein:
7. below, constructively overlaying the determined offset values of the high-side path (5) and the low-side path (7) to form a vector. The method according to any one of claims 1 to 6, wherein:
8. An offset compensation device (15) for compensating for an offset in a sensor signal, comprising:
5. An offset compensation device (15), characterized in that the offset compensation device (15) comprises a shift register (17) and an averaging unit (19) and is designed to perform the method according to any one of claims 1 to 4.
9. A sensor arrangement comprising an offset compensation device (15) according to claim 8, an evaluation device (13) and at least one sensor (1), the sensor arrangement being designed to carry out the method according to any one of claims 1 to 7.
10. 10. The sensor arrangement according to claim 9, wherein the sensor (1) is a wheel speed sensor for an electric brake system.
Citation Information
Patent Citations
Method and apparatus for error modification
JP1977104143A
JP1978118581U
Apparatus for detecting yaw angular velocity
JP1998206453A
Inertial sensor offset correction method and system
JP2016512328A
Apparatus and method for compensating accuracy ofsensor signal
KR100468863B1
