Time calibration method of sensor data, vehicle controller and vehicle

By determining the time deviation between control units in the intelligent driving controller, the calibration of sensor data timestamps is realized, which solves the problem of inaccurate timestamps in PTP synchronization mode, reduces hardware complexity and cost, and improves the efficiency of data sharing. Accuracy.

CN118784134APending Publication Date: 2024-10-15NIO TECH ANHUI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969600.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, the time synchronization of IMU data in intelligent driving controllers relies on the Precision Time Protocol (PTP), which results in high hardware complexity, high cost, and high system software complexity, making it difficult to achieve accurate time stamp calibration.

Method used

By determining the time offset between control units and converting the timestamp of the received sensor data into a timestamp synchronized with its own system time, the timestamp calibration of the sensor data is achieved, reducing the dependence on PTP synchronization and hardware complexity.

Benefits of technology

It improves the accuracy of sensor data timestamps, simplifies the algorithm process, reduces costs, and enables sensor data sharing between multiple control units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784134A_ABST
    Figure CN118784134A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of automatic driving, and provides a time calibration method for sensor data, a vehicle controller and a vehicle. The method comprises the steps that a first control unit determines the time deviation of the first control unit relative to a second control unit according to first time and second time, and the first time is the system time of the first control unit when the first control unit monitors a first interruption event; the second time is the system time of the second control unit when the second control unit monitors a second interrupt event, and the first interrupt event and the second interrupt event have relevance; the first control unit calibrates a first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain a second timestamp, and the first timestamp is the system time of the second control unit when the second control unit receives the sensor data. In this way, the control unit can convert sensor data sent by other control units into data synchronous with the system time of the control unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of autonomous driving technology, and in particular relates to a time calibration method for sensor data, a vehicle controller and a vehicle. Background Art

[0002] With the development of intelligent driving technology, inertial measurement units (IMU, also known as IMU sensors) are widely used in vehicles. For example, the control unit of the advanced driving assistance system (ADAS, also known as advanced driving complex system) uses IMU data and other sensors (such as millimeter wave radar, lidar, camera and satellite navigation, etc.) to realize the function of assisted driving. For example, the cockpit control unit (domain control unit, DCU, referred to as DC) uses IMU data for navigation and positioning.

[0003] In the related art, in order to meet the needs of each control unit in the intelligent driving controller for IMU data, each control unit generally performs time synchronization based on the precision time protocol (PTP) to ensure the precise alignment of each control unit in time. After each control unit performs time synchronization, the IMU data is connected to a certain control unit. After receiving the IMU data, the control unit timestamps the IMU data and sends the IMU data with the timestamp to other control units, so that other control units can use the received IMU data to implement corresponding functions, thereby realizing the sharing of IMU data among multiple control units.

[0004] However, for the PTP time synchronization method, different control units need to be connected through a switch that supports synchronization (i.e., switch firmware), which will lead to high hardware complexity and high cost. In addition, each control unit and switch firmware needs to be configured and verified for the protocol stack, which will also lead to high system software complexity and high development resource requirements. Summary of the invention

[0005] An embodiment of the present application provides a method for time calibration of sensor data, a vehicle controller and a vehicle. When a control unit receives sensor data forwarded by other control units, the embodiment of the present application can convert the timestamp carried by the sensor data into a timestamp synchronized with the system time of the control unit itself, thereby improving the accuracy of the timestamp of the calibrated sensor data.

[0006] In a first aspect, an embodiment of the present application provides a method for time calibration of sensor data, which is applied to a vehicle controller, wherein the vehicle controller includes a first control unit and a second control unit, the first control unit is connected to the second control unit, the second control unit is connected to the sensor, and the second control unit receives sensor data sent by the sensor; the method includes: the first control unit determines the time deviation of the first control unit relative to the second control unit based on a first time and a second time, the first time being the system time of the first control unit itself when the first control unit monitors a first interrupt event, the second time being the system time of the second control unit itself when the second control unit monitors a second interrupt event, and the first interrupt event is associated with the second interrupt event; the first control unit calibrates the first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain a second timestamp, the first timestamp being the system time of the second control unit itself when the second control unit receives the sensor data.

[0007] In one possible implementation, the first interrupt event and the second interrupt event are receiving the same periodic first trigger signal; wherein, before the above-mentioned first control unit determines the time deviation of the first control unit relative to the second control unit based on the first time and the second time, the above-mentioned method also includes: in response to receiving the first trigger signal, the first control unit records its own system time when the first trigger signal is received to obtain the first time; in response to receiving the first trigger signal, the second control unit records its own system time when the first trigger signal is received to obtain the second time.

[0008] In a possible implementation, the first trigger signal is generated by a signal generating unit in a vehicle controller; and / or the first trigger signal is a pulse-per-second signal.

[0009] In a possible implementation, one of the first interrupt event and the second interrupt event is that the system time of the target control unit reaches the whole second, and the other is that a second trigger signal sent by the target control unit at the whole second is received; wherein the target control unit is the first control unit or the second control unit.

[0010] In one possible implementation, the first interrupt event is receiving a second trigger signal sent by the second control unit at an integer second, and the second interrupt event is the system time of the second control unit reaching an integer second; wherein, before the first control unit determines the time deviation of the first control unit relative to the second control unit based on the first time and the second time, the method further includes: in response to the system time of the second control unit reaching an integer second, the second control unit uses its own system time as the second time, and the second control unit sends a second trigger signal to the first control unit; the first control unit records its own system time when receiving the second trigger signal as the first time.

[0011] In one possible implementation, the first interrupt event is when the system time of the first control unit reaches the integer second, and the second interrupt event is when a second trigger signal is received that is sent by the first control unit at the integer second; wherein, before the first control unit determines the time deviation of the first control unit relative to the second control unit based on the first time and the second time, the method further includes: in response to the system time of the first control unit reaching the integer second, the first control unit uses its own system time as the first time, and the first control unit sends a second trigger signal to the second control unit; the second control unit records its own system time when the second trigger signal is received as the second time.

[0012] In one possible implementation, before the first control unit calibrates the first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain the second timestamp, the method further includes: the second control unit adds the first timestamp to the sensor data; and the second control unit sends the sensor data carrying the first timestamp to the first control unit.

[0013] In a second aspect, an embodiment of the present application provides a vehicle controller, comprising: at least one first control unit; a second control unit, the second control unit being connected to the at least one first control unit respectively, and the second control unit being connected to the sensor for receiving sensor data sent by the sensor; wherein the first control unit is used to determine a time deviation of the first control unit relative to the second control unit based on a first time and a second time, the first time being the system time of the first control unit itself when it detects a first interrupt event, and the second time being the system time of the second control unit itself when it detects a second interrupt event, and the first interrupt event is associated with the second interrupt event; the first control unit is also used to calibrate a first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain a second timestamp, the first timestamp being the system time of the second control unit itself when it receives the sensor data.

[0014] In a third aspect, an embodiment of the present application provides a vehicle, comprising: at least one sensor and a vehicle controller as described in the second aspect above, the vehicle controller comprising a second control unit and at least one first control unit, the second control unit being connected to the at least one first control unit, and the second control unit being connected to the at least one sensor.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for time calibration of sensor data as described in any one of the first aspects above are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a vehicle, enables the vehicle to execute the method for time calibration of sensor data described in any one of the first aspects above.

[0017] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0018] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0019] In an embodiment of the present application, for a scenario in which a first control unit among multiple control units of a vehicle controller is connected to a sensor, the first control unit can monitor a first interrupt event, and determine the time deviation of the first control unit relative to the second control unit based on the first time when the first interrupt event is monitored and the second time when the second control unit monitors the second interrupt event, and then after the first control unit receives the sensor data sent by the second control unit, based on the time deviation, calibrate the first timestamp added to the sensor data by the second control unit to obtain a second timestamp. In this way, there is no need to synchronize the time of each control unit in the vehicle controller. When the control unit receives the sensor data forwarded by other control units, the timestamp carried by the sensor data can be converted into a timestamp synchronized with the system time of the control unit itself, thereby improving the accuracy of the timestamp of the calibrated sensor data and realizing the sharing of sensor data between multiple control units. In addition, this embodiment does not rely on the existing PTP time synchronization, does not require the configuration and verification of the protocol stack of each control unit and the switch, can reduce the complexity of the hardware, simplify the algorithm flow, and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 It is one of the hardware structure diagrams of the vehicle controller provided in the embodiment of the present application;

[0022] Figure 2 This is the second schematic diagram of the hardware structure of the vehicle controller provided in the embodiment of the present application;

[0023] Figure 3 This is the third schematic diagram of the hardware structure of the vehicle controller provided in the embodiment of the present application;

[0024] Figure 4This is the fourth schematic diagram of the hardware structure of the vehicle controller provided in the embodiment of the present application;

[0025] Figure 5 This is the fifth hardware structure diagram of the vehicle controller provided in the embodiment of the present application;

[0026] Figure 6 This is the sixth schematic diagram of the hardware structure of the vehicle controller provided in the embodiment of the present application;

[0027] Figure 7 This is the seventh schematic diagram of the hardware structure of the vehicle controller provided in the embodiment of the present application;

[0028] Figure 8 It is a flowchart of a method for time calibration of sensor data provided in an embodiment of the present application;

[0029] Fig. 9 This is a schematic diagram of the timing relationship of an intelligent driving control unit sending sensor data to a cockpit control unit provided by an embodiment of the present application;

[0030] Fig.10 It is a flowchart of another method for time calibration of sensor data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0032] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0033] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0034] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0035] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0036] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0037] With the development of intelligent driving technology, IMU sensors are widely used in vehicles. For example, the ADAS control unit uses IMU data and other sensor data to implement assisted driving related functions. The DC control unit uses IMU data for navigation and positioning. In this regard, in order to meet the needs of each control unit in the intelligent driving controller for IMU data, an IMU sensor is usually set for each control unit, which leads to a high cost of the intelligent driving controller.

[0038] In the related technology, IMU data is connected to a control unit, and after receiving the IMU data, the control unit timestamps the IMU data and sends the IMU data with the timestamp to other control units, so that other control units can use the received IMU data to implement corresponding functions, thereby realizing the sharing of IMU data among multiple control units. This method does not require the installation of IMU sensors for each control unit, reduces the number of IMU sensors, and can reduce costs.

[0039] However, for this method, since the control unit sets the timestamp for the IMU data based on its own system time, and the system times of different control units may deviate, this will cause the timestamp of the IMU data received by other control units to be inaccurate, thereby affecting the implementation of related functions of other control units. For example, since the system times of the ADAS control unit and the DC control unit are inconsistent, when the DC control unit uses the IMU data sent by the ADAS control unit for navigation, navigation deviation will occur.

[0040] In order to enable each control unit to obtain accurate IMU data, PTP time synchronization is usually performed between the control units to ensure accurate alignment of the control units in time, thereby meeting the requirements of each control unit for accurate timestamps of IMU data. However, for the PTP time synchronization method, different control units need to be connected through a dedicated switch firmware (i.e., a switch firmware that supports synchronization functions), which will result in high hardware complexity and high cost. In addition, each control unit and switch firmware needs to be configured and verified with a protocol stack, which will result in high system software complexity and high development resource requirements.

[0041] In order to solve the above technical problems, an embodiment of the present application provides a time calibration method for sensor data. When a control unit receives sensor data forwarded by other control units, it can convert the timestamp carried by the sensor data into a timestamp synchronized with the system time of the control unit itself, thereby improving the accuracy of the timestamp of the calibrated sensor data and realizing the sharing of sensor data among multiple control units.

[0042] The time calibration method of sensor data provided in the embodiment of the present application can be applied to a vehicle controller, and the vehicle controller can be, for example, an intelligent driving controller (or a central domain controller). The vehicle controller may include multiple control units and sensors, and the multiple control units may include, for example: a main control unit, a microcontroller unit (MCU), an intelligent driving control unit, a cockpit control unit, a gateway control unit, etc. Among them, the main control unit may be a system-level chip, such as a system on chip (SOC). The sensor may include an IMU sensor, a millimeter-wave radar, a laser radar, and an image sensor (i.e., a camera), etc. The sensor data collected by each sensor can be shared between multiple control units, for example, IMU data can be shared between the intelligent driving control unit and the cockpit control unit. In this regard, in this embodiment, the sensor is connected to a control unit in multiple control units, and the control unit adds a timestamp to the sensor data when receiving the sensor data, and sends the sensor data to other control units. After receiving the sensor data, the other control units calibrate the timestamp of the sensor data, so that the timestamp of the sensor data is converted into a timestamp under the time system of other control units, thereby realizing the sharing of sensor data between multiple control units.

[0043] Before introducing the time calibration method for sensor data provided in the embodiment of the present application, the vehicle controller to which the method is applicable is first introduced.

[0044] See also Figure 1 , the vehicle controller 10 may include a second control unit 12 and at least one first control unit 11 (such as the first first control unit, the second first control unit, ..., the nth first control unit). The second control unit 12 is respectively connected to at least one first control unit 11, and the second control unit 12 is also connected to the sensor 20, for receiving sensor data sent by the sensor 20, and sending sensor data to at least one first control unit 11. Among them, the first control unit 11 is used to determine the time deviation of the first control unit 11 relative to the second control unit 12 according to the first time and the second time, the first time is the system time of the first control unit 11 when the first interrupt event is detected, the second time is the system time of the second control unit 12 when the second interrupt event is detected, and the first interrupt event is associated with the second interrupt event; and, based on the time deviation, the first timestamp carried by the sensor data sent by the second control unit 12 is calibrated to obtain the second timestamp, the first timestamp is the system time of the second control unit 12 when the sensor data is received.

[0045] Among them, the second control unit 12 is a control unit in the vehicle controller connected to the sensor. Exemplarily, the second control unit 12 may be, for example, an intelligent driving control unit. The first control unit 11 is a control unit in the vehicle controller that obtains sensor data through the second control unit 12. Exemplarily, the first control unit 11 may be, for example, a cockpit control unit. Exemplarily, the sensor 20 may be, for example, an IMU sensor, and the sensor data may be, for example, IMU data.

[0046] In some examples, the first interrupt event and the second interrupt event are receiving the same periodic first trigger signal. Exemplarily, the first trigger signal may be a pulse per second (also referred to as 1 pps) signal.

[0047] The first trigger signal can be generated by any control unit in the vehicle controller. The generation method of the first trigger signal is described below.

[0048] Mode 1: The first trigger signal is generated by a signal generating unit in the vehicle controller.

[0049] For example, the vehicle controller includes a second control unit and a first control unit. Figure 2 The vehicle controller 10 includes a first control unit 11 and a second control unit 12. The second control unit 12 includes a receiving and forwarding module 121, which is connected to the sensor 20 and is used to receive and forward the sensor data output by the sensor 20. The first control unit 11 includes a calibration module 111, which is also connected to the receiving and forwarding module 121. The vehicle controller 10 also includes a signal generating unit 13. The signal generating unit 13 has a first hard wire 131, and the signal generating unit 13 is connected to the calibration module 111 and the receiving and forwarding module 121 through the first hard wire 131. In this way, the signal generating unit 13 sends a periodic first trigger signal to the calibration module 111 and the receiving and forwarding module 121 through the first hard wire 131 at the same time.

[0050] The receiving and forwarding module 121 is further used to record its own system time when the first trigger signal is received in response to receiving the first trigger signal, obtain the second time, and send the second time to the calibration module 111. The calibration module 111 is used to record its own system time when the first trigger signal is received in response to receiving the first trigger signal, obtain the first time, and determine the time deviation of the first control unit 11 relative to the second control unit 12 according to the first time and the second time, and calibrate the first timestamp carried by the sensor data sent by the second control unit 12 based on the time deviation to obtain the second timestamp.

[0051] Exemplarily, the first hard line 131 is a 1 pps hard line. That is, the signal generating unit 13 sends a first trigger signal to the first control unit 11 and the second control unit 12 every second.

[0052] Optionally, the signal generating unit 13 may be a dedicated switch, that is, switch firmware with a time synchronization function.

[0053] Optionally, the signal generating unit 13 may also be other control units in the vehicle controller 10 except the first control unit 11 and the second control unit 12, such as the SOC or MCU in the vehicle controller. In this way, there is no need to set a dedicated switch firmware, which reduces the hardware complexity of the vehicle controller and reduces the cost.

[0054] Mode 2: The first trigger signal is generated by the first control unit.

[0055] In this method, the first control unit is a control chip with the function of generating a periodic signal. In this case, the first trigger signal can also be generated by the first control unit. In this way, the first trigger signal is generated by the first control unit, so there is no need to set up a special switch firmware, and there is no need to rely on other control units of the vehicle controller, which reduces the hardware complexity of the vehicle controller and reduces the cost.

[0056] The vehicle controller includes a second control unit and a first control unit. Figure 3 , which is different from the method 1 in that the first control unit 11 further includes a first control chip 112. The first control chip 112 is connected to the calibration module 111 and the receiving and forwarding module 121 respectively, and is used to send a periodic first trigger signal to the calibration module 111 and the receiving and forwarding module 121 simultaneously.

[0057] Optionally, the first control chip 112 may be, for example, a MAC chip.

[0058] Mode 3: The first trigger signal is generated by the second control unit.

[0059] In this method, the first control unit is a control chip with the function of generating a periodic signal. In this case, the first trigger signal can also be generated by the first control unit. Similarly, the first trigger signal is generated by the second control unit, so there is no need to set up a special switch firmware, nor to rely on other control units of the vehicle controller, which reduces the hardware complexity of the vehicle controller and reduces the cost.

