KR102174882B1 - Data rstoration mehtod of re-programing and data rstoration apparatus - Google Patents

Data rstoration mehtod of re-programing and data rstoration apparatus Download PDF

Info

Publication number
KR102174882B1
KR102174882B1 KR1020120124179A KR20120124179A KR102174882B1 KR 102174882 B1 KR102174882 B1 KR 102174882B1 KR 1020120124179 A KR1020120124179 A KR 1020120124179A KR 20120124179 A KR20120124179 A KR 20120124179A KR 102174882 B1 KR102174882 B1 KR 102174882B1
Authority
KR
South Korea
Prior art keywords
data
information
channel information
name information
reprogramming
Prior art date
Application number
KR1020120124179A
Other languages
Korean (ko)
Other versions
KR20140057878A (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 KR1020120124179A priority Critical patent/KR102174882B1/en
Publication of KR20140057878A publication Critical patent/KR20140057878A/en
Application granted granted Critical
Publication of KR102174882B1 publication Critical patent/KR102174882B1/en

Links

Images

Classifications

    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3861Recovery, e.g. branch miss-prediction, exception handling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • 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/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

본 발명은 리 프로그래밍 시 데이터 복구 장치 및 방법을 개시한다. 본 발명에 따르면, 리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 실행 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정함에 따라, 리 프로그래밍 요청 시 데이터를 완전하게 복구하여 전자제어장치에 대한 안정성 및 신뢰성을 더욱 향상시킬 수 있게 된다The present invention discloses an apparatus and method for recovering data during reprogramming. According to the present invention, channel information and name information of previous data previously stored when reprogramming is requested, and channel information and name information of data received during reprogramming are separately stored in a predetermined area of the memory and then channel information of the previous data. Reprogramming the data matching the channel information and name information of the new data and the name information is executed, and the channel information and name information of the previous data that did not match are set as initial values. By restoring, the stability and reliability of the electronic control device can be further improved.

Description

리 프로그래밍 시 데이터 복구 방법 및 장치{DATA RSTORATION MEHTOD OF RE-PROGRAMING AND DATA RSTORATION APPARATUS}Data recovery method and device during reprogramming {DATA RSTORATION MEHTOD OF RE-PROGRAMING AND DATA RSTORATION APPARATUS}

본 발명은 리 프로그래밍 시 데이터 복구 방법 및 장치에 관한 것으로, 더욱 상세하게는 리 프로그래밍 요청 시 기존의 데이터가 저장된 데이터 채널 정보 및 이름 정보와 리프로그래밍 과정에서 저장된 데이터 채널 정보 및 이름 정보를 토대로 리 프로그래밍 시 데이터를 완전하게 복구할 수 있도록 한 방법 및 장치에 관한 것이다.The present invention relates to a data recovery method and apparatus during reprogramming, and more particularly, reprogramming based on data channel information and name information in which existing data is stored when reprogramming is requested, and data channel information and name information stored in a reprogramming process. It relates to a method and apparatus for completely recovering city data.

통상적으로, 전자제어장치를 양산한 이후 엔진제어유닛에 프로그래밍되어 있는 프로그램을 재차 리 프로그래밍하는 경우가 있다.Typically, after mass production of the electronic control device, there is a case where the program programmed in the engine control unit is reprogrammed.

예컨대, 전자제어장치 내의 엔진제어유닛에 대해 리 프로그래밍을 하고자 하는 경우 엔진제어유닛과 연결된 캔 통신 라인에 외부 스캔 툴을 연결하여 리 프로그래밍을 개시한다.For example, in the case of reprogramming the engine control unit in the electronic control unit, reprogramming is initiated by connecting an external scan tool to the CAN communication line connected to the engine control unit.

전자제어장치내의 메모리는 리 프로그래밍 시 저장된 데이터를 보존하기 위해, 도 1에 도시된 바와 같이, 수신되는 데이터 이외에 데이터에 대한 관련 정보, 예를 들어, 데이터의 전체 사이즈 및 체크섬(Check sum) 정보, 들을 함께 저장되어 있다.In order to preserve the stored data during reprogramming, the memory in the electronic control device includes related information about data other than the received data, for example, the total size and check sum information of the data, as shown in FIG. Are stored together.

리 프로그램 요청 시 수신된 데이터의 관련 정보와 기 저장된 데이터의 관련 정보를 토대로 수신된 데이터의 유효성 여부를 판단하고 판단 결과 유효한 데이터로 판단되는 경우 수신된 데이터로 리 프로그래밍을 실행한다.When a reprogram is requested, the validity of the received data is determined based on the related information of the received data and the related information of the previously stored data, and if it is determined to be valid data, reprogramming is performed with the received data.

이때 수신된 데이터의 관련 정보와 기 저장된 데이터의 관련 정보가 상이하여 유효하지 아니하다고 판단되는 경우 수신된 리 프로그래밍이 실행되지 아니하고, 데이터가 복구되지 않는 문제점이 있었다.At this time, if it is determined that the related information of the received data and the related information of the previously stored data are different from each other and it is determined that it is not valid, there is a problem that the received reprogramming is not executed and the data is not recovered.

따라서, 본 발명은 상기의 문제점을 해결하기 위해 창출된 것으로, 본 발명의 목적은 리 프로그래밍 요청 시 기 저장된 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정함에 따라, 리 프로그래밍 요청 시 데이터를 완전하게 복구하기 위한 리 프로그래밍 시 데이터 복구 방법 및 장치를 제공하고자 함에 있다.Accordingly, the present invention was created to solve the above problem, and an object of the present invention is to store channel information and name information of previously stored data and channel information and name information of data received during reprogramming in a memory. After separately storing the channel information and name information of the previous data, reprogramming the data that matches the channel information and name information of the new data, and initializing the channel information and name information of the previous data that did not match. It is intended to provide a data recovery method and apparatus during reprogramming to completely recover data upon request of reprogramming by setting it as a value.

상기 목적을 달성하기 위한 본 발명의 실시 예에 따른 리 프로그래밍 시 데이터 복구 방법은, Data recovery method during reprogramming according to an embodiment of the present invention for achieving the above object,

전자제어장치에 대한 리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 저장하는 이전 데이터 정보 저장 단계;A previous data information storage step of storing channel information and name information of previous data previously stored in a predetermined area of a memory when a reprogramming request for the electronic control device is requested;

리 프로그램 실행 시 수신된 데이터를 저장한 후 신규 데이터의 채널 정보 및 이름 정보를 메모리에 저장하는 신규 데이터 정보 저장 단계; 및A new data information storage step of storing the received data when executing the reprogram and then storing channel information and name information of the new data in a memory; And

상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보를 비교하고 비교 결과를 토대로 데이터를 복구하는 데이터 복구 단계를 포함하는 것을 특징으로 한다.And a data recovery step of comparing channel information and name information of the previous data with channel information and name information of new data, and recovering data based on a comparison result.

상기 데이터 복구 단계는,The data recovery step,

상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하는 경우 리 프로그래밍을 통해 수신된 데이터를 저장하도록 구비되는 것이 바람직하다 할 것이다.If the channel information and name information of the previous data match the channel information and name information of the new data, it is preferable that the data is stored through reprogramming.

상기 데이터 복구 단계는,The data recovery step,

상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하지 아니한 경우 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정하도록 구비되는 것이 바람직하다 할 것이다. When the channel information and name information of the previous data and the channel information and name information of the new data do not match, it is preferable that the channel information and name information of the previous data are set as initial values.

상기 목적을 달성하기 위한 본 발명의 실시 예에 따른 리 프로그래밍 시 데이터 복구 장치는,A data recovery device during reprogramming according to an embodiment of the present invention for achieving the above object,

헤더(header), 데이터(data), 및 꼬리말(footer) 순의 데이터 구조로 수신된 데이터를 저장되는 메모리를 포함하되,Including a memory for storing the received data in a data structure in the order of header, data, and footer,

상기 메모리는, The memory,

리 프로그래밍 요청 시 데이터 구조의 꼬리말에 저장된 기 저장된 이전 데이터의 채널 정보 및 이름 정보를 저장하고, 리 프로그래밍 실행 시 수신된 신규 데이터의 채널 정보 및 이름 정보를 각각 소정 영역에 저장하고,When reprogramming is requested, the channel information and name information of the previously stored data are stored in the footer of the data structure, and the channel information and name information of the new data received when reprogramming is executed are stored in a predetermined area, respectively.

상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보를 비교하고 비교 결과를 토대로 리 프로그래밍을 실행하여 수신된 데이터를 복구하는 제어 모듈을 더 포함하는 것을 특징으로 한다.It characterized in that it further comprises a control module for recovering the received data by comparing the channel information and name information of the previous data with the channel information and name information of the new data, and performing reprogramming based on the comparison result.

상기 제어 모듈은 The control module

상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하는 경우 리 프로그래밍을 실행하여 수신된 신규 데이터를 저장하도록 구비되는 것이 바람직하다 할 것이다.If the channel information and name information of the previous data and the channel information and name information of the new data match, it is preferable to perform reprogramming to store the received new data.

상기 제어 모듈은,The control module,

상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하지 아니한 경우 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 저장하도록 구비되는 것이 바람직하다 할 것이다. When the channel information and name information of the previous data and the channel information and name information of the new data do not match, it is preferable that the channel information and name information of the previous data are stored as initial values.

이상에서 설명한 바와 같이, 본 발명의 실시 예에 따른 리 프로그래밍 시 데이터 복구 장치 및 방법은, 리 프로그래밍 요청 시 기 저장된 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정함에 따라, 리 프로그래밍 요청 시 데이터를 완전하게 복구하여 전자제어장치에 대한 안정성 및 신뢰성을 더욱 향상시킬 수 있는 효과를 얻는다.As described above, the apparatus and method for recovering data during reprogramming according to an embodiment of the present invention include channel information and name information of previously stored data when reprogramming is requested, and channel information and name information of data received during the reprogramming process. After storing the data separately in a predetermined area of the memory, reprogramming the data that matches the channel information and name information of the new data and reprogramming the channel information and name information of the previous data, and the channel information and name information of the previous data that did not match. By setting to the initial value, data is completely restored when reprogramming is requested, thereby obtaining an effect of further improving the stability and reliability of the electronic control device.

본 명세서에서 첨부되는 다음의 도면 들은 본 발명의 바람직한 실시예를 예시하는 것이며, 후술하는 발명의 상세한 설명과 함께 본 발명의 기술사상을 더욱 이해시키는 역할을 하는 것이므로, 본 발명은 그러한 도면에 기재된 사항에만 한정되어 해석되어서는 아니된다.
도 1은 일반적인 메모리의 구성을 보인 도이다.
도 2는 본 발명의 실시 예에 따른 리 프로그래밍 시 데이터 복구 장치의 구성을 보인 도이다,
도 3은 도 2에 도시된 메모리의 구성을 보인 도이다.
도 4는 본 발명의 실시 예에 따른 리 프로그래밍 시 데이터 복구 과정을 보인 흐름도이다.
The following drawings appended in the present specification illustrate preferred embodiments of the present invention, and serve to further understand the technical idea of the present invention together with the detailed description of the present invention to be described later. It is limited to and should not be interpreted.
1 is a diagram showing a configuration of a general memory.
2 is a diagram showing the configuration of a data recovery device during reprogramming according to an embodiment of the present invention.
3 is a diagram showing a configuration of the memory shown in FIG. 2.
4 is a flowchart showing a data recovery process during reprogramming according to an embodiment of the present invention.

본 발명과 본 발명의 동작상의 이점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시 예를 예시하는 첨부 도면 및 도면에 기재된 내용을 참조하여야 한다. In order to fully understand the present invention, the operational advantages of the present invention, and the objects achieved by the implementation of the present invention, reference should be made to the accompanying drawings illustrating preferred embodiments of the present invention and the contents described in the drawings.

이하, 첨부한 도면을 참조하여 본 발명의 바람직한 실시 예를 설명함으로써, 본 발명을 상세히 설명한다. 각 도면에 제시된 동일한 참조 부호는 동일한 부재를 나타낸다. Hereinafter, the present invention will be described in detail by describing a preferred embodiment of the present invention with reference to the accompanying drawings. The same reference numerals in each drawing indicate the same members.

도 1은 본 발명에 따른 리 프로그래밍 시 데이터 복구 장치의 구성을 보인 도이고, 도 2는 도 1에 도시된 메모리에 저장된 데이터의 채널 정보 및 이름 정보를 보인 도이다. 도 1 및 도 2를 참조하면, 본 발명에 따른 리 프로그래밍 시 데이터 복구 장치는, 메모리(11) 및 메모리(11)에 저장된 데이터들을 제어하는 제어 모듈(13)를 구비될 수 있다.1 is a diagram showing a configuration of a data recovery apparatus during reprogramming according to the present invention, and FIG. 2 is a diagram showing channel information and name information of data stored in a memory shown in FIG. 1. Referring to FIGS. 1 and 2, a data recovery apparatus during reprogramming according to the present invention may include a memory 11 and a control module 13 for controlling data stored in the memory 11.

여기서, 상기 메모리(11)는, 도 2에 도시된 바와 같이, 헤더(header), 데이터(data), 및 꼬리말(footer)의 데이터 구조로 데이터가 저장되며, 여기서 상기 꼬리말은 데이터의 사이즈, 체크섬, 및 채널 정보를 포함한다.Here, the memory 11 stores data in a data structure of a header, data, and footer, as shown in FIG. 2, wherein the footer is the size of the data and the checksum. , And channel information.

그리고, 상기 메모리(11)는, 상기 꼬리말에 저장된 데이터의 채널 정보에 대응되어 채널의 이름 정보를 생성하여 데이터의 채널 정보 및 이름 정보를 별도의 소정 영역에 저장한다.In addition, the memory 11 generates channel name information corresponding to the channel information of the data stored in the footer, and stores the channel information and name information of the data in a separate predetermined area.

한편, 리 프로그래밍 요청 시 도 2에 도시된 메모리의 소정 영역에 저장된 이전 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 저장한다 Meanwhile, when reprogramming is requested, channel information and name information of previous data stored in a predetermined area of the memory shown in FIG. 2 are separately stored in a predetermined area of the memory.

이어 리 프로그래밍 실행 시 수신되는 신규 데이터 역시 헤더(header), 데이터(data), 및 꼬리말(footer)의 데이터 구조로 데이터가 저장되며, 여기서 상기 꼬리말은 데이터의 사이즈, 체크섬, 및 채널 정보를 포함한다.Subsequently, new data received during reprogramming is also stored in a data structure of a header, data, and footer, where the footer includes data size, checksum, and channel information. .

그리고, 상기 메모리(11)는, 상기 꼬리말에 저장된 데이터의 채널 정보에 대응되어 채널의 이름 정보를 생성하여 데이터의 채널 정보 및 이름 정보를 별도의 소정 영역에 저장한다. In addition, the memory 11 generates channel name information corresponding to the channel information of the data stored in the footer, and stores the channel information and name information of the data in a separate predetermined area.

이어 상기 제어 모듈(13)는 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정하도록 구비된다.Subsequently, the control module 13 reprograms the channel information and name information of the previous data for data that matches the channel information and name information of the new data, and stores the channel information and name information of the previous data that do not match. It is equipped to set.

즉, 상기 이전 데이터의 채널 정보 1 및 이름 정보 “AAA”와 신규 데이터의 채널 정보 5 및 이름 정보 “HHH”는 일치하지 아니하므로, 상기 제어 모듈(13)은 이전 데이터의 채널 정보 1 및 이름 정보 ”AAA”를 초기값으로 업데이트한다.That is, since the channel information 1 and the name information “AAA” of the previous data and the channel information 5 and the name information “HHH” of the new data do not match, the control module 13 provides the channel information 1 and the name information of the previous data. Update "AAA" to the initial value.

한편, 상기 이전 데이터의 채널 정보 2 및 이름 정보 “BBB”와 신규 데이터의 채널 정보 2 및 이름 정보 “BBB”는 일치하므로, 상기 제어 모듈(13)은 신규 데이터로 리 프로그래밍을 실행한다.Meanwhile, since the channel information 2 and the name information “BBB” of the previous data and the channel information 2 and the name information “BBB” of the new data match, the control module 13 performs reprogramming with the new data.

이러한 구성에 의하면, 제어 모듈에서, 리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 실행 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정함에 따라, 리 프로그래밍 요청 시 데이터를 완전하게 복구하여 전자제어장치에 대한 안정성 및 신뢰성을 더욱 향상시킬 수 있게 된다.According to this configuration, the control module stores the channel information and name information of the previous data previously stored when reprogramming is requested, and the channel information and name information of the data received during the reprogramming execution process separately in a predetermined area of the memory, and then transfers When reprogramming is requested as the channel information and name information of the data are reprogrammed for the data that matches the channel information and name information of the new data, the channel information and the name information of the previous data that did not match are set as initial values. By completely recovering the data, the stability and reliability of the electronic control device can be further improved.

기 저장된 이전 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 실행 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정하는 일련의 과정을 도 4를 참조하여 보다 구체적으로 설명한다. Channel information and name information of previously stored data and channel information and name information of data received during reprogramming are separately stored in a predetermined area of memory, and channel information and name information of previous data are stored as channel information of new data. And a series of processes of performing reprogramming on data matching the name information and setting channel information and name information of the previous data that did not match as initial values will be described in more detail with reference to FIG. 4.

도 4는 도 1에 도시된 제어 모듈의 리 프로그래밍 시 데이터 복구 과정을 보인 흐름도로서, 도 2 내지 도 4를 참조하여 본 발명의 실시 예에 따른 리 프로그래밍 시 데이터 복구 과정을 설명한다.4 is a flowchart showing a data recovery process during reprogramming of the control module shown in FIG. 1, and a data recovery process during reprogramming according to an embodiment of the present invention will be described with reference to FIGS. 2 to 4.

우선, 상기 메모리(11)는, 리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보를 도 2에 도시된 바와 같이 저장한다(단계 101, 103).First, the memory 11 stores channel information and name information of previous data previously stored when a reprogramming request is made as shown in FIG. 2 (steps 101 and 103).

이어 상기 제어 모듈(13)은, 리 프로그래밍을 실행하고 이때 수신된 신규 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 저장한다(단계 105, 107).Subsequently, the control module 13 performs reprogramming and stores channel information and name information of the received new data in a predetermined area of the memory (steps 105 and 107).

그리고, 상기 단계(103)에서 저장된 이전 데이터의 채널 정보 및 이름 정보와 단계(107)에서 저장된 신규 데이터의 채널 정보 및 이름 정보를 제공받은 제어 모듈(13)은 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보를 비교한다(단계 109), In addition, the control module 13 receiving channel information and name information of the previous data stored in step 103 and channel information and name information of the new data stored in step 107 is provided with the channel information and name information of the previous data. Compare channel information and name information of new data (step 109),

이때 상기 단계(107)에서 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하는 경우 상기 제어 모듈(13)은 체크섬을 토대로 데이터의 유효성을 인증한 후 유효성으로 인증된 데이터를 메모리(11)에 저장한다(단계 111).At this time, if the channel information and name information of the previous data and the channel information and name information of the new data match in step 107, the control module 13 verifies the validity of the data based on the checksum, and then Is stored in the memory 11 (step 111).

이어 상기 제어 모듈(13)은, 리 프로그래밍 실행이 완료되었는 지를 판단하고 리 프로그래밍 실행이 완료된 경우(단계 113) 본 프로그램을 종료하고, 리 프로그래밍 실행이 완료되지 아니한 경우 상기 단계(105)로 진행하여 리 프로그래밍 실행 중 다음 데이터를 수신하고, 다음 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 저장한다.Subsequently, the control module 13 determines whether the reprogramming execution has been completed, and if the reprogramming execution is completed (step 113), terminates the program, and if the reprogramming execution is not completed, proceeds to the step 105 During reprogramming, the next data is received, and channel information and name information of the next data are stored in a predetermined area of the memory.

한편 상기 제어 모듈(13)은 단계(109)에서 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하지 아니한 경우 상기 이전 데이터의 채널 정보 및 이름 정보를 초기화한 후 상기 단계(113)으로 진행한다(단계 115).Meanwhile, when the channel information and name information of the previous data and the channel information and name information of the new data do not match in step 109, the control module 13 initializes the channel information and name information of the previous data, and then the step Proceed to (113) (step 115).

본 발명의 실시 예에 따르면, 리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 실행 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정함에 따라, 리 프로그래밍 요청 시 데이터를 완전하게 복구하여 전자제어장치에 대한 안정성 및 신뢰성을 더욱 향상시킬 수 있게 된다.According to an embodiment of the present invention, channel information and name information of previous data previously stored when reprogramming is requested, and channel information and name information of data received during the reprogramming execution process are separately stored in a predetermined area of the memory, and then the previous data Reprogramming is performed on the data that matches the channel information and name information of the new data, and the channel information and name information of the previous data that did not match are set as initial values. By completely recovering, the stability and reliability of the electronic control device can be further improved.

지금까지 본 발명을 바람직한 실시 예를 참조하여 상세히 설명하였지만, 본 발명이 상기한 실시 예에 한정되는 것은 아니며, 이하의 특허청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변형 또는 수정이 가능한 범위까지 본 발명의 기술적 사상이 미친다 할 것이다.Although the present invention has been described in detail with reference to preferred embodiments so far, the present invention is not limited to the above-described embodiments, and the technical field to which the present invention belongs without departing from the gist of the present invention claimed in the following claims. Anyone of ordinary skill in the art will say that the technical idea of the present invention extends to the range in which various modifications or modifications are possible.

리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보와 리 프로그래밍 실행 과정에서 수신된 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 별도로 각각 저장한 후 이전 데이터의 채널 정보 및 이름 정보를 신규 데이터의 채널 정보 및 이름 정보에 일치하는 데이터에 대해 리 프로그래밍을 실행하고 일치하지 아니한 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정함에 따라, 리 프로그래밍 요청 시 데이터를 완전하게 복구하여 전자제어장치에 대한 안정성 및 신뢰성을 더욱 향상시킬 수 있는 리 프로그래밍 시 데이터 복구 장치 및 방법에 대한 운용의 정확성 및 신뢰도 측면, 더 나아가 성능 효율 면에 매우 큰 진보를 가져올 수 있으며, 적용되는 차량의 시판 또는 영업의 가능성이 충분할 뿐만 아니라 현실적으로 명백하게 실시할 수 있는 정도이므로 산업상 이용가능성이 있는 발명이다.When reprogramming is requested, the channel information and name information of the previously stored data and the channel information and name information of the data received during the reprogramming process are separately stored in a predetermined area of the memory, and the channel information and name information of the previous data are newly saved. Electronic control device by completely recovering data when reprogramming is requested by executing reprogramming on data that matches the channel information and name information of the data and setting the channel information and name information of the previous data that did not match as initial values. Reprogramming that can further improve the stability and reliability of the data recovery device and method can bring very great progress in the aspect of operation accuracy and reliability, and furthermore, in terms of performance efficiency. It is an invention that has industrial applicability because it has sufficient possibilities and can be implemented clearly in reality.

Claims (6)

전자제어장치에 대한 리 프로그래밍 요청 시 기 저장된 이전 데이터의 채널 정보 및 이름 정보를 메모리의 소정 영역에 저장하는 이전 데이터 정보 저장 단계;
리 프로그램 실행 시 수신된 데이터를 저장한 후 신규 데이터의 채널 정보 및 이름 정보를 메모리에 저장하는 신규 데이터 정보 저장 단계; 및
상기 이전 데이터의 채널 정보 및 이름 정보와 상기 신규 데이터의 채널 정보 및 이름 정보를 비교하는 단계;
상기 이전 데이터의 채널 정보 및 이름 정보와 상기 신규 데이터의 채널 정보 및 이름 정보가 일치하는 경우, 상기 이전 데이터의 체크섬과 상기 신규 데이터의 체크섬을 비교하는 단계; 및
체크섬, 채널 정보 및 이름 정보의 비교 결과를 토대로 데이터를 복구하는 데이터 복구 단계를 포함하고,
상기 소정 영역은 체크섬 정보가 저장되는 영역과는 상이한 별도의 영역인 것을 특징으로 하는 리 프로그래밍 시 데이터 복구 방법.
A previous data information storage step of storing channel information and name information of previous data previously stored in a predetermined area of a memory when a reprogramming request for the electronic control device is requested;
A new data information storage step of storing the received data when executing the reprogram and then storing channel information and name information of the new data in a memory; And
Comparing channel information and name information of the previous data with channel information and name information of the new data;
When the channel information and name information of the previous data and the channel information and name information of the new data match, comparing a checksum of the previous data with a checksum of the new data; And
A data recovery step of recovering data based on a comparison result of the checksum, channel information, and name information,
And the predetermined area is a separate area different from an area in which checksum information is stored.
제1항에 있어서, 상기 데이터 복구 단계는,
상기 이전 데이터의 체크섬과 상기 신규 데이터의 체크섬이 일치하는 경우 리 프로그래밍을 통해 수신된 데이터를 저장하도록 구비되는 것을 특징으로 하는 리 프로그래밍 시 데이터 복구 방법.
The method of claim 1, wherein the data recovery step,
And storing data received through reprogramming when the checksum of the previous data and the checksum of the new data match.
제1항에 있어서, 상기 비교하는 단계는,
상기 이전 데이터의 채널 정보 및 이름 정보와 신규 데이터의 채널 정보 및 이름 정보가 일치하지 아니한 경우 상기 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 설정하도록 구비되는 것을 특징으로 하는 리 프로그래밍 시 데이터 복구 방법.
The method of claim 1, wherein the comparing step,
When the channel information and name information of the previous data and the channel information and name information of the new data do not match, the channel information and the name information of the previous data are set as initial values. .
헤더(header), 데이터(data), 및 꼬리말(footer) 순의 데이터 구조로 수신된 데이터를 저장하는 메모리 및 제어 모듈을 포함하고,
상기 메모리는,
리 프로그래밍 요청 시 데이터 구조의 꼬리말에 저장된 기 저장된 이전 데이터의 채널 정보 및 이름 정보를 저장하고, 리 프로그래밍 실행 시 수신된 신규 데이터의 채널 정보 및 이름 정보를 각각 소정 영역에 저장하고,
상기 제어 모듈은,
상기 이전 데이터의 채널 정보 및 이름 정보와 상기 신규 데이터의 채널 정보 및 이름 정보를 비교하고,
상기 이전 데이터의 채널 정보 및 이름 정보와 상기 신규 데이터의 채널 정보 및 이름 정보가 일치하는 경우, 상기 이전 데이터의 체크섬과 상기 신규 데이터의 체크섬을 비교하며, 그리고
체크섬, 채널 정보 및 이름 정보의 비교 결과를 토대로 리 프로그래밍을 실행하여 수신된 데이터를 복구하고,
상기 소정 영역은 체크섬 정보가 저장되는 영역과는 상이한 별도의 영역인 것을 특징으로 하는 리 프로그래밍 시 데이터 복구 장치.
It includes a memory and a control module for storing the received data in a data structure in the order of header, data, and footer,
The memory,
When reprogramming is requested, the channel information and name information of the previously stored data are stored in the footer of the data structure, and channel information and name information of the new data received when reprogramming is executed are stored in a predetermined area,
The control module,
Compare channel information and name information of the previous data with channel information and name information of the new data,
When the channel information and name information of the previous data and the channel information and name information of the new data match, the checksum of the previous data and the checksum of the new data are compared, and
Perform reprogramming based on the comparison result of checksum, channel information and name information to recover received data,
And the predetermined area is a separate area different from an area in which checksum information is stored.
제4항에 있어서, 상기 제어 모듈은,
상기 이전 데이터의 체크섬과 상기 신규 데이터의 체크섬이 일치하는 경우 리 프로그래밍을 실행하여 수신된 신규 데이터를 저장하도록 구비되는 것을 특징으로 하는 리 프로그래밍 시 데이터 복구 장치.
The method of claim 4, wherein the control module,
And storing received new data by executing reprogramming when the checksum of the previous data and the checksum of the new data match.
제4항에 있어서, 상기 제어 모듈은,
상기 이전 데이터의 채널 정보 및 이름 정보와 상기 신규 데이터의 채널 정보 및 이름 정보가 일치하지 아니한 경우 상기 이전 데이터의 채널 정보 및 이름 정보를 초기값으로 저장하도록 구비되는 것을 특징으로 하는 리 프로그래밍 시 데이터 복구 장치.


The method of claim 4, wherein the control module,
When the channel information and name information of the previous data and the channel information and name information of the new data do not match, the channel information and name information of the previous data are stored as initial values. Device.


KR1020120124179A 2012-11-05 2012-11-05 Data rstoration mehtod of re-programing and data rstoration apparatus KR102174882B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120124179A KR102174882B1 (en) 2012-11-05 2012-11-05 Data rstoration mehtod of re-programing and data rstoration apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120124179A KR102174882B1 (en) 2012-11-05 2012-11-05 Data rstoration mehtod of re-programing and data rstoration apparatus

Publications (2)

Publication Number Publication Date
KR20140057878A KR20140057878A (en) 2014-05-14
KR102174882B1 true KR102174882B1 (en) 2020-11-05

Family

ID=50888400

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120124179A KR102174882B1 (en) 2012-11-05 2012-11-05 Data rstoration mehtod of re-programing and data rstoration apparatus

Country Status (1)

Country Link
KR (1) KR102174882B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210070676A (en) 2019-12-05 2021-06-15 박노흥 Production method of fermented Epimedium koreanum Nakai and Angelica, Codonopsis lanceolata, Onion, Artemisia Linne, Ginseng by using Pineapple

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100873302B1 (en) * 2006-08-29 2008-12-09 콘티넨탈 오토모티브 시스템 주식회사 Method for reprogramming electric control unit of car

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080042502A (en) * 2006-11-10 2008-05-15 현대자동차주식회사 Electronic control unit for vehicle and method of control program setup thereof
KR100853941B1 (en) * 2006-12-27 2008-08-25 (주)아이디스 Multimedia storage device and data recovering method of the device
US8078861B1 (en) * 2008-02-13 2011-12-13 Omnimgtrix, LLC Remote processor reprogramming

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100873302B1 (en) * 2006-08-29 2008-12-09 콘티넨탈 오토모티브 시스템 주식회사 Method for reprogramming electric control unit of car

Also Published As

Publication number Publication date
KR20140057878A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
US20190287626A1 (en) Data overwriting device and data overwriting method
CN104657160B (en) The method for burn-recording of Vehicle Controller multi-chip application program
CN106708543B (en) OTA (over the air) upgrading method and device of operating system
KR20170063873A (en) Using counters and a table to protect data in a storage device
CN103810011A (en) Method for achieving OTA upgrading through file server
CN103685487A (en) Child node updating method in wireless communication network
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
WO2011079794A1 (en) Method and communication equipment for obtaining software
WO2017202338A1 (en) Method and system for loading drive to set-top box
CN106897166B (en) Mobile terminal and repairing method thereof
CN102622283A (en) Backup recovery method and device for radio frequency calibration parameters of terminal
CN104461593A (en) Differential upgrade patch manufacturing method and device
WO2016078263A1 (en) Upgrading control device and terminal, terminal upgrading method and system, and storage medium
CN104866293A (en) Method and device for extending Android application program function
CN107071570A (en) A kind of set top box upgrading method and device
KR102174882B1 (en) Data rstoration mehtod of re-programing and data rstoration apparatus
US9786373B2 (en) EEPROM backup method and device
CN103533534B (en) Firmware wireless upgrading method for DECT (Digital Enhanced Cordless Telecommunications) mobile phone
CN104778424A (en) Method for preventing ROM (Read Only Memory) root obtaining on basis of smart television
CN104185199A (en) Base station self-starting method and device and control method and device thereof
CN107436778A (en) A kind of high reliability upgrade method of unmanned systems
CN103399804A (en) Method and system for repairing remote package files
EP3223153A1 (en) Method of updating program code and electronic device using the same
CN111586081B (en) Internet of things implementation method based on object model
CN107967160B (en) Method and device for updating operating system file through Boot Loader

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right