A test method for an automatic diagnosis electric detection device of a new energy vehicle

By initializing the connection, loading the instruction queue in an orderly manner, and performing three rounds of retry judgment in the new energy vehicle electrical testing equipment, the problems of misjudgment and lack of traceability of the electrical testing equipment are solved, and efficient and reliable test results and quality control are achieved.

CN122363178APending Publication Date: 2026-07-10BAIC BLUEPARK MAGNA AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BAIC BLUEPARK MAGNA AUTOMOBILE CO LTD
Filing Date
2026-05-11
Publication Date
2026-07-10

Smart Images

  • Figure CN122363178A_ABST
    Figure CN122363178A_ABST
Patent Text Reader

Abstract

This invention discloses a testing method for an automatic diagnostic electrical testing device for new energy vehicles. The method includes device initialization and establishing a diagnostic communication connection with the vehicle's electronic control unit (ECU). A diagnostic command queue is loaded, and a single diagnostic command is retried three times with fixed time intervals. After each retried round, a response judgment is performed. If a valid response is received from the ECU in any round, the current command is considered passed; if no valid response is received in three consecutive rounds, the current command is considered failed. All diagnostic commands are iterated through, and the retried judgment process described above is repeated. This invention, through a standardized process of device initialization, communication establishment, and command queue loading, executes diagnostic tasks in an orderly manner according to domain controllers. Combined with a three-time fixed 2-second interval command retry mechanism, it effectively overcomes problems such as instantaneous communication interference, bus fluctuations, and ECU response delays, significantly reducing the command misjudgment rate and improving the testing stability and pass rate of the electrical testing equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy vehicle application technology, and in particular to a testing method for an automatic diagnostic electrical testing device for new energy vehicles. Background Technology

[0002] With the rapid development of the new energy vehicle industry, the number of electronic control units (ECUs) in vehicles continues to increase, and the complexity of electronic control systems is constantly rising. Automated diagnostic testing equipment has become a core component in the production, off-line testing, and after-sales maintenance of new energy vehicles, used to complete critical testing tasks such as ECU communication, data reading and writing, fault code clearing, and version verification. Currently, most mainstream electronic testing equipment in the industry adopts a single-command issuance mode, relying on a fixed timing sequence to complete diagnostic communication and result judgment. The process is highly standardized and can adapt to the basic testing needs of most conventional vehicle models.

[0003] Existing electrical testing equipment and methods have significant technical flaws: a single diagnostic command is issued only once, without a retry mechanism, making it prone to misjudgment due to issues such as transient communication interference, bus load fluctuations, and electronic control unit response delays; the command execution status lacks hierarchical judgment, and a single lack of response marks it as a failure, reducing the diagnostic pass rate and testing stability; the diagnostic process is not executed in an orderly manner according to the domain controller, the command queue loading is not standardized, and the test results lack complete log recording and system upload links, making it difficult to meet the high-precision, high-reliability, and traceable automated electrical testing requirements of new energy vehicles, affecting the efficiency and quality control of vehicle testing. Therefore, this invention proposes a testing method for an automated diagnostic electrical testing equipment for new energy vehicles. Summary of the Invention

[0004] The technical problem to be solved by this invention is to provide a testing method for automatic diagnostic electrical testing equipment for new energy vehicles, which solves the problems of traditional methods such as no instruction for retry, easy misjudgment, non-standard process, and untraceable results.

[0005] To solve the above-mentioned technical problems, one technical solution adopted by the present invention is: to provide a testing method for an automatic diagnostic electrical testing device for new energy vehicles, comprising the following steps:

[0006] S1. Initialize the device and establish a diagnostic communication connection with the vehicle's electronic control unit, and load the diagnostic command queue;

[0007] S2. Perform three rounds of retrying a single diagnostic command with fixed time intervals, and perform response judgment after each round of retrying;

[0008] S3. If a valid response is received from the electronic control unit in any round, the current command is deemed to have passed; if no valid response is received in three consecutive rounds, the current command is deemed to have failed.

[0009] S4. Traverse all diagnostic commands and execute the above retry determination process, and finally output the vehicle diagnostic results based on the execution status of all commands.

[0010] The present invention is further configured such that S1 specifically includes:

[0011] S1-1. Start the electrical testing equipment and load the corresponding vehicle model diagnostic project. Establish a physical link with the vehicle's electronic control unit through the standard diagnostic interface.

[0012] The above technical solution enables physical-layer interface between the electrical testing equipment and the electronic control system of the vehicle under test, ensuring that different vehicle models can be matched with the corresponding diagnostic engineering, laying the hardware connection foundation for subsequent communication and interaction.

[0013] S1-2. Enter the default diagnostic session and keep the diagnostic device online;

[0014] The above technical solutions maintain the stability of the diagnostic session and the online status of the equipment, avoiding abnormal termination of the testing process due to communication interruption.

[0015] S1-3. Read and load the diagnostic command queue containing vehicle identification code writing, configuration information writing, software and hardware version reading, and fault code clearing in the order of domain controllers.

[0016] The above technical solution loads core diagnostic commands in an orderly manner using domain controllers as units, ensuring a standardized and comprehensive testing process and avoiding command omissions or execution chaos.

[0017] The present invention is further configured such that the retry process for a single instruction in S2 specifically includes:

[0018] S2-1, First round of issuance: Issue diagnostic commands and start timeout timing, and listen for feedback messages from the electronic control unit;

[0019] Through the above technical solution, the first instruction interaction is initiated and timeout monitoring is started to capture feedback information from the electronic control unit in real time.

[0020] S2-2. If there is no valid response in the first round, wait for the first preset interval time and then execute the second round of distribution.

[0021] The above technical solution allows for retrying after a fixed interval following the initial lack of response, thus avoiding communication failures caused by momentary interference.

[0022] S2-3. If there is no valid response in the second round, wait for the second preset interval time before executing the third round of distribution;

[0023] By employing the above technical solution, after a second unresponsive attempt, the command triggering success rate is further improved by retrying at fixed intervals.

[0024] S2-4. After the third round of issuance is completed, the retry process for this instruction will be terminated.

[0025] By using the above technical solutions, the maximum number of retries is limited, preventing a single instruction from blocking the entire detection process and ensuring detection efficiency.

[0026] The present invention is further configured such that: both the first preset interval time and the second preset interval time are 2s, and the total number of retry rounds is three rounds.

[0027] The above technical solution employs a 2-second fixed interval and a 3-retry mechanism to balance retry response efficiency and bus load rationality, thereby balancing detection stability and time consumption.

[0028] The present invention is further configured such that: the response determination is specifically: if a standard positive response message is received from the electronic control unit, it is determined to be a valid response; if no message is received within the time limit or a negative response message is received, it is determined to be a non-valid response.

[0029] By using the above technical solutions, clear judgment rules are established based on standard messages to distinguish between valid responses and abnormal scenarios, thereby improving the accuracy of result judgment.

[0030] The present invention is further configured such that S4 specifically includes:

[0031] S4-1. Execute the aforementioned retry issuance and response determination process in a loop, and record the success or failure status of the instruction in real time;

[0032] By using the above technical solution, instructions are traversed one by one and the execution status is continuously recorded, so as to achieve full monitoring of the detection process and queryable status.

[0033] S4-2. If all instructions pass, the vehicle diagnostic is deemed qualified; if at least one instruction fails to receive a valid response for three consecutive rounds, the vehicle diagnostic is deemed unqualified.

[0034] By employing the above technical solutions, and using the passing of all instructions as the standard for qualification, we can strictly control the quality of vehicle electrical inspection and prevent unqualified vehicles from entering the next stage.

[0035] S4-3. Generate a diagnostic report containing instruction logs, electronic control unit address, diagnostic content, and number of retries, and upload it to the production system;

[0036] The above technical solutions generate and upload standardized diagnostic reports, enabling traceable and archived test data to support quality control in the production system.

[0037] The present invention is further configured such that: the diagnostic instructions include standard diagnostic services, which include diagnostic session control, electronic control unit reset, clearing diagnostic information, fault code operation, data read / write, secure access, routine control, and online maintenance of diagnostic equipment.

[0038] The above technical solutions cover standard diagnostic services for all categories of vehicle electronic control systems, meeting the comprehensive and standardized electronic inspection needs of new energy vehicles.

[0039] The present invention is further configured such that the data read / write objects include vehicle identification code, vehicle configuration information, electronic control unit hardware version, electronic control unit software version, battery code, and motor code.

[0040] The above technical solutions enable accurate reading and writing of vehicle core identifiers and configuration parameters, ensuring accurate vehicle information configuration, verifiable versions, and matching of key component codes.

[0041] The beneficial effects of this invention are as follows:

[0042] 1. This invention uses a standardized process of device initialization, communication establishment, and instruction queue loading to execute diagnostic tasks in an orderly manner according to the domain controller. Combined with a three-time fixed 2-second interval instruction retry mechanism, it effectively overcomes problems such as instantaneous communication interference, bus fluctuations, and electronic control unit response delays, significantly reducing the instruction misjudgment rate and improving the detection stability and pass rate of electrical testing equipment.

[0043] 2. This invention uses clear and valid response judgment rules, taking standard positive response messages as the basis for qualification, and recording timeouts and negative responses as invalid. The judgment logic is clear and unified, and the test results are accurate and reliable. At the same time, it records information such as instruction execution status, number of retries, and electronic control unit address throughout the process, generates a complete diagnostic report and uploads it to the production system, realizes full traceability of the testing process, and meets the quality control requirements for new energy vehicle production.

[0044] 3. This invention provides a full range of standard diagnostic services, including session control, reset, data reading and writing, and fault code operation. It supports reading and writing core data such as vehicle identification codes, configuration information, software and hardware versions, and battery and motor codes. It is compatible with the full-scenario automated electrical inspection needs of various new energy vehicle models. It has a wide detection coverage, strong versatility, and efficient process, which significantly improves the efficiency of vehicle electrical inspection and the level of quality control. Attached Figure Description

[0045] Figure 1 This is a logic flowchart of the present invention. Detailed Implementation

[0046] The preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby providing a clearer and more explicit definition of the scope of protection of the present invention.

[0047] like Figure 1 As shown, a testing method for an automatic diagnostic electrical testing device for new energy vehicles includes the following steps:

[0048] S1. Initialize the device and establish a diagnostic communication connection with the vehicle's electronic control unit, and load the diagnostic command queue, specifically including:

[0049] S1-1. Start the electrical testing equipment and load the corresponding vehicle model diagnostic project. Establish a physical link with the vehicle's electronic control unit through the standard diagnostic interface to realize the physical layer docking between the electrical testing equipment and the electronic control system of the vehicle under test. This ensures that different vehicle models can be matched with the corresponding diagnostic project, laying the hardware connection foundation for subsequent communication and interaction.

[0050] S1-2. Enter the default diagnostic session and keep the diagnostic device online. Maintain the stability of the diagnostic session and the online status of the device to avoid communication interruption that could cause abnormal termination of the testing process.

[0051] S1-3. Read and load the diagnostic instruction queue containing vehicle identification code writing, configuration information writing, software and hardware version reading, and fault code clearing in the order of domain controllers. Load the core diagnostic instructions in an orderly manner with domain controllers as units to ensure that the testing process is standardized and fully covered, and to avoid instruction omissions or chaotic execution.

[0052] S2. For a single diagnostic command, perform three rounds of retry with fixed time intervals. After each round of retry, perform a response determination. The retry process for a single command specifically includes:

[0053] S2-1, First round of issuance: Issue diagnostic commands and start timeout timing, listen for feedback messages from the electronic control unit, initiate command interaction for the first time and start timeout monitoring, and capture feedback information from the electronic control unit in real time;

[0054] S2-2. If there is no valid response in the first round, wait for the first preset interval time and then execute the second round of transmission. If there is no response for the first time, retry at a fixed interval to avoid communication failure caused by instantaneous interference.

[0055] S2-3. If there is no effective response in the second round, wait for the second preset interval time and then execute the third round of sending. If there is no response for the second time, continue to retry at a fixed interval to further improve the success rate of command triggering.

[0056] S2-4. After the third round of issuance is completed, the retry process for this instruction will be terminated, and the maximum number of retries will be limited to avoid a single instruction blocking the overall detection process and to ensure detection efficiency.

[0057] The first preset interval time and the second preset interval time are both 2s. The total number of retry rounds is three. The mechanism of 2s fixed interval and 3 retry is adopted to balance retry response efficiency and bus load rationality, and to balance detection stability and time consumption.

[0058] The diagnostic instructions include standard diagnostic services, which include diagnostic session control, electronic control unit reset, clearing diagnostic information, fault code operation, data read and write, secure access, routine control, and online maintenance of diagnostic equipment. These services cover all categories of standard diagnostic services for the vehicle's electronic control system, meeting the comprehensive and standardized electrical inspection needs of new energy vehicles.

[0059] The data read / write objects include vehicle identification code, vehicle configuration information, electronic control unit hardware version, electronic control unit software version, battery code, and motor code. It accurately reads and writes the vehicle's core identifiers and configuration parameters to ensure accurate vehicle information configuration, verifiable versions, and matching of key component codes.

[0060] S3. If a valid response is received from the electronic control unit in any round, the current command is deemed to have passed. A valid response is defined as receiving a standard positive response message from the electronic control unit.

[0061] If no valid response is received in three consecutive rounds, the current command is deemed to have failed. Specifically, no valid response means that no message is received within the timeout period or a negative response message is received.

[0062] Establish clear judgment rules based on standard messages to distinguish between valid responses and abnormal scenarios, thereby improving the accuracy of result judgment.

[0063] S4. Traverse all diagnostic commands and execute the retry determination process described above. Finally, output the vehicle diagnostic results based on the execution status of all commands, including:

[0064] S4-1. Execute the aforementioned retry issuance and response judgment process in a loop, record the pass or failure status of the instruction in real time, traverse the instructions one by one and continuously record the execution status, so as to realize full monitoring of the detection process and queryable status.

[0065] S4-2. If all instructions pass, the vehicle diagnostics are deemed qualified; if at least one instruction fails to receive a valid response for three consecutive rounds, the vehicle diagnostics are deemed unqualified. Passing all instructions is the standard for qualification. We strictly control the quality of vehicle electrical inspections to prevent unqualified vehicles from entering the next stage.

[0066] S4-3. Generate a diagnostic report containing instruction logs, electronic control unit address, diagnostic content, and retry count, and upload it to the production system. Generate a standardized diagnostic report and upload it to achieve traceability and archiving of test data, supporting quality control in the production system.

[0067] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A testing method for an automatic diagnostic electrical testing device for new energy vehicles, characterized in that, Includes the following steps: S1. Initialize the device and establish a diagnostic communication connection with the vehicle's electronic control unit, and load the diagnostic command queue; S2. Perform three rounds of retrying a single diagnostic command with fixed time intervals, and perform response judgment after each round of retrying; S3. If a valid response is received from the electronic control unit in any round, the current command is deemed to have passed. If no valid response is received for three consecutive rounds, the current command is deemed to have failed. S4. Traverse all diagnostic commands and execute the above retry determination process, and finally output the vehicle diagnostic results based on the execution status of all commands.

2. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 1, characterized in that, S1 specifically includes: S1-1. Start the electrical testing equipment and load the corresponding vehicle model diagnostic project. Establish a physical link with the vehicle's electronic control unit through the standard diagnostic interface. S1-2. Enter the default diagnostic session and keep the diagnostic device online; S1-3. Read and load the diagnostic command queue containing vehicle identification code writing, configuration information writing, software and hardware version reading, and fault code clearing in the order of domain controllers.

3. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 1, characterized in that, The retry process for a single instruction in S2 specifically includes: S2-1, First round of issuance: Issue diagnostic commands and start timeout timing, and listen for feedback messages from the electronic control unit; S2-2. If there is no valid response in the first round, wait for the first preset interval time and then execute the second round of distribution. S2-3. If there is no valid response in the second round, wait for the second preset interval time before executing the third round of distribution; S2-4. After the third round of issuance is completed, the retry process for this instruction will be terminated.

4. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 3, characterized in that, The first preset interval time and the second preset interval time are both 2s, and the total number of retry rounds is three.

5. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 3, characterized in that, The response determination is specifically as follows: If a standard positive response message is received from the electronic control unit, it is considered a valid response; if no message is received within the time limit or a negative response message is received, it is considered a invalid response.

6. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 1, characterized in that, S4 specifically includes: S4-1. Execute the aforementioned retry issuance and response determination process in a loop, and record the success or failure status of the instruction in real time; S4-2. If all instructions pass, the vehicle diagnostic is deemed qualified; if at least one instruction fails to receive a valid response for three consecutive rounds, the vehicle diagnostic is deemed unqualified. S4-3. Generate a diagnostic report containing instruction logs, electronic control unit address, diagnostic content, and number of retries, and upload it to the production system.

7. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 1, characterized in that, The diagnostic instructions include standard diagnostic services, which include diagnostic session control, electronic control unit reset, clearing diagnostic information, fault code operation, data read / write, secure access, routine control, and online maintenance of diagnostic equipment.

8. The testing method for an automatic diagnostic electrical testing device for new energy vehicles according to claim 7, characterized in that, The data read / write objects include vehicle identification number (VIN), vehicle configuration information, electronic control unit (ECU) hardware version, ECU software version, battery code, and motor code.