KR101330143B1 - Method of testing can gateway - Google Patents

Method of testing can gateway Download PDF

Info

Publication number
KR101330143B1
KR101330143B1 KR1020130044513A KR20130044513A KR101330143B1 KR 101330143 B1 KR101330143 B1 KR 101330143B1 KR 1020130044513 A KR1020130044513 A KR 1020130044513A KR 20130044513 A KR20130044513 A KR 20130044513A KR 101330143 B1 KR101330143 B1 KR 101330143B1
Authority
KR
South Korea
Prior art keywords
gateway
frame
network
test
message
Prior art date
Application number
KR1020130044513A
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 KR1020130044513A priority Critical patent/KR101330143B1/en
Application granted granted Critical
Publication of KR101330143B1 publication Critical patent/KR101330143B1/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/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • 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/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Abstract

The present invention relates to a system and a method for automatically testing a CAN gateway based on a CAN gateway specification. The system of the present invention on the system for automatically testing the CAN gateway relaying an original CAN gateway to a target CAN gateway according to the CAN specification comprises a frame generator for automatically generating the content of a CAN frame tested according to the CAN gateway specification; a frame transmitter for transmitting the content of the generated CAN frame to the original CAN network; a CAN frame collector for recording logs by collecting the all CAN frames transmitted via the CAN network; and a CAN log analyzer for collecting statistics by arranging test results according to test verification categories and by analyzing the recorded logs. The CAN gateway automatic test method and the CAN gateway automatic test system according to the present invention can reduce manpower costs and time costs for executing the function test of the CAN gateway by automatically executing the test of the CAN gateway and for reducing the manpower costs and the time costs for arranging and verifying the function test result of the CAN gateway. [Reference numerals] (102) First CAN network;(104) Second CAN network;(110) CAN frame generator;(120) CAN frame transmitter;(130) CAN frame collector;(140) CAN log analyzer;(20) CAN gateway;(22) CAN gateway item;(AA,BB) CAN frame;(CC) CAN frame log

Description

CAN 게이트웨이 자동 테스트 방법{ METHOD OF TESTING CAN GATEWAY }CAN Gateway Automated Test Method {METHOD OF TESTING CAN GATEWAY}

본 발명은 자동차 등에 사용되는 CAN 네트워크를 중개하는 CAN 게이트웨이의 테스트 방법에 관한 것으로, 더욱 상세하게는 CAN 게이트웨이 명세를 기반으로 CAN 게이트웨이를 자동으로 테스트하기 위한 방법에 관한 것이다.
The present invention relates to a test method of a CAN gateway for mediating a CAN network used in automobiles, and more particularly, to a method for automatically testing a CAN gateway based on a CAN gateway specification.

최근의 자동차에는 많은 전자 장비들이 탑재 된다. 자동차의 각 전자 장비들은 서로 연동되어 작동하기 위해서 CAN(Controller Area Network)이라는 물리적 통신 기법을 이용하여 서로의 정보를 교환한다. CAN 통신(Controller Area Network)은 차량 내에서 호스트 컴퓨터 없이 마이크로 콘트롤러나 장치들이 서로 통신하기 위해 설계된 표준 통신 규격으로서, 2가닥 꼬임선(Twist Pair Wire)으로 연결되어 반이중 통신방식을 이용하여 주소가 아닌 ID에 의해 메시지를 전송하는 메시지 기반 프로토콜이며, 최근에는 차량 뿐만 아니라 산업용 자동화기기나 의료용 장비에서도 종종 사용되고 있다. Modern cars are equipped with many electronic devices. Each electronic device in a car exchanges information with each other using a physical communication technique called a controller area network (CAN) to operate in conjunction with each other. CAN communication (Controller Area Network) is a standard communication standard designed to allow microcontrollers or devices to communicate with each other without a host computer in a vehicle.It is connected using two-pair twisted wires and is not an address using half-duplex communication. It is a message-based protocol for transmitting messages by ID, and is now often used not only in vehicles but also in industrial automation and medical equipment.

CAN은 프레임 전송 대역폭이 높지 않기 때문에 하나의 CAN에 많은 전자 장비들이 연결되면 프레임을 제대로 전송할 수 없게 된다. 따라서 자동차에서는 하나의 CAN에 모든 전자장비들을 연결시키는 것이 아니라 전자장비들의 목적에 맞게 여러 개의 CAN으로 네트워크를 구성하여 프레임을 전송함으로써 단일 CAN의 요구 전송 대역폭을 낮추게 된다. 이와 같이 다수의 CAN으로 나누어 사용할 경우에는 서로 다른 CAN 네트워크에 연결되어 있는 전자 장비들은 다른 CAN 네트워크에 연결되어 있는 전자 장비의 프레임을 전송받을 수 없기 때문에 CAN 네트워크와 CAN 네트워크 사이에서 프레임을 전달하는 CAN 게이트웨이가 존재한다.CAN does not have high bandwidth for frame transmission, so if many electronic devices are connected to one CAN, it will not be able to transmit the frame properly. Therefore, in a car, rather than connecting all the electronic equipment to a single CAN, the network is composed of several CANs to transmit frames for the purpose of the electronic equipment, thereby lowering the required transmission bandwidth of a single CAN. In this case, when the CAN is divided into multiple CANs, electronic devices connected to different CAN networks cannot receive frames from electronic devices connected to different CAN networks, and thus CAN transmits frames between CAN networks and CAN networks. There is a gateway.

따라서 CAN 게이트웨이가 정상으로 작동하지 않는다면, 한 CAN에서 다른 CAN으로 프레임이 전달될 수 없기 때문에 자동차의 대부분의 기능이 제대로 동작하지 않게 되므로 CAN 게이트웨이의 기능이 정확하게 동작하는지를 검증하는 것이 매우 중요하다.Therefore, if the CAN gateway is not working properly, it is very important to verify that the CAN gateway is functioning correctly because most of the functions of the car will not work because frames cannot be transferred from one CAN to another.

그런데 종래에는 CAN 게이트웨이를 자동으로 시험하기 위한 기술이 미흡하여 CAN 게이트웨이의 기능을 테스트하기 위한 인력과 시간이 많이 소요되고, CAN 게이트웨이의 기능 테스트 결과를 검증 및 정리하기 위해서도 인력과 시간이 소요되는 문제점이 있었다.
However, in the related art, a technology for automatically testing a CAN gateway is insufficient, which requires a lot of manpower and time for testing the function of the CAN gateway, and a manpower and time for verifying and arranging the functional test results of the CAN gateway. There was this.

본 발명은 상기와 같은 종래의 문제점을 해소하기 위해 제안된 것으로, 본 발명의 목적은 CAN 게이트웨이를 CAN 게이트웨이 명세에 기반하여 주요기능들을 자동으로 검증할 수 있는 CAN 게이트웨이 자동 테스트 방법을 제공하는 것이다.
The present invention has been proposed to solve the above conventional problems, and an object of the present invention is to provide a CAN gateway automatic test method capable of automatically verifying the main functions based on the CAN gateway specification.

상기와 같은 목적을 달성하기 위하여 본 발명의 시스템은, 원본 CAN 네트워크와 대상 CAN 네트워크를 CAN 게이트웨이 명세에 따라 중개하는 CAN 게이트웨이를 자동으로 테스트하기 위한 시스템에 있어서, CAN 게이트웨이 명세에 따라 테스트할 CAN 프레임의 내용을 자동으로 생성하는 프레임 생성기; 생성된 CAN 프레임의 내용을 원본 CAN 네트워크로 전송하는 프레임 송신기; CAN 네트워크를 통해 전송되는 모든 CAN 프레임을 수집하여 로그를 기록하는 CAN 프레임 수집기; 및 기록된 로그를 분석하여 테스트 검증 항목에 따라 테스트 결과를 정리하여 통계처리하는 CAN 로그 분석기로 구성된 것을 특징으로 한다.In order to achieve the above object, the system of the present invention is a system for automatically testing a CAN gateway that mediates a source CAN network and a target CAN network according to a CAN gateway specification, and a CAN frame to be tested according to the CAN gateway specification. A frame generator to automatically generate the contents of the; A frame transmitter for transmitting the contents of the generated CAN frame to the original CAN network; A CAN frame collector for collecting and recording all CAN frames transmitted over the CAN network; And a CAN log analyzer that analyzes the recorded logs and organizes the test results according to test verification items and performs statistical processing.

상기 CAN 게이트웨이 명세는 원본 네트워크와, 전달명세, 대상 네트워크 정보를 포함하고, 상기 전달명세는 전달타입, 지연시간, 타임아웃 시간, 타임아웃 값, 값 변화 규칙 항목을 갖고 있으며, 상기 프레임 생성기는 테스트 스크립트 형식으로 CAN 프레임을 기술하는 것이다.The CAN gateway specification includes source network, delivery specification, and destination network information. The delivery specification has a delivery type, a delay time, a timeout time, a timeout value, a value change rule, and the frame generator is a test. Describes CAN frames in script form.

상기와 같은 목적을 달성하기 위하여 본 발명의 방법은 테스트 입력 CAN 프레임을 생성하는 단계; CAN 게이트웨이 테스트를 실행하면, CAN 게이트웨이로 테스트 프레임을 전송하는 단계; CAN 프레임을 수집하는 단계; 테스트를 종료하면 테스트 결과를 분석하여 검증 항목별로 판정하는 단계; 및 테스트 결과를 분석하여 통계를 산출하고, 보고서를 생성하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, the method of the present invention comprises the steps of: generating a test input CAN frame; Executing a CAN gateway test, sending a test frame to the CAN gateway; Collecting a CAN frame; Terminating the test and analyzing the test result to determine each verification item; And analyzing the test results to calculate statistics and generating a report.

검증 항목별로 판정하는 단계는 지연시간, 값 변화, 주기 시간, Low Speed CAN 전송 주기, 반복 전송, 타임아웃 항목 별로 검증하여 판정한다.The determination step for each verification item is determined by verifying the delay time, value change, cycle time, Low Speed CAN transmission cycle, repetitive transmission, and timeout items.

상기 지연시간을 검증하는 절차는 허용 지연시간을 산출하는 단계와, 메시지를 분석하는 단계와, 메시지 타입이 direct이면 프레임 단위로 지연시간을 측정하는 단계와, 메시지 타입이 indirect이면 CAN 시그널값이 바뀐 지점의 지연시간을 측정하는 단계와, 측정 지연시간을 허용 지연시간과 비교하는 단계와, 검증결과를 저장하는 단계로 구성된다.The procedure for verifying the delay time includes calculating an allowable delay time, analyzing a message, measuring a delay time in units of frames if the message type is direct, and changing a CAN signal value if the message type is indirect. Measuring the delay time of the point, comparing the measurement delay time with the allowable delay time, and storing the verification result.

상기 값 변화를 검증하는 절차는 예상 값을 산출하는 단계와, 메시지를 분석하는 단계와, 메시지 타입이 direct이면 프레임 단위로 값을 측정하는 단계와, 메시지 타입이 indirect이면 CAN 시그널 값이 바뀐 지점의 값을 측정하는 단계와, 측정 값을 예상 값과 비교하는 단계와, 검증결과를 저장하는 단계로 구성된다.The procedure for verifying the value change includes calculating an expected value, analyzing a message, measuring a value in units of frames if the message type is direct, and measuring a value of a CAN signal value changed if the message type is indirect. The method includes measuring a value, comparing the measured value with an expected value, and storing a verification result.

상기 주기시간을 검증하는 절차는 허용 주기시간을 산출하는 단계와, 메시지를 분석하는 단계와, 메시지 타입이 cyclic이면 주기시간을 측정하는 단계와, 측정 주기시간과 허용 주기시간을 비교하는 단계와, 검증결과를 저장하는 단계로 구성된다. The procedure for verifying the periodic time includes calculating an allowable cycle time, analyzing a message, measuring a cycle time if the message type is cyclic, comparing the measured cycle time with the allowable cycle time, And storing the verification result.

상기 Low Speed CAN 전송 주기를 검증하는 절차는 허용 주기시간을 산출하는 단계와, 메시지를 분석하는 단계와, 메시지 타입이 cyclic이고 인터페이스 타입이 Low Speed CAN이면 주기시간을 측정하는 단계와, 측정 주기시간과 허용 주기시간을 비교하는 단계와, 검증결과를 저장하는 단계로 구성된다.The procedure for verifying the low speed CAN transmission cycle may include calculating an allowable cycle time, analyzing a message, measuring the cycle time if the message type is cyclic and the interface type is low speed CAN, and measuring the cycle time. And comparing the allowable cycle time, and storing the verification result.

상기 반복 전송을 검증하는 절차는 반복 전송 허용 시간을 산출하는 단계와, 메시지를 분석하는 단계와, 메시지 타입이 on change이거나 cyclic on change일 경우 반복 전송 완료 시간을 측정하는 단계와, 측정 전송 완료 시간과 전송 허용 시간을 비교하는 단계와, 검증결과를 저장하는 단계로 구성된다.The procedure for verifying repetitive transmission includes calculating a repetitive transmission allowance time, analyzing a message, measuring a repetitive transmission completion time when the message type is on change or cyclic on change, and measuring transmission completion time Comparing with the transmission allowable time, and storing the verification result.

상기 타임아웃을 검증하는 절차는 타임아웃 구간을 분석하는 단계와, 메시지를 분석하는 단계와, 메시지 전달 타입이 indirect이고, 대상 네트워크 전송 타입이 cyclic이거나 cyclic on change일 경우 전송된 값을 측정하는 단계와, 전송된 값을 확인하여 타임 아웃 구간에서 타임아웃 값이 나왔거나 타임 아웃이 아닌 구간에서 타임아웃 값이 안 나왔는지를 검증하는 단계와, 검증결과를 저장하는 단계로 구성된다.
The procedure for verifying the timeout includes analyzing a timeout period, analyzing a message, and measuring a transmitted value when the message delivery type is indirect and the target network transmission type is cyclic or cyclic on change. And verifying the transmitted value and verifying that the timeout value is output in the timeout period or the timeout value is not output in the non-timeout period, and storing the verification result.

본 발명에 따른 CAN 게이트웨이 자동 테스트 방법은 CAN 게이트웨이 명세에 기반하여 CAN 게이트웨이의 테스트를 자동으로 수행함으로써 CAN 게이트웨이의 기능 테스트를 수행하기 위한 인력과 시간 비용을 감소시킬 수 있고, 테스트 결과 보고서를 자동으로 생성하여 CAN 게이트웨이의 기능 테스트 결과를 검증 및 정리하기 위한 인력과 시간 비용도 절감할 수 있는 효과가 있다.
The CAN gateway automatic test method according to the present invention can reduce the manpower and time cost for performing the functional test of the CAN gateway by automatically performing the test of the CAN gateway based on the CAN gateway specification, and automatically report the test result report It also reduces the manpower and time costs for creating and validating and arranging functional test results for CAN gateways.

도 1은 본 발명에 따른 CAN 게이트웨이 자동 테스트 시스템을 도시한 구성 블럭도,
도 2는 본 발명에 적용되는 CAN 2.0A 프레임의 구조를 도시한 도면,
도 3은 본 발명에 적용되는 CAN 2.0B 프레임의 구조를 도시한 도면,
도 4는 본 발명에 따라 CAN 게이트웨이를 자동으로 테스트하기 위한 절차를 도시한 순서도,
도 5는 본 발명에 따라 CAN 게이트웨이의 지연시간 특성을 검증하기 위한 절차를 도시한 순서도,
도 6은 본 발명에 따라 CAN 게이트웨이의 주기시간 특성을 검증하기 위한 절차를 도시한 순서도,
도 7은 본 발명에 따라 CAN 게이트웨이의 값 변화 특성을 검증하기 위한 절차를 도시한 순서도,
도 8은 본 발명에 따라 CAN 게이트웨이의 Low Speed CAN 전송주기 특성을 검증하기 위한 절차를 도시한 순서도,
도 9는 본 발명에 따라 CAN 게이트웨이의 반복전송 특성을 검증하기 위한 절차를 도시한 순서도,
도 10은 본 발명에 따라 CAN 게이트웨이의 타임아웃 특성을 검증하기 위한 절차를 도시한 순서도이다.
1 is a block diagram illustrating a CAN gateway automatic test system according to the present invention;
2 is a view showing the structure of a CAN 2.0A frame applied to the present invention,
3 is a view showing the structure of a CAN 2.0B frame applied to the present invention,
4 is a flow chart illustrating a procedure for automatically testing a CAN gateway in accordance with the present invention;
5 is a flowchart illustrating a procedure for verifying a delay time characteristic of a CAN gateway according to the present invention;
6 is a flowchart illustrating a procedure for verifying a cycle time characteristic of a CAN gateway according to the present invention;
7 is a flowchart illustrating a procedure for verifying a value change characteristic of a CAN gateway according to the present invention;
8 is a flowchart illustrating a procedure for verifying a low speed CAN transmission cycle characteristic of a CAN gateway according to the present invention;
9 is a flowchart illustrating a procedure for verifying a repetitive transmission characteristic of a CAN gateway according to the present invention;
10 is a flowchart illustrating a procedure for verifying a timeout characteristic of a CAN gateway according to the present invention.

본 발명과 본 발명의 실시에 의해 달성되는 기술적 과제는 다음에서 설명하는 본 발명의 바람직한 실시예들에 의하여 보다 명확해질 것이다. 다음의 실시예들은 단지 본 발명을 설명하기 위하여 예시된 것에 불과하며, 본 발명의 범위를 제한하기 위한 것은 아니다. BRIEF DESCRIPTION OF THE DRAWINGS The above and other objects, features, and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. The following examples are merely illustrative of the present invention and are not intended to limit the scope of the present invention.

도 1은 본 발명에 따른 CAN 게이트웨이 자동 테스트 시스템을 도시한 구성 블럭도이고, 도 2는 본 발명에 적용되는 CAN 2.0A 프레임의 구조를 도시한 도면이며, 도 3은 본 발명에 적용되는 CAN 2.0B 프레임의 구조를 도시한 도면이다.1 is a block diagram illustrating a CAN gateway automatic test system according to the present invention, Figure 2 is a view showing the structure of a CAN 2.0A frame applied to the present invention, Figure 3 is applied to the present invention CAN 2.0 It is a figure which shows the structure of B frame.

본 발명에 따라 제1 CAN 네트워크(102)와 제2 CAN 네트워크(104)를 CAN게이트웨이 명세(22)에 따라 중개하는 CAN 게이트웨이(20)를 자동으로 테스트하는 시스템은 도 1에 도시된 바와 같이, CAN 게이트웨이 명세에 따라 테스트할 CAN 프레임의 내용을 자동으로 생성하는 프레임 생성기(110)와, 생성된 CAN 프레임의 내용을 제1 CAN 네트워크(102)로 전송하는 프레임 송신기(120)와, CAN 네트워크를 통해 전송되는 모든 CAN 프레임을 수집하여 로그를 기록하는 CAN 프레임 수집기(130)와, 기록된 로그를 분석하여 CAN 게이트웨이 명세와 테스트 검증 항목에 따라 테스트 결과를 정리하여 통계처리하는 CAN 로그 분석기(140)로 구성된다.A system for automatically testing a CAN gateway 20 that mediates a first CAN network 102 and a second CAN network 104 in accordance with a CAN gateway specification 22 according to the present invention is shown in FIG. A frame generator 110 for automatically generating the contents of a CAN frame to be tested according to the CAN gateway specification, a frame transmitter 120 for transmitting the contents of the generated CAN frames to the first CAN network 102, and a CAN network. The CAN frame collector 130 collects and logs all CAN frames transmitted through the CAN frame analyzer, and the CAN log analyzer 140 analyzes the recorded logs and organizes the test results according to the CAN gateway specification and test verification. It consists of.

도 1을 참조하면, 프레임 생성기(110)는 다음 표 1과 같이 테스트 스크립트 형식으로 CAN 프레임을 기술한다.Referring to FIG. 1, the frame generator 110 describes a CAN frame in a test script format as shown in Table 1 below.

CAN_signal_A.write(1);
CAN_signal_B.write(2);
Wait(100);

CAN_signal_A.write(0);
CAN_signal_B.write(0);
Wait(100);
CAN_signal_A.write (1);
CAN_signal_B.write (2);
Wait 100;

CAN_signal_A.write (0);
CAN_signal_B.write (0);
Wait 100;

CAN 프로토콜에 따르면, CAN 메시지 프레임은 데이터 프레임과, 리모트 프레임, 에러 프레임, 오버로드 프레임 4종류가 있는데, 표준 데이터 프레임(2.0A)은 도 2에 도시된 바와 같이 11비트의 ID를 갖고, 확장 데이터 프레임(2.0B)은 도 3에 도시된 바와 같이 29비트의 ID를 갖는다. 도 2 및 도 3에서 SOF(Start of Frame)는 프레임의 시작을 의미하고, RTR(Remote Transmissoin Request)은 데이터 프레임과 리모트 프레임을 구분하며, DLC(Data Length Code)는 최대 8바이트의 크기를 갖는 데이터 바이트의 수를 나타낸다.According to the CAN protocol, there are four types of CAN message frames: data frame, remote frame, error frame, and overload frame. The standard data frame 2.0A has an 11-bit ID as shown in FIG. The data frame 2.0B has an ID of 29 bits as shown in FIG. 2 and 3, a start of frame (SOF) means a start of a frame, a remote transmissoin request (RTR) distinguishes a data frame from a remote frame, and a data length code (DLC) has a maximum size of 8 bytes. Represents the number of data bytes.

그리고 CAN 게이트웨이 명세에 기술된 각각의 CAN 메시지 항목을 테스트하기 위해서는 CAN 메시지 송신기(120)에서 테스트하려는 CAN 메시지를 제외하고는 다른 메시지는 전송되지 않게 한다. 이는 많은 프레임이 네트워크상에 존재하게 되면 CAN 게이트웨이(20)의 동작을 예측할 수 없기 때문이다. 또한 CAN 게이트웨이(20)가 수신한 프레임을 잘 전달하는지 확인하기 위해서는 CAN 시그널의 데이터 값과 다른 데이터 값을 선택하여 CAN 프레임을 생성하고, 생성되는 송신 프레임의 개수는 사용자가 정의한다. 예컨대, 5회로 정의하면 각 CAN signal에 대해 5번의 바뀐 데이터 값에 대한 CAN 프레임을 전송한다.In order to test each CAN message item described in the CAN gateway specification, the CAN message transmitter 120 does not transmit other messages except for the CAN message to be tested. This is because the operation of the CAN gateway 20 cannot be predicted if many frames exist on the network. In addition, in order to check whether the CAN gateway 20 transfers the received frame well, a CAN frame is generated by selecting a data value different from the data value of the CAN signal, and the number of generated transmission frames is defined by the user. For example, defining five circuits transmits CAN frames for five changed data values for each CAN signal.

그리고 특정 CAN 메시지에 대해서는 일정시간 동안 메시지가 CAN 게이트웨이(20)로 전달되지 않았을 때, 게이트웨이(20)로부터 타임아웃 값이 전송되는지 확인하기 위해 필요한 시간동안 모든 메시지를 전송중단하고 전송을 재개하는 작업도 수행한다.For a particular CAN message, when the message has not been delivered to the CAN gateway 20 for a predetermined time, the operation of stopping all messages and resuming transmission for the time required to confirm that a timeout value is transmitted from the gateway 20. Also perform.

또한 CAN 게이트웨이(20)는 어떤 종류의 프레임을 어떤 CAN으로 전달해야 되는지에 대한 정보인 CAN 게이트웨이 명세(22)가 필요한데, 이러한 CAN 게이트웨이 명세(22)의 예는 다음 표 2와 같다.In addition, the CAN gateway 20 needs a CAN gateway specification 22, which is information on which kind of frame should be delivered to which CAN. An example of such a CAN gateway specification 22 is shown in Table 2 below.

Figure 112013035437112-pat00001
Figure 112013035437112-pat00001

상기 표 2는 CAN 게이트웨이 명세의 예시로서, 원본 CAN 네트워크와, 전달명세, 대상 CAN 네트워크 정보를 포함하고, 전달명세는 전달타입, 지연시간, 타임아웃 시간, 타임아웃 값, 값 변화 규칙 항목을 보여주고 있다. 게이트웨이 명세의 첫 번째 행을 살펴보면, 원본 네트워크에 기술된 “네트워크A” 네트워크로부터 메시지 ID 0x0288의 CAN 프레임을 CAN 게이트웨이가 받으면 대상 네트워크에 기술된 “네트워크B”의 메시지 ID 0x3671의 CAN 프레임으로 전달한다. 두 번째 행을 살펴보면 원본 CAN 네트워크에 기술된 “네트워크C” 네트워크로부터 메시지 ID 0x0441의 CAN 프레임을 받으면 메시지에 포함된 “Start Position” 1의 CAN 시그날을 대상 네트워크에 기술된 “네트워크A” 네트워크의 메시지 ID 0x3745의 CAN 프레임의 “Start Position” 0의 CAN 시그날로 전달한다.Table 2 is an example of a CAN gateway specification, which includes source CAN network, delivery specification, and destination CAN network information, and the delivery specification shows delivery type, delay time, timeout time, timeout value, and value change rule items. Giving. Looking at the first line of the gateway specification, when the CAN gateway receives a CAN frame of message ID 0x0288 from the "Network A" network described in the source network, it forwards it to the CAN frame of message ID 0x3671 in "Network B" described in the target network. . Looking at the second line, if a CAN frame with message ID 0x0441 is received from the “Network C” network described in the original CAN network, the CAN signal of “Start Position” 1 included in the message is sent to the “Network A” network described in the destination network. The CAN signal with ID 0x3745 is passed to the CAN signal with “Start Position” 0.

도 4는 본 발명에 따라 CAN 게이트웨이를 자동으로 테스트하기 위한 절차를 도시한 순서도이다4 is a flow chart illustrating a procedure for automatically testing a CAN gateway in accordance with the present invention.

본 발명에 따라 CAN 게이트웨이를 자동으로 테스트하기 위한 절차는 도 4에 도시된 바와 같이, 테스트 입력 CAN 프레임을 생성하는 단계(S1)와, CAN 게이트웨이(20) 테스트를 수행하는 단계(S2)와, CAN 게이트웨이(20)로 테스트 프레임을 전송하고, CAN 프레임을 수집하는 단계(S3,S4)와, 테스트를 종료하면 테스트 결과를 분석하여 검증 항목별로 판정하는 단계(S5,S6)와, 테스트 결과를 분석하여 통계를 산출하고 보고서를 생성하는 단계(S7)로 구성된다.As shown in FIG. 4, the procedure for automatically testing the CAN gateway according to the present invention includes generating a test input CAN frame (S1), performing a CAN gateway 20 test (S2), Sending a test frame to the CAN gateway 20, collecting the CAN frame (S3, S4), and when the test is terminated by analyzing the test result to determine for each verification item (S5, S6), and the test result Analyzing to generate statistics and generate a report (S7).

도 4를 참조하면, 게이트웨이 명세(22)에는 CAN 게이트웨이(20)가 전달해야 할 CAN 메시지들의 목록이 나와 있다. 따라서 테스트 입력 CAN 프레임 생성단계(S1)에서는 CAN 프레임 생성기(110)가 명세(22)로부터 CAN 게이트웨이(20)로 전송할 테스트 프레임을 생성한다. Referring to FIG. 4, the gateway specification 22 shows a list of CAN messages that the CAN gateway 20 should deliver. Accordingly, in the test input CAN frame generation step S1, the CAN frame generator 110 generates a test frame to be transmitted from the specification 22 to the CAN gateway 20.

CAN 게이트웨이의 테스트 수행을 시작하면, CAN 게이트웨이(20)로 테스트 프레임을 전송하는 단계(S2,S3)는 CAN 프레임 송신기(120)가 CAN 프레임 생성기(110)로부터 받은 테스트 프레임을 해당 네트워크(102)로 전송한다. 이 때 CAN 게이트웨이(20)는 테스트 프레임을 받게 되면 명세(22)에 나와 있는 대상 네트워크(104)로 CAN 프레임을 전달하게 된다.When starting to perform the test of the CAN gateway, the step (S2, S3) of transmitting the test frame to the CAN gateway 20 is the network frame 102 receives the test frame received by the CAN frame generator 120 from the CAN frame generator 110 To send. At this time, when the CAN gateway 20 receives the test frame, it transmits the CAN frame to the target network 104 shown in the specification 22.

CAN 프레임 수집 단계(S4)에서 CAN 프레임 수집은 게이트웨이 테스트가 시작됨과 동시에 수행된다. CAN 게이트웨이(20)로 테스트 프레임을 전송하면서 동시에 CAN 게이트웨이(20)와 연결된 모든 네트워크(102,104)의 CAN 프레임은 CAN 프레임 수집기(130)에 의해 수집하여 데이터베이스에 로그 파일로 기록된다. In the CAN frame acquisition step S4, CAN frame acquisition is performed at the same time as the gateway test is started. The CAN frames of all networks 102 and 104 connected to the CAN gateway 20 while transmitting test frames to the CAN gateway 20 are collected by the CAN frame collector 130 and recorded in a database in a log file.

테스트 결과 분석 단계(S5,S6)에서는 검증 항목 별 판정을 수행하는데, 테스트를 수행하면서 수집된 CAN 프레임 로그 정보는 CAN 로그 분석기(140)에 전달되어 분석된다. CAN 로그 정보에는 CAN 프레임이 전송된 네트워크와 시간, 프레임의 ID, 길이, 값이 모두 보관되어 있기 때문에 CAN 게이트웨이에 전송된 프레임의 정보, CAN 게이트웨이가 전달한 프레임의 정보를 모두 분석해 낼 수 있다. CAN 게이트웨이(20)의 기능이 정확하게 동작하는지 확인하기 위해서는 게이트웨이 명세(22)에 명시된 항목에 대해서 다음 표 3의 검증 항목들을 차례로 통과하는지 판단한다.The test result analysis step (S5, S6) performs the verification for each verification item, the CAN frame log information collected while performing the test is transmitted to the CAN log analyzer 140 is analyzed. Since the CAN log information stores the network, time, frame ID, length, and value of the CAN frame transmission, it can analyze the information of the frame transmitted to the CAN gateway and the information of the frame transmitted by the CAN gateway. In order to check whether the function of the CAN gateway 20 operates correctly, it is determined whether the items specified in the gateway specification 22 pass the verification items in Table 3 in order.

지연시간
값 변화
주기 시간
Low Speed CAN 전송 주기 검증
반복 전송
타임아웃
Delay time
Value change
Cycle time
Low Speed CAN Transmission Cycle Verification
Repeat transfer
Timeout

결과 통계 산출 및 보고서 생성 단계(S7)에서는 게이트웨이 명세(22)에 나온 CAN 메시지와 검증 항목 별로 판정된 테스트 결과를 정리하여 다음 표 4와 같이 통계를 산출한다. 판정 시도 횟수와, 각 판정 별 통과/실패의 횟수가 결과물로 생성되며, 판정이 실패로 나왔을 경우 실패 원인에 대한 정보를 제공한다. 테스트 결과는 최종적으로 보고서로 생성된다.In the result statistics calculation and report generation step (S7), the CAN message and the test results determined for each verification item in the gateway specification 22 are summarized to calculate the statistics as shown in Table 4 below. The number of judgment attempts and the number of passes / failures for each judgment are generated as a result, and information about the cause of failure is provided when the judgment is failed. The test result is finally generated as a report.

Figure 112013035437112-pat00002
Figure 112013035437112-pat00002

도 5는 본 발명에 따라 CAN 게이트웨이의 지연 특성을 검증하기 위한 절차를 도시한 순서도이다.5 is a flowchart illustrating a procedure for verifying a delay characteristic of a CAN gateway according to the present invention.

본 발명에 따른 지연시간 검증 절차는 도 5에 도시된 바와 같이, 허용 지연시간을 산출하는 단계(S11)와, 메시지를 분석하는 단계(S12)와, 메시지 타입이 direct이면 프레임 단위로 지연시간을 측정하는 단계(S13,S14)와, 메시지 타입이 indirect이면 CAN 시그널의 데이터 값이 바뀐 지점의 지연시간을 측정하는 단계(S15,S16)와, 측정 지연시간을 허용 지연시간과 비교하는 단계(S17)와, 검증결과를 저장하는 단계(S18)로 구성된다.As shown in FIG. 5, the delay time verification procedure according to the present invention includes calculating the allowable delay time (S11), analyzing the message (S12), and if the message type is direct, delay time in units of frames. Measuring (S13, S14), measuring the delay time at the point where the data value of the CAN signal is changed when the message type is indirect (S15, S16), and comparing the measurement delay time with the allowable delay time (S17). ) And storing the verification result (S18).

도 5를 참조하면, 지연시간 검증은 게이트웨이 명세(22)에 기술된 CAN 메시지들에 대해서 원본 네트워크(102)에서 대상 네트워크(104)로 CAN 게이트웨이(20)가 CAN 프레임을 정해진 시간 내에 잘 전달하는지를 검사하는 항목이다.Referring to FIG. 5, latency verification is performed to determine whether the CAN gateway 20 is capable of delivering CAN frames within a predetermined time from the source network 102 to the destination network 104 for the CAN messages described in the gateway specification 22. The item to check.

허용 지연시간은 (명세에서 기술된 지연 시간 값) + (대상 네트워크의 메시지 주기 시간) + 허용오차로 구해진다. 대상 네트워크의 메시지 전송 타입이 “cyclic”이나 “cyclic on change”가 아닐 경우 주기 시간은 0으로 간주하고, 허용오차는 사용자로부터 입력받는 값이다.The allowable delay time is obtained from (delay value described in the specification) + (message cycle time of the target network) + tolerance. If the message transmission type of the target network is not "cyclic" or "cyclic on change", the cycle time is regarded as 0, and the tolerance is input from the user.

게이트웨이 명세에 지연 시간 항목이 명시가 되어 있을 경우에만 검사하고, "원본 네트워크의 해당 메시지가 처음 출현한 시간" + "대상 네트워크 메시지의 주기 시간 전까지의 대응되는 대상 네트워크의 메시지는 무시된다.It is only checked if a delay time entry is specified in the gateway specification, and the message of the corresponding destination network until the "time when the corresponding message of the source network first appears" + "cycle time of the destination network message is ignored.

그리고 대상 네트워크의 메시지의 전송 타입이 “cyclic”이나 “cyclic on change”가 아닐 경우 주기 시간은 0으로 간주하고, 메시지 전달 타입이 “direct”인 경우는 프레임 단위로 지연 시간을 측정하며, “indirect”인 경우는 CAN 시그날의 값이 바뀐 지점의 지연 시간을 측정한다. 또한 타임아웃 구간의 대응되는 대상 네트워크의 프레임은 무시된다.If the message transmission type of the target network is not “cyclic” or “cyclic on change”, the cycle time is considered to be 0. If the message transmission type is “direct”, the delay time is measured in units of frames. ”, Measure the delay time at the point where the value of the CAN signal is changed. In addition, the frame of the corresponding target network of the timeout period is ignored.

도 6은 본 발명에 따라 CAN 게이트웨이의 주기시간 특성을 검증하기 위한 절차를 도시한 순서도이다.6 is a flowchart illustrating a procedure for verifying a cycle time characteristic of a CAN gateway according to the present invention.

본 발명에 따른 주기시간 검증 절차는 도 6에 도시된 바와 같이, 허용 주기시간을 산출하는 단계(S21)와, 메시지를 분석하는 단계(S22)와, 메시지 타입이 cyclic이면 주기시간을 측정하는 단계(S23,S24)와 측정 주기시간과 허용 주기시간을 비교하는 단계(S25)와 검증결과를 저장하는 단계(S26)로 구성된다.As shown in FIG. 6, the periodic time verification procedure according to the present invention includes calculating an allowable cycle time (S21), analyzing a message (S22), and measuring a cycle time if the message type is cyclic. (S23, S24) and the step of comparing the measurement cycle time and the allowable cycle time (S25) and the step of storing the verification results (S26).

도 6을 참조하면, 주기 시간은 게이트웨이 명세에 기술된 CAN 메시지들 중 대상 네트워크의 메시지들이 명세에 정의된 주기에 맞춰 전송되고 있는지 검사하는 항목이다.Referring to FIG. 6, a cycle time is an item for checking whether messages of a target network are transmitted according to a cycle defined in the specification among CAN messages described in the gateway specification.

허용 주기 시간은 주기 시간에 (메시지의 주기 시간) + (허용 오차)로 구해지고, 허용 오차는 사용자가 입력한다. 메시지 전달 타입이 “direct”인 경우는 모두 무시한다.The allowable cycle time is determined as (cycle time of the message) + (tolerance error) in the cycle time, and the allowable error is input by the user. Ignore all cases where the message delivery type is "direct".

원본 네트워크의 프레임은 모두 무시하고, 대상 네트워크의 프레임만을 측정한다. 이때, 메시지 타입이 “cyclic”, “cyclic on change”가 아닌 메시지는 무시한다.All frames of the source network are ignored and only frames of the target network are measured. At this time, messages whose message type is not “cyclic” or “cyclic on change” are ignored.

도 7은 본 발명에 따라 CAN 게이트웨이에서 CAN 시그널의 데이터 값 변화 특성을 검증하기 위한 절차를 도시한 순서도이다.7 is a flowchart illustrating a procedure for verifying a data value change characteristic of a CAN signal in a CAN gateway according to the present invention.

본 발명에 따른 CAN 시그널의 값 변화 검증 절차는 도 7에 도시된 바와 같이, CAN 시그널의 예상 데이터 값을 산출하는 단계(S31)와, 메시지를 분석하는 단계(S32)와, 메시지 타입이 direct이면 프레임 단위로 값을 측정하는 단계(S33,S34)와, 메시지 타입이 indirect이면 CAN 시그널의 데이터 값이 바뀐 지점의 데이터 값을 측정하는 단계(S35,S36)와, 측정 데이터 값을 예상 데이터 값과 비교하는 단계(S37)와, 검증결과를 저장하는 단계(S38)로 구성된다.As shown in FIG. 7, the procedure of verifying the value change of the CAN signal according to the present invention includes calculating an expected data value of the CAN signal (S31), analyzing the message (S32), and if the message type is direct. Measuring a value in units of frames (S33 and S34); if the message type is indirect, measuring a data value at a point where the data value of the CAN signal is changed (S35 and S36); and measuring the measured data value and the expected data value. Comparing step (S37) and the step of storing the verification results (S38).

도 7을 참조하면, CAN 시그널의 값 변화 검증단계는 게이트웨이 명세(22)에 기술된 CAN 메시지들에 대해서 원본 CAN 네트워크에서 대상 CAN 네트워크로 CAN 게이트웨이(20)가 CAN 시그날의 값을 올바르게 전달하는지를 검사하는 항목이고, 게이트웨이 명세(22)에 값 변화 규칙이 기술되어 있을 경우, 이를 고려하여 판정한다. 또한 (원본 CAN 네트워크의 해당 메시지가 처음 출현한 시간 + 대상 네트워크의 주기 시간) 전까지의 대응되는 대상 CAN 네트워크의 메시지는 무시된다.Referring to FIG. 7, the value change verification step of the CAN signal checks whether the CAN gateway 20 correctly transmits the value of the CAN signal from the source CAN network to the target CAN network for the CAN messages described in the gateway specification 22. If a value change rule is described in the gateway specification 22, it is determined in consideration of this. In addition, messages from the corresponding target CAN network up to (the time the corresponding message of the original CAN network first appeared + the cycle time of the target network) are ignored.

대상 CAN 네트워크의 메시지의 전송 타입이 “cyclic”이나 “cyclic on change”가 아닐 경우, 주기 시간은 0으로 간주하고, 메시지 전달 타입이 “direct”인 경우는 프레임 단위로 값이 정확히 전송되었는지를 확인하며, “indirect”인 경우는 CAN 시그날의 값이 바뀐 지점에서의 값만을 확인한다.If the transmission type of the message of the target CAN network is not “cyclic” or “cyclic on change”, the cycle time is regarded as 0. If the message transmission type is “direct”, check whether the value is transmitted correctly in frame unit. In case of “indirect”, only the value at the point where the value of CAN signal is changed is checked.

원본 CAN 네트워크에서 전송이 확인되더라도 대상 CAN 네트워크로 전달되지 않은 메시지에 대해서는 값 변화를 검사하지 않는다. 타임아웃 구간의 대응되는 대상 CAN 네트워크의 프레임은 무시된다.Even if the transmission is confirmed on the source CAN network, the value change is not checked for messages that are not delivered to the destination CAN network. Frames of the corresponding target CAN network in the timeout period are ignored.

도 8은 본 발명에 따라 CAN 게이트웨이의 Low Speed CAN 전송주기 특성을 검증하기 위한 절차를 도시한 순서도이다.8 is a flowchart illustrating a procedure for verifying a low speed CAN transmission cycle characteristic of a CAN gateway according to the present invention.

본 발명에 따른 Low Speed CAN 전송주기 검증 절차는 도 8에 도시된 바와 같이, 허용 주기시간을 산출하는 단계(S41)와, 메시지를 분석하는 단계(S42)와, 메시지 타입이 cyclic이고 인터페이스 타입이 Low Speed CAN이면 주기시간을 측정하는 단계(S43)와, 측정 주기시간과 허용 주기시간을 비교하는 단계(S44)와, 검증결과를 저장하는 단계(S45)로 구성된다.As shown in FIG. 8, the low speed CAN transmission cycle verification procedure according to the present invention includes calculating an allowable cycle time (S41), analyzing a message (S42), and having a message type of cyclic and an interface type. In the case of Low Speed CAN, the method includes a step (S43) of measuring a cycle time, a step (S44) of comparing a measurement cycle time with an allowable cycle time, and a step (S45) of storing a verification result.

도 8을 참조하면, Low speed CAN 전송 주기 검증 절차는 게이트웨이 명세(22)에 기술된 CAN 메시지들 중 전달되는 대상 CAN 네트워크가 “low speed CAN”일 경우 제한된 주기를 넘지 않고 전송되고 있는지를 검사하는 항목이다.Referring to FIG. 8, the low speed CAN transmission cycle verification procedure checks whether the target CAN network to be transmitted among the CAN messages described in the gateway specification 22 is being transmitted without being over a limited period in the case of “low speed CAN”. Item.

허용 전송 시간은 (low speed CAN 허용 전송 시간)으로서, Low speed CAN 허용 전송 시간은 사용자가 입력한다. 메시지 전달 타입이 “direct”인 경우는 모두 무시하고, 메시지 인터페이스 타입이 “low speed”일 경우에만 측정한다. 원본 CAN 네트워크의 프레임은 모두 무시하고, 대상 CAN 네트워크의 프레임만을 측정하며, 메시지의 전송 타입이 “cyclic”, “cyclic on change”가 아닌 메시지는 무시한다.The permissible transmission time is (low speed CAN permissible transmission time), and the low speed CAN permissible transmission time is entered by the user. If the message delivery type is "direct", it is ignored and measured only when the message interface type is "low speed". All frames of the original CAN network are ignored, only frames of the target CAN network are measured, and messages whose transmission type is not "cyclic" or "cyclic on change" are ignored.

도 9는 본 발명에 따라 CAN 게이트웨이의 반복전송 특성을 검증하기 위한 절차를 도시한 순서도이다.9 is a flowchart illustrating a procedure for verifying the repetitive transmission characteristics of a CAN gateway according to the present invention.

본 발명에 따른 반복전송 검증 절차는 도 9에 도시된 바와 같이, 반복 전송 허용 시간을 산출하는 단계(S51)와, 메시지를 분석하는 단계(S52)와, 메시지 타입이 on change이거나 cyclic on change일 경우 반복 전송 완료 시간을 측정하는 단계(S53)와, 측정 전송 완료 시간과 전송 허용 시간을 비교하는 단계(S54)와, 검증결과를 저장하는 단계(S55)로 구성된다.As shown in FIG. 9, the iterative transmission verification procedure according to the present invention includes calculating a repeat transmission allowance time (S51), analyzing a message (S52), and if the message type is on change or cyclic on change. In the case of repeating the transmission completion time measurement step (S53), the measurement transmission completion time and the transmission allowance time comparison step (S54), and stores the verification result (S55).

도 9를 참조하면, 반복 전송 검증절차는 게이트웨이 명세(22)에 기술된 CAN 메시지들 중 대상 CAN 네트워크의 프레임들이 값이 변화하였을 경우 명세에 정의된 횟수만큼의 프레임을 추가로 전송하는지를 확인하는 항목이다.Referring to FIG. 9, an iterative transmission verification procedure is an item for confirming whether additional frames of the CAN network described in the gateway specification 22 further transmit the number of frames defined in the specification when a value is changed. to be.

프레임의 값이 바뀌었을 경우, 해당 메시지에 기술되어 있는 “No. of repetition” 횟수만큼 반복 전송시간 안에 프레임이 전송되야 한다. 이때, 반복 전송 시간은 (“cycletimefast” + 허용 오차) * (“No. of repetition”)으로 정해진다.If the value of the frame is changed, “No. The frame shall be transmitted within the repetitive transmission time by the number of repetition ”. At this time, the repetitive transmission time is set to (“cycletimefast” + tolerance) * (“No. Of repetition”).

원본 CAN 네트워크의 프레임은 무시하고, 대상 CAN 네트워크 메시지의 전송 타입이 “on change”, “cyclic on change”가 아닐 경우 무시한다. 대상 CAN 네트워크 메시지의 “No. of repetition”이나 “cycletimefast”가 0일 경우도 무시하고, 메시지 전달 타입이 “direct”일 경우 무시한다.The frame of the original CAN network is ignored and ignored if the transmission type of the target CAN network message is not "on change" or "cyclic on change". The “No. If repetition ”or“ cycletimefast ”is 0, it is ignored, and if the message delivery type is“ direct ”, it is ignored.

도 10은 본 발명에 따라 CAN 게이트웨이의 타임아웃 특성을 검증하기 위한 절차를 도시한 순서도이다.10 is a flowchart illustrating a procedure for verifying a timeout characteristic of a CAN gateway according to the present invention.

본 발명에 따른 타임아웃 검증 절차는 도 10에 도시된 바와 같이, 타임아웃 구간을 분석하는 단계(S61)와, 메시지를 분석하는 단계(S62)와, 메시지 전달 타입이 indirect이고, 대상 CAN 네트워크 전송 타입이 cyclic이거나 cyclic on change일 경우 전송된 값을 측정하는 단계(S63)와, 전송된 값을 확인하여 타임 아웃 구간에서 타임아웃 값이 나왔거나 타임 아웃이 아닌 구간에서 타임아웃 값이 안 나왔는지를 검증하는 단계(S64)와, 검증결과를 저장하는 단계(S65)로 구성된다.In the timeout verification procedure according to the present invention, as shown in FIG. 10, a step S61 of analyzing a timeout period, a step S62 of analyzing a message, a message delivery type of indirect, and a target CAN network transmission are performed. If the type is cyclic or cyclic on change, measuring the transmitted value (S63) and checking the transmitted value to see if the timeout value is output in the timeout period or the timeout value is not in the timeout period. Verification step (S64), and storing the verification results (S65).

도 10을 참조하면, 타임아웃 검증은 게이트웨이 명세(22)에 기술된 CAN 메시지들에 대해서 명세에 타임 아웃 설정이 존재할 시 타임아웃 상황에 전송되야 하는 값이 올바르게 전송되는지를 검사하는 항목이다.Referring to FIG. 10, the timeout verification is an item for checking whether CAN values described in the gateway specification 22 are correctly transmitted when a timeout setting exists in the specification when a timeout setting exists.

메시지 전달 타입이 “direct”인 경우 무시하고, 원본 CAN 네트워크의 메시지와 대상 CAN 네트워크의 전송 타입이 “cyclic”, “cyclic on change”가 아니라면 무시한다.Ignore if the message forwarding type is “direct” and ignore if the message of the source CAN network and the transport type of the destination CAN network are not “cyclic” or “cyclic on change”.

그리고 게이트웨이 명세(22)에 타임아웃 시간과 타임아웃 값이 설정되어 있지 않다면 무시하고, 원본 CAN 네트워크의 해당 메시지의 프레임이 전송되기 전의 대상 CAN 네트워크의 프레임들은 모두 무시한다.If the timeout time and the timeout value are not set in the gateway specification 22, it is ignored, and all frames of the target CAN network before the frame of the corresponding message of the original CAN network are transmitted are ignored.

예컨대, 타임아웃 값 판정 구간은 다음과 같다. 실제 타임아웃 구간이 (a, b) 일 때, (a + 허용 오차, b - 허용 오차) 구간에서는 타임아웃 값이 전송되야 하고, (a - 허용 오차, a + 허용 오차) 구간과 (b - 허용 오차, b + 허용 오차) 구간에서는 무시한다. 즉, 타임아웃 상태에서 정상 상태로의 변화부분이므로 검사를 하지 않고 통과시킨다.
For example, the timeout value determination section is as follows. When the actual timeout interval is (a, b), the timeout value should be transmitted in the (a + tolerance, b-tolerance) interval, and the (a-tolerance, a + tolerance) interval and (b- Tolerance, b + tolerance). In other words, it is the change part from the time-out state to the normal state, so it is passed without inspection.

이상에서 본 발명은 도면에 도시된 일 실시예를 참고로 설명되었으나, 본 기술분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

20: CAN 게이트웨이 22: CAN 게이트웨이 명세
110: CAN 프레임 생성기 120: CAN 프레임 송신기
130: CAN 프레임 수집기 140: CAN 로그 분석기
20: CAN Gateway 22: CAN Gateway Specification
110: CAN frame generator 120: CAN frame transmitter
130: CAN frame collector 140: CAN log analyzer

Claims (10)

삭제delete 삭제delete 테스트 입력 CAN 프레임을 생성하는 단계와, CAN 게이트웨이 테스트를 실행하면, CAN 게이트웨이로 테스트 프레임을 전송하는 단계와, CAN 프레임을 수집하는 단계와, 테스트를 종료하면 테스트 결과를 분석하여 원본 CAN 네트워크에서 CAN 게이트웨이로 전송된 CAN 프레임이 CAN 게이트웨이 명세에 맞게 정확하게 대상 CAN 네트워크로 전달되었는지를 확인하기 위한 검증 항목별로 판정하는 단계와, 테스트 결과를 분석하여 통계를 산출하고 보고서를 생성하는 단계를 포함하는 CAN 게이트웨이 자동 테스트 방법에 있어서,
상기 검증 항목별로 판정하는 단계는
지연시간, CAN 프레임에 포함된 CAN 시그널의 데이터 값 변화, 주기시간, 로우 스피드(Low Speed) CAN 전송 주기, 반복 전송, 타임아웃 항목 별로 검증하여 판정하되,
상기 지연시간을 검증하는 절차는
허용 지연시간을 산출하는 단계와,
메시지를 분석하는 단계와,
메시지 타입이 다이렉트(direct)이면 프레임 단위로 지연시간을 측정하는 단계와,
메시지 타입이 인다이렉트(indirect)이면 CAN 시그널의 데이터 값이 바뀐 지점의 지연시간을 측정하는 단계와,
측정 지연시간을 허용 지연시간과 비교하는 단계와,
검증결과를 저장하는 단계로 구성된 것을 특징으로 하는 CAN 게이트웨이 자동 테스트 방법.
Test input Generate CAN frame, run CAN gateway test, send test frame to CAN gateway, collect CAN frame, finish test and analyze the test result to CAN in original CAN network The CAN gateway includes the step of judging each verification item to confirm that the CAN frame transmitted to the gateway is correctly delivered to the target CAN network according to the CAN gateway specification, and analyzing the test results to generate statistics and generate a report. In the automated test method,
Determining for each verification item
Delay time, change in the data value of the CAN signal included in the CAN frame, cycle time, low speed CAN transmission cycle, iterative transmission, and timeout items are verified and determined,
The procedure for verifying the delay time
Calculating an allowable delay time;
Analyzing the message,
If the message type is direct, measuring delay time in units of frames;
If the message type is indirect, measuring the delay time at the point where the data value of the CAN signal is changed;
Comparing the measurement delay with the allowable delay,
The CAN gateway automatic test method comprising the step of storing the verification results.
삭제delete 삭제delete 제3항에 있어서, 상기 CAN 프레임에 포함된 CAN 시그널의 데이터 값의 변화를 검증하는 절차는
CAN 시그널의 예상 데이터 값을 산출하는 단계와,
메시지를 분석하는 단계와,
메시지 타입이 다이렉트(direct)이면 프레임 단위로 CAN 시그널의 데이터 값을 측정하는 단계와,
메시지 타입이 인다이렉트(indirect)이면 CAN 시그널의 데이터 값이 바뀐 지점의 데이터 값을 측정하는 단계와,
CAN 시그널의 측정 데이터 값을 CAN 시그널의 예상 데이터 값과 비교하는 단계와,
검증결과를 저장하는 단계로 구성되어
CAN 게이트웨이 명세에 기술된 CAN 메시지들에 대해서 원본 CAN 네트워크에서 대상 CAN 네트워크로 CAN 게이트웨이가 CAN 시그널의 데이터 값을 올바르게 전달하는지를 검사하는 것을 특징으로 하는 CAN 게이트웨이 자동 테스트 방법.
The method of claim 3, wherein the verifying of the change in the data value of the CAN signal included in the CAN frame is performed.
Calculating an expected data value of the CAN signal,
Analyzing the message,
If the message type is direct, measuring the data value of the CAN signal in units of frames;
If the message type is indirect, measuring the data value at the point where the data value of the CAN signal is changed;
Comparing the measured data value of the CAN signal with the expected data value of the CAN signal,
Consists of storing the verification results
The CAN gateway automatic test method for checking the CAN messages described in the CAN gateway specification from the original CAN network to the target CAN network to correctly transmit data values of CAN signals.
삭제delete 삭제delete 삭제delete 제3항에 있어서, 상기 타임아웃을 검증하는 절차는
타임아웃 구간을 분석하는 단계와,
메시지를 분석하는 단계와,
메시지 전달 타입이 인다이렉트(indirect)이고, 대상 CAN 네트워크 전송 타입이 사이클릭(cyclic)이거나 사이클릭 온 체인지(cyclic on change)일 경우 전송된 데이터 값을 측정하는 단계와,
전송된 데이터 값을 확인하여 타임 아웃 구간에서 타임아웃 값이 나왔거나 타임 아웃이 아닌 구간에서 타임아웃 값이 안 나왔는지를 검증하는 단계와,
검증결과를 저장하는 단계로 구성된 것을 특징으로 하는 CAN 게이트웨이 자동 테스트 방법.
4. The procedure of claim 3, wherein the procedure for verifying the timeout is
Analyzing the timeout interval;
Analyzing the message,
Measuring the transmitted data value when the message delivery type is indirect and the target CAN network transmission type is cyclic or cyclic on change;
Verifying whether the timeout value is output in the timeout period or the timeout value is not in the non-timeout period by checking the transmitted data value;
The CAN gateway automatic test method comprising the step of storing the verification results.
KR1020130044513A 2013-04-22 2013-04-22 Method of testing can gateway KR101330143B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020130044513A KR101330143B1 (en) 2013-04-22 2013-04-22 Method of testing can gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020130044513A KR101330143B1 (en) 2013-04-22 2013-04-22 Method of testing can gateway

Publications (1)

Publication Number Publication Date
KR101330143B1 true KR101330143B1 (en) 2013-11-15

Family

ID=49857890

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130044513A KR101330143B1 (en) 2013-04-22 2013-04-22 Method of testing can gateway

Country Status (1)

Country Link
KR (1) KR101330143B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101472584B1 (en) * 2014-05-20 2014-12-16 비티에스테크놀로지스(주) Method of testing can communication by analysis of test result log
CN105974297A (en) * 2016-04-12 2016-09-28 烽火通信科技股份有限公司 Virtual test instrument capable of realizing efficient testing and test method
CN107018028A (en) * 2017-05-24 2017-08-04 核工业理化工程研究院 Data acquisition monitoring system and acquisition monitoring method based on CAN and OPC technology
WO2017179817A1 (en) * 2016-04-14 2017-10-19 슈어소프트테크주식회사 Method for interface evaluation test between automotive electronic components

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DRAFT(2006.12) *
DRAFT(2008) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101472584B1 (en) * 2014-05-20 2014-12-16 비티에스테크놀로지스(주) Method of testing can communication by analysis of test result log
CN105974297A (en) * 2016-04-12 2016-09-28 烽火通信科技股份有限公司 Virtual test instrument capable of realizing efficient testing and test method
WO2017179817A1 (en) * 2016-04-14 2017-10-19 슈어소프트테크주식회사 Method for interface evaluation test between automotive electronic components
CN107018028A (en) * 2017-05-24 2017-08-04 核工业理化工程研究院 Data acquisition monitoring system and acquisition monitoring method based on CAN and OPC technology
CN107018028B (en) * 2017-05-24 2024-01-05 核工业理化工程研究院 Data acquisition monitoring system and data acquisition monitoring method based on CAN bus and OPC technology

Similar Documents

Publication Publication Date Title
US7747414B2 (en) Run-Time performance verification system
WO2017000424A1 (en) Protocol detection method and apparatus
CN111061628B (en) Data analysis method, system, device, computer equipment and storage medium
KR101330143B1 (en) Method of testing can gateway
CN107959599B (en) Bus_off fault test system and test method
CN113472607B (en) Application program network environment detection method, device, equipment and storage medium
CN106851513B (en) Method and system for testing electronic product
CN101119237A (en) Network card testing method
CN101025704B (en) Detection and correction method for transmitted control character between SATA master device and SATA peripheral device
CN105827476A (en) High-speed PING implementation method and PING testing method
CN112346425A (en) Factory automation test method, system, projection equipment and storage medium
CN112698640B (en) ECU upgrading test system
WO2022198927A1 (en) Detection method and device for short-distance single-line signal transmission software
CN113207146A (en) Wireless communication network quality monitoring system and method
CN202267836U (en) Bus simulation testboard for heavy-duty car
KR20130063866A (en) Diagonosis system for m2m device and the method thereof
CN112367680A (en) External communication test method and device based on intelligent electric meter and computer equipment
CN115604078B (en) Low-cost high-efficiency CAN message automatic test method and system
US7885198B2 (en) Systems and methods for characterizing packet-switching networks
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
KR101963509B1 (en) Apparatus and method for relaying data between semiconductor equipment and SECS server
KR101712370B1 (en) Ethernet device and system for supporting error packet analysis
CN104579593B (en) Data monitoring system and method
CN110336792B (en) Method for analyzing communication protocol of universal flowmeter
US20240129224A1 (en) Verification system for i2s bus protocol

Legal Events

Date Code Title Description
A201 Request for examination
A302 Request for accelerated examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20161102

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20171108

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190702

Year of fee payment: 6

R401 Registration of restoration
FPAY Annual fee payment

Payment date: 20191121

Year of fee payment: 7