KR102153403B1 - Control apparatus, memory device and control method for data calibration - Google Patents

Control apparatus, memory device and control method for data calibration Download PDF

Info

Publication number
KR102153403B1
KR102153403B1 KR1020190092514A KR20190092514A KR102153403B1 KR 102153403 B1 KR102153403 B1 KR 102153403B1 KR 1020190092514 A KR1020190092514 A KR 1020190092514A KR 20190092514 A KR20190092514 A KR 20190092514A KR 102153403 B1 KR102153403 B1 KR 102153403B1
Authority
KR
South Korea
Prior art keywords
page
data
working
switching area
controller
Prior art date
Application number
KR1020190092514A
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 KR1020190092514A priority Critical patent/KR102153403B1/en
Application granted granted Critical
Publication of KR102153403B1 publication Critical patent/KR102153403B1/en

Links

Images

Classifications

    • 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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1666Error detection or correction of the data by redundancy in hardware where the redundant component is memory or memory area
    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1608Error detection by comparing the output signals of redundant hardware
    • G06F11/1612Error detection by comparing the output signals of redundant hardware where the redundant component is persistent storage

Abstract

The present invention provides a control apparatus, a memory device, and a control method for data calibration. The control apparatus for data calibration comprises: a first memory to which a reference page for storing reference data is allocated; a working page which stores working data generated as a result of data calibration for the reference data; a second memory to which a switching area to which the reference data stored in the reference page and the working data stored in the working page are selectively copied is allocated; and a controller configured to access only data copied to the switching area when controlling a vehicle.

Description

데이터 캘리브레이션을 위한 제어 장치, 메모리 디바이스 및 제어 방법{CONTROL APPARATUS, MEMORY DEVICE AND CONTROL METHOD FOR DATA CALIBRATION}Control device, memory device and control method for data calibration {CONTROL APPARATUS, MEMORY DEVICE AND CONTROL METHOD FOR DATA CALIBRATION}

본 발명은 데이터 캘리브레이션을 위한 제어 장치, 메모리 디바이스 및 제어 방법에 관한 것으로서, 더욱 상세하게는 차량 제어기의 데이터 캘리브레이션에 적용될 수 있는, 데이터 캘리브레이션을 위한 제어 장치, 메모리 디바이스 및 제어 방법에 관한 것이다.The present invention relates to a control apparatus, a memory device, and a control method for data calibration, and more particularly, to a control apparatus, a memory device, and a control method for data calibration that can be applied to data calibration of a vehicle controller.

차량 제어기의 개발 단계에서는 양산 차량의 사양이 같은 차종이라도 옵션 및 지역 등에 따라 변경될 수 있는 점을 고려하여, 추후에 실제 차량과 시뮬레이션 간의 차이를 교정(Calibration)할 수 있도록 많은 제어 데이터들을 변수화하는 방식으로 차량 제어기가 설계된다. 변수화된 차량 제어 데이터들 중에는 차량의 사양에 따라 그 값이 정확하게 결정되는 데이터가 있는 반면, 최적의 값을 찾기 위해 실제 차량의 동작 중 그 값을 조정하여 변경해야 하는 데이터도 있으며, 이러한 차량의 동작 제어를 위한 최적의 값을 갖는 제어 데이터를 찾기 위해 레퍼런스 데이터를 변경하는 과정을 데이터 캘리브레이션(Data Calibration)이라 한다.In the development stage of the vehicle controller, a lot of control data is variableized so that the difference between the actual vehicle and the simulation can be corrected in the future, taking into account that even if the specifications of the mass-produced vehicle can be changed according to options and regions. The vehicle controller is designed in this way. Among the variableized vehicle control data, there is data whose value is accurately determined according to the specifications of the vehicle, while there are data that need to be adjusted and changed during actual vehicle operation in order to find the optimum value. The process of changing the reference data in order to find the control data having the optimum value for control is called data calibration.

차량 제어기의 데이터 캘리브레이션을 위해 레퍼런스 페이지(Reference Page)와 워킹 페이지(Working Page)가 마련되며, 레퍼런스 페이지는 원본 데이터 영역이기 때문에 변경되지 않는 반면, 워킹 페이지는 캘리브레이션의 결과가 적용되는 데이터 영역으로서 캘리브레이션에 따라 변경이 가능하기 때문에, 레퍼런스 페이지는 비 휘발성 메모리(ROM)에 할당되고 워킹 페이지는 휘발성 메모리(RAM)에 할당된다. 또한, 레퍼런스 페이지 및 워킹 페이지는 일반적으로 동일한 크기의 메모리 영역을 가진다.A reference page and a working page are provided for data calibration of the vehicle controller, and the reference page is not changed because it is the original data area, whereas the working page is a data area to which the calibration result is applied. Since it can be changed according to the configuration, the reference page is allocated to the nonvolatile memory (ROM) and the working page is allocated to the volatile memory (RAM). Also, the reference page and the working page generally have the same sized memory area.

차량 제어기에서 차량 제어를 위해 특정 데이터를 사용하는 경우, 소정의 캘리브레이션 툴의 동작에 의해 레퍼런스 페이지에 저장된 데이터를 사용하거나, 워킹 페이지에 저장된 데이터를 사용한다. 차량 제어기는 레퍼런스 페이지 및 워킹 페이지로 동시에 접근하지 않고 둘 중 하나의 페이지로만 접근하며, 즉 캘리브레이션 툴의 동작에 의해 레퍼런스 페이지 및 워킹 페이지를 선택적으로 접근하는 방식으로 데이터를 사용한다.When the vehicle controller uses specific data for vehicle control, data stored in a reference page or data stored in a working page are used by the operation of a predetermined calibration tool. The vehicle controller does not access the reference page and the working page at the same time, but only accesses one of the two pages, that is, uses the data in a manner that selectively accesses the reference page and the working page by the operation of the calibration tool.

본 발명의 배경기술은 대한민국 등록특허공보 제10-1603547호(2016.03.15. 공고)에 개시되어 있다.Background technology of the present invention is disclosed in Korean Patent Publication No. 10-1603547 (announced on March 15, 2016).

레퍼런스 페이지 영역의 데이터와 워킹 페이지 영역의 데이터는 물리적으로 다른 메모리 영역에 존재하기 때문에 각각 다른 어드레스를 갖는 반면, 차량 제어기는 이들 데이터에 접근하는 경우 동일한 어드레스를 통해 각 영역에 접근하도록 설계된다. 이를 위해, 대부분의 마이크로 컨트롤러에는 동일한 어드레스를 기반으로 각각 다른 어드레스로 접근함으로써 레퍼런스 페이지 및 워킹 페이지에 접근할 수 있는 메커니즘을 지원하기 위한 별도의 하드웨어가 구비되어 있다. 즉, 상기 하드웨어는 페이지의 상태가 레퍼런스 페이지인지 또는 워킹 페이지인지에 따라 제어기가 각 페이지로 자동적으로 접근할 수 있도록 지원한다.The data of the reference page area and the data of the working page area physically exist in different memory areas and thus have different addresses, whereas the vehicle controller is designed to access each area through the same address when accessing these data. To this end, most microcontrollers are equipped with separate hardware to support a mechanism for accessing a reference page and a working page by accessing different addresses based on the same address. That is, the hardware supports the controller to automatically access each page according to whether the state of the page is a reference page or a working page.

그러나, 일부의 마이크로 컨트롤러에서는 전술한 동일 어드레스를 기반으로 각각 다른 어드레스로 접근할 수 있는, 하드웨어 기반의 메커니즘을 지원하지 않기 때문에, 해당 마이크로 컨트롤러의 개발에 있어 데이터 캘리브레이션을 지원할 수 없는 이슈가 발생한다.However, some microcontrollers do not support a hardware-based mechanism that allows access to different addresses based on the same address described above, so there is an issue that cannot support data calibration in the development of the microcontroller. .

본 발명은 상기의 문제점을 해결하기 위해 창안된 것으로서, 본 발명의 일 측면에 따른 목적은 동일 어드레스를 기반으로 각각 다른 어드레스로 접근할 수 있는 하드웨어 기반의 메커니즘이 지원되지 않는 마이크로 컨트롤러에 있어서 소프트웨어적인 메커니즘을 적용하여 데이터 캘리브레이션을 지원할 수 있는, 데이터 캘리브레이션을 위한 제어 장치, 메모리 디바이스 및 제어 방법을 제공하는 것이다.The present invention was invented to solve the above problems, and an object according to an aspect of the present invention is to provide a software-based microcontroller in which a hardware-based mechanism for accessing different addresses based on the same address is not supported. It is to provide a control device, a memory device, and a control method for data calibration that can support data calibration by applying a mechanism.

본 발명의 일 측면에 따른 데이터 캘리브레이션을 위한 제어 장치는 레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당된 제1 메모리; 상기 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)와, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 상기 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 할당된 제2 메모리; 및 차량의 제어 시 상기 스위칭 영역에 복사된 데이터로만 접근하도록 구성된 제어기;를 포함하는 것을 특징으로 한다.A control device for data calibration according to an aspect of the present invention includes: a first memory to which a reference page for storing reference data is allocated; A working page in which working data generated as a result of data calibration on the reference data is stored, and a switching in which the reference data stored in the reference page and the working data stored in the working page are selectively copied. A second memory to which a switching area is allocated; And a controller configured to access only the data copied to the switching area when the vehicle is controlled.

본 발명에 있어 상기 제1 메모리는 비 휘발성 메모리로 구성되고, 상기 제2 메모리는 휘발성 메모리로 구성되는 것을 특징으로 한다.In the present invention, the first memory is configured as a non-volatile memory, and the second memory is configured as a volatile memory.

본 발명에 있어 상기 제어기는, 상기 레퍼런스 페이지 및 상기 워킹 페이지 간에 참조 대상 페이지를 전환하는 경우, 전환 대상이 되는 페이지에 저장된 데이터를 상기 스위칭 영역에 복사하고, 상기 복사된 스위칭 영역의 데이터에 접근하여 차량을 제어하는 것을 특징으로 한다.In the present invention, the controller, when switching a reference target page between the reference page and the working page, copies data stored in the page to be converted to the switching area, and accesses the data of the copied switching area. It is characterized by controlling the vehicle.

본 발명에 있어 상기 제어기는, 상기 레퍼런스 페이지 및 상기 워킹 페이지 중 상기 스위칭 영역에 현재 복사된 페이지를 확인하기 위해, 상기 스위칭 영역에 복사되는 페이지에 따라 페이지 상태 플래그(Page State Flag)를 전환하여 설정하는 것을 특징으로 한다.In the present invention, the controller switches and sets a page state flag according to a page copied to the switching area in order to check a page currently copied to the switching area among the reference page and the working page. Characterized in that.

본 발명에 있어 상기 제어기는, 시스템 전원이 온 된 경우, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 워킹 페이지 및 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 초기화를 수행하는 것을 특징으로 한다.In the present invention, the controller performs initialization of copying the reference data stored in the reference page to the working page and the switching area and setting the page status flag to a'reference page' when the system power is turned on. It is characterized.

본 발명에 있어 상기 제어기는, 데이터 캘리브레이션을 위해 상기 참조 대상 페이지를 상기 레퍼런스 페이지에서 상기 워킹 페이지로 전환하는 경우, 상기 워킹 페이지에 저장된 워킹 데이터를 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '워킹 페이지'로 설정한 후, 상기 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행하는 것을 특징으로 한다.In the present invention, the controller, when switching the reference target page from the reference page to the working page for data calibration, copies the working data stored in the working page to the switching area and sets the page status flag to'working' After setting as'page', data calibration is performed based on the working data copied to the switching area.

본 발명에 있어 상기 제어기는, 상기 참조 대상 페이지를 상기 워킹 페이지에서 상기 레퍼런스 페이지로 전환하는 경우, 상기 스위칭 영역에 저장된 데이터를 워킹 데이터로서 상기 워킹 페이지에 복사하고, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 스위칭 영역에 복사하며, 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 것을 특징으로 한다.In the present invention, the controller, when switching the reference target page from the working page to the reference page, copies the data stored in the switching area to the working page as working data, and the reference data stored in the reference page It is copied to the switching area, and the page status flag is set to a'reference page'.

본 발명의 일 측면에 따른 데이터 캘리브레이션을 위한 메모리 디바이스는 레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당된 제1 메모리; 및 상기 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)와, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 상기 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 할당된 제2 메모리로서, 상기 스위칭 영역은 차량 제어 시 차량을 제어하는 제어기로부터의 접근을 독점하는 것인, 제2 메모리;를 포함하는 것을 특징으로 한다.A memory device for data calibration according to an aspect of the present invention includes: a first memory to which a reference page for storing reference data is allocated; And a working page in which working data generated as a result of data calibration for the reference data is stored, and reference data stored in the reference page and working data stored in the working page are selectively copied. And a second memory to which a switching area is allocated, wherein the switching area monopolizes access from a controller controlling the vehicle during vehicle control.

본 발명의 일 측면에 따른 데이터 캘리브레이션을 위한 제어 방법은, 제1 및 제2 메모리와 차량을 제어하는 제어기를 이용하는, 데이터 캘리브레이션을 위한 제어 방법으로서, 상기 제1 메모리에는 레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당되고, 상기 제2 메모리에는 상기 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)와, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 상기 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 할당되며, 상기 제어기는 차량의 제어 시 상기 스위칭 영역에 복사된 데이터로만 접근하도록 동작하는 것을 특징으로 한다.A control method for data calibration according to an aspect of the present invention is a control method for data calibration using first and second memories and a controller for controlling a vehicle, wherein a reference page storing reference data in the first memory (Reference Page) is allocated, and in the second memory, a working page in which working data generated as a result of data calibration for the reference data is stored, and reference data stored in the reference page, and A switching area in which the working data stored in the working page is selectively copied is allocated, and the controller operates to access only the data copied to the switching area when the vehicle is controlled.

본 발명의 상기 데이터 캘리브레이션을 위한 제어 방법은, 상기 제어기가, 시스템 전원이 온 된 경우, 상기 워킹 페이지 및 상기 스위칭 영역의 초기화를 수행하는 단계; 및 상기 제어기가, 상기 레퍼런스 페이지 및 상기 워킹 페이지 간에 참조 대상 페이지를 전환하는 경우, 전환 대상이 되는 페이지에 저장된 데이터를 상기 스위칭 영역에 복사하고, 상기 복사된 스위칭 영역의 데이터에 접근하여 차량을 제어하는 단계;를 포함하는 것을 특징으로 한다.The control method for data calibration of the present invention includes the steps of: when the system power is on, the controller performs initialization of the working page and the switching area; And when the controller switches the reference target page between the reference page and the working page, copies data stored in the page to be converted to the switching area, and controls the vehicle by accessing the data of the copied switching area. It characterized in that it includes;

본 발명에 있어 상기 제어기는, 상기 레퍼런스 페이지 및 상기 워킹 페이지 중 상기 스위칭 영역에 현재 복사된 페이지를 확인하기 위해, 상기 스위칭 영역에 복사되는 페이지에 따라 페이지 상태 플래그(Page State Flag)를 전환하여 설정하는 것을 특징으로 한다.In the present invention, the controller switches and sets a page state flag according to a page copied to the switching area in order to check a page currently copied to the switching area among the reference page and the working page. Characterized in that.

본 발명의 상기 초기화를 수행하는 단계에서, 상기 제어기는, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 워킹 페이지 및 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 것을 특징으로 한다.In the step of performing the initialization of the present invention, the controller is characterized in that the reference data stored in the reference page is copied to the working page and the switching area, and the page status flag is set to a'reference page'.

본 발명의 상기 차량을 제어하는 단계는, 상기 제어기가, 상기 참조 대상 페이지를 상기 레퍼런스 페이지에서 상기 워킹 페이지로 전환하기 위해, 상기 워킹 페이지에 저장된 워킹 데이터를 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '워킹 페이지'로 설정하는 워킹 페이지 전환 단계; 상기 제어기가, 상기 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행하는 데이터 캘리브레이션 단계; 및 상기 제어기가, 상기 참조 대상 페이지를 상기 워킹 페이지에서 상기 레퍼런스 페이지로 전환하기 위해, 데이터 캘리브레이션이 수행되어 상기 스위칭 영역에 저장된 데이터를 워킹 데이터로서 상기 워킹 페이지에 복사하고, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 스위칭 영역에 복사하며, 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 레퍼런스 페이지 전환 단계;를 포함하는 것을 특징으로 한다.In the controlling of the vehicle of the present invention, the controller copies the working data stored in the working page to the switching area in order to switch the reference target page from the reference page to the working page, and the page status flag A working page switching step of setting the'working page'; A data calibration step of the controller performing data calibration based on the working data copied to the switching area; And the controller, in order to switch the reference target page from the working page to the reference page, data calibration is performed and data stored in the switching area is copied to the working page as working data, and the reference stored in the reference page And a reference page switching step of copying data to the switching area and setting the page status flag to a'reference page'.

본 발명의 상기 차량을 제어하는 단계에서, 상기 워킹 페이지 전환 단계, 상기 데이터 캘리브레이션 단계 및 상기 레퍼런스 페이지 전환 단계는 1 사이클을 구성하여 반복적으로 수행되는 것을 특징으로 한다.In the step of controlling the vehicle of the present invention, the working page switching step, the data calibration step, and the reference page switching step are repeatedly performed in one cycle.

본 발명의 일 측면에 따르면, 본 발명은 동일한 어드레스를 기반으로 각각 다른 어드레스로 접근할 수 있는 하드웨어적인 메커니즘이 적용되지 않는 마이크로 컨트롤러로 하여금 소프트웨어적인 메커니즘을 통해 데이터 캘리브레이션을 수행하도록 지원할 수 있으며, 따라서 데이터 캘리브레이션을 위한 별도의 하드웨어에 대한 의존성을 제거하여 원가를 절감시킴과 동시에 데이터 캘리브레이션이 가능한 제품군의 확대를 가능하게 할 수 있다.According to an aspect of the present invention, the present invention can support a microcontroller to which a hardware mechanism to access different addresses based on the same address is not applied to perform data calibration through a software mechanism, and thus By removing the dependence on separate hardware for data calibration, cost can be reduced, and at the same time, it is possible to expand the product line capable of data calibration.

도 1은 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 장치 및 메모리 디바이스를 설명하기 위한 블록구성도이다.
도 2는 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 방법을 설명하기 위한 흐름도이다.
도 3은 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 방법의 시계열적 구성을 설명하기 위한 예시도이다.
1 is a block diagram illustrating a control device and a memory device for data calibration according to an embodiment of the present invention.
2 is a flowchart illustrating a control method for data calibration according to an embodiment of the present invention.
3 is an exemplary diagram for explaining a time series configuration of a control method for data calibration according to an embodiment of the present invention.

이하, 첨부된 도면을 참조하여 본 발명에 따른 데이터 캘리브레이션을 위한 제어 장치, 메모리 디바이스 및 제어 방법을 설명한다. 이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. 또한, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로, 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.Hereinafter, a control apparatus, a memory device, and a control method for data calibration according to the present invention will be described with reference to the accompanying drawings. In this process, the thickness of the lines or the size of components shown in the drawings may be exaggerated for clarity and convenience of description. In addition, terms to be described later are terms defined in consideration of functions in the present invention and may vary according to the intention or custom of users or operators. Therefore, definitions of these terms should be made based on the contents throughout the present specification.

도 1은 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 장치 및 메모리 디바이스를 설명하기 위한 블록구성도이다.1 is a block diagram illustrating a control device and a memory device for data calibration according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 장치는 제1 및 제2 메모리(100, 200)와 제어기(300)를 포함할 수 있다.Referring to FIG. 1, a control device for data calibration according to an embodiment of the present invention may include first and second memories 100 and 200 and a controller 300.

제1 메모리(100)에는 차량 동작의 제어 데이터로 기능하는 레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당된다. 본 실시예에서 레퍼런스 페이지에 저장되는 원본 데이터를 레퍼런스 데이터로 표기하며, 레퍼런스 페이지는 원본 데이터인 레퍼런스 데이터가 저장되는 영역이기 때문에 제1 메모리(100)는 Flash ROM과 같은 비 휘발성 메모리로 구성될 수 있다.A reference page for storing reference data that functions as control data for vehicle operation is allocated to the first memory 100. In this embodiment, the original data stored in the reference page is indicated as reference data, and since the reference page is an area in which reference data, which is the original data, is stored, the first memory 100 may be configured as a nonvolatile memory such as a flash ROM. have.

제2 메모리(200)에는 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)가 할당된다. 본 실시예에서 워킹 페이지에 저장되는 데이터를 워킹 데이터로 표기하며, 워킹 페이지는 레퍼런스 데이터에 대한 데이터 캘리브레이션의 결과에 따라 변경되는 워킹 데이터가 저장되는 영역이기 때문에 제2 메모리(200)는 RAM과 같은 휘발성 메모리로 구성될 수 있다.A working page in which working data generated as a result of data calibration for reference data is stored is allocated to the second memory 200. In this embodiment, the data stored in the working page is expressed as working data, and the working page is an area in which working data that is changed according to the result of data calibration for reference data is stored, so the second memory 200 is the same as RAM. It can be composed of volatile memory.

또한, 제2 메모리(200)는 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 더 할당된다.In addition, the second memory 200 is further allocated with a switching area in which reference data stored in the reference page and working data stored in the working page are selectively copied.

구체적으로, 본 실시예는 동일 어드레스를 기반으로 각각 다른 어드레스로 접근할 수 있는 하드웨어 기반의 메커니즘이 지원되지 않는 마이크로 컨트롤러에 적용되는 것을 전제하며, 이를 위해 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 휘발성 메모리로 구성될 수 있는 제2 메모리(200)에 할당되는 구성을 채용한다. 도 1에는 워킹 페이지 및 스위칭 영역이 동일한 제2 메모리(200)의 다른 어드레스에 각각 할당되는 예시를 도시하였으나, 실시예에 따라서는 스위칭 영역이 제2 메모리(200)와 독립적으로 구성되는 제3 메모리(휘발성 메모리, 미도시)에 할당되는 구성으로 구현될 수도 있다.Specifically, this embodiment assumes that a hardware-based mechanism that can access different addresses based on the same address is applied to a microcontroller that is not supported, and for this purpose, reference data stored in a reference page and stored in a working page A configuration in which a switching area to which working data is selectively copied is allocated to the second memory 200 that may be configured as a volatile memory is adopted. 1 illustrates an example in which a working page and a switching area are allocated to different addresses of the same second memory 200, respectively, but according to an embodiment, a third memory in which the switching area is independently configured from the second memory 200 It may be implemented in a configuration allocated to (volatile memory, not shown).

이에 따라, 본 실시예에서 제어기(300, ECU 또는 마이크로 컨트롤러)는 차량의 제어 시 스위칭 영역에 복사된 데이터로만 접근하도록 구성된다. 즉, 레퍼런스 데이터 및 워킹 데이터가 선택적으로 복사되는 스위칭 영역을 마련한 후, 제어기(300)가 차량의 제어 시 스위칭 영역의 어드레스로만 접근하도록 설계함으로써, 동일한 어드레스를 기반으로 레퍼런스 페이지 및 워킹 페이지에 선택적으로 접근하는 것과 동일한 동작이 구현될 수 있다.Accordingly, in the present embodiment, the controller 300 (ECU or microcontroller) is configured to access only the data copied to the switching area when controlling the vehicle. That is, after preparing a switching area in which the reference data and working data are selectively copied, the controller 300 is designed to access only the address of the switching area when controlling the vehicle, so that the reference page and the working page are selectively accessed based on the same address. The same actions as approaching can be implemented.

한편, 도 1에 도시된 것과 같이 제어기(300)는 레퍼런스 페이지 및 워킹 페이지 간에 참조 대상 페이지(즉, 현재 참조하고자 하는 대상 페이지)를 전환하기 위한 오버레이 로직(SW Overlay Logic)이 설계되어 있으며, 구체적으로 초기화 로직(Initialization Logic), 워킹 페이지에서 레퍼런스 페이지로의 전환 로직(Switching W.P to R.P Logic), 및 레퍼런스 페이지에서 워킹 페이지로의 전환 로직(Switching R.P to W.P Logic)이 설계되어 있다. 이때, 제어기(300)는 레퍼런스 페이지 및 워킹 페이지 중 스위칭 영역에 현재 복사된 페이지를 확인하기 위해, 스위칭 영역에 복사되는 페이지에 따라 페이지 상태 플래그(Page State Flag)를 전환하여 설정한다.Meanwhile, as shown in FIG. 1, the controller 300 has designed an overlay logic (SW Overlay Logic) for switching a reference target page (ie, a target page to be currently referred to) between a reference page and a working page. As such, an initialization logic, a switching logic from a working page to a reference page (Switching WP to RP Logic), and a switching logic from a reference page to a working page (Switching RP to WP Logic) are designed. At this time, the controller 300 switches and sets a page state flag according to the page copied to the switching area in order to check the page currently copied to the switching area among the reference page and the working page.

상기와 같은 오버레이 로직을 기반으로, 제어기(300)는 레퍼런스 페이지 및 워킹 페이지 간에 참조 대상 페이지를 전환하는 경우, 전환 대상이 되는 페이지에 저장된 데이터를 스위칭 영역에 복사하고, 복사된 스위칭 영역의 데이터에 접근하여 차량을 제어한다.Based on the overlay logic as described above, when switching the reference target page between the reference page and the working page, the controller 300 copies the data stored in the page to be converted to the switching area, and the copied switching area data Approach and control the vehicle.

전술한 내용을 바탕으로, 워킹 페이지 및 스위칭 영역에 대한 초기화 동작, 워킹 페이지에서 레퍼런스 페이지로의 전환 동작, 및 레퍼런스 페이지에서 워킹 페이지로의 전환 동작에 대하여 구체적으로 설명한다.Based on the above description, an initialization operation for a working page and a switching area, a switching operation from a working page to a reference page, and a switching operation from a reference page to a working page will be described in detail.

먼저, 제어기(300)는 시스템 전원이 온 된 경우(예: IGN ON), 레퍼런스 페이지에 저장된 레퍼런스 데이터를 워킹 페이지 및 스위칭 영역에 복사하고 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 초기화를 수행한다.First, when the system power is turned on (eg, IGN ON), the controller 300 copies the reference data stored in the reference page to the working page and the switching area, and performs initialization of setting the page status flag to'reference page'. .

즉, 차량의 시스템 전원이 최초 온 된 상태에서는 데이터 캘리브레이션이 수행되지 않아 워킹 페이지에 저장된 데이터가 부재하므로, 제어기(300)는 레퍼런스 페이지에 저장된 레퍼런스 데이터를 워킹 페이지에 복사하여 레퍼런스 페이지 및 워킹 페이지를 동기화시킨다. 또한, 데이터 캘리브레이션이 수행되기 전이므로 레퍼런스 페이지가 참조되어야 하기 때문에, 제어기(300)는 레퍼런스 데이터를 스위칭 영역에 복사하고 페이지 상태 플래그를 '레퍼런스 페이지'로 설정한다. 페이지 상태 플래그에 설정되는 '레퍼런스 페이지' 및 '워킹 페이지'는 디지털 코드의 값으로 미리 정의되어 있을 수 있다(예: '레퍼런스 페이지': 0, '워킹 페이지': 1).That is, when the system power of the vehicle is initially turned on, data calibration is not performed and there is no data stored in the working page, so the controller 300 copies the reference data stored in the reference page to the working page to create the reference page and the working page. Synchronize. In addition, since the reference page must be referenced since the data calibration is performed, the controller 300 copies the reference data to the switching area and sets the page status flag to a'reference page'. The'reference page' and the'working page' set in the page status flag may be predefined as values of a digital code (eg,'reference page': 0,'working page': 1).

다음으로, 데이터 캘리브레이션을 위해 참조 대상 페이지를 레퍼런스 페이지에서 워킹 페이지로 전환하는 경우, 제어기(300)는 워킹 페이지에 저장된 워킹 데이터를 스위칭 영역에 복사하고 페이지 상태 플래그를 '워킹 페이지'로 설정한 후, 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행한다.Next, when switching the reference target page from the reference page to the working page for data calibration, the controller 300 copies the working data stored in the working page to the switching area and sets the page status flag to'working page'. , Perform data calibration based on the working data copied to the switching area.

구체적으로, 제어기(300)는 CCP(Can Calibration Protocol)에 따라 데이터 캘리브레이션의 마스터 제어 장치로 기능하는 외부 캘리브레이션 장치로부터 CAN 통신을 기반으로 참조 대상 페이지의 전환 지령을 전달받을 수 있으며, 데이터 캘리브레이션을 위해 참조 대상 페이지를 레퍼런스 페이지에서 워킹 페이지로 전환하는 경우, 제어기(300)는 스위칭 영역 상에서 데이터 캘리브레이션이 수행될 수 있도록 워킹 페이지에 저장된 워킹 데이터를 스위칭 영역에 복사하고 페이지 상태 플래그를 '워킹 페이지'로 설정한다. 이에 따라, 제어기(300)는 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행한다.Specifically, the controller 300 can receive a change command of the reference target page based on CAN communication from an external calibration device that functions as a master control device for data calibration according to CCP (Can Calibration Protocol), and for data calibration When switching the reference target page from the reference page to the working page, the controller 300 copies the working data stored in the working page to the switching area so that data calibration can be performed on the switching area, and sets the page status flag to the'working page'. Set. Accordingly, the controller 300 performs data calibration based on the working data copied to the switching area.

다음으로, 참조 대상 페이지를 워킹 페이지에서 레퍼런스 페이지로 전환하는 경우, 제어기(300)는 스위칭 영역에 저장된 데이터를 워킹 데이터로서 워킹 페이지에 복사하고, 레퍼런스 페이지에 저장된 레퍼런스 데이터를 스위칭 영역에 복사하며, 페이지 상태 플래그를 '레퍼런스 페이지'로 설정한다.Next, when switching the reference target page from the working page to the reference page, the controller 300 copies the data stored in the switching area as working data to the working page, and copies the reference data stored in the reference page to the switching area, Set the page status flag to'reference page'.

구체적으로, 참조 대상 페이지를 워킹 페이지에서 레퍼런스 페이지로 전환하는 경우, 제어기(300)는 스위칭 영역에 저장된 데이터(데이터 캘리브레이션이 수행된 데이터일 수 있다)를 워킹 데이터로서 워킹 페이지에 복사하여 백업(BackUp)하고, 레퍼런스 페이지가 참조될 수 있도록 레퍼런스 페이지에 저장된 레퍼런스 데이터를 스위칭 영역에 복사하며, 페이지 상태 플래그를 '레퍼런스 페이지'로 설정한다.Specifically, when switching the reference target page from the working page to the reference page, the controller 300 copies data stored in the switching area (which may be data on which data calibration has been performed) as working data to the working page and backs it up. ), and copies the reference data stored in the reference page to the switching area so that the reference page can be referred to, and sets the page status flag to'reference page'.

레퍼런스 페이지 및 워킹 페이지 간에 참조 대상 페이지가 전환될 때마다 전술한 워킹 페이지에서 레퍼런스 페이지로의 전환 동작, 및 레퍼런스 페이지에서 워킹 페이지로의 전환 동작이 선택적으로 수행되며, 제어기(300)에 의한 데이터의 접근은 스위칭 영역의 어드레스를 통해서만 이루어지기 때문에 별도의 하드웨어 기반의 메커니즘 없이도 동일한 어드레스를 기반으로 레퍼런스 페이지 및 워킹 페이지에 선택적으로 직접 접근하는 것과 동일한 동작이 구현될 수 있다.Whenever the reference target page is switched between the reference page and the working page, the aforementioned switching operation from the working page to the reference page and the operation of switching from the reference page to the working page are selectively performed. Since the access is performed only through the address of the switching region, the same operation as the selective direct access to the reference page and the working page based on the same address can be implemented without a separate hardware-based mechanism.

나아가, 레퍼런스 페이지에 저장된 레퍼런스 데이터 또는 워킹 페이지에 저장된 워킹 데이터가 스위칭 영역에 복사될 때, 페이지의 전환 동작에 소요되는 시간을 단축시키기 위해 현재 스위칭 영역에 저장된 데이터와 동일한 데이터 이외의 변경된 데이터만 복사될 수도 있다.Furthermore, when the reference data stored in the reference page or the working data stored in the working page is copied to the switching area, only changed data other than the same data as the data stored in the current switching area is copied to shorten the time required for the page switching operation. It could be.

전술한 실시예는 제1 및 제2 메모리(100, 200)의 관점에서 구현될 수도 있으며, 즉 제1 및 제2 메모리(100, 200)는 데이터 캘리브레이션을 위한 메모리 디바이스를 구성하되, 제1 메모리(100)에는 레퍼런스 데이터를 저장하는 레퍼런스 페이지가 할당되고, 제2 메모리(200)에는 레퍼런스 데이터에 대한 데이터 캘리브레이션의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지와, 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역이 할당되며, 스위칭 영역은 차량 제어 시 차량을 제어하는 제어기(300)로부터의 접근을 독점하는(즉, 차량의 제어 시 제어기(300)는 스위칭 영역에 복사된 데이터로만 접근하는) 실시예로 구현될 수도 있다.The above-described embodiment may be implemented in terms of the first and second memories 100 and 200, that is, the first and second memories 100 and 200 constitute a memory device for data calibration, but the first memory A reference page for storing reference data is allocated to 100, and a working page for storing working data generated as a result of data calibration for the reference data is stored in the second memory 200, and reference data and working stored in the reference page. A switching area in which the working data stored in the page is selectively copied is allocated, and the switching area monopolizes access from the controller 300 that controls the vehicle when controlling the vehicle (that is, when controlling the vehicle, the controller 300 is a switching area. It may also be implemented in an embodiment that accesses only the data copied to.

도 2는 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 방법을 설명하기 위한 흐름도이고, 도 3은 본 발명의 일 실시예에 따른 데이터 캘리브레이션을 위한 제어 방법의 시계열적 구성을 설명하기 위한 예시도이다. 이하에서는 도 2 및 도 3을 참조하여 본 실시예에 따른 데이터 캘리브레이션을 위한 제어 방법을 설명하며, 전술한 내용과 중복되는 설명은 배제하고 시계열적인 구성을 중심으로 설명한다.2 is a flowchart illustrating a control method for data calibration according to an embodiment of the present invention, and FIG. 3 is an example for explaining a time series configuration of a control method for data calibration according to an embodiment of the present invention Is also. Hereinafter, a control method for data calibration according to the present exemplary embodiment will be described with reference to FIGS. 2 and 3, and description will be made focusing on a time series configuration without redundant descriptions of the above.

먼저, 제어기(300)는 시스템 전원이 온 된 경우, 워킹 페이지 및 스위칭 영역의 초기화를 수행한다(S100). S100 단계에서, 제어기(300)는 레퍼런스 페이지에 저장된 레퍼런스 데이터를 워킹 페이지 및 스위칭 영역에 복사하고 페이지 상태 플래그를 '레퍼런스 페이지'로 설정한다.First, when the system power is turned on, the controller 300 initializes the working page and the switching area (S100). In step S100, the controller 300 copies the reference data stored in the reference page to the working page and the switching area, and sets a page status flag to a'reference page'.

이어서, 제어기(300)는 레퍼런스 페이지 및 워킹 페이지 간에 참조 대상 페이지를 전환하는 경우, 전환 대상이 되는 페이지에 저장된 데이터를 스위칭 영역에 복사하고, 복사된 스위칭 영역의 데이터에 접근하여 차량을 제어한다(S200).Subsequently, when switching the reference target page between the reference page and the working page, the controller 300 copies data stored in the switching target page to the switching area, and accesses the copied switching area data to control the vehicle ( S200).

S200 단계는 워킹 페이지 전환 단계(S210), 데이터 캘리브레이션 단계(S220) 및 레퍼런스 페이지 전환 단계(S230)를 포함할 수 있다. S210 단계에서 제어기(300)는 참조 대상 페이지를 레퍼런스 페이지에서 워킹 페이지로 전환하기 위해, 워킹 페이지에 저장된 워킹 데이터를 스위칭 영역에 복사하고 페이지 상태 플래그를 '워킹 페이지'로 설정한다. S220 단계에서 제어기(300)는 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행한다. 그리고, S230 단계에서 제어기(300)는 참조 대상 페이지를 워킹 페이지에서 레퍼런스 페이지로 전환하기 위해, 데이터 캘리브레이션이 수행되어 스위칭 영역에 저장된 데이터를 워킹 데이터로서 워킹 페이지에 복사하고, 레퍼런스 페이지에 저장된 레퍼런스 데이터를 스위칭 영역에 복사하며, 페이지 상태 플래그를 '레퍼런스 페이지'로 설정한다.Step S200 may include a working page switching step S210, a data calibration step S220, and a reference page switching step S230. In step S210, the controller 300 copies the working data stored in the working page to the switching area and sets the page status flag to'working page' in order to switch the reference target page from the reference page to the working page. In step S220, the controller 300 performs data calibration based on the working data copied to the switching area. Then, in step S230, the controller 300 performs data calibration and copies the data stored in the switching area as working data to the working page in order to convert the reference target page from the working page to the reference page, and the reference data stored in the reference page Is copied to the switching area, and the page status flag is set to'reference page'.

도 3을 참조하여 전술한 본 실시예의 동작 과정을 설명한다. 도 3에 표기된 'A', 'B' 및 'C'는 각 영역에 저장되는 데이터를 의미하며, 저장되는 데이터가 변경되었음을 표기하기 위해 다른 알파벳을 사용하였다.The operation process of the present embodiment described above will be described with reference to FIG. 3. 'A','B' and'C' shown in FIG. 3 refer to data stored in each area, and different alphabets are used to indicate that the stored data has been changed.

먼저 S100 단계를 통해 초기화가 수행된다. S100 단계에서 레퍼런스 페이지, 워킹 페이지 및 스위칭 영역에 저장되는 데이터는 'A'로 동기화되고, 페이지 상태 플래그는 '레퍼런스 페이지'로 설정된다.First, initialization is performed through step S100. In step S100, data stored in the reference page, the working page, and the switching area are synchronized to'A', and the page status flag is set to'reference page'.

S210 단계를 통해 워킹 페이지 전환 단계가 수행된다. S210 단계에서 워킹 페이지에 저장된 워킹 데이터 'A'가 스위칭 영역에 복사되고, 페이지 상태 플래그는 '워킹 페이지'로 설정된다.The working page conversion step is performed through step S210. In step S210, the working data'A' stored in the working page is copied to the switching area, and the page status flag is set to'working page'.

S220 단계를 통해 데이터 캘리브레이션 단계가 수행된다. S220 단계에서 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션이 수행되고, 이에 따라 스위칭 영역에 저장된 데이터는 'B'로 변경된다. 페이지 상태 플래그는 '워킹 페이지'로 유지된다.A data calibration step is performed through step S220. In step S220, data calibration is performed based on the working data copied to the switching area, and accordingly, data stored in the switching area is changed to'B'. The page status flag is maintained as a'working page'.

S230 단계를 통해 레퍼런스 페이지 전환 단계가 수행된다. S230 단계에서 스위칭 영역에 저장된 데이터 'B'는 워킹 페이지에 복사되어 백업됨에 따라 워킹 페이지에 저장되는 워킹 데이터는 'B'로 변경된다. 이후, 레퍼런스 페이지에 저장된 레퍼런스 데이터 'A'가 스위칭 영역에 복사됨에 따라 스위칭 영역에 저장되는 데이터는 'A'로 변경된다. 페이지 상태 플래그는 '레퍼런스 페이지'로 설정된다.The reference page switching step is performed through step S230. In step S230, as the data'B' stored in the switching area is copied to the working page and backed up, the working data stored in the working page is changed to'B'. Thereafter, as the reference data'A' stored in the reference page is copied to the switching area, the data stored in the switching area is changed to'A'. The page status flag is set to'reference page'.

전술한 S210 단계, S220 단계 및 S230 단계는 1 사이클을 구성하여 반복적으로 수행될 수 있으며, 도 3은 S210 단계, S220 단계 및 S230 단계로 구성되는 1 사이클이 2회 반복 수행되는 예시를 도시하고 있다. 도 3에 도시된 2회째 수행되는 S210 단계, S220 단계 및 S230 단계는 전술한 방식과 동일한 원리로 수행되므로 구체적인 동작 설명은 생략한다.The above-described steps S210, S220, and S230 may be repeatedly performed by configuring one cycle, and FIG. 3 shows an example in which one cycle consisting of steps S210, S220 and S230 is repeatedly performed twice. . Steps S210, S220, and S230, which are performed the second time shown in FIG. 3, are performed in the same principle as the above-described method, and thus detailed operation descriptions are omitted.

이와 같이 본 실시예는 동일한 어드레스를 기반으로 각각 다른 어드레스로 접근할 수 있는 하드웨어적인 메커니즘이 적용되지 않는 마이크로 컨트롤러로 하여금 소프트웨어적인 메커니즘을 통해 데이터 캘리브레이션을 수행하도록 지원할 수 있으며, 따라서 데이터 캘리브레이션을 위한 별도의 하드웨어에 대한 의존성을 제거하여 원가를 절감시킴과 동시에 데이터 캘리브레이션이 가능한 제품군의 확대를 가능하게 할 수 있다.As described above, the present embodiment can support a microcontroller to which a hardware mechanism for accessing different addresses based on the same address is not applied to perform data calibration through a software mechanism, and thus separate data calibration for data calibration. By removing the dependence on the hardware of the product, it is possible to reduce the cost and expand the product line capable of data calibration.

본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나, 이는 예시적인 것에 불과하며 당해 기술이 속하는 기술분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 아래의 특허청구범위에 의하여 정해져야 할 것이다.Although the present invention has been described with reference to the embodiments shown in the drawings, this is only exemplary, and those of ordinary skill in the art to which the present technology pertains, various modifications and other equivalent embodiments are possible. I will understand. Therefore, the true technical protection scope of the present invention should be determined by the following claims.

100: 제1 메모리
200: 제2 메모리
300: 제어기
100: first memory
200: second memory
300: controller

Claims (14)

레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당된 제1 메모리;
상기 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)와, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 상기 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 할당된 제2 메모리로서, 상기 워킹 페이지 및 상기 스위칭 영역은 상호 다른 어드레스에 각각 할당되는 것인, 제2 메모리; 및
차량의 제어 시 상기 스위칭 영역의 어드레스를 통해 상기 스위칭 영역에 복사된 데이터로만 접근하도록 구성된 제어기;
를 포함하고,
상기 제어기는, 상기 레퍼런스 페이지 및 상기 워킹 페이지 간에 참조 대상 페이지를 전환하는 경우, 전환 대상이 되는 페이지에 저장된 데이터를 상기 스위칭 영역에 복사하고, 상기 복사된 스위칭 영역의 데이터에 접근하여 차량을 제어하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 장치.
A first memory to which a reference page for storing reference data is allocated;
Switching in which a working page in which working data generated as a result of data calibration for the reference data is stored is stored, and the reference data stored in the reference page and the working data stored in the working page are selectively copied A second memory to which a switching area is allocated, wherein the working page and the switching area are respectively allocated to different addresses; And
A controller configured to access only data copied to the switching area through an address of the switching area during vehicle control;
Including,
The controller, when switching a reference target page between the reference page and the working page, copies data stored in the page to be switched to the switching area, and controls the vehicle by accessing the data of the copied switching area. Control device for data calibration, characterized in that.
제1항에 있어서,
상기 제1 메모리는 비 휘발성 메모리로 구성되고, 상기 제2 메모리는 휘발성 메모리로 구성되는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 장치.
The method of claim 1,
The control device for data calibration, wherein the first memory is configured as a nonvolatile memory, and the second memory is configured as a volatile memory.
삭제delete 제1항에 있어서,
상기 제어기는, 상기 레퍼런스 페이지 및 상기 워킹 페이지 중 상기 스위칭 영역에 현재 복사된 페이지를 확인하기 위해, 상기 스위칭 영역에 복사되는 페이지에 따라 페이지 상태 플래그(Page State Flag)를 전환하여 설정하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 장치.
The method of claim 1,
The controller is characterized in that in order to check a page currently copied to the switching area among the reference page and the working page, the controller switches and sets a page state flag according to a page copied to the switching area. Control device for data calibration.
제4항에 있어서,
상기 제어기는, 시스템 전원이 온 된 경우, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 워킹 페이지 및 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 초기화를 수행하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 장치.
The method of claim 4,
The controller, when the system power is turned on, copies the reference data stored in the reference page to the working page and the switching area, and performs initialization of setting the page status flag to a'reference page'. Control device for calibration.
제4항에 있어서,
상기 제어기는, 데이터 캘리브레이션을 위해 상기 참조 대상 페이지를 상기 레퍼런스 페이지에서 상기 워킹 페이지로 전환하는 경우, 상기 워킹 페이지에 저장된 워킹 데이터를 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '워킹 페이지'로 설정한 후, 상기 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 장치.
The method of claim 4,
When the reference target page is switched from the reference page to the working page for data calibration, the controller copies the working data stored in the working page to the switching area and sets the page status flag to'working page'. After that, the control device for data calibration, characterized in that performing data calibration based on the working data copied to the switching area.
제4항에 있어서,
상기 제어기는, 상기 참조 대상 페이지를 상기 워킹 페이지에서 상기 레퍼런스 페이지로 전환하는 경우, 상기 스위칭 영역에 저장된 데이터를 워킹 데이터로서 상기 워킹 페이지에 복사하고, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 스위칭 영역에 복사하며, 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 장치.
The method of claim 4,
When switching the reference target page from the working page to the reference page, the controller copies data stored in the switching area as working data to the working page, and transfers reference data stored in the reference page to the switching area. A control device for data calibration, characterized in that copying and setting the page status flag to a'reference page'.
레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당된 제1 메모리; 및
상기 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)와, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 상기 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 할당된 제2 메모리로서, 상기 워킹 페이지 및 상기 스위칭 영역은 상호 다른 어드레스에 각각 할당되고, 상기 스위칭 영역은 상기 스위칭 영역의 어드레스를 기반으로 차량 제어 시 차량을 제어하는 제어기로부터의 접근을 독점하는 것인, 제2 메모리;
를 포함하고,
상기 레퍼런스 페이지 및 상기 워킹 페이지 간에 참조 대상 페이지가 전환되는 경우, 전환 대상이 되는 페이지에 저장된 데이터가 상기 스위칭 영역에 복사되고, 상기 복사된 스위칭 영역의 데이터가 상기 제어기로부터의 접근을 독점하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 메모리 디바이스.
A first memory to which a reference page for storing reference data is allocated; And
Switching in which a working page in which working data generated as a result of data calibration for the reference data is stored is stored, and the reference data stored in the reference page and the working data stored in the working page are selectively copied As a second memory to which a switching area is allocated, the working page and the switching area are respectively allocated to different addresses, and the switching area is based on the address of the switching area from a controller that controls the vehicle during vehicle control. Monopolizing access to the second memory;
Including,
When a reference target page is switched between the reference page and the working page, data stored in the page to be switched is copied to the switching area, and the copied switching area data monopolizes access from the controller. Memory device for data calibration using
제1 및 제2 메모리와 차량을 제어하는 제어기를 이용하는, 데이터 캘리브레이션을 위한 제어 방법으로서,
상기 제1 메모리에는 레퍼런스 데이터를 저장하는 레퍼런스 페이지(Reference Page)가 할당되고, 상기 제2 메모리에는 상기 레퍼런스 데이터에 대한 데이터 캘리브레이션(Data Calibration)의 결과로 생성되는 워킹 데이터가 저장되는 워킹 페이지(Working Page)와, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터 및 상기 워킹 페이지에 저장된 워킹 데이터가 선택적으로 복사되는 스위칭 영역(Switching Area)이 할당되되, 상기 워킹 페이지 및 상기 스위칭 영역은 상호 다른 어드레스에 각각 할당되고,
상기 제어기는 차량의 제어 시 상기 스위칭 영역의 어드레스를 통해 상기 스위칭 영역에 복사된 데이터로만 접근하도록 동작하고,
상기 데이터 캘리브레이션을 위한 제어 방법은,
상기 제어기가, 상기 레퍼런스 페이지 및 상기 워킹 페이지 간에 참조 대상 페이지를 전환하는 경우, 전환 대상이 되는 페이지에 저장된 데이터를 상기 스위칭 영역에 복사하고, 상기 복사된 스위칭 영역의 데이터에 접근하여 차량을 제어하는 단계;를 포함하는 것을 특징으로 하는, 데이터 캘리브레이션을 위한 제어 방법.
A control method for data calibration, using a controller for controlling a vehicle and a first and a second memory,
A reference page for storing reference data is allocated to the first memory, and a working page for storing working data generated as a result of data calibration for the reference data is stored in the second memory. Page), and a switching area in which the reference data stored in the reference page and the working data stored in the working page are selectively copied are allocated, the working page and the switching area are allocated to different addresses, respectively,
The controller operates to access only the data copied to the switching area through the address of the switching area when controlling the vehicle,
The control method for data calibration,
When the controller switches the reference target page between the reference page and the working page, it copies data stored in the page to be switched to the switching area, and controls the vehicle by accessing the data of the copied switching area. A control method for calibrating data, comprising: a.
제9항에 있어서,
상기 차량을 제어하는 단계 이전에,
상기 제어기가, 시스템 전원이 온 된 경우, 상기 워킹 페이지 및 상기 스위칭 영역의 초기화를 수행하는 단계;
를 더 포함하는 것을 특징으로 하는, 데이터 캘리브레이션을 위한 제어 방법.
The method of claim 9,
Before the step of controlling the vehicle,
Performing, by the controller, initializing the working page and the switching area when the system power is turned on;
It characterized in that it further comprises, a control method for data calibration.
제10항에 있어서,
상기 제어기는, 상기 레퍼런스 페이지 및 상기 워킹 페이지 중 상기 스위칭 영역에 현재 복사된 페이지를 확인하기 위해, 상기 스위칭 영역에 복사되는 페이지에 따라 페이지 상태 플래그(Page State Flag)를 전환하여 설정하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 방법.
The method of claim 10,
The controller is characterized in that in order to check a page currently copied to the switching area among the reference page and the working page, the controller switches and sets a page state flag according to a page copied to the switching area. Control method for data calibration.
제11항에 있어서,
상기 초기화를 수행하는 단계에서, 상기 제어기는,
상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 워킹 페이지 및 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 방법.
The method of claim 11,
In the step of performing the initialization, the controller,
And copying the reference data stored in the reference page to the working page and the switching area, and setting the page status flag to a'reference page'.
제11항에 있어서,
상기 차량을 제어하는 단계는,
상기 제어기가, 상기 참조 대상 페이지를 상기 레퍼런스 페이지에서 상기 워킹 페이지로 전환하기 위해, 상기 워킹 페이지에 저장된 워킹 데이터를 상기 스위칭 영역에 복사하고 상기 페이지 상태 플래그를 '워킹 페이지'로 설정하는 워킹 페이지 전환 단계;
상기 제어기가, 상기 스위칭 영역에 복사된 워킹 데이터를 기반으로 데이터 캘리브레이션을 수행하는 데이터 캘리브레이션 단계; 및
상기 제어기가, 상기 참조 대상 페이지를 상기 워킹 페이지에서 상기 레퍼런스 페이지로 전환하기 위해, 데이터 캘리브레이션이 수행되어 상기 스위칭 영역에 저장된 데이터를 워킹 데이터로서 상기 워킹 페이지에 복사하고, 상기 레퍼런스 페이지에 저장된 레퍼런스 데이터를 상기 스위칭 영역에 복사하며, 상기 페이지 상태 플래그를 '레퍼런스 페이지'로 설정하는 레퍼런스 페이지 전환 단계;
를 포함하는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 방법.
The method of claim 11,
The step of controlling the vehicle,
In order to convert the reference target page from the reference page to the working page, the controller copies the working data stored in the working page to the switching area and sets the page status flag to'working page'. step;
A data calibration step of the controller performing data calibration based on the working data copied to the switching area; And
In order for the controller to convert the reference target page from the working page to the reference page, data calibration is performed and data stored in the switching area is copied to the working page as working data, and reference data stored in the reference page A reference page switching step of copying the data to the switching area and setting the page status flag to a'reference page';
Control method for data calibration comprising a.
제13항에 있어서,
상기 차량을 제어하는 단계에서,
상기 워킹 페이지 전환 단계, 상기 데이터 캘리브레이션 단계 및 상기 레퍼런스 페이지 전환 단계는 1 사이클을 구성하여 반복적으로 수행되는 것을 특징으로 하는 데이터 캘리브레이션을 위한 제어 방법.
The method of claim 13,
In the step of controlling the vehicle,
The working page switching step, the data calibration step, and the reference page switching step are repeatedly performed by configuring one cycle.
KR1020190092514A 2019-07-30 2019-07-30 Control apparatus, memory device and control method for data calibration KR102153403B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190092514A KR102153403B1 (en) 2019-07-30 2019-07-30 Control apparatus, memory device and control method for data calibration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190092514A KR102153403B1 (en) 2019-07-30 2019-07-30 Control apparatus, memory device and control method for data calibration

Publications (1)

Publication Number Publication Date
KR102153403B1 true KR102153403B1 (en) 2020-09-09

Family

ID=72451549

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190092514A KR102153403B1 (en) 2019-07-30 2019-07-30 Control apparatus, memory device and control method for data calibration

Country Status (1)

Country Link
KR (1) KR102153403B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233530A (en) * 2002-02-13 2003-08-22 Nissan Motor Co Ltd Emulation device for electronic controller
JP2004005296A (en) * 2002-06-03 2004-01-08 Motorola Inc Electronic control device
KR20140136665A (en) * 2013-05-21 2014-12-01 현대자동차주식회사 Calibration apparatus and method thereof
KR101603547B1 (en) * 2014-11-06 2016-03-15 현대자동차주식회사 Calibration Memory Controlling Method and Apparatus for Vehicle Controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233530A (en) * 2002-02-13 2003-08-22 Nissan Motor Co Ltd Emulation device for electronic controller
JP2004005296A (en) * 2002-06-03 2004-01-08 Motorola Inc Electronic control device
KR20140136665A (en) * 2013-05-21 2014-12-01 현대자동차주식회사 Calibration apparatus and method thereof
KR101603547B1 (en) * 2014-11-06 2016-03-15 현대자동차주식회사 Calibration Memory Controlling Method and Apparatus for Vehicle Controller

Similar Documents

Publication Publication Date Title
US6505105B2 (en) Electronic control unit calibration
WO2015153479A1 (en) System and method for modifying firmware used to initialize a computing device
US20090049368A1 (en) Method and Device of Rewriting a Primary Sector of a Sector Erasable Semiconductor Memory Means
KR102153403B1 (en) Control apparatus, memory device and control method for data calibration
CN109032993A (en) A kind of the PCIE board expansion card and its control method of eight road server of binode
KR101603547B1 (en) Calibration Memory Controlling Method and Apparatus for Vehicle Controller
US6314024B1 (en) Data processing apparatus
US6990575B2 (en) Apparatus and process for a starting a data processing installation
US20060184735A1 (en) Methodology for effectively utilizing processor cache in an electronic system
US10120677B2 (en) Method of rewriting printer firmware, and printer
EP2846259B1 (en) Method and apparatus for controlling memory startup
JP2011158967A (en) Electronic control device
CN113835741A (en) Patch loading method, network element and computer readable storage medium
JPWO2020122024A1 (en) Network interface card, computer, circuit information rewriting method and program
TWI556171B (en) Motherboard and method for booting
CN110780905A (en) BMC software updating method and device based on USB interface
JPWO2018150820A1 (en) Information processing device
US11928057B2 (en) System and method for using virtual addressing to execute application images
US11700144B2 (en) Master slave communication system and control method for master slave communication system
JP2024016516A (en) electronic control unit
US10896133B2 (en) Combinational address repair in memory controller
JP6609235B2 (en) Electronic control unit
JPH01246649A (en) Memory system
JP2003296131A (en) Firmware rewriting device
CN114064225A (en) Self-adaptive scheduling method, device, computer storage medium and system

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant