A method, device and storage medium for extracting automobile EDR data

By traversing the value range of CAN ID and event ID, the vehicle EDR data is automatically extracted, which solves the problem of difficulty in data extraction and invalid evidence of car manufacturers caused by differences in the protocols of different brands of models, and improves investigation efficiency and evidence validity.

CN115690939BActive Publication Date: 2024-09-27XIAMEN MEIYA PICO INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211119592.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2024-09-27
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

Different car brands and models have different EDR data extraction protocols, which makes data extraction difficult. When determining the responsibility of the car manufacturer, the EDR data evidence provided by the car manufacturer is invalid and the investigation efficiency is low.

Method used

By traversing the predetermined CAN ID and event ID value range, it sends diagnostic requests and event data extraction instructions to the EDR module to realize automated EDR data extraction, bypassing the manufacturer agreement, being compatible with different brands of models, and extracting it directly through the OBD interface or EDR module data.

Benefits of technology

It improves the efficiency of electronic data collection in accident investigations and ensures the validity of data evidence without relying on data extraction services provided by car manufacturers. It is suitable for various brands of models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115690939B
    Figure CN115690939B
Patent Text Reader

Abstract

The present invention provides a method, device and storage medium for extracting automobile EDR data, the method comprising: S1, sending a diagnostic request to an EDR module by traversing all CAN ID values ​​in a predetermined CAN ID value range, and when receiving a returned diagnostic confirmation, stopping the CAN ID traversal and recording the currently sent CAN ID; S2, using the recorded CAN ID to traverse all event ID values ​​in a predetermined event ID value range to send an event data extraction instruction to the EDR module, and when receiving the returned event data, recording the returned event data, and continuing to use the next event ID to send the event data extraction instruction to the EDR module until all event IDs have been traversed. The above technical solution can be compatible with EDRs of different brands and models, quickly extract EDR data, and there is no need to seek data extraction services provided by manufacturers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile data electronic evidence collection, and in particular to a method, device and storage medium for extracting automobile EDR data. Background Art

[0002] The automobile event data recording system EDR is used to record data information such as vehicle speed and driver's operating behavior at the time of the accident, providing objective and accurate electronic data for traffic accident investigation, analysis, and accident responsibility determination. The collision event data recorded by the automobile EDR comes from the data of other controllers, such as the engine, drive motor, battery, vehicle controller, etc., all of which can be obtained through the CAN bus. In order to extract these collision data, most vehicles currently use the unified diagnostic service UDS protocol to extract them through the CAN bus. UDS provides the basic framework for diagnostic services. Car manufacturers can develop their own diagnostic services within this framework, so different brands and models have different CAN interaction IDs for data extraction, and the event IDs recorded in the EDR are also different.

[0003] When conducting traffic accident investigations and electronic data forensics, in order to read EDR data, it is necessary to seek help from the vehicle manufacturer, which is a cumbersome and inefficient process. Moreover, for some accidents caused by defects in the vehicle itself, since it involves the determination of the vehicle manufacturer's responsibility, the validity of the EDR data provided by the vehicle manufacturer itself as electronic forensic data is invalid. Summary of the invention

[0004] Embodiments of the present invention provide a method, device and storage medium for extracting automobile EDR data to solve the problem that EDR data extraction is difficult due to different EDR data extraction protocols for different brands and models, and the EDR data evidence provided by the car manufacturer itself is invalid when it comes to determining the responsibility of the car manufacturer.

[0005] In order to achieve the above object, a method for extracting automobile EDR data is provided on the one hand, which is used to extract EDR data from an EDR module of an automobile, and is characterized by comprising:

[0006] S1, sending a diagnostic request to the EDR module through the CAN bus in a manner of traversing all CAN ID values ​​in a predetermined CAN ID value range, wherein the diagnostic request includes the currently traversed CAN ID, and when receiving a diagnostic confirmation returned by the EDR module, stopping the CAN ID traversal and recording the CAN ID included in the currently sent diagnostic request;

[0007] S2, using the recorded CAN ID to traverse all event ID values ​​in the predetermined event ID value range to send an event data extraction instruction to the EDR module, the event data extraction instruction contains the currently traversed event ID, when the event data returned by the EDR module is received, the returned event data is recorded, and the next event ID is continued to be used to send event data extraction instructions to the EDR module until all event IDs have been traversed.

[0008] Preferably, in the method described, the predetermined CAN ID value range is 0x001-0x7FF.

[0009] Preferably, in the method, step S1 comprises:

[0010] S11, sending a diagnostic request to the EDR module via the CAN bus, wherein the diagnostic request includes a CAN ID selected from a predetermined CAN ID value range;

[0011] S12, determining whether the diagnostic confirmation returned by the EDR is received; if so, stopping the traversal and recording the CAN ID contained in the currently sent diagnostic request; otherwise, executing step S13;

[0012] S13, continue to send a diagnostic request to the EDR module via the CAN bus, the diagnostic request includes the next CAN ID obtained by traversing the CAN ID values ​​in the predetermined CAN ID value range, and proceed to execute step S12.

[0013] Preferably, in the method, step S2 comprises:

[0014] S21, selecting an event ID from a predetermined event ID value range and sending an event data extraction instruction to the EDR module;

[0015] S22, determining whether the EDR module can identify the event ID in the current event data extraction instruction and return data; if so, executing step S23; otherwise, executing step S24;

[0016] S23, determine whether the data returned by the EDR module carries the response identifier ID0x62; if so, record the data returned by the EDR module and proceed to step S24; otherwise, execute step S24;

[0017] S24, determine whether all event ID values ​​in the predetermined event ID value range have been traversed; if so, end the process; otherwise, select the next unsent event ID from the event ID value range to continue sending event data extraction instructions to the EDR module, and then proceed to step S22.

[0018] Preferably, in the method described, the event ID value range is: 0x0001 to 0xFFFF.

[0019] On the other hand, a device for extracting automobile EDR data is provided, comprising a memory and a processor, wherein the memory stores at least one program, and the at least one program is executed by the processor to implement any of the methods described above.

[0020] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one program, and the at least one program is executed by a processor to implement any of the methods described above.

[0021] The above technical solution has the following technical effects:

[0022] The technical solution of the embodiment of the present invention provides an automated EDR data extraction method. According to the UDS protocol framework, the EDR data can be quickly extracted by continuously traversing the CAN ID and event ID of the extraction instruction to the EDR module through the OBD interface or by directly connecting to the EDR module, thereby bypassing the automobile manufacturer and being perfectly compatible with the EDRs of different brands and models. There is no need to seek data extraction services from the manufacturer, thereby improving the efficiency of electronic data collection in accident investigations and ensuring the validity of electronic data evidence. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a method for extracting automobile EDR data according to an embodiment of the present invention;

[0024] Figure 2 A flowchart of a method for extracting automobile EDR data according to another embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the structure of a device for extracting automobile EDR data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] To further illustrate the various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, a person of ordinary skill in the art should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.

[0027] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.

[0028] Embodiment 1:

[0029] Figure 1FIG. 1 is a flow chart of a method for extracting automobile EDR data according to an embodiment of the present invention. Figure 1 , a method for extracting automobile EDR data according to an embodiment of the present invention includes:

[0030] S1, sending a diagnostic request to the EDR module through the CAN bus in a manner of traversing all CAN ID values ​​in a predetermined CAN ID value range, wherein the diagnostic request includes the currently traversed CAN ID, and when receiving a diagnostic confirmation returned by the EDR module, stopping the CAN ID traversal and recording the CAN ID included in the currently sent diagnostic request;

[0031] S2, using the recorded CAN ID, sends an event data extraction instruction to the EDR module in a manner of traversing all event ID values ​​in a predetermined event ID value range. The event data extraction instruction includes the currently traversed event ID. When the event data returned by the EDR module is received, the returned event data is recorded, and the next unsent event ID is continued to be used to send the event data extraction instruction to the EDR module until all event IDs have been traversed.

[0032] Using this traversal solution, all event data in the EDR can be extracted, regardless of which CAN ID or event ID or IDs the car manufacturer actually uses in the EDR.

[0033] Implementation 2:

[0034] Figure 2 FIG. 1 is a flow chart of a method for extracting automobile EDR data according to another embodiment of the present invention. Figure 2 , the method of this embodiment comprises the following steps:

[0035] Step 1, sending a diagnostic request to the EDR module of the car through the CAN bus; according to the unified diagnostic service (UDS) protocol used by the CAN bus, the diagnostic request carries parameters, including CAN ID; the value range of the interactive CAN ID is the standard range of 0x001-0x7FF, a total of 11 bits; the CAN ID carried in the diagnostic request is a CAN ID selected from the predetermined CAN ID value range;

[0036] Step 2, determine whether the EDR module can recognize the current CAN ID and return a diagnostic confirmation; if not, automatically replace the CAN ID with another CAN ID in the predetermined CAN ID value range and return to step 1 to continue sending a diagnostic request; if the EDR can recognize the CAN ID in the diagnostic request, proceed to step 3; otherwise, continue to replace another CAN ID to continue sending a diagnostic request until all CAN IDs in the predetermined CAN ID value range have been traversed;

[0037] Step 3, record the CAN ID carried in the current diagnostic request; generally speaking, the EDR module can recognize only one CAN ID. After finding this CAN ID, the automatic traversal process of the CAN ID can be ended;

[0038] Step 4, using the CAN ID found and recorded by traversal, to send an event data extraction instruction, the event data extraction instruction includes an event ID; generally speaking, the event extraction instruction is 8 bytes, 2 bytes of which are used to store the event ID; the event ID here is an event ID selected from a predetermined event ID value range;

[0039] Step 5, determine whether the EDR can recognize the event ID in the current data extraction instruction and return the data; if not, proceed to step 7; if yes, proceed to step 6;

[0040] Step 6, determine whether the EDR return data carries a response ID 0x62; if it carries a response ID, it indicates that it is event data, record the data, and proceed to step 7; if it does not carry a response ID, proceed to step 7;

[0041] Step 7, determine whether all event IDs have been traversed. The event ID range is 0x0001 to 0xFFFF (2 bytes, 16 bits). If not, automatically replace the next unsent event ID in the event ID value range and return to step 4 to continue sending event data extraction instructions to the EDR module; if all event IDs have been traversed, proceed to step 8;

[0042] Step 8: At this point, all event data has been traversed and extracted, and the process ends.

[0043] By using the extraction method of the embodiment of the present invention, all CAN IDs and event IDs that may be used by all manufacturers can be traversed. No matter what CAN ID and event ID the manufacturer chooses to use, matching CAN IDs and event IDs can be found through this traversal method, and corresponding event data can be extracted, such as speed, throttle, brake, signal, lateral acceleration and / or longitudinal acceleration. The traversed CAN ID range and event ID range in this embodiment are determined according to the UDS protocol. The technical solution of the embodiment of the present invention can be applied to other predetermined CAN ID ranges and event ID ranges.

[0044] The embodiment of the present invention can be implemented through any CAN bus platform.

[0045] Embodiment three:

[0046] The present invention also provides a device for extracting automobile EDR data, such as Figure 3 As shown, the device includes a processor 301, a memory 302, a bus 303, and a computer program stored in the memory 302 and executable on the processor 301. The processor 301 includes one or more processing cores. The memory 302 is connected to the processor 301 via the bus 303. The memory 302 is used to store program instructions. When the processor executes the computer program, the steps in the above method embodiment of the first embodiment of the present invention are implemented.

[0047] Further, as an executable solution, the device for extracting automobile EDR data may be a computer unit, which may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The computer unit may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the composition structure of the above-mentioned computer unit is merely an example of a computer unit and does not constitute a limitation on the computer unit, and may include more or fewer components than the above, or a combination of certain components, or different components. For example, the computer unit may also include input and output devices, network access devices, buses, etc., which are not limited in the embodiments of the present invention.

[0048] Further, as an executable solution, the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer unit, and various interfaces and lines are used to connect the various parts of the entire computer unit.

[0049] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the computer unit by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0050] Embodiment 4:

[0051] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method in the embodiment of the present invention are implemented.

[0052] If the module / unit integrated in the computer 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

[0053] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.

Claims

1. A method for extracting automobile EDR data, for extracting EDR data from an EDR module of an automobile, characterized in that: include: S1, sending a diagnostic request to the EDR module through the CAN bus in a manner of traversing all CAN ID values ​​in a predetermined CAN ID value range, wherein the diagnostic request includes the currently traversed CAN ID, and when receiving a diagnostic confirmation returned by the EDR module, stopping the CAN ID traversal and recording the CAN ID included in the currently sent diagnostic request; S2, using the recorded CAN ID to send an event data extraction instruction to the EDR module in a manner of traversing all event ID values ​​in a predetermined event ID value range, wherein the event data extraction instruction includes the currently traversed event ID, and when event data returned by the EDR module is received, the returned event data is recorded, and the next event ID is continued to be used to send event data extraction instructions to the EDR module until all event IDs have been traversed.

2. The method according to claim 1, characterized in that The predetermined CAN ID value range is 0x001-0x7FF.

3. The method according to claim 1, characterized in that The step S1 comprises: S11, sending a diagnostic request to the EDR module via the CAN bus, wherein the diagnostic request includes a CAN ID selected from the predetermined CAN ID value range; S12, determining whether the diagnostic confirmation returned by the EDR is received; if so, stopping the traversal and recording the CAN ID contained in the currently sent diagnostic request; otherwise, executing step S13; S13, continue to send a diagnostic request to the EDR module via the CAN bus, wherein the diagnostic request includes a next CAN ID obtained by traversing the CAN ID values ​​in the predetermined CAN ID value range, and proceed to execute step S12.

4. The method according to claim 1, characterized in that The step S2 comprises: S21, selecting an event ID from a predetermined event ID value range and sending an event data extraction instruction to the EDR module; S22, determining whether the EDR module can identify the event ID in the current event data extraction instruction and return data; if so, executing step S23; otherwise, executing step S24; S23, determine whether the data returned by the EDR module carries the response identifier ID0x62; if so, record the data returned by the EDR module and proceed to step S24; otherwise, execute step S24; S24, determine whether all event ID values ​​in the predetermined event ID value range have been traversed; if so, end the process; otherwise, select the next unsent event ID from the event ID value range to continue sending event data extraction instructions to the EDR module, and then proceed to step S22.

5. The method according to claim 1 or 4, characterized in that: The event ID value range is: 0x0001~0xFFFF.

6. A device for extracting automobile EDR data, characterized in that: The method comprises a memory and a processor, wherein the memory stores at least one program, and the at least one program is executed by the processor to implement the method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that: The storage medium stores at least one program, and the at least one program is executed by a processor to implement the method according to any one of claims 1 to 5.