KR20010027466A - Method for reprogramming ecu of vehicles - Google Patents

Method for reprogramming ecu of vehicles Download PDF

Info

Publication number
KR20010027466A
KR20010027466A KR1019990039236A KR19990039236A KR20010027466A KR 20010027466 A KR20010027466 A KR 20010027466A KR 1019990039236 A KR1019990039236 A KR 1019990039236A KR 19990039236 A KR19990039236 A KR 19990039236A KR 20010027466 A KR20010027466 A KR 20010027466A
Authority
KR
South Korea
Prior art keywords
ecu
diagnostic apparatus
reprogramming
flash eprom
transmits
Prior art date
Application number
KR1019990039236A
Other languages
Korean (ko)
Inventor
박영수
김하형
Original Assignee
박종섭
현대전자산업 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 박종섭, 현대전자산업 주식회사 filed Critical 박종섭
Priority to KR1019990039236A priority Critical patent/KR20010027466A/en
Publication of KR20010027466A publication Critical patent/KR20010027466A/en

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02DCONTROLLING COMBUSTION ENGINES
    • F02D41/00Electrical control of supply of combustible mixture or its constituents
    • F02D41/24Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means
    • F02D41/26Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means using computer, e.g. microprocessor
    • F02D41/263Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means using computer, e.g. microprocessor the program execution being modifiable by physical parameters
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02DCONTROLLING COMBUSTION ENGINES
    • F02D41/00Electrical control of supply of combustible mixture or its constituents
    • F02D41/24Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means
    • F02D41/2406Electrical control of supply of combustible mixture or its constituents characterised by the use of digital means using essentially read only memories

Abstract

PURPOSE: A reprogramming method for an engine control unit is provided to reprogram a flash EPROM(Electrically Programmable Read-Only Memory) of an ECU(Engine Control Unit) by interactive communication of an ECU diagnostic unit with the ECU via a K-Line withdrawn from the ECU. CONSTITUTION: A reprogramming method comprises the steps of: resetting an ECU by hardware to reprogram a flash EPROM of the ECU(S10,S20); initializing communication with the ECU by an ECU diagnostic unit(S30); receiving reprogramming data in the ECU(S40); writing the reprogramming data in the flash EPROM to perform a reprogramming work(S50); and transmitting results of validity test and check sum to the ECU diagnostic unit after reprogramming the flash EPROM(S60). While flash EPROM of the ECU is not separated, interactive communication between the ECU diagnostic unit with the ECU via a K-line withdrawn from the ECU is performed. Therefore, the flash EPROM of the ECU is reprogrammed.

Description

차량의 엔진제어유닛 리프로그래밍 방법 { METHOD FOR REPROGRAMMING ECU OF VEHICLES }Reprogramming of engine control unit of vehicle {METHOD FOR REPROGRAMMING ECU OF VEHICLES}

본 발명은 차량의 엔진제어유닛(ECU)에 관한 것이며, 보다 상세히는 차량의 엔진제어유닛 리프로그래밍 방법에 관한 것이다.The present invention relates to an engine control unit (ECU) of a vehicle, and more particularly to a method for reprogramming an engine control unit of a vehicle.

일반적으로 종래의 차량에 있어서, 엔진제어유닛(이하, ECU라 한다)은 EEPROM에 소정의 엔진제어 프로그램을 저장하고 있으며, K-Line이라는 양방향 통신선을 이용하여 HI-SCAN, 진단용 PC 등과 같은 차량의 ECU 진단 장치와 통신을 하면서 각종 진단 결과를 상기 차량의 ECU 진단 장치로 전송한다.In general, in a conventional vehicle, an engine control unit (hereinafter referred to as ECU) stores a predetermined engine control program in an EEPROM, and uses a bidirectional communication line called K-Line to control a vehicle such as a HI-SCAN or a diagnostic PC. While communicating with the ECU diagnostic apparatus, various diagnostic results are transmitted to the ECU diagnostic apparatus of the vehicle.

이때, 상기 ECU로부터 인출되는 K-Line은 커넥터를 통해 상기 ECU 진단 장치에 접속된다.At this time, the K-Line drawn out from the ECU is connected to the ECU diagnostic apparatus through a connector.

그러나, 상기와 같이 EEPROM에 소정의 엔진제어 프로그램을 저장하고 있는 종래의 ECU는, 유저가 엔진제어 프로그램을 새롭게 쓰거나 삭제하고자 할 때마다 ECU로부터 EEPROM을 분리하여 별도의 ROM 라이터로 프로그램을 수정하도록 되어 있기 때문에, 리프로그래밍 시간이 많이 소요되는 문제점이 있다.However, in the conventional ECU which stores a predetermined engine control program in the EEPROM as described above, whenever the user wants to write or delete the engine control program, the ECU is detached from the ECU and modified by a separate ROM writer. Because of this, there is a problem that takes a lot of reprogramming time.

따라서, 본 발명은 상술한 종래의 문제점을 극복하기 위한 것으로서, 본 발명의 목적은 차량의 ECU에 플레시 EPROM을 고정 설치하고, 상기 ECU로부터 플레시 EPROM를 분리하지 않은 상태에서 ECU 진단 장치가 ECU로부터 인출되는 K-Line을 통해 ECU와 양방향 통신을 수행하여 ECU의 플레시 EPROM에 리프로그래밍을 하도록 된 차량의 엔진제어유닛 리프로그래밍 방법을 제공하는데 있다.Accordingly, an object of the present invention is to overcome the above-mentioned conventional problems, and an object of the present invention is to fix a flash EPROM to an ECU of a vehicle, and to extract the flash EPROM from the ECU without drawing the flash EPROM from the ECU. It is to provide a vehicle engine control unit reprogramming method for reprogramming the flash EPROM of the ECU by performing bidirectional communication with the ECU through the K-Line.

상기 본 발명의 목적을 달성하기 위한 차량의 엔진제어유닛 리프로그래밍 방법은 ECU가 파워 온된 상태에서, 유저가 ECU의 플레시 EPROM에 리프로그래밍을 하기 위하여 ECU를 하드웨어적으로 리셋시키는 단계와, ECU 진단 장치가 상기 ECU와의 통신을 초기화하는 단계와, 상기 ECU 진단 장치가 상기 ECU로 전송하는 리프로그래밍 데이터를 상기 ECU가 수신하는 단계와, 상기 ECU가 수신된 리프로그래밍 데이터를 상기 플레시 EPROM에 써넣어 리프로그래밍 작업을 수행하는 라이팅 단계, 및 상기 ECU가 플레시 EPROM에 리프로그래밍을 한 후, 타당성 검사와 체크 섬 결과를 상기 ECU 진단 장치로 전송하는 수신 완료 단계로 이루어진 것을 특징으로 한다.The engine control unit reprogramming method of a vehicle for achieving the object of the present invention comprises the steps of hardware reset the ECU for the user to reprogram in the flash EPROM of the ECU when the ECU is powered on, ECU diagnostic apparatus Initializing communication with the ECU; receiving, by the ECU, reprogramming data transmitted by the ECU diagnostic apparatus to the ECU; and reprogramming by writing the reprogramming data received by the ECU to the flash EPROM. And a writing completion step for performing the operation, and a reception completion step of transmitting a validity check and a checksum result to the ECU diagnostic apparatus after the ECU reprograms the flash EPROM.

이에 따라서, 본 발명의 차량의 엔진제어유닛 리프로그래밍 방법은 ECU의 플레시 EPROM을 분리하지 않은 상태에서 ECU 진단 장치가 ECU로부터 인출되는 K-Line을 통해 ECU와 양방향 통신을 수행하여 ECU의 플레시 EPROM에 리프로그래밍을 하도록 되어 있다.Accordingly, the engine control unit reprogramming method of the vehicle of the present invention performs a bi-directional communication with the ECU via the K-Line from the ECU diagnostic apparatus withdrawn from the ECU without the flash EPROM of the ECU is removed to the flash EPROM of the ECU. It is supposed to be reprogrammed.

도 1은 본 발명에 따른 차량의 ECU와 ECU 진단 장치의 접속 상태를 도시한 구성도,1 is a configuration diagram showing a connection state between the ECU and the ECU diagnostic apparatus of the vehicle according to the present invention;

도 2는 본 발명에 따른 차량의 엔진제어유닛 리프로그래밍 방법을 도시한 플로차트,2 is a flowchart illustrating a method for reprogramming an engine control unit of a vehicle according to the present invention;

도 3은 도 2의 통신 초기화 단계와 데이터 수신 단계와 라이팅 단계와 수신 완료 단계를 상세하게 도시한 플로차트이다.3 is a flowchart illustrating in detail a communication initialization step, a data reception step, a writing step, and a reception completion step of FIG. 2.

<도면의 주요 부분에 대한 부호의 설명><Description of the code | symbol about the principal part of drawing>

10: ECU 11: 마이크로컨트롤러10: ECU 11: Microcontroller

12: 인터널 ROM 13: 플레시 EPROM12: Internal ROM 13: Flash EPROM

20: 커넥터 30: ECU 진단 장치20: connector 30: ECU diagnostic device

이하, 본 발명의 실시예를 첨부한 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1을 참조하면, 본 발명에 따른 ECU(10)는 마이크로컨트롤러(11)와 플레시 EPROM(13)을 내장하고 있으며, 상기 마이크로컨트롤러(11)의 내부에는 상기 플레시 EPROM(13)에 소정의 엔진제어 프로그램을 저장할 때 ECU 진단 장치(30)와의 통신을 담당할 프로그램과 프로그래밍 모드와 관련한 각종 코드가 저장되어 있다.Referring to FIG. 1, the ECU 10 according to the present invention includes a microcontroller 11 and a flash EPROM 13, and a predetermined engine is installed in the flash EPROM 13 inside the microcontroller 11. When storing the control program, various codes related to a program and a programming mode to be in communication with the ECU diagnostic apparatus 30 are stored.

상기 마이크로컨트롤러(11)와 플레시 EPROM(13)은 어드레스 버스와 데이터 버스를 통해 서로 연결되며, 상기 플레시 EPROM(13)은 ECU(10) 내부에 고정 설치된다.The microcontroller 11 and the flash EPROM 13 are connected to each other via an address bus and a data bus, and the flash EPROM 13 is fixedly installed in the ECU 10.

상기 ECU(10)로부터 인출되는 K-Line은 양방향 통신선으로서, 커넥터(20)를 통해 상기 ECU 진단 장치(30)에 연결된다.The K-Line drawn out from the ECU 10 is a bidirectional communication line and is connected to the ECU diagnostic apparatus 30 through a connector 20.

상기 ECU(10)의 PR(Program request) 핀은 상기 ECU(10)가 파워 온된 상태에서, 유저가 상기 ECU(10)의 플레시 EPROM(13)에 리프로그래밍을 하기 위하여 상기 ECU(10)를 하드웨어적으로 리셋시키면 프로그래밍 작업이 완료될 때까지 하이 상태를 유지한다.The PR (Program request) pin of the ECU 10 is configured to hardware the ECU 10 so that a user can reprogram the flash EPROM 13 of the ECU 10 while the ECU 10 is powered on. This reset will remain high until programming is complete.

ECU 진단 장치(30)는 상기 ECU(10)와 K-Line을 통해 양방향 통신을 수행하여 상기 ECU(10)의 고장 여부를 진단하고, 필요할 경우 상기 ECU(10)의 플레시 EPROM(13)을 리프로그래밍한다.The ECU diagnostic apparatus 30 performs bidirectional communication with the ECU 10 through the K-Line to diagnose whether the ECU 10 has failed, and if necessary, returns the flash EPROM 13 of the ECU 10. Program.

상기와 같은 구성에 의해서 본 발명에 따른 차량의 엔진제어유닛 리프로그래밍 방법은 다음과 같이 작동한다.With the above configuration, the engine control unit reprogramming method of the vehicle according to the present invention operates as follows.

도 2와 도 3을 참조하면, ECU(10)가 파워 온된 상태에서, 유저가 ECU(10)의 플레시 EPROM(13)에 리프로그래밍을 하기 위하여 ECU(10)를 하드웨어적으로 리셋시키면 상기 PR 핀은 하이 상태를 유지한다(S10,S20). 이때, 상기 ECU(10)가 리셋되지 않으면 상기 PR 핀은 로우 상태를 유지하고, 상기 ECU(10)는 정상 동작한다.2 and 3, when the ECU 10 is powered on, when the user resets the ECU 10 in hardware in order to reprogram the flash EPROM 13 of the ECU 10, the PR pin may be used. Maintains a high state (S10, S20). At this time, if the ECU 10 is not reset, the PR pin remains low, and the ECU 10 operates normally.

상기와 같이 PR 핀이 하이 상태를 유지하면 상기 ECU 진단 장치(30)가 K-Line을 통해 상기 ECU(10)와의 통신을 초기화하며(S30), 그 초기화 과정은 다음과 같이 진행된다.When the PR pin maintains the high state as described above, the ECU diagnostic apparatus 30 initializes communication with the ECU 10 through the K-Line (S30), and the initialization process proceeds as follows.

제일 먼저, 상기 ECU 진단 장치(30)가 K-Line 초기화 데이터를 ECU(10)로 전송하면 상기 ECU(10)가 응답하여 ECU ID를 전송한다(S31).First, when the ECU diagnostic apparatus 30 transmits K-Line initialization data to the ECU 10, the ECU 10 responds and transmits an ECU ID (S31).

이어서, 초기 전송 속도가 너무 빠르면 상기 ECU(10)가 상기 ECU 진단 장치(30)에 대응할 수 없게 되므로, 상기 ECU 진단 장치(30)는 상기 ECU(10)가 정상적으로 응답할 수 있도록 하기 위한 전송 속도 설정값을 ECU(10)로 전송하며, 이에 따라서 상기 ECU(10)는 전송 속도 설정값을 상기 ECU 진단 장치(30)로 반송한다(S32).Subsequently, if the initial transmission speed is too fast, the ECU 10 cannot cope with the ECU diagnostic apparatus 30, so that the ECU diagnostic apparatus 30 transmits a transmission speed for allowing the ECU 10 to respond normally. The setting value is transmitted to the ECU 10, and accordingly the ECU 10 returns the transmission speed setting value to the ECU diagnostic apparatus 30 (S32).

상기와 같이 전송 속도가 설정되고 나면, 상기 ECU 진단 장치(30)는 마스크 ID 정보를 요구하고, 이에 응답하여 상기 ECU(10)는 마스크 ID 정보를 상기 ECU 진단 장치(30)로 전송한다(S33).After the transmission speed is set as described above, the ECU diagnostic apparatus 30 requests mask ID information, and in response, the ECU 10 transmits mask ID information to the ECU diagnostic apparatus 30 (S33). ).

마스크 ID 정보를 확인한 후, 상기 ECU 진단 장치(30)가 플레시 EPROM(13)의 라이트 가능 여부 확인 코드를 상기 ECU(10)로 전송하면 상기 ECU(10)는 플레시 EPROM(13)의 라이트 가능 여부(OK/NOT OK) 코드를 상기 ECU 진단 장치(30)로 전송한다(S34).After checking the mask ID information, when the ECU diagnostic apparatus 30 transmits a confirmation code of whether the flash EPROM 13 can be written to the ECU 10, the ECU 10 can write the flash EPROM 13. (OK / NOT OK) code is transmitted to the ECU diagnostic apparatus 30 (S34).

이때, 상기 ECU(10)의 플레시 EPROM(13)의 라이트 불가능(NOT OK) 코드가 입력되면 상기 ECU 진단 장치(30)는 초기화되고, 상기 ECU(10)의 플레시 EPROM(13) 라이트 가능(OK) 코드가 입력됨에 따라서 상기 ECU 진단 장치(30)가 라이트 모드 요구 코드를 전송하면 상기 ECU(10)는 모드 전환 완료 코드를 상기 ECU 진단 장치(30)로 전송하고(S35), 이에 따라서 초기화 작업이 완료된다.At this time, when the NOT OK code of the flash EPROM 13 of the ECU 10 is input, the ECU diagnostic apparatus 30 is initialized and the flash EPROM 13 of the ECU 10 can be written (OK). When the ECU diagnostic apparatus 30 transmits the write mode request code as the code is input, the ECU 10 transmits a mode change completion code to the ECU diagnostic apparatus 30 (S35), and accordingly, an initialization operation. Is complete.

상기와 같이 통신 초기화 작업이 완료되면, 상기 ECU(10)는 상기 ECU 진단 장치(30)로부터 전송되는 리프로그래밍 데이터를 수신하며(S40), 상기 ECU(10)의 리프로그래밍 데이터 수신 과정은 다음과 같이 진행된다.When the communication initialization task is completed as described above, the ECU 10 receives the reprogramming data transmitted from the ECU diagnostic apparatus 30 (S40), and the reprogramming data reception process of the ECU 10 is as follows. It goes along.

상기 ECU 진단 장치(30)가 데이터 전송 전에, 데이터 전송 모드를 패스트 모드로 할 것인가를 요구하면, 이에 응답하여 상기 ECU(10)는 패스트 모드를 반송한다(S41).If the ECU diagnostic apparatus 30 requests whether the data transfer mode is to be set to the fast mode before the data transfer, the ECU 10 returns the fast mode in response (S41).

따라서, 이때부터 상기 ECU 진단 장치(30)는 프로그램 해야할 총 섹터 수와 섹터 넘버를 패스트 모드로 전송하고, 이에 응답하여 상기 ECU(10)는 수신 데이터를 에코잉한다(S42,S43).Therefore, from this time, the ECU diagnostic apparatus 30 transmits the total number of sectors to be programmed and the sector number in the fast mode, and in response, the ECU 10 echoes the received data (S42 and S43).

또한, 프로그램 해야할 총 섹터 수와 섹터 넘버가 상기 ECU(10)로 전송되고 나면, 상기 ECU 진단 장치(30)는 프로그램용 데이터를 상기 ECU(10)로 전송하며, 이에 따라서 상기 ECU(10)는 데이터 수신을 완료한 후 수신 데이터를 반송한다(S44).In addition, after the total number of sectors to be programmed and the sector number are transmitted to the ECU 10, the ECU diagnostic apparatus 30 transmits program data to the ECU 10, and accordingly the ECU 10 After the data reception is completed, the reception data is returned (S44).

본 발명에서는, 상기 ECU(10)로 전송되는 프로그램용 데이터를 128바이트로 전송되거나 32바이트를 4회로 나누어 전송하는 것이 바람직하며, 상기 ECU(10)가 데이터 수신 완료를 나타내기 위하여 상기 ECU 진단 장치(30)로 반송하는 수신 데이터는 128바이트 또는 체크 섬만으로 선정하는 것이 바람직하다.In the present invention, it is preferable to transmit the program data transmitted to the ECU 10 in 128 bytes or divided into 32 bytes in 4 times, and the ECU diagnostic apparatus for indicating the completion of data reception by the ECU 10. It is preferable that the received data returned to (30) be selected only with 128 bytes or check sum.

상기와 같이 데이터 수신이 완료되면, 상기 ECU(10)는 수신된 리프로그래밍 데이터를 상기 플레시 EPROM(13)에 써넣어 리프로그래밍 작업을 수행하고(S50), 상기 ECU(10)의 라이팅 과정은 다음과 같이 진행된다.When the data reception is completed as described above, the ECU 10 writes the received reprogramming data into the flash EPROM 13 to perform a reprogramming operation (S50), and the writing process of the ECU 10 is as follows. Proceed as follows.

상기 ECU(10)가 데이터를 수신 완료하면 상기 ECU 진단 장치(30)는 섹터 프로그래밍 요구 코드를 ECU(10)로 전송하고(S51), 이에 응답하여 상기 ECU(10)는 섹터 프로그래밍 완료 후, 완료 코드를 상기 ECU 진단 장치(30)로 전송한다(S52).When the ECU 10 receives the data, the ECU diagnostic apparatus 30 transmits a sector programming request code to the ECU 10 (S51). In response, the ECU 10 completes the sector programming after completion. The code is transmitted to the ECU diagnostic apparatus 30 (S52).

이때, 상기 ECU 진단 장치(30)는 모든 섹터에 대하여 프로그래밍을 요구하기 위한 프로그래밍 요구 코드를 ECU(10)로 전송하고, 이에 응답하여 상기 ECU(10)는 모든 섹터에 대하여 프로그래밍 완료 후, 완료 코드를 상기 ECU 진단 장치(30)로 전송한다(S53,S54).At this time, the ECU diagnostic apparatus 30 transmits a programming request code for requesting programming for all sectors to the ECU 10, and in response thereto, the ECU 10 completes programming for all sectors and then a completion code. Is transmitted to the ECU diagnostic apparatus 30 (S53, S54).

상기와 같이 ECU(10)가 플레시 EPROM(13)의 모든 섹터에 대하여 리프로그래밍을 완료하면, 상기 ECU 진단 장치(30)는 상기 ECU(10)의 플레시 EPROM(13)의 리프로그래밍 작업이 정상적으로 완료되었는가를 판별하기 위한 타당성 검사 종료를 요구하고 체크 섬을 전송하고, 이에 응답하여 상기 ECU(10)는 타당성 검사와 체크 섬 결과를 상기 ECU 진단 장치(30)로 전송하며(S60), 상기 ECU(10)의 수신 완료 과정은 다음과 같이 진행된다.When the ECU 10 completes reprogramming for all sectors of the flash EPROM 13 as described above, the ECU diagnostic apparatus 30 normally completes the reprogramming operation of the flash EPROM 13 of the ECU 10. Requesting the completion of a validity check for determining whether the operation is completed and transmitting a checksum, in response, the ECU 10 transmits a validity check and a checksum result to the ECU diagnosis apparatus 30 (S60). The reception completion process of 10) proceeds as follows.

상기 ECU(10)가 플레시 EPROM(13)의 모든 섹터에 대하여 리프로그래밍을 완료하면, 상기 ECU 진단 장치(30)는 타당성 검사 종료를 요구하고 체크 섬을 전송한다.When the ECU 10 completes reprogramming for all sectors of the flash EPROM 13, the ECU diagnostic apparatus 30 requests the end of the validity check and transmits a check sum.

따라서, 상기 ECU(10)는 타당성 검사 종료 요구에 대하여 응답한 후에 체크 섬 연산 결과를 전송한다(S61,S62).Accordingly, the ECU 10 transmits a checksum calculation result after responding to the validity check end request (S61, S62).

이때, 상기 ECU(10)의 체크 섬 연산 결과가 긍정(OK)이면 상기 ECU 진단 장치(30)는 프로그래밍 완료 메시지를 출력한 후 리프로그래밍 작업을 종료하고(S63), 반대로 상기 ECU(10)의 체크 섬 연산 결과가 부정이면 상기 ECU 진단 장치(30)는 프로그래밍 실패 메시지를 출력한 후 리프로그래밍 작업을 종료한다(S64).At this time, if the checksum calculation result of the ECU 10 is affirmative (OK), the ECU diagnostic apparatus 30 outputs a programming completion message and then ends the reprogramming operation (S63). If the checksum calculation result is negative, the ECU diagnostic apparatus 30 outputs a programming failure message and then ends the reprogramming operation (S64).

상술한 바와 같이 본 발명에 따른 차량의 엔진제어유닛 리프로그래밍 방법은 차량의 ECU에 플레시 EPROM을 고정 설치하고, 상기 ECU로부터 플레시 EPROM를 분리하지 않은 상태에서 ECU 진단 장치가 ECU로부터 인출되는 K-Line을 통해 ECU와 양방향 통신을 수행하여 ECU의 플레시 EPROM에 리프로그래밍을 하도록 되어 있기 때문에, 리프로그래밍 시간을 단축하고 리프로그래밍 작업의 간편성과 편리성을 향상시키는 효과가 있다.As described above, the engine control unit reprogramming method for a vehicle according to the present invention includes a K-Line in which a flash EPROM is fixedly installed in an ECU of a vehicle and the ECU diagnostic apparatus is drawn out from the ECU without detaching the flash EPROM from the ECU. Through the bidirectional communication with the ECU, the reprogramming is performed to the flash EPROM of the ECU, thereby reducing the reprogramming time and improving the simplicity and convenience of the reprogramming operation.

