KR20200030167A - Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same - Google Patents

Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same Download PDF

Info

Publication number
KR20200030167A
KR20200030167A KR1020180108628A KR20180108628A KR20200030167A KR 20200030167 A KR20200030167 A KR 20200030167A KR 1020180108628 A KR1020180108628 A KR 1020180108628A KR 20180108628 A KR20180108628 A KR 20180108628A KR 20200030167 A KR20200030167 A KR 20200030167A
Authority
KR
South Korea
Prior art keywords
message
frame
type
protocol
received
Prior art date
Application number
KR1020180108628A
Other languages
Korean (ko)
Other versions
KR102657333B1 (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 KR1020180108628A priority Critical patent/KR102657333B1/en
Publication of KR20200030167A publication Critical patent/KR20200030167A/en
Application granted granted Critical
Publication of KR102657333B1 publication Critical patent/KR102657333B1/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/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/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • 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/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • 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)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

Disclosed is an Ethernet controller for a vehicle comprising: a protocol conversion module for converting a message of a CAN communication protocol into a message of an Ethernet protocol; a frame type determination module for determining whether a format of a received message is converted and whether a frame corresponding to the received message is a single type or a multi-type; a frame order determination module for determining a reception order of a multi-type frame when the frame corresponding to the received message is determined as the multi-type frame by the frame type determination module; a data accumulation module for accumulating and storing messages when it is determined that the messages are received in an order preset by the frame order determination module and terminating message reception when a message corresponding to a frame of the last order is stored; and a flow control message transmission module for writing a flow control message when a message corresponding to a first frame of the multi-type frame is transmitted by the frame order determination module and transmitting the written flow control message to a communication target CAN communication protocol communication device.

Description

차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법{ETHERNET CONTROLLER FOR VEHICLE, ETHERNET NETWORK INCLUDING THE SAME AND METHOD OF COMMUNICATION BETWEEN CAN COMMUNICATIONI PROTOCOL AND THE SAME}ETHERNET CONTROLLER FOR VEHICLE, ETHERNET NETWORK INCLUDING THE SAME AND METHOD OF COMMUNICATION BETWEEN CAN COMMUNICATIONI PROTOCOL AND THE SAME}

본 발명은 차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법에 관한 것으로, 더욱 상세하게는 CAN 통신 프로토콜을 따르는 장치와의 통신을 위해 CAN 통신 신호를 변환하고 CAN 통신에서 적용되는 플로우 컨트롤(Flow Control) 기능을 지원할 수 있는 차량용 이더넷 제어기 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법에 관한 것이다.The present invention relates to a vehicle Ethernet controller, a vehicle Ethernet network including the same, and a communication method with a CAN communication protocol using the same, more specifically, for converting a CAN communication signal and communicating with a device that complies with the CAN communication protocol. The present invention relates to a vehicle Ethernet controller capable of supporting a flow control function applied in a communication method and a communication method with a CAN communication protocol using the same.

CAN(Controller Area Network) 통신은 차량 내에서 호스트 컴퓨터 없이 마이크로 컨트롤러나 장치들이 서로 통신하기 위해 설계된 표준 통신 규격이다. CAN 통신은 메시지 기반 프로토콜이며 최근에는 차량뿐만 아니라 산업용 자동화기기나 의료용 장비에서도 종종 사용되고 있다.CAN (Controller Area Network) communication is a standard communication standard designed for microcontrollers or devices to communicate with each other without a host computer in a vehicle. CAN communication is a message-based protocol and has recently been used not only in vehicles, but also in industrial automation equipment and medical equipment.

최근 들어, 고속/대용량 네트워크에 대한 소비자의 요구가 증가함에 따라 이더넷(Ethernet) 프로토콜이 차량 네트워크 프로토콜로 적용되고 있는 추세이다.In recent years, as a consumer's demand for a high-speed / large-capacity network increases, the Ethernet protocol has been applied as a vehicle network protocol.

이에 따라 이더넷 프로토콜을 기반으로 하는 게이트웨이가 차량에 장착되는 경우, CAN 통신 프로토콜과의 효율적인 메시지 전송을 가능하게 하는 기술이 요구되고 있다. Accordingly, when a gateway based on the Ethernet protocol is mounted on a vehicle, there is a need for a technology that enables efficient message transmission with a CAN communication protocol.

예를 들어, CAN 통신 프로토콜을 이용하는 차량 진단기를 이용하여 차량 내 이더넷 프로토콜을 사용하는 제어기를 진단하고자 하는 경우, 차량 진단기와 이더넷 제어기 사이에 마련된 게이트웨이는 단순히 메시지를 바이패스하는 것으로 양자 간의 통신이 이루어지게 할 수 없다. For example, in order to diagnose a controller using an in-vehicle Ethernet protocol using a vehicle diagnostic device using a CAN communication protocol, the gateway provided between the vehicle diagnostic device and the Ethernet controller simply bypasses the message, and communication between the two is achieved. Can't lose.

또한, CAN 통신 프로토콜은 송신측에서 첫번째 프레임을 수신측으로 전송하고 수신측에서 플로우 컨트롤(Flow Control)을 통해 연속된 메시지 송신 규칙을 송신측으로 전송한다. 이어, 송신측에서 플로우 컨트롤을 통해 수신한 송신 규칙에 따라 나머지 메시지를 연속된 프레임으로 전송한다. 그러나, 이더넷 프로토콜은 프레임이 아닌 패킷 통신을 기반으로 하는 것으로 플로우 컨트롤과 같은 기능을 갖지 않는다. 따라서, 메시지를 송신하고자 하는 진단기는 플로우 컨트롤을 통한 메시지를 수신하지 못하므로 첫번째 프레임 전송 후 후속하는 프레임을 송신하지 못하게 되는 문제가 발생한다.In addition, in the CAN communication protocol, the first frame is transmitted from the transmitting side to the receiving side, and the continuous message transmission rule is transmitted from the receiving side to the transmitting side through Flow Control. Subsequently, the remaining message is transmitted in a continuous frame according to the transmission rule received through the flow control at the transmitting side. However, the Ethernet protocol is based on packet communication, not frame, and does not have the same function as flow control. Therefore, the diagnostic device to transmit the message does not receive the message through the flow control, so a problem occurs that the subsequent frame cannot be transmitted after the first frame is transmitted.

상기의 배경기술로서 설명된 사항들은 본 발명의 배경에 대한 이해 증진을 위한 것일 뿐, 이 기술분야에서 통상의 지식을 가진 자에게 이미 알려진 종래기술에 해당함을 인정하는 것으로 받아들여져서는 안 될 것이다.The above descriptions as background arts are only for improving understanding of the background of the present invention, and should not be taken as an admission that they correspond to the prior arts already known to those skilled in the art.

KR 10-1536141 BKR 10-1536141 B KR 10-1591225 BKR 10-1591225 B

이에 본 발명은, CAN 통신 프로토콜을 따르는 장치와의 통신을 위해 CAN 통신 신호를 변환하고 CAN 통신에서 적용되는 플로우 컨트롤(Flow Control) 기능을 지원할 수 있는 차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법을 제공하는 것을 해결하고자 하는 기술적 과제로 한다.Accordingly, the present invention is to convert a CAN communication signal for communication with a device that conforms to the CAN communication protocol, a vehicle Ethernet controller capable of supporting a flow control function applied in CAN communication, a vehicle Ethernet network including the same, and To solve the problem of providing a communication method with a used CAN communication protocol.

상기 기술적 과제를 해결하기 위한 수단으로서 본 발명은,The present invention as a means for solving the above technical problem,

CAN 통신 프로토콜의 메시지를 이더넷 프로토콜의 메시지로 포맷을 변환하는 프로토콜 변환모듈;A protocol conversion module for converting the message of the CAN communication protocol into a message of the Ethernet protocol;

수신한 메시지의 포맷 변환 여부 및 수신한 메시지에 해당하는 프레임이 싱글 타입인지 멀티 타입인지 판단하는 프레임 타입 판단 모듈;A frame type determination module for determining whether the received message is in a format conversion and whether a frame corresponding to the received message is a single type or a multi-type;

상기 프레임 타입 판단 모듈에 의해 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 멀티 타입 프레임의 수신 순서를 판단하는 프레임 순서 판단 모듈;A frame order determination module that determines a reception order of multi-type frames when a frame corresponding to a message received by the frame type determination module is determined to be a multi-type frame;

상기 프레임 순서 판단 모듈에 의해 기설정된 순서대로 메시지가 수신된 것으로 판단된 경우, 메시지를 누적 저장하고 마지막 순서의 프레임에 해당하는 메시지가 저장된 경우 메시지 수신을 종료하는 데이터 누적 모듈; 및A data accumulation module configured to accumulate and store messages and end message reception when messages corresponding to frames in the last order are stored when it is determined that the messages are received in a predetermined order by the frame order determination module; And

상기 프레임 순서 판단 모듈에 의해 멀티 타입 프레임의 첫번째 프레임에 해당하는 메시지가 전달된 경우 플로우 컨트롤 메시지를 작성하여 통신 대상 CAN 통신 프로토콜 통신 장치로 전송하는 플로우 컨트롤 메시지 전송 모듈;A flow control message transmission module that creates a flow control message and transmits it to a communication target CAN communication protocol communication device when a message corresponding to the first frame of the multi-type frame is transmitted by the frame order determination module;

을 포함하는 차량용 이더넷 제어기를 제공한다.It provides a vehicle Ethernet controller comprising a.

본 발명의 일 실시형태에서, 상기 프로토콜 변환 모듈은 차량 내 이더넷 네트워크의 게이트웨이에서 동작할 수 있다.In one embodiment of the present invention, the protocol conversion module may operate at a gateway of an in-vehicle Ethernet network.

본 발명의 일 실시형태에서, 상기 프레임 타입 판단 모듈은, 수신한 메시지가 CAN 통신 프로토콜의 메시지를 포맷 변환한 메시지인 경우, 수신한 메시지에 해당하는 프레임이 싱글 타입인지 멀티 타입인지 판단할 수 있다.In one embodiment of the present invention, the frame type determination module may determine whether a frame corresponding to the received message is a single type or a multi-type when the received message is a format-converted message of a CAN communication protocol. .

본 발명의 일 실시형태에서, 상기 프레임 타입 판단 모듈이, 수신한 메시지에 해당하는 프레임이 싱글 타입인 것으로 판단한 경우, 상기 데이터 누적 모듈은 싱글 타입 프레임의 메시지를 저장하고 메시지 수신을 종료할 수 있다.In one embodiment of the present invention, when the frame type determination module determines that the frame corresponding to the received message is a single type, the data accumulation module may store the message of the single type frame and end message reception. .

본 발명의 일 실시형태에서, 상기 데이터 누적 모듈은, 메시지 수신을 종료한 후 누적 저장된 메시지 전체를 PDU(Protocol Data Unit)로 전달할 수 있다.In one embodiment of the present invention, the data accumulation module may deliver the entire accumulated message to a protocol data unit (PDU) after completing the message reception.

본 발명의 일 실시형태에서, 상기 프레임 순서 판단 모듈이 수신한 메시지가 첫번째 프레임에 해당하는 메시지인 것으로 판단한 경우, 상기 플로우 컨트롤 메시지 전송 모듈은 상기 첫번째 프레임에 해당하는 메시지에 저장된 전체 메시지의 길이에 대한 정보를 기반으로 전체 메시지를 전송하기 위한 연속 프레임의 개수 및 상기 연속 프레임 사이의 전송 시간 간격을 설정한 플로우 컨트롤 메시지를 상기 통신 대상 CAN 통신 프로토콜 통신 장치로 전송할 수 있다.In one embodiment of the present invention, when it is determined that the message received by the frame order determination module is a message corresponding to the first frame, the flow control message transmission module determines the length of the entire message stored in the message corresponding to the first frame. Based on the information on the information, a flow control message configured to set the number of consecutive frames for transmitting the entire message and the transmission time interval between the continuous frames may be transmitted to the communication target CAN communication protocol communication device.

상기 기술적 과제를 해결하기 위한 다른 수단으로서 본 발명은,The present invention as another means for solving the above technical problem,

청구항 1의 이더넷 제어기를 포함하는 차량용 게이트웨이; 및A vehicle gateway including the Ethernet controller of claim 1; And

청구항 1의 이더넷 제어기를 포함하는 차량용 부품 제어기를 포함하며,It includes a vehicle component controller including the Ethernet controller of claim 1,

상기 차량용 게이트웨이 제어기 내 프로토콜 변환모듈은, 외부의 CAN 통신 프로토콜 통신 장치로부터 메시지를 전송 받는 경우 내부에 포함된 전송 받은 CAN 통신 프로토콜의 메시지를 이더넷 프로토콜의 메시지로 포맷을 변환하여 상기 차량용 부품 제어기로 제공하며,When receiving a message from an external CAN communication protocol communication device, the protocol conversion module in the vehicle gateway controller converts the format of the received CAN communication protocol message into an Ethernet protocol message and provides it to the vehicle component controller. And

상기 차량용 부품 제어기 내 플로우 컨트롤 메시지 전송 모듈은 차량용 게이트 웨이로부터 전송 받은 메시지에 해당하는 프레임이 멀티 타입 프레임의 첫번째 프레임인 경우 플로우 컨트롤 메시지를 작성하여 상기 외부의 CAN 통신 프로토콜 통신 장치로 전송하는 것을 특징으로 하는 차량용 이더넷 네트워크를 제공한다.The flow control message transmission module in the vehicle component controller creates a flow control message and transmits it to the external CAN communication protocol communication device when the frame corresponding to the message received from the vehicle gateway is the first frame of the multi-type frame. It provides a vehicle Ethernet network.

상기 기술적 과제를 해결하기 위한 또 다른 수단으로서 본 발명은,The present invention as another means for solving the above technical problem,

이더넷 프로토콜을 이용하여 통신하는 차량용 제어기가 CAN 통신 프로토콜 통신 장치와 통신하는 방법에 있어서,A method for a vehicle controller communicating using an Ethernet protocol to communicate with a CAN communication protocol communication device,

상기 차량용 제어기가 수신한 메시지가 CAN 통신 프로토콜 메시지의 포맷을 이더넷 프로토콜의 메시지로 포맷 변환한 것인지의 여부를 판단하는 단계;Determining whether the message received by the vehicle controller has converted the format of a CAN communication protocol message into a message of an Ethernet protocol;

상기 수신한 메시지가 포맷 변환한 것인 경우, 상기 수신한 메시지에 해당하는 프레임이 싱글 타입인지 멀티 타입인지 판단하는 단계;Determining whether a frame corresponding to the received message is a single type or a multi-type when the received message is format converted;

상기 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 상기 수신한 메시지가 멀티 타입 프레임의 첫번째 프레임에 해당하는지 판단하는 단계;Determining whether the received message corresponds to the first frame of the multi-type frame when the frame corresponding to the received message is determined to be a multi-type frame;

상기 수신한 메시지가 멀티 타입 프레임의 첫번째 프레임에 해당하는 경우, 플로우 컨트롤 메시지를 생성하고 생성된 플로우 컨트롤 메시지를 CAN 통신 프로토콜 메시지를 전송한 통신 대상 CAN 통신 프로토콜 통신 장치로 전송하는 단계;If the received message corresponds to the first frame of the multi-type frame, generating a flow control message and transmitting the generated flow control message to the communication target CAN communication protocol communication device that transmitted the CAN communication protocol message;

를 포함하는 CAN 통신 프로토콜과의 통신 방법을 제공한다.It provides a communication method with the CAN communication protocol, including.

본 발명의 일 실시형태는, 상기 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 수신된 메시지를 누적 저장하는 단계;According to an embodiment of the present invention, when it is determined that a frame corresponding to the received message is a multi-type frame, accumulating and storing the received message;

상기 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 상기 수신한 메시지가 멀티 타입 프레임의 마지막 프레임에 해당하는지 판단하는 단계; 및If the frame corresponding to the received message is determined to be a multi-type frame, determining whether the received message corresponds to the last frame of the multi-type frame; And

상기 수신한 메시지가 멀티 타입 프레임의 마지막 프레임인 경우, 메시지 수신을 완료하고 상기 누적 저장하는 단계에 의해 누적 저장된 메시지 전체를 PDU(Protocol Data Unit)로 전달하는 단계를 더 포함할 수 있다.When the received message is the last frame of the multi-type frame, the method may further include transmitting the entire accumulated message to a protocol data unit (PDU) by completing the message reception and storing the accumulated message.

상기 차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법에 따르면, CAN 통신 프로토콜의 통신 장치로부터 차량 내 이더넷 네트워크에 연결된 제어기로 대용량 메시지의 전송을 가능하게 할 수 있다.According to the vehicle Ethernet controller, a vehicle Ethernet network including the same, and a communication method with the CAN communication protocol using the same, it is possible to enable transmission of a large message from a communication device of the CAN communication protocol to a controller connected to the Ethernet network in the vehicle.

특히, 상기 차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법은, 네트워크 토폴로지 변경이나 통신사양 변경없이 기존의 네트워크를 구성하는 제어기들 내 메시지 전송을 위한 모듈만 추가하여 CAN 통신 프로토콜과 이더넷 프로토콜 사이의 통신이 가능하게 함으로써, 유연한 네트워크 설계가 가능하며 향후 네트워크 토폴로지 구성에 제약을 감소시킬 수 있다.In particular, the vehicle Ethernet controller, a vehicle Ethernet network including the same, and a communication method with the CAN communication protocol using the same, add only a module for transmitting messages in controllers constituting an existing network without changing the network topology or communication specifications. By enabling communication between the CAN communication protocol and the Ethernet protocol, a flexible network design is possible and restrictions on future network topology configuration can be reduced.

본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 이다.The effects obtainable in the present invention are not limited to the above-mentioned effects, and other effects not mentioned can be clearly understood by those skilled in the art from the following description. to be.

도 1은 본 발명의 일 실시형태에 따른 이더넷 제어기가 적용되는 차량 내 이더넷 네트워크 환경을 간략하게 도시한 도면이다.
도 2는 본 발명의 일 실시형태에 따른 이더넷 제어기의 블록구성도이다.
도 3은 본 발명의 일 실시형태에 따른 이더넷 제어기가 적용되는 AUTOSAR 표준의 이더넷 스택의 일례를 도시한 도면이다.
도 4는 본 발명의 일 실시형태에 따른 이더넷 제어기를 이용한 CAN 통신 프로토콜과의 통신 방법을 도시한 흐름도이다.
1 is a diagram briefly showing an Ethernet network environment in a vehicle to which an Ethernet controller according to an embodiment of the present invention is applied.
2 is a block diagram of an Ethernet controller according to an embodiment of the present invention.
3 is a diagram illustrating an example of an Ethernet stack of the AUTOSAR standard to which an Ethernet controller according to an embodiment of the present invention is applied.
4 is a flowchart showing a communication method with a CAN communication protocol using an Ethernet controller according to an embodiment of the present invention.

이하, 첨부의 도면을 참조하여 본 발명의 다양한 실시 형태에 따른 차량용 이더넷 제어기 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법을 더욱 상세하게 설명한다.Hereinafter, a vehicle Ethernet controller according to various embodiments of the present invention and a communication method with a CAN communication protocol using the same will be described in more detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시형태에 따른 이더넷 제어기가 적용되는 차량 내 이더넷 네트워크 환경을 간략하게 도시한 도면이다. 특히, 도 1은 차량 외부에서 차량에 연결되는 CAN 통신 프로토콜을 이용하는 통신장치(예를 들어, 진단기 등)(201)와 차량 내에 구비된 이더넷 네트워크의 게이트웨이(101) 및 제어기(103) 사이의 통신이 이루어지는 예를 도시한다.1 is a diagram briefly showing an Ethernet network environment in a vehicle to which an Ethernet controller according to an embodiment of the present invention is applied. In particular, FIG. 1 shows communication between a communication device (for example, a diagnostic device, etc.) 201 using a CAN communication protocol connected to a vehicle outside the vehicle and a gateway 101 and a controller 103 of an Ethernet network provided in the vehicle. An example of this is shown.

도 1을 참조하면, 본 발명의 일 실시형태에 따른 이더넷 네트워크는 통신 메시지를 수신하여 적절한 개별 부품을 제어하기 위한 제어기(103)로 전달하는 게이트웨이(101)과 차량을 구성하는 개별 부품을 제어하기 위해 마련된 제어기(103)을 포함할 수 있다. 도 1에서는 게이트웨이(101)에 하나의 제어기(103)만 연결된 것으로 도시되고 있으나, 하나의 게이트웨이(101)에는 복수의 제어기(103)이 연결될 수 있다.Referring to Figure 1, the Ethernet network according to an embodiment of the present invention to control the individual components that make up the vehicle and the gateway 101 to receive a communication message to the controller 103 for controlling the appropriate individual components. It may include a controller 103 provided for. In FIG. 1, only one controller 103 is connected to the gateway 101, but a plurality of controllers 103 may be connected to one gateway 101.

본 발명의 일 실시형태에 따른 이더넷 제어기는 차량 내 구비되는 이더넷 네트워크의 게이트웨이(101) 및 제어기(103)에 해당할 수 있다. 즉, 게이트웨이(101) 및 제어기(103)는, CAN 통신 프로토콜을 따르는 장치와의 통신을 위해 CAN 통신 신호를 변환하고 CAN 통신에서 적용되는 플로우 컨트롤(Flow Control) 기능을 지원할 수 있는 본 발명의 여러 실시형태에 따른 차량용 이더넷 제어기의 일종이다.The Ethernet controller according to an embodiment of the present invention may correspond to the gateway 101 and the controller 103 of the Ethernet network provided in the vehicle. That is, the gateway 101 and the controller 103 can convert a CAN communication signal for communication with a device conforming to the CAN communication protocol and support various flow control functions applied in CAN communication. It is a type of Ethernet controller for a vehicle according to an embodiment.

CAN 통신 프로토콜을 이용하는 통신장치(201)가 제어기(103)로 메시지를 전송하기 위해서 메시지를 전송하면, 본 발명의 일 실시형태에 따른 게이트웨이(101)는 CAN 통신 프로토콜에 따른 메시지를 이더넷 프로토콜에 따른 메시지로 포맷 변환을 수행할 수 있다.When the communication device 201 using the CAN communication protocol transmits a message to transmit the message to the controller 103, the gateway 101 according to an embodiment of the present invention sends a message according to the CAN communication protocol according to the Ethernet protocol. You can perform format conversion with a message.

게이트웨이(101)에서 포맷 변환된 메시지는 제어기(103)으로 전달되고, 본 발명의 일 실시형태에 따른 제어기(103)은 포맷 변환된 메시지의 프레임 타입, 프레임 순서 등을 판단하고 필요한 경우 플로우 컨트롤을 위한 메시지를 전송하는 등 CAN 통신 프로토콜을 이용하는 통신장치(201)와 통신하기 위해 요구되는 동작을 처리할 수 있다.In the gateway 101, the format-converted message is delivered to the controller 103, and the controller 103 according to an embodiment of the present invention determines the frame type, frame order, etc. of the format-converted message and, if necessary, flow control. It is possible to process an operation required to communicate with the communication device 201 using a CAN communication protocol, such as sending a message for the communication.

이와 같은 CAN 통신 프로토콜을 이용한 통신장치(201)와 이더넷 프로토콜의 게이트웨이(101) 및 제어기(103) 간의 통신은, 게이트웨이(101) 및 제어기(103)가 도 2와 같은 모듈들을 포함함으로써 가능해진다.Communication between the communication device 201 using the CAN communication protocol and the gateway 101 and the controller 103 of the Ethernet protocol is made possible by the gateway 101 and the controller 103 including the modules shown in FIG. 2.

도 2는 본 발명의 일 실시형태에 따른 이더넷 제어기의 블록구성도이다.2 is a block diagram of an Ethernet controller according to an embodiment of the present invention.

도 2를 참조하면, 본 발명의 일 실시형태에 따른 이더넷 제어기는, 프로토콜 변환 모듈(11), 프레임 타입 판단 모듈(13), 프레임 순서 판단 모듈(15), 데이터 누적 모듈(17) 및 플로우 컨트롤 메시지 전송 모듈(19)를 포함할 수 있다.2, the Ethernet controller according to an embodiment of the present invention, the protocol conversion module 11, the frame type determination module 13, the frame order determination module 15, the data accumulation module 17 and the flow control It may include a message transmission module 19.

프로토콜 변환 모듈(11)은 CAN 통신 프로토콜의 메시지를 이더넷 프로토콜의 메시지로 포맷 변환을 하거나 반대로 이더넷 프로토콜의 메시지를 CAN 통신 프로토콜의 메시지로 포맷 변환을 하는 모듈이다. 예를 들어, 프로토콜 변환 모듈(11)은 도 1에 도시된 게이트웨이(101)에서 사용될 수 있다.The protocol conversion module 11 is a module that performs format conversion of a message of a CAN communication protocol into a message of an Ethernet protocol or vice versa. For example, the protocol conversion module 11 can be used in the gateway 101 shown in FIG. 1.

예를 들면, 프로토콜 변환 모듈(11)은 CAN 헤더와 진단데이터로 구성되는 포맷을 갖는 CAN For example, the protocol conversion module 11 is a CAN having a format composed of a CAN header and diagnostic data. 프레임을 입력 받아Take the frame input TCP 헤더와  TCP header and EthDiagEthDiag 헤더 및 진단데이터로 구성되는 포맷을 갖는 이더넷 프레임으로 변환할 수 있다. 여기서 프로토콜 변환 모듈(11)은  It can be converted into an Ethernet frame having a format composed of a header and diagnostic data. Here, the protocol conversion module 11 EthDiagEthDiag 헤더에 프레임 내 후속하는 데이터가 CAN 진단 데이터임을 표시할 수 있다.  The header may indicate that the subsequent data in the frame is CAN diagnostic data. 반대의 경우에도In the opposite case 유사하게 프로토콜 변환 모듈(11)은 이더넷 프레임 포맷에서 헤더 이후의 데이터를 취한 후 CAN 헤더를 결합하여 CAN 프레임을 작성할 수 있다. Similarly, the protocol conversion module 11 may take the data after the header in the Ethernet frame format and then combine the CAN headers to create a CAN frame.

프레임 타입 판단 모듈(13)은 프로토콜 변환 모듈(11)에서 포맷이 이더넷 프로토콜로 변환된 메시지를 수신하고, 수신된 메시지의 프레임의 타입을 판단할 수 있다. The frame type determination module 13 may receive a message in which the format is converted to the Ethernet protocol in the protocol conversion module 11 and determine the type of the frame of the received message.

CAN 통신 프로토콜은 메시지를 프레임 단위로 전송하므로 이더넷 프로토콜로 포맷이 변환된 메시지 역시 하나의 프레임에 대응되는 메시지가 된다. 프레임 타입 판단 모듈(13)은 먼저 수신된 메시지가 CAN 프로토콜 메시지를 변환한 메시지인지 판단하고, CAN 프로토콜 메시지를 변환한 메시지인 것으로 판단된 경우 포맷 변환된 메시지가 싱글 타입의 프레임인지 아니면 멀티 타입의 프레임인지 판단한다. Since the CAN communication protocol transmits messages on a frame-by-frame basis, messages converted to the Ethernet protocol also become messages corresponding to one frame. The frame type determination module 13 first determines whether the received message is a message converted to a CAN protocol message, and when it is determined that the message is a converted CAN protocol message, the format-converted message is a single type frame or a multi-type message. Determine if it is a frame.

프레임 타입 판단 모듈(13)이 CAN 프로토콜 메시지를 변환한 메시지인지를 판단하는 것은 전술한 프로토콜 변환 모듈(11)에 의해 Ethdiag 헤더가 추가되었는지 확인하여 구현될 수 있다. 또한, 싱글 또는 멀티 타입의 프레임인지 판단하는 것은 CAN 프로토콜에 기반하여 데이터 중 첫번재 바이트의 상위 4 개의 비트값을 확인함으로써 판단할 수 있다. 이는 CAN 통신 프로토콜에 대한 통신 규약에 따른 것으로 이미 공지된 내용에 해당하므로 별도의 추가적인 상세한 설명은 생략하기로 한다. Determining whether the frame type determination module 13 is a message that converts a CAN protocol message can be implemented by checking whether an Ethdiag header is added by the above-described protocol conversion module 11 . Also, to determine whether a single frame or a multi-type top four bytes of the first beonjae based on the CAN protocol data It can be determined by checking the bit value . This is according to the communication protocol for the CAN communication protocol and is already known, so additional detailed description will be omitted.

프레임 타입 판단 모듈(13)이 수신한 메시지의 프레임이 싱글 타입인 경우 후술하는 데이터 누적 모듈로 메시지를 전달하여 누적 시킬 수 있다. 프레임 타입 판단 모듈(13)이 수신한 메시지의 프레임이 멀티 타입인 경우 후술하는 프레임 순서 판단 모듈(15)의 동작이 수행될 수 있다.When the frame of the message received by the frame type determination module 13 is of a single type, the message may be transferred to the data accumulation module described later to accumulate. When the frame of the message received by the frame type determination module 13 is a multi-type, the operation of the frame order determination module 15 described later may be performed.

프레임 순서 판단 모듈(15)은 멀티 타입 프레임이 순차적으로 수신되는지 확인하고 수신된 프레임의 순서가 적절한 경우 데이터 누적 모듈(17)로 수신한 메시지를 전달하여 누적 시킨다.The frame order determination module 15 checks whether the multi-type frames are sequentially received and, if the order of the received frames is appropriate, delivers the received messages to the data accumulation module 17 to accumulate them.

데이터 누적 모듈(17)은 수신한 메시지 프레임에서 프레임의 타입 및 순서를 나타내는 데이터를 제외하고 전달하고자 하는 유의미한 데이터(예를 들어, 외부 CAN 통신 장치(도 1의 201)가 진단기인 경우, 진단 데이터)만 누적하고 전체 데이터 전송이 완료되면 누적된 프레임 전체를 PDU(Protocol Data Unit)로 전달한다. 여기서 PDU는 통신 프로토콜과는 무관하게 CAN 또는 이더넷을 통해 전송된 데이터에서 통신 프로토콜을 위한 데이터(예를 들어, 헤더 등의 데이터)를 제거한 유의미한 데이터를 저장, 관리하는 유닛을 의미할 수 있다. The data accumulation module 17 excludes data indicating the type and order of the frames from the received message frame, and the meaningful data to be delivered (for example, the external CAN communication device (201 in FIG. 1)) is a diagnostic device. ) Is accumulated, and when the entire data transmission is completed, the entire accumulated frame is transmitted to a protocol data unit (PDU). Here, the PDU may refer to a unit that stores and manages meaningful data by removing data (eg, data such as a header) for the communication protocol from data transmitted through CAN or Ethernet regardless of the communication protocol.

플로우 컨트롤 메시지 전송 모듈(19)은 프레임 순서 판단 모듈(15)에서 멀티 타입 프레임의 첫번째 프레임에 해당하는 메시지가 수신된 것으로 판단된 경우, 통신하는 CAN 통신 프로토콜 통신 장치(도 1의 201)로 플로우 컨트롤 메시지를 전송하는 모듈이다. 멀티 타입 프레임의 첫번째 프레임에는 CAN 통신 프로토콜 통신 장치(도 1의 201)가 송신하고자 하는 전체 메시지의 사이즈가 전달되므로, 플로우 컨트롤 메시지 전송 모듈(19)은 이 첫번째 프레임에 전체 메시지의 사이즈와 CAN 통신 프로토콜에서 한 프레임으로 전송가능한 최대 바이트 수(8 바이트)를 감안하여 후속하는 연속 프레임의 개수와 각 연속 프레임 전송 간의 시간 간격을 설정하는 플로우 컨트롤 메시지를 CAN 통신 프로토콜 통신 장치(도 1의 201)로 전달할 수 있다.When the flow control message transmission module 19 determines that the message corresponding to the first frame of the multi-type frame is received by the frame order determination module 15, it flows to the CAN communication protocol communication device (201 in FIG. 1). This module sends control messages. In the first frame of the multi-type frame, since the size of the entire message to be transmitted by the CAN communication protocol communication device (201 in FIG. 1) is transmitted, the flow control message transmission module 19 communicates the size of the entire message and CAN in this first frame. In consideration of the maximum number of bytes (8 bytes) that can be transmitted in one frame in the protocol, a flow control message for setting the number of successive frames and the time interval between each successive frame transmission to the CAN communication protocol communication device (201 in FIG. 1) Can deliver.

이상에서 설명한 본 발명의 여러 실시형태에 따른 이더넷 제어기의 각 모듈은 하나의 통합 모듈의 형태로 이더넷 제어기에 포함될 수 있다.Each module of the Ethernet controller according to various embodiments of the present invention described above may be included in the Ethernet controller in the form of one integrated module.

도 3은 본 발명의 일 실시형태에 따른 이더넷 제어기가 적용되는 개방형 자동차 표준 소프트웨어 구조(AUTomotive Open System Architecture: AUTOSAR)의 이더넷 스택의 일례를 도시한 도면이다. AUTOSAR는 차량 전장부품용 임베디드 소프트웨어의 표준화된 플랫폼으로, 특히 도 3은 AUTOSAR에서 정의된 이더넷 스택을 도시한 것이다. FIG. 3 is a diagram illustrating an example of an Ethernet stack of an open automotive standard software architecture (AUTOmotive Open System Architecture: AUTOSAR) to which an Ethernet controller according to an embodiment of the present invention is applied. AUTOSAR is a standardized platform for embedded software for automotive electrical components, and in particular, FIG. 3 shows the Ethernet stack defined in AUTOSAR.

도 3에서 "EthDiag"로 명명된 모듈(10)은 전술한 본 발명의 이더넷 제어기를 구성하는 각 모듈들을 포함하는 하나의 통합 모듈에 해당한다. 차량의 이더넷 네트워크를 간략히 도시한 도 1에서, 게이트웨이(101)나 제어기(103)는 도 3에 도시된 것과 같은 이더넷 스택을 모두 포함할 수 있다. 게이트웨이(101)는 통합 모듈(10)에서 프로토콜 변환 모듈(11)만 사용하여 메시지의 포맷을 변환한 후 단순히 전달하는 역할만 할 수 있다. 또한, 차량 개별 부품을 제어하기 위한 제어기(103)는, 프레임 타입 판단 모듈(13), 프레임 순서 판단 모듈(15), 데이터 누적 모듈(17) 및 플로우 컨트롤 메시지 전송 모듈(19)을 이용하여 동작할 수 있다.The module 10 named “EthDiag” in FIG. 3 corresponds to one integrated module including each module constituting the Ethernet controller of the present invention described above. In FIG. 1, which briefly shows the Ethernet network of the vehicle, the gateway 101 or the controller 103 may include all Ethernet stacks as shown in FIG. 3. The gateway 101 may serve to simply transfer the message format after converting the format of the message using only the protocol conversion module 11 in the integration module 10. In addition, the controller 103 for controlling individual vehicle parts operates using a frame type determination module 13, a frame order determination module 15, a data accumulation module 17, and a flow control message transmission module 19 can do.

도 3에서 참조부호 '110'은 이더넷 메시지가 수신/송신되는 이더넷 드라이버에 해당한다. In FIG. 3, reference numeral '110' corresponds to an Ethernet driver through which an Ethernet message is received / transmitted.

또한, 참조부호 '120'은 이더넷 인터페이스를 나타내는 것으로, 이더넷 드라이버(110)에 의해 수신된 메시지를 TCP/IP(Transmission Control Protocol/Internet Protocol) 스택(130)으로 라우팅 하거나 그로부터 메시지를 수신하는 역할을 한다. In addition, reference numeral '120' denotes an Ethernet interface, and serves to route a message received by the Ethernet driver 110 to a Transmission Control Protocol / Internet Protocol (TCP / IP) stack 130 or to receive a message therefrom. do.

또한, 참조부호 '130'은 TCP/IP 통신 서비스 스택을 나타내며 IP, UDP(User Datagram Protocol) 및 TCP의 프로토콜의 처리를 수행한다. In addition, reference numeral '130' denotes a TCP / IP communication service stack and performs protocol processing of IP, User Datagram Protocol (UDP), and TCP.

TCP/IP 프로토콜 군의 기초가 되는 패러다임은 소켓의 사용이므로, 소켓 기반 통신을 PDU 기반 통신으로 변환하고 그 반대의 변환을 위해 소켓 어댑터 모듈(140)이 구비될 수 있다.Since the paradigm underlying the TCP / IP protocol family is the use of sockets, a socket adapter module 140 may be provided for converting socket-based communication to PDU-based communication and vice versa.

또한, 참조부호 '150'은 DoIP(Diagnostics over Internet Protocol)을 나타낸 것으로, 소켓 어댑터(140)에서 전달되는 메시지를 PDU로 전달하는 역할을 한다. In addition, reference numeral '150' indicates DoIP (Diagnostics over Internet Protocol), and serves to deliver a message transmitted from the socket adapter 140 to the PDU.

본 발명의 여러 실시형태에 따른 제어기를 구성하는 모듈들을 통합한 통합 모듈(10)은 CAN 프로토콜을 이용하는 통신장치로부터 수신된 메시지를 소켓 어댑터(140)로부터 전달받아 전술한 것과 같은 각 모듈의 동작 후, 게이트웨이(도 1의 101)의 경우 차량 부품 제어기(도 1의 103)로 메시지를 전달하거나 차량 부품 제어기(103)의 경우 PDU로 메시지를 전달할 수 있다. The integrated module 10 incorporating the modules constituting the controller according to various embodiments of the present invention receives the message received from the communication device using the CAN protocol from the socket adapter 140, and then operates each module as described above. , In the case of the gateway (101 in FIG. 1), a message may be transmitted to the vehicle component controller (103 in FIG. 1) or in the case of the vehicle component controller 103, the message may be transmitted to the PDU.

도 4는 전술한 것과 같은 본 발명의 일 실시형태에 따른 이더넷 제어기를 이용한 CAN 통신 프로토콜과의 통신 방법을 도시한 흐름도이다. 특히, 도 4는 도 1의 차량 이더넷 네트워크에서 개별 부품의 제어기(103)에서 이루어지는 통신 방법을 도시한 것이다.4 is a flowchart showing a communication method with a CAN communication protocol using an Ethernet controller according to an embodiment of the present invention as described above. In particular, FIG. 4 illustrates a communication method performed in the controller 103 of individual components in the vehicle Ethernet network of FIG. 1.

도 4를 참조하면, 먼저 제어기(103)가 메시지를 수신하면(S10), 제어기(103) 내의 프레임 타입 판단 모듈(13)이 수신된 메시지가 CAN 통신 프로토콜 메시지의 포맷을 변환한 메시지인지 판단한다(S11).Referring to FIG. 4, first, when the controller 103 receives a message (S10), the frame type determination module 13 in the controller 103 determines whether the received message is a message obtained by converting the format of a CAN communication protocol message. (S11).

프레임 타입 판단 모듈(13)이, 수신한 메시지를 CAN 통신 프로토콜 메시지의 포맷을 변환한 메시지인 것으로 판단한 경우, 이어 프레임 타입 판단 모듈(13)은 해당 메시지의 프레임이 싱글 타입인지 멀티 타입(대용량 메시지)인지 판단한다(S12).When the frame type determination module 13 determines that the received message is a message obtained by converting the format of a CAN communication protocol message, the frame type determination module 13 then determines whether the frame of the corresponding message is a single type or multi-type (large-capacity message). ) Is determined (S12).

프레임 타입 판단 모듈(13)이, 수신한 메시지가 싱글 타입 프레임인 것으로 판단한 경우에는 데이터 누적 모듈(17)에 수신한 메시지를 저장한 후 메시지 수신을 완료하고 데이터 누적 모듈(17)은 저장된 싱글 타입 프레임의 메시지를 PDU로 전송한다(S18).When the frame type determination module 13 determines that the received message is a single type frame, it stores the received message in the data accumulation module 17, completes the message reception, and the data accumulation module 17 stores the stored single type The message of the frame is transmitted to the PDU (S18).

프레임 타입 판단 모듈(13)이, 수신한 메시지가 멀티 타입 프레임인 것으로 판단한 경우, 프레임 순서 판단 모듈(15)이 수신한 메시지가 첫번째 프레임인 지 판단한다(S13).When the frame type determination module 13 determines that the received message is a multi-type frame, it determines whether the message received by the frame order determination module 15 is the first frame (S13).

프레임 순서 판단 모듈(15)이, 수신한 메시지가 멀티 타입 프레임의 첫번째 프레임인 것으로 판단한 경우, 첫번째 프레임에 포함된 메시지의 전체 길이를 참조하여 메시지 전체를 수신하기 위한 연속 프레임 개수와 연속된 프레임 사이의 전송 시간 간격을 설정한 플로우 컨트롤 메시지를 생성하고(S14), 생성된 플로우 컨트롤 메시지를 통신 중인 CAN 통신 프로토콜을 이용하는 통신 장치(도 1의 201)로 송신한다(S15).When the frame order determination module 15 determines that the received message is the first frame of the multi-type frame, referring to the total length of the message included in the first frame, the number of consecutive frames to receive the entire message and the number of consecutive frames Generates a flow control message that sets the transmission time interval of (S14), and transmits the generated flow control message to a communication device (201 in FIG. 1) using the CAN communication protocol in communication (S15).

이어, 데이터 누적 모듈(17)은 프레임 순서 판단 모듈(15)에 의해 판단된 순서대로 수신한 메시지를 누적 저장하고(S16) 프레임 순서 판단 모듈(15)에 의해 마지막 프레임으로 판단된 메시지까지 누적되면(S17) 누적된 전체 메시지를 PDU로 전송하고 메시지 수신을 완료한다(S18). Subsequently, the data accumulation module 17 accumulates and stores the received messages in the order determined by the frame order determination module 15 (S16) and accumulates up to the message determined as the last frame by the frame order determination module 15. (S17) The accumulated whole message is transmitted to the PDU and message reception is completed (S18).

이상에서 설명한 바와 같이, 본 발명의 여러 실시형태에 따른 상기 차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법은, CAN 통신 프로토콜의 통신 장치로부터 차량 내 이더넷 네트워크에 연결된 제어기로 대용량 메시지의 전송을 가능하게 할 수 있다.As described above, the vehicle Ethernet controller according to various embodiments of the present invention, a vehicle Ethernet network including the same, and a communication method with the CAN communication protocol using the same are connected to an Ethernet network in a vehicle from a communication device of the CAN communication protocol. It is possible to transmit a large message to the controller.

특히, 본 발명의 여러 실시형태에 따른 상기 차량용 이더넷 제어기, 이를 포함하는 차량용 이더넷 네트워크 및 이를 이용한 CAN 통신 프로토콜과의 통신 방법은, 네트워크 토폴로지 변경이나 통신사양 변경없이 기존의 네트워크를 구성하는 제어기들 내 메시지 전송을 위한 모듈만 추가하여 CAN 통신 프로토콜과 이더넷 프로토콜 사이의 통신이 가능하게 함으로써, 유연한 네트워크 설계가 가능하며 향후 네트워크 토폴로지 구성에 제약을 감소시킬 수 있다.In particular, the vehicle Ethernet controller according to various embodiments of the present invention, a vehicle Ethernet network including the same, and a communication method with the CAN communication protocol using the same, in controllers constituting an existing network without changing a network topology or changing communication specifications. By adding only a module for message transmission to enable communication between CAN and Ethernet protocols, flexible network design is possible and restrictions on network topology configuration can be reduced in the future.

이상에서 본 발명의 특정한 실시형태에 관련하여 도시하고 설명하였지만, 이하의 특허청구범위에 의해 제공되는 본 발명의 기술적 사상을 벗어나지 않는 한도 내에서, 본 발명이 다양하게 개량 및 변화될 수 있다는 것은 당 기술분야에서 통상의 지식을 가진 자에게 있어서 자명할 것이다.In the above, although shown and described in relation to a specific embodiment of the present invention, it is understood that the present invention can be variously improved and changed within the limits that do not depart from the technical spirit of the present invention provided by the following claims. It will be apparent to those skilled in the art.

11: 프로토콜 변환모듈 13: 프레임 타입 판단 모듈
15: 프레임 순서 판단 모듈 17: 데이터 누적 모듈
19: 플로우 컨트롤 메시지 전송 모듈
11: Protocol conversion module 13: Frame type determination module
15: frame order determination module 17: data accumulation module
19: Flow control message transmission module

Claims (9)

CAN 통신 프로토콜의 메시지를 이더넷 프로토콜의 메시지로 포맷을 변환하는 프로토콜 변환모듈;
수신한 메시지의 포맷 변환 여부 및 수신한 메시지에 해당하는 프레임이 싱글 타입인지 멀티 타입인지 판단하는 프레임 타입 판단 모듈;
상기 프레임 타입 판단 모듈에 의해 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 멀티 타입 프레임의 수신 순서를 판단하는 프레임 순서 판단 모듈;
상기 프레임 순서 판단 모듈에 의해 기설정된 순서대로 메시지가 수신된 것으로 판단된 경우, 메시지를 누적 저장하고 마지막 순서의 프레임에 해당하는 메시지가 저장된 경우 메시지 수신을 종료하는 데이터 누적 모듈; 및
상기 프레임 순서 판단 모듈에 의해 멀티 타입 프레임의 첫번째 프레임에 해당하는 메시지가 전달된 경우 플로우 컨트롤 메시지를 작성하여 통신 대상 CAN 통신 프로토콜 통신 장치로 전송하는 플로우 컨트롤 메시지 전송 모듈;
을 포함하는 차량용 이더넷 제어기.
A protocol conversion module for converting the message of the CAN communication protocol into a message of the Ethernet protocol;
A frame type determination module that determines whether a format of the received message is converted and whether a frame corresponding to the received message is a single type or a multi-type;
A frame order determination module that determines a reception order of multi-type frames when a frame corresponding to a message received by the frame type determination module is determined to be a multi-type frame;
A data accumulation module that accumulates and stores messages when the messages are received in a predetermined order by the frame order determination module, and ends receiving messages when messages corresponding to the frames in the last order are stored; And
A flow control message transmission module that creates a flow control message and transmits it to a communication target CAN communication protocol communication device when a message corresponding to the first frame of the multi-type frame is transmitted by the frame order determination module;
Automotive Ethernet controller comprising a.
청구항 1에 있어서,
상기 프로토콜 변환 모듈은 차량 내 이더넷 네트워크의 게이트웨이에서 동작하는 것을 특징으로 하는 차량용 이더넷 제어기.
The method according to claim 1,
The protocol conversion module is a vehicle Ethernet controller, characterized in that operating in the gateway of the in-vehicle Ethernet network.
청구항 1에 있어서,
상기 프레임 타입 판단 모듈은, 수신한 메시지가 CAN 통신 프로토콜의 메시지를 포맷 변환한 메시지인 경우, 수신한 메시지에 해당하는 프레임이 싱글 타입인지 멀티 타입인지 판단하는 것을 특징으로 하는 차량용 이더넷 제어기.
The method according to claim 1,
The frame type determination module, if the received message is a message format-converted message of the CAN communication protocol, the vehicle Ethernet controller characterized in that it determines whether the frame corresponding to the received message is a single type or multi-type.
청구항 1에 있어서,
상기 프레임 타입 판단 모듈이, 수신한 메시지에 해당하는 프레임이 싱글 타입인 것으로 판단한 경우, 상기 데이터 누적 모듈은 싱글 타입 프레임의 메시지를 저장하고 메시지 수신을 종료하는 것을 특징으로 하는 차량용 이더넷 제어기.
The method according to claim 1,
When the frame type determination module determines that the frame corresponding to the received message is a single type, the data accumulation module stores the message of the single type frame and ends receiving the message.
청구항 1에 있어서,
상기 데이터 누적 모듈은, 메시지 수신을 종료한 후 누적 저장된 메시지 전체를 PDU(Protocol Data Unit)로 전달하는 것을 특징으로 하는 차량용 이더넷 제어기.
The method according to claim 1,
The data accumulation module, the vehicle Ethernet controller, characterized in that after transmitting the message, the accumulated message is transferred to the PDU (Protocol Data Unit).
청구항 1에 있어서,
상기 프레임 순서 판단 모듈이 수신한 메시지가 첫번째 프레임에 해당하는 메시지인 것으로 판단한 경우, 상기 플로우 컨트롤 메시지 전송 모듈은 상기 첫번째 프레임에 해당하는 메시지에 저장된 전체 메시지의 길이에 대한 정보를 기반으로 전체 메시지를 전송하기 위한 연속 프레임의 개수 및 상기 연속 프레임 사이의 전송 시간 간격을 설정한 플로우 컨트롤 메시지를 상기 통신 대상 CAN 통신 프로토콜 통신 장치로 전송하는 것을 특징으로 하는 이더넷 제어기.
The method according to claim 1,
When the frame order determination module determines that the received message is a message corresponding to the first frame, the flow control message transmission module transmits the entire message based on information on the length of the entire message stored in the message corresponding to the first frame. Ethernet controller, characterized in that for transmitting the flow control message set the number of consecutive frames for transmission and the transmission time interval between the continuous frames to the communication target CAN communication protocol communication device.
청구항 1의 이더넷 제어기를 포함하는 차량용 게이트웨이; 및
청구항 1의 이더넷 제어기를 포함하는 차량용 부품 제어기를 포함하며,
상기 차량용 게이트웨이 제어기 내 프로토콜 변환모듈은, 외부의 CAN 통신 프로토콜 통신 장치로부터 메시지를 전송 받는 경우 내부에 포함된 전송 받은 CAN 통신 프로토콜의 메시지를 이더넷 프로토콜의 메시지로 포맷을 변환하여 상기 차량용 부품 제어기로 제공하며,
상기 차량용 부품 제어기 내 플로우 컨트롤 메시지 전송 모듈은 차량용 게이트 웨이로부터 전송 받은 메시지에 해당하는 프레임이 멀티 타입 프레임의 첫번째 프레임인 경우 플로우 컨트롤 메시지를 작성하여 상기 외부의 CAN 통신 프로토콜 통신 장치로 전송하는 것을 특징으로 하는 차량용 이더넷 네트워크.
A vehicle gateway including the Ethernet controller of claim 1; And
It includes a vehicle component controller including the Ethernet controller of claim 1,
When receiving a message from an external CAN communication protocol communication device, the protocol conversion module in the vehicle gateway controller converts the format of the received CAN communication protocol message into an Ethernet protocol message and provides it to the vehicle component controller. And
The flow control message transmission module in the vehicle component controller creates a flow control message and transmits it to the external CAN communication protocol communication device when the frame corresponding to the message received from the vehicle gateway is the first frame of the multi-type frame. Automotive Ethernet network.
이더넷 프로토콜을 이용하여 통신하는 차량용 제어기가 CAN 통신 프로토콜 통신 장치와 통신하는 방법에 있어서,
상기 차량용 제어기가 수신한 메시지가 CAN 통신 프로토콜 메시지의 포맷을 이더넷 프로토콜의 메시지로 포맷 변환한 것인지의 여부를 판단하는 단계;
상기 수신한 메시지가 포맷 변환한 것인 경우, 상기 수신한 메시지에 해당하는 프레임이 싱글 타입인지 멀티 타입인지 판단하는 단계;
상기 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 상기 수신한 메시지가 멀티 타입 프레임의 첫번째 프레임에 해당하는지 판단하는 단계;
상기 수신한 메시지가 멀티 타입 프레임의 첫번째 프레임에 해당하는 경우, 플로우 컨트롤 메시지를 생성하고 생성된 플로우 컨트롤 메시지를 CAN 통신 프로토콜 메시지를 전송한 통신 대상 CAN 통신 프로토콜 통신 장치로 전송하는 단계;
를 포함하는 CAN 통신 프로토콜과의 통신 방법.
A method for a vehicle controller communicating using an Ethernet protocol to communicate with a CAN communication protocol communication device,
Determining whether the message received by the vehicle controller has converted the format of a CAN communication protocol message into a message of an Ethernet protocol;
Determining whether a frame corresponding to the received message is a single type or a multi-type when the received message is format converted;
Determining whether the received message corresponds to the first frame of the multi-type frame when the frame corresponding to the received message is determined to be a multi-type frame;
If the received message corresponds to the first frame of the multi-type frame, generating a flow control message and transmitting the generated flow control message to the communication target CAN communication protocol communication device that transmitted the CAN communication protocol message;
Communication method with the CAN communication protocol, including.
청구항 8에 있어서,
상기 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 수신된 메시지를 누적 저장하는 단계;
상기 수신한 메시지에 해당하는 프레임이 멀티 타입 프레임으로 판단된 경우, 상기 수신한 메시지가 멀티 타입 프레임의 마지막 프레임에 해당하는지 판단하는 단계; 및
상기 수신한 메시지가 멀티 타입 프레임의 마지막 프레임인 경우, 메시지 수신을 완료하고 상기 누적 저장하는 단계에 의해 누적 저장된 메시지 전체를 PDU(Protocol Data Unit)로 전달하는 단계를 더 포함하는 것을 특징으로 하는 CAN 통신 프로토콜과의 통신 방법.
The method according to claim 8,
Accumulating and storing the received message when the frame corresponding to the received message is determined to be a multi-type frame;
If the frame corresponding to the received message is determined to be a multi-type frame, determining whether the received message corresponds to the last frame of the multi-type frame; And
If the received message is the last frame of the multi-type frame, CAN further comprising the step of transmitting the entire message stored in the PDU (Protocol Data Unit) by the completion of the message received and the cumulative storage step Communication method with communication protocol.
KR1020180108628A 2018-09-12 2018-09-12 Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same KR102657333B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180108628A KR102657333B1 (en) 2018-09-12 2018-09-12 Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180108628A KR102657333B1 (en) 2018-09-12 2018-09-12 Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same

Publications (2)

Publication Number Publication Date
KR20200030167A true KR20200030167A (en) 2020-03-20
KR102657333B1 KR102657333B1 (en) 2024-04-12

Family

ID=69958306

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180108628A KR102657333B1 (en) 2018-09-12 2018-09-12 Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same

Country Status (1)

Country Link
KR (1) KR102657333B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988189A (en) * 2020-09-08 2020-11-24 武汉市豪迈电力自动化技术有限责任公司 FT3 protocol conversion device and method
CN114721887A (en) * 2022-03-21 2022-07-08 东风汽车集团股份有限公司 Automatic testing method for vehicle production line
CN115129021A (en) * 2021-03-29 2022-09-30 广州汽车集团股份有限公司 Method and device for testing vehicle-mounted Ethernet
KR20230086380A (en) 2021-12-08 2023-06-15 현대오토에버 주식회사 Vehicular ethernet controller and control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130064500A (en) * 2011-12-08 2013-06-18 한국전자통신연구원 Method of error recovery while transmitting message in can communication system
KR101536141B1 (en) 2014-02-13 2015-07-13 현대자동차주식회사 Apparatus and method for converting signal between ethernet and can in a vehicle
KR101591225B1 (en) 2015-01-07 2016-02-02 주식회사 와이즈오토모티브 Apparatus and method for converting can signal and ethernet signal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130064500A (en) * 2011-12-08 2013-06-18 한국전자통신연구원 Method of error recovery while transmitting message in can communication system
KR101536141B1 (en) 2014-02-13 2015-07-13 현대자동차주식회사 Apparatus and method for converting signal between ethernet and can in a vehicle
KR101591225B1 (en) 2015-01-07 2016-02-02 주식회사 와이즈오토모티브 Apparatus and method for converting can signal and ethernet signal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988189A (en) * 2020-09-08 2020-11-24 武汉市豪迈电力自动化技术有限责任公司 FT3 protocol conversion device and method
CN115129021A (en) * 2021-03-29 2022-09-30 广州汽车集团股份有限公司 Method and device for testing vehicle-mounted Ethernet
CN115129021B (en) * 2021-03-29 2024-03-01 广州汽车集团股份有限公司 Method and device for testing vehicle-mounted Ethernet
KR20230086380A (en) 2021-12-08 2023-06-15 현대오토에버 주식회사 Vehicular ethernet controller and control method thereof
CN114721887A (en) * 2022-03-21 2022-07-08 东风汽车集团股份有限公司 Automatic testing method for vehicle production line
CN114721887B (en) * 2022-03-21 2024-04-05 东风汽车集团股份有限公司 Automatic testing method for vehicle-mounted machine production line

Also Published As

Publication number Publication date
KR102657333B1 (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US11463275B2 (en) Electronic control unit, frame generating method, and non-transitory computer-readable recording medium storing a program
US10951436B2 (en) Network hub, transfer method, and onboard network system
EP2797265B1 (en) Data relay device, data transmission device, and network system
CN102017542B (en) A method for interfacing a fibre channel network with an Ethernet based network
US8990444B2 (en) Fieldbus gateway using virtual serial fieldbus port and data transmission method thereof
US11310070B2 (en) Network hub, transfer method, and onboard network system
KR102657333B1 (en) Ethernet controller for vehicle, ethernet network including the same and method of communication between can communicationi protocol and the same
US10523462B2 (en) Communication network for transmission of messages
KR20200136751A (en) Apparatus for communicating diagnosis of a vehicle, system having the same and method thereof
US20040260841A1 (en) Method, apparatus, and system for internet protocol communication over intelligent platform management bus
US20170134299A1 (en) Method and apparatus for controlling message over heterogeneous network
CN117376339A (en) OTA-based vehicle ECU upgrading method, device, equipment and medium
KR20220141271A (en) Gateway for vehicle Ethernet communication and message routing method thereof
WO2017203904A1 (en) Electronic control unit, frame generation method, and program
CN114338477A (en) Communication link monitoring method, device, equipment and storage medium
KR20180038960A (en) Method for transmitting and receiving data in automotive network and apparatus for the same
US7894452B2 (en) Method and apparatus for the creation of TCP segments by simultaneous use of computing device components
JP2021061554A (en) Data conversion device
CN104796382A (en) Method and device for providing online connection of multiple interfaces
JP2016019059A (en) Data transmitter and data transmission system

Legal Events

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