KR102543173B1 - Autosar operating system with message repetition error detection function and message repetition error detection method thereof - Google Patents

Autosar operating system with message repetition error detection function and message repetition error detection method thereof Download PDF

Info

Publication number
KR102543173B1
KR102543173B1 KR1020200169772A KR20200169772A KR102543173B1 KR 102543173 B1 KR102543173 B1 KR 102543173B1 KR 1020200169772 A KR1020200169772 A KR 1020200169772A KR 20200169772 A KR20200169772 A KR 20200169772A KR 102543173 B1 KR102543173 B1 KR 102543173B1
Authority
KR
South Korea
Prior art keywords
message
value
operating system
received
error detection
Prior art date
Application number
KR1020200169772A
Other languages
Korean (ko)
Other versions
KR20220080550A (en
Inventor
김회민
Original Assignee
현대오토에버 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 현대오토에버 주식회사 filed Critical 현대오토에버 주식회사
Priority to KR1020200169772A priority Critical patent/KR102543173B1/en
Publication of KR20220080550A publication Critical patent/KR20220080550A/en
Application granted granted Critical
Publication of KR102543173B1 publication Critical patent/KR102543173B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

본 발명의 바람직한 실시예에 따른 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제는, 메시지 수신시, 메시지 수신 시점을 저장하는 베이직 소프트웨어 컴포넌트, 및 상기 메시지가 반복 수신되는 경우, 상기 메시지 수신 시점을 이용하여 상기 메시지의 수신 주기를 산출하고, 산출된 수신 주기와 기설정된 정상 주기 범위를 이용하여 메시지 중복 에러 여부를 판단하는 E2E 트랜스포머를 포함한다.An Autosar operating system equipped with a message duplication error detection function according to a preferred embodiment of the present invention uses a basic software component that stores a message reception time when a message is received, and uses the message reception time when the message is repeatedly received. and an E2E transformer that calculates a reception period of the message and determines whether or not there is a message duplication error using the calculated reception period and a preset normal period range.

Description

메시지 중복 에러 검출 기능을 구비한 오토사 운영체제, 및 그것의 메시지 중복 에러 검출 방법{AUTOSAR OPERATING SYSTEM WITH MESSAGE REPETITION ERROR DETECTION FUNCTION AND MESSAGE REPETITION ERROR DETECTION METHOD THEREOF}Autosar operating system having message duplication error detection function, and method for detecting message duplication error thereof

본 발명은 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제, 및 그것의 메시지 중복 에러 검출 방법에 관한 것이다.The present invention relates to an Autosar operating system having a message duplication error detection function and a message duplication error detection method thereof.

차량에 사용되는 전자 장치가 많아질수록 그에 사용되는 소프트웨어의 표준화에 대한 요구 또한 커져가고 있다. 이에 모듈의 재사용성을 높이고 차량 별 부품의 호환성을 높이고자, 오토사(AUTOSAR) 기반의 임베디드 소프트웨어 오픈 플랫폼(Embedded Software Open Platform)이 차량에 적용되고 있다.As the number of electronic devices used in vehicles increases, the demand for standardization of software used therein also increases. In order to increase the reusability of modules and the compatibility of parts for each vehicle, an AUTOSAR-based Embedded Software Open Platform is being applied to vehicles.

오토사(AUTOSAR, AUTomotive Open System Architecture)는 차량 전장분야의 운영체제로서, 차량 제어기의 동작 제어를 위한 메커니즘을 구비한다.AUTOSAR (AUTomotive Open System Architecture) is an operating system in the vehicle electric field, and has a mechanism for controlling the operation of a vehicle controller.

오토사 운영체제는 차량 제어기 간 중요 이벤트 메시지의 전송 시, 메시지 손실에 대비하여 컴포넌트 모듈을 통해 상호작용 레이어 프로토콜 데이터 유닛(Ipdu: Interaction Layer Protocol Data Unit)에 메시지의 반복 횟수 및 전송 주기를 제공한다.When an important event message is transmitted between vehicle controllers, the Autosar operating system provides the number of repetitions and transmission period of the message to the Interaction Layer Protocol Data Unit (Ipdu) through the component module in preparation for message loss.

오토사 운영체제는 기능 안전을 위해 E2E 라이브러리(End to End Library) 및 CRC 라이브러리(Cyclic Redundancy Check Library)를 활용하는 E2E 트랜스포머(End to End Transformer)를 통해 메시지의 중복(Repetition) 전송에 대한 에러 검출 기능을 제공한다. 또한 오토사 운영체제는 유연한 적용을 위해 다양한 프로파일을 제공한다.The Autosar operating system has an error detection function for repeated transmission of messages through an End to End Transformer that utilizes the E2E Library (End to End Library) and CRC Library (Cyclic Redundancy Check Library) for functional safety. provides In addition, the Autosar operating system provides various profiles for flexible application.

이러한 오토사 운영체제는, 송신 제어기에서 메시지를 반복하여 수신 제어기로 전송하는 경우, 반복 전송된 메시지가 E2E 트랜스포머에 의해 메시지의 중복 에러로 처리되는 등의 문제가 발생하고 있다.In such an Autosar operating system, when a transmission controller repeatedly transmits a message to a reception controller, a problem occurs in that the repeatedly transmitted message is treated as a message duplication error by the E2E transformer.

이러한 문제 해결을 위한 방법으로는 프로파일에 따라 반복 허용 범위를 마련하고, 메시지의 반복 전송 횟수와 반복 허용범위를 기초로 메시지의 중복 에러 여부를 처리하는 방법이 있다.As a method for solving this problem, there is a method of preparing a repetition range according to a profile and processing message duplication errors based on the number of repeated transmissions of messages and the repetition range.

그러나, 오토사 운영체제는, 메시지의 반복 전송 횟수만 고려하여 반복 허용범위를 마련하여 메시지의 중복 에러를 판단하는 경우, 송신 제어기의 결함 또는 네트워크 결함으로 인해 중복 전송된 메시지에 대해서 결함으로 판단하지 않는 문제가 있다.However, when the Autosar operating system determines a message duplication error by preparing a repetition tolerance considering only the number of repeated transmissions of the message, it does not judge the duplicated message as a defect due to a defect in the transmission controller or a network defect. there is a problem.

대한민국 등록특허 제1544887호Republic of Korea Patent No. 1544887

이에 본 발명은 상기한 사정을 감안하여 안출된 것으로, 메시지의 반복 전송 횟수가 반복 허용범위 내에 포함되더라도, 추가적으로 메시지의 수신 주기를 산출하고 이를 기초로 송신 제어기의 반복 전송에 의해 메시지가 중복 수신된 것인지, 또는 송신 제어기나 네트워크 등의 통신 장치의 결함에 의해 메시지가 중복 수신된 것인지를 판단하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제, 및 그것의 메시지 중복 에러 검출 방법을 제공하는 것을 목적으로 한다.Accordingly, the present invention has been devised in view of the above circumstances, and even if the number of repeated transmissions of a message is included within the repetition tolerance range, the message reception period is additionally calculated and based on this, the message is repeatedly received by the transmission controller repeatedly transmitted. To provide an Autosar operating system having a message duplication error detection function for determining whether or not a duplicate message has been received due to a defect in a transmission controller or a communication device such as a network, and a message duplication error detection method thereof do.

상기 목적을 달성하기 위한 본 발명의 바람직한 실시예에 따른 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제는, 메시지 수신시, 메시지 수신 시점을 저장하는 베이직 소프트웨어 컴포넌트; 및 상기 메시지가 반복 수신되는 경우, 상기 메시지 수신 시점을 이용하여 상기 메시지의 수신 주기를 산출하고, 산출된 수신 주기와 기설정된 정상 주기 범위를 이용하여 메시지 중복 에러 여부를 판단하는 E2E 트랜스포머;를 포함한다.An Autosar operating system having a message duplication error detection function according to a preferred embodiment of the present invention for achieving the above object includes a basic software component that stores a message reception time when a message is received; and an E2E transformer that, when the message is repeatedly received, calculates a reception period of the message using the message reception time, and determines whether or not there is a message duplication error using the calculated reception period and a preset normal period range. do.

상기 베이직 소프트웨어 컴포넌트는, 상기 메시지 수신시, IPDU 호출 기능을 수행하여 상기 메시지의 수신 시점의 틱값을 저장할 수 있다.When receiving the message, the basic software component may perform an IPDU calling function and store a tick value at the time of receiving the message.

상기 베이직 소프트웨어 컴포넌트는, 상기 틱값에 타이머의 틱당초(SecPerTick)값을 곱하여 버퍼에 저장할 수 있다.The basic software component may multiply the tick value by a SecPerTick value of the timer and store the multiplied value in a buffer.

상기 E2E 트랜스포머는, 현재 수신된 수신 메시지로부터 AC값을 추출하고, 추출된 AC값의 중복 여부를 판단할 수 있다.The E2E transformer may extract an AC value from the currently received message and determine whether the extracted AC value is duplicated.

상기 E2E 트랜스포머는, 상기 AC 값이 중복 추출되는 경우, 기설정된 반복 허용범위 내의 횟수만큼 메시지가 수신되었는지 판단할 수 있다.When the AC value is repeatedly extracted, the E2E transformer may determine whether a message has been received as many times as within a predetermined repetition allowable range.

상기 E2E 트랜스포머는, 상기 반복 허용범위 내의 횟수만큼 메시지가 수신되는 경우, 현재 버퍼와 이전 버퍼 사이의 차이를 기초로 수신 주기를 산출할 수 있다.The E2E transformer may calculate a reception period based on a difference between a current buffer and a previous buffer when a message is received as many times as the number of times within the repetition allowable range.

상기 E2E 트랜스포머는, 산출된 수신 주기가 기설정된 정상 주기 범위를 벗어나는 경우, 통신 결함으로 인한 메시지 중복 에러로 판단할 수 있다.The E2E transformer may determine a message duplication error due to a communication defect when the calculated reception period is out of a preset normal period range.

상기 목적을 달성하기 위한 본 발명의 바람직한 실시예에 따른 오토사 운영체제의 메시지 중복 에러 검출 방법은, 메시지를 수신하는 메시지 수신 단계; 상기 메시지가 반복 수신되는 경우, 상기 메시지의 수신 시점을 이용하여 수신 주기를 산출하는 수신 주기 산출 단계; 및 산출된 수신 주기와 기설정된 정상 주기 범위를 이용하여 메시지 중복 에러 여부를 판단하는 정상 주기 범위 판단 단계;를 포함한다.To achieve the above object, a method for detecting a message duplication error in an Autosar operating system according to a preferred embodiment of the present invention includes a message receiving step of receiving a message; a reception period calculating step of calculating a reception period using a reception time of the message when the message is repeatedly received; and a normal period range determination step of determining whether or not there is a message duplication error using the calculated reception period and a preset normal period range.

상기 메시지 수신 단계 이후, 상기 메시지의 AC값을 추출하는 AC값 추출 단계; 및 추출된 현재 AC값과 이전 AC값을 비교하여 중복 여부를 판단하는 AC값 중복 판단 단계;를 더 포함할 수 있다.After the message receiving step, an AC value extraction step of extracting an AC value of the message; and an AC value duplication determination step of comparing the extracted current AC value with a previous AC value to determine whether the AC value is duplicated.

현재 AC값이 중복인 경우, 상기 메시지의 수신 횟수가 기설정된 반복 허용범위 내에 포함되는지 판단하는 허용범위 판단 단계를 더 포함하고, 상기 수신 주기 산출 단계는, 상기 반복 허용범위 내의 수신 횟수만큼 메시지가 수신되는 경우, 상기 수신 주기를 산출할 수 있다.If the current AC value is overlapping, further comprising determining whether the number of receptions of the message is within a predetermined repetition tolerance range, wherein the reception period calculation step is such that the message is received as many times as the number of receptions within the repetition tolerance range. If received, the reception period may be calculated.

상기 현재 AC값이 중복이 아니거나, 또는 산출된 수신 주기가 상기 정상 주기 범위에 포함되는 경우, 상기 메시지의 중복 에러가 아닌 것으로 판단하는 정상 수신 단계; 및 상기 반복 허용범위를 벗어난 수신 횟수만큼 메시지가 수신되거나, 또는 산출된 수신 주기가 상기 정상 주기 범위를 벗어나는 경우, 통신 결함으로 인한 메시지 중복 에러를 검출하는 에러 발생 단계;를 더 포함할 수 있다.a normal reception step of determining that the message does not have a duplication error when the current AC value does not overlap or the calculated reception period is included in the normal period range; and an error generating step of detecting a message duplication error due to a communication defect when messages are received as many times as the number of receptions out of the repetition allowable range or when the calculated reception period is out of the normal period range.

본 발명의 바람직한 실시예에 따른 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제, 및 그것의 메시지 중복 에러 검출 방법에 의하면, 반복 수신된 메시지에 대해 추가적으로 메시지의 수신 주기를 산출하고 이를 기초로 송신 제어기의 반복 전송에 의해 메시지가 중복 수신된 것인지, 또는 송신 제어기나 네트워크 등의 통신 장치의 결함에 의해 메시지가 중복 수신된 것인지를 판단함으로써, 종래에 확인할 수 없었던 메시지 중복 에러를 검출하는 효과가 있다.According to an Autosar operating system having a message duplication error detection function and a message duplication error detection method thereof according to a preferred embodiment of the present invention, a message reception period is additionally calculated for repeatedly received messages, and based on this, a transmission controller is calculated. There is an effect of detecting a message duplication error, which could not be confirmed in the prior art, by determining whether a duplicate message is received due to repeated transmission of a message or a duplicate message is received due to a defect in a communication device such as a transmission controller or a network.

도 1은 본 발명의 바람직한 실시예에 따른 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제의 블록도이다.
도 2는 본 발명의 바람직한 실시예에 따른 오토사 운영체제의 메시지 중복 에러 검출 방법의 순서도이다.
1 is a block diagram of an Autosar operating system having a message duplication error detection function according to a preferred embodiment of the present invention.
2 is a flowchart of a message duplication error detection method of the Autosar operating system according to a preferred embodiment of the present invention.

이하, 본 발명의 바람직한 실시예를 첨부된 도면들을 참조하여 상세히 설명한다. 우선 각 도면의 구성 요소들에 참조 부호를 부가함에 있어서, 동일한 구성 요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 이하에서 본 발명의 바람직한 실시예를 설명할 것이나, 본 발명의 기술적 사상은 이에 한정하거나 제한되지 않고 당업자에 의해 변형되어 다양하게 실시될 수 있음은 물론이다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. First, in adding reference numerals to components of each drawing, it should be noted that the same components have the same numerals as much as possible even if they are displayed on different drawings. In addition, although preferred embodiments of the present invention will be described below, the technical idea of the present invention is not limited or limited thereto and can be modified and implemented in various ways by those skilled in the art.

도 1은 본 발명의 바람직한 실시예에 따른 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제의 블록도이다.1 is a block diagram of an Autosar operating system having a message duplication error detection function according to a preferred embodiment of the present invention.

도 1을 참고하면, 본 발명의 바람직한 실시예에 따른 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제(100)는, 메시지를 송신하는 송신 제어기와 메시지를 수신하는 수신 제어기 각각에 적용될 수 있다. 이하에서는, 수신 제어기에 적용된 오토사 운영체제(100)를 기초로 설명한다.Referring to FIG. 1 , an Autosar operating system 100 equipped with a message duplication error detection function according to a preferred embodiment of the present invention may be applied to each of a transmitter controller that transmits a message and a receiver controller that receives a message. Hereinafter, the Autosar operating system 100 applied to the reception controller will be described based on.

오토사 운영체제(100)는 송신 제어기로부터 송신된 메시지를 수신 제어기가 반복 수신하는 경우, 반복 수신되는 메시지의 수신 주기를 산출하고, 수신 주기가 기설정된 정상 주기 범위를 벗어나는 경우 메시지 중복 에러를 검출하는 것을 특징으로 한다.The Autosar operating system 100 calculates a reception period of the repeatedly received message when a reception controller repeatedly receives a message transmitted from a transmission controller, and detects a message duplication error when the reception period is out of a predetermined normal period range. characterized by

오토사 운영체제(100)는 베이직 소프트웨어 컴포넌트(110), Rte 컴포넌트(120), 및 소프트웨어 컴포넌트(30)를 포함할 수 있다.The Autosar operating system 100 may include a basic software component 110 , an Rte component 120 , and a software component 30 .

베이직 소프트웨어 컴포넌트(110), Rte 컴포넌트(120), 및 소프트웨어 컴포넌트(130) 각각은 입출력 포트를 가지며, 서로 가상의 통신을 수행할 수 있다.Each of the basic software component 110, the Rte component 120, and the software component 130 has an input/output port and can perform virtual communication with each other.

베이직 소프트웨어 컴포넌트(110)는 최하층에 위치하며 OS(Operating system), 디바이스 드라이버, 커뮤니케이션 등의 소프트웨어 컴포넌트(130)에서 필요한 작업을 수행하기 위한 서비스를 제공한다.The basic software component 110 is located at the lowest layer and provides services for performing tasks required by the software component 130, such as an operating system (OS), device driver, and communication.

베이직 소프트웨어 컴포넌트(110)는 송신 제어기에 적용될 경우, 메시지의 송신 전에 중요 데이터의 유실에 대비하여 송신 메시지 별 반복 횟수 및 전송 주기를 설정할 수 있다. 베이직 소프트웨어 컴포넌트(110)는, 메시지 송신 이벤트 발생 시 정해진 반복 횟수 및 전송 주기에 맞춰 메시지를 전송할 수 있다.When applied to the transmission controller, the basic software component 110 may set the number of repetitions and transmission period for each transmission message in preparation for loss of important data before transmission of the message. The basic software component 110 may transmit a message according to a predetermined repetition number and transmission period when a message transmission event occurs.

베이직 소프트웨어 컴포넌트(110)는 수신 제어기에 적용될 경우, 송신 제어기로부터 메시지 수신시, IPDU 호출 기능을 이용하여 메시지 수신 시점의 틱(Tick)값에 타이머의 틱당초(SecPerTick)값을 곱하여 버퍼에 저장할 수 있다. 여기서, 초기화 등으로 인해 틱값이 음수인 경우, 틱값 보상을 위한 보상 로직이 수행될 수 있다. 보상 로직은 두 개의 틱 사이의 구간에서 카운터(Counter)가 만료(틱 최대값을 초과)되었을 때, 카운터가 초기화됨에 따른 틱 변화량을 계산하는 로직일 수 있다.When applied to the receiving controller, the basic software component 110 multiplies the tick value at the time of receiving the message by the value of the timer at the beginning of the tick (SecPerTick) by using the IPDU call function when receiving a message from the transmitting controller, and stores the result in a buffer. there is. Here, when the tick value is a negative number due to initialization or the like, compensation logic for compensating the tick value may be performed. The compensation logic may be logic that calculates a tick change amount according to the initialization of the counter when the counter expires (exceeds the maximum tick value) in the interval between two ticks.

Rte 컴포넌트(120)는, 베이직 소프트웨어 컴포넌트(110)와 소프트웨어 컴포넌트(130) 사이에 위치하며, 이 사이의 데이터 교환을 위한 인터페이스를 제공한다. Rte 컴포넌트(120)는 소프트웨어 컴포넌트(130)가 하드웨어에 종속되지 않는 독립성을 제공하기 위한 것으로 컴포넌트 모듈간의 통신 연결을 수행한다.The Rte component 120 is located between the basic software component 110 and the software component 130, and provides an interface for data exchange between them. The Rte component 120 provides the software component 130 with independence not dependent on hardware and performs a communication connection between component modules.

소프트웨어 컴포넌트(130)는 가장 상위에 위치하며 엔진, 자동 변속기, 브레이크제어 등의 기능을 수행하고, VFB(Virtual Functional Bus)라는 가상 네트워크에 배치되어?수신 제어기의 ECU(Electronic Controller Unit)와 연동한다.?The software component 130 is located at the top and performs functions such as engine, automatic transmission, and brake control, and is arranged in a virtual network called VFB (Virtual Functional Bus) to interwork with the ECU (Electronic Controller Unit) of the receiving controller. .?

오토사 운영체제(100)는 Rte 컴포넌트(120)와 통신 연결되는 직병렬 변환기(140), E2E 트랜스포머(150), E2E 라이브러리(160), 및 CRC 라이브러리(170)를 더 포함할 수 있다.The Autosar operating system 100 may further include a serial-to-parallel converter 140 communicatively connected to the Rte component 120, an E2E transformer 150, an E2E library 160, and a CRC library 170.

직병렬 변환기(140)는 일 종의 디시리얼라이저(Deserializer)로서, 수신 메시지에 포함된 데이터의 직병렬 변환을 수행할 수 있다.The serial-to-parallel converter 140 is a kind of deserializer and can perform serial-to-parallel conversion of data included in a received message.

E2E 트랜스포머(150)는 메시지 중복 에러 검출 기능을 제공할 수 있다. 일 실시예에 있어서, E2E 트랜스포머(150)는 수신 메시지에 대한 중복 에러 검출 기능을 제공할 수 있다. E2E 트랜스포머(150)는 수신 메시지의 AC(AliveCount)값을 추출할 수 있다. 여기서, AC값은 결함 유형 중 데이터 손실, 중복 등 연속성에 대한 결함을 검출하기 위한 것으로서, 송신 제어기에서 메시지 송신시에 카운트가 증가하여 메시지에 업데이트될 수 있다.The E2E transformer 150 may provide a message duplication error detection function. In one embodiment, the E2E transformer 150 may provide a redundancy error detection function for a received message. The E2E transformer 150 may extract the AC (AliveCount) value of the received message. Here, the AC value is for detecting a continuity defect such as data loss or duplication among defect types, and may be updated in the message by increasing the count when the transmission controller transmits the message.

E2E 트랜스포머(150)는 AC값이 중복 추출되는 경우, 기설정된 반복 허용 범위 내의 횟수만큼 메시지가 수신되었는지 판단한다. E2E 트랜스포머(150)는 반복 허용 범위 내에 수신된 메시지라고 판단되면, 현재 틱값과 이전 틱값을 활용하여 수신 주기를 산출할 수 있다. 여기서, 반복 허용 범위는 사용자에 필요에 따라 적절히 설정될 수 있다. E2E 트랜스포머(150)는 산출된 수신 주기가 기설정된 정상 주기 범위를 벗어나게 될 경우, 메시지 중복 에러로 판단한다. 여기서, 정상 주기 범위는 사용자의 필요 또는 실험 결과를 통해 적절히 설정될 수 있다.When the AC value is redundantly extracted, the E2E transformer 150 determines whether the message has been received as many times as the number of repetitions within a predetermined range. If the E2E transformer 150 determines that the message has been received within the repetition allowable range, it can calculate the reception period using the current tick value and the previous tick value. Here, the allowable repetition range may be appropriately set according to the needs of the user. The E2E transformer 150 determines that a message duplication error occurs when the calculated reception period is out of a preset normal period range. Here, the normal cycle range may be appropriately set through user needs or experimental results.

E2E 라이브러리(160)는 E2E 트랜스포머 관련 프로파일을 저장한다. E2E 라이브러리(160)에는 수신 메시지의 AC값이 저장될 수 있다.The E2E library 160 stores profiles related to E2E transformers. An AC value of a received message may be stored in the E2E library 160 .

CRC 라이브러리(170)는 Cyclic Redundancy Check 관련 프로파일을 저장한다. CRC 라이브러리(170)에는 수신 메시지의 CRC값이 저장될 수 있다.The CRC library 170 stores profiles related to Cyclic Redundancy Check. The CRC library 170 may store the CRC value of the received message.

도 2는 본 발명의 바람직한 실시예에 따른 오토사 운영체제의 메시지 중복 에러 검출 방법의 순서도이다.2 is a flowchart of a method for detecting a message duplication error in the Autosar operating system according to a preferred embodiment of the present invention.

도 1 및 도 2를 참고하면, 본 발명의 바람직한 실시예에 따른 오토사 운영체제의 메시지 중복 에러 검출 방법은 메시지 수신 단계(S210), AC값 추출 단계(S220), 중복 판단 단계(S230), 허용범위 판단 단계(S240), 수신 주기 산출 단계(S250), 정상 주기 범위 판단 단계(S260), 에러 발생 단계(S270), 및 정상 수신 단계(S280)를 포함할 수 있다.Referring to FIGS. 1 and 2 , a method for detecting a message duplication error in the Autosar operating system according to a preferred embodiment of the present invention includes a message reception step (S210), an AC value extraction step (S220), a duplicate determination step (S230), permission It may include a range determination step (S240), a reception period calculation step (S250), a normal cycle range determination step (S260), an error generation step (S270), and a normal reception step (S280).

메시지 수신 단계(S210)에서, E2E 트랜스포머(150)는 송신 제어기에서 송신한 메시지를 수신한다. 여기서, 메시지는 베이직 소프트웨어 컴포넌트(110)로부터 전달될 수 있다.In the message reception step (S210), the E2E transformer 150 receives the message transmitted from the transmission controller. Here, the message may be delivered from the basic software component 110 .

AC값 추출 단계(S220)에서, E2E 트랜스포머(150)는 메시지로부터 AC값을 추출한다.In the AC value extraction step (S220), the E2E transformer 150 extracts the AC value from the message.

AC값 중복 판단 단계(S230)에서, E2E 트랜스포머(150)는 현재 AC값과 이전 AC값을 비교하여 중복 여부를 판단한다.In the AC value overlap determination step (S230), the E2E transformer 150 compares the current AC value with the previous AC value to determine whether or not the AC value overlaps.

허용범위 판단 단계(S240)에서, E2E 트랜스포머(150)는 AC값이 중복인 경우, 메시지의 수신 횟수가 기설정된 반복 허용 범위 내에 포함되는지 판단한다.In the allowable range determination step (S240), when the AC values are overlapping, the E2E transformer 150 determines whether the number of times the message is received is within a predetermined repeat allowable range.

수신 주기 산출 단계(S250)에서, E2E 트랜스포머(150)는 반복 허용범위 내의 수신횟수만큼 메시지가 수신된 경우, 현재 버퍼와 이전 버퍼 사이의 차이를 기초로 메시지의 수신 주기를 산출한다. 버퍼에는 메시지 수신 시점의 틱값에 타이머의 틱당초값이 곱해진 값이 저장될 수 있다.In the reception cycle calculation step (S250), the E2E transformer 150 calculates the message reception cycle based on the difference between the current buffer and the previous buffer when the message is received as many times as the number of receptions within the repetition allowable range. A value obtained by multiplying a tick value at the time of receiving a message by a value per tick of the timer may be stored in the buffer.

정상 주기 범위 판단 단계(S260)에서, E2E 트랜스포머(150)는 산출된 수신 주기가 기설정된 정상 주기 범위 내에 위치하는지 판단한다.In the normal period range determination step (S260), the E2E transformer 150 determines whether the calculated reception period is within a preset normal period range.

에러 발생 단계(S270)에서, E2E 트랜스포머(150)는 반복 허용범위를 벗어난 수신 횟수만큼 메시지가 수신되거나, 또는 산출된 수신 주기가 정상 주기 범위를 벗어나는 경우, 통신 결함으로 인한 메시지 중복 에러가 발생한 것으로 판단한다.In the error generation step (S270), the E2E transformer 150 determines that a message duplication error due to a communication defect has occurred when messages are received as many times as the number of receptions outside the repetition allowable range or when the calculated reception period is out of the normal period range. judge

한편, 정상 수신 단계(S280)에서, E2E 트랜스포머(150)는 AC값이 중복되지 않은 경우 또는 산출된 수신 주기가 정상 주기 범위 내에 위치하는 경우, 메시지의 중복 에러 없이 정상적으로 메시지를 반복 수신한 것으로 판단한다.On the other hand, in the normal reception step (S280), the E2E transformer 150 determines that the message is repeatedly received normally without a duplication error when the AC value does not overlap or when the calculated reception period is located within the normal period range. do.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위 내에서 다양한 수정, 변경 및 치환이 가능할 것이다. 따라서, 본 발명에 개시된 실시예 및 첨부된 도면들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예 및 첨부된 도면에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다.The above description is merely an example of the technical idea of the present invention, and those skilled in the art can make various modifications, changes, and substitutions without departing from the essential characteristics of the present invention. will be. Therefore, the embodiments disclosed in the present invention and the accompanying drawings are not intended to limit the technical idea of the present invention, but to explain, and the scope of the technical idea of the present invention is not limited by these embodiments and the accompanying drawings. .

본 발명에 따른 단계들 및/또는 동작들은 기술분야의 통상의 기술자에 의해 이해될 수 있는 것과 같이, 다른 순서로, 또는 병렬적으로, 또는 다른 에포크(epoch) 등을 위해 다른 실시 예들에서 동시에 일어날 수 있다.Steps and/or actions in accordance with the present invention may occur concurrently in different embodiments, in different orders, or in parallel, or for different epochs, etc., as would be understood by one skilled in the art. can

실시 예에 따라서는, 단계들 및/또는 동작들의 일부 또는 전부는 하나 이상의 비-일시적 컴퓨터-판독가능 매체에 저장된 명령, 프로그램, 상호작용 데이터 구조(interactive data structure), 클라이언트 및/또는 서버를 구동하는 하나 이상의 프로세서들을 사용하여 적어도 일부가 구현되거나 또는 수행될 수 있다. 하나 이상의 비-일시적 컴퓨터-판독가능 매체는 예시적으로 소프트웨어, 펌웨어, 하드웨어, 및/또는 그것들의 어떠한 조합일 수 있다. 또한, 본 명세서에서 논의된 "모듈"의 기능은 소프트웨어, 펌웨어, 하드웨어, 및/또는 그것들의 어떠한 조합으로 구현될 수 있다.In some embodiments, some or all of the steps and/or actions may include instructions, programs, interactive data structures, clients and/or servers stored on one or more non-transitory computer-readable media. At least some of them may be implemented or performed using one or more processors that do. The one or more non-transitory computer-readable media may illustratively be software, firmware, hardware, and/or any combination thereof. Additionally, the functions of a “module” discussed herein may be implemented in software, firmware, hardware, and/or any combination thereof.

100: 오토사 운영체제
110: 베이직 소프트웨어 컴포넌트
120: Rte 컴포넌트
130: 소프트웨어 컴포넌트
140: 직병렬 변환기
150: E2E 트랜스포머
160: E2E 라이브러리
170: CRC 라이브러리
100: Autosar operating system
110: Basic software component
120: Rte component
130: software component
140: deserializer
150: E2E Transformer
160: E2E library
170: CRC library

Claims (11)

메시지 수신시, 메시지 수신 시점을 저장하는 베이직 소프트웨어 컴포넌트; 및
상기 메시지가 반복 수신되는 경우, 상기 메시지 수신 시점을 이용하여 상기 메시지의 수신 주기를 산출하고, 산출된 수신 주기와 기설정된 정상 주기 범위를 이용하여 메시지 중복 에러 여부를 판단하는 E2E 트랜스포머;
를 포함하고,
상기 E2E 트랜스포머는,
현재 수신된 수신 메시지로부터 AC값을 추출하고, 추출된 AC값의 중복 여부를 판단하는 것을 특징으로 하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제.
a basic software component that stores a message reception point when a message is received; and
When the message is repeatedly received, an E2E transformer that calculates a reception period of the message using the message reception time and determines whether a message duplication error occurs using the calculated reception period and a preset normal period range;
including,
The E2E transformer,
An Autosar operating system having a message duplication error detection function, characterized in that for extracting an AC value from a currently received received message and determining whether or not the extracted AC value is duplicated.
제 1 항에 있어서,
상기 베이직 소프트웨어 컴포넌트는,
상기 메시지 수신시, IPDU 호출 기능을 수행하여 상기 메시지의 수신 시점의 틱값을 저장하는 것을 특징으로 하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제.
According to claim 1,
The basic software component,
Autosar operating system having a message duplication error detection function, characterized in that when receiving the message, performs an IPDU call function to store a tick value at the time of receiving the message.
제 2 항에 있어서,
상기 베이직 소프트웨어 컴포넌트는,
상기 틱값에 타이머의 틱당초(SecPerTick)값을 곱하여 버퍼에 저장하는 것을 특징으로 하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제.
According to claim 2,
The basic software component,
An Autosar operating system having a message duplication error detection function, characterized in that the tick value is multiplied by the timer's tick value (SecPerTick) and stored in a buffer.
삭제delete 제 3 항에 있어서,
상기 E2E 트랜스포머는,
상기 AC 값이 중복 추출되는 경우, 기설정된 반복 허용범위 내의 횟수만큼 메시지가 수신되었는지 판단하는 것을 특징으로 하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제.
According to claim 3,
The E2E transformer,
Autosar operating system having a message duplication error detection function, characterized in that if the AC value is duplicated, it is determined whether the message is received as many times as the number of repetitions within a predetermined repetition allowable range.
제 5 항에 있어서,
상기 E2E 트랜스포머는,
상기 반복 허용범위 내의 횟수만큼 메시지가 수신되는 경우, 현재 버퍼와 이전 버퍼 사이의 차이를 기초로 수신 주기를 산출하는 것을 특징으로 하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제.
According to claim 5,
The E2E transformer,
The Autosar operating system having a message duplication error detection function, characterized in that for calculating a reception period based on a difference between a current buffer and a previous buffer when a message is received as many times as the number of times within the repetition allowable range.
제 1 항에 있어서,
상기 E2E 트랜스포머는,
산출된 수신 주기가 기설정된 정상 주기 범위를 벗어나는 경우, 통신 결함으로 인한 메시지 중복 에러로 판단하는 것을 특징으로 하는 메시지 중복 에러 검출 기능을 구비한 오토사 운영체제.
According to claim 1,
The E2E transformer,
Autosar operating system having a message duplication error detection function, characterized in that when the calculated reception period is out of a predetermined normal period range, it is determined as a message duplication error due to a communication defect.
메시지를 수신하는 메시지 수신 단계;
상기 메시지가 반복 수신되는 경우, 상기 메시지의 수신 시점을 이용하여 수신 주기를 산출하는 수신 주기 산출 단계; 및
산출된 수신 주기와 기설정된 정상 주기 범위를 이용하여 메시지 중복 에러 여부를 판단하는 정상 주기 범위 판단 단계;
를 포함하고,
상기 메시지 수신 단계 이후, 상기 메시지의 AC값을 추출하는 AC값 추출 단계; 및
추출된 현재 AC값과 이전 AC값을 비교하여 중복 여부를 판단하는 AC값 중복 판단 단계;
를 더 포함하는 것을 특징으로 하는 오토사 운영체제의 메시지 중복 에러 검출 방법.
a message receiving step of receiving a message;
a reception period calculating step of calculating a reception period using a reception time of the message when the message is repeatedly received; and
a normal period range determination step of determining whether or not there is a message duplication error using the calculated reception period and a preset normal period range;
including,
After the message receiving step, an AC value extraction step of extracting an AC value of the message; and
An AC value duplication determination step of comparing the extracted current AC value with a previous AC value to determine whether the AC value is duplicated;
A method for detecting a message duplication error in an Autosar operating system, further comprising:
삭제delete 제 8 항에 있어서,
현재 AC값이 중복인 경우, 상기 메시지의 수신 횟수가 기설정된 반복 허용범위 내에 포함되는지 판단하는 허용범위 판단 단계를 더 포함하고,
상기 수신 주기 산출 단계는,
상기 반복 허용범위 내의 수신 횟수만큼 메시지가 수신되는 경우, 상기 수신 주기를 산출하는 것을 특징으로 하는 오토사 운영체제의 메시지 중복 에러 검출 방법.
According to claim 8,
Further comprising a tolerance range determination step of determining whether the number of receptions of the message is within a predetermined repetition tolerance range when the current AC value is overlapping;
In the step of calculating the reception period,
and calculating the reception period when messages are received as many times as the number of receptions within the repetition allowable range.
제 10 항에 있어서,
상기 현재 AC값이 중복이 아니거나, 또는 산출된 수신 주기가 상기 정상 주기 범위에 포함되는 경우, 상기 메시지의 중복 에러가 아닌 것으로 판단하는 정상 수신 단계; 및
상기 반복 허용범위를 벗어난 수신 횟수만큼 메시지가 수신되거나, 또는 산출된 수신 주기가 상기 정상 주기 범위를 벗어나는 경우, 통신 결함으로 인한 메시지 중복 에러를 검출하는 에러 발생 단계;
를 더 포함하는 것을 특징으로 하는 오토사 운영체제의 메시지 중복 에러 검출 방법.
According to claim 10,
a normal reception step of determining that the message does not have a duplication error when the current AC value does not overlap or the calculated reception period is included in the normal period range; and
an error generating step of detecting a message duplication error due to a communication defect when messages are received as many times as the number of receptions out of the repetition allowable range or when the calculated reception period is out of the normal period range;
A method for detecting a message duplication error in an Autosar operating system, further comprising:
KR1020200169772A 2020-12-07 2020-12-07 Autosar operating system with message repetition error detection function and message repetition error detection method thereof KR102543173B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020200169772A KR102543173B1 (en) 2020-12-07 2020-12-07 Autosar operating system with message repetition error detection function and message repetition error detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200169772A KR102543173B1 (en) 2020-12-07 2020-12-07 Autosar operating system with message repetition error detection function and message repetition error detection method thereof

Publications (2)

Publication Number Publication Date
KR20220080550A KR20220080550A (en) 2022-06-14
KR102543173B1 true KR102543173B1 (en) 2023-06-12

Family

ID=81980265

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200169772A KR102543173B1 (en) 2020-12-07 2020-12-07 Autosar operating system with message repetition error detection function and message repetition error detection method thereof

Country Status (1)

Country Link
KR (1) KR102543173B1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101544887B1 (en) 2014-07-22 2015-08-17 현대오트론 주식회사 Apparatus And Method for diagnosing CAN communication error
US10553112B2 (en) * 2015-08-19 2020-02-04 Qualcomm Incorporated Safety event message transmission timing in dedicated short-range communication (DSRC)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Ramon Caceres 외 1 명, 'PFast and Scalable Handoffs for Wireless Internetworks,' MOBICOM 96, (1996.12.31)*

Also Published As

Publication number Publication date
KR20220080550A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN107306185B (en) Method and device for avoiding manipulation of data transmission
CN104503350B (en) The implementation method and controller of dual-redundant CAN bus
JP4195272B2 (en) Method for recognizing error in data transmission inside CAN-controller, CAN-controller, program, recording medium, and control device
CN105517850B (en) Method for monitoring the component in motor vehicle
US9641383B2 (en) Method for error diagnosis of can communication
WO2006080433A1 (en) Information processing apparatus and information processing method
CN105183687A (en) Time-sharing serial communication method and system
KR102543173B1 (en) Autosar operating system with message repetition error detection function and message repetition error detection method thereof
CN115085993A (en) Data verification method and device and domain controller
US20190232969A1 (en) Data communication method for a vehicle
CN107257265B (en) Real-time transmission data stream forward error correction, system, device and storage medium
CN109274564B (en) CAN bus network control method and CAN bus network
CN109560983B (en) Data communication method and device for vehicle network
CN111025968B (en) DSP (digital Signal processor) number receiving fault detection processing method and device, computer equipment and medium
CN113612574A (en) Data transmission method and device
US20110213878A1 (en) Method and system for monitoring a security-related system
KR20110061664A (en) Can message timeout error checking method
KR20170094699A (en) Digital Data Communication Module and its Data Simulator
JP6183281B2 (en) Communication system and electronic control device
KR101623305B1 (en) Apparatus, Method for check in data and System using the same
JP2001297016A (en) Instruction execution system
CN116781608B (en) Data transmission system, method, electronic device and readable storage medium
CN112560766A (en) Signal processing method and device
US20220026859A1 (en) Multi-unit cooperative distributed electrical control system and electrical system
Kataoka et al. Test automation support tool for automobile software

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant