Automobile diagnosis method and device, electronic equipment and storage medium
By providing a flexible diagnostic interface and a variety of diagnostic project options in automotive diagnostic tests, users can select target diagnostic projects and ECUs as needed to realize an automated diagnostic process, which solves the problem of fixed diagnostic processes in the existing technology and improves diagnostic efficiency. flexibility and efficiency.
Patent Information
- Application Number
- CN202411083219.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-01
AI Technical Summary
Existing automotive diagnostic testing methods have a fixed diagnostic process, making it difficult for users to flexibly select diagnostic items according to their needs and unable to meet personalized diagnostic needs.
Provides a vehicle diagnosis method that displays a diagnostic interface by starting a diagnostic program, determines target items and target ECUs from candidate diagnostic items and ECUs in response to user operations, executes relevant diagnostic processes in sequence, displays diagnostic results, and supports electrical detection tests and fault codes. Test, write custom configuration word test and read custom configuration word test and other diagnostic items.
It enables users to flexibly select diagnostic items and ECUs according to their needs, automatically executes corresponding diagnostic processes, provides personalized automotive diagnostic solutions, and improves the flexibility and efficiency of diagnosis.
Smart Images

Figure CN118732668A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of automobile diagnostic testing, for example, to an automobile diagnostic method, device, electronic equipment and storage medium. Background Art
[0002] Automobile diagnostic testing is an important part of ensuring that the car is in good operating condition and promptly discovering and solving fault problems. One of the important test contents is the diagnostic test of the car's Electronic Control Unit (ECU).
[0003] In the related art, a special diagnostic tool can be connected to the car for communication and use to perform automated diagnostic tests on the car. However, the diagnostic process of the car diagnostic test method in the related art is relatively fixed, which is not convenient for users to flexibly select diagnostic items according to their needs.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The embodiments of the present disclosure provide an automobile diagnosis method, device, electronic device, and storage medium, which are convenient for users to flexibly select diagnosis items according to their needs.
[0007] According to a first aspect of the present disclosure, there is provided a vehicle diagnosis method, comprising: Start the diagnostic program to display the diagnostic interface; In response to a diagnostic configuration operation performed by a user on a diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a target ECU is determined from candidate ECUs; Execute the diagnostic process related to the target diagnostic item for each target ECU in turn; Displays the diagnostic results for each target ECU.
[0008] In some embodiments, in response to a user's diagnostic configuration operation on a diagnostic interface, determining a target diagnostic item from candidate diagnostic items and determining a target ECU from candidate ECUs include: In response to a user's diagnostic item selection operation on the diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a sub-diagnosis interface of the target diagnostic item is displayed; In response to the user's ECU configuration operation on the sub-diagnosis interface, a target ECU is determined from the candidate ECUs.
[0009] In some embodiments, when the target diagnostic item is an electric detection test, in response to an ECU configuration operation by a user in a sub-diagnosis interface, determining a target ECU from candidate ECUs includes: In response to a user's ECU selection request in a sub-diagnosis interface, multiple ECU addition positions are displayed; In response to the user's ECU selection operation in the ECU adding position, adding the selected candidate ECU in the ECU adding position; The candidate ECU in the ECU adding position is determined as the target ECU that needs to perform the electric detection test.
[0010] In some embodiments, the ECU added bit has a sequence number, and the ECU added bit needs to represent the order in which its corresponding target ECU executes the electrical detection test.
[0011] In some embodiments, the automobile diagnosis method further includes: determining the number of stress tests in response to a user's stress test number determination operation in the sub-diagnosis interface, wherein the number of stress tests represents the number of times the electrical detection test process is cyclically executed for each target ECU.
[0012] In some embodiments, when the target diagnostic item is a fault code test, the sub-diagnostic interface includes reading a fault code addition bit; In response to the ECU configuration operation of the user in the sub-diagnosis interface, a target ECU is determined from the candidate ECUs, including: In response to the user's ECU selection operation in the read fault code adding position in the sub-diagnosis interface, adding the selected candidate ECU in the read fault code adding position; The candidate ECU in the fault code reading adding position is determined as the target ECU that needs to perform fault code testing.
[0013] In some embodiments, the sub-diagnostic interface includes clearing the fault code addition bit, and the automobile diagnostic method further includes: In response to the user's ECU selection operation of clearing the fault code addition bit in the sub-diagnosis interface, adding the selected candidate ECU in the clearing fault code addition bit; Before reading the fault code, clear the fault code related to the candidate ECU in the fault code adding bit.
[0014] In some embodiments, where the target diagnostic item is a write custom configuration word test, the sub-diagnostic interface includes a write configuration word add bit; In response to the ECU configuration operation of the user in the sub-diagnosis interface, a target ECU is determined from the candidate ECUs, including: In response to the user's ECU selection operation of writing configuration word addition bits in the sub-diagnosis interface, adding the selected candidate ECU in the writing configuration word addition bits; Determine the candidate ECU in the write configuration word add bit as the target ECU that needs to perform the write custom configuration word test; In response to a user's upload operation of writing a custom configuration word file in the sub-diagnosis interface, obtaining the writing custom configuration word file, wherein the writing custom configuration word file includes custom configuration words that need to be written into the target ECU.
[0015] In some embodiments, in the case where the target diagnostic item is a read custom configuration word test, the sub-diagnostic interface includes a read configuration word add bit; In response to the ECU configuration operation of the user in the sub-diagnosis interface, a target ECU is determined from the candidate ECUs, including: In response to the user's ECU selection operation in the read configuration word add bit of the sub-diagnosis interface, adding the selected candidate ECU in the read configuration word add bit; Determine the candidate ECU in the read configuration word addition bit as the target ECU that needs to perform the read custom configuration word test; In response to a user's upload operation of reading a custom configuration word file in the sub-diagnosis interface, the reading custom configuration word file is acquired, wherein the reading custom configuration word file includes custom configuration words that need to be read in the target ECU.
[0016] In some embodiments, the diagnostic procedure includes: Establish a communication connection with the target ECU, and after the communication connection is successfully established, send a diagnostic message related to the target diagnostic item to the target ECU; Receive diagnostic data returned by the target ECU and display diagnostic results based on the diagnostic data; After the diagnosis is completed, the communication connection with the target ECU is disconnected.
[0017] In some embodiments, after the communication connection is successfully established, a diagnostic message corresponding to the diagnostic item is sent to the target ECU, including: After the communication connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU according to the node type of the target ECU, and the node type includes Ethernet node and CAN node.
[0018] In some embodiments, after the communication connection is successfully established, a diagnostic message related to a target diagnostic item is sent to the target ECU according to the node type of the target ECU, including: After the communication connection is successfully established, determine the node type of the ECU; When the node type of the target ECU is an Ethernet node, a diagnostic message related to the target diagnostic item is directly sent to the target ECU; In the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway converts the diagnostic message related to the target diagnostic item into a CAN protocol format.
[0019] According to a second aspect of the present disclosure, there is provided an automobile diagnostic device, comprising: A program starting module, configured to start a diagnostic program to display a diagnostic interface; A diagnosis configuration module configured to determine a target diagnosis item from candidate diagnosis items and a target ECU from candidate ECUs in response to a diagnosis configuration operation of a user on a diagnosis interface; A process execution module is configured to sequentially execute a diagnostic process associated with a target diagnostic item for each target ECU; The result display module is configured to display the diagnosis result of each target ECU.
[0020] According to a third aspect of the present disclosure, an electronic device is provided, including a processor and a memory storing program instructions, wherein the processor is configured to execute the automobile diagnostic method provided by the first aspect of the present disclosure when running the program instructions.
[0021] According to a fourth aspect of the present disclosure, a storage medium is provided, in which computer program instructions are stored. When the computer program instructions are executed by a processor, the automobile diagnostic method provided by the first aspect of the present disclosure is executed.
[0022] The automobile diagnostic method, device, electronic device, and storage medium provided by the embodiments of the present disclosure can achieve the following technical effects: The automobile diagnostic method provided by the embodiment of the present disclosure provides a diagnostic program that can automatically perform automobile diagnostic tests. The diagnostic program is configured with a display diagnostic interface that can interact with the user, as well as multiple candidate diagnostic items and multiple candidate ECUs. The user can flexibly select the target diagnostic item and the target ECU as needed, and the diagnostic program automatically executes the corresponding diagnostic process and gives the diagnostic result according to the target diagnostic item and the target ECU. The above process facilitates the user to flexibly select the diagnostic item as needed, which can meet the personalized automobile diagnostic needs.
[0023] The foregoing general description and the following description are exemplary and explanatory only and are not intended to limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 is a flow chart of an automobile diagnostic method provided by an embodiment of the present disclosure; Figure 2 is a schematic diagram of a sub-diagnosis interface corresponding to an electrical detection test provided in an embodiment of the present disclosure; Figure 3 Schematic diagram of an interface including multiple ECU addition positions provided by an embodiment of the present disclosure Figure 4 is a flow chart of an electrical detection test for a target ECU provided by an embodiment of the present disclosure; Figure 5 is a schematic diagram of a sub-diagnosis interface corresponding to a fault code test provided in an embodiment of the present disclosure; Figure 6 is a flow chart of a fault code test for a target ECU provided by an embodiment of the present disclosure; Figure 7 is a schematic diagram of a sub-diagnosis interface corresponding to a test of reading and writing custom configuration words provided in an embodiment of the present disclosure; Figure 8 is a flow chart of a test of reading and writing custom configuration words for a target ECU provided by an embodiment of the present disclosure; Fig. 9 is a structural schematic diagram of an automobile diagnostic device provided by an embodiment of the present disclosure; Fig.10 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0026] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0027] Unless otherwise stated, the term "plurality" means two or more.
[0028] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0029] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0030] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0031] The disclosed embodiment provides an electronic device, and the electronic device is deployed with a diagnostic program. The electronic device may be a device with computing capabilities such as a computer. The electronic device may be connected to a car for communication. For example, if the electronic device is a computer, the computer may use an RJ45 (Registered Jack 45) interface to convert the OBD (On-Board Diagnostics) wiring harness to communicate with the gateway of the car, and then modify the IP (Internet Protocol) address of the computer to the same network segment as the gateway of the car. After the electronic device is connected to the car for communication, the electronic device performs a diagnostic test on the car by running the diagnostic program.
[0032] In the disclosed embodiment, the development of diagnostic programs can be achieved by combining Python with PyQt5. Python is an object-oriented programming language, which is written in C language at the bottom level and is simple, easy to learn and maintain. Python uses the Socket module to implement the interaction of TCP (Transmission Control Protocol) / UDP (User Datagram Protocol) messages with the vehicle gateway, and implements the Ethernet message interaction between the network card of the electronic device and the electronic control unit. PyQt5 is a Python-based GUI (Graphical User Interface) framework, which encapsulates QT in Python language, and uses C++ to write the QT core graphics library at the bottom level, which greatly improves the development efficiency compared to the standard QT.
[0033] The diagnostic program provided in the embodiment of the present disclosure mainly uses QTCore to process time, files, folders, and various data streams; uses QTGUI to process window systems, events, basic drawing, fonts, and text classes; uses QtWidgets to process a series of UI elements for creating desktop applications; uses Pyuic to convert the UI (User Interface) files created by QT into Python code, and the diagnostic program creates a software interface based on the above modules to achieve human-computer interaction. The Python code is packaged into an exe file through the pyinstaller library, and can be run on a specified electronic device (such as a computer) without the need to install a Python environment separately.
[0034] In combination with the electronic device and the diagnostic program provided by the embodiments of the present disclosure, the embodiments of the present disclosure provide a method for diagnosing an automobile, such as Figure 1 As shown, the automobile diagnosis method includes: S101, the electronic device starts a diagnostic program to display a diagnostic interface.
[0035] S102 , the electronic device determines a target diagnostic item from candidate diagnostic items and a target ECU from candidate ECUs in response to a diagnostic configuration operation performed by a user on a diagnostic interface.
[0036] S103, the electronic device executes the diagnostic process related to the target diagnostic item on each target ECU in turn.
[0037] S104, the electronic device displays the diagnosis result of each target ECU.
[0038] The disclosed embodiment provides an automobile diagnostic method, provides a diagnostic program that can automatically perform automobile diagnostic tests, and the diagnostic program is configured with a display diagnostic interface that can interact with the user, as well as multiple candidate diagnostic items and multiple candidate ECUs. The user can flexibly select the target diagnostic item and the target ECU as needed, and the diagnostic program automatically executes the corresponding diagnostic process and gives the diagnostic result according to the target diagnostic item and the target ECU. The above process facilitates the user to flexibly select the diagnostic item as needed, which can meet the personalized automobile diagnostic needs.
[0039] In some embodiments, the diagnostic process includes: the electronic device establishes a communication connection (such as a TCP connection) with the target ECU, and after the communication connection is successfully established, sends a diagnostic message related to the target diagnostic item to the target ECU; receives diagnostic data returned by the target ECU, and displays the diagnostic results based on the diagnostic data; after the diagnosis is completed, disconnects the communication connection with the target ECU.
[0040] In the disclosed embodiment, the electronic device establishes a TCP connection with the target ECU and sends a route activation message to activate the route of the vehicle. After the TCP connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU, where the content of the diagnostic message sent by the target ECU is related to the diagnostic content of the target diagnostic item.
[0041] In some embodiments, after the communication connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU, including: after the communication connection is successfully established, based on the node type of the target ECU, a diagnostic message related to the target diagnostic item is sent to the target ECU, and the node type includes Ethernet node and CAN node.
[0042] In the disclosed embodiment, the node type of the target ECU includes an Ethernet node and a CAN (Controller Area Network) node. After the communication connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU according to the node type of the target ECU, including: after the communication connection is successfully established, the node type of the ECU is determined; when the node type of the target ECU is an Ethernet node, the diagnostic message related to the target diagnostic item is directly sent to the target ECU; when the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so as to use the gateway to convert the diagnostic message related to the target diagnostic item into the CAN protocol format.
[0043] In the disclosed embodiment, the diagnostic message sent by the electronic device is in the DoIP (Diagnostic communication over Internet Protocol) protocol format. When the node type of the target ECU is a CAN node, the diagnostic message in the DoIP protocol format needs to be sent to the gateway of the target ECU, so that the gateway can convert the diagnostic message in the DoIP protocol format into the CAN protocol format, wherein the diagnostic message in the DoIP protocol format sent points to the specific ECU that needs to be accessed by carrying the unique logical address of each CAN node.
[0044] In some embodiments, in response to a user's diagnostic configuration operation on a diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a target ECU is determined from candidate ECUs, including: in response to a user's diagnostic item selection operation on the diagnostic interface, the target diagnostic item is determined from candidate diagnostic items, and a sub-diagnostic interface of the target diagnostic item is displayed; in response to a user's ECU configuration operation on the sub-diagnostic interface, the target ECU is determined from candidate ECUs.
[0045] In the disclosed embodiment, the candidate diagnostic items include one or more of an electrical detection test, a fault code test, a write custom configuration word test, and a read custom configuration word test. Among them, the electrical detection test and the fault code test can each have its own exclusive sub-diagnostic interface, and the write custom configuration word test and the read custom configuration word test can be regarded as a sub-diagnostic interface together. After the electronic device starts the diagnostic program, the first-level diagnostic interface is first displayed. The diagnostic program allows the user to perform diagnostic item selection operations in the first-level diagnostic interface. For example, the first-level diagnostic interface has buttons corresponding to different candidate diagnostic items. The user enters the sub-diagnostic interface of the corresponding candidate diagnostic item by selecting the corresponding button. At this time, the selected candidate diagnostic item is identified as the target diagnostic item. In the sub-diagnostic interface of the target diagnostic item, the user can perform ECU configuration operations according to the test characteristics of the target diagnostic item and his own test requirements, and determine the target ECU from the candidate ECUs.
[0046] In some embodiments, when the target diagnostic item is an electrical inspection test, in response to the user's ECU configuration operation in the sub-diagnostic interface, a target ECU is determined from candidate ECUs, including: in response to the user's ECU selection request in the sub-diagnostic interface, multiple ECU adding positions are displayed; in response to the user's ECU selection operation in the ECU adding position, the selected candidate ECU is added to the ECU adding position; and the candidate ECU in the ECU adding position is determined as the target ECU that needs to perform the electrical inspection test.
[0047] like Figure 2As shown, the sub-diagnosis interface corresponding to the electric test has a "free arrangement" control. The user clicks the "free arrangement" control to issue an ECU selection request, and then the electronic device will display the following Figure 3 The interface shown contains multiple ECU adding positions. Before the user clicks on the ECU adding position, the prompt "Select controller in the drop-down box" will be displayed in the ECU adding position to prompt the user to click on the ECU adding position to select the target ECU. After the user clicks on the ECU adding position, multiple candidate ECUs will be displayed in the ECU adding position. Here, the candidate ECUs include ITMS (Integrated Thermal Management System), PDU (Power Distribution Unit), VIU (Vehicle Interface Unit), INS (Integrated Navigation System) and HCM (Hybrid Control Module), etc.
[0048] After multiple candidate ECUs are displayed in the ECU adding position, the user can select the required candidate ECU from the multiple candidate ECUs so that the electronic device adds the candidate ECU selected by the user in the ECU adding position. At this time, the candidate ECU in the ECU adding position is determined as the target ECU that needs to perform electrical inspection test.
[0049] In some embodiments, the ECU added bit has a serial number, and the ECU added bit needs to represent the order in which the corresponding target ECU performs the electrical detection test. Figure 3 As shown, the serial numbers of the ECU added positions are serial number 1, serial number 2, serial number 3, etc., and the serial numbers of the ECU added positions are positively correlated with the order in which the target ECUs in the ECU added positions execute the electrical detection tests, that is, the earlier the serial number of the ECU added position is, the earlier the order in which the target ECUs in the ECU added positions execute the electrical detection tests is.
[0050] In some embodiments, when the target diagnostic item is an electrical inspection test, the automobile diagnostic method further includes: determining the number of stress tests in response to a user's stress test number determination operation in the sub-diagnosis interface.
[0051] like Figure 2 As shown, the sub-diagnosis interface corresponding to the electrical detection test has a stress test number addition bit, in which the user can write or select a stress test number value so that the electronic device can determine the stress test number. The stress test number indicates the number of times the electrical detection test process is executed cyclically for each target ECU. For example, if the stress test number is 3, then for each target ECU, the electrical detection test process needs to be executed cyclically 3 times.
[0052] In some embodiments, Figure 2 As shown in the figure, the sub-diagnostic interface corresponding to the electrical inspection test has a VIN code (Vehicle Identification Number) addition position. The user can write the VIN code in the VIN code addition position. At this time, the electronic device will automatically perform vehicle access authentication based on the VIN code, unlock the vehicle OBD port communication permission, and then communicate with the vehicle's gateway through the OBD harness.
[0053] In some embodiments, Figure 2 As shown, the sub-diagnosis interface corresponding to the electrical detection test has a time consumption display position, and the time consumption display position can display the time consumption information of the electrical detection test.
[0054] In some embodiments, Figure 2 As shown, the sub-diagnosis interface corresponding to the electrical detection test has a "start" control, a "stop" control, and an "exit" control, and the user can control the start, stop, and exit of the electrical detection test based on these controls.
[0055] In some embodiments, Figure 2 As shown, the sub-diagnosis interface corresponding to the electrical detection test has a result display area, and the result display area can display the result of the electrical detection test of the target ECU.
[0056] Figure 4 The process of the electrical inspection test for a target ECU is shown as follows: Figure 4 As shown, after the electrical inspection test for a target ECU begins, the electronic device establishes a TCP connection with the target ECU and sends a routing activation message to activate the car route. Then it is determined whether the node type of the target ECU is an Ethernet node. In the case where the node type of the target ECU is an Ethernet node, the message transmission can be performed directly; in the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway can be used to convert the diagnostic message related to the target diagnostic item into the CAN protocol format. For example, the diagnostic message in the DoIP protocol format is converted into a diagnostic message in the CAN protocol format (or the CAN protocol format is converted into a diagnostic message in the DoIP protocol format), and then the message is transmitted through the CAN node. Here, the message transmission includes the electronic device sending the diagnostic message to the target ECU, and the electronic device receiving the diagnostic data returned by the target ECU. After the message transmission is completed, the electronic device disconnects the TCP connection with the target ECU, and then executes the process of the electrical inspection test for the next target ECU, or exits the electrical inspection test.
[0057] In the disclosed embodiment, the diagnostic message is derived from the electrical inspection document input by each ECU, and the operations indicated by the diagnostic message include requesting the ECU to read configuration words (0x22 service), requesting the ECU to write configuration words (0x2E service), routine control (0x31 service), reading DTC (Diagnostic Trouble Code) information (0x19 service), resetting the ECU (0x11 service), and other operations.
[0058] In some embodiments, the diagnostic method further includes: calculating the pass rate of the diagnostic test, and analyzing the analysis failure items of the diagnostic test. Optionally, the sub-diagnostic interface corresponding to the electrical inspection test has a "report" control. After the process of the electrical inspection test for a target ECU is completed, the user can click the "report" control, and the pass rate of the diagnostic test can be calculated, and the analysis failure items of the diagnostic test can be analyzed. The pass rate result and the analysis result can be displayed in the result display area.
[0059] In some embodiments, Figure 5 As shown, in the case where the target diagnostic item is a fault code test, the sub-diagnostic interface includes a read fault code addition position. In the case where the target diagnostic item is a fault code test, in response to the user's ECU configuration operation in the sub-diagnostic interface, the target ECU is determined from the candidate ECUs, including: in response to the user's ECU selection operation of the read fault code addition position in the sub-diagnostic interface, the selected candidate ECU is added to the read fault code addition position; and the candidate ECU in the read fault code addition position is determined as the target ECU that needs to perform the fault code test.
[0060] Before the user clicks the read fault code add position, the prompt "Drop-down box selection" will be displayed in the read fault code add position to prompt the user to click the read fault code add position to select the target ECU. After the user clicks the ECU add position, multiple candidate ECUs will be displayed in the read fault code add position. The user can select the required candidate ECU from multiple candidate ECUs so that the electronic device can add the candidate ECU selected by the user in the read fault code add position. At this time, the candidate ECU in the read fault code add position is determined as the target ECU that needs to perform fault code testing.
[0061] In some embodiments, Figure 5 As shown, the sub-diagnosis interface corresponding to the electrical inspection test has a result display area, and the result display area can display the result of the fault code test of the target ECU.
[0062] In some embodiments, Figure 5As shown, when the target diagnostic item is a fault code test, the sub-diagnostic interface includes a clear fault code addition position. When the target diagnostic item is a fault code test, the automobile diagnostic method further includes: in response to the user's ECU selection operation of clearing the fault code addition position in the sub-diagnostic interface, adding the selected candidate ECU in the clear fault code addition position; before reading the fault code, clearing the fault code related to the candidate ECU in the clear fault code addition position.
[0063] Before the user clicks the Clear Fault Code Adding Position, the Clear Fault Code Adding Position will display the prompt "Drop-down Box Selection" to prompt the user to click the Clear Fault Code Adding Position to select a candidate ECU. After the user clicks the ECU Adding Position, multiple candidate ECUs will be displayed in the Clear Fault Code Adding Position. The user can select the required candidate ECU from multiple candidate ECUs so that the electronic device can add the candidate ECU selected by the user to the Clear Fault Code Adding Position. Before reading the fault code, the fault code related to the candidate ECU in the Clear Fault Code Adding Position will be cleared.
[0064] In the disclosed embodiment, the user may add all candidate ECUs to the fault code adding position, or may add some candidate ECUs to the fault code clearing adding position.
[0065] The disclosed embodiment can perform fault code testing in different states of the vehicle, including the state after the wiper function is operated, the state after the air conditioning function is operated, the state after the headlight function is operated, the state after repeated power on and off, and the state after deep sleep and power on. It can be understood that after completing a fault code test in one or more states of the vehicle, the fault code test is performed again in the next state of the vehicle. Before each execution of the fault code test, the fault code related to the candidate ECU in the clear fault code add bit can be cleared.
[0066] Figure 6 The process of fault code testing for a target ECU is shown. First, the fault code related to the candidate ECU in the clear fault code adding position is cleared. After the car enters the corresponding state, the fault code is read and finally the fault code is analyzed.
[0067] In some embodiments, after the fault code test for a target ECU begins, the electronic device establishes a TCP connection with the target ECU and sends a routing activation message to activate the car route. Then, it is determined whether the node type of the target ECU is an Ethernet node. In the case where the node type of the target ECU is an Ethernet node, the message transmission can be performed directly; in the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway can be used to convert the diagnostic message related to the target diagnostic item into the CAN protocol format, for example, converting the diagnostic message in the DoIP protocol format into the diagnostic message in the CAN protocol format (or converting the CAN protocol format into the diagnostic message in the DoIP protocol format), and then transmitting the message through the CAN node. Here, the message transmission includes the electronic device sending the diagnostic message to the target ECU, and the electronic device receiving the diagnostic data returned by the target ECU, wherein the diagnostic message includes a clear fault code message and a read fault code message, the clear fault code message is used to clear the fault code related to the candidate ECU in the clear fault code addition bit, and the read fault code message is used to read the fault code after the car enters the corresponding state. After the message transmission is completed, the electronic device disconnects the TCP connection with the target ECU, and then executes the fault code test process for the next target ECU, or exits the fault code test.
[0068] In some embodiments, the write custom configuration word test and the read custom configuration word test can be collectively regarded as a sub-diagnostic interface, and the write custom configuration word test and the read custom configuration word test can be collectively referred to as the read and write custom configuration word test. In the case where the target diagnostic item is the write custom configuration word test, in response to the user's ECU configuration operation in the sub-diagnostic interface, the target ECU is determined from the candidate ECUs, including: in response to the user's ECU selection operation of the write configuration word add bit in the sub-diagnostic interface, the selected candidate ECU is added to the write configuration word add bit; the candidate ECU in the write configuration word add bit is determined as the target ECU that needs to perform the write custom configuration word test; in response to the user's write custom configuration word file upload operation in the sub-diagnostic interface, the write custom configuration word file is obtained, wherein the write custom configuration word file includes the custom configuration words that need to be written to the target ECU.
[0069] In the embodiments of the present disclosure, Figure 7As shown, when the target diagnostic item is a write custom configuration word test, the sub-diagnostic interface for the read and write custom configuration word test includes a write configuration word add bit and a "configuration word import" control. Before the user clicks the write configuration word add bit, the write configuration word add bit will display the prompt "Select the ECU to be read" to prompt the user to click the write configuration word add bit to select the target ECU. After the user clicks the write configuration word add bit, multiple candidate ECUs will be displayed in the write configuration word add bit. The user can select the required candidate ECU from multiple candidate ECUs so that the electronic device adds the candidate ECU selected by the user to the write configuration word add bit. At this time, the candidate ECU in the write configuration word add bit is determined as the target ECU that needs to perform the write custom configuration word test. In addition, the user can click the "configuration word import" control, and then select the write custom configuration word file to upload, so that the diagnostic program can obtain the write custom configuration word file.
[0070] In some embodiments, when the target diagnostic item is a read custom configuration word test, in response to an ECU configuration operation of a user in a sub-diagnostic interface, a target ECU is determined from candidate ECUs, including: in response to an ECU selection operation of a read configuration word add bit of a user in the sub-diagnostic interface, adding the selected candidate ECU in the read configuration word add bit; determining the candidate ECU in the read configuration word add bit as a target ECU that needs to perform a read custom configuration word test; in response to an upload operation of a read custom configuration word file of a user in the sub-diagnostic interface, obtaining a read custom configuration word file, wherein the read custom configuration word file includes custom configuration words that need to be read in the target ECU.
[0071] In the embodiments of the present disclosure, Figure 7 As shown, when the target diagnostic item is a read custom configuration word test, the sub-diagnostic interface of the read custom configuration word test includes a read configuration word addition position and a "configuration word import" control. Before the user clicks the read configuration word addition position, the read configuration word addition position will display the prompt "Select the ECU to be read" to prompt the user to click the read configuration word addition position to select the target ECU. After the user clicks the read configuration word addition position, multiple candidate ECUs will be displayed in the read configuration word addition position. The user can select the required candidate ECU from multiple candidate ECUs so that the electronic device adds the candidate ECU selected by the user to the read configuration word addition position. At this time, the candidate ECU in the read configuration word addition position is determined as the target ECU that needs to perform the read custom configuration word test. In addition, the user can click the "configuration word import" control, and then select the read custom configuration word file to upload, so that the diagnostic program can obtain the read custom configuration word file.
[0072] In the disclosed embodiment, both the write custom configuration word file and the read custom configuration word file are Excel files. The disclosed embodiment can use a Python library (such as the Openpyxl library) that can read, write and operate Excel to quickly and efficiently read and write configuration words. Since the Openpyxl library can perform read and write operations on Excel files, the ID of the custom configuration word to be read can be filled into the read custom configuration word file, and the ID of the custom configuration word to be written and the content of the custom configuration word to be written can be filled into the write custom configuration word file. The Openpyxl library can extract the data in the write custom configuration word file and the read custom configuration word file according to established rules and fill them into the diagnostic program.
[0073] In some embodiments, Figure 7 As shown, the sub-diagnosis interface corresponding to the read and write custom configuration word test has a result display area, and the result display area can display the results of the write custom configuration word test and the read custom configuration word test of the target ECU.
[0074] Figure 8 The flow of the test of reading and writing custom configuration words for a target ECU is shown. First, the target ECU is added to the write configuration word addition bit and / or the target ECU is added to the read configuration word addition bit (not shown in the figure), and an Excel file is imported, wherein the Excel file can be a write custom configuration word file and / or a read custom configuration word file. In the case where a read custom configuration word test is required, the content of the Excel file is traversed to obtain the ID of the custom configuration word to be read, and a read operation (0x22 service) is performed based on the ID, and then the result of the read custom configuration word test of the target ECU can be viewed in the result display area; in the case where a write custom configuration word test is required, the content of the Excel file is traversed to obtain the ID of the custom configuration word to be written, and a security unlock (0x27 service), session maintenance (0x3E service) and write operation (0x2E service) are performed based on the ID, and then the result of the write custom configuration word test of the target ECU can be viewed in the result display area.
[0075] In some embodiments, Figure 7 As shown, the sub-diagnosis interface corresponding to the read and write custom configuration word test has a "Confirm" control. After the user clicks the "Confirm" control, the result display area can display the result of the write custom configuration word test or the read custom configuration word test of the target ECU.
[0076] In some embodiments, after the test of reading custom configuration words for a target ECU begins, the electronic device establishes a TCP connection with the target ECU and sends a routing activation message to activate the car routing. Then, it is determined whether the node type of the target ECU is an Ethernet node. In the case where the node type of the target ECU is an Ethernet node, the message transmission can be performed directly; in the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway can be used to convert the diagnostic message related to the target diagnostic item into a CAN protocol format, for example, converting the diagnostic message in the DoIP protocol format into a diagnostic message in the CAN protocol format (or converting the CAN protocol format into a diagnostic message in the DoIP protocol format), and then transmitting the message through the CAN node. Here, the message transmission includes the electronic device sending the diagnostic message to the target ECU, and the electronic device receiving the diagnostic data returned by the target ECU, wherein the diagnostic message includes a read operation message, and the read operation message is used to indicate the execution of the read operation. After the message transmission is completed, the electronic device can disconnect the TCP connection with the target ECU, and then execute the process of reading the custom configuration word test for the next target ECU, or exit the reading custom configuration word test.
[0077] In some embodiments, after the test of writing a custom configuration word for a target ECU begins, the electronic device establishes a TCP connection with the target ECU and sends a routing activation message to activate the car routing. Then, it is determined whether the node type of the target ECU is an Ethernet node. In the case where the node type of the target ECU is an Ethernet node, the message transmission can be performed directly; in the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway can be used to convert the diagnostic message related to the target diagnostic item into a CAN protocol format, such as converting the diagnostic message in the DoIP protocol format into a diagnostic message in the CAN protocol format (or converting the CAN protocol format into a diagnostic message in the DoIP protocol format), and then transmitting the message through the CAN node. Here, the message transmission includes the electronic device sending the diagnostic message to the target ECU, and the electronic device receiving the diagnostic data returned by the target ECU, wherein the diagnostic message includes a write operation message, and the write operation message is used to indicate the execution of security unlocking, session maintenance and write operations. After the message transmission is completed, the electronic device can disconnect the TCP connection with the target ECU, and then execute the process of writing the custom configuration word test for the next target ECU, or exit the writing custom configuration word test.
[0078] Combination Fig. 9As shown, an embodiment of the present disclosure provides an automobile diagnostic device 900 , which includes a program startup module 901 , a diagnostic configuration module 902 , a process execution module 903 and a result display module 904 .
[0079] The program starting module 901 is configured to start a diagnostic program to display a diagnostic interface.
[0080] The diagnosis configuration module 902 is configured to determine a target diagnosis item from candidate diagnosis items and determine a target ECU from candidate ECUs in response to a diagnosis configuration operation performed by a user on a diagnosis interface.
[0081] The process execution module 903 is configured to execute the diagnosis process related to the target diagnosis item on each target ECU in turn.
[0082] The result display module 904 is configured to display the diagnosis result of each target ECU.
[0083] The disclosed embodiment provides an automobile diagnostic device, provides a diagnostic program that can automatically perform automobile diagnostic tests, and the diagnostic program is configured with a display diagnostic interface that can interact with the user, as well as multiple candidate diagnostic items and multiple candidate ECUs. The user can flexibly select the target diagnostic item and the target ECU as needed, and the diagnostic program automatically executes the corresponding diagnostic process and gives the diagnostic result according to the target diagnostic item and the target ECU. The above process facilitates the user to flexibly select the diagnostic item as needed, which can meet the personalized automobile diagnostic needs.
[0084] In some embodiments, the diagnostic configuration module 902 is configured to: In response to a user's diagnostic item selection operation on the diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a sub-diagnosis interface of the target diagnostic item is displayed; In response to the user's ECU configuration operation on the sub-diagnosis interface, a target ECU is determined from the candidate ECUs.
[0085] In some embodiments, when the target diagnostic item is an electrical detection test, the diagnostic configuration module 902 is configured to: In response to a user's ECU selection request in a sub-diagnosis interface, multiple ECU addition positions are displayed; In response to the user's ECU selection operation in the ECU adding position, adding the selected candidate ECU in the ECU adding position; The candidate ECU in the ECU adding position is determined as the target ECU that needs to perform the electric detection test.
[0086] In some embodiments, the ECU added bit has a sequence number, and the ECU added bit needs to represent the order in which its corresponding target ECU executes the electrical detection test.
[0087] In some embodiments, the diagnostic configuration module 902 is configured to: determine the number of stress tests in response to a user's stress test number determination operation in the sub-diagnostic interface, wherein the number of stress tests represents the number of times the electrical detection test process is cyclically executed for each target ECU.
[0088] In some embodiments, when the target diagnostic item is a fault code test, the sub-diagnosis interface includes a read fault code addition bit; the diagnostic configuration module 902 is configured to: In response to the user's ECU selection operation in the read fault code adding position in the sub-diagnosis interface, adding the selected candidate ECU in the read fault code adding position; The candidate ECU in the fault code reading adding position is determined as the target ECU that needs to perform fault code testing.
[0089] In some embodiments, the sub-diagnostic interface includes clearing the fault code addition bit, and the diagnostic configuration module 902 is configured to: In response to the user's ECU selection operation of clearing the fault code addition bit in the sub-diagnosis interface, adding the selected candidate ECU in the clearing fault code addition bit; Before reading the fault code, clear the fault code related to the candidate ECU in the fault code adding bit.
[0090] In some embodiments, when the target diagnostic item is a write custom configuration word test, the sub-diagnosis interface includes a write configuration word add bit; the diagnostic configuration module 902 is configured as follows: In response to the user's ECU selection operation of writing configuration word addition bits in the sub-diagnosis interface, adding the selected candidate ECU in the writing configuration word addition bits; Determine the candidate ECU in the write configuration word add bit as the target ECU that needs to perform the write custom configuration word test; In response to a user's upload operation of writing a custom configuration word file in the sub-diagnosis interface, obtaining the writing custom configuration word file, wherein the writing custom configuration word file includes custom configuration words that need to be written into the target ECU.
[0091] In some embodiments, when the target diagnostic item is a test for reading custom configuration words, the sub-diagnostic interface includes a read configuration word addition bit; the diagnostic configuration module 902 is configured as follows: In response to the user's ECU selection operation in the read configuration word add bit of the sub-diagnosis interface, adding the selected candidate ECU in the read configuration word add bit; Determine the candidate ECU in the read configuration word addition bit as the target ECU that needs to perform the read custom configuration word test; In response to a user's upload operation of reading a custom configuration word file in the sub-diagnosis interface, the reading custom configuration word file is acquired, wherein the reading custom configuration word file includes custom configuration words that need to be read in the target ECU.
[0092] In some embodiments, the diagnostic procedure includes: Establish a communication connection with the target ECU, and after the communication connection is successfully established, send a diagnostic message related to the target diagnostic item to the target ECU; Receive diagnostic data returned by the target ECU and display diagnostic results based on the diagnostic data; After the diagnosis is completed, the communication connection with the target ECU is disconnected.
[0093] In some embodiments, after the communication connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU, including: After the communication connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU according to the node type of the target ECU, and the node type includes Ethernet node and CAN node.
[0094] In some embodiments, after the communication connection is successfully established, a diagnostic message related to a target diagnostic item is sent to the target ECU according to the node type of the target ECU, including: After the communication connection is successfully established, determine the node type of the ECU; When the node type of the target ECU is an Ethernet node, a diagnostic message related to the target diagnostic item is directly sent to the target ECU; In the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway converts the diagnostic message related to the target diagnostic item into the CAN protocol format. Fig.10 As shown, an embodiment of the present disclosure provides an electronic device 1000, which includes a processor 1001 and a memory 1002. Optionally, the electronic device 1000 may also include a communication interface 1003 and a bus 1004. The processor 1001, the communication interface 1003, and the memory 1002 may communicate with each other through the bus 1004. The communication interface 1003 may be used for information transmission. The processor 1001 may call the logic instructions in the memory 1002 to execute the automobile diagnostic method of the above embodiment.
[0095] In addition, the logic instructions in the memory 1002 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0096] The memory 1002 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 1001 executes the function application and data processing by running the program instructions / modules stored in the memory 1002, that is, the automobile diagnosis method in the above embodiment is implemented.
[0097] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 1002 may include a high-speed random access memory and may also include a non-volatile memory.
[0098] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned automobile diagnosis method.
[0099] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0100] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0101] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0102] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0103] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. 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, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. 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, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A vehicle diagnostic method, characterized in that: include: Start the diagnostic program to display the diagnostic interface; In response to a diagnostic configuration operation performed by a user on a diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a target ECU is determined from candidate ECUs; Execute the diagnostic process related to the target diagnostic item for each target ECU in turn; Displays the diagnostic results for each target ECU.
2. The method according to claim 1, characterized in that In response to a diagnostic configuration operation of a user on a diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a target ECU is determined from candidate ECUs, including: In response to a user's diagnostic item selection operation on the diagnostic interface, a target diagnostic item is determined from candidate diagnostic items, and a sub-diagnosis interface of the target diagnostic item is displayed; In response to the user's ECU configuration operation on the sub-diagnosis interface, a target ECU is determined from the candidate ECUs.
3. The method according to claim 2, characterized in that In the case where the target diagnostic item is an electric detection test, in response to the ECU configuration operation of the user in the sub-diagnosis interface, the target ECU is determined from the candidate ECUs, including: In response to a user's ECU selection request in a sub-diagnosis interface, multiple ECU addition positions are displayed; In response to the user's ECU selection operation in the ECU adding position, adding the selected candidate ECU in the ECU adding position; The candidate ECU in the ECU adding position is determined as the target ECU that needs to perform the electric detection test.
4. The method according to claim 3, characterized in that The ECU added bit has a serial number, and the ECU added bit needs to represent the order in which its corresponding target ECU performs the electrical detection test.
5. The method according to claim 3, characterized in that: Also includes: In response to the user's operation of determining the number of stress tests in the sub-diagnosis interface, the number of stress tests is determined, wherein the number of stress tests represents the number of times the electrical detection test process is cyclically executed for each target ECU.
6. The method according to claim 2, characterized in that In the case where the target diagnostic item is a fault code test, the sub-diagnosis interface includes a read fault code addition bit; In response to the ECU configuration operation of the user in the sub-diagnosis interface, a target ECU is determined from the candidate ECUs, including: In response to the user's ECU selection operation in the read fault code adding position in the sub-diagnosis interface, adding the selected candidate ECU in the read fault code adding position; The candidate ECU in the fault code reading adding position is determined as the target ECU that needs to perform fault code testing.
7. The method according to claim 2, characterized in that The sub-diagnostic interface includes clearing the fault code addition bit, and the method also includes: In response to the user's ECU selection operation of clearing the fault code addition bit in the sub-diagnosis interface, adding the selected candidate ECU in the clearing fault code addition bit; Before reading the fault code, clear the fault code related to the candidate ECU in the fault code adding bit.
8. The method according to claim 2, characterized in that: In the case where the target diagnostic item is a write custom configuration word test, the sub-diagnostic interface includes a write configuration word add bit; In response to the ECU configuration operation of the user in the sub-diagnosis interface, a target ECU is determined from the candidate ECUs, including: In response to the user's ECU selection operation of writing configuration word addition bits in the sub-diagnosis interface, adding the selected candidate ECU in the writing configuration word addition bits; Determine the candidate ECU in the write configuration word add bit as the target ECU that needs to perform the write custom configuration word test; In response to a user's upload operation of writing a custom configuration word file in the sub-diagnosis interface, obtaining the writing custom configuration word file, wherein the writing custom configuration word file includes custom configuration words that need to be written into the target ECU.
9. The method according to claim 2, characterized in that: In the case where the target diagnostic item is a read custom configuration word test, the sub-diagnostic interface includes a read configuration word add bit; In response to the ECU configuration operation of the user in the sub-diagnosis interface, a target ECU is determined from the candidate ECUs, including: In response to the user's ECU selection operation in the read configuration word add bit of the sub-diagnosis interface, adding the selected candidate ECU in the read configuration word add bit; Determine the candidate ECU in the read configuration word addition bit as the target ECU that needs to perform the read custom configuration word test; In response to a user's upload operation of reading a custom configuration word file in the sub-diagnosis interface, the reading custom configuration word file is acquired, wherein the reading custom configuration word file includes custom configuration words that need to be read in the target ECU.
10. The method according to claim 1, characterized in that The diagnostic process includes: Establish a communication connection with the target ECU, and after the communication connection is successfully established, send a diagnostic message related to the target diagnostic item to the target ECU; Receive diagnostic data returned by the target ECU and display diagnostic results based on the diagnostic data; After the diagnosis is completed, the communication connection with the target ECU is disconnected.
11. The vehicle diagnostic method according to claim 1, characterized in that: After the communication connection is successfully established, the diagnostic message related to the target diagnostic item is sent to the target ECU, including: After the communication connection is successfully established, a diagnostic message related to the target diagnostic item is sent to the target ECU according to the node type of the target ECU, and the node type includes Ethernet node and CAN node.
12. The vehicle diagnostic method according to claim 11, characterized in that: After the communication connection is successfully established, according to the node type of the target ECU, a diagnostic message related to the target diagnostic item is sent to the target ECU, including: After the communication connection is successfully established, determine the node type of the ECU; When the node type of the target ECU is an Ethernet node, a diagnostic message related to the target diagnostic item is directly sent to the target ECU; In the case where the node type of the target ECU is a CAN node, the diagnostic message related to the target diagnostic item is sent to the gateway of the target ECU, so that the gateway converts the diagnostic message related to the target diagnostic item into a CAN protocol format.
13. An automobile diagnostic device, characterized in that: include: A program starting module, configured to start a diagnostic program to display a diagnostic interface; A diagnosis configuration module configured to determine a target diagnosis item from candidate diagnosis items and a target ECU from candidate ECUs in response to a diagnosis configuration operation of a user on a diagnosis interface; A process execution module is configured to sequentially execute a diagnostic process associated with a target diagnostic item for each target ECU; The result display module is configured to display the diagnosis result of each target ECU.
14. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the vehicle diagnosis method according to any one of claims 1 to 12 when running the program instructions.
15. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the automobile diagnosis method according to any one of claims 1 to 12 is executed.
Citation Information
Cited By
Vehicle diagnosis method, vehicle diagnosis device, vehicle diagnosis system, and storage medium
WO2026103501A1
