Fault snapshot reading method, system and equipment of vehicle and medium
By generating multiple fault code snapshot reading instructions through the OBD diagnostic instrument and using Ethernet to communicate with the vehicle gateway and controller, the fault snapshot reading process is optimized, solving the problem of low efficiency in electric vehicle fault snapshot reading and achieving efficient fault troubleshooting.
Patent Information
- Application Number
- CN202510749639.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-09-30
AI Technical Summary
In the prior art, the efficiency of reading electric vehicle fault snapshots is low and requires multiple repeated operations, which makes the operation cumbersome and wastes time.
The OBD diagnostic instrument generates a fault snapshot reading instruction containing multiple fault codes, sends it to the vehicle gateway via Ethernet, and forwards it to the in-vehicle controller through the gateway to receive and parse the fault snapshot data, thereby optimizing the command sending and receiving process.
It improves the efficiency of fault snapshot reading, increases convenience and user experience, shortens troubleshooting time, and saves maintenance time.
Smart Images

Figure CN120729892A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, system, device, and medium for reading a vehicle fault snapshot. Background Art
[0002] In the related art, when an electric vehicle performs fault snapshot reading, generally speaking, only the snapshot information of one fault code can be read each time. When multiple fault snapshots are desired, the operation is usually repeated multiple times. Although this method of reading fault snapshots can realize the function of reading all fault snapshots, the operation is cumbersome and wastes a lot of time, resulting in low efficiency in reading fault snapshots. Summary of the Invention
[0003] Based on this, it is necessary to provide a vehicle fault snapshot reading method, system, device and medium to address the above technical problems, which optimizes the process of sending and receiving commands, saves the time of reading fault snapshots, improves the efficiency of fault snapshot reading, increases convenience and user experience, and can complete the reading of all vehicle fault snapshots in a shorter time, saving maintenance time and improving the efficiency of troubleshooting.
[0004] In a first aspect, a method for reading a vehicle fault snapshot is provided, which is applied to an OBD diagnostic instrument. The method comprises:
[0005] The OBD diagnostic instrument generates a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes a plurality of fault codes;
[0006] Sending the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller;
[0007] The fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0008] In some examples, the OBD diagnostic instrument generates a fault snapshot reading instruction based on a fault code in a fault code set, including:
[0009] Selecting some or all fault codes from the fault code set;
[0010] According to a preset fault snapshot reading instruction protocol, the selected part or all of the fault codes are used to generate the fault snapshot reading instruction.
[0011] In some examples, this also includes:
[0012] Receive an update instruction for a fault code set;
[0013] According to the update instruction, the fault codes in the fault code set are updated.
[0014] In some examples, the receiving, via the Ethernet, the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction, includes:
[0015] The in-vehicle controller receives the fault snapshot reading instruction sent by the OBD diagnostic instrument and forwarded by the gateway;
[0016] Parsing a plurality of fault codes from the fault snapshot reading instruction;
[0017] Retrieving fault snapshots corresponding to the plurality of fault codes one by one from a fault snapshot memory;
[0018] Generate a fault snapshot data recovery instruction based on the retrieved fault snapshot;
[0019] The gateway replies the fault snapshot data reply instruction to the OBD diagnostic instrument via Ethernet.
[0020] In some examples, generating a fault snapshot data recovery instruction based on the retrieved fault snapshot includes:
[0021] According to a preset fault snapshot data recovery instruction protocol, the retrieved fault snapshot is used to generate the fault snapshot data recovery instruction.
[0022] In some examples, after receiving the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway through the Ethernet, the method further includes:
[0023] Parsing the fault snapshot data from the fault snapshot data recovery instruction;
[0024] The fault snapshot data is displayed to the user.
[0025] In a second aspect, a vehicle fault snapshot reading system is provided, which is applied to an OBD diagnostic instrument, and the system includes:
[0026] a generating module, configured to generate a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes a plurality of fault codes;
[0027] a sending module, configured to send the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller;
[0028] A reading module is used to receive the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway through the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0029] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the vehicle fault snapshot reading method of the first aspect and any possible implementation of the first aspect are implemented.
[0030] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the vehicle fault snapshot reading method of the above-mentioned first aspect and any possible implementation of the first aspect are implemented.
[0031] In a fifth aspect, a computer program product is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the vehicle fault snapshot reading method of the above-mentioned first aspect and any possible implementation of the first aspect are implemented.
[0032] By using an embodiment of the present application, an OBD diagnostic instrument can generate a fault snapshot read instruction based on the fault codes in the fault code set, and send the fault snapshot read instruction to the vehicle's gateway via Ethernet, so that the fault snapshot read instruction is forwarded to the in-vehicle controller via the gateway, and finally receive the fault snapshot data replied by the in-vehicle controller forwarded by the gateway via Ethernet. The OBD diagnostic instrument can generate a fault snapshot read instruction based on multiple fault codes in the fault code set, that is, the method of reading multiple fault snapshots is integrated into one instruction instead of sending multiple instructions. This optimizes the command sending and receiving process, saves the time of reading fault snapshots, improves efficiency, increases convenience and user experience, and can complete the reading of all vehicle fault snapshots in a shorter time, saving maintenance time and improving the efficiency of troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Other features, objects and advantages of the present application will become more apparent upon reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0034] Figure 1 This is a flowchart of a method for reading a vehicle fault snapshot provided in an embodiment of the present application;
[0035] Figure 2 Schematic diagram of an implementation of a method for reading a vehicle fault snapshot provided in an embodiment of the present application;
[0036] Figure 3This is a structural block diagram of a vehicle fault snapshot reading system provided in an embodiment of the present application;
[0037] Figure 4 This is a structural block diagram of the computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The present application will be further described in detail below with reference to the embodiments and accompanying drawings. It should be understood that the specific embodiments described herein are intended only to illustrate the relevant application and are not intended to limit the application. It should also be noted that, for ease of description, only the portions relevant to the application are shown in the accompanying drawings.
[0039] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] The following describes in detail the method, system, device and medium for reading a fault snapshot of a vehicle according to an embodiment of the present application in conjunction with the accompanying drawings.
[0041] Figure 1 FIG. 1 is a flow chart of a method for reading a vehicle fault snapshot according to an embodiment of the present application. Figure 1 As shown, the vehicle fault snapshot reading method according to an embodiment of the present application is applied to an OBD (On-Board Diagnostics) diagnostic instrument and includes the following steps:
[0042] S101: The OBD diagnostic instrument generates a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes multiple fault codes.
[0043] In one embodiment of the present application, the OBD diagnostic instrument generates a fault snapshot reading instruction based on the fault codes in the fault code set, including: selecting some or all fault codes from the fault code set; and generating the fault snapshot reading instruction for the selected part or all fault codes according to a preset fault snapshot reading instruction protocol.
[0044] The fault codes in the fault code set can be updated, for example, by receiving an update instruction for the fault code set; and updating the fault codes in the fault code set according to the update instruction.
[0045] S102: Send the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the fault snapshot reading instruction is forwarded to an in-vehicle controller via the gateway.
[0046] S103: Receive the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0047] In a specific example, the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data based on multiple fault codes in the fault snapshot reading instruction, including: the in-vehicle controller receives the fault snapshot reading instruction sent by the OBD diagnostic instrument and forwarded by the gateway; parses multiple fault codes from the fault snapshot reading instruction; retrieves fault snapshots corresponding to the multiple fault codes from the fault snapshot memory; generates a fault snapshot data reply instruction based on the retrieved fault snapshot; and the gateway replies the fault snapshot data reply instruction to the OBD diagnostic instrument via Ethernet.
[0048] In this example, generating the fault snapshot data recovery instruction based on the retrieved fault snapshot includes: generating the fault snapshot data recovery instruction from the retrieved fault snapshot according to a preset fault snapshot data recovery instruction protocol.
[0049] After receiving the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway through the Ethernet, the method further includes: parsing the fault snapshot data from the fault snapshot data reply instruction; and displaying the fault snapshot data to the user.
[0050] As a specific example, combining Figure 2 As shown in Figure 1, the OBD diagnostic instrument communicates with the vehicle's gateway (GW) via Ethernet, and the gateway (GW) can communicate with the vehicle's controller via the vehicle's CAN bus. The OBD diagnostic instrument sends a command to read the fault snapshot, receives a reply from the controller, parses the snapshot data, and displays it to the user. The format of the command sent to read the snapshot is shown in Table 1:
[0051] Table 1
[0052]
[0053] The gateway GW forwards the fault snapshot request sent by the diagnostic instrument to the corresponding in-vehicle controller, and forwards the fault snapshot reply instruction replied by the in-vehicle controller to the diagnostic instrument.
[0054] The in-vehicle controller receives the fault snapshot request sent by the diagnostic instrument, parses it, retrieves the snapshot data stored in the EEROM, and returns the fault snapshot data to the diagnostic instrument according to the defined protocol. The instructions for returning the snapshot are shown in Table 2:
[0055] Table 2
[0056]
[0057]
[0058] According to the vehicle fault snapshot reading method of the embodiment of the present application, the OBD diagnostic instrument can generate a fault snapshot reading instruction based on the fault code in the fault code set, and send the fault snapshot reading instruction to the vehicle's gateway via Ethernet, so that the fault snapshot reading instruction is forwarded to the in-vehicle controller via the gateway, and finally receive the fault snapshot data replied by the in-vehicle controller forwarded by the gateway via Ethernet. The OBD diagnostic instrument can generate a fault snapshot reading instruction based on multiple fault codes in the fault code set, that is, the method of reading multiple fault snapshots is integrated into one instruction instead of sending multiple instructions. As a result, the command sending and receiving process is optimized, the time for reading fault snapshots is saved, the efficiency is improved, the convenience and user experience are increased, and the reading of all vehicle fault snapshots can be completed in a shorter time, saving maintenance time and improving the efficiency of troubleshooting.
[0059] Figure 3 This is a structural block diagram of a vehicle fault snapshot reading system according to an embodiment of the present application. Figure 3 As shown, the vehicle fault snapshot reading system according to an embodiment of the present application includes: a generating module 310, a sending module 320 and a reading module 330, wherein:
[0060] A generating module 310 is configured to generate a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes a plurality of fault codes;
[0061] The sending module 320 sends the fault snapshot reading instruction to the gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to the in-vehicle controller;
[0062] The reading module 330 is configured to receive the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0063] In one embodiment of the present application, the OBD diagnostic instrument generates a fault snapshot reading instruction based on the fault codes in the fault code set, including: selecting some or all fault codes from the fault code set; and generating the fault snapshot reading instruction for the selected part or all fault codes according to a preset fault snapshot reading instruction protocol.
[0064] The fault codes in the fault code set can be updated, for example, by receiving an update instruction for the fault code set; and updating the fault codes in the fault code set according to the update instruction.
[0065] In a specific example, the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data based on multiple fault codes in the fault snapshot reading instruction, including: the in-vehicle controller receives the fault snapshot reading instruction sent by the OBD diagnostic instrument and forwarded by the gateway; parses multiple fault codes from the fault snapshot reading instruction; retrieves fault snapshots corresponding to the multiple fault codes from the fault snapshot memory; generates a fault snapshot data reply instruction based on the retrieved fault snapshot; and the gateway replies the fault snapshot data reply instruction to the OBD diagnostic instrument via Ethernet.
[0066] In this example, generating the fault snapshot data recovery instruction based on the retrieved fault snapshot includes: generating the fault snapshot data recovery instruction from the retrieved fault snapshot according to a preset fault snapshot data recovery instruction protocol.
[0067] After receiving the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway through the Ethernet, the method further includes: parsing the fault snapshot data from the fault snapshot data reply instruction; and displaying the fault snapshot data to the user.
[0068] As a specific example, combining Figure 2 As shown, the OBD diagnostic tool communicates with the vehicle's gateway (GW) via Ethernet. The gateway (GW) then communicates with the vehicle's controller via the vehicle's CAN bus. The OBD diagnostic tool sends a fault snapshot read command, receives a fault snapshot reply from the controller, parses the snapshot data, and displays it to the user. The gateway (GW) forwards the diagnostic tool's fault snapshot request to the corresponding vehicle controller and forwards the controller's fault snapshot reply back to the diagnostic tool.
[0069] The in-vehicle controller receives the fault snapshot request sent by the diagnostic instrument, parses it, retrieves the snapshot data stored in the EEROM, and returns the fault snapshot data to the diagnostic instrument according to the defined protocol.
[0070] According to the vehicle fault snapshot reading system of the embodiment of the present application, the OBD diagnostic instrument can generate a fault snapshot reading instruction based on the fault codes in the fault code set, and send the fault snapshot reading instruction to the vehicle's gateway via Ethernet, so that the fault snapshot reading instruction is forwarded to the in-vehicle controller via the gateway, and finally receive the fault snapshot data replied by the in-vehicle controller forwarded by the gateway via Ethernet. The OBD diagnostic instrument can generate a fault snapshot reading instruction based on multiple fault codes in the fault code set, that is, the method of reading multiple fault snapshots is integrated into one instruction instead of sending multiple instructions. As a result, the command sending and receiving process is optimized, the time for reading fault snapshots is saved, the efficiency is improved, the convenience and user experience are increased, and the reading of all vehicle fault snapshots can be completed in a shorter time, saving maintenance time and improving the efficiency of troubleshooting.
[0071] The specific definitions of the vehicle fault snapshot reading system can be found in the definitions of the vehicle fault snapshot reading method described above and will not be further elaborated here. The various modules of the vehicle fault snapshot reading system described above may be implemented in whole or in part via software, hardware, or a combination thereof. These modules may be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, allowing the processor to call and execute the corresponding operations of each module.
[0072] In one embodiment, a computer device is provided. Figure 4 This is a block diagram of the computer device provided in the embodiment of the present application, refer to Figure 4 The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the embodiment of the method for reading a fault snapshot of the vehicle is implemented. For example, the OBD diagnostic instrument generates a fault snapshot reading instruction based on a fault code in a fault code set, wherein the fault code set includes multiple fault codes;
[0073] Sending the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller;
[0074] The fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0075] The present application also provides a computer-readable storage medium storing a computer program. When a processor executes the computer program, the method for reading a vehicle fault snapshot is implemented. For example, the OBD diagnostic instrument generates a fault snapshot reading instruction based on a fault code in a fault code set, wherein the fault code set includes multiple fault codes.
[0076] Sending the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller;
[0077] The fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0078] The present application embodiment provides a computer program product, which includes instructions. When the instructions are executed, the method described in the embodiment of the present application is executed. For example, you can execute Figure 1 The steps of the vehicle fault snapshot reading method shown are, for example, performed as follows: the OBD diagnostic instrument generates a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes a plurality of fault codes;
[0079] Sending the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller;
[0080] The fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
[0081] Those skilled in the art will appreciate that all or part of the processes in the methods for implementing the above embodiments can be accomplished by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0082] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0083] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A method for reading a vehicle fault snapshot, characterized in that: Applied to an OBD diagnostic instrument, the method includes: The OBD diagnostic instrument generates a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes a plurality of fault codes; Sending the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller; The fault snapshot data replied by the in-vehicle controller and forwarded by the gateway is received via the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
2. The method for reading a vehicle fault snapshot according to claim 1, characterized in that: The OBD diagnostic instrument generates a fault snapshot reading instruction according to the fault code in the fault code set, including: Selecting some or all fault codes from the fault code set; According to a preset fault snapshot reading instruction protocol, the selected part or all of the fault codes are used to generate the fault snapshot reading instruction.
3. The method for reading a vehicle fault snapshot according to claim 1, characterized in that: Also includes: Receive an update instruction for a fault code set; According to the update instruction, the fault codes in the fault code set are updated.
4. The method for reading a vehicle fault snapshot according to any one of claims 1 to 3, characterized in that: The receiving, via the Ethernet, the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway, wherein the in-vehicle controller obtains the fault snapshot data according to the multiple fault codes in the fault snapshot reading instruction, including: The in-vehicle controller receives the fault snapshot reading instruction sent by the OBD diagnostic instrument and forwarded by the gateway; Parsing a plurality of fault codes from the fault snapshot reading instruction; Retrieving fault snapshots corresponding to the plurality of fault codes one by one from a fault snapshot memory; Generate a fault snapshot data recovery instruction based on the retrieved fault snapshot; The gateway replies the fault snapshot data reply instruction to the OBD diagnostic instrument via Ethernet.
5. The method for reading a vehicle fault snapshot according to claim 4, characterized in that: Generating a fault snapshot data reply instruction according to the retrieved fault snapshot includes: According to a preset fault snapshot data recovery instruction protocol, the retrieved fault snapshot is used to generate the fault snapshot data recovery instruction.
6. The method for reading a vehicle fault snapshot according to claim 5, characterized in that: After receiving the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway through the Ethernet, the method further includes: Parsing the fault snapshot data from the fault snapshot data recovery instruction; The fault snapshot data is displayed to the user.
7. A vehicle fault snapshot reading system, characterized in that: Applied to an OBD diagnostic instrument, the system includes: a generating module, configured to generate a fault snapshot reading instruction according to a fault code in a fault code set, wherein the fault code set includes a plurality of fault codes; a sending module, configured to send the fault snapshot reading instruction to a gateway of the vehicle via Ethernet, so that the gateway forwards the fault snapshot reading instruction to an in-vehicle controller; A reading module is used to receive the fault snapshot data replied by the in-vehicle controller and forwarded by the gateway through the Ethernet, wherein the in-vehicle controller obtains the fault snapshot data according to multiple fault codes in the fault snapshot reading instruction.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for reading a fault snapshot of a vehicle according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium comprising a memory and a computer program stored in the memory and executable on a processor, characterized in that: When the program is executed by a processor, the method for reading a fault snapshot of a vehicle according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a memory and a computer program stored in the memory and executable on a processor, characterized in that: When the program is executed by a processor, the method for reading a fault snapshot of a vehicle according to any one of claims 1 to 6 is implemented.