Vehicle diagnostic test method, device, electronic equipment and storage medium

Through the communication between the test equipment and the vehicle system, vehicle diagnostic tests and repeated tests are automatically performed, which solves the problem of low efficiency of traditional vehicle diagnostic tests and achieves efficient diagnostic tests and stress tests for flashing ECUs.

CN116149302BActive Publication Date: 2024-10-01BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310377989.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-10-01
Estimated Expiration
2043-04-10

AI Technical Summary

Technical Problem

Traditional vehicle diagnostic testing is inefficient, requires a lot of manpower and time, and cannot achieve efficient diagnostic testing.

Method used

Through the communication between the test equipment and the vehicle system, the SOC and DID configuration words are read for safe access authentication, the target configuration word is split into multiple consecutive frames and sent, and after the writing is completed, the vehicle system is restarted to automatically perform diagnostic testing and Repeated testing to achieve stress testing of the flash car system.

Benefits of technology

It enables the testing equipment to independently conduct diagnostic testing, reduces labor costs, improves vehicle diagnostic testing efficiency, and enables rapid repeated testing and stress testing of flashing ECUs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116149302B_ABST
    Figure CN116149302B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention propose a vehicle diagnostic test method, device, electronic device and storage medium, which belong to the field of automotive electronic technology. When the first SOC configuration word of the vehicle system read by the test equipment is consistent with the DID configuration word and passes the security access authentication, the target configuration word is split into multiple continuous frames according to the flow control frame returned by the vehicle system and sent to the vehicle system in sequence, and when the write completion instruction returned by the vehicle system is received, the vehicle system is restarted. When it is determined that the second SOC configuration word of the vehicle system read after the restart is the same as the target configuration word, and the first SOC configuration word is different from the second SOC configuration word, the step of reading the first SOC configuration word of the vehicle system is returned to continue the write operation of the next target configuration word, so as to realize the autonomous diagnostic test operation by the test equipment, and the test can be repeated to realize the stress test of the flashed vehicle system, which can greatly improve the efficiency of vehicle diagnostic testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automotive electronic technology, and in particular to a vehicle diagnostic test method, device, electronic equipment and storage medium. Background Art

[0002] With the development of automotive electronic technology, there are more and more on-board devices in cars, such as electronic control units, smart cockpits and car computers. Vehicle diagnosis is an important means to ensure that the performance of the car meets the requirements. Unified Diagnostic Services (UDS) is an application layer protocol for vehicle diagnosis. Through the UDS diagnostic protocol, a series of operations can be performed on the vehicle, and the vehicle can be diagnosed by querying data or controlling variables.

[0003] At present, vehicle diagnostic tests rely on CAN tool application software to manually configure various services and send data to the vehicle computer, and manually observe whether the response data of each diagnostic service is correct. However, the diagnostic test process consumes a lot of manpower and time, and the diagnostic test efficiency is low. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a vehicle diagnostic test method, device, electronic device and storage medium, which can improve the problem of low diagnostic test efficiency existing in traditional vehicle diagnostic tests.

[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0006] In a first aspect, an embodiment of the present invention provides a vehicle diagnostic test method, which is applied to a test device, wherein the test device is communicatively connected to a vehicle system, and the method comprises:

[0007] Reading a first SOC configuration word of the vehicle system, and reading a DID configuration word from the vehicle system through service 22;

[0008] When the first SOC configuration word is consistent with the DID configuration word, performing security access authentication with the vehicle system;

[0009] In the case where the security access authentication is passed, the first frame of the target configuration word is sent to the vehicle system, and based on the flow control frame returned by the vehicle system for the first frame, the target configuration word is split into multiple consecutive frames and then sent to the vehicle system in sequence;

[0010] When receiving the write completion instruction sent by the vehicle system, controlling the vehicle system to restart, and after restarting, reading the second SOC configuration word of the vehicle system; wherein the write completion instruction is issued by the vehicle system after completing the write operation on the configuration words corresponding to the received multiple consecutive frames;

[0011] When the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is different from the second SOC configuration word, the step of reading the first SOC configuration word of the vehicle system is returned to be executed.

[0012] Further, the flow control frame includes the total number of frames and the time interval between sending adjacent frames;

[0013] The step of splitting the target configuration word into a plurality of consecutive frames based on the flow control frame returned by the vehicle system for the first frame and sending the frames to the vehicle system in sequence comprises:

[0014] According to the flow control frame returned by the vehicle system for the first frame, the target configuration word is split into a plurality of continuous frames; wherein the number of the plurality of continuous frames is consistent with the total number of frames;

[0015] According to the sending time interval, the multiple consecutive frames are sent to the vehicle system in sequence.

[0016] Further, the test device stores a plurality of configuration words to be written;

[0017] The step of sending the first frame of the target configuration word to the vehicle system includes:

[0018] Using the configuration word to be written in the target order among the plurality of configuration words to be written as the target configuration word;

[0019] According to the data length and the initial data value of the target configuration word, a first frame of the target configuration word is generated, and the first frame is sent to the vehicle system.

[0020] Furthermore, the step of performing security access authentication with the vehicle system includes:

[0021] Sending an extended session service to the vehicle system; wherein the extended session service is used to prompt the vehicle system to perform extended session authentication;

[0022] Upon receiving an instruction sent by the vehicle system indicating that the extended session authentication has passed, sending a secure session service to the vehicle system; wherein the secure session service is used to prompt the vehicle system to perform secure session authentication;

[0023] When receiving the instruction sent by the vehicle system indicating that the security session authentication is passed, it is determined that the security access authentication is passed.

[0024] Furthermore, the method further comprises:

[0025] When the second SOC configuration word is different from the target configuration word, stopping the test, and controlling the test device and the vehicle system to maintain a current state;

[0026] When the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is the same as the second SOC configuration word, the test is stopped, and the test equipment and the vehicle system are controlled to maintain a current state.

[0027] Furthermore, the vehicle system includes a SOC controller;

[0028] The step of reading the first SOC configuration word of the vehicle system includes:

[0029] Calling the serial port interface to send a first read request to the SOC controller; wherein the first read request is used to prompt the SOC controller to read and return the current SOC configuration word;

[0030] From all the response data returned by the vehicle system, the response data consistent with the message ID of the first read request is determined as the first SOC configuration word.

[0031] Furthermore, the vehicle system includes an MCU controller;

[0032] The step of reading the DID configuration word from the vehicle system through the 22 service includes:

[0033] Sending a second read request to the MCU controller via a CAN interface; wherein the second read request is used to prompt the MCU controller to read and return the current DID configuration word;

[0034] From all the response data returned by the vehicle system, the response data consistent with the message ID of the second read request is determined as the DID configuration word.

[0035] In a second aspect, an embodiment of the present invention provides a vehicle diagnostic test device, which is applied to a test device, wherein the test device is communicatively connected to a vehicle system, and the vehicle diagnostic test device includes a configuration reading module, a safety authentication module, a data sending module, a restart reading module, and a judgment module;

[0036] The configuration reading module is used to read the first SOC configuration word of the vehicle system, and read the DID configuration word from the vehicle system through the 22 service;

[0037] The security authentication module is used to perform security access authentication with the vehicle system when the first SOC configuration word is consistent with the DID configuration word;

[0038] The data sending module is used to send the first frame of the target configuration word to the vehicle system when the security access authentication is passed, and split the target configuration word into multiple consecutive frames based on the flow control frame returned by the vehicle system for the first frame and send them to the vehicle system in sequence;

[0039] The restart reading module is used to control the vehicle system to restart when receiving the write completion instruction sent by the vehicle system, and read the second SOC configuration word of the vehicle system after restarting; wherein the write completion instruction is issued by the vehicle system after completing the write operation on the configuration words corresponding to the received multiple consecutive frames;

[0040] The judgment module is used to return to the step of reading the first SOC configuration word of the vehicle system when the second SOC configuration word is the same as the target configuration word and the first SOC configuration word is different from the second SOC configuration word.

[0041] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the vehicle diagnostic test method as described in the first aspect.

[0042] In a fourth aspect, an embodiment of the present invention provides a storage medium, and when the computer program is executed by a processor, the vehicle diagnostic test method as described in the first aspect is implemented.

[0043] The vehicle diagnostic test method, device, electronic device and storage medium provided by the embodiments of the present invention, when the first SOC configuration word of the vehicle system read by the test equipment is consistent with the DID configuration word, security access authentication is performed with the vehicle system. When the authentication is passed, the target configuration word is split into multiple continuous frames and sent to the vehicle system in sequence according to the flow control frame returned by the vehicle system after receiving the first frame about the target configuration word, and when the write completion instruction returned by the vehicle system is received, the vehicle system is restarted, and the second SOC configuration word of the restarted vehicle system is read. When it is determined that the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is different from the second SOC configuration word, the step of reading the first SOC configuration word of the vehicle system is returned, and the writing operation of the next target configuration word is continued, so that the test equipment can autonomously perform diagnostic test operations such as sending data, checking and determining responses, and can automatically perform repeated tests to achieve stress testing of the flashed vehicle system, which can greatly improve the efficiency of vehicle diagnostic testing.

[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A block diagram of a vehicle diagnostic test system provided by an embodiment of the present invention is shown.

[0047] Figure 2 A schematic flow chart of a vehicle diagnostic test method provided by an embodiment of the present invention is shown.

[0048] Figure 3 Shows Figure 2 Schematic diagram of the process of some sub-steps of step S12.

[0049] Figure 4 Shows Figure 2 Schematic diagram of the process of some sub-steps of step S13.

[0050] Figure 5 A block diagram of a vehicle diagnostic test device provided by an embodiment of the present invention is shown.

[0051] Figure 6A block diagram of an electronic device provided by an embodiment of the present invention is shown.

[0052] Figure numerals: 100-vehicle diagnostic test system; 110-test equipment; 120-vehicle system; 121-SOC controller; 122-MCU controller; 123-vehicle ECU; 130-vehicle diagnostic test device; 140-configuration reading module; 150-security authentication module; 160-data sending module; 170-restart reading module; 180-judgment module; 190-electronic equipment. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0054] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0055] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0056] Traditional vehicle diagnostic tests (for example, flash stress testing) are generally performed by manually configuring various services and sending data to the vehicle computer with the help of CAN tool application software, and manually checking whether the response data of each diagnostic service is correct. This requires a lot of manpower and time, resulting in low efficiency of vehicle diagnostic tests.

[0057] Based on the above considerations, an embodiment of the present invention provides a vehicle diagnostic test method, which can automatically perform vehicle diagnostic tests and can perform repeated tests to achieve stress testing of the flashing vehicle system and improve the problem of low efficiency of vehicle diagnostic tests. The vehicle diagnostic test method is introduced below.

[0058] The vehicle diagnostic test method provided by the embodiment of the present invention can be applied to Figure 1 In the vehicle diagnostic test system 100 shown, the vehicle diagnostic test system 100 includes a test device 110 and a vehicle system 120. The vehicle system 120 may include an MCU controller 122, a SOC controller 121 and multiple vehicle-mounted ECUs 123. The MCU controller 122 includes an MCU chip, and the SOC controller 121 includes an SOC chip. The test device 110 can be connected to the MCU controller 122 by means of CAN communication, and the test device 110 can be connected to the SOC controller 121 by means of serial communication. The MCU controller 122 can be connected to multiple vehicle-mounted ECUs 123 by means of a CAN bus.

[0059] It should be understood that the SOC controller 121 is equipped with an operating system and installed with audio and video entertainment software, such as Android system, Linux system, navigation software, music software, video software, etc. It is mainly responsible for communication functions, realizing interconnection with the cloud and interaction with multimedia devices (such as car audio, central control display, etc.). The MCU controller 122 realizes functional interaction with the vehicle ECU 123 (such as body controller, seat controller, etc.).

[0060] The testing device 110 is used to implement the vehicle diagnostic testing method provided in the embodiment of the present invention.

[0061] It should be understood that the test device 110 is an electronic device with a CAN interface and a serial port interface, such as a computer device and a portable mobile device.

[0062] In a possible implementation, the present invention provides a vehicle diagnostic test method, referring to Figure 2 , may include the following steps. In this embodiment, the vehicle diagnostic test method is applied to Figure 1 Take the test device 110 in FIG. 1 as an example.

[0063] S11, read the first SOC configuration word of the vehicle system, and read the DID configuration word from the vehicle system through service 22.

[0064] In this embodiment, the 22 service, i.e., the service of reading data by identifier (DID), is a read operation of data marked by identifier (DID) in the ECU memory. The data marked by the identifier includes configuration words, i.e., the DID configuration words include the current configuration words of each vehicle-mounted ECU 123. The first SOC configuration word is the current configuration word of the SOC controller 121 of the vehicle system 120.

[0065] S12, when the first SOC configuration word and the DID configuration word are consistent, perform security access authentication with the vehicle system.

[0066] S13, when the security access authentication is passed, the first frame about the target configuration word is sent to the vehicle system, and based on the flow control frame returned by the vehicle system for the first frame, the target configuration word is split into multiple consecutive frames and sent to the vehicle system in sequence.

[0067] S14, when receiving the write completion instruction sent by the vehicle computer system, controlling the vehicle computer system to restart, and after restarting, reading the second SOC configuration word of the vehicle computer system.

[0068] In this embodiment, the write completion instruction is issued by the vehicle system 120 after completing the write operation on the configuration words corresponding to the received multiple consecutive frames.

[0069] S15, determining whether the second SOC configuration word is the same as the target configuration word. If yes, executing step S16.

[0070] S16, determining whether the first SOC configuration word is the same as the second SOC configuration word. If not, returning to step S11, thus, looping through steps S11 to S16 until the number of loops reaches the target number of loops, or until all the configuration words to be written are written into the vehicle system 120.

[0071] In more detail, the test device 110 reads the current first SOC configuration word of the vehicle system 120, and reads the current DID configuration word through the 22 service. When the first SOC configuration word and the DID configuration word are consistent, that is, when the current configuration words of the SOC controller 121 and the MCU controller 122 are consistent, the test device 110 performs security access authentication with the vehicle system 120. If the authentication is successful, the target configuration word of this write operation is determined, and the first frame is generated according to the target configuration word, and the first frame is sent to the vehicle system 120.

[0072] After receiving the first frame, the vehicle system 120 returns a flow control frame to the test device 110 according to the first frame. Based on the received flow control frame, the test device 110 splits the target configuration word into multiple continuous frames and sends them to the vehicle system 120 in sequence. The MCU controller 122 of the vehicle system 120 extracts the target configuration word from the received multiple continuous frames and writes it into each vehicle ECU 123. After the writing is completed, the MCU controller 122 returns a write completion instruction to the test device 110.

[0073] When the test device 110 receives the write completion instruction, it immediately controls the vehicle system 120 to restart, and the vehicle system 120 restarts and powers on. The restarted MUC transmits the target configuration word to the SOC controller 121, and the SOC controller 121 writes the target configuration word. The test device 110 reads the second SOC configuration word of the vehicle system 120 after the restart. If the SOC controller 121 writes the target configuration word correctly, the second SOC configuration word at this time is the configuration word after the target configuration word is written. If not, the second SOC configuration word is different from the target configuration word.

[0074] When the test device 110 determines that the second SOC configuration word is the same as the target configuration word (indicating that the target configuration word is successfully written to the MCU controller 122), and the first SOC configuration word is different from the second SOC configuration word (indicating that the target configuration word is successfully written to the SOC controller 121), it returns to the step of reading the first SOC configuration word of the vehicle system 120 and continues the writing operation of the next target configuration word. The cycle can realize the continuous writing of multiple configuration words, the reciprocating writing of a configuration word, and the reciprocating writing of a group of configuration words (multiple configuration words).

[0075] If the second SOC configuration word is different from the target configuration word, it indicates that the target configuration word fails to be written to the MCU controller 122. If the test device 110 determines that the second SOC configuration word is the same as the target configuration word, but the first SOC configuration word is the same as the second SOC configuration word, it indicates that the target configuration word is successfully written to the MCU controller 122, but the target configuration word fails to be written to the SOC controller 121.

[0076] Compared with the traditional vehicle diagnostic test method of manually configuring and sending various services and data to the vehicle computer, and manually judging whether the response data is correct, the above-mentioned vehicle diagnostic test method realizes that the test equipment can independently perform diagnostic test operations such as sending data, checking and judging responses, and can automatically perform repeated tests if the writing is correct, thereby realizing stress testing of the flashed vehicle computer system, which can greatly improve the efficiency of vehicle diagnostic testing.

[0077] For further information, please refer to Figure 2The vehicle diagnostic test method provided by the embodiment of the present invention may further include step S17. When it is determined in step S15 whether the second SOC configuration word is the same as the target configuration word, that is, when the MCU controller 122 fails to rewrite the target configuration word, step S17 is executed. When it is determined in step S16 that the first SOC configuration word is the same as the second SOC configuration word, that is, when the MCU controller 122 uploads the target configuration word to the SOC controller 121, step S17 is executed.

[0078] S17, stop the test, and control the test equipment and the vehicle system to maintain the current state. In this embodiment, controlling the test equipment and the vehicle system to maintain the current state refers to retaining the scene.

[0079] Through step S17, when it is determined that an error occurs in the flashing, the test is stopped immediately, and the test equipment 110 and the vehicle system 120 are kept in the current state for the developer to inspect or view the test results.

[0080] When the test device 110 performs a test, considering that the test device 110 sends multiple requests to the vehicle system 120, the corresponding vehicle system 120 also returns multiple response data. In order to avoid errors in response data screening, the message ID is introduced so that the request and the response data of the request have the same message ID.

[0081] In a possible implementation, reading the first SOC configuration word of the vehicle system in the above step S11 can be further implemented as: calling the serial port interface to send a first read request to the SOC controller; and determining, from all response data returned by the vehicle system, response data consistent with the message ID of the first read request as the first SOC configuration word.

[0082] In this embodiment, the first read request is used to prompt the SOC controller to read and return the current SOC configuration word.

[0083] After receiving the first read request, the SOC controller 121 immediately responds to the request, packages its current configuration word into response data and returns it to the test device 110 .

[0084] Similarly, in step S11, through service 22, reading the DID configuration word from the vehicle system can be further implemented as follows: sending a second read request to the MCU controller through the CAN interface; determining the response data consistent with the message ID of the second read request from all response data returned by the vehicle system as the DID configuration word.

[0085] In this embodiment, the second read request is used to prompt the MCU controller to read and return the current DID configuration word. The second read request includes an identifier of a DID configuration word.

[0086] After receiving the first read request, the MCU controller 122 immediately responds to the request, obtains the current DID configuration word from the memory of each vehicle-mounted ECU 123 , and packages the DID configuration word into response data and returns it to the test equipment 110 .

[0087] For the vehicle system, whether it is the SOC controller or the MCU controller, when the response data is large, the first frame, flow control frame and continuous frame can be used to send the response data to the test equipment. Taking the SOC controller sending the response data (first SOC configuration word) of the first read request as an example, the SOC controller first sends the first frame of the response data to the test equipment. After the test equipment receives the first frame, it returns the flow control to the SOC controller. The SOC controller splits the response data (first SOC configuration word) into multiple continuous frames based on the flow control frame and sends them to the test equipment in sequence. At this time, the first frame and the continuous frame are both response messages for the test equipment.

[0088] After the test device receives the response message, it needs to determine the message type. The message types include but are not limited to: single frame (independent frame), first frame, continuous frame and flow control frame. The first frame, continuous frame and flow control frame are a combination.

[0089] Different message types have different type identifiers. For example, when the Bit7-4 value (i.e., the first four high bits of the byte) of the response message is 0, it indicates that the response message is a single frame; when the Bit7-4 value of the response message is 1, it indicates that the response message is the first frame; when the Bit7-4 value of the response message is 2, it indicates that the response message is a continuous frame; when the Bit7-4 value of the response message is 3, it indicates that the response message is a flow control frame. The first frame generally includes the data length of the entire packet, as well as the initial value of the data. The flow control frame is a response initiated by the receiver after confirming receipt of the first frame (FF), which stipulates the transmission parameters of the subsequent connection frame (CF). Continuous frames include data frames of subsequent subsequences of multi-frame message packets.

[0090] When the high four bits of the first byte of the response message = 1, it is determined to be a continuous frame, and the data length of the continuous frame is obtained (the fourth bit of the first byte + the second byte). For the first frame, it starts from the third byte, and for the continuous frames, it starts from the second byte. After all the data (first frame + continuous frames) are obtained, for the first frame, it is intercepted from the third byte, and for the continuous frames, it is intercepted from the second byte, and the intercepted data are combined to obtain the response data.

[0091] When the high four bits of the first byte of the message = 3, the message is determined to be a flow control frame. The flow control frame indicates the transmission parameters, so that the sender (such as the MCU controller and the SOC controller) can calculate the number of continuous frames to be split into for the response data (such as the first SOC configuration word) and the time difference between two continuous frames based on the transmission parameters. Calculate the time difference between the first continuous frame and the last continuous frame, and continue to obtain data on the stack after waiting.

[0092] If the high four bits of the first byte of the message = 0, the message is judged to be a single frame. For example, the instructions for read or write success or failure can be in the form of a single frame, and whether the read or write is successful can be judged based on the response code. A single frame includes a positive response code or a negative response code. Positive response code: request service ID + 40, located in the third byte of the message. In the case of a negative response, if the error code is 78, it means that you need to wait for a certain period of time before going to the bus to obtain data.

[0093] It should be understood that the method of reading the second SOC configuration word of the vehicle system in step S14 is consistent with the above-mentioned method of reading the first SOC configuration word of the vehicle system, and will not be described in detail in this embodiment.

[0094] For step S12, the method of performing security access authentication with the vehicle system can be flexibly set, for example, password authentication or facial recognition authentication can be used, which is not specifically limited in this embodiment.

[0095] In one possible implementation, refer to Figure 3 , security access authentication with the vehicle system can be further implemented as the following steps.

[0096] S121, sending an extended session service to the vehicle system.

[0097] In this embodiment, the extended session service may include extended authentication information. When the vehicle system 120 (which may be the MCU controller 122) receives a request for the extended session service, it uses the extended authentication information for authentication, and when the authentication of the extended session service is passed, it sends a message (instruction) indicating that the extended session authentication is passed to the test device 110.

[0098] S122, when receiving the instruction sent by the vehicle system indicating that the extended session authentication is passed, sending a secure session service to the vehicle system.

[0099] In this embodiment, the secure session service may include secure authentication information. When the vehicle system 120 (which may be the MCU controller 122) receives a request for the secure session service, it uses the secure authentication information for authentication, and when the secure session service authentication passes, it sends a message (instruction) indicating that the secure session authentication passes to the test device 110.

[0100] S123, upon receiving an instruction sent by the vehicle system indicating that the security session authentication has passed, determining that the security access authentication has passed.

[0101] Furthermore, the test device may pre-store multiple configuration words to be written, and the writing order of the multiple configuration words to be written may also be set. The target configuration word of step S13 may be any one of the multiple configuration words to be written. Figure 4 , step S13 can send the first frame about the target configuration word to the vehicle system through the following steps.

[0102] S131, taking a configuration word to be written in a target order among a plurality of configuration words to be written as a target configuration word.

[0103] S132, generating a first frame of the target configuration word according to the data length and the initial value of the data of the target configuration word, and sending the first frame to the vehicle system.

[0104] Take the flash write stress test as an example. If there are 5 configuration words to be written, the write order is 1 to 5. At the beginning of the stress test, the write order value 1 is the target order, and the configuration word to be written with a write order of 1 is the target configuration word. If one cycle means that all five configuration words to be written are written once, in the second cycle, if the write order of the configuration word of the previous write operation is 2, the target order this time is 3, and the configuration word to be written with a write order of 3 is the target configuration word.

[0105] Through the above steps S131-S132, in the cyclic flash writing stress test of multiple configuration words to be written, the flash writing test can be carried out in an orderly manner.

[0106] The transmission parameters of the flow control frame may include the total number of frames and the time interval between the transmission of adjacent frames. Figure 4 In step S13, the target configuration word can be split into multiple consecutive frames and then sent to the vehicle system in sequence through the following steps.

[0107] S133, split the target configuration word into multiple consecutive frames according to the flow control frame returned by the vehicle computer system for the first frame.

[0108] In this embodiment, the number of the plurality of consecutive frames is consistent with the total number of frames in the flow control frame. For example, if the total number of frames in the flow control frame is 5, the target configuration word is divided into 5 consecutive frames.

[0109] S134, sending a plurality of consecutive frames to the vehicle computer system in sequence according to the sending time interval.

[0110] For example, if the time interval between adjacent frames is 0.1 ms, then 0.1 ms after the first continuous frame is sent, the second continuous frame is sent to the vehicle system 120 .

[0111] Through the above steps S131 to S134, automatic control is achieved when the test equipment 110 sends data for write operation to the vehicle system 120, without manual control.

[0112] The vehicle diagnostic test method provided by the embodiment of the present invention is implemented by the test equipment itself when performing diagnostic tests, without the need for manual data filling, data sending and response result checking, which can greatly reduce labor costs and improve efficiency. At the same time, repeated tests can be performed quickly to achieve stress testing of the flashed ECU and in-depth testing of the UDS diagnostic module.

[0113] Based on the same inventive concept as the above vehicle diagnostic test method, the embodiment of the present invention also provides a vehicle diagnostic test device 130, which can be applied to Figure 1 In one possible implementation, refer to the test device 110. Figure 5 The vehicle diagnostic test device 130 may include a configuration reading module 140 , a safety authentication module 150 , a data sending module 160 , a restart reading module 170 and a determination module 180 .

[0114] The configuration reading module 140 is used to read the first SOC configuration word of the vehicle system, and read the DID configuration word from the vehicle system through the 22 service.

[0115] The security authentication module 150 is used to perform security access authentication with the vehicle system 120 when the first SOC configuration word and the DID configuration word are consistent.

[0116] The data sending module 160 is used to send the first frame of the target configuration word to the vehicle system when the security access authentication is passed, and based on the flow control frame returned by the vehicle system for the first frame, split the target configuration word into multiple consecutive frames and send them to the vehicle system in sequence.

[0117] The restart reading module 170 is used to control the vehicle system to restart when receiving the write completion instruction sent by the vehicle system, and read the second SOC configuration word of the vehicle system after restarting.

[0118] The write completion instruction is issued by the vehicle computer system 120 after completing the write operation on the configuration words corresponding to the received multiple consecutive frames.

[0119] The judgment module 180 is used to return to the step of reading the first SOC configuration word of the vehicle system when the second SOC configuration word is the same as the target configuration word and the first SOC configuration word is different from the second SOC configuration word.

[0120] In the above-mentioned vehicle diagnostic test device 130, by configuring the synergistic effect of the reading module 140, the security authentication module 150, the data sending module 160, the restart reading module 170 and the judgment module 180, the test equipment can autonomously perform diagnostic test operations such as sending data, checking and judging responses, and can automatically perform repeated tests to achieve stress testing of the flashed vehicle system, which can greatly improve the efficiency of vehicle diagnostic testing.

[0121] The specific definition of the vehicle diagnostic test device 130 can be found in the definition of the vehicle diagnostic test method above, and will not be repeated here. Each module in the above-mentioned vehicle diagnostic test device 130 can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory of an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0122] In one embodiment, an electronic device 190 is provided. The electronic device 190 may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device 190 includes a processor, a memory, a communication interface and an input device connected via a system bus. Among them, the processor of the electronic device 190 is used to provide computing and control capabilities. The memory of the electronic device 190 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device 190 is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, the vehicle diagnostic test method provided in the above embodiment is implemented.

[0123] Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 190 to which the solution of the present invention is applied. The specific electronic device 190 may include Figure 6 More or fewer components may be shown, or certain components may be combined, or may have a different arrangement of components.

[0124] In one embodiment, the vehicle diagnostic test device 130 provided by the present invention can be implemented in the form of a computer program. The computer program can be used in Figure 6 The electronic device 190 shown in FIG. 1 is shown in FIG. 1 . The memory of the electronic device 190 may store various program modules constituting the vehicle diagnostic test device 130 , for example, Figure 5The configuration reading module 140, the safety authentication module 150, the data sending module 160, the restart reading module 170 and the judgment module 180 are shown. The computer program composed of various program modules enables the processor to execute the steps of the vehicle diagnostic test method described in this specification.

[0125] For example, Figure 6 The electronic device 190 shown may be Figure 5 The configuration reading module 140 in the vehicle diagnostic test device 130 shown in the figure performs step S11. The electronic device 190 can perform step S12 through the security authentication module 150. The electronic device 190 can perform step S13 through the data sending module 160. The electronic device 190 can perform step S14 through the restart reading module 170. The electronic device 190 can perform steps S15 and S16 through the decision module 180.

[0126] In one embodiment, an electronic device 190 is provided, including a memory and a processor, the memory storing machine executable instructions, and the processor implements the following steps when executing the machine executable instructions: reading the first SOC configuration word of the vehicle system, and reading the DID configuration word from the vehicle system through the 22 service; when the first SOC configuration word and the DID configuration word are consistent, performing security access authentication with the vehicle system; when the security access authentication is passed, sending the first frame about the target configuration word to the vehicle system, and based on the flow control frame returned by the vehicle system for the first frame, splitting the target configuration word into multiple continuous frames and sending them to the vehicle system in sequence; when receiving the write completion instruction sent by the vehicle system, controlling the vehicle system to restart, and after restarting, reading the second SOC configuration word of the vehicle system; when the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is different from the second SOC configuration word, returning to execute the step of reading the first SOC configuration word of the vehicle system.

[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: reading a first SOC configuration word of a vehicle system, and reading a DID configuration word from the vehicle system through service 22; performing security access authentication with the vehicle system when the first SOC configuration word and the DID configuration word are consistent; when the security access authentication is passed, sending a first frame about a target configuration word to the vehicle system, and based on a flow control frame returned by the vehicle system for the first frame, splitting the target configuration word into multiple continuous frames and sending them to the vehicle system in sequence; when receiving a write completion instruction sent by the vehicle system, controlling the vehicle system to restart, and after restarting, reading a second SOC configuration word of the vehicle system; when the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is different from the second SOC configuration word, returning to execute the step of reading the first SOC configuration word of the vehicle system.

[0128] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device implementation described above is only schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0129] In addition, the functional modules in various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0130] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0131] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A vehicle diagnostic test method, characterized in that: Applied to a test device, the test device is communicatively connected to a vehicle system, and the method comprises: Reading a first SOC configuration word of the vehicle system, and reading a DID configuration word from the vehicle system through service 22; When the first SOC configuration word is consistent with the DID configuration word, performing security access authentication with the vehicle system; In the case where the security access authentication is passed, the first frame of the target configuration word is sent to the vehicle system, and based on the flow control frame returned by the vehicle system for the first frame, the target configuration word is split into multiple consecutive frames and then sent to the vehicle system in sequence; When receiving the write completion instruction sent by the vehicle system, controlling the vehicle system to restart, and after restarting, reading the second SOC configuration word of the vehicle system; wherein the write completion instruction is issued by the vehicle system after completing the write operation on the configuration words corresponding to the received multiple consecutive frames; When the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is different from the second SOC configuration word, the step of reading the first SOC configuration word of the vehicle system is returned to be executed.

2. The vehicle diagnostic test method according to claim 1, characterized in that: The flow control frame includes the total number of frames and the sending time interval of adjacent frames; The step of splitting the target configuration word into a plurality of consecutive frames based on the flow control frame returned by the vehicle system for the first frame and sending the frames to the vehicle system in sequence comprises: According to the flow control frame returned by the vehicle system for the first frame, the target configuration word is split into a plurality of continuous frames; wherein the number of the plurality of continuous frames is consistent with the total number of frames; According to the sending time interval, the multiple consecutive frames are sent to the vehicle system in sequence.

3. The vehicle diagnostic test method according to claim 1 or 2, characterized in that: The test device stores a plurality of configuration words to be written; The step of sending the first frame of the target configuration word to the vehicle system includes: Using the configuration word to be written in the target order among the plurality of configuration words to be written as the target configuration word; According to the data length and the initial data value of the target configuration word, a first frame of the target configuration word is generated, and the first frame is sent to the vehicle system.

4. The vehicle diagnostic test method according to claim 1 or 2, characterized in that: The step of performing security access authentication with the vehicle system includes: Sending an extended session service to the vehicle system; wherein the extended session service is used to prompt the vehicle system to perform extended session authentication; Upon receiving an instruction sent by the vehicle system indicating that the extended session authentication has passed, sending a secure session service to the vehicle system; wherein the secure session service is used to prompt the vehicle system to perform secure session authentication; When receiving the instruction sent by the vehicle system indicating that the security session authentication is passed, it is determined that the security access authentication is passed.

5. The vehicle diagnostic test method according to claim 1 or 2, characterized in that: The method further comprises: When the second SOC configuration word is different from the target configuration word, stopping the test, and controlling the test device and the vehicle system to maintain a current state; When the second SOC configuration word is the same as the target configuration word, and the first SOC configuration word is the same as the second SOC configuration word, the test is stopped, and the test equipment and the vehicle system are controlled to maintain a current state.

6. The vehicle diagnostic test method according to claim 1 or 2, characterized in that: The vehicle system includes a SOC controller; The step of reading the first SOC configuration word of the vehicle system includes: Calling the serial port interface to send a first read request to the SOC controller; wherein the first read request is used to prompt the SOC controller to read and return the current SOC configuration word; From all the response data returned by the vehicle system, the response data consistent with the message ID of the first read request is determined as the first SOC configuration word.

7. The vehicle diagnostic test method according to claim 1 or 2, characterized in that: The vehicle system includes an MCU controller; The step of reading the DID configuration word from the vehicle system through the 22 service includes: Sending a second read request to the MCU controller via a CAN interface; wherein the second read request is used to prompt the MCU controller to read and return the current DID configuration word; From all the response data returned by the vehicle system, the response data consistent with the message ID of the second read request is determined as the DID configuration word.

8. A vehicle diagnostic test device, characterized in that: Applied to a test device, the test device is communicatively connected with a vehicle system, and the vehicle diagnostic test device comprises a configuration reading module, a safety authentication module, a data sending module, a restart reading module and a judgment module; The configuration reading module is used to read the first SOC configuration word of the vehicle system, and read the DID configuration word from the vehicle system through the 22 service; The security authentication module is used to perform security access authentication with the vehicle system when the first SOC configuration word is consistent with the DID configuration word; The data sending module is used to send the first frame of the target configuration word to the vehicle system when the security access authentication is passed, and split the target configuration word into multiple consecutive frames based on the flow control frame returned by the vehicle system for the first frame and send them to the vehicle system in sequence; The restart reading module is used to control the vehicle system to restart when receiving the write completion instruction sent by the vehicle system, and read the second SOC configuration word of the vehicle system after restarting; wherein the write completion instruction is issued by the vehicle system after completing the write operation on the configuration words corresponding to the received multiple consecutive frames; The judgment module is used to return to the step of reading the first SOC configuration word of the vehicle system when the second SOC configuration word is the same as the target configuration word and the first SOC configuration word is different from the second SOC configuration word.

9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the vehicle diagnostic test method according to any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle diagnostic test method according to any one of claims 1 to 7 is implemented.