Data acquisition card, apparatus and method

文档序号:28098 发布日期:2021-09-24 浏览:34次 中文

阅读说明:本技术 数据采集卡、设备和方法 (Data acquisition card, apparatus and method ) 是由 童幸源 赵岩 宗培亮 赵超超 郭树元 高鹏 陈迪 于 2021-08-27 设计创作,主要内容包括:本申请提供一种数据采集卡、设备和方法,涉及车辆数据采集领域。该数据采集卡包括:每路数据采集模块的输入端连接一个轮速传感器,所述四路数据采集模块的输出端均连接所述SOC,以获取各所述轮速传感器采集的轮速脉冲信号,所述SOC还连接所述计时器,以在检测到所述轮速脉冲信号的变化沿时记录所述计时器的时间作为一路轮速时间戳;所述CAN芯片的输入端连接CAN总线,所述CAN芯片的输出端连接所述SOC,以采集CAN信号。相对于现有技术,避免了无法或者很难采集到轮速时间戳的问题。(The application provides a data acquisition card, equipment and a method, and relates to the field of vehicle data acquisition. The data acquisition card comprises: the input end of each data acquisition module is connected with a wheel speed sensor, the output ends of the four data acquisition modules are connected with the SOC to acquire wheel speed pulse signals acquired by the wheel speed sensors, and the SOC is also connected with the timer to record the time of the timer as a wheel speed timestamp when the change edge of the wheel speed pulse signals is detected; the input end of the CAN chip is connected with a CAN bus, and the output end of the CAN chip is connected with the SOC to collect CAN signals. Compared with the prior art, the problem that the wheel speed timestamp cannot be acquired or is difficult to acquire is avoided.)

1. A data acquisition card, comprising: four ways data acquisition module, controller area network CAN chip and programmable gate array FPGA chip, include on the FPGA chip: a system-on-chip SOC and a programmable logic unit, the programmable logic unit comprising: a timer;

the input end of each data acquisition module is connected with a wheel speed sensor, the output ends of the four data acquisition modules are connected with the SOC to acquire wheel speed pulse signals acquired by the wheel speed sensors, and the SOC is also connected with the timer to record the time of the timer as a wheel speed timestamp when the change edge of the wheel speed pulse signals is detected;

the input end of the CAN chip is connected with a CAN bus, and the output end of the CAN chip is connected with the SOC to collect CAN signals.

2. The data acquisition card of claim 1, wherein said programmable logic unit further comprises: a plurality of sets of block random access memories, each set of block random access memories comprising: and each memory in each group of block random access memories is connected with the SOC so as to cache four-path wheel speed timestamps acquired by the SOC.

3. The data acquisition card of claim 2, wherein said programmable logic unit further comprises: the trigger is connected with the SOC, and each group of random access memories is connected with the memory, so that the SOC synchronizes the wheel speed timestamps cached in each group of random access memories into the memory at intervals of preset time based on a synchronous trigger signal output by the trigger.

4. A data acquisition device, comprising: a patch cord and a data acquisition card according to any one of claims 1 to 3;

one end of a first wire harness in the switching wire harness is connected with a Controller Area Network (CAN) bus, the other end of the first wire harness is connected with a CAN chip in the data acquisition card, one end of a second wire harness in the switching wire harness is connected with a wheel speed sensor, and the other end of the second wire harness is connected with an input end of a data acquisition module in the data acquisition card.

5. The data acquisition device as claimed in claim 4, wherein one end of the first harness is connected to a CAN bus between signal connectors, one end of the second harness is connected to a wheel speed signal terminal on the signal connector, an input terminal of the signal connector is connected to four wheel speed sensors, and an output terminal of the signal connector is connected to a vehicle controller.

6. The data acquisition device of claim 5, wherein the vehicle controller is a body stability control ESC controller and the signal connector is an ESC connector, or the vehicle controller is an ABS controller and the signal connector is an ABS connector.

7. A data acquisition method applied to the SOC of the data acquisition card of any one of claims 1 to 3, the method comprising:

if the data processing mode is the data acquisition mode, acquiring a target vehicle type matrix;

responding to the received synchronous trigger signal, and analyzing the acquired CAN signal according to the target vehicle type matrix to obtain CAN analysis data;

and storing the CAN analysis data, the wheel speed time stamps of all paths and the CAN signals.

8. The method of claim 7, wherein storing the CAN resolution data, wheel speed timestamps, and the CAN signal comprises:

storing the CAN signal in a first format;

storing the wheel speed timestamps and the CAN signals in a second format;

and storing the CAN analysis data in a third format.

9. The method of claim 7, wherein the method further comprises:

if the data processing mode is a data playback mode, acquiring the target vehicle type matrix;

and sending the target vehicle type matrix and target data selected from the stored data to external equipment for data playback.

10. The method of claim 9, wherein sending the matrix of target vehicle types and target data selected from stored data to an external device for data playback comprises:

and acquiring a preset frequency, and sending the target vehicle type matrix and the target data to the external equipment for data playback, wherein the preset frequency is greater than or equal to the acquisition frequency corresponding to the synchronous trigger signal.

Technical Field

The application relates to the technical field of vehicle data acquisition, in particular to a data acquisition card, equipment and a method.

Background

With the rapid development of automotive electronics, the functional complexity of vehicles is increasing, and various controllers including an engine controller, an air conditioner controller, a vehicle body Anti-theft controller, an automatic transmission controller, a vehicle body stability control System (ESC) controller, an Anti-lock Braking System (ABS) controller, etc. are also added to automotive electronic systems. The communication among all controllers of the whole vehicle is realized by adopting a CAN network, in addition, a signal which is very important for vehicle control is a wheel speed signal, the signal has very important status in functions of ABS, ESC, electronic brake force distribution (EBD) and the like, and the acquisition and analysis of the signals are very important for ABS, ESC, EBD and an Indirect Tire Pressure Monitoring (iTPMS) module of the vehicle.

The development of ABS/ESC and internal EBD and iTPMS algorithms of the automobile needs to collect a large amount of original CAN data and wheel speed timestamp data of the automobile, and the existing equipment mainly collects CAN data, mainly including CANOE, KAVASER, CANAnalyzer, TONSUN and the like of Vector, which CAN conveniently collect and record CAN data, play back data off line, analyze DBC and the like.

However, the acquisition equipment in the prior art CAN only acquire CAN data and simple wheel speed pulse data on some CAN, and a wheel speed timestamp cannot be acquired or is difficult to acquire.

Disclosure of Invention

An object of the application is to provide a data acquisition card, a device and a method aiming at the defects in the prior art, so as to solve the problem that the wheel speed timestamp cannot be acquired or is difficult to acquire in the prior art.

In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:

in a first aspect, an embodiment of the present application provides a data acquisition card, including: four ways data acquisition module, controller area network CAN chip and programmable gate array FPGA chip, include on the FPGA chip: a system-on-chip SOC and a programmable logic unit, the programmable logic unit comprising: a timer;

the input end of each data acquisition module is connected with a wheel speed sensor, the output ends of the four data acquisition modules are connected with the SOC to acquire wheel speed pulse signals acquired by the wheel speed sensors, and the SOC is also connected with the timer to record the time of the timer as a wheel speed timestamp when the change edge of the wheel speed pulse signals is detected;

the input end of the CAN chip is connected with a CAN bus, and the output end of the CAN chip is connected with the SOC to collect CAN signals.

Optionally, the programmable logic unit further comprises: a plurality of sets of block random access memories, each set of block random access memories comprising: and each memory in each group of block random access memories is connected with the SOC so as to cache four-path wheel speed timestamps acquired by the SOC.

Optionally, the programmable logic unit further comprises: the trigger is connected with the SOC, and each group of random access memories is connected with the memory, so that the SOC synchronizes the wheel speed timestamps cached in each group of random access memories into the memory at intervals of preset time based on a synchronous trigger signal output by the trigger.

In a second aspect, another embodiment of the present application provides a data acquisition device, including: a switching harness and the data acquisition card of any of the above first aspects;

one end of a first wire harness in the switching wire harness is connected with a Controller Area Network (CAN) bus, the other end of the first wire harness is connected with a CAN chip in the data acquisition card, one end of a second wire harness in the switching wire harness is connected with a wheel speed sensor, and the other end of the second wire harness is connected with an input end of a data acquisition module in the data acquisition card.

Optionally, one end of the first wire harness is connected to a CAN bus between signal connectors, one end of the second wire harness is connected to a wheel speed signal end on the signal connector, an input end of the signal connector is connected to four wheel speed sensors, and an output end of the signal connector is connected to a vehicle controller.

Optionally, the vehicle controller is an ESC controller for vehicle body stability control, and the signal connector is an ESC connector, or the vehicle controller is an ABS controller for an anti-lock braking system, and the signal connector is an ABS connector.

In a third aspect, another embodiment of the present application provides a data acquisition method, which is applied to the SOC of the data acquisition card in any one of the first aspect, where the method includes:

if the data processing mode is the data acquisition mode, acquiring a target vehicle type matrix;

responding to the received synchronous trigger signal, and analyzing the acquired CAN signal according to the target vehicle type matrix to obtain CAN analysis data;

and storing the CAN analysis data, the wheel speed time stamps of all paths and the CAN signals.

Optionally, the storing the CAN analysis data, the wheel speed timestamps of the respective paths, and the CAN signal includes:

storing the CAN signal in a first format;

storing the wheel speed timestamps and the CAN signals in a second format;

and storing the CAN analysis data in a third format.

Optionally, the method further comprises:

if the data processing mode is a data playback mode, acquiring the target vehicle type matrix;

and sending the target vehicle type matrix and target data selected from the stored data to external equipment for data playback.

Optionally, the sending the target vehicle type matrix and the target data selected from the stored data to an external device for data playback includes:

and acquiring a preset frequency, and sending the target vehicle type matrix and the target data to the external equipment for data playback, wherein the preset frequency is greater than or equal to the acquisition frequency corresponding to the synchronous trigger signal.

In a fourth aspect, the present application further provides a data acquisition device, comprising: the device comprises an acquisition module, an analysis module and a storage module, wherein:

the acquisition module is used for acquiring a target vehicle type matrix if the data processing mode is a data acquisition mode;

the analysis module is used for responding to the received synchronous trigger signal and analyzing the collected CAN signal according to the target vehicle type matrix to obtain CAN analysis data;

the storage module is used for storing the CAN analysis data, the wheel speed timestamps of all the paths and the CAN signals.

Optionally, the storage module is specifically configured to store the CAN signal in a first format; storing the wheel speed timestamps and the CAN signals in a second format; and storing the CAN analysis data in a third format.

Optionally, the apparatus further comprises: a sending module, wherein:

the obtaining module is specifically configured to obtain the target vehicle type matrix if the data processing mode is a data playback mode;

and the sending module is used for sending the target vehicle type matrix and target data selected from the stored data to external equipment for data playback.

Optionally, the sending module is specifically configured to collect a preset frequency, send the target vehicle type matrix and the target data to the external device for data playback, where the preset frequency is greater than or equal to the collection frequency corresponding to the synchronous trigger signal.

In a fifth aspect, another embodiment of the present application provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the method according to any one of the above third aspects.

The beneficial effect of this application is: adopt the data acquisition card that this application provided, a fast sensor of wheel is all connected to every way data acquisition module, and every way data acquisition module all connects SOC, and the time-recorder of connecting through SOC has realized that every way data acquisition module all adopts same time-recorder, the synchronism of the timestamp signal of acquireing in time has been guaranteed, in order when detecting the change edge of fast pulse signal of wheel, the time of recording current time-recorder is the fast timestamp of the wheel all the way, the input connection CAN bus of CAN chip in addition, output connection SOC, in order to realize the collection of CAN signal, thereby adopt the data acquisition card that this application provided, not only CAN gather the CAN signal, and CAN also gather the fast timestamp information of each way wheel.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.

Fig. 1 is a schematic structural diagram of a data acquisition card according to an embodiment of the present application;

FIG. 2 is a schematic diagram of a wiring harness concept according to another embodiment of the present application;

fig. 3 is a schematic structural diagram of a data acquisition module according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application;

fig. 5 is a schematic flow chart of a data acquisition method according to an embodiment of the present application;

fig. 6 is a schematic flow chart of a data acquisition method according to an embodiment of the present application;

fig. 7 is a schematic flow chart of a data acquisition method according to an embodiment of the present application;

fig. 8 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application;

fig. 9 is a schematic structural diagram of a data acquisition device according to another embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.

The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.

Additionally, the flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.

For the purpose of facilitating an understanding of the embodiments of the present application, the following partial terms related to the present application are explained:

system on Chip (SoC): is a product that is an integrated circuit with a dedicated target that contains the complete system and has the full contents of the embedded software. Meanwhile, the method is a technology for realizing the whole process from the determination of system functions to the software/hardware division and completing the design.

Programmable Gate Array (FPGA): is a product developed on the basis of programmable devices such as PAL, GAL and the like. The circuit is a semi-custom circuit in the field of Application Specific Integrated Circuits (ASIC), not only overcomes the defects of the custom circuit, but also overcomes the defect that the number of gate circuits of the original programmable device is limited.

The I/O Input/Output (Input/Output) is divided into two parts, namely an IO device and an IO interface.

Controller Area Network (CAN): is one of the most widely used field buses internationally.

CAN Communication Matrix (CAN Communication Matrix): the definition is usually completed by a whole vehicle factory, and each node in a vehicle network needs to follow the communication matrix to complete the interaction and sharing between information.

The data acquisition card provided by the embodiment of the present application is explained below with reference to a plurality of specific application examples. Fig. 1 is a schematic structural diagram of a data acquisition card according to an embodiment of the present application, and as shown in fig. 1, the data acquisition card 100 includes: four ways data acquisition module 110, controller area network CAN chip 120 and programmable logic gate array FPGA chip 130, in the embodiment of this application, FPGA chip 130 types in CAN be the heterogeneous FPGA chip of zynq, includes on FPGA chip 130: a system on a chip SOC131 and a programmable logic unit 132, the programmable logic unit 132 comprising: a timer 1321; wherein:

in the present application, an input end of each data acquisition module 110 is connected to one wheel speed sensor, wherein each vehicle has four wheel speed sensors, an input end of each data acquisition module 110 is connected to one wheel speed sensor, and output ends of the four data acquisition modules 110 are connected to the SOC131 to obtain wheel speed pulse signals acquired by each wheel speed sensor, it should be understood that the above-mentioned embodiment is merely an exemplary illustration, and for a vehicle having six wheel speed sensors or eight wheel speed sensors, the number of the data acquisition modules 110 may also be adjusted along with the above-mentioned embodiments, in order to ensure that each wheel speed sensor is connected to one data acquisition module 110, it should be understood that the above-mentioned embodiment is merely an exemplary illustration, and the number of the data acquisition modules 110 may be flexibly adjusted according to actual conditions of the vehicle, and is not limited by the above-mentioned embodiments.

The SOC131 is further connected to the timer 1321, so as to record the time of the timer 1321 as a wheel speed timestamp when detecting a change edge of the wheel speed pulse signal, where the change edge of the wheel speed pulse signal may be, for example, a rising edge or a falling edge, and the setting of a specific change edge may be flexibly adjusted according to a user's requirement, which is not limited herein.

In one embodiment of the present application, the ABS/ESC may provide 14V to each wheel speed sensor, which may output 7mA and 14mA of current when the ring gear rotates, where each wheel speed sensor acts as a current source. The data acquisition module 110 may include, for example, a current sampling chip, a current differential amplifier, and a comparator, wherein in an embodiment of the present application, a 10 ohm resistor may be connected in series in a loop of the wheel speed sensor, so as to perform a lossless sampling function, for example, an AD8418 current sampling chip may be adopted, a default current amplification factor of the AD8418 is 20 times, differential voltages of the sampling resistor passing through 10 ohm at this time are 0.07V and 0.14V, and then output voltages of the current differential amplifier after amplification are 1.4V and 2.8V. And the standard processing is carried out according to the TTL level. The voltage signal output by the current amplifier is differentiated by the comparator to obtain a wheel speed square wave signal, and the wheel speed square wave signal is input into the FPGA chip 130, and the wheel speed timestamp is acquired by identifying and processing the wheel speed square wave signal.

The input end of the CAN chip 120 is connected with the CAN bus, and the output end of the CAN chip 120 is connected with the SOC131 to collect CAN signals.

Fig. 2 is a schematic structural diagram of a harness principle provided in an embodiment of the present application, a section of harness may be serially connected between ABS/ESC harnesses of an original vehicle through a transit harness, so as to ensure that all harnesses of the original vehicle are interconnected, that is, the left side is a female end of an entire harness of an ECU plug of the original vehicle, and the right side is a harness connected in series between male ends of an ECU plug of the original vehicle and having the same number as an interface, wherein the female end of the entire harness of the ECU plug of the original vehicle is respectively connected with a left front wheel speed sensor, a left rear wheel speed sensor, a right front wheel speed sensor and a right rear wheel speed sensor, and each harness is introduced into a data acquisition card. The harness of the whole vehicle after series connection is shown in fig. 2, wherein the CAN wire is connected with CAN _ H and CAN _ L in a parallel mode, the wheel speed timestamp is cut open on the ground wire of the wheel speed signal, and two harnesses are led out from the cut open two ends. Leading out two wire harnesses by connecting a power line and a ground wire of the motor in parallel, and taking the two wire harnesses as a power supply source of the acquisition equipment; on the basis of fig. 2, in the present application, the CAN signal acquisition may be directly connected to the CAN chip 120 by two parallel CAN lines, for example, a phy chip, and the CAN signal acquisition may be input to a CAN processing peripheral inside the SoC131 for receiving after being converted into a single-ended signal, so as to realize the acquisition of the CAN signal.

Adopt the data acquisition card that this application provided, a fast sensor of wheel is all connected to every way data acquisition module, and every way data acquisition module all connects SOC, and the time-recorder of connecting through SOC has realized that every way data acquisition module all adopts same time-recorder, the synchronism of the timestamp signal of acquireing in time has been guaranteed, gather precision and rate of accuracy, very strong real-time has, and when the change that detects the fast pulse signal of wheel was followed, the time of the current time-recorder of record is the fast timestamp of the wheel of the same way, in addition the input connection CAN bus of CAN chip, output connection SOC, in order to realize the collection of CAN signal, thereby adopt the data acquisition card that this application provided, not only CAN gather the CAN signal, and CAN also gather the fast timestamp information of each way wheel.

Illustratively, in some possible embodiments, the programmable logic unit 132 further comprises: a plurality of sets of block random access memories 1322, each set of block random access memories comprising: and each memory in each group of random access memories is connected with the SOC131 so as to cache four-path wheel speed timestamps acquired by the SOC 131.

Fig. 3 is a schematic structural diagram of a data acquisition module according to an embodiment of the present application, in an embodiment of the present application, for four-way timestamp data, for example, 8 BLOCK random access memories BLOCK _ RAM may be used in a programmable logic unit to buffer four acquired wheel speed timestamps, where each 4 BLOCK _ RAMs are a group. When the 2 groups of BLOCK _ RAMs buffer the timestamp data, the 2-level buffering can be performed in a ping-pong switching manner, so that the continuity and the synchronism of the data stream are ensured; it should be understood that the above embodiments are only exemplary, and 3 or 4 or more groups of block random access memories may also be used for ping-pong switching, and the specific manner of use may be flexibly adjusted according to the user's needs, and is not limited to the above embodiments.

In the embodiment of the present application, the 4-way BLOCK _ RAM shares a timer 1321, and each rising edge of the wheel speed records a time value as a time stamp value of the wheel speed. As shown in fig. 3, in an embodiment of the present application, an input end of each data acquisition module is connected to a wheel speed sensor, and in a manner that each data acquisition module shares the same timer 1321, acquisition precision and acquisition accuracy are ensured, an acquisition processing flow in an SOC acquisition program is notified to an external interrupt of the SOC through a bus protocol (Advanced eXtensible Interface, AXI) at a preset time interval in an acquisition process, so as to perform data synchronization processing, where the preset time interval may be, for example, 10 ms. The method comprises the steps that memory access of an address bus is carried out in Soc in a mmap address mapping mode, copying from a BLOCK _ RAM to a DDR3 memory used by the SOC is completed, and the SOC carries out online reconstruction on the FPGA chip through an AIX bus in the application, so that dynamic function change of the FPGA chip can be realized.

Illustratively, in other possible embodiments, the programmable logic unit further comprises: the trigger is connected with the SOC, and each group of block random access memories is connected with the memory, so that the SOC can synchronize the wheel speed timestamp cached in each group of block random access memories into the memory at preset time intervals based on the synchronous trigger signal output by the trigger; in some possible embodiments, the preset time may be, for example, 10ms, it should be understood that the above embodiments are only exemplary, and the setting of the specific preset time may be flexibly adjusted according to the user's needs, and is not limited to the above embodiments.

Optionally, on the basis of the foregoing embodiments, an embodiment of the present application may further provide a data acquisition device, and fig. 4 is a schematic structural diagram of the data acquisition device provided in the embodiment of the present application, as shown in fig. 4, the device includes a transit harness and the data acquisition card 100 shown in any one of fig. 1 to fig. 3, where:

one end of a first wire harness in the switching wire harness is connected with a Controller Area Network (CAN) bus, the other end of the first wire harness is connected with a CAN chip in the data acquisition card, one end of a second wire harness in the switching wire harness is connected with a wheel speed sensor, and the other end of the second wire harness is connected with an input end of a data acquisition module in the data acquisition card.

In the embodiment of the application, the BIT program of the logic end of the FPGA chip CAN be dynamically loaded by a software system of the Soc part to adapt to different use occasions, wherein a module for acquiring the CAN signal in the Soc CAN select an IP core using a common CAN protocol or an IP core using a CANFD protocol. The IO acquisition of the external trigger signal can be a hard-line brake signal, and can also be dynamically expanded in a logic part of the FPGA chip, so that different FPGA logic files can be set in different occasions to perform loading adaptation. The SOC part comprises a CAN matrix analysis module, the basic information of the CAN matrix CAN be input into the SOC through an external upper computer, a matrix information file is generated in the SOC and stored locally, and when data are collected subsequently, different vehicle type matrixes CAN be selected as required to analyze and collect the data stored locally, so that the adaptation of different vehicle types is realized.

Fig. 4 is only a data acquisition device including a data acquisition card, and therefore, the beneficial effects brought by the data acquisition card are the same as those brought by the data acquisition card of fig. 1 to 3, and the detailed description of the present application is omitted.

In one embodiment of the application, one end of the first wire harness is connected to the CAN bus between the signal connectors, one end of the second wire harness is connected to the wheel speed signal end on the signal connector, the input end of the signal connector is connected to the four wheel speed sensors, and the output end of the signal connector is connected to the vehicle controller.

In another embodiment of the present application, the vehicle controller is a body stability control ESC controller and the signal connector is an ESC connector, or the vehicle controller may be a brake anti-lock braking system ABS controller and the signal connector may be an ABS connector.

Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a data acquisition method, and fig. 5 is a schematic flow chart of the data acquisition method provided in the embodiment of the present application, as shown in fig. 5, the method includes:

s201: and if the data processing mode is the data acquisition mode, acquiring a target vehicle type matrix.

The different target vehicle type matrixes may correspond to different acquisition modes, so that after the data acquisition mode is confirmed, the current target vehicle type matrix needs to be acquired, data acquisition can be subsequently performed according to the acquisition mode corresponding to the current target vehicle type matrix, the data acquisition can be applied to various different types of vehicle use scenes, and the application flexibility of the application is improved.

S202: and responding to the received synchronous trigger signal, and analyzing the acquired CAN signal according to the target vehicle type matrix to obtain CAN analysis data.

In an embodiment of the application, the SOC part may include a CAN matrix analysis module, for example, in the using process, after the basic information of the CAN matrix is acquired through an external upper computer, the SOC generates CAN analysis data according to the acquired CAN signal and stores the CAN analysis data locally, before data acquisition, different vehicle type matrices may be selected as required, and the CAN signal is analyzed according to different vehicle type matrices, thereby realizing adaptation of different vehicle types.

S203: and storing the CAN analysis data, the wheel speed time stamps of all the paths and the CAN signals.

In one embodiment of the present application, for example, data acquisition may be performed at a certain acquisition frequency, for example, 10ms, and then the acquired CAN analysis data, the wheel speed timestamps, and the CAN signals are stored in a preset storage form.

By adopting the data acquisition method provided by the application, the acquisition efficiency of the automobile CAN data is improved by using the FPGA chip, the data acquisition capacity is large, the accuracy is high, the acquisition function of the wheel speed timestamp is added, the defect that the wheel speed timestamp cannot be acquired in the prior art is overcome, the dynamic loading function CAN be used in the application to adapt to different acquisition and analysis occasions, and the number of the CAN equipment use types is saved.

Optionally, on the basis of the foregoing embodiments, an embodiment of the present application may further provide a data acquisition method, and an implementation procedure stored in the foregoing method is described as follows with reference to the accompanying drawings. Fig. 6 is a schematic flow chart of a data acquisition method according to another embodiment of the present application, and as shown in fig. 6, S203 may include:

s204: the CAN signal is stored in a first format.

S205: the wheel speed timestamps and the CAN signals are stored in a second format.

S206: and storing the CAN analysis data in a third format.

In an embodiment of the application, the CAN signal, each wheel speed timestamp, the CAN signal and the CAN analytic data all have a specific storage format corresponding to the CAN analytic data, the first format, the second format and the third format CAN be the same or different, the first format, the second format and the third format CAN be flexibly adjusted according to user requirements, each signal or data is stored in a local storage module of the SOC in the specific storage format corresponding to the signal or data, data content under the specific format CAN be directly collected conveniently during subsequent data collection, the data after the data collection does not need to be analyzed and processed, and therefore the efficiency of the subsequent data collection is improved.

Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a data acquisition method, and an implementation process of the foregoing method is described as follows with reference to the accompanying drawings. Fig. 7 is a schematic flow chart of a data acquisition method according to another embodiment of the present application, and as shown in fig. 7, the method may further include:

s207: and if the data processing mode is the data playback mode, acquiring a target vehicle type matrix.

The current data processing mode is switched to the data playback mode in response to a data playback instruction, and the data playback instruction can be sent by an external device, such as an external upper computer or a PC (personal computer) terminal, and is used for indicating that data needs to be acquired currently to perform data offline analysis.

S208: and sending the target vehicle type matrix and target data selected from the stored data to an external device for data playback.

In an embodiment of the application, during data playback, data to be played back may be sent to the outside through a preset network service according to a frequency of previous data acquisition or a higher frequency, so as to perform data playback, and accelerate data analysis and troubleshooting of ABS/ESC and iTPMS projects.

For example, in an embodiment of the present application, for example, a preset frequency may be collected, and the target vehicle type matrix and the target data are sent to an external device for data playback, where the preset frequency is greater than or equal to the collection frequency corresponding to the synchronization trigger signal.

By adopting the data acquisition method provided by the application, the acquisition efficiency of the automobile CAN data is improved by using the FPGA chip, the data acquisition capacity is large, the accuracy is high, in addition, the acquisition function of the wheel speed timestamp is increased, the defect that the wheel speed timestamp cannot be acquired in the prior art is overcome, the dynamic loading function CAN be used in the application to adapt to different acquisition and analysis occasions, the number of the CAN equipment using types is saved, and the original automobile information is restored through the data playback function.

The following explains the data acquisition device provided in the present application with reference to the drawings, where the data acquisition device can execute any one of the data acquisition methods shown in fig. 1 to 7, and specific implementation and beneficial effects of the data acquisition device refer to the above description, which is not described again below.

Fig. 8 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application, and as shown in fig. 8, the data acquisition device includes: an obtaining module 301, an analyzing module 302 and a storing module 303, wherein:

the obtaining module 301 is configured to obtain a target vehicle type matrix if the data processing mode is the data acquisition mode;

the analysis module 302 is configured to respond to the received synchronous trigger signal and analyze the acquired CAN signal according to the target vehicle type matrix to obtain CAN analysis data;

the storage module 303 is configured to store the CAN analysis data, the wheel speed timestamps of the respective paths, and the CAN signal.

Optionally, the storage module 303 is specifically configured to store the CAN signal in a first format; storing the wheel speed time stamps and the CAN signals of all paths in a second format; and storing the CAN analysis data in a third format.

Optionally, on the basis of the above embodiments, an embodiment of the present application may further provide a data acquisition apparatus, and an implementation process of the apparatus shown in fig. 8 is described as follows with reference to the accompanying drawings. Fig. 9 is a schematic structural diagram of a data acquisition device according to another embodiment of the present application, and as shown in fig. 9, the data acquisition device further includes: a sending module 304, wherein:

the obtaining module 301 is specifically configured to obtain a target vehicle type matrix if the data processing mode is the data playback mode;

and a sending module 304, configured to send the target vehicle type matrix and the target data selected from the stored data to an external device for data playback.

Optionally, the sending module 304 is specifically configured to collect a preset frequency, send the target vehicle type matrix and the target data to an external device for data playback, where the preset frequency is greater than or equal to the collection frequency corresponding to the synchronous trigger signal.

The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.

These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program, which, when executed by a processor, performs embodiments corresponding to the above-described method.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种多源车载BMS系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!