KR100188716B1 - Memory diagnosing method of ecu - Google Patents

Memory diagnosing method of ecu Download PDF

Info

Publication number
KR100188716B1
KR100188716B1 KR1019960055104A KR19960055104A KR100188716B1 KR 100188716 B1 KR100188716 B1 KR 100188716B1 KR 1019960055104 A KR1019960055104 A KR 1019960055104A KR 19960055104 A KR19960055104 A KR 19960055104A KR 100188716 B1 KR100188716 B1 KR 100188716B1
Authority
KR
South Korea
Prior art keywords
main controller
data
area
ram
reset
Prior art date
Application number
KR1019960055104A
Other languages
Korean (ko)
Other versions
KR19980036534A (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 KR1019960055104A priority Critical patent/KR100188716B1/en
Publication of KR19980036534A publication Critical patent/KR19980036534A/en
Application granted granted Critical
Publication of KR100188716B1 publication Critical patent/KR100188716B1/en

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02DCONTROLLING COMBUSTION ENGINES
    • F02D45/00Electrical control not provided for in groups F02D41/00 - F02D43/00

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Retry When Errors Occur (AREA)
  • Safety Devices In Control Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

본 발명은 외부로부터 인가되는 노이즈에 의하여 전자제어장치의 콘트롤러가 리셋되어 초기화 되면 콘트롤러는 RAM 영역에 저장되어 있는 운행정보의 데이터를 자기진단하여 이상 코드가 검출될시 메모리 영역을 클리어 하도록 한 것이다.In the present invention, when the controller of the electronic control unit is reset and initialized by noise applied from the outside, the controller self-diagnoses data of the driving information stored in the RAM area and clears the memory area when an abnormal code is detected.

본 발명은 외부의 노이즈나 왜란에 의하여 리셋이 발생되어 메인 콘트롤러가 초기화되면 RAM영역을 검사한후 설정된 스팩이외의 데이터가 존재하는지를 판단하는 과정과, 설정된 스팩 이외의 데이터가 존재하면 메인 콘트롤러가 초기화 리턴되는 과정 및, 스팩이외의 데이터가 존재하지 않으면 메인 콘트롤러의 리셋으로 클리어 되는 데이터 영역에 이상 코드가 존재하는지를 판단하여 이상 코드를 클리어시키는 과정을 포함하여 외부의 노이즈나 왜란에 의하여 메인 콘트롤러가 리셋되어 초기화되면 메인 콘트롤러가 외부의 운행정보를 저장하는 RAM의 각 메모리 영역을 검색한 후 이상 코드를 클리어 한후 메인 콘트롤러가 초기화 프로그램부터 재실행하는 과정으로 이루어진다. 따라서 제2의 에러 발생이 배제되어 운행에 신뢰성과 안전성이 제공된다.The method includes the steps of determining whether data other than a specified specification is present after inspecting a RAM area when a reset occurs due to an external noise or disturbance and the main controller is initialized; Determining whether an error code is present in a data area cleared by the reset of the main controller, and clearing the error code if there is no data other than the specification and the returning process; and if the main controller is reset by external noise or disturbance The main controller searches the respective memory areas of the RAM for storing external driving information, clears the fault code, and re-executes the main controller from the initialization program. Therefore, the occurrence of the second error is eliminated, and reliability and safety are provided for the operation.

Description

전자제어장치의 메모리 진단방법Method of memory diagnosis of electronic control device

본 발명은 자기 진단방법에 관한 것으로, 보다 더 상세하게는 외부로 부터 인가되는 노이즈에 의하여 전자제어장치의 콘트롤러가 리셋되어 초기화 되면 콘트롤러는 RAM 영역에 저장되어 있는 운행정보의 데이터를 자기진단하여 이상 코드가 검출될시 메모리 이상으로 판단하고 메모리 영역을 초기화 하도록 한 전자제어장치의 메모리 진단방법에 관한 것이다.More particularly, the present invention relates to a self-diagnosis method, and more particularly, when a controller of an electronic control unit is reset and initialized by a noise applied from the outside, the controller self-diagnoses data of the operation information stored in the RAM area, When the code is detected, it is determined that the memory is abnormal and the memory area is initialized.

일반적으로 자동차에 구비되는 전자제어장치(10)는 첨부된 제1도에서 알 수 있는 바와같이 각각의 검출수단으로부터 인가되는 운행정보를 일시저장하는 휘발성 메모리 소자인 RAM(11)과, 검출되는 정보에 따라 각 구동부의 제어에 필요로 하는 전반적인 프로그램 데이터가 저장되는 비 휘발성 메모리 소자인 ROM(13)과, 상기 RAM(12)을 통해 인가되는 검출 운행정보와 ROM(13)에 설정된 프로그램 데이터에 따라 운행에 대한 전반적인 동작을 제어하는 메인 콘트롤러(11)와, 상기 메인 콘트롤러(11)의 동작상태를 워치독 타이머를 통해 연속적으로 감시하며, 메인 콘트롤러(11)의 이상이 검출되면 연속적인 운행을 유지시켜 주기 위한 보조 콘트롤러(14) 및 메인 콘트롤러(11) 및 보조 콘트롤러(14)에서 인가되는 제어신호를 액츄에이터(60)측에 인터페이싱하는 인터페이스부(15)로 이루어진다.Generally, as shown in FIG. 1, the electronic control apparatus 10 provided in a vehicle includes a RAM 11, which is a volatile memory element for temporarily storing driving information applied from each detecting means, (ROM) 13, which is a nonvolatile memory element in which general program data required for control of each driving unit is stored in accordance with program data set in the ROM 13 and detection running information applied through the RAM 12, The main controller 11 continuously monitors the operation state of the main controller 11 through a watchdog timer and continuously operates when an abnormality of the main controller 11 is detected. And an interface for interfacing the control signal applied from the main controller 11 and the auxiliary controller 14 to the actuator 60 side, It comprises a portion (15).

또한, RAM의 메모리 영역은 첨부된 제2도에서 알 수 있는 바와같이 메인 콘트롤러(11)의 리셋신호에도 메모리 영역에 저장되어 있는 데이터가 초기화되지 않는 NO_INIT 영역(12a)과, 메인 콘트롤러(11)의 리셋신호에 저장되어 있는 데이터가 클리어 되어 메모리 영역이 초기화되는 Data 영역(12b) 및 스택영역(12c)으로 이루어진다.2, the memory area of the RAM includes a NO_INIT area 12a in which data stored in the memory area is not initialized and a reset signal of the main controller 11, The data area 12b and the stack area 12c in which the data stored in the reset signal of the memory area 12 is cleared and the memory area is initialized.

전술한 바와 같은 기능을 구비하여 이루어지는 전자제어장치에서 메인 콘트롤러(11)는 외부로 부터 인가되는 노이즈 및 왜란에 의하여 리셋된후 초기화 프로그램 부터 재 진행되는데, 이 경우 메인 콘트롤러(11)를 리셋시킨 비정상적인 데이터가 RAM(12)의 NO_INIT 영역(12a)에 연속적으로 존재하는 경우가 있어 메인 콘트롤러(11)가 반복적인 에러를 발생시켜 정상적인 제어를 실행시키지 못하며, 심한 경우 콘트롤러를 파손시키는 심각한 문제점이 있었다.In the electronic control apparatus having the above-described functions, the main controller 11 is reset by the noise and disturbance applied from the outside, and then resumed from the initialization program. In this case, the main controller 11, There is a case where data is continuously present in the NO_INIT area 12a of the RAM 12 and the main controller 11 generates a repeated error so that normal control can not be executed and there is a serious problem that the controller is damaged in severe cases.

본 발명은 전술한 바와 같은 문제점을 감안하여 안출한 것으로, 그 목적은 외부의 노이즈나 왜란에 의하여 메인 콘트롤러가 리셋되어 초기화 프로그램부터 재시작을 실행하는 경우 메인 콘트롤러가 외부의 운행정보 데이터를 정장하는 RAM 메모리 영역을 검색한 후 이상 데이터가 존재하면 이상 데이터를 클리어시켜 초기화, 프로그램부터의 재 실행에 안전성 및 신뢰성을 제공하도록 한 것이다.SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and its object is to provide a main controller which is capable of restoring a running program from an initialization program to a RAM If an abnormal data exists after searching the memory area, the abnormal data is cleared to initialize and to provide safety and reliability for re-execution from the program.

이와같은 목적을 달성하기 위한 본 발명은 외부의 노이즈나 왜란에 의하여 리셋이 발생되어 메인 콘트롤러가 초기화되면 RAM 영역을 검사한후 설정된 스팩이외의 데이터가 존재하는지를 판단하는 과정과, 설정된 스팩 이외의 데이터가 존재하면 메인 콘트롤러의 리셋에 데이터가 클리어되지 않는 RAM의 영역을 초기화한후 메인 콘트롤러가 초기화 리턴되는 과정 및, 스팩이외의 데이터가 존재하지 않으면 메인 콘트롤러의 리셋으로 클리어 되는 데이터 영역에 이상 코드가 존재하는지를 판단하여 이상 코드를 클리어시키는 과정을 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method for controlling a main controller, comprising the steps of: checking a RAM area when a main controller is initialized by a reset due to an external noise or disturbance; , The main controller initializes the area of the RAM where data is not cleared by resetting the main controller, and if there is no data other than the specification, an error code is written in the data area cleared by the reset of the main controller And a step of determining whether or not the error code is present and clearing the error code.

제1도은 일반적인 전자제어장치의 구성을 보인 블록도이고,1 is a block diagram showing a configuration of a general electronic control unit,

제2도은 도시된 제1도에서 RAM메모리 영역을 보인 구성도이며,FIG. 2 is a view showing a RAM memory area in FIG. 1,

제3도은 본 발명에 따른 전자제어장치의 메모리 진단을 실행하는 일 실시예의 흐름도이다.FIG. 3 is a flow chart of an embodiment for executing the memory diagnosis of the electronic control device according to the present invention.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 일 실시예를 상세히 설명하면 다음과 같다.Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

RAM(12)을 통해 인가되는 운행정보에 따라 메인 콘트롤러(11)가 ROM(13)에 저장되어 있는 프로그램에 데이터에 의하여 운행에 대한 전반적인 동작을 제어하는 상태에서 검출되는 운행정보의 노이즈(Noise)나 왜란에 의하여 리셋되어 초기화 프로그램으로 리턴되면(스텝101) 메인 콘트롤러(11)는 RAM(12)의 자기진단 및 이상 코드 저장영역인 NO_INTI영역(12a)에 저장되어 있는 ROM(13)에 설정된 프로그램에 따라 진단한다(스텝102).The main controller 11 controls the overall operation of the vehicle based on the data stored in the ROM 13 in accordance with the driving information supplied through the RAM 12, (Step 101), the main controller 11 reads the program set in the ROM 13 stored in the NO_INTI area 12a, which is the self diagnosis and error code storage area of the RAM 12, (Step 102).

이후, 메인 콘트롤러(11)는 RAM(13)의 NO_INTI 영역(12a)에 스팩상에 설정되어 있지 않은 이상코드가 저장되어 있는지를 판단한다(스텝103).Then, the main controller 11 judges whether or not an abnormal code not set on the specification is stored in the NO_INTI area 12a of the RAM 13 (step 103).

이때, 메인 콘트롤러(11)는 일예를 들어 RAM(12)의 NO_INIT 영역(12a) 처음 바이트와 최종 바이트에 0×00과 0×55를 저장한후 이들 두 장소의 값이 변경되었는지를 판단하여 검출한다.At this time, the main controller 11 stores 0 × 00 and 0 × 55 in the first byte and the last byte of the NO_INIT area 12a of the RAM 12, for example, and determines whether the values of these two locations have been changed .

상기 스텝103에서 설정된 스팩이외의 이상 코드가 저장되어 있으면 메인 콘트롤러(11)는 ROM(13)에 설정된 프로그램에 따라 RAM(12)의 NO_INIT 영역(12a)에 저장되어 있는 데이터를 클리어하여 데이터 영역을 초기화한후(스텝104) 워치독 타이머의 클리어를 중지시킨다(스텝105).The main controller 11 clears the data stored in the NO_INIT area 12a of the RAM 12 according to the program set in the ROM 13 and stores the data area After the initialization (step 104), the clearing of the watchdog timer is stopped (step 105).

상기 스텝103에서 RAM(12)의 NO_INIT 영역(12a)에 설정된 스팩이외의 이상코드가 저장되어 있지 않으면 메인 콘트롤러(11)는 ROM(13)에 설정된 프로그램에 따라 RAM(12)의 데이타 영역(12b)를 검사한다(스텝106).If the abnormality code other than the specification set in the NO_INIT area 12a of the RAM 12 is not stored in the step 103, the main controller 11 controls the data area 12b of the RAM 12 according to the program set in the ROM 13 (Step 106).

이때, 메인 콘트롤러(11)는 일예를 들어 RAM(12)의 데이터 영역(12b)의 처음 비트부터 최종 비트까지 일정간격으로 5개의 테스트 바이트를 할당하고 여기에 0×00과 0×55를 기록한후 이들 값이 변경되었는지를 분석하여 스팩이외의 이상 데이터가 저장되어 있는지를 검출한다.At this time, for example, the main controller 11 allocates five test bytes at regular intervals from the first bit to the last bit of the data area 12b of the RAM 12, records 0 × 00 and 0 × 55 And analyzes whether these values have been changed to detect whether abnormal data other than specifications are stored.

상기 스텝106 실행후 RAM(12)의 데이터 영역(12b)에 이상 데이터가 저장되어 있는지를 판단하며(스텝107), 이상 데이터가 저장되어 있으면 원치독 타이머의 클리어를 통해 초기화 시킨후 메인 콘트롤러(11)는 초기 프로그램으로 리턴된다.It is determined whether the abnormal data is stored in the data area 12b of the RAM 12 after the execution of the step 106. If the abnormal data is stored in the data area 12b of the RAM 12, ) Is returned to the initial program.

이상에서 설명한 바와같이 본 발명은 전자제어장치에서 외부의 노이즈나 왜란에 의하여 메인 콘트롤러가 리셋되어 초기화되면 메인 콘트롤러가 외부의 운행정보를 저장하는 RAM의 각 메모리 영역을 검색한 후 이상 코드를 클리어 한후 메인 콘트롤러가 초기화 프로그램부터 재실행 하므로 제2의 에러 발생이 배제되어 운행에 신뢰성과 안전성이 제공된다.As described above, according to the present invention, when the main controller is reset and initialized by an external noise or disturbance in the electronic control device, the main controller searches each memory area of RAM for storing external driving information, Since the main controller is restarted from the initialization program, the occurrence of the second error is eliminated, and reliability and safety are provided in the operation.

Claims (3)

자동차 전자제어장치의 리셋 제어방법에 있어서, 외부의 노이즈나 왜란에 의하여 리셋이 발생되어 메인 콘트롤러가 초기화되면 RAM 영역을 검사한후 설정된 스팩이외의 데이터가 존재하는지를 판단하는 제1과정과, 상기 제1과정에서 설정된 스팩 이외의 데이터가 존재하면 메인 콘트롤러의 리셋에 데이터가 클리어되지 않는 RAM의 영역을 초기화한후 메인 콘트롤러가 초기화 리턴되는 제2과정 및, 상기 제1과정에서 스팩이외의 데이터가 존재하지 않으면 메인 콘트롤러의 리셋으로 클리어되는 데이터 영역에 이상 코드가 존재하는지를 판단하여 이상 코드를 클리어시키는 제3과정을 포함하는 것을 특징으로 하는 전자제어장치의 메모리 진단방법.A method for controlling a reset of an automotive electronic control unit, the method comprising: a first step of checking whether a data other than the set specification is present after inspecting a RAM area when a reset occurs due to an external noise or disturbance and the main controller is initialized; A second step of initializing an area of the RAM in which data is not cleared at the reset of the main controller when the data other than the specification set in step 1 is present and then the main controller is initialized and returned; And a third step of determining whether an abnormal code exists in a data area cleared by resetting of the main controller and clearing the abnormal code if not. 제1항에 있어서, 상기 메인 콘트롤러의 리셋에 의해 초기화되지 않는 RAM메모리 영역의 이상 코드 검출은 메모리 영역의 최초 바이트와 최종 바이트에 임의의 변수를 각각 저장한 후 두 어드레스 번지의 값을 비교하여 검출하는 것을 특징으로 하는 전자제어장치의 메모리 진단방법.2. The method of claim 1, wherein the abnormal code detection of the RAM memory area not initialized by the reset of the main controller is performed by storing an arbitrary variable in the first byte and the last byte of the memory area, Wherein the memory control unit is configured to control the memory control unit. 제1항에 있어서, 상기 RAM의 데이터 영역 이상 코드검출은 데이터 영역의 처음 바이트부터 최종 바이트까지 일정간격으로 임의의 테스트 바이트를 할당한 후 그곳에 임의의 변수의 기록하여 변수값의 변화여부를 통해 검출하는 것을 특징으로 하는 전자제어장치의 메모리 진단방법.The method as claimed in claim 1, wherein the detection of the data area error code in the RAM is performed by allocating an arbitrary test byte at predetermined intervals from the first byte to the last byte of the data area, Wherein the memory control unit is configured to control the memory control unit.
KR1019960055104A 1996-11-19 1996-11-19 Memory diagnosing method of ecu KR100188716B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960055104A KR100188716B1 (en) 1996-11-19 1996-11-19 Memory diagnosing method of ecu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960055104A KR100188716B1 (en) 1996-11-19 1996-11-19 Memory diagnosing method of ecu

Publications (2)

Publication Number Publication Date
KR19980036534A KR19980036534A (en) 1998-08-05
KR100188716B1 true KR100188716B1 (en) 1999-06-01

Family

ID=19482360

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960055104A KR100188716B1 (en) 1996-11-19 1996-11-19 Memory diagnosing method of ecu

Country Status (1)

Country Link
KR (1) KR100188716B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100578650B1 (en) * 1999-07-27 2006-05-11 주식회사 현대오토넷 Apparatus for downloading parameters to an ECU of vehicles
KR20040023365A (en) * 2002-09-11 2004-03-18 현대모비스 주식회사 Scan tool with re initializing electronic control system
KR100842319B1 (en) * 2006-09-06 2008-07-01 주식회사 만도 Method for Detection Error of Tuning Parameter to Electronic Control Unit

Also Published As

Publication number Publication date
KR19980036534A (en) 1998-08-05

Similar Documents

Publication Publication Date Title
US5768496A (en) Method and apparatus for obtaining a durable fault log for a microprocessor
US7408475B2 (en) Power supply monitoring device
AU704455B2 (en) On-vehicle controller failure diagnosing method and apparatus
KR101044544B1 (en) Method for monitoring the execution of a program in a micro-computer
JP4917604B2 (en) Storage device configuration and driving method thereof
KR100188716B1 (en) Memory diagnosing method of ecu
JP5176405B2 (en) Computer error detection and recovery method
JP4950214B2 (en) Method for detecting a power outage in a data storage device and method for restoring a data storage device
EP0070184B1 (en) A method of testing memory
JP4041216B2 (en) Abnormality detection method and abnormality detection device
US6067642A (en) Diagnostic method with pre-assembly fault recording lock-out
JP7504222B2 (en) In-vehicle control systems
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JP2002047998A (en) Controller for vehicle
JP3082806B2 (en) Fault diagnosis device
JP2020144699A (en) Control device and cause determination method
JPH0997197A (en) Self-diagnosis method for information processor
JPH0916434A (en) Detecting method for failure information at time of runaway of cpu
JPH06103467B2 (en) Preventing malfunction of automobile computer
JP2005156165A (en) Method and program for preventing misdiagnosis of fault
JPH03252735A (en) Detecting method for runaway of program
JPS63193249A (en) Microprogram controller
JPH1021107A (en) Microcomputer system
JPH02189662A (en) Method for processing error in main storage device
JPH036618A (en) Abnormality detecting circuit for stack pointer

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: 20061229

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee