KR102300764B1 - Diagnostic methods and devices in vehicle network - Google Patents

Diagnostic methods and devices in vehicle network Download PDF

Info

Publication number
KR102300764B1
KR102300764B1 KR1020170104005A KR20170104005A KR102300764B1 KR 102300764 B1 KR102300764 B1 KR 102300764B1 KR 1020170104005 A KR1020170104005 A KR 1020170104005A KR 20170104005 A KR20170104005 A KR 20170104005A KR 102300764 B1 KR102300764 B1 KR 102300764B1
Authority
KR
South Korea
Prior art keywords
communication node
controller unit
request message
phy layer
target communication
Prior art date
Application number
KR1020170104005A
Other languages
Korean (ko)
Other versions
KR20180029854A (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 US15/702,317 priority Critical patent/US10710522B2/en
Priority to DE102017121073.3A priority patent/DE102017121073A1/en
Publication of KR20180029854A publication Critical patent/KR20180029854A/en
Application granted granted Critical
Publication of KR102300764B1 publication Critical patent/KR102300764B1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W50/02Ensuring safety in case of control system failures, e.g. by diagnosing, circumventing or fixing failures
    • B60W50/0205Diagnosing or detecting failures; Failure detection models
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60YINDEXING SCHEME RELATING TO ASPECTS CROSS-CUTTING VEHICLE TECHNOLOGY
    • B60Y2306/00Other features of vehicle sub-units
    • B60Y2306/15Failure diagnostics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/84Vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Transportation (AREA)
  • Small-Scale Networks (AREA)

Abstract

차량 네트워크에서 게이트웨이에 의해 수행되는 진단 방법이 개시된다. 상기 게이트웨이는 컨트롤러 유닛 및 상기 게이트웨이는 컨트롤러 유닛 및 포트(Port)들의 연결 상태를 관리하며, 상기 컨트롤러 유닛에 연결되는 PHY(physical) 계층 유닛을 포함한다.
상기 진단 방법은, 상기 컨트롤러 유닛이 제1 포트에 연결된 외부 진단기로부터 진단 요청 메시지를 수신하는 단계; 상기 진단 요청 메시지에 대해 보안 인증이 필요한 경우, 상기 컨트롤러 유닛이 상기 외부 진단기로부터 보안 인증 요청 메시지를 수신하는 단계; 상기 컨트롤러 유닛이 상기 보안 인증 요청 메시지를 검증하는 단계; 및 상기 보안 인증 요청 메시지의 검증이 완료된 경우, 상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트들 중에서 진단 대상인 타겟 통신 노드와 연결된 포트를 활성화하는 단계;를 포함한다.
A diagnostic method performed by a gateway in a vehicle network is disclosed. The gateway includes a controller unit and a PHY (physical) layer unit that manages a connection state of the controller unit and ports, and is connected to the controller unit.
The diagnosis method may include: receiving, by the controller unit, a diagnosis request message from an external diagnosis device connected to a first port; receiving, by the controller unit, a security authentication request message from the external diagnostic device when security authentication is required for the diagnosis request message; verifying, by the controller unit, the security authentication request message; and activating, by the PHY layer unit, a port connected to a target communication node to be diagnosed from among the ports when the verification of the security authentication request message is completed, under the control of the controller unit.

Description

차량 네트워크에서 진단 방법 및 장치{DIAGNOSTIC METHODS AND DEVICES IN VEHICLE NETWORK}DIAGNOSTIC METHOD AND DEVICES IN VEHICLE NETWORK

본 발명은 차량 네트워크 기술에 관한 것으로, 이더넷 기반의 차량 네트워크에 대한 진단 방법 및 장치에 관한 것이다.The present invention relates to vehicle network technology, and to a diagnostic method and apparatus for an Ethernet-based vehicle network.

차량용 부품의 전자화가 급속도로 진행됨에 따라 차량에 탑재되는 전자 장치(예를 들어, ECU(electronic control unit))의 종류와 수가 크게 증가되고 있다. 전자 장치는 크게 파워트레인(power train) 제어 시스템, 바디(body) 제어 시스템, 새시(chassis) 제어 시스템, 차량 네트워크(network), 멀티미디어(multimedia) 시스템 등에서 사용될 수 있다. 파워트레인 제어 시스템은 엔진 제어 시스템, 자동 변속 제어 시스템 등을 의미할 수 있다. 바디 제어 시스템은 바디 전장품 제어 시스템, 편의 장치 제어 시스템, 램프(lamp) 제어 시스템 등을 의미할 수 있다. 새시 제어 시스템은 조향 장치 제어 시스템, 브레이크(brake) 제어 시스템, 서스팬션(suspension) 제어 시스템 등을 의미할 수 있다. 차량 네트워크는 CAN(controller area network), 플렉스레이(FlexRay) 기반의 네트워크, MOST(media oriented system transport) 기반의 네트워크 등을 의미할 수 있다. 멀티미디어 시스템은 항법 장치 시스템, 텔레메틱스(telematics) 시스템, 인포테이먼트(infotainment) 시스템 등을 의미할 수 있다.2. Description of the Related Art As electronic components for vehicles are rapidly becoming electronic, the types and numbers of electronic devices (eg, electronic control units (ECUs)) mounted on vehicles are greatly increased. The electronic device may be largely used in a power train control system, a body control system, a chassis control system, a vehicle network, a multimedia system, and the like. The powertrain control system may refer to an engine control system, an automatic shift control system, or the like. The body control system may refer to a body electronic device control system, a convenience device control system, a lamp control system, and the like. The chassis control system may mean a steering system control system, a brake control system, a suspension control system, or the like. The vehicle network may mean a controller area network (CAN), a FlexRay-based network, a media oriented system transport (MOST)-based network, and the like. The multimedia system may refer to a navigation device system, a telematics system, an infotainment system, or the like.

이러한 시스템들 및 시스템들 각각을 구성하는 전자 장치들은 차량 네트워크를 통해 연결되어 있으며, 전자 장치들 각각의 기능을 지원하기 위한 차량 네트워크가 요구되고 있다. CAN은 최대 1Mbps의 전송 속도를 지원할 수 있으며, 충돌된 프레임의 자동 재전송, CRC(cycle redundancy check) 기반의 오류 검출 등을 지원할 수 있다. 플렉스레이 기반의 네트워크는 최대 10Mbps의 전송 속도를 지원할 수 있으며, 2채널을 통한 데이터의 동시 전송, 동기 방식의 데이터 전송 등을 지원할 수 있다. MOST 기반의 네트워크는 고품질의 멀티미디어를 위한 통신 네트워크로, 최대 150Mbps의 전송 속도를 지원할 수 있다.These systems and electronic devices constituting each of the systems are connected through a vehicle network, and a vehicle network for supporting each function of the electronic devices is required. CAN can support a transmission rate of up to 1 Mbps, and can support automatic retransmission of collided frames and error detection based on cycle redundancy check (CRC). A FlexRay-based network can support a transmission speed of up to 10 Mbps, and can support simultaneous data transmission through two channels, synchronous data transmission, and the like. The MOST-based network is a communication network for high-quality multimedia and can support a transmission rate of up to 150Mbps.

한편, 차량의 텔레메틱스 시스템, 인포테이먼트 시스템, 향상된 안전 시스템 등은 높은 전송 속도, 시스템 확장성 등을 요구하며, CAN, 플렉스레이 기반의 네트워크 등은 이를 충분히 지원하지 못한다. MOST 기반의 네트워크는 CAN 및 플렉스레이 기반의 네트워크에 비해 높은 전송 속도를 지원할 수 있으나, 차량의 모든 네트워크에 MOST 기반의 네트워크가 적용되기 위해서는 많은 비용이 소모된다. 이러한 문제들에 의해, 차량 네트워크로 이더넷(ethernet) 기반의 네트워크가 고려될 수 있다. 이더넷 기반의 네트워크는 한 쌍의 권선을 통한 양방향 통신을 지원할 수 있으며, 최대 10Gbps의 전송 속도를 지원할 수 있다.On the other hand, vehicle telematics systems, infotainment systems, and improved safety systems require high transmission speed and system scalability, and CAN and FlexRay-based networks do not sufficiently support them. A MOST-based network can support a higher transmission speed compared to a CAN and FlexRay-based network, but it consumes a lot of cost to apply the MOST-based network to all networks of a vehicle. Due to these problems, an Ethernet-based network may be considered as a vehicle network. An Ethernet-based network can support bidirectional communication through a pair of windings, and can support transmission rates of up to 10 Gbps.

이더넷 기반의 차량 네트워크의 적용이 확대되면서, 기존의 버스(BUS) 방식의 차량 진단 방법과 다른 진단 방법이 요구된다. 이더넷 기반의 차량 네트워크에서는 PHY 계층 유닛이 포트들의 연결을 스위칭할 수 있으므로, 이에 대응하는 진단 방법이 요구된다. 또한, 이더넷을 통한 진단 방법에서 차량의 보안을 유지할 수 있는 기술이 요구된다.As the application of Ethernet-based vehicle networks expands, a diagnosis method different from the existing bus (BUS) type vehicle diagnosis method is required. In the Ethernet-based vehicle network, since the PHY layer unit can switch the connection of ports, a corresponding diagnostic method is required. In addition, a technology capable of maintaining vehicle security in a diagnostic method through Ethernet is required.

상기와 같은 문제점을 해결하기 위한 본 발명의 목적은 이더넷 기반의 차량 네트워크에 대한 진단 방법 및 장치를 제공하는 데 있다.An object of the present invention to solve the above problems is to provide a diagnostic method and apparatus for an Ethernet-based vehicle network.

상기 목적을 달성하기 위한 본 발명의 제1 실시예에 따른 차량 네트워크의 게이트웨이는 컨트롤러 유닛 및 상기 컨트롤러 유닛에 연결되며, 포트(Port)들의 연결 상태를 관리하는 PHY(physical) 계층 유닛을 포함하며, The gateway of the vehicle network according to the first embodiment of the present invention for achieving the above object includes a controller unit and a PHY (physical) layer unit connected to the controller unit and managing the connection state of ports,

상기 게이트웨이에서 수행되는 진단 방법은, 상기 컨트롤러 유닛이 제1 포트에 연결된 외부 진단기로부터 진단 요청 메시지를 수신하는 단계; 상기 진단 요청 메시지에 대해 보안 인증이 필요한 경우, 상기 컨트롤러 유닛이 상기 외부 진단기로부터 보안 인증 요청 메시지를 수신하는 단계; 상기 컨트롤러 유닛이 상기 보안 인증 요청 메시지를 검증하는 단계; 및 상기 보안 인증 요청 메시지의 검증이 완료된 경우, 상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트들 중에서 진단 대상인 타겟 통신 노드와 연결된 포트를 활성화하는 단계;를 포함한다.The diagnostic method performed by the gateway may include: receiving, by the controller unit, a diagnostic request message from an external diagnostic device connected to a first port; receiving, by the controller unit, a security authentication request message from the external diagnostic device when security authentication is required for the diagnosis request message; verifying, by the controller unit, the security authentication request message; and when the verification of the security authentication request message is completed, activating, by the PHY layer unit, a port connected to a target communication node to be diagnosed among the ports under the control of the controller unit.

여기서, 상기 진단 요청 메시지에 대해 보안 인증이 필요하지 않은 경우, 상기 PHY 계층 유닛은 상기 컨트롤러 유닛에 진단 메시지를 전달하지 않고, 상기 타겟 통신 노드에 상기 진단 요청 메시지를 전달할 수 있다.Here, when security authentication is not required for the diagnosis request message, the PHY layer unit may transmit the diagnosis request message to the target communication node without transmitting the diagnosis message to the controller unit.

여기서, 상기 보안 인증 요청 메시지의 검증에 실패하면, 컨트롤러 유닛이 진단 절차를 종료하고, 외부 진단기(10)와 차량내 통신 노드 사이의 통신을 허용하지 않을 수 있다.Here, if the verification of the security authentication request message fails, the controller unit may end the diagnosis procedure and may not allow communication between the external diagnosis device 10 and the in-vehicle communication node.

여기서, 상기 진단 요청 메시지는, 진단 대상이 되는 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보를 포함하고,Here, the diagnosis request message includes information on the name or function of the target communication node to be diagnosed,

상기 진단 방법은, 상기 컨트롤러 유닛이 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보로부터 상기 타겟 통신 노드의 이더넷 MAC 주소 및 이더넷 IP 주소 중 적어도 하나를 결정하는 단계;를 더 포함할 수 있다.The diagnosis method may further include, by the controller unit, determining at least one of an Ethernet MAC address and an Ethernet IP address of the target communication node from information on the name or function of the target communication node.

여기서, 상기 진단 방법은, 상기 보안 인증 요청 메시지의 검증이 완료되면, 상기 컨트롤러 유닛이 상기 외부 진단기에 대한 보안 인증 정보를 상기 타겟 통신 노드에게 전송하는 단계;를 더 포함하는 진단 방법.Here, the diagnosis method further includes: when the verification of the security authentication request message is completed, transmitting, by the controller unit, security authentication information for the external diagnostic device to the target communication node.

여기서, 상기 보안 인증 요청 메시지를 수신하는 단계는, 상기 외부 진단기의 서비스 시간에 대한 정보를 함께 수신할 수 있다.Here, the receiving of the security authentication request message may include receiving information on the service time of the external diagnostic device together.

여기서, 상기 진단 방법은, 상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛이 상기 컨트롤러 유닛의 제어에 의해 상기 타겟 통신 노드와 연결된 포트를 비활성화하는 단계;를 포함할 수 있다.Here, the diagnosis method may include, when the service time is over, the PHY layer unit inactivating a port connected to the target communication node under the control of the controller unit.

여기서, 상기 진단 방법은, 상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛은 상기 타겟 통신 노드에 대한 모니터링을 제외한 메시지를 상기 컨트롤러 유닛에 전달할 수 있다.Here, in the diagnosis method, when the service time is over, the PHY layer unit may transmit a message excluding monitoring for the target communication node to the controller unit.

여기서, 상기 진단 방법은, 상기 PHY 계층 유닛이 상기 타겟 통신 노드로부터 진단 응답 메시지를 수신하는 단계; 및Here, the diagnostic method includes: receiving, by the PHY layer unit, a diagnostic response message from the target communication node; and

상기 PHY 계층 유닛이 상기 컨트롤러 유닛의 제어에 의해 포트 포워딩 방식으로 상기 진단 응답 메시지를 상기 외부 진단기로 전달하는 단계;를 더 포함할 수 있다.The method may further include, by the PHY layer unit, transmitting the diagnosis response message to the external diagnostic unit in a port forwarding manner under the control of the controller unit.

여기서, 상기 차량 네트워크는 이더넷 기반의 차량 네트워크 및 CAN(controller area network) 기반의 차량 네트워크를 포함하며, 상기 타겟 통신 노드는 상기 이더넷 기반의 차량 네트워크에 속할 수 있다.Here, the vehicle network includes an Ethernet-based vehicle network and a controller area network (CAN)-based vehicle network, and the target communication node may belong to the Ethernet-based vehicle network.

본 발명의 제2 실시예에 따른 차량 네트워크의 게이트웨이는 컨트롤러 유닛 및 상기 컨트롤러 유닛에 연결되며, 포트(Port)들의 연결 상태를 관리하는 PHY(physical) 계층 유닛을 포함하며,The gateway of the vehicle network according to the second embodiment of the present invention includes a controller unit and a PHY (physical) layer unit connected to the controller unit and managing the connection state of ports,

상기 게이트웨이는 컨트롤러 유닛 및 상기 컨트롤러 유닛에 연결되며, 포트(Port)들의 연결 상태를 관리하는 PHY(physical) 계층 유닛들을 포함하며,The gateway includes a controller unit and PHY (physical) layer units connected to the controller unit and managing the connection state of ports,

상기 진단 방법은, 상기 PHY 계층 유닛이 제1 포트에 연결된 외부 진단기로부터 상기 차량 네트워크의 사용 요청 메시지를 수신하는 단계; 상기 컨트롤러 유닛이 상기 차량이 정지 상태인지 여부를 판단하는 단계; 상기 차량이 정지 상태인 경우, 상기 컨트롤러 유닛이, 상기 외부 진단기로부터 수신되는 메시지가 타겟 통신 노드로 미러링(mirroring)되도록 상기 PHY 계층 유닛의 포트 미러링을 설정하는 단계; 상기 PHY 계층 유닛이 상기 외부 진단기로부터 진단 요청 메시지를 수신하는 단계; 및 상기 PHY 계층 유닛이 상기 진단 요청 메시지를 미러링에 의해 상기 타겟 통신 노드로 전달하는 단계;를 포함할 수 있다.The diagnostic method may include: receiving, by the PHY layer unit, a use request message of the vehicle network from an external diagnostic device connected to a first port; determining, by the controller unit, whether the vehicle is in a stationary state; when the vehicle is stationary, setting, by the controller unit, port mirroring of the PHY layer unit such that a message received from the external diagnostic device is mirrored to a target communication node; receiving, by the PHY layer unit, a diagnostic request message from the external diagnostic device; and transmitting, by the PHY layer unit, the diagnosis request message to the target communication node by mirroring.

여기서, 상기 진단 요청 메시지를 수신하는 단계에서, 상기 PHY 계층 유닛은 서비스 시간에 대한 정보를 함께 수신할 수 있다.Here, in the step of receiving the diagnosis request message, the PHY layer unit may receive information about the service time together.

여기서, 상기 진단 방법은, 상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛이 상기 타겟 통신 노드와 연결된 포트를 비활성화하는 단계;를 포함할 수 있다.Here, the diagnosis method may include, when the service time is over, the PHY layer unit inactivating a port connected to the target communication node.

여기서, 상기 진단 방법은, 상기 PHY 계층 유닛이 상기 타겟 통신 노드로부터 진단 응답 메시지를 수신하는 단계; 및 상기 PHY 계층 유닛이 상기 진단 응답 메시지를 상기 외부 진단기로 전달하는 단계;를 포함할 수 있다.Here, the diagnostic method includes: receiving, by the PHY layer unit, a diagnostic response message from the target communication node; and transmitting, by the PHY layer unit, the diagnostic response message to the external diagnostic device.

여기서, 상기 차량이 정지 상태가 아닌 경우, 상기 진단 방법은, 상기 PHY 계층 유닛이 상기 외부 진단기로부터 상기 타겟 통신 노드를 지시하는 유니캐스트 주소(Unicast address)를 포함하는 진단 요청 메시지를 수신하는 단계; 상기 컨트롤러 유닛이 상기 타겟 통신 노드를 지시하는 유니캐스트 주소로부터 상기 진단 요청 메시지를 전달할 포트 ID를 결정하는 단계; 및 상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트 ID에 대응하는 포트를 통해 상기 진단 요청 메시지를 포워딩하는 단계;를 더 포함할 수 있다.Here, when the vehicle is not in a stationary state, the diagnosis method includes: receiving, by the PHY layer unit, a diagnosis request message including a unicast address indicating the target communication node from the external diagnosis device; determining, by the controller unit, a port ID to which the diagnosis request message is to be delivered from a unicast address indicating the target communication node; and forwarding the diagnosis request message through the port corresponding to the port ID by the PHY layer unit under the control of the controller unit.

여기서, 상기 진단 방법은, 상기 PHY 계층 유닛이 상기 타겟 통신 노드로부터 상기 외부 진단기를 지시하는 유니캐스트 주소를 포함하는 진단 응답 메시지를 수신하는 단계; 상기 컨트롤러 유닛이 상기 외부 진단기를 지시하는 유니캐스트 주소로부터 상기 진단 요청 메시지를 전달할 포트 ID를 결정하는 단계; 및 상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트 ID에 대응하는 포트를 통해 상기 진단 응답 메시지를 포워딩하는 단계;를 더 포함할 수 있다.Here, the diagnostic method includes: receiving, by the PHY layer unit, a diagnostic response message including a unicast address indicating the external diagnostic device from the target communication node; determining, by the controller unit, a port ID to which the diagnosis request message is to be transmitted from a unicast address indicating the external diagnosis device; and forwarding, by the PHY layer unit, the diagnostic response message through a port corresponding to the port ID under the control of the controller unit.

본 발명의 제3 실시예에 따른 차량 네트워크의 게이트웨이는, 컨트롤러 유닛; 및 상기 컨트롤러 유닛에 연결되며, 포트(Port)들의 연결 상태를 관리하는 PHY(physical) 계층 유닛;을 포함하며,A gateway of a vehicle network according to a third embodiment of the present invention includes: a controller unit; and a PHY (physical) layer unit connected to the controller unit and managing the connection state of ports.

상기 컨트롤러 유닛은 제1 포트에 연결된 외부 진단기로부터 진단 요청 메시지를 수신하고; 상기 진단 요청 메시지에 대해 보안 인증이 필요한 경우, 상기 외부 진단기로부터 보안 인증 요청 메시지를 수신하고; 상기 보안 인증 요청 메시지를 검증하며,the controller unit receives a diagnosis request message from an external diagnosis device connected to the first port; receiving a security authentication request message from the external diagnostic device when security authentication is required for the diagnosis request message; Verifies the security authentication request message,

상기 PHY 계층 유닛은, 상기 보안 인증 요청 메시지의 검증이 완료된 경우, 상기 컨트롤러 유닛의 제어에 의해, 상기 포트들 중에서 진단 대상인 타겟 통신 노드와 연결된 포트를 활성화할 수 있다.When the verification of the security authentication request message is completed, the PHY layer unit may activate a port connected to a target communication node to be diagnosed among the ports under the control of the controller unit.

여기서, 상기 진단 메시지에 대해 보안 인증이 필요하지 않은 경우, 상기 PHY 계층 유닛은 상기 컨트롤러 유닛에 진단 메시지를 전달하지 않고, 상기 타겟 통신 노드에 상기 진단 요청 메시지를 전달할 수 있다.Here, when security authentication is not required for the diagnosis message, the PHY layer unit may transmit the diagnosis request message to the target communication node without transmitting the diagnosis message to the controller unit.

여기서, 상기 진단 요청 메시지는, 진단 대상이 되는 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보를 포함하고,Here, the diagnosis request message includes information on the name or function of the target communication node to be diagnosed,

상기 컨트롤러 유닛은 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보로부터 상기 타겟 통신 노드의 이더넷 MAC 주소 및 이더넷 IP 주소 중 적어도 하나를 결정할 수 있다.The controller unit may determine at least one of an Ethernet MAC address and an Ethernet IP address of the target communication node from information on the name or function of the target communication node.

여기서, 상기 보안 인증 요청 메시지의 검증이 완료되면, 상기 컨트롤러 유닛은 상기 외부 진단기에 대한 보안 인증 정보를 상기 타겟 통신 노드에게 전송할 수 있다.Here, when verification of the security authentication request message is completed, the controller unit may transmit security authentication information for the external diagnostic device to the target communication node.

여기서, 상기 컨트롤러 유닛은, 상기 외부 진단기의 서비스 시간에 대한 정보를 수신하고, 상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛은 상기 컨트롤러 유닛의 제어에 의해 상기 타겟 통신 노드와 연결된 포트를 비활성화할 수 있다.Here, the controller unit may receive information on the service time of the external diagnostic device, and when the service time is over, the PHY layer unit may inactivate a port connected to the target communication node under the control of the controller unit. have.

본 발명에 의하면, 외부 진단기가 차량 네트워크에 대한 진단을 수행하는 동안, 게이트웨이가 포트들의 연결 상태를 관리함으로써, 외부 진단기와 타겟 통신 노드 사이의 메시지 교환이 이루어질 수 있다. 포트 미러링, 포워딩 방식 등에 의해 진단 과정에서 메시지가 타겟 통신 노드 또는 외부 진단기에게 선택적으로 전달될 수 있다. 그리고, 보안 범위 및 서비스 시간을 고려하여 게이트웨이가 포트들의 연결을 활성화 또는 비활성화 함으로써 진단 절차에서 보안을 강화할 수 있다.According to the present invention, while the external diagnostic device performs diagnosis on the vehicle network, the gateway manages the connection status of ports, so that message exchange between the external diagnostic device and the target communication node can be performed. A message may be selectively delivered to a target communication node or an external diagnostic device during a diagnosis process by port mirroring, a forwarding method, or the like. In addition, security can be strengthened in the diagnostic procedure by enabling or disabling the connection of ports by the gateway in consideration of the security range and service time.

도 1은 차량 네트워크의 토폴로지(network topology)의 제1 실시예를 도시한 블록도이다.
도 2는 차량 네트워크를 구성하는 통신 노드의 제1 실시예를 도시한 블록도이다.
도 3은 차량 네트워크를 구성하는 통신 노드의 제2 실시예를 도시한 블록도이다.
도 4는 차량 네트워크를 구성하는 통신 노드의 프로토콜 구조의 제1 실시예를 도시한 블록도이다.
도 5는 차량 네트워크에 포함된 게이트웨이를 나타낸 개념도이다.
도 6은 진단 요청 메시지가 외부 진단기로부터 타겟 통신 노드로 전달되는 과정의 제1 실시예를 나타낸 개념도이다.
도 7은 진단 요청 메시지가 외부 진단기(10)로부터 타겟 통신 노드로 전달되는 과정의 제2 실시예를 나타낸 개념도이다.
도 8은 차량 진단 방법의 제1 실시예를 나타낸 흐름도이다.
도 9는 차량 진단 방법의 제2 실시예를 나타낸 흐름도이다.
도 10은 차량 진단 방법의 제2 실시예를 나타낸 흐름도이다.
1 is a block diagram illustrating a first embodiment of a network topology of a vehicle network;
2 is a block diagram illustrating a first embodiment of a communication node constituting a vehicle network.
3 is a block diagram illustrating a second embodiment of a communication node constituting a vehicle network.
4 is a block diagram illustrating a first embodiment of a protocol structure of a communication node constituting a vehicle network.
5 is a conceptual diagram illustrating a gateway included in a vehicle network.
6 is a conceptual diagram illustrating a process in which a diagnosis request message is transmitted from an external diagnostic device to a target communication node according to a first embodiment.
7 is a conceptual diagram illustrating a second embodiment of a process in which a diagnosis request message is transmitted from the external diagnostic device 10 to a target communication node.
8 is a flowchart illustrating a first embodiment of a method for diagnosing a vehicle.
9 is a flowchart illustrating a second embodiment of a method for diagnosing a vehicle.
10 is a flowchart illustrating a second embodiment of a method for diagnosing a vehicle.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.Since the present invention can have various changes and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail. However, this is not intended to limit the present invention to specific embodiments, and it should be understood to include all modifications, equivalents and substitutes included in the spirit and scope of the present invention.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.Terms such as first, second, etc. may be used to describe various elements, but the elements should not be limited by the terms. The above terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component. and/or includes a combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.When a component is referred to as being “connected” or “connected” to another component, it is understood that the other component may be directly connected or connected to the other component, but other components may exist in between. it should be On the other hand, when it is said that a certain element is "directly connected" or "directly connected" to another element, it should be understood that no other element is present in the middle.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as “comprise” or “have” are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one or more other features It should be understood that this does not preclude the existence or addition of numbers, steps, operations, components, parts, or combinations thereof.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가진 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical and scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Terms such as those defined in a commonly used dictionary should be interpreted as having a meaning consistent with the meaning in the context of the related art, and should not be interpreted in an ideal or excessively formal meaning unless explicitly defined in the present application. does not

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. In describing the present invention, in order to facilitate the overall understanding, the same reference numerals are used for the same components in the drawings, and duplicate descriptions of the same components are omitted.

도 1은 차량 네트워크의 토폴로지(network topology)의 제1 실시예를 도시한 블록도이다.1 is a block diagram illustrating a first embodiment of a network topology of a vehicle network;

도 1을 참조하면, 차량 네트워크를 구성하는 통신 노드(communication node)는 게이트웨이(gateway), 스위치(switch)(또는, 브릿지(bridge)) 또는 엔드 노드(end node) 등을 의미할 수 있다. 게이트웨이(100)는 적어도 하나의 스위치(110, 110-1, 110-2, 120, 130)와 연결될 수 있으며, 서로 다른 네트워크를 연결할 수 있다. 예를 들어, 게이트웨이(100)는 CAN(controller area network)(또는, 플렉스레이(FlexRay), MOST(media oriented system transport), LIN(local interconnect network) 등) 프로토콜을 지원하는 통신 노드와 이더넷(ethernet) 프로토콜을 지원하는 스위치 간을 연결할 수 있다. 스위치들(110, 110-1, 110-2, 120, 130) 각각은 적어도 하나의 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)와 연결될 수 있다. 스위치들(110, 110-1, 110-2, 120, 130) 각각은 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)를 상호 연결할 수 있고, 자신과 연결된 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)를 제어할 수 있다.Referring to FIG. 1 , a communication node constituting a vehicle network may mean a gateway, a switch (or a bridge), an end node, or the like. The gateway 100 may be connected to at least one switch 110 , 110 - 1 , 110 - 2 , 120 , and 130 , and may connect different networks. For example, the gateway 100 is a communication node supporting a controller area network (CAN) (or FlexRay, media oriented system transport (MOST), local interconnect network (LIN), etc.) protocol and Ethernet (ethernet). ) can be connected between switches that support the protocol. Each of the switches 110 , 110 - 1 , 110 - 2 , 120 , and 130 may be connected to at least one end node 111 , 112 , 113 , 121 , 122 , 123 , 131 , 132 , and 133 . Each of the switches 110, 110-1, 110-2, 120, and 130 may interconnect the end nodes 111, 112, 113, 121, 122, 123, 131, 132, 133, and an end connected thereto The nodes 111 , 112 , 113 , 121 , 122 , 123 , 131 , 132 and 133 may be controlled.

엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)는 차량에 포함된 각종 장치를 제어하는 ECU(electronic control unit)를 의미할 수 있다. 예를 들어, 엔드 노드(111, 112, 113, 121, 122, 123, 131, 132, 133)는 인포테인먼트(infortainment) 장치(예를 들어, 디스플레이(display) 장치, 내비게이션(navigation) 장치, 어라운드 뷰 모니터링(around view monitoring) 장치) 등을 구성하는 ECU를 의미할 수 있다.The end nodes 111 , 112 , 113 , 121 , 122 , 123 , 131 , 132 , and 133 may refer to electronic control units (ECUs) that control various devices included in the vehicle. For example, the end nodes 111 , 112 , 113 , 121 , 122 , 123 , 131 , 132 , 133 may be an infotainment device (eg, a display device, a navigation device, an around view). It may mean an ECU constituting an around view monitoring device).

한편, 차량 네트워크를 구성하는 통신 노드들(즉, 게이트웨이, 스위치, 엔드 노드 등)은 스타(star) 토폴로지, 버스(bus) 토폴로지, 링(ring) 토폴로지, 트리(tree) 토폴로지, 메쉬(mesh) 토폴로지 등으로 연결될 수 있다. 또한, 차량 네트워크를 구성하는 통신 노드들 각각은 CAN 프로토콜, 플렉스레이 프로토콜, MOST 프로토콜, LIN 프로토콜, 이더넷 프로토콜 등을 지원할 수 있다. 본 발명에 따른 실시예들은 앞서 설명된 네트워크 토폴로지에 적용될 수 있으며, 본 발명에 따른 실시예들이 적용되는 네트워크 토폴로지는 이에 한정되지 않고 다양하게 구성될 수 있다.On the other hand, communication nodes (ie, gateways, switches, end nodes, etc.) constituting the vehicle network include a star topology, a bus topology, a ring topology, a tree topology, and a mesh. It can be connected by topology or the like. In addition, each of the communication nodes constituting the vehicle network may support a CAN protocol, a FlexRay protocol, a MOST protocol, a LIN protocol, an Ethernet protocol, and the like. Embodiments according to the present invention may be applied to the network topology described above, and the network topology to which embodiments according to the present invention are applied is not limited thereto and may be configured in various ways.

도 2는 차량 네트워크를 구성하는 통신 노드의 제1 실시예를 도시한 블록도이다.2 is a block diagram illustrating a first embodiment of a communication node constituting a vehicle network.

도 2를 참조하면, 네트워크를 구성하는 통신 노드(200)는 PHY 계층 유닛(physical layer unit)(210) 및 컨트롤러 유닛(controller) 유닛(220)을 포함할 수 있다. 컨트롤러 유닛(220)은 MAC(medium access control) 계층을 포함하여 구현될 수 있다. PHY 계층 유닛(210)은 다른 통신 노드로부터 신호를 수신할 수 있거나, 다른 통신 노드로 신호를 전송할 수 있다. 컨트롤러 유닛(220)은 PHY 계층 유닛(210)을 제어할 수 있고, 다양한 기능들(예를 들어, 인포테인먼트 기능 등)을 수행할 수 있다. PHY 계층 유닛(210)과 컨트롤러 유닛(220)은 하나의 SoC(System on Chip)로 구현될 수도 있고, 별도의 칩으로 구성될 수도 있다.Referring to FIG. 2 , the communication node 200 constituting the network may include a PHY layer unit 210 and a controller unit 220 . The controller unit 220 may be implemented by including a medium access control (MAC) layer. The PHY layer unit 210 may receive signals from, or transmit signals to, other communication nodes. The controller unit 220 may control the PHY layer unit 210 and may perform various functions (eg, an infotainment function, etc.). The PHY layer unit 210 and the controller unit 220 may be implemented as one SoC (System on Chip) or may be configured as separate chips.

PHY 계층 유닛(210)과 컨트롤러 유닛(220)은 매체 독립 인터페이스(media independent interface, MII)(230)를 통해 연결될 수 있다. MII(230)는 IEEE 802.3에 규정된 인터페이스를 의미할 수 있으며, PHY 계층 유닛(210)과 컨트롤러 유닛(220) 간의 데이터 인터페이스 및 관리 인터페이스로 구성될 수 있다. MII(230) 대신에 RMII(reduced MII), GMII(gigabit MII), RGMII(reduced GMII), SGMII(serial GMII), XGMII(10 GMII) 중 하나의 인터페이스가 사용될 수 있다. 데이터 인터페이스는 전송 채널(channel) 및 수신 채널을 포함할 수 있으며, 채널들 각각은 독립적인 클럭(clock), 데이터 및 제어 신호를 가질 수 있다. 관리 인터페이스는 2-신호 인터페이스로 구성될 수 있으며, 하나는 클럭을 위한 신호이고 다른 하나는 데이터를 위한 신호일 수 있다.The PHY layer unit 210 and the controller unit 220 may be connected through a media independent interface (MII) 230 . The MII 230 may mean an interface defined in IEEE 802.3, and may be composed of a data interface and a management interface between the PHY layer unit 210 and the controller unit 220 . Instead of the MII 230 , one of reduced MII (RMII), gigabit MII (GMII), reduced GMII (RGMII), serial GMII (SGMII), and XGMII (10 GMII) interfaces may be used instead of the MII 230 . The data interface may include a transmit channel and a receive channel, and each of the channels may have an independent clock, data, and control signal. The management interface may be configured as a two-signal interface, one signal for the clock and the other signal for data.

PHY 계층 유닛(210)은 PHY 계층 인터페이스 유닛(211), PHY 계층 프로세서(processor)(212) 및 PHY 계층 메모리(memory)(213) 등을 포함할 수 있다. PHY 계층 유닛(210)의 구성은 이에 한정되지 않으며, PHY 계층 유닛(210)은 다양하게 구성될 수 있다. PHY 계층 인터페이스 유닛(211)은 컨트롤러 유닛(220)으로부터 수신된 신호를 PHY 계층 프로세서(212)로 전송할 수 있고, PHY 계층 프로세서(212)로부터 수신된 신호를 컨트롤러 유닛(220)에 전송할 수 있다. PHY 계층 프로세서(212)는 PHY 계층 인터페이스 유닛(211) 및 PHY 계층 메모리(213) 각각의 동작을 제어할 수 있다. PHY 계층 프로세서(212)는 전송할 신호의 변조 또는 수신된 신호의 복조를 수행할 수 있다. PHY 계층 프로세서(212)는 신호를 입력 또는 출력하도록 PHY 계층 메모리(213)를 제어할 수 있다. PHY 계층 메모리(213)는 수신된 신호를 저장할 수 있고, PHY 계층 프로세서(212)의 요청에 따라 저장된 신호를 출력할 수 있다.The PHY layer unit 210 may include a PHY layer interface unit 211 , a PHY layer processor 212 , and a PHY layer memory 213 . The configuration of the PHY layer unit 210 is not limited thereto, and the PHY layer unit 210 may be configured in various ways. The PHY layer interface unit 211 may transmit a signal received from the controller unit 220 to the PHY layer processor 212 , and may transmit a signal received from the PHY layer processor 212 to the controller unit 220 . The PHY layer processor 212 may control the operation of each of the PHY layer interface unit 211 and the PHY layer memory 213 . The PHY layer processor 212 may perform modulation of a signal to be transmitted or demodulation of a received signal. The PHY layer processor 212 may control the PHY layer memory 213 to input or output a signal. The PHY layer memory 213 may store the received signal, and may output the stored signal according to the request of the PHY layer processor 212 .

컨트롤러 유닛(220)은 MII(230)를 통해 PHY 계층 유닛(210)에 대한 모니터링 및 제어를 수행할 수 있다. 컨트롤러 유닛(220)은 컨트롤러 인터페이스 유닛(221), 컨트롤러 프로세서(222), 주 메모리(223) 및 보조 메모리(224) 등을 포함할 수 있다. 컨트롤러 유닛(220)의 구성은 이에 한정되지 않으며, 컨트롤러 유닛(220)은 다양하게 구성될 수 있다. 컨트롤러 인터페이스 유닛(221)은 PHY 계층 유닛(210)(즉, PHY 계층 인터페이스 유닛(211)) 또는 상위 계층(미도시)으로부터 신호를 수신할 수 있고, 수신된 신호를 컨트롤러 프로세서(222)에 전송할 수 있고, 컨트롤러 프로세서(222)로부터 수신된 신호를 PHY 계층 유닛(210) 또는 상위 계층에 전송할 수 있다. 컨트롤러 프로세서(222)는 컨트롤러 인터페이스 유닛(221), 주 메모리(223) 및 보조 메모리(224)를 제어하기 위한 독립된 메모리 컨트롤 로직(control logic) 또는 통합 메모리 컨트롤 로직을 더 포함할 수 있다. 메모리 컨트롤 로직은 주 메모리(223) 및 보조 메모리(224)에 포함되어 구현될 수도 있으며, 또는 컨트롤러 프로세서(222)에 포함되어 구현될 수도 있다.The controller unit 220 may perform monitoring and control for the PHY layer unit 210 through the MII 230 . The controller unit 220 may include a controller interface unit 221 , a controller processor 222 , a main memory 223 , and an auxiliary memory 224 . The configuration of the controller unit 220 is not limited thereto, and the controller unit 220 may be configured in various ways. The controller interface unit 221 may receive a signal from the PHY layer unit 210 (ie, the PHY layer interface unit 211 ) or an upper layer (not shown), and transmit the received signal to the controller processor 222 . and may transmit a signal received from the controller processor 222 to the PHY layer unit 210 or an upper layer. The controller processor 222 may further include independent memory control logic or integrated memory control logic for controlling the controller interface unit 221 , the main memory 223 and the auxiliary memory 224 . The memory control logic may be implemented by being included in the main memory 223 and the auxiliary memory 224 , or may be implemented by being included in the controller processor 222 .

주 메모리(223) 및 보조 메모리(224) 각각은 컨트롤러 프로세서(222)에 의해 처리된 신호를 저장할 수 있고, 컨트롤러 프로세서(222)의 요청에 따라 저장된 신호를 출력할 수 있다. 주 메모리(223)는 컨트롤러 프로세서(222)의 동작을 위해 필요한 데이터를 일시 저장하는 휘발성 메모리(예를 들어, RAM(random access memory) 등)를 의미할 수 있다. 보조 메모리(224)는 운영체제 코드(operating system code)(예를 들어, 커널(kernel) 및 디바이스 드라이버(device driver))와 컨트롤러 유닛(220)의 기능을 수행하기 위한 응용 프로그램(application program) 코드 등이 저장되는 비휘발성 메모리를 의미할 수 있다. 비휘발성 메모리로 빠른 처리 속도를 가지는 플래쉬 메모리(flash memory)가 사용될 수 있고, 또는 대용량의 데이터 저장을 위한 하드 디스크 드라이브(hard disc drive, HDD), CD-ROM(compact disc-read only memory) 등이 사용될 수 있다. 컨트롤러 프로세서(222)는 통상적으로 적어도 하나의 프로세싱 코어(core)를 포함하는 로직 회로로 구성될 수 있다. 컨트롤러 프로세서(222)로 ARM(Advanced RISC Machines Ltd.) 계열의 코어, 아톰(atom) 계열의 코어 등이 사용될 수 있다.Each of the main memory 223 and the auxiliary memory 224 may store a signal processed by the controller processor 222 , and may output the stored signal according to a request of the controller processor 222 . The main memory 223 may refer to a volatile memory (eg, random access memory (RAM)) that temporarily stores data required for the operation of the controller processor 222 . The auxiliary memory 224 includes operating system code (eg, a kernel and a device driver) and an application program code for performing a function of the controller unit 220 , etc. This may mean a non-volatile memory in which it is stored. A flash memory having a fast processing speed may be used as the non-volatile memory, or a hard disk drive (HDD), compact disc-read only memory (CD-ROM), etc. for storing a large amount of data this can be used The controller processor 222 may typically be configured as a logic circuit including at least one processing core. As the controller processor 222 , an ARM (Advanced RISC Machines Ltd.)-based core, an atom-based core, or the like may be used.

한편, PHY 계층 유닛(210)(즉, PHY 계층 프로세서(212))은 슬립 모드(sleep mode), 노멀(normal) 모드(예를 들어, 액티브(active) 모드) 등으로 동작할 수 있다. PHY 계층 유닛(210)은 컨트롤러 프로세서(222)의 제어에 기초하여 슬립 모드에서 노멀 모드로 천이(transition)할 수 있고, 노멀 모드에서 슬립 모드로 천이할 수 있다. 컨트롤러 유닛(220)(예를 들어, 컨트롤러 프로세서(222))은 전력 오프(power off) 모드, 슬립 모드, 노멀 모드 등으로 동작할 수 있다. 컨트롤러 유닛(220)은 전력 오프 모드에서 슬립 모드 또는 노멀 모드로 천이할 수 있고, 슬립 모드에서 전력 오프 모드 또는 노멀 모드로 천이할 수 있고, 노멀 모드에서 전력 오프 모드 또는 슬립 모드로 천이할 수 있다.Meanwhile, the PHY layer unit 210 (ie, the PHY layer processor 212 ) may operate in a sleep mode, a normal mode (eg, an active mode), and the like. The PHY layer unit 210 may transition from the sleep mode to the normal mode based on the control of the controller processor 222 , and may transition from the normal mode to the sleep mode. The controller unit 220 (eg, the controller processor 222 ) may operate in a power off mode, a sleep mode, a normal mode, and the like. The controller unit 220 may transition from a power off mode to a sleep mode or a normal mode, may transition from a sleep mode to a power off mode or a normal mode, and may transition from a normal mode to a power off mode or a sleep mode. .

여기서, 전력 오프 모드는 해당 개체(예를 들어, 컨트롤러 유닛(220) 등)에 전력이 공급되지 않는 상태를 의미할 수 있다. 슬립 모드는 해당 개체(예를 들어, PHY 계층 유닛(210), 컨트롤러 유닛(220) 등)에 기본적인 동작을 위한 최소한의 전력이 공급되는 상태(즉, 전력 절감(power saving) 상태)를 의미할 수 있다. 노멀 모드는 해당 개체(예를 들어, PHY 계층 유닛(210), 컨트롤러 유닛(220) 등)에 전력이 정상적으로 공급되는 상태(예를 들어, 웨이크업(wake-up) 상태)를 의미할 수 있다.Here, the power off mode may mean a state in which power is not supplied to a corresponding entity (eg, the controller unit 220 ). The sleep mode may mean a state in which the minimum power for basic operation is supplied to the corresponding entity (eg, the PHY layer unit 210, the controller unit 220, etc.) (ie, a power saving state). can The normal mode may mean a state (eg, wake-up state) in which power is normally supplied to a corresponding entity (eg, PHY layer unit 210, controller unit 220, etc.). .

도 3은 차량 네트워크를 구성하는 통신 노드의 제2 실시예를 도시한 블록도이다.3 is a block diagram illustrating a second embodiment of a communication node constituting a vehicle network.

도 3을 참조하면, 통신 노드(200)는 컨트롤러 유닛(220)을 포함할 수 있고, 파워를 공급하는 레귤레이터(미도시)를 더 포함할 수 있다. 컨트롤러 유닛(220)은 통신 노드(200)의 외부에 위치한 PHY 계층 유닛(210)과 연결될 수 있고, PHY 계층 유닛(210)을 제어할 수 있다. 도 3에 도시된 PHY 계층 유닛(210)과 컨트롤러 유닛(220) 각각의 기능은 도 2에 도시된 PHY 계층 유닛(210)과 컨트롤러 유닛(220)의 기능과 동일 또는 유사할 수 있다.Referring to FIG. 3 , the communication node 200 may include a controller unit 220 and may further include a regulator (not shown) for supplying power. The controller unit 220 may be connected to the PHY layer unit 210 located outside the communication node 200 , and may control the PHY layer unit 210 . Each of the functions of the PHY layer unit 210 and the controller unit 220 shown in FIG. 3 may be the same as or similar to the functions of the PHY layer unit 210 and the controller unit 220 shown in FIG. 2 .

PHY 계층 유닛(210)은 매체 독립 인터페이스(230)를 통해 컨트롤러 유닛(220)과 연결될 수 있다. MII(230)는 IEEE 802.3에 규정된 인터페이스를 의미할 수 있으며, PHY 계층 유닛(210)과 컨트롤러 유닛(220) 간의 데이터 인터페이스 및 관리 인터페이스로 구성될 수 있다. MII(230) 대신에 RMII, GMII, RGMII, SGMII, XGMII 중 하나의 인터페이스가 사용될 수 있다. 데이터 인터페이스는 전송 채널 및 수신 채널을 포함할 수 있으며, 채널들 각각은 독립적인 클럭, 데이터 및 신호를 가질 수 있다. 관리 인터페이스는 2-신호 인터페이스로 구성될 수 있으며, 하나는 클럭을 위한 신호이고 다른 하나는 데이터를 위한 신호일 수 있다.The PHY layer unit 210 may be connected to the controller unit 220 through a media independent interface 230 . The MII 230 may mean an interface defined in IEEE 802.3, and may be composed of a data interface and a management interface between the PHY layer unit 210 and the controller unit 220 . Instead of the MII 230 , one interface among RMII, GMII, RGMII, SGMII, and XGMII may be used. The data interface may include a transmit channel and a receive channel, and each of the channels may have an independent clock, data, and signal. The management interface may be configured as a two-signal interface, one signal for the clock and the other signal for data.

한편, 도 1 내지 도 3에 도시된 통신 노드의 프로토콜 구조는 다음과 같을 수 있다.Meanwhile, the protocol structure of the communication node shown in FIGS. 1 to 3 may be as follows.

도 4는 차량 네트워크를 구성하는 통신 노드의 프로토콜 구조의 제1 실시예를 도시한 블록도이다.4 is a block diagram illustrating a first embodiment of a protocol structure of a communication node constituting a vehicle network.

도 4를 참조하면, 통신 노드는 계층1 내지 계층7을 포함할 수 있다. 통신 노드의 계층1은 PHY 기능을 지원할 수 있고, 100Mbps(megabit per second)의 전송 속도를 지원할 수 있다. 통신 노드의 계층2는 IEEE 802.1Q 프로토콜, IEEE 802.1p 프로토콜, IEEE 802.3 프로토콜, AVB(audio video bridging) 프로토콜(예를 들어, IEEE 802.1Qav 프로토콜, IEEE 802.1Qat 프로토콜) 등을 지원할 수 있다. 통신 노드의 계층3은 IPv4(internet protocol version 4), ARP(address resolution protocol), ICMPv4(internet control message protocol version 4), IEEE 802.1AS, IEEE 1722 등을 지원할 수 있다. 통신 노드의 계층4는 TCP(transfer control protocol), UDP(user datagram protocol), IEEE 802.1AS, IEEE 1722 등을 지원할 수 있다. 통신 노드의 계층5 내지 계층7은 DoIP(diagnostics over internet protocol), EthCC 프로토콜, DHCP(dynamic host configuration protocol), SD 프로토콜, NM(network management) 프로토콜, IEEE 802.1AS, IEEE 1722 등을 지원할 수 있다.Referring to FIG. 4 , the communication node may include layers 1 to 7 . Layer 1 of the communication node may support the PHY function and may support a transmission rate of 100 Mbps (megabit per second). Layer 2 of the communication node may support IEEE 802.1Q protocol, IEEE 802.1p protocol, IEEE 802.3 protocol, audio video bridging (AVB) protocol (eg, IEEE 802.1Qav protocol, IEEE 802.1Qat protocol), and the like. Layer 3 of the communication node may support internet protocol version 4 (IPv4), address resolution protocol (ARP), internet control message protocol version 4 (ICMPv4), IEEE 802.1AS, IEEE 1722, and the like. Layer 4 of the communication node may support transfer control protocol (TCP), user datagram protocol (UDP), IEEE 802.1AS, IEEE 1722, and the like. Layers 5 to 7 of the communication node may support diagnostics over internet protocol (DoIP), EthCC protocol, dynamic host configuration protocol (DHCP), SD protocol, network management (NM) protocol, IEEE 802.1AS, IEEE 1722, and the like.

앞서 설명된 통신 노드는 슬립 모드(sleep mode) 또는 노멀(normal) 모드로 동작할 수 있다. 슬립 모드에서 통신 노드의 PHY 계층 유닛은 인에이블 상태(enabled state)일 수 있고, 통신 노드의 컨트롤러 유닛은 디스에이블 상태(disabled state)일 수 있다. 또는, 슬립 모드에서 통신 노드의 PHY 계층 유닛 및 컨트롤러 유닛은 디스에이블 상태일 수 있다. 노멀 모드에서 통신 노드의 PHY 계층 유닛 및 컨트롤러 유닛은 인에이블 상태일 수 있다. 즉, 노멀 모드는 통신 노드가 웨이크업(wake-up) 된 상태를 지시할 수 있다. 웨이크업 신호가 수신된 경우 또는 특정 이벤트(event)가 감지된 경우, 통신 노드의 동작 모드는 슬립 모드에서 노멀 모드로 천이될 수 있다. 이 경우, 통신 노드의 시스템 부팅 절차(system booting procedure)가 수행될 수 있다. 통신 노드의 시스템 부팅 절차는 다음과 같이 수행될 수 있다.The communication node described above may operate in a sleep mode or a normal mode. In the sleep mode, the PHY layer unit of the communication node may be in an enabled state, and the controller unit of the communication node may be in a disabled state. Alternatively, in the sleep mode, the PHY layer unit and the controller unit of the communication node may be in a disabled state. In the normal mode, the PHY layer unit and the controller unit of the communication node may be in an enabled state. That is, the normal mode may indicate a state in which the communication node is woken up. When a wakeup signal is received or a specific event is detected, the operation mode of the communication node may transition from the sleep mode to the normal mode. In this case, a system booting procedure of the communication node may be performed. The system booting procedure of the communication node may be performed as follows.

도 5는 차량 네트워크에 포함된 게이트웨이(500)를 나타낸 개념도이다.5 is a conceptual diagram illustrating a gateway 500 included in a vehicle network.

도 5를 참조하면, 게이트웨이(500)는 컨트롤러 유닛(510) 및 PHY 계층 유닛(520)을 포함할 수 있다. 컨트롤러 유닛(510)은 적어도 하나의 프로세싱 코어(processing core)를 포함하는 로직 회로로 구성될 수 있다. Referring to FIG. 5 , the gateway 500 may include a controller unit 510 and a PHY layer unit 520 . The controller unit 510 may be configured as a logic circuit including at least one processing core.

게이트웨이(500)는 CAN 기반의 차량 네트워크와 연결되어 있을 수 있다. 게이트웨이(500)는 복수 개의 CAN 통신 채널(530)을 포함할 수 있다. CAN 통신 채널(530)은 컨트롤러 유닛(510)과 연결되어 있을 수 있다. 게이트웨이(500)는 CAN 통신 채널(530)을 통해 CAN 기반 차량 네트워크에 속한 통신 노드와 신호를 주고 받을 수 있다.The gateway 500 may be connected to a CAN-based vehicle network. The gateway 500 may include a plurality of CAN communication channels 530 . The CAN communication channel 530 may be connected to the controller unit 510 . The gateway 500 may send and receive signals to and from a communication node belonging to the CAN-based vehicle network through the CAN communication channel 530 .

게이트웨이(500)는 복수 개의 포트들(P1, P2, P3, P4, P5)을 포함할 수 있다. 제1 포트(P1)는 외부 진단기(10)와 연결되어 있을 수 있다. 제2 내지 제5 포트(P2, P3, P4, P5)는 이더넷 기반 차량 네트워크에 속한 통신 노드들과 연결되어 있을 수 있다. 게이트웨이(500)는 제1 포트(P1)를 통해, 외부 진단기(10)가 전송하는 메시지를 수신할 수 있다. PHY 계층 유닛(520)은 포트들(P1, P2, P3, P4, P5)의 연결 상태를 관리할 수 있다. PHY 계층 유닛(520)은 포트들(P1, P2, P3, P4, P5)의 연결을 활성화 또는 비활성화 시킬 수 있다. 비활성화 된 포트를 통해서는 신호가 전달되지 않을 수 있다.The gateway 500 may include a plurality of ports P1, P2, P3, P4, and P5. The first port P1 may be connected to the external diagnostic device 10 . The second to fifth ports P2, P3, P4, and P5 may be connected to communication nodes belonging to an Ethernet-based vehicle network. The gateway 500 may receive a message transmitted from the external diagnostic device 10 through the first port P1 . The PHY layer unit 520 may manage the connection state of the ports P1, P2, P3, P4, and P5. The PHY layer unit 520 may activate or deactivate the connection of the ports P1, P2, P3, P4, and P5. Signals may not be transmitted through a disabled port.

게이트웨이(500)는 외부 진단기(10)와 차량 네트워크에 속한 통신 노드 사이의 통신을 중계할 수 있다. 외부 진단기(10)는 게이트웨이(500)를 통해 차량 네트워크에 속한 통신 노드에 대한 진단 절차를 수행할 수 있다. 진단 절차는 4가지 세션(session)으로 구분될 수 있다. 예를 들어, 진단 절차는 기본 세션(Default session), 확장 세션(Extended session), 보안 세션(Security session) 및 전용 세션(Dedicated session) 중 어느 하나에 따라 진행될 수 있다. 기본 세션에서 진단 절차 중 일부는 보안이 필요하지 않을 수 있다. 기본 절차에서 정보 교환의 허용 범위는 법규 등에 의해 결정될 수 있다.The gateway 500 may relay communication between the external diagnostic device 10 and a communication node belonging to the vehicle network. The external diagnostic device 10 may perform a diagnostic procedure on a communication node belonging to the vehicle network through the gateway 500 . The diagnostic procedure may be divided into four sessions. For example, the diagnostic procedure may be performed according to any one of a default session, an extended session, a security session, and a dedicated session. Some of the diagnostic procedures in the main session may not require security. The permitted range of information exchange in the basic procedure may be determined by laws and regulations.

외부 진단기(10)가 차량내 전장품을 진단하고자 하는 경우, 외부 진단기(10)는 게이트웨이(500)에게 진단 요청 메시지를 전송할 수 있다. PHY 계층 유닛(520)은 제1 포트(P1)를 통해 진단 요청 메시지를 수신할 수 있다. 진단 요청 메시지의 전달 과정은 진단 요청 메시지가 요구하는 진단 범위에 따라 달라질 수 있다.When the external diagnostic device 10 intends to diagnose an in-vehicle electronic device, the external diagnostic device 10 may transmit a diagnosis request message to the gateway 500 . The PHY layer unit 520 may receive the diagnosis request message through the first port P1. The delivery process of the diagnosis request message may vary depending on the diagnosis range required by the diagnosis request message.

도 6은 진단 요청 메시지가 외부 진단기(10)로부터 타겟 통신 노드(600)로 전달되는 과정의 제1 실시예를 나타낸 개념도이다.6 is a conceptual diagram illustrating a process in which a diagnosis request message is transmitted from the external diagnostic device 10 to the target communication node 600 according to the first embodiment.

도 6을 참조하면, 진단 요청 메시지에 대해 보안 검증이 필요하지 않은 경우, 진단 요청 메시지는 게이트웨이(500)의 컨트롤러 유닛(510)을 거치지 않고 곧바로 타겟 통신 노드(600)에 전달될 수 있다. 예를 들어, 외부 진단기(10)가 보안이 필요하지 않은 범위 내에서 진단을 요구하는 진단 요청 메시지를 전송한 경우, 진단 요청 메시지는 컨트롤러 유닛(510)에 전달되지 않을 수 있다. PHY 계층 유닛(520)은 진단 요청 메시지의 프리앰블(preamble)에 포함된 정보 등으로부터 진단 요청 메시지에 보안이 필요한지 여부를 판단할 수 있다. Referring to FIG. 6 , when security verification is not required for the diagnosis request message, the diagnosis request message may be directly transmitted to the target communication node 600 without going through the controller unit 510 of the gateway 500 . For example, when the external diagnostic device 10 transmits a diagnosis request message requesting diagnosis within a range that does not require security, the diagnosis request message may not be transmitted to the controller unit 510 . The PHY layer unit 520 may determine whether security is required for the diagnosis request message from information included in a preamble of the diagnosis request message.

타겟 통신 노드(600)는 진단 대상이 되는 통신 노드일 수 있다. 타겟 통신 노드(600)는 이더넷 기반의 차량 네트워크(30)에 속해 있을 수 있다. 타겟 통신 노드(600)는 자동차전자제어장치(Electric Control Unit; ECU) 또는 차량 네트워크의 엔드 노드일 수 있다. 타겟 통신 노드(600)는 컨트롤러 계층 유닛(610) 및 PHY 계층 유닛(620)을 포함할 수 있다. 하지만, 경우에 따라서 타겟 통신 노드(600)는 컨트롤러 유닛(610)을 포함하지 않을 수도 있다. 타겟 통신 노드(600)는 제6 포트(P6)를 통해 게이트웨이(500)와 통신할 수 있다. 타겟 통신 노드(600)의 PHY 계층 유닛(620)은 타겟 통신 노드(600)에 포함된 포트들의 연결 상태를 관리할 수 있다. 예를 들어, PHY 계층 유닛(620)이 제6 포트(P6)를 비활성화 하는 경우, 게이트웨이(500)와 타겟 통신 노드(600) 사이의 통신이 제한될 수 있다.The target communication node 600 may be a communication node to be diagnosed. The target communication node 600 may belong to the Ethernet-based vehicle network 30 . The target communication node 600 may be an electric control unit (ECU) or an end node of a vehicle network. The target communication node 600 may include a controller layer unit 610 and a PHY layer unit 620 . However, in some cases, the target communication node 600 may not include the controller unit 610 . The target communication node 600 may communicate with the gateway 500 through the sixth port P6 . The PHY layer unit 620 of the target communication node 600 may manage connection states of ports included in the target communication node 600 . For example, when the PHY layer unit 620 deactivates the sixth port P6 , communication between the gateway 500 and the target communication node 600 may be restricted.

진단 요청 메시지에 보안이 요구되지 않는 경우, PHY 계층 유닛(520)은 컨트롤러 유닛(510)에게 진단 요청 메시지를 전달하지 않을 수 있다. PHY 계층 유닛(520)은 타겟 통신 노드(600)와 연결된 제2 포트(P2)를 통해 진단 요청 메시지를 타겟 통신 노드(600)에 전달할 수 있다. 진단의 대상이 되는 타겟 통신 노드가 복수 개일 경우, PHY 계층 유닛(620)은 복수 개의 포트들을 통해 진단 요청 메시지를 전송할 수 있다. 다른 예로, PHY 계층 유닛(620)은 타겟 통신 노드(600)가 연결된 제2 포트(P2) 뿐만 아니라, 모든 포트들(P2, P3, P4, P5)을 통해서 진단 요청 메시지를 전달할 수도 있다. If security is not required for the diagnosis request message, the PHY layer unit 520 may not deliver the diagnosis request message to the controller unit 510 . The PHY layer unit 520 may transmit the diagnosis request message to the target communication node 600 through the second port P2 connected to the target communication node 600 . When there are a plurality of target communication nodes to be diagnosed, the PHY layer unit 620 may transmit a diagnostic request message through a plurality of ports. As another example, the PHY layer unit 620 may transmit a diagnosis request message through all ports P2, P3, P4, and P5 as well as the second port P2 to which the target communication node 600 is connected.

도 6을 참조하여 설명한 실시예는 차량의 진단이 기본 세션에 따라 진행되는 경우, 적용될 수 있다. 하지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 도 6에서 나타낸 실시예는 확장 세션, 보안 세션 및 전용 세션 등에도 적용될 수 있다.The embodiment described with reference to FIG. 6 may be applied when the diagnosis of the vehicle is performed according to the basic session. However, the embodiment is not limited thereto. For example, the embodiment shown in FIG. 6 may be applied to an extended session, a secure session, a dedicated session, and the like.

도 7은 진단 요청 메시지가 외부 진단기(10)로부터 타겟 통신 노드(600)로 전달되는 과정의 제2 실시예를 나타낸 개념도이다.7 is a conceptual diagram illustrating a second embodiment of a process in which a diagnosis request message is transmitted from the external diagnostic device 10 to the target communication node 600 .

도 7을 참조하면, 진단 요청 메시지에 대해 보안 검증이 필요한 경우, PHY 계층 유닛(520)은 진단 요청 메시지를 컨트롤러 유닛(510)에 전달할 수 있다. 컨트롤러 유닛(510)은 보안 검증 절차를 진행할 수 있다. 컨트롤러 유닛(510)은 외부 진단기(10)로부터 보안 인증 요청 메시지를 수신하고, 보안 인증 요청 메시지를 검증할 수 있다.Referring to FIG. 7 , when security verification is required for the diagnosis request message, the PHY layer unit 520 may transmit the diagnosis request message to the controller unit 510 . The controller unit 510 may perform a security verification procedure. The controller unit 510 may receive the security authentication request message from the external diagnostic device 10 and verify the security authentication request message.

도 8은 차량 진단 방법의 제1 실시예를 나타낸 흐름도이다.8 is a flowchart illustrating a first embodiment of a method for diagnosing a vehicle.

도 8에서 나타낸 차량 진단 방법은, 기본 세션에 적용될 수 있다. 하지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 도 8에서 나타낸 차량 진단 방법은 확장 세션, 보안 세션, 전용 세션에 대해서도 적용될 수 있다.The vehicle diagnosis method illustrated in FIG. 8 may be applied to a basic session. However, the embodiment is not limited thereto. For example, the vehicle diagnosis method shown in FIG. 8 may be applied to an extended session, a secure session, and a dedicated session.

도 8을 참조하면, S810 단계에서, 외부 진단기(10)는 제1 포트(P1)를 통해 진단 요청 메시지를 전송할 수 있다. PHY 계층 유닛(520)은 진단 요청 메시지를 수신할 수 있다. 진단 요청 메시지에 대해 보안 검증이 필요한 경우, PHY 계층 유닛(520)은 진단 요청 메시지를 곧바로 타겟 통신 노드(600)로 전달하지 않을 수 있다. PHY 계층 유닛(520)은 진단 요청 메시지를 컨트롤러 유닛(510)에게 전달할 수 있다.Referring to FIG. 8 , in step S810 , the external diagnostic device 10 may transmit a diagnostic request message through the first port P1 . The PHY layer unit 520 may receive the diagnostic request message. When security verification is required for the diagnosis request message, the PHY layer unit 520 may not directly transmit the diagnosis request message to the target communication node 600 . The PHY layer unit 520 may transmit a diagnosis request message to the controller unit 510 .

S812 단계에서, 컨트롤러 유닛(510)은 진단 요청 메시지로부터 진단의 대상이 되는 타겟 통신 노드의 이더넷 MAC 주소 또는 이더넷 IP 주소를 결정할 수 있다. 외부 진단기(10)는 타겟 통신 노드(600)의 이름이나 타겟 통신 노드(600)가 수행하는 기능에 대한 정보를 진단 요청 메시지에 포함시킬 수 있다. 컨트롤러 유닛(510)은 차량내 통신 노드의 이름 또는 기능에 매칭되는 통신 노드의 이더넷 MAC 주소 또는 이더넷 IP 주소를 미리 알고 있을 수 있다. 컨트롤러 유닛(510)은 진단 요청 메시지에 포함된 타겟 통신 노드(600)의 이름 또는 기능으로부터, 미리 저장된 매칭 정보를 이용하여 타겟 통신 노드(600)의 이더넷 MAC 주소 또는 이더넷 IP 주소를 결정할 수 있다. In step S812 , the controller unit 510 may determine the Ethernet MAC address or Ethernet IP address of the target communication node to be diagnosed from the diagnosis request message. The external diagnostic device 10 may include the name of the target communication node 600 or information on a function performed by the target communication node 600 in the diagnosis request message. The controller unit 510 may know in advance the Ethernet MAC address or Ethernet IP address of the communication node matching the name or function of the communication node in the vehicle. The controller unit 510 may determine the Ethernet MAC address or Ethernet IP address of the target communication node 600 by using pre-stored matching information from the name or function of the target communication node 600 included in the diagnosis request message.

S820 단계에서, 외부 진단기(10)는 보안 인증 요청 메시지를 전송할 수 있다. 외부 진단기(10)는 보안 인증 요청 메시지와 서비스 시간에 대한 정보를 함께 전송할 수 있다. 서비스 시간은 진단 서비스가 이루어지는 시간에 대한 정보일 수 있다. 컨트롤러 유닛(510)은 PHY 계층 유닛(520)을 통해 보안 인증 요청 메시지 및 서비스 시간 정보를 수신할 수 있다. In step S820 , the external diagnostic device 10 may transmit a security authentication request message. The external diagnostic device 10 may transmit the security authentication request message and service time information together. The service time may be information about a time at which a diagnosis service is performed. The controller unit 510 may receive the security authentication request message and service time information through the PHY layer unit 520 .

S822 단계에서, 컨트롤러 유닛(510)은 보안 인증 요청 메시지의 검증을 수행할 수 있다. 컨트롤러 유닛(510)은 보안 인증 요청 메시지를 검증함으로써, 외부 진단기(10)가 수행하는 진단이 허용된 보안 범위 내인지 여부를 판단할 수 있다. 보안 인증 요청 메시지의 검증이 실패한 경우, 컨트롤러 유닛(510)은 진단 절차를 종료하고, 외부 진단기(10)와 차량내 통신 노드 사이의 통신을 허용하지 않을 수 있다. In step S822, the controller unit 510 may perform verification of the security authentication request message. The controller unit 510 may determine whether the diagnosis performed by the external diagnostic device 10 is within a permitted security range by verifying the security authentication request message. When the verification of the security authentication request message fails, the controller unit 510 may end the diagnosis procedure and may not allow communication between the external diagnosis device 10 and the in-vehicle communication node.

S824 단계에서, 보안 인증 요청 메시지의 검증이 완료된 경우, PHY 계층 유닛(520)은 외부 진단기(10)에 대한 보안 인증 정보를 타겟 통신 노드(600)에게 전송할 수 있다. 컨트롤러 유닛(510)은 S812 단계에서 결정한 타겟 통신 노드(600)의 이더넷 MAC 주소 또는 이더넷 IP 주소로부터 어느 포트가 타겟 통신 노드(600)와 연결되었는지를 결정할 수 있다. 컨트롤러 유닛(510)은 PHY 계층 유닛(520)에게 타겟 통신 노드(600)와 연결된 포트 정보를 알려줄 수 있다. PHY 계층 유닛(520)은 제2 포트(P2)를 통해 보안 인증 정보를 타겟 통신 노드(600)에게 전송할 수 있다.In step S824 , when verification of the security authentication request message is completed, the PHY layer unit 520 may transmit security authentication information for the external diagnostic device 10 to the target communication node 600 . The controller unit 510 may determine which port is connected to the target communication node 600 from the Ethernet MAC address or Ethernet IP address of the target communication node 600 determined in step S812 . The controller unit 510 may inform the PHY layer unit 520 of port information connected to the target communication node 600 . The PHY layer unit 520 may transmit the security authentication information to the target communication node 600 through the second port P2 .

S830 단계에서, 보안 인증 요청 메시지의 검증이 완료된 경우, 컨트롤러 유닛(510)은 PHY 계층 유닛(520)에게 제어 명령을 전송할 수 있다. PHY 계층 유닛(520)은 컨트롤러 유닛(510)의 제어에 의해, 타겟 통신 노드(600)와 연결된 제2 포트(P2)를 활성화할 수 있다. In step S830 , when verification of the security authentication request message is completed, the controller unit 510 may transmit a control command to the PHY layer unit 520 . The PHY layer unit 520 may activate the second port P2 connected to the target communication node 600 under the control of the controller unit 510 .

S832 단계에서, 타겟 통신 노드(600)는 게이트웨이(500)로부터 보안 인증 정보를 수신할 수 있다. 타겟 통신 노드(600)의 컨트롤러 유닛(610)은 PHY 계층 유닛(620)에게 제어 명령을 전송할 수 있다. PHY 계층 유닛(620)은 컨트롤러 유닛(610)의 제어에 의해, 게이트웨이(500)와 연결된 제6 포트(P6)를 활성화할 수 있다. 제2 포트(P2) 및 제6 포트(P6)가 활성화 됨으로써, 외부 진단기(10)와 타겟 통신 노드(600) 사이의 통신이 허용될 수 있다. In step S832 , the target communication node 600 may receive security authentication information from the gateway 500 . The controller unit 610 of the target communication node 600 may transmit a control command to the PHY layer unit 620 . The PHY layer unit 620 may activate the sixth port P6 connected to the gateway 500 under the control of the controller unit 610 . As the second port P2 and the sixth port P6 are activated, communication between the external diagnostic device 10 and the target communication node 600 may be allowed.

S840 단계에서, 타겟 통신 노드(600)는 진단 기능을 수행할 수 있다. 타겟 통신 노드(600)는 외부 진단기(10)가 요청하는 진단 정보를 추출할 수 있다. 타겟 통신 노드(600)는 진단 정보에 기초하여, 진단 응답 메시지를 생성할 수 있다. In step S840 , the target communication node 600 may perform a diagnostic function. The target communication node 600 may extract diagnostic information requested by the external diagnostic device 10 . The target communication node 600 may generate a diagnosis response message based on the diagnosis information.

S850 단계에서, 타겟 통신 노드(600)는 진단 응답 메시지를 전송할 수 있다. 게이트웨이(500)는 제2 포트(P2)를 통해 진단 응답 메시지를 수신할 수 있다. 컨트롤러 유닛(510)은 제2 포트(P2)를 통해 수신한 진단 응답 메시지가 제1 포트(P1)를 통해 포워딩 되도록 PHY 계층 유닛(510)을 설정할 수 있다. 포트 포워딩이 설정되면, 진단 응답 메시지는 컨트롤러 계층 유닛(510)을 거치지 않고, 외부 진단기(10)로 전달될 수 있다.In step S850, the target communication node 600 may transmit a diagnosis response message. The gateway 500 may receive a diagnostic response message through the second port P2 . The controller unit 510 may configure the PHY layer unit 510 so that the diagnostic response message received through the second port P2 is forwarded through the first port P1 . When port forwarding is set, the diagnostic response message may be transmitted to the external diagnostic device 10 without going through the controller layer unit 510 .

S860 단계에서, PHY 계층 유닛(520)은 컨트롤러 유닛(510)의 제어에 의해 포트 포워딩(Port forwarding) 방식으로 진단 응답 메시지를 외부 진단기(10)에게 전달할 수 있다. PHY 계층 유닛(520)은 외부 진단기(10)가 연결된 제1 포트(P1)를 통해 진단 응답 메시지를 포워딩 할 수 있다. In step S860 , the PHY layer unit 520 may transmit a diagnostic response message to the external diagnostic device 10 in a port forwarding manner under the control of the controller unit 510 . The PHY layer unit 520 may forward the diagnostic response message through the first port P1 to which the external diagnostic device 10 is connected.

S870 단계에서, 서비스 시간이 종료되면, 컨트롤러 유닛(510)은 PHY 계층 유닛(520)의 설정을 변경함으로써, 진단 서비스를 제한할 수 있다. 예를 들어, 컨트롤러 유닛(510)은 타겟 통신 노드(600)가 연결된 제2 포트(P2)가 비활성화 되도록 PHY 계층 유닛(520)의 설정을 변경할 수 있다. PHY 계층 유닛(520)은 컨트롤러 유닛(510)의 제어에 의해 제2 포트(P2) 또는 제2 내지 제5 포트(P2, P3, P4, P5)를 비활성화 할 수 있다. 다른 예로, 컨트롤러 유닛(510)은 외부 진단기(10)가 연결된 제1 포트(P1)가 비활성화 되도록 PHY 계층 유닛(520)의 설정을 변경할 수 있다. PHY 계층 유닛(520)은 컨트롤러 유닛(510)의 제어에 의해 제1 포트(P1)를 비활성화 할 수 있다. 또 다른 예로, 다른 예로, 컨트롤러 유닛(510)은 게이트웨이(500)의 모든 포트가 비활성화 되도록 PHY 계층 유닛(520)의 설정을 변경할 수 있다. PHY 계층 유닛(520)은 컨트롤러 유닛(510)의 제어에 의해 제1 내지 제5 포트(P1, P2, P3, P4, P5)를 비활성화 할 수 있다. 상술한 컨트롤러 유닛(510) 및 PHY 계층 유닛(520)의 동작에 의해, 서비스 시간이 종료되면, 포트 포워딩 설정이 해제될 수 있다. 그리고, 외부 진단기(10)와 타겟 통신 노드(600) 사이의 메시지 교환이 제한될 수 있다.In step S870 , when the service time is over, the controller unit 510 may limit the diagnostic service by changing the setting of the PHY layer unit 520 . For example, the controller unit 510 may change the setting of the PHY layer unit 520 so that the second port P2 to which the target communication node 600 is connected is deactivated. The PHY layer unit 520 may inactivate the second port P2 or the second to fifth ports P2, P3, P4, and P5 under the control of the controller unit 510 . As another example, the controller unit 510 may change the setting of the PHY layer unit 520 so that the first port P1 to which the external diagnostic device 10 is connected is deactivated. The PHY layer unit 520 may deactivate the first port P1 under the control of the controller unit 510 . As another example, as another example, the controller unit 510 may change the setting of the PHY layer unit 520 so that all ports of the gateway 500 are deactivated. The PHY layer unit 520 may inactivate the first to fifth ports P1 , P2 , P3 , P4 , and P5 under the control of the controller unit 510 . By the operations of the controller unit 510 and the PHY layer unit 520 described above, when the service time is over, the port forwarding setting may be released. In addition, message exchange between the external diagnostic device 10 and the target communication node 600 may be restricted.

상술한 설명에서는 진단 서비스를 제한하기 위해 PHY 계층 유닛(520)이 포트들 중 적어도 하나를 비활성화 하는 경우를 설명하였다. 하지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, PHY 계층 유닛(520)은 포드들을 활성화 상태로 유지한 상태로 진단 서비스를 차단할 수 있다. 이 경우, 컨트롤러 유닛(510)의 제어에 의해 PHY 계층 유닛(520)은 외부 진단기(10)로부터 수신한 메시지를 다른 포트들을 통해 전달하지 않을 수 있다. 또한, 타겟 통신 노드(600)로부터 수신한 메시지를 외부 진단기(10)에게 전달하지 않을 수 있다.In the above description, a case has been described in which the PHY layer unit 520 deactivates at least one of the ports in order to limit the diagnostic service. However, the embodiment is not limited thereto. For example, the PHY layer unit 520 may block diagnostic services while keeping the pods active. In this case, under the control of the controller unit 510 , the PHY layer unit 520 may not transmit the message received from the external diagnostic device 10 through other ports. Also, the message received from the target communication node 600 may not be delivered to the external diagnostic device 10 .

다른 예로, S870 단계에서, 서비스 시간이 종료되면, 컨트롤러 유닛(510)은 진단 서비스를 부분적으로 제한할 수도 있다. 예를 들어, 컨트롤러 유닛(510)은 타겟 통신 노드(600)에 대한 모니터링을 제외한 메시지가 컨트롤러 유닛(510)에 전달되도록 PHY 계층 유닛(520)을 설정할 수 있다. PHY 계층 유닛(520)은 모니터링을 제외한 메시지는 포트 포워딩 방식으로 곧바로 포워딩 하지 않고, 컨트롤러 유닛(510)에게 전달할 수 있다. 컨트롤러 유닛(510)은 메시지의 전달 여부를 판단할 수 있다. 컨트롤러 유닛(510)는 메시지 전달이 부적절하다고 판단되는 경우, PHY 계층 유닛(520)이 메시지를 전달하는 것을 허용하지 않을 수 있다. 이 경우, 외부 진단기(10)와 타겟 통신 노드(600) 사이의 통신이 부분적으로 제한될 수 있다. 컨트롤러 유닛(510)은 외부 진단기(10)가 타겟 통신 노드(600)에 무제한 접근하는 것을 방지할 수 있다.As another example, in step S870 , when the service time is over, the controller unit 510 may partially limit the diagnostic service. For example, the controller unit 510 may configure the PHY layer unit 520 so that a message excluding monitoring for the target communication node 600 is transmitted to the controller unit 510 . The PHY layer unit 520 may deliver a message except for monitoring to the controller unit 510 without directly forwarding it in the port forwarding method. The controller unit 510 may determine whether the message is delivered. The controller unit 510 may not allow the PHY layer unit 520 to forward the message if it determines that the message delivery is inappropriate. In this case, communication between the external diagnostic device 10 and the target communication node 600 may be partially restricted. The controller unit 510 may prevent the external diagnostic device 10 from accessing the target communication node 600 unrestrictedly.

도 9는 차량 진단 방법의 제2 실시예를 나타낸 흐름도이다.9 is a flowchart illustrating a second embodiment of a method for diagnosing a vehicle.

도 9에서 나타낸 차량 진단 방법은, 기본 세션을 제외한 나머지 세션들에 적용될 수 있다. 하지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 도 9에서 나타낸 차량 진단 방법은 기본 세션에 대해서도 적용될 수 있다.The vehicle diagnosis method illustrated in FIG. 9 may be applied to sessions other than the basic session. However, the embodiment is not limited thereto. For example, the vehicle diagnosis method shown in FIG. 9 may be applied to a basic session as well.

도 9를 참조하면, S910 단계에서, 외부 진단기(10)는 차량 네트워크와 통신을 위한 통신 인증 요청 메시지를 전송할 수 있다. PHY 계층 유닛(520)은 제1 포트(P1)를 통해 통신 인증 요청 메시지를 수신할 수 있다. 통신 인증 요청 메시지는 외부 진단기(10)의 식별 정보와 외부 진단기(10)의 진단 범위 등에 대한 정보를 포함할 수 있다. PHY 계층 유닛(520)은 통신 인증 요청 메시지를 컨트롤러 유닛(510)에게 전달할 수 있다.Referring to FIG. 9 , in step S910 , the external diagnostic device 10 may transmit a communication authentication request message for communication with the vehicle network. The PHY layer unit 520 may receive the communication authentication request message through the first port (P1). The communication authentication request message may include identification information of the external diagnostic device 10 and information on a diagnostic range of the external diagnostic device 10 . The PHY layer unit 520 may transmit a communication authentication request message to the controller unit 510 .

S920 단계에서, 컨트롤러 유닛(510)은 통신 인증 요청 메시지를 검증할 수 있다. 컨트롤러 유닛(510)은 외부 진단기(10)의 진단 범위가 보안상 허용 범위에 속하는 지 여부를 판단할 수 있다. 컨트롤러 유닛(510)은 외부 진단기(10)의 진단 범위가 허용되지 않는다고 판단하는 경우, 진단 절차를 종료할 수 있다. In step S920 , the controller unit 510 may verify the communication authentication request message. The controller unit 510 may determine whether the diagnostic range of the external diagnostic device 10 falls within a security allowable range. When determining that the diagnostic range of the external diagnostic device 10 is not permitted, the controller unit 510 may end the diagnostic procedure.

S930 단계에서, 외부 진단기(10)에 대한 통신 인증이 완료된 경우, 외부 진단기(10)는 차량 네트워크 사용 요청 메시지를 전송할 수 있다. PHY 계층 유닛(520)은 제1 포트(P1)를 통해서 차량 네트워크 사용 요청 메시지를 수신할 수 있다. PHY 계층 유닛(520)은 차량 네트워크 사용 요청 메시지를 컨트롤러 유닛(510)에게 전달할 수 있다.In step S930 , when communication authentication for the external diagnostic device 10 is completed, the external diagnostic device 10 may transmit a vehicle network use request message. The PHY layer unit 520 may receive the vehicle network use request message through the first port P1. The PHY layer unit 520 may transmit the vehicle network use request message to the controller unit 510 .

S940 단계에서, 컨트롤러 유닛(510)은 차량 네트워크 사용 요청 메시지를 수신한 후, 차량의 정지 상태 여부를 판단할 수 있다. 컨트롤러 유닛(510)은 차속, 기어정보, 차량의 위치 정보 등으로부터 차량의 정지 상태 여부를 판단할 수 있다. 컨트롤러 유닛(510)은 차속이 0km/h로 측정되는 경우, 차량이 정지 상태라고 판단할 수 있다. 컨트롤러 유닛(510)은 기어가 주차 상태인 경우, 차량이 정지 상태라고 판단할 수 있다. 컨트롤러 유닛(510)은 GPS 위치 신호로부터 확인되는 차량의 위치가 변하지 않는 경우, 차량이 정지상태라고 판단할 수 있다.In operation S940 , the controller unit 510 may determine whether the vehicle is in a stopped state after receiving the vehicle network use request message. The controller unit 510 may determine whether the vehicle is in a stopped state based on vehicle speed, gear information, vehicle location information, and the like. When the vehicle speed is measured as 0 km/h, the controller unit 510 may determine that the vehicle is in a stopped state. When the gear is in the parked state, the controller unit 510 may determine that the vehicle is in a stopped state. The controller unit 510 may determine that the vehicle is in a stationary state when the location of the vehicle confirmed from the GPS location signal does not change.

S950 단계에서, 컨트롤러 유닛(510)은 차량이 정지 상태라고 판단한 경우, PHY 계층 유닛이 포트 미러링(Port mirroring)을 수행하도록, PHY 계층 유닛을 설정할 수 있다. 컨트롤러 유닛(510)은 외부 진단기(10)로부터 수신되는 메시지가 타겟 통신 노드(600)로 미러링 되도록 할 수 있다. 컨트롤러 유닛(510)은 진단 요청 메시지를 수신하고, 제1 포트(P1)로부터 수신되는 메시지가 제2 포트(P2)로 미러링 되도록 PHY 계층 유닛(520)을 설정할 수 있다. 컨트롤러 유닛(510)은 제1 포트(P1)로부터 수신되는 메시지의 목적지를 제2 포트(P2)로 설정할 수 있다.In step S950 , when it is determined that the vehicle is in a stopped state, the controller unit 510 may configure the PHY layer unit so that the PHY layer unit performs port mirroring. The controller unit 510 may cause a message received from the external diagnostic device 10 to be mirrored to the target communication node 600 . The controller unit 510 may receive the diagnosis request message and configure the PHY layer unit 520 so that the message received from the first port P1 is mirrored to the second port P2 . The controller unit 510 may set the destination of the message received from the first port P1 as the second port P2 .

컨트롤러 유닛(510)은 외부 진단기(10)로부터 게이트웨이(500)에 연결된 이더넷 기반 통신 노드들을 향한 미러링을 설정할 수 있다. 컨트롤러 유닛(510)은 게이트웨이(500)에 연결된 이더넷 기반 통신 노드들로부터 외부 진단기(10) 방향으로의 미러링은 제한할 수 있다. 따라서, 타겟 통신 노드(600)가 전송하는 메시지는 미러링 되지 않을 수 있다.The controller unit 510 may set up mirroring from the external diagnostic device 10 toward the Ethernet-based communication nodes connected to the gateway 500 . The controller unit 510 may limit mirroring from the Ethernet-based communication nodes connected to the gateway 500 toward the external diagnostic device 10 . Accordingly, the message transmitted by the target communication node 600 may not be mirrored.

PHY 계층 유닛(520)은 제1 포트(P1)를 통해 수신한 메시지를 컨트롤러 유닛(510)에게 전달하지 않고, 미러링 동작에 의해 제2 포트(P2)를 통해 타겟 통신 노드(600)로 전달할 수 있다. The PHY layer unit 520 does not forward the message received through the first port P1 to the controller unit 510, but can be transferred to the target communication node 600 through the second port P2 by a mirroring operation. have.

포트 미러링의 목적지 포트를 제2 포트(P2) 하나로 설정하는 경우가 설명되었만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 타겟 통신 노드가 복수 개인 경우, 제1 포트(P1)를 통해 수신되는 메시지는 복수의 포트들을 통해 미러링 전송되도록 미러링 될 수도 있다. Although the case in which the destination port of port mirroring is set to one of the second ports P2 has been described, the embodiment is not limited thereto. For example, when there are a plurality of target communication nodes, a message received through the first port P1 may be mirrored to be transmitted through the plurality of ports.

S960 단계에서, 외부 진단기(10)는 진단 요청 메시지를 전송할 수 있다. 외부 진단기(10)는 서비스 시간 정보를 함께 전송할 수 있다. PHY 계층 유닛(520)은 서비스 시간 정보를 컨트롤러 유닛(510)에게 전달할 수 있다. In step S960 , the external diagnostic device 10 may transmit a diagnostic request message. The external diagnostic device 10 may transmit service time information together. The PHY layer unit 520 may transmit the service time information to the controller unit 510 .

S962 단계에서, PHY 계층 유닛(520)은 미러링에 의해 진단 요청 메시지를 제2 포트(P2)를 통해 타겟 통신 노드(600)로 전달할 수 있다. PHY 계층 유닛(520)은 복수 개의 포트들을 통해 복수 개의 통신 노드들에게 진단 요청 메시지를 전달할 수도 있다.In step S962 , the PHY layer unit 520 may transmit the diagnostic request message to the target communication node 600 through the second port P2 by mirroring. The PHY layer unit 520 may transmit a diagnostic request message to a plurality of communication nodes through a plurality of ports.

S970 단계에서, 타겟 통신 노드(600)는 진단 기능을 수행할 수 있다. 타겟 통신 노드(600)는 외부 진단기(10)가 요청하는 진단 정보를 추출할 수 있다. 타겟 통신 노드(600)는 진단 정보에 기초하여, 진단 응답 메시지를 생성할 수 있다. In step S970 , the target communication node 600 may perform a diagnostic function. The target communication node 600 may extract diagnostic information requested by the external diagnostic device 10 . The target communication node 600 may generate a diagnosis response message based on the diagnosis information.

S980 단계에서, 타겟 통신 노드(600)는 진단 응답 메시지를 전송할 수 있다. 게이트웨이(500)는 제2 포트(P2)를 통해 진단 응답 메시지를 수신할 수 있다. 컨트롤러 유닛(510)은 제2 포트(P2)를 통해 수신한 진단 응답 메시지가 제1 포트(P1)를 통해 포워딩 되도록 PHY 계층 유닛(520)을 설정할 수 있다. In step S980 , the target communication node 600 may transmit a diagnostic response message. The gateway 500 may receive a diagnostic response message through the second port P2 . The controller unit 510 may configure the PHY layer unit 520 so that the diagnostic response message received through the second port P2 is forwarded through the first port P1 .

S982 단계에서, PHY 계층 유닛(520)은 제1 포트(P1)를 통해 진단 응답 메시지를 외부 진단기(10)에게 포워딩 할 수 있다.In step S982 , the PHY layer unit 520 may forward the diagnostic response message to the external diagnostic device 10 through the first port P1 .

S990 단계에서, 서비스 시간이 종료되면, 컨트롤러 유닛(510)은 PHY 계층 유닛(520)의 설정을 변경함으로써, 타겟 통신 노드(600)와 연결된 제2 포트(P2)를 비활성화 할 수 있다. 다른 예로, 컨트롤러 유닛(510)은 제2 내지 제5 포트(P2, P3, P4, P5)가 비활성화 되도록 PHY 계층 유닛(520)을 설정할 수 있다. 컨트롤러 유닛(510)은 제1 내지 제5 포트(P1, P2, P3, P4, P5)가 비활성화 되도록 PHY 계층 유닛(520)을 설정할 수도 있다.In step S990 , when the service time is over, the controller unit 510 may inactivate the second port P2 connected to the target communication node 600 by changing the setting of the PHY layer unit 520 . As another example, the controller unit 510 may configure the PHY layer unit 520 so that the second to fifth ports P2, P3, P4, and P5 are deactivated. The controller unit 510 may configure the PHY layer unit 520 such that the first to fifth ports P1, P2, P3, P4, and P5 are deactivated.

컨트롤러 유닛(510) 및 PHY 계층 유닛(520)의 동작에 의해, 서비스 시간이 종료되면, 포트 미러링 및 메시지 포워딩이 중단될 수 있다. 그리고, 외부 진단기(10)와 타겟 통신 노드(600) 사이의 메시지 교환이 제한될 수 있다.By the operation of the controller unit 510 and the PHY layer unit 520 , when the service time is over, port mirroring and message forwarding may be stopped. In addition, message exchange between the external diagnostic device 10 and the target communication node 600 may be restricted.

도 10은 차량 진단 방법의 제2 실시예를 나타낸 흐름도이다.10 is a flowchart illustrating a second embodiment of a method for diagnosing a vehicle.

도 10의 실시예를 설명함에 있어서, 도 9와 중복되는 내용은 생략한다. 도 10에서 나타낸 차량 진단 방법은, 기본 세션을 제외한 나머지 세션들에 적용될 수 있다. 하지만, 실시예가 이에 제한되는 것은 아니다. 예를 들어, 도 10에서 나타낸 차량 진단 방법은 기본 세션에 대해서도 적용될 수 있다.In the description of the embodiment of FIG. 10 , contents overlapping those of FIG. 9 will be omitted. The vehicle diagnosis method illustrated in FIG. 10 may be applied to sessions other than the basic session. However, the embodiment is not limited thereto. For example, the vehicle diagnosis method shown in FIG. 10 may be applied to a basic session as well.

도 10을 참조하면, S1040 단계에서, 컨트롤러 유닛(510)은 차량의 정지 상태 여부를 판단할 수 있다. Referring to FIG. 10 , in step S1040 , the controller unit 510 may determine whether the vehicle is in a stopped state.

S1042 단계에서, 차량이 정지 상태가 아닐 경우, 컨트롤러 유닛(510)은 PHY 계층 유닛(520)을 통해 원사이드 포워딩(one side forwarding) 요청 메시지를 전송할 수 있다. 타겟 통신 노드(600)와 외부 진단기(10)는 원사이드 포워딩 요청 메시지를 수신할 수 있다. 타겟 통신 노드(600) 및 외부 진단기(10)는 원사이드 포워딩 요청 메시지를 수신한 후 생성하는 메시지에 유니캐스트 주소를 포함시킬 수 있다. 타겟 통신 노드(600) 및 외부 진단기(10)는 메시지의 목적지를 하나의 통신 노드로 설정할 수 있다. 따라서, 외부 진단기(10)가 전송하는 메시지는 하나의 타겟 통신 노드(600)에게 전달될 수 있다. 유니캐스트 주소는 메시지의 목적지인 통신 노드가 연결된 포트를 식별할 수 있는 정보를 포함할 수 있다. In step S1042 , if the vehicle is not in a stationary state, the controller unit 510 may transmit a one-side forwarding request message through the PHY layer unit 520 . The target communication node 600 and the external diagnostic device 10 may receive the one-side forwarding request message. The target communication node 600 and the external diagnostic device 10 may include a unicast address in a message generated after receiving the one-side forwarding request message. The target communication node 600 and the external diagnostic device 10 may set the destination of the message to one communication node. Accordingly, the message transmitted by the external diagnostic device 10 may be transmitted to one target communication node 600 . The unicast address may include information for identifying a port to which a communication node that is a destination of a message is connected.

S1050 단계에서, 외부 진단기(10)는 진단 요청 메시지 및 서비스 시간 정보를 전송할 수 있다. 진단 요청 메시지는 타겟 통신 노드(600)를 지시하는 유니캐스트 주소를 포함할 수 있다. PHY 계층 유닛(520)은 진단 요청 메시지 및 서비스 시간 정보를 수신할 수 있다. PHY 계층 유닛(520)은 진단 요청 메시지 및 서비스 시간 정보를 컨트롤러 유닛(510)에게 전달할 수 있다. 컨트롤러 유닛(510)은 진단 요청 메시지에 포함된 유니캐스트 주소로부터 메시지의 목적지인 타겟 통신 노드(600)가 연결된 제2 포트(P2)의 포트 ID를 결정할 수 있다.In step S1050 , the external diagnostic device 10 may transmit a diagnosis request message and service time information. The diagnosis request message may include a unicast address indicating the target communication node 600 . The PHY layer unit 520 may receive the diagnosis request message and service time information. The PHY layer unit 520 may transmit the diagnosis request message and service time information to the controller unit 510 . The controller unit 510 may determine the port ID of the second port P2 to which the target communication node 600 that is the destination of the message is connected from the unicast address included in the diagnosis request message.

예를 들어, 유니캐스트 주소는 메시지의 목적지를 식별할 수 있는 인덱스 키(Index key)를 포함할 수 있다. 컨트롤러 유닛(510)은 인덱스 키에 매칭되는 통신 노드를 결정하고, 이로부터 메시지를 전달할 포트 ID를 결정할 수 있다. 컨트롤러 유닛(510)는 진단 요청 메시지에 포함된 유니캐스트 주소로부터 진단 요청 메시지를 전달할 포트의 포트 ID를 결정할 수 있다. For example, the unicast address may include an index key capable of identifying the destination of the message. The controller unit 510 may determine the communication node that matches the index key, and may determine the port ID to which the message will be forwarded. The controller unit 510 may determine a port ID of a port to which the diagnosis request message is transmitted from the unicast address included in the diagnosis request message.

S1052 단계에서, PHY 계층 유닛(520)은, 컨트롤러 유닛(510)의 제어에 의해, 제2 포트(P2)를 통해 진단 요청 메시지를 포워딩 할 수 있다. In step S1052 , the PHY layer unit 520 may forward the diagnosis request message through the second port P2 under the control of the controller unit 510 .

S1060 단계에서, 타겟 통신 노드(600)는 진단 기능을 수행할 수 있다. 타겟 통신 노드(600)는 외부 진단기(10)가 요청하는 진단 정보를 추출할 수 있다. 타겟 통신 노드(600)는 진단 정보에 기초하여, 진단 응답 메시지를 생성할 수 있다. In step S1060, the target communication node 600 may perform a diagnostic function. The target communication node 600 may extract diagnostic information requested by the external diagnostic device 10 . The target communication node 600 may generate a diagnosis response message based on the diagnosis information.

S1070 단계에서, 타겟 통신 노드(600)는 진단 응답 메시지를 전송할 수 있다. 진단 응답 메시지는 외부 진단기(10)를 지시하는 유니캐스트 주소를 포함할 수 있다. 유니캐스트 주소는 외부 진단기(10)를 식별할 수 있는 인덱스 키를 포함할 수 있다. 컨트롤러 유닛(510)은 인덱스 키로부터 진단 응답 메시지를 전달할 포트의 포트 ID를 결정할 수 있다.In step S1070 , the target communication node 600 may transmit a diagnostic response message. The diagnostic response message may include a unicast address indicating the external diagnostic device 10 . The unicast address may include an index key for identifying the external diagnostic device 10 . The controller unit 510 may determine the port ID of the port through which the diagnostic response message is to be transmitted from the index key.

S1072 단계에서, PHY 계층 유닛(520)은, 컨트롤러 유닛(510)의 제어에 의해, 제1 포트(P1)를 통해 진단 응답 메시지를 포워딩 할 수 있다. In step S1072 , the PHY layer unit 520 may forward the diagnostic response message through the first port P1 under the control of the controller unit 510 .

S1080 단계에서, 서비스 시간이 종료되면, 컨트롤러 유닛(510)은 PHY 계층 유닛(520)의 설정을 변경함으로써, 타겟 통신 노드(600)와 연결된 제2 포트(P2)를 비활성화 할 수 있다. 다른 예로, 컨트롤러 유닛(510)은 제2 내지 제5 포트(P2, P3, P4, P5)가 비활성화 되도록 PHY 계층 유닛(520)을 설정할 수 있다. 컨트롤러 유닛(510)은 제1 내지 제5 포트(P1, P2, P3, P4, P5)가 비활성화 되도록 PHY 계층 유닛(520)을 설정할 수도 있다.In step S1080 , when the service time is over, the controller unit 510 may inactivate the second port P2 connected to the target communication node 600 by changing the setting of the PHY layer unit 520 . As another example, the controller unit 510 may configure the PHY layer unit 520 to deactivate the second to fifth ports P2, P3, P4, and P5. The controller unit 510 may configure the PHY layer unit 520 such that the first to fifth ports P1, P2, P3, P4, and P5 are deactivated.

컨트롤러 유닛(510) 및 PHY 계층 유닛(520)의 동작에 의해, 서비스 시간이 종료되면, 원사이드 포워딩이 중단될 수 있다. 그리고, 외부 진단기(10)와 타겟 통신 노드(600) 사이의 메시지 교환이 제한될 수 있다.By the operation of the controller unit 510 and the PHY layer unit 520, when the service time is over, one-side forwarding may be stopped. In addition, message exchange between the external diagnostic device 10 and the target communication node 600 may be restricted.

이상에서 도 1 내지 도 10을 참조하여, 본 발명의 실시예들에 따른 게이트웨이 및 게이트웨이의 진단 방법에 관하여 설명하였다. 상술한 실시예들에 따르면, 외부 진단기가 차량 네트워크에 대한 진단을 수행하는 동안, 게이트웨이가 포트들의 연결 상태를 관리함으로써, 외부 진단기와 타겟 통신 노드 사이의 메시지 교환이 이루어질 수 있다. 포트 미러링, 포워딩 방식 등에 의해 진단 과정에서 메시지가 타겟 통신 노드 또는 외부 진단기에게 선택적으로 전달될 수 있다. 그리고, 보안 범위 및 서비스 시간을 고려하여 게이트웨이가 포트들의 연결을 활성화 또는 비활성화 함으로써 진단 절차에서 보안을 강화할 수 있다. A gateway and a method for diagnosing a gateway according to embodiments of the present invention have been described above with reference to FIGS. 1 to 10 . According to the above-described embodiments, message exchange between the external diagnostic device and the target communication node may be performed by the gateway managing the connection status of ports while the external diagnostic device performs diagnosis on the vehicle network. A message may be selectively delivered to a target communication node or an external diagnostic device during a diagnosis process by port mirroring, a forwarding method, or the like. In addition, security can be strengthened in the diagnostic procedure by enabling or disabling the connection of ports by the gateway in consideration of the security range and service time.

본 발명에 따른 방법들은 다양한 컴퓨터 수단을 통해 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 컴퓨터 판독 가능 매체에 기록되는 프로그램 명령은 본 발명을 위해 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다.The methods according to the present invention may be implemented in the form of program instructions that can be executed by various computer means and recorded in a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions recorded on the computer-readable medium may be specially designed and configured for the present invention, or may be known and available to those skilled in the art of computer software.

컴퓨터 판독 가능 매체의 예에는 롬(rom), 램(ram), 플래시 메모리(flash memory) 등과 같이 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러(compiler)에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터(interpreter) 등을 사용해서 컴퓨터에 의해 실행될 수 있는 고급 언어 코드를 포함한다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 적어도 하나의 소프트웨어 모듈로 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.Examples of computer-readable media include hardware devices specially configured to store and carry out program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine language codes such as those generated by a compiler, but also high-level language codes that can be executed by a computer using an interpreter or the like. The hardware device described above may be configured to operate as at least one software module to perform the operations of the present invention, and vice versa.

이상 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although it has been described with reference to the above embodiments, it will be understood by those skilled in the art that various modifications and changes can be made to the present invention without departing from the spirit and scope of the present invention as set forth in the claims below. will be able

Claims (20)

차량 네트워크에서 게이트웨이에 의해 수행되는 진단 방법으로서,
상기 게이트웨이는 컨트롤러 유닛 및 포트(Port)들의 연결 상태를 관리하며, 상기 컨트롤러 유닛에 연결되는PHY(physical) 계층 유닛을 포함하며,
상기 컨트롤러 유닛이 제1 포트에 연결된 외부 진단기로부터 진단 요청 메시지를 수신하는 단계;
상기 진단 요청 메시지에 대해 보안 인증이 필요한 경우, 상기 컨트롤러 유닛이 상기 외부 진단기로부터 보안 인증 요청 메시지와 상기 외부 진단기의 서비스 시간에 대한 정보를 수신하는 단계;
상기 컨트롤러 유닛이 상기 보안 인증 요청 메시지를 검증하는 단계;
상기 보안 인증 요청 메시지의 검증이 완료된 경우, 상기 서비스 시간 내에 상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트들 중에서 진단 대상인 타겟 통신 노드와 연결된 포트를 활성화하는 단계; 및
상기 서비스 시간이 종료되면, 상기 외부 진단기와 상기 타겟 통신 노드 사이의 메시지 교환을 제한하는 단계를 포함하는, 진단 방법.
A diagnostic method performed by a gateway in a vehicle network, comprising:
The gateway manages the connection state of the controller unit and ports, and includes a PHY (physical) layer unit connected to the controller unit,
receiving, by the controller unit, a diagnosis request message from an external diagnosis device connected to a first port;
receiving, by the controller unit, a security authentication request message and information on a service time of the external diagnostic device from the external diagnostic device when security authentication is required for the diagnostic request message;
verifying, by the controller unit, the security authentication request message;
activating, by the PHY layer unit, a port connected to a target communication node to be diagnosed among the ports under the control of the controller unit within the service time when the verification of the security authentication request message is completed; and
and limiting message exchange between the external diagnostic device and the target communication node when the service time is over.
청구항 1에 있어서,
상기 진단 요청 메시지에 대해 보안 인증이 필요하지 않은 경우, 상기 PHY 계층 유닛은 상기 컨트롤러 유닛에 진단 메시지를 전달하지 않고, 상기 타겟 통신 노드에 상기 진단 요청 메시지를 전달하는 진단 방법.
The method according to claim 1,
If security authentication is not required for the diagnosis request message, the PHY layer unit forwards the diagnosis request message to the target communication node without forwarding the diagnosis message to the controller unit.
청구항 1에 있어서,
상기 보안 인증 요청 메시지의 검증에 실패하면, 컨트롤러 유닛이 진단 절차를 종료하고, 외부 진단기(10)와 차량내 통신 노드 사이의 통신을 허용하지 않는, 진단 방법.
The method according to claim 1,
If the verification of the security authentication request message fails, the controller unit terminates the diagnostic procedure and does not allow communication between the external diagnostic device (10) and the in-vehicle communication node.
청구항 1에 있어서,
상기 진단 요청 메시지는, 진단 대상이 되는 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보를 포함하고,
상기 컨트롤러 유닛이 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보로부터 상기 타겟 통신 노드의 이더넷 MAC 주소 및 이더넷 IP 주소 중 적어도 하나를 결정하는 단계;를 더 포함하는 진단 방법.
The method according to claim 1,
The diagnosis request message includes information on the name or function of the target communication node to be diagnosed,
and determining, by the controller unit, at least one of an Ethernet MAC address and an Ethernet IP address of the target communication node from the name or function information of the target communication node.
청구항 1에 있어서,
상기 보안 인증 요청 메시지의 검증이 완료되면, 상기 컨트롤러 유닛이 상기 외부 진단기에 대한 보안 인증 정보를 상기 타겟 통신 노드에게 전송하는 단계;를 더 포함하는 진단 방법.
The method according to claim 1,
and when verification of the security authentication request message is completed, transmitting, by the controller unit, security authentication information for the external diagnostic device to the target communication node.
삭제delete 청구항 1에 있어서,
상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛이 상기 컨트롤러 유닛의 제어에 의해 상기 타겟 통신 노드와 연결된 포트를 비활성화하는 단계;를 포함하는, 진단 방법.
The method according to claim 1,
When the service time is over, the PHY layer unit deactivating a port connected to the target communication node under the control of the controller unit; including, a diagnostic method.
삭제delete 청구항 1에 있어서,
상기 PHY 계층 유닛이 상기 타겟 통신 노드로부터 진단 응답 메시지를 수신하는 단계; 및
상기 PHY 계층 유닛이 상기 컨트롤러 유닛의 제어에 의해 포트 포워딩 방식으로 상기 진단 응답 메시지를 상기 외부 진단기로 전달하는 단계;를 포함하는, 진단 방법.
The method according to claim 1,
receiving, by the PHY layer unit, a diagnostic response message from the target communication node; and
and transmitting, by the PHY layer unit, the diagnostic response message to the external diagnostic device in a port forwarding manner under the control of the controller unit.
청구항 1에 있어서,
상기 차량 네트워크는 이더넷 기반의 차량 네트워크 및 CAN(controller area network) 기반의 차량 네트워크를 포함하며, 상기 타겟 통신 노드는 상기 이더넷 기반의 차량 네트워크에 속하는 진단 방법.
The method according to claim 1,
The vehicle network includes an Ethernet-based vehicle network and a controller area network (CAN)-based vehicle network, and the target communication node belongs to the Ethernet-based vehicle network.
차량 네트워크에서 게이트웨이에 의해 수행되는 진단 방법으로서,
상기 게이트웨이는 컨트롤러 유닛 및 상기 컨트롤러 유닛에 연결되며, 포트(Port)들의 연결 상태를 관리하는 PHY(physical) 계층 유닛들을 포함하며,
상기 PHY 계층 유닛이 제1 포트에 연결된 외부 진단기로부터 상기 차량 네트워크의 사용 요청 메시지를 수신하는 단계;
상기 컨트롤러 유닛이 상기 차량이 정지 상태인지 여부를 판단하는 단계;
상기 차량이 정지 상태인 경우, 상기 컨트롤러 유닛이, 상기 외부 진단기로부터 수신되는 메시지가 타겟 통신 노드로 미러링(mirroring)되도록 상기 PHY 계층 유닛의 포트 미러링을 설정하는 단계;
상기 PHY 계층 유닛이 상기 외부 진단기로부터 진단 요청 메시지를 수신하는 단계; 및
상기 PHY 계층 유닛이 상기 진단 요청 메시지를 미러링에 의해 상기 타겟 통신 노드로 전달하는 단계;를 포함하는 진단 방법.
A diagnostic method performed by a gateway in a vehicle network, comprising:
The gateway includes a controller unit and PHY (physical) layer units connected to the controller unit and managing the connection state of ports,
receiving, by the PHY layer unit, a use request message of the vehicle network from an external diagnostic device connected to a first port;
determining, by the controller unit, whether the vehicle is in a stationary state;
setting, by the controller unit, port mirroring of the PHY layer unit such that a message received from the external diagnostic device is mirrored to a target communication node when the vehicle is in a stationary state;
receiving, by the PHY layer unit, a diagnostic request message from the external diagnostic device; and
and the PHY layer unit forwarding the diagnosis request message to the target communication node by mirroring.
청구항 11에 있어서,
상기 진단 요청 메시지를 수신하는 단계에서, 상기 PHY 계층 유닛은 서비스 시간에 대한 정보를 함께 수신하는 진단 방법.
12. The method of claim 11,
In the step of receiving the diagnosis request message, the PHY layer unit also receives information on service time.
청구항 12에 있어서,
상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛이 상기 타겟 통신 노드와 연결된 포트를 비활성화하는 단계;를 포함하는 진단 방법.
13. The method of claim 12,
and when the service time is over, deactivating, by the PHY layer unit, a port connected to the target communication node.
청구항 11에 있어서,
상기 PHY 계층 유닛이 상기 타겟 통신 노드로부터 진단 응답 메시지를 수신하는 단계; 및
상기 PHY 계층 유닛이 상기 진단 응답 메시지를 상기 외부 진단기로 전달하는 단계;를 포함하는 진단 방법.
12. The method of claim 11,
receiving, by the PHY layer unit, a diagnostic response message from the target communication node; and
and transmitting, by the PHY layer unit, the diagnostic response message to the external diagnostic device.
청구항 11에 있어서,
상기 차량이 정지 상태가 아닌 경우,
상기 PHY 계층 유닛이 상기 외부 진단기로부터 상기 타겟 통신 노드를 지시하는 유니캐스트 주소(Unicast address)를 포함하는 진단 요청 메시지를 수신하는 단계;
상기 컨트롤러 유닛이 상기 타겟 통신 노드를 지시하는 유니캐스트 주소로부터 상기 진단 요청 메시지를 전달할 포트 ID를 결정하는 단계; 및
상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트 ID에 대응하는 포트를 통해 상기 진단 요청 메시지를 포워딩하는 단계;를 포함하는 진단 방법.
12. The method of claim 11,
If the vehicle is not stationary,
receiving, by the PHY layer unit, a diagnostic request message including a unicast address indicating the target communication node from the external diagnostic device;
determining, by the controller unit, a port ID to which the diagnosis request message is to be delivered from a unicast address indicating the target communication node; and
and, under the control of the controller unit, the PHY layer unit forwarding the diagnosis request message through a port corresponding to the port ID.
청구항 15에 있어서,
상기 PHY 계층 유닛이 상기 타겟 통신 노드로부터 상기 외부 진단기를 지시하는 유니캐스트 주소를 포함하는 진단 응답 메시지를 수신하는 단계;
상기 컨트롤러 유닛이 상기 외부 진단기를 지시하는 유니캐스트 주소로부터 상기 진단 요청 메시지를 전달할 포트 ID를 결정하는 단계; 및
상기 컨트롤러 유닛의 제어에 의해, 상기 PHY 계층 유닛이 상기 포트 ID에 대응하는 포트를 통해 상기 진단 응답 메시지를 포워딩하는 단계;를 포함하는 진단 방법.
16. The method of claim 15,
receiving, by the PHY layer unit, a diagnostic response message including a unicast address indicating the external diagnostic device from the target communication node;
determining, by the controller unit, a port ID to which the diagnosis request message is to be transmitted from a unicast address indicating the external diagnosis device; and
and, under the control of the controller unit, the PHY layer unit forwarding the diagnosis response message through a port corresponding to the port ID.
차량 네트워크의 게이트웨이로서,
컨트롤러 유닛; 및
상기 컨트롤러 유닛에 연결되며, 포트(Port)들의 연결 상태를 관리하는 PHY(physical) 계층 유닛;을 포함하며,
상기 컨트롤러 유닛은 제1 포트에 연결된 외부 진단기로부터 진단 요청 메시지를 수신하고; 상기 진단 요청 메시지에 대해 보안 인증이 필요한 경우, 상기 외부 진단기로부터 보안 인증 요청 메시지와 상기 외부 진단기의 서비스 시간에 대한 정보를 수신하고;
상기 보안 인증 요청 메시지를 검증하고;
상기 PHY 계층 유닛은, 상기 보안 인증 요청 메시지의 검증이 완료된 경우, 상기 서비스 시간 내에 상기 컨트롤러 유닛의 제어에 의해, 상기 포트들 중에서 진단 대상인 타겟 통신 노드와 연결된 포트를 활성화하고; 그리고
상기 서비스 시간이 종료되면, 상기 외부 진단기와 상기 타겟 통신 노드 사이의 메시지 교환을 제한하는, 게이트웨이.
A gateway in a vehicle network, comprising:
controller unit; and
It is connected to the controller unit, and includes a PHY (physical) layer unit that manages the connection state of the ports (Port);
the controller unit receives a diagnosis request message from an external diagnosis device connected to the first port; if security authentication is required for the diagnosis request message, receive a security authentication request message and information on a service time of the external diagnosis device from the external diagnostic device;
verify the security authentication request message;
the PHY layer unit activates a port connected to a target communication node to be diagnosed among the ports under the control of the controller unit within the service time when the verification of the security authentication request message is completed; and
When the service time expires, the gateway restricts message exchange between the external diagnostic device and the target communication node.
청구항 17에 있어서,
상기 진단 메시지에 대해 보안 인증이 필요하지 않은 경우, 상기 PHY 계층 유닛은 상기 컨트롤러 유닛에 진단 메시지를 전달하지 않고, 상기 타겟 통신 노드에 상기 진단 요청 메시지를 전달하는 게이트웨이.
18. The method of claim 17,
If security authentication is not required for the diagnosis message, the PHY layer unit forwards the diagnosis request message to the target communication node without forwarding the diagnosis message to the controller unit.
청구항 17에 있어서,
상기 진단 요청 메시지는, 진단 대상이 되는 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보를 포함하고,
상기 컨트롤러 유닛은 상기 타겟 통신 노드의 이름 또는 기능에 대한 정보로부터 상기 타겟 통신 노드의 이더넷 MAC 주소 및 이더넷 IP 주소 중 적어도 하나를 결정하는 게이트웨이.
18. The method of claim 17,
The diagnosis request message includes information on the name or function of the target communication node to be diagnosed,
The controller unit determines at least one of an Ethernet MAC address and an Ethernet IP address of the target communication node from information on a name or function of the target communication node.
청구항 17에 있어서,
상기 서비스 시간이 종료되면, 상기 PHY 계층 유닛은 상기 컨트롤러 유닛의 제어에 의해 상기 타겟 통신 노드와 연결된 포트를 비활성화하는 게이트웨이.
18. The method of claim 17,
When the service time is over, the PHY layer unit deactivates a port connected to the target communication node under the control of the controller unit.
KR1020170104005A 2016-09-12 2017-08-17 Diagnostic methods and devices in vehicle network KR102300764B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/702,317 US10710522B2 (en) 2016-09-12 2017-09-12 Diagnostic methods and apparatuses in vehicle network
DE102017121073.3A DE102017121073A1 (en) 2016-09-12 2017-09-12 DIAGNOSTIC METHODS AND APPARATUSES IN VEHICLE NETWORK

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20160117614 2016-09-12
KR1020160117614 2016-09-12

Publications (2)

Publication Number Publication Date
KR20180029854A KR20180029854A (en) 2018-03-21
KR102300764B1 true KR102300764B1 (en) 2021-09-10

Family

ID=61900915

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170104005A KR102300764B1 (en) 2016-09-12 2017-08-17 Diagnostic methods and devices in vehicle network

Country Status (1)

Country Link
KR (1) KR102300764B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20240026754A (en) 2022-08-22 2024-02-29 현대자동차주식회사 Method and system for diagnosing communication channel status in vehicle network

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102524290B1 (en) * 2017-12-26 2023-04-21 현대자동차주식회사 Ethernet Switch, In-vehicle Network Configuration Method and Vehicle
KR101954625B1 (en) * 2018-10-30 2019-03-06 쌍용자동차 주식회사 Vehicle diagnosis and reprogramming apparatus using electric vehicle charging interface and method thereof
CN114301739B (en) * 2021-12-29 2023-08-22 北京国家新能源汽车技术创新中心有限公司 Central gateway security architecture, system and storage medium
WO2024111709A1 (en) * 2022-11-25 2024-05-30 엘지전자 주식회사 Signal processing system for vehicle, and vehicle comprising same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004509511A (en) 2000-09-16 2004-03-25 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Access control method
JP2010206697A (en) 2009-03-05 2010-09-16 Honda Motor Co Ltd Onboard communication network system and malfunction diagnostic method of the same
KR101570711B1 (en) 2014-09-04 2015-11-20 주식회사 유라코퍼레이션 Gateway for vehicle, and diagnostic communication method for MCU disable of the same, and reprogram method of the same
US20150351137A1 (en) * 2013-02-08 2015-12-03 Bayerische Motoren Werke Aktiengesellschaft Method and Device for Connecting a Diagnostic Unit to a Control Unit in a Motor Vehicle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102337548B1 (en) * 2014-07-18 2021-12-08 현대자동차주식회사 Method for diagnosing network and apparatus for the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004509511A (en) 2000-09-16 2004-03-25 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Access control method
US20040073791A1 (en) 2000-09-16 2004-04-15 Vasco Vollmer Method of controlling access
JP2010206697A (en) 2009-03-05 2010-09-16 Honda Motor Co Ltd Onboard communication network system and malfunction diagnostic method of the same
US20150351137A1 (en) * 2013-02-08 2015-12-03 Bayerische Motoren Werke Aktiengesellschaft Method and Device for Connecting a Diagnostic Unit to a Control Unit in a Motor Vehicle
KR101570711B1 (en) 2014-09-04 2015-11-20 주식회사 유라코퍼레이션 Gateway for vehicle, and diagnostic communication method for MCU disable of the same, and reprogram method of the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20240026754A (en) 2022-08-22 2024-02-29 현대자동차주식회사 Method and system for diagnosing communication channel status in vehicle network
US11979305B2 (en) 2022-08-22 2024-05-07 Hyundai Motor Company Method and system for diagnosing communication channel state in in-vehicle network

Also Published As

Publication number Publication date
KR20180029854A (en) 2018-03-21

Similar Documents

Publication Publication Date Title
US10710522B2 (en) Diagnostic methods and apparatuses in vehicle network
KR102300764B1 (en) Diagnostic methods and devices in vehicle network
KR102589373B1 (en) Method and apparatus for wakeup of communication node in automotive network
KR102338503B1 (en) Method for transmitting and receiving wake-up signal in vehicle network
US10382221B2 (en) Communication method based on automotive safety integrity level in vehicle network and apparatus for the same
US10979878B2 (en) Operation method of communication node supporting network management functions in vehicle network
KR102337548B1 (en) Method for diagnosing network and apparatus for the same
KR102294634B1 (en) Operation method of communication node in network
KR20190134337A (en) Method and apparatus for selective wakeup of communication node in automotive network
US20150351137A1 (en) Method and Device for Connecting a Diagnostic Unit to a Control Unit in a Motor Vehicle
JP7085309B2 (en) Power supply methods and equipment in the network
KR102355092B1 (en) Operation method of communication node for diagnosing in vehicle network
KR102352527B1 (en) Method for communication based on automotive safety integrity level in automotive network and apparatus for the same
US20180103121A1 (en) Operation method of communication node for selective wake-up in vehicle network
KR20170101046A (en) Communication method in divided vehicle network
KR20170087602A (en) Method for converting operation mode in network
KR102293037B1 (en) Operation method of communication node in network
KR20170011826A (en) Security method for ethernet based network
KR102446092B1 (en) Method for diagnosing link status in network
KR102352504B1 (en) System for verification of non-registered device based on imformation of ethernet switch and method for the same
KR102355085B1 (en) Operation method of communication node for selective wakeup in vehicle network
KR102390481B1 (en) Operation method of communication node in network
KR102398873B1 (en) Communication node of vehicle network and operating method of the communication node
KR102342000B1 (en) Method and apparatus for playing contents based on presentation time in automotive network
KR102357938B1 (en) Operation method of communication node for mirroring in vehicle network

Legal Events

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