Diagnostic method, diagnostic apparatus, and diagnostic system for in-vehicle electronic control unit

By adopting hierarchical structure and CAN device identification information selection technology in the automotive diagnostic system, the problem of single function of the ECU host computer in the existing technology is solved, and compatibility and efficient diagnosis of CAN devices of various models and manufacturers are achieved, improving Improve application development efficiency.

CN118550267APending Publication Date: 2024-08-27BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310197885.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The ECU host computer in the existing automotive diagnostic system has a single function, resulting in low diagnostic efficiency and inability to effectively be compatible with CAN devices of various models and manufacturers.

Method used

Adopt a hierarchical structure from the link layer to the application layer, select the communication interface corresponding to the manufacturer through the identification information of the CAN device, and use network protocols for data transmission and analysis to implement a platform-based diagnostic system and improve development efficiency.

Benefits of technology

It achieves compatibility with CAN devices of various models and manufacturers, improves application development efficiency, reduces repeated development costs, and enhances the reusability and flexibility of the diagnostic platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550267A
    Figure CN118550267A
Patent Text Reader

Abstract

The invention discloses a diagnosis method, diagnosis equipment and diagnosis system of a vehicle-mounted electronic control unit, a diagnosis platform comprises a link layer, a transmission layer, a service layer, a client interface layer and an application program layer, and the diagnosis method comprises the following steps: communicating with the electronic control unit by utilizing the link layer; receiving and transmitting data of the electronic control unit after communication is established between the link layer and the electronic control unit by using the transmission layer; analyzing the electronic control unit data by using a service layer to obtain a plurality of requests; packaging the requests of the service layer by using the client interface layer to obtain any combination of a plurality of requests; and forming an application program layer by any combination of a plurality of requests provided by the client interface layer. According to the diagnosis method of the vehicle-mounted electronic control unit, the diagnosis platform is divided into the link layer, the transmission layer, the service layer, the client interface layer and the application program layer, each layer realizes a relatively independent function, and the software degree is improved by fully utilizing a network protocol through layering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile diagnosis, and in particular to a diagnosis method for an on-board electronic control unit, a diagnosis device for an on-board electronic control unit, and a diagnosis system for an on-board electronic control unit. Background Art

[0002] At present, the automobile diagnostic host computer is mainly used to realize the diagnostic function of the vehicle electronic control unit (ECU), for example, monitoring the occurrence of automobile faults, finding out the fault location and cause, giving fault prompts, and recording fault information. The automobile diagnostic system can usually include a host computer and a slave computer. The slave computer usually refers to various ECU units, and the host computer refers to the device that communicates with the slave computer. The automobile diagnostic system communicates with the slave computer through the host computer to exchange information, thereby realizing the detection of automobile faults. In the related technology, the ECU host computer has a single function, and the existing diagnostic method has low diagnostic efficiency. Summary of the invention

[0003] Embodiments of the present invention provide a method for diagnosing a vehicle-mounted electronic control unit, a device for diagnosing a vehicle-mounted electronic control unit, and a system for diagnosing a vehicle-mounted electronic control unit.

[0004] A diagnostic method for an on-vehicle electronic control unit according to an embodiment of the present invention is used for a diagnostic platform for an on-vehicle electronic control unit, wherein the diagnostic platform includes a link layer, a transport layer, a service layer, a client interface layer, and an application layer arranged in sequence from the bottom layer to the top layer;

[0005] The diagnostic method comprises:

[0006] Utilizing the link layer to establish a communication connection with a CAN device to communicate with the electronic control unit;

[0007] receiving and transmitting electronic control unit data after establishing communication with the electronic control unit at the link layer using the transport layer;

[0008] parsing the electronic control unit data using the service layer, and obtaining a plurality of requests according to the parsed electronic control unit data;

[0009] Encapsulating the request of the service layer by using the client interface layer to obtain any combination of multiple requests;

[0010] Any combination of a plurality of the requests provided by the client interface layer forms the application layer.

[0011] The above-mentioned diagnostic method for the vehicle electronic control unit divides the diagnostic platform of the vehicle electronic control unit into a link layer, a transport layer, a service layer, a client interface layer and an application layer, which are arranged in sequence from the bottom to the top. Each layer implements relatively independent functions, and each layer obtains data from the upper layer and processes it before passing it to the next layer. Through layering, the network protocol is fully utilized and the degree of softwareization is improved, which is conducive to forming a platform-based diagnostic system and improving development efficiency.

[0012] In some embodiments, the link layer is provided with a CAN communication interface, and the use of the link layer to establish a communication connection with a CAN device through the CAN communication interface to communicate with the electronic control unit includes:

[0013] Extracting identification information of the CAN device;

[0014] A CAN communication interface of a corresponding manufacturer is selected according to the identification information of the CAN device to establish a communication connection with the CAN device.

[0015] In some embodiments, selecting a CAN communication interface of a corresponding manufacturer to communicate with the CAN device according to the identification information of the CAN device includes:

[0016] According to the identification information of the CAN device, obtain and save the manufacturer information;

[0017] After calling the standard transceiver signal, the CAN communication interface of the corresponding manufacturer is selected and called according to the manufacturer information to send a signal from the CAN bus.

[0018] In some embodiments, the transport layer includes a network layer service and a data block transmission protocol, and the receiving and transmitting of electronic control unit data by the transport layer after the link layer establishes communication with the electronic control unit includes:

[0019] Utilizing the network layer service to configure communication service protocol parameters;

[0020] Utilize the transmission protocol to transmit and receive messages and report the results of transmitting and receiving messages.

[0021] In some embodiments, the diagnostic method includes: decoupling the transport layer, the link layer, and the service layer.

[0022] In certain embodiments, the diagnostic method comprises:

[0023] Using the service layer to process the parsed electronic control unit data and obtain the processing result;

[0024] The processing result is displayed on the application layer.

[0025] In some implementations, the application layer includes at least a burning application and a fault recording application.

[0026] The diagnostic device for a vehicle-mounted electronic control unit according to an embodiment of the present invention comprises a diagnostic platform for a vehicle-mounted electronic control unit, and the diagnostic platform is used to implement the diagnostic method of any of the above embodiments.

[0027] A diagnostic system for an on-vehicle electronic control unit according to an embodiment of the present invention comprises the diagnostic device for the on-vehicle electronic control unit according to the above embodiment, a vehicle and a CAN device, wherein the diagnostic device is communicatively connected with the vehicle via the CAN device.

[0028] The diagnostic equipment and diagnostic system of the above-mentioned vehicle-mounted electronic control unit can be compatible with CAN devices of various models and manufacturers, realize diversified selection of CAN communication equipment, make full use of existing network protocol standards, solve the problem of single function of the diagnostic equipment of the vehicle-mounted high-voltage system electronic control unit, and improve the development efficiency of application programs.

[0029] 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

[0030] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0031] Figure 1 , Figures 4 to 7 is a flow chart of a diagnostic method for a vehicle-mounted electronic control unit according to an embodiment of the present invention;

[0032] Figure 2 is a schematic structural diagram of a diagnostic platform of an on-vehicle electronic control unit according to an embodiment of the present invention;

[0033] Figure 3 is another structural schematic diagram of a diagnostic platform of an on-vehicle electronic control unit according to an embodiment of the present invention;

[0034] Figure 8 It is a schematic diagram of the interface of the burning application software according to the embodiment of the present invention;

[0035] Fig. 9 It is a schematic diagram of the operation process of burning application software according to an embodiment of the present invention;

[0036] Fig.10 It is a schematic structural diagram of a diagnostic system for an on-vehicle electronic control unit according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present invention, and cannot be understood as limiting the embodiments of the present invention.

[0038] The disclosure below provides many different embodiments or examples for realizing different structures of embodiments of the present invention. In order to simplify the disclosure of embodiments of the present invention, the components and settings of specific examples are described below. Of course, they are merely examples, and the purpose is not to limit the present invention. Embodiments of the present invention may repeat reference numbers and / or reference letters in different examples, and such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, embodiments of the present invention provide examples of various specific processes and materials, but those of ordinary skill in the art may appreciate the application of other processes and / or the use of other materials.

[0039] See also Figures 1 to 3 A diagnostic method for a vehicle electronic control unit 10 provided in an embodiment of the present invention is used for a diagnostic platform 100 for a vehicle electronic control unit. The diagnostic platform 100 includes a link layer 12, a transport layer 14, a service layer 16, a client interface layer 18 and an application layer 20 arranged in sequence from the bottom layer to the top layer.

[0040] Diagnostic methods include:

[0041] Step S101: Utilizing the link layer 12 to establish a communication connection with a CAN (Controller Area Network) device 24 to communicate with the electronic control unit 10;

[0042] Step S103: using the transport layer 14 to establish communication with the electronic control unit 10 at the link layer 12 and receive and transmit the electronic control unit 10 data;

[0043] Step S105: parsing the electronic control unit data using the service layer 16, and obtaining multiple requests according to the parsed electronic control unit 10 data;

[0044] Step S107: Encapsulate the request of the service layer 16 using the client interface layer 18 to obtain any combination of multiple requests;

[0045] Step S108 : forming the application layer 20 by arbitrarily combining the multiple requests provided by the client interface layer 18 .

[0046] The diagnostic method of the above-mentioned vehicle-mounted electronic control unit 10 divides the diagnostic platform 100 of the vehicle-mounted electronic control unit into a link layer 12, a transport layer 14, a service layer 16, a client interface layer 18 and an application layer 20, which are arranged in sequence from the bottom layer to the top layer. Each layer implements a relatively independent function. Each layer obtains data from the upper layer, processes it and then passes it to the next layer. Through layering, the network protocol is fully utilized, the degree of softwareization is improved, which is conducive to forming a platform-based diagnostic system and improving development efficiency.

[0047] Specifically, the diagnostic platform 100 of the vehicle-mounted electronic control unit 10 includes a link layer 12, a transport layer 14, a service layer 16, a client interface layer 18, and an application layer 20, which are arranged in order from the bottom layer to the top layer. The communication between the diagnostic device 200 where the diagnostic platform 100 of the vehicle-mounted electronic control unit 10 is located and the electronic control unit 10 (Electronic Control Unit; ECU) is established through the link layer 12. After the communication is established at the link layer 12, the transport layer 14 can be used to receive and transmit data, the service layer 16 is used to parse the data received by the transport layer 14, the client interface layer 18 encapsulates the request of the service layer 16, and the application layer 20 is composed of the encapsulated requests. Through the request service provided by the client interface layer 18, the application can be quickly built.

[0048] In one embodiment, the service layer 16 can provide a unified diagnostic service according to the ISO-14229 standard. The ISO-14229 standard is also called UDS (Unified Diagnostic Service), which is a unified diagnostic service for the electronic control unit 10. UDS is a communication service of a client / server structure, in which the messages exchanged between the client and the server are represented by requests and responses. The client sends a request to the server, which includes a service number, optional sub-functions and some data. The server processes the request and answers with a response containing a service number echo, a response code and some additional data. The diagnostic device 200 and the electronic control unit 10 where the diagnostic platform 100 is located can act as a client and a server respectively. When the diagnostic device 200 where the diagnostic platform 100 is located issues a request, the electronic control unit 10 responds. At this time, the diagnostic device 200 acts as a client and the electronic control unit 10 acts as a server.

[0049] In some examples, some basic services of UDS request and response include: request current power diagnostic data (0x01), request vehicle 22 information (0x09), diagnostic session control (0x10), electronic control unit 10 reset (0x11), clear fault code (0x14), read fault code information (0x19), stop diagnostic session (0x20), read data by identifier (0x22), security access (0x27), communication control (0x28), write data by identifier (0x2E), control input and output by identifier (0x2F), routine control (0x31), request download (0x34), data transmission (0x36), request transmission exit (0x37), handshake (0x3E), control DTC setting (0x85) and other services and sub-functions of each service.

[0050] See also Figure 4 In some embodiments, the link layer sets a CAN communication interface, and step S101 includes:

[0051] Step S111: extracting identification information of the CAN device 24;

[0052] Step S113: Select a CAN communication interface of a corresponding manufacturer according to the identification information of the CAN device 24 to establish a communication connection with the CAN device 24 .

[0053] In this way, communication between the diagnostic device 200 and the electronic control unit 10 can be established.

[0054] For details, please refer to Figure 3 In one embodiment, the CAN device 24 may be SLCAN, ZLGCAN, NICAN, PCAN, or a CAN device 24 of another manufacturer. Correspondingly, the plurality of CAN communication interfaces may include SLCAN, ZLGCAN, NICAN, and PCAN communication interfaces. Establishing communication between the diagnostic device 200 and the electronic control unit 10 based on the DLL file of the CAN device 24 is conducive to improving the diversity of hardware selection.

[0055] In one example, Zhou Ligong CAN device 24 is used, and the diagnostic platform 100 of the vehicle electronic control unit 10 is based on a USBCAN-Ⅱ device that converts CAN communication and USB communication, and the device is used to realize the communication connection between the diagnostic device 200 and the electronic control unit 10 under test. The USBCAN-Ⅱ device is secondary developed using the zlgcan.dll dynamic link library file provided by the ZLG official website. The dynamic link library file provides basic initialization, connection, configuration driver and other APIs (Application Programming Interface) for hardware devices, provides various command protocols required for communication, and can establish communication between the diagnostic device 200 and the electronic control unit 10.

[0056] See also Figure 5 In some embodiments, step S113 includes:

[0057] Step S115: Obtain and save the manufacturer information according to the identification information of the CAN device 24;

[0058] Step S117: After calling the standard receiving and sending signal, select and call the CAN communication interface of the corresponding manufacturer according to the manufacturer information to send a signal from the CAN bus.

[0059] In this way, a variety of selections of the CAN devices 24 can be achieved.

[0060] Specifically, Figure 5 The flowchart shown is a flow chart of establishing communication between the diagnostic device 200 and the electronic control unit 10. After the CAN device 24 is connected to the diagnostic device 200, the diagnostic device 200 identifies the identification information of the device, and filters out the manufacturer information according to the identification information and saves it. After the diagnostic device 200 calls the standard transceiver signal, the corresponding CAN device 24 transceiver interface is selected according to the manufacturer information to send a signal from the CAN bus, so that the diagnostic device 200 can be compatible with CAN devices 24 of different manufacturers.

[0061] See also Figure 6 In some embodiments, the transport layer 14 includes a network layer service and a data block transport protocol, and step S103 includes:

[0062] Step S119: Utilizing network layer services to configure communication service protocol parameters;

[0063] Step S121: Use the transmission protocol to transmit and receive messages and report the results of transmitting and receiving messages.

[0064] In this way, data transmission can be performed between the diagnostic device 200 and the electronic control unit 10 .

[0065] Specifically, the transport layer 14 complies with the ISO-15765 diagnostic protocol on the CAN bus, including the network layer service and the data block transmission protocol. The network layer provides communication service protocol parameter configuration services, and the transmission protocol is used to transmit and receive messages and report the results of transmitting and receiving messages. When the transport layer 14 receives data from the electronic control unit 10, it processes the data and transmits it to the upper service layer 16; at the same time, when the transport layer 14 receives the information transmitted by the service layer 16, the transport layer 14 processes and transmits the information.

[0066] In some embodiments, the diagnostic method includes: decoupling the transport layer 14 , the link layer 12 , and the service layer 16 .

[0067] This facilitates the development, maintenance and expansion of the diagnostic platform 100 of the vehicle-mounted electronic control unit 10 .

[0068] Specifically, an interface-oriented programming method can be adopted to enable each layer to call the upper layer interface and make full use of the network protocol, so as to achieve maximum decoupling of the transport layer 14 from the link layer 12 and the service layer 16, reduce the dependence of the bottom layer on the upper layer, and thus facilitate the development, maintenance and expansion of the diagnostic platform 100 of the vehicle electronic control unit 10.

[0069] See also Figure 7 In certain embodiments, the diagnostic method comprises:

[0070] Step S123: using the service layer 16 to process the parsed electronic control unit 10 data and obtain the processing result;

[0071] Step S125: Display the processing result on the application layer 20.

[0072] In this way, data information from the electronic control unit 10 can be displayed on the application layer 20 .

[0073] Specifically, when the service layer 16 sends a request to the electronic control unit 10, the electronic control unit 10 processes the request and answers with a response containing a service number echo, a response code and some additional data. After receiving the response result, the service layer 16 processes it and finally displays the response result in the application layer 20. For example, when the diagnostic device 200 requests the execution of the diagnostic service, the return result from the electronic control unit 10 can have two results: the diagnostic request is executed successfully or the diagnostic request fails to execute, and the result is displayed in the application layer 20.

[0074] In some implementations, the application layer 20 includes at least a programming application and a fault recording application, so that applications with different functions can be quickly built.

[0075] Specifically, when building an application, the required service can be selected in the client interface layer 18 and the timing and other operations can be set to achieve an application with the corresponding service. Through the request service provided by the client interface layer 18, the application can be quickly built, the reusability of the diagnostic platform 100 is increased, the reinvention of the wheel is avoided, and the unit testing time is reduced.

[0076] For example, the main requests for burning applications include: switching sessions, security access, routine control, data transmission, transmission exit, and ECU reset. Figure 8 and Fig. 9 As shown, they are the interface and burning process of the burning application. In addition to burning the application, applications with other functions can also be customized according to actual needs, such as a fault recording application, whose function is to read the fault data stored in the controller. Furthermore, on the basis of the fault recording application, the functions of reading the vehicle 22VIN code, ECUbootloade and the software version number of each controller unit can be added, and these functions can be implemented through the client interface layer 18. Among them, ECUBootLoader is a program loading code residing in the non-volatile memory of the electronic control unit 10. Each time the electronic control unit 10 is reset, the bootloader will be run to check whether there is a remote program loading request from the communication bus.

[0077] To sum up, according to the diagnostic platform 100 of the vehicle electronic control unit 10 in the embodiment of the present invention, CAN devices 24 from multiple manufacturers can be selected according to actual needs, and new CAN devices 24 can be continuously expanded on this basis in the future. In this way, the underlying development platform can be shared, the repeated development of device function programs can be avoided, the compatibility can be improved, and the development cost can be reduced.

[0078] At the same time, since the development of the application is based on the client interface layer 18, the client interface layer 18 and the service layer 16 shield the differences between different CAN devices 24 from the application layer 20, so that the diagnostic platform 100 of the vehicle-mounted electronic control unit 10 only needs to be developed once, and it can be switched at will between CAN communication devices of different manufacturers. In addition, applications with different functions can be developed in a short time according to different needs, saving development time and testing time.

[0079] The diagnostic device 200 of the vehicle electronic control unit 10 according to the embodiment of the present invention comprises a diagnostic platform 100 of the vehicle electronic control unit. The diagnostic platform 100 is used to implement the diagnostic method of any of the above embodiments.

[0080] See also Fig.10A diagnostic system 300 of a vehicle-mounted electronic control unit 10 according to an embodiment of the present invention includes a diagnostic device 200 of the vehicle-mounted electronic control unit 10 according to the above embodiment, a vehicle 22 and a CAN device 24 , and the diagnostic device 200 is communicatively connected with the vehicle 22 via the CAN device 24 .

[0081] The diagnostic device 200 and diagnostic system 300 of the above-mentioned vehicle-mounted electronic control unit 10 can be compatible with CAN devices 24 of various models and manufacturers, realize diversified selection of CAN communication equipment, make full use of existing network protocol standards, solve the problem of single function of the diagnostic device 200 of the vehicle-mounted high-voltage system electronic control unit 10, and improve the development efficiency of application programs.

[0082] It should be noted that the above explanation of the implementation method and beneficial effects of the diagnostic platform 100 of the vehicle electronic control unit 10 is also applicable to the diagnostic device 200 of the vehicle electronic control unit 10 and the diagnostic system 300 of the vehicle electronic control unit 10 of the present embodiment, and will not be elaborated here to avoid redundancy.

[0083] It is understandable that the diagnostic device 200 of the vehicle-mounted electronic control unit 10 may be an electronic device with computing capabilities, such as a portable notebook computer, a desktop computer, a smart phone, or a tablet computer.

[0084] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples 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.

[0085] 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 diagnostic method for an on-vehicle electronic control unit, used for a diagnostic platform for an on-vehicle electronic control unit, characterized in that: The diagnostic platform includes a link layer, a transport layer, a service layer, a client interface layer and an application layer arranged in sequence from the bottom layer to the top layer; The diagnostic method comprises: Utilizing the link layer to establish a communication connection with a CAN device to communicate with the electronic control unit; receiving and transmitting electronic control unit data after establishing communication with the electronic control unit at the link layer using the transport layer; parsing the electronic control unit data using the service layer, and obtaining a plurality of requests according to the parsed electronic control unit data; Encapsulating the request of the service layer by using the client interface layer to obtain any combination of multiple requests; Any combination of a plurality of the requests provided by the client interface layer forms the application layer.

2. The diagnostic method according to claim 1, characterized in that The link layer is provided with a CAN communication interface, and the link layer is used to establish a communication connection with a CAN device to communicate with the electronic control unit, including: Extracting identification information of the CAN device; A CAN communication interface of a corresponding manufacturer is selected according to the identification information of the CAN device to establish a communication connection with the CAN device.

3. The diagnostic method according to claim 2, characterized in that The selecting a CAN communication interface of a corresponding manufacturer according to the identification information of the CAN device to communicate with the CAN device comprises: According to the identification information of the CAN device, obtain and save the manufacturer information; After calling the standard transceiver signal, the CAN communication interface of the corresponding manufacturer is selected and called according to the manufacturer information to send a signal from the CAN bus.

4. The diagnostic method according to claim 1, characterized in that: The transport layer includes a network layer service and a data block transmission protocol, and the receiving and transmitting of electronic control unit data by using the transport layer after the link layer establishes communication with the electronic control unit includes: Utilizing the network layer service to configure communication service protocol parameters; Utilize the transmission protocol to transmit and receive messages, and report the results of transmitting and receiving messages.

5. The diagnostic method according to claim 1, characterized in that: The diagnostic method includes: decoupling the transport layer, the link layer and the service layer.

6. The diagnostic method according to claim 1, characterized in that: The diagnostic method further comprises: Using the service layer to process the parsed electronic control unit data and obtain the processing result; The processing result is displayed on the application layer.

7. The diagnostic method according to claim 1, characterized in that: The application program layer at least includes a burning application program and a fault recording application program.

8. A diagnostic device for an on-vehicle electronic control unit, characterized in that: A diagnostic platform for a vehicle-mounted electronic control unit is included, and the diagnostic platform is used to implement the steps of the diagnostic method for a vehicle-mounted electronic control unit according to any one of claims 1 to 7.

9. A diagnostic system for an on-vehicle electronic control unit, characterized in that: The method comprises the diagnostic device according to claim 8, a vehicle and a CAN device, wherein the diagnostic device is communicatively connected with the vehicle via the CAN device.