KR101726295B1 - System and method for debugging electronic control unit - Google Patents
System and method for debugging electronic control unit Download PDFInfo
- Publication number
- KR101726295B1 KR101726295B1 KR1020150175840A KR20150175840A KR101726295B1 KR 101726295 B1 KR101726295 B1 KR 101726295B1 KR 1020150175840 A KR1020150175840 A KR 1020150175840A KR 20150175840 A KR20150175840 A KR 20150175840A KR 101726295 B1 KR101726295 B1 KR 101726295B1
- Authority
- KR
- South Korea
- Prior art keywords
- debugging
- electronic control
- interface
- mcu
- control device
- Prior art date
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W50/02—Ensuring safety in case of control system failures, e.g. by diagnosing, circumventing or fixing failures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/366—Software debugging using diagnostics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mechanical Engineering (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Transportation (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
The present invention relates to a technique for debugging an electronic control device, and more particularly, to an electronic control device debugging system and method capable of debugging an electronic control device even when assembled in a waterproof case.
BACKGROUND ART [0002] With advances in electronic control technology, products equipped with an electronic control unit (ECU) are increasing in number. For example, most of moving objects such as vehicles, ships, and aircraft are equipped with electronic control devices for controlling the engine or navigation device.
Generally, an ECU mounted on a vehicle monitors and controls the state of an engine, an automatic transmission, and an ABS (Anti-lock Brake System) for vehicle control and stability according to driving conditions.
The ECU controls various actors in the vehicle according to logic in response to the values of various sensors in the vehicle, in order to operate various devices of the vehicle.
That is, the ECU controls the ignition timing of the engine, the fuel injection, the idling, and the like, and controls the overall portion of the vehicle such as the operating system, the braking system, and the steering system.
The ECU includes an input port for receiving vehicle condition information that senses a vehicle condition that senses a state change of the operating devices of the vehicle, a microcontroller unit for calculating the vehicle condition information in real time according to pre- A microcontroller unit (MCU), a memory for storing information necessary for operation of the operating devices, and an output port for transmitting the control result output from the microcontroller unit to each operating device.
On the other hand, since the ECU is used for enhancing the safety of the vehicle, if there is an error or a bug in the ECU, the safety of the driver and the passenger may be deteriorated. Therefore, it is necessary to test the ECU to find out what kind of operation is indicated when an error code is received, whether the ECU outputs a desired output value, whether the desired network design is executed or the like.
If the test result is unsatisfactory, debugging such as change operation or reprogramming for the loaded application program should be performed.
These ECUs are connected to a PC for program development and debugged, and the majority of the ECUs currently in use are connected to the PC using a Joint Test Action Group (JTAG) port.
On the other hand, in order to waterproof the ECU, the ECU can be mounted on the vehicle while assembled in the waterproof case. If the ECU is assembled in the waterproof case, the debugging operation using the JTAG port can not be performed.
That is, when the ECU is assembled in a waterproof case, the JTAG port is also covered by the waterproof case, and debugging using the JTAG port can not be performed. Therefore, there is a need for a technique capable of debugging the ECU even when the ECU is assembled in the waterproof case.
Of course, although the above has been described with respect to the ECU of the vehicle, the above-mentioned problem is not limited to the ECU of the vehicle.
SUMMARY OF THE INVENTION Accordingly, the present invention has been made keeping in mind the above problems occurring in the prior art, and it is an object of the present invention to provide an electronic control device debugging system and method capable of debugging an electronic control device even when assembled in a waterproof case. .
According to an aspect of the present invention, there is provided an electronic control unit debugging system for debugging an electronic control unit using a debugging tool, the electronic control unit debugging system comprising: An MCU (Micro Control Unit); A connector for receiving a signal transmitted from an external device; And an interface connected between the MCU and the connector. When the MCU determines that a signal received through the connector is a debugging start value provided from the debugging tool, the MCU activates the interface, And provides the debugging value to the interface through the interface to debug the software.
Upon receiving the debugging end value while debugging the software, the MCU deactivates the interface and terminates the debugging operation for the software.
The MCU includes a first connection unit connected to the connector through a first wiring and connected to the interface through a second wiring branched from the first wiring to the interface; A second connection part connected to the interface through a fourth wiring branching from a third wiring extending from the interface; And a third connection part connected to the interface via a fifth wiring.
The MCU receives the debugging start value through the first connection unit and receives the debugging value through the second connection unit.
The electronic control apparatus further includes a debugging terminal connected to the third wiring and providing a debugging value provided from the debugging tool to the second connecting unit when the debugging tool is connected to the debugging tool.
The interface may include: a fourth connection part connected to the second wiring; A fifth connection part connected to the third wiring; And a sixth connection part connected to the fifth wiring, and is activated or deactivated according to a signal provided from the MCU through the sixth connection part.
An electronic control device debugging method according to one aspect of the present invention is a method for debugging an electronic control device using a debugging tool, the method comprising: determining whether a signal received from the outside is a debugging start value while the MCU is operating; ; When the received signal is the debugging start value, activating the interface by transmitting an enable signal to the interface by the MCU; And receiving the signal transmitted from the interface, and debugging the software of the MCU based on the received signal.
The step of determining whether the value is the debugging start value is a step of directly receiving the signal received through the connector by the MCU using the first connection unit and determining whether the received signal is the debugging start value.
The step of activating the interface is to cause the MCU to ignore the signal received via the first connection.
Activating the interface is a step in which a signal received via the connector is transmitted to the second connection of the MCU via the interface.
The method further includes determining whether the received signal is a debugging end value after the MCU debugging the software.
Wherein the MCU transmits a disable signal to the interface when the received signal is a debugging end value as a result of the step of determining whether the received signal is a debugging end value, Further comprising the step of deactivating.
The method further comprises the step of the MCU operating in response to a signal received via the first connection after deactivating the interface.
According to the embodiment of the present invention as described above, the electronic control device can be debugged even when the electronic control device is assembled in the waterproof case.
Therefore, by using the debugging system according to the embodiment of the present invention, the electronic control device can be debugged both before and after assembling the electronic control device into the waterproof case.
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic view showing a configuration of an electronic control unit debugging system according to an embodiment of the present invention; FIG.
2 is a diagram specifically illustrating a configuration of an electronic control unit debugging system according to an embodiment of the present invention.
3 is a flowchart illustrating a procedure according to a debugging operation of an electronic control unit debugging system according to an embodiment of the present invention.
BRIEF DESCRIPTION OF THE DRAWINGS The advantages and features of the present invention and the manner of achieving them will become apparent with reference to the embodiments described in detail below with reference to the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. Is provided to fully convey the scope of the invention to those skilled in the art, and the invention is only defined by the scope of the claims. Like numbers refer to like elements throughout.
In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. The following terms are defined in consideration of the functions in the embodiments of the present invention, which may vary depending on the intention of the user, the intention or the custom of the operator. Therefore, the definition should be based on the contents throughout this specification.
Hereinafter, a system and method for debugging an electronic control unit according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
Here, the electronic control unit may be an electronic control unit for vehicle control that includes software for controlling the vehicle, but the electronic control unit is not limited to the vehicle control.
However, for convenience of explanation, the following description will be made by taking the
The electronic control unit may be assembled by a waterproof case for waterproofing, but may not be assembled by the waterproof case.
That is, the electronic control device debugging system according to the present invention can debug the electronic control device in a state where the electronic control device is not assembled by the waterproof case, but also assembled by the waterproof case.
FIG. 1 is a view schematically showing a configuration of an electronic control unit debugging system according to an embodiment of the present invention, and FIG. 2 is a diagram illustrating a configuration of an electronic control unit debugging system according to an embodiment of the present invention.
1 and 2, an electronic control
Specifically, the
The MCU 110 includes first to
In addition, the
The above-mentioned
Before describing the configurations and functions of the
The first wire L1 connects the
The
As will be described later, a value ('travel value') input during the operation of the vehicle is transmitted to the
The third wiring L3 connects the fifth connecting
The
The
The fifth wire L5 connects the
The connection structure in the
The
The
On the other hand, the
Further, the software in the
The
At this time, the debugging
When the debugging operation is performed using the
The debugging operation using the
On the other hand, when the
When the
On the other hand, when receiving the debugging value through the
In the embodiment of the present invention, the
When the
If there is an input value in a state where the debugging start value is not received or the vehicle is in operation, the
Upon receiving the debugging start value, the
When the
Accordingly, the
The
At this time, when the
When the
When the
The debugging
The
When the
On the other hand, when the
Other operations of the
The configuration of the electronic control unit debugging system according to the embodiment of the present invention has been described above. Hereinafter, an electronic control device debugging operation using the electronic control unit debugging system according to an embodiment of the present invention will be described.
3 is a flowchart illustrating a procedure of a debugging operation of an electronic control unit debugging system according to an embodiment of the present invention.
3, the debugging operation is performed in a state where the
Referring to FIG. 3, the
In step S300, the
On the other hand, if it is determined in step S310 that the received signal is not a debugging start value (S310-No), the
On the other hand, if it is determined in step S310 that the received signal is the debugging start value (S310 - YES), the
When the
After the
Thereafter, while debugging the software according to step S330, the
If it is determined in step S340 that the received signal is not the debugging end value (S340-No), the
On the other hand, if it is determined in step S340 that the received signal is a debugging end value (S340 - Yes), the
If the
As described above, according to the electronic control apparatus debugging system and method according to the embodiment of the present invention, a debugging tool can be connected to the connector to debug the electronic control apparatus.
That is, in the past, debugging of the electronic control unit was possible only by using a debugging terminal unit separately configured for debugging the electronic control unit. However, according to the present invention, debugging of the electronic control unit can be performed without using the debugging terminal unit can do.
Therefore, in the case where the electronic control unit is assembled in the waterproof case, the debugging operation can not be performed for the electronic control unit in the related art. However, when the electronic control unit is assembled in the waterproof case The debugging operation for the electronic control unit can be performed.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, Various modifications, alterations, and alterations can be made within the scope of the present invention.
Therefore, the embodiments described in the present invention and the accompanying drawings are intended to illustrate rather than limit the technical spirit of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments and accompanying drawings . The scope of protection of the present invention should be construed according to the claims, and all technical ideas within the scope of equivalents should be interpreted as being included in the scope of the present invention.
1: Electronic control unit debugging system 100: Electronic control unit (ECU)
110: Micro control unit (MCU) 111: First connection part
112: second connection part 113: third connection part
120: connector 130: interface
131: fourth connection part 132: fifth connection part
133: sixth connection part 140: debugging terminal part
150: circuit board 200: debugging tool
L1 to L5: first to fifth wiring
Claims (13)
The electronic control device includes:
MCU (Micro Control Unit) with built-in software;
A connector for receiving a signal transmitted from an external device; And
And an interface coupled between the MCU and the connector,
The MCU activates the interface and receives a debugging value provided after the debugging start value through the interface when it is determined that the signal received through the connector is a debugging start value provided from the debugging tool, Debugging
In electronic control device debugging system.
The MCU, when receiving the debugging end value while debugging the software, deactivates the interface and terminates the debugging operation for the software
In electronic control device debugging system.
The MCU includes:
A first connection part connected to the connector through a first wiring and connected to the interface through a second wiring branched from the first wiring to the interface;
A second connection part connected to the interface through a fourth wiring branching from a third wiring extending from the interface; And
And a third connection part connected to the interface through a fifth wiring
In electronic control device debugging system.
The MCU receives the debugging start value through the first connection unit and receives the debugging value through the second connection unit
In electronic control device debugging system.
The electronic control apparatus may further include a debugging terminal unit connected to the third wiring and providing a debugging value provided from the debugging tool to the second connecting unit when connected to the debugging tool
In electronic control device debugging system.
The interface comprises:
A fourth connection part connected to the second wiring;
A fifth connection part connected to the third wiring; And
And a sixth connection part connected to the fifth wiring,
Activated or deactivated according to a signal provided from the MCU through the sixth connection unit
In electronic control device debugging system.
Determining whether a signal received from the outside is a debugging start value while the MCU is operating;
When the received signal is the debugging start value, activating the interface by transmitting an enable signal to the interface by the MCU; And
Receiving a signal transmitted from the interface, and debugging the software of the MCU based on the received signal
Method for debugging an electronic control device.
Wherein the step of determining whether the value is the debugging start value includes the step of directly receiving the signal received through the connector by the MCU using the first connection unit and determining whether the received signal is the debugging start value
In electronic control device.
Wherein activating the interface comprises ignoring signals received by the MCU over the first connection
In electronic control device.
Wherein activating the interface causes a signal received via the connector to be transmitted to the second connection of the MCU via the interface
In electronic control device.
Further comprising: after the MCU debugging the software, determining whether the received signal is a debugging end value
Method for debugging an electronic control device.
Further comprising the step of causing the MCU to send a disable signal to the interface to deactivate the interface if the received signal is a debugging end value as a result of the determination in the step of determining whether the received signal is a debugging end value
Method for debugging an electronic control device.
After the step of deactivating the interface, the MCU operating in response to a signal received via the first connection
Method for debugging an electronic control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150175840A KR101726295B1 (en) | 2015-12-10 | 2015-12-10 | System and method for debugging electronic control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150175840A KR101726295B1 (en) | 2015-12-10 | 2015-12-10 | System and method for debugging electronic control unit |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101726295B1 true KR101726295B1 (en) | 2017-04-13 |
Family
ID=58579852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150175840A KR101726295B1 (en) | 2015-12-10 | 2015-12-10 | System and method for debugging electronic control unit |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101726295B1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190040714A (en) * | 2017-10-11 | 2019-04-19 | 현대자동차주식회사 | Method and system for ECU execution time monitoring and fault finding |
CN109684216A (en) * | 2018-12-25 | 2019-04-26 | 郑州云海信息技术有限公司 | A kind of commissioning device and electronic equipment |
CN111775864A (en) * | 2020-06-28 | 2020-10-16 | 广州橙行智动汽车科技有限公司 | Remote debugging method and system and vehicle |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10214209A (en) * | 1997-01-29 | 1998-08-11 | Nippon Motorola Ltd | Data processor having debugging function |
JP2013086742A (en) * | 2011-10-21 | 2013-05-13 | Renesas Electronics Corp | Debug system, electronic control unit, information processor, semiconductor package, and transceiver circuit |
-
2015
- 2015-12-10 KR KR1020150175840A patent/KR101726295B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10214209A (en) * | 1997-01-29 | 1998-08-11 | Nippon Motorola Ltd | Data processor having debugging function |
JP2013086742A (en) * | 2011-10-21 | 2013-05-13 | Renesas Electronics Corp | Debug system, electronic control unit, information processor, semiconductor package, and transceiver circuit |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190040714A (en) * | 2017-10-11 | 2019-04-19 | 현대자동차주식회사 | Method and system for ECU execution time monitoring and fault finding |
KR102410940B1 (en) | 2017-10-11 | 2022-06-20 | 현대자동차주식회사 | Method and system for ECU execution time monitoring and fault finding |
CN109684216A (en) * | 2018-12-25 | 2019-04-26 | 郑州云海信息技术有限公司 | A kind of commissioning device and electronic equipment |
CN111775864A (en) * | 2020-06-28 | 2020-10-16 | 广州橙行智动汽车科技有限公司 | Remote debugging method and system and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101726295B1 (en) | System and method for debugging electronic control unit | |
US9031740B2 (en) | Vehicle control device capable of controller area network communication and diagnostic method therefor | |
US20160134553A1 (en) | Flexible scheduling method and apparatus in lin communication | |
US10839619B2 (en) | Electronic control unit and method for connection authentication | |
US10458539B2 (en) | Vehicle control device | |
KR101544887B1 (en) | Apparatus And Method for diagnosing CAN communication error | |
EP3822098A1 (en) | Method for configuring a trailer detection system | |
US20160062434A1 (en) | Debug system, electronic control unit, information processing unit, semiconductor package, and transceiver circuit | |
US7957891B2 (en) | Electronic control device for remote control and teleoperation system using same | |
CN210294832U (en) | Dual-redundancy CAN bus communication device suitable for autonomous underwater vehicle | |
KR102154279B1 (en) | Operating method in debugging system for vehicle | |
US9341666B2 (en) | Method and device for establishing a fault in connecting lines between a central unit and a plurality of electronic components which are independent of one another | |
KR102658507B1 (en) | How to configure a trailer detection system | |
CN103425123A (en) | Automated testing method for CAN (controller area network) bus based on software script | |
US20020073253A1 (en) | Test module | |
US20150146745A1 (en) | Control unit for in-vehicle ethernet and method for controlling thereof | |
JPH0330882B2 (en) | ||
JP4290195B2 (en) | Data transmission line with data integrity checking device | |
CN113448276B (en) | Parallel driving control circuit and system with signal acquisition instrument function | |
CN220064684U (en) | Automobile electronic detection system based on CAN bus | |
WO2023106091A1 (en) | On-board device, connection switching method, and connection switching program | |
JP7352166B2 (en) | In-vehicle communication system, in-vehicle communication device and communication method for vehicle | |
JP3031050B2 (en) | Fault diagnosis device | |
KR20160070304A (en) | Smart junction box having diagnosis function using wireless communication and diagnosis method thereof | |
CN105159190A (en) | On-board diagnostics signal adaptation box and signal adaptation method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant |