[go: up one dir, main page]

KR20120041990A - Data transmission system and method for transmitting data between different type protocols - Google Patents

Data transmission system and method for transmitting data between different type protocols Download PDF

Info

Publication number
KR20120041990A
KR20120041990A KR1020100103432A KR20100103432A KR20120041990A KR 20120041990 A KR20120041990 A KR 20120041990A KR 1020100103432 A KR1020100103432 A KR 1020100103432A KR 20100103432 A KR20100103432 A KR 20100103432A KR 20120041990 A KR20120041990 A KR 20120041990A
Authority
KR
South Korea
Prior art keywords
data
controller
size
information
gateway
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
KR1020100103432A
Other languages
Korean (ko)
Other versions
KR101573549B1 (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 KR1020100103432A priority Critical patent/KR101573549B1/en
Publication of KR20120041990A publication Critical patent/KR20120041990A/en
Application granted granted Critical
Publication of KR101573549B1 publication Critical patent/KR101573549B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • 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/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40241Flexray

Landscapes

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

Abstract

본 발명은 자동차에서 사용되는 이종 프로토콜 간 데이터 전송을 위한 시스템 및 그 데이터 전송 방법에 관한 것으로, 게이트웨이가 플렉스레이(FlexRay) 제어기로부터 모든 데이터를 전송받은 후 이를 CAN(Controller Area Network)에 전송하지 않고 CAN 제어기가 수신할 수 있는 만큼씩만 플렉스레이로부터 전송받아 이를 CAN 제어기에 전송해줌으로써 대용량의 데이터를 전송하는 경우에도 전송 지연 및 손실을 최소화할 수 있다.The present invention relates to a system for transmitting data between heterogeneous protocols used in automobiles and a method for transmitting the data, and after the gateway receives all data from a FlexRay controller, the gateway does not transmit the data to a controller area network (CAN). Transmission delays and losses can be minimized even when a large amount of data is transmitted by receiving from the FlexRay as much as the CAN controller can receive.

Description

이종 프로토콜 간 대용량 데이터 전송을 위한 데이터 전송 시스템 및 그 데이터 전송 방법{Data transmission system and method for transmitting data between different type protocols}Data transmission system and method for transmitting data for large data transmission between heterogeneous protocols

본 발명은 데이터 전송 시스템 및 전송 방법에 관한 것으로서, 보다 상세하게는 자동차에 적용되는 이종 프로토콜 간에 지연 및 손실을 최소화하면서 대용량의 데이터를 보다 효율적으로 전송할 수 있도록 해주는 데이터 전송 시스템 및 전송 방법에 관한 것이다.The present invention relates to a data transmission system and a transmission method. More particularly, the present invention relates to a data transmission system and a transmission method that can efficiently transmit a large amount of data while minimizing delay and loss between heterogeneous protocols applied to a vehicle. .

현재 자동차의 내부 통신 네트워크에는 다양한 통신 프로토콜들이 적용되어 사용되고 있다. 이러한 통신 프로토콜로는 차량용 근거리 통신망(LAN)의 표준 인터페이스 규격으로 가장 많이 보급되어 있는 CAN(Controller Area Network), 가격대 성능비가 뛰어난 단선의 차량 LAN 통신 표준인 상호연결망(LIN), 최근 차세대 차량용 통신으로 주목받고 있는 차세대 엑스 바이 와이어(Anything by Wire; 'X-by-Wire') 시스템용 통신 표준인 플레스레이(FlexRay) 등이 있다.Currently, various communication protocols are applied to an internal communication network of an automobile. Such communication protocols include CAN (Controller Area Network), which is the most widely used as a standard interface standard for vehicle local area networks (LAN), interconnection network (LIN), which is a single-line vehicle LAN communication standard with excellent cost performance, and the latest generation of vehicle communication. Featured are FlexRay, a communications standard for the next generation of Any by Wire ('X-by-Wire') systems.

이 중에서 CAN 통신은 최대 8바이트의 크기를 가지는 데이터를 장비 ID의 우선순위에 기반하여 전송하는 방식이다. 이때 네트워크 토폴로지(topology)는 버스 형태를 가지며, 한 네트워크에 존재하는 여러 노드가 오류 없이 통신하기 위해 충돌 감지 기능을 이용하여 우선순위가 가장 높은 한 노드만 송신할 수 있도록 조정된다.Among them, CAN communication transmits data having a size of up to 8 bytes based on the priority of the device ID. At this time, the network topology has a bus shape, and in order for multiple nodes in one network to communicate without error, the network topology is adjusted to transmit only one node having the highest priority using the collision detection function.

그리고 플렉스레이는 정적 세그먼트에 대한 TDMA(Time Division Multiple Access) 방식 및 동적 세그먼트에 대한 FTDMA(Flexible Time-Division Multiple-Access) 배열을 사용하는 것으로 규정된다. 이러한 플렉스레이는 최대 254 바이트의 크기를 가지는 데이터를 자신에게 할당된 시간에만 보내도록 하는 고정슬롯(static slot) 방식 및 우선순위에 기반한 가변슬롯(dynamic slot) 방식을 이용한다. 따라서 플렉스레이는 시분할 및 우선순위 기반 다중접속 방식을 동시에 지원할 수 있어 유연한 네트워크 구성이 가능하며, 네트워크 토폴러지는 버스 및 스타 형태를 갖는다. 또한, 전송속도는 최대 10Mbps이며 백업채널을 설정하여 통신의 신뢰성을 향상시킬 수 있다.In addition, flexlay is defined to use a time division multiple access (TDMA) scheme for static segments and a flexible time-division multiple-access (FTDMA) arrangement for dynamic segments. The FlexRay uses a static slot scheme and a priority-based dynamic slot scheme to send data having a size of up to 254 bytes only to the time allocated thereto. Therefore, FlexRay can simultaneously support time division and priority-based multiple access schemes, enabling flexible network configuration, and network topology has bus and star shapes. In addition, the transmission speed is up to 10Mbps and can set up a backup channel to improve the reliability of the communication.

상술한 CAN 통신 방식과 플렉스레이 통신 방식을 비교 정리하면 표 1과 같다.Table 1 shows a comparison of the above-described CAN communication method and the FlexRay communication method.

Figure pat00001
Figure pat00001

이처럼 CAN 통신 방식과 플렉스레이 통신 방식은 통신 속도 및 전송 방식에 있어서 차이가 있다. 따라서 이러한 이종 프로토콜 간 데이터 전송시에는 서로 다른 프로토콜에 따라 상이한 전송 사이즈 등의 내부 전송 방식의 차이를 고려하여 데이터를 처리해주는 게이트웨이가 사용되고 있으며 이러한 게이트웨이를 통해 전송 지연을 최소화하고 있다.As such, there is a difference in the communication speed and the transmission method between the CAN communication method and the flex ray communication method. Therefore, in the data transmission between these heterogeneous protocols, a gateway that processes data in consideration of a difference in internal transmission methods such as different transmission sizes according to different protocols is used, and transmission delays are minimized through such gateways.

이러한 게이트웨이를 이용한 CAN과 플렉스레이 사이의 데이터 통신에 있어서, 플렉스레이 제어기가 CAN 제어기에 데이터를 전송시 게이트 웨이는 플렉스레이 제어기로부터 전송 대상 데이터를 일단 모두 수신한 후 수신된 데이터를 CAN 방식에 따라 CAN 제어기에 전송해주는 방법이 사용되고 있다.In data communication between CAN and FlexRay using such a gateway, when the FlexRay controller transmits data to the CAN controller, the gateway receives all data to be transmitted from the FlexRay controller and then receives the received data according to the CAN method. The transmission method to the CAN controller is used.

그런데 이처럼 게이트웨이가 전송 대상 데이터를 플렉스레이 제어기로부터 모두 수신한 후 이를 CAN 제어기에 전송시, 전송 대상 데이터의 용량이 큰 경우 CAN 통신 방식에 의해 규정된 타이밍 파라메터(toB, toC)를 만족시키지 못하는 경우가 발생할 수 있으며 그러한 경우 상당한 통신 지연 또는 데이터 손실을 유발할 수 있다.However, when the gateway receives all data to be transmitted from the FlexRay controller and then transmits the data to the CAN controller, when the capacity of the data to be transmitted is large, the gateway does not satisfy the timing parameters (toB, toC) specified by the CAN communication method. Can occur and can cause significant communication delays or data loss.

따라서, 상술한 문제를 해결하기 위한 본 발명의 목적은 데이터 전송능력이 다른 이종 프로토콜 간의 데이터 전송 방식을 개선하여 데이터 전송시 지연 및 손실을 최소화하는데 있다.Accordingly, an object of the present invention for solving the above problems is to minimize the delay and loss in data transmission by improving the data transmission method between heterogeneous protocols having different data transmission capacities.

본 발명의 일 실시 예에 따른 데이터 전송 시스템은 제 1 통신 방식과 제 2 통신 방식 사이의 데이터 전송을 중개하는 게이트웨이, 상기 제 1 통신 방식에 따라 데이터를 전송하며, 전송 대상 데이터의 크기에 대한 정보를 상기 게이트웨이에 전달하는 제 1 제어기 및 상기 제 2 통신 방식에 따라 데이터를 수신하며, 수신 가능한 데이터의 크기에 대한 정보를 상기 게이트웨이에 전달하는 제 2 제어기를 포함하며, 상기 게이트웨이는 상기 전송 대상 데이터의 크기에 대한 정보, 상기 수신 가능한 데이터의 크기에 대한 정보 및 상기 제 2 제어기에 이미 전송된 데이터 양에 대한 정보를 근거로 전송 요청 데이터의 크기를 계산한 후 해당 정보를 상기 제 1 제어기에 전달한다.The data transmission system according to an embodiment of the present invention is a gateway for mediating data transmission between a first communication method and a second communication method, and transmits data according to the first communication method, and information on the size of data to be transmitted. And a second controller for receiving data according to the second communication scheme and a second controller for transmitting the information about the size of the receivable data to the gateway, wherein the gateway includes the data to be transmitted. After calculating the size of the transmission request data on the basis of the information on the size of the information, the size of the receivable data and the information on the amount of data already transmitted to the second controller and transfers the information to the first controller do.

본 발명의 데이터 전송 시스템에서 상기 제 1 제어기는 플렉스레이(FlexRay) 제어기이며, 상기 제 2 제어기는 CAN(Controller Area Network) 제어기일 수 있다.In the data transmission system of the present invention, the first controller may be a FlexRay controller, and the second controller may be a controller area network (CAN) controller.

이때, 상기 제 1 제어기는 SF(Start Frame) 메시지에 상기 전송 대상 데이터의 크기에 대한 정보를 포함시켜 상기 게이트웨이에 전달하며, 상기 제 2 제어기는 FC(Flow Control) 메시지에 상기 수신 가능한 데이터의 크기에 대한 정보를 포함시켜 상기 게이트웨이에 전달한다.In this case, the first controller includes information on the size of the data to be transmitted in a start frame (SF) message and transmits the information to the gateway, and the second controller transmits the size of the receivable data in a flow control (FC) message. Includes information about the pass to the gateway.

본 발명의 데이터 전송 시스템에서 상기 게이트웨이는 전송해야 할 데이터의 크기가 상기 수신 가능한 데이터의 크기보다 큰 경우 상기 제 2 제어기의 수신 허용 가능한 최대 CF(Consecutive Frame)의 수에 대응되는 크기를 상기 전송 요청 데이터의 크기로 정할 수 있다.In the data transmission system of the present invention, when the size of data to be transmitted is larger than the size of the receivable data, the gateway requests the transmission size corresponding to the maximum allowable number of consecutive frames (CF) of the second controller. This can be determined by the size of the data.

본 발명의 일 실시 예에 따른 데이터 전송 방법은 제 1 통신 방식을 사용하는 제 1 제어기와 제 2 통신 방식을 사용하는 제 2 제어기 간의 데이터 전송에 있어서, 상기 제 1 제어기로부터 전송 대상 데이터의 크기에 대한 정보를 제공받는 제 1 단계, 상기 제 2 제어기로부터 수신 가능한 데이터의 크기에 대한 정보를 제공받는 제 2 단계, 상기 전송 대상 데이터의 크기에 대한 정보, 상기 수신 가능한 데이터의 크기에 대한 정보 및 이미 전송된 데이터 양에 대한 정보를 근거로 전송 요청 데이터의 크기를 계산하는 제 3 단계 및 상기 전송 요청 데이터에 대한 정보를 상기 제 1 제어기에 전달하여 상기 제 1 제어기로부터 상기 전송 요청 데이터의 크기 만큼의 데이터를 전송받아 상기 제 1 제어기에 전송하는 제 4 단계를 포함한다.In the data transmission method according to an embodiment of the present invention, in the data transmission between a first controller using a first communication method and a second controller using a second communication method, a size of data to be transmitted from the first controller is determined. A first step of receiving information about the second step of receiving information on the size of data receivable from the second controller, information on the size of the data to be transmitted, information on the size of the receivable data and A third step of calculating a size of the transmission request data based on the information on the amount of data transmitted; and transmitting information about the transmission request data to the first controller so that the size of the transmission request data from the first controller is equal to. And receiving a data and transmitting the data to the first controller.

본 발명은 데이터 전송 능력이 서로 다른 이종 통신 프로토콜 간에 대용량의 데이터를 전송시 전송 지연 및 데이터 손실을 방지할 수 있다.The present invention can prevent transmission delay and data loss when transmitting a large amount of data between heterogeneous communication protocols having different data transmission capabilities.

도 1은 본 발명의 일 실시 예에 따른 이종 프로토콜 간 데이터 전송 시스템의 구성을 나타낸 구성도.
도 2는 도 1의 시스템에서의 데이터 전송 방법을 설명하기 위한 타이밍 챠트.
1 is a block diagram showing the configuration of a data transfer system between heterogeneous protocols according to an embodiment of the present invention.
2 is a timing chart for explaining a data transmission method in the system of FIG.

이하, 첨부된 도면들을 참조하여 본 발명의 바람직한 실시 예를 보다 상세하게 설명하고자 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시 예에 따른 이종 프로토콜 간 데이터 전송 시스템의 구성을 나타낸 구성도이다.1 is a block diagram showing the configuration of a data transmission system between heterogeneous protocols according to an embodiment of the present invention.

도 1의 데이터 전송 시스템은 CAN 제어기(10), 플렉스레이 제어기(20) 및 게이트웨이(GW)(30)를 포함한다.The data transmission system of FIG. 1 includes a CAN controller 10, a flexlay controller 20 and a gateway (GW) 30.

CAN 제어기(10)는 게이트웨이(30)에 주기적으로 CAN 메시지를 전송하여 데이터 전송을 요청하며, 데이터 수신시 게이트웨이(30)에게 자신이 수신 가능한 데이터 크기(버퍼 사이즈)에 대한 정보를 알려준다. 즉, CAN 제어기(10)는 데이터 전송을 요청하는 Req 메시지를 게이트웨이(30)에 전송한 후 그에 대한 응답으로 FF(First Frame) 메시지가 수신되면, 게이트웨이(30)에 FC(Flow Control) 메시지를 전송하게 되는데 이 FC 메시지에 자신이 수신할 수 있는 최대 데이터 사이즈에 대한 정보를 포함시켜 전송한다.The CAN controller 10 periodically transmits a CAN message to the gateway 30 to request data transmission, and when the data is received, the CAN controller 10 informs the gateway 30 of information about a data size (buffer size) it can receive. That is, the CAN controller 10 transmits a Req message requesting data transmission to the gateway 30 and receives a first frame (FF) message in response thereto, and sends a FC (Flow Control) message to the gateway 30. The FC message includes information about the maximum data size it can receive.

플렉스레이 제어기(20)는 게이트웨이(30)로부터 Req 메시지가 수신되면, 자신이 CAN 제어기(10)에 전송해 줄 전체 전송 데이터의 크기에 대한 정보를 게이트웨이(30)에 알려주고, 게이트웨이(30)로부터의 요청에 따라 전체 전송 데이터를 요청된 만큼씩 분할하여 게이트웨이(30)에 전송한다. 즉, 플렉스레이 제어기(20)는 전송 대상 데이터를 게이트웨이(30)에 한꺼번에 모두 전송하지 않고 게이트웨이(30)의 요청에 따라 분할하여 게이트웨이(30)에 전송한다. 이를 위해, 플렉스레이 제어기(20)는 게이트웨이(30)로부터 Req 메시지가 수신되면 그에 대한 응답으로 SF(Start Frame) 메시지를 게이트웨이(30)에 전송하는데 이 SF 메시지에 전송 대상 데이터의 크기에 대한 정보를 포함시켜 전송한다.When the Flexray controller 20 receives a Req message from the gateway 30, the flexray controller 20 informs the gateway 30 of the size of the entire transmission data to be transmitted to the CAN controller 10 and sends the information from the gateway 30 to the gateway 30. In accordance with the request of the entire transmission data is divided by the requested and transmitted to the gateway 30. That is, the FlexRay controller 20 divides the data to be transmitted to the gateway 30 at once without splitting the data to be transmitted to the gateway 30 and transmits the divided data to the gateway 30 at the request of the gateway 30. To this end, the FlexRay controller 20 transmits a start frame (SF) message to the gateway 30 in response to receiving a Req message from the gateway 30. Information on the size of the data to be transmitted is included in the SF message. Include and send.

게이트웨이(30)는 서로 다른 통신 방식을 사용하는 CAN 제어기(10)와 플렉스레이 제어기(20) 사이의 데이터 송수신이 가능하도록 CAN 통신 방식과 플렉스레이 통신 방식을 중개한다. 특히 본 발명의 게이트웨이(30)는 CAN 제어기(10)로부터 제공받은 버퍼 사이즈에 대한 정보, 플렉스레이 제어기(20)로부터 제공받은 전체 전송 데이터에 대한 정보 및 CAN 제어기(10)에 전송된 데이터 양에 대한 정보를 이용하여 플렉스레이 제어기(20)에게 CAN 제어기(10)가 수신할 수 있는 정도의 데이터만을 전송 요청한다. 즉, 게이트웨이(30)는 데이터 전송 능력이 큰 플렉스레이 제어기(20)에서 데이터 전송 능력이 상대적으로 작은 CAN 제어기(20)로의 데이터 전송을 중개시, 전송해야 할 데이터가 CAN 제어기(10)의 버퍼 사이즈를 초과하는 경우, 플렉스레이 제어기(20)로부터 전송 데이터를 한꺼번에 모두 전송받지 않고 CAN 제어기(10)에서 수용할 수 있는 크기 만큼씩 나누어 전송받는다.The gateway 30 mediates the CAN communication method and the FlexRay communication method so that data can be transmitted and received between the CAN controller 10 and the FlexRay controller 20 using different communication methods. In particular, the gateway 30 of the present invention is based on the information on the buffer size provided from the CAN controller 10, the information on the total transmission data provided from the flex-ray controller 20 and the amount of data transmitted to the CAN controller 10 By using the information about the request to the Flex-ray controller 20 transmits only the data that can be received by the CAN controller 10. That is, when the gateway 30 mediates the data transmission from the FlexRay controller 20 having a large data transmission capability to the CAN controller 20 having a relatively small data transmission capability, the data to be transmitted is buffered by the CAN controller 10. If the size is exceeded, the data is transmitted by dividing by the size that can be accommodated in the CAN controller 10 without receiving all the transmission data from the flex-ray controller 20 at once.

도 2는 도 1의 시스템에서의 데이터 전송 방법을 설명하기 위한 타이밍 챠트이다.FIG. 2 is a timing chart for explaining a data transmission method in the system of FIG. 1.

CAN 제어기(10)가 데이터 전송을 요청하는 Req 메시지를 CAN 통신 방식에 따른 메시지 포맷으로 게이트웨이(30)에 전송하면, 게이트웨이(30)는 해당 신호를 플렉스레이 방식의 메시지 포맷으로 변환하여 플렉스레이 제어기(20)에 전송한다.When the CAN controller 10 transmits a Req message requesting data transmission to the gateway 30 in a message format according to the CAN communication method, the gateway 30 converts the corresponding signal into a message format of the FlexRay method, thereby flexing the controller. Send to 20.

Req 메시지를 수신한 플렉스레이 제어기(20)는 CAN 제어기(10)에 전송해 줄 데이터가 있는 경우 SF(Start Frame) 메시지를 게이트웨이(30)에 전송한다. 이때, SF 메시지에는 CAN 제어기(10)에 전송해 줄 전체 전송 데이터의 크기에 대한 정보가 포함된다.Upon receiving the Req message, the flexray controller 20 transmits a start frame (SF) message to the gateway 30 when there is data to be transmitted to the CAN controller 10. At this time, the SF message includes information on the size of the total transmission data to be transmitted to the CAN controller 10.

SF 메시지를 수신한 게이트웨이(30)는 SF 메시지에 포함된 전송 데이터를 CAN 방식의 FF(First Frame) 메시지로 변환하여 CAN 제어기(10)에 전송한다. 그리고 게이트웨이(30)는 나머지 전송해 주어야 할 데이터를 CAN 통신 방식의 CF(Consecutive Frame) 메시지로 전송시 필요한 CF(Consecutive Frame)의 개수(전체 CF 개수)를 계산한다.The gateway 30 receiving the SF message converts the transmission data included in the SF message into a CAN-type first frame (FF) message and transmits it to the CAN controller 10. In addition, the gateway 30 calculates the number of CFs (the total number of CFs) required for transmitting the remaining data to be transmitted as a CF (Consecutive Frame) message of a CAN communication method.

즉, 게이트웨이(30)는 전체 전송 대상 데이터의 크기에서 이미 CAN 제어기(10)에 전송한 데이터(FF에 포함시켜 전송한 데이터)의 크기를 뺀 후 이를 CF의 크기로 나누어 줌으로써 전체 CF 개수를 계산한다.That is, the gateway 30 calculates the total number of CFs by subtracting the size of the data already transmitted to the CAN controller 10 from the size of the total transmission target data (data included in the FF) and dividing it by the size of the CF. do.

FF 메시지를 수신한 CAN 제어기(10)는 이에 응답하여 FC(Flow Control) 메시지를 게이트웨이(30)에 전송한다. 이때, FC 메시지에는 CAN 제어기(10)가 수신 가능한 데이터의 크기(버퍼 사이즈)에 대한 정보가 포함된다.Upon receiving the FF message, the CAN controller 10 transmits a FC (Flow Control) message to the gateway 30 in response. At this time, the FC message includes information on the size (buffer size) of data that can be received by the CAN controller 10.

FC 메시지를 수신한 게이트웨이(30)는 전체 CF 개수가 FC 메시지에 포함된 버퍼 사이즈보다 큰 경우 즉 전송해 주어야 할 데이터를 한번에 모두 CAN 제어기(10)에 전송할 수 없는 경우, 전송 요청 데이터의 크기를 계산한 후 해당 정보를 FC 메시지에 포함시켜 플렉스레이 제어기(20)에 전송한다. 즉, 게이트웨이(30)는 플렉스레이 제어기(20)로부터 모든 전송 데이터를 한꺼번에 전송받지 않고 CAN 제어기(10)가 수신할 수 있는 데이터 크기를 계산한 후 그 정보를 플렉스레이 제어기(20)에 전달한다.When the total number of CFs is larger than the buffer size included in the FC message, that is, when the data to be transmitted cannot be transmitted to the CAN controller 10 at once, the gateway 30 receives the FC message. After calculation, the information is included in the FC message and transmitted to the flexlay controller 20. That is, the gateway 30 calculates the data size that the CAN controller 10 can receive without transmitting all the transmission data from the flexlay controller 20 at once and transfers the information to the flexray controller 20. .

이때, 전송 요청 데이터의 크기는 CAN 제어기(10)가 수신 가능한 데이터의 크기가 된다.In this case, the size of the transmission request data is the size of data that can be received by the CAN controller 10.

게이트웨이(30)로부터 FC 메시지를 수신한 플렉스레이 제어기(20)는 게이트웨이(30)로부터 요청된 만큼의 데이터만을 플렉스레이 통신 방식의 CF 메시지를 이용하여 연속적으로 게이트웨이(30)에 전송한다.Upon receiving the FC message from the gateway 30, the flexlay controller 20 continuously transmits only the data requested from the gateway 30 to the gateway 30 using the CF message of the flexray communication method.

플렉스레이 제어기(20)로부터 CF 메시지가 수신되면, 게이트웨이(30)는 이를 CAN 방식의 CF 메시지로 변환하여 실시간으로 CAN 제어기(10)에 전송한다. 그리고, 게이트웨이(30)는 CAN 제어기(10)에 전송한 CF의 개수를 카운트하여 저장한다.When the CF message is received from the flexlay controller 20, the gateway 30 converts the CF message into a CAN message of the CF method and transmits the CF message to the CAN controller 10 in real time. In addition, the gateway 30 counts and stores the number of CFs transmitted to the CAN controller 10.

CF 메시지를 모두 수신한 CAN 제어기(10)는 버퍼 사이즈에 대한 정보가 포함된 FC 메시지를 다시 게이트웨이(30)에 전송한다.The CAN controller 10 which has received all the CF messages transmits the FC message including the information on the buffer size back to the gateway 30.

CAN 제어기(10)로부터 FC 메시지를 수신한 게이트웨이(30)는 FC 메시지에 포함된 버퍼 사이즈와 전송해야 할 CF의 개수(전체 전송해야 할 CF의 개수에서 이미 전송해준 CF의 개수를 뺀 값)를 비교하여 전송 요청 데이터를 다시 계산한다.The gateway 30 receiving the FC message from the CAN controller 10 determines the buffer size included in the FC message and the number of CFs to be transmitted (the total number of CFs to be transmitted minus the number of CFs already transmitted). Compare and recalculate the transfer request data.

즉, 전송해야 할 CF의 개수가 여전히 CAN 제어기(10)의 버퍼 사이즈보다 큰 경우, 게이트웨이(30)는 상술한 바와 같이 BSmax에 대응되는 데이터의 크기를 전송 요청 데이터의 크기로 정하고 해당 정보를 FC 메시지에 포함시켜 플렉스레이 제어기(20)에 전송한다. 이 경우 상술한 CF 메시지 전송 과정이 반복 수행된다.That is, when the number of CFs to be transmitted is still larger than the buffer size of the CAN controller 10, the gateway 30 sets the size of the data corresponding to BSmax as the size of the transmission request data as described above and sets the corresponding information as FC. The message is included in the message and transmitted to the flexray controller 20. In this case, the above-described CF message transmission process is repeatedly performed.

그러나 전송해야 할 CF의 개수가 CAN 제어기(10)에서 버퍼 사이즈보다 작거나 같은 경우, 게이트웨이(30)는 전송해야 할 CF의 개수에 대응되는 데이터의 크기를 전송 요청 데이터의 크기로 정하고 해당 정보를 FC 메시지에 포함시켜 플렉스레이 제어기(20)에 전송한다.However, if the number of CFs to be transmitted is less than or equal to the buffer size in the CAN controller 10, the gateway 30 sets the size of data corresponding to the number of CFs to be transmitted as the size of the transmission request data and sets the corresponding information. It is included in the FC message and transmitted to the flexlay controller 20.

게이트웨이(30)로부터 FC 메시지를 수신한 플렉스레이 제어기(20)는 게이트웨이(30)로부터 요청된 만큼의 데이터(남아 있는 전송 대상 데이터 모두)를 플렉스레이 통신 방식의 CF 메시지를 이용하여 연속적으로 게이트웨이(30)에 전송하며, CF 메시지를 수신한 게이트웨이(30)는 이를 CAN 방식의 CF 메시지로 변환하여 CAN 제어기(10)로 전송한다.Receiving the FC message from the gateway 30, the FlexRay controller 20 continuously transmits as much data (all remaining transmission data) as requested from the gateway 30 using the CF message of the FlexRay communication method. 30), and receives the CF message, the gateway 30 converts the CF message into a CAN message and transmits it to the CAN controller 10.

10 : CAN 제어기 20 : 플렉스레이 제어기
30 : 게이트웨이
10: CAN controller 20: Flexray controller
30: gateway

Claims (6)

제 1 통신 방식과 제 2 통신 방식 사이의 데이터 전송을 중개하는 게이트웨이;
상기 제 1 통신 방식에 따라 데이터를 전송하며, 전송 대상 데이터의 크기에 대한 정보를 상기 게이트웨이에 전달하는 제 1 제어기; 및
상기 제 2 통신 방식에 따라 데이터를 수신하며, 수신 가능한 데이터의 크기에 대한 정보를 상기 게이트웨이에 전달하는 제 2 제어기를 포함하며,
상기 게이트웨이는
상기 전송 대상 데이터의 크기에 대한 정보, 상기 수신 가능한 데이터의 크기에 대한 정보 및 상기 제 2 제어기에 이미 전송된 데이터 양에 대한 정보를 근거로 전송 요청 데이터의 크기를 계산한 후 해당 정보를 상기 제 1 제어기에 전달하는 것을 특징으로 하는 데이터 전송 시스템.
A gateway for mediating data transmission between the first and second communication schemes;
A first controller configured to transmit data according to the first communication scheme and to transmit information about a size of data to be transmitted to the gateway; And
A second controller configured to receive data according to the second communication scheme and to transmit information about a size of the data that can be received to the gateway;
The gateway is
After calculating the size of the transmission request data on the basis of the information on the size of the data to be transmitted, the information on the size of the data that can be received and the amount of data already transmitted to the second controller, the information is stored in the second information. 1 Data transmission system characterized in that for transmitting to the controller.
제 1항에 있어서,
상기 제 1 제어기는 플렉스레이(FlexRay) 제어기이며, 상기 제 2 제어기는 CAN(Controller Area Network) 제어기인 것을 특징으로 하는 데이터 전송 시스템.
The method of claim 1,
And the first controller is a FlexRay controller and the second controller is a controller area network (CAN) controller.
제 2항에 있어서, 상기 제 1 제어기는
SF(Start Frame) 메시지에 상기 전송 대상 데이터의 크기에 대한 정보를 포함시켜 상기 게이트웨이에 전달하는 것을 특징으로 하는 데이터 전송 시스템.
The method of claim 2, wherein the first controller
And transmitting the information on the size of the data to be transmitted in a start frame (SF) message to the gateway.
제 2항에 있어서, 상기 제 2 제어기는
FC(Flow Control) 메시지에 상기 수신 가능한 데이터의 크기에 대한 정보를 포함시켜 상기 게이트웨이에 전달하는 것을 특징으로 하는 데이터 전송 시스템.
The method of claim 2, wherein the second controller is
And transmitting information to the gateway by including information on the size of the receivable data in a flow control (FC) message.
제 2항에 있어서, 상기 게이트웨이는
전송해야 할 데이터의 크기가 상기 수신 가능한 데이터의 크기보다 큰 경우 상기 제 2 제어기의 수신 허용 가능한 최대 CF(Consecutive Frame)의 수에 대응되는 크기를 상기 전송 요청 데이터의 크기로 정하는 것을 특징으로 하는 데이터 전송 시스템.
The method of claim 2, wherein the gateway
If the size of the data to be transmitted is larger than the size of the receivable data, the size corresponding to the maximum allowable number of receive frames of the second controller is set as the size of the transmission request data. Transmission system.
제 1 통신 방식을 사용하는 제 1 제어기와 제 2 통신 방식을 사용하는 제 2 제어기 간의 데이터 전송 방법에 있어서,
상기 제 1 제어기로부터 전송 대상 데이터의 크기에 대한 정보를 제공받는 제 1 단계;
상기 제 2 제어기로부터 수신 가능한 데이터의 크기에 대한 정보를 제공받는 제 2 단계;
상기 전송 대상 데이터의 크기에 대한 정보, 상기 수신 가능한 데이터의 크기에 대한 정보 및 이미 전송된 데이터 양에 대한 정보를 근거로 전송 요청 데이터의 크기를 계산하는 제 3 단계; 및
상기 전송 요청 데이터에 대한 정보를 상기 제 1 제어기에 전달하여 상기 제 1 제어기로부터 상기 전송 요청 데이터의 크기 만큼의 데이터를 전송받아 상기 제 1 제어기에 전송하는 제 4 단계를 포함하는 데이터 전송 방법.
A data transmission method between a first controller using a first communication method and a second controller using a second communication method,
A first step of receiving information on the size of data to be transmitted from the first controller;
A second step of receiving information on the size of data receivable from the second controller;
A third step of calculating a size of the transmission request data based on the information on the size of the data to be transmitted, the information on the size of the receivable data, and the information on the amount of data already transmitted; And
And transmitting the information on the transmission request data to the first controller, receiving data of the size of the transmission request data from the first controller, and transmitting the received data to the first controller.
KR1020100103432A 2010-10-22 2010-10-22 Data transmission system and method for transmitting data between different type protocols Active KR101573549B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100103432A KR101573549B1 (en) 2010-10-22 2010-10-22 Data transmission system and method for transmitting data between different type protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100103432A KR101573549B1 (en) 2010-10-22 2010-10-22 Data transmission system and method for transmitting data between different type protocols

Publications (2)

Publication Number Publication Date
KR20120041990A true KR20120041990A (en) 2012-05-03
KR101573549B1 KR101573549B1 (en) 2015-12-01

Family

ID=46262861

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100103432A Active KR101573549B1 (en) 2010-10-22 2010-10-22 Data transmission system and method for transmitting data between different type protocols

Country Status (1)

Country Link
KR (1) KR101573549B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102159298B1 (en) * 2019-04-08 2020-09-23 주식회사 디젠 Data transmission system between heterogeneous network of car gateway
KR20200118621A (en) * 2019-04-08 2020-10-16 주식회사 디젠 Device and method for preventing network hacking of vehicle using a gateway

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102131784B1 (en) 2018-12-07 2020-07-08 현대오트론 주식회사 Data Transfer Method For Vehicle ECU, And Vehicle ECU For Operating the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102159298B1 (en) * 2019-04-08 2020-09-23 주식회사 디젠 Data transmission system between heterogeneous network of car gateway
KR20200118621A (en) * 2019-04-08 2020-10-16 주식회사 디젠 Device and method for preventing network hacking of vehicle using a gateway

Also Published As

Publication number Publication date
KR101573549B1 (en) 2015-12-01

Similar Documents

Publication Publication Date Title
CN1996966B (en) Communication message converting apparatus and communication message converting method
EP3384638B1 (en) Systems and methods for implementing a time-stamped controller area network (can) bus message
AU2009298598B2 (en) Data transmission over a network with channel bonding
JP6500123B2 (en) In-vehicle gateway device and in-vehicle network system
JP5434512B2 (en) In-vehicle communication system, gateway device
US9014156B2 (en) Traffic forwarding in mesh networks
US20030039211A1 (en) Distributed bandwidth allocation architecture
US11134024B2 (en) Communication control device, switching device, out-of vehicle communication device, communication control method and communication control program
CN103974423A (en) Wireless frame length self-adaption communication method and node equipment
WO2023030336A1 (en) Data transmission method, tsn node, and computer readable storage medium
CN104144094A (en) Method for operating slave node of digital bus system
WO2021053759A1 (en) Network control device, communication resource assignment method, and communication system
WO2008041271A1 (en) Transmitting/receiving system, node and communication method
JP2007142764A (en) BAND ALLOCATION DEVICE, BAND ALLOCATION METHOD, AND BAND ALLOCATION PROGRAM FOR STATION
KR20120041990A (en) Data transmission system and method for transmitting data between different type protocols
KR102812679B1 (en) Controller commnication device and method thereof
WO2009069047A1 (en) Link-based transmission queue structure for wireless networks
JP2019129512A (en) On-vehicle relay device, relay method, information processing device, information processing system, and vehicle
JP4909350B2 (en) Message transmission method
KR101339604B1 (en) A method for resource management in multi-user hybrid medium access control (HMAC)-based wireless networks
KR101601303B1 (en) Method for mediating message with differed typed protocol
KR102159298B1 (en) Data transmission system between heterogeneous network of car gateway
KR20070117264A (en) FlexRay-Can Gateway Architecture and Message Mapping Methods
US8605733B2 (en) Method of data transmission, data transmitting apparatus, and network system
KR101514398B1 (en) Gateway in-vehicle based on virtual bus concepet and message transmission method thereof

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20101022

PG1501 Laying open of application
A201 Request for examination
PA0201 Request for examination

Patent event code: PA02012R01D

Patent event date: 20141013

Comment text: Request for Examination of Application

Patent event code: PA02011R01I

Patent event date: 20101022

Comment text: Patent Application

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 20150616

Patent event code: PE09021S01D

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

Patent event code: PE07011S01D

Comment text: Decision to Grant Registration

Patent event date: 20151028

GRNT Written decision to grant
PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 20151125

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 20151125

End annual number: 3

Start annual number: 1

PG1601 Publication of registration
FPAY Annual fee payment

Payment date: 20181030

Year of fee payment: 4

PR1001 Payment of annual fee

Payment date: 20181030

Start annual number: 4

End annual number: 4

FPAY Annual fee payment

Payment date: 20191029

Year of fee payment: 5

PR1001 Payment of annual fee

Payment date: 20191029

Start annual number: 5

End annual number: 5

PR1001 Payment of annual fee

Payment date: 20201028

Start annual number: 6

End annual number: 6

PR1001 Payment of annual fee

Payment date: 20211027

Start annual number: 7

End annual number: 7

PR1001 Payment of annual fee

Payment date: 20221026

Start annual number: 8

End annual number: 8