Data joint acquisition playback method and playback system

文档序号:567682 发布日期:2021-05-18 浏览:6次 中文

阅读说明:本技术 数据联合采集回放方法及回放系统 (Data joint acquisition playback method and playback system ) 是由 杨春 于 2021-02-20 设计创作,主要内容包括:本发明提供一数据联合采集回放方法及回放系统,其中所述数据联合采集回放方法包括以下步骤:(A)根据连接的至少二个设备,按照约定的文件名生成数据文件并且以同一时刻为基准创建至少二个文件映射内存;(B)在选定一个基准数据后,以一个标识符标记所述基准数据;(C)同一标识符标识至少二个所述设备输送的对应帧的数据,其中所述数据的类型不受到所述基准数据的类型的限制;以及(D)同步采集被标记为同一标识符的至少一个所述数据和所述基准数据。(The invention provides a data joint acquisition playback method and a data joint acquisition playback system, wherein the data joint acquisition playback method comprises the following steps: (A) generating a data file according to an appointed file name and establishing at least two file mapping memories by taking the same moment as a reference according to at least two connected devices; (B) after a datum is selected, marking the datum with an identifier; (C) the same identifier identifies data of corresponding frames conveyed by at least two of the devices, wherein the type of the data is not limited by the type of the reference data; and (D) synchronously acquiring at least one of the data and the reference data labeled as the same identifier.)

1. A data joint acquisition playback method is characterized by comprising the following steps:

(A) generating a data file according to an appointed file name and establishing at least two file mapping memories by taking the same moment as a reference according to at least two connected devices;

(B) after a datum is selected, marking the datum with an identifier;

(C) the same identifier identifies data of corresponding frames conveyed by at least two of the devices, wherein the type of the data is not limited by the type of the reference data; and

(D) synchronously acquiring at least one of the data and the reference data marked as the same identifier.

2. The data joint acquisition playback method of claim 1, wherein the step (B) further comprises the steps of: according to at least three connected devices, generating a data file according to an appointed file name and creating at least three file mapping memories, wherein the three files are a video file, an LVDS file and a CAN file respectively.

3. The data joint acquisition playback method of claim 1, wherein the step (B) further comprises the steps of: after said reference data is selected, marking said reference data with a frame ID, wherein said step (C) further comprises the steps of: (c.1) marking said data of corresponding frames conveyed by at least two of said devices with a frame ID with which said reference data is marked.

4. The data joint collection playback method according to claim 3, wherein in the step (B), a standard data CAN be called as the reference data, and an LVDS data, a CAN data, and a camera data at the same time are read with reference to a clock data of the standard data.

5. The data joint collection playback method according to claim 3, wherein in the step (B), a collected CAN data is selected as a reference data, and at least one of the identifiers of the LVDS data and the camera data at the same time is matched to read an LVDS data, a CAN data and a camera data at the same time identified by the identifiers.

6. The data joint acquisition playback method of claim 5, wherein the step (D) further comprises the steps of: receiving at least one of the LVDS data and the at least one of the camera data and the CAN data marked as the same frame ID. The data is synchronously acquired upon receipt and the reference data.

7. A data joint acquisition playback method is characterized by comprising the following steps:

(F) according to the file name of the acquired data and reference data;

(G) the two threads enter a loop playback branch, and at least one piece of data corresponding to the frame ID is matched and verified by taking the ID read by the current reference data as a reference; and

(H) at least two threads synchronously read the data corresponding to the file name and the reference data.

8. The data joint acquisition playback method of claim 7, wherein the step (G) further comprises the steps of:

(G.1) at least three threads enter a loop playback branch, and an LVDS data and a camera data of a corresponding frame corresponding to the frame ID are matched and verified by taking the ID read by the current CAN data as a reference;

(G.2) synchronously reading video data of a frame corresponding to a camera description file of a corresponding frame of the same frame ID, and circularly reading; and

(G.3) the LVDS data of the corresponding frame ID is synchronously read, and the reading is cycled.

9. The data joint acquisition playback method of claim 8, wherein the step (H) further comprises the steps of:

(H.1) at least two threads enter the previous frame playback branch, the data pointer reads the frame data length by 2 frame data length to obtain ID, and the process such as loop playback reads once; and

(H.2) at least two threads enter the next frame playback branch, and the data pointer directly reads the acquisition ID, and the process such as loop playback reads the acquisition ID once.

10. A data joint acquisition playback system, comprising:

an upper computer;

a benchmark selection module; and

the datum selecting module, the data collecting module and the data reading module are controlled by the upper computer, the data collecting module collects at least one datum, the datum selecting module selects a datum, and the data collecting module marks an identifier to collect the datum and the data of the corresponding frame of the corresponding identifier after the selected datum and at least one other datum are selected.

Technical Field

The invention relates to the field of data transmission, in particular to a data joint acquisition playback method and a data joint acquisition playback system.

Background

At present, data transmission often has collection software for an upper computer, but all are based on a single interface or a single type of demultiplexing collection playback mode. Most of the data are separated and collected in a single CAN or network cable or serial port mode, so that the collected data are asynchronous or part of the data are synchronous, and the requirement of synchronous data analysis cannot be met.

Disclosure of Invention

The invention aims to provide a data joint acquisition and playback method and a data joint acquisition and playback system, wherein the data joint acquisition and playback method realizes data synchronization or partial data synchronization through a joint acquisition and playback method.

Another objective of the present invention is to provide a data joint collection playback method and a data joint collection playback system, wherein the data joint collection playback method realizes simultaneous storage and reading of multiple data by using the joint collection playback method.

Another objective of the present invention is to provide a data joint collection playback method and a data joint collection playback system, wherein the data joint collection playback method makes data playback more smooth through the joint collection playback method.

Another objective of the present invention is to provide a data joint acquisition playback method and a data joint acquisition playback system, where the data joint acquisition playback method adapts to data joint acquisition and/or playback between different devices through a joint acquisition playback method, and has a scene of synchronous data debugging or synchronous data adjustment between different devices, for example, LVDS cooperates with data adjustment between a serial port and a camera device.

Another object of the present invention is to provide a data joint collection playback method and a data joint collection playback system, in which the data joint collection playback method uses a joint collection playback method to observe various attributes of data in units of frames, so as to facilitate data optimization and cleaning.

Another object of the present invention is to provide a data joint collection playback method and a data joint collection playback system, wherein the data conveyed by at least two devices are identified according to the same identifier, and the data are identified to determine the types of at least two of the data.

Another objective of the present invention is to provide a data joint acquisition playback method and a data joint acquisition playback system, wherein the joint acquisition playback method realizes joint acquisition of data of at least one radar and at least one camera.

Another objective of the present invention is to provide a data joint collection playback method and a data joint collection playback system, wherein the joint collection playback method selects at least one datum, and synchronously collects at least two data based on the time of the datum.

Another objective of the present invention is to provide a data joint collection playback method and a data joint collection playback system, wherein the joint collection playback method marks at least two pieces of the data and the uniform identifier of the reference data to synchronously collect at least two pieces of the data.

In accordance with one aspect of the present invention, the foregoing and other objects and advantages are achieved in a data joint acquisition playback method, comprising the steps of:

(A) generating a data file according to an appointed file name and establishing at least two file mapping memories by taking the same moment as a reference according to at least two connected devices;

(B) after a datum is selected, marking the datum with an identifier;

(C) the same identifier identifies data of corresponding frames conveyed by at least two of the devices, wherein the type of the data is not limited by the type of the reference data; and

(D) synchronously acquiring at least one of the data and the reference data marked as the same identifier.

According to an embodiment of the present invention, the step (B) of the data joint collection playback method further comprises the steps of: according to at least three connected devices, generating a data file according to an appointed file name and creating at least three file mapping memories, wherein the three files are a video file, an LVDS file and a CAN file respectively.

According to an embodiment of the present invention, the step (B) of the data joint collection playback method further comprises the steps of: after the reference data is selected, the reference data is marked with a frame ID.

According to an embodiment of the present invention, the step (C) of the data joint collection playback method further comprises the steps of: (c.1) marking said data of corresponding frames conveyed by at least two of said devices with a frame ID with which said reference data is marked.

According to an embodiment of the present invention, in the step (B) of the data joint collection and playback method, a standard data may be called as the reference data, and a LVDS data, a CAN data, and a camera data at the same time may be read with reference to a clock data of the standard data.

According to an embodiment of the present invention, in the step (B) of the data joint collection playback method, a collected CAN data is selected as a reference data, and at least one of the identifiers of the LVDS data and the camera data at the same time is matched, so as to read an LVDS data, a CAN data, and a camera data at the same time identified by the identifiers.

According to an embodiment of the present invention, the step (D) of the data joint collection playback method further comprises the steps of: receiving at least one of the LVDS data and the at least one of the camera data and the CAN data marked as the same frame ID. The data is synchronously acquired upon receipt and the reference data.

According to another aspect of the present invention, the present invention further provides a data joint collection playback method, which includes the following steps:

(F) according to the file name of the acquired data and reference data;

(G) the two threads enter a loop playback branch, and at least one piece of data corresponding to the frame ID is matched and verified by taking the ID read by the current reference data as a reference; and

(H) at least two threads synchronously read the data corresponding to the file name and the reference data

According to an embodiment of the present invention, the step (G) of the data joint collection playback method further comprises the steps of:

(G.1) at least three threads enter a loop playback branch, and an LVDS data and a camera data of a corresponding frame corresponding to the frame ID are matched and verified by taking the ID read by the current CAN data as a reference;

(G.2) synchronously reading video data of a frame corresponding to a camera description file of a corresponding frame of the same frame ID, and circularly reading; and

(G.3) the LVDS data of the corresponding frame ID is synchronously read, and the reading is cycled.

According to an embodiment of the present invention, the step (H) of the data joint collection playback method further comprises the steps of: (H.1) at least two threads enter the previous frame playback branch, and the data pointer reads the frame data length acquisition ID advanced by 2 frames, loops back, and reads once.

According to an embodiment of the present invention, the step (H) of the data joint collection playback method further comprises the steps of: (H.2) at least two threads enter the next frame playback branch, and the data pointer directly reads the acquisition ID, and the loop playback and the reading are carried out once.

According to an embodiment of the invention, the step (H.1) of the data joint acquisition playback method further comprises the steps of: (H.1.1) at least three threads enter the previous frame playback branch, the CAN data, the LVDS data and the camera data respectively read by pointers with the length of 2 frame data forwards to obtain ID, and the ID is obtained through loop playback and once reading.

According to one embodiment of the invention, said step (h.2) of said data joint acquisition playback method further comprises the steps of: (H.2.1) at least three threads enter the next frame playback branch, and pointers of the CAN data, the LVDS data and the camera data respectively directly read and acquire the ID, and the ID is circularly played back and read once.

According to another aspect of the present invention, the present invention further provides a data joint acquisition playback system, which includes:

an upper computer;

a benchmark selection module; and

the datum selecting module, the data collecting module and the data reading module are controlled by the upper computer, the data collecting module collects at least one datum, the datum selecting module selects a datum, and the data collecting module marks an identifier to collect the datum and the data of the corresponding frame of the corresponding identifier after the selected datum and at least one other datum are selected.

According to an embodiment of the invention, one of the data collected by the data collection module is selected by the reference selection module as the reference data.

According to an embodiment of the present invention, a standard data that is previously saved is selected as the reference data by the reference selection module.

According to an embodiment of the present invention, the data acquisition module acquires at least one CAN data, at least one LVDS data and at least one camera data, wherein the reference selection module selects the CAN data as the reference data, wherein the data acquisition module allocates an identifier to the CAN data and then allocates the LVDS data and the camera data of corresponding frames, respectively, and the data acquisition module acquires the CAN data, the LVDS data and the camera data synchronously according to a time of the CAN data as a reference.

According to an embodiment of the present invention, the data acquisition module acquires at least one CAN data, at least one LVDS data, and at least one camera data, wherein the reference selection module selects one of the standard data that is pre-stored as the reference data, wherein the data acquisition module assigns an identifier to the standard data and the CAN data, the LVDS data, and the camera data of a corresponding frame, and the data acquisition module acquires the CAN data, the LVDS data, and the camera data synchronously based on a time of the standard data.

According to an embodiment of the present invention, the data joint collection playback system further includes a data reading module, wherein the data reading module synchronously reads the data of the same frame ID being collected.

According to an embodiment of the present invention, the data collecting and playback system further comprises a storage module, wherein at least two of the data collected by the data collecting module are stored in the storage module and retrieved in real time.

According to an embodiment of the present invention, the data collecting and playing back system further includes an interactive module, wherein the interactive module includes a communication portion and a display portion, so that the communication portion can be communicatively connected to at least two external devices to obtain the asynchronous data transmitted by at least two of the devices, and the display portion displays at least one of the processed data.

Further objects and advantages of the invention will be fully apparent from the ensuing description and drawings.

Drawings

Fig. 1 is a schematic diagram of the steps of a data joint acquisition playback method according to a preferred embodiment of the present invention.

Fig. 2 is a partial step schematic diagram of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 3 is a partial step diagram of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 4 is a schematic diagram of another step of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 5 is a partial step diagram of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 6 is a partial step diagram of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 7 is a schematic diagram of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 8 is a partial step diagram of the data joint acquisition playback method according to the above preferred embodiment of the present invention.

Fig. 9 is a schematic diagram of a data joint acquisition playback system according to another preferred embodiment of the present invention.

Fig. 10 is another schematic diagram of the data joint acquisition playback system according to the above preferred embodiment of the present invention.

Detailed Description

The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.

It will be understood by those skilled in the art that in the present disclosure, the terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings for ease of description and simplicity of description, and do not indicate or imply that the referenced devices or components must be in a particular orientation, constructed and operated in a particular orientation, and thus the above terms are not to be construed as limiting the present invention.

Referring to fig. 1 of the drawings, a first preferred embodiment of the present invention is disclosed and explained in detail, and the data joint collection playback method comprises the following steps:

(A) generating a data file according to an appointed file name and establishing at least two file mapping memories by taking the same moment as a reference according to at least two connected devices;

(B) after a datum is selected, marking the datum with an identifier;

(C) the same identifier identifies data of corresponding frames conveyed by at least two of the devices, wherein the type of the data is not limited by the type of the reference data; and

(D) synchronously acquiring at least one of the data and the reference data marked as the same identifier.

In the step (a) of the data joint acquisition and playback method, preferably, the file map is created, and the memory data mapped at the same time is read with the reliable clock data as a reference. It should be noted that, by reading the memory data mapped at the same time, the data of different devices are synchronously collected.

Referring to fig. 7, in the step (a) of the data joint collection and playback method, according to at least three connected devices, data files are generated according to agreed file names and at least three file mapping memories are created. Further, the file mapping memory is implemented as a video description file and a video avi file, an LVDS file and a CAN file, respectively. Further, the camera data is mapped into the video description file and the video avi file. The LVDS data is mapped to the LVDS file. The CAN data is mapped to the CAN file.

In the first preferred embodiment of the present invention, the CAN data is used as the reference data. Specifically, the LVDS data is a high-speed massive data transmitted through UDP, which is unreliable with respect to the CAN data. The camera data is the adjustable frame data, and therefore the CAN data is selected as the reference data for clock stability and reliability considerations.

It is worth mentioning that the CAN data may be only used as one of the data, and the data joint collection playback method uses other data as the reference data. For example, the data joint acquisition and playback method may call a standard data as the reference data, and read the LVDS data, the CAN data, and the camera data at the same time with reference to a clock data of the standard data. The standard data may be stored presettingly for retrieval in real time. In addition, the data joint acquisition playback method can call a standard data from other systems as the reference data.

It is to be noted that the standard data is read, and the clock data of the standard data is used as a reference, so that the asynchronous standard data, LVDS data, CAN data, and camera data CAN be read synchronously.

In a first preferred embodiment of the present invention, the LVDS data is data detected by a radar, and the camera data is data of a camera, so that the joint acquisition and playback method realizes joint acquisition of data of at least one radar and at least one camera.

Said step (B) of said data joint acquisition playback method further comprises the steps of: (b.1) after a reference data is selected, marking the reference data with a frame ID.

In the step (B) of the data joint collection and playback method, the reference data may be implemented as CAN data, which is reliable data transmitted by a bus and relatively reliable with respect to some high-speed transmitted data.

It is noted that the reference data may be implemented as other data, and those skilled in the art will understand and understand that the reference data may be replaced by other data, and the invention is not limited thereto.

The step (C) of the data joint collection playback method further comprises the steps of: (c.1) marking the data of the corresponding frame delivered by at least one of the devices with the frame ID with which the reference data is marked.

Further, in the step (c.1), the data of the corresponding frame delivered by at least one of the devices is tagged with a frame ID in which the CAN data is tagged.

The types of the devices can be different devices such as radar, camera, environment sensor, etc., and the invention is not limited in any way herein, and preferably the devices are radar, camera.

Further, the step (D) of the data joint collection playback method further comprises the steps of: receiving at least two of the data and the reference data marked as the same frame ID. The data is synchronously acquired upon receipt and the reference data.

Further, the step (D) of the data joint collection playback method further comprises the steps of: receiving at least one of the LVDS data and the at least one of the camera data and the CAN data marked as the same frame ID. The data is synchronously acquired upon receipt and the reference data.

In other variant embodiments, other data may be selected as the reference data. For example, the data joint collection playback method may call the standard data as the reference data, and read the LVDS data, the CAN data, and the camera data at the same time with reference to the clock data of the standard data. The standard data may be stored presettingly for retrieval in real time. In addition, the data joint collection playback method may retrieve the standard data from other systems as the reference data, for example, the standard data in other systems or methods may be retrieved as the reference data and matched with at least one of the identifiers that are the same in the LVDS data, the CAN data, and the camera data at the same time to read the LVDS data, the CAN data, and the camera data at the same time that are identified by the identifiers. It should be noted that the type of the standard data is not limited by the scope of the present invention, for example, the standard data may be the CAN data in other systems, or the standard data pre-stored in other systems, and the present invention is not limited in any way.

In the step (D) of the data joint acquisition playback method, the LVDS data, the camera data, and the CAN data marked as the same frame ID are synchronously acquired.

The data joint acquisition playback method further comprises the following steps: (E) the data and the baseline data are displayed by an interface.

Preferably, the data and the baseline data are displayed by an interface, such that the data and the baseline data can be presented for collection, storage, tuning or cleaning.

Referring to fig. 4, the data joint collection playback method further includes the following steps:

(F) according to the acquired data and the file name of the reference data;

(G) at least two threads enter a loop playback branch, and at least one piece of data corresponding to the frame ID is matched and verified by taking the ID read by the current reference data as a reference; and

(H) at least two threads synchronously read the data corresponding to the file name and the reference data.

Referring to fig. 5, the step (G) of the data joint collection playback method further includes the steps of:

(G.1) at least three threads enter a loop playback branch, and at least one LVDS data and the camera data corresponding to the frame ID are matched and verified by taking the ID read by the CAN data as a reference;

(G.2) synchronously reading the video data of the corresponding frame of the camera description file with the same frame ID, and circularly reading; and

(G.3) the LVDS data of the corresponding frame ID is synchronously read, and the reading is cycled.

It is noted that the step (g.2) of the data joint collection playback method and the step (G.3) are performed synchronously and not sequentially.

Further, the step (g.2) of the data joint collection playback method and the step (G.3) are further followed by the steps of: (G.4) the relevant data is displayed graphically.

It is worth mentioning that the video data comprises video description data and video avi data.

The step (H) of the data joint collection playback method further comprises the steps of: (H.1) at least two threads enter the previous frame playback branch, and the data pointer reads the frame data length acquisition ID advanced by 2 frames, loops back, and reads once.

The step (H) of the data joint collection playback method further comprises the steps of: (H.2) at least two threads enter the next frame playback branch, and the data pointer directly reads the acquisition ID, and the loop playback and the reading are carried out once.

Further, the data in step (H.1) and step (h.2) of the data joint collection playback method is selected from at least one of the LVDS data and the camera data.

Referring to fig. 6 and 8, the step (H.1) of the data joint collection playback method further includes the steps of: (H.1.1) at least three threads enter the previous frame playback branch, the CAN data, the LVDS data and the camera data respectively read by pointers with the length of 2 frame data forwards to obtain ID, and the ID is obtained through loop playback and once reading.

Preferably, the step (h.2) of the data joint acquisition playback method further comprises the steps of: (H.2.1) at least three threads enter the next frame playback branch, and pointers of the CAN data, the LVDS data and the camera data respectively directly read and acquire the ID, and the ID is circularly played back and read once.

Further, in the step (h.2.1) of the data joint acquisition and playback method, when packet loss occurs during the reading and playback of the LVDS data and the camera data, the LVDS data and the camera data are discarded and then continuously read.

Referring to fig. 9 of the drawings, a data collection and playback system according to a second preferred embodiment of the present invention is disclosed and explained in detail, wherein the data collection and playback system further includes a host computer 10, a benchmark selection module 20, a data collection module 30, a data reading module 40, an interaction module 50, and a storage module 60. The upper computer 10 controls the selected datum data of the datum selecting module 20, the data collecting module 30, the data reading module 40, the interaction module 50 and the storage module 60 to be collected, converted, replayed, stored and erased.

The reference selecting module 20 is controlled by the upper computer 10 to select a reference datum, and the data collecting module 30 is controlled by the upper computer 10, wherein the data collecting module 30 synchronously collects at least two asynchronous datum by taking the time datum of the reference datum as a reference. The data acquired by the acquisition module 30 and/or the baseline data is stored in the storage module 60. The data reading module 40 is connected to the data acquisition module 30. The data reading module 40 is controlled by the upper computer 10 to playback at least two synchronously acquired data and/or the reference data, wherein the interaction module 50 can display the data read by the data reading module 40, in addition, the interaction module 50 is in communication connection with an upper computer, and the interaction module 50 provides at least two channels to realize the transmission of the data.

Preferably, the data joint acquisition and playback system jointly acquires a CAN data, an LVDS data and at least one camera data. The reference selecting module 20 is controlled by the upper computer 10 to select the CAN data as the reference data, and the data collecting module 30 is controlled by the upper computer 10 to synchronously collect the CAN data, the LVDS data and the camera data which are referenced at the same time. The storage module 60 stores each of the data collected by the data collection module 30. The data reading module 40 reads each of the data stored in the storage module 60 in a multi-thread playback manner. Further, the data reading module 40 synchronously plays back and reads the CAN data, the LVDS data and the camera data. That is to say, the data joint acquisition and playback system realizes that a plurality of data are acquired and played back and read synchronously, and further improves the processing speed of the data joint acquisition and playback system.

The data acquisition module 30 acquires the plurality of devices 100 synchronously for different physical quantities. Further, the interactive module 50 provides a communication portion 51 and a display portion 52, wherein the display portion 52 displays the processed data, and the communication portion 51 includes at least one LVDS communication unit 511, at least one CAN communication unit 512, and a video communication unit 513. The LVDS communication unit 511 is conducted to the device 100 transmitting the LVDS data, the CAN communication unit 512 is conducted to the device 100 transmitting the CAN data, and the adaptation communication unit 513 is conductively connected to the device 100 transmitting the camera data.

In other modified embodiments, the communication portion 51 may further include at least one ethernet communication unit, at least one wireless communication unit, and other different communication types, and the invention is not limited thereto.

Preferably, the LVDS communication unit 511 adopts a UDP protocol, and the CAN communication unit 512 adopts a CAN protocol.

The data acquisition module 30 receives at least two pieces of the data conducted from the communication part 51. Preferably, the data acquisition module 30 acquires the CAN data, the LVDS data and at least one camera data. According to the at least two devices 70 connected to the interactive module 50, the data acquisition module 30 generates a data file according to an agreed file name, and creates at least two mapping memories based on the same time.

Referring to the second preferred embodiment of the present invention, the reference selecting module 20 selects the CAN data as the reference data, wherein the reference selecting module 20 sends a selection message for selecting the CAN data as the reference data to the data collecting module 30, wherein the data collecting module 30 identifies at least one of the data of the frame corresponding to the CAN data according to the selection message for selecting the CAN data as the reference data, wherein the data collecting module 30 collects at least one of the data marked as the same identifier and the standard data.

Preferably, the identification represents the data by means of a frame ID. Further, the data acquisition module 30 retrieves the benchmark data selected by the benchmark selection module 20 and marks the benchmark data. In a second preferred embodiment of the present invention, the data acquisition module 30 retrieves the CAN data selected by the reference selection module 20 as the reference data, wherein after the data acquisition module 30 marks the CAN data, the data acquisition module 30 synchronously marks the LVDS data and the camera data of the frame corresponding to the CAN data, so that the data acquisition module 30 synchronously acquires the CAN data, the LVDS data and the camera data. Furthermore, the data joint acquisition and playback system is adapted to joint acquisition and/or playback of data between different devices, a scene with synchronous data debugging, or synchronous data adjustment between different devices, for example, data adjustment between an LVDS (low voltage differential signaling) matched serial port and a camera device.

Further, in other variant embodiments of the present invention, the reference data may be a standard data stored in the storage module 60, or may be the standard data from other systems.

Preferably, the LVDS data and the camera data of the frames corresponding to the CAN data and the CAN data are synchronously collected by the data collection module 30.

Further, the data acquisition module 30 sends and stores the LVDS data and the camera data of the frames corresponding to the CAN data and the CAN data of the storage module 60, wherein after the data acquisition module 30 acquires the data, the storage module 60 stores the LVDS data and the camera data of the frames corresponding to the CAN data and the CAN data. Further, the data stored by the data storage module 60 is read by the data reading module 40.

The data reading module 40 reads the LVDS data, the CAN data and the video data stored in the storage module 60 with the same time reference playback. It should be noted that the data reading module 40 discards the lost LVDS data.

The data reading module 40 reads the data and the reference data corresponding to the file names of the data and the reference data respectively by at least two threads.

Further, the two threads of the data reading module 40 enter a loop playback branch, and at least one piece of data corresponding to the frame ID is matched and verified with the ID read by the current reference data as a reference.

According to the obtained file names of the LVDS data and the camera data of the frames corresponding to the CAN data and the CAN data, the data reading module 40 reads the LVDS data and the camera data of the frames corresponding to the CAN data and the CAN data corresponding to the file names by at least three threads, respectively.

Further, at least three threads of the data reading module 40 enter a loop playback branch, and at least one piece of LVDS data and the camera data corresponding to the frame ID are matched and verified with the ID read by the current CAN data as a reference. Further, the data reading module 40 reads the video data and the LVDS data of the frame corresponding to the camera description file with the same frame ID, and reads them cyclically. It is worth mentioning that the video data comprises video description data and video avi data.

Under the control of the upper computer 10, the data reading module 40 plays back the previous frame by at least three threads, further reads the LVDS data and the camera data by moving the pointer forward by 2 frame data lengths, and plays back in a circulating manner and reads once. In another aspect, the data reading module 40 returns the next frame by at least three threads, and further, the LVDS data and the camera data are directly read by a pointer to obtain an ID, and are read once after being played back in a loop. When packet loss occurs in the process of reading and playing back the LVDS data and the camera data, the LVDS data and the camera data are discarded by the data reading module 40 and then continuously played back circularly for once reading.

The interaction module 50 displays the data related to the operation of the data reading module 40 and the data acquisition module 30.

Referring to fig. 10 of the drawings of the specification, the device 100 includes a device body 101 and a communication mechanism 102 conducted to the device body 101, the communication mechanism 102 of the device 100 is conducted to be connected to the communication portion 51 of the interactive module 50, the communication mechanism 101 of the device 100 receives a data acquisition command to the communication portion 51 of the data collecting and playback system, and after the device body 101 of the device 100 sends the communication mechanism 102, the communication mechanism 102 sends at least one piece of data to the communication portion 51 of the data collecting and playback system. The data joint acquisition playback system receives at least two of the data of at least two of the devices 100.

Preferably, the data joint acquisition and playback system receives at least three pieces of data of more than three pieces of the device 100, which are the CAN data sent by a device 100A, the LVDS data sent by a device 100B, and the camera data sent by a device 100C.

The device 100A that transmits the CAN data receives an identifier assignment of the data joint acquisition playback system, and the other devices 100B that transmit the LVDS data and the device 100C that transmits the camera data receive the identifier marked with reference to the time data of the CAN data, preferably, the identifier is a frame ID.

Further, the device 100A that transmits the CAN data receives a frame ID assignment of the data joint acquisition playback system, and the other devices 100B that transmit the LVDS data and the device 100C that transmits the camera data respectively receive the frame ID assignment marked on the basis of the time data of the CAN data. The CAN data, the LVDS data and the camera data are synchronously acquired after being distributed with the same frame ID by the data joint acquisition playback system respectively.

Further, the communication mechanism 102 of the device 100A that transmits the CAN data is conductively connected to the CAN communication unit 512 of the joint data acquisition and playback system, and transmits the CAN data. The communication mechanism 102 of the device 100B that transmits the LVDS data is conductively connected to the LVDS communication unit 511 of the data joint acquisition and playback system to transmit the camera data. The communication mechanism 102 of the device 100C that transmits the camera data is conductively connected to the video communication unit 512 of the joint data collection and playback system to transmit the camera data.

Referring to fig. 9, the upper computer 10 sends an acquisition instruction to the data acquisition module 30 according to an acquisition request received by the communication part 51, where the data acquisition module 30 matches the identifier of each of the devices 100, and the data acquisition module 30 acquires the data synchronously and stores the data in the storage module 60. Further, the upper computer 10 sends a playback instruction to the data reading module 40, wherein the data reading module 40 reads at least two pieces of data stored in the storage module 60 at the same time of the same identifier.

The embodiments of the various embodiments can be freely combined, and the invention is not limited in any way in this respect.

It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are given by way of example only and are not limiting of the invention. The objects of the invention have been fully and effectively accomplished. The functional and structural principles of the present invention have been shown and described in the examples, and any variations or modifications of the embodiments of the present invention may be made without departing from the principles.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种MilCAN总线动态数据时序对准方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!