Controller diagnostic device and method
By delaying the flow control signal transmission time and optimizing the data transmission process, the problem of long diagnosis time for multiple controllers in the vehicle production line is solved, parallel diagnosis of multiple controllers is achieved, and production efficiency is improved.
Patent Information
- Application Number
- CN201911134335.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-03
- Filing Date
- 2019-11-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In vehicle production lines, it takes a long time to check diagnostic trouble codes for multiple controllers installed on vehicles, resulting in low production efficiency.
By sending diagnostic fault code request signals to multiple controllers, delaying the transmission time of the flow control signal after receiving the response signal, and receiving DTC information from continuous frames provided by multiple controllers based on the response signal, using the protocol control information field to transmit the data length information, optimizing the data transfer process to reduce diagnostic time.
It realizes parallel diagnosis of multiple controllers, significantly shortens the diagnosis time of vehicle controllers, and improves the efficiency of the production line.
Smart Images

Figure CN112034811B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a controller diagnosis device and method, and more particularly, to a device and method capable of checking a diagnostic trouble code of a controller installed on a vehicle. Background Art
[0002] Vehicles are usually equipped with many controllers, such as electronic control units (ECUs). After the vehicle is manufactured, the controller's diagnostic trouble codes (DTCs) are checked to confirm whether the controller installed in the vehicle is installed correctly.
[0003] In a factory production line, a cycle time (CT: time required for one process in the case of repeated operations) increases according to the number of controllers, and therefore, a method of reducing CT is required. Summary of the invention
[0004] One aspect of the present disclosure provides an apparatus and method capable of shortening a diagnosis time of a vehicle controller by collectively checking diagnostic trouble codes of a plurality of controllers.
[0005] Additional aspects of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
[0006] According to one aspect of the present disclosure, a controller diagnosis method includes: sending a diagnostic trouble code (DTC) request signal to multiple controllers; receiving a first frame of the multiple controllers in response to the DTC request signal; delaying a transmission time of a flow control signal and sending the delayed flow control signal to the multiple controllers; and receiving DTC information through at least one continuous frame provided by the multiple controllers in response to the delayed flow control signal.
[0007] Delaying the transmission time of the flow control signal may further include delaying the transmission time by a first time, which may be a response time to the DTC request signal.
[0008] Delaying the transmission time of the flow control signal may further include: delaying the transmission time by a second time, and the second time may be a processing delay time of the gateway.
[0009] Delaying the transmission time of the flow control signal may further include: delaying the transmission time by a third time, and the third time may be a delay time for transmission of the DTC information of a controller having the lowest priority among the plurality of controllers.
[0010] Delaying the transmission time of the flow control signal may further include delaying the transmission time by a fourth time, and the fourth time may be a time when the DTC information of the plurality of controllers reaches the diagnosis device.
[0011] Data length information of the DTC information of the first frame may be included in a protocol control information (PCI) field.
[0012] According to another aspect of the present disclosure, a controller diagnostic device includes: multiple controllers; a gateway configured to transmit diagnostic trouble code (DTC) information received from the multiple controllers; and a diagnostic device configured to send a DTC request signal to the multiple controllers, receive a first frame of the multiple controllers in response to the DTC request signal, send a flow control signal to the multiple controllers, delay a transmission time of the flow control signal, and receive DTC information based on at least one continuous frame provided by the multiple controllers in response to the flow control signal.
[0013] The diagnostic device may be configured to delay the transmission time by a first time, the first time being a response time to the DTC request signal.
[0014] The diagnostic device may be configured to delay the transmission time by a second time, the second time being a processing delay time of the gateway.
[0015] The diagnosis device may be configured to delay the transmission time by a third time, the third time being a delay time for transmission of the DTC information of a controller having the lowest priority among the plurality of controllers.
[0016] The diagnosis device may be configured to delay the transmission time by a fourth time, the fourth time being the time when the DTC information of the plurality of controllers arrives at the diagnosis device.
[0017] Data length information of the DTC information of the first frame may be included in a protocol control information (PCI) field. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] These and / or other aspects of the present disclosure will become apparent and more easily understood through the following description of embodiments in conjunction with the accompanying drawings, in which:
[0019] Figure 1 is a view showing data transmission through a single frame according to an exemplary embodiment of the present disclosure;
[0020] Figure 2 is a view illustrating data transmission through consecutive frames according to an exemplary embodiment of the present disclosure;
[0021] Figure 3 is a view showing a frame structure of a controller area network transmission protocol (CAN TP) according to an exemplary embodiment of the present disclosure; and
[0022] Figure 4 is a flowchart of a controller diagnosis method according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] Throughout the specification, the same reference numerals represent the same elements. Not all elements of the embodiments of the present disclosure will be described, and the description of the content that is known in the art or overlaps with each other in the embodiments will be omitted. As used in the entire specification, the terms such as "~ parts", "~ modules", "~ members", "~ blocks" etc. can be implemented with software and / or hardware, and multiple "~ parts", "~ modules", "~ members" or "~ blocks" can be implemented in a single element, or a single "~ parts", "~ modules", "~ members" or "~ blocks" may include multiple elements.
[0024] It will also be understood that the term "connected" or its derivatives refer to both direct and indirect connections, and that an indirect connection includes a connection through a wireless communication network.
[0025] It will also be understood that when the terms “include” and / or “comprises” are used in this specification, they specify the presence of stated features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof, unless the context clearly indicates otherwise.
[0026] In addition, when it is described that a layer is "on" another layer or substrate, the layer may be directly on the other layer or substrate, or a third layer may be disposed therebetween.
[0027] Although terms “first,” “second,” “A,” “B,” etc. may be used to describe various components, these terms do not limit the corresponding components but are used merely for the purpose of distinguishing one component from another.
[0028] As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0029] As used herein, the terms "unit", "block", "component" or "module" refer to a unit that can perform at least one function or operation. For example, these terms may refer to at least one process performed by at least one hardware such as a field programmable gate array (FPGA) and an application specific integrated circuit (ASIC) or at least one software stored in a memory or a processor.
[0030] The reference numerals used for the method steps are only used to facilitate the description and are not used to limit the order of the steps. Therefore, unless the context clearly indicates otherwise, the described order can be implemented in other ways.
[0031] Hereinafter, the working principle and embodiments of the present disclosure will be described with reference to the accompanying drawings.
[0032] Figure 1is a view showing data transmission through a single frame according to an exemplary embodiment of the present disclosure, Figure 2 is a view illustrating data transmission through consecutive frames according to an exemplary embodiment of the present disclosure.
[0033] Before the vehicle is manufactured, multiple controllers installed on the vehicle are checked for diagnostic trouble codes (DTCs). To this end, the vehicle may perform controller area network (CAN) communication to exchange data with an external controller or an internal controller.
[0034] The unit of data that can be transmitted and received in CAN communication may be 8 bytes, and a CAN transmission protocol (TP) method may be used to transmit and receive data exceeding 8 bytes.
[0035] First, refer to Figure 1 , a case where data of less than 8 bytes is transmitted and / or received will be described. For example, the transmitter 100 may provide data of less than 8 bytes to the receiver 200 using a single frame. The transmitter 100 may be an electronic control unit (ECU) that provides a DTC, and the receiver 200 may be a diagnostic device that receives the provided DTC.
[0036] Next, we will refer to Figure 2 Describes the case where data exceeding 8 bytes is sent and / or received. When the receiver 200 receives data exceeding 8 bytes, the receiver 200 can receive the DTC through the CAN transport protocol (TP). Specifically, the CAN TP sends and receives data through a combination of a first frame (or a start frame), a flow control frame, and a continuation frame (or a subframe). The frame structure of the CAN TP is described in Figure 3 Here, a single frame can be understood as including an unsegmented message into a single CAN frame, a first frame can also be understood as the first frame of a segmented message, and a continuous frame can be understood as a frame after the first frame, and a flow control frame can be understood as being sent when the first frame is received.
[0037] The transmitter 100 sets the information about the total data length (FF_DL) to 8 bytes in the protocol control information (PCI) field through the first frame, and sends the information about the total data length to the receiver 200. The fields used can be divided into information for distinguishing messages and payload data. When the transmitter 100 sends the first frame through the PCI field, the receiver 200 receiving the information sends a flow control to the transmitter 100 to determine how much data to send at a time and at what interval. Thereafter, the transmitter 100 sends data through consecutive frames (e.g., the first frame and the second frame).
[0038] Figure 4is a flow chart of a controller diagnosis method according to an exemplary embodiment of the present disclosure. However, it should be understood that the present disclosure is not limited thereto, and some steps may be added or deleted as needed.
[0039] The diagnostic device 1000 may include at least one processor (not shown) that executes the process and at least one memory (not shown) that stores the relevant program. The memory and processor included in the diagnostic device 1000 may be integrated on a single chip or may be physically separated. The diagnostic device 1000 may be a micro control unit (MCU).
[0040] Before describing a controller diagnosis method according to an embodiment, a conventional method will be briefly described.
[0041] The method of checking the diagnostic trouble code has a physical addressing method of a conventional method in which all ECUs perform 1:1 communication and a functional addressing method in which 1:N communication is performed in parallel. In this case, the conventional method receives DTCs in sequence for all ECUs. As the number of ECUs increases, the total diagnostic time also increases. Therefore, in an embodiment, functional addressing for performing parallel processing is used. The disclosed embodiment can use 0x7DF as a CAN ID, which is a message format provided to the ECU.
[0042] Next, the operational subject of each step performed in the embodiment will be described.
[0043] The diagnosis device 1000 may be used as a data path with the gateway 2000, and the gateway 2000 manages a plurality of ECUs 3000. However, the method according to the embodiment mainly describes data exchange between the diagnosis device 1000, the gateway 2000, and the ECU 3000.
[0044] First, the diagnostic device 1000 requests a diagnostic trouble code (DTC) to read the DTC of a plurality of controllers (ECUs) (401). At this time, 0x7DF may be used as a CAN ID to be used.
[0045] In response to the DTC request of the diagnosis device 1000, the ECU 3000 provides the first frame which is information on the DTC to the diagnosis device 1000 through the gateway 2000 (402).
[0046] Then, when the first frame is received, the diagnostic device 1000 transmits a flow control signal to the plurality of ECUs 3000 (403). At this time, the number of flow control signals to be transmitted corresponds to the number of ECUs installed on the vehicle. The first frame may include data length information of the DTC information in a protocol control information (PCI) field.
[0047] For example, the flow control signal includes information about a block size (BS) and information about a minimum interval time (STmin). BS is information about how much data is sent at a time without flow control, and STmin is information about the minimum time interval between message transmissions belonging to a frame.
[0048] The transmission time of the first frame is different for each ECU 3000, and the diagnostic device 1000 transmits each flow control in consideration of the time points at which the arrival times are different from each other. At this time, a message loss phenomenon may occur. Even if only one message related to the flow control is lost, the ECU 3000 cannot transmit the DTC information through the remaining sub-frames, and the communication session for diagnosis is interrupted.
[0049] In order to solve the above problem, the diagnostic apparatus 1000 may delay the flow control signal by considering the following variables in step 403. This refers to the following equation 1.
[0050] [Equation 1]
[0051] P2 client =P2 server_max + ΔP2 (gateway delay + bus load delay due to arbitration + propagation delay).
[0052] The diagnostic device 1000 may delay the transmission time of the flow control signal by P2 client .
[0053] P2 server_max It is the response time of ECU 3000 when receiving a DTC request from diagnostic device 1000, and corresponds to the performance requirement of the ECU.
[0054] The gateway delay represents the inherent processing delay of the gateway 2000. The processing delay time includes the delay time of the gateway hardware, the CAN message processing time, and the delay time for routing processing between different domains.
[0055] “Bus delay depending on arbitration” is a bus load delay time according to priority, and indicates a delay time of a relatively low priority diagnostic message that may occur in CAN communication due to pushing of general messages in a high bus load environment.
[0056] Finally, propagation delay represents the time it takes for a message to reach a receiver from a transmitter via a communication protocol (eg, CAN, CAN-FD, Ethernet, etc.) In this embodiment, a DTC may be the time it takes to reach the diagnostic device 1000 from the ECU 3000 .
[0057] In other words, even if the diagnostic device 1000 receives the first frame from the ECU 3000, if it is waiting for P2 clientAfter that, a flow control signal is sent through functional addressing, and then all ECUs installed in the vehicle send a start frame. Therefore, the flow control signal entering the functional addressing can be processed.
[0058] Thereafter, all ECUs 3000 transmit the remaining DTCs, and in particular, ECU 3000 transmits the DTCs to diagnosis device 1000 through a plurality of continuous frames.
[0059] In an exemplary embodiment, the diagnostic device 1000 sends a diagnostic trouble code (DTC) request signal to a plurality of controllers, receives a first frame of the plurality of controllers in response to the DTC request signal, sends a flow control signal to the plurality of controllers, delays a transmission time point of the flow control signal, and receives DTC information through at least one continuous frame provided by the plurality of controllers in response to the flow control signal. The DTC information through the continuous frame is information sent in parallel by the plurality of controllers, and unlike the conventional method, the diagnosis time can be shortened.
[0060] According to the above-described embodiment, although it is difficult for the ECU in the vehicle to change the SW, the present technology can be used without error by only changing the diagnosis CAN TP structure used in the diagnosis process in the production line.
[0061] According to an aspect of the present disclosure, since diagnostic trouble codes of a plurality of controllers are collectively confirmed, the total diagnosis time may be shortened.
[0062] The disclosed embodiments may be implemented in the form of a recording medium storing instructions executable by a computer. The instructions may be stored in the form of program code, and when executed by a processor, a program module may be generated to perform the operations of the disclosed embodiments. The recording medium may be implemented as a computer-readable recording medium.
[0063] The computer-readable recording medium includes various recording media storing instructions decodable by a computer, such as read-only memory (ROM), random access memory (RAM), magnetic tapes, magnetic disks, flash memories, optical data storage devices, and the like.
[0064] Although exemplary embodiments have been shown and described above, it will be apparent to those skilled in the art that modifications and variations may be made without departing from the scope of the invention as defined by the appended claims.For example, the exemplary embodiments described above may be partially combined with each other.
Claims
1. A controller diagnosis method, include: sending a diagnostic trouble code request signal, i.e., a DTC request signal, to each of the plurality of controllers; receiving a first frame from the plurality of controllers in response to the DTC request signal; delaying a transmission time of a flow control signal and sending the delayed flow control signal to the plurality of controllers; as well as receiving DTC information via at least one consecutive frame provided by the plurality of controllers in response to the delayed flow control signal, Wherein, delaying the transmission time includes delaying the transmission time by the sum of the first time, the second time and the third time, The first time is a response time of each of the plurality of controllers to the DTC request signal, The second time is the processing delay time of the gateway, and The third time is a delay time for transmission of DTC information of a controller having the lowest priority among the plurality of controllers.
2. The controller diagnosis method according to claim 1, in, Delaying the transmission time includes delaying the transmission time by a fourth time, The fourth time is the time when the DTC information of the plurality of controllers arrives at the diagnosis device.
3. The controller diagnosis method according to claim 1, in, The data length information of the DTC information is included in the protocol control information field, namely, the PCI field.
4. A controller diagnostic device, include: Multiple controllers; a gateway that transmits diagnostic trouble code information, i.e., DTC information, received from the plurality of controllers; as well as a diagnostic device that sends a DTC request signal to the plurality of controllers, receives a first frame from the plurality of controllers in response to the DTC request signal, transmits a flow control signal to the plurality of controllers, delays a transmission time of the flow control signal, and receives DTC information based on at least one continuous frame provided by the plurality of controllers in response to the flow control signal, The diagnostic device delays the transmission time by the sum of the first time, the second time and the third time, The first time is a response time of each of the plurality of controllers to the DTC request signal, The second time is the processing delay time of the gateway, and The third time is a delay time for transmission of DTC information of a controller having the lowest priority among the plurality of controllers.
5. The controller diagnostic device according to claim 4, in, The diagnosis device delays the transmission time by a fourth time, the fourth time being a time when the DTC information of the plurality of controllers arrives at the diagnosis device.
6. The controller diagnostic device according to claim 4, in, The data length information of the DTC information is included in the protocol control information field, namely, the PCI field.
