KR102167610B1 - Gateway apparatus for long distance can communication - Google Patents

Gateway apparatus for long distance can communication Download PDF

Info

Publication number
KR102167610B1
KR102167610B1 KR1020190046155A KR20190046155A KR102167610B1 KR 102167610 B1 KR102167610 B1 KR 102167610B1 KR 1020190046155 A KR1020190046155 A KR 1020190046155A KR 20190046155 A KR20190046155 A KR 20190046155A KR 102167610 B1 KR102167610 B1 KR 102167610B1
Authority
KR
South Korea
Prior art keywords
message
internal network
network
line
transceiver
Prior art date
Application number
KR1020190046155A
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 KR1020190046155A priority Critical patent/KR102167610B1/en
Application granted granted Critical
Publication of KR102167610B1 publication Critical patent/KR102167610B1/en

Links

Images

Classifications

    • 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
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40091Bus bridging
    • 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
    • H04L12/40006Architecture of a communication node
    • 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 gateway apparatus for long distance controller area network (CAN) communication. According to the present invention, the gateway apparatus comprises: a transmission processing unit for outputting CAN messages transmitted from any one node of a plurality of nodes of an internal network to an external network through a CAN line; and a reception processing unit for receiving the CAN messages transmitted from the external network through the CAN line to filter and block CAN messages having IDs corresponding to the plurality of nodes of the internal network among the received CAN messages, and filter CAN messages having IDs not corresponding to the plurality of nodes of the internal network among the received CAN messages and transmit the same to the internal network.

Description

장거리 CAN 통신용 게이트웨이 장치{GATEWAY APPARATUS FOR LONG DISTANCE CAN COMMUNICATION}Gateway device for long distance CAN communication {GATEWAY APPARATUS FOR LONG DISTANCE CAN COMMUNICATION}

본 발명은 장거리 CAN 통신용 게이트웨이 장치에 관한 것으로, 보다 상세하게는 고속 CAN(Controller Area Network) 통신을 이용하면서 통신 거리를 길게 확보할 수 있도록 함으로써, 버스, 기차 등 CAN 통신 라인이 길어지는 시스템에서 고속 CAN 통신 가능 거리를 확장시킬 수 있도록 하는, 장거리 CAN 통신용 게이트웨이 장치에 관한 것이다.The present invention relates to a gateway device for long-distance CAN communication, and more particularly, by using high-speed CAN (Controller Area Network) communication to secure a longer communication distance, high-speed CAN communication lines such as buses and trains are lengthened. It relates to a gateway device for long-distance CAN communication that enables the CAN communication range to be extended.

일반적으로 차량의 시스템이 자동화됨에 따라, 차량 내부 제어기들 간의 통신 또한 빈번하게 이뤄지고 있으며, 차량 내부 통신을 위해서 CAN(Controller Area Network) 통신이 일반적으로 이용된다.In general, as a vehicle system is automated, communication between vehicle internal controllers is also frequently performed, and CAN (Controller Area Network) communication is generally used for vehicle internal communication.

즉, 자동차 내부의 전자제어시스템은 엔진제어기, 변속기제어기, 브레이크제어기, 및 에어백제어기 등 수 십여 개의 전자제어장치(ECU : Electronic Control Unit)들로 구성되어 있다. 이러한 복수의 전자제어장치(예 : ECU1 ~ ECU5)들 간의 통신은 CAN 통신을 사용한다.That is, the electronic control system inside a vehicle is composed of dozens of electronic control units (ECUs) such as an engine controller, a transmission controller, a brake controller, and an airbag controller. Communication between a plurality of electronic control devices (eg ECU1 to ECU5) uses CAN communication.

상기 CAN 통신은 중재 기능이 존재하기 때문에 CAN 통신은 2가닥의 꼬임선을 이용하여 하나의 네트워크 내에서 복수의 전자제어장치(ECU)가 병렬로 연결되어 통신이 가능하도록 한다(도 1 참조). Since the CAN communication has an arbitration function, CAN communication enables communication by connecting a plurality of electronic control units (ECUs) in parallel in one network using a two-stranded twisted wire (see FIG. 1).

도 1은 종래의 일반적인 CAN 통신 네트워크의 구성을 보인 예시도로서, 기본적으로, CAN 프로토콜 방식의 메시지 통신에 따르면, 하나의 네트워크는 복수의 노드(또는 CAN 컨트롤러)와 공통의 CAN 버스로 구성되고, 각 노드는 브로드캐스팅 방식으로 메시지를 전송하며, 각 노드가 필요한 메시지를 선택하여 수신한다. 또한 각 네트워크(예 : 네트워크1, 네트워크2)간에는 CAN 트랜시버(110, 210)를 통해 메시지를 전송한다. 1 is an exemplary diagram showing the configuration of a conventional general CAN communication network. Basically, according to message communication of the CAN protocol method, one network is composed of a plurality of nodes (or CAN controllers) and a common CAN bus, Each node transmits a message in a broadcasting method, and each node selects and receives the required message. In addition, messages are transmitted between each network (eg, network 1, network 2) through CAN transceivers 110 and 210.

상기 CAN 트랜시버(110, 210)는 CAN 통신 라인을 통해 CAN 메시지를 송수신한다. 이때 상기 CAN 트랜시버(110, 210)는 자체의 입력단과 자체의 출력단이 공통으로 접속되어 있어서, 상기 CAN 컨트롤러(또는 노드)(100, 200) 자신이 출력한 메시지를 CAN 컨트롤러(또는 노드)(100, 200) 자신이 다시 입력받아 에러 발생 여부를 체크할 수 있도록 구성되어 있다.The CAN transceivers 110 and 210 transmit and receive CAN messages through a CAN communication line. At this time, the CAN transceivers 110 and 210 have their own input terminals and their own output terminals connected in common, so that the CAN controller (or node) 100, 200 transmits a message output by itself to the CAN controller (or node) 100 , 200) It is configured so that it can be input again and check whether an error has occurred.

상기와 같이 모든 CAN 컨트롤러(또는 노드)(100, 200)는 CAN 버스(Bus)를 공통으로 사용하여 메시지를 송수신하며, 또한 각 CAN 컨트롤러(또는 노드)(100, 200)는 전송할 메시지들을 같은 네트워크상의 모든 노드들에게 브로드캐스트 방식으로 전송한다. As described above, all CAN controllers (or nodes) 100 and 200 transmit and receive messages by using a CAN bus in common, and each CAN controller (or node) 100 and 200 transmits messages to the same network. It transmits to all nodes on the network in a broadcast manner.

그리고 메시지 식별자에 의한 자체적인 중재 기능을 제공한다. And it provides its own arbitration function by message identifier.

구체적으로, 각 CAN 컨트롤러(또는 노드)는 메시지의 식별자(ID)를 인식하여, 브로트캐스팅 된 메시지들 중에서 필요한 메시지만 걸러서 수신한다.Specifically, each CAN controller (or node) recognizes an identifier (ID) of a message, and receives only necessary messages among broadcasted messages.

참고로 상기 CAN 통신 방식은 복수의 에러 검출 방법(예 : Bit Error, Stuff Error, CRC Error, Form Error, Acknowledgement Error)이 적용됨으로써 보안성이 높은 장점이 있다. For reference, the CAN communication method has the advantage of high security by applying a plurality of error detection methods (eg, Bit Error, Stuff Error, CRC Error, Form Error, Acknowledgement Error).

그런데 기존의 CAN 통신에서 사용되는 메시지(즉, CAN 메시지) 송수신 방식은, 송신단(즉, 메시지를 송신하는 노드)에서 ID, control, data, 및 CRC 등이 포함된 CAN 규격에 따른 CAN 메시지를 구형파 파형으로 도선(즉, 2가닥의 꼬임선)에 인가시키고, 수신단(즉, 메시지를 수신하는 노드)에서 이를 수신하면 1비트의 ACK 신호를 송신단으로 전송하여 CAN 메시지를 수신하였음을 알려준다. However, the message (i.e., CAN message) transmission and reception method used in the existing CAN communication is a square wave of CAN messages according to the CAN standard including ID, control, data, and CRC at the transmitting end (i.e., the node transmitting the message). The waveform is applied to the wire (i.e., a twisted pair of 2 strands), and when it is received by the receiving end (ie, the node receiving the message), it transmits a 1-bit ACK signal to the transmitting end to inform that the CAN message has been received.

이때 상기 ACK신호는 수신단 네트워크에서 병렬로 연결된 복수의 노드(예 : ECU) 중 어느 하나가 응답하게 된다.At this time, the ACK signal is responded by any one of a plurality of nodes (eg, ECU) connected in parallel in the receiving end network.

그리고 송신단에서는 CAN 규격(즉, 표준 CAN 프로토콜)에 따라 CAN 메시지를 전송하다가 상기 수신단으로부터의 ACK 신호를 수신하기 위하여 지정된 일정 구간에서(즉, 지정된 일정 시간 동안) 잠시 RX 모드로 변경되었다가 이후 EOF(End of Frame)을 전송하게 된다.In addition, the transmitter transmits a CAN message according to the CAN standard (i.e., standard CAN protocol), and then changes to the RX mode briefly in a specified period (i.e., for a specified period of time) in order to receive the ACK signal from the receiver. (End of Frame) is transmitted.

그런데 복수의 CAN 네트워크의 노드들이 게이트웨이를 통해 서로 통신한다고 가정할 때, 가령 네트워크1의 어느 노드에서 CAN 메시지를 송신하고 네트워크2의 어느 노드에서 상기 CAN 메시지를 수신한다고 가정할 때, CAN 라인(즉, 2가닥의 꼬임선)에서 전파지연으로 인해 1m당 5.5nsec의 전파지연이 발생하게 된다. However, assuming that nodes of a plurality of CAN networks communicate with each other through a gateway, for example, assuming that a node in network 1 transmits a CAN message and a node in network 2 receives the CAN message, a CAN line (i.e. , 2 strands of twisted wire), the propagation delay of 5.5nsec per 1m occurs due to the propagation delay.

이를 산술적으로 연산하면 CAN 라인이 1km라고 가정 경우 5.5usec의 전파지연이 발생하게 되며, 이러한 전파지연으로 인해 CAN 메시지를 수신한 수신단에서 ACK 신호를 송신단으로 전송할 경우, 상기 송신단이 상기 수신단으로부터 ACK 신호를 수신하기 위하여 잠시 RX 모드로 변경하는 시간(즉, 지정된 일정 시간 동안) 내에 상기 ACK 신호가 도착하지 못하게 된다. If this is arithmetically calculated, a propagation delay of 5.5 usec occurs when the CAN line is assumed to be 1 km. If the receiving end that received the CAN message transmits the ACK signal to the transmitting end due to this propagation delay, the transmitting end sends an ACK signal from the receiving end. In order to receive a signal, the ACK signal does not arrive within a time period for briefly changing to the RX mode (ie, for a specified period of time).

하지만, 상기 송신단은 상기 RX 모드로 변경하는 시간 내에 ACK 신호를 수신하지 못하더라도 CAN 규격에 따라 EOF(End of Frame)를 전송하게 되며, 결국 상기 EOF가 전송되는 동안에 ACK 신호를 수신하게 됨으로써, 상기 EOF(즉, 7비트의 '1'로 구성된 데이터)가 ACK 신호(즉, 1비트의 '0'으로 구성된 데이터)와 중첩되어 EOF의 폼(form)을 변화시키는 에러 프레임(error frame)을 유발시킨다.However, even if the transmitter does not receive the ACK signal within the time to change to the RX mode, it transmits the End of Frame (EOF) according to the CAN standard, and eventually receives the ACK signal while the EOF is transmitted. EOF (i.e., data consisting of 7 bits of '1') overlaps with the ACK signal (i.e., data consisting of 1 bit of '0') to cause an error frame that changes the form of EOF Let it.

도 2는 일반적인 CAN 통신에서 통신 속도에 따른 거리의 한계를 설명하기 위하여 보인 예시도로서, 상술한 바와 같이 CAN 라인이 길어짐에 따라 전파지연이 발생하기 때문에 상기 전파지연으로 인한 에러를 발생시키지 않는 한계 거리 내에서 CAN 통신을 수행해야 된다. 2 is an exemplary diagram shown to explain the limit of the distance according to the communication speed in general CAN communication. As described above, since a propagation delay occurs as the CAN line becomes longer, an error due to the propagation delay does not occur. CAN communication must be carried out within the distance.

그런데 상기 전파지연으로 인한 에러를 발생시키지 않는 한계 거리(Length)는, 도 2에 도시된 바와 같이, CAN 통신 속도(Bit Rate)가 높을수록(즉, 고속일수록) 짧아진다. 따라서 고속 CAN 통신을 수행하면서도 통신 거리를 길게 확보할 수 있도록 하는 기술이 필요한 상황이다.By the way, as shown in FIG. 2, the limit distance (Length) that does not cause an error due to the propagation delay becomes shorter as the CAN bit rate increases (ie, the higher the speed). Therefore, there is a need for a technology that can secure a long communication distance while performing high-speed CAN communication.

본 발명의 배경기술은 대한민국 공개특허 10-2017-0024310호(2017.03.07. 공개, 통신 네트워크, 이를 포함하는 차량, 및 그 제어방법)에 개시되어 있다. The background technology of the present invention is disclosed in Korean Patent Publication No. 10-2017-0024310 (published on Mar. 7, 2017, a communication network, a vehicle including the same, and a control method thereof).

본 발명의 일 측면에 따르면, 본 발명은 상기와 같은 문제점을 해결하기 위해 창작된 것으로서, 고속 CAN 통신을 이용하면서 통신 거리를 길게 확보할 수 있도록 함으로써, 버스, 기차 등 CAN 통신 라인이 길어지는 시스템에서 고속 CAN 통신 가능 거리를 확장시킬 수 있도록 하는, 장거리 CAN 통신용 게이트웨이 장치를 제공하는 데 그 목적이 있다. According to an aspect of the present invention, the present invention was created to solve the above problems, and a system in which CAN communication lines such as buses and trains are lengthened by ensuring a longer communication distance while using high-speed CAN communication. The purpose of this is to provide a gateway device for long-distance CAN communication that enables the high-speed CAN communication distance to be extended.

본 발명의 일 측면에 따른 장거리 CAN 통신용 게이트웨이 장치는, 내부 네트워크의 복수의 노드 중 어느 하나의 노드에서 송신하는 CAN 메시지를 CAN 라인을 통해 외부 네트워크에 출력하는 송신 처리부; 및 상기 CAN 라인을 통해 외부 네트워크에서 전송되는 CAN 메시지를 수신하여, 상기 수신한 CAN 메시지 중 상기 내부 네트워크의 복수의 노드에 대응하는 ID를 갖는 CAN 메시지는 필터링하여 차단하고, 상기 수신한 CAN 메시지 중 상기 내부 네트워크의 복수의 노드에 대응하지 않는 ID를 갖는 CAN 메시지만 필터링하여 상기 내부 네트워크에 전달하는 수신 처리부;를 포함하는 것을 특징으로 한다.A gateway device for long-distance CAN communication according to an aspect of the present invention includes: a transmission processing unit for outputting a CAN message transmitted from any one of a plurality of nodes of an internal network to an external network through a CAN line; And receiving a CAN message transmitted from an external network through the CAN line, filtering and blocking CAN messages having IDs corresponding to a plurality of nodes of the internal network among the received CAN messages, And a reception processing unit for filtering only CAN messages having IDs that do not correspond to a plurality of nodes of the internal network and transmitting them to the internal network.

본 발명에 있어서, 상기 장거리 CAN 통신용 게이트웨이 장치는, 일 측에는 내부 네트워크가 연결되고, 타 측에는 2채널의 CAN 라인이 연결되게 구현되며, 상기 2채널은 각기 송신용 및 수신용으로 사용되는 CAN 라인인 것을 특징으로 한다.In the present invention, the gateway device for long-distance CAN communication is implemented such that an internal network is connected to one side and two channels of CAN lines are connected to the other side, and the two channels are CAN lines used for transmission and reception, respectively. It features.

본 발명에 있어서, 상기 송신 처리부는, CAN 라인을 통해 외부 네트워크로부터 ACK 신호를 수신하지 않고, 내부 네트워크에서 전송할 CAN 메시지만 CAN 라인을 통해 외부 네트워크에 출력하도록 구현된 것을 특징으로 한다.In the present invention, the transmission processing unit is implemented to output only CAN messages to be transmitted from the internal network to the external network through the CAN line without receiving an ACK signal from the external network through the CAN line.

본 발명에 있어서, 상기 송신 처리부는, 내부 네트워크에서 전송할 CAN 메시지를 입력받는 제1 CAN 트랜시버; 및 상기 제1 CAN 트랜시버의 출력단자를 통해 출력되는 CAN 메시지를, 입력단자를 통해 입력받아 CAN 라인을 통해 외부 네트워크에 출력하는 제2 CAN 트랜시버;를 포함하는 것을 특징으로 한다.In the present invention, the transmission processing unit comprises: a first CAN transceiver for receiving a CAN message to be transmitted from an internal network; And a second CAN transceiver for receiving a CAN message output through an output terminal of the first CAN transceiver through an input terminal and outputting the CAN message to an external network through a CAN line.

본 발명에 있어서, 상기 제1 CAN 트랜시버의 입력단자에 입력되는 신호가 내부 네트워크에서 출력되는 CAN 메시지에 영향을 주지 않는 신호 레벨로 만들기 위하여, 상기 제1 CAN 트랜시버의 입력단자는 풀업저항에 의해 전원(Vdd)에 연결되는 것을 특징으로 한다.In the present invention, in order to make the signal input to the input terminal of the first CAN transceiver at a signal level that does not affect the CAN message output from the internal network, the input terminal of the first CAN transceiver is powered by a pull-up resistor. It is characterized by being connected to (Vdd).

본 발명에 있어서, 상기 제2 CAN 트랜시버는, 내부 내트워크에서 전송할 CAN 메시지를 상기 CAN 라인에 출력만 하고, 상기 CAN 라인에 연결된 외부 네트워크로부터 데이터를 수신하더라도 내부 네트워크에 출력하지 않도록 하기 위하여, 상기 제2 CAN 트랜시버의 출력단자는 오픈되는 것을 특징으로 한다.In the present invention, the second CAN transceiver only outputs a CAN message to be transmitted from the internal network to the CAN line, and does not output it to the internal network even if it receives data from an external network connected to the CAN line. The output terminal of the second CAN transceiver is characterized in that it is opened.

본 발명에 있어서, 상기 수신 처리부는, CAN 라인을 통해 외부 네트워크로부터 CAN 메시지를 수신하는 제3 CAN 트랜시버; 상기 제3 CAN 트랜시버에서 출력되는 CAN 메시지를 입력받아 ID 필터링을 수행하는 제어부; 및 상기 제어부에서 ID 필터링되어 출력되는 CAN 메시지를 입력받아 내부 네트워크에 출력하는 제4 CAN 트랜시버;를 포함하는 것을 특징으로 한다.In the present invention, the reception processing unit includes a third CAN transceiver for receiving a CAN message from an external network through a CAN line; A controller configured to receive a CAN message output from the third CAN transceiver and perform ID filtering; And a fourth CAN transceiver configured to receive a CAN message that is ID filtered and output by the control unit and outputs it to an internal network.

본 발명에 있어서, 상기 제3 CAN 트랜시버의 입력단자는 상기 제어부에 연결되지 않도록 분리하여 ACK 신호가 CAN 라인에 출력되지 않게 구성되고, 또한 상기 제3 CAN 트랜시버의 입력단자에 입력되는 신호가 상기 CAN 라인을 통해 수신되는 CAN 메시지에 영향을 주지 않는 신호 레벨로 만들기 위하여, 상기 제3 CAN 트랜시버의 입력단자가 풀업저항에 의해 전원(Vdd)에 연결되는 것을 특징으로 한다.In the present invention, the input terminal of the third CAN transceiver is configured so that it is not connected to the control unit so that the ACK signal is not output to the CAN line, and the signal input to the input terminal of the third CAN transceiver is In order to achieve a signal level that does not affect CAN messages received through the line, the input terminal of the third CAN transceiver is connected to the power supply Vdd by a pull-up resistor.

본 발명에 있어서, 상기 제어부는, 상기 ID 필터링을 통해, 상기 CAN 라인을 통해 수신되는 CAN 메시지의 ID를 분석하여 내부 네트워크에 포함된 노드의 ID에 해당하는 CAN 메시지가 내부 네트워크에 전달되지 않도록 차단하는 것을 특징으로 한다.In the present invention, the control unit analyzes the ID of the CAN message received through the CAN line through the ID filtering to block the CAN message corresponding to the ID of the node included in the internal network from being transmitted to the internal network. Characterized in that.

본 발명에 있어서, 상기 제4 CAN 트랜시버의 입력단자는 상기 제어부의 출력단자에 연결되며, 상기 제4 CAN 트랜시버의 출력단자는 오픈되거나, 상기 제어부의 출력단자에 연결되는 것을 특징으로 한다.In the present invention, the input terminal of the fourth CAN transceiver is connected to the output terminal of the control unit, and the output terminal of the fourth CAN transceiver is open or connected to the output terminal of the control unit.

본 발명에 있어서, 상기 제어부는, 내부 네트워크의 노드에 대한 ID 리스트를 갱신하여 내부 메모리에 저장하고, CAN 라인의 수신용 채널을 통해 CAN 메시지가 수신되면, 상기 내부 네트워크의 노드에 대한 ID 리스트를 참조하여, 상기 수신된 CAN 메시지의 ID가 내부 네트워크의 ID인지 체크하며, 상기 수신된 CAN 메시지의 ID가 내부 네트워크의 ID가 아니면, 상기 수신된 CAN 메시지가 외부 네트워크에서 전송된 CAN 메시지로 판단하여 상기 수신된 CAN 메시지를 내부 네트워크에 전달하는 것을 특징으로 한다.In the present invention, the control unit updates the ID list for the node of the internal network and stores it in the internal memory, and when a CAN message is received through the channel for reception of the CAN line, the control unit stores the ID list for the node of the internal network. With reference, it is checked whether the ID of the received CAN message is the ID of the internal network, and if the ID of the received CAN message is not the ID of the internal network, the received CAN message is determined as a CAN message transmitted from the external network. It is characterized in that the received CAN message is delivered to an internal network.

본 발명에 있어서, 상기 제어부는, 상기 수신된 CAN 메시지의 ID가 내부 네트워크의 ID이면, 상기 수신된 CAN 메시지가 내부 네트워크에서 전송된 CAN 메시지로 판단하여 상기 수신된 CAN 메시지를 내부 네트워크에 전달하지 않고 버리는 것을 특징으로 한다.In the present invention, if the ID of the received CAN message is the ID of the internal network, the control unit determines that the received CAN message is a CAN message transmitted from the internal network and does not deliver the received CAN message to the internal network. It is characterized by discarding without.

본 발명에 있어서, 상기 내부 네트워크는 게이트웨이에 직접 연결된 네트워크를 의미하며, 상기 외부 네트워크는 게이트웨이에 직접 연결되지 않고 CAN 라인을 통해 연결되는 네트워크를 의미하는 것을 특징으로 한다.In the present invention, the internal network refers to a network directly connected to a gateway, and the external network is not directly connected to the gateway, but refers to a network connected through a CAN line.

본 발명의 일 측면에 따르면, 본 발명은 고속 CAN 통신을 이용하면서 통신 거리를 길게 확보할 수 있도록 함으로써, 버스, 기차 등 CAN 통신 라인이 길어지는 시스템에서 고속 CAN 통신 가능 거리를 확장시킬 수 있도록 한다.According to an aspect of the present invention, the present invention enables high-speed CAN communication to be used and a long communication distance to be secured, thereby extending the possible high-speed CAN communication distance in a system in which CAN communication lines such as buses and trains are lengthened. .

도 1은 종래의 일반적인 CAN 통신 네트워크의 구성을 보인 예시도.
도 2는 일반적인 CAN 통신에서 통신 속도에 따른 거리의 한계를 설명하기 위하여 보인 예시도.
도 3은 본 발명의 일 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치의 개략적인 구성을 보인 예시도.
도 4는 상기 도 3에 도시된 장거리 CAN 통신용 게이트웨이 장치를 이용하여 구성한 CAN 통신 네트워크의 구성을 보인 예시도.
도 5는 본 발명의 일 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치의 제어 방법을 설명하기 위한 흐름도.
1 is an exemplary view showing the configuration of a conventional general CAN communication network.
2 is an exemplary diagram illustrating a limit of a distance according to a communication speed in general CAN communication.
3 is an exemplary view showing a schematic configuration of a gateway device for long-distance CAN communication according to an embodiment of the present invention.
4 is an exemplary view showing the configuration of a CAN communication network configured using the gateway device for long-distance CAN communication shown in FIG. 3.
5 is a flowchart illustrating a method of controlling a gateway device for long-distance CAN communication according to an embodiment of the present invention.

이하, 첨부된 도면을 참조하여 본 발명에 따른 장거리 CAN 통신용 게이트웨이 장치의 일 실시예를 설명한다. Hereinafter, an embodiment of a gateway device for long distance CAN communication according to the present invention will be described with reference to the accompanying drawings.

이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. 또한, 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.In this process, the thickness of the lines or the size of components shown in the drawings may be exaggerated for clarity and convenience of description. In addition, terms to be described later are terms defined in consideration of functions in the present invention and may vary according to the intention or custom of users or operators. Therefore, definitions of these terms should be made based on the contents throughout the present specification.

도 3은 본 발명의 일 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치의 개략적인 구성을 보인 예시도이고, 도 4는 상기 도 3에 도시된 장거리 CAN 통신용 게이트웨이 장치를 이용하여 구성한 CAN 통신 네트워크의 구성을 보인 예시도이다.3 is an exemplary view showing a schematic configuration of a gateway device for long-distance CAN communication according to an embodiment of the present invention, and FIG. 4 is a configuration of a CAN communication network configured using the gateway device for long-distance CAN communication shown in FIG. This is an example diagram shown.

도 3을 참조하면, 본 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치(GW)는, 송신 처리부(310) 및 수신 처리부(320)를 포함한다.Referring to FIG. 3, the gateway device GW for long-distance CAN communication according to the present embodiment includes a transmission processing unit 310 and a reception processing unit 320.

또한 본 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치(GW)는 일 측에는 내부 네트워크가 연결되고 타 측에는 2채널(채널1, 채널2)의 CAN 라인이 연결된다.In addition, in the gateway device GW for long-distance CAN communication according to the present embodiment, an internal network is connected to one side and a CAN line of two channels (channel 1, channel 2) is connected to the other side.

상기 내부 네트워크는 복수의 노드(또는 CAN 컨트롤러)와 공통의 CAN 버스로 구성된다.The internal network consists of a plurality of nodes (or CAN controllers) and a common CAN bus.

상기 2채널(채널1, 채널2)의 CAN 라인은 양 측에 연결된 각 게이트웨이 장치에 대하여 각기 송신용 또는 수신용으로 사용된다. 예컨대 도 4를 참조하면, 제1 게이트웨이 장치(GW1)는 채널1을 송신용으로 사용하고 제2 게이트웨이 장치(GW2)는 채널1을 수신용으로 사용하며, 제2 게이트웨이 장치(GW2)는 채널2를 송신용으로 사용하고 제1 게이트웨이 장치(GW1)는 채널2를 수신용으로 사용하는 것이다.The CAN lines of the two channels (channel 1, channel 2) are used for transmission or reception for each gateway device connected to both sides. For example, referring to FIG. 4, the first gateway device GW1 uses channel 1 for transmission, the second gateway device GW2 uses channel 1 for reception, and the second gateway device GW2 is channel 2 Is used for transmission, and the first gateway device GW1 uses channel 2 for reception.

이때 상기 제1 게이트웨이(GW1)와 제2 게이트웨이(GW2)는 도 3에 도시된 바와 같은 구조로 동일하게 구성된다.At this time, the first gateway GW1 and the second gateway GW2 have the same structure as shown in FIG. 3.

다시 도 3을 참조하면, 상기 송신 처리부(310)는 내부 네트워크의 복수의 노드(또는 CAN 컨트롤러) 중 어느 하나의 노드에서 송신하는 CAN 메시지를 송신용 채널을 통해 전송한다. 이때 상기 송신 처리부(310)는 CAN 라인을 통해 외부 네트워크로부터 ACK 신호를 수신하지 않도록 구성하며, 오로지 CAN 메시지를 CAN 라인을 통해 외부 네트워크로 전송할 수 있도록 구성한다.Referring back to FIG. 3, the transmission processing unit 310 transmits a CAN message transmitted from any one node among a plurality of nodes (or CAN controllers) of the internal network through a transmission channel. At this time, the transmission processing unit 310 is configured not to receive an ACK signal from an external network through a CAN line, and is configured to transmit a CAN message only to an external network through a CAN line.

이를 위해 상기 송신 처리부(310)는 복수의 CAN 트랜시버(311, 312)를 연결하여 구성하며, 내부 네트워크에서 CAN 메시지를 입력받는 제1 CAN 트랜시버(311); 및 상기 제1 CAN 트랜시버(311)의 출력단자(out)를 통해 출력되는 CAN 메시지를, 입력단자(in)를 통해 입력받아 CAN 라인을 통해 외부 네트워크에 출력하는 제2 CAN 트랜시버(312)를 포함한다. To this end, the transmission processing unit 310 is configured by connecting a plurality of CAN transceivers 311 and 312, and includes a first CAN transceiver 311 for receiving a CAN message from an internal network; And a second CAN transceiver 312 for receiving a CAN message output through an output terminal out of the first CAN transceiver 311 through an input terminal in and outputting the CAN message to an external network through a CAN line. do.

이때 상기 제1 CAN 트랜시버(311)의 입력단자(in)는 전원(Vdd)과 풀업저항으로 연결하여 내부 네트워크에서 출력되는 CAN 메시지에 영향을 주지 않는 신호 레벨로 만든다. At this time, the input terminal (in) of the first CAN transceiver 311 is connected to the power supply (Vdd) through a pull-up resistor to achieve a signal level that does not affect the CAN message output from the internal network.

그리고 상기 제2 CAN 트랜시버(312)는 상기 내부 내트워크에서 전송할 CAN 메시지를 상기 CAN 라인에 출력하지만, 상기 CAN 라인에 연결된 외부 네트워크로부터는 데이터(예 : ACK 신호)를 수신하지 않으므로(또는 ACK 신호를 외부 네트워크로부터 수신할 필요가 없으므로), 상기 제2 CAN 트랜시버(312)의 출력단자(out)는 오픈시킨다.In addition, the second CAN transceiver 312 outputs a CAN message to be transmitted from the internal network to the CAN line, but does not receive data (eg, an ACK signal) from an external network connected to the CAN line (or an ACK signal). Since there is no need to receive from an external network), the output terminal out of the second CAN transceiver 312 is opened.

이때 본 실시예에서 ACK 신호를 외부 네트워크로부터 수신할 필요가 없는 이유는, 상기 송신 처리부(310)로 출력되는 CAN 메시지가 상기 내부 네트워크에 포함된 노드에도 동일하게 전송되므로, 상기 CAN 메시지를 수신한 내부 네트워크의 적어도 어느 하나의 노드에서 ACK 신호를 출력하여 상기 CAN 메시지를 전송한 노드에 수신되기 때문에 에러(error)로 인식하지 않기 때문이다.At this time, the reason why it is not necessary to receive the ACK signal from the external network in this embodiment is that the CAN message output to the transmission processing unit 310 is also transmitted to the node included in the internal network, so that the CAN message is received. This is because at least one node of the internal network outputs an ACK signal and is not recognized as an error because it is received by the node that transmitted the CAN message.

또한 상기 수신 처리부(320)는 복수의 CAN 트랜시버(321, 322)와 이 복수의 CAN 트랜시버(321, 322) 사이에 연결되어 ID 필터링을 수행하는 제어부(322)를 포함하여 구성된다. 상기 수신 처리부(320)는 CAN 라인을 통해 외부 네트워크로부터 CAN 메시지를 수신하는 제3 CAN 트랜시버(321)와 상기 제3 CAN 트랜시버(321)에서 출력되는 CAN 메시지를 입력받아 ID 필터링을 수행하는 제어부(322), 및 상기 제어부(322)에서 ID 필터링되어 출력되는 CAN 메시지를 입력받아 내부 네트워크에 출력하는 제4 CAN 트랜시버(323)를 포함한다.In addition, the reception processing unit 320 includes a plurality of CAN transceivers 321 and 322 and a control unit 322 connected between the plurality of CAN transceivers 321 and 322 to perform ID filtering. The reception processing unit 320 receives a third CAN transceiver 321 that receives a CAN message from an external network through a CAN line and a control unit that performs ID filtering by receiving a CAN message output from the third CAN transceiver 321 ( 322), and a fourth CAN transceiver 323 that receives a CAN message that is ID filtered and output by the control unit 322 and outputs it to an internal network.

이때 상기 제3 CAN 트랜시버(321)의 입력단자(in)는 상기 제어부(322)와 분리하여 ACK 신호를 출력할 수 없게 구성하고, 대신에 전원(Vdd)과 풀업저항으로 연결하여 CAN 라인을 통해 수신되는 CAN 메시지에 영향을 주지 않는 신호 레벨로 만든다. At this time, the input terminal (in) of the third CAN transceiver 321 is configured so that it cannot output an ACK signal by separating it from the control unit 322, and instead, it is connected to a power source (Vdd) and a pull-up resistor through a CAN line. Make it a signal level that does not affect incoming CAN messages.

그리고 상기 제어부(322)는 CAN 메시지를 입력받아 ID 필터링을 수행한다(도 5 참조). 상기 ID 필터링을 통해, 상기 제어부(322)는 상기 CAN 라인을 통해 수신되는 CAN 메시지의 ID(즉, CAN_ID)를 분석하여 내부 네트워크에 포함된 노드의 ID에 해당하는 CAN 메시지는 차단(즉, 내부 네트워크에 전달되지 않도록 차단)한다.In addition, the control unit 322 receives a CAN message and performs ID filtering (see FIG. 5). Through the ID filtering, the controller 322 analyzes the ID (i.e., CAN_ID) of the CAN message received through the CAN line, and blocks the CAN message corresponding to the ID of the node included in the internal network (i.e., internal Block from being transmitted to the network).

또한 상기 제4 CAN 트랜시버(323)는 상기 제어부(322)에서 ID 필터링되어 출력되는 CAN 메시지를 입력받아 내부 네트워크에 출력한다. 따라서 상기 제4 CAN 트랜시버(323)의 입력단자(in)는 상기 제어부(322)의 출력단자에 연결된다. 다만 상기 제4 CAN 트랜시버(323)의 출력단자(out)는 오픈시키거나, 상기 제어부(322)의 출력단자에 연결할 수 있다. In addition, the fourth CAN transceiver 323 receives a CAN message that is ID filtered and output by the control unit 322 and outputs it to an internal network. Accordingly, the input terminal (in) of the fourth CAN transceiver 323 is connected to the output terminal of the control unit 322. However, the output terminal out of the fourth CAN transceiver 323 may be opened or connected to the output terminal of the controller 322.

왜냐하면 상기 제4 CAN 트랜시버(323)의 출력단자(out)가 상기 제어부(322)의 출력단자에 연결되므로 상기 제어부(322)의 동작에 영향을 미치지 않기 때문이다.This is because the output terminal out of the fourth CAN transceiver 323 is connected to the output terminal of the control unit 322 and thus does not affect the operation of the control unit 322.

그리고 상기 제2 CAN 트랜시버(312)는 상기 내부 내트워크에서 전송할 CAN 메시지를 상기 CAN 라인에 출력하지만, 상기 CAN 라인에 연결된 외부 네트워크로부터는 데이터(예 : ACK 신호)를 수신하지 않으므로(또는 ACK 신호를 외부 네트워크로부터 수신할 필요가 없으므로), 상기 제2 CAN 트랜시버(312)의 출력단자(out)는 오픈시킨다.In addition, the second CAN transceiver 312 outputs a CAN message to be transmitted from the internal network to the CAN line, but does not receive data (eg, an ACK signal) from an external network connected to the CAN line (or an ACK signal). Since there is no need to receive from an external network), the output terminal out of the second CAN transceiver 312 is opened.

이때 본 실시예에서 ACK 신호를 외부 네트워크로부터 수신할 필요가 없는 이유는, 상기 송신 처리부(310)로 출력되는 CAN 메시지가 상기 내부 네트워크에 포함된 노드에도 동일하게 전송되므로, 상기 CAN 메시지를 수신한 내부 네트워크의 적어도 어느 하나의 노드에서 ACK 신호를 출력하여 상기 CAN 메시지를 전송한 노드에 수신되기 때문이다.At this time, the reason why it is not necessary to receive the ACK signal from the external network in this embodiment is that the CAN message output to the transmission processing unit 310 is also transmitted to the node included in the internal network, so that the CAN message is received. This is because at least one node of the internal network outputs an ACK signal and is received by the node that transmitted the CAN message.

이하 상기 장거리 CAN 통신용 게이트웨이 장치(GW)를 이용한 장거리 CAN 통신 방법에 대해서 도 4를 참조하여 설명한다.Hereinafter, a long-distance CAN communication method using the long-distance CAN communication gateway device (GW) will be described with reference to FIG. 4.

도 4를 참조하면, 제1 게이트웨이(GW1)의 내부 네트워크(즉, 게이트웨이가 직접 연결된 네트워크)는 네트워크1이 되며, 제2 게이트웨이(GW2)의 내부 네트워크는 네트워크2가 된다. 그리고 게이트웨이가 직접 연결되지 않고 CAN 라인(채널1,2)을 통해 연결되는 네트워크는 외부 네트워크가 된다.Referring to FIG. 4, the internal network of the first gateway GW1 (that is, the network to which the gateway is directly connected) becomes network 1, and the internal network of the second gateway GW2 becomes network 2. In addition, the gateway is not directly connected, and the network connected through CAN lines (channels 1 and 2) becomes an external network.

이때 상기 제2 게이트웨이(GW2)에 연결된 네트워크2의 어느 하나의 노드에서 CAN 메시지를 송신한다고 가정할 경우, 상기 제2 게이트웨이(GW2)의 송신 처리부(310)는 자신의 내부 네트워크(네트워크2)에서 전송하는 CAN 메시지를 CAN 라인(채널2)을 통해 자신의 외부 네트워크(네트워크1)에 전송한다. 이에 네트워크1에 연결된 제1 게이트웨이(GW1)의 수신 처리부(320)는 상기 CAN 라인(채널2)을 통해 전송되는 CAN 메시지를 수신한 후 ID 필터링을 수행하여 자신의 외부 네트워크(네트워크2)에서 보낸 CAN 메시지만 선별하여 자신의 내부 네트워크(네트워크1)에 출력한다. At this time, assuming that any one node of network 2 connected to the second gateway (GW2) transmits a CAN message, the transmission processing unit 310 of the second gateway (GW2) is in its own internal network (network 2). It transmits the transmitted CAN message to its external network (network 1) through the CAN line (channel 2). Accordingly, the reception processing unit 320 of the first gateway (GW1) connected to the network 1 receives the CAN message transmitted through the CAN line (channel 2), performs ID filtering, and sends it from its external network (network 2). It selects only CAN messages and outputs them to its own internal network (Network 1).

반대로 상기 제1 게이트웨이(GW1)에 연결된 네트워크1의 어느 하나의 노드에서 CAN 메시지를 송신한다고 가정할 경우, 상기 제1 게이트웨이(GW1)의 송신 처리부(310)는 자신의 내부 네트워크(네트워크1)에서 전송하는 CAN 메시지를 CAN 라인(채널1)을 통해 자신의 외부 네트워크(네트워크2)에 전송한다. 이에 네트워크2에 연결된 제2 게이트웨이(GW1)의 수신 처리부(320)는 상기 CAN 라인(채널1)을 통해 전송되는 CAN 메시지를 수신한 후 ID 필터링을 수행하여 자신의 외부 네트워크(네트워크1)에서 보낸 CAN 메시지만 선별하여 자신의 내부 네트워크(네트워크2)에 출력한다. Conversely, assuming that any one node of network 1 connected to the first gateway (GW1) transmits a CAN message, the transmission processing unit 310 of the first gateway (GW1) is in its own internal network (network 1). The CAN message to be transmitted is transmitted to its external network (Network 2) through the CAN line (Channel 1). Accordingly, the reception processing unit 320 of the second gateway (GW1) connected to the network 2 receives the CAN message transmitted through the CAN line (channel 1), performs ID filtering, and sends it from its external network (network 1). It selects only CAN messages and outputs them to its own internal network (Network 2).

도 5는 본 발명의 일 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치의 제어 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating a control method of a gateway device for long-distance CAN communication according to an embodiment of the present invention.

도 5를 참조하면, 본 실시예에 따른 장거리 CAN 통신용 게이트웨이 장치(GW)의 제어부(322)는 내부 네트워크의 노드에 대한 ID(즉, CAN_ID) 리스트를 갱신하여 내부 메모리(미도시)에 저장한다(S101).5, the control unit 322 of the gateway device (GW) for long-distance CAN communication according to the present embodiment updates the list of IDs (ie, CAN_IDs) for nodes of the internal network and stores them in an internal memory (not shown). (S101).

이때 상기 내부 네트워크의 노드에 대한 ID(즉, CAN_ID) 리스트는 주기적으로 갱신되거나 내부 네트워크의 노드가 변경될 경우에 갱신된다.At this time, the list of IDs (ie, CAN_IDs) for the nodes of the internal network is periodically updated or when a node of the internal network is changed.

그리고 CAN 라인의 수신용 채널을 통해 CAN 메시지가 수신되면, 상기 제어부(322)는 상기 수신된 CAN 메시지의 ID(즉, CAN_ID)가 내부 네트워크의 ID(즉, CAN_ID)인지 체크한다(S102).And when a CAN message is received through a channel for reception of a CAN line, the control unit 322 checks whether the ID of the received CAN message (ie, CAN_ID) is an ID of the internal network (ie, CAN_ID) (S102).

이때 상기 제어부(322)는 상기 CAN 메시지의 ID(즉, CAN_ID)를 체크하기 위하여 상기 내부 네트워크의 노드에 대한 ID(즉, CAN_ID) 리스트를 참조한다.At this time, the control unit 322 refers to an ID (ie, CAN_ID) list for a node of the internal network to check the ID (ie, CAN_ID) of the CAN message.

상기 체크(S102) 결과, 상기 수신된 CAN 메시지의 ID(즉, CAN_ID)가 내부 네트워크의 ID(즉, CAN_ID)가 아니면(S102의 아니오), 상기 제어부(322)는 상기 수신된 CAN 메시지가 외부 네트워크에서 전송된 CAN 메시지로 판단하여 상기 수신된 CAN 메시지를 내부 네트워크에 전달한다(S104).As a result of the check (S102), if the ID of the received CAN message (ie, CAN_ID) is not the ID of the internal network (ie, CAN_ID) (No in S102), the controller 322 returns the received CAN message It is determined as a CAN message transmitted from the network and transfers the received CAN message to the internal network (S104).

반면에 상기 체크(S102) 결과, 상기 수신된 CAN 메시지의 ID(즉, CAN_ID)가 내부 네트워크의 ID(즉, CAN_ID)이면(S102의 예), 현재 내부 네트워크에서 전송된 CAN 메시지가 다시 리턴된 경우이므로, 상기 제어부(322)는 상기 수신된 CAN 메시지가 내부 네트워크에서 전송된 CAN 메시지로 판단하여 상기 수신된 CAN 메시지를 내부 네트워크에 전달하지 않는다(S103).On the other hand, as a result of the check (S102), if the ID (i.e., CAN_ID) of the received CAN message is the ID of the internal network (i.e., CAN_ID) (example of S102), the CAN message currently transmitted from the internal network is returned again. In this case, the controller 322 determines that the received CAN message is a CAN message transmitted from the internal network and does not transmit the received CAN message to the internal network (S103).

상기와 같이 본 실시예는 게이트웨이 장치(GW)의 내부 네트워크에 포함된 노드에서 출력한 CAN 메시지가 외부 네트워크에 고속으로 전달되었다가 다시 리턴하여 내부 네트워크에 전달될 경우에 발생할 수 있는 에러를, ID 필터링을 통해 방지할 수 있는 효과가 있다.As described above, in the present embodiment, an error that may occur when the CAN message output from the node included in the internal network of the gateway device (GW) is transmitted to the external network at high speed and then returned to the internal network. There is an effect that can be prevented through filtering.

또한 본 실시예는 고속 CAN 통신을 이용하면서 통신 거리를 길게 확보할 수 있도록 함으로써, 버스, 기차 등 CAN 통신 라인이 길어지는 시스템에서 고속 CAN 통신 가능 거리를 확장시킬 수 있도록 하는 효과가 있다.In addition, the present embodiment has an effect of extending the possible high-speed CAN communication distance in a system in which a CAN communication line such as a bus or a train is lengthened by ensuring a long communication distance while using high-speed CAN communication.

이상으로 본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나, 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 기술적 보호범위는 아래의 특허청구범위에 의해서 정하여져야 할 것이다. 또한 본 명세서에서 설명된 구현은, 예컨대, 방법 또는 프로세스, 장치, 소프트웨어 프로그램, 데이터 스트림 또는 신호로 구현될 수 있다. 단일 형태의 구현의 맥락에서만 논의(예컨대, 방법으로서만 논의)되었더라도, 논의된 특징의 구현은 또한 다른 형태(예컨대, 장치 또는 프로그램)로도 구현될 수 있다. 장치는 적절한 하드웨어, 소프트웨어 및 펌웨어 등으로 구현될 수 있다. 방법은, 예컨대, 컴퓨터, 마이크로프로세서, 집적 회로 또는 프로그래밍가능한 로직 디바이스 등을 포함하는 프로세싱 디바이스를 일반적으로 지칭하는 프로세서 등과 같은 장치에서 구현될 수 있다. 프로세서는 또한 최종-사용자 사이에 정보의 통신을 용이하게 하는 컴퓨터, 셀 폰, 휴대용/개인용 정보 단말기(personal digital assistant: "PDA") 및 다른 디바이스 등과 같은 통신 디바이스를 포함한다.As described above, the present invention has been described with reference to the embodiments shown in the drawings, but these are only exemplary, and those of ordinary skill in the field to which the technology pertains, various modifications and other equivalent embodiments are possible. I will understand the point. Therefore, the technical protection scope of the present invention should be determined by the following claims. Also, the implementation described herein may be implemented in, for example, a method or process, an apparatus, a software program, a data stream or a signal. Although discussed only in the context of a single form of implementation (eg, only as a method), the implementation of the discussed features may also be implemented in other forms (eg, an apparatus or program). The device may be implemented with appropriate hardware, software and firmware. The method may be implemented in an apparatus such as a processor, which generally refers to a processing device including, for example, a computer, microprocessor, integrated circuit or programmable logic device, or the like. Processors also include communication devices such as computers, cell phones, personal digital assistants ("PDAs") and other devices that facilitate communication of information between end-users.

GW : 게이트웨이 장치 310 : 송신 처리부
320 : 수신 처리부 311, 312, 321, 323 : CAN 트랜시버
322 : 제어부
GW: gateway device 310: transmission processing unit
320: reception processing unit 311, 312, 321, 323: CAN transceiver
322: control unit

Claims (13)

내부 네트워크의 복수의 노드 중 어느 하나의 노드에서 송신하는 CAN 메시지를 CAN 라인을 통해 외부 네트워크에 출력하는 송신 처리부; 및
상기 CAN 라인을 통해 외부 네트워크에서 전송되는 CAN 메시지를 수신하여, 상기 수신한 CAN 메시지 중 상기 내부 네트워크의 복수의 노드에 대응하는 ID를 갖는 CAN 메시지는 필터링하여 차단하고, 상기 수신한 CAN 메시지 중 상기 내부 네트워크의 복수의 노드에 대응하지 않는 ID를 갖는 CAN 메시지만 필터링하여 상기 내부 네트워크에 전달하는 수신 처리부;를 포함하되,
상기 송신 처리부는,
내부 네트워크에서 전송할 CAN 메시지를 입력받는 제1 CAN 트랜시버; 및 상기 제1 CAN 트랜시버의 출력단자를 통해 출력되는 CAN 메시지를, 입력단자를 통해 입력받아 CAN 라인을 통해 외부 네트워크에 출력하는 제2 CAN 트랜시버;를 포함하고,
상기 제1 CAN 트랜시버의 입력단자에 입력되는 신호가 내부 네트워크에서 출력되는 CAN 메시지에 영향을 주지 않는 신호 레벨로 만들기 위하여, 상기 제1 CAN 트랜시버의 입력단자는 풀업저항에 의해 전원(Vdd)에 연결되며,
상기 제2 CAN 트랜시버는, 내부 내트워크에서 전송할 CAN 메시지를 상기 CAN 라인에 출력만 하고, 상기 CAN 라인에 연결된 외부 네트워크로부터 데이터를 수신하더라도 내부 네트워크에 출력하지 않도록 하기 위하여, 상기 제2 CAN 트랜시버의 출력단자는 오픈되는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
A transmission processing unit for outputting a CAN message transmitted from any one node among a plurality of nodes of the internal network to an external network through a CAN line; And
By receiving a CAN message transmitted from an external network through the CAN line, among the received CAN messages, CAN messages having IDs corresponding to a plurality of nodes of the internal network are filtered and blocked, and the received CAN message Including; a reception processing unit for filtering only CAN messages having IDs that do not correspond to a plurality of nodes of the internal network and transmitting them to the internal network;
The transmission processing unit,
A first CAN transceiver for receiving a CAN message to be transmitted from an internal network; And a second CAN transceiver configured to receive a CAN message output through an output terminal of the first CAN transceiver through an input terminal and output it to an external network through a CAN line,
In order to make the signal input to the input terminal of the first CAN transceiver at a signal level that does not affect the CAN message output from the internal network, the input terminal of the first CAN transceiver is connected to the power supply (Vdd) by a pull-up resistor. And
The second CAN transceiver only outputs a CAN message to be transmitted from the internal network to the CAN line, and does not output it to the internal network even when data is received from an external network connected to the CAN line. Gateway device for long-distance CAN communication, characterized in that the output terminal is opened.
제 1항에 있어서, 상기 장거리 CAN 통신용 게이트웨이 장치는,
일 측에는 내부 네트워크가 연결되고,
타 측에는 2채널의 CAN 라인이 연결되게 구현되며,
상기 2채널은 각기 송신용 및 수신용으로 사용되는 CAN 라인인 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 1, wherein the gateway device for long-distance CAN communication,
On one side, the internal network is connected,
The other side is implemented to connect 2 channels of CAN line,
The two channels are gateway device for long-distance CAN communication, characterized in that each CAN line is used for transmission and reception.
제 1항에 있어서, 상기 송신 처리부는,
CAN 라인을 통해 외부 네트워크로부터 ACK 신호를 수신하지 않고,
내부 네트워크에서 전송할 CAN 메시지만 CAN 라인을 통해 외부 네트워크에 출력하도록 구현된 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 1, wherein the transmission processing unit,
Without receiving ACK signal from external network via CAN line,
A gateway device for long-distance CAN communication, characterized in that it is implemented to output only CAN messages to be transmitted from the internal network to the external network through the CAN line.
삭제delete 삭제delete 삭제delete 제 1항에 있어서, 상기 수신 처리부는,
CAN 라인을 통해 외부 네트워크로부터 CAN 메시지를 수신하는 제3 CAN 트랜시버;
상기 제3 CAN 트랜시버에서 출력되는 CAN 메시지를 입력받아 ID 필터링을 수행하는 제어부; 및
상기 제어부에서 ID 필터링되어 출력되는 CAN 메시지를 입력받아 내부 네트워크에 출력하는 제4 CAN 트랜시버;를 포함하는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 1, wherein the reception processing unit,
A third CAN transceiver for receiving a CAN message from an external network through a CAN line;
A controller configured to receive a CAN message output from the third CAN transceiver and perform ID filtering; And
And a fourth CAN transceiver configured to receive a CAN message that is ID filtered and output by the controller and outputs it to an internal network.
제 7항에 있어서,
상기 제3 CAN 트랜시버의 입력단자는 상기 제어부에 연결되지 않도록 분리하여 ACK 신호가 CAN 라인에 출력되지 않게 구성되고, 또한
상기 제3 CAN 트랜시버의 입력단자에 입력되는 신호가 상기 CAN 라인을 통해 수신되는 CAN 메시지에 영향을 주지 않는 신호 레벨로 만들기 위하여,
상기 제3 CAN 트랜시버의 입력단자가 풀업저항에 의해 전원(Vdd)에 연결되는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 7,
The input terminal of the third CAN transceiver is configured so that it is not connected to the control unit so that the ACK signal is not output to the CAN line.
In order to make the signal input to the input terminal of the third CAN transceiver at a signal level that does not affect the CAN message received through the CAN line,
The gateway device for long-distance CAN communication, characterized in that the input terminal of the third CAN transceiver is connected to a power source (Vdd) by a pull-up resistor.
제 7항에 있어서, 상기 제어부는,
상기 ID 필터링을 통해,
상기 CAN 라인을 통해 수신되는 CAN 메시지의 ID를 분석하여 내부 네트워크에 포함된 노드의 ID에 해당하는 CAN 메시지가 내부 네트워크에 전달되지 않도록 차단하는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 7, wherein the control unit,
Through the ID filtering,
A gateway device for long-distance CAN communication, characterized in that blocking the CAN message corresponding to the ID of a node included in the internal network from being transmitted to the internal network by analyzing the ID of the CAN message received through the CAN line.
제 7항에 있어서,
상기 제4 CAN 트랜시버의 입력단자는 상기 제어부의 출력단자에 연결되며,
상기 제4 CAN 트랜시버의 출력단자는 오픈되거나, 상기 제어부의 출력단자에 연결되는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 7,
The input terminal of the fourth CAN transceiver is connected to the output terminal of the control unit,
The gateway device for long-distance CAN communication, characterized in that the output terminal of the fourth CAN transceiver is opened or connected to the output terminal of the control unit.
제 7항에 있어서, 상기 제어부는,
내부 네트워크의 노드에 대한 ID 리스트를 갱신하여 내부 메모리에 저장하고,
CAN 라인의 수신용 채널을 통해 CAN 메시지가 수신되면, 상기 내부 네트워크의 노드에 대한 ID 리스트를 참조하여, 상기 수신된 CAN 메시지의 ID가 내부 네트워크의 ID인지 체크하며,
상기 수신된 CAN 메시지의 ID가 내부 네트워크의 ID가 아니면, 상기 수신된 CAN 메시지가 외부 네트워크에서 전송된 CAN 메시지로 판단하여 상기 수신된 CAN 메시지를 내부 네트워크에 전달하는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 7, wherein the control unit,
Updates the ID list of nodes in the internal network and stores them in the internal memory,
When a CAN message is received through the receiving channel of the CAN line, it is checked whether the ID of the received CAN message is the ID of the internal network by referring to the ID list for the node of the internal network,
If the ID of the received CAN message is not the ID of the internal network, the received CAN message is determined as a CAN message transmitted from an external network and the received CAN message is transmitted to the internal network. Device.
제 11항에 있어서, 상기 제어부는,
상기 수신된 CAN 메시지의 ID가 내부 네트워크의 ID이면,
상기 수신된 CAN 메시지가 내부 네트워크에서 전송된 CAN 메시지로 판단하여 상기 수신된 CAN 메시지를 내부 네트워크에 전달하지 않고 버리는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 11, wherein the control unit,
If the ID of the received CAN message is the ID of the internal network,
A gateway device for long-distance CAN communication, characterized in that the received CAN message is determined as a CAN message transmitted from an internal network, and the received CAN message is discarded without being transmitted to the internal network.
제 1항에 있어서,
상기 내부 네트워크는 게이트웨이에 직접 연결된 네트워크를 의미하며, 상기 외부 네트워크는 게이트웨이에 직접 연결되지 않고 CAN 라인을 통해 연결되는 네트워크를 의미하는 것을 특징으로 하는 장거리 CAN 통신용 게이트웨이 장치.
The method of claim 1,
The internal network refers to a network directly connected to the gateway, and the external network refers to a network connected through a CAN line without being directly connected to the gateway.
KR1020190046155A 2019-04-19 2019-04-19 Gateway apparatus for long distance can communication KR102167610B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190046155A KR102167610B1 (en) 2019-04-19 2019-04-19 Gateway apparatus for long distance can communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190046155A KR102167610B1 (en) 2019-04-19 2019-04-19 Gateway apparatus for long distance can communication

Publications (1)

Publication Number Publication Date
KR102167610B1 true KR102167610B1 (en) 2020-10-20

Family

ID=73025465

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190046155A KR102167610B1 (en) 2019-04-19 2019-04-19 Gateway apparatus for long distance can communication

Country Status (1)

Country Link
KR (1) KR102167610B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4297655B2 (en) * 2001-07-09 2009-07-15 エルジー エレクトロニクス インコーポレイティド Packet data convergence protocol structure (PDCP) and method for wireless communication system
JP2016163348A (en) * 2015-03-04 2016-09-05 韓國電子通信研究院Electronics and Telecommunications Research Institute One-way gateway, vehicle network system and method for protecting network within vehicle using one-way gateway
KR20180039586A (en) * 2018-01-29 2018-04-18 주식회사 페스카로 A CAN controller secured from hacking attack based on the CAN protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4297655B2 (en) * 2001-07-09 2009-07-15 エルジー エレクトロニクス インコーポレイティド Packet data convergence protocol structure (PDCP) and method for wireless communication system
JP2016163348A (en) * 2015-03-04 2016-09-05 韓國電子通信研究院Electronics and Telecommunications Research Institute One-way gateway, vehicle network system and method for protecting network within vehicle using one-way gateway
KR20180039586A (en) * 2018-01-29 2018-04-18 주식회사 페스카로 A CAN controller secured from hacking attack based on the CAN protocol

Similar Documents

Publication Publication Date Title
US11146420B2 (en) Method for transmitting data via a serial communication bus, bus interface, and computer program
US7751350B1 (en) Full duplex network radio bridge with low latency and high throughput
US9645958B2 (en) Method and device for transmitting data having a variable bit length
CN111988369B (en) Intelligent controller and sensor network bus, system and method
JP7042899B2 (en) Vibration reduction units for bus systems and methods to reduce vibration tendencies during transitions between different bit states
EP0161836A1 (en) Data communication network
US20160224501A1 (en) Adaptation device for a bus system, and method for operating a can subscriber station and a can fd subscriber station in a bus system
KR20080103574A (en) System and method for transferring data packets through a communication system
KR101676353B1 (en) Method of message control in heterogeneous network and apparatus the same
CN109600288B (en) Isolation circuit and electronic control unit of controller area network CAN signal
KR102167610B1 (en) Gateway apparatus for long distance can communication
US20170192920A1 (en) Transmission unit with checking function
EP2847938A1 (en) Full-duplex ethernet communications over coaxial links using time-division duplexing
CN111164937B (en) Transmitting/receiving device for a bus system and method for reducing the tendency of oscillations during transitions between different bit states
CN102035733B (en) Method for establishing serial data transparent transmission channel by Ethernet
CN111149328B (en) Transmitting/receiving device for a bus system and method for reducing the tendency of oscillations during transitions between different bit states
Strobl et al. Using Ethernet over powerline communication in automotive networks
CN115242576A (en) Additional communication in a standardized outlet of a bidirectional interface between a first and a second communication device
CN110855540B (en) 485 multi-master communication method and system based on single-ring network
EP1989630B1 (en) Interface between busses of different physical layers
CN111343067B (en) Method for establishing relay node of CAN communication network and CAN communication network
CN109039940B (en) Load balancing method and device for data transmission
CN105429892A (en) Method and device of avoiding loops for track traffic network
CN1383298A (en) Connector for multi-machine communication bus
US20200067817A1 (en) Sender communication apparatus and communication apparatus

Legal Events

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