METHOD FOR ADJUSTING A CLOCK ON BOARD A MOTOR VEHICLE AND ASSOCIATED ADJUSTING DEVICE

20220365490 · 2022-11-17

    Inventors

    Cpc classification

    International classification

    Abstract

    A method for adjusting a clock on board a motor vehicle, the clock providing an actual time for functions of the vehicle, the vehicle connected via wireless communication to a data server, the method including: the server transmitting a sequence of consecutive actual-time values, separated from one another by a fixed time interval; the vehicle receiving the actual-time values shifted by an unknown and variable time of flight between transmission and reception; for each received actual-time value: calculating a difference between an actual-time value received at a given instant and an actual-time value received at a previous instant; calculating a discrepancy between the calculated difference and the fixed time interval; calculating a cumulative disparity, consisting in summing the discrepancy calculated for a time value received at one instant and a time value received at the previous instant; determining the actual time for adjusting the on-board clock according to the disparity.

    Claims

    1. A method for adjusting a clock on board a motor vehicle, said clock providing an actual time for functions of the vehicle, said vehicle being connected via wireless communication to a data server, said method comprising: the server transmitting a sequence of consecutive actual-time values, all separated from one another by a fixed time interval; the vehicle receiving the actual-time values shifted by an unknown and variable time of flight between transmission and reception; for each received actual-time value: calculating a difference between an actual-time value received at a given instant and an actual-time value received at a previous instant, calculating a discrepancy between said difference thus calculated and the fixed time interval, and calculating a cumulative disparity, consisting in summing the discrepancy calculated for a time value received at one instant and a time value received at the previous instant, and determining the actual time for adjusting the on-board clock according to said disparity.

    2. The adjusting method as claimed in, claim 1, wherein the sequence includes a predetermined number of consecutive actual-time values.

    3. The adjusting method as claimed in claim 1, wherein the actual time for adjusting the clock is the received actual-time value corresponding to the calculated minimum cumulative disparity.

    4. The adjusting method as claimed in claim 1, wherein the server transmits the sequence of consecutive values repeatedly with a predetermined frequency.

    5. The adjusting method as claimed in claim 1, wherein, when the vehicle comprises a geolocation system, the method further comprises an additional step of receiving an actual-time value from the geolocation system and calculating a disparity between said value and the determined actual time, the actual time chosen for adjusting the clock being the actual-time value from the GPS if said disparity is smaller than a predetermined disparity.

    6. A device for adjusting a clock on board a motor vehicle, said clock providing an actual time to vehicle functions, said device comprising: means for wireless communication with a server; means for receiving actual-time values transmitted consecutively by the server and all separated from one another by a fixed time interval, said received values being shifted by an unknown and variable time of flight between transmission and reception; first means for calculating a difference between an actual-time value received at a given instant and an actual-time value received at a previous instant; second means for calculating a discrepancy between said difference thus calculated and the fixed time interval, means for calculating a cumulative disparity, consisting in summing the discrepancy calculated for a time value received at one instant and a time value received at the previous instant; and means for adjusting the on-board clock according to said disparity.

    7. The device as claimed in claim 6, wherein the adjusting means further comprise means for determining a minimum value of the discrepancies which are calculated for each received actual-time value, and the corresponding received actual-time value.

    8. A data server communicating wirelessly with a motor vehicle, suitable for implementing the method for adjusting a clock on board a motor vehicle as claimed in claim 1.

    9. The data server as claimed in claim 8, wherein it is suitable for consecutively sending a sequence of actual-time values, all separated by a fixed time interval and said sequence is transmitted repeatedly with a predetermined frequency.

    10. A motor vehicle communicating wirelessly with a data server, comprising an adjusting device (D) as claimed in claim 6.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0027] Other features and advantages of aspects of the invention will become more apparent from reading the description which follows. This description is purely illustrative and must be read with reference to the attached drawings, in which:

    [0028] FIG. 1 schematically shows the vehicle, which is connected to a data server and comprises the device for adjusting the clock on board the vehicle, according to an aspect of the invention.

    [0029] FIG. 2 is a flowchart showing the various steps of the method for adjusting the clock on board the vehicle according to an aspect of the invention.

    DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

    [0030] FIG. 1 shows a motor vehicle V which is connected, via a wireless connection, of the Wi-Fi or Bluetooth type, or of 3G, 4G, or 5G telephone/Internet connection type, to a data server S. The wireless communication protocols are known from the prior art and will not be further detailed here.

    [0031] According to an aspect of the invention, the data server S is suitable for consecutively wirelessly sending a sequence of actual-time values all shifted from one another by a fixed time interval x. For this purpose, it possesses transmitting means 100 which are, for example, in software form. In other words, the data server sends, at a first instant, a value representative of the actual time, for example T0=10:00:00, then sends, at a second instant consecutive to the first, a second value representative of the actual time, but shifted by a fixed time interval x, for example x=30 s, therefore T1=T0+x=10:00:30. The method is repeated for a predetermined number N of values; for example the sequence includes 5 actual-time values, N=5, and the transmission sequence is therefore the following:

    TABLE-US-00001 TABLE 1 T0 T1 T2 T3 T4 Transmitted 10:00:00 10:00:30 10:01:00 10:01:30 10:02:00 actual-time values

    [0032] Preferably, the data server S sends said sequence with a predetermined frequency, for example, but not limited to, once a day.

    [0033] The vehicle V comprises means (which are not shown) for wireless communication with the data server S, this being known to a person skilled in the art. The vehicle V also comprises an on-board clock H providing an actual time, which is necessary for implementing functions of the vehicle.

    [0034] According to an aspect of the invention, the vehicle V also comprises a device D for adjusting the clock on board the vehicle V. Said adjusting device D comprises means 10 for receiving actual-time values sent by the server. The device also comprises: [0035] a. first means M1 for calculating a difference between an actual-time value received at a given instant and an actual-time value received at a previous instant, [0036] b. second means M2 for calculating a discrepancy between said difference thus calculated and the fixed time interval, [0037] c. means M3 for calculating a cumulative disparity, consisting in summing the discrepancy calculated for a time value received at one instant and a time value received at the previous instant, [0038] d. means M4 for adjusting the clock H according to said cumulative disparity.

    [0039] In a preferred embodiment of the invention, the adjusting means M4 further comprise means (which are not shown) for determining a minimum value of the disparities which are calculated for each received actual-time value, and the corresponding received actual-time value.

    [0040] The adjusting method, which is illustrated in FIG. 2, will now be described. In a preliminary step (which is not shown), the data server S is fitted with transmitting means 100 and the vehicle is fitted with the adjusting device D which were described above.

    [0041] In a first step E1, the data server S wirelessly transmits, via BLE, Wi-Fi or other communication, a sequence of N consecutive actual-time values T0, T1, T2, T3, T4 all separated by a fixed interval x, as illustrated in table 1.

    [0042] The vehicle V, more particularly the receiving means 10, receives or receive, in a second step E2, the actual-time values, which will be named T0′, T1′, T2′, T3′, T4′. However, these received time values are shifted with respect to the transmitted time values; specifically, the time of flight between the server and the vehicle, that is to say between transmission and reception of said values, is unknown and variable. Thus:


    T0′=T0+Δt0   [Math 1]


    T1′=T1+Δt1   [Math 2]


    T2′=T2+Δt2   [Math 3]


    T3′=T3+Δt3   [Math 4]


    T4′=T4+Δt4   [Math 5]

    where

    [0043] T0, T1, T2, T3, T4 are actual-time values transmitted by the server S and

    [0044] T0′, T1′, T2′, T3′, T4′ are actual-time values received by the vehicle V.

    [0045] For example:

    TABLE-US-00002 TABLE 2 T0 T1 T2 T3 T4 Transmitted 10:00:00 10:00:30 10:01:00 10:01:30 10:02:00 actual-time values T0′ T1′ T2′ T3′ T4′ Received 10:00:09 10:00:35 10:01:05 10:01:32 10:02:09 actual-time values

    [0046] In a third step E3, a difference ΔT(i+1)′ between the actual-time value received at one instant (i+1) and the actual-time value received at a previous instant (i) is calculated for each received actual-time value, or:


    ΔT(i+1)′=T(i+1)′−Ti′  [Math 6]


    or:


    ΔT1′=T1′−T0′  [Math 7]

    [0047] This is calculated for each received actual-time value.

    [0048] In the fourth step E4, a discrepancy between the difference thus calculated previously and the fixed interval x is calculated for each received actual-time value, or:


    Δ(i+1)=ΔT(i+1)′−x   [Math 8]


    or:


    Δ1=ΔT1′−x   [Math 9]

    [0049] The following table is therefore obtained:

    TABLE-US-00003 TABLE 3 T0 T1 T2 T3 T4 Transmitted 10:00:00 10:00:30 10:01:00 10:01:30 10:02:00 actual-time values T0′ T1′ T2′ T3′ T4′ Received 10:00:09 10:00:35 10:01:05 10:01:32 10:02:09 actual-time values ΔT0′ ΔT1′ ΔT2′ ΔT3′ ΔT4′ ΔT(i + 1)′ 0 00:00:26 00:00:30 00:00:27 00:00:37 Δ0 Δ1 Δ2 Δ3 Δ4 Δ(i + 1)′ −4 0 −3 7

    [0050] In the next step (step E5), a cumulative disparity ε(i+1) is determined for each received actual-time value by adding the discrepancy thus calculated at one instant (i+1) to the discrepancy calculated for the actual-time value received at the previous instant (i), or:


    ε(i+1)=Δ(i+1)+Δ(i)   [Math 10]


    or:


    ε1=Δ1+Δ0   [Math 11]

    [0051] The actual-time value to be used for adjusting the on-board clock H of the vehicle V is then determined from among all the received actual-time values. This is done by taking the received actual-time value which has the smallest cumulative disparity (step E6), or the minimum value of the cumulative disparities, min(ε(i+1)). The following table is therefore obtained:

    TABLE-US-00004 TABLE 4 T0 T1 T2 T3 T4 Transmitted 10:00:00 10:00:30 10:01:00 10:01:30 10:02:00 actual-time values T0′ T1′ T2′ T3′ T4′ Received 10:00:09 10:00:35 10:01:05 10:01:32 10:02:09 actual-time values ΔT0′ ΔT1′ ΔT2′ ΔT3′ ΔT4′ ΔT(i + 1)′ 0 00:00:26 00:00:30 00:00:27 00:00:37 Δ0 Δ1 Δ2 Δ3 Δ4 Δ(i + 1)′ −4 0 −3 7 ε0 ε1 ε2 ε3 ε4 ε(i + 1) −4 −4 −7 0 min(ε(i + 1)) −7

    [0052] In this example, the received actual-time value to be used to adjust the clock (step E7), which has the shortest time of flight and therefore the best accuracy with respect to the actual-time value transmitted by the data server S, is T, which is equal to T3 or equal to 10:01:32; specifically, this received actual-time value has the smallest cumulative disparity, ε(3), which is equal to −7, and it can be seen that the actual time T3 is only two seconds behind the actual-time value transmitted by the data server S.

    [0053] Of course, each received actual-time value is updated, that is to say incremented by a time base, by means of the clock H on board the vehicle V during the calculations described above until the actual-time value to be used is determined by the adjusting method according to an aspect of the invention.

    [0054] In a second embodiment of the method according to the invention (which is not shown), the vehicle V comprises a GPS (Global Positioning System) or geolocation system and the adjusting method comprises an additional step in which the adjusting device D receives an actual-time value from the GPS and compares it with the actual-time value obtained in the last step of the method according to an aspect of the invention. If a disparity between these two values is smaller than a predetermined disparity, then the adjusting device D uses the actual-time value sent by the GPS in order to adjust the clock H on board the vehicle, because this actual-time value is more accurate. Specifically, it is then considered that the actual-time value time from the GPS cannot have been hacked.

    [0055] An aspect of the invention therefore expediently and inexpensively makes it possible to accurately and securely adjust a clock on board a vehicle. The adjusting method according to an aspect of the invention makes it possible, inter alia: [0056] a. to avoid the vehicle V having to send a request to the server to update its clock, [0057] b. to receive, in the vehicle V, an actual-time value which is not impacted by two times of flight, that of the request from the vehicle to the server and that of the response from the server to the vehicle, [0058] c. to securely adjust the clock in the vehicle on a daily basis.