DATA SYNCHRONIZATION DEVICE AND ITS METHOD AND COMPUTER-READABLE STORAGE MEDIUM

The data synchronization device synchronizes multiple data types on the camera side using a synchronization transfer unit and microcontroller, addressing synchronization challenges in autonomous vehicles and improving accuracy and user experience.

DE112022005489T5Pending Publication Date: 2024-09-12ARCSOFT CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE112022005489
Authority / Receiving Office
DE · DE
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-11-15
Filing Date
2022-11-10
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing data synchronization methods in autonomous vehicles fail to synchronize multiple types of scanning data and image data effectively, leading to increased error deviation and a detached synchronization from the control device, which worsens the user experience.

Method used

A data synchronization device and method that integrates a control device with a camera, featuring a synchronization transfer unit and scanning unit, which synchronizes first and second sensors using time-stamped data, reducing error deviation by performing synchronization on the camera side and utilizing a microcontroller for real-time capability.

Benefits of technology

The solution enables accurate synchronization of multiple data types, reducing error deviation and enhancing user experience by ensuring compatibility with various platforms without requiring additional computing power or platform-specific adaptations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000015_0000
    Figure 00000015_0000
  • Figure 00000016_0000
    Figure 00000016_0000
  • Figure 00000016_0001
    Figure 00000016_0001
Patent Text Reader

Abstract

The present invention discloses a data synchronization device and its method, as well as a computer-readable storage medium. The synchronization device comprises the following: a control unit and a camera, wherein the camera integrates at least the following assemblies: a synchronization transfer unit and a scanning unit, the scanning unit comprising a first sensor and a second sensor, the control unit sending a first control signal to the synchronization transfer unit, the synchronization transfer unit synchronously controlling the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal and timestamping the first sample data, the control unit receiving the first sample data and the second sample data and synchronizing the first sample data and the second sample data based on the timestamp.The present invention solves the technical problem that, with the corresponding technique, synchronization of multiple sample data cannot be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present invention relates to the technical field of data processing, specifically it relates to a data synchronization device and its method as well as a computer-readable storage medium. STATE OF THE ART

[0002] With the development of intelligent vehicles, autonomous driving technology is being widely used in intelligent vehicles. More and more vehicles are equipped with autonomous driving functions and, based on various on-board sensors, detect various conditions of the vehicle itself and its surroundings, which are then used to determine the driving strategy. Synchronizing the data acquired by the sensors is crucial for the autonomous driving function of intelligent vehicles.

[0003] The following data synchronization method is often used in this technology: sensor synchronization, which synchronizes only the inertial sensor IMU and the camera, and triggers the synchronization of the IMU and the camera by interrupting the IMU itself. However, this synchronization method has obvious disadvantages: triggering synchronization by the IMU will result in disconnection from the ECU, and synchronization of the ECU with sensors other than the IMU and the camera cannot be achieved. However, this synchronization method cannot synchronize multiple types of sample data and image data on the camera side, but synchronization processing can only be performed on the ECU side, which slightly increases the synchronization error and thus degrades the user experience.

[0004] No effective solutions have been presented to date to address the problems described above. CONTENT OF THE INVENTION

[0005] The embodiments of the present invention provide a data synchronization device and method, as well as a computer-readable storage medium, to solve at least one of the technical problems due to which synchronization of multiple sample data cannot be realized in the corresponding technology.

[0006] According to one aspect of the embodiments of the present invention, a data synchronization device is provided, comprising a control unit and a camera, wherein at least the following components are integrated in the camera: a synchronization transfer unit and a scanning unit, wherein the scanning unit comprises a first sensor and a second sensor, the control unit sends a first control signal to the synchronization transfer unit, the synchronization transfer unit synchronously controls the first sensor to generate first scanning data and the second sensor to generate second scanning data according to the first control signal, and provides the first scanning data with a time stamp. The control unit receives the first scanning data and the second scanning data and synchronously matches the first scanning data and the second scanning data based on the time stamp.

[0007] Optionally, before the control unit sends the first control signal to the synchronization transfer unit, the following may occur: After the camera receives an initialization signal sent from the control unit, it starts a self-test and initialization, and after the self-test is successful and initialization is completed, it sends an initialization success signal to the control unit; after the control unit receives the initialization success signal, it sends the first control signal to the synchronization transfer unit.

[0008] Optionally, the control device comprises: an initial signal unit, a processing unit, and a deserializer, wherein the initial signal unit is for sending an initial signal to the processing unit; the processing unit is for frequency-dividing the initial signal and generating a frequency-divided signal; and the deserializer is for generating the first control signal according to the frequency-divided signal.

[0009] Optionally, the data synchronization device further comprises: a serializer that serves to receive the first control signal transmitted by the deserializer in the control unit and generates synchronization signals to control the first sensor and the second sensor, respectively.

[0010] Optionally, the data synchronization device further comprises: a microcontroller for receiving the synchronization signal transmitted by the serializer and generating a second control signal for synchronously controlling the first sensor and the second sensor.

[0011] Optionally, if the microcontroller is not configured in the synchronization transfer unit, the serializer and the first sensor are connected via a first bus; and if the microcontroller is configured in the synchronization transfer unit, the first sensor and the microcontroller are connected via a second bus.

[0012] Optionally, the data synchronization device further comprises: a second sampling unit that serves to receive the frequency-divided signal generated by the processing unit in the control unit and, controlled by the frequency-divided signal, sends third sampling data to the control unit so that the third sampling data and the data generated by the first sampling unit are synchronously aligned, wherein the second sampling unit comprises at least one of the following components: LiDAR, millimeter-wave radar, ultrasonic radar.

[0013] Optionally, the first sensor comprises at least one of the following components: inertial sensor, magnetometer, wherein the second sensor is an image sensor.

[0014] According to one aspect of the embodiments of the present invention, a data synchronization method is provided which is used for the camera of an on-vehicle device, wherein the camera and a control device establish a connection in advance and the camera integrates at least the following components: a synchronization transfer unit and a scanning unit, wherein the scanning unit comprises a first sensor and a second sensor.The data synchronization method comprises the following: The synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the control unit; provides the first sample data with a time stamp; and sends the time-stamped first sample data and the second sample data to the control unit, wherein the control unit synchronously adjusts the first sample data and the second sample data based on the time stamp.

[0015] Optionally, before the synchronization adapter unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the control unit, the data synchronization method further comprises: receiving an initialization signal transmitted from the control unit; initiating a self-test process and an initialization process based on the initialization signal; and if the self-test was error-free and the initialization was completed, sending an initialization success signal to the control unit.

[0016] Optionally, the synchronization transfer unit further comprises: serializer, wherein the data synchronization method further comprises: sending the first sample data and the second sample data to the control unit by means of the serializer.

[0017] According to another aspect of the present invention, a computer-readable storage medium is further provided, characterized in that the computer-readable storage medium comprises a stored computer program and, upon execution of the computer program, the device on which the computer-readable storage medium is located is controlled so that it executes one of the data synchronization methods described above.

[0018] In the present disclosure, the synchronization device comprises the following: a control unit and a camera, wherein at least the following components are integrated in the camera: a synchronization transfer unit and a scanning unit, wherein the scanning unit comprises a first sensor and a second sensor, the control unit sends a first control signal to the synchronization transfer unit, the synchronization transfer unit synchronously controls the first sensor to generate first scanning data and the second sensor to generate second scanning data according to the first control signal, and provides the first scanning data with a time stamp. The control unit receives the first scanning data and the second scanning data and synchronously matches the first scanning data and the second scanning data based on the time stamp.In the present application, the first sample data (e.g., inertial sample data) can be time-stamped by the synchronization transfer unit in the camera, the first sample data and the second sample data (e.g., image data) can be synchronized, and the controller can synchronously align the two sample data based on the time stamp, so that the misalignment between the sample data is reduced and the user experience is improved, which in turn solves the technical problem that the corresponding technology cannot realize synchronization of a plurality of sample data. DESCRIPTION OF THE CHARACTERS

[0019] The figures described herein serve to better understand the present invention and are an integral part of this application. The schematic embodiments of the present invention and their description serve to illustrate the present invention and do not unreasonably limit the present invention. In the figures, the following applies: Fig. 1 is a schematic diagram of an optional microcontroller-based data synchronization device according to embodiments of the present invention; Fig. 2 is a timing diagram of the individual signals in an optional microcontroller-based data synchronization device according to embodiments of the present invention; Fig. 3 is a flowchart of an optional data synchronization method according to embodiments of the present invention; Fig. Figure 4 is a schematic representation of another optional Data synchronization device without microcontroller according to the embodiments of the present invention; Fig. 5 is a timing diagram of the individual signals in an optional synchronization device without a microcontroller according to the embodiments of the present invention; Fig. 6 is a schematic diagram of another optional dual camera data synchronizer according to embodiments of the present invention; Fig. 7 is a timing diagram of the individual signals in an optional dual camera synchronizer according to embodiments of the present invention; Fig. 8 is a schematic diagram of another optional radar data synchronizer according to embodiments of the present invention; Fig. 9 is a timing diagram of the individual signals in an optional radar synchronizer according to embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0020] To enable people in the technical field to better understand the present invention, the technical solutions in the embodiments of the present invention are described clearly and comprehensively below with reference to the figures in the embodiments of the present invention. It is obvious that the described embodiments represent only a portion of the embodiments of the present invention, not all of them. All further embodiments obtained based on the embodiments of the present invention by ordinary persons skilled in the art without innovation efforts are naturally within the scope of the present invention.

[0021] It should be noted that in the description and claims of the present invention, as well as in the figures described above, technical terms such as "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a particular order or temporal sequence. It should be understood that such data may be interchanged in appropriate cases, so that the embodiments of the present invention described herein may be practiced in orders other than those depicted or described herein. Furthermore, technical terms such as "comprising," "having," and variations thereof are intended to cover some but not to exclude others.For example, it may include a series of steps or the operations, procedures, systems, products or facilities of units, but it is not necessary to list these steps or units explicitly, but may also include further steps or units that are not explicitly listed or are inherent in these operations, procedures, products or facilities.

[0022] In order to facilitate the understanding of the present invention by those skilled in the art, some of the technical terms or designations relevant to the embodiments of the present invention are explained below: IMU: Inertial Measurement Unit, is essentially a sensor for detecting and measuring acceleration and rotational movements. MCU: Microcontroller Unit, appropriately reduces the frequency and specifications of a central processing unit and integrates peripheral interfaces such as internal memory, counters, USB, A / D converters, UART, PLC, DMA, etc., and even LCD driver circuits on a single chip, thus forming a chip-level computer that can be used in various combinations for control in different application scenarios, such as controlling automotive electronics, etc.

[0023] The embodiments of the present invention described below can be used in various scenarios where data needs to be synchronized, for example, in vehicle devices that have multiple sensors and are installed in vehicles. Vehicles include, but are not limited to, motor vehicles, buses, motorcycles, airplanes, trains, etc.

[0024] In an exemplary embodiment, the present invention may install an inertial sensor (IMU) and an image sensor in the same camera, acquire the camera's vibration data in real time using the IMU, then synchronize the image data acquired by the image sensor and the vibration data using the synchronization transfer unit in the camera, and send the synchronized image data and vibration data to a remote controller, thereby implementing image stabilization. A synchronization transfer unit may be installed in the camera, thereby realizing the advantage of strong real-time capability, thus reducing the misalignment in the synchronization of the image data and the vibration data. Furthermore, there are no requirements for the platform and computing power of the remote processing unit, thus ensuring compatibility with various platforms. Example I

[0025] Fig. 1 is a schematic diagram of an optional microcontroller-based data synchronization device according to embodiments of the present invention. As shown in Fig. 1, the synchronization device comprises a control unit and a camera, wherein the assemblies integrated in the camera comprise at least one synchronization transfer unit and a scanning unit, wherein the synchronization transfer unit comprises a microcontroller and a serializer, the scanning unit comprises a first sensor and a second sensor; and wherein the control unit comprises at least one initial signal unit, a processing unit, and a deserializer.

[0026] In the exemplary embodiment of the present invention, the control unit sends a first control signal to the synchronization transfer unit. The synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal, and timestamps the first sample data. The control unit receives the first sample data and the second sample data and synchronously adjusts the first sample data and the second sample data based on the timestamp. The first sensor may comprise an inertial sensor, a magnetometer, etc., with an inertial sensor being used as the first sensor by way of example in the detailed descriptions of the present exemplary embodiments.

[0027] In the exemplary embodiment of the present invention, the synchronization transfer unit receives the data from the scanning unit (i.e., the first scanning data and the second scanning data) and, after synchronizing the image data and the IMU data (i.e., after synchronously controlling the first sensor and the second sensor according to the second control signal generated by the microcontroller), sends it to the control unit using differential low-voltage LVDS signals (i.e., the synchronized first sensor and second sensor are transferred to the control unit). After the image has been transferred to the processing unit in the control unit, image processing can be performed using an ISP module integrated in the processing unit. Image processing can also be performed using an ISP module added to the scanning unit in the camera before the image data is transferred to the processing unit in the control unit.In the control unit, a GPS reference clock signal (i.e., an initial signal) can be generated by an initial signal unit, which is provided to the processing unit. The processing unit performs frequency division processing according to the GPS reference clock signal and determines clock distribution information (i.e., a frequency-divided signal). Subsequently, a deserializer generates a first control signal according to the frequency-divided signal and sends the first control signal to a serializer. The serializer generates a synchronization signal according to the first control signal and sends it to the microcontroller. The microcontroller can generate a second control signal according to the synchronization signal.

[0028] In the embodiment of the present invention, after receiving the timestamped first sample data and the second sample data, the controller may synchronously align the first sample data and the second sample data based on the timestamp, wherein, when the second sensor is an image sensor, the timestamp is configured as the time of the start of exposure of each image in the second sample data (ie, image data).

[0029] The concrete workflow is as follows: 10. The control unit and the camera are switched on, the control unit starts a self-test and initializes the camera. 20. After the camera receives the initialization signal from the processing unit, it begins a self-test and initialization. Once these are completed, the microcontroller (MCU) sends an initialization success signal over the I2C bus and notifies the remote processing unit via the serializer and deserializer. 30. The processing unit receives the initialization success signal sent from the MCU, the processing unit provides the GPS reference clock signal (ie the initial signal) by means of the initial signal unit, and after frequency division by means of the deserializer, sends the first control signal, which is received via the serializer on the MCU. 40. After the MCU receives the first control signal via the serializer, it converts it into the second control signal and sends it to the first sensor in the sampling unit. At the same time, it begins timestamping the IMU data (i.e., the first sample data) and transmits it back to the processing unit via the serializer and deserializer. 50. After the second sensor in the scanning unit receives the second control signal, it begins acquiring the image data (i.e., the second scan data). This image data is transmitted to the processing unit via the serializer and deserializer. The processing unit receives this image data and also the timestamped IMU data and performs a synchronous comparison of the image data with the IMU data.

[0030] In the embodiment of the present invention, Fig. Figure 2 shows a timing diagram of the individual signals in an optional microcontroller-based data synchronization device according to embodiments of the present invention, comprising: an initial signal, a frequency-divided signal, a first control signal, first sensor data (unsynchronized), first sensor data (processed by synchronous alignment), and second sensor data. These signals are used to align the transmitted second sensor data and first sensor data.

[0031] Optionally, before the control unit sends the first control signal to the synchronization transfer unit, the following may occur: After the camera receives an initialization signal sent from the control unit, it starts a self-test and initialization, and after the self-test is successful and initialization is completed, it sends an initialization success signal to the control unit; after the control unit receives the initialization success signal, it sends the first control signal to the synchronization transfer unit.

[0032] In the embodiment of the present invention, the controller and the camera must first be powered on before the controller begins a self-test and initializes the camera (i.e., after its self-test, the controller sends an initialization signal to the camera). After the camera receives the initialization signal, it begins a self-test and initialization. After the camera's self-test is successful and initialization is complete, if the synchronization transfer unit comprises a microcontroller MCU, the MCU can send an initialization success signal (i.e., indicating that the camera's self-test was successful and initialization is complete) via various bus types (e.g., an I2C bus) and notify the remote processing unit (i.e., the processing unit located in the controller) via the serializer and deserializer.After the processing unit receives the initialization success signal sent from the MCU, it sends the first control signal to the synchronization transfer unit.

[0033] Optionally, the control device comprises: an initial signal unit, a processing unit, and a deserializer, wherein the initial signal unit is for sending an initial signal to the processing unit; the processing unit is for frequency-dividing the initial signal and generating a frequency-divided signal; and the deserializer is for generating the first control signal according to the frequency-divided signal.

[0034] In the embodiment of the present invention, after the processing unit receives the initialization success signal transmitted from the MCU, the processing unit can perform frequency division processing (ie, the processing unit is used to frequency divide the initial signal) using the GPS reference clock signal provided by the initial signal unit (ie, the initial signal unit is used to transmit an initial signal to the processing unit), so that clock distribution information (ie, a frequency-divided signal) is obtained. Furthermore, the deserializer is used to generate the first control signal according to the frequency-divided signal.

[0035] Optionally, the data synchronization device further comprises: a serializer that serves to receive the first control signal transmitted by the deserializer in the control unit and generates synchronization signals to control the first sensor and the second sensor, respectively.

[0036] In the embodiment of the present invention, the controller may send the first control signal via the deserializer after the frequency division processing, and the serializer may generate a synchronization signal according to the first control signal to drive the first sensor and the second sensor, respectively.

[0037] Optionally, the data synchronization device further comprises: a microcontroller for receiving the synchronization signal transmitted by the serializer and generating a second control signal for synchronously controlling the first sensor and the second sensor.

[0038] In the exemplary embodiment of the present invention, the serializer generates a synchronization signal according to the first control signal and sends the synchronization signal to the microcontroller. The microcontroller generates the second control signal according to the synchronization signal and synchronously controls the first sensor and the second sensor.

[0039] Optionally, if the microcontroller is not configured in the synchronization transfer unit, the serializer and the first sensor are connected via a first bus; and if the microcontroller is configured in the synchronization transfer unit, the first sensor and the microcontroller are connected via a second bus.

[0040] In the exemplary embodiment of the present invention, if the synchronization transfer unit does not include a microcontroller, the inertial sensor (i.e., the first sensor) and the serializer are directly connected via a first bus (e.g., an I2C bus). If the components of the synchronization transfer unit further include the microcontroller (i.e., the MCU) in addition to the serializer, the inertial sensor and the microcontroller are directly connected via the second bus.

[0041] Optionally, the data synchronization device further comprises: a second sampling unit that serves to receive the frequency-divided signal generated by the processing unit in the control unit and, controlled by the frequency-divided signal, sends third sampling data to the control unit so that the third sampling data and the data generated by the first sampling unit are synchronously aligned, wherein the second sampling unit comprises at least one of the following components: LiDAR, millimeter-wave radar, ultrasonic radar.

[0042] In the exemplary embodiment of the present invention, the data synchronization device comprises, for example, a LiDAR and / or a millimeter-wave radar. There is a radar module (i.e., the second scanning unit), wherein the radar module comprises at least the following: a LiDAR and / or a millimeter-wave radar connected to the control unit. After the control unit has performed the frequency division processing, it can transmit a LiDAR synchronization signal and / or a millimeter-wave synchronization signal. After the radar module has received the LiDAR synchronization signal and / or the millimeter-wave synchronization signal (i.e., after receiving the frequency-divided signal generated by the processing unit in the control unit), the LiDAR data and / or the millimeter-wave radar data can be time-stamped and transmitted back to the processing unit (i.e.,By controlling the frequency-divided signal, third sample data is sent to the control unit. The processing unit receives the image data and also the time-stamped IMU data (i.e., the data generated by the first sampling unit, including the image data and sample data) as well as the time-stamped radar data (i.e., the third sample data, the LiDAR data, and / or the millimeter-wave radar data). The image data, the IMU data, and the radar data can then be synchronously aligned.

[0043] Optionally, the first sensor comprises an inertial sensor, a magnetometer, etc., and the second sensor may be an image sensor, for example, a conventional RGB image sensor, a depth image sensor, a thermal image sensor, etc.

[0044] In the embodiment of the present invention, the inertial sensor and the image sensor can be installed in the same camera. The synchronization transfer unit in the camera initiates synchronization, and the synchronization of the sampling data and the image data is performed on the camera side, so that the synchronization time becomes more accurate and strong platform compatibility is achieved. Furthermore, in the embodiment of the present invention, an MCU can be added to the camera to perform synchronization of multiple sensors, whereby the MCU control has strong real-time capability and can reduce the error deviation in the synchronization of the sampling data and the image data. Furthermore, by arranging the MCU in the camera, there are no requirements for the platform and computing power of the remote processing unit, thus ensuring strong compatibility across platforms. Example II

[0045] According to the embodiment of the present invention, an embodiment of a data synchronization method is provided. It should be noted that the steps shown in the flowchart of the figure may be performed in a computer system capable of executing instructions, such as a computer. Furthermore, while the flowchart depicts a logical sequence, under certain circumstances, the steps shown or described may be performed in a different order than that given herein.

[0046] Fig. 3 is a flowchart of an optional data synchronization method according to embodiments of the present invention. As in Fig. As shown in Figure 3, the method comprises the following steps: Step S302: The synchronization transfer unit controls, according to the first control signal transmitted from the control device, step 1 of first sampling data and the second sensor to generate second sampling data. Step S304: The first sample data is timestamped. Step S306: The time-stamped first sample data and the second sample data are sent to the control unit, and the control unit synchronously adjusts the first sample data and the second sample data based on the time-stamp.

[0047] By means of the steps described above, the synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the control unit; timestamps the first sample data; and sends the timestamped first sample data and the second sample data to the control unit, wherein the control unit synchronously adjusts the first sample data and the second sample data based on the timestamp. In the embodiment of the present invention, the sample data and the image data can be controlled by means of the synchronization transfer unit in the camera, and the sample data can be timestamped. The timestamped sample data and the image data are sent to the control unit.In this way, alignment between the sample data and the image data can be realized, so that the misalignment between the sample data is reduced and the user experience is improved, which in turn solves the technical problem that the corresponding technology cannot realize synchronization of multiple sample data.

[0048] In the following, the embodiment of the present invention will be explained in detail with reference to the steps described above.

[0049] In the exemplary embodiment of the present invention, the following steps are applied to cameras of on-vehicle devices installed in vehicles with multiple sensors. The camera and the control unit establish a connection in advance; the assemblies integrated into the camera include at least a synchronization transfer unit and a scanning unit; the scanning unit includes a first sensor and a second sensor; the synchronization transfer unit includes at least one serializer and may further include a microcontroller; the control unit includes a deserializer, an initial signal unit, and a processing unit; the first sensor may include an inertial sensor, a magnetometer, etc.; and in the detailed descriptions of the present exemplary embodiment, an inertial sensor is used as the first sensor by way of example.

[0050] In the embodiment of the present invention, before the synchronization adapter unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the control unit, the data synchronization method further includes: receiving an initialization signal transmitted from the control unit; starting a self-test process and an initialization process based on the initialization signal; and if the self-test was error-free and the initialization was completed, sending an initialization success signal to the control unit.

[0051] In the embodiment of the present invention, the control unit and the camera must first be powered on before the control unit begins a self-test and initializes the camera (i.e., after its self-test, the control unit sends an initialization signal to the camera). After the camera has received the initialization signal, it begins a self-test and initialization. After the camera's self-test has passed and initialization has been completed, if the synchronization transfer unit includes an MCU, the MCU can send an initialization success signal via various bus types (e.g., an I2C bus) (i.e., indicating that the camera's self-test was successful and initialization has been completed) and notify the remote processing unit via the serializer and deserializer (i.e.,send an initialization success signal to the ECU); if the synchronization transfer unit does not include an MCU, the serializer can send an initialization success signal using a specific bus type (e.g., an I2C bus) and notify the remote processing unit (i.e., send an initialization success signal to the ECU).

[0052] Step S302: The synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the controller.

[0053] In the embodiment of the present invention, the control device can transmit the first control signal via the deserializer after the frequency division processing. If the synchronization transfer unit comprises an MCU, reception via the serializer is possible in the MCU, i.e., the MCU receives the first control signal and generates the second control signal to synchronously control the first sensor to generate first sampling data and the second sensor to generate second sampling data; if the synchronization transfer unit does not comprise an MCU, reception via the serializer is possible in the sampling unit, i.e., the sampling unit receives the first control signal and synchronously controls the first sensor to generate first sampling data and the second sensor to generate second sampling data.

[0054] Step S304: The first sample data is timestamped.

[0055] In the exemplary embodiment of the present invention, if the synchronization transfer unit comprises an MCU, the first sensor can be synchronously controlled to generate first sample data and the second sensor can be synchronously controlled to generate second sample data using the second control signal generated by the MCU. At the same time, the IMU data (i.e., the first sample data) can be started to be timestamped; if the synchronization transfer unit does not comprise an MCU, the first sensor can be synchronously controlled to generate first sample data and the second sensor can be synchronously controlled to generate second sample data using the first control signal, the IMU data received at this time being timestamped.

[0056] Step S306: The time-stamped first sample data and the second sample data are sent to the control unit, and the control unit synchronously adjusts the first sample data and the second sample data based on the time-stamp.

[0057] In the embodiment of the present invention, after synchronizing the image data and the sample data (i.e., after the first sample data has been time-stamped), the time-stamped first sample data and the second sample data can be transmitted to the controller using differential low-voltage LVDS signals. Upon receiving the time-stamped first sample data and the second sample data, the controller can synchronously align the first sample data and the second sample data based on the time stamp. If the second sensor is an image sensor, the time stamp is configured as the time of the start of exposure of each image in the second sample data (i.e., image data).

[0058] Optionally, the synchronization transfer unit further comprises: serializer, wherein the data synchronization method further comprises: sending the first sample data and the second sample data to the control unit by means of the serializer.

[0059] In the embodiment of the present invention, the serializer in the synchronization transfer unit can send the aligned scan data and image data to the deserializer in the control unit of the vehicle device, whereupon the deserializer sends them to the processing unit.

[0060] In the embodiment of the present invention, the inertial sensor and the image sensor can be installed in the same camera. The synchronization transfer unit in the camera initiates synchronization, and on the camera side, the synchronization of the sampling data and the image data is performed, and the camera vibration data, which can be used for image stabilization, is acquired in real time. Furthermore, in the embodiment of the present invention, an MCU can be added to the camera to perform synchronization of multiple sensors, thereby providing strong real-time control of the MCU and reducing the error in synchronization of the sensors and images. Furthermore, by arranging the MCU in the camera, there are no requirements for the platform and computing power of the remote processing unit, thus ensuring compatibility with various platforms. Example III

[0061] Fig. 4 is a schematic diagram of another optional data synchronization device without a microcontroller according to an embodiment of the present invention. As in Fig. 4, the synchronization device comprises a control unit and a camera, wherein the assemblies integrated in the camera comprise at least one synchronization transfer unit and a scanning unit, wherein the synchronization transfer unit comprises at least one serializer, the scanning unit comprises a first sensor and a second sensor, wherein the first sensor may comprise an inertial sensor, a magnetometer, etc., wherein in the detailed descriptions of the present embodiment, an inertial sensor is used as the first sensor by way of example; and wherein the control unit comprises at least one initial signal unit, a processing unit, and a deserializer.

[0062] In the embodiment of the present invention, the scanning unit generates an image data transmission signal, an IMU data transmission signal, a frame synchronization signal for turning on the exposure, and a power supply, etc. These signals are transmitted to the synchronization transfer unit via an FPC cable. The synchronization transfer unit receives the image data and the IMU data and transmits them to the control unit via differential low-voltage LVDS signals. After the image data is transmitted to the processing unit in the control unit, the processing unit can synchronize the image data and the IMU data. Furthermore, image processing can be performed on the image data using a dedicated ISP in the processing unit.Image processing can also be performed using an ISP added to the camera's scanning unit before the image data is transferred to the processing unit in the control unit. A GPS reference clock signal can be generated in the control unit using an initial signal unit, which is then provided to the processing unit. The specific workflow is as follows: 11. The control unit and the camera are switched on, the control unit starts a self-test and initializes the camera. 21. After the camera receives the initialization signal from the processing unit, it begins a self-test and initialization. Once these are completed, the serializer sends an initialization success signal via the I2C bus and notifies the remote processing unit. The data from the microcontroller (MCU) is transferred to the processing unit via the I2C bus, the serializer, and the deserializer. 31. The processing unit provides the GPS reference clock signal (i.e., the initial signal) via the initial signal unit. After frequency division, the processing unit transmits the first control signal via the deserializer. This control signal is converted into a synchronization signal by the serializer and subsequently transmitted to the first sensor in the sampling unit. The IMU data received at this time (i.e., the first sample data) is timestamped. 41. After the sampling unit receives the synchronization signal sent by the serializer, it begins acquiring the image data (i.e., the second sample data). This image data is transmitted to the processing unit via the serializer and deserializer. The processing unit receives this image data, also stores the previously timestamped IMU data, and then performs a synchronous comparison of the image data with the IMU data.

[0063] In the embodiment of the present invention, Fig. 5 shows a timing diagram of the individual signals in an optional synchronization device without a microcontroller according to the embodiments of the present invention, comprising the following: an initial signal, a frequency-divided signal, second sensor data, and first sensor data (not synchronized). These signals are then used to compare the transmitted second sensor data and first sensor data.

[0064] In the embodiment of the present invention, the inertial sensor and the image sensor can be arranged together. Synchronization is triggered by the processing unit, and synchronization of the sensors is performed on the camera side, thus making the synchronization time more accurate and ensuring strong platform compatibility. Example IV

[0065] Fig. 6 is a schematic diagram of another optional dual-camera data synchronization device according to an embodiment of the present invention. As shown in Fig. 6, the synchronization device comprises a control unit, a camera A and a camera B, wherein camera A comprises a scanning unit A and a synchronization transfer unit A and camera B comprises a scanning unit B and a synchronization transfer unit B. The scanning unit comprises a first sensor and a second sensor, the synchronization transfer unit comprises a microcontroller and a serializer, the control unit comprises a deserializer, an initial signal unit and a processing unit, wherein the first sensor may comprise an inertial sensor, a magnetometer, etc., wherein in the detailed descriptions of the present embodiment, an inertial sensor is used as the first sensor by way of example.

[0066] In the embodiment of the present invention, the scanning unit generates an image data transmission signal, an IMU data transmission signal, a frame synchronization signal for turning on the exposure and a power supply, etc., and these signals are transmitted to the synchronization transfer unit via an FPC cable. The synchronization transfer unit receives the image data and the IMU data and transmits them to the controller via differential low-voltage LVDS signals. After the image data is transmitted to the processing unit in the controller, the processing unit can synchronize the image data with the GPS reference clock signal of the IMU data. Furthermore, image processing can be performed on the image data using a dedicated ISP in the processing unit.Image processing can also be performed using an ISP added to the camera's scanning unit before the image data is transferred to the processing unit in the control unit. A GPS reference clock signal can be generated in the control unit using an initial signal unit, which is then provided to the processing unit. The specific workflow is as follows: 12. The control unit and camera A and camera B are switched on, the control unit starts a self-test and initializes camera A and camera B. 22. After receiving the initialization signal from the processing unit, both camera A and camera B begin a self-test and initialization process. Once these are completed, the microcontroller (MCU) sends an initialization success signal via the I2C bus and notifies the remote processing unit via the serializer and deserializer. 32. The processing unit receives the initialization success signal sent from the MCU, the processing unit provides the GPS reference clock signal (ie the initial signal) by means of the initial signal unit and converts it, after frequency division, by means of the deserializer into the first control signal, which is received via the serializer on the MCU of camera A and camera B. 42. After both MCUs simultaneously receive the first control signal via the serializer, they convert it into the second control signal and send it to the first sensor in each of the two sampling units. At the same time, they begin to time-stamp the respective IMU data (i.e., the first sample data) and transmit it back to the processing unit via the serializer and deserializer. 52. After the second sensor in the two scanning units receives the second control signal, it begins acquiring the image data (the second scan data). This image data is transferred to the processing unit via the serializer and deserializer. The processing unit receives the image data from the two scanning units as well as the respective IMU data with a timestamp and then performs a synchronous comparison of the image data from camera A and camera B with the IMU data.

[0067] In the embodiment of the present invention, Fig. 7 shows a timing diagram of the individual signals in an optional dual-camera data synchronization device according to the exemplary embodiment of the present invention, comprising: an initial signal, a frequency-divided signal, a first control signal (A), a first control signal (B), second sensor data (A), first sensor data (A) (unsynchronized), second sensor data (B), and first sensor data (B) (unsynchronized). These signals are used to align the transmitted second sensor data and first sensor data.

[0068] In the embodiment of the present invention, the synchronization device can have multiple cameras and realize synchronization of multiple sample data among the cameras, requiring only a single controller. In the embodiment of the present invention, in the example with two cameras, the inertial sensor and the image sensor can be arranged together in each camera. The processing unit triggers synchronization, and the synchronization of the sensor data is performed on the camera side, so that the synchronization time becomes more accurate and strong platform compatibility is ensured. Furthermore, in the embodiment of the present invention, MCUs can be added to the cameras to perform synchronization of multiple sensors, whereby the MCU control has strong real-time capability and the error deviation in the synchronization of the sensor data can be reduced.In addition, locating the MCU in the cameras eliminates any requirements regarding the platform and computing power of the remote processing unit, ensuring strong compatibility across different platforms. Example V

[0069] Fig. Figure 8 is a schematic diagram of another optional radar data synchronization device according to an embodiment of the present invention. As shown in Fig. As shown in Figure 8, the synchronization device comprises a controller, a second scanning unit, and a camera, wherein the camera comprises a scanning unit and a synchronization transfer unit, and the scanning unit comprises a first sensor and a second sensor. The first sensor may comprise an inertial sensor, a magnetometer, etc. (in the detailed descriptions of the present embodiment, an inertial sensor is used as the first sensor by way of example). The synchronization transfer unit comprises a microcontroller and a serializer, the controller comprises a deserializer, an initial signal unit, and a processing unit, and the second scanning unit comprises at least one LiDAR and one millimeter-wave radar. (The second scanning unit may further comprise an ultrasonic radar, etc.)The detailed description of the present embodiment is based on the example of a data synchronization device with LiDAR and / or millimeter wave radar.).

[0070] In the embodiment of the present invention, the scanning unit generates an image data transmission signal, an IMU data transmission signal, a frame synchronization signal for turning on the exposure, and a power supply, etc. These signals are transmitted to the synchronization transfer unit via an FPC cable. The synchronization transfer unit receives the images and IMU data and transmits them to the controller via differential low-voltage (LVDS) signals. After the images are transmitted to the processing unit in the controller, the processing unit can synchronize the image data and the GPS reference clock signal of the IMU data. Furthermore, image processing can be performed on the image data using a dedicated ISP in the processing unit.Image processing can also be performed using an ISP added to the camera's scanning unit before the image data is transferred to the processing unit in the control unit. A GPS reference clock signal can be generated in the control unit using an initial signal unit, which is then provided to the processing unit. The processing unit in the control unit generates a LiDAR synchronization signal and a millimeter-wave synchronization signal, and the LiDAR and millimeter-wave radar data are synchronized. The specific workflow is as follows: 13. The control unit, the camera and the radar (ie the second scanning unit) are switched on, the control unit starts a self-test and initializes the camera and the radar. 23. After the camera receives the initialization signal from the processing unit, it begins a self-test and initialization. Once these are completed, the microcontroller (MCU) sends an initialization success signal via the I2C bus and notifies the remote processing unit via the serializer and deserializer. 33. The processing unit receives the initialization success signal sent from the MCU, the processing unit provides the GPS reference clock signal (ie, the initial signal) by means of the initial signal unit, and converts it into the first control signal after frequency division by means of the deserializer, which is received via the serializer on the MCU of the camera, whereby the radar synchronization signal (including the LiDAR synchronization signal and the millimeter wave synchronization signal) is sent out. 43. After the MCU receives the first control signal via the serializer, it converts it into the second control signal and sends it to the first sensor in the sampling unit. At the same time, it begins timestamping the IMU data (i.e., the first sample data) and transmits it back to the processing unit via the serializer and deserializer. 53. After the second sensor in the scanning unit receives the second control signal, the data is transferred to the processing unit via the serializer and deserializer. The processing unit receives the image data (the second scan data) from the scanning unit, as well as the time-stamped IMU data, as well as the time-stamped LiDAR and millimeter-wave radar data (the third scan data). Finally, a synchronous comparison of the image data, IMU data, LiDAR data, and millimeter-wave radar data from the camera is performed.

[0071] In the embodiment of the present invention, Fig. 9 is a timing diagram of the individual signals in an optional radar data synchronization device according to the exemplary embodiment of the present invention, including an initial signal, a frequency-divided signal, a first control signal, second sensor data, first sensor data (unsynchronized), a LiDAR synchronization signal, LiDAR data, a millimeter-wave synchronization signal, and millimeter-wave radar data. These signals are used to synchronize the sampled data (including image data, inertial sampled data, LiDAR data, and millimeter-wave radar data).

[0072] In the embodiment of the present invention, an inertial sensor and an inertial sensor can be arranged together. The processing unit triggers the synchronization, and the synchronization of the sensor data is performed on the camera side. Furthermore, various types of sensors, such as LiDAR, millimeter-wave radar, ultrasonic radar, etc., can be supported, thus making the synchronization time more accurate and providing strong platform compatibility. Furthermore, in the embodiment of the present invention, MCUs can be added to the cameras to perform synchronization of multiple sensors, thereby providing strong real-time capability for MCU control and reducing the error deviation in the synchronization of the sensor data.In addition, locating the MCU in the cameras eliminates any requirements regarding the platform and computing power of the remote processing unit, ensuring strong compatibility across different platforms.

[0073] According to another aspect of the present invention, a computer-readable storage medium is further provided, characterized in that the computer-readable storage medium comprises a stored computer program and, upon execution of the computer program, the device on which the computer-readable storage medium is located is controlled so that it executes one of the data synchronization methods for a vehicle device described above.

[0074] The serial numbers of the above-described embodiments of the present invention are for descriptive purposes only and do not indicate the advantages and disadvantages of the embodiments.

[0075] In the above-described embodiments of the present invention, the descriptions of the various embodiments each have their own emphases. For parts not described in detail in some embodiments, reference can be made to the corresponding descriptions of other embodiments.

[0076] In the embodiments provided by the present application, it should be understood that the disclosed technical content can also be implemented in other ways. The above-described embodiments of the device are only schematic. For example, the division of units may be a division according to logical functions. In actual implementation, a different division method may be used. For example, multiple units or assemblies may be combined or integrated into another system, or some features may be omitted or not implemented. Furthermore, the mutual couplings or direct couplings or communication connections shown or discussed may be established by means of interfaces, and indirect couplings or communication connections between units or modules may be electrical or other.

[0077] The units depicted as separate components may or may not be physically separate. The components depicted as units may or may not be physical units. These may be located at one location or distributed across multiple units. Depending on actual needs, some or all of the units may be selected to achieve the objectives of the solutions of the present embodiments.

[0078] Furthermore, in the embodiments of the present invention, the functional units may be integrated into a processing unit; the individual units may also exist physically separately; and two or more units may also be integrated into a single unit. The integrated units described above may be implemented in both hardware and software functional units.

[0079] If the integrated units are implemented as software functional units and sold or used as stand-alone products, they may be stored on computer-readable storage media. Based on such an understanding, the technical solutions of the present invention themselves, or the parts that contribute to the current technology, or all or some of these technical solutions, may be embodied in the form of software products. These computer software products are stored on storage media that include some instructions with which a computer device (which may be a workstation, a server, or a network device, etc.) can execute all or part of the steps of the methods in the embodiments of the present invention. The aforementioned storage media include various types of media on which program code can be stored, such as:USB storage devices, read-only memory (ROM), random access memory (RAM), portable hard disks, floppy disks or optical storage devices, etc.

[0080] Only the preferred embodiments of the present invention have been described above. It should be understood that those of ordinary skill in the art may further make improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of the present invention.

Claims

[1] Data synchronization device, characterized by that it comprises the following: control unit and camera, wherein at least the following assemblies are integrated in the camera: synchronization transfer unit and scanning unit, wherein the scanning unit comprises a first sensor and a second sensor, the control unit sends a first control signal to the synchronization transfer unit; the synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal and provides the first sample data with a time stamp; the controller receives the first sample data and the second sample data and synchronously adjusts the first sample data and the second sample data based on the timestamp. [2] Data synchronization device according to claim 1, characterized bythat, before the control unit sends a first control signal to the synchronization transfer unit, it comprises: After the camera receives an initialization signal sent from the control unit, it starts a self-test and initialization, and after the self-test is successful and the initialization is completed, it sends an initialization success signal to the control unit; After the control unit receives the initialization success signal, it sends a first control signal to the synchronization transfer unit. [3] Data synchronization device according to claim 1, characterized by that the control unit comprises: initial signal unit, processing unit and deserializer, where the initial signal unit serves to send an initial signal to the processing unit; the processing unit serves to frequency divide the initial signal and generates a frequency-divided signal; the deserializer serves to generate the first control signal according to the frequency-divided signal. [4] Data synchronization device according to claim 3, characterized by that the data synchronization device further comprises: a serializer which serves to receive the first control signal transmitted by the deserializer in the control unit and generates synchronization signals to control the first sensor and the second sensor, respectively. [5] Data synchronization device according to claim 4, characterized by that the data synchronization device further comprises: a microcontroller which serves to receive the synchronization signal transmitted by the serializer and generates a second control signal in order to synchronously control the first sensor and the second sensor. [6] Data synchronization device according to claim 5, characterized by that, if the microcontroller is not installed in the synchronization transfer unit, the serializer and the first sensor are connected via a first bus; if the microcontroller is installed in the synchronization transfer unit, the first sensor and the microcontroller are connected via a second bus. [7] Data synchronization device according to claim 3, characterized bythat the data synchronization device further comprises: a second sampling unit which serves to receive the frequency-divided signal generated by the processing unit in the control unit and, controlled by the frequency-divided signal, sends third sampling data to the control unit so that the third sampling data and the data generated by the first sampling unit are synchronously aligned, wherein the second sampling unit comprises at least one of the following components: LiDAR, millimeter-wave radar, ultrasonic radar. [8] Data synchronization device according to claim 1, characterized by that the first sensor comprises at least one of the following components: inertial sensor, magnetometer, wherein the second sensor is an image sensor. [9] Data synchronization method, characterized bythat it is used for the camera of a vehicle device, the camera and a control unit establish a connection in advance, at least the following components are integrated in the camera: Synchronization transfer unit and scanning unit, wherein the scanning unit comprises a first sensor and a second sensor and the data synchronization method comprises: The synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the control device; timestamps the first sample data; sends the time-stamped first sample data and the second sample data to the control unit, wherein the control unit synchronously adjusts the first sample data and the second sample data based on the time stamp. [10] Data synchronization method according to claim 9, characterized by that, before the synchronization transfer unit synchronously controls the first sensor to generate first sample data and the second sensor to generate second sample data according to the first control signal transmitted from the control unit, the data synchronization method further comprises: Receiving an initialization signal transmitted by the control unit; Starting a self-test process and an initialization process based on the initialization signal; If the self-test was error-free and initialization was completed, send an initialization success signal to the control unit. [11] Data synchronization method according to claim 9, characterized by that the synchronization transfer unit further comprises: serializer, wherein the data synchronization method further comprises: Sending the first sample data and the second sample data to the control unit using the serializer. [12] Computer-readable storage medium, characterized by that the computer-readable storage medium comprises a stored computer program and, upon execution of the computer program, the device on which the computer-readable storage medium is located is controlled so that it executes a data synchronization method according to one of claims 9 to 11.