Vehicle diagnosis method and system and storage medium

Through the formulation and analysis of the ODX database, combined with message format and diagnostic address partitioning, the multi-protocol conversion and routing problems in the existing technology are solved, the standardization and platformization of vehicle diagnosis are realized, and the exchange efficiency and reliability of diagnostic data are improved. .

CN118655878APending Publication Date: 2024-09-17GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410817836.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing vehicle diagnostic technology cannot meet the diagnostic interaction needs of multiple protocols and multiple scenarios. Diagnostic information is easily exposed, platformization is poor, and maintenance costs are high. Moreover, the diagnostic routing method is based on the vehicle routing table and cannot realize multi-protocol conversion and routing.

Method used

By formulating and parsing the ODX database, combining message formats and diagnostic address partitions with diagnostic routing tables individually defined for each domain, multi-protocol conversion and routing of vehicle diagnostics can be realized, the standardization and platforming of diagnostic data can be improved, and the efficiency and effectiveness of data exchange can be ensured. quality.

Benefits of technology

It realizes diagnostic data interaction in multi-protocol diagnostic application scenarios throughout the vehicle life cycle, improves the coverage and compatibility of diagnostic scenarios, reduces ECU software changes, and increases the confidentiality and reliability of diagnostic information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655878A
    Figure CN118655878A
Patent Text Reader

Abstract

The invention discloses a vehicle diagnosis method and system and a storage medium, and the vehicle diagnosis method enables diagnosis equipment and vehicle diagnosis information to be standardized and platformized through formulating and analyzing an ODX database, improves the efficiency and quality of data exchange, guarantees the integrity and reliability of diagnosis data, and improves the reliability of vehicle diagnosis. Diagnostic data interaction of a multi-protocol diagnosis application scene in the whole life cycle of a vehicle is achieved, and the coverage rate and compatibility of the diagnosis scene are improved. Through combination of a message format and a diagnosis address partition with a diagnosis routing table independently defined by each domain, complete vehicle diagnosis multi-protocol conversion and routing can be realized, diagnosis design platformization of an ECU (Electronic Control Unit) product is improved, ECU software change is reduced, and confidentiality and reliability of diagnosis information are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle diagnosis, and in particular to a vehicle diagnosis method, a vehicle diagnosis system and a computer-readable storage medium. Background Art

[0002] With the rapid development of intelligent connected vehicles, the continuous upgrading of electronic and electrical architecture, the installation of central computing units and user controls, the vehicle architecture will become more complex. The vehicle communication network needs to introduce higher-bandwidth communication technologies, such as CANFD, vehicle Ethernet, etc. Diagnostic communications also need to be compatible with multiple communication protocols to achieve protocol conversion of diagnostic messages and routing to various sub-networks within the vehicle.

[0003] In related technologies, the diagnostic routing method is based on a vehicle diagnostic routing table definition, which is shared by the vehicle and device ends. It defines the diagnostic addresses and diagnostic paths of all ECUs in the vehicle, and can only ensure diagnostic communication between the device and the vehicle end through methods supported by limited diagnostic protocols, which cannot meet the diagnostic interaction requirements of multiple protocols and multiple scenarios. All domains can obtain diagnostic information of all ECUs through the vehicle routing table, and the diagnostic information is easily exposed. As long as the diagnostic routing information of one node changes, the central domain needs to respond to the change, which has poor platformization and high maintenance costs. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to propose a vehicle diagnosis method, which standardizes and platforms the diagnostic equipment and vehicle diagnostic information by formulating and parsing the ODX database, improves the efficiency and quality of data exchange, ensures the integrity and reliability of diagnostic data, realizes the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the life cycle of the vehicle, and improves the coverage and compatibility of diagnostic scenarios; through the combination of message format and diagnostic address partitioning with the diagnosis routing table defined separately for each domain, it can realize vehicle diagnosis multi-protocol conversion and routing, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0005] A second object of the present invention is to provide a vehicle diagnostic system.

[0006] A third object of the present invention is to provide a computer-readable storage medium.

[0007] To achieve the above-mentioned purpose, a first aspect of the present invention proposes a vehicle diagnostic method, which includes: receiving an ECU diagnostic request sent by an external device according to ECU diagnostic information, wherein the ECU diagnostic information is determined by an ECU diagnostic layer specification file, a vehicle information file, an ECU interface file and a diagnostic scenario in a whole vehicle PDX data packet; controlling a central controller to perform protocol conversion and routing classification according to a message format and a diagnostic address of the ECU diagnostic request, and forwarding the ECU diagnostic request to a corresponding domain controller or a central domain ECU according to a central domain diagnostic routing table; controlling other domain controllers to send the ECU diagnostic request to an ECU hanging in the domain according to a corresponding diagnostic routing table, so that the ECU hanging in the domain replies with a diagnostic response; controlling the other domain controllers to perform protocol conversion and routing classification according to a message format and a diagnostic address of the diagnostic response, and forwarding the diagnostic response to the central controller according to a corresponding diagnostic routing table; controlling the central controller to route the received diagnostic responses from each domain controller to a diagnostic path of a vehicle diagnostic system connected to a diagnostic device according to the message format of the diagnostic response, so that the diagnostic device receives and parses the diagnostic response according to the corresponding ECU interface file in the ECU interface file.

[0008] According to the vehicle diagnosis method of the embodiment of the present invention, first, an ECU diagnosis request sent by an external device according to ECU diagnosis information is received, and then the central controller is controlled to perform protocol conversion and routing classification according to the message format and diagnosis address of the ECU diagnosis request, and the ECU diagnosis request is forwarded to the corresponding domain controller or the central domain ECU according to the central domain diagnosis routing table; then other domain controllers are controlled to send the ECU diagnosis request to the ECUs hanging in the domain according to the corresponding diagnosis routing table, so that the ECUs hanging in the domain reply with a diagnosis response; and other domain controllers are controlled to perform protocol conversion and routing classification according to the message format and diagnosis address of the diagnosis response, and forward the diagnosis response to the central controller according to the corresponding diagnosis routing table; finally, the central controller is controlled to route the received diagnosis responses from each domain controller to the diagnosis path of the vehicle diagnosis system connected to the diagnosis device, so that the diagnosis device receives and parses the diagnosis response according to the corresponding ECU interface file in the ECU interface file. Therefore, by formulating and parsing the ODX database, the method standardizes and platforms the diagnostic equipment and vehicle diagnostic information, improves the efficiency and quality of data exchange, ensures the integrity and reliability of diagnostic data, realizes the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the vehicle life cycle, and improves the coverage and compatibility of diagnostic scenarios; by combining the message format and diagnostic address partitioning with the separate definition of diagnostic routing tables for each domain, it can realize multi-protocol conversion and routing for vehicle diagnosis, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0009] In addition, the vehicle diagnostic method according to the above embodiment of the present invention may also have the following additional technical features:

[0010] According to one embodiment of the present invention, the ECU diagnostic information includes: the OBD pin definition of the vehicle diagnostic system and the diagnostic access path of the ECU interface file. The OBD pin definition and the diagnostic access path of the ECU interface file are determined according to the vehicle information file in the whole vehicle PDX data packet, including: extracting the index file of the whole vehicle PDX data packet, and determining the vehicle information file according to the index file; obtaining the specification and definition file of the whole vehicle diagnostic information according to the vehicle information file; parsing the specification and definition file of the whole vehicle diagnostic information to obtain the vehicle topology structure file; parsing the vehicle topology structure file to obtain the physical characteristics and connection definition file of the vehicle connector, the diagnostic protocol interface and connection relationship file of the physical connection in the vehicle, and the mapping relationship file of the logical connection and the ECU interface; obtaining the mapping relationship between the ECU interface file and the diagnostic protocol interface according to the mapping relationship file of the logical connection and the ECU interface; obtaining the pin mapping relationship between the diagnostic protocol interface and the vehicle diagnostic system according to the diagnostic protocol interface and the connection relationship file of the physical connection in the vehicle; determining the OBD pin definition according to the physical characteristics and connection definition file of the vehicle connector.

[0011] According to one embodiment of the present invention, the ECU diagnostic information includes: parameter definitions related to ECU diagnostic services and diagnostic communications, and determining parameter definitions related to ECU diagnostic services and diagnostic communications according to the ECU diagnostic layer specification file, including: extracting the index file of the whole vehicle PDX data packet, and determining the ECU diagnostic layer specification file according to the index file; obtaining the ECU basic variant information file according to the ECU diagnostic layer specification file; parsing the ECU basic variant information file to obtain an ECU diagnostic communication parameter file, an ECU supported diagnostic service file, and an ECU diagnostic request format file; parsing the ECU diagnostic communication parameter file to obtain the corresponding ECU diagnostic address and communication parameter information; parsing the ECU supported diagnostic service file to obtain the corresponding ECU supported diagnostic service SID and DID; parsing the ECU diagnostic request format file to obtain the request and response format of the corresponding ECU supported diagnostic service.

[0012] According to one embodiment of the present invention, the ECU interface file corresponding to the whole vehicle PDX data packet is called according to the diagnostic scenario, and the ECU diagnostic request is generated according to the OBD pin definition of the vehicle diagnostic system, the diagnostic access path of the ECU interface file, the ECU diagnostic service and the parameter definition related to the diagnostic communication.

[0013] According to one embodiment of the present invention, the central controller is controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, including: when the message format of the ECU diagnostic request is a first message, determining the interval in which the source address corresponding to the first message is located; when the interval in which the source address is located is the first interval, performing protocol conversion on the first message, converting it into a second message, and changing the diagnostic request address of the second message to the source address of the first message, and routing it to the corresponding domain controller or the central domain ECU through the diagnostic path of the second message; when the interval in which the source address is located is the second interval, defining the diagnostic address and diagnostic path according to the central domain diagnostic routing table, and routing it to the corresponding domain controller and the central domain ECU through the diagnostic path of the first message.

[0014] According to one embodiment of the present invention, the central controller is controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, including: when the message format of the ECU diagnostic request is the second message, determining the diagnostic request address corresponding to the second message; when the interval where the diagnostic request address is located is the third interval, performing protocol conversion on the second message, converting it into the first message, and changing the source address of the first message to the diagnostic request address of the second message, and routing it to the corresponding domain controller or the central domain ECU through the diagnostic path of the first message; when the interval where the diagnostic request address is located is the fourth interval, defining the diagnostic address and diagnostic path according to the central domain diagnostic routing table, and routing it to the corresponding domain controller and the central domain ECU through the diagnostic path of the second message.

[0015] According to one embodiment of the present invention, the other domain domain controllers are controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table, including: when the message format of the diagnostic response is the first message, determining the interval in which the source address corresponding to the first message is located; when the interval in which the source address is located is the first interval, performing protocol conversion on the first message to convert it into the second message, and modifying the diagnostic request address of the second message according to the diagnostic routing table corresponding to each domain domain controller, and routing to the central controller through the diagnostic path of the second message; when the interval in which the source address is located is the second interval, the other domain domain controllers are routed to the central controller through the diagnostic path of the first message.

[0016] According to one embodiment of the present invention, the other domain domain controllers are controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table, including: when the message format of the diagnostic response is the second message, determining the diagnostic request address corresponding to the second message; when the interval where the diagnostic request address is located is the third interval, performing protocol conversion on the second message to convert it into the first message, and modifying the diagnostic request address of the first message according to the diagnostic routing table corresponding to each domain domain controller, and routing to the central controller through the diagnostic path of the first message; when the interval where the diagnostic request address is located is the fourth interval, the other domain domain controllers are routed to the central controller through the diagnostic path of the second message.

[0017] To achieve the above-mentioned purpose, the second embodiment of the present invention proposes a vehicle diagnostic system, including: a receiving module, used to receive an ECU diagnostic request sent by an external device based on ECU diagnostic information, wherein the ECU diagnostic information is determined by the ECU diagnostic layer specification file, vehicle information file, ECU interface file and diagnostic scenario in the whole vehicle PDX data packet; a control module, used to control the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table; the control module is also used to control other domain controllers to perform protocol conversion and routing classification according to the corresponding The diagnostic routing table sends the ECU diagnostic request to the downstream ECU in the domain, so that the downstream ECU in the domain replies with a diagnostic response; the control module is also used to control the other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table; the control module is also used to control the central controller to route the diagnostic response message format received from each domain controller to the diagnostic path of the vehicle diagnostic system connected to the diagnostic device, so that the diagnostic device receives and parses the diagnostic response according to the corresponding ECU interface file in the ECU interface file.

[0018] According to the vehicle diagnostic system of an embodiment of the present invention, a receiving module receives an ECU diagnostic request sent by an external device according to ECU diagnostic information; a control module controls the central controller to perform protocol conversion and routing classification according to a message format and a diagnostic address of the ECU diagnostic request, and forwards the ECU diagnostic request to a corresponding domain controller or a central domain ECU according to a central domain diagnostic routing table; a control module controls other domain controllers to send the ECU diagnostic request to the ECUs hanging in the domain according to a corresponding diagnostic routing table, so that the ECUs hanging in the domain reply with a diagnostic response; a control module controls other domain controllers to perform protocol conversion and routing classification according to a message format and a diagnostic address of a diagnostic response, and forwards the diagnostic response to the central controller according to a corresponding diagnostic routing table; a control module controls the central controller to route the received diagnostic responses from each domain controller to a diagnostic path of a vehicle diagnostic system connected to a diagnostic device, so that the diagnostic device receives and parses the diagnostic response according to a corresponding ECU interface file in the ECU interface file. Therefore, by formulating and parsing the ODX database, the system standardizes and platformizes the diagnostic equipment and vehicle diagnostic information, improves the efficiency and quality of data exchange, ensures the integrity and reliability of diagnostic data, realizes the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the vehicle life cycle, and improves the coverage and compatibility of diagnostic scenarios; through the combination of message format and diagnostic address partitioning with separately defined diagnostic routing tables for each domain, it can realize multi-protocol conversion and routing for vehicle diagnosis, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0019] To achieve the above-mentioned purpose, a third aspect of the present invention provides a computer-readable storage medium on which a vehicle diagnostic program is stored. When the vehicle diagnostic program is executed by a processor, the above-mentioned vehicle diagnostic method is implemented.

[0020] According to the computer-readable storage medium of the embodiment of the present invention, by executing the above-mentioned vehicle diagnostic method, it is possible to standardize and platformize the diagnostic equipment and vehicle diagnostic information by formulating and parsing the ODX database, improve the efficiency and quality of data exchange, ensure the integrity and reliability of diagnostic data, realize the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the life cycle of the vehicle, and improve the coverage and compatibility of diagnostic scenarios; by combining the message format and diagnostic address partitioning with the separately defined diagnostic routing table for each domain, it is possible to realize multi-protocol conversion and routing of vehicle diagnosis, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of a vehicle diagnosis method according to an embodiment of the present invention;

[0023] Figure 2 is a flow chart of a vehicle diagnosis method according to an embodiment of the present invention;

[0024] Figure 3 FIG. 4 is a block diagram of a vehicle diagnostic system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0026] The vehicle diagnostic method, vehicle diagnostic system, and computer-readable storage medium proposed in the embodiments of the present invention are described below with reference to the accompanying drawings.

[0027] Figure 1 FIG. 4 is a flow chart of a vehicle diagnosis method according to an embodiment of the present invention.

[0028] like Figure 1 As shown, the vehicle diagnosis method of the embodiment of the present invention may include the following steps:

[0029] S1, receiving an ECU diagnostic request sent by an external device based on ECU diagnostic information, wherein the ECU diagnostic information is determined by the ECU diagnostic layer specification file, vehicle information file, ECU interface file and diagnostic scenario in the vehicle PDX data packet.

[0030] In one example, the corresponding relationship among the diagnostic scenario, the device diagnostic protocol, the ECU diagnostic protocol and the ECU interface file is shown in Table 1.

[0031] Table 1

[0032]

[0033] Among them, canfd-canfd: represents the interface from CAN FD (Controller Area Network with FlexibleData-Rate) to CAN FD, that is, the communication interface between two nodes supporting the CAN FD protocol. CAN FD is an enhanced version of the CAN bus, providing higher data transmission rates and larger data packet sizes.

[0034] canfd-doip: represents the CAN FD to DOIP (Dedicated Interface for CAN over IP) interface. DOIP is a protocol that allows the transmission of CAN or CAN FD data over an IP network, typically used for vehicle diagnostics or communication with other devices that do not support CAN.

[0035] doip-canfd: represents the DOIP to CAN FD interface, that is, the communication interface that receives data from the IP network and converts it into CANFD data.

[0036] doip-doip: represents the DOIP-to-DOIP interface, that is, the interface between two nodes that communicate using the DOIP protocol over an IP network.

[0037] S2, controls the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forwards the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table.

[0038] S3, control the domain controllers in other domains to send the ECU diagnostic request to the downstream ECU in the domain according to the corresponding diagnostic routing table, so that the downstream ECU in the domain can reply with a diagnostic response.

[0039] S4, controlling other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forwarding the diagnostic response to the central controller according to the corresponding diagnostic routing table.

[0040] S5, controlling the central controller to route the received diagnostic response message formats of each domain controller to the diagnostic path of the vehicle diagnostic system connected to the diagnostic device, so that the diagnostic device receives and parses the diagnostic response according to the corresponding ECU interface file in the ECU interface file.

[0041] Specifically, when the diagnostic device diagnoses the vehicle, it obtains the vehicle PDX data packet and the ECU interface files (interface) defined by all ECUs, parses the node information at all levels in the ECU diagnostic layer specification (odx-d) file and the vehicle information (odx-v) file, obtains the diagnostic information defined in the node, and calls the ECU interface file corresponding to the PDX data packet in the corresponding diagnostic application scenario. At the same time, according to the ECU diagnostic information obtained from the PDX data, it sends a diagnostic request to the corresponding ECU on the vehicle side. After receiving the diagnostic request, the central controller performs protocol conversion and routing classification according to the message format and diagnostic address (CAN / CANFD or DOIP) interval, and then performs protocol conversion or routes to other domain controllers or target ECUs under the central domain according to the diagnostic address and diagnostic path defined in the central domain diagnostic routing table. After receiving the diagnostic message from the central domain, the domain controllers of other domains (such as ADS) route to the ECUs under the domain according to the diagnostic routing table of their domain controllers. After receiving the diagnostic message from the corresponding domain controller, the ECUs under the domain reply with a diagnostic response in the supported diagnostic protocol format and send it to the corresponding domain controller. After receiving the diagnostic response message from the ECU, the other domain controllers perform protocol conversion and routing classification according to the message format and diagnostic address (CAN / CANFD or DOIP) interval, and then perform protocol conversion or route to the central controller according to the diagnostic address and diagnostic path defined in its diagnostic routing table. After receiving the diagnostic response from each domain controller, the central controller routes the message to the diagnostic path of the vehicle diagnostic system connected to the diagnostic device according to the message format of the diagnostic response received from each domain controller, the CAN / CANFD message is routed to the diagnostic CAN / CANFD connected to the OBD, and the DOIP message is routed to the DOIP path connected to the OBD. After receiving the diagnostic response from the central controller, the diagnostic device calls the corresponding ECU interface according to the ECU interface file in step S1 to receive and parse the diagnostic response message.

[0042] Therefore, the vehicle diagnostic method of the present invention, by using and parsing the ODX diagnostic database, combined with the ECU interface file, realizes the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the life cycle of the vehicle; at the same time, through the message format and diagnostic address partitioning combined with the separate definition of diagnostic routing tables for each domain, the change rules of the diagnostic address during the conversion protocol are defined, thereby realizing multi-protocol conversion and routing of vehicle diagnosis.

[0043] According to one embodiment of the present invention, ECU diagnostic information includes: vehicle diagnostic system OBD pin definition and diagnostic access path of ECU interface file, and determining OBD pin definition and diagnostic access path of ECU interface file according to vehicle information file in whole vehicle PDX data packet, including: extracting index file of whole vehicle PDX data packet, and determining vehicle information file according to index file; obtaining specification and definition file of whole vehicle diagnostic information according to vehicle information file; parsing specification and definition file of whole vehicle diagnostic information to obtain vehicle topology file; parsing vehicle topology file to obtain physical characteristics and connection definition file of vehicle connector, diagnostic protocol interface and connection relationship file of physical connection in vehicle, mapping relationship file of logical connection and ECU interface; obtaining mapping relationship between ECU interface file and diagnostic protocol interface according to mapping relationship file of logical connection and ECU interface; obtaining pin mapping relationship between diagnostic protocol interface and vehicle diagnostic system according to diagnostic protocol interface and connection relationship file of physical connection in vehicle; determining OBD pin definition according to physical characteristics and connection definition file of vehicle connector.

[0044] Specifically, first read the vehicle PDX data package, extract the index file (index.xml file) from the PDX data package, where the index file provides the organizational structure and access path of the ODX file. Use the content of the index file to locate and access the vehicle information file (odx-v file), then obtain the vehicle diagnostic information specification and definition file (Vehicle-info-spec file) from the vehicle information file, parse the vehicle diagnostic information specification and definition file, and parse the vehicle topology file (Vehicle-Topology file). Parsing the vehicle topology file can obtain the physical characteristics and connection definition file of the vehicle connector (Vehicle Connector file), the diagnostic protocol interface and connection relationship file of the physical connection in the vehicle (Physical Vehicle links file), and the mapping relationship file of the logical connection and ECU interface (Member logical links file). Then, by parsing the mapping relationship file of the logical connection and ECU interface, the mapping relationship between the ECU interface file and the diagnostic protocol interface can be obtained, including the interface definition of protocols such as CAN, CAN FD, and DOIP. By parsing the diagnostic protocol interface and connection relationship file of the physical connection in the vehicle, the pin mapping relationship between the diagnostic protocol interface and the vehicle diagnostic system can be obtained, which helps to understand the physical wiring and interface connection of the vehicle. By parsing the physical characteristics and connection definition file of the vehicle connector, the OBD pin definition can be obtained.

[0045] According to one embodiment of the present invention, ECU diagnostic information includes: parameter definitions related to ECU diagnostic services and diagnostic communications, and determining parameter definitions related to ECU diagnostic services and diagnostic communications according to the ECU diagnostic layer specification file, including: extracting the index file of the whole vehicle PDX data packet, and determining the ECU diagnostic layer specification file according to the index file; obtaining the ECU basic variant information file according to the ECU diagnostic layer specification file; parsing the ECU basic variant information file to obtain the ECU diagnostic communication parameter file, the ECU supported diagnostic service file, and the ECU diagnostic request format file; parsing the ECU diagnostic communication parameter file to obtain the corresponding ECU diagnostic address and communication parameter information; parsing the ECU supported diagnostic service file to obtain the corresponding ECU supported diagnostic service SID and DID; parsing the ECU diagnostic request format file to obtain the request and response format of the corresponding ECU supported diagnostic service.

[0046] Specifically, first read the vehicle PDX data package, extract the index file (index.xml file) from the PDX data package, then locate and read the ECU diagnostic layer specification file through the content of the index file, and then obtain the ECU basic variant information file (basevariant file) from the ECU diagnostic layer specification file. Parsing the ECU basic variant information file can obtain the ECU diagnostic communication parameter file (communication parameter file), the ECU supported diagnostic service file (diagcomms file), and the ECU diagnostic request format file. Parsing the ECU diagnostic communication parameter file can obtain the corresponding ECU diagnostic address and communication parameter information. If the ECU defines multiple interfaces, the ECU diagnostic communication parameter file will contain the diagnostic addresses and communication parameters of all these interfaces. Parsing the ECU supported diagnostic service file can obtain the corresponding ECU supported diagnostic service, including the service identifier SID and the diagnostic identifier DID. Parsing the ECU diagnostic request format file can obtain the request and response format of the corresponding ECU supported diagnostic service, among which the requests file defines the ECU diagnostic request format; the pos-response file defines the ECU's positive response format to the diagnostic request, and the neg-response node defines the ECU's negative response format to the diagnostic request. Therefore, by parsing the above files, the detailed request and response formats of the diagnostic services supported by the ECU can be obtained, which is crucial for developing diagnostic tools or understanding the diagnostic behavior of the ECU.

[0047] According to one embodiment of the present invention, the ECU interface file corresponding to the whole vehicle PDX data packet is called according to the diagnostic scenario, and an ECU diagnostic request is generated according to the vehicle diagnostic system OBD pin definition, the diagnostic access path of the ECU interface file, and the ECU diagnostic service and diagnostic communication related parameter definitions.

[0048] Specifically, the diagnostic device calls the corresponding ECU interface file from the PDX data packet according to the diagnostic scenario, and combines the vehicle diagnostic system OBD pin definition, the diagnostic access path of the ECU interface file, the ECU diagnostic service and the diagnostic communication related parameter definition obtained in the above embodiment to generate an ECU diagnostic request, wherein the ECU diagnostic request includes the initialization of the diagnostic session, the selection of ECU, the selection of service, the sending of data and the expected response, etc. The diagnostic device sends the generated diagnostic request to the OBD interface of the vehicle, and the OBD transmits the diagnostic request to the target ECU through the vehicle's communication network.

[0049] According to one embodiment of the present invention, the central controller is controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, including: when the message format of the ECU diagnostic request is a first message, determining the interval in which the source address corresponding to the first message is located; when the interval in which the source address is located is the first interval, performing protocol conversion on the first message, converting it into a second message, and changing the diagnostic request address of the second message to the source address of the first message, and routing it to the corresponding domain controller or the central domain ECU through the diagnostic path of the second message; when the interval in which the source address is located is the second interval, defining the diagnostic address and the diagnostic path according to the central domain diagnostic routing table, and routing it to the corresponding domain controller and the central domain ECU through the diagnostic path of the first message.

[0050] Further, according to an embodiment of the present invention, the central controller is controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, including: when the message format of the ECU diagnostic request is the second message, determining the diagnostic request address corresponding to the second message; when the interval where the diagnostic request address is located is the third interval, performing protocol conversion on the second message, converting it into a first message, and changing the source address of the first message to the diagnostic request address of the second message, and routing it to the corresponding domain controller or the central domain ECU through the diagnostic path of the first message; when the interval where the diagnostic request address is located is the fourth interval, defining the diagnostic address and diagnostic path according to the central domain diagnostic routing table, and routing it to the corresponding domain controller and the central domain ECU through the diagnostic path of the second message.

[0051] For example, the first message may be a DOIP message, the second message may be a CANFD message, and the DOIP logical address of each domain on the vehicle side and the CAN / CANFD diagnostic address allocation interval are as shown in Table 2.

[0052] Table 2

[0053] Protocol Type Central Domain Smart driving domain Body Domain Chassis domain Cockpit area Power Domain CAN / CANFD 700-72F 730-75F 760-78F 790-7AF 7B0-7D0 7E0-7FF CAN / CANFD 600-62F 630-65F 660-68F 690-6AF 6B0-6D0 6E0-6FF DOIP 1000-102F 1030-105F 1060-108F 1090-10AF 10B0-10DF 10E0-10EF

[0054] It should be understood that if an ECU supports both CAN and DOIP diagnostic protocols, the CAN / CANFD diagnostic address is allocated according to the interval defined in the second row of the table (600-6FF). For ECUs that only support CAN / CANFD protocols, the CAN / CANFD diagnostic address is allocated according to the interval defined in the first row (700-7FF). The doip logical address definition interval is (1000-10FF).

[0055] An example of the relationship between the diagnostic address defined in the ECU interface file and the assigned ECU diagnostic address is shown in Table 3.

[0056] Table 3

[0057]

[0058] Each domain on the vehicle side needs to define a diagnostic routing table. For example, the diagnostic routing table of the central domain (CCU) is shown in Table 4.

[0059] Table 4

[0060]

[0061] The intelligent driving domain (ADS) diagnostic routing table is shown in Table 5.

[0062] Table 5

[0063]

[0064]

[0065] It should be understood that the central domain diagnostic routing table contains all domain controller diagnostic addresses and the diagnostic addresses of the ECUs hanging in the domain, and each domain control routing table only contains the addresses of the ECUs hanging in the domain, and only integrates its own domain diagnostic address; the relationship between the CAN diagnostic request address and the response address is request address + 08 = response address; CAN function addressing is 7DF, DOIP function addressing is E400, and the doip device logical address is 0E80; 4. Each domain control routing table is only released to the corresponding domain controller for development; ECU supports CANFD / CAN protocol, and can distinguish XXX_CANFD1 as CANFD and XXX_CAN1 as CAN through the diagnostic path in the diagnostic routing table. The following explains the vehicle diagnostic method in conjunction with Tables 1 to 5.

[0066] Specifically, after receiving the diagnostic request, the central controller determines whether the received request message is a DOIP message or a CAN / CANFD message according to the message format. If the request message is a DOIP message (first message), the central controller determines the interval where the logical address source address SA is located. When the interval where the logical address source address SA is located is the first interval, that is, 600≤SA≤7FF, the central controller defines the diagnostic address and diagnostic path according to the central domain diagnostic routing table, converts the DOIP message protocol into a CANFD message (second message), and fills the CANFD message diagnostic request address Tx with the logical address source address SA, and then routes it to the corresponding domain controller or the central domain ECU through the diagnostic path of the CANFD message. When the interval where the logical address source address SA is located is the second interval, that is, SA≥0x0800, the central controller defines the diagnostic address and diagnostic path according to the central domain diagnostic routing table, and directly routes it to the corresponding domain controller and the central domain ECU through the diagnostic path of the DOIP message.

[0067] Further, if the message format of the diagnostic request is a CAN / CANFD message, the central controller determines the interval where the diagnostic request address Tx is located. When the interval where the diagnostic request address is located is the third interval, that is, 600≤Tx≤6FF or Tx=E400, the diagnostic address and diagnostic path are defined according to the central domain diagnostic routing table, and the central controller performs protocol conversion on the CAN / CANFD message, converts it into a DOIP message, and fills the source address SA of the DOIP message with the diagnostic request address Tx, and the target address TA is filled with the logical address LA of the corresponding node, and then routes the diagnostic path of the DOIP message to the corresponding domain controller and the central domain ECU. When the interval where the diagnostic request address is located is the fourth interval, that is, 700≤Tx≤7FF, the central controller defines the diagnostic address and diagnostic path according to the central domain diagnostic routing table, and directly routes it to the corresponding domain controller and the central domain ECU through the diagnostic path of the CANFD message.

[0068] Furthermore, after receiving the diagnostic message from the central domain, the domain controllers in other domains route it to the ECUs in the domain according to their domain controller diagnostic routing tables. After receiving the diagnostic message from the corresponding domain controller, the ECUs in each domain reply with a diagnostic response in the supported diagnostic protocol format and send it to the corresponding domain controller.

[0069] According to one embodiment of the present invention, other domain controllers are controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table, including: when the message format of the diagnostic response is a first message, determining the interval in which the source address corresponding to the first message is located; when the interval in which the source address is located is the first interval, performing protocol conversion on the first message to convert it into a second message, and modifying the diagnostic request address of the second message according to the diagnostic routing table corresponding to each domain controller, and routing to the central controller through the diagnostic path of the second message; when the interval in which the source address is located is the second interval, other domain controllers are routed to the central controller through the diagnostic path of the first message.

[0070] Further, according to an embodiment of the present invention, other domain domain controllers are controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table, including: when the message format of the diagnostic response is a second message, determining the diagnostic request address corresponding to the second message; when the interval where the diagnostic request address is located is a third interval, performing protocol conversion on the second message to convert it into a first message, and modifying the diagnostic request address of the first message according to the diagnostic routing table corresponding to each domain domain controller, and routing to the central controller through the diagnostic path of the first message; when the interval where the diagnostic request address is located is a fourth interval, other domain domain controllers are routed to the central controller through the diagnostic path of the second message.

[0071] Continue to use the example that the first message is a DOIP message and the second message is a CANFD message. After each domain controller receives the diagnostic message from the downstream ECU, it determines whether the message format of the received diagnostic response is a DOIP message or a CAN / CANFD message based on the message format. If the message format of the diagnostic response is a DOIP message, the domain controller determines the interval where the logical address target address TA is located. When the interval where the logical address target address TA is located is the first interval, that is, 600≤TA≤7FF, the domain controller defines the diagnostic address according to its domain controller diagnostic routing table. The domain controller converts the DOIP message protocol into a CANFD message, fills the CANFD message diagnostic response address Rx with TA+08, and then routes the CANFD message to the central controller. When the interval where the logical address target address TA is located is the second interval, that is, SA≥0x0800, the corresponding domain controller directly routes to the central domain controller through its DOIP path.

[0072] Furthermore, if the message format of the diagnostic response is a CAN / CANFD message, the domain controller determines the interval where the diagnostic response address Rx is located. When the interval where the diagnostic response address Rx is located is the third interval, that is, 600≤Rx≤6FF, the domain controller defines the diagnostic address according to its domain controller diagnostic routing table, and the domain controller converts the CAN / CANFD message protocol into a DOIP message, fills the target address TA of the DOIP message with Rx-08, fills the source address SA with the logical address LA of the responding ECU, and then routes the diagnostic path of the DOIP message to the central controller. When the interval where the diagnostic response address Rx is located is the fourth interval, that is, 700≤Rx≤7FF, the corresponding domain controller directly routes to the central domain controller through the diagnostic path of its CANFD message.

[0073] Furthermore, after receiving the diagnostic response, the central controller routes the CAN / CANFD message to the diagnostic CAN / CANFD of the OBD connection and routes the DOIP message to the DOIP path of the OBD connection. After receiving the diagnostic response from the CCU, the diagnostic device calls the corresponding ECU interface according to the ECU interface file to receive and parse the response message.

[0074] As a specific example, Figure 2 As shown, the vehicle diagnosis method of the embodiment of the present invention may include the following steps:

[0075] Step S101, obtaining the vehicle PDX data package and the ECU interface files defined by all ECUs.

[0076] Step S102, obtaining the odx-v file in the PDX data packet, parsing to obtain the OBD pin definition and the ECU interface diagnostic access path.

[0077] Step S103, obtaining the odx-d file in the PDX data packet, parsing to obtain the parameter definition related to the ECU diagnostic service and diagnostic communication.

[0078] Step S104, according to the ECU interface file information, in the corresponding application scenario, call the ECU interface corresponding to the PDX data packet, and at the same time send an ECU diagnostic request to the central controller according to the ECU diagnostic information.

[0079] Step S105 , after receiving the diagnosis request, the central controller determines whether the message format of the received diagnosis request is a DOIP message or a CAN / CANFD message according to the message format.

[0080] Step S106: the message format of the diagnosis request is a DOIP message, and the central controller determines the interval where the logical address source address SA is located.

[0081] Step S107, 600≤SA≤7FF, the central controller defines the diagnostic address and diagnostic path according to the central domain diagnostic routing table, converts the DOIP message protocol into a CANFD message, and fills the CANFD message diagnostic request address Tx with the logical address source address SA, and then routes it to the corresponding domain controller or the central domain ECU through the diagnostic path of the CANFD message.

[0082] Step S108, SA≥0x0800, the central controller directly routes to the corresponding domain controller and the ECU under the central domain through the diagnostic path of the DOIP message.

[0083] Step S109: the message format of the diagnosis request is a CAN / CANFD message, and the central controller determines the interval where the diagnosis request address Tx is located.

[0084] Step S110, 600≤Tx≤6FF or Tx=E400, the central controller performs protocol conversion on the CAN / CANFD message and converts it into a DOIP message, and fills the source address SA of the DOIP message with the diagnostic request address Tx, and the target address TA with the logical address LA of the corresponding node, and then routes the diagnostic path of the DOIP message to the corresponding domain controller and the ECU under the central domain.

[0085] Step S111, 700≤Tx≤7FF, the central controller directly routes the CANFD message to the corresponding domain controller and the ECU under the central domain through the diagnostic path.

[0086] Step S112, after receiving the diagnostic message from the central domain, the domain controllers of other domains route it to the ECUs in the domain according to the diagnostic routing table of their domain controllers.

[0087] Step S113, after receiving the diagnostic message from the corresponding domain controller, the ECU in each domain replies with a diagnostic response in the supported diagnostic protocol format and sends it to the corresponding domain controller.

[0088] Step S114: After receiving the diagnostic message from the downstream ECU, each domain controller determines whether the received response message is a DOIP message or a CAN / CANFD message according to the message format.

[0089] Step S115, the message format of the diagnosis response is a DOIP message, and the domain controller determines the interval where the logical address target address TA is located.

[0090] Step S116, 600TA≤7FF, the domain controller defines the diagnostic address according to its domain controller diagnostic routing table, the domain controller converts the DOIP message protocol into a CANFD message, fills the CANFD message diagnostic response address Rx with TA+08, and then routes the CANFD message to the central controller.

[0091] Step S117, TA≥0x0800, the corresponding domain controller is directly routed to the central domain controller through its DOIP path.

[0092] Step S118, the message format of the diagnostic response is a CAN / CANFD message, and the domain controller determines the interval in which the diagnostic response address Rx is located.

[0093] Step S119, 600≤Rx≤6FF, the domain controller defines the diagnostic address according to its domain controller diagnostic routing table, converts the CAN / CANFD message protocol into a DOIP message, fills the target address TA of the DOIP message with Rx-08, fills the source address SA with the logical address LA of the responding ECU, and then routes the diagnostic path of the DOIP message to the central controller.

[0094] Step S120, 700≤Rx≤7FF, the corresponding domain controller is directly routed to the central domain controller through the diagnostic path of its CANFD message.

[0095] Step S121, after receiving the diagnostic response, the central controller routes the CAN / CANFD message to the diagnostic CAN / CANFD of the OBD connection, and routes the DOIP message to the DOIP path of the OBD connection.

[0096] Step S122, after receiving the diagnostic response from the CCU, the diagnostic device calls the corresponding ECU interface according to the ECU interface file to receive and parse the response message.

[0097] In summary, according to the vehicle diagnostic method of an embodiment of the present invention, first, an ECU diagnostic request sent by an external device according to ECU diagnostic information is received, and then the central controller is controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and the ECU diagnostic request is forwarded to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table; then other domain controllers are controlled to send the ECU diagnostic request to the ECUs hanging in the domain according to the corresponding diagnostic routing table, so that the ECUs hanging in the domain reply with a diagnostic response; and other domain controllers are controlled to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table; finally, the central controller is controlled to route the diagnostic responses received from each domain controller to the diagnostic path of the vehicle diagnostic system connected to the diagnostic device according to the message format of the diagnostic response, so that the diagnostic device receives and parses the diagnostic response according to the corresponding ECU interface file in the ECU interface file. Therefore, by formulating and parsing the ODX database, the method standardizes and platforms the diagnostic equipment and vehicle diagnostic information, improves the efficiency and quality of data exchange, ensures the integrity and reliability of diagnostic data, realizes the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the vehicle life cycle, and improves the coverage and compatibility of diagnostic scenarios; by combining the message format and diagnostic address partitioning with the separate definition of diagnostic routing tables for each domain, it can realize multi-protocol conversion and routing for vehicle diagnosis, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0098] Corresponding to the above embodiment, the present invention also proposes a vehicle diagnostic system.

[0099] Figure 3 FIG. 4 is a block diagram of a vehicle diagnostic system according to an embodiment of the present invention.

[0100] like Figure 3 As shown, the vehicle diagnostic system 100 according to the embodiment of the present invention may include: a receiving module 110 and a control module 120 .

[0101] Among them, the receiving module 110 is used to receive the ECU diagnostic request sent by the external device according to the ECU diagnostic information, wherein the ECU diagnostic information is determined by the ECU diagnostic layer specification file, vehicle information file, ECU interface file and diagnostic scenario in the vehicle PDX data packet. The control module 120 is used to control the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table. The control module 120 is also used to control other domain controllers to send ECU diagnostic requests to the ECU hanging in the domain according to the corresponding diagnostic routing table, so that the ECU hanging in the domain replies with a diagnostic response. The control module 120 is also used to control other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table. The control module 120 is also used to control the central controller to route the diagnostic response of each domain controller received to the diagnostic path of the vehicle diagnostic system to connect the diagnostic device, so that the diagnostic device receives and parses the diagnostic response according to the corresponding ECU interface file in the ECU interface file.

[0102] According to one embodiment of the present invention, the ECU diagnostic information includes: the OBD pin definition of the vehicle diagnostic system and the diagnostic access path of the ECU interface file. The control module 120 determines the OBD pin definition and the diagnostic access path of the ECU interface file according to the vehicle information file in the PDX data packet of the whole vehicle, and is specifically used to extract the index file of the PDX data packet of the whole vehicle, and determine the vehicle information file according to the index file; obtain the specification and definition file of the whole vehicle diagnostic information according to the vehicle information file; parse the specification and definition file of the whole vehicle diagnostic information to obtain the vehicle topology structure file; parse the vehicle topology structure file to obtain the physical characteristics and connection definition file of the vehicle connector, the diagnostic protocol interface and connection relationship file of the physical connection in the vehicle, and the mapping relationship file of the logical connection and the ECU interface; obtain the mapping relationship between the ECU interface file and the diagnostic protocol interface according to the mapping relationship file of the logical connection and the ECU interface; obtain the pin mapping relationship between the diagnostic protocol interface and the vehicle diagnostic system according to the diagnostic protocol interface and the connection relationship file of the physical connection in the vehicle; determine the OBD pin definition according to the physical characteristics of the vehicle connector and the connection definition file.

[0103] According to one embodiment of the present invention, the ECU diagnostic information includes: parameter definitions related to ECU diagnostic services and diagnostic communications. The control module 120 determines the parameter definitions related to ECU diagnostic services and diagnostic communications according to the ECU diagnostic layer specification file, and is specifically used to extract the index file of the whole vehicle PDX data packet, and determine the ECU diagnostic layer specification file according to the index file; obtain the ECU basic variant information file according to the ECU diagnostic layer specification file; parse the ECU basic variant information file to obtain the ECU diagnostic communication parameter file, the ECU supported diagnostic service file, and the ECU diagnostic request format file; parse the ECU diagnostic communication parameter file to obtain the corresponding ECU diagnostic address and communication parameter information; parse the ECU supported diagnostic service file to obtain the corresponding ECU supported diagnostic service SID and DID; parse the ECU diagnostic request format file to obtain the request and response format of the corresponding ECU supported diagnostic service.

[0104] According to one embodiment of the present invention, the control module 120 calls the ECU interface file corresponding to the vehicle PDX data packet according to the diagnostic scenario, and generates an ECU diagnostic request according to the vehicle diagnostic system OBD pin definition, the diagnostic access path of the ECU interface file, and the ECU diagnostic service and diagnostic communication related parameter definitions.

[0105] According to one embodiment of the present invention, the control module 120 controls the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forwards the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table. Specifically, when the message format of the ECU diagnostic request is a first message, determine the interval in which the source address corresponding to the first message is located; when the interval in which the source address is located is the first interval, perform protocol conversion on the first message, convert it into a second message, and change the diagnostic request address of the second message to the source address of the first message, and route it to the corresponding domain controller or the central domain ECU through the diagnostic path of the second message; when the interval in which the source address is located is the second interval, define the diagnostic address and diagnostic path according to the central domain diagnostic routing table, and route it to the corresponding domain controller and the central domain ECU through the diagnostic path of the first message.

[0106] According to one embodiment of the present invention, the control module 120 controls the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forwards the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, specifically for, when the message format of the ECU diagnostic request is the second message, determining the diagnostic request address corresponding to the second message; when the interval where the diagnostic request address is located is the third interval, performing protocol conversion on the second message, converting it into the first message, and changing the source address of the first message to the diagnostic request address of the second message, and routing it to the corresponding domain controller or the central domain ECU through the diagnostic path of the first message; when the interval where the diagnostic request address is located is the fourth interval, defining the diagnostic address and the diagnostic path according to the central domain diagnostic routing table, and routing it to the corresponding domain controller and the central domain ECU through the diagnostic path of the second message.

[0107] According to one embodiment of the present invention, the control module 120 controls other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table, specifically for, when the message format of the diagnostic response is a first message, determining the interval in which the source address corresponding to the first message is located; when the interval in which the source address is located is the first interval, performing protocol conversion on the first message, converting it into a second message, and modifying the diagnostic request address of the second message according to the diagnostic routing table corresponding to each domain controller, and routing it to the central controller through the diagnostic path of the second message; when the interval in which the source address is located is the second interval, other domain controllers are routed to the central controller through the diagnostic path of the first message.

[0108] According to one embodiment of the present invention, the control module 120 controls other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table, specifically for, when the message format of the diagnostic response is the second message, determining the diagnostic request address corresponding to the second message; when the interval where the diagnostic request address is located is the third interval, performing protocol conversion on the second message, converting it into a first message, and modifying the diagnostic request address of the first message according to the diagnostic routing table corresponding to each domain controller, and routing it to the central controller through the diagnostic path of the first message; when the interval where the diagnostic request address is located is the fourth interval, other domain controllers are routed to the central controller through the diagnostic path of the second message.

[0109] It should be noted that for details not disclosed in the vehicle diagnostic system of the embodiment of the present invention, please refer to the details disclosed in the vehicle diagnostic method of the embodiment of the present invention, and the details will not be repeated here.

[0110] According to the vehicle diagnostic system of an embodiment of the present invention, a receiving module receives an ECU diagnostic request sent by an external device according to ECU diagnostic information; a control module controls the central controller to perform protocol conversion and routing classification according to a message format and a diagnostic address of the ECU diagnostic request, and forwards the ECU diagnostic request to a corresponding domain controller or a central domain ECU according to a central domain diagnostic routing table; a control module controls other domain controllers to send the ECU diagnostic request to the ECUs hanging in the domain according to a corresponding diagnostic routing table, so that the ECUs hanging in the domain reply with a diagnostic response; a control module controls other domain controllers to perform protocol conversion and routing classification according to a message format and a diagnostic address of a diagnostic response, and forwards the diagnostic response to the central controller according to a corresponding diagnostic routing table; a control module controls the central controller to route the received diagnostic responses from each domain controller to a diagnostic path of a vehicle diagnostic system connected to a diagnostic device, so that the diagnostic device receives and parses the diagnostic response according to a corresponding ECU interface file in the ECU interface file. Therefore, by formulating and parsing the ODX database, the system standardizes and platformizes the diagnostic equipment and vehicle diagnostic information, improves the efficiency and quality of data exchange, ensures the integrity and reliability of diagnostic data, realizes the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the vehicle life cycle, and improves the coverage and compatibility of diagnostic scenarios; through the combination of message format and diagnostic address partitioning with separately defined diagnostic routing tables for each domain, it can realize multi-protocol conversion and routing for vehicle diagnosis, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0111] Corresponding to the above embodiment, the present invention also proposes a computer-readable storage medium.

[0112] The computer-readable storage medium of the embodiment of the present invention stores a vehicle diagnostic program thereon, and the vehicle diagnostic program implements the above-mentioned vehicle diagnostic method when executed by a processor.

[0113] According to the computer-readable storage medium of the embodiment of the present invention, by executing the above-mentioned vehicle diagnostic method, it is possible to standardize and platformize the diagnostic equipment and vehicle diagnostic information by formulating and parsing the ODX database, improve the efficiency and quality of data exchange, ensure the integrity and reliability of diagnostic data, realize the diagnostic data interaction of multi-protocol diagnostic application scenarios throughout the life cycle of the vehicle, and improve the coverage and compatibility of diagnostic scenarios; by combining the message format and diagnostic address partitioning with the separately defined diagnostic routing table for each domain, it is possible to realize multi-protocol conversion and routing of vehicle diagnosis, improve the platformization of diagnostic design of ECU products, reduce ECU software changes, and increase the confidentiality and reliability of diagnostic information.

[0114] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0115] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0116] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0117] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0118] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0119] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A vehicle diagnostic method, It is characterized in that The method comprises: Receiving an ECU diagnostic request sent by an external device based on ECU diagnostic information, wherein the ECU diagnostic information is determined by an ECU diagnostic layer specification file, a vehicle information file, an ECU interface file, and a diagnostic scenario in a vehicle PDX data packet; Control the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table; Control other domain controllers to send the ECU diagnostic request to the ECU hanging in the domain according to the corresponding diagnostic routing table, so that the ECU hanging in the domain replies with a diagnostic response; Control the other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table; Control the central controller to route the received diagnostic response message format of each domain controller to the diagnostic path of the vehicle diagnostic system connected to the diagnostic device, so that the diagnostic device receives and parses the diagnostic response according to the corresponding ECU interface file in the ECU interface file.

