Data synchronization device and method thereof, and computer readable storage medium

By using a combination of a synchronization transfer unit and a control unit in the data synchronization device, synchronization of multiple sensor data is achieved, solving the problem of difficult synchronization in the existing technology, and improving user experience and platform compatibility.

CN116156073BActive Publication Date: 2024-08-27ARCSOFT CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111350965.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-08-27
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

The existing technology cannot achieve synchronization of multiple sensing data, making it difficult to synchronize the control unit with sensors other than inertial sensors and cameras, and the synchronization error is large, which affects the user experience.

Method used

A data synchronization device is designed, including a control unit and a synchronization transfer unit in the camera. The first sensor and the second sensor are synchronously controlled to generate data through control signals, and a time stamp is set on the data to ensure that the data is synchronized in the control unit. Alignment.

Benefits of technology

It achieves the synchronization of multiple sensor data, reduces synchronization errors, improves user experience, and is compatible with multiple platforms without requiring the platform and computing power of the remote processing unit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156073B
    Figure CN116156073B
Patent Text Reader

Abstract

The present invention discloses a data synchronization device and method thereof, and a computer-readable storage medium. The synchronization device includes: a control unit and a camera, wherein the components integrated in the camera include at least: a synchronization switching unit and a sensor unit, wherein the sensor unit includes a first sensor and a second sensor, the control unit sends a first control signal to the synchronization switching unit, the synchronization switching unit synchronously controls the first sensor to generate first sensor data and the second sensor to generate second sensor data according to the first control signal, and sets a timestamp on the first sensor data, the control unit receives the first sensor data and the second sensor data, and synchronizes and aligns the first sensor data and the second sensor data based on the timestamp. The present invention solves the technical problem that the synchronization of multiple sensor data cannot be achieved in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data synchronization device and method thereof, and a computer-readable storage medium. Background Art

[0002] With the development of smart cars, autonomous driving technology has been widely used in smart cars. More and more cars are equipped with autonomous driving functions, which are based on various on-board sensors to perceive the various states of the vehicle itself and the surrounding environment, and then make driving strategies. Synchronization of data collection through sensors is crucial for the autonomous driving function of smart cars.

[0003] In the related technology, a common data synchronization method is: the sensor synchronization only synchronizes the inertial sensor IMU and the camera, and triggers the synchronization of the IMU and the camera through the interruption of the IMU itself. However, this synchronization method has obvious disadvantages: triggering the synchronization through the IMU will cause it to be disconnected from the control unit, and it is impossible to synchronize the control unit with sensors other than the IMU and the camera; at the same time, this synchronization method cannot synchronize multiple sensor data and image data on the camera side, and can only perform synchronization processing on the control unit side, which can easily cause the synchronization error to expand and reduce the user experience.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a data synchronization device and method thereof, and a computer-readable storage medium, so as to at least solve the technical problem that synchronization of multiple sensor data cannot be achieved in the related art.

[0006] According to one aspect of an embodiment of the present invention, a data synchronization device is provided, comprising: a control unit and a camera, wherein the components integrated in the camera include at least: a synchronization switching unit and a sensing unit, wherein the sensing unit includes a first sensor and a second sensor, and the control unit sends a first control signal to the synchronization switching unit; the synchronization switching unit synchronously controls the first sensor to generate first sensing data and the second sensor to generate second sensing data according to the first control signal, and sets a timestamp on the first sensing data; the control unit receives the first sensing data and the second sensing data, and synchronously aligns the first sensing data and the second sensing data based on the timestamp.

[0007] Optionally, before the control unit sends the first control signal to the synchronous switching unit, it includes: after receiving the initialization signal sent by the control unit, the camera starts self-checking and initialization, and after the self-check is fault-free and the initialization is completed, sends an initialization success signal to the control unit; after receiving the initialization success signal, the control unit sends the first control signal to the synchronous switching unit.

[0008] Optionally, the control unit includes: an initial signal unit, a processing unit and a deserializer, wherein the initial signal unit is used to send an initial signal to the processing unit; the processing unit is used to perform frequency division processing on the initial signal and generate a frequency division signal; and the deserializer is used to generate the first control signal according to the frequency division signal.

[0009] Optionally, the synchronous adapter unit further includes: a serializer, configured to receive the first control signal sent by the deserializer in the control unit, and generate a synchronization signal to control the first sensor and the second sensor respectively.

[0010] Optionally, the synchronous switching unit further includes: a microcontroller, configured to receive the synchronization signal sent by the serializer, and generate a second control signal to synchronously control the first sensor and the second sensor.

[0011] Optionally, when the microcontroller is not provided in the synchronous switching unit, the serializer and the first sensor are connected by a first bus; when the microcontroller is provided in the synchronous switching unit, the first sensor and the microcontroller are connected by a second bus.

[0012] Optionally, the data synchronization device also includes: a second sensing unit, used to receive the frequency division signal generated by the processing unit in the control unit, and send third sensing data to the control unit under the control of the frequency division signal, so that the third sensing data is synchronized with the data generated by the first sensing unit, wherein the second sensing unit includes at least one of the following: laser radar, millimeter wave radar, ultrasonic radar.

[0013] Optionally, the first sensor includes at least one of the following: an inertial sensor, a magnetometer, and the second sensor is an image sensor.

[0014] According to one aspect of an embodiment of the present invention, there is provided a data synchronization method, which is applied to a camera of an on-board device, wherein the camera is pre-connected with a control unit, and the components integrated in the camera include at least: a synchronization switching unit and a sensing unit, wherein the sensing unit includes a first sensor and a second sensor, and the data synchronization method includes: the synchronization switching unit synchronously controls the first sensor to generate first sensing data and the second sensor to generate second sensing data according to a first control signal transmitted by the control unit; sets a timestamp on the first sensing data; and sends the first sensing data and the second sensing data with the timestamp to the control unit, wherein the control unit synchronously aligns the first sensing data and the second sensing data based on the timestamp.

[0015] Optionally, before the synchronization switching unit synchronously controls the first sensor to generate first sensor data and the second sensor to generate second sensor data according to the first control signal transmitted by the control unit, the data synchronization method also includes: receiving an initialization signal transmitted by the control unit; starting a self-check operation and an initialization operation based on the initialization signal; and sending an initialization success signal to the control unit when there is no fault in the self-check and the initialization is completed.

[0016] Optionally, the synchronization adapter unit further includes: a serializer, and the data synchronization method further includes: sending the first sensing data and the second sensing data to the control unit through the serializer.

[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the data synchronization methods described above.

[0018] In the present disclosure, the data synchronization device includes: a control unit and a camera, wherein the components integrated in the camera include at least: a synchronization adapter unit and a sensor unit, wherein the sensor unit includes a first sensor and a second sensor, the control unit sends a first control signal to the synchronization adapter unit, the synchronization adapter unit synchronously controls the first sensor to generate first sensor data and the second sensor to generate second sensor data according to the first control signal, and sets a timestamp on the first sensor data, the control unit receives the first sensor data and the second sensor data, and synchronizes and aligns the first sensor data and the second sensor data based on the timestamp. In the present application, the synchronization adapter unit in the camera can set a timestamp on the first sensor data (for example, inertial sensor data), synchronize the first sensor data and the second sensor data (for example, image data), and the control unit can synchronize and align the two sensor data based on the timestamp, which can reduce the error between multiple sensor data, improve the user experience, and thus solve the technical problem that the synchronization of multiple sensor data cannot be achieved in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 is a schematic diagram of an optional data synchronization device with a microcontroller according to an embodiment of the present invention;

[0021] Figure 2 is a timing diagram of various signals in an optional data synchronization device with a microcontroller according to an embodiment of the present invention;

[0022] Figure 3 is a flow chart of an optional data synchronization method according to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of another optional data synchronization device not including a microcontroller according to an embodiment of the present invention;

[0024] Figure 5 is an optional timing diagram of various signals in a synchronization device not including a microcontroller according to an embodiment of the present invention;

[0025] Figure 6 is a schematic diagram of another optional data synchronization device with dual cameras according to an embodiment of the present invention;

[0026] Figure 7 is a timing diagram of various signals in an optional synchronization device with dual cameras according to an embodiment of the present invention;

[0027] Figure 8 is a schematic diagram of another optional data synchronization device with radar according to an embodiment of the present invention;

[0028] Fig. 9 It is a timing diagram of various signals in an optional synchronization device with radar according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:

[0032] IMU: Inertial Measurement Unit, a sensor mainly used to detect and measure acceleration and rotational motion.

[0033] MCU: Microcontroller Unit, a microcontroller unit, appropriately reduces the frequency and specifications of the central processing unit (processing unit), and integrates peripheral interfaces such as memory, counter, USB, A / D conversion, UART, PLC, DMA, and even LCD driver circuits on a single chip to form a chip-level computer, which can perform different combination controls for different application scenarios, such as automotive electronics control.

[0034] The following embodiments of the present invention can be applied to scenarios where multiple data need to be synchronized, for example, vehicle-mounted devices configured on various vehicles with multiple sensors, where the vehicles include but are not limited to: cars, buses, motorcycles, airplanes, trains, etc.

[0035] In an exemplary embodiment, the present invention can set the inertial sensor IMU and the image sensor in the same camera, collect the jitter data of the camera in real time through the IMU, and then synchronize the image data obtained by the image sensor with the jitter data through the synchronization adapter unit on the camera, and transmit the synchronized image data and jitter data to the remote control unit, so as to achieve image anti-shake. At the same time, the synchronization adapter unit can be configured in the camera, so that it has the advantage of strong real-time performance, can reduce the error of synchronization between image data and jitter data, and has no requirements on the platform and computing power of the remote processing unit, and can be compatible with multiple platforms.

[0036] Embodiment 1

[0037] Figure 1 is a schematic diagram of an optional data synchronization device with a microcontroller according to an embodiment of the present invention, such as Figure 1 As shown, the synchronization device includes: a control unit and a camera, wherein the components integrated in the camera include at least: a synchronization adapter unit and a sensor unit, wherein the synchronization adapter unit includes: a microcontroller and a serializer, and the sensor unit includes a first sensor and a second sensor; the control unit includes at least: an initial signal unit, a processing unit, and a deserializer.

[0038] In an embodiment of the present invention, a control unit sends a first control signal to a synchronization switching unit, and the synchronization switching unit synchronously controls the first sensor to generate first sensor data and the second sensor to generate second sensor data according to the first control signal, and sets a timestamp on the first sensor data; the control unit receives the first sensor data and the second sensor data, and synchronously aligns the first sensor data and the second sensor data based on the timestamp, wherein the first sensor may include an inertial sensor, a magnetometer, etc., and this embodiment is described in detail by taking the first sensor being an inertial sensor as an example.

[0039] In an embodiment of the present invention, a synchronous switching unit receives data from a sensing unit (i.e., first sensing data and second sensing data), and after synchronizing the image data and the IMU data (i.e., synchronously controlling the first sensor and the second sensor according to a second control signal generated by a microcontroller), transmits the data to a control unit through a low voltage differential signal LVDS (i.e., transmitting the synchronized first sensor and the second sensor to the control unit). After the image is transmitted to a processing unit on the control unit, image processing can be performed through an ISP module built into the processing unit, or an ISP module can be added to the sensing unit on the camera before the image data is transmitted to the processing unit on the control unit. The control unit can generate a GPS reference clock signal (i.e., an initial signal) through an initial signal unit and provide it to the processing unit. The processing unit performs frequency division processing according to the GPS reference clock signal to obtain clock frequency division information (i.e., a frequency division signal). Afterwards, the deserializer generates a first control signal according to the frequency division signal, and transmits the first control signal to the serializer. The serializer generates a synchronization signal according to the first control signal, and transmits it to the microcontroller. The microcontroller can generate a second control signal according to the synchronization signal.

[0040] In an embodiment of the present invention, after receiving the first sensor data and the second sensor data with timestamps, the control unit can synchronize the first sensor data and the second sensor data based on the timestamp, wherein, when the second sensor is an image sensor, the timestamp is set according to the start exposure moment of each frame image in the second sensor data (i.e., image data).

[0041] The specific workflow is as follows:

[0042] 10. The control unit and camera are powered on, and the control unit starts self-checking and initializes the camera.

[0043] 20. After receiving the initialization signal from the processing unit, the camera starts self-checking and initialization. After completion, the microcontroller (MCU) sends an initialization success signal through the I2C bus and notifies the remote processing unit through the serializer and deserializer.

[0044] 30. The processing unit receives the initialization success signal sent by the MCU, and provides the GPS reference clock signal (ie, the initial signal) through the initial signal unit. After frequency division, the first control signal is sent out through the deserializer, and is connected to the MCU through the serializer.

[0045] 40. After receiving the first control signal, the MCU converts it into a second control signal after passing through the serializer and sends it to the first sensor in the sensor unit. At the same time, it starts to timestamp the IMU data (i.e., the first sensor data) and sends it back to the processing unit through the serializer and deserializer.

[0046] 50. After receiving the second control signal, the second sensor in the sensing unit starts to collect image data (i.e., the second sensing data). The image data is transmitted to the processing unit through the serializer and deserializer. The processing unit receives this frame of image data and also receives the IMU data with a timestamp, and then synchronizes the image data and the IMU data.

[0047] In an embodiment of the present invention, Figure 2 It is a timing diagram of various signals in an optional data synchronization device with a microcontroller according to an embodiment of the present invention, including: an initial signal, a frequency division signal, a first control signal, first sensor data (unsynchronized), first sensor data (after synchronization alignment processing), and second sensor data. Through these signals, the transmitted second sensor data is aligned with the first sensor data.

[0048] Optionally, before the control unit sends the first control signal to the synchronous switching unit, it includes: after receiving the initialization signal sent by the control unit, the camera starts self-checking and initialization, and after self-checking is fault-free and initialization is completed, sends an initialization success signal to the control unit; after receiving the initialization success signal, the control unit sends the first control signal to the synchronous switching unit.

[0049] In an embodiment of the present invention, it is necessary to first power on the control unit and the camera, and then the control unit starts self-checking and initializes the camera (i.e., after the control unit self-checks, it sends an initialization signal to the camera). After receiving the initialization signal, the camera starts self-checking and initialization. After the camera self-checks without any faults and the initialization is completed, if the synchronous switching unit includes a microcontroller MCU, the MCU can send an initialization success signal (i.e., indicating that the camera self-checks without any faults and the initialization is completed) through various types of buses (for example, an I2C bus), and notify the remote processing unit (i.e., the processing unit located on the control unit) through the serializer and deserializer. After receiving the initialization success signal sent by the MCU, the processing unit sends a first control signal to the synchronous switching unit.

[0050] Optionally, the control unit includes: an initial signal unit, a processing unit and a deserializer, wherein the initial signal unit is used to send an initial signal to the processing unit; the processing unit is used to perform frequency division on the initial signal and generate a frequency division signal; the deserializer is used to generate a first control signal according to the frequency division signal.

[0051] In an embodiment of the present invention, after the processing unit receives the initialization success signal sent by the MCU, the processing unit can perform frequency division processing (the processing unit is used to perform frequency division processing on the initial signal) through the GPS reference clock signal provided by the initial signal unit (that is, the initial signal unit is used to send the initial signal to the processing unit) to obtain clock frequency division information (that is, the frequency division signal), and the deserializer is used to generate a first control signal based on the frequency division signal.

[0052] Optionally, the synchronous switching unit further includes: a serializer, which is used to receive a first control signal sent by a deserializer in the control unit, and generate a synchronization signal to control the first sensor and the second sensor respectively.

[0053] In the embodiment of the present invention, the control unit may send out the first control signal through the deserializer after the frequency division processing, and the serializer may generate a synchronization signal according to the first control signal to control the first sensor and the second sensor respectively.

[0054] Optionally, the synchronous switching unit further includes: a microcontroller, configured to receive a synchronization signal sent by the serializer, and generate a second control signal to synchronously control the first sensor and the second sensor.

[0055] In an embodiment of the present invention, the serializer generates a synchronization signal according to the first control signal, transmits the synchronization signal to the microcontroller, and the microcontroller generates a second control signal according to the synchronization signal to synchronously control the first sensor and the second sensor.

[0056] Optionally, when a microcontroller is not provided in the synchronous switching unit, the serializer and the first sensor are connected by a first bus; when a microcontroller is provided in the synchronous switching unit, the first sensor and the microcontroller are connected by a second bus.

[0057] In an embodiment of the present invention, when a microcontroller is not provided in the synchronous adapter unit, the inertial sensor (i.e., the first sensor) and the serializer are directly connected using a first bus (e.g., an I2C bus); if the components of the synchronous adapter unit include a microcontroller (i.e., an MCU) in addition to the serializer, the inertial sensor and the microcontroller are directly connected using a second bus.

[0058] Optionally, the data synchronization device also includes: a second sensing unit, used to receive the frequency division signal generated by the processing unit in the control unit, and send third sensing data to the control unit under the control of the frequency division signal, so that the third sensing data is synchronously aligned with the data generated by the first sensing unit, wherein the second sensing unit includes at least one of the following: laser radar, millimeter wave radar, ultrasonic radar.

[0059] In an embodiment of the present invention, the data synchronization device includes a laser radar and / or a millimeter-wave radar as an example: a radar module (i.e., a second sensing unit), wherein the radar module at least includes: a laser radar and / or a millimeter-wave radar, which is connected to a control unit, and after the control unit performs frequency division processing, a laser radar synchronization signal and / or a millimeter-wave synchronization signal can be sent. After receiving the laser radar synchronization signal and / or the millimeter-wave synchronization signal (i.e., after receiving the frequency division signal generated by the processing unit in the control unit), the radar module can timestamp the laser radar data and / or the millimeter-wave radar data and transmit it back to the processing unit (i.e., sending the third sensing data to the control unit under the control of the frequency division signal). After the processing unit receives the image data, the IMU data carrying the timestamp (i.e., the data generated by the first sensing unit, including: image data and sensing data) and the radar data carrying the timestamp (i.e., the third sensing data, the laser radar data and / or the millimeter-wave radar data), the image data, the IMU data and the radar data can be synchronized and aligned.

[0060] Optionally, the first sensor includes an inertial sensor, a magnetometer, etc., and the second sensor is an image sensor, for example, a common RGB image sensor, a depth image sensor, a thermal imaging sensor, etc.

[0061] In an embodiment of the present invention, the inertial sensor and the image sensor can be configured in the same camera, and the synchronization is initiated by the synchronization adapter unit in the camera. The sensor data and the image data are synchronized on the camera end, which can make the synchronization time accurate and the platform compatibility strong. In addition, an MCU can be added to the camera to synchronize multiple sensors. The real-time control of the MCU is strong, which can reduce the error of synchronization of sensor data and image data. Moreover, placing the MCU on the camera has no requirements on the platform and computing power of the remote processing unit, and the compatibility of multiple platforms is very strong.

[0062] Embodiment 2

[0063] According to an embodiment of the present invention, a data synchronization method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0064] Figure 3 is a flow chart of an optional data synchronization method according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0065] Step S302 : The synchronization switching unit synchronously controls the first sensor to generate first sensing data and the second sensor to generate second sensing data according to the first control signal transmitted by the control unit.

[0066] Step S304: setting a timestamp on the first sensing data.

[0067] Step S306: sending the first sensing data and the second sensing data with the timestamp to the control unit, wherein the control unit synchronizes the first sensing data and the second sensing data based on the timestamp.

[0068] Through the above steps, the synchronization switching unit synchronously controls the first sensor to generate the first sensor data and the second sensor to generate the second sensor data according to the first control signal transmitted by the control unit; sets a timestamp on the first sensor data; and sends the first sensor data and the second sensor data with the timestamp to the control unit, wherein the control unit synchronously aligns the first sensor data and the second sensor data based on the timestamp. In an embodiment of the present invention, the sensor data and the image data can be synchronously controlled by the synchronization switching unit in the camera, and a timestamp can be set on the sensor data, and the sensor data and the image data with the timestamp can be sent to the control unit, so that the alignment processing between the sensor data and the image data can be realized, the error between multiple sensor data can be reduced, and the user experience can be improved, thereby solving the technical problem that the synchronization of multiple sensor data cannot be realized in the related technology.

[0069] The embodiment of the present invention is described in detail below in combination with the above steps.

[0070] In an embodiment of the present invention, the following steps are applied to a camera of a vehicle-mounted device configured on various vehicles with multiple sensors. A connection is established in advance between the camera and the control unit. The components integrated in the camera include at least: a synchronization adapter unit and a sensor unit. The sensor unit includes a first sensor and a second sensor. The synchronization adapter unit includes at least: a serializer and may also 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. This embodiment is described in detail using the example that the first sensor is an inertial sensor.

[0071] In an embodiment of the present invention, before the synchronization switching unit synchronously controls the first sensor to generate first sensor data and the second sensor to generate second sensor data according to the first control signal transmitted by the control unit, the data synchronization method also includes: receiving an initialization signal transmitted by the control unit; based on the initialization signal, starting a self-check operation and an initialization operation; and sending an initialization success signal to the control unit when there is no fault in the self-check and the initialization is completed.

[0072] In an embodiment of the present invention, it is necessary to first power on the control unit and the camera, and then the control unit starts self-checking and initializes the camera (i.e., after the control unit self-checks, it sends an initialization signal to the camera). After receiving the initialization signal, the camera starts self-checking and initialization. After the camera self-checks without any faults and the initialization is completed, if the synchronous adapter unit includes an MCU, the MCU can send an initialization success signal (i.e., indicating that the camera self-checks without any faults and the initialization is completed) through various types of buses (for example, an I2C bus), and notify the remote processing unit through a serializer and a deserializer (i.e., send an initialization success signal to the control unit); if the synchronous adapter unit does not include an MCU, the serializer can send an initialization success signal through a certain type of bus (for example, an I2C bus), and notify the remote processing unit (send an initialization success signal to the control unit).

[0073] Step S302 : The synchronization switching unit synchronously controls the first sensor to generate first sensing data and the second sensor to generate second sensing data according to the first control signal transmitted by the control unit.

[0074] In an embodiment of the present invention, the control unit may send a first control signal through a deserializer after frequency division processing. If the synchronous adapter unit includes an MCU, it may be connected to the MCU through a serializer, and the MCU receives the first control signal and generates a second control signal to synchronously control the first sensor to generate first sensor data and the second sensor to generate second sensor data; if the synchronous adapter unit does not include an MCU, it may be connected to the sensor unit through a serializer, and the sensor unit receives the first control signal and synchronously controls the first sensor to generate first sensor data and the second sensor to generate second sensor data.

[0075] Step S304: setting a timestamp on the first sensing data.

[0076] In an embodiment of the present invention, when the synchronization switching unit includes an MCU, the first sensor can be synchronously controlled to generate first sensor data and the second sensor can be synchronously controlled to generate second sensor data through a second control signal generated by the MCU, and at the same time, a timestamp can be started on the IMU data (i.e., the first sensor data); if the synchronization switching unit does not include an MCU, the first control signal can be synchronously controlled to generate first sensor data and the second sensor can be synchronously controlled to generate second sensor data, and at the same time, a timestamp can be put on the IMU data received at this moment.

[0077] Step S306: sending the first sensing data and the second sensing data with the timestamp to the control unit, wherein the control unit synchronizes the first sensing data and the second sensing data based on the timestamp.

[0078] In an embodiment of the present invention, after the image data and the sensor data are synchronized (i.e., after a timestamp is set on the first sensor data), the first sensor data and the second sensor data with the timestamp can be transmitted to the control unit via a low voltage differential signal LVDS. After receiving the first sensor data and the second sensor data, the control unit can synchronize and align the first sensor data and the second sensor data based on the timestamp, wherein, when the second sensor is an image sensor, the timestamp is set according to the start exposure time of each frame of the second sensor data (i.e., the image data).

[0079] Optionally, the synchronization switching unit further includes: a serializer, and the data synchronization method further includes: sending the first sensor data and the second sensor data to the control unit through the serializer.

[0080] In the embodiment of the present invention, the aligned sensor data and image data can be sent to the deserializer on the control unit of the vehicle-mounted device through the serializer on the synchronous adapter unit, and then transmitted to the processing unit by the deserializer.

[0081] In an embodiment of the present invention, an inertial sensor and an image sensor can be configured in the same camera, and synchronization is initiated by a synchronization adapter unit in the camera. Sensor data and image data are synchronized on the camera side, and the camera jitter data is collected in real time, which can be used for image stabilization. In addition, an MCU can be added to the camera to synchronize multiple sensors. The MCU control has strong real-time performance and can reduce errors in synchronization of multiple sensors and image frames. Moreover, placing the MCU on the camera has no requirements for the platform and computing power of the remote processing unit and can be compatible with multiple platforms.

[0082] Embodiment 3

[0083] Figure 4 is a schematic diagram of another optional data synchronization device that does not include a microcontroller according to an embodiment of the present invention, such as Figure 4 As shown, the synchronization device includes: a control unit and a camera, wherein the components integrated in the camera include at least: a synchronization adapter unit and a sensor unit, wherein the synchronization adapter unit includes at least: a serializer, and the sensor unit includes: a first sensor and a second sensor, wherein the first sensor may include an inertial sensor, a magnetometer, etc., and this embodiment is described in detail by taking the first sensor being an inertial sensor as an example; the control unit includes at least: an initial signal unit, a processing unit, and a deserializer.

[0084] In the embodiment of the present invention, the sensing unit leads to the transmission image data signal, the transmission IMU data signal, the frame synchronization signal for starting exposure, and the power supply, etc. These signals are connected to the synchronization adapter unit through the FPC cable. The synchronization adapter unit receives the image data and the IMU data, and transmits them to the control unit through the low voltage differential signal LVDS. After the image data is transmitted to the processing unit on the control unit, the image data and the IMU data can be synchronized in the processing unit. In addition, the image data can be processed by the ISP built in the processing unit, or by adding an ISP to the sensing unit on the camera before the image data is transmitted to the processing unit on the control unit. The control unit can generate a GPS reference clock signal through the initial signal unit and provide it to the processing unit. The specific workflow is as follows:

[0085] 11. The control unit and camera are powered on, and the control unit starts self-checking and initializes the camera.

[0086] 21. After receiving the initialization signal from the processing unit, the camera starts self-checking and initialization. After completion, the serializer sends an initialization success signal through the I2C bus to notify the remote processing unit. At the same time, the data of the microcontroller (MCU) is transmitted to the processing unit through the I2C bus and the serializer and deserializer.

[0087] 31. The processing unit provides a GPS reference clock signal (i.e., an initial signal) through the initial signal unit. After frequency division, the processing unit sends out a first control signal through a deserializer, which is converted into a synchronization signal through a serializer and then connected to the first sensor in the sensor unit. At the same time, a timestamp is added to the IMU data (i.e., the first sensor data) received at this moment.

[0088] 41. After receiving the synchronization signal from the serializer, the sensor unit starts to collect image data (i.e., the second sensor data). The image data is transmitted to the processing unit through the serializer and deserializer. The processing unit receives this frame of image data and also stores the IMU data that has been timestamped before, and then synchronizes the image data and IMU data.

[0089] In an embodiment of the present invention, Figure 5 It is an optional timing diagram of various signals in a microcontroller synchronization device according to an embodiment of the present invention, including: an initial signal, a frequency division signal, a second sensor data, and a first sensor data (unsynchronized). Afterwards, the transmitted second sensor data is aligned with the first sensor data through these signals.

[0090] In an embodiment of the present invention, the inertial sensor and the image sensor may be placed together, and synchronization may be initiated by the processing unit. Multiple sensor data synchronization may be performed on the camera end, so that the synchronization time is accurate and the platform compatibility is strong.

[0091] Embodiment 4

[0092] Figure 6 is a schematic diagram of another optional data synchronization device with dual cameras according to an embodiment of the present invention, such as Figure 6 As shown, the synchronization device includes: a control unit, a camera A and a camera B, wherein the camera A includes: a sensor unit A and a synchronization adapter unit A, the camera B includes: a sensor unit B and a synchronization adapter unit B, the sensor unit includes a first sensor and a second sensor, the synchronization adapter unit includes: a microcontroller and a serializer, the control unit includes: a deserializer, an initial signal unit and a processing unit, wherein the first sensor may include an inertial sensor, a magnetometer, etc., and this embodiment is described in detail by taking the first sensor being an inertial sensor as an example.

[0093] In the embodiment of the present invention, the sensor unit leads to the transmission of image data signals, transmission of IMU data signals, frame synchronization signals for opening exposure, and power, etc. These signals are connected to the synchronization adapter unit through the FPC cable. The synchronization adapter unit receives image data and IMU data, and transmits them to the control unit through the low voltage differential signal LVDS. After the image data is transmitted to the processing unit on the control unit, the image data and IMU data GPS reference clock signal can be synchronized in the processing unit. In addition, the image data can be processed by the ISP built into the processing unit, or by adding an ISP to the sensor unit on the camera before the image data is transmitted to the processing unit on the control unit. The control unit can generate a GPS reference clock signal through the initial signal unit and provide it to the processing unit. The specific workflow is as follows:

[0094] 12. The control unit and cameras A and B are powered on. The control unit starts self-checking and initializes cameras A and B.

[0095] 22. After receiving the initialization signal from the processing unit, camera A and camera B start self-checking and initialization. After completion, the microcontroller (MCU) sends an initialization success signal through the I2C bus and notifies the remote processing unit through the serializer and deserializer.

[0096] 32. The processing unit receives the initialization success signal sent by the MCU. The processing unit provides a GPS reference clock signal (i.e., the initial signal) through the initial signal unit. After frequency division, it is converted into a first control signal through a deserializer and connected to the MCU of camera A and camera B through a serializer.

[0097] 42. The two MCUs simultaneously receive the first control signal and then convert it into a second control signal after passing through the serializer and send it to the first sensors in the two sensor units respectively. At the same time, they start to timestamp their respective IMU data (i.e., the first sensor data) and send it back to the processing unit through the serializer and deserializer.

[0098] 52. After receiving the second control signal, the second sensor in the two sensor units starts to collect image data (second sensor data), and the image data is transmitted to the processing unit through the serializer and deserializer. The processing unit receives the image data of the two sensor units and also receives the IMU data with timestamps of each. Then, the image data of camera A and camera B and the IMU data are synchronized and aligned.

[0099] In an embodiment of the present invention, Figure 7 It is a timing diagram of various signals in an optional synchronization device with dual cameras according to an embodiment of the present invention, including: an initial signal, a frequency division signal, a first control signal (A), a first control signal (B), second sensor data (A), first sensor data (A) (unsynchronized), second sensor data (B), first sensor data (B) (unsynchronized), through which the transmitted second sensor data is aligned with the first sensor data.

[0100] In an embodiment of the present invention, the synchronization device may have multiple cameras, and may realize synchronization of multiple sensor data in multiple cameras, and only one control unit is required. The embodiment of the present invention takes two cameras as an example. In each camera, the inertial sensor and the image sensor may be placed together, and the synchronization is initiated by the processing unit. The multi-sensor data synchronization is performed on each camera end, which can make the synchronization time accurate and the platform compatibility strong. In addition, the embodiment of the present invention may add an MCU to the camera to synchronize multiple sensors. The real-time control of the MCU is strong, which can reduce the error of synchronization of multiple sensor data. Moreover, placing the MCU on the camera does not require the platform and computing power of the remote processing unit, and the compatibility of multiple platforms is strong.

[0101] Embodiment 5

[0102] Figure 8 is a schematic diagram of another optional data synchronization device with radar according to an embodiment of the present invention, such as Figure 8 As shown, the synchronization device includes: a control unit, a second sensing unit and a camera, wherein the camera includes: a sensing unit and a synchronization adapter unit, the sensing unit includes: a first sensor and a second sensor, wherein the first sensor may include an inertial sensor, a magnetometer, etc. (this embodiment is described in detail by taking the first sensor being an inertial sensor as an example), the synchronization adapter unit includes: a microcontroller and a serializer, the control unit includes: a deserializer, an initial signal unit and a processing unit, and the second sensing unit includes at least: a laser radar and a millimeter-wave radar (the second sensing unit may also include: an ultrasonic radar, etc., and this embodiment is described in detail by taking the data synchronization device including a laser radar and / or a millimeter-wave radar as an example).

[0103] In the embodiment of the present invention, the sensing unit leads to the transmission image data signal, the transmission IMU data signal, the frame synchronization signal for starting exposure, and the power supply, etc. These signals are connected to the synchronization adapter unit through the FPC cable. The synchronization adapter unit receives the image and IMU data and transmits them to the control unit through the low voltage differential signal LVDS. After the image is transmitted to the processing unit on the control unit, the image data and the IMU data GPS reference clock signal can be synchronized in the processing unit. In addition, the image data can be processed by the ISP built in the processing unit, or by adding an ISP to the sensing unit on the camera before the image data is transmitted to the processing unit on the control unit. The control unit can generate a GPS reference clock signal through the initial signal unit and provide it to the processing unit. The processing unit on the control unit leads to the laser radar synchronization signal and the millimeter wave synchronization signal to synchronize the laser radar and millimeter wave radar data. The specific workflow is as follows:

[0104] 13. The control unit, camera and radar (i.e., the second sensor unit) are powered on, and the control unit starts self-checking and initializes the camera and radar.

[0105] 23. After receiving the initialization signal from the processing unit, the camera starts self-checking and initialization. After completion, the microcontroller (MCU) sends an initialization success signal through the I2C bus and notifies the remote processing unit through the serializer and deserializer.

[0106] 33. The processing unit receives an initialization success signal from the MCU. The processing unit provides a GPS reference clock signal (i.e., an initial signal) through the initial signal unit. After frequency division, it is converted into a first control signal through a deserializer, and connected to the camera's MCU through a serializer. At the same time, a radar synchronization signal (including a lidar synchronization signal and a millimeter wave synchronization signal) is sent out.

[0107] 43. After receiving the first control signal, the MCU converts it into a second control signal and sends it to the first sensor in the sensor unit. At the same time, it starts to timestamp the IMU data (i.e., the first sensor data) and sends it back to the processing unit through the serializer and deserializer.

[0108] 53. After the second sensor in the sensing unit receives the second control signal, the data is transmitted to the processing unit through the serializer and deserializer. The processing unit receives the image data of the sensing unit (the second sensing data), and also receives the IMU data with timestamp. It also receives the lidar and millimeter-wave radar data with timestamp (the third sensing data). Finally, the image data of the camera, IMU data, lidar data, and millimeter-wave radar data are synchronously aligned.

[0109] In an embodiment of the present invention, Fig. 9It is an optional timing diagram of various signals in a synchronization device with a radar according to an embodiment of the present invention, including an initial signal, a frequency division signal, a first control signal, second sensor data, first sensor data (unsynchronized), a lidar synchronization signal, a lidar data, a millimeter wave synchronization signal, and millimeter wave radar data. Through these signals, the transmitted multi-sensor data (including image data, inertial sensor data, lidar data, and millimeter wave radar data) are aligned.

[0110] In an embodiment of the present invention, inertial sensors and inertial sensors can be placed together, and synchronization can be initiated by the processing unit to perform multi-sensor data synchronization on the camera side. It can also support multiple types of sensors such as lidar, millimeter-wave radar, ultrasonic radar, etc., which can make the synchronization time accurate and have strong platform compatibility. In addition, an MCU can be added to the camera to synchronize multiple sensors. The MCU control has strong real-time performance, which can reduce the error of multi-sensor data synchronization. Moreover, placing the MCU on the camera has no requirements for the platform and computing power of the remote processing unit, and the compatibility of multiple platforms is very strong.

[0111] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned vehicle-mounted device data synchronization methods.

[0112] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

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

[0114] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

[0116] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0118] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data synchronization device, characterized in that: include: A control unit and a camera, wherein the components integrated in the camera at least include: a synchronization switching unit and a first sensing unit, wherein the first sensing unit includes a first sensor and a second sensor, After receiving the initialization signal sent by the control unit, the camera starts self-checking and initialization, and after the self-check is fault-free and the initialization is completed, sends an initialization success signal to the control unit; After receiving the initialization success signal, the control unit sends a first control signal to the synchronous switching unit; The synchronization switching unit synchronously controls the first sensor to generate first sensing data and the second sensor to generate second sensing data according to the first control signal, and sets a timestamp on the first sensing data; The control unit receives the first sensing data and the second sensing data, and synchronously aligns the first sensing data and the second sensing data based on the timestamp; The synchronous transfer unit includes: a serializer, which is used to receive a first control signal sent by a deserializer in the control unit, and generate a synchronization signal to control the first sensor and the second sensor respectively; a microcontroller, which is used to receive the synchronization signal sent by the serializer, and generate a second control signal to synchronously control the first sensor and the second sensor; The control unit includes: an initial signal unit for sending an initial signal to a processing unit; a processing unit for performing frequency division processing on the initial signal and generating a frequency division signal; and a deserializer for generating the first control signal according to the frequency division signal.

2. The data synchronization device according to claim 1, characterized in that: When the microcontroller is not provided in the synchronous switching unit, the serializer is connected to the first sensor by using a first bus; When the microcontroller is arranged in the synchronous switching unit, the first sensor is connected to the microcontroller by using a second bus.

3. The data synchronization device according to claim 1, characterized in that: The data synchronization device also includes: a second sensing unit, which is used to receive the frequency division signal generated by the processing unit in the control unit, and send third sensing data to the control unit under the control of the frequency division signal, so that the third sensing data is synchronized with the data generated by the first sensing unit, wherein the second sensing unit includes at least one of the following: laser radar, millimeter wave radar, ultrasonic radar.

4. The data synchronization device according to claim 1, characterized in that: The first sensor includes at least one of the following: an inertial sensor and a magnetometer, and the second sensor is an image sensor.

5. A data synchronization method, characterized in that: A camera applied to an in-vehicle device, wherein the camera is pre-connected with a control unit, wherein the components integrated in the camera at least include: a synchronization adapter unit and a first sensing unit, wherein the first sensing unit includes a first sensor and a second sensor, wherein the synchronization adapter unit includes: a serializer and a microcontroller, and wherein the data synchronization method includes: After receiving the initialization signal sent by the control unit, the camera starts self-checking and initialization, and after the self-check is fault-free and the initialization is completed, sends an initialization success signal to the control unit; After receiving the initialization success signal, the control unit sends a first control signal to the synchronous switching unit; The serializer generates a synchronization signal according to a first control signal transmitted by the deserializer, and synchronously controls the first sensor to generate first sensing data and the second sensor to generate second sensing data; the microcontroller is used to receive the synchronization signal sent by the serializer, and generate a second control signal to synchronously control the first sensor and the second sensor; Setting a timestamp on the first sensor data; The first sensing data and the second sensing data set with timestamps are sent to the control unit, wherein the control unit synchronizes the first sensing data and the second sensing data based on the timestamps, wherein the control unit includes: an initial signal unit, used to send an initial signal to a processing unit; a processing unit, used to perform frequency division processing on the initial signal and generate a frequency division signal; a deserializer, used to generate the first control signal according to the frequency division signal.

6. The data synchronization method according to claim 5, characterized in that: The data synchronization method further includes: The first sensing data and the second sensing data are sent to the control unit through the serializer.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the data synchronization method according to any one of claims 5 to 6.