Search

JP-2026075897-A - relay device

JP2026075897AJP 2026075897 AJP2026075897 AJP 2026075897AJP-2026075897-A

Abstract

[Problem] To provide a relay device that can suppress the occurrence of unnecessary waiting time in tools, etc., even if a diagnostic frame is not relayed. [Solution] A relay device for relaying communication between a tool and an ECU, comprising: a buffer for holding frames awaiting relay, a determination unit for determining whether or not an overwrite of a diagnostic frame to be communicated from the ECU to the tool occurs; a storage unit for storing identification information of the ECU that sent the diagnostic frame to be overwritten and data of the diagnostic frame to be overwritten, if the determination unit determines that an overwrite has occurred; and a notification unit for notifying the tool of a relay failure based on the identification information and data stored in the storage unit. [Selection Diagram] Figure 1

Inventors

  • 中村 花穂
  • 石塚 秀
  • 安藤 博哉

Assignees

  • トヨタ自動車株式会社

Dates

Publication Date
20260511
Application Date
20241023

Claims (2)

  1. A relay device that relays communication between a tool and an ECU, A buffer that holds frames awaiting relay is provided with a determination unit that determines whether or not an overwrite occurs in the diagnostic frame to be communicated from the ECU to the tool, If the determination unit determines that the overwrite occurs, the storage unit stores the identification information of the ECU that transmitted the diagnostic frame to be overwritten and the data of the diagnostic frame to be overwritten. A relay device comprising: a notification unit that notifies the tool of a relay failure based on the identification information and data stored in the memory unit.
  2. The relay device according to claim 1, wherein the aforementioned identification information is a CANID.

Description

This disclosure relates to a relay device for relaying communications. Patent Document 1 discloses a relay device that relays data from an electronic control unit (ECU) connected to a network to an external device. Japanese Patent Publication No. 2014-072673 Configuration diagram of a network system including a relay device according to one embodiment of the present disclosure.Processing flowchart for diagnostic frame communication control performed by the relay deviceCommunication sequence diagram using tools, relay devices, and ECUs. The relay device described in this disclosure monitors the buffer and, if a diagnostic frame is overwritten, stores the CANID and data of the source ECU of the overwritten diagnostic frame and notifies the tool of the relay failure. This suppresses unnecessary waiting time in the tool. Hereinafter, one embodiment of this disclosure will be described in detail with reference to the drawings. <Implementation> [composition] Figure 1 is a schematic diagram illustrating a network system including a relay device 200 according to one embodiment of the present disclosure. The network system illustrated in Figure 1 comprises a tool 100, a relay device 200, and a plurality of electronic control units (ECUs) 310-350 and 410-450. The relay device 200 and the plurality of electronic control units (ECUs) 310-350 and 410-450 are mounted, for example, in a vehicle. Tool 100 is connected to a relay device 200 via cables and connectors, and is configured to communicate data with multiple electronic control units (ECUs) 310-350 and 410-450 via the relay device 200. This tool 100 is, as an example, a diagnostic device that performs diagnostic communication with multiple electronic control units (ECUs) 310-350 and 410-450. The relay device 200 is configured to relay data frames communicated between the tool 100 and multiple electronic control units (ECUs) 310-350 and 410-450, which are mounted on the vehicle. This relay device 200 is sometimes referred to as a central gateway (CGW). The relay device 200 comprises a buffer 210, a determination unit 220, a storage unit 230, and a notification unit 240. Buffer 210 is a storage area for temporarily holding frames awaiting relay. In this embodiment, buffer 210 functions as a relay buffer for diagnostic frames to temporarily store diagnostic frames. The determination unit 220 is configured to determine whether or not an overwrite operation by a new diagnostic frame occurs for a diagnostic frame stored in the buffer 210. More specifically, this diagnostic frame is a response frame from multiple electronic control units (ECUs) 310-350 and 410-450 to the tool 100 in response to a data read request transmitted from the tool 100. The storage unit 230 is configured to store the identification information of the electronic control unit (hereinafter referred to as the "source ECU") that transmitted the diagnostic frame, and the data (contents) of the diagnostic frame, for which the determination unit 220 has determined that an overwrite has occurred. This identification information and data are stored in a predetermined memory of the relay device 200 or the storage unit 230. An example of the source ECU's identification information is the source ECU's CANID. The notification unit 240 is configured to notify the tool 100 of a frame relay failure based on the source ECU identification information (CANID) and diagnostic frame data stored in the storage unit 230. Multiple electronic control units (ECUs) 310-350 and 410-450 are configured to communicate with the tool 100 via the relay device 200. ECUs 310-350 are network-connected to the relay device 200 via the first bus 300, and ECUs 410-450 are network-connected to the relay device 200 via the second bus 400. Note that the number of ECUs 310-350 and 410-450 connected to the relay device 200 shown in Figure 1 is an example and not limited to this configuration. [control] Next, with further reference to Figure 2, the control performed by the relay device 200 according to one embodiment of the present disclosure will be described. Figure 2 is a flowchart illustrating an example of the processing procedure for diagnostic frame communication control performed by each component of the relay device 200. The diagnostic frame communication control illustrated in Figure 2 is initiated, for example, when a data read request is sent from tool 100 to multiple electronic control units (ECUs) 310-350 and 410-450. (Step S201) The determination unit 220 of the relay device 200 starts monitoring the buffer 210. This monitoring is performed to detect the occurrence of an action that overwrites a diagnostic frame in the buffer 210. Once the determination unit 220 starts monitoring the buffer 210, the process proceeds to step S202. (Step S202) The determination unit 220 of the relay device 200 determines whether or not a diagnostic frame overwrite occurs in the buffer 210. If it is determined that a diagnostic frame overwrite occurs