KR101646853B1 - Can frame transform method and can frame transform device - Google Patents
Can frame transform method and can frame transform device Download PDFInfo
- Publication number
- KR101646853B1 KR101646853B1 KR1020140179792A KR20140179792A KR101646853B1 KR 101646853 B1 KR101646853 B1 KR 101646853B1 KR 1020140179792 A KR1020140179792 A KR 1020140179792A KR 20140179792 A KR20140179792 A KR 20140179792A KR 101646853 B1 KR101646853 B1 KR 101646853B1
- Authority
- KR
- South Korea
- Prior art keywords
- frame
- frames
- general
- size
- identifier information
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
본 발명은 캔 FD 게이트웨이 장치 및 캔 FD 게이트웨이 장치의 중계방법에 관한 것이다. 본 발명의 일 실시 예에 따른 캔 FD 게이트웨이 장치의 중계방법에 있어서, 적어도 하나의 캔 프레임을 수신하는 단계, 수신된 상기 적어도 하나의 캔 프레임의 종류를 확인하는 단계, 상기 적어도 하나의 캔 프레임이 다수의 일반 캔 프레임을 포함하는 경우, 상기 다수의 일반 캔 프레임을 이용하여 캔 FD 프레임을 생성하는 단계 및 상기 상기 적어도 하나의 캔 프레임이 다수의 캔 TP 프레임을 포함하는 경우, 상기 다수의 캔 TP 프레임의 크기를 고려하여 캔 FD 프레임을 생성하는 단계를 포함한다. 전술한 바와 같은 본 발명에 의하면, 일반 캔 프레임과 캔 FD 프레임을 상호 변환하는 기능을 통해 캔 통신 및 캔 FD 통신 간 호환성을 높일 수 있는 효과가 있다. The present invention relates to a can FD FDD gateway device and a can FD gateway device relay method. A method of relaying can FD gateway apparatus according to an embodiment of the present invention, the method comprising: receiving at least one can frame; checking the type of the received at least one can frame; Generating a can FD frame using the plurality of general can frames if the at least one can frame includes a plurality of can frames, and if the at least one can frame includes a plurality of cans TP frames, And generating a can FD frame considering the size of the frame. According to the present invention as described above, there is an effect that compatibility between the can communication and the can FD communication can be enhanced through the function of mutual conversion between the general can frame and the can FD frame.
Description
본 발명은 캔 프레임 변환 방법 및 캔 프레임 변환 장치에 관한 것이다.
The present invention relates to a can frame conversion method and a can frame conversion apparatus.
일반적으로, 차량의 주행 상태에 따라서 차량 내부 장치들의 동작을 제어하기 위하여 서로 다른 기능을 수행하는 복수의 전자 제어 장치(Electronic Control Unit, 'ECU'로 통칭함)들이 차량에 탑재된다. 이와 같은 전자 제어 장치와 차량 내부 장치들은 캔(CAN: Controller Area Network) 방식의 통신망을 통해 정보를 주고 받는다.Generally, a plurality of electronic control units (collectively referred to as an " ECU ") that perform different functions for controlling the operation of the in-vehicle apparatuses in accordance with the running state of the vehicle are mounted on the vehicle. Such electronic control devices and in-vehicle devices exchange information through CAN (Controller Area Network) communication network.
최근 들어 캔 통신망에 연결된 전자 제어 장치들의 개수와 주고받는 데이터량의 증가로 인하여 캔 통신망의 통신 속도가 한계에 이르렀다. 이에 따라, 기존 캔 통신망을 이용하는 전자 제어 장치와 호환될 뿐만 아니라 기존 캔 통신망의 대역폭보다 증가된 대역폭을 갖는 새로운 통신 규격인 캔 FD(CAN with Flexible Data-Rate) 통신망이 고안되었다. 캔 FD 통신망은 데이터의 크기가 최대 64바이트이고, 최대 8Mbps의 전송률을 지원할 수 있다. In recent years, the communication speed of the CAN communication network has reached the limit due to the increase in the number of electronic control devices connected to the CAN network and the amount of data exchanged. Accordingly, can FD (CAN with Flexible Data-Rate) communication network, which is a new communication standard that is not only compatible with electronic control devices using existing can communication networks but also has an increased bandwidth than that of existing can communication networks, has been devised. Can FD communication network can support data rate up to 8Mbps with maximum size of 64 bytes.
그러나, 종래의 전자 제어 장치는 캔 통신망에서 사용되는 데이터와 캔 FD 통신망에서 사용되는 데이터를 서로 변환하는 기능을 지원하지 않아 기존 캔 통신망에 캔 FD 통신망을 추가 연결 시 문제가 발생한다.
However, the conventional electronic control device does not support the function of converting the data used in the CAN communication network and the data used in the CAN FD communication network, so that there is a problem when the CAN FD communication network is further connected to the existing CAN communication network.
본 발명은 캔 프레임과 캔 FD 프레임을 상호 변환하는 기능을 통해 캔 통신 및 캔 FD 통신 간 호환성을 높일 수 있는 캔 FD 게이트웨이 장치 및 캔 FD 게이트웨이 장치의 중계방법을 제공하는 것을 목적으로 한다. An object of the present invention is to provide a can FD gateway apparatus and a can FD gateway apparatus relay method capable of enhancing compatibility between a can communication and a can FD communication through a function of mutually converting a can frame and a can FD frame.
본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.
The objects of the present invention are not limited to the above-mentioned objects, and other objects and advantages of the present invention which are not mentioned can be understood by the following description and more clearly understood by the embodiments of the present invention. It will also be readily apparent that the objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims.
이러한 목적을 달성하기 위한 본 발명은 일 실시 예에 따른 캔 프레임 변환 방법에 있어서, 적어도 하나의 캔 프레임을 수신하는 단계, 수신된 상기 적어도 하나의 캔 프레임의 종류를 확인하는 단계, 상기 적어도 하나의 캔 프레임이 다수의 일반 캔 프레임을 포함하는 경우, 상기 다수의 일반 캔 프레임을 이용하여 캔 FD 프레임을 생성하는 단계 및 상기 상기 적어도 하나의 캔 프레임이 다수의 캔 TP 프레임을 포함하는 경우, 상기 다수의 캔 TP 프레임에 포함된 데이터 크기를 고려하여 캔 FD 프레임을 생성하는 단계를 포함하는 것을 특징으로 한다. According to an aspect of the present invention, there is provided a method of transforming a can frame according to an embodiment, including the steps of: receiving at least one can frame; checking the type of the received at least one can frame; Generating a can FD frame using the plurality of general can frames when the can frame includes a plurality of general CAN frames and, if the at least one CAN frame includes a plurality of CAN TP frames, And generating a can FD frame in consideration of a data size included in the can TP frame.
또한, 본 발명은 다른 실시 예에 따른 캔 프레임 변환 방법에 있어서, 캔 FD 프레임을 수신하는 단계, 수신된 상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는지 여부를 확인하는 단계, 상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는 경우 상기 캔 FD 프레임에 포함된 데이터 크기 및 제2 기준 크기를 고려하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하는 단계 및 상기 캔 FD 프레임이 다수의 일반 캔 프레임으로 구성되어 있지 않은 경우 상기 캔 FD 프레임에 포함된 마스크 정보 및 식별자 정보를 이용하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하는 단계를 포함하는 것을 특징으로 한다. According to another aspect of the present invention, there is provided a can frame conversion method comprising the steps of: receiving a can FD frame; checking whether the received can FD frame is composed of a single frame; A step of converting the can FD frame into a plurality of general can frames or a plurality of can TP frames in consideration of a data size included in the can FD frame and a second reference size, And converting the can FD frame into a plurality of general can frames or a plurality of can TP frames using the mask information and the identifier information included in the can FD frame, .
또한, 본 발명은 본 발명은 일 실시 예에 따른 캔 프레임 변환 장치에 있어서, 적어도 하나의 캔 프레임을 수신하는 송수신부, 수신된 상기 적어도 하나의 캔 프레임의 종류를 확인하는 확인부, 상기 적어도 하나의 캔 프레임이 다수의 일반 캔 프레임을 포함하는 경우, 상기 다수의 일반 캔 프레임을 이용하여 캔 FD 프레임을 생성하고, 상기 적어도 하나의 캔 프레임이 다수의 캔 TP 프레임을 포함하는 경우, 상기 다수의 캔 TP 프레임에 포함된 데이터 크기를 고려하여 캔 FD 프레임을 생성하는 데이터 처리부를 포함하는 것을 특징으로 한다. According to another aspect of the present invention, there is provided a can frame conversion apparatus, comprising: a transceiver for receiving at least one can frame; a confirmation unit for verifying the type of the received at least one can frame; If the at least one can frame includes a plurality of can frames, generating a can FD frame using the plurality of general can frames, and if the at least one can frame includes a plurality of can frames, And a data processing unit for generating a can FD frame in consideration of a data size included in the can TP frame.
또한, 본 발명은 다른 실시 예에 따른캔 프레임 변환 장치에 있어서, 캔 FD 프레임을 수신하는 송수신부, 수신된 상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는지 여부를 확인하는 확인부 및 상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는 경우 상기 캔 FD 프레임에 포함된 데이터 크기 및 제2 기준 크기를 고려하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하고, 상기 캔 FD 프레임이 다수의 일반 캔 프레임으로 구성되어 있지 않은 경우 상기 캔 FD 프레임에 포함된 마스크 정보 및 식별자 정보를 이용하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하는 데이터 처리부를 포함하는 것을 특징으로 한다.
According to another aspect of the present invention, there is provided a can frame conversion apparatus including a transceiver for receiving a can FD frame, a confirmation unit for confirming whether the received can FD frame is composed of a single frame, The can FD frame is converted into a plurality of general can frames or a plurality of can TP frames in consideration of the data size included in the can FD frame and the second reference size, And a data processing unit for converting the can FD frame into a plurality of general CAN frames or a plurality of CAN TP frames using mask information and identifier information included in the CAN FD frame, if the CAN FD frame is not composed of a plurality of general CAN frames .
전술한 바와 같은 본 발명에 의하면, 일반 캔 프레임과 캔 FD 프레임을 상호 변환하는 기능을 통해 캔 통신 및 캔 FD 통신 간 호환성을 높일 수 있는 효과가 있다.
According to the present invention as described above, there is an effect that compatibility between the can communication and the can FD communication can be enhanced through the function of mutual conversion between the general can frame and the can FD frame.
도 1은 본 발명의 실시 예에 따른 캔 프레임 변환장치의 구성도이다.
도 2는 캔 프레임의 종류를 나타낸다.
도 3은 데이터 처리부의 동작을 나타낸다.
도 4는 본 발명의 일 실시 예에 따른 일반 캔 프레임을 변환하는 순서도이다.
도 5는 본 발명의 다른 실시 예에 따른 캔 FD 프레임을 변환하는 순서도이다.1 is a configuration diagram of a can-frame conversion apparatus according to an embodiment of the present invention.
Fig. 2 shows the kind of the can frame.
3 shows the operation of the data processing unit.
4 is a flow chart for converting a general can frame according to an embodiment of the present invention.
5 is a flowchart for converting a can FD frame according to another embodiment of the present invention.
전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 도면에서 동일한 참조부호는 동일 또는 유사한 구성요소를 가리키는 것으로 사용된다.The above and other objects, features, and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, which are not intended to limit the scope of the present invention. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to denote the same or similar elements.
도 1은 본 발명의 실시 예에 따른 캔 프레임 변환장치의 구성도이다. 1 is a configuration diagram of a can-frame conversion apparatus according to an embodiment of the present invention.
도 1을 참조하면, 캔 프레임 변환장치(100)는 송수신부(30), 확인부(40), 데이터 처리부(50)를 포함한다. 1, the can
송수신부(30)는 적어도 하나의 캔 프레임을 송수신할 수 있다. 이때, 캔 프레임은 캔 FD 프레임(10), 다수의 일반 캔 프레임(210~N), 다수의 캔 TP(Transport Protocol) 프레임(310~M)을 포함한다. The
이하, 도 2를 참조하여 캔 프레임을 구체적으로 설명한다. Hereinafter, the can frame will be described in detail with reference to Fig.
도 2는 캔 프레임의 종류를 나타낸다. Fig. 2 shows the kind of the can frame.
도 2를 참조하면, 캔 FD 프레임(10)은 FD 식별자 정보(1), FD 마스크 정보(3), 일반 마스크 정보(5), 데이터(7)를 포함한다. 그리고, 캔 FD 프레임(10)은 최대 64 바이트의 크기를 가질 수 있다. 실시 예에 따라, 캔 FD 프레임(10)은 둘 이상의 일반 마스크 정보(11~13), 둘 이상의 데이터(11-1~13-1)를 더 포함할 수 있다. Referring to FIG. 2, the can
여기에서, 캔 FD 프레임(10)은 일반 마스크 정보(5)의 개수와 데이터(7)의 개수에 기초하여 다수의 프레임 구성인지 또는 단일 프레임 구성인지 정의할 수 있다. 예컨대, 일반 마스크 정보(5)가 3개, 데이터(7)가 3개일 때, 캔 FD 프레임(10)은 다수의 프레임 구성 즉, 3개의 프레임 구성일 수 있고, 일반 마스크 정보(5) 1개, 데이터(7)가 1개일 때, 캔 FD 프레임(10)은 단일 프레임 구성일 수 있다. Here, the can
그리고, 다수의 일반 캔 프레임(210~N) 중 어느 하나인 일반 캔 프레임(210)은 일반 식별자 정보(210-1), 데이터(210-2)를 포함한다. 그리고, 일반 캔 프레임(210)은 최대 8 바이트의 크기를 가질 수 있다. The general can frame 210, which is one of the plurality of general can frames 210 to N, includes general identifier information 210-1 and data 210-2. The general can frame 210 may have a maximum size of 8 bytes.
또한, 다수의 캔 TP 프레임(310~M) 중 어느 하나인 캔 TP 프레임(310)은 일반 식별자 정보(310-1), 전송 프로토콜 정보(310-2), 데이터(310-3)를 포함한다. 그리고, 캔 TP 프레임(310)은 최소 8 바이트보다 크고 64 바이트보다 작은 크기를 가질 수 있다. The can
다시 도 1을 참조하면, 확인부(40)는 수신된 적어도 하나의 캔 프레임이 캔 FD 프레임(10), 일반 캔 프레임(210) 또는 캔 TP 프레임(310)인지 캔 프레임의 종류를 확인할 수 있다. Referring again to FIG. 1, the
또한, 확인부(40)는 캔 FD 프레임(10)을 수신할 경우에 캔 FD 프레임(10)이 단일 프레임 또는 다수의 프레임으로 구성되어 있는지 여부를 확인할 수 있다. 보다 구체적으로, 확인부(40)는 캔 FD 프레임(10)을 수신할 경우에 캔 FD 프레임(10)에 포함된 일반 마스크 정보(5)의 개수와 데이터(7)의 개수를 확인할 수 있다. In addition, the
그리고, 데이터 처리부(50)는 확인부(40)로부터 확인된 적어도 하나의 캔 프레임이 다수의 일반 캔 프레임(210~N)을 포함하는 경우, 다수의 일반 캔 프레임(210~N)을 이용하여 캔 FD 프레임(10)을 생성하고, 적어도 하나의 캔 프레임이 다수의 캔 TP 프레임(310~M)을 포함하는 경우, 다수의 캔 TP 프레임(310~M)의 크기를 고려하여 캔 FD 프레임(10)을 생성할 수 있다. If at least one can frame confirmed by the
또한, 데이터 처리부(50)는 확인부(40)에서 캔 FD 프레임(10)이 단일 프레임으로 구성되어 있는 지를 확인한 경우에 캔 FD 프레임(10)의 크기 및 제2 기준 크기를 고려하여 캔 FD 프레임(10)을 다수의 일반 캔 프레임(210~N) 또는 다수의 캔 TP 프레임(310~M)으로 변환하고, 캔 FD 프레임(10)이 다수의 일반 캔 프레임(210~N)으로 구성되어 있지 않은 경우 캔 FD 프레임(10)에 포함된 마스크 정보(3, 5) 및 FD 식별자 정보(1)를 이용하여 캔 FD 프레임(10)을 다수의 일반 캔 프레임(210~N) 또는 다수의 캔 TP 프레임(310~M)으로 변환할 수 있다.The
이하, 도 3에서 다수의 일반 캔 프레임(210~N)을 3개의 일반 캔 프레임(210~230)으로 가정하여 데이터 처리부(50)의 동작을 구체적으로 설명한다. Hereinafter, the operation of the
도 3은 데이터 처리부의 동작을 나타낸다. 3 shows the operation of the data processing unit.
도 3을 참조하면, 데이터 처리부(50)는 제1 일반 캔 프레임(210), 제2 일반 캔 프레임(220) 제3 일반 캔 프레임(230)을 이용하여 캔 FD 프레임(10)을 생성할 수 있다. 여기에서, 제1 일반 캔 프레임(210), 제2 일반 캔 프레임(220), 제3 일반 캔 프레임(230)은 일반 식별자 정보(211~213)와 데이터(212~232) 각각을 포함한다. 3, the
데이터 처리부(50)는 제1 일반 식별자 정보(211), 제2 일반 식별자 정보(221), 제3 일반 식별자 정보(231)를 이용하여 FD 식별자 정보(1)를 생성할 수 있다. 보다 구체적으로, 데이터 처리부(50)는 3개의 일반 식별자 정보(211~231)의 각 비트 자리의 값이 동일할 때 비트 값 그대로 설정하고, 각 비트 자리의 값이 동일하지 않을 때 0으로 설정하여 FD 식별자 정보(1)를 생성할 수 있다. The
예컨대, 확인부(40)로부터 확인된 제1 일반 식별자 정보(211)가 10000100101인 11비트 정보이고, 제2 일반 식별자 정보(221)가 10010000100인 11비트 정보이며, 제3 일반 식별자 정보(231)가 10000000100인 11비트 정보일 때, 데이터 처리부(50)는 3개의 식별자 정보의 첫번째 비트, 아홉번째 비트가 1로서 모두 동일하므로, FD 식별자 정보(1)의 첫번째 비트, 아홉번째 비트는 1 그대로 설정하고, 3개의 식별자 정보의 두번째 비트, 세번째 비트, 다섯번째 비트, 일곱번째 비트, 여덟번째 비트, 열번째 비트가 각각 0으로 모두 동일하므로, FD 식별자 정보(1)의 두번째 비트, 세번째 비트, 다섯번째 비트, 일곱번째 비트, 여덟번째 비트, 열번째 비트는 0 그대로 설정하고, 3개의 식별자 정보의 네번째 비트, 여섯번째 비트는 서로 다른값을 가지므로, 0으로 설정할 수 있다. 이에 따라, FD 식별자 정보(1)는 10000000100의 비트일 수 있다. For example, the first
또한, 데이터 처리부(50)는 제1 일반 식별자 정보(211), 제2 일반 식별자 정보(221), 제3 일반 식별자 정보(231)를 이용하여 FD 마스크 정보(3)를 생성할 수 있다. 보다 구체적으로, 데이터 처리부(50)는 3개의 일반 식별자 정보(211~231)의 각 비트 자리의 비트 값이 모두 동일일 때 FD 마스크 정보(3)의 비트 자리의 비트 값을 1로 설정하고, 3개의 일반 식별자 정보(211~231)의 각 비트 자리의 비트 값이 어느 하나라도 동일하지 않을 때, FD 마스크 정보(3)의 비트 자리의 비트 값을 0으로 설정하여 FD 마스크 정보(3)를 생성할 수 있다. The
예컨대, 데이터 처리부(50)는 3개의 식별자 정보(211~231)의 첫번째 비트, 두번째 비트, 세번째 비트, 다섯번째 비트, 일곱번째 비트, 여덟번째 비트, 아홉번째 비트, 열번째 비트의 비트 값이 모두 동일할 때, FD 마스크 정보(3)의 첫번째 비트, 두번째 비트, 세번째 비트, 다섯번째 비트, 일곱번째 비트, 여덟번째 비트, 아홉번째 비트, 열번째 비트의 비트 값을 1로 설정하고, 3개의 식별자 정보(211~231)의 네번째 비트, 여섯번째 비트, 열한번째 비트의 비트 값이 각각 동일하지 않으므로, FD 마스크 정보(3)의 네번째 비트, 여섯번째 비트, 열한번째 비트의 비트 값을 0으로 설정할 수 있다. 이에 따라 FD 마스크 정보(3)는 11101011110일 수 있다. For example, the
그리고, 데이터 처리부(50)는 생성된 FD 마스크 정보(3)를 이용하여 제1 식별자 정보(211)에 대응되는 제1 일반 마스크 정보(11), 제2 식별자 정보(221)에 대응되는 제2 일반 마스크 정보(12), 제3 식별자 정보(231)에 대응되는 제3 일반 마스크 정보(13)를 생성할 수 있다. The
예컨대, 데이터 처리부(50)는 FD 마스크 정보(3)인 11101011110의 0의 위치인 네번째 비트, 여섯번째 비트, 열한번째 비트를 제1 식별자 정보(211)인 10000100101 를 필터링하여 011 비트 값을 추출할 수 있다. 이때, 각각의 일반 마스크 정보(11~13)가 8비트이면 추출된 011 비트 값을 00000011로 변환하여 00000011인 제1 일반 마스크 정보(11)를 생성할 수 있다. For example, the
한편, 데이터 처리부(50)는 FD 식별자 정보(1), FD 마스크 정보(3), 제1 일반 마스크 정보(11)에 대한 비트 연산을 통해 일반 캔 프레임(210)의 제1 식별자 정보(211)를 생성하고, FD 식별자 정보(1), FD 식별자 정보(1), FD 마스크 정보(3), 제2 일반 마스크 정보(12)에 대한 비트 연산을 통해 제2 일반 캔 프레임(220)의 제2 식별자 정보(221)를 생성하고, FD 식별자 정보(1), FD 마스크 정보(3), 제3 일반 마스크 정보(13)에 대한 비트 연산을 통해 제3 일반 캔 프레임(230)의 제3 식별자 정보(231)를 생성할 수 있다. The
이하, 도 4에서 다수의 일반 캔 프레임(210~N) 또는 다수의 캔 TP 프레임(310~M)을 처리하는 방법을 설명한다. Hereinafter, a method of processing a plurality of general can frames 210 to N or a plurality of can
도 4는 본 발명의 일 실시 예에 따른 일반 캔 프레임을 변환하는 순서도이다. 4 is a flow chart for converting a general can frame according to an embodiment of the present invention.
도 4를 참조하면, 송수신부(30)는 적어도 하나의 캔 프레임을 수신한다(S100). 그리고, 확인부(40)는 수신된 적어도 하나의 캔 프레임의 종류가 다수의 일반 캔 프레임(210~N) 또는 다수의 캔 TP 프레임(310~M)인지 확인한다(S110). 여기에서, 데이터 처리부(50)는 적어도 하나의 캔 프레임이 다수의 일반 캔 프레임(210~N)을 포함하는 경우, 다수의 일반 캔 프레임(210~N)을 이용하여 캔 FD 프레임(10)을 생성한다(S120). Referring to FIG. 4, the transmitting and receiving
한편, 데이터 처리부(50)는 확인부(40)에서 적어도 하나의 캔 프레임이 다수의 캔 TP 프레임(310~M)을 포함하는 경우로 확인한 경우, 다수의 캔 TP 프레임(310~M)의 각각의 크기가 제1 기준 크기보다 작거나 같으면 다수의 캔 TP 프레임(310~M)을 이용하여 캔 FD 프레임(10)을 생성한다(S130). 이때, 제1 기준 크기는 8 바이트 크기일 수 있다. 그리고, 데이터 처리부(50)는 다수의 캔 TP 프레임(310~M)의 각각의 크기가 제1 기준 크기보다 크면 캔 FD 프레임(10)을 생성하지 않고, 다수의 캔 TP 프레임(310~M)을 그대로 전달한다(S150).Meanwhile, when the
이후, 송수신부(30)는 데이터 처리부(500)에서 생성된 캔 FD 프레임(10)과 다수의 캔 TP 프레임(310~M) 중 적어도 하나를 송신할 수 있다(S160). The transmitting and receiving
이하, 도 5에서 캔 FD 프레임(10)을 처리하는 방법을 설명한다. Hereinafter, a method of processing the
도 5는 본 발명의 다른 실시 예에 따른 캔 FD 프레임을 변환하는 순서도이다. 5 is a flowchart for converting a can FD frame according to another embodiment of the present invention.
도 5를 참조하면, 송수신부(30)는 캔 FD 프레임(10)을 수신한다(S200). 그리고, 확인부(40)는 송수신부(30)로부터 수신된 캔 FD 프레임(10)이 단일 프레임으로 구성되어 있는지 여부를 확인한다(S210). 이때, 데이터 처리부(50)는 캔 FD 프레임(10)이 단일 프레임으로 구성되어 있는 경우 캔 FD 프레임(10)의 크기가 제2 기준 크기와 비교하고(S220), 캔 FD 프레임(10)의 크기가 제2 기준 크기보다 작거나 같으면 캔 FD 프레임(10)을 이용하여 도 2에 도시된 하나의 일반 캔 프레임(210)을 생성한다(S230). 이때, 제2 기준 크기는 64 바이트일 수 있다. 또한, 데이터 처리부(50)는 캔 FD 프레임(10)의 크기가 제2 기준 크기보다 크면 캔 FD 프레임(10)을 이용하여 도 2에 도시된 하나의 캔 TP 프레임(310)을 생성한다(S240). Referring to FIG. 5, the transmitting / receiving
한편, 데이터 처리부(50)는 캔 FD 프레임(10)이 단일 프레임으로 구성되어 있지 않은 경우 즉, 다수의 일반 캔 프레임으로 구성되어 있는 경우에, 도 2에 도시된 캔 FD 프레임(10)에 포함된 FD 식별자 정보(1), FD 마스크 정보(3) 및 일반 마스크 정보(5)를 이용하여 다수의 일반 캔 프레임(210~N) 또는 다수의 캔 TP 프레임(310~M)에 포함될 다수의 일반 식별자 정보(210-1 또는 310-1)를 생성한다(S250). 이때, 데이터 처리부(50)는 캔 FD 프레임(10)의 크기가 제2 기준 크기와 비교하고(S260), 캔 FD 프레임(10)의 크기가 제2 기준 크기보다 작거나 같은 경우에 캔 FD 프레임(10)을 다수의 일반 캔 프레임(210~N)으로 변환한다(S270). 또한, 데이터 처리부(50)는 캔 FD 프레임(10)의 크기가 제2 기준 크기보다 크면 캔 FD 프레임(10)을 다수의 캔 TP 프레임(310~M)으로 변환한다(S280).On the other hand, when the can FD frame 10 is not composed of a single frame, that is, when the can FD frame 10 is composed of a plurality of general can frames, the
이후, 송수신부(30)는 데이터 처리부(500)에서 생성된 일반 캔 프레임(210), 캔 FD 프레임(10) 및 데이터 처리부(500)에서 변환된 다수의 일반 캔 프레임(210~N), 다수의 캔 TP 프레임(310~M) 중 적어도 하나를 송신한다(S290). The transmitting and receiving
본 발명의 실시 예에 따른 캔 프레임 변환장치(100)는 일반 캔 프레임(210)과 캔 FD 프레임(10)을 상호 변환 또는 생성하여 전송할 수 있으므로, 기존의 일반 캔 프레임(210)만을 지원하는 전자 제어 장치(ECU)와 캔 FD 프레임(10)만을 지원하는 전자 제어 장치를 연결하여 데이터 통신할 수 있는 네트워크를 구축시킬 수 있다. Since the can
전술한 본 발명은, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 있어 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능하므로 전술한 실시 예 및 첨부된 도면에 의해 한정되는 것이 아니다.
While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, But the present invention is not limited thereto.
Claims (14)
수신된 상기 다수의 캔 프레임의 종류를 확인하는 단계;
상기 다수의 캔 프레임이 다수의 일반 캔 프레임인 경우, 상기 다수의 일반 캔 프레임을 이용하여 캔 FD 프레임을 생성하는 단계; 및
상기 다수의 캔 프레임이 다수의 캔 TP 프레임인 경우, 상기 다수의 캔 TP 프레임의 크기를 고려하여 상기 캔 FD 프레임을 생성하는 단계
를 포함하는 캔 프레임 변환 방법.
Receiving a plurality of can frames;
Identifying a type of the plurality of can frames received;
Generating a can FD frame using the plurality of general can frames when the plurality of can frames are a plurality of general can frames; And
Generating the can FD frame in consideration of the size of the plurality of can TP frames when the plurality of can frames are a plurality of can TP frames;
Gt; a < / RTI > can frame.
상기 다수의 캔 TP 프레임의 크기가 제1 기준 크기보다 작거나 같으면 상기 다수의 캔 TP 프레임을 이용하여 상기 캔 FD 프레임을 생성하는 단계; 및
상기 다수의 캔 TP 프레임의 크기가 제1 기준 크기보다 크면 상기 캔 FD 프레임을 생성하지 않는 단계를
포함하는 캔 프레임 변환 방법.
2. The method of claim 1, wherein generating the can FD frame in consideration of the size of the plurality of can TP frames comprises:
Generating the can FD frame using the plurality of can TP frames if the size of the plurality of can TP frames is less than or equal to a first reference size; And
If the size of the plurality of can TP frames is larger than the first reference size,
Containing can frame conversion method.
상기 다수의 일반 캔 프레임에 포함된 각각의 일반 식별자 정보를 이용하여 상기 캔 FD 프레임의 FD 식별자 정보와 FD 마스크 정보를 생성하는 단계; 및
상기 FD 마스크 정보 및 상기 각각의 일반 식별자 정보를 이용하여 상기 캔 FD 프레임에 포함될 일반 마스크 정보를 생성하는 단계를
포함하는 캔 프레임 변환 방법.
2. The method of claim 1, wherein generating the can FD frame using the plurality of general can frames comprises:
Generating FD identifier information and FD mask information of the can FD frame using each general identifier information included in the plurality of general can frames; And
Generating general mask information to be included in the can FD frame using the FD mask information and the respective general identifier information,
Containing can frame conversion method.
수신된 상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는지 여부를 확인하는 단계;
상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는 경우 상기 캔 FD 프레임의 크기 및 제2 기준 크기를 고려하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하는 단계; 및
상기 캔 FD 프레임이 복수 프레임으로 구성되어 있는 경우 상기 캔 FD 프레임에 포함된 마스크 정보 및 식별자 정보를 이용하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하는 단계를
포함하는 캔 프레임 변환 방법.
Receiving a CAN FD frame;
Confirming whether the received can FD frame is composed of a single frame;
Converting the can FD frame into a plurality of general can frames or a plurality of can TP frames considering the size of the can FD frame and the second reference size when the can FD frame is composed of a single frame; And
If the can FD frame is composed of a plurality of frames, converting the can FD frame into a plurality of general can frames or a plurality of can TP frames using mask information and identifier information included in the can FD frame,
Containing can frame conversion method.
상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 작거나 같으면 상기 캔 FD 프레임을 이용하여 상기 일반 캔 프레임을 생성하는 단계; 및
상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 크면 상기 캔 FD 프레임을 이용하여 상기 캔 TP 프레임을 생성하는 단계를
포함하는 캔 프레임 변환 방법.
5. The method of claim 4, wherein the step of converting the can FD frame into the plurality of general can frames or the plurality of can TP frames in consideration of the size of the can FD frame and the second reference size,
Generating the general can frame using the can FD frame if the size of the can FD frame is less than or equal to the second reference size; And
And generating the can TP frame using the can FD frame if the size of the can FD frame is larger than the second reference size
Containing can frame conversion method.
상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 작거나 같으면 상기 캔 FD 프레임을 이용하여 상기 다수의 일반 캔 프레임을 생성하는 단계; 및
상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 크면 상기 캔 FD 프레임을 이용하여 상기 다수의 캔 TP 프레임을 생성하는 단계를
포함하는 캔 프레임 변환 방법.
The method of claim 4, wherein the converting the can FD frame into the plurality of general can frames or the plurality of can TP frames using the mask information and the identifier information included in the can FD frame comprises:
Generating the plurality of general can frames using the can FD frame if the size of the can FD frame is less than or equal to the second reference size; And
If the size of the can FD frame is larger than the second reference size, generating the plurality of can TP frames using the can FD frame
Containing can frame conversion method.
상기 캔 FD 프레임에 포함된 FD 마스크 정보, FD 식별자 정보, 일반 마스크 정보를 이용하여 상기 다수의 일반 캔 프레임에 포함될 각각의 일반 식별자 정보를 생성하는 단계를
포함하는 캔 프레임 변환 방법.
The method of claim 4, wherein the converting the can FD frame into the plurality of general can frames or the plurality of can TP frames using the mask information and the identifier information included in the can FD frame comprises:
Generating generic identifier information to be included in the plurality of general can frames using the FD mask information, the FD identifier information, and the general mask information included in the can FD frame,
Containing can frame conversion method.
수신된 상기 다수의 캔 프레임의 종류를 확인하는 확인부;
상기 다수의 캔 프레임이 다수의 일반 캔 프레임인 경우, 상기 다수의 일반 캔 프레임을 이용하여 캔 FD 프레임을 생성하고, 상기 다수의 캔 프레임이 다수의 캔 TP 프레임인 경우, 상기 다수의 캔 TP 프레임의 크기를 고려하여 상기 캔 FD 프레임을 생성하는 데이터 처리부
를 포함하는 캔 프레임 변환 장치.
A transmitting and receiving unit receiving a plurality of can frames;
A confirmation unit for verifying the types of the plurality of can frames received;
Wherein if the plurality of can frames are a plurality of normal can frames, the can FD frame is generated using the plurality of general can frames, and if the plurality of can frames are a plurality of can TP frames, A data processing unit for generating the can FD frame in consideration of the size of the can FD frame,
And the can frame conversion device.
상기 다수의 캔 TP 프레임의 크기가 제1 기준 크기보다 작거나 같으면 상기 다수의 캔 TP 프레임을 이용하여 상기 캔 FD 프레임을 생성하고, 상기 다수의 캔 TP 프레임의 크기가 상기 제1 기준 크기보다 크면 상기 캔 FD 프레임을 생성하지 않는
캔 프레임 변환 장치.
The data processing apparatus according to claim 8,
If the size of the plurality of can TP frames is smaller than or equal to a first reference size, the can FD frame is generated using the plurality of can TP frames, and if the size of the plurality of can TP frames is larger than the first reference size And the can FD frame is not generated
Can frame conversion device.
상기 다수의 일반 캔 프레임에 포함된 각각의 일반 식별자 정보를 이용하여 상기 캔 FD 프레임의 FD 식별자 정보와 FD 마스크 정보를 생성하고, 상기 FD 마스크 정보 및 상기 각각의 일반 식별자 정보를 이용하여 상기 캔 FD 프레임에 포함될 일반 마스크 정보를 생성하는
캔 프레임 변환 장치.
The data processing apparatus according to claim 8,
Generating FD identifier information and FD mask information of the can FD frame using each general identifier information included in the plurality of general can frames, and using the FD mask information and the respective general identifier information, Generate general mask information to be included in the frame
Can frame conversion device.
수신된 상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는지 여부를 확인하는 확인부; 및
상기 캔 FD 프레임이 단일 프레임으로 구성되어 있는 경우 상기 캔 FD 프레임의 크기 및 제2 기준 크기를 고려하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하고, 상기 캔 FD 프레임이 복수 프레임으로 구성되어 있는 경우 상기 캔 FD 프레임에 포함된 마스크 정보 및 식별자 정보를 이용하여 상기 캔 FD 프레임을 다수의 일반 캔 프레임 또는 다수의 캔 TP 프레임으로 변환하는 데이터 처리부
를 포함하는 캔 프레임 변환 장치.
Reception unit receiving the CAN FD frame
A confirmation unit for confirming whether or not the received can FD frame is composed of a single frame; And
If the can FD frame is composed of a single frame, the can FD frame is converted into a plurality of general can frames or a plurality of can-TP frames considering the size of the can FD frame and the second reference size, A plurality of normal can frames or a plurality of can TP frames using the mask information and the identifier information included in the can FD frame,
And the can frame conversion device.
상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 작거나 같으면 상기 캔 FD 프레임을 이용하여 상기 일반 캔 프레임을 생성하고, 상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 크면 상기 캔 FD 프레임을 이용하여 상기 캔 TP 프레임을 생성하는
캔 프레임 변환 장치.
The data processing apparatus according to claim 11,
If the size of the can FD frame is smaller than or equal to the second reference size, generating the general can frame using the can FD frame, and if the size of the can FD frame is larger than the second reference size, To generate the can TP frame
Can frame conversion device.
상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 작거나 같으면 상기 캔 FD 프레임을 이용하여 상기 다수의 일반 캔 프레임을 생성하고, 상기 캔 FD 프레임의 크기가 상기 제2 기준 크기보다 크면 상기 캔 FD 프레임을 이용하여 상기 다수의 캔 TP 프레임을 생성하는
캔 프레임 변환 장치.
The data processing apparatus according to claim 11,
If the size of the can FD frame is smaller than or equal to the second reference size, the plurality of general can frames are generated using the can FD frame, and if the size of the can FD frame is larger than the second reference size, Frame to generate the plurality of can TP frames using the frame
Can frame conversion device.
상기 캔 FD 프레임에 포함된 FD 마스크 정보, FD 식별자 정보, 일반 마스크 정보를 이용하여 상기 다수의 일반 캔 프레임에 포함될 각각의 일반 식별자 정보를 생성하는
캔 프레임 변환 장치.
The data processing apparatus according to claim 11,
The general identifier information to be included in the plurality of general can frames is generated using the FD mask information, the FD identifier information, and the general mask information included in the can FD frame
Can frame conversion device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140179792A KR101646853B1 (en) | 2014-12-12 | 2014-12-12 | Can frame transform method and can frame transform device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020140179792A KR101646853B1 (en) | 2014-12-12 | 2014-12-12 | Can frame transform method and can frame transform device |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20160072394A KR20160072394A (en) | 2016-06-23 |
KR101646853B1 true KR101646853B1 (en) | 2016-08-09 |
Family
ID=56353111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020140179792A KR101646853B1 (en) | 2014-12-12 | 2014-12-12 | Can frame transform method and can frame transform device |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101646853B1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110557313A (en) * | 2019-09-11 | 2019-12-10 | 福建省汽车工业集团云度新能源汽车股份有限公司 | vehicle-mounted compatible network based on traditional CAN and CAN FD and intelligent automobile |
CN114978801B (en) * | 2022-07-27 | 2022-10-14 | 广州小鹏汽车科技有限公司 | Vehicle-mounted system control method, vehicle and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050254518A1 (en) | 2004-05-12 | 2005-11-17 | Nec Electronics Corporation | Communication message conversion device, communication method and communication system |
EP2800316A1 (en) | 2013-05-01 | 2014-11-05 | Renesas Electronics Europe GmbH | Can fd |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4376862B2 (en) * | 2005-12-20 | 2009-12-02 | 富士通テン株式会社 | Communication message conversion apparatus and communication message conversion method |
-
2014
- 2014-12-12 KR KR1020140179792A patent/KR101646853B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050254518A1 (en) | 2004-05-12 | 2005-11-17 | Nec Electronics Corporation | Communication message conversion device, communication method and communication system |
EP2800316A1 (en) | 2013-05-01 | 2014-11-05 | Renesas Electronics Europe GmbH | Can fd |
Also Published As
Publication number | Publication date |
---|---|
KR20160072394A (en) | 2016-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112740624B (en) | Implementation of E2E QoS requirements in supporting TSN-3GPP network integration | |
JP2020511083A (en) | Service quality control method and device, SMF, UPF, UE, PCF and AN | |
EP2661121A3 (en) | Node device, packet control device, radio communication device, and transmission control method | |
US20180324640A1 (en) | Vehicle-Mounted Gateway Device, Electronic Control Device, and Vehicle-Mounted Network System | |
CN110661847A (en) | Vehicle diagnosis method and apparatus | |
CN104993979A (en) | Network connection monitoring method, terminal equipment and communication system | |
CN102594802A (en) | Method and system for low-latency networking | |
KR20160045820A (en) | Service data transmission method, terminal and base station | |
KR20090017625A (en) | Managing wireless backhaul communications | |
KR101646853B1 (en) | Can frame transform method and can frame transform device | |
CN107078932B (en) | Subscriber station of a bus system and method for checking the correctness of messages | |
KR20200030167A (en) | Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same | |
KR20040045169A (en) | Data transmission method on the mac layer of mobile telecommunication system | |
CN107222403A (en) | A kind of data transmission method, system and electronic equipment | |
JP2009159513A (en) | Network system, gateway apparatus, data communication method, and program | |
CN102959901B (en) | Control equipment or mixing apparatus | |
CN111817824A (en) | Information transmission method, terminal equipment and control node | |
JP5063655B2 (en) | Communication gateway device | |
CN105871663B (en) | Wireless ethernet network control method and wireless ethernet network system | |
CN106604359A (en) | Networking method of mobile phone and plurality of vehicle-mounted WiFi, and WiFi equipment used for same | |
EP3094054B1 (en) | Method and controller for notifying bandwidth of cluster system | |
CN104426866B (en) | A kind of data transmission method and device | |
EP3148209B1 (en) | Data processing method and apparatus | |
Chakravarty et al. | LoRa mesh network with BeagleBone Black | |
KR101573549B1 (en) | Data transmission system and method for transmitting data between different type protocols |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for 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: 20190725 Year of fee payment: 4 |