KR20180074128A - Diagnosis message routing system and method for gateway of vehicle - Google Patents
Diagnosis message routing system and method for gateway of vehicle Download PDFInfo
- Publication number
- KR20180074128A KR20180074128A KR1020160177881A KR20160177881A KR20180074128A KR 20180074128 A KR20180074128 A KR 20180074128A KR 1020160177881 A KR1020160177881 A KR 1020160177881A KR 20160177881 A KR20160177881 A KR 20160177881A KR 20180074128 A KR20180074128 A KR 20180074128A
- Authority
- KR
- South Korea
- Prior art keywords
- message
- diagnostic
- identifier
- communication
- communication message
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40052—High-speed IEEE 1394 serial bus
- H04L12/40071—Packet processing; Packet format
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/70—Routing based on monitoring results
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Abstract
Description
본 발명은 메시지 라우팅 시스템 및 방법에 관한 것으로서, 보다 구체적으로는 차량 게이트웨이용 진단 메시지 라우팅 시스템 및 방법에 관한 것이다.The present invention relates to a message routing system and method, and more particularly to a diagnostic message routing system and method for a vehicle gateway.
최근 차량내 전장 부품의 증가로 인해서 차량의 전자장치들이 사용하는 데이터의 양 또한 지속적으로 증가하고 있으며, 주고받는 데이터의 종류도 다양해지면서 차량에서의 데이터 처리 방법이 중요한 문제로 대두되고 있다.Recently, the amount of data used by the electronic devices of the vehicle is continuously increasing due to the increase of the electric parts in the vehicle, and the data processing method in the vehicle is becoming an important issue as the kinds of data to be exchanged are diversified.
종래의 차량 데이터 처리 구조는 서로 다른 프로토콜의 데이터를 사용하는 장치들의 데이터 공유를 위해 게이트웨이를 적용하여 서로 다른 프로토콜의 데이터 간의 신호 변환을 통해 데이터를 공유할 수 있도록 하고 있다.In the conventional vehicle data processing structure, a gateway is applied to data sharing between devices using data of different protocols, so that data can be shared through signal conversion between data of different protocols.
따라서, 게이트웨이를 통해, 예를 들어 도어 상태나 윈도우 상태 등의 BCM(Body Control Module) 정보를 고속 캔을 사용하는 타 제어기에서 사용할 수 있도록 하고, 반대로 차량 속도나 엔진회전수(rpm) 등의 정보를 BCM에서도 사용할 수 있도록 하고 있다.Accordingly, BCM (Body Control Module) information such as a door state or a window state can be used by another controller using the high-speed can via the gateway, and conversely, information such as the vehicle speed and the engine speed (rpm) To be used in BCM.
이처럼 현재 개발 및 양산되고 있는 차량의 대부분은 한 개의 네트워크에서 다른 네트워크로의 데이터 정보 송신을 위해 게이트웨이를 이용하고 있다(예 : 샤시 CAN ↔ 바디 CAN/바디 CAN ↔ 멀티 CAN 등의 데이터 교환).Most of the vehicles currently under development and mass production use gateways to transmit data information from one network to another (eg, chassis CAN ↔ body CAN / body CAN ↔ multi CAN).
하나의 네트워크 도메인에서 다른 네트워크 도메인으로 메시지를 전달하기 위해서 게이트웨이(10)의 내부에는 CAN 라우팅 데이터베이스(Routing DB;RDB)가 존재하고, 라우팅 데이터베이스의 각 항목은 메시지를 전달하기 위한 라우팅 정보를 포함한다. 이에 따라서, 게이트웨이에 메시지가 수신되면 수신된 메시지는 라우팅 데이터베이스에 저장된 라우팅 정보를 조회하여 대응되는 CAN 네트워크 도메인으로 브로드캐스팅된다.In order to deliver a message from one network domain to another network domain, a routing database (RDB) exists in the gateway 10, and each item of the routing database includes routing information for transmitting a message . Accordingly, when a message is received at the gateway, the received message is broadcast to the corresponding CAN network domain by inquiring routing information stored in the routing database.
도 1은 종래 기술에 따라서 게이트웨이를 통한 일반적인 CAN 네트워크 통신 방식을 설명하는 도면이다.1 is a diagram illustrating a general CAN network communication method through a gateway according to the related art.
도 1을 참조하면, 일반적인 CAN 네트워크 메시지는 이더넷 메시지와 달리 메시지를 전송하는 소오스의 주소 정보 및 메시지를 수신할 목적지의 주소 정보를 포함하지 않고, 메시지의 내용을 나타내는 메시지 식별 정보(이하 "식별자 ID"라 칭함)를 포함하며, 게이트웨이는 CAN 메시지의 식별자 ID를 RDB(Routing DB)에 조회하여 해당 메시지가 요구되는 CAN 네트워크로 전송한다. 그러면, 해당 CAN 네트워크에 접속된 제어기(ECU)들은 CAN 메시지를 수신하고 식별자 ID를 확인하여 자신에게 필요한 메시지인 경우에는 이를 수신하여 처리하고, 자신에게 필요하지 않은 메시지인 경우에는 무시하게 된다.1, unlike an Ethernet message, a general CAN network message does not include address information of a source for transmitting a message and address information of a destination for receiving a message, and includes message identification information (hereinafter referred to as an "identifier ID Quot;), and the gateway queries the RDB (Routing DB) of the identifier ID of the CAN message and transmits the message to the requested CAN network. Then, the controllers (ECUs) connected to the CAN network receive the CAN message, check the identifier ID to receive and process the message, if necessary, and ignore the message if it is not necessary.
도 1을 참조하면, 게이트웨이는 CAN 메시지를 수신하면(S110), CAN 메시지에서 식별자 ID를 추출하고 이를 RDB에 조회한다(S120).Referring to FIG. 1, when the gateway receives the CAN message (S110), the gateway extracts the identifier ID from the CAN message and inquires the RDB about the ID (S120).
예컨대, 메시지로부터 추출된 식별자 ID를 RDB에 규정된 식별자 ID와 일일이 비교하여, 대응되는 식별자 ID 가 RDB에 저장되어 있으면, RDB에 저장된 CAN 네트워크로 CAN 메시지를 전송하고, 추출된 식별자 ID를 RDB에 저장된 모든 식별자 ID리스트와 비교하였음에도 불구하고 대응되는 식별자 ID가 RDB에 저장되어 있지 않으면 전송을 종료한다(S131~S153).For example, if the identifier ID extracted from the message is compared with the identifier ID defined in the RDB, if the corresponding identifier ID is stored in the RDB, the CAN message is transmitted to the CAN network stored in the RDB, and the extracted identifier ID is stored in the RDB If the corresponding identifier ID is not stored in the RDB despite the comparison with the stored list of all identifier IDs, the transmission is terminated (S131 to S153).
그런데, 이러한 종래 방식의 경우에, CAN 네트워크에 제어기(ECU)가 추가되거나 개발용 진단 ID가 추가되면, 게이트웨이가 참조하는 RDB에도 진단 메시지에 대한 식별자 ID를 추가하여 소프트웨어 수정을 진행해야 하는 불편함이 존재한다. However, in the case of this conventional method, when a controller (ECU) is added to the CAN network or a diagnostic ID for development is added, it is inconvenient for the software to be modified by adding an identifier ID for the diagnostic message to the RDB referenced by the gateway Lt; / RTI >
또한, 진단 메시지 라우팅은 메시지나 시그널의 속성을 변경하지 않고 입력되는 신호를 그대로 전송하기 때문에 RDB를 통한 라우팅이 불필요함에도 불구하고, 종래 기술의 경우에는 RDB를 조회하는 방식을 그대로 적용하여 메시지 전송 속도가 저하되는 문제점이 존재하였다.In addition, since the routing of the diagnostic message is performed without changing the attributes of the message or the signal and the input signal is transmitted as it is, routing through the RDB is unnecessary. In the prior art, There is a problem in that the temperature is lowered.
또한, 진단 메시지의 식별자 ID가 추가 되는 것 만으로도 게이트웨이 소프트웨어 변경 및 리워크 작업이 필요하여 불필요한 비용이 발생되고, 인터럽트 함수가 식별자 ID 마다 존재해야 하므로 코드 길이가 늘어나며 로직이 복잡하여 처리 속도가 느려지는 문제점이 존재하였다.In addition, the addition of the identifier ID of the diagnostic message necessitates the gateway software change and rework work, resulting in unnecessary cost. Since the interrupt function must exist for each identifier ID, the code length increases and the processing speed is slowed due to the complexity of the logic There was a problem.
본 발명이 해결하고자 하는 과제는 차량의 게이트웨이를 통한 CAN 통신 네트워크에서, 진단 메시지에 대해서는 고속으로 라우팅을 수행할 수 있는 진단 메시지 라우팅 시스템 및 방법을 제공하는 것이다.SUMMARY OF THE INVENTION It is an object of the present invention to provide a diagnostic message routing system and method capable of performing high-speed routing for diagnostic messages in a CAN communication network through a gateway of a vehicle.
상술한 과제를 해결하기 위한 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 시스템은, 외부로부터 입력되는 CAN 통신 메시지를 수신하고, 상기 CAN 통신 메시지에서 추출된 식별자 ID가 사전에 진단 메시지에 대해서 설정된 범위에 포함되면, 수신된 CAN 통신 메시지를 진단 메시지로 판정하여 자신에게 연결된 전체 네트워크로 브로드캐스팅하는 게이트웨이를 포함한다.According to another aspect of the present invention, there is provided a diagnostic message routing system for a vehicle gateway, the system comprising: a receiver for receiving a CAN communication message input from an external source; And a gateway for determining the received CAN communication message as a diagnostic message and broadcasting the CAN communication message to the entire network connected to the CAN communication message.
또한, 상기 게이트웨이는, 상기 CAN 통신 메시지에서 추출된 식별자 ID가 사전에 진단 메시지에 대해서 설정된 범위에 포함되면, 수신된 CAN 통신 메시지를 진단 메시지로 판정하고, 내부에 저장된 이력 데이터를 조사하여, 이력 데이터가 존재하면 이력 데이터에 상기 식별자 ID와 연계되어 저장된 네트워크로만 상기 CAN 통신 메시지를 전송하고, 이력 데이터가 존재하지 않으면 전체 네트워크로 브로드캐스팅할 수 있다.If the identifier ID extracted from the CAN communication message is included in the range set in advance for the diagnostic message, the gateway determines the received CAN communication message as a diagnosis message, examines the history data stored therein, If the data exists, the CAN communication message is transmitted only to the network stored in association with the identifier ID in the history data, and if the history data does not exist, it can be broadcast to the entire network.
또한, 상기 게이트웨이는, 전체 네트워크로 브로드캐스팅된 상기 CAN 통신 메시지에 대해서 응답 메시지가 수신되면, 상기 CAN 통신 메시지의 식별자 ID 와 응답 메시지가 수신된 네트워크 정보를 연계하여 이력 데이터로서 저장할 수 있다.In addition, when the response message is received for the CAN communication message broadcasted to the entire network, the gateway may associate the received network information with the identifier ID of the CAN communication message and the response message and store the received network information as the history data.
또한, 상기 게이트웨이는, 외부로부터 입력된 CAN 통신 메시지에서 식별자 ID를 추출하여 상기 CAN 통신 메시지가 진단 메시지인지 여부를 판정하고, 상기 CAN 통신 메시지가 진단 메시지인 경우에 상기 CAN 통신 메시지를 진단 메시지 처리부로 출력하는 메시지 식별부; 상기 메시지 식별부로부터 입력된 CAN 통신 메시지의 식별자 ID를 데이터 저장부에 조회하여 이력 데이터가 존재하는지 확인하고, 이력 데이터가 존재하지 않으면, 상기 CAN 통신 메시지를 모든 네트워크 입출력 처리 모듈로 출력하여 상기 게이트웨이 연결된 모든 네트워크로 상기 CAN 통신 메시지를 전송하는 상기 진단 메시지 처리부; 및 상기 진단 메시지 처리부로부터 입력된 CAN 통신 메시지를 자신이 연결된 네트워크에 연결된 제어기들로 전송하는 복수의 네트워크 입출력 처리 모듈을 포함할 수 있다.The gateway extracts an identifier ID from an externally input CAN communication message to determine whether the CAN communication message is a diagnostic message. When the CAN communication message is a diagnostic message, the gateway extracts the CAN communication message from the diagnostic message processing unit A message identification unit for outputting a message; The CAN communication message is output to all network input / output processing modules, and if there is no history data, the CAN communication message is output to all network input / output processing modules, The diagnostic message processing unit transmitting the CAN communication message to all connected networks; And a plurality of network input / output processing modules for transmitting the CAN communication message input from the diagnostic message processing unit to controllers connected to a network to which the CAN communication message is connected.
또한, 상기 이력 데이터는 진단 메시지의 식별자 ID와 해당 진단 메시지에 대한 응답 메시지가 수신된 CAN 통신 네트워크 정보를 서로 연계시켜 저장한 데이터를 나타내고, 상기 진단 메시지 처리부는 상기 메시지 식별부로부터 입력된 CAN 통신 메시지의 식별자 ID를 데이터 저장부에 조회하여 이력 데이터가 존재하는지 확인하고, 이력 데이터가 존재하면, 이력 데이터에 식별자 ID와 연계되어 저장된 CAN 통신 네트워크로만 진단 메시지로 판정된 상기 CAN 통신 메시지를 전송할 수 있다.The history data indicates data stored in association with an identifier ID of a diagnostic message and a CAN communication network information in which a response message for the diagnostic message is received, and the diagnostic message processing unit may receive the CAN communication And transmits the CAN communication message determined to be a diagnosis message only to the CAN communication network stored in association with the identifier ID in the history data, if the history data exists, by inquiring the data storage unit of the identifier of the message have.
또한, 상기 메시지 식별부는 외부로부터 입력된 CAN 통신 메시지가 진단 메시지가 아닌 경우에는 상기 CAN 통신 메시지를 메시지 라우팅 처리부로 출력하고, 상기 메시지 라우팅 처리부는 상기 CAN 통신 메시지의 식별자 ID를 라우팅 데이터베이스(RDB)에 조회하여 대응되는 네트워크 입출력 처리 모듈로 출력할 수 있다.If the CAN communication message input from the outside is not a diagnostic message, the message identification unit outputs the CAN communication message to the message routing processing unit, and the message routing unit transmits the identifier ID of the CAN communication message to the routing database (RDB) And output it to the corresponding network input / output processing module.
한편, 상술한 과제를 해결하기 위한 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 방법은, (a) 차량용 게이트웨이가 CAN 통신 메시지를 수신하는 단계; (b) 상기 CAN 통신 메시지로부터 식별자 ID를 추출하여 상기 CAN 통신 메시지가 진단 메시지인지 여부를 확인하는 단계; (c) 상기 CAN 통신 메시지가 진단 메시지로 판정된 경우에, 상기 게이트웨이에 연결된 전체 네트워크로 상기 CAN 통신 메시지를 브로드캐스팅하는 단계; 및 (d) 상기 CAN 통신 메시지에 대해서 응답 메시지가 수신되면, 상기 CAN 통신 메시지의 식별자 ID와 상기 응답 메시지가 수신된 네트워크 정보를 서로 연계하여 이력 데이터로서 저장하는 단계를 포함한다.According to another aspect of the present invention, there is provided a method for routing diagnostic messages for a vehicle gateway, the method comprising the steps of: (a) receiving a CAN communication message from a vehicle gateway; (b) extracting an identifier ID from the CAN communication message and checking whether the CAN communication message is a diagnostic message; (c) if the CAN communication message is determined to be a diagnostic message, broadcasting the CAN communication message to the entire network connected to the gateway; And (d) associating an identifier ID of the CAN communication message with the received network information and storing the response message as history data when a response message is received for the CAN communication message.
또한, 상기 (c) 단계는, 상기 CAN 통신 메시지가 진단 메시지로 판정된 경우에, 상기 (b) 단계에서 추출된 식별자 ID 에 대해서 이력 데이터를 조회하여, 이력 데이터가 존재하는 경우에는 상기 식별자 ID 와 연계되어 저장된 네트워크로만 상기 CAN 통신 메시지를 전송하고, 상기 식별자 ID와 연계되어 저장된 이력 데이터가 존재하지 않는 경우에는 상기 CAN 통신 메시지를 전체 네트워크로 브로드캐스팅할 수 있다.In the step (c), when the CAN communication message is determined to be a diagnostic message, the history data extracted from the step (b) is checked for history data, and if the history data exists, And transmits the CAN communication message to the entire network if the history data stored in association with the identifier ID does not exist.
또한, 상기 (b) 단계에서, 상기 CAN 통신 메시지가 진단 메시지가 아닌 경우에는, 상기 CAN 통신 메시지의 식별자 ID를 라우팅 데이터베이스(RDB)에 조회하여 대응되는 네트워크로 전송할 수 있다.In the step (b), if the CAN communication message is not a diagnostic message, the ID of the CAN communication message can be inquired to the routing database (RDB) and transmitted to the corresponding network.
또한, 상술한 과제를 해결하기 위한 본 발명의 바람직한 실시예에 따른 프로그램은, 상술한 차량 게이트웨이용 진단 메시지 라우팅 방법을 실행하기 위하여 기록 매체에 저장된 프로그램이다.In addition, a program according to a preferred embodiment of the present invention for solving the above-mentioned problems is a program stored in a recording medium for executing the diagnostic message routing method for a vehicle gateway described above.
본 발명은 진단 메시지에 대해서 특정 범위의 메시지 식별자 ID 범위를 할당하고, 진단 메시지에 대해서 미리 할당된 범위에 속하는 식별자 ID를 포함하는 진단 메시지에 대해서는 RDB에 저장된 식별자 ID를 조회하지 않고 게이트웨이에 연결된 전체 네트워크로 진단 메시지를 브로드캐스팅하고, 이에 대한 응답 메시지가 게이트웨이로 수신되면, 게이트웨이가 진단 메시지의 식별자 ID와 이에 대응되는 응답 메시지가 수신된 네트워크 정보를 서로 대응되도록 이력 데이터로서 저장해 두었다가, 추후에 동일한 식별자 ID를 갖는 진단 메시지가 수신되면 전체 네트워크로 진단 메시지를 브로드캐스팅하지 않고, 응답 메시지가 수신되었던 네트워크만으로 진단 메시지를 전송함으로써, 보다 효율적이고 고속의 진단 메시지 전송이 가능하다.The present invention allocates a range of a message identifier ID in a specific range to a diagnostic message and notifies all of the diagnostic messages including an identifier ID belonging to a range preliminarily assigned to the diagnostic message, When a diagnostic message is broadcasted to the network and a response message to the gateway is received by the gateway, the gateway stores the identifier ID of the diagnostic message and the network information corresponding to the received response message as history data so as to correspond to each other. When a diagnostic message having an identifier ID is received, a diagnostic message can be transmitted only to the network from which the response message was received without broadcasting the diagnostic message to the entire network, thereby enabling more efficient and fast diagnostic message transmission.
도 1은 종래 기술에 따라서 게이트웨이가 CAN 네트워크로 메시지를 전송하는 방식을 설명하는 도면이다.
도 2는 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 시스템의 전체 구조를 도시하는 도면이다.
도 3은 본 발명의 바람직한 실시예에 따른 게이트웨이의 세부 구성을 도시하는 도면이다.
도 4는 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 방법을 설명하는 흐름도이다.1 is a diagram illustrating a manner in which a gateway transmits a message to a CAN network according to the prior art.
2 is a diagram showing an overall structure of a diagnostic message routing system for a vehicle gateway according to a preferred embodiment of the present invention.
3 is a diagram showing a detailed configuration of a gateway according to a preferred embodiment of the present invention.
4 is a flowchart illustrating a diagnostic message routing method for a vehicle gateway according to a preferred embodiment of the present invention.
이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예들을 설명한다.Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
단, 이하에서는 설명의 편의를 위해서 본 발명에서 수행되는 기능들 중 일반적인 CAN 통신 네트워크 방식과 동일한 내용에 대해서는 설명을 생략하였음을 주의해야 한다.It should be noted, however, that for the sake of convenience of description, descriptions of the same functions as those of the general CAN communication network system among the functions performed in the present invention are omitted.
도 2는 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 시스템의 전체 구조를 도시하는 도면이다.2 is a diagram showing an overall structure of a diagnostic message routing system for a vehicle gateway according to a preferred embodiment of the present invention.
도 2를 참조하여 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 시스템의 전체인 동작을 설명한다.The overall operation of the diagnostic message routing system for a vehicle gateway according to a preferred embodiment of the present invention will now be described with reference to FIG.
먼저, 전체 시스템은 게이트웨이(200), 게이트웨이(200)에 연결되어 게이트웨이(200)를 통해서 CAN 네트워크들로 진단 메시지를 전송하고, 응답 메시지를 수신하는 진단기(100), 게이트웨이(200)에 연결된 복수의 CAN 네트워크, 복수의 CAN 네트워크 각각에 연결되는 복수의 제어기들(310~330)을 포함하여 구성된다.The overall system includes a
도 2를 참조하여, 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 시스템의 동작을 설명하면, 먼저, 게이트웨이(200)는 사전에 정의된 진단 메시지용 식별자 ID 범위를 설정하여 내부에 저장한다. 본 발명의 바람직한 실시예에서는 6XX~7xxh 범위의 식별자 ID를 진단 메시지에 대한 식별자 ID 로 설정하였다. Referring to FIG. 2, the operation of the diagnostic message routing system for a vehicle gateway according to the preferred embodiment of the present invention will be described. First, the
그 후, 진단기(100)는 진단을 위해서 진단 메시지를 생성하여 게이트웨이(200)로 전송한다. 이 때, 진단기(100)는 진단 CAN 통신 메시지의 식별자 ID에 상기한 진단 메시지에 할당된 식별자 ID 범위에 속하는 식별자 ID를 포함하는 진단 CAN 통신 메시지를 게이트웨이(200)로 전송하게 된다.After that, the
CAN 통신 메시지를 수신한 게이트웨이(200)는, 먼저, 수신된 CAN 통신 메시지에서 식별자 ID를 추출하여 해당 식별자 ID가 사전에 정의된 진단 메시지의 식별자 ID 범위에 속하는지 여부를 확인한다. The
진단 메시지의 식별자 ID 범위에 속하는 경우에는, 해당 식별자 ID를 갖는 진단 CAN 통신 메시지에 대해서 RDB(250)(Routing DB)에 저장된 각 식별자 ID를 조회하지 않고, 다이렉트 라우팅(Direct Routing)을 수행한다.If it belongs to the range of the identifier ID of the diagnostic message, direct routing is performed without inquiring each identifier ID stored in the RDB 250 (Routing DB) for the diagnostic CAN communication message having the corresponding identifier ID.
다이렉트 라우팅 과정을 구체적으로 설명하면, 게이트웨이(200)는 진단 메시지로 판정된 CAN 통신 메시지에 대해서, 응답 메시지가 전송된 이력 데이터가 존재하는지 여부를 게이트웨이(200) 내부의 데이터 저장부(230)를 조회하여 확인한다.Specifically, the
이력 데이터가 존재하지 않는 경우에는, 게이트웨이(200)에 연결된 모든 CAN 네트워크1 내지 CAN 네트워크n 으로 진단 CAN 통신 메시지를 브로드캐스팅하고, 브로드캐스팅된 진단 CAN 통신 메시지에 대한 응답 메시지가 수신되면, 진단 메시지의 식별자 ID와 응답 메시지가 수신된 CAN 통신 네트워크 정보를 서로 연계시켜 이력 데이터로서 내부의 데이터 저장부(230)에 저장한다.When there is no history data, a diagnostic CAN communication message is broadcasted to all the
한편, 수신된 진단 메시지에 포함된 식별자 ID에 대한 이력 데이터가 데이터저장부(230)에 이미 존재하는 경우에는, 데이터 저장부(230)에 해당 식별자 ID 에 대응되어 저장된 CAN 통신 네트워크만으로 진단 CAN 통신 메시지를 전송한다.On the other hand, when the history data for the identifier ID included in the received diagnostic message already exists in the
한편, 각 CAN 통신 네트워크에 연결된 제어기들(310~330)은 CAN 통신 버스를 통해서 수신되는 CAN 통신 메시지들 중에서 자신과 관련이 없는 메시지는 무시하고, 자신과 관련된 메시지에 대해서는 응답 메시지를 CAN 통신 버스를 통해서 게이트웨이(200)로 전송한다.On the other hand, the
도 3은 본 발명의 바람직한 실시예에 따른 게이트웨이(200)의 세부 구성을 도시하는 도면이다.3 is a diagram showing a detailed configuration of a
도 3을 참조하면, 본 발명의 바람직한 실시예에 따른 게이트웨이(200)는 메시지 식별부(210), 데이터 저장부(230), 진단 메시지 처리부(220), 메시지 라우팅 처리부(240), RDB(250), 복수의 네트워크 입출력 처리 모듈(260,260-1,260-2,,, 260-n)을 포함하여 구성된다.3, the
메시지 식별부(210)는 외부로부터 CAN 통신 메시지를 입력받고, 입력된 CAN 통신 메시지에서 식별자 ID를 추출하며, 추출된 식별자 ID가 사전에 진단 메시지에 할당된 식별자 ID 범위에 해당되는지 여부를 판단하여 해당 메시지가 진단 메시지인지 여부를 식별한다. 수신된 CAN 통신 메시지가 진단 메시지인 경우에는 진단 메시지 처리부(220)로 출력하고, 진단 메시지가 아닌 일반 CAN 통신 메시지인 경우에는 메시지 라우팅 처리부(240)로 출력한다.The
메시지 라우팅 처리부(240)는 식별자 ID를 RDB(Routing DB)(250)에 조회하여 일반적인 차량용 게이트웨이(200)에서 메시지 라우팅을 수행하는 방식과 동일한 방식으로 메시지 라우팅을 처리한다.The
진단 메시지 처리부(220)는 메시지 식별부(210)로부터 진단 CAN 메시지가 입력되면, 먼저, 데이터 저장부(230)에 이력 데이터가 저장되어 있는지 여부를 확인한다. 이력 데이터란 동일한 식별자 ID의 진단 CAN 메시지가 수신되어 전체 네트워크로 전송된 후, 이에 대해서 특정 네트워크로부터 응답 CAN 통신 메시지가 수신된 경우에, 데이터 저장부(230)에 식별자 ID 와 함께 응답 메시지가 수신된 네트워크 정보가 함께 저장된 것을 의미한다.When the diagnostic CAN message is input from the
진단 메시지 처리부(220)는 이력 데이터가 데이터 저장부(230)에 저장되어 있는 경우에는, 이력 데이터에 식별자 ID 와 연계되어 저장된 네트워크를 담당하는 네트워크 입출력 처리 모듈만으로 진단 CAN 메시지를 출력하여, 해당 네트워크로만 진단 CAN 메시지를 전송한다.When the history data is stored in the
그러나, 이력 데이터가 존재하지 않으면, 진단 메시지 처리부(220)는 진단 CAN 메시지를 모든 네트워크 입출력 처리 모듈(260-1~260-n)로 출력함으로써 모든 네트워크들로 진단 CAN 메시지를 전송한다.However, if there is no history data, the diagnostic
복수의 네트워크 입출력 처리 모듈들(260-1~260-n)은 진단 메시지 처리부(220) 또는 메시지 라우팅 처리부(240)로부터 입력된 CAN 통신 메시지를 자신이 관리하는 CAN 버스를 통해서 출력하여, 해당 CAN 버스에 연결된 제어기들(310~330)로 CAN 통신 메시지를 전송한다.The plurality of network input / output processing modules 260-1 through 260-n output the CAN communication message input from the diagnostic
도 4는 본 발명의 바람직한 실시예에 따른 차량 게이트웨이용 진단 메시지 라우팅 방법을 설명하는 흐름도이다.4 is a flowchart illustrating a diagnostic message routing method for a vehicle gateway according to a preferred embodiment of the present invention.
도 4를 참조하면, 게이트웨이(200)는 외부로부터 CAN 통신 메시지를 수신하고(S410), 수신된 메시지로부터 메시지 식별자 ID를 추출한 후, 추출된 식별자 ID가 진단 메시지에 할당된 식별자 ID 범위에 해당되는지 여부를 확인함으로써 수신된 메시지가 진단 메시지인지 여부를 확인한다(S420).Referring to FIG. 4, the
수신된 메시지가 진단 메시지가 아닌 경우(S430), 게이트웨이(200)는 일반적인 CAN 통신 방식과 동일하게 RDB(250)를 조회하여 라우팅 경로를 설정하고, 라우팅 경로에 따라서 자신에게 연결된 복수의 네트워크들 중 어느 하나로 CAN 통신 메시지를 전송한다(S440).If the received message is not a diagnostic message (S430), the
한편, CAN 통신 메시지로부터 추출된 식별자 ID가 진단 메시지인 경우에, 게이트웨이(200)는 내부의 데이터 저장부(230)에 해당 식별자 ID를 조회하여 이력 데이터가 존재하는지 여부를 조사하여(S450), 이력 데이터가 존재하는 경우에는 이력 데이터에 연계된 대응 네트워크, 즉, 이전에 해당 진단 메시지에 대해서 응답 메시지가 수신되었던 네트워크로 진단 메시지를 전송한다(S460).Meanwhile, when the identifier ID extracted from the CAN communication message is a diagnostic message, the
그러나, 이력 데이터가 존재하지 않는 경우에, 게이트웨이(200)는 게이트웨이(200)에 연결된 전체 네트워크들로 진단 CAN 메시지를 브로드캐스팅하고, 브로드캐스팅된 진단 CAN 메시지에 대응하는 응답 메시지가 수신되기를 대기한다(S470). However, if there is no history data, the
그리고, 응답 CAN 메시지가 수신되면 응답 메시지를 진단기(100)로 전송하는 한편(S480), 진단기(100)로부터 수신된 진단 CAN 메시지로부터 추출된 식별자 ID와 응답 메시지가 수신된 네트워크 정보를 서로 연계하여 이력 데이터로서 저장한다(S490).When the response CAN message is received, the response message is transmitted to the diagnostic device 100 (S480), and the identifier ID extracted from the diagnostic CAN message received from the
이 후, 진단 CAN 메시지가 진단기(100)로부터 수신되면, 상술한 제 S410 단계 내지 제 S490 단계가 반복적으로 수행된다.Thereafter, when the diagnostic CAN message is received from the
본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광데이터 저장장치 등이 있다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The present invention can also be embodied as computer-readable codes on a computer-readable recording medium. A computer-readable recording medium includes all kinds of recording apparatuses in which data that can be read by a computer system is stored. Examples of the computer-readable recording medium include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like. The computer readable recording medium may also be distributed over a networked computer system so that computer readable code can be stored and executed in a distributed manner.
이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.The present invention has been described with reference to the preferred embodiments. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the present invention is defined by the appended claims rather than by the foregoing description, and all differences within the scope of equivalents thereof should be construed as being included in the present invention.
100 : 진단기
200 : 게이트웨이
210 : 메시지 식별부
220 : 진단 메시지 처리부
230 : 데이터 저장부
240 : 메시지 라우팅 처리부
250 : RDB
260, 260-1~260-n : 복수의 네트워크 입출력 처리 모듈
310 ~ 330 : CAN 네트워크100: Diagnostics
200: Gateway
210: message identifying unit 220: diagnostic message processing unit
230: Data storage unit 240: Message routing processing unit
250: RDB
260, 260-1 to 260-n: a plurality of network input / output processing modules
310 ~ 330: CAN network
Claims (10)
상기 CAN 통신 메시지에서 추출된 식별자 ID가 사전에 진단 메시지에 대해서 설정된 범위에 포함되면, 수신된 CAN 통신 메시지를 진단 메시지로 판정하고, 내부에 저장된 이력 데이터를 조사하여, 이력 데이터가 존재하면 이력 데이터에 상기 식별자 ID와 연계되어 저장된 네트워크로만 상기 CAN 통신 메시지를 전송하고, 이력 데이터가 존재하지 않으면 전체 네트워크로 브로드캐스팅하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 시스템.The method of claim 1, wherein the gateway
If the identifier ID extracted from the CAN communication message is included in the range set in advance for the diagnostic message, the received CAN communication message is determined as a diagnosis message, and the history data stored therein is examined. If the history data exists, To the network stored in association with the identifier ID, and broadcasts the CAN communication message to the entire network if the history data does not exist.
전체 네트워크로 브로드캐스팅된 상기 CAN 통신 메시지에 대해서 응답 메시지가 수신되면, 상기 CAN 통신 메시지의 식별자 ID 와 응답 메시지가 수신된 네트워크 정보를 연계하여 이력 데이터로서 저장하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 시스템.3. The method of claim 2, wherein the gateway
Wherein when a response message is received for the CAN communication message broadcasted to the entire network, an identifier ID of the CAN communication message and a response message are linked with the received network information and stored as history data. Routing system.
외부로부터 입력된 CAN 통신 메시지에서 식별자 ID를 추출하여 상기 CAN 통신 메시지가 진단 메시지인지 여부를 판정하고, 상기 CAN 통신 메시지가 진단 메시지인 경우에 상기 CAN 통신 메시지를 진단 메시지 처리부로 출력하는 메시지 식별부;
상기 메시지 식별부로부터 입력된 CAN 통신 메시지의 식별자 ID를 데이터 저장부에 조회하여 이력 데이터가 존재하는지 확인하고, 이력 데이터가 존재하지 않으면, 상기 CAN 통신 메시지를 모든 네트워크 입출력 처리 모듈로 출력하여 상기 게이트웨이 연결된 모든 네트워크로 상기 CAN 통신 메시지를 전송하는 상기 진단 메시지 처리부; 및
상기 진단 메시지 처리부로부터 입력된 CAN 통신 메시지를 자신이 연결된 네트워크에 연결된 제어기들로 전송하는 복수의 네트워크 입출력 처리 모듈을 포함하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 시스템.3. The method of claim 2, wherein the gateway
A message identifying unit for extracting an identifier ID from an externally input CAN communication message to determine whether the CAN communication message is a diagnostic message and outputting the CAN communication message to the diagnostic message processing unit when the CAN communication message is a diagnostic message, ;
The CAN communication message is output to all network input / output processing modules, and if there is no history data, the CAN communication message is output to all network input / output processing modules, The diagnostic message processing unit transmitting the CAN communication message to all connected networks; And
And a plurality of network input / output processing modules for transmitting the CAN communication message input from the diagnostic message processing unit to controllers connected to the network to which the diagnostic message processing unit is connected.
상기 이력 데이터는 진단 메시지의 식별자 ID와 해당 진단 메시지에 대한 응답 메시지가 수신된 CAN 통신 네트워크 정보를 서로 연계시켜 저장한 데이터를 나타내고,
상기 진단 메시지 처리부는 상기 메시지 식별부로부터 입력된 CAN 통신 메시지의 식별자 ID를 데이터 저장부에 조회하여 이력 데이터가 존재하는지 확인하고, 이력 데이터가 존재하면, 이력 데이터에 식별자 ID와 연계되어 저장된 CAN 통신 네트워크로만 진단 메시지로 판정된 상기 CAN 통신 메시지를 전송하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 시스템.5. The method of claim 4,
The history data indicates data stored in association with the identifier ID of the diagnostic message and the CAN communication network information in which the response message for the diagnostic message is received,
The diagnostic message processing unit inquires of the data storage unit of the identifier ID of the CAN communication message input from the message identifying unit to check whether the history data exists and if there is the history data, And transmits the CAN communication message determined to be a diagnostic message only to the network.
상기 메시지 식별부는 외부로부터 입력된 CAN 통신 메시지가 진단 메시지가 아닌 경우에는 상기 CAN 통신 메시지를 메시지 라우팅 처리부로 출력하고,
상기 메시지 라우팅 처리부는
상기 CAN 통신 메시지의 식별자 ID를 라우팅 데이터베이스(RDB)에 조회하여 대응되는 네트워크 입출력 처리 모듈로 출력하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 장치.
6. The method of claim 5,
If the CAN communication message input from the outside is not a diagnostic message, the message identification unit outputs the CAN communication message to the message routing processing unit,
The message routing processing unit
And an identifier ID of the CAN communication message is inquired to the routing database (RDB) and output to the corresponding network input / output processing module.
(b) 상기 CAN 통신 메시지로부터 식별자 ID를 추출하여 상기 CAN 통신 메시지가 진단 메시지인지 여부를 확인하는 단계;
(c) 상기 CAN 통신 메시지가 진단 메시지로 판정된 경우에, 상기 게이트웨이에 연결된 전체 네트워크로 상기 CAN 통신 메시지를 브로드캐스팅하는 단계; 및
(d) 상기 CAN 통신 메시지에 대해서 응답 메시지가 수신되면, 상기 CAN 통신 메시지의 식별자 ID와 상기 응답 메시지가 수신된 네트워크 정보를 서로 연계하여 이력 데이터로서 저장하는 단계를 포함하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 방법.(a) the vehicle gateway receiving a CAN communication message;
(b) extracting an identifier ID from the CAN communication message and checking whether the CAN communication message is a diagnostic message;
(c) if the CAN communication message is determined to be a diagnostic message, broadcasting the CAN communication message to the entire network connected to the gateway; And
(d) associating the identifier ID of the CAN communication message with the received network information and storing the response information as history data when a response message is received for the CAN communication message. A method for routing diagnostic messages for a computer.
상기 CAN 통신 메시지가 진단 메시지로 판정된 경우에, 상기 (b) 단계에서 추출된 식별자 ID 에 대해서 이력 데이터를 조회하여, 이력 데이터가 존재하는 경우에는 상기 식별자 ID 와 연계되어 저장된 네트워크로만 상기 CAN 통신 메시지를 전송하고, 상기 식별자 ID와 연계되어 저장된 이력 데이터가 존재하지 않는 경우에는 상기 CAN 통신 메시지를 전체 네트워크로 브로드캐스팅하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 방법.8. The method of claim 7, wherein step (c)
If the CAN communication message is determined to be a diagnostic message, the history data extracted from the step (b) is inquired, and if the history data exists, only the CAN stored in association with the identifier ID And if the stored history data does not exist in association with the identifier ID, broadcasts the CAN communication message to the entire network.
상기 CAN 통신 메시지가 진단 메시지가 아닌 경우에는, 상기 CAN 통신 메시지의 식별자 ID를 라우팅 데이터베이스(RDB)에 조회하여 대응되는 네트워크로 전송하는 것을 특징으로 하는 차량 게이트웨이용 진단 메시지 라우팅 방법.The method of claim 8, wherein in step (b)
If the CAN communication message is not a diagnostic message, inquiring of the routing database (RDB) for the identifier ID of the CAN communication message and transmitting the inquiry message to the corresponding network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160177881A KR20180074128A (en) | 2016-12-23 | 2016-12-23 | Diagnosis message routing system and method for gateway of vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160177881A KR20180074128A (en) | 2016-12-23 | 2016-12-23 | Diagnosis message routing system and method for gateway of vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20180074128A true KR20180074128A (en) | 2018-07-03 |
Family
ID=62918643
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020160177881A KR20180074128A (en) | 2016-12-23 | 2016-12-23 | Diagnosis message routing system and method for gateway of vehicle |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20180074128A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112015163A (en) * | 2020-08-20 | 2020-12-01 | 广州汽车集团股份有限公司 | Method and device for quickly identifying diagnostic subject on CAN bus |
CN115002682A (en) * | 2021-03-02 | 2022-09-02 | 现代摩比斯株式会社 | Central communication unit of special vehicle and configuration method of dynamic network thereof |
US11948409B2 (en) | 2020-08-03 | 2024-04-02 | Hyundai Motor Company | System and method for processing diagnostic message of vehicle |
-
2016
- 2016-12-23 KR KR1020160177881A patent/KR20180074128A/en unknown
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11948409B2 (en) | 2020-08-03 | 2024-04-02 | Hyundai Motor Company | System and method for processing diagnostic message of vehicle |
CN112015163A (en) * | 2020-08-20 | 2020-12-01 | 广州汽车集团股份有限公司 | Method and device for quickly identifying diagnostic subject on CAN bus |
CN112015163B (en) * | 2020-08-20 | 2021-11-26 | 广州汽车集团股份有限公司 | Method and device for quickly identifying diagnostic subject on CAN bus |
CN115002682A (en) * | 2021-03-02 | 2022-09-02 | 现代摩比斯株式会社 | Central communication unit of special vehicle and configuration method of dynamic network thereof |
CN115002682B (en) * | 2021-03-02 | 2023-11-28 | 现代摩比斯株式会社 | Central communication unit of special vehicle and configuration method of dynamic network thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR20210095944A (en) | In-vehicle gateway communication method, in-vehicle gateway, and intelligent vehicle | |
CN110635933B (en) | Apparatus, control method, and recording medium for managing network of SDN | |
US20120320927A1 (en) | Gateway apparatus | |
US9674119B2 (en) | Method and apparatus for controlling audio/video bridging stream for in-vehicle ethernet | |
CN104125152A (en) | Vehicle-mounted gateway-based method for improving vehicle-mounted network reliability | |
KR20180074128A (en) | Diagnosis message routing system and method for gateway of vehicle | |
CN105812444A (en) | Method for making Internet-of-Things cloud gateway compatible with multiple protocols and Internet-of-Things cloud gateway | |
CN114553373A (en) | Data transmission method, device, equipment and storage medium | |
US11715337B2 (en) | Controller diagnostic device and method thereof | |
CN105722040A (en) | Service message transmission method, apparatus and system | |
KR101958477B1 (en) | Lin communication system for vehicle and method for driving slave module in the system | |
CN111225082A (en) | Identity management method and device of Internet of things intelligent equipment and Internet of things platform | |
US20170171036A1 (en) | Distributed network management system and method for a vehicle | |
US20020095627A1 (en) | Method of monitoring life-or-death state of host computer connected to network and life-and-death monitoring system | |
CN102710479A (en) | Automobile gateway system for inverse resolution of communication protocols | |
US20140310330A1 (en) | Establishing communication between entities in a shared network | |
KR102168775B1 (en) | Method for quickly processing service-based information query via a network and a device for said method | |
CN104702711A (en) | Intelligent network system for adaptively controlling inner network conflict and optimization method | |
CN116436994B (en) | Profinet protocol message transmission method, device, equipment and medium | |
US20220376947A1 (en) | Monitoring controller area network (can) xl nodes | |
EP4207841A1 (en) | Method and apparatus for implementing communication, and computer-readable medium | |
CN115378756B (en) | Monitoring Controller Area Network (CAN) XL node | |
JP5556430B2 (en) | Communications system | |
CN202711059U (en) | Automobile protocol analyzer for analyzing communication protocol of finished automobile control module | |
WO2021073501A1 (en) | Resource configuration method, apparatus, and system for in-vehicle service slices |