2. The vehicle diagnostic method according to claim 1, It is characterized in that The ECU diagnostic information includes: vehicle diagnostic system OBD pin definition and the diagnostic access path of the ECU interface file, and the OBD pin definition and the diagnostic access path of the ECU interface file are determined according to the vehicle information file in the vehicle PDX data packet, including: Extracting the index file of the whole vehicle PDX data package, and determining the vehicle information file according to the index file; Obtaining the specification and definition file of the whole vehicle diagnostic information according to the vehicle information file; Parsing the specification and definition files of the vehicle diagnostic information to obtain a vehicle topology file; Parsing the vehicle topology file to obtain the physical characteristics and connection definition file of the vehicle connector, the diagnostic protocol interface and connection relationship file of the physical connection in the vehicle, and the mapping relationship file of the logical connection and ECU interface; Acquire a mapping relationship between the ECU interface file and the diagnostic protocol interface according to the mapping relationship file of the logical connection and the ECU interface; Acquire a pin mapping relationship between a diagnostic protocol interface and the vehicle diagnostic system according to a diagnostic protocol interface physically connected in the vehicle and a connection relationship file; The OBD pin definition is determined according to the physical characteristics of the vehicle connector and a connection definition file.

3. The vehicle diagnostic method according to claim 2, It is characterized in that The ECU diagnostic information includes: ECU diagnostic service and diagnostic communication related parameter definitions, and the ECU diagnostic service and diagnostic communication related parameter definitions are determined according to the ECU diagnostic layer specification file, including: Extracting the index file of the vehicle PDX data package, and determining the ECU diagnostic layer specification file according to the index file; Acquire an ECU basic variant information file according to the ECU diagnostic layer specification file; Parsing the ECU basic variant information file to obtain an ECU diagnostic communication parameter file, an ECU supported diagnostic service file, and an ECU diagnostic request format file; Parsing the ECU diagnostic communication parameter file to obtain corresponding ECU diagnostic address and communication parameter information; Parsing the diagnostic service file supported by the ECU to obtain the corresponding ECU supported diagnostic service SID and DID; The ECU diagnostic request format file is parsed to obtain the request and response format of the corresponding ECU supporting diagnostic services.

4. The vehicle diagnosis method according to claim 3, It is characterized in that The ECU interface file corresponding to the vehicle PDX data packet is called according to the diagnostic scenario, and the ECU diagnostic request is generated according to the OBD pin definition of the vehicle diagnostic system, the diagnostic access path of the ECU interface file, the ECU diagnostic service and the parameter definition related to the diagnostic communication.

5. The vehicle diagnostic method according to claim 1, It is characterized in that Control the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, including: When the message format of the ECU diagnostic request is a first message, determining the interval in which the source address corresponding to the first message is located; In the case where the interval in which the source address is located is the first interval, performing protocol conversion on the first message to convert it into a second message, changing the diagnostic request address of the second message to the source address of the first message, and routing the second message to the corresponding domain controller or the central domain hanging ECU through the diagnostic path; When the interval where the source address is located is the second interval, the diagnostic address and the diagnostic path are defined according to the central domain diagnostic routing table, and the first message is routed to the corresponding domain controller and the central domain ECU through the diagnostic path.

6. The vehicle diagnosis method according to claim 5, It is characterized in that Control the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table, including: When the message format of the ECU diagnostic request is a second message, determining a diagnostic request address corresponding to the second message; In the case where the interval in which the diagnostic request address is located is the third interval, performing protocol conversion on the second message to convert it into the first message, changing the source address of the first message to the diagnostic request address of the second message, and routing the first message to the corresponding domain controller or the central domain hanging ECU through the diagnostic path; When the interval where the diagnostic request address is located is the fourth interval, the diagnostic address and diagnostic path are defined according to the central domain diagnostic routing table, and the diagnostic path of the second message is routed to the corresponding domain controller and the central domain ECU.

7. The vehicle diagnosis method according to claim 6, It is characterized in that Controlling the other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forwarding the diagnostic response to the central controller according to the corresponding diagnostic routing table, including: When the message format of the diagnostic response is the first message, determining the interval in which the source address corresponding to the first message is located; In the case where the interval in which the source address is located is the first interval, performing protocol conversion on the first message to convert it into the second message, modifying the diagnostic request address of the second message according to the diagnostic routing table corresponding to each domain controller, and routing the second message to the central controller through the diagnostic path of the second message; When the interval where the source address is located is the second interval, the other domain controllers are routed to the central controller through the diagnostic path of the first message.

8. The vehicle diagnosis method according to claim 7, It is characterized in that Controlling the other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forwarding the diagnostic response to the central controller according to the corresponding diagnostic routing table, including: When the message format of the diagnostic response is the second message, determining a diagnostic request address corresponding to the second message; In the case where the interval in which the diagnostic request address is located is the third interval, performing protocol conversion on the second message to convert it into the first message, modifying the diagnostic request address of the first message according to the diagnostic routing table corresponding to each domain controller, and routing the first message to the central controller through the diagnostic path of the first message; When the interval where the diagnosis request address is located is the fourth interval, the other domain controller is routed to the central controller through the diagnosis path of the second message.

9. A vehicle diagnostic system, It is characterized in that include: A receiving module, used for receiving an ECU diagnostic request sent by an external device according to ECU diagnostic information, wherein the ECU diagnostic information is determined by an ECU diagnostic layer specification file, a vehicle information file, an ECU interface file and a diagnostic scenario in a vehicle PDX data packet; A control module, used to control the central controller to perform protocol conversion and routing classification according to the message format and diagnostic address of the ECU diagnostic request, and forward the ECU diagnostic request to the corresponding domain controller or the central domain ECU according to the central domain diagnostic routing table; The control module is further used to control other domain controllers to send the ECU diagnostic request to the downstream ECU in the domain according to the corresponding diagnostic routing table, so that the downstream ECU in the domain replies with a diagnostic response; The control module is further used to control the other domain controllers to perform protocol conversion and routing classification according to the message format and diagnostic address of the diagnostic response, and forward the diagnostic response to the central controller according to the corresponding diagnostic routing table; The control module is also used to control the central controller to route the message format of the diagnostic response received from each domain controller to the diagnostic path of the vehicle diagnostic system connected to the diagnostic device, so that the diagnostic device can receive and parse the diagnostic response according to the corresponding ECU interface file in the ECU interface file.

10. A computer-readable storage medium, It is characterized in that A vehicle diagnostic program is stored thereon, and when the vehicle diagnostic program is executed by a processor, the vehicle diagnostic method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Vehicle diagnosis data processing method, electronic equipment and storage medium

    CN119356281A

  • Diagnostic method, device and system of vehicle controller, electronic equipment and vehicle

    CN119645002A