KR102585940B1 - Gateway for vehicle Ethernet communication and message routing method thereof - Google Patents

Gateway for vehicle Ethernet communication and message routing method thereof Download PDF

Info

Publication number
KR102585940B1
KR102585940B1 KR1020220163971A KR20220163971A KR102585940B1 KR 102585940 B1 KR102585940 B1 KR 102585940B1 KR 1020220163971 A KR1020220163971 A KR 1020220163971A KR 20220163971 A KR20220163971 A KR 20220163971A KR 102585940 B1 KR102585940 B1 KR 102585940B1
Authority
KR
South Korea
Prior art keywords
ethernet
messages
network
message
communication
Prior art date
Application number
KR1020220163971A
Other languages
Korean (ko)
Other versions
KR20220166762A (en
Inventor
김한섭
Original Assignee
주식회사 유라코퍼레이션
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 유라코퍼레이션 filed Critical 주식회사 유라코퍼레이션
Priority to KR1020220163971A priority Critical patent/KR102585940B1/en
Publication of KR20220166762A publication Critical patent/KR20220166762A/en
Application granted granted Critical
Publication of KR102585940B1 publication Critical patent/KR102585940B1/en

Links

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/40071Packet processing; Packet format
    • 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/40058Isochronous transmission
    • 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
    • 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/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

본 발명은 차량용 이더넷 통신을 위한 게이트웨이 및 이를 이용한 메시지 라우팅 방법에 관한 것이다.
또한, 본 발명은 캔(CAN) 네트워크에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여 이더넷 제어기가 포함된 이더넷(Ethernet) 네트워트로 라우팅하는 캔-이더넷 다이렉트 전송부와, 캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여 이더넷 네트워트로 라우팅하는 캔-이더넷 인다이렉트 전송부와, 이더넷 네트워트에서 송신되는 이더넷 패킷을 캔 네트워크에 라우팅하는 이더넷-캔 전송부를 구비함으로써, 이더넷 전송 트래픽의 증가를 방지하고 캔-이더넷(CAN-Ethernet) 간의 통신 신뢰성을 확보할 수 있으며, 캔 네트워크의 실시간성과 이더넷 네트워크의 대용량 전송을 보장할 수 있다.
The present invention relates to a gateway for automotive Ethernet communication and a message routing method using the same.
In addition, the present invention includes a CAN-Ethernet direct transmission unit that distinguishes direct messages among CAN messages transmitted in a CAN network and routes them to an Ethernet network including an Ethernet controller, and a CAN-Ethernet direct transmission unit that separates direct messages from CAN messages transmitted in a CAN network and By providing a CAN-Ethernet indirect transmission unit that classifies indirect messages and routes them to the Ethernet network, and an Ethernet-CAN transmission unit that routes Ethernet packets transmitted from the Ethernet network to the CAN network, an increase in Ethernet transmission traffic is achieved. It is possible to prevent and secure communication reliability between CAN-Ethernet, and to ensure real-time performance of the CAN network and large-capacity transmission of the Ethernet network.

Description

차량용 이더넷 통신을 위한 게이트웨이 및 이를 이용한 메시지 라우팅 방법{Gateway for vehicle Ethernet communication and message routing method thereof}Gateway for vehicle Ethernet communication and message routing method using the same {Gateway for vehicle Ethernet communication and message routing method thereof}

본 발명은 차량용 이더넷 통신을 위한 게이트웨이 및 이를 이용한 메시지 라우팅 방법에 관한 것이다.The present invention relates to a gateway for automotive Ethernet communication and a message routing method using the same.

일반적으로, 차량 내부 통신 네트워크는 각 도메인 별 버스 구조형태의 통신 방식으로 통신한다. 버스 구조형태의 통신 방식을 취하고 있기 때문에 타 도메인으로 ECU들 간의 메시지 및 신호를 전달을 하기 위해서는 차량 내부에서 통신게이트웨이를 두어 지정된 메시지 형태로 메시지를 라우팅하여 통신하게 된다. 이때, 주기 및 데이터의 크기는 CAN의 통신방식과 성능 범위 내에서 결정된다.In general, the internal communication network of a vehicle communicates using a bus structure communication method for each domain. Since the communication method is in the form of a bus structure, in order to transmit messages and signals between ECUs to other domains, a communication gateway is installed inside the vehicle to route messages in a designated message format and communicate. At this time, the period and data size are determined within the CAN communication method and performance range.

최근에는, 차량용 이더넷 기술이 적용됨에 따라 이기종간 통신(CAN-Ethernet)라우팅이 적용되었지만, 기존 CAN통신 방식을 바꾸지 않는 범위에서 통신하기 위해 CAN 메시지당 이더넷 하나의 패킷으로 전송한다. Recently, as automotive Ethernet technology has been applied, heterogeneous communication (CAN-Ethernet) routing has been applied, but in order to communicate without changing the existing CAN communication method, each CAN message is transmitted as one Ethernet packet.

이 경우, CAN : Ethernet 의 메시지 교환방식이 CAN통신 방식과 동일하게 1:1로 전송하게 됨으로써, 이더넷의 대용량 전송과 전송효율 측면으로 불합리한 요소가 발생된다. 예를 들어, CAN 통신에서 10ms주기로 30개의 메시지를 보낼 경우, 이더넷 패킷 입장에서 한 개의 패킷으로 전송할 수 있으나, CAN 통신과 동일하게 30개의 패킷을 전송하여야 한다.In this case, the CAN:Ethernet message exchange method is the same as the CAN communication method, transmitting 1:1, which creates an unreasonable element in terms of Ethernet's high-capacity transmission and transmission efficiency. For example, when sending 30 messages in a 10ms cycle in CAN communication, from an Ethernet packet perspective, they can be transmitted as one packet, but 30 packets must be transmitted, the same as CAN communication.

즉, 게이트웨이 입장에서 각 CAN 도메인별로 들어오는 메시지를 이더넷 패킷으로 전송 시 불필요하게 이더넷전송 트래픽이 증가한다. 이기종간 CAN-Ethernet 라우팅 시 CAN 메시지와 이더넷 패킷 비율이 1:1로 라우팅되면, 물리적으로 이더넷의 속도, 전송량이 증가하였지만, CAN의 통신방식 및 기준에 맞춰서 네트워크 토폴리지가 구성된다.In other words, when the gateway transmits incoming messages for each CAN domain as Ethernet packets, Ethernet transmission traffic increases unnecessarily. When routing CAN-Ethernet between heterogeneous types, if the CAN message and Ethernet packet ratio is routed at 1:1, the speed and transmission volume of Ethernet have physically increased, but the network topology is configured according to the CAN communication method and standards.

이때, 차량내부 통신게이트웨이 입장에서 여러 CAN 도메인(바디, 샤시, 파워트레인, 멀티미디어)의 메시지를 이더넷 제어기로 라우팅하게 되면 게이트웨이 입장에서는 한번에 보낼 수 있는 패킷의 수가 CAN 도메인별 메시지 수만큼 늘어나 이더넷 전송 트래픽이 증가된다.At this time, when messages from multiple CAN domains (body, chassis, powertrain, multimedia) are routed to the Ethernet controller from the perspective of the in-vehicle communication gateway, the number of packets that can be sent at once increases by the number of messages for each CAN domain, increasing the Ethernet transmission traffic. This increases.

결론적으로, CAN의 통신(500Kbps, 8byte)과 이더넷 통신(100Mbps, 1400byte)간의 라우팅 통신 효율성 저하 및 차량내부 네트워크의 부하가 커져서 차량용 이더넷의 이점이 없어지며, 불합리한 통신 구조로 라우팅되는 문제점이 있다.In conclusion, the routing communication efficiency between CAN communication (500Kbps, 8byte) and Ethernet communication (100Mbps, 1400byte) decreases and the load on the in-vehicle network increases, eliminating the advantages of automotive Ethernet, and there is a problem of routing with an unreasonable communication structure.

본 발명은 상기와 같은 문제점을 감안하여 안출된 것으로, 캔 네트워크에서 이더넷 네크워트로 메시지의 라우팅 시 이더넷 전송 트래픽의 증가를 방지할 수 있는 차량용 이더넷 통신을 위한 게이트웨이 및 이를 이용한 메시지 라우팅 방법을 제공하는데 그 목적이 있다.The present invention was developed in consideration of the above problems, and provides a gateway for automotive Ethernet communication that can prevent an increase in Ethernet transmission traffic when routing messages from a CAN network to an Ethernet network, and a message routing method using the same. It has a purpose.

본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 또 다른 목적들은 아래의 기재로부터 당업자에게 명확하게 이해될 수 있을 것이다.The objects of the present invention are not limited to the objects mentioned above, and other objects not mentioned will be clearly understood by those skilled in the art from the description below.

상기와 같은 목적을 달성하기 위한 본 발명은 캔(CAN) 네트워크에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여, 이더넷 제어기가 포함된 이더넷(Ethernet) 네트워트로 라우팅하는 캔-이더넷 다이렉트 전송부; 캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여, 이더넷 네트워트로 라우팅하는 캔-이더넷 인다이렉트 전송부; 및 이더넷 네트워트에서 송신되는 이더넷 패킷을, 캔 네트워크에 라우팅하는 이더넷-캔 전송부;를 포함하고, 상기 이더넷-캔 전송부는, 이더넷 패킷의 헤더에 설정된 통신 주기에 대한 정보와 사전에 정의된 오프셋 위치에 대한 정보에 기반하여 캔 메시지들을 필터링하고, 필터링된 통신 주기에 따라 각각의 캔 메시지를 라우팅하며, 이더넷 패킷의 수신 시, 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 함께 수신하거나, 맵 테이블 또는 메시지 설정파일에 정의된 정보에 기반하여 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 획득하는 것을 특징으로 하는 차량용 이더넷 통신을 위한 게이트웨이를 제공한다.The present invention to achieve the above object is a CAN-Ethernet direct transmission that distinguishes direct messages among CAN messages transmitted in a CAN network and routes them to an Ethernet network including an Ethernet controller. wealth; A CAN-Ethernet indirect transmission unit that separates indirect messages from CAN messages and routes them to the Ethernet network; And an Ethernet-CAN transmission unit that routes the Ethernet packet transmitted from the Ethernet network to the CAN network, wherein the Ethernet-CAN transmission unit includes information about the communication cycle set in the header of the Ethernet packet and a predefined offset position. Filters CAN messages based on information about the CAN messages, routes each CAN message according to the filtered communication cycle, and when receiving an Ethernet packet, information about the address or port to send the CAN message is also received, or a map table Alternatively, a gateway for automotive Ethernet communication is provided, characterized in that it obtains information about an address or port to transmit a CAN message based on information defined in a message configuration file.

또한, 본 발명은 차량용 이더넷 통신을 위한 게이트웨이에서 수행되는 메시지 라우팅 방법으로서, 캔(CAN) 네트워크에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여, 이더넷 제어기가 포함된 이더넷(Ethernet) 네트워트로 라우팅하는 캔-이더넷 다이렉트 전송단계; 캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여, 이더넷 네트워트로 라우팅하는 캔-이더넷 인다이렉트 전송단계; 및 이더넷 네트워트에서 송신되는 이더넷 패킷을, 캔 네트워크에 라우팅하는 이더넷-캔 전송단계;를 포함하고, 상기 이더넷-캔 전송단계는, 이더넷 패킷의 헤더에 설정된 통신 주기에 대한 정보와 사전에 정의된 오프셋 위치에 대한 정보에 기반하여 캔 메시지들을 필터링하고, 필터링된 통신 주기에 따라 각각의 캔 메시지를 라우팅하며, 이더넷 패킷의 수신 시, 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 함께 수신하거나, 맵 테이블 또는 메시지 설정파일에 정의된 정보에 기반하여 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 획득하는 것을 특징으로 하는 차량용 이더넷 통신을 위한 메시지 라우팅 방법을 제공한다.In addition, the present invention is a message routing method performed in a gateway for automotive Ethernet communication, which distinguishes direct messages among CAN messages transmitted in a CAN network and connects them to an Ethernet network including an Ethernet controller. Can-Ethernet direct transmission step of routing to; A CAN-Ethernet indirect transmission step of distinguishing indirect messages from CAN messages and routing them to an Ethernet network; And an Ethernet-CAN transmission step of routing an Ethernet packet transmitted from an Ethernet network to a CAN network, wherein the Ethernet-CAN transmission step includes information about the communication cycle set in the header of the Ethernet packet and a predefined offset Filters CAN messages based on information about location, routes each CAN message according to the filtered communication cycle, and receives information about the address or port to send the CAN message when receiving an Ethernet packet, or provides a map Provides a message routing method for automotive Ethernet communication, characterized in that information on an address or port to transmit a CAN message is obtained based on information defined in a table or message configuration file.

전술한 과제해결 수단에 의해 본 발명은 캔 네트워크에서 수신되는 복수의 캔 메시지를 하나의 이더넷 패킷에 저장하여 이더넷 네트워크에 라우팅함으로써, 이더넷 제어기 간 대용량 메시지의 라우팅을 가능하게 하는 효과가 있다.By solving the problem described above, the present invention has the effect of enabling routing of large messages between Ethernet controllers by storing a plurality of CAN messages received in the CAN network in one Ethernet packet and routing them to the Ethernet network.

또한, 본 발명은 대용량 메시지의 라우팅이 가능하게 함으로써, 이더넷 전송 트래픽의 증가를 방지하고 캔-이더넷(CAN-Ethernet) 간의 통신 신뢰성을 확보할 수 있는 효과가 있다.In addition, the present invention has the effect of preventing an increase in Ethernet transmission traffic and securing communication reliability between CAN and Ethernet by enabling routing of large messages.

또한, 본 발명은 캔 메시지의 통신 주기에 따라 이더넷 패킷을 라우팅함으로써, 캔 네트워크의 실시간성을 확보할 수 있으며, 이더넷 네트워크에서 수신한 캔 메시지들을 캔 네트워크에 다중 라우팅할 수 있는 효과가 있다.In addition, the present invention can secure real-time performance of the CAN network by routing Ethernet packets according to the communication cycle of the CAN message, and has the effect of enabling multiple routing of CAN messages received from the Ethernet network to the CAN network.

또한, 본 발명은 캔 네트워크와 이더넷 네트워크 간의 통신 이질감을 줄일 수 있고, 차량의 내부와 외부에서 모두 활용할 수 있는 범용성을 확보할 수 있는 효과가 있다.In addition, the present invention has the effect of reducing communication heterogeneity between the CAN network and the Ethernet network and securing versatility that can be used both inside and outside the vehicle.

도 1 및 도 2는 본 발명의 일실시예에 따른 차량용 이더넷 통신을 위한 게이트웨이를 설명하기 위한 도면.
도 3은 본 발명의 일실시예에 따른 캔-이더넷 다이렉트 전송부의 동작 과정을 설명하기 위한 도면.
도 4는 본 발명의 일실시예에 따른 캔-이더넷 인다이렉트 전송부의 동작 과정을 설명하기 위한 도면.
도 5는 본 발명의 일실시예에 따른 이더넷-캔 전송부의 동작 과정을 설명하기 위한 도면.
도 6은 차량용 이더넷 통신을 위한 메시지 라우팅 방법을 설명하기 위한 도면.
1 and 2 are diagrams for explaining a gateway for automotive Ethernet communication according to an embodiment of the present invention.
Figure 3 is a diagram for explaining the operation process of the CAN-Ethernet direct transmission unit according to an embodiment of the present invention.
Figure 4 is a diagram for explaining the operation process of the Can-Ethernet indirect transmission unit according to an embodiment of the present invention.
Figure 5 is a diagram for explaining the operation process of the Ethernet-CAN transmission unit according to an embodiment of the present invention.
Figure 6 is a diagram for explaining a message routing method for automotive Ethernet communication.

하기의 설명에서 본 발명의 특정 상세들이 본 발명의 전반적인 이해를 제공하기 위해 나타나 있는데, 이들 특정 상세들 없이 또한 이들의 변형에 의해서도 본 발명이 용이하게 실시될 수 있다는 것은 이 기술분야에서 통상의 지식을 가진 자에게 자명할 것이다.In the following description, specific details of the present invention are set forth to provide a general understanding of the present invention; however, it is known to those skilled in the art that the present invention can be readily practiced without these specific details and with modifications thereof. It will be self-evident to those who have it.

이하, 본 발명에 따른 바람직한 실시예를 첨부된 도 1 내지 도 6을 참조하여 상세히 설명하되, 본 발명에 따른 동작 및 작용을 이해하는데 필요한 부분을 중심으로 설명한다.Hereinafter, a preferred embodiment according to the present invention will be described in detail with reference to the accompanying FIGS. 1 to 6, focusing on the parts necessary to understand the operation and action according to the present invention.

도 1 및 도 2는 본 발명의 일실시예에 따른 차량용 이더넷 통신을 위한 게이트웨이를 설명하기 위한 도면이고, 도 3은 본 발명의 일실시예에 따른 캔-이더넷 다이렉트 전송부의 동작 과정을 설명하기 위한 도면이며, 도 4는 본 발명의 일실시예에 따른 캔-이더넷 인다이렉트 전송부의 동작 과정을 설명하기 위한 도면이고, 도 5는 본 발명의 일실시예에 따른 이더넷-캔 전송부의 동작 과정을 설명하기 위한 도면이다.1 and 2 are diagrams for explaining a gateway for automotive Ethernet communication according to an embodiment of the present invention, and Figure 3 is a diagram for explaining the operation process of the Can-Ethernet direct transmission unit according to an embodiment of the present invention. It is a drawing, and Figure 4 is a diagram for explaining the operation process of the CAN-Ethernet indirect transmission unit according to an embodiment of the present invention, and Figure 5 is a diagram for explaining the operation process of the Ethernet-CAN transmission unit according to an embodiment of the present invention. This is a drawing for this purpose.

도 1 내지 도 5를 참조하면, 본 발명의 일실시예에 따른 차량용 이더넷 통신을 위한 게이트웨이(100)는 캔-이더넷 다이렉트 전송부(110), 캔-이더넷 인다이렉트 전송부(120) 및 이더넷-캔 전송부(130)를 포함하여 구성된다.1 to 5, the gateway 100 for automotive Ethernet communication according to an embodiment of the present invention includes a Can-Ethernet direct transmission unit 110, a Can-Ethernet indirect transmission unit 120, and an Ethernet-Ethernet direct transmission unit 110. It is configured to include a can transmission unit 130.

상기 캔-이더넷 다이렉트 전송부(110)는 캔(CAN) 네트워크(10)에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여, 이더넷 제어기가 포함된 이더넷(Ethernet) 네트워트(20)로 라우팅한다.The CAN-Ethernet direct transmission unit 110 distinguishes direct messages among CAN messages transmitted from the CAN network 10 and routes them to the Ethernet network 20 including the Ethernet controller. do.

이러한, 캔-이더넷 인다이렉트 전송부(120)는 도 3에 도시된 바와 같이, 복수의 다이렉트 메시지를 하나의 이더넷 패킷으로 라우팅할 수 있으며, 이를 위해, 다이렉트 메시지들을 메모리 또는 버퍼에 저장하여 이더넷 패킷을 생성하고, 다이렉트 메시지들의 통신 주기에 대한 정보를 이더넷 패킷의 헤더에 설정한 후 이더넷 네트워트(20)에 라우팅할 수 있다.As shown in FIG. 3, the CAN-Ethernet indirect transmission unit 120 can route a plurality of direct messages into one Ethernet packet. To this end, the direct messages are stored in a memory or buffer and converted into an Ethernet packet. can be created, information about the communication cycle of direct messages can be set in the header of the Ethernet packet, and then routed to the Ethernet network 20.

여기서, 다이렉트 메시지들을 10ms, 20ms, 50ms 내지 1000ms의 통신 주기에 따라 구분되도록 메모리 또는 버퍼에 저장되고, 이더넷 패킷의 헤더에 설정되는 통신 주기에 대한 정보는 ‘0’ 또는 ‘1’로 설정되는 비트맵(Bitmap) 값으로 저장될 수 있다.Here, direct messages are stored in a memory or buffer to be classified according to a communication period of 10ms, 20ms, 50ms to 1000ms, and information about the communication period set in the header of the Ethernet packet is a bit set to '0' or '1'. It can be stored as a Map (Bitmap) value.

이를 위해, 모든 캔 메시지의 특성이 정의된 맵 테이블 또는 메시지 설정파일이 사전에 구비될 수 있으며, 맵 테이블 또는 메시지 설정파일은 캔 메시지별 또는 캔 시그널(Signal)별로 이더넷 패킷의 시작 위치와 오프셋(Offset), 통신 주기, 아이피(IP)와 포트(port)를 포함하는 송수신 주소에 대한 정보가 정의되며, 캔 메시지를 수신할 이더넷 제어기와 피어 투 피어(Peer to Peer) 방식으로 정의될 수 있다.For this purpose, a map table or message setting file in which the characteristics of all CAN messages are defined can be prepared in advance, and the map table or message setting file contains the start position and offset (offset) of the Ethernet packet for each CAN message or CAN signal. Offset), communication cycle, information on sending and receiving addresses including IP and port are defined, and can be defined in a peer-to-peer manner with the Ethernet controller that will receive the CAN message.

또한, 캔-이더넷 다이렉트 전송부(110)는 최소 통신 주기에 따라 주기적으로 이더넷 패킷을 라우팅하지만, 이벤트 메시지로 수신된 캔 메시지의 경우에는 예외적으로 실시간으로 이더넷 네트워트(20)에 라우팅할 수도 있다.In addition, the CAN-Ethernet direct transmission unit 110 periodically routes Ethernet packets according to the minimum communication cycle, but in the case of a CAN message received as an event message, it may be exceptionally routed to the Ethernet network 20 in real time.

상기 캔-이더넷 인다이렉트 전송부(120)는 캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여, 이더넷 네트워트(20)로 라우팅한다.The CAN-Ethernet indirect transmission unit 120 distinguishes indirect messages from CAN messages and routes them to the Ethernet network 20.

이러한, 캔-이더넷 인다이렉트 전송부(120)는 도 4에 도시된 바와 같이, 복수의 인다이렉트 메시지 또는 인다이렉트 시그널을 하나의 이더넷 패킷으로 라우팅할 수 있으며, 메모리 또는 버퍼에서 사전에 정의되는 오프셋 위치에 각각의 인다이렉트 메시지를 순차 저장하여 이더넷 패킷을 생성하고, 인다이렉트 메시지들의 통신 주기에 대한 정보를 이더넷 패킷의 헤더에 설정한 후 이더넷 네트워트(20)에 라우팅할 수 있다.As shown in FIG. 4, the CAN-Ethernet indirect transmission unit 120 can route a plurality of indirect messages or indirect signals as one Ethernet packet, with a predefined offset in memory or buffer. Ethernet packets can be created by sequentially storing each indirect message in a location, and information about the communication cycle of the indirect messages can be set in the header of the Ethernet packet and then routed to the Ethernet network 20.

이 경우에도, 전술한 맵 테이블 또는 메시지 설정파일에 의해 인다이렉트 메시지가 저장되는 오프셋 위치가 정의되며, 이더넷 패킷의 헤더에 설정되는 통신 주기에 대한 정보는 ‘0’ 또는 ‘1’로 설정되는 비트맵 값으로 저장된다.In this case as well, the offset position where the direct message is stored is defined by the map table or message setting file described above, and the information about the communication cycle set in the header of the Ethernet packet is a bit set to '0' or '1'. It is stored as a map value.

그리고, 캔-이더넷 인다이렉트 전송부(120)는 최소 통신 주기에 따라 주기적으로 이더넷 패킷을 라우팅하되, 인다이렉트 메시지가 이벤트 메시지인 경우에는 실시간으로 이더넷 네트워트(20)에 라우팅한다.In addition, the CAN-Ethernet indirect transmission unit 120 periodically routes Ethernet packets according to the minimum communication period, but if the indirect message is an event message, it routes it to the Ethernet network 20 in real time.

상기 이더넷-캔 전송부(130)는 이더넷 네트워트(20)에서 송신되는 이더넷(Ethernet) 패킷을, 캔 네트워크(10)에 라우팅한다.The Ethernet-CAN transmission unit 130 routes Ethernet packets transmitted from the Ethernet network 20 to the CAN network 10.

이러한, 이더넷-캔 전송부(130)는 도 5에 도시된 바와 같이, 이더넷 패킷이 수신되면, 이더넷 패킷의 헤더에 설정된 통신 주기에 대한 정보와 사전에 정의된 오프셋 위치에 대한 정보에 따라 캔 메시지들을 필터링하여 메모리 또는 버퍼에 저장하고, 필터링된 통신 주기에 따라 각각의 캔 메시지를 캔 네트워크(10)에 라우팅할 수 있다.As shown in FIG. 5, when an Ethernet packet is received, the Ethernet-CAN transmission unit 130 transmits a CAN message according to information about the communication cycle set in the header of the Ethernet packet and information about the predefined offset position. They can be filtered and stored in memory or a buffer, and each CAN message can be routed to the CAN network 10 according to the filtered communication cycle.

또한, 이더넷-캔 전송부(130)는 이더넷 패킷의 수신 시 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 함께 수신할 수도 있고, 맵 테이블 또는 메시지 설정파일에 정의된 정보에 기반하여 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 획득할 수도 있다.In addition, when receiving an Ethernet packet, the Ethernet-CAN transmission unit 130 may also receive information about the address or port to transmit the CAN message, and may transmit the CAN message based on information defined in the map table or message setting file. You can also obtain information about the address or port to transmit.

도 6은 차량용 이더넷 통신을 위한 메시지 라우팅 방법을 설명하기 위한 도면이다.Figure 6 is a diagram for explaining a message routing method for automotive Ethernet communication.

도 6을 참조하여, 본 발명의 일실시예에 따른 차량용 이더넷 통신을 위한 게이트웨이(100)에서 수행되는 차량용 이더넷 통신을 위한 메시지 라우팅 방법을 설명한다.Referring to FIG. 6, a message routing method for automotive Ethernet communication performed in the gateway 100 for automotive Ethernet communication according to an embodiment of the present invention will be described.

다만, 도 6에 도시된 차량용 이더넷 통신을 위한 메시지 라우팅 방법에서 수행되는 기능은 모두 도 1 내지 도 5를 참조하여 설명한 차량용 이더넷 통신을 위한 게이트웨이(100)에서 수행되므로, 명시적인 설명이 없어도, 도 1 내지 도 5를 참조하여 설명한 모든 기능은 본 발명의 바람직한 실시예에 따른 차량용 이더넷 통신을 위한 메시지 라우팅 방법에서 수행되고, 도 6을 참조하여 설명하는 모든 기능은 본 발명의 바람직한 실시예에 따른 차량용 이더넷 통신을 위한 게이트웨이(100)에서 그대로 수행됨을 주의해야 한다.However, since all functions performed in the message routing method for automotive Ethernet communication shown in FIG. 6 are performed in the gateway 100 for automotive Ethernet communication described with reference to FIGS. 1 to 5, even without explicit explanation, FIG. All functions described with reference to FIGS. 1 to 5 are performed in the message routing method for automotive Ethernet communication according to a preferred embodiment of the present invention, and all functions described with reference to FIG. 6 are performed in the message routing method for automotive Ethernet communication according to a preferred embodiment of the present invention. It should be noted that this is performed as is in the gateway 100 for Ethernet communication.

먼저, 게이트웨이(100)는 캔(CAN) 네트워크에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여 이더넷 제어기가 포함된 이더넷 네트워트(20)로 라우팅한다(S100).First, the gateway 100 distinguishes direct messages from CAN messages transmitted in the CAN network and routes them to the Ethernet network 20 including the Ethernet controller (S100).

이때, 게이트웨이(100)는 다이렉트 메시지들을 통신 주기별로 구분하여 메모리 또는 버퍼에 저장하고, 저장된 다이렉트 메시지들의 통신 주기에 대한 정보를 헤더에 설정한 이더넷 패킷을 이더넷 네트워트(20)로 라우팅할 수 있다.At this time, the gateway 100 may separate direct messages by communication cycle and store them in a memory or buffer, and route Ethernet packets with information about the communication cycle of the stored direct messages set in the header to the Ethernet network 20.

그 다음, 게이트웨이(100)는 캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여 이더넷 네트워트(20)로 라우팅한다(S200).Next, the gateway 100 distinguishes direct messages from can messages and routes them to the Ethernet network 20 (S200).

이때, 게이트웨이(100)는 인다이렉트 메시지들을 사전에 정의된 오프셋 위치에 순차 저장하고, 저장된 인다이렉트 메시지들의 통신 주기에 대한 정보를 헤더에 설정한 이더넷 패킷을 이더넷 네트워트(20)로 라우팅할 수 있다.At this time, the gateway 100 sequentially stores the indirect messages at a predefined offset position and routes an Ethernet packet with information about the communication period of the stored indirect messages set in the header to the Ethernet network 20. .

또한, 전술한 오프셋 위치는 맵 테이블 또는 메시지 설정파일에 의해 사전에 정의될 수 있으며, 맵 테이블 또는 메시지 설정파일은 캔 메시지별 또는 캔 시그널(Signal)별로 이더넷 패킷의 시작 위치와 오프셋(Offset), 통신 주기, 아이피(IP)와 포트(port)를 포함하는 송수신 주소에 대한 정보가 정의될 수 있다.In addition, the above-mentioned offset position can be defined in advance by a map table or message setting file, and the map table or message setting file includes the start position and offset of the Ethernet packet for each CAN message or CAN signal, Information about transmission and reception addresses, including communication cycle, IP, and port, can be defined.

한편, 전술한 S100단계와 S200단계는 최소 통신 주기에 따라 주기적으로 이더넷 패킷을 라우팅할 수 있으나, 예외적으로, 캔 메시지가 이벤트 메시지인 경우에는 이더넷 네트워트(20)에 실시간으로 라우팅할 수도 있다.Meanwhile, the above-described steps S100 and S200 may periodically route Ethernet packets according to the minimum communication cycle, but exceptionally, if the CAN message is an event message, they may be routed to the Ethernet network 20 in real time.

그 다음, 게이트웨이(100)는 이더넷 네트워트(20)에서 송신되는 이더넷(Ethernet) 패킷을 캔 네트워크(10)에 라우팅한다(S300).Next, the gateway 100 routes the Ethernet packet transmitted from the Ethernet network 20 to the CAN network 10 (S300).

이때, 게이트웨이(100)는 이더넷 패킷의 헤더에 설정된 통신 주기에 대한 정보 및 오프셋 위치에 대한 정보에 기반하여 캔 메시지들을 필터링하고, 필터링된 통신 주기에 따라 각각의 캔 메시지를 라우팅할 수 있다.At this time, the gateway 100 may filter CAN messages based on information about the communication cycle and information about the offset position set in the header of the Ethernet packet, and route each CAN message according to the filtered communication cycle.

한편, S300단계가 완료되면 전술한 S100단계부터 다시 반복할 수 있으며, S100단계와 S200단계 및 S300단계가 동시에 수행될 수도 있다.Meanwhile, when step S300 is completed, the above-described step S100 can be repeated again, and step S100, step S200, and step S300 may be performed simultaneously.

이상에서는 본 발명의 바람직한 실시예를 예시적으로 설명하였으나, 본 발명의 범위는 이와 같은 특정 실시예에만 한정되는 것은 아니며, 특허청구범위에 기재된 범주 내에서 적절하게 변경 가능한 것이다.Although preferred embodiments of the present invention have been described above by way of example, the scope of the present invention is not limited to these specific embodiments, and may be appropriately modified within the scope stated in the claims.

100 : 게이트웨이
110 : 캔-이더넷 다이렉트 전송부
120 : 캔-이더넷 인다이렉트 전송부
130 : 이더넷-캔 전송부
100: gateway
110: CAN-Ethernet direct transmission unit
120: CAN-Ethernet indirect transmission unit
130: Ethernet-CAN transmission unit

Claims (2)

캔(CAN) 네트워크에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여, 이더넷 제어기가 포함된 이더넷(Ethernet) 네트워트로 라우팅하는 캔-이더넷 다이렉트 전송부;
캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여, 이더넷 네트워트로 라우팅하는 캔-이더넷 인다이렉트 전송부; 및
이더넷 네트워트에서 송신되는 이더넷 패킷을, 캔 네트워크에 라우팅하는 이더넷-캔 전송부;를 포함하고,
상기 이더넷-캔 전송부는,
이더넷 패킷의 헤더에 설정된 통신 주기에 대한 정보와 사전에 정의된 오프셋 위치에 대한 정보에 기반하여 캔 메시지들을 필터링하고, 필터링된 통신 주기에 따라 각각의 캔 메시지를 라우팅하며,
이더넷 패킷의 수신 시, 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 함께 수신하거나, 모든 캔 메시지의 특성이 정의된 맵 테이블 또는 메시지 설정파일에 정의된 정보에 기반하여 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 획득하는 것을 특징으로 하는 차량용 이더넷 통신을 위한 게이트웨이.
A CAN-Ethernet direct transmission unit that separates direct messages from CAN messages transmitted in a CAN network and routes them to an Ethernet network including an Ethernet controller;
A CAN-Ethernet indirect transmission unit that separates indirect messages from CAN messages and routes them to the Ethernet network; and
It includes an Ethernet-CAN transmission unit that routes Ethernet packets transmitted from the Ethernet network to the CAN network,
The Ethernet-CAN transmission unit,
Filters CAN messages based on information about the communication cycle set in the header of the Ethernet packet and information about the predefined offset position, and routes each CAN message according to the filtered communication cycle.
When receiving an Ethernet packet, information about the address or port to which the CAN message will be transmitted is also received, or the address or port to which the CAN message will be transmitted based on information defined in the map table or message setting file where the characteristics of all CAN messages are defined. A gateway for automotive Ethernet communication characterized by obtaining information about the port.
차량용 이더넷 통신을 위한 게이트웨이에서 수행되는 메시지 라우팅 방법으로서,
캔(CAN) 네트워크에서 송신되는 캔 메시지들 중 다이렉트(Direct) 메시지들을 구분하여, 이더넷 제어기가 포함된 이더넷(Ethernet) 네트워트로 라우팅하는 캔-이더넷 다이렉트 전송단계;
캔 메시지들 중에서 인다이렉트(Indirect) 메시지들을 구분하여, 이더넷 네트워트로 라우팅하는 캔-이더넷 인다이렉트 전송단계; 및
이더넷 네트워트에서 송신되는 이더넷 패킷을, 캔 네트워크에 라우팅하는 이더넷-캔 전송단계;를 포함하고,
상기 이더넷-캔 전송단계는,
이더넷 패킷의 헤더에 설정된 통신 주기에 대한 정보와 사전에 정의된 오프셋 위치에 대한 정보에 기반하여 캔 메시지들을 필터링하고, 필터링된 통신 주기에 따라 각각의 캔 메시지를 라우팅하며,
이더넷 패킷의 수신 시, 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 함께 수신하거나, 모든 캔 메시지의 특성이 정의된 맵 테이블 또는 메시지 설정파일에 정의된 정보에 기반하여 캔 메시지를 송신할 주소 또는 포트에 대한 정보를 획득하는 것을 특징으로 하는 차량용 이더넷 통신을 위한 메시지 라우팅 방법.
A message routing method performed in a gateway for automotive Ethernet communication,
A CAN-Ethernet direct transmission step of distinguishing direct messages from CAN messages transmitted in a CAN network and routing them to an Ethernet network including an Ethernet controller;
A CAN-Ethernet indirect transmission step of distinguishing indirect messages from CAN messages and routing them to an Ethernet network; and
It includes an Ethernet-CAN transmission step of routing Ethernet packets transmitted from the Ethernet network to the CAN network,
The Ethernet-CAN transmission step is,
Filters CAN messages based on information about the communication cycle set in the header of the Ethernet packet and information about the predefined offset position, and routes each CAN message according to the filtered communication cycle.
When receiving an Ethernet packet, information about the address or port to which the CAN message will be transmitted is also received, or the address or port to which the CAN message will be transmitted based on information defined in the map table or message setting file where the characteristics of all CAN messages are defined. A message routing method for automotive Ethernet communication, characterized by obtaining information about the port.
KR1020220163971A 2017-12-29 2022-11-30 Gateway for vehicle Ethernet communication and message routing method thereof KR102585940B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220163971A KR102585940B1 (en) 2017-12-29 2022-11-30 Gateway for vehicle Ethernet communication and message routing method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020170184826A KR102474720B1 (en) 2017-12-29 2017-12-29 Gateway for vehicle Ethernet communication and message routing method thereof
KR1020220163971A KR102585940B1 (en) 2017-12-29 2022-11-30 Gateway for vehicle Ethernet communication and message routing method thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020170184826A Division KR102474720B1 (en) 2017-12-29 2017-12-29 Gateway for vehicle Ethernet communication and message routing method thereof

Publications (2)

Publication Number Publication Date
KR20220166762A KR20220166762A (en) 2022-12-19
KR102585940B1 true KR102585940B1 (en) 2023-10-06

Family

ID=67261828

Family Applications (3)

Application Number Title Priority Date Filing Date
KR1020170184826A KR102474720B1 (en) 2017-12-29 2017-12-29 Gateway for vehicle Ethernet communication and message routing method thereof
KR1020220128932A KR102585939B1 (en) 2017-12-29 2022-10-07 Gateway for vehicle Ethernet communication and message routing method thereof
KR1020220163971A KR102585940B1 (en) 2017-12-29 2022-11-30 Gateway for vehicle Ethernet communication and message routing method thereof

Family Applications Before (2)

Application Number Title Priority Date Filing Date
KR1020170184826A KR102474720B1 (en) 2017-12-29 2017-12-29 Gateway for vehicle Ethernet communication and message routing method thereof
KR1020220128932A KR102585939B1 (en) 2017-12-29 2022-10-07 Gateway for vehicle Ethernet communication and message routing method thereof

Country Status (1)

Country Link
KR (3) KR102474720B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024053802A1 (en) * 2022-09-07 2024-03-14 엘지전자 주식회사 Signal processing device and vehicle communication device including same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140124255A (en) * 2013-04-16 2014-10-24 한국전자통신연구원 Gateway and Method for delivering Message thereof
KR101500094B1 (en) * 2013-07-01 2015-03-06 현대자동차주식회사 Message transmission/reception system and method for ethernet-based vehicle network

Also Published As

Publication number Publication date
KR102474720B1 (en) 2022-12-06
KR20220166762A (en) 2022-12-19
KR20220141271A (en) 2022-10-19
KR102585939B1 (en) 2023-10-06
KR20190081945A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN113204226B (en) Vehicle diagnosis system and method
JP6506850B2 (en) Vehicle gateway device
JP2021114798A (en) Gateway device, on-vehicle network system, transfer method, and program
KR101534923B1 (en) Ethernet backbone network system for vehicle and method for controlling fail safe of the ethernet backbone network system
WO2020150872A1 (en) Ethernet and controller area network protocol interconversion for in-vehicle networks
US20180324640A1 (en) Vehicle-Mounted Gateway Device, Electronic Control Device, and Vehicle-Mounted Network System
KR102585940B1 (en) Gateway for vehicle Ethernet communication and message routing method thereof
US20090070468A1 (en) Communication system and communication method
US10666457B2 (en) Relay device
DE102017120505A1 (en) System for verifying an unregistered device based on information from an Ethernet switch and method for the same
KR102657333B1 (en) Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same
CN112511429A (en) Method, node, controller and computer readable medium for information transmission and processing
US8249101B2 (en) Mobile ad hoc network configured as a virtual internet protocol network
JP7400820B2 (en) In-vehicle communication system, in-vehicle device and vehicle communication method
CN111371691B (en) Multicast frame transmission method under multi-channel binding condition
CN101262448A (en) IP data packet transmission method and system
CN111464443A (en) Message forwarding method, device, equipment and storage medium based on service function chain
KR101573549B1 (en) Data transmission system and method for transmitting data between different type protocols
US20130297783A1 (en) Network
KR101514398B1 (en) Gateway in-vehicle based on virtual bus concepet and message transmission method thereof
JP7200803B2 (en) Relay device and relay method
KR102429410B1 (en) Routing method and apparatus
JP2007135107A (en) Relay connection unit
JP7347182B2 (en) relay device
Yoo et al. Unidirectional ring ethernet for low-complexity in-vehicle control network

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right