KR101876636B1 - Apparatus and Method for transmitting/receiving message - Google Patents

Apparatus and Method for transmitting/receiving message Download PDF

Info

Publication number
KR101876636B1
KR101876636B1 KR1020160134204A KR20160134204A KR101876636B1 KR 101876636 B1 KR101876636 B1 KR 101876636B1 KR 1020160134204 A KR1020160134204 A KR 1020160134204A KR 20160134204 A KR20160134204 A KR 20160134204A KR 101876636 B1 KR101876636 B1 KR 101876636B1
Authority
KR
South Korea
Prior art keywords
message
transmission buffer
transmission
identification information
buffer
Prior art date
Application number
KR1020160134204A
Other languages
Korean (ko)
Other versions
KR20180042487A (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 KR1020160134204A priority Critical patent/KR101876636B1/en
Publication of KR20180042487A publication Critical patent/KR20180042487A/en
Application granted granted Critical
Publication of KR101876636B1 publication Critical patent/KR101876636B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/30Flow control; Congestion control in combination with information about buffer occupancy at either end or at transit nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

본 발명은 메시지 송수신 장치 및 방법에 관한 것으로, 보다 상세하게는 수신된 메시지에 할당된 송신 버퍼를 확인하고 송신 버퍼의 점유 상태를 제어하여, 해당 송신 버퍼를 통해 수신된 메시지를 송신하는 메시지 송수신 장치 및 방법에 관한 것이다. 본 발명의 일 실시예에 따른 메시지 송수신 장치는 제1 외부기기로부터 메시지를 수신하는 메시지 수신부, 상기 수신된 메시지에 할당된 송신 버퍼를 확인하는 버퍼 확인부, 상기 메시지에 할당된 송신 버퍼가 점유 상태인지 여부를 판단하고, 상기 판단 결과에 따라 상기 송신 버퍼의 점유 상태를 제어하는 제어부 및 상기 송신 버퍼를 통해 상기 수신된 메시지를 제2 외부기기로 송신하는 메시지 송신부를 포함하는 것을 특징으로 한다.The present invention relates to a message transmission / reception apparatus and method, and more particularly, to a message transmission / reception apparatus and method for transmitting a message received through a corresponding transmission buffer by checking a transmission buffer allocated to a received message, And methods. A message transmission / reception apparatus according to an exemplary embodiment of the present invention includes a message reception unit for receiving a message from a first external device, a buffer confirmation unit for confirming a transmission buffer allocated to the received message, A control unit for controlling the occupation state of the transmission buffer according to the determination result, and a message transmission unit for transmitting the received message to the second external device through the transmission buffer.

Description

메시지 송수신 장치 및 방법{Apparatus and Method for transmitting/receiving message}[0001] Apparatus and Method for Transmitting and Receiving Messages [0002]

본 발명은 메시지 송수신 장치 및 방법에 관한 것으로, 보다 상세하게는 수신된 메시지에 할당된 송신 버퍼를 확인하고 송신 버퍼의 점유 상태를 제어하여, 해당 송신 버퍼를 통해 수신된 메시지를 송신하는 메시지 송수신 장치 및 방법에 관한 것이다.The present invention relates to a message transmission / reception apparatus and method, and more particularly, to a message transmission / reception apparatus and method for transmitting a message received through a corresponding transmission buffer by checking a transmission buffer allocated to a received message, And methods.

최근 대부분의 차량에 디지털 기술이 도입되고, 차량에 탑재되는 전자 제품의 수가 무수히 많아지면서 차량 내 외의 많은 변수들을 고려하여 차량 시스템을 제어할 필요성이 대두되고 있다. 이에 따라, 엔진의 기능뿐만 아니라 구동계통 및 조향계통 등 차량의 모든 부분을 제어하기 위한 차량용 전자 제어 장치(Electronic Control Unit; ECU)가 이용된다.Recently, digital technology has been introduced to most vehicles, and the number of electronic products mounted on the vehicle has increased so much that there is a need to control the vehicle system in consideration of many parameters inside and outside the vehicle. Accordingly, an electronic control unit (ECU) for a vehicle is used to control not only the function of the engine but also all parts of the vehicle such as the drive system and the steering system.

이러한 차량용 전자 제어 장치는 차량용 운영체제(Operating System; OS)를 기반으로 하여 상호 통신한다. 대표적인 통신 방법으로는 캔(Controller Area Network; CAN) 통신이 있는데, 캔 통신은 차량 내에서 호스트 컴퓨터 없이 개별 전자 제어 장치들이 서로 통신하기 위해 설계된 표준 통신 규격이다. 이러한 캔 통신에 의하면, 각각의 전자 제어 장치는 다른 전자 제어 장치와 통신하기 위하여 메시지를 송신 또는 수신한다.Such vehicle electronic control devices communicate with each other based on an operating system (OS) of a vehicle. A typical communication method is a CAN (Controller Area Network) communication. CAN communication is a standard communication standard designed for communication between individual electronic control devices in a vehicle without a host computer. According to this can communication, each electronic control device transmits or receives a message to communicate with another electronic control device.

최근에는 차량 내부의 전자 제어 장치들의 수가 많아지면서 캔 통신의 네트워크 복잡도가 크게 증가하고 있다. 이러한 네트워크의 복잡도를 줄이기 위해 게이트웨이 프로세서와 같은 메시지 송수신 장치가 이용된다.Recently, as the number of electronic control devices in a vehicle increases, the network complexity of can communication is greatly increased. In order to reduce the complexity of such a network, a message transmission / reception device such as a gateway processor is used.

메시지 송수신 장치는 전자 제어 장치 간에 송수신되는 메시지의 교환을 중계함으로써 네트워크의 복잡도를 줄이는 역할을 수행한다. 다시 말해, 각각의 전자 제어 장치는 메시지 송수신 장치를 통해 다른 전자 제어 장치와 통신함으로써 전체 네트워크의 구성이 단순해진다.The message transmission / reception device plays a role of reducing the complexity of the network by relaying exchange of messages exchanged between the electronic control devices. In other words, each electronic control device communicates with another electronic control device through the message transmitting / receiving device, thereby simplifying the configuration of the entire network.

그러나, 이와 같은 메시지 송수신 장치를 이용하더라도, 송수신되는 메시지의 개수가 급격히 증가하면 메시지를 처리하는데 과부하가 발생하여 통신 장애 및 전체 차량 시스템의 장애를 발생시킬 수 있다. 이러한 문제점을 해결하기 위하여 메시지를 효율적으로 중계하기 위한 다양한 방법이 제시되어 왔다.However, even if such a message transmission / reception apparatus is used, if the number of transmitted / received messages increases suddenly, an overload may occur in processing a message, resulting in a communication failure and a failure of the entire vehicle system. To solve these problems, various methods for efficiently relaying messages have been proposed.

종래의 메시지 송수신 방법은 메시지 송신이 완료되면 해당 메시지가 송신된 버퍼를 검색하여 해당 버퍼를 초기화 시킨 후에 다음 메시지의 송신을 시작한다. 다시 말해, 종래의 메시지 송수신 방법에 의하면 임의의 메시지 송신이 완료될 때마다 메시지가 송신된 버퍼를 검색해야 하므로 송신 버퍼의 검색에 따른 시스템 부하가 발생하는 문제점이 있다.In the conventional message transmission / reception method, when message transmission is completed, a buffer in which a corresponding message is transmitted is searched to initialize the corresponding buffer, and then transmission of the next message starts. In other words, according to the conventional message transmission / reception method, since a message buffer is searched every time a certain message transmission is completed, there is a problem that system load due to search of a transmission buffer occurs.

또한, 종래의 메시지 송수신 방법에 의하면 송신 예정된 메시지가 없는 경우에도 이전 메시지의 송신이 완료될 때마다 메시지가 송신된 버퍼를 초기화 하므로 불필요한 데이터 처리를 수행하는 문제점이 있다.Also, according to the conventional message transmission / reception method, there is a problem in that unnecessary data processing is performed because the buffer in which the message is transmitted is initialized every time transmission of the previous message is completed even when there is no message scheduled to be transmitted.

본 발명은 수신된 메시지에 할당된 송신 버퍼를 확인하여 해당 송신 버퍼의 점유 상태를 제어함으로써, 송신 버퍼의 검색에 따른 시스템 부하를 줄일 수 있는 메시지 송수신 장치 및 방법을 제공하는 것을 목적으로 한다.An object of the present invention is to provide a message transmission / reception apparatus and method capable of reducing a system load due to a search of a transmission buffer by checking a transmission buffer allocated to a received message and controlling an occupation state of the transmission buffer.

또한, 본 발명은 메시지를 송신하기 이전에 해당 메시지에 할당된 송신 버퍼를 비점유 상태로 제어함으로써, 메시지 송신을 위한 데이터 처리를 최소화 할 수 있는 메시지 송수신 장치 및 방법을 제공하는 것을 목적으로 한다.Another object of the present invention is to provide a message transmission / reception apparatus and method capable of minimizing data processing for message transmission by controlling a transmission buffer allocated to a message before transmitting the message to a non-occupied state.

또한, 본 발명은 메시지의 식별 정보에 대응되는 송신 버퍼의 인덱스를 포함하는 라우팅 테이블을 참조함으로써, 메시지 및 메시지에 할당된 송신 버퍼를 효율적으로 관리할 수 있는 메시지 송수신 장치 및 방법을 제공하는 것을 목적으로 한다.It is another object of the present invention to provide a message transmission / reception apparatus and method capable of efficiently managing a transmission buffer allocated to a message and a message by referring to a routing table including an index of a transmission buffer corresponding to identification information of the message .

또한, 본 발명은 수신된 메시지에 할당된 송신 버퍼가 존재하지 않으면 비점유 상태인 송신 버퍼 중 어느 하나의 버퍼를 수신된 메시지에 할당함으로써, 라우팅 테이블을 유동적으로 관리할 수 있는 메시지 송수신 장치 및 방법을 제공하는 것을 목적으로 한다.The present invention also provides a message transmission / reception apparatus and method capable of flexibly managing a routing table by allocating any one of transmission buffers in a non-occupied state to a received message if a transmission buffer allocated to the received message does not exist And to provide the above objects.

본 발명의 목적들은 이상에서 언급한 목적으로 제한되지 않으며, 언급되지 않은 본 발명의 다른 목적 및 장점들은 하기의 설명에 의해서 이해될 수 있고, 본 발명의 실시예에 의해 보다 분명하게 이해될 것이다. 또한, 본 발명의 목적 및 장점들은 특허 청구 범위에 나타낸 수단 및 그 조합에 의해 실현될 수 있음을 쉽게 알 수 있을 것이다.The objects of the present invention are not limited to the above-mentioned objects, and other objects and advantages of the present invention which are not mentioned can be understood by the following description and more clearly understood by the embodiments of the present invention. It will also be readily apparent that the objects and advantages of the invention may be realized and attained by means of the instrumentalities and combinations particularly pointed out in the appended claims.

이러한 목적을 달성하기 위한 본 발명의 일 실시예에 따른 메시지 송수신 장치는 제1 외부기기로부터 메시지를 수신하는 메시지 수신부, 상기 수신된 메시지에 할당된 송신 버퍼를 확인하는 버퍼 확인부, 상기 메시지에 할당된 송신 버퍼가 점유 상태인지 여부를 판단하고, 상기 판단 결과에 따라 상기 송신 버퍼의 점유 상태를 제어하는 제어부 및 상기 송신 버퍼를 통해 상기 수신된 메시지를 제2 외부기기로 송신하는 메시지 송신부를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a message transmitting and receiving apparatus including a message receiving unit for receiving a message from a first external device, a buffer checking unit for checking a transmission buffer allocated to the received message, And a message transmitter for transmitting the received message to the second external device through the transmission buffer, wherein the controller controls the occupation state of the transmission buffer according to the determination result, .

또한, 본 발명의 일 실시예에 따른 메시지 송수신 방법은 제1 외부기기로부터 메시지를 수신하는 단계, 상기 수신된 메시지에 할당된 송신 버퍼를 확인하는 단계, 상기 메시지에 할당된 송신 버퍼가 점유 상태인지 여부를 판단하는 단계, 상기 판단 결과에 따라 상기 송신 버퍼의 점유 상태를 제어하는 단계 및 상기 송신 버퍼를 통해 상기 수신된 메시지를 제2 외부기기로 송신하는 단계를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a message transmission / reception method including receiving a message from a first external device, checking a transmission buffer assigned to the received message, determining whether a transmission buffer allocated to the message is occupied Controlling the occupation state of the transmission buffer according to the determination result, and transmitting the received message to the second external device through the transmission buffer.

전술한 바와 같은 본 발명에 의하면 수신된 메시지에 할당된 송신 버퍼를 확인하여 해당 송신 버퍼의 점유 상태를 제어함으로써, 송신 버퍼의 검색에 따른 시스템 부하를 줄일 수 있는 효과가 있다.According to the present invention as described above, the transmission buffer allocated to the received message is identified and the occupation state of the corresponding transmission buffer is controlled, thereby reducing the system load due to the search of the transmission buffer.

또한, 본 발명에 의하면 메시지를 송신하기 이전에 해당 메시지에 할당된 송신 버퍼를 비점유 상태로 제어함으로써, 메시지 송신을 위한 데이터 처리를 최소화 할 수 있는 효과가 있다.In addition, according to the present invention, there is an effect that data processing for message transmission can be minimized by controlling the transmission buffer allocated to the message before it is transmitted to a non-occupied state.

또한, 본 발명에 의하면 메시지의 식별 정보에 대응되는 송신 버퍼의 인덱스를 포함하는 라우팅 테이블을 참조함으로써, 메시지 및 메시지에 할당된 송신 버퍼를 효율적으로 관리할 수 있는 효과가 있다.In addition, according to the present invention, a transmission buffer allocated to a message and a message can be efficiently managed by referring to a routing table including an index of a transmission buffer corresponding to identification information of the message.

또한, 본 발명에 의하면 수신된 메시지에 할당된 송신 버퍼가 존재하지 않으면 비점유 상태인 송신 버퍼 중 어느 하나의 버퍼를 수신된 메시지에 할당함으로써, 라우팅 테이블을 유동적으로 관리할 수 있는 효과가 있다.In addition, according to the present invention, when there is no transmission buffer allocated to a received message, any one of the transmission buffers in a non-occupied state is allocated to the received message, so that the routing table can be managed flexibly.

도 1은 본 발명의 일 실시예에 따른 메시지 송수신 장치를 도시한 도면.
도 2는 본 발명의 일 실시예에 따른 라우팅 테이블을 도시한 도면.
도 3은 메시지 송수신 장치가 외부기기로부터 메시지를 수신하고 송신 버퍼를 통해 외부기기로 메시지를 송신하는 실시예를 도시한 도면.
도 4는 본 발명의 일 실시예에 따른 메시지 송수신 방법을 도시한 순서도.
도 5는 수신된 메시지에 할당된 송신 버퍼를 비점유 상태로 설정하는 실시예를 도시한 순서도.
1 is a block diagram of a message transmitting / receiving apparatus according to an embodiment of the present invention;
2 illustrates a routing table according to an embodiment of the present invention;
3 illustrates an embodiment in which a message transmission / reception device receives a message from an external device and transmits a message to an external device via a transmission buffer.
4 is a flowchart illustrating a message transmission / reception method according to an embodiment of the present invention;
5 is a flow chart illustrating an embodiment of setting a transmission buffer allocated to a received message to a non-occupied state;

전술한 목적, 특징 및 장점은 첨부된 도면을 참조하여 상세하게 후술되며, 이에 따라 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 것이다. 본 발명을 설명함에 있어서 본 발명과 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 상세한 설명을 생략한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 도면에서 동일한 참조부호는 동일 또는 유사한 구성요소를 가리키는 것으로 사용된다.The above and other objects, features, and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, which are not intended to limit the scope of the present invention. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to denote the same or similar elements.

도 1은 본 발명의 일 실시예에 따른 메시지 송수신 장치(100)를 도시한 도면이다. 도 1을 참조하면, 본 발명의 일 실시예에 따른 메시지 송수신 장치(100)는 메시지 수신부(110), 버퍼 확인부(120), 제어부(130) 및 메시지 송신부(140)를 포함하여 구성된다. 도 1에 도시된 메시지 송수신 장치(100)는 일 실시예에 따른 것이고, 그 구성요소들이 도 1에 도시된 실시예에 한정되는 것은 아니며, 필요에 따라 일부 구성요소가 부가, 변경 또는 삭제될 수 있다.1 is a block diagram illustrating a message transmission / reception apparatus 100 according to an embodiment of the present invention. Referring to FIG. 1, a message transmitting and receiving apparatus 100 according to an embodiment of the present invention includes a message receiving unit 110, a buffer checking unit 120, a controller 130, and a message transmitting unit 140. The message transmission / reception device 100 shown in FIG. 1 is according to one embodiment, and the components thereof are not limited to the embodiment shown in FIG. 1, and some components may be added, have.

도 2는 본 발명의 일 실시예에 따른 라우팅 테이블을 도시한 도면이다. 도 3은 메시지 송수신 장치(100)가 외부기기로부터 메시지를 수신하고 송신 버퍼를 통해 외부기기로 메시지를 송신하는 실시예를 도시한 도면이다. 이하, 도 1 내지 도 3을 참조하여 메시지 송수신 장치(100)와 이를 구성하는 메시지 수신부(110), 버퍼 확인부(120), 제어부(130) 및 메시지 송신부(140)를 구체적으로 설명하도록 한다.2 is a diagram illustrating a routing table according to an embodiment of the present invention. 3 is a diagram illustrating an embodiment in which the message transmission / reception device 100 receives a message from an external device and transmits a message to an external device via a transmission buffer. Hereinafter, the message transmission / reception device 100 and the message reception unit 110, the buffer confirmation unit 120, the control unit 130, and the message transmission unit 140 will be described in detail with reference to FIG. 1 to FIG.

본 발명의 일 실시예에 따른 메시지 송수신 장치(100)는 차량에 탑재되는 전자 제어 장치(Electronic Control Unit; ECU) 간의 통신 네트워크를 연결하는 게이트웨이 프로세서(Gateway processor)일 수 있다. 보다 구체적으로, 차량용 전자 제어 장치는 상호간의 통신을 위하여 캔(Controller Area Network; CAN) 통신을 이용할 수 있다. 캔 통신은 차량 내에서 호스트 컴퓨터 없이 개별 전자 제어 장치들이 서로 통신하기 위해 설계된 표준 통신 규격이다. The message transmission / reception device 100 according to an embodiment of the present invention may be a gateway processor for connecting a communication network between electronic control units (ECUs) mounted on a vehicle. More specifically, the vehicle electronic control apparatus can use a CAN (Controller Area Network) communication for mutual communication. CAN communication is a standard communication standard designed for communication between individual electronic control devices in a vehicle without a host computer.

이러한 캔 통신은 개별 전자 제어 장치들의 수가 많아질수록 네트워크의 복잡도가 크게 증가하게 된다. 이에 따라, 캔 통신 네트워크 간의 메시지 교환을 위한 게이트웨이 프로세서가 이용될 수 있다. 게이트웨이 프로세서는 캔 통신의 네트워크 복잡도를 줄이고 네트워크간의 통신을 원활하게 하기 위해 개별 네트워크간의 메시지 교환을 중계할 수 있다. Such can communication greatly increases the complexity of the network as the number of individual electronic control devices increases. Accordingly, a gateway processor for message exchange between the CAN communication networks can be used. The gateway processor can relay the message exchange between the individual networks to reduce the network complexity of the can communication and facilitate communication between the networks.

다시 말해, 다수의 전자 제어 장치들로 구성된 복수의 통신 네트워크에서, 하나의 네트워크가 게이트웨이 프로세서에 메시지를 송신하면 게이트웨이 프로세서는 해당 메시지를 수신하여 다른 통신 네트워크로 송신할 수 있다.In other words, in a plurality of communication networks composed of a plurality of electronic control devices, when one network sends a message to the gateway processor, the gateway processor can receive the message and transmit it to the other communication network.

본 발명의 일 실시예에 따른 메시지 수신부(110)는 외부기기로부터 메시지를 수신할 수 있다. 여기서 외부기기는 메시지 송수신 장치(100)와 채널을 통해 연결되는 하나 이상의 전자 제어 장치를 포함할 수 있다. 한편, 본 발명과 외부기기 사이에서 송수신되는 메시지는 데이터를 일정한 비트 크기로 묶은 프레임 또는 패킷 등을 포함할 수 있다.The message receiving unit 110 according to an embodiment of the present invention can receive a message from an external device. Here, the external device may include one or more electronic control devices connected to the message transmission / reception device 100 through a channel. Meanwhile, a message transmitted / received between the present invention and an external device may include a frame or a packet in which data is grouped into a certain bit size.

메시지 송수신 장치(100)는 메시지가 수신되면 수신된 메시지에 대응하는 수신 인터럽트를 발생시킬 수 있다. 인터럽트는 프로세서의 즉각적인 처리를 필요로 하는 이벤트를 알리기 위한 요청 신호일 수 있다. 이러한 인터럽트는 MCU(Micro controller unit)에 의해 발생할 수 있는데, MCU는 메시지 송수신 장치(100)에 포함될 수도 있고 메시지 송수신 장치(100) 외부에서 메시지 송수신 장치(100)와 전기적으로 연결될 수도 있다.The message transmission / reception apparatus 100 may generate a reception interrupt corresponding to the received message when the message is received. The interrupt may be a request signal to signal an event that requires immediate processing of the processor. Such an interrupt may be generated by a micro controller unit (MCU), which may be included in the message transmission / reception device 100 or may be electrically connected to the message transmission / reception device 100 outside the message transmission / reception device 100.

수신 인터럽트가 발생하면 메시지 수신부(110)는 수신된 메시지에 포함된 데이터를 읽고, 해당 데이터를 버퍼 확인부(120)에 전송할 수 있다. 예를 들어, 메시지가 데이터를 일정한 비트 크기로 묶은 패킷이면 메시지 수신부(110)는 패킷에 포함된 시그널을 추출하여 버퍼 확인부(120)에 전송할 수 있다.When a receive interrupt occurs, the message receiving unit 110 may read the data included in the received message and transmit the data to the buffer checking unit 120. [ For example, if the message is a packet including data of a certain bit size, the message receiving unit 110 may extract the signal included in the packet and transmit the signal to the buffer checking unit 120.

본 발명의 일 실시예에 따른 버퍼 확인부(120)는 수신된 메시지에 할당된 송신 버퍼를 확인할 수 있다. 이러한 송신 버퍼 확인 과정은 상술한 수신 완료 인터럽트가 발생하면 수행될 수 있다. 보다 구체적으로, 버퍼 확인부(120)는 수신 완료 인터럽트의 발생 신호를 MCU로부터 수신하고, 수신된 메시지에 포함된 데이터를 메시지 수신부(110)로부터 전송 받아 수신된 메시지에 할당된 송신 버퍼를 확인할 수 있다.The buffer verification unit 120 according to an exemplary embodiment of the present invention can identify a transmission buffer allocated to a received message. This transmission buffer checking process can be performed when the above-described reception complete interrupt occurs. More specifically, the buffer check unit 120 receives a signal indicating the reception completion interruption from the MCU, receives the data included in the received message from the message receiving unit 110, and checks the transmission buffer allocated to the received message have.

버퍼 확인부(120)는 수신된 메시지에 할당된 송신 버퍼의 인덱스를 라우팅 테이블을 참조하여 확인할 수 있다. 버퍼는 하나의 장치에서 다른 장치로 데이터를 전송할 때 장치간의 데이터의 전송 속도 차이에 의해 발생되는 문제점을 해결하기 위한 임시 기억장치를 의미한다. 한편, 라우팅 테이블은 일반적으로 데이터의 전송 과정에서 해당 데이터의 경로를 찾기 위한 목적으로 사용되는 표를 포함할 수 있다.The buffer verification unit 120 can confirm the index of the transmission buffer allocated to the received message by referring to the routing table. A buffer means a temporary storage device for solving a problem caused by a difference in data transmission speed between devices when data is transferred from one device to another device. On the other hand, the routing table may include a table used for searching for the path of the data in the course of data transmission.

도 2를 참조하면, 본 발명의 라우팅 테이블은 상술한 일반적인 기능에 더하여 각 메시지의 식별 정보 및 식별 정보에 대응되는 송신 버퍼의 인덱스를 제공할 수 있다. 메시지의 식별 정보는 메시지의 기능, 메시지의 종류, 해당 메시지를 송신한 외부기기 등에 따라 미리 설정될 수 있다. 한편, 송신 버퍼의 인덱스는 해당 버퍼의 이름, 속성 또는 주소 정보 등을 포함할 수 있다.Referring to FIG. 2, the routing table of the present invention can provide an index of a transmission buffer corresponding to identification information and identification information of each message, in addition to the general functions described above. The identification information of the message can be set in advance according to the function of the message, the type of the message, the external device that has transmitted the message, and the like. Meanwhile, the index of the transmission buffer may include the name, attribute, or address information of the corresponding buffer.

예를 들어, 수신된 메시지가 패킷이면 패킷에 포함된 시그널은 해당 메시지의 식별 정보에 대한 정보를 포함할 수 있다. 예를 들어, 제1 외부기기(321)에서 송신한 메시지의 식별 정보는 #1일 수 있다.For example, if the received message is a packet, the signal included in the packet may include information on the identification information of the corresponding message. For example, the identification information of the message transmitted from the first external device 321 may be # 1.

버퍼 확인부(120)는 도 2에 도시된 라우팅 테이블을 참조하여 메시지 식별 정보에 대응하는 송신 버퍼의 인덱스를 확인할 수 있다. 예를 들어, 상술한 바와 같이 수신된 메시지가 제1 외부기기에서 송신한 메시지이면 메시지 식별 정보는 #1일 수 있다. 이 때, 버퍼 확인부(120)는 #1에 대응하는 송신 버퍼로서 버퍼 1을 확인할 수 있다. 버퍼 1은 수신된 메시지에 대응하는 송신 버퍼의 주소 정보를 포함할 수 있고, 예를 들어 주소 정보는 비트(bit) 형태로 표현될 수 있다.The buffer verification unit 120 can check the index of the transmission buffer corresponding to the message identification information by referring to the routing table shown in FIG. For example, if the received message is a message transmitted from the first external device, the message identification information may be # 1. At this time, the buffer check unit 120 can check the buffer 1 as the transmission buffer corresponding to # 1. The buffer 1 may include address information of a transmission buffer corresponding to a received message, for example, the address information may be expressed in a bit form.

또한, 본 발명의 일 실시예에 따른 버퍼 확인부(120)는 수신된 메시지에 할당된 송신 버퍼가 존재하지 않으면 비점유 상태인 송신 버퍼를 검색할 수 있다. 보다 구체적으로, 수신된 메시지의 식별 정보 또는 식별 정보에 대응되는 송신 버퍼가 라우팅 테이블에 존재하지 않을 수 있다. 이 때, 버퍼 확인부(120)는 해당 메시지를 송신할 비점유 상태인 송신 버퍼를 검색할 수 있다. In addition, the buffer verification unit 120 according to an embodiment of the present invention can search for a transmission buffer that is in an unoccupied state if the transmission buffer allocated to the received message does not exist. More specifically, the transmission buffer corresponding to the identification information or the identification information of the received message may not exist in the routing table. At this time, the buffer check unit 120 can search for a transmission buffer which is in a non-occupied state to transmit the message.

또한, 버퍼 확인부(120)는 검색된 송신 버퍼 중 어느 하나의 버퍼를 수신된 메시지에 할당할 수 있다. 보다 구체적으로, 비점유 상태인 송신 버퍼가 검색되면 버퍼 확인부(120)는 검색된 송신 버퍼 중 어느 하나의 버퍼에 대한 인덱스를 수신된 메시지의 식별 정보에 할당하여 라우팅 테이블을 갱신할 수 있다.The buffer verification unit 120 may allocate any one of the retrieved transmission buffers to the received message. More specifically, when a transmission buffer that is in an unoccupied state is searched, the buffer verification unit 120 may update the routing table by assigning an index of one of the searched transmission buffers to the identification information of the received message.

이에 따라, 이후 동일한 식별 정보를 포함하는 메시지가 수신되면 수신된 메시지에 할당된 송신 버퍼를 확인할 수 있다. 다시 말해, 본 발명의 라우팅 테이블을 동적으로 결정될 수 있다. 한편, 비점유 상태는 해당 송신 버퍼의 메모리에 복사된 데이터가 존재하지 않는 상태를 의미하는데 이에 대해서는 후술하도록 한다. Accordingly, when a message including the same identification information is received, the transmission buffer allocated to the received message can be confirmed. In other words, the routing table of the present invention can be determined dynamically. On the other hand, the non-occupied state means a state in which there is no data copied to the memory of the transmission buffer, which will be described later.

본 발명의 일 실시예에 따른 제어부(130)는 메시지에 할당된 송신 버퍼가 점유 상태인지 여부를 판단할 수 있다. 여기서 점유 상태는 송신 버퍼에 데이터가 존재하는지 여부에 따라 결정된다. 보다 구체적으로, 송신 버퍼를 통해 메시지를 송신하기 위해, 메시지 송수신 장치(100)는 송신할 메시지의 데이터를 송신 버퍼의 메모리에 복사할 수 있다. The controller 130 may determine whether the transmission buffer allocated to the message is occupied. The occupancy state is determined according to whether or not data exists in the transmission buffer. More specifically, in order to transmit a message through the transmission buffer, the message transmission / reception apparatus 100 may copy the data of the message to be transmitted to the memory of the transmission buffer.

이와 같이, 송신 버퍼의 메모리에 데이터가 복사되어 있으면 송신 버퍼는 점유 상태이고, 송신 버퍼의 메모리에 복사된 데이터가 존재하지 않으면 송신 버퍼는 비점유 상태이다. 이러한 송신 버퍼의 점유 상태는 송신이 완료된 이후에도 송신 버퍼의 메모리를 초기화 할 때까지 유지될 수 있다.As described above, if the data is copied in the memory of the transmission buffer, the transmission buffer is in an occupied state, and if there is no copied data in the memory of the transmission buffer, the transmission buffer is in a non-occupied state. This occupation state of the transmission buffer can be maintained until the memory of the transmission buffer is initialized even after the transmission is completed.

버퍼 확인부(120)는 수신된 메시지에 할당된 송신 버퍼의 주소 정보를 제어부(130)에 전송할 수 있다. 제어부(130)는 송신 버퍼의 주소 정보를 참조하여 해당 송신 버퍼가 점유 상태인지 여부를 판단할 수 있다. 보다 구체적으로, 제어부(130)는 송신 버퍼의 메모리에 저장된 데이터가 초기 설정된 데이터와 다른 경우 해당 송신 버퍼를 점유 상태로 판단할 수 있다.The buffer verification unit 120 may transmit the address information of the transmission buffer allocated to the received message to the control unit 130. [ The control unit 130 can determine whether the corresponding transmission buffer is occupied by referring to the address information of the transmission buffer. More specifically, when the data stored in the memory of the transmission buffer is different from the initially set data, the control unit 130 can determine that the transmission buffer is in an occupied state.

또한, 제어부(130)는 송신 버퍼의 메모리에 포함된 플래그(flag) 데이터를 이용하여 송신 버퍼의 점유 상태를 판단할 수 있다. 플래그 데이터는 데이터 처리에 있어서, 다른 프로그램에 약속된 신호를 알리기 위한 용도로 사용되는 미리 설정된 비트이다. Also, the control unit 130 can determine the occupation state of the transmission buffer by using flag data included in the memory of the transmission buffer. The flag data is a preset bit used for notifying a signal promised to another program in data processing.

예를 들어, 송신 버퍼의 메모리에는 송신 버퍼의 메모리에 저장된 데이터가 초기 설정된 데이터와 다르면 1로 설정되고, 초기 설정된 데이터와 같으면 0으로 설정되는 플래그 데이터가 포함될 수 있다. 제어부(130)는 플래그 데이터의 비트 값이 1이면 송신 버퍼가 점유 상태라고 판단하고, 플래그 데이터의 비트 값이 0이면 송신 버퍼가 비점유 상태라고 판단할 수 있다.For example, the memory of the transmission buffer may include flag data set to 1 if the data stored in the memory of the transmission buffer is different from the initially set data, and flag data set to 0 if the data is the same as the initially set data. If the bit value of the flag data is 1, the control unit 130 determines that the transmission buffer is occupied. If the bit value of the flag data is 0, the control unit 130 can determine that the transmission buffer is not occupied.

본 발명의 일 실시예에 따른 제어부(130)는 송신 버퍼가 점유 상태인지 여부에 따라 송신 버퍼의 점유 상태를 제어할 수 있다. 보다 구체적으로, 제어부(130)는 수신된 메시지에 할당된 송신 버퍼가 점유 상태이면 해당 송신 버퍼를 비점유 상태로 제어할 수 있다.The control unit 130 according to an embodiment of the present invention can control the occupancy state of the transmission buffer according to whether the transmission buffer is occupied or not. More specifically, if the transmission buffer allocated to the received message is occupied, the control unit 130 can control the corresponding transmission buffer to a non-occupied state.

제어부(130)는 점유 상태인 송신 버퍼를 비점유 상태로 제어하기 위하여 송신 버퍼의 메모리를 초기화 시키는 제어 신호를 생성할 수 있다. 이러한 제어 신호는 MCU에서 실행되는 초기화 코드에 대응하여 생성될 수 있고, 초기화 코드는 MCU상에서 송신 버퍼를 제어하기 위해 사용되는 프로그램의 명령어를 포함할 수 있다.The control unit 130 may generate a control signal for initializing the memory of the transmission buffer in order to control the occupied transmission buffer to a non-occupied state. This control signal may be generated corresponding to the initialization code executed in the MCU, and the initialization code may include instructions of the program used to control the transmit buffer on the MCU.

이러한 제어 신호는 송신 버퍼의 메모리에 저장된 데이터를 초기 설정된 데이터로 초기화 시킬 수 있다. 예를 들어, 송신 버퍼의 메모리에 포함된 플래그 데이터의 비트가 1로 설정되어 있으면 제어 신호는 해당 플래그 데이터의 비트 값을 0으로 설정할 수 있다. 이에 따라, 송신 버퍼의 메모리에 저장된 데이터는 초기화 될 수 있다.This control signal can initialize the data stored in the memory of the transmission buffer to the initial set data. For example, when the bit of the flag data included in the memory of the transmission buffer is set to 1, the control signal can set the bit value of the corresponding flag data to zero. Thus, the data stored in the memory of the transmission buffer can be initialized.

본 발명의 일 실시예에 따른 메시지 송신부(140)는 송신 버퍼를 통해 수신된 메시지를 외부기기로 송신할 수 있다. 여기서 외부기기는 상술한 바와 같이 메시지 송수신 장치(100)와 채널을 통해 연결되는 하나 이상의 전자 제어 장치를 포함할 수 있다. 다만 메시지 송수신 장치(100)가 외부기기간의 캔 통신을 중계하기 위하여, 메시지 수신부(110)에 메시지를 송신한 외부기기와 수신된 메시지를 송신할 외부기기는 서로 다른 기기임이 바람직하다.The message transmitter 140 according to an embodiment of the present invention can transmit a message received through a transmission buffer to an external device. Here, the external device may include at least one electronic control device connected to the message transmission / reception device 100 through the channel as described above. It is preferable that the external device that transmits the message to the message receiving unit 110 and the external device that transmits the received message are different from each other in order that the message transmitting and receiving device 100 relays can communication between external devices.

서로 다른 외부기기간의 데이터를 중계하기 위해 수신된 메시지와 송신될 메시지의 구성은 다를 수 있다. 예를 들어, 수신된 메시지가 패킷이면 패킷에 포함된 시그널을 복사하여 송신할 메시지를 구성할 수 있다. 이 때, 수신된 메시지의 패킷 구성은 송신될 메시지의 패킷 구성과 다를 수 있으나 패킷에 포함된 시그널은 수신된 메시지와 송신될 메시지에서 동일할 수 있다.In order to relay data between different external devices, the configuration of the received message and the message to be transmitted may be different. For example, if the received message is a packet, the message included in the packet may be copied to form a message to be transmitted. At this time, the packet configuration of the received message may be different from the packet configuration of the message to be transmitted, but the signal included in the packet may be the same in the received message and the message to be transmitted.

또한, 메시지 송신부(140)는 라우팅 테이블을 참조하여 수신된 메시지를 외부기기로 송신할 수 있다. 여기서 라우팅 테이블은 일반적인 라우팅 테이블을 의미하는 것으로서, 상술한 바와 같이 데이터의 전송 과정에서 해당 데이터의 경로를 찾기 위한 목적으로 사용되는 표일 수 있다.Also, the message transmission unit 140 can transmit the received message to the external device by referring to the routing table. Here, the routing table refers to a general routing table, and may be a table used for searching for the path of the data in the data transmission process as described above.

이하, 도 3을 참조하여 메시지 송수신 장치(100)가 제1 외부기기(321)로부터 메시지를 수신하고 송신 버퍼를 통해 제2 외부기기(322)로 메시지를 송신하는 실시예를 설명하도록 한다. 도 3을 참조하면 메시지 수신부(110)는 제1 외부기기(321)로부터 #1의 식별 정보를 포함하는 메시지를 수신하고, #1의 식별 정보를 버퍼 확인부(120)에 전송할 수 있다.Hereinafter, an embodiment in which the message transmission / reception device 100 receives a message from the first external device 321 and transmits the message to the second external device 322 through the transmission buffer will be described with reference to FIG. 3, the message receiving unit 110 may receive a message including identification information of # 1 from the first external device 321 and may transmit the identification information of # 1 to the buffer checking unit 120. [

버퍼 확인부(120)는 #1의 식별정보에 대응하는 송신 버퍼인 송신 버퍼 1(311)을 라우팅 테이블을 참조하여 확인할 수 있다. 버퍼 확인부(120)는 송신 버퍼 1(311)의 인덱스에 포함된 송신 버퍼 1(311)의 주소 정보를 획득하여 제어부(130)에 전송할 수 있다.The buffer verification unit 120 can confirm the transmission buffer 1 311, which is the transmission buffer corresponding to the identification information of # 1, by referring to the routing table. The buffer verification unit 120 may obtain the address information of the transmission buffer 1 311 included in the index of the transmission buffer 1 311 and transmit the address information to the control unit 130.

제어부(130)는 송신 버퍼 1(311)의 주소 정보를 이용하여 송신 버퍼 1(311)이 점유 상태인지 여부를 판단할 수 있다. 송신 버퍼 1(311)이 점유 상태이면 제어부(130)는 제어 신호를 이용하여 송신 버퍼 1(311)을 비점유 상태로 제어할 수 있다.The control unit 130 can determine whether the transmission buffer 1 311 is in an occupied state by using the address information of the transmission buffer 311. [ If the transmission buffer 1 311 is in an occupied state, the control unit 130 can control the transmission buffer 311 to a non-occupied state by using a control signal.

송신 버퍼 1(311)이 비점유 상태가 되면 메시지 송신부(140)는 송신 버퍼 1(311)을 통해 수신된 메시지를 제2 외부기기(322)로 송신할 수 있다.When the transmission buffer 1 311 is in the non-occupied state, the message transmission unit 140 can transmit the message received through the transmission buffer 311 to the second external device 322.

도 4는 본 발명의 일 실시예에 따른 메시지 송수신 방법을 도시한 순서도이다. 이하, 도 4를 참조하여 메시지 송수신 장치(100)가 메시지를 송수신 하는 방법을 구체적으로 설명하도록 한다.4 is a flowchart illustrating a message transmission / reception method according to an embodiment of the present invention. Hereinafter, a method of sending and receiving a message by the message transmission / reception device 100 will be described in detail with reference to FIG.

도 4를 참조하면 메시지 송수신 장치(100)는 외부기기로부터 메시지를 수신하고(S410), 수신된 메시지에 할당된 송신 버퍼를 확인할 수 있다(S420). 이러한 송신 버퍼 확인 과정은 라우팅 테이블을 참조하여 수행될 수 있다. 송신 버퍼가 확인되면 메시지 송수신 장치(100)는 해당 송신 버퍼가 점유 상태인지 여부를 판단할 수 있다(S430). 판단 결과에 따라 메시지 송수신 장치(100)는 해당 송신 버퍼의 점유 상태를 제어할 수 있다(S440). 송신 버퍼의 점유 상태가 제어되면 메시지 송수신 장치(100)는 해당 송신 버퍼를 통해 수신된 메시지를 외부기기로 송신할 수 있다(S450).Referring to FIG. 4, the message transmission / reception apparatus 100 receives a message from an external device (S410), and confirms a transmission buffer allocated to the received message (S420). This transmission buffer check process can be performed with reference to the routing table. When the transmission buffer is confirmed, the message transmission / reception apparatus 100 may determine whether the corresponding transmission buffer is occupied (S430). According to the determination result, the message transmission / reception apparatus 100 can control the occupation state of the transmission buffer (S440). If the occupation state of the transmission buffer is controlled, the message transmission / reception device 100 can transmit the message received through the transmission buffer to the external device (S450).

단계(S410)는 도 1에 도시된 메시지 수신부(110)에서 설명한 방법과 동일할 수 있고, 단계(S420)는 도 1에 도시된 버퍼 확인부(120)에서 설명한 방법과 동일할 수 있다. 또한, 단계(S430) 및 (S440)는 도 1에 도시된 제어부(130)에서 설명한 방법과 동일할 수 있고, 단계(S450)는 도 1에 도시된 메시지 송신부(140)에서 설명한 방법과 동일할 수 있다.The step S410 may be the same as the method described in the message receiving unit 110 shown in FIG. 1 and the step S420 may be the same as the method explained in the buffer checking unit 120 shown in FIG. Steps S430 and S440 may be the same as those described in the control unit 130 shown in FIG. 1 and step S450 may be the same as the method described in the message sending unit 140 shown in FIG. 1 .

도 5는 수신된 메시지에 할당된 송신 버퍼를 비점유 상태로 설정하는 실시예를 도시한 순서도이다. 이하 도 5를 참조하여 수신된 메시지에 할당된 송신 버퍼를 제어하는 방법을 구체적으로 설명하도록 한다.5 is a flowchart illustrating an embodiment of setting a transmission buffer allocated to a received message to an unoccupied state. Hereinafter, a method of controlling a transmission buffer allocated to a received message will be described in detail with reference to FIG.

도 5를 참조하면, 메시지 송수신 장치(100)는 메시지를 수신하고(S410), 수신된 메시지의 식별 정보가 라우팅 테이블에 존재하는지 여부를 확인할 수 있다(S411). 확인 결과 수신된 메시지의 식별 정보가 라우팅 테이블에 존재하면, 해당 식별 정보에 할당된 송신 버퍼의 인덱스를 획득할 수 있다(S412).Referring to FIG. 5, the message transmission / reception apparatus 100 receives a message (S410), and determines whether identification information of the received message exists in the routing table (S411). If the identification information of the received message exists in the routing table, the index of the transmission buffer allocated to the corresponding identification information may be obtained (S412).

메시지 송수신 장치(100)는 인덱스에 포함된 송신 버퍼의 주소 정보를 이용하여 해당 송신 버퍼의 점유 상태를 판단할 수 있다. 송신 버퍼가 점유 상태이면 메시지 송수신 장치(100)는 해당 송신 버퍼를 비점유 상태로 제어할 수 있다(S441).The message transmission / reception apparatus 100 can determine the occupation state of the corresponding transmission buffer by using the address information of the transmission buffer included in the index. If the transmission buffer is in an occupied state, the message transmission / reception apparatus 100 can control the transmission buffer to a non-occupied state (S441).

한편, 단계(S411)에서 확인 결과, 수신된 메시지의 식별 정보가 라우팅 테이블에 존재하지 않으면 메시지 송수신 장치(100)는 비점유 상태인 송신 버퍼를 검색할 수 있다(S510). 메시지 송수신 장치(100)는 검색된 송신 버퍼 중 어느 하나의 버퍼를 수신된 메시지에 할당할 수 있다(S520).On the other hand, if it is determined in step S411 that the identification information of the received message is not present in the routing table, the message transmission / reception device 100 may search for a transmission buffer in an unoccupied state (S510). The message transmission / reception apparatus 100 may allocate any one of the retrieved transmission buffers to the received message (S520).

단계(S411), 단계(S412), 단계(S510) 및 단계(S520)는 도 1에 도시된 버퍼 확인부(120)에서 설명한 방법과 동일할 수 있다. 또한, 단계(S441)는 도 1에 도시된 제어부(130)에서 설명한 방법과 동일할 수 있다.Steps S411, S412, S510, and S520 may be the same as described in the buffer verification unit 120 shown in FIG. In addition, step S441 may be the same as the method described in the control unit 130 shown in Fig.

상술한 바와 같은 본 발명에 의하면 수신된 메시지에 할당된 송신 버퍼를 확인하여 해당 송신 버퍼의 점유 상태만을 제어함으로써, 종래 송신 버퍼의 검색에 따른 시스템 부하 발생의 문제점을 해결할 수 있는 효과가 있다.According to the present invention as described above, there is an effect of solving the problem of system load generation according to the search of the conventional transmission buffer by checking the transmission buffer allocated to the received message and controlling only the occupation state of the corresponding transmission buffer.

또한, 본 발명에 의하면 메시지를 송신하기 이전에 해당 메시지에 할당된 송신 버퍼만을 비점유 상태로 제어함으로써, 데이터 처리를 최소화 할 수 있는 효과가 있다.In addition, according to the present invention, only a transmission buffer allocated to a corresponding message before transmission of a message is controlled to be in a non-occupied state, thereby minimizing data processing.

전술한 본 발명은, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에게 있어 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능하므로 전술한 실시예 및 첨부된 도면에 의해 한정되는 것이 아니다.While the present invention has been described in connection with what is presently considered to be practical exemplary embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but, on the contrary, But the present invention is not limited thereto.

Claims (12)

제1 외부기기로부터 메시지를 수신하는 메시지 수신부;
복수의 송신 버퍼 중 상기 수신된 메시지의 식별 정보에 미리 할당된 송신 버퍼를 확인하는 버퍼 확인부;
상기 메시지의 식별 정보에 미리 할당된 송신 버퍼가 점유 상태인지 여부를 판단하고, 상기 판단 결과에 따라 상기 송신 버퍼의 점유 상태를 제어하는 제어부; 및
상기 송신 버퍼를 통해 상기 수신된 메시지를 제2 외부기기로 송신하는 메시지 송신부를 포함하는 메시지 송수신 장치.
A message receiving unit for receiving a message from the first external device;
A buffer checking unit for checking a transmission buffer previously allocated to the identification information of the received message among a plurality of transmission buffers;
A control unit for determining whether a transmission buffer previously allocated to the identification information of the message is occupied and controlling the occupancy state of the transmission buffer according to the determination result; And
And a message transmitter for transmitting the received message to the second external device through the transmission buffer.
제1항에 있어서,
상기 제어부는
상기 판단 결과, 상기 메시지의 식별 정보에 미리 할당된 송신 버퍼가 점유 상태이면 상기 송신 버퍼를 비점유 상태로 제어하는 메시지 송수신 장치.
The method according to claim 1,
The control unit
Wherein the controller controls the transmission buffer to be in a non-occupied state when the transmission buffer allocated in advance in the identification information of the message is occupied.
제1항에 있어서,
상기 버퍼 확인부는
상기 메시지의 식별 정보에 미리 할당된 송신 버퍼가 존재하지 않으면, 비점유 상태인 송신 버퍼를 검색하고 검색된 송신 버퍼 중 어느 하나의 버퍼를 상기 수신된 메시지의 식별 정보에 할당하는 메시지 송수신 장치.
The method according to claim 1,
The buffer check unit
And if the transmission buffer allocated in advance in the identification information of the message does not exist, searches the transmission buffer in a non-occupied state and allocates any one of the retrieved transmission buffers to the identification information of the received message.
제1항에 있어서,
상기 버퍼 확인부는
상기 메시지의 식별 정보에 미리 할당된 송신 버퍼의 인덱스를 라우팅 테이블을 참조하여 확인하는 메시지 송수신 장치.
The method according to claim 1,
The buffer check unit
And confirms the index of the transmission buffer previously allocated to the identification information of the message by referring to the routing table.
제4항에 있어서,
상기 라우팅 테이블은
각 메시지의 식별 정보 및 상기 식별 정보에 대응되는 송신 버퍼의 인덱스를 포함하는 메시지 송수신 장치.
5. The method of claim 4,
The routing table
And identification information of each message and an index of a transmission buffer corresponding to the identification information.
제1항에 있어서,
상기 버퍼 확인부는
상기 수신된 메시지에 대응하는 수신 완료 인터럽트가 발생하면 상기 수신된 메시지의 식별 정보에 미리 할당된 송신 버퍼를 확인하는 메시지 송수신 장치.
The method according to claim 1,
The buffer check unit
And if a reception completion interrupt corresponding to the received message occurs, confirms a transmission buffer allocated in advance in the identification information of the received message.
제1 외부기기로부터 메시지를 수신하는 단계;
복수의 송신 버퍼 중 상기 수신된 메시지의 식별 정보에 미리 할당된 송신 버퍼를 확인하는 단계;
상기 메시지의 식별 정보에 미리 할당된 송신 버퍼가 점유 상태인지 여부를 판단하는 단계;
상기 판단 결과에 따라 상기 송신 버퍼의 점유 상태를 제어하는 단계; 및
상기 송신 버퍼를 통해 상기 수신된 메시지를 제2 외부기기로 송신하는 단계를 포함하는 메시지 송수신 방법.
Receiving a message from a first external device;
Identifying a transmission buffer previously allocated to the identification information of the received message among a plurality of transmission buffers;
Determining whether a transmission buffer previously allocated to the identification information of the message is occupied;
Controlling an occupation state of the transmission buffer according to the determination result; And
And transmitting the received message to the second external device through the transmission buffer.
제7항에 있어서,
상기 판단 결과에 따라 상기 송신 버퍼의 점유 상태를 제어하는 단계는
상기 판단 결과, 상기 메시지의 식별 정보에 미리 할당된 송신 버퍼가 점유 상태이면 상기 송신 버퍼를 비점유 상태로 제어하는 단계를 포함하는 메시지 송수신 방법.
8. The method of claim 7,
And controlling the occupation state of the transmission buffer according to the determination result
And controlling the transmission buffer to be in an unoccupied state when the transmission buffer allocated in advance to the identification information of the message is occupied.
제7항에 있어서,
상기 메시지의 식별 정보에 미리 할당된 송신 버퍼가 존재하지 않으면, 비점유 상태인 송신 버퍼를 검색하고 검색된 송신 버퍼 중 어느 하나의 버퍼를 상기 수신된 메시지의 식별 정보에 할당하는 단계를 더 포함하는 메시지 송수신 방법.
8. The method of claim 7,
Searching for a transmission buffer in a non-occupied state and allocating any one of the retrieved transmission buffers to the identification information of the received message if the transmission buffer allocated in advance in the identification information of the message does not exist, Transmitting / receiving method.
제7항에 있어서,
상기 복수의 송신 버퍼 중 상기 수신된 메시지의 식별 정보에 미리 할당된 송신 버퍼를 확인하는 단계는
상기 메시지의 식별 정보에 미리 할당된 송신 버퍼의 인덱스를 라우팅 테이블을 참조하여 확인하는 단계를 포함하는 메시지 송수신 방법.
8. The method of claim 7,
The step of identifying a transmission buffer previously allocated to the identification information of the received message among the plurality of transmission buffers
And checking an index of a transmission buffer previously allocated to the identification information of the message by referring to the routing table.
제10항에 있어서,
상기 라우팅 테이블은
각 메시지의 식별 정보 및 상기 식별 정보에 대응되는 송신 버퍼의 인덱스를 포함하는 메시지 송수신 방법.
11. The method of claim 10,
The routing table
And an index of a transmission buffer corresponding to the identification information of each message.
제7항에 있어서,
상기 복수의 송신 버퍼 중 상기 수신된 메시지의 식별 정보에 미리 할당된 송신 버퍼를 확인하는 단계는
상기 수신된 메시지에 대응하는 수신 완료 인터럽트가 발생하면 상기 수신된 메시지의 식별 정보에 미리 할당된 송신 버퍼를 확인하는 단계를 포함하는 메시지 송수신 방법.
8. The method of claim 7,
The step of identifying a transmission buffer previously allocated to the identification information of the received message among the plurality of transmission buffers
And checking a transmission buffer allocated in advance in the identification information of the received message if a reception completion interrupt corresponding to the received message occurs.
KR1020160134204A 2016-10-17 2016-10-17 Apparatus and Method for transmitting/receiving message KR101876636B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160134204A KR101876636B1 (en) 2016-10-17 2016-10-17 Apparatus and Method for transmitting/receiving message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160134204A KR101876636B1 (en) 2016-10-17 2016-10-17 Apparatus and Method for transmitting/receiving message

Publications (2)

Publication Number Publication Date
KR20180042487A KR20180042487A (en) 2018-04-26
KR101876636B1 true KR101876636B1 (en) 2018-07-10

Family

ID=62082537

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160134204A KR101876636B1 (en) 2016-10-17 2016-10-17 Apparatus and Method for transmitting/receiving message

Country Status (1)

Country Link
KR (1) KR101876636B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080034054A1 (en) * 2006-08-07 2008-02-07 Curtis Stehley System and method for reservation flow control
KR20130081280A (en) * 2010-08-06 2013-07-16 베이징 치엔탕 네트워크 테크놀로지 컴퍼니 엘티디. Communication method and system for a novel network
KR20140056315A (en) * 2011-08-25 2014-05-09 엘지전자 주식회사 Mobile terminal, image display device mounted on vehicle and data processing method using the same
KR101476813B1 (en) * 2007-11-30 2014-12-29 삼성전자주식회사 Packet reassembly system and method on a packet relay node
WO2016068386A1 (en) * 2014-10-27 2016-05-06 삼성에스디에스 주식회사 Data transmission device and data communication method using same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080034054A1 (en) * 2006-08-07 2008-02-07 Curtis Stehley System and method for reservation flow control
KR101476813B1 (en) * 2007-11-30 2014-12-29 삼성전자주식회사 Packet reassembly system and method on a packet relay node
KR20130081280A (en) * 2010-08-06 2013-07-16 베이징 치엔탕 네트워크 테크놀로지 컴퍼니 엘티디. Communication method and system for a novel network
KR20140056315A (en) * 2011-08-25 2014-05-09 엘지전자 주식회사 Mobile terminal, image display device mounted on vehicle and data processing method using the same
WO2016068386A1 (en) * 2014-10-27 2016-05-06 삼성에스디에스 주식회사 Data transmission device and data communication method using same

Also Published As

Publication number Publication date
KR20180042487A (en) 2018-04-26

Similar Documents

Publication Publication Date Title
US6850992B2 (en) Address assignment method for at least one bus device that has recently been connected to a bus system
US11080404B2 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
CN113806116A (en) Protocol stack data transmission method based on Linux system, computer equipment and storage medium
JP2010272971A (en) Control system and method for rewriting control program
KR101400329B1 (en) Communication system
US10432496B2 (en) Apparatus and method for controlling message communications load
KR20200136751A (en) Apparatus for communicating diagnosis of a vehicle, system having the same and method thereof
KR102303424B1 (en) Direct memory access control device for at least one processing unit having a random access memory
US5311510A (en) Data storing system for a communication control circuit
CN104426816A (en) Virtual machine communication method and device
CN112000019A (en) Method, device and equipment for sharing equipment instruction control
KR101612825B1 (en) Can controller, gateway for internal vehicle communication and control method the same
KR101876636B1 (en) Apparatus and Method for transmitting/receiving message
CN111917886B (en) Intelligent device data migration method and device and intelligent device
JP4493606B2 (en) Data transmission method and data transmission system by cyclic communication
US20160173418A1 (en) Method and apparatus for transmitting can frame
US20190050355A1 (en) Direct memory access control unit for a processing unit that includes a working memory
JP2566350B2 (en) Data way device
CN115708076A (en) Communication method, device, server and storage medium for single bus
JPH04156739A (en) Communication system
JP2002082842A (en) Controller having main microprocessor and processor interface to bus transmitting/receiving unit
JPH07120322B2 (en) Online SG processing method
JP3474899B2 (en) LAN communication method
KR20190117903A (en) System and method for establishing vehicle to vehicle communication
JPH05143516A (en) System for transmitting unidirectional channel

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
GRNT Written decision to grant