Sensor for measuring angular position, and measurement compensation method
10234262 ยท 2019-03-19
Assignee
Inventors
Cpc classification
G16Z99/00
PHYSICS
F02P5/15
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02P7/067
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G05B99/00
PHYSICS
F02D41/009
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G01B7/30
PHYSICS
F02D1/16
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
F02D1/16
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02P5/15
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G05B99/00
PHYSICS
G01D5/244
PHYSICS
F02P7/067
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
G01B7/30
PHYSICS
Abstract
Method for compensating a reference measurement including a measurement of angular position and a measurement of time T1 that are simultaneous at the time t1, for an angular position sensor of the type including a toothed wheel, includes the following steps: determination of a first measurement of corresponding angular position at the moment in time t1 when a reference measurement is desired; triggering of a software acquisition function; substantially simultaneous acquisitions of a second measurement of the angular position and of a measurement T2 of the time by software acquisition at a time t2; estimation of an error T; and calculation of the compensated measurement of time, T1=T2T. A Sensor for measuring angular position, of the type including a toothed wheel, implementing such a compensation method is described.
Claims
1. A method of determining an angular position of a crankshaft of an internal combustion engine at a first moment in time t1 when a reference measurement is desired, using an angular position sensor that includes a toothed wheel driven by the crankshaft, the method comprising the steps of: causing the angular position sensor to generate and store, in a memory accessible to a processing unit, a first measurement of the angular position of the crankshaft at the first moment in time t1; triggering a software acquisition function carried out by the processing unit, the software acquisition function including: causing the angular position sensor to generate and store, in the memory accessible to the processing unit a second measurement of the angular position of the crankshaft at a second moment in time t2, the second measurement taking place after the generation of the first measurement , and acquiring, from a time signal generator in communication with the processing unit, a second time value T2 corresponding to the second moment of time t2 of the generation of the second measurement ; calculating an estimated a time error T between the second time value T2 of the generation of the second measurement and a first time value T1 that corresponds to the first moment in time t1 of the first measurements ; calculating of the measurement of the first time value t1, as T1=T2T; determining the calculated first time value T1 as a measurement of the first moment of time T1 at which the first measurement of the angular position of the crankshaft occurred, and using the first time value T1 and the first measurement to allow a mechanical movement of the internal combustion engine to be synchronized with the engine controller for controlling operative events of the internal combustion engine.
2. The method as claimed in claim 1, where the determination of the first measurement of angular position comprises a hardware acquisition carried out by a hardware device performing an acquisition of the value of angular position at the moment in time t1 when a reference measurement is desired, and a software read of said measurement of angular position thus acquired.
3. The method as claimed in claim 2, wherein said angular position sensor, at the first moment in time t1, generates an interrupt that triggers the software acquisition function.
4. The method as claimed in claim 1, where the estimated time error T=T2T1 is calculated according to the formula:
5. A sensor for measuring an angular position of a crankshaft of an internal combustion engine, comprising: a toothed wheel; an angular position sensor configured to operate with the toothed wheel to generate a first measurement of an angular position of the engine within a cycle of the engine at a first moment in time t1; and a processing device, in a communication with the angular position sensor, configured to carry out the functions of: carrying out triggering a software acquisition function, including: acquiring, by way of the measurement sensor and the toothed wheel, a second measurement of the angular position of the crankshaft at a moment in time t2, and acquiring a measurement of a second time value T2 from a time counter, corresponding to the second moment in time t2 of acquisition of the second measurement ; calculating an estimated time error T between the second time value T2, and a first time value T1 that corresponds to the first moment in time t1 of the angular position of the first measurement; and calculating the first time value T1, as T1=T2T; determining the calculated first time value T1 as a measurement of the first moment of time t1 at which the first measurement of the angular position of the crankshaft occurred, and using the first time value T1 and the first measurement to allow a mechanical movement of the internal combustion engine to be synchronized with the engine controller for controlling operative events of the internal combustion engine.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Other features, details and advantages of the solutions implemented will become more clearly apparent from the detailed description presented hereinafter by way of example with reference to the drawings as follows:
(2)
(3)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(4)
(5) It is assumed here that, in order for example to be able to synchronize a mechanical event with an engine control software application, for a given moment in time t1, a double reference measurement, comprising a measurement of the time T1 and a measurement of the angular position at this time t1, is obtained.
(6) A measurement of the time T is obtained by means of a timer or clock producing a linear signal T as a function of time t, such as is shown on the
T=T2T1=t=t2t1.
(7) As already described, a measurement of the angular position of a rotating element is obtained by equipping said rotating element with a toothed wheel and, disposed facing it on a fixed structure, a detector designed to detect the presence or the absence of a tooth. Such a detector allows a crenelated signal c of the type shown on the diagram 2 in
(8) Such a signal c is processed by integration, by counting of the teeth or by any other more complex method so as to obtain a signal a of the type represented on the diagram 3 in
(9) The diagram 4 in
(10) One problem for which the invention provides a solution is that of obtaining a measurement of time T1 and a measurement of angular position at the same time t1. Moreover, this time t1 is imposed in that it is determined, for example, by an external event.
(11) As previously indicated, a software acquisition does not allow an acquisition to be carried out at an imposed time t1. The reason for this is that, between the moment when a software acquisition request is triggered and the moment in time when it is effectively carried out, there is a time delay 5. This delay 5, also referred to as software delay, latency or jitter, is linked to numerous factors that are uncontrolled and is unfortunately non-deterministic; it is not possible to predict its duration t. It is thus not possible to envision, in order to acquire a measurement at the imposed moment in time t1, the triggering of a software acquisition at t1t.
(12) A hardware acquisition allows such a measurement at an imposed time t1 to be carried out. However, since the aim is not to employ more than one hardware acquisition device, it is only possible to obtain a single measurement at the time t1, either the time T1 or the angular position .
(13) The method provided comprises the following steps, as shown on the
(14) In parallel, or following this, a software acquisition function is triggered 20. This software acquisition function is responsible for obtaining a measurement of angular position and a measurement of the time T2 at the time t2, these two measurements 30 being simultaneous or substantially simultaneous. As previously seen, even if the time of triggering of said software acquisition function is known, for example t1, a delay 5 of duration t necessarily occurs starting from this moment of triggering. For this reason, the measurements are effectively acquired at a time t2, different from t1, and the measurement of time T2 has an error T with respect to the desired measurement T1.
(15) The acquisitions of the measurements and T2 are thus delayed by the duration t of the time delay 5. The software function acts such that the measurement of angular position and the measurement of time T2 are simultaneous or substantially simultaneous. Substantially simultaneous is taken to mean that an exact simultaneity is not necessarily possible depending on the capacities of the software device which is, or uses, input/output devices which are most often sequential. However, the possible time difference between the two software acquisitions is still small compared to the other time delays of the problem, and may be ignored.
(16) After having thus acquired, substantially simultaneously, a second measurement of the angular position and a measurement T2 of the time by software acquisition at the time t2, the method proceeds with a step for estimating 40 an error T, between the effective measurement T2 at the time t2 and the desired measurement T1 at the time t1.
(17) Based on this estimation of the error T, a step calculates a compensated measurement of time T1, estimating the time at the moment in time t1 by subtracting from the measurement of time T2 at the time t2 said estimated error T.
(18) This error T can be calculated by performing a linear extrapolation of the form t=k.Math., with =, the difference in angular position between the value of angular position at the moment in time t1 when a reference measurement is desired and the time t2 where a software measurement is carried out, and k a value estimating the slope of the curve t=f(). A value k estimating the slope may be calculated by the formula:
(19)
with Dur_dent=duration of one tooth, and Res_dent=angular resolution of one tooth.
(20) The time difference t is considered 50 to be equal to the difference in the measurements of time T=T2T1.
(21) The duration of one tooth is a variable. It is a recent measurement of the time taken for a tooth to pass in front of the detector. It is the temporal length of a tooth, i.e. the period of time during which the signal c on the
(22) The angular resolution or angular width of one tooth is a constant depending on the toothed wheel used by the angular position sensor. It is uniform in angle and is equal to 360 divided by the number of teeth on the toothed wheel. In the case of a wheel with 60 minus 2 teeth, the angular resolution is equal to 360/60, or 6.
(23) The parameter k is thus uniform in the inverse of an angular speed, and k.Math., is uniform in duration. The resulting formula is as follows:
(24)
(25) and enables the error T to be calculated 60.
(26) According to one feature, the determination of the first measurement of angular position is carried out in two steps. A first step 70 is a hardware acquisition carried out by a hardware device. This device, triggered at the time t1, carries out an acquisition of the value by acquiring the value of angular position at the time t1. Depending on the embodiment, either the hardware device is triggered by the event linked to t1, or the hardware device is itself responsible for the event linked to t1 and decides when this moment occurs. The acquisition is carried out and stores said value of angular position in a storage means. Reading this storage means is accessible to the software device. In a second step 80, said software device performs a software read of this storage means in order to obtain the measurement of angular position .
(27) According to another feature, the device responsible for the event occurring at the moment in time t1, either the hardware acquisition device or the device which has triggered 90 the hardware acquisition generates, at the time t1, an interrupt intended for the software device. This interrupt may be advantageously used to start the software device. In response to this interrupt, the software device can then perform the software read of the storage means so as to obtain the measurement of angular position and additionally trigger the software acquisition function in order to obtain the measurements of angular position and of time T2, at the moment in time t2.
(28) A time t0 also appears on the diagram 4 in
(29) The method recommended here, in its several variants, allows a measurement that is erroneous, since made with a delay, to be compensated by an estimation of the error, based on quantities that are known or otherwise determinable. This can be carried out by a standard software device associated with a single hardware acquisition device.
(30) This method has been applied with success to an ignition control. The time t0 is the start of the charging of the coil, whereas the time t1 is the end of said charging and hence the effective production of the ignition. It is important to know the reference comprising the angular position and the time T1 exactly at this moment in time t1. The external device defining t1 is therefore the device in charge of the control of the coil. The latter then sends a command, at the time t1, for the hardware acquisition of the angular position and simultaneously informs the software device by an interrupt. In response, the software device reads the measurement and triggers the software acquisition function resulting in the measurements and T2. In this case, the software device used is a microcontroller TRICORE 1762.
(31) The invention furthermore relates to a sensor for measuring angular position, of the type comprising a toothed wheel, comprising means for implementing the compensation method previously described. In this case, the sensor can incorporate a hardware device and a software device each, or in concert, designed to carry out the various steps of the compensation method.