[0060] The vehicle controller includes a second control unit and a first control unit. Figure 4, which is different from the method 1 in that the second control unit 12 further includes a second control chip 122. The second control chip 122 is connected to the receiving and forwarding module 121 and the calibration module 111 respectively, and is used to send a periodic first trigger signal to the receiving and forwarding module 121 and the calibration module 111 simultaneously.

[0061] Optionally, the second control chip 122 may be, for example, a MAC chip.

[0062] The following takes the first control unit as a cockpit control unit, the second control unit as an intelligent driving control unit, the sensor as an IMU sensor, and the first interrupt event and the second interrupt event as receiving the same periodic first trigger signal as an example to schematically illustrate the vehicle controller provided in an embodiment of the present application.

[0063] like Figure 5 As shown, the vehicle controller includes a cockpit control unit 51, an intelligent driving control unit 52 and a signal generating unit 53. The intelligent driving control unit 52 includes a receiving and forwarding module 521, which is connected to the IMU sensor 54 and is used to receive and forward the IMU data output by the IMU sensor 54. The cockpit control unit 51 includes a calibration module 511, which is also connected to the receiving and forwarding module 521. The signal generating unit 53 is connected to the calibration module 511 and the receiving and forwarding module 521 through a 1pps hard line, and sends a periodic first trigger signal (i.e., a 1pps signal) to the calibration module 511 and the receiving and forwarding module 521 at the same time through the 1pps hard line.

[0064] In this embodiment, the process of the cockpit control unit 51 calibrating the timestamp of the IMU data is as follows:

[0065] In response to receiving the first trigger signal of the current cycle, the calibration module 511 of the cockpit control unit 51 obtains the first time, wherein the first time is the system time of the cockpit control unit 51 itself when the calibration module 511 receives the first trigger signal of the current cycle. In response to receiving the first trigger signal of the current cycle, the receiving and forwarding module 521 of the intelligent driving control unit 52 obtains the second time and sends the second time to the calibration module 511, wherein the second time is the system time of the intelligent driving control unit 52 itself when the receiving and forwarding module 521 receives the first trigger signal of the current cycle.

[0066] After receiving the second time, the calibration module 511 determines the time deviation of the cockpit control unit 51 relative to the intelligent driving control unit 52 according to the first time and the second time.

[0067] In the current cycle, if the receiving and forwarding module 521 receives the IMU data sent by the IMU sensor 54, the receiving and forwarding module 521 adds a first timestamp to the IMU data, and sends the IMU data carrying the first timestamp to the calibration module 511. Among them, the first timestamp is the system time of the intelligent driving control unit 52 itself when the receiving and forwarding module 521 receives the IMU data. The current cycle refers to the time interval from the time when the receiving and forwarding module 521 receives the first trigger signal of the current cycle to the time when the receiving and forwarding module 521 receives the first trigger signal of the next cycle.

[0068] After receiving the IMU data sent by the receiving and forwarding module 521, the calibration module 511 calibrates the first timestamp carried by the IMU data based on the time deviation to obtain a second timestamp. The second timestamp is synchronized with the system time of the cockpit control unit 51, that is, the second timestamp is the timestamp of the IMU data under the time system of the cockpit control unit 51.

[0069] In an embodiment of the present application, the second control unit and at least one first control unit of the vehicle controller can be connected to the same 1pps hard line, and the first control unit can monitor whether the first trigger signal is received, and determine the time deviation of the first control unit relative to the second control unit based on the first time when the first trigger signal is monitored and the second time when the second control unit monitors the first trigger signal, and then after the first control unit receives the sensor data sent by the second control unit, based on the time deviation, calibrate the first timestamp added to the sensor data by the second control unit to obtain the second timestamp. In this way, there is no need to synchronize the time of each control unit in the vehicle controller. When the control unit receives the sensor data forwarded by other control units, the timestamp carried by the sensor data can be converted into a timestamp synchronized with the system time of the control unit itself, which can improve the accuracy of the timestamp of the calibrated sensor data and realize the sharing of sensor data between multiple control units. In addition, this embodiment does not rely on the existing PTP time synchronization, does not need to configure and verify the protocol stack of each control unit and switch, can reduce the complexity of hardware, simplify the algorithm process, and reduce costs.

[0070] Of course, as mentioned above, the first trigger signal may also be generated by the cockpit control unit 51 or by the intelligent driving control unit 52 .

[0071] In other examples, one of the first interrupt event and the second interrupt event is that the system time of the target control unit reaches the whole second, and the other is that a second trigger signal sent by the target control unit at the whole second is received; wherein the target control unit is the first control unit or the second control unit.

[0072] Specifically, the first interrupt event is the reception of the second trigger signal sent by the second control unit at the whole second, and the second interrupt event is the system time of the second control unit reaching the whole second. Alternatively, the first interrupt event is the system time of the first control unit reaching the whole second, and the second interrupt event is the reception of the second trigger signal sent by the first control unit at the whole second.

[0073] The following takes the first control unit as a cockpit control unit, the second control unit as an intelligent driving control unit, the sensor as an IMU sensor, the first interrupt event as receiving a second trigger signal sent by the second control unit at an integer second, and the second interrupt event as the system time of the second control unit reaching an integer second as an example to schematically illustrate the vehicle controller provided in an embodiment of the present application.

[0074] like Figure 6 As shown, the vehicle controller includes a cockpit control unit 61 and an intelligent driving control unit 62. The cockpit control unit 61 includes a calibration chip 611. The intelligent driving control unit 62 includes a receiving and forwarding chip 621, which is connected to the IMU sensor 63 and is used to receive and forward the IMU data output by the IMU sensor 63. The receiving and forwarding chip 621 is also connected to the calibration chip 611, and is used to record the system time of the intelligent driving control unit 62 at this time every time the system time of the intelligent driving control unit 62 reaches a whole second, and send a second trigger signal to the calibration chip 611.

