KR102156541B1 - Method for determinig functional safety of timer and an electronic device performing the method - Google Patents

Method for determinig functional safety of timer and an electronic device performing the method Download PDF

Info

Publication number
KR102156541B1
KR102156541B1 KR1020190148328A KR20190148328A KR102156541B1 KR 102156541 B1 KR102156541 B1 KR 102156541B1 KR 1020190148328 A KR1020190148328 A KR 1020190148328A KR 20190148328 A KR20190148328 A KR 20190148328A KR 102156541 B1 KR102156541 B1 KR 102156541B1
Authority
KR
South Korea
Prior art keywords
value
timer
counter
functional safety
determining
Prior art date
Application number
KR1020190148328A
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 KR1020190148328A priority Critical patent/KR102156541B1/en
Application granted granted Critical
Publication of KR102156541B1 publication Critical patent/KR102156541B1/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/1608Error detection by comparing the output signals of redundant hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)

Abstract

In order to determine whether a function of a timer of an electronic apparatus is safe, provided is a method, which comprises the steps of: setting a target time to a first counter initialized to 0; setting the target time to a second counter initialized with a preset reference time; calculating a first value by subtracting the reference time from a value of the second counter per unit time; and determining the functional safety of the timer based on the first value and the value of the first counter.

Description

타이머의 기능 안전을 결정하는 방법 및 그 방법을 수행하는 전자 장치{METHOD FOR DETERMINIG FUNCTIONAL SAFETY OF TIMER AND AN ELECTRONIC DEVICE PERFORMING THE METHOD}TECHNICAL FIELD The method of determining the functional safety of a timer, and an electronic device performing the method thereof.

아래의 실시예들은 타이머의 기능 안전을 결정하는 기술에 관한 것으로, 보다 상세하게는 카운터의 값 및 다른 값들의 비교에 기초하여 타이머의 기능 안전을 결정하는 기술에 관한 것이다.The following embodiments relate to a technique for determining the functional safety of a timer, and more particularly, to a technique for determining the functional safety of a timer based on a comparison of a value of a counter and other values.

어드밴스드 운전자 지원 시스템(Advanced Driver Assistance Systems: ADAS) 또는 자율주행 차량을 위한 기술들이 개발되면서, ISO 26262에 대한 기능이 강조되고 있다. ISO 26262는 기능 안전(functional safety)을 구현하기 위한 차량 기능 안전 국제 규격이다. ISO 26262는 프로세스 모델과 함께 요구되는 활동, 유무형의 증거물, 그리고 개발과 생산에 사용되는 방식을 정의한다.As technologies for Advanced Driver Assistance Systems (ADAS) or autonomous vehicles are being developed, the function to ISO 26262 is being emphasized. ISO 26262 is an international standard for functional safety in vehicles to implement functional safety. ISO 26262, along with a process model, defines the required activities, tangible and intangible evidence, and methods used in development and production.

일 실시예는 타이머의 기능 안전을 결정하는 방법 및 그 전자 장치를 제공할 수 있다.An embodiment may provide a method for determining functional safety of a timer and an electronic device thereof.

일 실시예는 복수의 타이머들을 이용하여 타이머의 기능 안전을 결정하는 방법 및 그 전자 장치를 제공할 수 있다.An embodiment may provide a method and an electronic device for determining functional safety of a timer using a plurality of timers.

일 측면에 따른, 전자 장치에 의해 수행되는, 타이머의 기능 안전을 결정하는 방법은, 0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계, 미리 설정된 참조 시간으로 초기화된 제2 카운터에 상기 타겟 시간을 설정하는 단계, 단위 시간 마다 상기 제2 카운터의 값에서 상기 참조 시간을 뺀 제1 값을 계산하는 단계, 및 상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계를 포함한다.According to an aspect, a method of determining functional safety of a timer, performed by an electronic device, includes: setting a target time in a first counter initialized to 0, the target in a second counter initialized to a preset reference time Setting a time, calculating a first value obtained by subtracting the reference time from the value of the second counter per unit time, and determining the functional safety of the timer based on the first value and the value of the first counter It includes the step of.

상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는, 상기 제1 값과 상기 제1 카운터의 값이 동일하지 않은 경우 타이머의 기능에 오류가 있음을 출력하는 단계를 포함할 수 있다.The determining of the functional safety of the timer based on the first value and the value of the first counter may include outputting that there is an error in the function of the timer when the first value and the value of the first counter are not the same. It may include steps.

상기 타이머 기능 안전 결정 방법은, 상기 제1 카운터의 값이 상기 타겟 시간에 대응하는 경우 인터럽트를 출력하는 단계를 더 포함할 수 있다.The method of determining the safety of the timer function may further include outputting an interrupt when the value of the first counter corresponds to the target time.

상기 단위 시간은, 시스템의 클록과 동일할 수 있다.The unit time may be the same as the system clock.

상기 타이머 기능 안전 결정 방법은, 미리 설정된 제2 참조 시간으로 초기화된 제3 카운터에 상기 타겟 시간을 설정하는 단계, 및 단위 시간 마다 상기 제3 카운터의 값에서 상기 제2 참조 시간을 뺀 제2 값을 계산하는 단계를 더 포함하고, 상기 타이머의 기능 안전을 결정하는 단계는, 상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계를 포함할 수 있다.The timer function safety determination method includes setting the target time to a third counter initialized with a preset second reference time, and a second value obtained by subtracting the second reference time from the value of the third counter for each unit time And determining the functional safety of the timer, the step of determining the functional safety of the timer based on the first value, the second value, and the value of the first counter. I can.

상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는, 상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값이 서로 상이한 경우 상기 타이머의 기능에 오류가 있는 것으로 결정하는 단계를 포함할 수 있다.Determining the functional safety of the timer based on the first value, the second value, and the value of the first counter, when the first value, the second value, and the value of the first counter are different from each other, the It may include determining that there is an error in the function of the timer.

상기 전자 장치는 자율주행 차량(autonomous vehicle) 또는 어드밴스드 운전자 지원 시스템(advanced driver assistance system)을 지원하는 차량에 포함될 수 있다.The electronic device may be included in a vehicle that supports an autonomous vehicle or an advanced driver assistance system.

다른 일 측면에 따른, 타이머의 기능 안전을 결정하는 전자 장치는, 타이머의 기능 안전을 결정하는 프로그램이 기록된 메모리, 및 상기 프로그램을 수행하는 프로세서를 포함하고, 상기 프로그램은, 0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계, 미리 설정된 참조 시간으로 초기화된 제2 카운터에 상기 타겟 시간을 설정하는 단계, 단위 시간 마다 상기 제2 카운터의 값에서 상기 참조 시간을 뺀 제1 값을 계산하는 단계, 및 상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계를 수행한다.According to another aspect, an electronic device for determining functional safety of a timer includes a memory in which a program for determining functional safety of a timer is recorded, and a processor that executes the program, wherein the program is 1 setting a target time in a counter, setting the target time in a second counter initialized with a preset reference time, calculating a first value by subtracting the reference time from the value of the second counter per unit time And determining functional safety of the timer based on the first value and the value of the first counter.

상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는, 상기 제1 값과 상기 제1 카운터의 값이 동일하지 않은 경우 타이머의 기능에 오류가 있음을 출력하는 단계를 포함할 수 있다.The determining of the functional safety of the timer based on the first value and the value of the first counter may include outputting that there is an error in the function of the timer when the first value and the value of the first counter are not the same. It may include steps.

상기 프로그램은, 미리 설정된 제2 참조 시간으로 초기화된 제3 카운터에 상기 타겟 시간을 설정하는 단계, 및 단위 시간 마다 상기 제3 카운터의 값에서 상기 제2 참조 시간을 뺀 제2 값을 계산하는 단계를 더 수행하고, 상기 타이머의 기능 안전을 결정하는 단계는, 상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계를 포함할 수 있다.The program comprises: setting the target time to a third counter initialized to a preset second reference time, and calculating a second value obtained by subtracting the second reference time from the value of the third counter for each unit time Further performing and determining the functional safety of the timer may include determining the functional safety of the timer based on the first value, the second value, and the value of the first counter.

상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는, 상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값이 서로 상이한 경우 상기 타이머의 기능에 오류가 있는 것으로 결정하는 단계를 포함할 수 있다.Determining the functional safety of the timer based on the first value, the second value, and the value of the first counter, when the first value, the second value, and the value of the first counter are different from each other, the It may include determining that there is an error in the function of the timer.

상기 전자 장치는 자율주행 차량(autonomous vehicle) 또는 어드밴스드 운전자 지원 시스템(advanced driver assistance system)을 지원하는 차량에 포함될 수 있다.The electronic device may be included in a vehicle that supports an autonomous vehicle or an advanced driver assistance system.

또 다른 일 측면에 따른, 전자 장치에 의해 수행되는, 타이머의 기능 안전을 결정하는 방법은, 0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계, 단위 시간 마다 상기 제1 카운터의 값을 이전 누적 값에 누적함으로써 타겟 누적 값을 생성하는 단계, 상기 단위 시간 마다 상기 제1 카운터의 값에 미리 설정된 수학식을 적용함으로써 검증 값을 생성하는 단계, 및 상기 타겟 누적 값 및 상기 검증 값에 기초하여 타이머의 기능 안전을 결정하는 단계를 포함한다.According to another aspect, a method of determining functional safety of a timer, performed by an electronic device, includes setting a target time to a first counter initialized to 0, transferring a value of the first counter every unit time Generating a target cumulative value by accumulating on the cumulative value, generating a verification value by applying a preset equation to the value of the first counter every unit time, and based on the target cumulative value and the verification value And determining the functional safety of the timer.

상기 수학식은

Figure 112019118572659-pat00001
이고, 상기 m은 상기 제1 카운터의 값일 수 있다.The above equation is
Figure 112019118572659-pat00001
And m may be the value of the first counter.

상기 타겟 누적 값 및 상기 검증 값에 기초하여 타이머의 기능 안전을 결정하는 단계는, 상기 타겟 누적 값과 상기 검증 값이 동일하지 않은 경우 타이머의 기능에 오류가 있는 것으로 결정하는 단계를 포함할 수 있다.Determining the functional safety of the timer based on the target accumulation value and the verification value may include determining that there is an error in the function of the timer when the target accumulation value and the verification value are not the same. .

상기 타이머 기능 안전 결정 방법은, 상기 제1 카운터의 값이 상기 타겟 시간에 대응하는 경우 인터럽트를 출력하는 단계를 더 포함할 수 있다.The method of determining the safety of the timer function may further include outputting an interrupt when the value of the first counter corresponds to the target time.

상기 단위 시간은, 시스템의 클록과 동일할 수 있다.The unit time may be the same as the system clock.

상기 전자 장치는 자율주행 차량(autonomous vehicle) 또는 어드밴스드 운전자 지원 시스템(advanced driver assistance system)을 지원하는 차량에 포함될 수 있다.The electronic device may be included in a vehicle that supports an autonomous vehicle or an advanced driver assistance system.

또 다른 일 측면에 따른, 타이머의 기능 안전을 결정하는 전자 장치는, 타이머의 기능 안전을 결정하는 프로그램이 기록된 메모리, 및 상기 프로그램을 수행하는 프로세서를 포함하고, 상기 프로그램은, 0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계, 단위 시간 마다 상기 제1 카운터의 값을 이전 누적 값에 누적함으로써 타겟 누적 값을 생성하는 단계, 상기 단위 시간 마다 상기 제1 카운터의 값에 미리 설정된 수학식을 적용함으로써 검증 값을 생성하는 단계, 및 상기 타겟 누적 값 및 상기 검증 값에 기초하여 타이머의 기능 안전을 결정하는 단계를 수행한다.According to another aspect, an electronic device for determining functional safety of a timer includes a memory in which a program for determining functional safety of a timer is recorded, and a processor that executes the program, wherein the program is initialized to zero. Setting a target time to a first counter, generating a target accumulated value by accumulating the value of the first counter to a previous accumulated value for each unit time, and an equation preset to the value of the first counter for each unit time Generating a verification value by applying is performed, and determining functional safety of a timer based on the target accumulated value and the verification value.

타이머의 기능 안전을 결정하는 방법 및 그 전자 장치가 제공될 수 있다.A method for determining functional safety of a timer and an electronic device therefor can be provided.

복수의 타이머들을 이용하여 타이머의 기능 안전을 결정하는 방법 및 그 전자 장치가 제공될 수 있다.A method of determining functional safety of a timer using a plurality of timers and an electronic device thereof may be provided.

도 1은 일 예에 따른 전자 장치를 탑재한 차량을 도시한다.
도 2는 일 실시예에 따른 타이머의 기능 안전을 결정하는 전자 장치의 구성도이다.
도 3은 일 실시예에 따른 타이머의 기능 안전을 결정하는 방법의 흐름도이다.
도 4는 일 예에 따른 타이머의 기능 안전을 결정하기 위한 모듈들을 도시한다.
도 5는 일 예에 따른 제1 카운터 값, 제2 카운터 값 및 비교기의 값의 타이밍 차트를 도시한다.
도 6은 일 예에 따른 제3 카운터의 값을 추가로 이용하여 타이머의 기능 안전을 결정하는 방법의 흐름도이다.
도 7은 다른 일 실시예에 따른 타이머의 기능 안전을 결정하는 방법의 흐름도이다.
도 8은 다른 일 예에 따른 타이머의 기능 안전을 결정하기 위한 모듈들을 도시한다.
도 9는 일 예에 따른 제1 카운터 값, 타겟 누적 값, 및 검증 값의 타이밍 차트를 도시한다.
1 illustrates a vehicle equipped with an electronic device according to an example.
2 is a block diagram of an electronic device for determining functional safety of a timer according to an exemplary embodiment.
3 is a flowchart of a method of determining functional safety of a timer according to an embodiment.
4 illustrates modules for determining functional safety of a timer according to an example.
5 is a timing chart of a first counter value, a second counter value, and a comparator value according to an example.
6 is a flowchart of a method of determining functional safety of a timer by additionally using a value of a third counter according to an example.
7 is a flowchart of a method of determining functional safety of a timer according to another exemplary embodiment.
8 illustrates modules for determining functional safety of a timer according to another example.
9 is a timing chart of a first counter value, a target cumulative value, and a verification value according to an example.

이하에서, 첨부된 도면을 참조하여 실시예들을 상세하게 설명한다. 그러나, 실시예들에는 다양한 변경이 가해질 수 있어서 특허출원의 권리 범위가 이러한 실시예들에 의해 제한되거나 한정되는 것은 아니다. 실시예들에 대한 모든 변경, 균등물 내지 대체물이 권리 범위에 포함되는 것으로 이해되어야 한다.Hereinafter, exemplary embodiments will be described in detail with reference to the accompanying drawings. However, since various changes may be made to the embodiments, the scope of the rights of the patent application is not limited or limited by these embodiments. It should be understood that all changes, equivalents, or substitutes to the embodiments are included in the scope of the rights.

실시예에서 사용한 용어는 단지 설명을 목적으로 사용된 것으로, 한정하려는 의도로 해석되어서는 안된다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the examples are used for illustrative purposes only and should not be interpreted as limiting. Singular expressions include plural expressions unless the context clearly indicates otherwise. In the present specification, terms such as "comprise" or "have" are intended to designate the presence of features, numbers, steps, actions, components, parts, or combinations thereof described in the specification, but one or more other features. It is to be understood that the presence or addition of elements or numbers, steps, actions, components, parts, or combinations thereof, does not preclude in advance.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which the embodiment belongs. Terms as defined in a commonly used dictionary should be interpreted as having a meaning consistent with the meaning in the context of the related technology, and should not be interpreted as an ideal or excessively formal meaning unless explicitly defined in this application. Does not.

또한, 첨부 도면을 참조하여 설명함에 있어, 도면 부호에 관계없이 동일한 구성 요소는 동일한 참조부호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. 실시예를 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 실시예의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.In addition, in the description with reference to the accompanying drawings, the same reference numerals are assigned to the same components regardless of the reference numerals, and redundant descriptions thereof will be omitted. In describing the embodiments, when it is determined that a detailed description of related known technologies may unnecessarily obscure the subject matter of the embodiments, the detailed description thereof will be omitted.

도 1은 일 예에 따른 전자 장치를 탑재한 차량을 도시한다.1 illustrates a vehicle equipped with an electronic device according to an example.

일 측면에 따른, 차량(100)은 운전자로부터의 입력이 거의 없거나 또는 전혀 없는 상황에서도, 인지된 주행 환경에 따라서 자율 모드(autonomous mode)로 주행할 수 있다. 주행 환경은 차량(100)에 부착 또는 설치된 하나 이상의 센서들을 통해 인지될 수 있다. 예를 들어, 하나 이상의 센서들은 카메라, 라이다(LIDAR), 레이더(RADAR) 및 음성 인식 센서들을 포함할 수 있고, 기재된 예들로 제한되는 것은 아니다. 주행 환경은 도로, 도로의 상태, 차선의 종류, 주변 차량의 유무, 근접한 차량과의 거리, 날씨, 장애물의 유무 등을 포함할 수 있고, 기재된 예들로 제한되는 것은 아니다.According to an aspect, even in a situation where there is little or no input from a driver, the vehicle 100 may drive in an autonomous mode according to a recognized driving environment. The driving environment may be recognized through one or more sensors attached or installed on the vehicle 100. For example, one or more sensors may include a camera, LIDAR, radar, and voice recognition sensors, and are not limited to the examples described. The driving environment may include a road, a condition of a road, a type of a lane, the presence or absence of surrounding vehicles, a distance to a nearby vehicle, weather, the presence or absence of an obstacle, and the like, and is not limited to the examples described.

차량(100)은 주행 환경을 인식하고, 주행 환경에 적합한 자율 주행 경로를 생성한다. 자율 주행 경로를 따라가도록 자율 주행 차량은 내외부의 기계적인 요소들을 제어한다. 차량(100)은 자율 주행 경로를 주기적으로 생성할 수 있다.The vehicle 100 recognizes the driving environment and creates an autonomous driving route suitable for the driving environment. Autonomous vehicles control internal and external mechanical elements to follow the autonomous driving path. The vehicle 100 may periodically generate an autonomous driving route.

다른 일 측면에 따른, 차량(100)은 어드밴스드 운전자 지원 시스템(Advanced Driver Assistance Systems: ADAS)을 이용하여 운전자의 운전을 보조할 수 있다. ADAS는 충돌 위험시 운전자가 제동장치를 밟지 않아도 스스로 속도를 줄이거나 멈추는 자동 긴급제동 시스템(Autonomous Emergency Braking: AEB), 차선 이탈 시 주행 방향을 조절해 차선을 유지하는 주행 조향보조 시스템(Lane Keep Assist System: LKAS), 사전에 정해 놓은 속도로 달리면서도 앞차와 간격을 알아서 유지하는 어드밴스드 스마트 크루즈 컨트롤(Advanced Smart Cruise Control: ASCC), 사각지대 충돌 위험을 감지해 안전한 차로 변경을 돕는 후측방 충돌 회피 지원 시스템(Active Blind Spot Detection: ABSD), 차량 주변 상황을 시각적으로 보여주는 어라운드 뷰 모니터링 시스템(Around View Monitor: AVM) 등을 포함한다.According to another aspect, the vehicle 100 may assist a driver's driving by using an Advanced Driver Assistance Systems (ADAS). ADAS is an Autonomous Emergency Braking (AEB) system that automatically reduces or stops the driver without stepping on the brake system in case of a collision risk, and Lane Keep Assist (Lane Keep Assist) that maintains the lane by adjusting the driving direction in case of lane departure. System: LKAS), Advanced Smart Cruise Control (ASCC), which maintains a distance from the vehicle in front while running at a predetermined speed, detects the risk of collision in blind spots and assists in changing lanes, supporting rear collision avoidance It includes a system (Active Blind Spot Detection: ABSD), an Around View Monitor (AVM), which visually shows the situation around the vehicle.

차량(100)에 포함된 전자 장치(110)는 차량(100)의 기계적 장치를 제어하여, 자율 주행하거나 운전자의 운전을 보조할 수 있고, 기재된 실시예 이외의 ECU 및 다양한 종류의 컨트롤러나 센서 등에 사용될 수 있다. 전자 장치(110)가 자동적으로 기계적인 요소를 제어하는 것이므로, 제어의 정확성이 아주 중요하다. 예를 들어, 타이머의 기능 오류로 인하여 전자 장치(110)의 의도와는 다른 타이밍에 제어가 수행되는 경우, 사고로 이어질 수 있다. 예를 들어, 속도를 감속하는 제어가 정확한 타이밍이 아닌, 늦은 타이밍에 수행되는 경우, 사고로 이어질 수 있다.The electronic device 110 included in the vehicle 100 can control the mechanical device of the vehicle 100 to drive autonomously or assist the driver's driving, and can be used for ECUs and various types of controllers or sensors other than the described embodiments. Can be used. Since the electronic device 110 automatically controls the mechanical elements, the accuracy of the control is very important. For example, if control is performed at a timing different from the intention of the electronic device 110 due to a malfunction of the timer, it may lead to an accident. For example, if the control to decelerate the speed is performed at a late timing rather than an exact timing, it may lead to an accident.

이에 따라, 기계적인 요소를 제어하기 전에, 타이머의 기능이 정상적인지 여부를 판단하는 방법이 수행 되어야 한다. 상기의 내용은 ISO 26262 또는 자동차 기능 안전성 국제 표준과 관련이 있다. ISO 26262는 차량(100)에 탑재되는 E/E (Electric & Electronic) 시스템의 오류로 인한 사고방지를 위해 ISO에서 제정한 자동차 기능 안전 국제 규격이다. ISO 26262는 프로세스 모델과 함께 요구되는 활동, 유무형의 증거물, 그리고 개발과 생산에 사용되는 방식을 정의한다.Accordingly, before controlling a mechanical element, a method of determining whether the function of the timer is normal must be performed. The above is related to ISO 26262 or the international standard for functional safety in automobiles. ISO 26262 is an international standard for automotive functional safety established by ISO to prevent accidents caused by errors in the E/E (Electric & Electronic) system mounted on the vehicle 100. ISO 26262, along with a process model, defines the required activities, tangible and intangible evidence, and methods used in development and production.

하나의 타이머가 아닌, 복수의 타이머들 또는 추가의 구조를 이용하여 타이머의 기능 안전을 결정하는 방법이 고려될 수 있다. 상기의 방법들에 대해, 아래에서 도 2 내지 도 9를 참조하여 상세히 설명된다.A method of determining the functional safety of a timer using a plurality of timers or an additional structure instead of a single timer may be considered. The above methods will be described in detail with reference to FIGS. 2 to 9 below.

도 2는 일 실시예에 따른 타이머의 기능 안전을 결정하는 전자 장치의 구성도이다.2 is a block diagram of an electronic device for determining functional safety of a timer according to an exemplary embodiment.

전자 장치(200)는 통신부(210), 프로세서(220) 및 메모리(230)를 포함한다. 예를 들어, 전자 장치(200)는 도 1을 참조하여 전술된 차량(100)에 포함될 수 있다.The electronic device 200 includes a communication unit 210, a processor 220, and a memory 230. For example, the electronic device 200 may be included in the vehicle 100 described above with reference to FIG. 1.

통신부(210)는 프로세서(220) 및 메모리(230)와 연결되어 데이터를 송수신한다. 통신부(210)는 외부의 다른 장치와 연결되어 데이터를 송수신할 수 있다. 이하에서 "A"를 송수신한다라는 표현은 "A를 나타내는 정보(information) 또는 데이터"를 송수신하는 것을 나타낼 수 있다.The communication unit 210 is connected to the processor 220 and the memory 230 to transmit and receive data. The communication unit 210 may be connected to other external devices to transmit and receive data. Hereinafter, the expression "transmitting/receiving A" may indicate transmitting/receiving "information or data representing A".

통신부(210)는 전자 장치(200) 내의 회로망(circuitry)으로 구현될 수 있다. 예를 들어, 통신부(210)는 내부 버스(internal bus) 및 외부 버스(external bus)를 포함할 수 있다. 다른 예로, 통신부(210)는 전자 장치(200)와 외부의 장치를 연결하는 요소일 수 있다. 통신부(210)는 인터페이스(interface)일 수 있다. 통신부(210)는 외부의 장치로부터 데이터를 수신하여, 프로세서(220) 및 메모리(230)에 데이터를 전송할 수 있다.The communication unit 210 may be implemented as a circuit network in the electronic device 200. For example, the communication unit 210 may include an internal bus and an external bus. As another example, the communication unit 210 may be an element connecting the electronic device 200 and an external device. The communication unit 210 may be an interface. The communication unit 210 may receive data from an external device and transmit the data to the processor 220 and the memory 230.

프로세서(220)는 통신부(210)가 수신한 데이터 및 메모리(230)에 저장된 데이터를 처리한다. "프로세서"는 목적하는 동작들(desired operations)을 실행시키기 위한 물리적인 구조를 갖는 회로를 가지는 하드웨어로 구현된 데이터 처리 장치일 수 있다. 예를 들어, 목적하는 동작들은 프로그램에 포함된 코드(code) 또는 인스트럭션들(instructions)을 포함할 수 있다. 예를 들어, 하드웨어로 구현된 데이터 처리 장치는 마이크로프로세서(microprocessor), 중앙 처리 장치(central processing unit), 프로세서 코어(processor core), 멀티-코어 프로세서(multi-core processor), 멀티프로세서(multiprocessor), ASIC(Application-Specific Integrated Circuit), FPGA(Field Programmable Gate Array)를 포함할 수 있다.The processor 220 processes data received by the communication unit 210 and data stored in the memory 230. The “processor” may be a data processing device implemented in hardware having a circuit having a physical structure for executing desired operations. For example, desired operations may include code or instructions included in a program. For example, a data processing device implemented in hardware is a microprocessor, a central processing unit, a processor core, a multi-core processor, and a multiprocessor. , Application-Specific Integrated Circuit (ASIC), and Field Programmable Gate Array (FPGA).

프로세서(220)는 메모리(예를 들어, 메모리(230))에 저장된 컴퓨터로 읽을 수 있는 코드(예를 들어, 소프트웨어) 및 프로세서(220)에 의해 유발된 인스트럭션들을 실행한다.The processor 220 executes computer-readable code (eg, software) stored in a memory (eg, memory 230) and instructions induced by the processor 220.

메모리(230)는 통신부(210)가 수신한 데이터 및 프로세서(220)가 처리한 데이터를 저장한다. 예를 들어, 메모리(230)는 프로그램(또는 어플리케이션, 소프트웨어)을 저장할 수 있다. 저장되는 프로그램은 타이머의 기능 안전을 결정할 수 있도록 코딩되어 프로세서(220)에 의해 실행 가능한 신텍스(syntax)들의 집합일 수 있다.The memory 230 stores data received by the communication unit 210 and data processed by the processor 220. For example, the memory 230 may store a program (or application or software). The stored program may be a set of syntaxes that are coded to determine the functional safety of the timer and executed by the processor 220.

일 측면에 따르면, 메모리(230)는 하나 이상의 휘발성 메모리, 비휘발성 메모리 및 RAM(Random Access Memory), 플래시 메모리, 하드 디스크 드라이브 및 광학 디스크 드라이브를 포함할 수 있다.According to an aspect, the memory 230 may include one or more volatile memories, nonvolatile memories and random access memories (RAM), flash memories, hard disk drives, and optical disk drives.

메모리(230)는 전자 장치(200)를 동작 시키는 명령어 세트(예를 들어, 소프트웨어)를 저장한다. 전자 장치(200)를 동작 시키는 명령어 세트는 프로세서(220)에 의해 실행된다.The memory 230 stores an instruction set (eg, software) for operating the electronic device 200. An instruction set for operating the electronic device 200 is executed by the processor 220.

통신부(210), 프로세서(220) 및 메모리(230)에 대해, 아래에서 도 3 내지 도 9를 참조하여 상세히 설명된다.The communication unit 210, the processor 220, and the memory 230 will be described in detail below with reference to FIGS. 3 to 9.

도 3은 일 실시예에 따른 타이머의 기능 안전을 결정하는 방법의 흐름도이다.3 is a flowchart of a method of determining functional safety of a timer according to an embodiment.

아래의 단계들(310 내지 360)은 도 2을 참조하여 전술된 전자 장치(200)에 의해 수행된다.The steps 310 to 360 below are performed by the electronic device 200 described above with reference to FIG. 2.

단계(310)에서, 전자 장치(200)는 0으로 초기화된 제1 카운터에 타겟 시간을 설정한다. 타겟 시간은 타이머를 동작시켜야할 태스크(task)에 따라 달라질 수 있다. 전자 장치(200)를 동작시키는 운영 체제(OS)를 통해 복수의 태스크들을 스케줄링할 수 있다. 예를 들어, 제1 태스크를 수행하기 위해 3초가 필요한 경우 제1 태스크를 위해 제1 카운터에 3초가 설정될 수 있다. 3초가 경과한 경우(즉, 타이머 완료) 제1 카운터는 인터럽트(interrupt)를 발생시키고, 제2 태스크를 위한 새로운 타겟 시간이 설정될 수 있다.In step 310, the electronic device 200 sets a target time to the first counter initialized to zero. The target time may vary depending on the task in which the timer is to be operated. A plurality of tasks may be scheduled through an operating system (OS) that operates the electronic device 200. For example, when 3 seconds are required to perform the first task, 3 seconds may be set in the first counter for the first task. When 3 seconds have elapsed (ie, the timer is complete), the first counter generates an interrupt, and a new target time for the second task may be set.

제1 카운터에 타겟 시간이 설정된 후, 단위 시간이 경과할 때마다 제1 카운터의 값이 증가할 수 있다. 단위 시간은 시스템의 클록(clock)일 수 있다.After the target time is set in the first counter, the value of the first counter may increase each time the unit time elapses. The unit time may be a system clock.

단계(320)에서, 전자 장치(200)는 미리 설정된 참조 시간으로 초기화된 제2 카운터에 타겟 시간을 설정한다. 제2 카운터는 제1 카운터의 값이 정확한지 여부를 결정하기 위해 이용되는 카운터일 수 있다. 예를 들어, 참조 시간은 초 단위 또는 단위 시간에 기초하여 결정될 수 있다. 제2 카운터는 직접적으로 인터럽트를 발생시키지는 않는다.In step 320, the electronic device 200 sets a target time to a second counter initialized to a preset reference time. The second counter may be a counter used to determine whether the value of the first counter is correct. For example, the reference time may be determined in units of seconds or based on unit time. The second counter does not directly generate an interrupt.

제2 카운터에 타겟 시간이 설정된 후, 단위 시간이 경과할 때마다 제2 카운터의 값이 증가할 수 있다.After the target time is set in the second counter, the value of the second counter may increase each time the unit time elapses.

단계들(310, 320)은 독립적으로 병렬적으로 수행될 수 있으며, 동시에 수행될 수 있다.Steps 310 and 320 may be performed independently and in parallel, and may be performed simultaneously.

단계(330)에서, 전자 장치(200)는 단위 시간 마다 제2 카운터의 값에서 참조 시간을 뺀 제1 값을 계산한다.In step 330, the electronic device 200 calculates a first value obtained by subtracting the reference time from the value of the second counter per unit time.

단계(340)에서, 전자 장치(200)는 제1 값 및 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정한다. 예를 들어, 제1 값과 제1 카운터의 값이 동일하지 않은 경우 타이머의 기능이 안전하지 않음으로 결정될 수 있다.In step 340, the electronic device 200 determines functional safety of the timer based on the first value and the value of the first counter. For example, if the first value and the value of the first counter are not the same, it may be determined that the function of the timer is not secure.

단계(350)에서, 전자 장치(200)는 타이머에 오류가 있는 경우 타이머의 기능에 오류가 있음을 출력한다.In step 350, when there is an error in the timer, the electronic device 200 outputs that there is an error in the function of the timer.

단계(360)에서, 전자 장치(200)는 제1 카운터의 값이 타겟 시간에 대응하는 경우 인터럽트를 출력한다. 인터럽트가 출력된 경우 해당 태스크가 종료된다.In step 360, the electronic device 200 outputs an interrupt when the value of the first counter corresponds to the target time. If an interrupt is output, the task is terminated.

도 4는 일 예에 따른 타이머의 기능 안전을 결정하기 위한 모듈들을 도시한다.4 illustrates modules for determining functional safety of a timer according to an example.

일 측면에 따르면, 통신부(210), 프로세서(220) 및 메모리(230)의 자원을 이용하여 타이머의 기능 안전을 결정하기 위한 모듈들(400)이 구현될 수 있다. 다른 일 측면에 따르면, 타이머의 기능 안전을 결정하기 위한 모듈들(400)이 각각의 회로 또는 소자를 통해 구현될 수 있다.According to one aspect, modules 400 for determining functional safety of a timer may be implemented using resources of the communication unit 210, the processor 220, and the memory 230. According to another aspect, modules 400 for determining functional safety of the timer may be implemented through respective circuits or devices.

타이머의 기능 안전을 결정하기 위한 모듈들(400)은 External Interface & Register(410), 제1 카운터(420), 제2 카운터(430) 및 비교기(440)를 포함한다.Modules 400 for determining the functional safety of the timer include an External Interface & Register 410, a first counter 420, a second counter 430, and a comparator 440.

External Interface & Register(410)는 일반적으로 APB 인터페이스 및 설정을 위한 레지스터들로 구성된다. External Interface & Register(410)는 레지스터 설정에 따라 제1 카운터(420)를 설정하고 동작시킨다.The External Interface & Register 410 is generally composed of registers for an APB interface and setting. The External Interface & Register 410 sets and operates the first counter 420 according to the register setting.

제1 카운터(420)는 설정된 타겟 시간 까지 제1 카운터(420)의 값을 증가시킨다. 예를 들어, 단위 시간 마다 제1 카운터(420)의 값이 1씩 증가할 수 있다.The first counter 420 increases the value of the first counter 420 until the set target time. For example, the value of the first counter 420 may increase by 1 for each unit time.

제2 카운터(430)는 설정된 타겟 시간과 참조 시간의 합까지 제2 카운터(430)의 값을 증가시킨다. 예를 들어, 단위 시간 마다 제2 카운터(420)의 값이 1씩 증가할 수 있다.The second counter 430 increases the value of the second counter 430 up to the sum of the set target time and the reference time. For example, the value of the second counter 420 may increase by 1 for each unit time.

비교기(440)는 제1 카운터(420)의 값과 제2 카운터(430)의 값에 기초하여 타이머의 기능 안전을 결정한다. 비교기(440)는 제2 카운터(430)의 값에서 참조 시간을 뺀 제1 값을 계산하고, 제1 값 및 제1 카운터의 값이 동일한지 여부를 결정함으로써 타이머의 기능 안전을 결정할 수 있다.The comparator 440 determines the functional safety of the timer based on the value of the first counter 420 and the value of the second counter 430. The comparator 440 may determine the functional safety of the timer by calculating a first value obtained by subtracting the reference time from the value of the second counter 430 and determining whether the first value and the value of the first counter are the same.

도 5는 일 예에 따른 제1 카운터 값, 제2 카운터 값 및 비교기의 값의 타이밍 차트를 도시한다.5 is a timing chart of a first counter value, a second counter value, and a comparator value according to an example.

단위 시간이 증가할 때마다 제1 카운터의 값 및 제2 카운터의 값이 각각 증가한다. 단위 시간은 시스템 내부의 클록일 수 있다.Each time the unit time increases, the value of the first counter and the value of the second counter increase, respectively. The unit time may be a clock inside the system.

예를 들어, 제2 카운터에 미리 설정된 참조 시간은 하나의 단위 시간에 대응하는 1일 수 있다.For example, the reference time preset in the second counter may be 1 corresponding to one unit time.

구간(510)에서, 제1 카운터의 값은 1이고, 제2 카운터의 값은 2일 수 있다. 참조 시간이 1이므로, 제1 값은 1이다. 제1 값 및 제1 카운터의 값이 각각 1로 동일하므로, 타이머의 기능은 안전한 것으로 결정된다.In the period 510, the value of the first counter may be 1, and the value of the second counter may be 2. Since the reference time is 1, the first value is 1. Since the first value and the value of the first counter are each equal to 1, the function of the timer is determined to be safe.

도 6은 일 예에 따른 제3 카운터의 값을 추가로 이용하여 타이머의 기능 안전을 결정하는 방법의 흐름도이다.6 is a flowchart of a method of determining functional safety of a timer by additionally using a value of a third counter according to an example.

아래의 단계들(610 및 620)은 도 3을 참조하여 전술된 단계(340)가 수행되기 전에 수행될 수 있다. 단계(610)는 단계들(310 및 320)과 동시에 수행될 수 있다.Steps 610 and 620 below may be performed before step 340 described above with reference to FIG. 3 is performed. Step 610 may be performed simultaneously with steps 310 and 320.

단계(610)에서, 전자 장치(200)는 미리 설정된 제2 참조 시간으로 초기화된 제3 카운터에 타겟 시간을 설정한다. 예를 들어, 제1 참조 시간이 하나의 클록에 대응하는 시간인 경우, 제2 참조 시간은 두 개의 클록에 대응하는 시간일 수 있다.In step 610, the electronic device 200 sets a target time to a third counter initialized to a preset second reference time. For example, if the first reference time is a time corresponding to one clock, the second reference time may be a time corresponding to two clocks.

단계(620)에서, 전자 장치(200)는 단위 시간 마다 제3 카운터의 값에서 제2 참조 시간을 뺀 제2 값을 계산한다.In step 620, the electronic device 200 calculates a second value obtained by subtracting the second reference time from the value of the third counter per unit time.

도 3을 참조하여 전술된 단계(340)는 아래의 단계(630)를 포함한다.Step 340 described above with reference to FIG. 3 includes step 630 below.

단계(630)에서, 전자 장치(200)는 제1 값, 제2 값 및 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정한다. 제1 값, 제2 값 및 제1 카운터의 값이 서로 상이한 경우 타이머의 기능에 오류가 있는 것으로 결정될 수 있다. 예를 들어, 제1 값, 제2 값 및 제1 카운터의 값 중 적어도 두 개가 동일한 경우에는 타이머의 기능이 안전한 것으로 결정될 수 있다. 동일한 값들에 기초하여 시스템의 타이머가 동작될 수 있다.In step 630, the electronic device 200 determines the functional safety of the timer based on the first value, the second value, and the value of the first counter. When the first value, the second value, and the value of the first counter are different from each other, it may be determined that there is an error in the function of the timer. For example, when at least two of the first value, the second value, and the value of the first counter are the same, it may be determined that the function of the timer is safe. Based on the same values, the timer of the system can be operated.

도 7은 다른 일 실시예에 따른 타이머의 기능 안전을 결정하는 방법의 흐름도이다.7 is a flowchart of a method of determining functional safety of a timer according to another exemplary embodiment.

아래의 단계들(710 내지 760)은 도 2을 참조하여 전술된 전자 장치(200)에 의해 수행된다.The steps 710 to 760 below are performed by the electronic device 200 described above with reference to FIG. 2.

단계(710)에서, 전자 장치(200)는 0으로 초기화된 제1 카운터에 타겟 시간을 설정한다.In step 710, the electronic device 200 sets a target time to a first counter initialized to zero.

단계(720)에서, 전자 장치(200)는 단위 시간 마다 제1 카운터의 값을 이전 누적 값에 누적함으로써 타겟 누적 값을 생성한다. 예를 들어, 제1 카운터의 값이 3이고, 이전 누적 값이 3인 경우, 타겟 누적 값은 6이다.In step 720, the electronic device 200 generates a target cumulative value by accumulating the value of the first counter to the previous cumulative value every unit time. For example, if the value of the first counter is 3 and the previous cumulative value is 3, the target cumulative value is 6.

단계(730)에서, 전자 장치(200)는 단위 시간 마다 제1 카운터의 값에 미리 설정된 수학식을 적용함으로써 검증 값을 생성한다. 수학식은 아래의 [수학식 1]일 수 있다.In step 730, the electronic device 200 generates a verification value by applying a preset equation to the value of the first counter every unit time. The equation may be [Equation 1] below.

[수학식 1][Equation 1]

Figure 112019118572659-pat00002
Figure 112019118572659-pat00002

m은 제1 카운터의 값일 수 있다.m may be the value of the first counter.

단계(740)에서, 전자 장치(200)는 타겟 누적 값 및 검증 값에 기초하여 타이머의 기능 안전을 결정한다. 예를 들어, 타겟 누적 값과 검증 값이 동일하지 않은 경우 타이머의 기능에 오류가 있는 것으로 결정될 수 있다.In step 740, the electronic device 200 determines functional safety of the timer based on the target accumulated value and the verification value. For example, if the target accumulated value and the verification value are not the same, it may be determined that there is an error in the function of the timer.

단계(750)에서, 전자 장치(200)는 타이머에 오류가 있는 경우 타이머의 기능에 오류가 있음을 출력한다.In step 750, when there is an error in the timer, the electronic device 200 outputs that there is an error in the function of the timer.

단계(760)에서, 전자 장치(200)는 제1 카운터의 값이 타겟 시간에 대응하는 경우 인터럽트를 출력한다. 인터럽트가 출력된 경우 해당 태스크가 종료된다.In step 760, when the value of the first counter corresponds to the target time, the electronic device 200 outputs an interrupt. If an interrupt is output, the task is terminated.

도 8은 다른 일 예에 따른 타이머의 기능 안전을 결정하기 위한 모듈들을 도시한다.8 illustrates modules for determining functional safety of a timer according to another example.

일 측면에 따르면, 통신부(210), 프로세서(220) 및 메모리(230)의 자원을 이용하여 타이머의 기능 안전을 결정하기 위한 모듈들(800)이 구현될 수 있다. 다른 일 측면에 따르면, 타이머의 기능 안전을 결정하기 위한 모듈들(800)이 각각의 회로 또는 소자를 통해 구현될 수 있다.According to an aspect, modules 800 for determining functional safety of a timer may be implemented using resources of the communication unit 210, the processor 220, and the memory 230. According to another aspect, modules 800 for determining functional safety of the timer may be implemented through respective circuits or devices.

타이머의 기능 안전을 결정하기 위한 모듈들(800)은 External Interface & Register(810), 제1 카운터(820), 계산기(830), 누적기(840) 및 비교기(850)를 포함한다.Modules 800 for determining the functional safety of the timer include an external interface & register 810, a first counter 820, a calculator 830, an accumulator 840, and a comparator 850.

External Interface & Register(810)는 External Interface & Register(410)에 대응하고, 제1 카운터(820)는 제1 카운터(420)에 대응할 수 있다.The External Interface & Register 810 may correspond to the External Interface & Register 410, and the first counter 820 may correspond to the first counter 420.

계산기(830)는 제1 카운터의 값에 미리 설정된 수학식을 적용함으로써 검증 값을 생성한다.The calculator 830 generates a verification value by applying a preset equation to the value of the first counter.

누적기(840)는 제1 카운터의 값을 이전 누적 값에 누적함으로써 타겟 누적 값을 생성한다.The accumulator 840 generates a target cumulative value by accumulating the value of the first counter to the previous cumulative value.

비교기(850)는 타겟 누적 값 및 검증 값을 비교하고, 타겟 누적 값과 검증 값이 동일하지 않은 경우 타이머의 기능에 오류가 있는 것으로 결정한다.The comparator 850 compares the target accumulation value and the verification value, and if the target accumulation value and the verification value are not the same, it is determined that there is an error in the function of the timer.

도 9는 일 예에 따른 제1 카운터 값, 타겟 누적 값, 및 검증 값의 타이밍 차트를 도시한다.9 is a timing chart of a first counter value, a target accumulation value, and a verification value according to an example.

단위 시간이 증가할 때마다 제1 카운터의 값이 증가한다.Each time the unit time increases, the value of the first counter increases.

제1 구간(910)에서, 제1 카운터의 값은 1이고, 이전 누적기의 값은 0이다. 이에 기초하여 계산된 타겟 누적 값은 1이고, 검증 값은 1이므로 서로 동일하다. 타겟 누적 값 및 검증 값이 동일하므로 타이머의 기능이 안전한 것으로 결정될 수 있다.In the first section 910, the value of the first counter is 1, and the value of the previous accumulator is 0. The target cumulative value calculated based on this is 1 and the verification value is 1, so they are the same. Since the target accumulated value and the verification value are the same, it may be determined that the function of the timer is safe.

제2 구간(920)에서, 제1 카운터의 값은 2이고, 이전 누적기의 값은 1이다. 이에 기초하여 계산된 타겟 누적 값은 3이고, 검증 값은 3이므로 서로 동일하다. 타겟 누적 값 및 검증 값이 동일하므로 타이머의 기능이 안전한 것으로 결정될 수 있다.In the second interval 920, the value of the first counter is 2, and the value of the previous accumulator is 1. The target cumulative value calculated based on this is 3 and the verification value is 3, so they are the same. Since the target accumulated value and the verification value are the same, it may be determined that the function of the timer is safe.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiment, or may be known and usable to those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. -A hardware device specially configured to store and execute program instructions such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of the program instructions include not only machine language codes such as those produced by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like. The hardware device described above may be configured to operate as one or more software modules to perform the operation of the embodiment, and vice versa.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instructions, or a combination of one or more of these, configuring the processing unit to behave as desired or processed independently or collectively. You can command the device. Software and/or data may be interpreted by a processing device or to provide instructions or data to a processing device, of any type of machine, component, physical device, virtual equipment, computer storage medium or device. , Or may be permanently or temporarily embodyed in a transmitted signal wave. The software may be distributed over networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer-readable recording media.

이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기를 기초로 다양한 기술적 수정 및 변형을 적용할 수 있다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described by the limited drawings, a person of ordinary skill in the art can apply various technical modifications and variations based on the above. For example, the described techniques are performed in a different order from the described method, and/or components such as a system, structure, device, circuit, etc. described are combined or combined in a form different from the described method, or other components Alternatively, even if substituted or substituted by an equivalent, an appropriate result can be achieved.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 청구범위의 범위에 속한다.Therefore, other implementations, other embodiments and claims and equivalents fall within the scope of the following claims.

200: 전자 장치
210: 통신부
220: 프로세서
230: 메모리
200: electronic device
210: communication department
220: processor
230: memory

Claims (20)

전자 장치에 의해 수행되는, 타이머의 기능 안전을 결정하는 방법은,
0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계;
미리 설정된 참조 시간으로 초기화된 제2 카운터에 상기 타겟 시간을 설정하는 단계;
단위 시간 마다 상기 제2 카운터의 값에서 상기 참조 시간을 뺀 제1 값을 계산하는 단계; 및
상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계
를 포함하는,
타이머의 기능 안전 결정 방법.
A method of determining the functional safety of a timer, performed by an electronic device, includes:
Setting a target time to a first counter initialized to zero;
Setting the target time to a second counter initialized with a preset reference time;
Calculating a first value obtained by subtracting the reference time from the value of the second counter for each unit time; And
Determining functional safety of a timer based on the first value and the value of the first counter
Containing,
How to determine the functional safety of the timer.
제1항에 있어서,
상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는,
상기 제1 값과 상기 제1 카운터의 값이 동일하지 않은 경우 타이머의 기능에 오류가 있음을 출력하는 단계
를 포함하는,
타이머의 기능 안전 결정 방법.
The method of claim 1,
Determining functional safety of the timer based on the first value and the value of the first counter,
Outputting that there is an error in the function of the timer when the first value and the value of the first counter are not the same
Containing,
How to determine the functional safety of the timer.
제1항에 있어서,
상기 제1 카운터의 값이 상기 타겟 시간에 대응하는 경우 인터럽트를 출력하는 단계
를 더 포함하는,
타이머의 기능 안전 결정 방법.
The method of claim 1,
Outputting an interrupt when the value of the first counter corresponds to the target time
Further comprising,
How to determine the functional safety of the timer.
제1항에 있어서,
상기 단위 시간은, 시스템의 클록과 동일한,
타이머의 기능 안전 결정 방법.
The method of claim 1,
The unit time is the same as the system clock,
How to determine the functional safety of the timer.
제1항에 있어서,
미리 설정된 제2 참조 시간으로 초기화된 제3 카운터에 상기 타겟 시간을 설정하는 단계; 및
단위 시간 마다 상기 제3 카운터의 값에서 상기 제2 참조 시간을 뺀 제2 값을 계산하는 단계
를 더 포함하고,
상기 타이머의 기능 안전을 결정하는 단계는,
상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계
를 포함하는,
타이머의 기능 안전 결정 방법.
The method of claim 1,
Setting the target time to a third counter initialized with a preset second reference time; And
Calculating a second value obtained by subtracting the second reference time from the value of the third counter per unit time
Including more,
Determining the functional safety of the timer,
Determining functional safety of a timer based on the first value, the second value, and the value of the first counter
Containing,
How to determine the functional safety of the timer.
제5항에 있어서,
상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는,
상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값이 서로 상이한 경우 상기 타이머의 기능에 오류가 있는 것으로 결정하는 단계
를 포함하는,
타이머의 기능 안전 결정 방법.
The method of claim 5,
Determining functional safety of a timer based on the first value, the second value, and the value of the first counter,
Determining that there is an error in the function of the timer when the first value, the second value, and the value of the first counter are different from each other
Containing,
How to determine the functional safety of the timer.
제1항에 있어서,
상기 전자 장치는 자율주행 차량(autonomous vehicle) 또는 어드밴스드 운전자 지원 시스템(advanced driver assistance system)을 지원하는 차량에 포함되는,
타이머의 기능 안전 결정 방법.
The method of claim 1,
The electronic device is included in a vehicle supporting an autonomous vehicle or an advanced driver assistance system,
How to determine the functional safety of the timer.
제1항 내지 제7항 중 어느 한 항의 방법을 수행하는 프로그램을 수록한 컴퓨터 판독 가능 기록 매체.
A computer-readable recording medium containing a program for performing the method of claim 1.
타이머의 기능 안전을 결정하는 전자 장치는,
타이머의 기능 안전을 결정하는 프로그램이 기록된 메모리; 및
상기 프로그램을 수행하는 프로세서
를 포함하고,
상기 프로그램은,
0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계;
미리 설정된 참조 시간으로 초기화된 제2 카운터에 상기 타겟 시간을 설정하는 단계;
단위 시간 마다 상기 제2 카운터의 값에서 상기 참조 시간을 뺀 제1 값을 계산하는 단계; 및
상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계
를 수행하는,
전자 장치.
The electronic device that determines the functional safety of the timer,
A memory in which a program for determining the functional safety of the timer is recorded; And
Processor that executes the above program
Including,
The above program,
Setting a target time to a first counter initialized to zero;
Setting the target time to a second counter initialized with a preset reference time;
Calculating a first value obtained by subtracting the reference time from the value of the second counter for each unit time; And
Determining functional safety of a timer based on the first value and the value of the first counter
To do,
Electronic device.
제9항에 있어서,
상기 제1 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는,
상기 제1 값과 상기 제1 카운터의 값이 동일하지 않은 경우 타이머의 기능에 오류가 있음을 출력하는 단계
를 포함하는,
전자 장치.
The method of claim 9,
Determining functional safety of the timer based on the first value and the value of the first counter,
Outputting that there is an error in the function of the timer when the first value and the value of the first counter are not the same
Containing,
Electronic device.
제9항에 있어서,
상기 프로그램은,
미리 설정된 제2 참조 시간으로 초기화된 제3 카운터에 상기 타겟 시간을 설정하는 단계; 및
단위 시간 마다 상기 제3 카운터의 값에서 상기 제2 참조 시간을 뺀 제2 값을 계산하는 단계
를 더 수행하고,
상기 타이머의 기능 안전을 결정하는 단계는,
상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계
를 포함하는,
전자 장치.
The method of claim 9,
The above program,
Setting the target time to a third counter initialized with a preset second reference time; And
Calculating a second value obtained by subtracting the second reference time from the value of the third counter per unit time
Do more,
Determining the functional safety of the timer,
Determining functional safety of a timer based on the first value, the second value, and the value of the first counter
Containing,
Electronic device.
제11항에 있어서,
상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값에 기초하여 타이머의 기능 안전을 결정하는 단계는,
상기 제1 값, 상기 제2 값 및 상기 제1 카운터의 값이 서로 상이한 경우 상기 타이머의 기능에 오류가 있는 것으로 결정하는 단계
를 포함하는,
전자 장치.
The method of claim 11,
Determining functional safety of a timer based on the first value, the second value, and the value of the first counter,
Determining that there is an error in the function of the timer when the first value, the second value, and the value of the first counter are different from each other
Containing,
Electronic device.
제9항에 있어서,
상기 전자 장치는 자율주행 차량(autonomous vehicle) 또는 어드밴스드 운전자 지원 시스템(advanced driver assistance system)을 지원하는 차량에 포함되는,
전자 장치.
The method of claim 9,
The electronic device is included in a vehicle supporting an autonomous vehicle or an advanced driver assistance system,
Electronic device.
전자 장치에 의해 수행되는, 타이머의 기능 안전을 결정하는 방법은,
0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계;
단위 시간 마다 상기 제1 카운터의 값을 이전 누적 값에 누적함으로써 타겟 누적 값을 생성하는 단계;
상기 단위 시간 마다 상기 제1 카운터의 값에 미리 설정된 수학식을 적용함으로써 검증 값을 생성하는 단계; 및
상기 타겟 누적 값 및 상기 검증 값에 기초하여 타이머의 기능 안전을 결정하는 단계
를 포함하는,
타이머의 기능 안전 결정 방법.
A method of determining the functional safety of a timer, performed by an electronic device, includes:
Setting a target time to a first counter initialized to zero;
Generating a target cumulative value by accumulating the value of the first counter to a previous cumulative value every unit time;
Generating a verification value by applying a preset equation to the value of the first counter every unit time; And
Determining functional safety of a timer based on the target accumulated value and the verification value
Containing,
How to determine the functional safety of the timer.
제14항에 있어서,
상기 수학식은
Figure 112019118572659-pat00003
이고,
상기 m은 상기 제1 카운터의 값인,
타이머의 기능 안전 결정 방법.
The method of claim 14,
The above equation is
Figure 112019118572659-pat00003
ego,
M is the value of the first counter,
How to determine the functional safety of the timer.
제15항에 있어서,
상기 타겟 누적 값 및 상기 검증 값에 기초하여 타이머의 기능 안전을 결정하는 단계는,
상기 타겟 누적 값과 상기 검증 값이 동일하지 않은 경우 타이머의 기능에 오류가 있는 것으로 결정하는 단계
를 포함하는,
타이머의 기능 안전 결정 방법.
The method of claim 15,
Determining the functional safety of the timer based on the target accumulated value and the verification value,
Determining that there is an error in the function of the timer when the target accumulated value and the verification value are not the same
Containing,
How to determine the functional safety of the timer.
제14항에 있어서,
상기 제1 카운터의 값이 상기 타겟 시간에 대응하는 경우 인터럽트를 출력하는 단계
를 더 포함하는,
타이머의 기능 안전 결정 방법.
The method of claim 14,
Outputting an interrupt when the value of the first counter corresponds to the target time
Further comprising,
How to determine the functional safety of the timer.
제14항에 있어서,
상기 단위 시간은, 시스템의 클록과 동일한,
타이머의 기능 안전 결정 방법.
The method of claim 14,
The unit time is the same as the system clock,
How to determine the functional safety of the timer.
제14항에 있어서,
상기 전자 장치는 자율주행 차량(autonomous vehicle) 또는 어드밴스드 운전자 지원 시스템(advanced driver assistance system)을 지원하는 차량에 포함되는,
타이머의 기능 안전 결정 방법.
The method of claim 14,
The electronic device is included in a vehicle supporting an autonomous vehicle or an advanced driver assistance system,
How to determine the functional safety of the timer.
타이머의 기능 안전을 결정하는 전자 장치는,
타이머의 기능 안전을 결정하는 프로그램이 기록된 메모리; 및
상기 프로그램을 수행하는 프로세서
를 포함하고,
상기 프로그램은,
0으로 초기화된 제1 카운터에 타겟 시간을 설정하는 단계;
단위 시간 마다 상기 제1 카운터의 값을 이전 누적 값에 누적함으로써 타겟 누적 값을 생성하는 단계;
상기 단위 시간 마다 상기 제1 카운터의 값에 미리 설정된 수학식을 적용함으로써 검증 값을 생성하는 단계;
상기 타겟 누적 값 및 상기 검증 값에 기초하여 타이머의 기능 안전을 결정하는 단계
를 수행하는,
전자 장치.
The electronic device that determines the functional safety of the timer,
A memory in which a program for determining the functional safety of the timer is recorded; And
Processor that executes the above program
Including,
The above program,
Setting a target time to a first counter initialized to zero;
Generating a target cumulative value by accumulating the value of the first counter to a previous cumulative value every unit time;
Generating a verification value by applying a preset equation to the value of the first counter every unit time;
Determining functional safety of a timer based on the target accumulated value and the verification value
To do,
Electronic device.
KR1020190148328A 2019-11-19 2019-11-19 Method for determinig functional safety of timer and an electronic device performing the method KR102156541B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190148328A KR102156541B1 (en) 2019-11-19 2019-11-19 Method for determinig functional safety of timer and an electronic device performing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190148328A KR102156541B1 (en) 2019-11-19 2019-11-19 Method for determinig functional safety of timer and an electronic device performing the method

Publications (1)

Publication Number Publication Date
KR102156541B1 true KR102156541B1 (en) 2020-09-16

Family

ID=72669579

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190148328A KR102156541B1 (en) 2019-11-19 2019-11-19 Method for determinig functional safety of timer and an electronic device performing the method

Country Status (1)

Country Link
KR (1) KR102156541B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11284505A (en) * 1998-03-30 1999-10-15 Toshiba Microelectronics Corp Timer circuit
JP2002155798A (en) * 2000-09-01 2002-05-31 Robert Bosch Gmbh Inspection method of timer function ability, control device therefor and device
JP2007011798A (en) * 2005-06-30 2007-01-18 Toshiba Tec Corp Autonomous traveling body
JP2019159992A (en) * 2018-03-15 2019-09-19 ルネサスエレクトロニクス株式会社 Functional safety system, safety control method for functional safety system and functional safety program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11284505A (en) * 1998-03-30 1999-10-15 Toshiba Microelectronics Corp Timer circuit
JP2002155798A (en) * 2000-09-01 2002-05-31 Robert Bosch Gmbh Inspection method of timer function ability, control device therefor and device
JP2007011798A (en) * 2005-06-30 2007-01-18 Toshiba Tec Corp Autonomous traveling body
JP2019159992A (en) * 2018-03-15 2019-09-19 ルネサスエレクトロニクス株式会社 Functional safety system, safety control method for functional safety system and functional safety program

Similar Documents

Publication Publication Date Title
US11307579B2 (en) Fault-tolerant control of an autonomous vehicle with multiple control lanes
US10710602B2 (en) Systems and methods for a vehicle controller safety monitor
US10875511B2 (en) Systems and methods for brake redundancy for an autonomous vehicle
CN108628284B (en) Method for controlling controlled object in changing environment and electronic system thereof
US9880911B2 (en) Method for handling faults in a central control device, and control device
US10620634B2 (en) Vehicle interface for autonomous vehicle
WO2018237121A1 (en) Method of using a single controller (ecu) for a fault-tolerant/fail-operational self-driving system
CN110723151B (en) Intelligent driving system initialization method and device
CN113734201B (en) Vehicle redundancy control method, device, electronic equipment and medium
CN114684185A (en) Vehicle safety response control hierarchy for automated vehicle safety control and corresponding method
CN113734193A (en) System and method for estimating take over time
CN109795508B (en) Safe driving control method and device
KR102156541B1 (en) Method for determinig functional safety of timer and an electronic device performing the method
US20220289201A1 (en) Method for the at least assisted merging of a motor vehicle into a traffic lane
US20220153293A1 (en) Method and device for operating an automated vehicle
KR102160259B1 (en) Method for determinig functional safety of clock and an electronic device performing the method
KR102160256B1 (en) Method for determinig functional safety of reset and an electronic device performing the method
EP3797265A1 (en) Contingency plan system and method
KR102115436B1 (en) Method for managing data and memory wrapper performing the method
US20170316272A1 (en) Driving assistance systems and method implemented in such a system
KR20210059317A (en) Vehicle and control method thereof
CN115667043A (en) Vehicle control system, vehicle integrated control device, electronic control device, network communication device, vehicle control method, and vehicle control program
KR102104298B1 (en) A method for determinig safety of data and an electronic device performing the method
JP2023506869A (en) Control system and control method for intelligent connected vehicle
JP7428272B2 (en) Processing method, processing system, processing program, processing device

Legal Events

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