이상에서 설명한 것은 본 발명에 따른 차량의 엔진제어유닛 리프로그래밍 방법을 실시하기 위한 하나의 실시예에 불과한 것으로서, 본 발명은 상기한 실시예에 한정되지 않고, 이하의 특허청구의 범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변경 실시가 가능할 것이다.What has been described above is only one embodiment for carrying out the engine control unit reprogramming method of the vehicle according to the present invention, and the present invention is not limited to the above-described embodiment, but the present invention claims in the following claims. Various changes can be made by those skilled in the art without departing from the gist of the invention.

Claims (5)

ECU(10)가 파워 온된 상태에서, 유저가 ECU(10)의 플레시 EPROM(13)에 리프로그래밍을 하기 위하여 ECU(10)를 하드웨어적으로 리셋시키는 단계(S10,S20)와,In a state in which the ECU 10 is powered on, in which the user resets the ECU 10 in hardware in order to reprogram the flash EPROM 13 of the ECU 10 (S10 and S20), ECU 진단 장치(30)가 상기 ECU(10)와의 통신을 초기화하는 단계(S30)와,In step S30, the ECU diagnostic apparatus 30 initializes communication with the ECU 10; 상기 ECU 진단 장치(30)가 상기 ECU(10)로 전송하는 리프로그래밍 데이터를 상기 ECU(10)가 수신하는 단계(S40)와,Receiving, by the ECU 10, the reprogramming data transmitted by the ECU diagnostic apparatus 30 to the ECU 10 (S40); 상기 ECU(10)가 수신된 리프로그래밍 데이터를 상기 플레시 EPROM(13)에 써넣어 리프로그래밍 작업을 수행하는 라이팅 단계(S50), 및A writing step (S50) in which the ECU 10 writes the received reprogramming data into the flash EPROM 13 to perform a reprogramming operation; and 상기 ECU(10)가 플레시 EPROM(13)에 리프로그래밍을 한 후, 타당성 검사와 체크 섬 결과를 상기 ECU 진단 장치(30)로 전송하는 수신 완료 단계(S60)After the ECU 10 reprograms the flash EPROM 13, a reception completion step (S60) of transmitting a validity check and a checksum result to the ECU diagnostic apparatus 30 (S60). 로 이루어진 것을 특징으로 하는 차량의 엔진제어유닛 리프로그래밍 방법.Reprogramming method of the engine control unit of a vehicle, characterized in that consisting of. 제 1 항에 있어서, 상기 초기화 단계(S30)는The method of claim 1, wherein the initialization step (S30) ECU 진단 장치(30)가 K-Line 초기화 데이터를 ECU(10)로 전송하면 상기 ECU(10)가 응답하여 ECU ID를 전송하는 단계(S31)와,When the ECU diagnostic apparatus 30 transmits the K-Line initialization data to the ECU 10, the ECU 10 responding to transmit the ECU ID (S31); 상기 ECU 진단 장치(30)가 전송 속도 설정값을 ECU(10)로 전송하면 상기 ECU(10)가 전송 속도 설정값을 반송하는 단계(S32)와,When the ECU diagnostic apparatus 30 transmits the transmission speed setting value to the ECU 10, the ECU 10 conveying the transmission speed setting value (S32); 상기 ECU 진단 장치(30)가 마스크 ID 정보를 요구하면 상기 ECU(10)가 마스크 ID 정보를 상기 ECU 진단 장치(30)로 전송하는 단계(S33)와,When the ECU diagnostic apparatus 30 requests mask ID information, the ECU 10 transmitting mask ID information to the ECU diagnostic apparatus 30 (S33); 상기 ECU 진단 장치(30)가 플레시 EPROM(13)의 라이트 가능 여부 확인 코드를 상기 ECU(10)로 전송하면 상기 ECU(10)가 플레시 EPROM(13)의 라이트 가능 여부(OK/NOT OK) 코드를 상기 ECU 진단 장치(30)로 전송하는 단계(S34), 및When the ECU diagnostic apparatus 30 transmits a confirmation code of whether the flash EPROM 13 can be written to the ECU 10, the ECU 10 can write the flash EPROM 13 (OK / NOT OK) code. Transmitting to the ECU diagnostic apparatus 30 (S34), and 상기 ECU(10)의 플레시 EPROM(13)의 라이트 불가능(NOT OK) 코드가 입력되면 상기 ECU 진단 장치(30)가 초기화되고, 상기 ECU(10)의 플레시 EPROM(13) 라이트 가능(OK) 코드가 입력됨에 따라서 상기 ECU 진단 장치(30)가 라이트 모드 요구 코드를 전송하면 상기 ECU(10)가 모드 전환 완료 코드를 상기 ECU 진단 장치(30)로 전송하는 단계(S35)When the NOT OK code of the flash EPROM 13 of the ECU 10 is input, the ECU diagnostic apparatus 30 is initialized, and the flash EPROM 13 writeable OK code of the ECU 10 is initialized. When the ECU diagnostic apparatus 30 transmits a write mode request code according to the input, the ECU 10 transmits a mode change completion code to the ECU diagnostic apparatus 30 (S35). 로 이루어진 것을 특징으로 하는 차량의 엔진제어유닛 리프로그래밍 방법.Reprogramming method of the engine control unit of a vehicle, characterized in that consisting of. 제 1 항에 있어서, 상기 데이터 수신 단계(S40)는The method of claim 1, wherein the data receiving step (S40) 상기 ECU 진단 장치(30)가 패스트 모드를 요구하면 상기 ECU(10)가 패스트 모드를 반송하는 단계(S41)와,When the ECU diagnostic apparatus 30 requests the fast mode, the ECU 10 conveying the fast mode (S41); 상기 ECU 진단 장치(30)가 프로그램 해야할 총 섹터 수를 전송하면 상기 ECU(10)가 수신 데이터를 에코잉하는 단계(S42)와,When the ECU diagnosis apparatus 30 transmits the total number of sectors to be programmed, the ECU 10 echoing the received data (S42); 상기 ECU 진단 장치(30)가 섹터 넘버를 전송하면 상기 ECU(10)가 수신 데이터를 에코잉하는 단계(S43), 및When the ECU diagnostic apparatus 30 transmits the sector number, the ECU 10 echoing the received data (S43), and 상기 ECU 진단 장치(30)가 데이터를 전송하면 상기 ECU(10)가 수신 데이터를 반송하는 단계(S44)When the ECU diagnostic apparatus 30 transmits data, the ECU 10 returns the received data (S44). 로 이루어진 것을 특징으로 하는 차량의 엔진제어유닛 리프로그래밍 방법.Reprogramming method of the engine control unit of a vehicle, characterized in that consisting of. 제 1 항에 있어서, 상기 라이팅 단계(S50)는The method of claim 1, wherein the writing step (S50) 상기 ECU(10)가 수신 데이터를 반송하면 상기 ECU 진단 장치(30)가 섹터 프로그래밍 요구 코드를 전송하는 단계(S51)와,The ECU diagnostic apparatus 30 transmitting the sector programming request code when the ECU 10 carries the received data (S51); 상기 ECU 진단 장치(30)가 섹터 프로그래밍을 요구하면 상기 ECU(10)가 섹터 프로그래밍 완료 후, 완료 코드를 상기 ECU 진단 장치(30)로 전송하는 단계(S52), 및If the ECU diagnostic apparatus 30 requests sector programming, after the ECU 10 completes the sector programming, transmitting the completion code to the ECU diagnostic apparatus 30 (S52), and 상기 ECU 진단 장치(30)가 모든 섹터에 대하여 프로그래밍을 요구하면 상기 ECU(10)가 모든 섹터에 대하여 프로그래밍 완료 후, 완료 코드를 상기 ECU 진단 장치(30)로 전송하는 단계(S53,S54)If the ECU diagnostic apparatus 30 requests programming for all sectors, the ECU 10 transmits a completion code to the ECU diagnostic apparatus 30 after completion of programming for all sectors (S53 and S54). 로 이루어진 것을 특징으로 하는 차량의 엔진제어유닛 리프로그래밍 방법.Reprogramming method of the engine control unit of a vehicle, characterized in that consisting of. 제 1 항에 있어서, 상기 수신 완료 단계(S60)는The method of claim 1, wherein the reception completion step (S60) 프로그래밍 완료 후, 상기 ECU 진단 장치(30)가 타당성 검사 종료를 요구하면 상기 ECU(10)가 타당성 검사 종료 요구에 대하여 응답하는 단계(S61)와,After the completion of programming, when the ECU diagnostic apparatus 30 requests the validity test, the ECU 10 responds to the validity test end request (S61), 상기 ECU 진단 장치(30)가 타당성 검사 종료 요구 후에 체크 섬을 전송하면 상기 ECU(10)가 체크 섬 연산 결과를 상기 ECU 진단 장치(30)에 전송하는 단계(S62), 및The ECU 10 transmitting a checksum calculation result to the ECU diagnosis apparatus 30 when the ECU diagnosis apparatus 30 transmits a checksum after a validity test end request (S62), and 상기 ECU(10)의 체크 섬 연산 결과가 긍정(OK)이면 상기 ECU 진단 장치(30)가 프로그래밍 완료 메시지를 출력하고, 상기 ECU(10)의 체크 섬 연산 결과가 부정이면 상기 ECU 진단 장치(30)가 프로그래밍 실패 메시지를 출력하는 단계(S63,S64)The ECU diagnostic device 30 outputs a programming completion message if the checksum calculation result of the ECU 10 is OK. If the checksum calculation result of the ECU 10 is negative, the ECU diagnostic device 30 is negative. ) Outputs a programming failure message (S63, S64) 로 이루어진 것을 특징으로 하는 차량의 엔진제어유닛 리프로그래밍 방법.Reprogramming method of the engine control unit of a vehicle, characterized in that consisting of.
KR1019990039236A 1999-09-14 1999-09-14 Method for reprogramming ecu of vehicles KR20010027466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990039236A KR20010027466A (en) 1999-09-14 1999-09-14 Method for reprogramming ecu of vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990039236A KR20010027466A (en) 1999-09-14 1999-09-14 Method for reprogramming ecu of vehicles

Publications (1)

Publication Number Publication Date
KR20010027466A true KR20010027466A (en) 2001-04-06

Family

ID=19611400

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990039236A KR20010027466A (en) 1999-09-14 1999-09-14 Method for reprogramming ecu of vehicles

Country Status (1)

Country Link
KR (1) KR20010027466A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020097363A (en) * 2001-06-20 2002-12-31 현대자동차주식회사 Method for reprograming of electronic control unit of vehicle
KR100873302B1 (en) * 2006-08-29 2008-12-09 콘티넨탈 오토모티브 시스템 주식회사 Method for reprogramming electric control unit of car
KR101412289B1 (en) * 2012-12-10 2014-06-25 르노삼성자동차 주식회사 ECU management system and method
KR101524117B1 (en) * 2009-04-30 2015-05-29 콘티넨탈 오토모티브 시스템 주식회사 System and methdo for checking illegal reproduction of vehicle
CN107976986A (en) * 2016-10-24 2018-05-01 李尔公司 Method for being programmed to vehicle electric control module
US11356425B2 (en) 2018-11-30 2022-06-07 Paccar Inc Techniques for improving security of encrypted vehicle software updates
US11449327B2 (en) 2018-11-30 2022-09-20 Paccar Inc Error-resilient over-the-air software updates for vehicles

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020097363A (en) * 2001-06-20 2002-12-31 현대자동차주식회사 Method for reprograming of electronic control unit of vehicle
KR100873302B1 (en) * 2006-08-29 2008-12-09 콘티넨탈 오토모티브 시스템 주식회사 Method for reprogramming electric control unit of car
KR101524117B1 (en) * 2009-04-30 2015-05-29 콘티넨탈 오토모티브 시스템 주식회사 System and methdo for checking illegal reproduction of vehicle
KR101412289B1 (en) * 2012-12-10 2014-06-25 르노삼성자동차 주식회사 ECU management system and method
CN107976986A (en) * 2016-10-24 2018-05-01 李尔公司 Method for being programmed to vehicle electric control module
CN107976986B (en) * 2016-10-24 2020-08-18 李尔公司 Method for programming an electronic control module of a vehicle
US11356425B2 (en) 2018-11-30 2022-06-07 Paccar Inc Techniques for improving security of encrypted vehicle software updates
US11449327B2 (en) 2018-11-30 2022-09-20 Paccar Inc Error-resilient over-the-air software updates for vehicles

Similar Documents

Publication Publication Date Title
US7774382B2 (en) Method and apparatus for configuring a control device, and corresponding control device
CN103631609A (en) Method and system for refreshing vehicle-mounted ECU application program
US8036786B2 (en) On-vehicle control apparatus
US7038798B2 (en) Method and apparatus for multi-function processing capable of performing a program downloading using a common single connection, and a medium storing the method
CN110809755A (en) Electronic control system
US20060218340A1 (en) Data validity determining method for flash EEPROM and electronic control system
KR20010027466A (en) Method for reprogramming ecu of vehicles
JP4492025B2 (en) Data storage method for electronic control unit
CN114860279A (en) Rapid empty-film upgrading method
EP2317439B1 (en) Error Detection
CN107332589B (en) Firmware upgrading device based on bluetooth
CN101197959B (en) Terminal control method, system and equipment
CN212181459U (en) FPGA upgrading system
JP6094523B2 (en) Program rewriting method
CN107908418B (en) Method for upgrading logic program of fiber channel node card and fiber channel bus equipment
CN111179996B (en) Data calibration device and calibration data storing and writing method thereof
US20020184417A1 (en) Method for data transmission
JP4747015B2 (en) COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD
CN112181460A (en) Program firmware upgrading method and device, electronic equipment and storage medium
JP2980015B2 (en) Magnetic disk drive
JP3794081B2 (en) Communication method of bus line communication encoder
JP5010170B2 (en) Automatic communication system, method, program, and recording medium
KR100578650B1 (en) Apparatus for downloading parameters to an ECU of vehicles
CN113467842A (en) Starting method of embedded equipment suitable for industrial application scene, embedded equipment and computer readable storage medium
CN112783531A (en) Method for upgrading DSP (digital Signal processor) program through Ethernet under FPGA (field programmable Gate array) and DSP (digital Signal processor) framework

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination