KR101335223B1 - Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit - Google Patents

Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit Download PDF

Info

Publication number
KR101335223B1
KR101335223B1 KR1020110108331A KR20110108331A KR101335223B1 KR 101335223 B1 KR101335223 B1 KR 101335223B1 KR 1020110108331 A KR1020110108331 A KR 1020110108331A KR 20110108331 A KR20110108331 A KR 20110108331A KR 101335223 B1 KR101335223 B1 KR 101335223B1
Authority
KR
South Korea
Prior art keywords
reprogramming
electronic controller
usb device
electronic control
input
Prior art date
Application number
KR1020110108331A
Other languages
Korean (ko)
Other versions
KR20130044069A (en
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 KR1020110108331A priority Critical patent/KR101335223B1/en
Publication of KR20130044069A publication Critical patent/KR20130044069A/en
Application granted granted Critical
Publication of KR101335223B1 publication Critical patent/KR101335223B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric 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/02Electric 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

본 발명은 차량 내 전자제어장치를 USB 디바이스를 통해 리프로그래밍하는 방법 및 리프로그래밍 전자제어장치에 관한 것으로서, 본 발명에 따른 차량용 전자제어장치의 리프로그래밍 방법은, 리프로그래밍(Reprogramming) 전자제어장치(Electronic Control Unit: ECU)가 USB(Universal Serial Bus) 디바이스의 입력 여부를 확인하는 단계; USB 디바이스의 입력이 확인된 경우, 상기 리프로그래밍 전자제어장치가 상기 USB 디바이스 내에 리프로그래밍 관련 파일이 존재하는지 확인하는 단계; 상기 USB 디바이스 내에 리프로그래밍 관련 파일이 존재하는 경우, 상기 리프로그래밍 전자제어장치가 상기 리프로그래밍 관련 파일의 상태를 확인하는 단계; 상기 리프로그래밍 관련 파일의 상태가 정상인 경우, 상기 리프로그래밍 전자제어장치가 상태 모드를 리프로그래밍 모드로 변환하는 단계; 상기 리프로그래밍 전자제어장치가 타겟 전자제어장치를 리프로그래밍 하는 단계; 및 상기 타겟 전자제어장치의 리프로그래밍이 완료된 경우, 상기 리프로그래밍 전자제어장치가 상기 상태 모드를 대기 모드로 변환하는 단계를 포함한다.
이에 따라 스캔툴이나 노트북 컴퓨터 대신 USB 디바이스를 이용하여 간편하게 전자제어장치를 리프로그램을 수행할 수 있어, 전자제어장치의 리프로그래밍 작업이 용이해지며, 각종 스캔툴이나 노트북 컴퓨터 그리고 이를 이용하기 위한 통신장비를 구비할 필요가 없기 때문에 리프로그래밍하는 비용을 절감할 수 있다.
The present invention relates to a method for reprogramming an in-vehicle electronic control apparatus through a USB device and to a reprogramming electronic control apparatus. The reprogramming method for an electronic control apparatus for a vehicle according to the present invention includes a reprogramming electronic control apparatus ( Checking, by an electronic control unit (ECU), whether a universal serial bus (USB) device is input; When the input of the USB device is confirmed, the reprogramming electronic controller checking whether a reprogramming related file exists in the USB device; When the reprogramming related file exists in the USB device, checking, by the reprogramming electronic controller, the state of the reprogramming related file; When the state of the reprogramming-related file is normal, the reprogramming electronic controller converts the state mode to the reprogramming mode; Reprogramming a target electronic controller by the reprogramming electronic controller; And when the reprogramming of the target electronic controller is completed, the reprogramming electronic controller converts the state mode to the standby mode.
This makes it possible to easily reprogram the electronic controller using a USB device instead of a scan tool or a notebook computer, making it easier to reprogram the electronic controller. The cost of reprogramming can be reduced because there is no need for equipment.

Description

차량용 전자제어장치의 리프로그래밍 방법 및 리프로그래밍 전자제어장치 {REPROGRAMMING METHOD OF ELECTRONIC CONTROL UNIT FOR VEHICLE AND REPROGRAMMING ELECTRONIC CONTROL UNIT}REPROGRAMMING METHOD OF ELECTRONIC CONTROL UNIT FOR VEHICLE AND REPROGRAMMING ELECTRONIC CONTROL UNIT}

본 발명은 차량용 전자제어장치의 리프로그래밍 방법 및 리프로그래밍 전자제어장치에 관한 것으로, 더욱 상세하게 USB(Universal Serial Bus) 디바이스를 이용하여 차량 내 전자제어장치를 리프로그래밍하는 방법과 리프로그래밍 전자제어장치에 관한 것이다.
The present invention relates to a reprogramming method and a reprogramming electronic control device for an electronic control device for a vehicle, and more particularly, to a method for reprogramming an electronic control device in a vehicle using a universal serial bus (USB) device and a reprogramming electronic control device. It is about.

자동차 산업은 기계적인 장치보다 수많은 전자제어장치를 통해 눈부시게 발전해가고 있으며 그 수는 계속적으로 증가하고 있다. 이렇게 증가하고 있는 수많은 전자제어장치는 소프트웨어를 통해 동작하며, 차량이 보다 정확하고 안전하게 동작할 수 있도록 도움을 주고 있다. The automotive industry is developing with more electronic controls than mechanical devices, and the number continues to grow. This growing number of electronic controls, operated through software, help the vehicle operate more accurately and safely.

이러한 전자제어장치의 소프트웨어는 문제가 발생했을 경우뿐만 아니라 보다 나은 성능을 제공하기 위해서 소프트웨어 업데이트를 수행할 필요가 있으며, 이를 위해 스캔툴(Scan Tool)이나 노트북 컴퓨터 등과 같은 장비들이 사용되고 있다. 선행기술 한국공개번호 제10-2001-0027466호는 컴퓨터를 이용한 전자제어유닛 리프로그래밍 방법을 보여주고 있다.The software of the electronic control device needs to perform a software update not only when a problem occurs but also to provide better performance. For this, equipment such as a scan tool or a notebook computer is used. Prior Art Korean Patent Publication No. 10-2001-0027466 shows a method for reprogramming an electronic control unit using a computer.

그러나 이러한 스캔툴이나 노트북 컴퓨터 등의 장비는 전자제어장치의 리프로그래밍만이 필요로 할 경우에는 효율적이지 못하다. 더욱 자세히 설명하면, 종래처럼 스캔툴이나 노트북 컴퓨터를 이용하여 전자제어유닛을 리프로그래밍 하거나 전자제어유닛 관련 제품을 개발하는 경우, 크기가 큰 스캔툴이나 노트북 컴퓨터를 이용하므로 작업하는데 큰 번거로움이 있다.However, such a scan tool or a laptop computer is not efficient when only the reprogramming of the electronic controller is required. In more detail, when reprogramming an electronic control unit or developing a product related to an electronic control unit using a scan tool or a notebook computer as in the prior art, a large scan tool or a notebook computer is used, which is a great inconvenience to work with. .

또한, 여러 전자제어장치를 리프로그래밍하거나 소프트웨어를 업데이트 하기 위해 다양한 스캔툴과 이를 위한 통신장비를 구비해야 하므로 전체적인 개발비용이 증가하는 문제점이 있다.
In addition, there is a problem in that the overall development cost increases because it is necessary to have a variety of scanning tools and communication equipment for reprogramming a number of electronic control devices or updating the software.

상기 문제점에 따라, 본 발명이 해결하고자 하는 과제는 전자제어장치의 리프로그래밍 작업 시 보다 효율적이고 편리하게 수행할 수 있도록 스캔툴이나 노트북 컴퓨터를 대신 디바이스를 이용하여 전자제어장치의 리프로그램을 수행하는 방법 및 리프로그래밍 전자제어장치를 제공하는 것이다.
In accordance with the above problems, the problem to be solved by the present invention is to perform the reprogramming of the electronic control device using a device instead of a scan tool or a notebook computer to perform more efficiently and conveniently during the reprogramming operation of the electronic control device A method and a reprogramming electronic control apparatus are provided.

이러한 기술적 과제를 해결하기 위한 본 발명에 따른 차량용 전자제어장치의 리프로그래밍 방법은, 리프로그래밍(Reprogramming) 전자제어장치(Electronic Control Unit: ECU)가 USB(Universal Serial Bus) 디바이스의 입력 여부를 확인하는 단계; USB 디바이스의 입력이 확인된 경우, 상기 리프로그래밍 전자제어장치가 상기 USB 디바이스 내에 리프로그래밍 관련 파일이 존재하는지 확인하는 단계; 상기 USB 디바이스 내에 리프로그래밍 관련 파일이 존재하는 경우, 상기 리프로그래밍 전자제어장치가 상기 리프로그래밍 관련 파일의 상태를 확인하는 단계; 상기 리프로그래밍 관련 파일의 상태가 정상인 경우, 상기 리프로그래밍 전자제어장치가 상태 모드를 리프로그래밍 모드로 변환하는 단계; 상기 리프로그래밍 전자제어장치가 타겟 전자제어장치를 리프로그래밍 하는 단계; 및 상기 타겟 전자제어장치의 리프로그래밍이 완료된 경우, 상기 리프로그래밍 전자제어장치가 상기 상태 모드를 대기 모드로 변환하는 단계를 포함한다.In order to solve the technical problem, a reprogramming method of an electronic control apparatus for a vehicle according to the present invention includes reprogramming an electronic control unit (ECU) to check whether a USB (Universal Serial Bus) device is input. step; When the input of the USB device is confirmed, the reprogramming electronic controller checking whether a reprogramming related file exists in the USB device; When the reprogramming related file exists in the USB device, checking, by the reprogramming electronic controller, the state of the reprogramming related file; When the state of the reprogramming-related file is normal, the reprogramming electronic controller converts the state mode to the reprogramming mode; Reprogramming a target electronic controller by the reprogramming electronic controller; And when the reprogramming of the target electronic controller is completed, the reprogramming electronic controller converts the state mode to the standby mode.

또한, 상기 리프로그래밍 전자제어장치가 USB 디바이스의 입력 여부를 확인하는 단계는 상기 리프로그래밍 전자제어장치가 IG(ignition)키가 온 상태이고, 차량 변속기는 파킹(parking)상태이고, 파킹 브레이크(parking brake)가 록킹(locking)된 상태에서 USB 디바이스의 입력 여부를 확인할 수 있다.The reprogramming electronic controller may determine whether the USB device is input, wherein the reprogramming electronic controller is in an IG (ignition) key state, the vehicle transmission is in a parking state, and the parking brake is parked. You can check whether the USB device is input while the brake is locked.

또한, 상기 리프로그래밍 전자제어장치가 상기 USB 디바이스의 입력 여부를 주기적으로 확인할 수 있다.The reprogramming electronic controller may periodically check whether the USB device is input.

또한, 차량의 시동이 걸리지 않은 상태에서 상기 리프로그래밍 전자제어장치가 USB 디바이스의 입력 여부를 확인할 수 있다.Also, the reprogramming electronic controller may check whether the USB device is input while the vehicle is not started.

또한, 상기 타겟 전자제어장치의 리프로그래밍 정상 완료 여부는 차량 내 계기판, 램프 또는 경음기 중 어느 하나 이상으로 완료 여부를 표시할 수 있다.In addition, whether the reprogramming of the target electronic controller is normally completed may be indicated by one or more of an instrument panel, a lamp, or a horn in the vehicle.

한편, 본 발명에 따른 리프로그래밍 전자제어장치는 USB(Universal Serial Bus) 디바이스의 입력 여부를 확인하고, 상기 USB 디바이스 내에 리프로그램밍(Reprogramming) 관련 파일의 존재 및 상태를 확인하며, 상태모드를 리프로그램 모드 또는 대기 모드로 변환하고, 해당 타겟 전자제어장치의 리프로그래밍을 수행하는 제어부; 상기 제어부의 명령을 받아 USB 디바이스 및 타켓 전자제어장치와 통신을 수행하는 통신부; 및 상기 통신부로부터 전송받은 리프로그래밍을 위한 프로그램 코드 및 설정정보를 저장하는 메모리를 포함한다.Meanwhile, the reprogramming electronic control apparatus according to the present invention checks whether a USB (Universal Serial Bus) device is input, checks the existence and status of a reprogramming related file in the USB device, and reprograms a status mode. A control unit for converting to a standby mode or a standby mode and performing reprogramming of the target electronic controller; A communication unit configured to communicate with a USB device and a target electronic controller by receiving a command from the controller; And a memory for storing program code and setting information for reprogramming received from the communication unit.

또한, 상기 제어부는 IG(ignition)키가 온 상태이고, 차량 변속기는 파킹(parking)상태이고, 파킹 브레이크(parking brake)가 록킹(locking)된 상태에서 USB 디바이스의 입력 여부를 확인할 수 있다.The controller may check whether the USB device is input while the IG (ignition) key is on, the vehicle transmission is in the parking state, and the parking brake is locked.

또한, 상기 제어부는 상기 USB 디바이스의 입력 여부를 주기적으로 확인할 수 있다.The controller may periodically check whether the USB device is input.

또한, 상기 제어부는 차량의 시동이 걸리지 않은 상태에서 USB 디바이스의 입력 여부를 확인할 수 있다.The controller may determine whether the USB device is input while the vehicle is not started.

또한, 상기 제어부는 상기 타겟 전자제어장치의 정상적인 리프로그래밍 완료여부를 차량 내 계기판, 램프 또는 경음기 중 어느 하나 이상으로 표시할 수 있다.
In addition, the controller may display whether the normal reprogramming of the target electronic control device is completed by any one or more of an instrument panel, a lamp, or a horn in the vehicle.

본 발명에 의하면, 스캔툴이나 노트북 컴퓨터 대신 USB 디바이스를 이용하여 간편하게 전자제어장치를 리프로그램을 수행할 수 있어, 전자제어장치의 리프로그래밍 작업이 용이해지며, 각종 스캔툴이나 노트북 컴퓨터 그리고 이를 이용하기 위한 통신장비를 구비할 필요가 없기 때문에 리프로그래밍하는 비용을 절감할 수 있다.
According to the present invention, it is possible to easily reprogram the electronic controller using a USB device instead of a scan tool or a notebook computer, thereby facilitating the reprogramming of the electronic controller. The cost of reprogramming can be reduced because there is no need to have communication equipment.

도 1은 종래 발명에 따른 전자제어장치의 리프로그래밍을 설명하기 위해 제공되는 블록을 도시한 것이다.
도 2는 본 발명의 일실시예에 따른 전자제어장치의 리프로그래밍을 설명하기 위해 제공되는 블록을 도시한 것이다.
도 3은 본 발명의 일실시예에 따른 전자제어장치의 리프로그래밍 동작을 설명하기 위해 제공되는 흐름을 도시한 것이다.
Figure 1 shows a block provided for explaining the reprogramming of the electronic control apparatus according to the prior invention.
Figure 2 shows a block provided to explain the reprogramming of the electronic control apparatus according to an embodiment of the present invention.
3 illustrates a flow provided to explain the reprogramming operation of the electronic control apparatus according to an embodiment of the present invention.

이하, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 본 발명의 구현예 및 실시예를 들어 상세히 설명한다.Hereinafter, embodiments and examples of the present invention will be described in detail so that those skilled in the art may easily implement the present invention.

본 명세서 및 청구범위에 사용된 용어나 단어는 통상적이거나 사전적인 의미로 한정 해석되지 아니하며, 발명자는 그 자신의 발명을 최선의 방법으로 설명하기 위하여 용어의 개념을 적절하게 정의할 수 있다는 원칙에 입각하여 본 발명의 기술적 사상에 부합하는 의미와 개념을 이해해야 할 것이다. 또한, 본 발명의 요지를 불필요하게 흐리거나 제한할 수 있다고 판단되는 공지 기능 및 구성에 대한 상세한 설명 및 도면의 도시는 생략한다.It is to be understood that the words or words used in the present specification and claims are not to be construed in a conventional or dictionary sense and that the inventor is capable of properly defining the concept of a term in order to explain its invention in the best way Therefore, it is necessary to understand the meaning and the concept in accordance with the technical idea of the present invention. Further, the detailed description of known functions and configurations and those of the drawings, which are deemed to be unnecessarily obscured or limited, are not shown.

이하, 첨부한 도면 및 구현예와 실시예를 들어, 본 발명에 속한 기술 분야의 평균적 지식을 가진 자가 용이하게 본 발명을 반복 재현할 수 있도록 상세히 설명하도록 한다. Hereinafter, with reference to the accompanying drawings and embodiments and embodiments, it will be described in detail so that those skilled in the art can easily reproduce the present invention.

도 2은 본 발명의 일 실시예에 따른 차량용 전자제어장치의 리프로그래밍 방법을 설명하기 위해 제공되는 흐름도이다.2 is a flowchart provided to explain a reprogramming method of an electronic control apparatus for a vehicle according to an exemplary embodiment of the present invention.

도 2을 참고하면, 사용자는 차량 내 각종 전자제어장치를 리프로그래밍 하기 위해 미리 마련된 USB 포트에 USB 디바이스(200)를 연결한다(S100). 본 USB 디바이스(200)는 파일을 저장할 수 있는 장치로, 일반적인 USB 메모리나 외장형 하드드라이브 등이 포함될 수 있다.Referring to FIG. 2, a user connects the USB device 200 to a USB port prepared in advance for reprogramming various electronic control apparatuses in a vehicle (S100). The USB device 200 is a device capable of storing files, and may include a general USB memory or an external hard drive.

사용자가 USB 디바이스(200)를 차량에 연결하면, 리프로그래밍 전자제어장치(150)는 USB 디바이스(200)가 연결되어 있는지 확인한다(S300). 더욱 바람직하게는, USB 디바이스(200) 연결을 확인하기 전에 차량의 IG 키가 온 상태인지 여부, 변속기어가 파킹상태인지 여부 및 파킹 브레이크가 록킹상태인지 여부를 확인하고(S200), 모든 상태가 확인되는 경우에 USB 디바이스(200)의 연결여부를 확인할 수 있다(S300). When the user connects the USB device 200 to the vehicle, the reprogramming electronic controller 150 checks whether the USB device 200 is connected (S300). More preferably, before confirming the connection of the USB device 200, whether the IG key of the vehicle is in an on state, whether the transmission gear is in a parking state, and whether the parking brake is in a locking state (S200), and checks all states If it is possible to check whether the USB device 200 is connected (S300).

일반적인 차량의 경우, 차량 키가 삽입되어 회전된 위치에 따라 차량의 상태가 다양하게 변할 수 있다. 차량 키의 회전된 위치에 따라 lock - acc on - ign(tion) on - (ignition) start로 나뉠 수 있다. 각 위치에 따른 차량 상태는, lock 인 경우 스티어링 휠이 고정되며, acc on 경우 창문 조작은 불가능하나 오디오는 작동할 수 있고, ign on인 경우 엔진 시동은 걸지 않았지만, 창문 조작이 가능하며, start인 경우 엔진 시동이 걸린다. 운전자가 차량 키를 start 위치까지 회전시키면 엔진에 시동이 걸리며, 이후 차량 키는 외력이 가해지지 않는 이상 다시 ign on 위치로 재회전된다.In the case of a general vehicle, the state of the vehicle may vary according to the position where the vehicle key is inserted and rotated. It can be divided into lock-acc on-ign (tion) on-(ignition) start depending on the rotated position of the vehicle key. Vehicle status according to each position, the steering wheel is fixed in the case of lock, the window can not be operated in the case of acc on but the audio can be operated, the engine can be operated in the case of ign on, but the window can be operated, If it takes engine start. When the driver turns the vehicle key to the start position, the engine starts and the vehicle key is then rotated back to the ign on position unless external force is applied.

차량 키는 엔진에 시동을 걸기 위해 start 위치까지 돌아간 다음 ign on에 위치할 수 있고, 혹은 차량 키를 start 위치까지 돌리지 않고 start 위치 이전인 ign on까지 회전되어 위치할 수 있다. 즉, 엔진에 시동이 걸렸는지 여부와 무관하게 차량 키는 ign on 위치에 놓일 수 있다. The vehicle key can be returned to the start position and then ign on to start the engine, or it can be rotated to an ign on before the start position without turning the vehicle key to the start position. That is, the vehicle key can be placed in the ign on position regardless of whether the engine has been started.

본 발명은 엔진에 시동이 걸린 경우와 걸리지 않는 경우 모두에 대해서 리프로그래밍하는 것을 상정하며, 더욱 바람직하게는, 엔진에 시동이 걸리지 않은 상태에서 리프로그래밍을 수행한다.The present invention contemplates reprogramming both when the engine is started and when it is not, and more preferably, reprogramming is performed while the engine is not started.

본 발명에 따른 리프로그래밍 전자제어장치(150)는 차량의 IG 키가 온 상태인지 여부, 변속기어가 파킹상태인지 여부 및 파킹 브레이크가 록킹상태인지 여부를 확인함으로써(S200), 사용자 등이 안전하게 작업할 수 있는 환경을 제공한다. 또한, 차량의 IG 키가 온 상태인지 여부, 변속기어가 파킹상태인지 여부 및 파킹 브레이크가 록킹상태인지 여부가 확인(S200)된 경우에 한하여, USB 디바이스(200)의 연결 여부를 확인(S300)하도록 함으로써, 아무런 동작 수행 조건(IG 키 온, 변속기어가 파킹, 파킹 브레이크 록킹 및 엔진 시동 멈춤) 없이 지속적으로 USB 디바이스(200)가 연결되었는지 확인하는 경우에 비해, 소모되는 에너지를 줄일 수 있다.The reprogramming electronic controller 150 according to the present invention checks whether the IG key of the vehicle is on, whether the transmission gear is parked and whether the parking brake is locked (S200), so that the user can safely work. Provide an environment that can In addition, only when the IG key of the vehicle is on, whether the transmission gear is in the parking state and the parking brake is in the locked state is checked (S200), so as to check whether the USB device 200 is connected (S300). As a result, compared to the case where the USB device 200 is continuously connected without any operation performance condition (IG key on, transmission gear parking, parking brake locking and engine start stop), energy consumption may be reduced.

이후, USB 디바이스(200)가 연결된 것으로 확인되면, 리프로그래밍 전자제어장치(150)는 USB 디바이스(200) 내 특정 폴더 등에 리프로그래밍 관련 파일이 존재하는지 확인한다(S500). 관련 파일이 존재하지 않는 경우 더 이상 리프로그래밍 전자제어장치(150)는 동작하지 않으며, USB 디바이스(200)가 연결 해제될 때까지 대기하게 된다.Thereafter, when it is confirmed that the USB device 200 is connected, the reprogramming electronic controller 150 checks whether a reprogramming related file exists in a specific folder in the USB device 200 (S500). If the related file does not exist, the reprogramming electronic controller 150 no longer operates, and waits until the USB device 200 is disconnected.

만약 USB 디바이스(200) 내 특정 폴더 등에 프로그래밍 관련 파일이 존재하면, 해당 파일의 내부 구조를 확인하고 파일의 상태가 정상인지 판별하여, 문제가 없는 파일인 경우, 리프로그래밍 설정에 따라 리프로그래밍 상태로 동작하기 위해 차량 내 관련 전자제어장치를 리프로그램 모드로 변환시킨다(S550). 그러나 파일에 문제가 있음이 확인되면 더 이상 리프로그램을 수행하지 않고 대기모드로 변환한다. 이때, 관련 전자제어장치의 모드를 저장하기 위한 공간을 메모리 등에 둘 수 있다.If programming-related files exist in a specific folder in the USB device 200, the internal structure of the file is checked and the status of the file is normal. If the file does not have any problem, the file is reprogrammed according to the reprogramming settings. In operation S550, the related electronic controller in the vehicle is converted to a reprogram mode. However, if it finds a problem with the file, it does not need to reprogram any more and switches to standby mode. In this case, a space for storing the mode of the associated electronic control apparatus may be provided in a memory or the like.

리프로그래밍 모드 상태에서 리프로그래밍 전자제어장치(150)는 각종 설정정보 및 프로그램 코드를 메모리(157)에 복사한 후 리프로그래밍을 진행한다(S600). In the reprogramming mode, the reprogramming electronic controller 150 copies various setting information and program codes to the memory 157 and then proceeds to reprogramming (S600).

또한, 리프로그래밍 전자제어장치(150)는 상기 메모리(157)에 복사된 프로그램 코드와 원본인 USB 디바이스(200) 내에 저장된 프로그램 코드에 차이가 없는지 확인을 수행하며, 차이가 없는 경우 상기 설정정보에 따라 자동으로 리프로그래밍을 수행한다(S800). 메모리(157)에 복사된 프로그램 코드와 원본 프로그램 코드가 동일한지 여부는 각 코드의 체크섬(check sum) 등을 비교하여 판단할 수 있다.In addition, the reprogramming electronic controller 150 checks whether there is a difference between the program code copied to the memory 157 and the program code stored in the original USB device 200, and if there is no difference, According to the automatic reprogramming (S800). Whether the program code copied to the memory 157 and the original program code are the same can be determined by comparing a check sum of each code.

이때, 리프로그래밍 전자제어장치(150)는 리프로그래밍 과정이 수행 중인지 혹은 완료되었는지를 표시할 수 있다. 예를 들어, 리프로그래밍 전자제어장치(150)는 리프로그래밍이 수행되는 동안에 계기판에 리프로그램 중이라는 표시를 나타내고, 리프로그램이 정상적으로 완료된 경우 정상 완료 표시를 나타내도록 제어할 수 있다(S900). 유사하게, 리프로그래밍 전자제어장치(150)는 리프로그래밍이 수행되는 동안에는 방향지시등을 켜놓는 것으로 리프로그래밍 중임을 표시할 수 있고, 리프로그램이 정상적으로 완료된 경우 방향지시등을 수 번 깜빡이는 것으로 리프로그래밍 완료를 표시할 수 있다.In this case, the reprogramming electronic controller 150 may display whether the reprogramming process is being performed or completed. For example, the reprogramming electronic controller 150 may display an indication that the instrument panel is being reprogrammed while the reprogramming is being performed, and display a normal completion display when the reprogram is normally completed (S900). Similarly, the reprogramming electronic controller 150 may indicate that the reprogramming is in progress by turning on the direction indicator while the reprogramming is being performed, and the reprogramming is completed by blinking the direction indicator several times when the reprogramming is completed. I can display it.

한편, 리프로그래밍이 정상완료되지 않고 실패한 경우, 리프로그래밍 실패를 표시할 수 있다(S950). 리프로그래밍이 실패한 경우, 리프로그래밍 전자제어장치(150)는 관련 전자제어장치의 상태를 대기 모드로 전환한다(S1000).On the other hand, if the reprogramming fails to complete normally, it may indicate that the reprogramming failure (S950). If the reprogramming fails, the reprogramming electronic controller 150 switches the state of the associated electronic controller to the standby mode (S1000).

도 3는 본 발명의 일 실시예에 따른 차량용 리프로그래밍 전자제어장치(150)를 설명하기 위해 제공되는 블록도이다.3 is a block diagram provided to explain a vehicle reprogramming electronic control apparatus 150 according to an embodiment of the present invention.

도 3를 참고하면, 본 발명에 따른 리프로그래밍 전자제어장치(150)는 제어부(153), 통신부(155) 및 메모리(157)를 포함할 수 있다.Referring to FIG. 3, the reprogramming electronic controller 150 according to the present invention may include a controller 153, a communication unit 155, and a memory 157.

제어부(153)는 USB 디바이스(200)의 입력 여부를 확인하고, USB 디바이스(200) 내에 리프로그래밍 관련 파일이 존재하는지를 확인하며, 파일이 존재하는 경우 파일의 상태를 확인한다. 또한, 제어부(153)는 전자제어장치의 상태를 리프로그램 모드 또는 대기 모드로 변환할 수 있으며, 리프로그램의 대상이 되는 전자제어장치(170)(이하 타켓 전자제어장치라 함)의 리프로그래밍을 수행한다.The controller 153 checks whether the USB device 200 is input, checks whether a reprogramming related file exists in the USB device 200, and checks the state of the file if the file exists. In addition, the controller 153 may convert a state of the electronic controller into a reprogram mode or a standby mode, and reprogram the electronic controller 170 (hereinafter, referred to as a target electronic controller) that is the target of the reprogram. Perform.

더욱 상세하게는, 제어부(153)는 IG 키가 온 상태인지 여부, 변속기어가 파킹상태인지 여부 및 파킹 브레이크가 록킹상태인지 여부가 확인된 경우에 차량의 USB 포트에 USB 디바이스(200)가 연결되었는지 여부를 주기적으로 확인할 수 있다. More specifically, the controller 153 determines whether the USB device 200 is connected to the USB port of the vehicle when it is confirmed whether the IG key is on, whether the transmission gear is parked, and whether the parking brake is locked. You can check periodically.

또한, 제어부(153)는 차량의 USB 포트에 USB 디바이스(200)가 연결된 경우에 USB 디바이스(200) 내 특정 폴더 등에 리프로그래밍 관련 파일이 존재하는지 확인할 수 있다. 확인 결과, 관련 파일이 존재하지 않는 경우, 제어부(153)는 더 이상 리프로그래밍 전자제어장치(150)를 동작시키지 않으며, USB 디바이스(200)가 연결 해제될 때까지 대기한다.In addition, when the USB device 200 is connected to the USB port of the vehicle, the controller 153 may check whether a reprogramming related file exists in a specific folder in the USB device 200. As a result of the check, if the related file does not exist, the controller 153 no longer operates the reprogramming electronic controller 150 and waits until the USB device 200 is disconnected.

또한, 제어부(153)는 USB 디바이스(200) 내 특정 폴더 등에 프로그래밍 관련 파일이 존재하면, 해당 파일의 내부 구조를 확인하고 파일의 상태가 정상인지 판별하여, 문제가 없는 파일인 경우 리프로그래밍 설정에 따라 리프로그래밍 상태로 동작하기 위해 타켓 전자제어장치(170)를 리프로그램 모드로 변환시킬 수 있으며, 상기 파일에 문제가 있는 경우 리프로그램을 수행하지 않고 대기 모드로 변환시킬 수 있다.In addition, if a programming related file exists in a specific folder in the USB device 200, the controller 153 checks the internal structure of the file and determines whether the file is in a normal state. Accordingly, in order to operate in the reprogramming state, the target electronic controller 170 may be converted into a reprogram mode, and if there is a problem with the file, the target electronic controller 170 may be converted into a standby mode without performing a reprogram.

또한, 제어부(153)는 리프로그래밍 모드 상태에서 각종 설정정보 및 프로그램 코드를 메모리(157)에 복사하며, 메모리(157)에 복사된 프로그램 코드와 원본인 USB 디바이스(200) 내에 저장된 프로그램 코드에 차이가 없는지 확인할 수 있다. 차이가 없는 경우 제어부(153)는 타겟 전자제어장치(170)의 리프로그래밍을 수행한다.In addition, the controller 153 copies various setting information and program codes to the memory 157 in the reprogramming mode, and there is a difference between the program codes copied to the memory 157 and the program codes stored in the original USB device 200. You can check that there is no. If there is no difference, the controller 153 performs reprogramming of the target electronic controller 170.

또한, 제어부(153)는 리프로그래밍 과정이 수행 중인지 혹은 정상 완료되었는지를 표시할 수 있다. 예를 들어, 제어부(153)는 계기판, 방향지시등, 헤드램프 또는 경음기 등 사용자가 인지할 수 있는 표시부(190)를 통해 리프로그램 과정 및 정상 완료 여부를 표시할 수 있다.In addition, the controller 153 may display whether the reprogramming process is being performed or is normally completed. For example, the controller 153 may display the reprogramming process and whether it is normally completed through the display unit 190 that the user can recognize, such as a dashboard, a direction indicator, a head lamp, or a horn.

또한, 제어부(153)는 리프로그래밍이 정상완료되지 않는 경우, 표시부(190)를 통해 리프로그래밍 실패를 알리고 타켓 전자제어장치(170)를 대기모드로 변환할 수 있다.In addition, when the reprogramming is not normally completed, the controller 153 may notify the reprogramming failure through the display unit 190 and convert the target electronic controller 170 to the standby mode.

통신부(155)는 제어부(153)의 명령을 받아 리프로그래밍을 위한 프로그램 코드를 저장하고 있는 USB 디바이스(200) 및 타겟 전자제어장치(170)와 통신을 수행한다.The communication unit 155 communicates with the USB device 200 and the target electronic controller 170 that store the program code for reprogramming in response to a command of the controller 153.

메모리(157)는 제어부(153)의 명령을 받아 통신부(155)를 통해 전송받은 USB 디바이스(200)로부터의 리프로그래밍을 위한 프로그램 코드 및 설정 정보를 저장한다.The memory 157 stores a program code and setting information for reprogramming from the USB device 200 received through the communication unit 155 under the command of the control unit 153.

이상과 같은 본 발명의 리프로그래밍 전자제어장치에 의하면, 스캔툴이나 노트북 컴퓨터 대신 USB 디바이스를 이용하여 간편하게 전자제어장치를 리프로그램을 수행할 수 있어, 전자제어장치의 리프로그래밍 작업이 용이해지며, 각종 스캔툴이나 노트북 컴퓨터 그리고 이를 이용하기 위한 통신장비를 구비할 필요가 없기 때문에 리프로그래밍하는 비용을 절감할 수 있다.
According to the reprogramming electronic control apparatus of the present invention as described above, it is possible to easily reprogram the electronic control apparatus using a USB device instead of a scan tool or a notebook computer, so that the reprogramming operation of the electronic control apparatus is facilitated. The cost of reprogramming can be reduced because there is no need to have a variety of scanning tools, notebook computers and communication equipment to use them.

100: 차량 150: 리프로그래밍 전자제어유닛
153: 제어부 155: 통신부
157: 메모리 170: 타겟 전자제어유닛
190: 표시부 200: USB 디바이스
100: vehicle 150: reprogramming electronic control unit
153: control unit 155: communication unit
157: memory 170: target electronic control unit
190: display unit 200: USB device

Claims (10)

리프로그래밍(Reprogramming) 전자제어장치(Electronic Control Unit: ECU)가 USB(Universal Serial Bus) 디바이스의 입력 여부를 확인하는 단계;
USB 디바이스의 입력이 확인된 경우, 상기 리프로그래밍 전자제어장치가 상기 USB 디바이스 내에 리프로그래밍 관련 파일이 존재하는지 확인하는 단계;
상기 USB 디바이스 내에 리프로그래밍 관련 파일이 존재하는 경우, 상기 리프로그래밍 전자제어장치가 상기 리프로그래밍 관련 파일의 상태를 확인하는 단계;
상기 리프로그래밍 관련 파일의 상태가 정상인 경우, 상기 리프로그래밍 전자제어장치가 상기 리프로그래밍 전자제어장치의 상태 모드를 리프로그래밍 모드로 변환하는 단계;
상기 리프로그래밍 전자제어장치가 타겟 전자제어장치를 리프로그래밍 하는 단계; 및
상기 타겟 전자제어장치의 리프로그래밍이 완료된 경우, 상기 리프로그래밍 전자제어장치가 상기 상태 모드를 대기 모드로 변환하는 단계를 포함하고,
상기 리프로그래밍 전자제어장치가 USB 디바이스의 입력 여부를 확인하는 단계는, 상기 리프로그래밍 전자제어장치가 IG(ignition)키가 온 상태이고, 차량 변속기는 파킹(parking)상태이며, 파킹 브레이크(parking brake)가 록킹(locking)된 상태에서 USB 디바이스의 입력 여부를 확인하는, 차량용 전자제어장치의 리프로그래밍 방법.
Reprogramming an electronic control unit (ECU) to determine whether an input of a universal serial bus (USB) device;
When the input of the USB device is confirmed, the reprogramming electronic controller checking whether a reprogramming related file exists in the USB device;
When the reprogramming related file exists in the USB device, checking, by the reprogramming electronic controller, the state of the reprogramming related file;
Converting, by the reprogramming electronic controller, the state mode of the reprogramming electronic controller into a reprogramming mode when the state of the reprogramming related file is normal;
Reprogramming a target electronic controller by the reprogramming electronic controller; And
When the reprogramming of the target electronic controller is completed, the reprogramming electronic controller converts the state mode into a standby mode,
The reprogramming electronic controller determines whether the USB device is input, wherein the reprogramming electronic controller is in an IG (ignition) key state, the vehicle transmission is in a parking state, and a parking brake. Re-programming method of the electronic control device for a vehicle to check whether or not the input of the USB device in the locked state.
삭제delete 제1 항에 있어서,
상기 리프로그래밍 전자제어장치가 상기 USB 디바이스의 입력 여부를 주기적으로 확인하는, 차량용 전자제어장치의 리프로그래밍 방법.
The method according to claim 1,
And the reprogramming electronic controller periodically checks whether the USB device is input.
제1 항에 있어서,
상기 리프로그래밍 전자제어장치가 차량의 시동이 걸리지 않은 상태에서 USB 디바이스의 입력 여부를 확인하는, 전자제어장치의 리프로그래밍 방법.
The method according to claim 1,
And the reprogramming electronic controller checks whether a USB device is input while the vehicle is not started.
제1 항에 있어서,
상기 타겟 전자제어장치의 리프로그래밍 정상 완료 여부는 차량 내 계기판, 램프 또는 경음기 중 어느 하나 이상으로 완료 여부를 표시하는, 전자제어장치의 리프로그래밍 방법.
The method according to claim 1,
The reprogramming normal completion of the target electronic control device indicates whether the completion of any one or more of the instrument panel, lamp or horn in the vehicle, reprogramming method of the electronic control device.
리프로그래밍(Reprogramming) 전자제어장치(Electronic Control Unit: ECU)에 있어서,
USB(Universal Serial Bus) 디바이스의 입력 여부를 확인하고, 상기 USB 디바이스 내에 리프로그램밍(Reprogramming) 관련 파일의 존재 및 상태를 확인하며, 상기 리프로그래밍 전자제어장치의 상태모드를 리프로그램 모드 또는 대기 모드로 변환하고, 해당 타겟 전자제어장치의 리프로그래밍을 수행하는 제어부;
상기 제어부의 명령을 받아 USB 디바이스 및 타켓 전자제어장치와 통신을 수행하는 통신부; 및
상기 통신부로부터 전송받은 리프로그래밍을 위한 프로그램 코드 및 설정정보를 저장하는 메모리를 포함하고,
상기 제어부는 IG(ignition)키가 온 상태이고, 차량 변속기는 파킹(parking)상태이고, 파킹 브레이크(parking brake)가 록킹(locking)된 상태에서 USB 디바이스의 입력 여부를 확인하는, 리프로그래밍 전자제어장치.
In Reprogramming Electronic Control Unit (ECU),
Check whether a USB (Universal Serial Bus) device is input, check the existence and status of reprogramming-related files in the USB device, and change the status mode of the reprogramming electronic controller to the reprogramming or standby mode. A control unit for converting and performing reprogramming of the target electronic controller;
A communication unit configured to communicate with a USB device and a target electronic controller by receiving a command from the controller; And
A memory for storing program code and setting information for reprogramming received from the communication unit;
The control unit is a reprogramming electronic control for checking whether the USB device is input while the IG (ignition) key is on, the vehicle transmission is in the parking state, and the parking brake is locked. Device.
삭제delete 제6 항에 있어서,
상기 제어부는 상기 USB 디바이스의 입력 여부를 주기적으로 확인하는, 리프로그래밍 전자제어장치.
The method of claim 6,
And the controller periodically checks whether the USB device is input.
제6 항에 있어서,
상기 제어부는 차량의 시동이 걸리지 않은 상태에서 USB 디바이스의 입력 여부를 확인하는, 리프로그래밍 전자제어장치.
The method of claim 6,
The control unit reprogramming electronic control device for checking whether the USB device is input in the state that the vehicle is not started.
제6 항에 있어서,
상기 리프로그래밍 전자제어장치는 상기 타겟 전자제어장치의 정상적인 리프로그래밍 완료여부를 차량 내 계기판, 램프 또는 경음기 중 어느 하나 이상으로 표시하는, 리프로그래밍 전자제어장치.
The method of claim 6,
The reprogramming electronic control device is a reprogramming electronic control device for displaying whether or not the completion of the normal reprogramming of the target electronic control device by any one or more of the instrument panel, lamp or horn in the vehicle.
KR1020110108331A 2011-10-21 2011-10-21 Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit KR101335223B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020110108331A KR101335223B1 (en) 2011-10-21 2011-10-21 Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020110108331A KR101335223B1 (en) 2011-10-21 2011-10-21 Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit

Publications (2)

Publication Number Publication Date
KR20130044069A KR20130044069A (en) 2013-05-02
KR101335223B1 true KR101335223B1 (en) 2013-11-29

Family

ID=48656685

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020110108331A KR101335223B1 (en) 2011-10-21 2011-10-21 Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit

Country Status (1)

Country Link
KR (1) KR101335223B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170022062A (en) 2015-08-19 2017-03-02 주식회사 엔지스테크널러지 Management server, telematics terminal and method thereof to support and provide optimum delta update
KR20180075933A (en) 2016-12-27 2018-07-05 슈어소프트테크주식회사 Method for reprograming of vehicle electrical controll unit and controll apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010113595A (en) * 2001-08-10 2001-12-28 이철재 System and method for collecting vehicle data and diagnosticating the vehicle, and method for automatically setting the vehicle convenience apparatus using smartcard
US7050795B2 (en) * 2004-06-24 2006-05-23 Denso International America, Inc. System for programming customizable vehicle features
JP2008191016A (en) 2007-02-05 2008-08-21 Fujitsu Ten Ltd Electronic device and electronic device system
KR20100066608A (en) * 2008-12-10 2010-06-18 재단법인대구경북과학기술원 Exterior electronic control unit apparatus, and method, apparatus and vehicle for extending electronic control unit with the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010113595A (en) * 2001-08-10 2001-12-28 이철재 System and method for collecting vehicle data and diagnosticating the vehicle, and method for automatically setting the vehicle convenience apparatus using smartcard
US7050795B2 (en) * 2004-06-24 2006-05-23 Denso International America, Inc. System for programming customizable vehicle features
JP2008191016A (en) 2007-02-05 2008-08-21 Fujitsu Ten Ltd Electronic device and electronic device system
KR20100066608A (en) * 2008-12-10 2010-06-18 재단법인대구경북과학기술원 Exterior electronic control unit apparatus, and method, apparatus and vehicle for extending electronic control unit with the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170022062A (en) 2015-08-19 2017-03-02 주식회사 엔지스테크널러지 Management server, telematics terminal and method thereof to support and provide optimum delta update
KR20180075933A (en) 2016-12-27 2018-07-05 슈어소프트테크주식회사 Method for reprograming of vehicle electrical controll unit and controll apparatus

Also Published As

Publication number Publication date
KR20130044069A (en) 2013-05-02

Similar Documents

Publication Publication Date Title
US20180341476A1 (en) Software updating device, software updating system, and software updating method
CN107792057B (en) Licensing for partially autonomous vehicle operation
CN1292232C (en) Data access method and device for vehicle carried information equipment access data
JP4650359B2 (en) Vehicle antenna connection diagnosis apparatus and vehicle antenna connection diagnosis method
JP4692231B2 (en) Electronic control device for vehicle
CN110244959B (en) Vehicle control system and software compatibility checking method
JPH09134307A (en) Memory rewriting system for electronic controller, the electronic controller and memory rewriting device
CN108944735A (en) Vehicle and for vehicle add auxiliary drive function method
KR101335223B1 (en) Reprogramming method of electronic control unit for vehicle and reprogramming electronic control unit
JP2000259420A (en) Device for updating learning value for electronic controller
JP2009019536A (en) Control device and method
JP5024096B2 (en) Vehicle control device
JP2010174507A (en) Control device for working machine
JP7044859B2 (en) Vehicle control device and program update system
US9446634B2 (en) Universal tire pressure sensor
US20110246887A1 (en) Infotainment System
JP6663777B2 (en) Vehicle control system and control method
US20220391192A1 (en) Ota master, center, system, method, non-transitory storage medium, and vehicle
JP2009026183A (en) Electronic control apparatus for automobile
US20220308857A1 (en) Control device and terminal device
US20220244946A1 (en) Ota master, update control method, non-transitory storage medium, and vehicle
JP4556653B2 (en) Program rewriting system for in-vehicle electronic control device, boot loader for computer in in-vehicle electronic control device, recording medium, and in-vehicle electronic control device
KR20160121920A (en) Calibration device of electronic control unit and operating method thereof
US20100073132A1 (en) Ignition system for a vehicle
JP5516509B2 (en) Program writing system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20161205

Year of fee payment: 6