| CPC G01M 15/06 (2013.01) [G01D 5/24438 (2013.01)] | 8 Claims |

|
1. A method for authorizing an update of a switching threshold of a magnetic-field sensor for an internal combustion engine of a motor vehicle, for use with a target comprising an alternating succession of teeth and recesses being associated with an element of the internal combustion engine, the method comprising:
detecting, by the magnetic-field sensor, magnetic-field variations induced by a passage of the teeth of the target in proximity to the sensor by:
generating, from said variations, a magnetic signal exhibiting oscillations each having an amplitude comprised between a maximum and a relative minimum, certain of the oscillations being due to high-frequency external magnetic disturbances and not taking into account the high-frequency external magnetic disturbances in the update of the switching threshold by the sensor, wherein the high-frequency external magnetic disturbances comprise any external magnetic disturbance frequency higher than a maximum oscillation frequency at any engine speed, said maximum oscillation frequency being computed from a calibratable predetermined speed of rotation of the engine,
recomputing the switching threshold depending on a detected amplitude of at least two consecutive magnetic-field oscillations, and
comparing an oscillation frequency computed between said at least two consecutive oscillations to the maximum oscillation frequency computed based on a maximum speed of rotation of the engine and on a number of teeth on the target,
suspending the update of the switching threshold when the oscillation frequency is higher than the maximum oscillation frequency, and
providing an immunity of the sensor to the high-frequency external magnetic disturbances based on the recomputed switching threshold.
|