[0075] In this embodiment, the process of the cockpit control unit 61 calibrating the timestamp of the IMU data is as follows:

[0076] When the system time of the intelligent driving control unit 62 reaches the whole second, the receiving and forwarding chip 621 records the current system time of the intelligent driving control unit 62 (ie, the second time), and sends a second trigger signal to the calibration chip 611. It should be understood that the receiving and forwarding chip 621 also sends the second time to the calibration chip 611.

[0077] In response to receiving the second trigger signal, the calibration chip 611 records the system time of the cockpit control unit 61 when the second trigger signal is received, that is, the first time. The calibration chip 611 determines the time deviation of the cockpit control unit 61 relative to the intelligent driving control unit 62 based on the first time and the second time.

[0078] Within the preset time period, if the receiving and forwarding chip 621 receives the IMU data sent by the IMU sensor 63, the receiving and forwarding chip 621 adds a first timestamp to the IMU data (i.e., the system time of the intelligent driving control unit 62 itself when the receiving and forwarding chip 621 receives the IMU data), and sends the IMU data carrying the first timestamp to the calibration chip 611. The preset time period is the period from the moment when the system time of the intelligent driving control unit 62 reaches the whole second this time to the moment when the system time of the intelligent driving control unit 62 reaches the whole second next time.

[0079] After receiving the IMU data, the calibration chip 611 calibrates the first timestamp carried by the IMU data based on the time deviation to obtain a second timestamp. The second timestamp is synchronized with the system time of the cockpit control unit 61, that is, the second timestamp is the timestamp of the IMU data in the time system of the cockpit control unit 61.

[0080] In this embodiment, the intelligent driving control unit sends a second trigger signal to the cockpit control unit at the whole second, so that the cockpit control unit determines the time deviation between the cockpit control unit and the intelligent driving control unit based on the first time of monitoring the second trigger signal and the whole second time when the intelligent driving control unit generates the second trigger signal. Based on the time deviation, the timestamp of the sensor data forwarded by the intelligent driving control unit can be calibrated, which can meet the cockpit control unit's requirement for accurate timestamp of sensor data. In addition, there is no need to set up special switch firmware, nor to rely on other control units of the vehicle controller, thereby reducing the hardware complexity of the vehicle controller and reducing costs.

[0081] The following takes the first control unit as the cockpit control unit, the second control unit as the intelligent driving control unit, the sensor as the IMU sensor, the first interrupt event as the system time of the first control unit reaching the whole second, and the second interrupt event as the receipt of the second trigger signal sent by the first control unit at the whole second as an example to schematically illustrate the vehicle controller provided in an embodiment of the present application.

[0082] like Figure 7 As shown, Figure 6 The difference between the vehicle controller shown is that the calibration chip 611 is used to record the system time of the cockpit control unit 61 each time the system time of the cockpit control unit 61 reaches a whole second, and send a second trigger signal to the receiving and forwarding chip 621.

[0083] In this embodiment, the process of the cockpit control unit 61 calibrating the timestamp of the IMU data is as follows:

[0084] When the system time of the cockpit control unit 61 reaches the whole second, the calibration chip 611 records the current system time of the cockpit control unit 61 (ie, the first time), and sends a second trigger signal to the receiving and forwarding chip 621 .

[0085] In response to receiving the second trigger signal, the receiving and forwarding chip 621 records the system time of the intelligent driving control unit 62 when the second trigger signal is received, that is, the second time, and sends the second time to the calibration chip 611.

[0086] The calibration chip 611 determines the time deviation of the cockpit control unit 61 relative to the intelligent driving control unit 62 based on the first time and the second time.

[0087] Within the preset time period, if the receiving and forwarding chip 621 receives the IMU data sent by the IMU sensor 63, the receiving and forwarding chip 621 adds a first timestamp to the IMU data (i.e., the system time of the intelligent driving control unit 62 itself when the receiving and forwarding chip 621 receives the IMU data), and sends the IMU data carrying the first timestamp to the calibration chip 611. The preset time period is the period from the moment when the system time of the cockpit control unit 61 reaches the whole second this time to the moment when the system time of the cockpit control unit 61 reaches the whole second next time.

[0088] After receiving the IMU data, the calibration chip 611 calibrates the first timestamp carried by the IMU data based on the time deviation to obtain a second timestamp. The second timestamp is synchronized with the system time of the cockpit control unit 61, that is, the second timestamp is the timestamp of the IMU data in the time system of the cockpit control unit 61.

[0089] In this embodiment, the cockpit control unit sends a second trigger signal to the intelligent driving control unit at the whole second, so that the cockpit control unit determines the time deviation between the cockpit control unit and the intelligent driving control unit based on the whole second time when the second trigger signal is generated and the second time when the intelligent driving control unit receives the second trigger signal. Based on the time deviation, the timestamp of the sensor data forwarded by the intelligent driving control unit can be calibrated, which can meet the cockpit control unit's requirement for accurate timestamp of sensor data. In addition, there is no need to set up special switch firmware, nor to rely on other control units of the vehicle controller, thereby reducing the hardware complexity of the vehicle controller and reducing costs.

[0090] The above part is a schematic description of the vehicle controller provided in the embodiment of the present application. The following is a schematic description of the time calibration method of sensor data provided in the embodiment of the present application in conjunction with the accompanying drawings. The time calibration method of sensor data is implemented by any vehicle controller provided in the above embodiments.

[0091] Figure 8FIG. 2 shows a method for time calibration of sensor data provided by an embodiment of the present application. Figure 8 As shown, the time calibration method of the sensor data may include the following steps:

[0092] Step 810: The first control unit determines a time deviation of the first control unit relative to the second control unit based on the first time and the second time. The first time may be the system time of the first control unit itself when the first control unit detects the first interruption event. The second time may be the system time of the second control unit itself when the second control unit detects the second interruption event. The first interruption event is associated with the second interruption event.

[0093] Exemplarily, the system time of the first control unit may refer to the time indicated by a clock unit set in the first control unit. The system time of the second control unit may refer to the time indicated by a clock unit set in the second control unit.

[0094] In some examples, the first interrupt event and the second interrupt event are receiving the same periodic first trigger signal.

[0095] In other examples, one of the first interrupt event and the second interrupt event is that the system time of the target control unit reaches the whole second, and the other is that a second trigger signal sent by the target control unit at the whole second is received; wherein the target control unit is the first control unit or the second control unit.

[0096] Specifically, the first interrupt event is the reception of the second trigger signal sent by the second control unit at the whole second, and the second interrupt event is the system time of the second control unit reaching the whole second. Alternatively, the first interrupt event is the system time of the first control unit reaching the whole second, and the second interrupt event is the reception of the second trigger signal sent by the first control unit at the whole second.

[0097] In some examples, before step 810, the method further includes: in response to the first interrupt event, the first control unit acquires the first time. In response to the second interrupt event, the second control unit acquires the second time and sends the second time to the first control unit.

[0098] Exemplarily, taking the first interrupt event and the second interrupt event as receiving the same periodic first trigger signal as an example, in response to receiving the first trigger signal, the first control unit records its own system time when the first trigger signal is received to obtain the first time. In response to receiving the first trigger signal, the second control unit records its own system time when the first trigger signal is received to obtain the second time.

[0099] Optionally, the first trigger signal is a pulse-per-second signal.

[0100] Optionally, an interruption method is used to monitor whether the first trigger signal is received. Specifically, the first control unit monitors whether the first trigger signal is received by means of an interruption method. If the first trigger signal is received, the first control unit executes an interruption program to record the current system time of the first control unit, that is, the system time of the first control unit when the first trigger signal is received is obtained, and the first time is obtained. Similarly, the second control unit monitors whether the first trigger signal is received by means of an interruption method. If the first trigger signal is received, the second control unit executes an interruption program to record the current system time of the second control unit, that is, the system time of the second control unit when the first trigger signal is received is obtained, and the second time is obtained.

[0101] In this way, the first control unit monitors the first interrupt event through the interrupt mode, and can more accurately obtain the first time when the first interrupt event occurs in the first control unit. Similarly, the second control unit monitors the interrupt event through the second interrupt mode, and can more accurately obtain the second time when the second interrupt event occurs in the second control unit, thereby improving the accuracy of the time deviation of the first control unit relative to the second control unit.

[0102] For example, the first interrupt event is receiving the second trigger signal sent by the second control unit at the whole second, and the second interrupt event is the system time of the second control unit reaching the whole second. In response to the system time of the second control unit reaching the whole second, the second control unit uses its own system time as the second time, and the second control unit sends a second trigger signal to the first control unit. The first control unit records its own system time when receiving the second trigger signal as the first time. The second trigger signal is a second pulse signal.

[0103] In this way, the second control unit sends the second trigger signal to the first control unit at every full second, and the first control unit determines the time deviation based on the first time of receiving the second trigger signal and the first time of generating the second trigger signal by the second control unit, and then based on the time deviation, the timestamp of the sensor data forwarded by the second control unit can be calibrated, which can meet the requirements of the first control unit for the accurate timestamp of the sensor data. In addition, there is no need to set up a special switch firmware, nor to rely on other control units of the vehicle controller, which reduces the hardware complexity of the vehicle controller and reduces the cost.

[0104] Exemplarily, taking the first interrupt event as the system time of the first control unit reaching the whole second, and the second interrupt event as the reception of the second trigger signal sent by the first control unit at the whole second, in response to the system time of the first control unit reaching the whole second, the first control unit uses its own system time as the first time, and the first control unit sends the second trigger signal to the second control unit. The second control unit records its own system time when receiving the second trigger signal as the second time.

[0105] In this way, the first control unit sends the second trigger signal to the second control unit at every full second, and the first control unit determines the time deviation based on the first time when the second trigger signal is generated and the second time when the second control unit receives the second trigger signal, and then based on the time deviation, the timestamp of the sensor data forwarded by the second control unit can be calibrated, which can meet the first control unit's requirements for accurate timestamps of sensor data. In addition, there is no need to set up special switch firmware, nor to rely on other control units of the vehicle controller, which reduces the hardware complexity of the vehicle controller and reduces costs.

[0106] In some examples, step 810 may include: the first control unit uses the difference between the first time and the second time as the time deviation.

[0107] Taking the first control unit as the cockpit control unit and the second control unit as the intelligent driving control unit as an example, the first time recorded when the first control unit detects the first interrupt event is T pps_DC The second time recorded when the second control unit detects the first interruption event is T pps_ADAS , then the time deviation △T=T pps_DC -T pps_ADAS .

[0108] In step 820, the first control unit calibrates the first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain a second timestamp, where the first timestamp is the system time of the second control unit when it receives the sensor data. In other words, the second timestamp can be the timestamp of the sensor data in the time system of the first control unit.

[0109] The sensor data is data collected by a sensor. Exemplarily, the sensor may be an IMU sensor, and the sensor data may be IMU data.

[0110] In some examples, step 820 may include: the first control unit determines an accumulated value of the time deviation and the first timestamp as the second timestamp.

[0111] Continuing with the example that the first control unit is the cockpit control unit and the second control unit is the intelligent driving control unit, the first timestamp added to the sensor data by the second control unit is T1, and the second timestamp after calibration is T1'=T1+△T.

[0112] In this embodiment, since the first interrupt event and the second interrupt event are periodically triggered interrupt events, for each cycle, the first control unit determines the time deviation of the first control unit relative to the second control unit based on the first time when the first control unit monitors the first interrupt event triggered by the current cycle, and the second time when the second control unit monitors the second interrupt event triggered by the current cycle. The time deviation is used to calibrate the timestamp of the sensor data received in the current cycle.

[0113] In some examples, before step 820, the method may also include: if the second control unit receives sensor data, the second control unit adds a first timestamp to the sensor data, the first timestamp being the system time when the second control unit receives the sensor data; the second control unit sends the sensor data carrying the first timestamp to the first control unit.

[0114] Below, taking the first control unit as the cockpit control unit, the second control unit as the intelligent driving control unit, the sensor as the IMU sensor, the first interrupt event and the second interrupt event as receiving the same periodic first trigger signal, and the first trigger signal being a 1pps signal as an example, the time calibration method for sensor data provided in an embodiment of the present application is schematically illustrated.

[0115] like Fig. 9 As shown, the signal generating unit sends a second pulse signal to the intelligent driving control unit and the cockpit control unit synchronously every second. For example, the second pulse signal sent synchronously to the intelligent driving control unit and the cockpit control unit at the N-1th second is recorded as 1pps N-1; the second pulse signal sent synchronously to the intelligent driving control unit and the cockpit control unit at the Nth second is recorded as 1pps N; the second pulse signal sent synchronously to the intelligent driving control unit and the cockpit control unit at the N+1th second is recorded as 1pps N+1; the second pulse signal sent synchronously to the intelligent driving control unit and the cockpit control unit at the N+2th second is recorded as 1pps N+2.

[0116] like Fig.10 As shown, the time calibration method of the sensor data includes the following steps:

[0117] Step 1001: In response to the pulse per second signal (1 pps N-1) generated at the N-1th second, the cockpit control unit obtains its current system time (ie, the first time) T pps_DC_n-1 .

[0118] Step 1002: In response to the pulse per second signal (1 pps N-1) generated at the N-1th second, the intelligent driving control unit obtains its current system time (i.e., the second time) T pps_ADAS_n-1 and sends T to the cockpit control unit pps_ADAS_n-1 .

[0119] Step 1003: The cockpit control unit generates a signal according to T pps_DC_n-1 and T pps_ADAS_n-1 , determine the time deviation △T of the cockpit control unit relative to the intelligent driving control unit n-1 (△T n-1 =T pps_DC_n-1 -T pps_ADAS_n-1 ).

[0120] Step 1004: When the intelligent driving control unit receives the IMU data, the intelligent driving control unit adds a first timestamp to the IMU data based on the system time when the intelligent driving control unit receives the IMU data.

[0121] Step 1005: The intelligent driving control unit sends IMU data carrying a first timestamp to the cockpit control unit.

[0122] For example, Fig. 9 As shown, in the time period between the moment of receiving the second pulse signal (1pps N-1) generated at the N-1th second and the moment of receiving the second pulse signal (1pps N) generated at the Nth second, if IMU data is received, the intelligent driving control unit adds a first timestamp to the IMU data and sends the IMU data carrying the first timestamp to the cockpit control unit, such as Fig. 9 The shown data include IMU data carrying a first timestamp T1, IMU data carrying a first timestamp T2, IMU data carrying a first timestamp T3, and IMU data carrying a first timestamp T4.

[0123] Step 1006: After receiving the IMU data sent by the intelligent driving control unit, the cockpit control unit calculates the IMU data based on the time deviation ΔT n-1 , convert the first timestamp carried by the IMU data into the second timestamp.

[0124] For example, Fig. 9 As shown, the first timestamp T1 carried by the IMU data is converted into a second timestamp T1' (T1' = T1 + △T n-1 ); Convert the first timestamp T2 carried by the IMU data into the second timestamp T2' (T2' = T2 + △T n-1 ); Convert the first timestamp T3 carried by the IMU data into the second timestamp T3' (T3' = T3 + △T n-1 ); Convert the first timestamp T4 carried by the IMU data into the second timestamp T4' (T4' = T4 + △T n-1 ).

[0125] Step 1007: In response to the pulse per second signal (1 pps N) generated at the Nth second, the cockpit control unit obtains its current system time (ie, the first time) T pps_DC_n .

[0126] Step 1008: In response to the pulse per second signal (1 pps N) generated at the Nth second, the intelligent driving control unit obtains its current system time (i.e., the second time) T pps_ADAS_n and sends T to the cockpit control unit pps_ADAS_n .

[0127] Step 1009: the cockpit control unit generates a signal according to T pps_DC_n and T pps_ADAS_n , determine the time deviation △T of the cockpit control unit relative to the intelligent driving control unit n (△T n =T pps_DC_n -T pps_ADAS_n ).

[0128] Step 1010: When the intelligent driving control unit receives the IMU data, the intelligent driving control unit adds a first timestamp to the IMU data based on the system time when the intelligent driving control unit receives the IMU data.

[0129] Step 1011: The intelligent driving control unit sends IMU data carrying a first timestamp to the cockpit control unit.

[0130] For example, Fig. 9 As shown, in the time period between the moment of receiving the second pulse signal (1pps N) generated at the Nth second and the moment of receiving the second pulse signal (1pps N+1) generated at the N+1th second, if IMU data is received, the intelligent driving control unit adds a first timestamp to the IMU data and sends the IMU data carrying the first timestamp to the cockpit control unit, such as Fig. 9 The shown IMU data carries a first timestamp T5, the IMU data carries a first timestamp T6, the IMU data carries a first timestamp T7, and the IMU data carries a first timestamp T8.

[0131] Step 1012: After receiving the IMU data sent by the intelligent driving control unit, the cockpit control unit calculates the IMU data based on the time deviation △T n , convert the first timestamp carried by the IMU data into the second timestamp.

[0132] For example, Fig. 9 As shown, the first timestamp T5 carried by the IMU data is converted into a second timestamp T5' (T5' = T5 + △T n ); Convert the first timestamp T6 carried by the IMU data into the second timestamp T6' (T6' = T6 + △Tn ); Convert the first timestamp T7 carried by the IMU data into the second timestamp T7' (T7' = T7 + △T n ); Convert the first timestamp T8 carried by the IMU data into the second timestamp T8' (T8' = T8 + △T n ).

[0133] In an embodiment of the present application, for a scenario in which a first control unit among multiple control units of a vehicle controller is connected to a sensor, the first control unit can monitor a first interrupt event, and determine the time deviation of the first control unit relative to the second control unit based on the first time when the first interrupt event is monitored and the second time when the second control unit monitors the second interrupt event, and then after the first control unit receives the sensor data sent by the second control unit, based on the time deviation, calibrate the first timestamp added to the sensor data by the second control unit to obtain a second timestamp. In this way, there is no need to synchronize the time of each control unit in the vehicle controller. When the control unit receives the sensor data forwarded by other control units, the timestamp carried by the sensor data can be converted into a timestamp synchronized with the system time of the control unit itself, which can improve the accuracy of the timestamp of the calibrated sensor data and realize the sharing of sensor data between multiple control units. In addition, this embodiment does not rely on the existing PTP time synchronization, does not need to configure and verify the protocol stack of each control unit and switch, can reduce the complexity of hardware, simplify the algorithm process, and reduce costs.

[0134] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0135] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0136] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0137] The embodiment of the present application further provides a vehicle controller, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in any of the above method embodiments when executing the computer program.

[0138] The embodiment of the present application further provides a vehicle, which may include a sensor and the vehicle controller provided in the above embodiment.

[0139] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0140] An embodiment of the present application provides a computer program product. When the computer program product runs on a vehicle controller, the vehicle controller / vehicle can implement the steps in the above-mentioned various method embodiments when executing the computer program product.

[0141] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the vehicle controller / vehicle, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0142] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0143] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0144] In the embodiments provided in the present application, it should be understood that the disclosed device / vehicle controller and method can be implemented in other ways. For example, the device / vehicle controller embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0145] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

[0147] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.

[0148] The user personal information processed by the applicant will vary depending on the specific product / service scenario, and shall be based on the specific scenario in which the user uses the product / service, which may involve the user's account information, device information, driving information, vehicle information or other related information. The applicant will treat the user's personal information and its processing with a high degree of diligence.

[0149] The Applicant attaches great importance to the security of user personal information and has adopted reasonable and feasible security protection measures that comply with industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.

Claims

1. A method for time calibration of sensor data, characterized in that: Applied to a vehicle controller, the vehicle controller includes a first control unit and a second control unit, the first control unit is connected to the second control unit, the second control unit is connected to a sensor, and the second control unit receives sensor data sent by the sensor, the method includes: The first control unit determines a time deviation of the first control unit relative to the second control unit according to a first time and a second time, wherein the first time is the system time of the first control unit when the first interruption event is detected, and the second time is the system time of the second control unit when the second interruption event is detected, and the first interruption event is associated with the second interruption event; The first control unit calibrates the first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain a second timestamp, where the first timestamp is the system time of the second control unit when it receives the sensor data.

2. The method according to claim 1, characterized in that The first interrupt event and the second interrupt event are receiving the same periodic first trigger signal; wherein, before the first control unit determines the time deviation of the first control unit relative to the second control unit according to the first time and the second time, the method further includes: In response to receiving the first trigger signal, the first control unit records its own system time when the first trigger signal is received to obtain the first time; In response to receiving the first trigger signal, the second control unit records its own system time when the first trigger signal is received to obtain the second time.

3. The method according to claim 2, characterized in that The first trigger signal is generated by a signal generating unit in the vehicle controller; and / or The first trigger signal is a pulse-per-second signal.

4. The method according to claim 1, characterized in that: One of the first interrupt event and the second interrupt event is that the system time of the target control unit reaches the whole second, and the other is that a second trigger signal sent by the target control unit is received at the whole second; wherein the target control unit is the first control unit or the second control unit.

5. The method according to claim 4, characterized in that The first interrupt event is receiving a second trigger signal sent by the second control unit at the full second, and the second interrupt event is when the system time of the second control unit reaches the full second; Before the first control unit determines the time deviation of the first control unit relative to the second control unit according to the first time and the second time, the method further includes: In response to the system time of the second control unit reaching the whole second, the second control unit uses its own system time as the second time, and the second control unit sends a second trigger signal to the first control unit; The first control unit records its own system time when receiving the second trigger signal as the first time.

6. The method according to claim 4, characterized in that The first interrupt event is when the system time of the first control unit reaches the integer second, and the second interrupt event is when a second trigger signal sent by the first control unit is received at the integer second; Before the first control unit determines the time deviation of the first control unit relative to the second control unit according to the first time and the second time, the method further includes: In response to the system time of the first control unit reaching the whole second, the first control unit uses its own system time as the first time, and the first control unit sends a second trigger signal to the second control unit; The second control unit records its own system time when receiving the second trigger signal as the second time.

7. The method according to any one of claims 1 to 6, characterized in that Before the first control unit calibrates the first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain the second timestamp, the method further includes: The second control unit adds the first timestamp to the sensor data; The second control unit sends the sensor data carrying the first timestamp to the first control unit.

8. A vehicle controller, characterized in that: include: at least one first control unit; a second control unit, the second control unit being connected to the at least one first control unit respectively, the second control unit being connected to the sensor and being used to receive sensor data sent by the sensor; The first control unit is used to determine a time deviation of the first control unit relative to the second control unit according to a first time and a second time, the first time being the system time of the first control unit when the first interruption event is detected, the second time being the system time of the second control unit when the second interruption event is detected, and the first interruption event is associated with the second interruption event; The first control unit is further used to calibrate a first timestamp carried by the sensor data sent by the second control unit based on the time deviation to obtain a second timestamp, where the first timestamp is the system time of the second control unit itself when the second control unit receives the sensor data.

9. A vehicle, characterized in that: include: at least one sensor; The vehicle controller as claimed in claim 8, comprising a second control unit and at least one first control unit, the second control unit being connected to the at least one first control unit, and the second control unit being connected to the at least one sensor.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for time calibration of sensor data according to any one of claims 1 to 7 are implemented.