Data fusion method, system and device, program product and storage medium

By calculating and converting the clock offset, the data of the roadside device is consistent with the clock of the on-board device, solving the problem of data fusion errors in the fields of autonomous driving and vehicle-road collaboration, and improving the accuracy of data fusion.

CN118590175APending Publication Date: 2024-09-03CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410830375.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In the field of autonomous driving and vehicle-road collaboration, due to the different clocks of roadside equipment and vehicle-mounted equipment, errors occur in the data fusion of roadside equipment and vehicle-mounted equipment.

Method used

By calculating the time offset between the first clock and the second clock, the timestamp in the roadside data message is converted so that it is consistent with the clock of the vehicle-mounted device, thereby performing data fusion.

Benefits of technology

It improves the accuracy of data fusion, solves the problem of data fusion errors caused by different clocks, and enhances the anti-interference of the time plane.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590175A
    Figure CN118590175A
Patent Text Reader

Abstract

The embodiment of the invention provides a data fusion method, system and device, a program product and a storage medium, and the method comprises the steps: calculating the time offset between a first clock and a second clock when a first data message is received; converting the first timestamp by using the time offset, and packaging a second timestamp obtained by conversion into the first data message to obtain a first target data message, the second timestamp being a timestamp corresponding to a second clock; and fusing the first target data message and the second target data message to obtain a fused data message. Through the method and the device, the problem of errors in data fusion of the roadside equipment and the vehicle-mounted equipment caused by different clocks of the roadside equipment and the vehicle-mounted equipment in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a data fusion method and system, device, program product, and storage medium. Background Art

[0002] In the field of autonomous driving and vehicle-road collaboration, both the vehicle and the road are equipped with a variety of sensors, such as cameras, lidar, millimeter-wave radar, ultrasonic radar, etc. After the data from the road is transmitted to the vehicle, the sensor data from the road needs to be fused with the sensor data from the vehicle. However, in the existing technology, due to the different clocks of the roadside equipment and the vehicle-mounted equipment, the fluctuation of the timestamp will cause errors in the fusion of the data of the roadside equipment and the data of the vehicle-mounted equipment. Summary of the invention

[0003] The embodiments of the present application provide a data fusion method and system, device, program product, and storage medium to at least solve the problem in the related art that errors may occur in the fusion of data from roadside equipment and data from vehicle-mounted equipment due to different clocks between the roadside equipment and the vehicle-mounted equipment.

[0004] According to one embodiment of the present application, a data fusion method is provided, which is applied to a first control device, including: when receiving a first data message, calculating the time offset between a first clock and a second clock, wherein the first data message encapsulates a roadside data message obtained through a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the first clock and the second clock are both set in the first control device; converting the first timestamp using the time offset, and encapsulating the converted second timestamp into the first data message to obtain a first target data message, wherein the second timestamp is a timestamp corresponding to the second clock; fusing the first target data message and the second target data message to obtain a fused data message, wherein the second target data message includes the second data message and a third timestamp, the second data message includes a sensor data message obtained through an on-board device set in a target vehicle, the third timestamp is a timestamp corresponding to the second clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0005] In an exemplary embodiment, when a first data message is received, the time offset between the first clock and the second clock is calculated, including: when the first data message sent by the above-mentioned vehicle-mounted device is received via Ethernet, the first time of the above-mentioned first clock and the second time of the second clock are determined; the difference between the above-mentioned first time and the above-mentioned second time is calculated to obtain the above-mentioned time offset.

[0006] In an exemplary embodiment, before fusing the first target data message and the second target data message to obtain the fused data message, the method further includes at least one of the following: receiving a target sensor data message sent by the second control device to obtain the second target data message, wherein the target sensor message data includes a sensor data message and the third timestamp, and the sensor data message is a data message generated by the positioning device; receiving a target radar data message sent by the second control device to obtain the second target data message, wherein the target radar message data includes a radar data message and the third timestamp, and the radar data message is an ultrasonic radar. The method comprises the following steps: receiving a target laser data message sent by a laser radar device or a millimeter wave radar device; receiving a target laser data message sent by a laser radar device to obtain the above-mentioned second target data message, wherein the above-mentioned target laser data message includes a laser timestamp, and the above-mentioned laser timestamp is a timestamp corresponding to the above-mentioned second clock, and the above-mentioned laser timestamp is used to indicate the generation time of the laser message in the above-mentioned target laser data message; receiving a target image to obtain the above-mentioned second target data message, wherein the image timestamp of the above-mentioned target image is a timestamp set by the above-mentioned second clock, and the above-mentioned image timestamp is used to indicate the time when the above-mentioned target image is taken, and the above-mentioned target image is an image acquired by the camera device in the above-mentioned vehicle-mounted device.

[0007] In an exemplary embodiment, the above-mentioned first timestamp is converted using the above-mentioned time offset, and the converted second timestamp is encapsulated into the above-mentioned first data message to obtain the first target data message, including: compensating the above-mentioned time offset to the above-mentioned first timestamp to obtain the above-mentioned second timestamp; setting a timestamp field in the above-mentioned first data message to encapsulate the above-mentioned second timestamp into the above-mentioned timestamp field to obtain the above-mentioned first target data message.

[0008] In an exemplary embodiment, before fusing the first target data message and the second target data message to obtain the fused data message, the method further includes: acquiring a clock signal generated by the third clock and a clock signal generated by the fourth clock sent by the second control device, wherein the third clock is set in the second control device and is synchronized with the second clock, and the fourth clock is set in the second control device and is synchronized with the first clock; correcting the second clock using the clock signal generated by the third clock; and correcting the first clock using the clock signal generated by the fourth clock.

[0009] In an exemplary embodiment, the first target data message and the second target data message are merged to obtain a merged data message, including: extracting the second timestamp from the first target data message; extracting the third timestamp from the second target data message; and when the time difference between the second timestamp and the third timestamp is less than a preset threshold, fusing the first target data message and the second target data message to obtain the merged data message.

[0010] According to another embodiment of the present application, a data fusion method is provided, which is applied to a second control device, including: generating a second target data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a data message obtained by an on-board device set in the target vehicle, and the third timestamp is a timestamp corresponding to a third clock set in the second controller; sending the second target data message to a first control device, wherein the first control device is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the first target data message is determined based on the first data message and a time offset, the time offset is determined based on a first clock and a second clock set in the first control device, the first data message encapsulates a roadside data message obtained by a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, the second clock is synchronized with the third clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0011] In an exemplary embodiment, generating a second target data message includes: receiving the second data message sent by the positioning device through the sensor in the vehicle-mounted device, wherein the second data message is encapsulated with a sensor data message and a fourth timestamp, and the fourth timestamp is used to indicate the time when the sensor data message is generated; or, receiving the second data message sent by an ultrasonic radar device or a millimeter-wave radar device, wherein the second data message is encapsulated with a radar data message and a fifth timestamp, and the fifth timestamp is used to indicate the time when the radar data message is generated; generating the third timestamp through the third clock, and encapsulating the third timestamp into the second data message to obtain the second target data message.

[0012] In an exemplary embodiment, before generating the second target data message, the method further includes: sending a clock signal generated by a third clock and a clock signal generated by a fourth clock to the first control device, wherein the fourth clock is set in the second control device and is synchronized with the first clock, and the first control device is used to correct the second clock using the clock signal generated by the third clock and to correct the first clock using the clock signal generated by the fourth clock; sending the clock signal generated by the third clock to the laser radar device to correct the time of the laser radar device.

[0013] According to another embodiment of the present application, a data fusion system is provided, including a first control device and a second control device, wherein the first controller includes a first clock and a second clock, the second controller includes a third clock and a fourth clock, the first clock is synchronized with the fourth clock, the second clock is synchronized with the third clock, the first control device is used to implement the above method, and the second control device is used to implement the steps of the above method in any one of the above items.

[0014] According to another embodiment of the present application, a data fusion device is provided, which is applied to a first control device, including: a first calculation module, which is used to calculate the time offset between a first clock and a second clock when a first data message is received, wherein the first data message encapsulates a roadside data message obtained through a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the first clock and the second clock are both set in the first control device; a first conversion module, which is used to convert the first timestamp using the time offset, and convert the converted timestamp into a time offset. The second timestamp is encapsulated into the first data message to obtain a first target data message, wherein the second timestamp is a timestamp corresponding to the second clock; a first fusion module is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the second target data message includes the second data message and the third timestamp, the second data message includes a sensor data message obtained by an on-board device arranged in the target vehicle, the third timestamp is a timestamp corresponding to the second clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0015] According to another embodiment of the present application, a data fusion device is provided, which is applied to a second control device, including: a first generating module, used to generate a second target data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a data message obtained by an on-board device set in the target vehicle, and the third timestamp is a timestamp corresponding to a third clock set in the second controller; a first sending module, used to send the second target data message to the first control device, wherein the first control device is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the first target data message is determined based on the first data message and a time offset, the time offset is determined based on a first clock and a second clock set in the first control device, the first data message encapsulates a roadside data message obtained by a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, the second clock is synchronized with the third clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0016] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0017] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0018] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0019] Through the present application, when the first control device receives the first data message, it compensates the calculated time offset between the first clock and the second clock to the first timestamp of the roadside data message, and encapsulates the second timestamp converted from the first timestamp into the first data message to obtain the first target data message, thereby obtaining a fused data message after fusing the first target data message and the second target data message, which improves the anti-interference performance of the time plane. Therefore, it can solve the problem in the related technology that errors occur in the fusion of data of the roadside device and the data of the vehicle-mounted device due to the different clocks of the roadside device and the vehicle-mounted device, thereby achieving the effect of improving the accuracy of data fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a hardware structure block diagram of a mobile terminal of a data fusion method according to an embodiment of the present application;

[0021] Figure 2 The process of the data fusion method according to the embodiment of the present application is as follows Figure 1 ;

[0022] Figure 3 The process of the data fusion method according to the embodiment of the present application is as follows Figure 2 ;

[0023] Figure 4 is a structural block diagram of a data fusion system according to an embodiment of the present application;

[0024] Figure 5 is a flow chart of data fusion according to a specific embodiment of the present application;

[0025] Figure 6 is a flow chart of data transmission according to an embodiment of the present application;

[0026] Figure 7 The data fusion device according to the embodiment of the present application is a structural frame Figure 1 ;

[0027] Figure 8 The data fusion device according to the embodiment of the present application is a structural frame Figure 2 . DETAILED DESCRIPTION

[0028] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0030] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a data fusion method according to an embodiment of the present application. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data fusion method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] In this embodiment, a data fusion method is provided, which is applied to a first control device. Figure 2 The process of the data fusion method according to the embodiment of the present application is as follows Figure 1 ,like Figure 2 As shown, the process includes the following steps:

[0034] Step S202, when receiving a first data message, calculating a time offset between a first clock and a second clock, wherein the first data message encapsulates a roadside data message obtained by a roadside device and a first timestamp of obtaining the roadside data message, the first timestamp is a timestamp corresponding to a first clock, and the first clock and the second clock are both set in a first control device;

[0035] Step S204, converting the first timestamp using the time offset, and encapsulating the converted second timestamp into the first data message to obtain a first target data message, wherein the second timestamp is a timestamp corresponding to the second clock;

[0036] Step S206, fusing the first target data message and the second target data message to obtain a fused data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a sensor data message obtained by an on-board device set in the target vehicle, the third timestamp is a timestamp corresponding to the second clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0037] Through the above steps, when the first control device receives the first data message, it compensates the calculated time offset between the first clock and the second clock to the first timestamp of the roadside data message, and encapsulates the second timestamp converted from the first timestamp into the first data message to obtain the first target data message, thereby obtaining a fused data message after fusing the first target data message and the second target data message, which improves the anti-interference property of the time plane. Therefore, it can solve the problem in the related technology that the data fusion of the roadside device and the vehicle-mounted device is wrong due to the different clocks of the roadside device and the vehicle-mounted device, thereby achieving the effect of improving the accuracy of data fusion.

[0038] Optionally, this embodiment includes but is not limited to applications in the fields of autonomous driving and vehicle-road collaboration.

[0039] Optionally, the first control device and the second control device include but are not limited to domain controllers. For example, the first control device is a SOC (System on Chip), which is a chip that integrates functions such as a processor core, memory, peripheral interfaces, and power management, and is used to implement computing and control functions. The second control device is an MCU (Microcontroller Unit), which is a microcontroller that integrates functions such as a processor core, memory, peripheral interfaces, and timers, and is used to implement real-time control and monitoring functions. The domain controller realizes centralized control and management of equipment and systems in a specific field through the collaborative work of SOC and MCU. SOC is responsible for processing complex computing tasks and high-level control functions, while MCU is responsible for real-time low-level control and monitoring tasks. The two cooperate with each other to achieve efficient operation of the domain controller.

[0040] Optionally, the first clock and the second clock are two clocks in a dual clock system in the first control device. For example, the first clock is M Time and the second clock is D Time. M Time is a UTC clock system that keeps consistent with the time of the Global Positioning System (GPS). D Time is a data clock used to timestamp vehicle-mounted equipment. All data processing and algorithm operation of vehicle-mounted equipment are based on D Time. Among them, the UTC clock is an international standard time measurement, which is based on Coordinated Universal Time (UTC). The UTC clock is a precise time measurement system based on atomic clocks, which is used to synchronize various time devices and systems around the world to ensure that they all display the same time.

[0041] Optionally, the roadside data message acquired by the roadside device includes at least one of the following contents:

[0042] 1) Device information: including the device’s unique identifier, device type, location information, etc.

[0043] 2) Vehicle information: including relevant information of vehicles passing through the roadside equipment, such as vehicle type, vehicle speed, vehicle location, etc.

[0044] 3) Environmental information: including data on environmental factors such as road conditions, weather conditions, and visibility.

[0045] 4) Traffic flow information: including data related to traffic flow such as vehicle flow, vehicle density, and vehicle speed.

[0046] 5) Event information: information on events such as traffic accidents and road construction.

[0047] Optionally, the first timestamp is a timestamp corresponding to the first clock, that is, the timing method of the first timestamp is the same as that of the first clock.

[0048] Optionally, the sensor data message acquired by the vehicle-mounted device may include information such as vehicle speed, steering angle, acceleration, vehicle position, engine speed, fuel consumption, etc. These data can be transmitted to other devices or systems through the vehicle-mounted device for applications such as monitoring vehicle status, driving behavior analysis, and vehicle positioning. The message format usually adopts a standard data protocol.

[0049] In an exemplary embodiment, when a first data message is received, the time offset between the first clock and the second clock is calculated, including: when a first data message sent by a vehicle-mounted device is received via Ethernet, a first time of the first clock and a second time of the second clock are determined; and the difference between the first time and the second time is calculated to obtain the time offset.

[0050] Optionally, the first control device may calculate the time offset between the first clock and the second clock according to a preset time period. For example, the first control device SOC calculates the time offset MD_Offset=M Time-DTime between the first clock M Time and the second clock D Time every 1 second. When the first data message (for example, V2X data) reaches the SOC, the timestamp conversion is performed immediately, and the most recently calculated MD_Offset is taken. This embodiment can accurately calculate the time offset by timely calculating the difference between the first time and the second time.

[0051] In an exemplary embodiment, before fusing the first target data message and the second target data message to obtain the fused data message, the method further includes at least one of the following:

[0052] Receiving a target sensor data message sent by the second control device to obtain a second target data message, wherein the target sensor message data includes a sensor data message and a third timestamp, and the sensor data message is a data message generated by the positioning device;

[0053] Optionally, the sensor data message can be the RTK Message of the Pbox transmitted to the second control device MCU through CAN communication, and the RTK Message has its own timestamp (i.e., the third timestamp). When the RTK Message reaches the MCU, the D Time of the MCU at this moment is attached to the RTK Message in a secondary packaging manner, as shown in Table 1 and Table 2:

[0054] Table 1, RTK Message original message:

[0055] Frame Header From Timestamp ……

[0056] Table 2, RTK Message secondary encapsulation:

[0057] Frame Header get_D_Time From Timestamp ……

[0058] Among them, the RTK message of Pbox is a real-time motion positioning message used to transmit real-time differential positioning data between the global satellite navigation system (GNSS) receiver and the base station. These messages include the location and clock information of the base station, as well as the correction value of the satellite signal, which can help the receiver to perform more accurate positioning in a real-time environment.

[0059] receiving a target radar data message sent by a second control device to obtain a second target data message, wherein the target radar message data includes a radar data message and a third timestamp, and the radar data message is a message generated by an ultrasonic radar device or a millimeter wave radar device;

[0060] Optionally, for example, the message Message of the millimeter-wave radar is transmitted to the second control device MCU through CAN communication, and the Message does not carry a timestamp. When the millimeter-wave radar Message reaches the MCU, the D Time of the MCU at this moment is attached to the Radar Message message in a secondary packaging manner, as shown in Table 3 and Table 4:

[0061] Table 3, Radar Message original message:

[0062] Frame Header ……

[0063] Table 4, Radar Message secondary encapsulation:

[0064] Frame Header get_D_Time ……

[0065] Receiving a target laser data message sent by a laser radar device to obtain a second target data message, wherein the target laser data message includes a laser timestamp, which is a timestamp corresponding to the second clock, and the laser timestamp is used to indicate a generation time of the laser message in the target laser data message;

[0066] Optionally, the target laser data message is transmitted to the first control device SOC via the Ethernet switch. Since the laser radar device is synchronized with the fourth clock D Time of the second control device MCU, the target laser data message directly takes its own timestamp (ie, the third timestamp).

[0067] A target image is received to obtain a second target data message, wherein an image timestamp of the target image is a timestamp set by a second clock, the image timestamp is used to indicate the time when the target image is taken, and the target image is an image obtained by a camera device in the vehicle-mounted device.

[0068] Optionally, for example, the camera is connected to the second control device SOC through GMSL. When the camera data reaches the SOC, the SOC takes the second clock D Time in the first control device as the timestamp of the target image when receiving the SOF or EOF of the target image (the node for taking the timestamp can be configured according to the project usage, SOF or EOF is acceptable). As shown in Table 5:

[0069] Table 5, target image format:

[0070] SOF DATA EOF

[0071] Among them, SOF (Start of Frame) and EOF (End of Frame) are two markers in JPEG image files, which are used to mark the beginning and end of image data. They represent the beginning and end of the image file respectively. The SOF marker contains the basic parameters and information of the image, while the EOF marker indicates the end of the image data. These markers play an important role in the JPEG encoding and decoding process, helping the parser to correctly identify and process image data.

[0072] GMSL (Gigabit Multimedia Serial Link) is a high-speed serial interface standard that can be used to connect a camera and a control device. Connecting a second control device via GMSL means that the camera can communicate and transfer data with the second control device via the GMSL interface.

[0073] This embodiment can accurately obtain the timestamp of each message by receiving data messages transmitted by different devices, and correct the timestamp in time.

[0074] In an exemplary embodiment, a first timestamp is converted using a time offset, and a second timestamp obtained by the conversion is encapsulated into a first data packet to obtain a first target data packet, including: compensating the time offset into the first timestamp to obtain a second timestamp; setting a timestamp field in the first data packet to encapsulate the second timestamp into the timestamp field to obtain the first target data packet.

[0075] Optionally, the time offset may be compensated to the first timestamp by the following formula to obtain a second timestamp:

[0076] V2X_D_Time=V2X_Time-MD_Offset, wherein MD_Offset is used to indicate a time offset, V2X_Time is used to indicate a first timestamp, and V2X_D_Time is used to indicate a second timestamp.

[0077] The calculated V2X_D_Time is repackaged into the V2X data, as shown in Table 6 and Table 7:

[0078] Table 6, V2X data original message:

[0079] Frame Header V2X_Time DATA ……

[0080] Table 7, V2X data secondary packaging:

[0081] Frame Header V2X_D_Time V2X_Time DATA ……

[0082] This embodiment can determine an accurate timestamp through the time offset, thereby reducing timestamp fluctuations.

[0083] In an exemplary embodiment, before fusing the first target data message and the second target data message to obtain the fused data message, the method further includes: acquiring a clock signal generated by a third clock and a clock signal generated by a fourth clock sent by the second control device, wherein the third clock is set in the second control device and is synchronized with the second clock, and the fourth clock is set in the second control device and is synchronized with the first clock; correcting the second clock using the clock signal generated by the third clock; and correcting the first clock using the clock signal generated by the fourth clock.

[0084] Optionally, the clock signal generated by the first clock sent by the second control device includes but is not limited to the GNSS signal of the Pbox and the precise time pulse signal PPS. For example, the second control device MCU obtains the GNSS signal and PPS signal of the Pbox, and synchronizes the UTC time of the Pbox to the M Time clock; the MCU synchronizes the M Time clock to the MTime clock of the SOC through gPTP synchronization; the D Time of the MCU is the power-on time of the MCU, which starts counting from 0 by default; the MCU synchronizes the D Time clock to the D Time clock of the SOC through gPTP synchronization; if a laser radar is connected to the system, the MCU synchronizes the D Time to the laser radar through PTP.

[0085] Among them, gPTP (Generalized Precision Time Protocol) is a protocol for real-time network synchronization, which can provide microsecond-level time synchronization accuracy. Designing two different gPTP (generalized Precision Time Protocol) synchronization domains in the same LAN can be achieved through the following steps:

[0086] 1) Configure different gPTP parameters: First, different gPTP parameters need to be configured in each synchronization domain, including gPTP priority, clock accuracy, etc. This can be done by configuring the network device or the management interface of the gPTP device.

[0087] 2) Assign different gPTP network addresses: Each gPTP synchronization domain needs to have a different gPTP network address to ensure that they can correctly identify and communicate in the local area network. This can be configured through the network device or the management interface of the gPTP device.

[0088] 3) Isolate network traffic: To ensure that the two gPTP synchronization domains do not interfere with each other, a virtual local area network (VLAN) or other network isolation technology can be used to separate their network traffic.

[0089] 4) Ensure that the clocks are synchronized correctly: Finally, it is necessary to ensure that the clock devices within each gPTP synchronization domain are able to synchronize time correctly. This can be achieved by monitoring the status and logs of the clock devices and ensuring that they are able to synchronize with the gPTP master clock normally.

[0090] Through the above steps, two different gPTP synchronization domains can be designed and implemented in the same LAN to meet different clock synchronization requirements.

[0091] Optionally, GNSS signals are signals transmitted by various satellites around the world for positioning and navigation. The Pbox can receive these GNSS signals and use their information to determine the precise location of the device. The PPS signal is a precise time pulse signal used to synchronize the time of the device. The Pbox can receive the PPS signal and use its precise time information to ensure the time synchronization and accuracy of the device. The combination of these two signals enables the Pbox to have high-precision positioning and time synchronization capabilities, which is suitable for application scenarios that require precise positioning and time synchronization, such as scientific research, navigation systems, communication systems, etc.

[0092] Optionally, the RTK message of the Pbox can be transmitted to the MCU via CAN communication by the following steps:

[0093] 1) The Pbox converts the RTK message into the CAN communication protocol format. This can be done through the CAN communication module inside the Pbox, which converts the RTK message into the CAN message format.

[0094] 2) Pbox sends CAN messages to MCU via CAN bus. CAN bus is a high-speed serial communication bus that can achieve real-time and reliable data transmission.

[0095] 3) After receiving the CAN message, the MCU can parse and process the message. The MCU may need to perform some specific operations based on the received RTK message, such as controlling certain devices or storing data.

[0096] Transmitting RTK messages to MCU via CAN communication can achieve high-speed and reliable data transmission, meeting the requirements of real-time and stability. This method can also achieve effective communication between Pbox and MCU, providing strong support for real-time monitoring and control.

[0097] This embodiment can achieve the decoupling of UTC time and data time, so that the timestamp of the data does not depend on a specific time zone or geographical location. This can ensure that the time information of the data can be accurately interpreted and used in different places and times.

[0098] In an exemplary embodiment, a first target data packet and a second target data packet are fused to obtain a fused data packet, including: extracting a second timestamp from the first target data packet; extracting a third timestamp from the second target data packet; and when a time difference between the second timestamp and the third timestamp is less than a preset threshold, fusing the first target data packet and the second target data packet to obtain a fused data packet.

[0099] Optionally, the first target data message and the second target data message may be fused in the following ways:

[0100] Merge data fields: merge the same fields in the first target data message and the second target data message, retain all fields and combine them into a new data message.

[0101] Data cross-talk: Cross-talk the data in the first target data message and the second target data message to create a new data message containing information from both data messages.

[0102] Data splicing: splice the data in the first target data message and the second target data message in sequence to form a larger data message.

[0103] Data merging: Merge the data in the first target data message and the second target data message to form a new data message, which contains all the information of the two data messages.

[0104] These methods can be flexibly combined according to specific needs and data structures to achieve the purpose of fusing the first target data message and the second target data message.

[0105] In this embodiment, a data fusion method is provided, which is applied to a second control device. Figure 3 The process of the data fusion method according to the embodiment of the present application is as follows Figure 2 ,like Figure 3 As shown, the process includes the following steps:

[0106] Step S302, generating a second target data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a data message obtained by an on-board device set in the target vehicle, and the third timestamp is a timestamp corresponding to a third clock set in the second controller;

[0107] Step S304, sending the second target data message to the first control device, wherein the first control device is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the first target data message is determined based on the first data message and the time offset, the time offset is determined based on the first clock and the second clock set in the first control device, the first data message encapsulates the roadside data message obtained through the roadside device and the first timestamp of obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, the second clock is synchronized with the third clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0108] Through the above steps, since the second target data message generated by the second control device includes the second data message and the third timestamp, the second data message includes the data message obtained by the on-board device set in the target vehicle, and the third timestamp is a timestamp corresponding to the third clock set in the second controller, the second target data message is sent to the first control device, so that the first control device fuses the first target data message and the second target data message to obtain a fused data message, which improves the anti-interference performance on the time plane. Therefore, it can solve the problem in the related technology that the data fusion of the roadside device and the on-board device is wrong due to the different clocks of the roadside device and the on-board device, thereby achieving the effect of improving the accuracy of data fusion.

[0109] Optionally, this embodiment includes but is not limited to applications in the fields of autonomous driving and vehicle-road collaboration.

[0110] Optionally, the first control device and the second control device include but are not limited to domain controllers. For example, the first control device is a SOC (System on Chip), which is a chip that integrates functions such as a processor core, memory, peripheral interfaces, and power management, and is used to implement computing and control functions. The second control device is an MCU (Microcontroller Unit), which is a microcontroller that integrates functions such as a processor core, memory, peripheral interfaces, and timers, and is used to implement real-time control and monitoring functions. The domain controller realizes centralized control and management of equipment and systems in a specific field through the collaborative work of SOC and MCU. SOC is responsible for processing complex computing tasks and high-level control functions, while MCU is responsible for real-time low-level control and monitoring tasks. The two cooperate with each other to achieve efficient operation of the domain controller.

[0111] Optionally, the first clock and the second clock are two clocks in a dual clock system in the first control device. For example, the first clock is M Time and the second clock is D Time. M Time is a UTC clock system that keeps consistent with the time of the Global Positioning System (GPS). D Time is a data clock used to timestamp vehicle-mounted equipment. All data processing and algorithm operation of vehicle-mounted equipment are based on D Time. Among them, the UTC clock is an international standard time measurement, which is based on Coordinated Universal Time (UTC). The UTC clock is a precise time measurement system based on atomic clocks, which is used to synchronize various time devices and systems around the world to ensure that they all display the same time.

[0112] Optionally, the first timestamp is a timestamp corresponding to the first clock, that is, the timing method of the first timestamp is the same as that of the first clock.

[0113] In an exemplary embodiment, generating a second target data message includes: receiving a second data message sent by a positioning device through a sensor in a vehicle-mounted device, wherein the second data message is encapsulated with a sensor data message and a fourth timestamp, and the fourth timestamp is used to indicate the time when the sensor data message is generated; or, receiving a second data message sent by an ultrasonic radar device or a millimeter-wave radar device, wherein the second data message is encapsulated with a radar data message and a fifth timestamp, and the fifth timestamp is used to indicate the time when the radar data message is generated; generating a third timestamp through a third clock, and encapsulating the third timestamp and into the second data message to obtain a second target data message. Optionally, the sensor data message can be an RTK Message of a Pbox transmitted to a second control device MCU via CAN communication, and the RTK Message has its own timestamp (i.e., the third timestamp). When the RTK Message reaches the MCU, the D Time of the MCU at this moment is attached to the RTK Message message in a secondary encapsulation manner, as shown in Tables 1 and 2:

[0114] Table 1, RTK Message original message:

[0115] Frame Header From Timestamp ……

[0116] Table 2, RTK Message secondary encapsulation:

[0117] Frame Header get_D_Time From Timestamp ……

[0118] Among them, the RTK message of Pbox is a real-time motion positioning message used to transmit real-time differential positioning data between the global satellite navigation system (GNSS) receiver and the base station. These messages include the location and clock information of the base station, as well as the correction value of the satellite signal, which can help the receiver to perform more accurate positioning in a real-time environment.

[0119] Optionally, for example, the message Message of the millimeter-wave radar is transmitted to the second control device MCU through CAN communication, and the Message does not carry a timestamp. When the millimeter-wave radar Message reaches the MCU, the D Time of the MCU at this moment is attached to the Radar Message message in a secondary packaging manner, as shown in Table 3 and Table 4:

[0120] Table 3, Radar Message original message:

[0121] Frame Header ……

[0122] Table 4, Radar Message secondary encapsulation:

[0123] Frame Header get_D_Time ……

[0124] In an exemplary embodiment, before generating the second target data message, the method further includes: sending a clock signal generated by a third clock and a clock signal generated by a fourth clock to a first control device, wherein the fourth clock is set in the second control device and is synchronized with the first clock, and the first control device is used to correct the second clock using the clock signal generated by the third clock and to correct the first clock using the clock signal generated by the fourth clock; sending the clock signal generated by the third clock to a lidar device to correct the time of the lidar device.

[0125] Optionally, the clock signal generated by the first clock and the clock signal generated by the fourth clock sent by the second control device include but are not limited to the GNSS signal of the Pbox and the precise time pulse signal PPS. For example, the second control device MCU obtains the GNSS signal and PPS signal of the Pbox, and synchronizes the UTC time of the Pbox to the M Time clock; the MCU synchronizes the MTime clock to the M Time clock of the SOC through gPTP synchronization; the D Time of the MCU is the power-on time of the MCU, which starts counting from 0 by default; the MCU synchronizes the D Time clock to the D Time clock of the SOC through gPTP synchronization; if a laser radar is connected to the system, the MCU synchronizes the D Time to the laser radar through PTP.

[0126] In this embodiment, a data fusion system is also provided. Figure 4is a structural block diagram of a data fusion system according to an embodiment of the present application, such as Figure 4 As shown, the system includes:

[0127] A first control device and a second control device, wherein the first controller includes a first clock and a second clock, the second controller includes a third clock and a fourth clock, the first clock and the fourth clock are synchronized, and the second clock and the third clock are synchronized, the first control device is used to implement any of the above methods, and the second control device is used to implement the steps of any of the above methods.

[0128] For example, Figure 5 As shown, when the first control device is a SOC and the second control device is an MCU, a dual clock system is set between the SOC and the MCU. M Time and D Time. M Time is a UTC clock system, and the clock is kept consistent with GPS time. D Time is a data clock system, which is used to timestamp the sensor. All sensor data processing and algorithm operation are based on D Time.

[0129] Optionally, the MCU implements time synchronization through a dual clock system, including:

[0130] 1) The vehicle-mounted equipment uses the absolute time source Pbox (i.e., GPS module). The MCU obtains the GNSS signal and PPS signal of the Pbox and synchronizes the UTC time of the Pbox to the M Time clock;

[0131] 2) MCU synchronizes the M Time clock to the M Time clock of the SOC through gPTP synchronization;

[0132] 3) MCU D Time is the MCU power-on time, which starts from 0 by default;

[0133] 4) MCU synchronizes D Time clock to SOC’s D Time clock through gPTP. If a lidar device is connected, MCU synchronizes D Time to the lidar through PTP.

[0134] Optionally, the MCU implements multiple synchronization domains in the same LAN by:

[0135] In time synchronization, in the same LAN, the MCU synchronizes the M Time clock and the D Time clock to the M Time clock and the D Time clock of the SOC through gPTP synchronization. The domainNumber of the M Time clock synchronization domain is configured to 0, and the domainNumber of the D Time synchronization domain is configured to 1. In this way, two different gPTP synchronization domains are designed in the same LAN, and the two synchronization domains do not interfere with each other. Among them, domainNumber refers to the number of a specific time synchronization domain, which is used to distinguish different time synchronization domains. Each time synchronization domain has a unique domainNumber, which is used to identify the identity of the time synchronization domain. This ensures that there is no confusion between different time synchronization domains, thereby ensuring the accuracy and reliability of time synchronization. domainNumber is usually an integer, which is assigned and managed by the time synchronization device or system administrator.

[0136] Optionally, the timestamp processing of the vehicle-mounted device is performed in the following manner:

[0137] 1) The RTK Message of Pbox is transmitted to MCU via CAN communication, and the Message has its own timestamp. When the RTK Message reaches the MCU, the D Time of the MCU at that moment is attached to the RTK Message in a secondary packaging manner;

[0138] 2) The message of the millimeter-wave radar is transmitted to the MCU through CAN communication, and the message does not carry a timestamp (some millimeter-wave radars have CAN gPTP function to achieve time synchronization, and the design description here is unified without a timestamp). When the millimeter-wave radar message reaches the MCU, the D Time of the MCU at this moment is attached to the RadarMessage message in a secondary packaging manner;

[0139] 3) Ultrasonic radar is processed in the same way as millimeter wave radar.

[0140] 4) The sensor data received by the MCU is sent to the SOC side through a private transmission protocol between the MCU and the SOC (e.g., SOME / IP).

[0141] 5) The lidar data is connected to the SOC through the Ethernet switch. Since the lidar data is synchronized with the D Time clock of the MCU, the lidar data directly takes its own timestamp.

[0142] 6) The camera is connected to the SOC through GMSL. When the camera data reaches the SOC, the SOC takes the D Time as the camera data frame timestamp when it receives the SOF or EOF of the camera image (the node for taking the timestamp can be configured according to the project usage, SOF or EOF is acceptable).

[0143] Optionally, the data processing of the roadside equipment is performed in the following manner:

[0144] 1) The sensor data of the roadside equipment is transmitted from the RSU device to the vehicle-side device OBU through V2X, and the OBU then sends it to the SOC via Ethernet. Figure 4 shown.

[0145] 2) Since the timestamps of the roadside sensor data are all UTC time synchronized with the roadside GPS, that is, the time on the same plane as the vehicle-side MTime, but the road pole is not moving and stable, the GPS signal will not fluctuate. Therefore, it is necessary to convert the V2X data timestamp into a timestamp on the same plane as the vehicle-side DTime. The conversion method is as follows:

[0146] Calculation of the time offset between M Time and D Time; on the SOC side, the time offset between M Time and D Time, MD_Offset = M Time - D Time, is calculated every 1 second; when the V2X data reaches the SOC, the timestamp conversion is performed immediately, and the latest calculated MD_Offset, V2X_D_Time = V2X_Time - MD_Offset, is taken, and the calculated V2X_D_Time is re-encapsulated into the V2X data.

[0147] In the vehicle-road collaboration scenario, this embodiment decouples UTC time from data time through a dual time system; and designs a multi-synchronous domain system based on gPTP synchronization in the same local area network to improve the accuracy of time synchronization of the dual time system; and sets a method for processing timestamps of vehicle-side and road-side sensor data, as well as a method for converting timestamps of road-side data. This improves the anti-interference of the time plane, avoids the problem of timestamp fluctuations in vehicle-side data due to unstable GPS signals, and reduces the difficulty of algorithm fusion.

[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0149] In this embodiment, a data fusion device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0150] Figure 7 The data fusion device according to the embodiment of the present application is a structural frame Figure 1 ,like Figure 7 As shown, the device is applied to a first control device, comprising:

[0151] A first calculation module 72, configured to calculate a time offset between a first clock and a second clock when receiving a first data message, wherein the first data message encapsulates a roadside data message obtained by a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the first clock and the second clock are both set in the first control device;

[0152] A first conversion module 74 is configured to convert the first timestamp using the time offset, and encapsulate the converted second timestamp into the first data message to obtain a first target data message, wherein the second timestamp is a timestamp corresponding to the second clock;

[0153] The first fusion module 76 is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a sensor data message obtained by an on-board device set in the target vehicle, the third timestamp is a timestamp corresponding to the second clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0154] In an exemplary embodiment, the above-mentioned first calculation module includes: a first determination unit, used to determine the first time of the first clock and the second time of the second clock when the first data message sent by the vehicle-mounted device is received via Ethernet; a first calculation unit, used to calculate the difference between the first time and the second time to obtain the time offset.

[0155] In an exemplary embodiment, the above-mentioned device also includes at least one of the following: a first receiving module, used to fuse the first target data message and the second target data message, and before obtaining the fused data message, receive the target sensor data message sent by the second control device to obtain the second target data message, wherein the target sensor message data includes the sensor data message and the third timestamp, and the sensor data message is a data message generated by the positioning device; a second receiving module, used to receive the target radar data message sent by the second control device to obtain the second target data message, wherein the target radar message data includes the radar data message and the third timestamp, and the radar data message is an ultrasonic radar. a message generated by a laser radar device or a millimeter-wave radar device; a third receiving module, used to receive a target laser data message sent by a laser radar device, and obtain the second target data message, wherein the target laser data message includes a laser timestamp, and the laser timestamp is a timestamp corresponding to the second clock, and the laser timestamp is used to indicate the generation time of the laser message in the target laser data message; a fourth receiving module, used to receive a target image, and obtain the second target data message, wherein the image timestamp of the target image is a timestamp set by the second clock, and the image timestamp is used to indicate the time when the target image is taken, and the target image is an image acquired by the camera device in the vehicle-mounted device.

[0156] In an exemplary embodiment, the above-mentioned first conversion module includes: a first compensation unit, used to compensate the time offset into the first timestamp to obtain the second timestamp; a first setting unit, used to set the timestamp field in the first data message to encapsulate the second timestamp into the timestamp field to obtain the first target data message.

[0157] In an exemplary embodiment, the above-mentioned device also includes: a first acquisition module, used to merge the first target data message and the second target data message, and before obtaining the merged data message, obtain the clock signal generated by the third clock and the clock signal generated by the fourth clock sent by the second control device, wherein the third clock is set in the second control device and is synchronized with the second clock, and the fourth clock is set in the second control device and is synchronized with the first clock; a first correction module, used to correct the second clock using the clock signal generated by the third clock; a second correction module, used to correct the first clock using the clock signal generated by the fourth clock.

[0158] In an exemplary embodiment, the above-mentioned first fusion module includes: a first extraction unit, used to extract the second timestamp from the first target data packet; a second extraction unit, used to extract the third timestamp from the second target data packet; a first fusion unit, used to fuse the first target data packet and the second target data packet to obtain the fused data packet when the time difference between the second timestamp and the third timestamp is less than a preset threshold.

[0159] Figure 8 The data fusion device according to the embodiment of the present application is a structural frame Figure 2 ,like Figure 8 As shown, the device is applied to a second control device, comprising:

[0160] A first generating module 82 is used to generate a second target data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a data message obtained by an on-board device set in the target vehicle, and the third timestamp is a timestamp corresponding to a third clock set in the second controller;

[0161] The first sending module 84 is used to send the second target data message to the first control device, wherein the first control device is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the first target data message is determined based on the first data message and the time offset, and the time offset is determined based on the first clock and the second clock set in the first control device, and the first data message encapsulates the roadside data message obtained through the roadside device and the first timestamp of obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the second clock is synchronized with the third clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

[0162] In an exemplary embodiment, the above-mentioned first generation module includes: a first receiving unit, used to receive the second data message sent by the positioning device through the sensor in the vehicle-mounted device, wherein the second data message is encapsulated with a sensor data message and a fourth timestamp, and the fourth timestamp is used to indicate the time when the sensor data message is generated; or, a second receiving unit, used to receive the second data message sent by an ultrasonic radar device or a millimeter-wave radar device, wherein the second data message is encapsulated with a radar data message and a fifth timestamp, and the fifth timestamp is used to indicate the time when the radar data message is generated; a first generation unit, used to generate the third timestamp through the third clock, and encapsulate the third timestamp and into the second data message to obtain the second target data message.

[0163] In an exemplary embodiment, the above-mentioned device also includes: a second sending module, which is used to send the clock signal generated by the third clock and the clock signal generated by the fourth clock to the first control device before generating the second target data message, wherein the fourth clock is set in the second control device and is synchronized with the first clock, and the first control device is used to correct the second clock using the clock signal generated by the third clock, and correct the first clock using the clock signal generated by the fourth clock; a third sending module, which is used to send the clock signal generated by the third clock to the laser radar device to correct the time of the laser radar device.

[0164] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0165] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0166] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0167] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0168] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0169] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0170] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0171] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0172] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0173] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0174] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data fusion method, It is characterized in that Applicable to a first control device, comprising: When receiving a first data message, calculating a time offset between a first clock and a second clock, wherein the first data message encapsulates a roadside data message obtained through a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the first clock and the second clock are both set in the first control device; Converting the first timestamp using the time offset, and encapsulating the converted second timestamp into the first data message to obtain a first target data message, wherein the second timestamp is a timestamp corresponding to the second clock; The first target data message and the second target data message are fused to obtain a fused data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a sensor data message obtained by an on-board device set in a target vehicle, the third timestamp is a timestamp corresponding to the second clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

2. The method according to claim 1, It is characterized in that When receiving the first data message, calculating the time offset between the first clock and the second clock includes: When the first data message sent by the vehicle-mounted device is received through Ethernet, determining a first time of the first clock and a second time of the second clock; The difference between the first time and the second time is calculated to obtain the time offset.

3. The method according to claim 1, It is characterized in that Before fusing the first target data message and the second target data message to obtain a fused data message, the method further includes at least one of the following: Receiving a target sensor data message sent by the second control device to obtain the second target data message, wherein the target sensor message data includes a sensor data message and the third timestamp, and the sensor data message is a data message generated by the positioning device; receiving a target radar data message sent by the second control device to obtain the second target data message, wherein the target radar message data includes a radar data message and the third timestamp, and the radar data message is a message generated by an ultrasonic radar device or a millimeter wave radar device; Receiving a target laser data message sent by a laser radar device to obtain the second target data message, wherein the target laser data message includes a laser timestamp, the laser timestamp is a timestamp corresponding to the second clock, and the laser timestamp is used to indicate a generation time of the laser message in the target laser data message; Receive a target image and obtain the second target data message, wherein the image timestamp of the target image is a timestamp set by the second clock, the image timestamp is used to indicate the time when the target image is taken, and the target image is an image obtained by the camera device in the vehicle-mounted device.

4. The method according to claim 1, It is characterized in that The method of converting the first timestamp by using the time offset and encapsulating the converted second timestamp into the first data message to obtain a first target data message includes: Compensating the time offset into the first timestamp to obtain the second timestamp; A timestamp field is set in the first data message to encapsulate the second timestamp into the timestamp field to obtain the first target data message.

5. The method according to claim 1, It is characterized in that Before fusing the first target data message and the second target data message to obtain a fused data message, the method further includes: Acquire a clock signal generated by the third clock and a clock signal generated by the fourth clock sent by the second control device, wherein the third clock is set in the second control device and is synchronized with the second clock, and the fourth clock is set in the second control device and is synchronized with the first clock; Correcting the second clock using a clock signal generated by the third clock; The first clock is corrected using a clock signal generated by the fourth clock.

6. The method according to claim 1, It is characterized in that The first target data message and the second target data message are merged to obtain a merged data message, including: Extracting the second timestamp from the first target data message; Extracting the third timestamp from the second target data packet; When the time difference between the second timestamp and the third timestamp is less than a preset threshold, the first target data message and the second target data message are merged to obtain the merged data message.

7. A data fusion method, It is characterized in that Applicable to the second control device, comprising: Generate a second target data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a data message obtained by an on-board device set in the target vehicle, and the third timestamp is a timestamp corresponding to a third clock set in the second controller; The second target data message is sent to a first control device, wherein the first control device is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the first target data message is determined based on the first data message and a time offset, and the time offset is determined based on a first clock and a second clock set in the first control device, and the first data message encapsulates a roadside data message obtained through a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the second clock is synchronized with the third clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

8. The method according to claim 7, It is characterized in that Generating a second target data message, including: receiving the second data message sent by the positioning device through the sensor in the vehicle-mounted device, wherein the second data message encapsulates a sensor data message and a fourth timestamp, and the fourth timestamp is used to indicate the time when the sensor data message is generated; or, receiving the second data message sent by the ultrasonic radar device or the millimeter wave radar device, wherein the second data message encapsulates a radar data message and a fifth timestamp, and the fifth timestamp is used to indicate the time when the radar data message is generated; The third timestamp is generated by the third clock, and the third timestamp is encapsulated into the second data message to obtain the second target data message.

9. The method according to claim 7, It is characterized in that Before generating the second target data message, the method further includes: Sending a clock signal generated by a third clock and a clock signal generated by a fourth clock to the first control device, wherein the fourth clock is set in the second control device and is synchronized with the first clock, and the first control device is used to correct the second clock using the clock signal generated by the third clock and correct the first clock using the clock signal generated by the fourth clock; The clock signal generated by the third clock is sent to the laser radar device to correct the time of the laser radar device.

10. A data fusion system, It is characterized in that The method comprises a first control device and a second control device, wherein the first controller comprises a first clock and a second clock, the second controller comprises a third clock and a fourth clock, the second clock is synchronized with the third clock, the first clock is synchronized with the fourth clock, the first control device is used to implement the method described in any one of claims 1 to 6, and the second control device is used to implement the steps of the method described in any one of claims 7 to 9.

11. A data fusion device, It is characterized in that Applicable to a first control device, comprising: A first calculation module, configured to calculate a time offset between a first clock and a second clock when receiving a first data message, wherein the first data message encapsulates a roadside data message obtained through a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the first clock and the second clock are both set in the first control device; A first conversion module, configured to convert the first timestamp using the time offset, and encapsulate a second timestamp obtained by the conversion into the first data message to obtain a first target data message, wherein the second timestamp is a timestamp corresponding to the second clock; The first fusion module is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a sensor data message obtained by an on-board device set in a target vehicle, the third timestamp is a timestamp corresponding to the second clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

12. A data fusion device, It is characterized in that Applicable to the second control device, comprising: A first generating module, configured to generate a second target data message, wherein the second target data message includes a second data message and a third timestamp, the second data message includes a data message obtained by an on-board device provided in a target vehicle, and the third timestamp is a timestamp corresponding to a third clock provided in the second controller; A first sending module is used to send the second target data message to a first control device, wherein the first control device is used to fuse the first target data message and the second target data message to obtain a fused data message, wherein the first target data message is determined based on the first data message and a time offset, and the time offset is determined based on a first clock and a second clock set in the first control device, and the first data message is encapsulated with a roadside data message obtained through a roadside device and a first timestamp for obtaining the roadside data message, the first timestamp is a timestamp corresponding to the first clock, and the second clock is synchronized with the third clock, and the fused data message is used to represent the perception of the driving environment of the target vehicle.

13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 6, or implements the steps of the method described in any one of claims 7 to 9.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented, or the steps of the method described in any one of claims 7 to 9 are implemented.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 6, or implements the steps of the method described in any one of claims 7 to 9.