KR100774731B1 - Vehicle ecu for program upgrade and method for operating the same - Google Patents

Vehicle ecu for program upgrade and method for operating the same Download PDF

Info

Publication number
KR100774731B1
KR100774731B1 KR1020060116802A KR20060116802A KR100774731B1 KR 100774731 B1 KR100774731 B1 KR 100774731B1 KR 1020060116802 A KR1020060116802 A KR 1020060116802A KR 20060116802 A KR20060116802 A KR 20060116802A KR 100774731 B1 KR100774731 B1 KR 100774731B1
Authority
KR
South Korea
Prior art keywords
code
cooling fan
vehicle
program upgrade
flash rom
Prior art date
Application number
KR1020060116802A
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 KR1020060116802A priority Critical patent/KR100774731B1/en
Application granted granted Critical
Publication of KR100774731B1 publication Critical patent/KR100774731B1/en

Links

Images

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
    • F01MACHINES OR ENGINES IN GENERAL; ENGINE PLANTS IN GENERAL; STEAM ENGINES
    • F01PCOOLING OF MACHINES OR ENGINES IN GENERAL; COOLING OF INTERNAL-COMBUSTION ENGINES
    • F01P5/00Pumping cooling-air or liquid coolants
    • F01P5/02Pumping cooling-air; Arrangements of cooling-air pumps, e.g. fans or blowers
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

An electronic control unit of a vehicle having a program upgrade function and an operation method thereof are provided to stop a cooling fan while program of the electronic control device is upgraded. An electronic control unit(ECU) of a vehicle includes a flash ROM(30) and a RAM(35) in a CPU. The flash ROM includes a re-program code(31) and a PWM cooling fan stop duty code(32). The re-program code is an algorithm code which erases all data codes of the flash ROM when program upgrade is performed and writes newly upgraded data codes in the flash ROM. The PWM cooling fan stop duty code outputs a duty signal for stopping a cooling fan of the vehicle. In the program upgrade mode, the re-program code and the PWM cooling fan stop duty code are copied and stored in the RAM.

Description

프로그램 업그레이드를 수행하는 차량 전자제어장치 및 그 동작 방법{Vehicle ECU for program upgrade and method for operating the same}Vehicle ECU for program upgrade and its operation method {Vehicle ECU for program upgrade and method for operating the same}

도 1은 일반적으로 스캔툴이 차량의 전자제어장치와 통신하며 차량 진단하는 모습을 도시한 그림이다.1 is a diagram illustrating a state in which a scan tool generally communicates with an electronic control apparatus of a vehicle and diagnoses a vehicle.

도 2는 일반적으로 스캔툴을 이용하여 전자제어장치의 프로그램 업그레이드될 때의 메모리 내부 블록 상태를 도시한 그림이다.2 is a diagram illustrating a state of a block in a memory when a program upgrade of an electronic controller is generally performed using a scan tool.

도 3은 본 발명의 실시 예에 따라 차량의 전자제어장치(ECU)에 대한 프로그램 업그레이드될 때의 메모리 내부 블록 상태를 도시한 그림이다.FIG. 3 is a diagram illustrating a state in a memory block when a program is upgraded for an electronic control unit (ECU) of a vehicle according to an exemplary embodiment of the present invention.

도 4는 본 발명의 실시 예에 따라 차량의 전자제어장치(ECU)에 대한 프로그램 업그레이드될 때 차량의 쿨링팬이 정지되는 모습을 도시한 그림이다.4 is a diagram illustrating a state in which a cooling fan of a vehicle is stopped when a program is upgraded for an electronic control unit (ECU) of the vehicle according to an exemplary embodiment of the present invention.

도 5는 본 발명의 실시 예에 따라 차량의 전자제어장치(ECU)에 대한 프로그램 업그레이드될 시에 쿨링팬이 제어되는 단계들을 도시한 플로차트이다.FIG. 5 is a flowchart illustrating steps in which a cooling fan is controlled when a program is upgraded for an electronic control unit (ECU) of a vehicle according to an exemplary embodiment of the present invention.

*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

30: 플래시 롬 31: 재프로그램 코드30: Flash ROM 31: Reprogram Code

32: PWM 쿨링팬 정지 듀티코드 35: CPU 내부 램32: PWM cooling stop duty code 35: CPU internal RAM

36: 복사된 재프로그램 코드 37: 복사된 PWM 쿨링팬 정지 듀티코드36: Copied Reprogram Code 37: Copied PWM Fan Stop Duty Code

40: 스캔툴 41: 전자제어장치40: Scan Tool 41: Electronic Control Device

42: 쿨링팬 제어기 43: 쿨링팬42: cooling fan controller 43: cooling fan

본 발명은 프로그램 업그레이드를 수행하는 차량 전자제어장치 및 그 동작 방법에 관한 것으로서, 프로그램 업그레이드가 이루어지는 동안 쿨링팬을 정지시키는 특징을 가진다. The present invention relates to a vehicle electronic control apparatus for performing a program upgrade and a method of operating the same, wherein the cooling fan is stopped while the program upgrade is performed.

일반적으로 자동차 등의 차량의 고장 진단을 위하여, 차량의 전자제어장치와(ECU; Electronic Control Unit)와 CAN 통신하는 스캔툴(scan tool)을 이용하여 차량의 진단을 수행한다. 상기 스캔툴은 HI-DS 스캐너(scanner)라고도 불리는데, 차량 정비소 등에서 상기 스캔툴을 이용하여 차량의 고장 이상 유무를 진단하는데 사용된다. In general, in order to diagnose a failure of a vehicle such as an automobile, the vehicle is diagnosed using a scan tool communicating with an electronic control unit (ECU) of the vehicle and CAN. The scan tool is also called a HI-DS scanner, and is used to diagnose a vehicle malfunction by using the scan tool in a car repair shop.

상기 스캔툴이 차량의 전자제어장치(ECU)와 CAN 통신하며 차량 진단하는 모습을 도 1에 도시하였는데, 상기 스캔툴(10)은 전자제어장치(11)에 대한 진단뿐만 아니라 전자제어장치(11)에 내장된 프로그램의 제어, 데이터 송수신 등의 기능을 수행하고, 아울러, 전자제어장치(11)에 내장되어 있는 프로그램을 업그레이드 하는 동작도 수행한다.The scan tool is shown in FIG. 1 in which the scan tool communicates with an electronic control unit (ECU) of the vehicle and diagnoses the vehicle. The scan tool 10 may not only diagnose the electronic control unit 11 but also the electronic control unit 11. It performs a function such as control of the program embedded in the), data transmission and reception, and also performs an operation of upgrading the program embedded in the electronic control device (11).

상기 스캔툴을 이용하여 전자제어장치의 프로그램 업그레이드할 시의 메모리 내부 블록 상태를 도 2에 도시하였다. 2 shows an internal block state of a memory when a program upgrade of the electronic controller is performed by using the scan tool.

상기 전자제어장치의 프로그램 업그레이드란, 전자제어장치의 실행 프로그램이 저장된 롬(rom) 역할을 하는 비휘발성 메모리인 플래시 롬(20;Flash ROM)에 저장되어 있는 모든 데이터를 소거하고, 다시 새로운 실행 프로그램을 상기 플래시 롬(20) 전체에 대해 리-라이팅(re-writing)하는 과정을 말한다.The program upgrade of the electronic control device means erasing all data stored in a flash ROM 20, which is a nonvolatile memory serving as a ROM, in which the execution program of the electronic control device is stored. Refers to a process of re-writing the entire flash ROM 20.

상기 프로그램 업그레이드가 이루어지기 위해서는, 먼저, 플래시 롬(20)에 저장되어 있던 업그레이드를 수행하는 재프로그램 코드(21;re-program code)를 CPU 내부 램(25)에 복사(26)한 후, 플래시 롬(20) 내의 모든 데이터 코드를 삭제한 후, 상기 CPU 내부 램(25)에 복사되어 있는 재프로그램 코드(26)를 호출하여 실행시켜 스캔툴로부터 업그레이드 데이터 코드들을 다운로드 받아 상기 플래시 롬(20)에 다운로드받은 데이터 코드들을 전체적으로 라이팅(writing)하는 과정을 가진다.In order to perform the program upgrade, first, a re-program code 21 for performing the upgrade stored in the flash ROM 20 is copied to the CPU internal RAM 25 and then flashed. After all data codes in the ROM 20 are deleted, the reprogram code 26 copied to the CPU internal RAM 25 is called and executed to download upgrade data codes from a scan tool. The flash ROM 20 The process of writing the data codes downloaded to the entire (writing).

그런데, 상기와 같이 CPU 내부 램(25)에 복사된 재프로그램 코드(26)에 의해 프로그램 업그레이드가 이루어지는 동안, 차량의 쿨링팬(cooling FAN)을 제어하는 제어신호(즉, 쿨링팬 듀티신호)가 전자제어장치(ECU)로부터 출력되지 않기 때문에, 프로그램 업그레이드 동안 상기 쿨링팬이 계속적으로 동작되는 문제가 있다. 일반적으로 쿨링팬의 경우, 전자제어장치로부터 10% 듀티신호를 받을 때는 쿨링팬이 정지되도록 설계되고, 10%~90%의 듀티신호를 받을 때는 해당 신호세기에 따른 쿨링팬의 동작을 수행하고, 듀틴신호가 10% 이하가 되거나 또는 90% 이상이 될 시에는 차량의 고장상태로 판단하여 무조건 구동되도록 설계되어 있다. 따라서 상기와 같이 프로그램 업그레이드 시에 쿨링팬 듀티신호가 전혀 출력되지 않는다면, 쿨링팬은 무조건 구동하게 되는 문제가 있다.By the way, while the program upgrade is performed by the reprogram code 26 copied to the CPU internal RAM 25 as described above, a control signal (that is, a cooling fan duty signal) for controlling the cooling fan of the vehicle is generated. Since there is no output from the electronic control unit ECU, the cooling fan is continuously operated during the program upgrade. In general, in the case of a cooling fan, the cooling fan is designed to stop when receiving a 10% duty signal from the electronic controller, and when the 10% to 90% duty signal is received, the cooling fan operates according to the signal strength. When the duty signal is less than 10% or more than 90%, it is designed to be driven unconditionally by determining that the vehicle is in a fault state. Therefore, when the cooling fan duty signal is not output at all during the program upgrade as described above, the cooling fan may be driven unconditionally.

비록, 차량에서 쿨링팬이 계속 돌아도 차량 시스템에 치명적인 영향을 미치지 않지만, 스캔툴을 이용한 업그레이드 시간이 장시간 지속될 경우 쿨링팬은 아무런 의미 없이 장시간 돌게 되는 결과를 낳게 되어, 차량의 배터리 조기 방전의 원인이 되는 문제가 있다. 결국, 종래에 스캔툴을 이용한 전자제어장치(ECU)의 프로그램 업그레이될 때에는, 쿨링팬 제어에 대한 고려를 전혀 하지 않았기 때문에 배터리 조기 방전을 초래하였다.Although the cooling fan continues to run in the vehicle, it does not have a fatal effect on the vehicle system. However, if the upgrade time using the scan tool lasts for a long time, the cooling fan may turn for a long time without any meaning, causing the battery to discharge prematurely. There is a problem. As a result, when the program of the electronic control unit (ECU) using the scan tool is conventionally upgraded, no early consideration has been given to cooling fan control, resulting in early battery discharge.

상기의 문제점을 해결하고자 본 발명은 안출된 것으로서, 전자제어장치의 프로그램 업그레이드가 진행되는 동안 쿨링팬을 정지시키도록 하는 방안을 제시함을 목적으로 한다. The present invention has been made to solve the above problems, it is an object of the present invention to propose a method for stopping the cooling fan during the program upgrade of the electronic control device.

상기 목적을 이루기 위하여 본 발명은, 프로그램 업그레이드 실행 시에 플래시 롬의 모든 데이터 코드를 소거하고 새롭게 업그레이드된 데이터 코드를 상기 플래시 롬에 라이팅하는 알고리즘 코드인 재프로그램 코드와, 차량의 쿨링팬을 정지시키도록 하는 듀티신호를 출력하는 제어 코드인 PWM 쿨링팬 정지 듀티코드를 가지고 있는 플래시 롬과, 프로그램 업그레이드 모드 시에, 상기 플래시 롬에 라이팅되 어 있는 재프로그램 코드와 상기 PWM 쿨링팬 정지 듀티코드가 복사되어 저장되는 CPU 내부 램을 포함한다.In order to achieve the above object, the present invention provides a method for erasing all data codes of a flash ROM and reprogramming code, which is an algorithm code for writing a newly upgraded data code to the flash ROM, when the program upgrade is executed. Flash ROM having a PWM cooling fan stop duty code, which is a control code for outputting a duty signal, and a reprogram code written to the flash ROM and the PWM cooling fan stop duty code are copied in the program upgrade mode. CPU internal RAM that is stored and stored.

또한, 차량 전자제어장치에 대한 프로그램 업그레이드 모드로 구동 시에, 플래시 롬에 있는 프로그램 업그레이드 실행 코드인 재프로그램 코드를 CPU 내부 램에 복사하며, 아울러, 차량의 쿨링팬을 정지시키도록 하는 듀티신호를 출력하는 제어 코드인 PWM 쿨링팬 정지 듀티코드를 상기 플래시 롬으로부터 복사하는 단계와, 상기 플래시 롬에 라이팅(writing)되어 있는 모든 데이터 코드들을 소거(erasing)하는 단계와, 상기 CPU 내부 램에 복사되어 있는 PWM 쿨링팬 정지 듀티코드를 호출하여 쿨링팬을 정지시키는 듀티신호를 출력하며, 상기 CPU 내부 램에 복사되어 있는 재프로그램 코드를 호출하여 상기 플래시 메모리에 대한 프로그램 업그레이드를 수행하는 단계를 포함한다.In addition, when driving in the program upgrade mode for the vehicle electronic control device, the reprogram code, which is the program upgrade execution code in the flash ROM, is copied to the CPU internal RAM, and a duty signal for stopping the cooling fan of the vehicle is also provided. Copying a PWM cooling fan stop duty code, which is an output control code, from the flash ROM, erasing all data codes written to the flash ROM, and copying to the CPU internal RAM; And calling a PWM cooling fan stop duty code to output a duty signal for stopping the cooling fan, and calling a reprogram code copied to the CPU internal RAM to perform a program upgrade to the flash memory.

이하, 본 발명의 바람직한 실시 예들의 상세한 설명이 첨부된 도면들을 참조하여 설명될 것이다. 하기에서 각 도면의 구성요소들에 참조부호를 부가함에 있어 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. Hereinafter, the detailed description of the preferred embodiments of the present invention will be described with reference to the accompanying drawings. In the following description of the reference numerals to the components of the drawings it should be noted that the same reference numerals as possible even if displayed on different drawings.

도 3은 본 발명의 실시 예에 따라 차량의 전자제어장치(ECU)에 대한 프로그램 업그레이드될 때의 메모리 내부 블록 상태를 도시한 그림이다.FIG. 3 is a diagram illustrating a state in a memory block when a program is upgraded for an electronic control unit (ECU) of a vehicle according to an exemplary embodiment of the present invention.

차량진단 장치인 스캔툴로부터 프로그램 업그레이드 요청이 있을 시에, 전자제어장치(ECU)는 플래시 롬(30)에 저장되어 있던 업그레이드를 수행하는 재프로그 램 코드(31;re-program code)를 CPU 내부 램(35)에 복사(36)하며, 아울러, 쿨링팬의 구동을 정지시키는 신호를 출력하는 PWM(Pulse Width Modulation) 쿨링팬 정지 듀티코드(32)를 플래시 롬(30)으로부터 복사하여 CPU 내부 램에 복사(37)한다. When a program upgrade request is received from the vehicle diagnostic device, the scan tool, the ECU controls the internal CPU to re-program code 31 for performing the upgrade stored in the flash ROM 30. Copying to the RAM 35 and copying a PWM (Pulse Width Modulation) cooling fan stop duty code (32) outputting a signal to stop the operation of the cooling fan from the flash ROM (30) Copy to (37).

상기 재프로그램 코드는, 포트(port) 초기화, 폴링(polling) 방식 O/S, 플래시 롬 소거(flash ROM erasing), 데이터 버퍼링, 데이터 변환, 플래시 롬 리라이팅(flash ROM rewriting), 와치 도그 제어(watch dog control), CAN 통신 제어 등의 기본적인 ECU 제어 동작 프로그램이다. The reprogram code may include port initialization, polling O / S, flash ROM erasing, data buffering, data conversion, flash ROM rewriting, and watch dog control. It is a basic ECU control operation program such as dog control) and CAN communication control.

상기 PWM 쿨링팬 정지 듀티코드는 차량의 쿨링팬을 정지시키는 신호를 출력하는 제어코드로서, 프로그램 업그레이드가 이루어지는 동안 쿨링팬을 정지시키도록 하는 듀티신호를 출력하도록 하는 제어코드이다. 일반적으로 쿨링팬의 경우, 전자제어장치로부터 10% 듀티신호를 받을 때는 쿨링팬이 정지되도록 설계되고, 10%~90%의 듀티신호를 받을 때는 해당 신호세기에 따른 쿨링팬의 동작을 수행하고, 듀틴신호가 10% 이하가 되거나 또는 90% 이상이 될 시에는 차량의 고장상태로 판단하여 무조건 풀(full) 상태로 구동되도록 설계되어 있다. 따라서 상기 PWM 쿨링팬 정지 듀티코드는, 프로그램 업그레이드가 이루어질 때 쿨링팬을 정지시키도록 하는 10% 듀티신호를 출력하는 제어코드로서 구현된다.The PWM cooling fan stop duty code is a control code for outputting a signal for stopping the cooling fan of the vehicle and is a control code for outputting a duty signal for stopping the cooling fan during a program upgrade. In general, in the case of a cooling fan, the cooling fan is designed to stop when receiving a 10% duty signal from the electronic controller, and when the 10% to 90% duty signal is received, the cooling fan operates according to the signal strength. When the duty signal is less than 10% or more than 90%, it is determined to be a failure state of the vehicle and is designed to be driven in a full state unconditionally. Thus, the PWM cooling fan stop duty code is implemented as a control code that outputs a 10% duty signal that causes the cooling fan to stop when a program upgrade is made.

상기 플래시 롬(30) 안에 있는 재프래그램 코드(31) 및 PWM 쿨링팬 정지 듀티코드(32)에 대해 CPU 내부 램(35)으로 복사(36,37)가 이루어진 후, 플래시 롬(30) 내의 모든 데이터 코드가 삭제되고, 상기 CPU 내부 램(35)에 복사되어 있는 재프로그램 코드(36)의 동작에 의해 스캔툴로부터 업그레이드 데이터 코드들이 다운로드 되어 상기 플래시 롬(30)에 새로운 데이터 코드들이 라이팅(writing)되는 과정이 이루어진다.After the copy 36 and 37 of the reprogram code 31 and the PWM cooling fan stop duty code 32 in the flash ROM 30 have been made to the CPU internal RAM 35, All data codes are deleted, and upgrade data codes are downloaded from a scan tool by the operation of the reprogram code 36 copied to the CPU internal RAM 35 so that new data codes are written to the flash ROM 30. The process of writing is done.

또한, 종래와 달리 본 발명은 상기 프로그램 업그레이드 이외에도, 도 4와 같이 스캔툴(40)과 전자제어장치(41)간에 프로그램 업그레이드가 이루어지는 동안에도 CPU 내부 램에 복사되어 있는 PWM 쿨링팬 정지 듀티코드에 의해 쿨링팬(43)의 구동을 정지 제어할 수 있게 된다. 즉, 전자제어장치(41)에서 구동되는 소정의 O/S는 프로그램 업그레이드가 이루어지는 동안에도, CPU 내부 램(35)에 복사되어 있는 PWM 쿨링팬 정지 듀티코드(37)에 대한 태스크(task)를 호출(call)하여 쿨링팬(3)을 구동 정지하도록 하는 정지신호(예컨대, 10% 듀티신호)를 쿨링팬 제어기(42)로 출력한다.In addition, unlike the prior art, the present invention, in addition to the program upgrade, as shown in Figure 4 to the PWM cooling fan stop duty code that is copied to the CPU internal RAM even during the program upgrade between the scan tool 40 and the electronic control device 41 As a result, the driving of the cooling fan 43 can be stopped and controlled. That is, the predetermined O / S driven by the electronic controller 41 performs a task for the PWM cooling fan stop duty code 37 copied to the CPU internal RAM 35 even during the program upgrade. A stop signal (e.g., 10% duty signal) for calling and stopping the cooling fan 3 is output to the cooling fan controller 42.

만약, 종래와 같이 프로그램 업그레이드 시에 전자제어장치(41)가 아무런 듀티신호를 출력하지 않는다면, 쿨링팬(43)은 무조건 구동하게 되는데, 상기와 같이 프로그램 업그레이드 시에 소정의 듀티신호를 출력하여 차량의 쿨링팬(43)을 정지시키는 것이다. 결국, 본 발명에서는 프로그램 업그레이드되는 동안에 쿨링팬(43)을 정지시키기 위하여, 프로그램 업그레이드 시간 동안 상기 쿨링팬 듀티신호를 10%로 출력함으로써 쿨링팬을 정지시키도록 하는 특징을 가진다. 따라서 PWM 쿨링팬 정지 듀티코드는 10% 듀티신호를 출력하도록 하는 코드로서 설계되어 플래시 롬에 저장되고, 이러한 10% 출력의 PWM 쿨링팬 정지 듀티코드가 CPU 내부 롬(35)으로 복사되는 것이다. If the electronic controller 41 does not output any duty signal during the program upgrade as in the related art, the cooling fan 43 is driven unconditionally, and the vehicle is outputted with the predetermined duty signal during the program upgrade. The cooling fan 43 is to stop. As a result, in the present invention, in order to stop the cooling fan 43 during the program upgrade, the cooling fan duty signal is outputted at 10% during the program upgrade time to stop the cooling fan. Accordingly, the PWM cooling fan stop duty code is designed as a code for outputting a 10% duty signal and stored in a flash ROM, and the PWM cooling fan stop duty code of the 10% output is copied to the CPU internal ROM 35.

도 5는 본 발명의 실시 예에 따라 차량의 전자제어장치(ECU)에 대한 프로그램 업그레이드될 시에 쿨링팬이 제어되는 단계들을 도시한 플로차트이다.FIG. 5 is a flowchart illustrating steps in which a cooling fan is controlled when a program is upgraded for an electronic control unit (ECU) of a vehicle according to an exemplary embodiment of the present invention.

일반적으로 점화시동 스위치인 이그니션 키(ignition key)가 작동(S50)되어 시동 ON(S51)이 되면 수온 및 차속 조건에 따라 10% ~ 90% 정도의 듀티비를 갖는 PWM 신호에 따라 쿨링 팬이 동작(S52)된다.In general, when the ignition start switch ignition key is activated (S50) and starts on (S51), the cooling fan operates according to a PWM signal having a duty ratio of about 10% to 90% depending on the water temperature and vehicle speed conditions. (S52).

그런데, 점화시동 스위치인 이그니션 키(ignition key)가 작동되어 시동 ON(S51)이 되는 시점에 차량 진단장치인 스캔툴이 CAN(Control Area Network) 망을 통하여 해당 차량의 전자제어장치(ECU)와 연결(S53)되어 있을 시에는, 사용자로부터 스캔툴을 통해 전자제어장치의 프로그램 업그레이드 모드를 선택받았는지를 판단(S54)한다. 상기 판단(S54) 결과, 사용자로부터 프로그램 업그레이드 요청이 있을 시에, 전자제어장치(ECU)는 플래시 롬에 저장되어 있던 업그레이드를 수행하는 재프로그램(re-program) 코드를 CPU 내부 램에 복사(S55)하며, 아울러, 쿨링 팬의 구동 제어를 수행하는 PWM(Pulse Width Modulation) 쿨링팬 정지 듀티코드를 플래시 롬으로부터 복사하여 CPU 내부 램에 복사(S56)한다. However, when the ignition key, which is the ignition start switch, is activated and started on (S51), the scan tool, which is a vehicle diagnostic device, is connected to the ECU of the vehicle through the control area network (CAN). When the connection is made (S53), it is determined whether the program upgrade mode of the electronic controller is selected through the scan tool (S54). As a result of the determination (S54), when there is a program upgrade request from the user, the electronic control unit (ECU) copies the re-program code for performing the upgrade stored in the flash ROM to the CPU internal RAM (S55). In addition, a PWM (Pulse Width Modulation) cooling fan stop duty code for controlling the driving of the cooling fan is copied from the flash ROM to the CPU internal RAM (S56).

상기 복사가 완료된 후에는 플래시 롬 안에 라이팅되어 있는 모든 데이터 코드들을 소거(erasing)하는 작업(S57)이 이루어진다. After the copy is completed, an operation S57 of erasing all data codes written in the flash ROM is performed.

그 후, 상기 CUP 내부 램에 복사된 쿨링팬 정지 듀티코드를 읽어 와서 이에 따른 쿨링팬 정지를 위한 듀티신호(에컨대, 10% 듀티신호)를 출력(S58)하여, 쿨링팬을 정지(S59)시킨다. 전자제어장치가 상기 CPU 내부 램에 복사되어 있는 쿨링팬 정지 듀티코드에 따라 10% 듀티신호를 출력하게 되면, 쿨링팬은 이에 따라 정지 상 태를 유지하게 된다. Thereafter, the cooling fan stop duty code copied to the CUP internal RAM is read, and a duty signal (eg, 10% duty signal) for cooling fan stop is output (S58) to stop the cooling fan (S59). Let's do it. When the electronic controller outputs a 10% duty signal according to the cooling fan stop duty code copied to the CPU internal RAM, the cooling fan maintains the stop state accordingly.

상기 쿨링팬 정지와 함께 플래시 롬에 대한 프로그램 업그레이드의 리라이팅(rewriting)이 이루어진다. 즉, 전자제어장치(EDU)는 상기 CPU 내부 램에 복사된 재프로그램 코드를 호출하여 실행(S60)시킴으로써, 업그레이드될 프로그램 코드를 상기 스캔툴로부터 다운로드받아 상기 플래시 롬에 라이팅 수행하는 업그레이드를 진행(S61)한다. Rewriting of program upgrades to the flash ROM is made with the cooling fan stopped. That is, the electronic control unit (EDU) calls the reprogram code copied to the CPU internal RAM and executes it (S60), thereby downloading the program code to be upgraded from the scan tool and performing writing on the flash ROM. S61).

한편, 사용자로부터 스캔툴을 통해 전자제어장치의 프로그램 업그레이드 모드를 선택받았는지를 판단(S54)한 결과, 프로그램 업그레이드 모드가 아닐 시에는, 이는 프로그램 업그레이드가 아닌 단순 진단 모니터링 기능만 수행하는 모드를 의미한다. 그런데 상기와 같은 단순 진단 모니터링 기능을 수행하는 모드에서도 쿨링팬을 정지 상태를 유지시키기 위하여, 전자제어장치는 쿨링팬을 정지시키는 듀티신호(예컨대, 10% 듀티신호)를 출력(S62)하여 쿨링팬을 정지(S63)시킨다.On the other hand, as a result of determining whether the program upgrade mode of the electronic controller is selected through the scan tool (S54) from the user, when it is not the program upgrade mode, this means a mode of performing only a simple diagnostic monitoring function, not a program upgrade. do. However, in order to keep the cooling fan stopped even in the mode of performing the simple diagnostic monitoring function, the electronic controller outputs a duty signal (eg, 10% duty signal) for stopping the cooling fan (S62). Stop (S63).

만약, 상기와 같이 쿨링팬을 정지시키는 듀티신호를 출력하였음에도 불구하고, 쿨링팬이 구동(S64)될 시에는, 쿨링팬의 출력단에서 단락, 단선 등의 고장이 발생했음을 알 수 있게 된다. Although the duty signal for stopping the cooling fan is output as described above, when the cooling fan is driven (S64), it can be seen that a short circuit, disconnection, or the like has occurred at the output terminal of the cooling fan.

상술한 본 발명의 설명에서는 구체적인 실시 예에 관해 설명하였으나, 여러 가지 변형이 본 발명의 범위에서 벗어나지 않고 실시 될 수 있다. 따라서 본 발명의 특허 범위는 상기 설명된 실시 예에 의하여 정할 것이 아니고 특허청구범위뿐 아니라 균등 범위에도 미침은 자명할 것이다.In the foregoing description of the present invention, specific embodiments have been described, but various modifications may be made without departing from the scope of the present invention. Therefore, the scope of the present invention is not to be determined by the embodiments described above, but will be apparent in the claims as well as equivalent scope.

상기에서 기술한 바와 같이 본 발명은, 전자제어장치의 프로그램 업그레이드 시에 쿨링팬을 정지시킴으로써, 차량 배터리 전원의 불필요한 소비를 방지할 수 있는 효과를 가지게 된다. 또한, 프로그램 업그레이드 시에 재프로그램 코드 이외에도 쿨링팬을 정지시키기 위한 코드를 함께 CPU 내부 램으로 복사하여 동작시킴으로써, 별도로 클링팬 정지를 위한 추가 수단 장치를 필요로 하지 않는 효과를 가지게 된다.As described above, the present invention has the effect of preventing unnecessary consumption of the vehicle battery power by stopping the cooling fan during the program upgrade of the electronic controller. In addition, by copying and operating the cooling fan together with the code for stopping the cooling fan to the internal RAM of the CPU in addition to the reprogram code, the additional device for stopping the cooling fan is not required.

Claims (9)

프로그램 업그레이드 실행 시에 플래시 롬의 모든 데이터 코드를 소거하고 새롭게 업그레이드된 데이터 코드를 상기 플래시 롬에 라이팅하는 알고리즘 코드인 재프로그램 코드와, 차량의 쿨링팬을 정지시키도록 하는 듀티신호를 출력하는 제어 코드인 PWM 쿨링팬 정지 듀티코드를 가지고 있는 플래시 롬과,Reprogram code, which is an algorithm code for erasing all data codes of the flash ROM and writing the newly upgraded data code to the flash ROM when the program upgrade is executed, and a control code for outputting a duty signal for stopping the cooling fan of the vehicle. A flash ROM with a PWM cooling fan stop duty code, 프로그램 업그레이드 모드 시에, 상기 플래시 롬에 라이팅되어 있는 재프로그램 코드와 상기 PWM 쿨링팬 정지 듀티코드가 복사되어 저장되는 CPU 내부 램In the program upgrade mode, the CPU internal RAM in which the reprogram code written to the flash ROM and the PWM cooling fan stop duty code are copied and stored. 을 구비하는 차량 전자제어장치.Vehicle electronic control device having a. 제1항에 있어서, 상기 차량의 쿨링팬을 정지시키도록 하는 듀티신호는 10% 듀티비를 가짐을 특징으로 하는 차량 전자제어장치.The vehicle electronic control apparatus according to claim 1, wherein the duty signal for stopping the cooling fan of the vehicle has a 10% duty ratio. 제1항에 있어서, 상기 차량 전자제어장치는, 프로그램 업그레이드 모드로 동작될 시에, 상기 CPU 내부 램에 복사되어 있는 재프로그램 코드를 호출하여 상기 플래시 롬에 대한 프로그램 업그레이드를 수행하며, 상기 프로그램 업그레이드가 진행되는 동안에 상기 CPU 내부 램에 복사되어 있는 PWM 쿨링팬 정지 듀티코드를 호출하여 차량의 쿨링팬을 정지하도록 하는 알고리즘을 구비한 차량 전자제어장치.The program of claim 1, wherein the vehicle electronic controller performs a program upgrade for the flash ROM by calling a reprogram code copied to the CPU internal RAM when the vehicle electronic controller operates in a program upgrade mode. And an algorithm for stopping the cooling fan of the vehicle by calling the PWM cooling fan stop duty code, which is copied to the CPU internal RAM, during operation. 제1항에 있어서, 상기 프로그램 업그레이드 모드는, 차량 시동될 시에 상기 전자제어장치와 CAN통신 연결되어 있는 차량 진단장치인 스캔툴(scan tool)을 이용하여 프로그램 업그레이드 모드를 선택받는 차량 전자제어장치.The vehicle electronic control apparatus of claim 1, wherein the program upgrade mode is selected by using a scan tool, which is a vehicle diagnostic apparatus connected to the electronic control apparatus and CAN communication when the vehicle is started. . 프로그램 업그레이드 실행 시에 플래시 롬의 모든 데이터 코드를 소거하고 새롭게 업그레이드된 데이터 코드를 상기 플래시 롬에 라이팅하는 알고리즘 코드인 재프로그램 코드와, 차량의 쿨링팬을 정지시키도록 하는 듀티신호를 출력하는 제어 코드인 PWM 쿨링팬 정지 듀티코드를 가지고 있는 플래시 롬과,Reprogram code, which is an algorithm code for erasing all data codes of the flash ROM and writing the newly upgraded data code to the flash ROM when the program upgrade is executed, and a control code for outputting a duty signal for stopping the cooling fan of the vehicle. A flash ROM with a PWM cooling fan stop duty code, 프로그램 업그레이드 모드 시에, 상기 플래시 롬에 라이팅되어 있는 재프로그램 코드와 상기 PWM 쿨링팬 정지 듀티코드가 복사되어 저장되는 CPU 내부 램과,In the program upgrade mode, the CPU internal RAM in which the reprogram code and the PWM cooling fan stop duty code written to the flash ROM is copied and stored; 차량 시동될 시에 상기 전자제어장치와 CAN통신 연결되어 있어 프로그램 업그레이드를 수행하는 스캔툴(scan tool)Scan tool which is connected to the electronic controller and CAN communication when the vehicle is started to perform program upgrade 을 구비하는 차량 전자제어장치.Vehicle electronic control device having a. 차량 전자제어장치에 대한 프로그램 업그레이드 모드로 구동 시에, 플래시 롬에 있는 프로그램 업그레이드 실행 코드인 재프로그램 코드를 CPU 내부 램에 복사하며, 아울러, 차량의 쿨링팬을 정지시키도록 하는 듀티신호를 출력하는 제어 코드인 PWM 쿨링팬 정지 듀티코드를 상기 플래시 롬으로부터 복사하는 단계와,When driving in the program upgrade mode for the vehicle electronic controller, the reprogram code, which is the program upgrade execution code in the flash ROM, is copied to the CPU internal RAM, and the duty signal for stopping the cooling fan of the vehicle is output. Copying a PWM cooling fan stop duty code that is a control code from the flash ROM; 상기 플래시 롬에 라이팅(writing)되어 있는 모든 데이터 코드들을 소거(erasing)하는 단계와,Erasing all data codes written to the flash ROM; 상기 CPU 내부 램에 복사되어 있는 PWM 쿨링팬 정지 듀티코드를 호출하여 쿨 링팬을 정지시키는 듀티신호를 출력하며, 상기 CPU 내부 램에 복사되어 있는 재프로그램 코드를 호출하여 상기 플래시 메모리에 대한 프로그램 업그레이드를 수행하는 단계 Calls the PWM cooling fan stop duty code copied to the CPU internal RAM to output a duty signal for stopping the cooling fan, and calls the reprogram code copied to the CPU internal RAM to program upgrade for the flash memory. Steps to perform 를 포함하는 차량 전자제어장치의 프로그램 업그레이드 방법.Program upgrade method of the vehicle electronic control device comprising a. 제6항에 있어서, 상기 프로그램 업그레이드 모드는, 차량 점화 스위치인 이그니션 키가 온(on)될 때 차량 전자제어장치와 연결되어 있는 차량 진단장치인 스캔툴로부터 프로그램 업그레이드 모드 선택을 받는 차량 전자제어장치의 프로그램 업그레이드 방법.The vehicle electronic control apparatus of claim 6, wherein the program upgrade mode receives a program upgrade mode selection from a scan tool, which is a vehicle diagnostic apparatus connected to the vehicle electronic controller when an ignition key, which is a vehicle ignition switch, is turned on. How to upgrade the program. 제6항에 있어서, 상기 차량의 쿨링팬을 정지시키도록 하는 듀티신호는, 10% 듀티비를 가짐을 특징으로 하는 차량 전자제어장치의 프로그램 업그레이드 방법.7. The program upgrade method of claim 6, wherein the duty signal for stopping the cooling fan of the vehicle has a 10% duty ratio. 제6항에 있어서, 차량 점화 스위치인 이그니션 키가 온(on)될 때 차량 전자제어장치와 연결되어 있는 차량 진단장치인 스캔툴이 프로그램 업그레이 모드가 아닌 다른 모드로 동작될 시에도, 차량의 쿨링팬을 정지시키도록 하는 듀티신호를 출력하는 차량 전자제어장치의 프로그램 업그레이드 방법.The vehicle cooling according to claim 6, wherein the scanning tool, which is a vehicle diagnostic device connected to the vehicle electronic control device when the ignition key, which is the vehicle ignition switch, is turned on, is operated in a mode other than the program upgrade mode. Program upgrade method of a vehicle electronic control apparatus for outputting a duty signal to stop the fan.
KR1020060116802A 2006-11-24 2006-11-24 Vehicle ecu for program upgrade and method for operating the same KR100774731B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060116802A KR100774731B1 (en) 2006-11-24 2006-11-24 Vehicle ecu for program upgrade and method for operating the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060116802A KR100774731B1 (en) 2006-11-24 2006-11-24 Vehicle ecu for program upgrade and method for operating the same

Publications (1)

Publication Number Publication Date
KR100774731B1 true KR100774731B1 (en) 2007-11-08

Family

ID=39061392

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060116802A KR100774731B1 (en) 2006-11-24 2006-11-24 Vehicle ecu for program upgrade and method for operating the same

Country Status (1)

Country Link
KR (1) KR100774731B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100818930B1 (en) * 2006-08-18 2008-04-04 성균관대학교산학협력단 Control System of FlexRay and RS-232 And Method Thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970040774U (en) * 1995-12-29 1997-07-29 Vehicle cooling fan
KR20000010911U (en) * 1998-11-27 2000-06-26 이형도 Vehicle Electronic Control
KR20010027037A (en) * 1999-09-10 2001-04-06 이계안 Method for reprogramming ecu of vehicle
KR20050042339A (en) * 2003-11-01 2005-05-09 기아자동차주식회사 Device of controlling a cooling fan for a vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970040774U (en) * 1995-12-29 1997-07-29 Vehicle cooling fan
KR20000010911U (en) * 1998-11-27 2000-06-26 이형도 Vehicle Electronic Control
KR20010027037A (en) * 1999-09-10 2001-04-06 이계안 Method for reprogramming ecu of vehicle
KR20050042339A (en) * 2003-11-01 2005-05-09 기아자동차주식회사 Device of controlling a cooling fan for a vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100818930B1 (en) * 2006-08-18 2008-04-04 성균관대학교산학협력단 Control System of FlexRay and RS-232 And Method Thereof

Similar Documents

Publication Publication Date Title
JP4302113B2 (en) In-vehicle control device
US7783398B2 (en) Program rewriting system and program rewriting method
US8250242B2 (en) Field bus system
US8135533B2 (en) Electronic engine control apparatus having improved configuration for ensuring excellent engine startability
KR100774731B1 (en) Vehicle ecu for program upgrade and method for operating the same
JP3972429B2 (en) Memory rewriting device for vehicle control
JP2005258996A (en) Remote maintenance system for fpga
US7360013B2 (en) Method of rewriting flash EEPROM and electronic control device using same
JP2016126699A (en) Electronic control unit for vehicle
JP4258579B2 (en) Program rewriting device
CN108241361B (en) Vehicle power supply control method, controller and vehicle
KR101832278B1 (en) Method for diagnosing engine off timer
JP2005338955A (en) Electronic control device
JP2002236503A (en) Electronic controller for vehicle
JP2002149412A (en) Electronic controller
CN101923004A (en) Portable USB power mode simulator tool
KR100873302B1 (en) Method for reprogramming electric control unit of car
JP2001353937A (en) Image-forming apparatus
JP2001229014A (en) Non-volatile memory rewriting device
KR20010010933A (en) Apparatus and method for remote download transmission in element management system
JP2006252278A (en) Microcomputer
KR100582750B1 (en) Reprogramming method
JP2002323990A (en) Electronic controller and method for initializing nonvolatile memory
JP2004070407A (en) Controller of electric appliance and writing method of application program thereto
JPH10283171A (en) Information processor and control method therefor

Legal Events

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

Payment date: 20121031

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20131031

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20141030

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20151030

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20171030

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20181030

Year of fee payment: 12