Vehicle maintenance device, vehicle maintenance method, and vehicle maintenance program

By dynamically adjusting communication connections based on authentication and speed, the vehicle maintenance device ensures timely message delivery to in-vehicle devices, addressing buffer capacity issues and delays.

WO2026100595A1PCT designated stage Publication Date: 2026-05-15AUTONETWORKS TECH LTD +3
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
AUTONETWORKS TECH LTD
Filing Date
2025-11-05
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing vehicle maintenance devices experience delays in message transmission due to slower communication speeds between the vehicle maintenance device and certain in-vehicle devices, leading to buffer capacity issues and delays in message delivery.

Method used

The vehicle maintenance device employs a switching unit to dynamically adjust the number of communication connections with the in-vehicle relay device based on authentication, communication speed, and message type, ensuring timely message delivery by establishing multiple connections when necessary.

Benefits of technology

This approach prevents delays in message transmission to in-vehicle devices by optimizing communication connections, thereby maintaining efficient message delivery and buffer management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2025038758_15052026_PF_FP_ABST
    Figure JP2025038758_15052026_PF_FP_ABST
Patent Text Reader

Abstract

This vehicle maintenance device comprises: a communication unit capable of communicating with an onboard relay device; and a switching unit that performs a switching process of switching between setting one communication connection between the onboard relay device and the communication unit or setting a plurality of communication connections, the communication connections being for transmitting messages to a plurality of onboard devices via the onboard relay device.
Need to check novelty before this filing date? Find Prior Art

Description

Vehicle maintenance device, vehicle maintenance method, and vehicle maintenance program

[0001] This disclosure relates to a vehicle maintenance device, a vehicle maintenance method, and a vehicle maintenance program. This application claims priority based on Japanese Patent Application No. 2024-195575 filed on November 8, 2024, and incorporates all of its disclosure herein.

[0002] Patent Document 1 (Japanese Unexamined Patent Application Publication No. 2015-147446) discloses the following technology. That is, a vehicle control device has a plurality of unit vehicle control devices mounted on a vehicle and connected by a network, and is a vehicle control device that stores a vehicle identification code for identifying the vehicle in at least one of the unit vehicle control devices. Each of the unit vehicle control devices includes a node that exchanges messages with an external diagnostic device via communication. One of the respective nodes is a representative node, and the unique identification information possessed by the representative node is transferred and stored in other nodes as vehicle identification information. For a vehicle identification request message transmitted from the diagnostic device to each of the nodes, each node returns either a vehicle identification response message including the vehicle identification code and the vehicle identification information stored in each node itself, or a vehicle identification response message not including the vehicle identification code but including the vehicle identification information stored in each node itself.

[0003] Japanese Unexamined Patent Application Publication No. 2015-147446

[0004] The vehicle maintenance device of the present disclosure includes a communication unit capable of communicating with an in-vehicle relay device, and a communication connection for transmitting messages to a plurality of in-vehicle devices via the in-vehicle relay device, and includes a switching unit that performs a switching process of setting one communication connection between the in-vehicle relay device and the communication unit or setting a plurality of communication connections.

[0005] One aspect of the present disclosure can be realized not only as a vehicle maintenance device including such a characteristic processing unit, but also as a semiconductor integrated circuit that realizes part or all of the vehicle maintenance device, or as a system including the vehicle maintenance device.

[0006] Figure 1 is a diagram showing an example of the configuration of an in-vehicle system according to the first embodiment of this disclosure. Figure 2 is a diagram showing an example of IP packets transmitted and received between the in-vehicle relay device and the diagnostic tool according to the first embodiment of this disclosure. Figure 3 is a diagram showing an example of the configuration of an in-vehicle relay device according to the first embodiment of this disclosure. Figure 4 is a diagram showing an example of the configuration of a diagnostic tool according to the first embodiment of this disclosure. Figure 5 is a diagram conceptually showing an example of switching processing by the diagnostic tool according to the first embodiment of this disclosure. Figure 6 is a flowchart defining an example of the operation procedure when the diagnostic tool according to the first embodiment of this disclosure performs switching processing. Figure 7 is a flowchart defining an example of the operation procedure when the diagnostic tool according to the first embodiment of this disclosure performs switching processing. Figure 8 is a flowchart defining an example of the operation procedure when the in-vehicle relay device according to the first embodiment of this disclosure performs authentication processing. Figure 9 is a diagram showing an example of the processing sequence of the diagnostic tool, in-vehicle relay device and in-vehicle equipment according to the first embodiment of this disclosure. Figure 10 is a diagram showing an example of the configuration of a diagnostic tool according to the second embodiment of this disclosure. Figure 11 is a diagram showing an example of a list of reference values ​​held by a diagnostic tool according to the second embodiment of this disclosure. Figure 12 is a flowchart defining an example of the operation procedure when the diagnostic tool according to the second embodiment of this disclosure performs a switching process. Figure 13 is a flowchart defining an example of the operation procedure when the diagnostic tool according to the second embodiment of this disclosure performs a switching process. Figure 14 is a diagram showing an example of the configuration of an in-vehicle system according to the third embodiment of this disclosure. Figure 15 is a diagram showing an example of the configuration of a diagnostic tool according to the third embodiment of this disclosure. Figure 16 is a diagram showing an example of message information held by a diagnostic tool according to the third embodiment of this disclosure. Figure 17 is a diagram showing another example of message information held by a diagnostic tool according to the third embodiment of this disclosure. Figure 18 is a flowchart defining an example of the operation procedure when the diagnostic tool according to the third embodiment of this disclosure performs a switching process. Figure 19 is a diagram showing a modified configuration of an in-vehicle system according to the third embodiment of this disclosure. Figure 20 is a diagram showing an example of message information held by a modified version of the diagnostic tool according to the third embodiment of this disclosure.

[0007] Conventionally, technologies have been developed to diagnose malfunctions in on-board equipment installed in vehicles using vehicle maintenance devices such as diagnostic tools.

[0008] [Problems this disclosure aims to solve] For example, a vehicle maintenance device may transmit packets containing various messages to multiple in-vehicle devices in parallel via an in-vehicle relay device. In this case, for example, the in-vehicle relay device stores packets received from the vehicle maintenance device that are destined for one in-vehicle device and packets destined for other in-vehicle devices in a common buffer.

[0009] In this scenario, the communication speed between the vehicle maintenance device and the vehicle device via the vehicle relay device may be slower than that of other vehicle devices. This could lead to an increase in the number of packets destined for the vehicle device with the slower communication speed being stored in the vehicle relay device's buffer, potentially reducing the available buffer capacity. This could result in delays in messages sent to other vehicle devices.

[0010] This disclosure was made to solve the above-mentioned problems, and its purpose is to provide a vehicle maintenance device, a vehicle maintenance method, and a vehicle maintenance program that can prevent delays in messages transmitted to an in-vehicle device.

[0011] [Effects of this disclosure] According to this disclosure, it is possible to prevent delays in messages transmitted to in-vehicle devices.

[0012] [Description of Embodiments of the Disclosure] First, the contents of the embodiments of the disclosure will be listed and described. (1) The vehicle maintenance device according to the embodiment of the disclosure includes a communication unit that can communicate with an on-board relay device, and a switching unit that performs a switching process to switch between setting up one communication connection between the on-board relay device and the communication unit, or setting up multiple communication connections, for transmitting messages to a plurality of on-board devices via the on-board relay device.

[0013] With this configuration, for example, if there is a possibility of delay in messages destined for a particular in-vehicle device, the number of communication connections set up between the in-vehicle relay device and the relay device can be switched from one to multiple. Therefore, delays in messages sent to the in-vehicle device can be prevented.

[0014] (2) In (1) above, the communication unit may transmit the authentication information of the vehicle maintenance device to the on-board relay device, the communication unit may receive authentication success information from the on-board relay device indicating that the authentication process using the authentication information in the on-board relay device has been successful, and the switching unit may set up multiple communication connections when the authentication success information is received by the communication unit.

[0015] A user may decide to set up multiple communication connections depending on the usage status of the vehicle maintenance equipment. In this case, for example, the user performs an operation on the vehicle maintenance equipment to instruct it to switch the number of communication connections. With the above configuration, if the operation is determined to be performed by a legitimate user using authentication information, setting up multiple communication connections can prevent delays in messages sent to the in-vehicle equipment while ensuring security.

[0016] (3) In (1) above, the switching unit may set up multiple communication connections if the measurement result of the communication speed between the communication unit and any of the multiple in-vehicle devices via the in-vehicle relay device satisfies predetermined conditions.

[0017] With this configuration, for example, if the communication speed with one in-vehicle device becomes slower than that with another in-vehicle device, multiple communication connections can be set up, thereby more reliably preventing delays in messages destined for that other in-vehicle device.

[0018] (4) In (3) above, the vehicle maintenance device may further include a storage unit that holds communication speed information indicating a reference value for the communication speed for each type of message, and the switching unit may perform the switching process based on the difference between the reference value indicated by the communication speed information held in the storage unit and the measurement result.

[0019] This configuration makes it easy to check, using communication speed information, whether the communication speed between the message destination in-vehicle device and other in-vehicle devices is slower than that of other in-vehicle devices.

[0020] (5) In (1) above, the switching unit may perform the switching process according to the type of message that the communication unit transmits to the in-vehicle device via the in-vehicle relay device.

[0021] This configuration allows for a more appropriate determination of whether to establish one or multiple communication connections between the in-vehicle relay device and the in-vehicle device, depending on the type of message to be sent to the in-vehicle device.

[0022] (6) In the above (5), the vehicle maintenance device may further include a storage unit that holds message information indicating the type of message to be transmitted when multiple communication connections are set up, and the switching unit may perform the switching process using the message information held in the storage unit.

[0023] This configuration allows for easy determination, using message information, whether to establish one or multiple communication connections with the in-vehicle relay device.

[0024] (7) In the above (6), the message information may include information indicating the in-vehicle device to which the message is addressed.

[0025] This configuration allows for a more appropriate determination of whether to set up one or multiple communication connections depending on the in-vehicle device to which the message is headed.

[0026] (8) In (6) or (7) above, the message information may include information indicating the type of vehicle to which the message is transmitted.

[0027] For example, if an in-vehicle device is installed in a vehicle of a specific model, the communication speed between that device and the in-vehicle relay device via the in-vehicle relay device may be slower compared to when it is installed in a vehicle of a different model. With the above configuration, it is possible to more appropriately determine whether to set up one communication connection or multiple connections depending on the vehicle model.

[0028] (9) In any of (1) to (8) above, the communication connection may be a communication connection conforming to the TCP / IP standard, and the communication unit may transmit the message conforming to the DoIP standard to the multiple in-vehicle devices via the in-vehicle relay device.

[0029] This configuration makes it possible to prevent delays in messages transmitted to on-board equipment in vehicle maintenance equipment that conform to the DoIP standard, which is widely used in vehicle maintenance.

[0030] (10) A vehicle maintenance method according to an embodiment of the present disclosure is a vehicle maintenance method in a vehicle maintenance device, wherein the vehicle maintenance device includes a communication unit capable of communicating with an on-board relay device, and the vehicle maintenance method is a communication connection for transmitting messages to a plurality of on-board devices via the on-board relay device, and includes a step of switching processing to set up one communication connection between the on-board relay device and the communication unit or to set up a plurality of communication connections.

[0031] This method allows, for example, if there is a possibility of delay in messages destined for a particular in-vehicle device, the number of communication connections established between the in-vehicle relay device and the system can be switched from one to multiple. Therefore, delays in messages sent to the in-vehicle device can be prevented.

[0032] (11) The vehicle maintenance program according to the embodiment of the present disclosure is a vehicle maintenance program used in a vehicle maintenance device, which causes a computer to function as a communication unit that can communicate with an in-vehicle relay device, and a switching unit that performs a switching process to switch between setting up one communication connection between the in-vehicle relay device and the communication unit, or setting up multiple communication connections, for sending messages to a plurality of in-vehicle devices via the in-vehicle relay device.

[0033] With this configuration, for example, if there is a possibility of delay in messages destined for a particular in-vehicle device, the number of communication connections set up between the in-vehicle relay device and the relay device can be switched from one to multiple. Therefore, delays in messages sent to the in-vehicle device can be prevented.

[0034] Embodiments of this disclosure will be described below with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and their descriptions will not be repeated. Furthermore, at least some of the embodiments described below may be combined in any way.

[0035] <First Embodiment> [In-vehicle System] Figure 1 is a diagram showing an example of the configuration of an in-vehicle system according to the first embodiment of the present disclosure. Referring to Figure 1, the in-vehicle system 301 is mounted on a vehicle 1. The in-vehicle system 301 comprises an in-vehicle relay device 101 and a plurality of in-vehicle devices 202. The in-vehicle devices 202 are an example of an in-vehicle device.

[0036] The in-vehicle equipment 202 includes an in-vehicle ECU (Electronic Control Unit), sensors, a navigation system, a human-machine interface, and cameras. The in-vehicle ECU includes an autonomous driving ECU, an engine ECU, a steering control ECU, a brake control ECU, and a TCU (Telematics Communication Unit).

[0037] In the example shown in Figure 1, the in-vehicle system 301 includes in-vehicle devices 202A and 202B, which are in-vehicle devices 202. The in-vehicle relay device 101 and the multiple in-vehicle devices 202 constitute an in-vehicle network 401.

[0038] Note that the in-vehicle system 301 is not limited to a configuration including two in-vehicle devices 202, and may be a configuration including three or more in-vehicle devices 202.

[0039] The in-vehicle relay device 101 is, for example, a gateway device. The in-vehicle relay device 101 relays messages transmitted and received between a plurality of in-vehicle devices 202 connected to itself.

[0040] Each in-vehicle device 202 is connected to the in-vehicle relay device 101 via an Ethernet cable 51, which is a transmission line conforming to the Ethernet (registered trademark) standard, for example.

[0041] More specifically, the in-vehicle relay device 101 includes a plurality of communication ports 11. The communication port 11 is a connector to which the Ethernet cable 51 can be connected. A unique port number N is assigned to each communication port 11.

[0042] In the example shown in FIG. 1, the in-vehicle relay device 101 includes communication ports 11A, 11B, and 11C, which are communication ports 11. The in-vehicle devices 202A and 202B are respectively connected to the communication ports 11A and 11B via the Ethernet cable 51.

[0043] Note that the in-vehicle relay device 101 is not limited to a configuration including three communication ports 11, and may be a configuration including four or more communication ports 11.

[0044] Also, the in-vehicle relay device 101 relays messages transmitted and received between the diagnostic tool 250 connected to itself and the in-vehicle devices 202.

[0045] (Diagnostic Tool) When fault diagnosis of the in-vehicle device 202 and update of software incorporated in the in-vehicle device 202 are performed, etc., the diagnostic tool 250 is connected to the in-vehicle relay device 101. In the example shown in FIG. 1, the diagnostic tool 250 is connected to the communication port 11C of the in-vehicle relay device 101 via the Ethernet cable 51. The diagnostic tool 250 is an example of a vehicle maintenance device.

[0046] The diagnostic tool 250 is a tool that complies with DoIP (Diagnostics over Internet Protocol), which is a communication standard defined in ISO 13400, for example. The diagnostic tool 250 is used at the dealership of the vehicle 1, the vehicle manufacturing plant of the vehicle 1, and the like.

[0047] Data is exchanged between the diagnostic tool 250 and the in-vehicle relay device 101 using, for example, IP packets. The IP packets are stored in Ethernet frames and transmitted.

[0048] (TCP connection) The diagnostic tool 250 establishes a communication connection for exchanging predetermined messages in accordance with a connection-type protocol, and transmits and receives IP packets including messages to and from the in-vehicle relay device 101.

[0049] FIG. 2 is a diagram showing an example of an IP packet transmitted and received between the in-vehicle relay device according to the first embodiment of the present disclosure and the diagnostic tool.

[0050] Referring to FIG. 2, the diagnostic tool 250 and the in-vehicle relay device 101 transmit and receive IP packets in accordance with the TCP (Transmission Control Protocol) / IP standard. The diagnostic tool 250 and the in-vehicle relay device 101 establish a communication connection (hereinafter, also referred to as a "TCP connection") in accordance with the TCP / IP standard by a three-way handshake.

[0051] More specifically, the diagnostic tool 250 creates an IP packet (hereinafter, also referred to as a "SYN packet") including a TCP packet in which the SYN (synchronize) flag in the TCP header is set to on, and transmits the created SYN packet to the in-vehicle relay device 101.

[0052] When the in-vehicle relay device 101 receives a SYN packet from the diagnostic tool 250, it creates an IP packet (hereinafter also referred to as a "SYN / ACK packet") that includes a TCP packet with the SYN flag and ACK flag set to ON in the TCP header, and sends the IP packet containing the created SYN / ACK packet to the diagnostic tool 250.

[0053] When the diagnostic tool 250 receives a SYN / ACK packet from the in-vehicle relay device 101, it creates an IP packet (hereinafter also referred to as an "ACK packet") containing a TCP packet with the ACK flag in the TCP header set to ON, and sends the created ACK packet to the in-vehicle relay device 101. This establishes a TCP connection between the diagnostic tool 250 and the in-vehicle relay device 101.

[0054] Furthermore, when the diagnostic tool 250 terminates the TCP connection with the in-vehicle relay device 101, it creates an IP packet (hereinafter also referred to as a "FIN packet") containing a TCP packet with the FIN (finish) flag in the TCP header set to ON, and sends the created FIN packet to the in-vehicle relay device 101.

[0055] When the in-vehicle relay device 101 receives a FIN packet from the diagnostic tool 250, it creates an IP packet (hereinafter also referred to as a "FIN / ACK packet") containing a TCP packet in which the FIN flag and ACK flag in the TCP header are set to ON, and sends the created FIN / ACK packet to the diagnostic tool 250.

[0056] When the diagnostic tool 250 receives a FIN / ACK packet from the in-vehicle relay device 101, it creates an ACK packet and sends the created ACK packet to the in-vehicle relay device 101. This terminates the TCP connection between the diagnostic tool 250 and the in-vehicle relay device 101.

[0057] During the TCP connection period A with the in-vehicle relay device 101, the diagnostic tool 250 sends one or more IP packets to the destination in-vehicle device 202 via the in-vehicle relay device 101.

[0058] More specifically, for example, the diagnostic tool 250 sends an IP packet containing a message M that conforms to the DoIP standard (hereinafter also referred to as a "DoIP packet") to the destination in-vehicle device 202 via the in-vehicle relay device 101.

[0059] Specifically, the diagnostic tool 250 creates a DoIP packet that includes message M and the SID (Service Identifier) ​​corresponding to message M, and which includes its own IP address and the IP address of the destination in-vehicle device 202 as the source address and destination address, respectively.

[0060] The diagnostic tool 250 then sends the created DoIP packet to the in-vehicle relay device 101.

[0061] (In-vehicle relay device) Figure 3 is a diagram showing an example of the configuration of an in-vehicle relay device according to a first embodiment of the present disclosure. Referring to Figure 3, the in-vehicle relay device 101 comprises a communication port 11, a relay unit 12, a processing unit 13, and a storage unit 14. The processing unit 13 includes an authentication processing unit 21 and a setting unit 22. One or both of the relay unit 12 and the processing unit 13 are implemented by a processing circuit (Circuitry) including, for example, one or more processors. The storage unit 14 is, for example, a non-volatile memory included in the processing circuit.

[0062] <Ethernet frame relay> The relay unit 12 relays Ethernet frames transmitted and received between in-vehicle devices 202 connected to its own in-vehicle relay device 101.

[0063] The storage unit 14 stores an address table that shows the correspondence between the port number N of the communication port 11 and the MAC (Media Access Control) address of the device connected to the communication port 11.

[0064] When the relay unit 12 receives an Ethernet frame containing a message from a certain in-vehicle device 202, it uses the address table in the storage unit 14 to transmit the Ethernet frame to the destination in-vehicle device 202.

[0065] <Notification of window size> The setting unit 22 sets the TCP window size, which is the data size corresponding to the maximum number of DoIP packets per unit time that the diagnostic tool 250 can send to the in-vehicle relay device 101.

[0066] More specifically, the setting unit 22 performs a setting process to set the TCP window size when a TCP connection is established between the diagnostic tool 250 and its own in-vehicle relay device 101.

[0067] Specifically, the configuration unit 22 monitors the IP packets received by the relay unit 12 and checks the contents of the packets by referring to the TCP header of the IP packets.

[0068] The configuration unit 22 determines that a TCP connection has been established between the diagnostic tool 250 and its own in-vehicle relay device 101 if the IP packet received by the relay unit 12 is an ACK packet for a SYN / ACK packet.

[0069] When the configuration unit 22 determines that a TCP connection has been established between the diagnostic tool 250 and its own in-vehicle relay device 101, it calculates the TCP window size using a predetermined calculation method. The configuration unit 22 then notifies the relay unit 12 of the calculated TCP window size.

[0070] When the relay unit 12 receives a notification from the configuration unit 22, it creates an IP packet (hereinafter also referred to as a "notification packet") that includes the notified TCP window size and contains the IP address of its own in-vehicle relay device 101 and the IP address of the diagnostic tool 250 as the source address and destination IP address, respectively. The relay unit 12 then sends the created notification packet to the diagnostic tool 250.

[0071] When the diagnostic tool 250 receives a notification packet from the in-vehicle relay device 101, it creates a number of DoIP packets corresponding to the TCP window size contained in the received notification packet and sends them to the in-vehicle relay device 101.

[0072] [Explanation of the problem] Referring again to Figure 1, when the in-vehicle relay device 101 receives a DoIP packet from the diagnostic tool 250, it stores the received DoIP packet in a buffer. The in-vehicle relay device 101 then identifies the port number N corresponding to the destination IP address contained in the DoIP packet and transmits the DoIP packet stored in the buffer to the in-vehicle device 202 connected to the communication port 11 of port number N.

[0073] For example, when updating the software embedded in each in-vehicle device 202, the diagnostic tool 250 simultaneously transmits a DoIP packet P1 destined for in-vehicle device 202A and a DoIP packet P2 destined for in-vehicle device 202B. In this case, the in-vehicle relay device 101 stores each DoIP packet received from the diagnostic tool 250 in a common buffer.

[0074] In this case, the processing capabilities of in-vehicle devices 202A and 202B may differ. Also, the characteristics of the Ethernet cable 51 between the in-vehicle relay device 101 and in-vehicle device 202A, and the characteristics of the Ethernet cable 51 between the in-vehicle relay device 101 and in-vehicle device 202B may differ. Furthermore, the transmission method between the in-vehicle relay device 101 and in-vehicle device 202A may differ from the transmission method between the in-vehicle relay device 101 and in-vehicle device 202B. In such cases, the communication speed between the diagnostic tool 250 and one of the in-vehicle devices 202 via the in-vehicle relay device 101 may be slower than that of the other in-vehicle device 202.

[0075] In the example shown in Figure 1, the processing capacity of the in-vehicle device 202A is assumed to be smaller than the processing capacity of the in-vehicle device 202B. In this case, for example, the communication speed V1 between the diagnostic tool 250 and the in-vehicle device 202A via the in-vehicle relay device 101 will be smaller than the communication speed V2 between the diagnostic tool 250 and the in-vehicle device 202B via the in-vehicle relay device 101.

[0076] When the communication speed V1 is lower than the communication speed V2, if the diagnostic tool 250 transmits DoIP packets P1 and P2 in parallel, the number of DoIP packets P1 stored in the buffer of the in-vehicle relay device 101 may increase, and the available capacity of the buffer may decrease. In this case, a delay in DoIP packets P2 may occur depending on the communication speed V1.

[0077] Therefore, the diagnostic tool according to the embodiment of this disclosure solves the above problem through the following configuration and operation.

[0078] [Diagnostic Tool] Figure 4 shows an example of the configuration of a diagnostic tool according to a first embodiment of the present disclosure. Referring to Figure 4, the diagnostic tool 250 comprises a communication unit 41, a processing unit 42, and a storage unit 43. The processing unit 42 includes a reception unit 61, an authentication request unit 62, a switching unit 63, and a packet creation unit 64. One or both of the communication unit 41 and the processing unit 42 are implemented by a processing circuit (Circuitry) including one or more processors. The storage unit 43 is, for example, a non-volatile memory included in the processing circuit.

[0079] The communication unit 41 can communicate with the in-vehicle relay device 101 via the Ethernet cable 51.

[0080] The switching unit 63 performs a switching process to either set up one TCP connection between the in-vehicle relay device 101 and the communication unit 41, or set up multiple TCP connections. Hereinafter, the mode in which one TCP connection is set up and the mode in which multiple TCP connections are set up will also be referred to as usage mode Md1 and usage mode Md2, respectively.

[0081] More specifically, the switching unit 63 performs a switching process when the user performs an operation to instruct the user to switch from usage mode Md1 to usage mode Md2.

[0082] For example, if the usage status of the diagnostic tool 250 is of a specific nature (hereinafter also referred to as "specific status"), the user performs an operation to input switching request information indicating a request to switch from usage mode Md1 to usage mode Md2. The above specific status may include updating the software incorporated in each in-vehicle device 202.

[0083] In the diagnostic tool 250, the reception unit 61 receives an input operation Q1 from the user regarding a switching request. Upon receiving the input operation Q1, the reception unit 61 outputs operation information S1 indicating that the input operation Q1 has been received to the authentication request unit 62.

[0084] For example, the storage unit 43 stores authentication information B. Authentication information B includes, for example, identification information for identifying a user (hereinafter also referred to as "User ID (Identifier)") and a password. The authentication information may also be a certificate.

[0085] When the authentication request unit 62 receives operation information S1 from the reception unit 61, it outputs the authentication information B stored in the storage unit 43 to the communication unit 41.

[0086] For example, the communication unit 41 transmits authentication information B to the in-vehicle relay device 101. More specifically, when the communication unit 41 receives authentication information B from the authentication request unit 62, it transmits authentication information B to the in-vehicle relay device 101.

[0087] [Authentication Process] Referring again to Figure 3, in the in-vehicle relay device 101, when the relay unit 12 receives authentication information B from the diagnostic tool 250, it outputs the received authentication information B to the authentication processing unit 21.

[0088] When the authentication processing unit 21 receives authentication information B from the relay unit 12, it performs authentication processing of the diagnostic tool 250 using the authentication information B.

[0089] If the authentication process is successful, the authentication processing unit 21 outputs authentication success information to the relay unit 12, indicating that the authentication process was successful.

[0090] When the relay unit 12 receives authentication success information from the authentication processing unit 21, it transmits the authentication success information to the diagnostic tool 250.

[0091] On the other hand, if the authentication process fails, the authentication processing unit 21 transmits authentication failure information indicating that the authentication process failed to a navigation device (not shown) via the relay unit 12.

[0092] For example, when the navigation system receives authentication failure information from the in-vehicle relay device 101, it displays a screen showing the contents of the received authentication failure information on its own monitor or the like.

[0093] Furthermore, the authentication processing unit 21 is not limited to a configuration that performs authentication processing using authentication information B, but may also be configured to perform CHAP (Challenge-Handshake Authentication Protocol) authentication with the diagnostic tool 250.

[0094] [Switching Process] Referring again to Figure 4, in the diagnostic tool 250, when the communication unit 41 receives authentication success information from the in-vehicle relay device 101, it outputs the received authentication success information to the switching unit 63.

[0095] For example, when the switching unit 63 receives authentication success information from the communication unit 41, it sets up multiple TCP connections.

[0096] More specifically, when the switching unit 63 receives authentication success information from the communication unit 41, it sets up multiple TCP connections. In this embodiment, for example, the switching unit 63 sets up multiple TCP connections, namely TCP connections Tc1 and Tc2. TCP connection Tc2 is a TCP connection that is newly established in usage mode Md2.

[0097] Specifically, for example, when the switching unit 63 receives authentication success information from the communication unit 41, it outputs an additional request notification K1 to the packet creation unit 64 indicating that it requests the establishment of a new TCP connection.

[0098] When the packet creation unit 64 receives an additional request notification K1 from the switching unit 63, it establishes a TCP connection Tc2 between its diagnostic tool 250 and the in-vehicle relay device 101.

[0099] Specifically, when the packet creation unit 64 receives an additional request notification K1 from the switching unit 63, it creates the SYN packet shown in Figure 2 and transmits it to the in-vehicle relay device 101 via the communication unit 41.

[0100] Then, when the packet creation unit 64 receives a SYN / ACK packet from the in-vehicle relay device 101 via the communication unit 41, it transmits an ACK packet to the in-vehicle relay device 101 via the communication unit 41. This establishes a TCP connection Tc2 between the diagnostic tool 250 and the in-vehicle relay device 101.

[0101] The packet creation unit 64, with TCP connections Tc1 and Tc2 established, transmits a DoIP packet P1 destined for the in-vehicle device 202A to the in-vehicle relay device 101 using TCP connection Tc1. Similarly, the diagnostic tool 250, with TCP connections Tc1 and Tc2 established, transmits a DoIP packet P2 destined for the in-vehicle device 202B to the in-vehicle relay device 101 using TCP connection Tc2.

[0102] More specifically, for example, when TCP connections Tc1 and Tc2 are established, the packet creation unit 64 transmits a DoIP packet P1 to the in-vehicle relay device 101 via the communication unit 41. This DoIP packet P1 includes the IP address of the in-vehicle device 202A as the destination IP address and the number of the logical port corresponding to the in-vehicle device 202A.

[0103] For example, when TCP connections Tc1 and Tc2 are established, the packet creation unit 64 transmits a DoIP packet P2 to the in-vehicle relay device 101 via the communication unit 41. This packet P2 includes the IP address of the in-vehicle device 202B as the destination IP address and the number of the logical port corresponding to the in-vehicle device 202B.

[0104] Figure 5 is a conceptual diagram illustrating an example of a switching process using a diagnostic tool according to the first embodiment of this disclosure.

[0105] Referring to Figure 5, under normal circumstances, the diagnostic tool 250 establishes a TCP connection Tc1 with the in-vehicle relay device 101 and then sends a DoIP packet (hereinafter also referred to as "DoIP packet P1") destined for the in-vehicle device 202A to the in-vehicle relay device 101 (step ST1).

[0106] Next, when the in-vehicle relay device 101 receives a DoIP packet P1 from the diagnostic tool 250, it transmits the received DoIP packet P1 to the in-vehicle device 202A (step ST2).

[0107] Next, the diagnostic tool 250 sends a DoIP packet (hereinafter also referred to as "DoIP packet P2") destined for the in-vehicle device 202B to the in-vehicle relay device 101 (step ST3).

[0108] Next, when the in-vehicle relay device 101 receives a DoIP packet P2 from the diagnostic tool 250, it transmits the received DoIP packet P2 to the in-vehicle device 202B (step ST4).

[0109] Next, when the diagnostic tool 250 receives the user's input operation Q1 for switching request information, it establishes TCP connection Tc2 in addition to TCP connection Tc1 with the in-vehicle relay device 101. Then, the diagnostic tool 250 sends DoIP packet P1 to the in-vehicle relay device 101 using TCP connection Tc1 (step ST5).

[0110] Next, when the in-vehicle relay device 101 receives a DoIP packet P1 from the diagnostic tool 250, it transmits the received DoIP packet P1 to the in-vehicle device 202A (step ST6).

[0111] Next, the diagnostic tool 250 sends a DoIP packet P2 to the in-vehicle relay device 101 using the TCP connection Tc2 (step ST7).

[0112] Next, when the in-vehicle relay device 101 receives a DoIP packet P2 from the diagnostic tool 250, it transmits the received DoIP packet P2 to the in-vehicle device 202B (step ST8).

[0113] Referring again to Figure 4, in the diagnostic tool 250, the reception unit 61 receives an input operation Q2 of termination request information indicating a request to terminate the usage mode Md2. Upon receiving the input operation Q2, the reception unit 61 outputs operation information S2 indicating that the input operation Q2 has been received to the switching unit 63.

[0114] When the switching unit 63 receives operation information S2 from the reception unit 61, it outputs a termination request notification K2 to the packet creation unit 64 indicating that it requests the termination of the newly established TCP connection.

[0115] When the packet creation unit 64 receives a termination request notification K2 from the switching unit 63, it terminates the TCP connection Tc2 that was newly established in the usage mode Md2.

[0116] Specifically, when the packet creation unit 64 receives a termination request notification K2 from the switching unit 63, it creates the FIN packet shown in Figure 2 and transmits it to the in-vehicle relay device 101 via the communication unit 41.

[0117] Then, when the packet creation unit 64 receives a FIN / ACK packet from the in-vehicle relay device 101 via the communication unit 41, it transmits an ACK packet to the in-vehicle relay device 101 via the communication unit 41. As a result, the TCP connection Tc2 newly established in the usage mode Md2 is terminated.

[0118] (DoIP packet relay) Referring again to Figure 3, the relaying process of DoIP packets in the in-vehicle relay device 101 will be explained. In the in-vehicle relay device 101, the relay unit 12 relays DoIP packets transmitted and received between the diagnostic tool 250 and the in-vehicle equipment 202.

[0119] For example, the storage unit 14 includes a plurality of buffers 30. In the example shown in Figure 3, the storage unit 14 includes buffers 30A and 30B, which are buffers 30.

[0120] <Normal operation> Under normal operation, for example, when the relay unit 12 receives a DoIP packet from the diagnostic tool 250, it stores the received DoIP packet in the buffer 30A.

[0121] For example, the storage unit 14 stores a port table that shows the correspondence between an IP address and the port number N of the communication port 11.

[0122] When the relay unit 12 stores the received DoIP packet in the buffer 30A, it checks the port number N corresponding to the destination IP address contained in the DoIP packet by referring to the port table in the storage unit 14.

[0123] When the relay unit 12 confirms the port number N, it refers to the address table in the storage unit 14 to identify the MAC address corresponding to that port number N.

[0124] The relay unit 12 then transmits an Ethernet frame containing the identified MAC address as the destination MAC address and the DoIP packet stored in buffer 30A from the communication port 11 of the identified port number N to the destination in-vehicle device 202.

[0125] When the in-vehicle device 202 receives a DoIP packet from the in-vehicle relay device 101, it sends a response packet to the diagnostic tool 250 via the in-vehicle relay device 101 indicating that it has received the DoIP packet and the SID included in the DoIP.

[0126] The in-vehicle device 202 then performs predetermined processing based on the received DoIP packet. For example, if the DoIP packet contains a message M requesting the diagnostic tool 250 to acquire data necessary for fault diagnosis, the in-vehicle device 202 acquires that data.

[0127] <In specific situations> After receiving authentication success information from the authentication processing unit 21, the relay unit 12 receives a DoIP packet from the diagnostic tool 250 and confirms the TCP connection used to send the DoIP packet by checking the pair of destination IP address and logical port number contained in the received DoIP packet.

[0128] For example, when a DoIP packet is transmitted by the diagnostic tool 250 using the TCP connection Tc1, the relay unit 12 stores the DoIP packet in buffer 30A. In this embodiment, the relay unit 12 stores the DoIP packet P1 in buffer 30A.

[0129] Furthermore, for example, if a DoIP packet is transmitted using a TCP connection Tc2 by the diagnostic tool 250, the relay unit 12 stores the DoIP packet in buffer 30B. In this embodiment, the relay unit 12 stores the DoIP packet P2 in buffer 30B.

[0130] The relay unit 12 stores the received DoIP packet in one of the buffers 30A and 30B, buffer 30.

[0131] Then, when the relay unit 12 relays a DoIP packet P1 stored in the buffer 30A, it sends an Ethernet frame to the in-vehicle device 202A that includes the DoIP packet P1 and includes the MAC address of the in-vehicle device 202A as the destination MAC address.

[0132] Furthermore, when the relay unit 12 relays a DoIP packet P2 stored in buffer 30B, it sends an Ethernet frame to the in-vehicle device 202B that includes the DoIP packet P2 and includes the MAC address of the in-vehicle device 202B as the destination MAC address.

[0133] [Operation Flow] Figures 6 and 7 are flowcharts that define an example of the operation procedure when the diagnostic tool according to the first embodiment of this disclosure performs a switching process.

[0134] Referring to Figures 6 and 7, first, once the diagnostic tool 250 establishes a TCP connection Tc1 with the in-vehicle relay device 101 (YES in step ST101), it waits for the user to input switching request information Q1 (NO in step ST102).

[0135] Then, when the diagnostic tool 250 receives input operation Q1 (YES in step ST102), it transmits the authentication information B stored in the memory unit 35 to the in-vehicle relay device 101 (step ST103).

[0136] Next, the diagnostic tool 250 waits for the reception of authentication success information from the in-vehicle relay device 101 (NO in step ST104).

[0137] Then, when the diagnostic tool 250 receives authentication success information from the in-vehicle relay device 101 (YES in step ST104), it sets up multiple TCP connections. For example, as described above, in addition to TCP connection Tc1, the diagnostic tool 250 establishes TCP connection Tc2 with the in-vehicle relay device 101 (step ST105).

[0138] Next, the diagnostic tool 250 sends a DoIP packet P1 to the in-vehicle relay device 101, with the in-vehicle device 202A as the destination. For example, as described above, the diagnostic tool 250 sends a DoIP packet P1 to the in-vehicle relay device 101 that includes the IP address of the in-vehicle device 202A as the destination IP address and also includes the number of the logical port corresponding to the in-vehicle device 202A (step ST106).

[0139] Furthermore, the diagnostic tool 250 sends a DoIP packet P2 to the in-vehicle relay device 101, with the in-vehicle device 202B as the destination. For example, as described above, the diagnostic tool 250 sends a DoIP packet P2 to the in-vehicle relay device 101 that includes the IP address of the in-vehicle device 202B as the destination IP address and also includes the number of the logical port corresponding to the in-vehicle device 202B (step ST107).

[0140] Next, the diagnostic tool 250 waits for the user to input termination request information Q2 (NO in step ST108).

[0141] Next, when the diagnostic tool 250 receives input operation Q2 (YES in step ST108), it terminates the TCP connection Tc2 (step ST109) and waits for a new input operation Q1 from the user (NO in step ST102).

[0142] Figure 8 is a flowchart illustrating an example of the operation procedure when an in-vehicle relay device according to the first embodiment of this disclosure performs authentication processing.

[0143] Referring to Figure 8, first, when the in-vehicle relay device 101 establishes a TCP connection Tc1 with the diagnostic tool 250 (NO in step ST201), it waits for the reception of authentication information B from the diagnostic tool 250 (NO in step ST202).

[0144] Then, when the in-vehicle relay device 101 receives authentication information B from the diagnostic tool 250 (YES in step ST202), it performs authentication processing on the diagnostic tool 250 (step ST203).

[0145] Next, if the authentication process of the diagnostic tool 250 fails (NO in step ST204), the in-vehicle relay device 101 transmits authentication failure information indicating that the authentication process failed to the navigation device (step ST205), and waits to receive new authentication information B from the diagnostic tool 250 (NO in step ST202).

[0146] On the other hand, if the authentication process of the diagnostic tool 250 is successful (YES in step ST204), the in-vehicle relay device 101 transmits authentication success information to the diagnostic tool 250 indicating that the authentication process was successful (step ST206).

[0147] Next, the in-vehicle relay device 101 transmits authentication success information to the diagnostic tool 250 and then waits for the reception of a DoIP packet from the diagnostic tool 250 (NO in step ST207).

[0148] Next, when the in-vehicle relay device 101 receives a DoIP packet from the diagnostic tool 250 (YES in step ST207), it checks whether the TCP connection used to transmit the DoIP packet is TCP connection Tc1 or TCP connection Tc2. For example, as described above, the in-vehicle relay device 101 checks the TCP connection by checking the pair of destination IP address and logical port number contained in the received DoIP packet (step ST208).

[0149] Then, if the TCP connection used to transmit the received DoIP packet is TCP connection Tc1 (YES in step ST208), the in-vehicle relay device 101 stores the DoIP packet in buffer 30A (step ST209).

[0150] Next, the in-vehicle relay device 101 performs relay processing on the DoIP packets stored in the buffer 30A. For example, as described above, the in-vehicle relay device 101 performs the relay processing using the port table and address table in the storage unit 14 (step ST210), and waits for the reception of new DoIP packets from the diagnostic tool 250 (NO in step ST207).

[0151] On the other hand, if the TCP connection used to transmit the received DoIP packet is TCP connection Tc2 (NO in step ST208), the in-vehicle relay device 101 stores the DoIP packet in buffer 30B (step ST211).

[0152] Next, the in-vehicle relay device 101 performs relay processing on the DoIP packets stored in buffer 30B. For example, as described above, the in-vehicle relay device 101 performs the relay processing using the port table and address table in the storage unit 14 (step ST210), and waits for the reception of new DoIP packets from the diagnostic tool 250 (NO in step ST207).

[0153] Figure 9 shows an example of a processing sequence for a diagnostic tool, an in-vehicle relay device, and an in-vehicle device according to the first embodiment of this disclosure.

[0154] Referring to Figure 9, first, when the diagnostic tool 250 receives the input operation Q1 for switching request information while a TCP connection Tc1 with the in-vehicle relay device 101 has been established (step ST301), it transmits the authentication information B stored in the storage unit 43 to the in-vehicle relay device 101 (step ST303).

[0155] Next, when the in-vehicle relay device 101 receives authentication information B from the diagnostic tool 250, it performs the authentication process on the diagnostic tool 250. Here, we assume that the authentication process is successful (step ST304).

[0156] Next, the in-vehicle relay device 101 transmits authentication success information to the diagnostic tool 250, indicating that the authentication process of the diagnostic tool 250 has been successful (step ST305).

[0157] Next, when the diagnostic tool 250 receives authentication success information from the in-vehicle relay device 101, it sets up multiple TCP connections. For example, as described above, in addition to TCP connection Tc1, the diagnostic tool 250 establishes TCP connection Tc2 with the in-vehicle relay device 101 (step ST306).

[0158] Next, with TCP connections Tc1 and Tc2 established with the in-vehicle relay device 101, the diagnostic tool 250 sends a DoIP packet P1 destined for the in-vehicle device 202A to the in-vehicle relay device 101 using TCP connection Tc1 (step ST307).

[0159] Furthermore, when TCP connections Tc1 and Tc2 with the in-vehicle relay device 101 are established, the diagnostic tool 250 sends a DoIP packet P2 destined for the in-vehicle device 202B to the in-vehicle relay device 101 using TCP connection Tc2 (step ST308).

[0160] Next, when the in-vehicle relay device 101 receives a DoIP packet P1 from the diagnostic tool 250, it stores the received DoIP packet P1 in the buffer 30A (step ST309) and performs relay processing on the DoIP packet P1 (step ST311).

[0161] Furthermore, when the in-vehicle relay device 101 receives a DoIP packet P2 from the diagnostic tool 250, it stores the received DoIP packet P2 in the buffer 30B (step ST312) and performs relay processing on the DoIP packet P2 (step ST313).

[0162] Next, when the in-vehicle device 202A receives a DoIP packet P1 from the in-vehicle relay device 101, it sends a response packet to the in-vehicle relay device 101 indicating that it has received the DoIP packet P1 (step ST314).

[0163] Next, when the in-vehicle relay device 101 receives a response packet from the in-vehicle equipment 202A, it transmits the received response packet to the diagnostic tool 250 (step ST315).

[0164] Next, when the in-vehicle device 202B receives a DoIP packet P2 from the in-vehicle relay device 101, it sends a response packet to the in-vehicle relay device 101 indicating that it has received the DoIP packet P2 (step ST316).

[0165] Next, when the in-vehicle relay device 101 receives a response packet from the in-vehicle equipment 202B, it transmits the received response packet to the diagnostic tool 250 (step ST317).

[0166] Next, when the in-vehicle relay device 101 receives the user's input operation Q2 for termination request information (step ST318), it terminates the TCP connection Tc2 with the in-vehicle relay device 101 (step ST319).

[0167] Next, other embodiments of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and their descriptions will not be repeated.

[0168] <Second Embodiment> In the first embodiment of the present disclosure described above, the diagnostic tool 250 performs a switching process when the user performs an operation to instruct a switch from usage mode Md1 to usage mode Md2. In contrast, in the second embodiment of the present disclosure, the diagnostic tool 250 performs a switching process based on the measurement result of the communication speed between the in-vehicle equipment 202 via the in-vehicle relay device 101. Except for the contents described below, it is the same as the diagnostic tool 250 according to the first embodiment.

[0169] [Diagnostic Tool] Figure 10 shows an example of the configuration of a diagnostic tool according to a second embodiment of the present disclosure. Referring to Figure 10, the diagnostic tool 250A has a processing unit 42A instead of a processing unit 42, compared to the diagnostic tool 250 shown in Figure 4. Compared to the processing unit 42 shown in Figure 4, the processing unit 42A does not include a reception unit 61 and an authentication request unit 62, and further includes a measurement unit 65.

[0170] (Measurement Unit) For example, the measurement unit 65 performs a measurement process to measure the communication speed between the communication unit 41 and the in-vehicle equipment 202 via the in-vehicle relay device 101.

[0171] More specifically, for example, the measurement unit 65 measures the time from when the communication unit 41 sends a DoIP packet from the diagnostic tool 250A to the destination in-vehicle device 202 until the communication unit 41 receives a response packet from the in-vehicle device 202 (hereinafter also referred to as "communication time E") as the communication speed.

[0172] Specifically, when the communication unit 41 transmits a DoIP packet received from the diagnostic tool 250A to the destination in-vehicle device 202, it outputs a transmission notification to the measurement unit 65 indicating the type of message M contained in the DoIP packet (hereinafter also referred to as the "message label") and that the DoIP packet has been transmitted to the in-vehicle device 202.

[0173] Furthermore, when the communication unit 41 receives a response packet from the in-vehicle device 202, it outputs a message label contained in the response packet and a reception notification to the measurement unit 65 indicating that the response packet has been received from the in-vehicle device 202.

[0174] When the measurement unit 65 receives a transmission notification from the communication unit 41 and then receives a reception notification containing the same message label as the transmission notification, it measures the time from receiving the transmission notification to receiving the reception notification as the communication time E.

[0175] The measurement unit 65 then outputs measurement result information, including the measurement result and a message label corresponding to the measurement result, to the switching unit 63.

[0176] (Switching process) For example, the switching unit 63 sets up multiple TCP connections if the measurement result of the communication time E measured by the measurement unit 65 satisfies predetermined conditions.

[0177] More specifically, for example, the switching unit 63 sets up multiple TCP connections when the comparison result between the measurement result measured by the measurement unit 65 and the reference value G satisfies predetermined conditions.

[0178] Figure 11 shows an example of a list of reference values ​​held by a diagnostic tool according to a second embodiment of the present disclosure.

[0179] Referring to Figure 11, for example, the storage unit 43 holds a reference value list L indicating a reference value G for the communication time E for each message label. The reference value list L is an example of communication speed information.

[0180] In the example shown in Figure 11, in the reference value list L, the reference value G corresponding to message label "M1" and the reference value G corresponding to message label "M2" are "2ms" and "5ms," respectively.

[0181] Referring again to Figure 10, for example, the switching unit 63 performs a switching process based on the difference between the reference value G indicated in the reference value list L held in the storage unit 43 and the measurement result of the communication time E measured by the measurement unit 65.

[0182] Specifically, when the switching unit 63 receives measurement result information from the measurement unit 65, it refers to the reference value list L in the storage unit 43 to identify the reference value G corresponding to the message label included in the measurement result information.

[0183] When the switching unit 63 identifies a reference value G, it calculates a value F by subtracting the reference value G from the measurement result information received from the measurement unit 65. Then, the switching unit 63 compares the calculated value F with the threshold value Th.

[0184] If the calculated value F is greater than or equal to the threshold Th, the switching unit 63 outputs an additional request notification K1 to the packet creation unit 64.

[0185] On the other hand, if the calculated value F is less than the threshold Th, the switching unit 63 does not output an additional request notification K1 to the packet creation unit 64.

[0186] [Operation Flow] Figures 12 and 13 are flowcharts that define an example of the operation procedure when the diagnostic tool according to the second embodiment of the present disclosure performs a switching process.

[0187] Referring to Figures 12 and 13, first, when the diagnostic tool 250A establishes a TCP connection Tc1 with the in-vehicle relay device 101 (YES in step ST401), it sends a DoIP packet P1 destined for the in-vehicle device 202A to the in-vehicle relay device 101 using the TCP connection Tc1 (step ST402).

[0188] Furthermore, the diagnostic tool 250A sends a DoIP packet P2 destined for the in-vehicle device 202B to the in-vehicle relay device 101 using the TCP connection Tc1 (step ST403).

[0189] Next, the diagnostic tool 250A waits for response packets from each in-vehicle device 202 (NO in step ST404).

[0190] Then, when the diagnostic tool 250A receives a response packet from each in-vehicle device 202 (YES in step ST404), it performs a measurement process to measure the communication speed between itself and the in-vehicle device 202 via the in-vehicle relay device 101. For example, as described above, the diagnostic tool 250A measures the communication time E from the time it sends a DoIP packet to the in-vehicle device 202 via the in-vehicle relay device 101 until it receives a response packet from the in-vehicle device 202 as the communication speed (step ST405).

[0191] Next, the diagnostic tool 250A checks whether the comparison result between the measured communication time E and the reference value G satisfies predetermined conditions. For example, as described above, the diagnostic tool 250A uses the reference value list L in the storage unit 43 to calculate a value F by subtracting the reference value G corresponding to the measured communication time E from the measured communication time E. Then, the diagnostic tool 250A checks whether the value F is greater than or equal to the threshold Th (step ST406).

[0192] Then, if the diagnostic tool 250A finds that the comparison result between the measured communication time E and the reference value G does not meet a predetermined condition (NO in step ST406), it maintains the operating mode Md1 (step ST407) and transmits new DoIP packets P1 and P2 (steps ST402 and ST403).

[0193] On the other hand, the diagnostic tool 250A sets up multiple TCP connections if the comparison result between the measurement result of the communication time E and the reference value G satisfies predetermined conditions (YES in step ST406). For example, as described above, the diagnostic tool 250A transitions from usage mode Md1 to usage mode Md2 and establishes TCP connection Tc2 with the in-vehicle relay device 101 in addition to TCP connection Tc1 (step ST408).

[0194] Next, the diagnostic tool 250A transmits the DoIP packet P1 to the in-vehicle relay device 101 using the TCP connection Tc1 (step ST409).

[0195] Next, the diagnostic tool 250A transmits the DoIP packet P2 to the in-vehicle relay device 101 using the TCP connection Tc2 (step ST410).

[0196] Next, the diagnostic tool 250A waits for response packets from each in-vehicle device 202 (NO in step ST411).

[0197] Then, when the diagnostic tool 250A receives a response packet from each in-vehicle device 202 (YES in step ST411), it performs measurement processing again (step ST405). If the comparison result between the measured communication time E and the reference value G does not meet the predetermined conditions, that is, if the communication time E recovers to its normal value (NO in step ST406), it terminates the TCP connection Tc2 (step ST407).

[0198] The diagnostic tool 250B according to the second embodiment of this disclosure is configured to maintain a reference value list L indicating a reference value for the communication speed for each type of message M, and to perform switching processing using the reference value list L, but is not limited to this configuration. The diagnostic tool 250B may also be configured not to maintain a reference value list L. In this case, for example, the switching unit 63 performs switching processing based on the difference between the communication speed with one in-vehicle device 202 and the communication speed with another in-vehicle device 202, regardless of the type of message M.

[0199] <Third Embodiment> In the first embodiment of the present disclosure described above, the diagnostic tool 250 performs a switching process when the user performs an operation to instruct the switching from usage mode Md1 to usage mode Md2. In contrast, in the third embodiment of the present disclosure, the diagnostic tool 250 performs a switching process according to the type of message M. Except for the contents described below, it is the same as the diagnostic tool 250 according to the first embodiment.

[0200] Figure 14 shows an example of the configuration of an in-vehicle system according to a third embodiment of the present disclosure. Referring to Figure 14, the in-vehicle system 302, compared to the in-vehicle system 301 shown in Figure 1, is equipped with a diagnostic tool 250B instead of a diagnostic tool 250, and further includes in-vehicle devices 202C and 202D, which are in-vehicle devices 202. The in-vehicle relay device 101, compared to the in-vehicle relay device 101 shown in Figure 1, is further equipped with communication ports 11D and 11E, which are communication ports 11.

[0201] In the example shown in Figure 14, the in-vehicle devices 202C and 202D are connected to the communication ports 11D and 11E, respectively, via the Ethernet cable 51.

[0202] Figure 15 shows an example of the configuration of a diagnostic tool according to a third embodiment of the present disclosure. Referring to Figure 15, the diagnostic tool 250B has a processing unit 42B instead of a processing unit 42, compared to the diagnostic tool 250 shown in Figure 4. The processing unit 42B does not include an authentication request unit 62, compared to the processing unit 42 shown in Figure 4.

[0203] (Message Information) Figure 16 shows an example of message information held by a diagnostic tool according to the third embodiment of this disclosure.

[0204] Referring to Figure 16, the storage unit 43 holds message information R1 indicating the message label of message M transmitted when multiple TCP connections are established.

[0205] For example, message information R1 includes vehicle type information indicating the vehicle type of vehicle 1 to which message M is transmitted, SID information indicating the SID included in the DoIP packet, and destination information indicating the in-vehicle device 202 to which message M is destined. The destination information is, for example, the IP address of the in-vehicle device 202 to which message M is destined, i.e., the destination IP address.

[0206] In the example shown in Figure 16, the message labels of messages M transmitted when multiple TCP connections are configured are "M11" and "M14," etc. Message M with message label M11 is a message M transmitted in vehicle 1 of type "AAA," and contains "YYY" and "0x2E" as the destination IP address and SID, respectively. Message M with message label M14 is a message M transmitted in vehicle 1 of type "BBB," and contains "WWW" and "0x2D" as the destination IP address and SID, respectively. In Figure 14, a number starting with "0x" means that the number after "0x" is represented in hexadecimal.

[0207] Message information R1 may include some of the vehicle type information, SID information, and destination information. Furthermore, message information R1 may include other information in place of, or in addition to, some or all of, the vehicle type information, SID information, and destination information.

[0208] Referring again to Figure 15, when its own diagnostic tool 250 is started, the reception unit 61 displays a screen prompting the input of vehicle information on the monitor of its own diagnostic tool 250B.

[0209] The reception unit 61 receives the user's input operation Q3 for vehicle type information. Upon receiving the input operation Q3, the reception unit 61 stores the entered vehicle type information in the storage unit 43. The diagnostic tool 250B may be configured to acquire vehicle type information from any of the multiple in-vehicle devices 202.

[0210] When the packet creation unit 64 creates a DoIP packet that includes the IP address of a certain in-vehicle device 202 as the destination IP address, it outputs the created DoIP packet to the switching unit 63.

[0211] When the switching unit 63 receives a DoIP packet from the packet creation unit 64, it checks whether the vehicle type indicated by the vehicle type information stored in the storage unit 43, and the message M (hereinafter also referred to as "message Ma") corresponding to the destination IP address and SID included in the DoIP packet, are registered in the message information R1 in the storage unit 43.

[0212] The switching unit 63 decides to maintain the usage mode Md1 if message Ma is not registered in message information R1. Then, the switching unit 63 transmits the DoIP packet received from the packet creation unit 64 to the in-vehicle relay device 101 via the communication unit 41.

[0213] On the other hand, if message Ma is registered in message information R1, the switching unit 63 decides to switch the usage mode of its diagnostic tool 250B from usage mode Md1 to usage mode Md2. That is, the switching unit 63 decides to set up multiple TCP connections. Then, the switching unit 63 outputs an additional request notification K1 to the packet creation unit 64.

[0214] When the packet creation unit 64 receives an additional request notification K1 from the switching unit 63, it establishes a TCP connection Tc2 between its diagnostic tool 250B and the in-vehicle relay device 101. The packet creation unit 64 then outputs an establishment completion notification to the switching unit 63 indicating that it has established the TCP connection Tc2.

[0215] When the switching unit 63 receives a notification from the packet creation unit 64 that the connection has been established, it transmits the DoIP packet received from the packet creation unit 64 to the in-vehicle relay device 101 using the TCP connection Tc2. Specifically, the switching unit 63 includes the port number of the logical port corresponding to the in-vehicle device 202 that is the destination of the DoIP packet in the DoIP packet, and transmits it to the in-vehicle relay device 101 via the communication unit 41.

[0216] Figure 17 shows another example of message information held by a diagnostic tool according to a third embodiment of the present disclosure.

[0217] Referring to Figure 17, message information R2, compared to message information R1 shown in Figure 16, further includes information indicating the type of TCP connection used to transmit each message M.

[0218] In the example shown in Figure 17, the TCP connection used to send message M with message label M13 is "TCP connection Tc1". Message M with message label M13 is a message M transmitted in vehicle 1 of type "AAA", and is a message M that includes "XXX" and "0x2F" as the destination IP address and SID, respectively.

[0219] Furthermore, in the example shown in Figure 17, the TCP connection used to send message M with message label M11 and message M with message label M14 is "TCP connection Tc2".

[0220] When the switching unit 63 receives a DoIP packet from the packet creation unit 64, it checks the type of TCP connection to be used to send message Ma by referring to the message information R2 in the storage unit 43.

[0221] Then, if the TCP connection used to send message Ma is the already established TCP connection Tc1, the switching unit 63 sends the DoIP packet received from the packet creation unit 64 to the in-vehicle relay device 101 via the communication unit 41.

[0222] On the other hand, if the TCP connection used to send message Ma is TCP connection Tc2, the switching unit 63 decides to switch the usage mode of its diagnostic tool 250B from usage mode Md1 to usage mode Md2. In other words, the switching unit 63 decides to set up multiple TCP connections. Then, the switching unit 63 outputs an additional request notification K1 to the packet creation unit 64.

[0223] [Operation Flow] Figure 18 is a flowchart that shows an example of the operation procedure when the diagnostic tool according to the third embodiment of this disclosure performs a switching process.

[0224] Referring to Figure 18, first, when the diagnostic tool 250B is started, it waits for the user to input vehicle information Q3 (NO in step ST502).

[0225] Then, when the diagnostic tool 250B receives input operation Q3 (YES in step ST502), it stores the entered vehicle information in the storage unit 43 (step ST503).

[0226] Next, when the diagnostic tool 250B establishes a TCP connection Tc1 with the in-vehicle relay device 101 (YES in step ST504), it creates a DoIP packet containing a message M destined for a certain in-vehicle device 202 (step ST505).

[0227] Next, when the diagnostic tool 250B creates a DoIP packet, it checks whether the vehicle type indicated by the vehicle type information stored in the storage unit 43, and the message Ma corresponding to the destination IP address and SID included in the DoIP packet, are registered in the message information R1 in the storage unit 43 (step ST506).

[0228] Then, if message Ma is registered in message information R1 (YES in step ST506), the diagnostic tool 250B sets up multiple TCP connections. For example, as described above, the diagnostic tool 250B transitions from usage mode Md1 to usage mode Md2 and establishes TCP connection Tc2 in addition to TCP connection Tc1 (step ST507).

[0229] Next, the diagnostic tool 250B sends a DoIP packet containing message Ma to the in-vehicle relay device 101 using the TCP connection Tc2 (step ST508).

[0230] Next, the diagnostic tool 250B waits for a response packet from the in-vehicle device 202 (NO in step ST509).

[0231] Then, when the diagnostic tool 250B receives a response packet from the in-vehicle device 202 (YES in step ST509), it creates a new DoIP packet (step ST505).

[0232] On the other hand, if the diagnostic tool 250B does not have message Ma registered in message information R1 (NO in step ST506), it maintains the usage mode Md1 (step ST510).

[0233] Next, the diagnostic tool 250B sends the created DoIP packet to the in-vehicle relay device 101 using the TCP connection Tc1 (step ST508).

[0234] The diagnostic tool 250B according to the third embodiment of this disclosure is configured to hold message information R1 indicating the type of message M to be transmitted when multiple TCP connections are configured, but is not limited to this. The diagnostic tool 250B may also be configured to hold message information R11 indicating the type of message M to be transmitted when one TCP connection is configured. In this case, the diagnostic tool 250B configures multiple TCP connections if the message Ma to be sent to the in-vehicle device 202 is not registered in the message information R11.

[0235] [Modified Version] Figure 19 shows a modified configuration of the in-vehicle system according to the third embodiment of the present disclosure. Referring to Figure 19, the in-vehicle system 303 further includes in-vehicle equipment 202C compared to the in-vehicle system 301 shown in Figure 1.

[0236] In the example shown in Figure 19, the in-vehicle device 202A is connected to the communication port 11A of the in-vehicle relay device 101 via an Ethernet cable 51. The in-vehicle devices 202B and 202C are connected to the communication port 11B of the in-vehicle relay device 101 via a CAN bus 52, which is a transmission line conforming to the CAN (Controller Area Network) standard.

[0237] Furthermore, the in-vehicle equipment 202 is not limited to being connected to the in-vehicle relay device 101 via an Ethernet cable 51 or a CAN bus 52, but may also be connected to the in-vehicle relay device 101 via a transmission line conforming to other communication standards such as CAN FD (CAN with Flexible Data Rate), FlexRay (registered trademark), MOST (Media Oriented System Transport) (registered trademark), LIN (Local Interconnect Network), and CXPI (Clock Extension Peripheral Interface) (registered trademark).

[0238] Figure 20 shows an example of message information held by a modified example of the diagnostic tool according to the third embodiment of this disclosure.

[0239] Referring to Figure 20, the storage unit 35 holds message information R3 that indicates the correspondence between the destination in-vehicle device 202 and the type of TCP connection. The storage unit 35 stores message information R3 for each vehicle type, for example.

[0240] In the example shown in Figure 20, the TCP connection used to send message M to in-vehicle equipment 202A, which is connected to the in-vehicle relay device 101 via Ethernet cable 51, is "TCP connection Tc1". The TCP connection used to send message M to in-vehicle equipment 202B and in-vehicle equipment 202C, etc., which are connected to the in-vehicle relay device 101 via CAN bus 52, is "TCP connection Tc2".

[0241] When the switching unit 63 receives a DoIP packet from the packet creation unit 64, it selects a message information R3 from among several message information R3 stored in the storage unit 43 that corresponds to the vehicle type indicated by the vehicle type information stored in the storage unit 43. Then, by referring to the selected message information R3, the switching unit 63 confirms the type of TCP connection corresponding to the in-vehicle device 202 that is the destination of the DoIP packet.

[0242] Then, if the TCP connection corresponding to the destination in-vehicle device 202 is the already established TCP connection Tc1, the switching unit 63 transmits the DoIP packet received from the packet creation unit 64 to the in-vehicle relay device 101 via the communication unit 41.

[0243] On the other hand, if the TCP connection corresponding to the destination in-vehicle device 202 is TCP connection Tc2, the switching unit 63 decides to switch the usage mode of its diagnostic tool 250B from usage mode Md1 to usage mode Md2. In other words, the switching unit 63 decides to set up multiple TCP connections. Then, the switching unit 63 outputs an additional request notification K1 to the packet creation unit 64.

[0244] When the packet creation unit 64 receives an additional request notification K1 from the switching unit 63, it establishes a TCP connection Tc2 between its diagnostic tool 250B and the in-vehicle relay device 101. The packet creation unit 64 then outputs an establishment completion notification to the switching unit 63 indicating that it has established the TCP connection Tc2.

[0245] When the switching unit 63 receives a notification from the packet creation unit 64 that the connection has been established, it transmits the DoIP packet received from the packet creation unit 64 to the in-vehicle relay device 101 using the TCP connection Tc2. Specifically, the switching unit 63 includes the port number of the logical port corresponding to the in-vehicle device 202 that is the destination of the DoIP packet in the DoIP packet, and transmits it to the in-vehicle relay device 101 via the communication unit 41.

[0246] While the diagnostic tools in each embodiment of this disclosure are configured to establish a TCP connection in accordance with the TCP / IP standard with the in-vehicle relay device 101, they are not limited to this configuration. The diagnostic tools in each embodiment of this disclosure may be configured to establish a communication connection in accordance with a standard other than the TCP / IP standard.

[0247] Furthermore, while the diagnostic tools according to each embodiment of this disclosure are configured to transmit messages conforming to the DoIP standard to a plurality of in-vehicle devices 202 via the in-vehicle relay device 101, the disclosure is not limited to this configuration. The diagnostic tools according to each embodiment of this disclosure may also be configured to transmit messages conforming to standards other than the DoIP standard to a plurality of in-vehicle devices 202 via the in-vehicle relay device 101.

[0248] The embodiments described above should be considered in all respects to be illustrative and not restrictive. The scope of the present invention is indicated by the claims rather than the above description, and all modifications within the meaning and scope of the claims are intended to be included.

[0249] Each process (each function) in the above-described embodiment is implemented by a processing circuit including one or more processors. The processing circuit may consist of an integrated circuit, etc., which combines one or more memories, various analog circuits, and various digital circuits in addition to the one or more processors. The one or more memories store programs (instructions) that cause the one or more processors to execute each of the above processes. The one or more processors may execute each of the above processes according to the programs read from the one or more memories, or they may execute each of the above processes according to logic circuits that have been designed in advance to execute each of the above processes. The above-mentioned processor may be various processors suitable for computer control, such as a CPU (Central Processing Unit), GPU (Graphics Processing Unit), DSP (Digital Signal Processor), FPGA (Field Programmable Gate Array), and ASIC (Application Specific Integrated Circuit). Furthermore, multiple physically separated processors may cooperate with each other to perform the above-mentioned processes. For example, processors installed in multiple physically separated computers may cooperate with each other via a network such as a LAN (Local Area Network), WAN (Wide Area Network), and the Internet to perform the above-mentioned processes. The above program may be installed on the above memory via the above network from an external server device, or it may be distributed on a recording medium such as a CD-ROM (Compact Disc Read Only Memory), DVD-ROM (Digital Versatile Disc Read Only Memory), or semiconductor memory, and then installed on the above memory from the above recording medium.

[0250] The above description includes the following features: [Addendum 1] A vehicle maintenance device comprising a processing circuit, wherein the processing circuit is capable of communicating with an in-vehicle relay device, and which performs a switching process to switch between setting up one communication connection between the in-vehicle relay device and the communication unit, or setting up multiple communication connections, for transmitting messages to a plurality of in-vehicle devices via the in-vehicle relay device.

[0251] [Note 2] A communication system comprising a vehicle maintenance device and an on-board relay device, wherein the vehicle maintenance device is capable of communicating with the on-board relay device, and the vehicle maintenance device is a communication connection for sending messages to a plurality of on-board devices via the on-board relay device, and performs a switching process to switch between setting up one communication connection between the on-board relay device and the communication unit, or setting up a plurality of communication connections.

[0252] 1 Vehicle 11, 11A, 11B, 11C, 11D, 11E Communication port 12 Relay unit 13, 42, 42A, 42B Processing unit 14, 43 Storage unit 21 Authentication processing unit 22 Setting unit 30, 30A, 30B Buffer 41 Communication unit 61 Reception unit 62 Authentication request unit 63 Switching unit 64 Packet creation unit 65 Measurement unit 51 Ethernet cable 52 CAN bus 101 In-vehicle relay device 202, 202A, 202B, 202C, 202D In-vehicle equipment 250, 250A, 250B Diagnostic tool 301, 302, 303 In-vehicle system 401 In-vehicle network L Reference value list R Message information

Claims

1. A vehicle maintenance device comprising: a communication unit capable of communicating with an in-vehicle relay device; and a switching unit that performs a switching process to switch between setting up one communication connection between the in-vehicle relay device and the communication unit, or setting up multiple communication connections, for transmitting messages to a plurality of in-vehicle devices via the in-vehicle relay device.

2. The vehicle maintenance device according to claim 1, wherein the communication unit transmits authentication information of the vehicle maintenance device to the in-vehicle relay device, the communication unit receives authentication success information from the in-vehicle relay device indicating that the authentication process using the authentication information in the in-vehicle relay device has been successful, and the switching unit sets up a plurality of communication connections when the authentication success information is received by the communication unit.

3. The vehicle maintenance device according to claim 1, wherein the switching unit sets up multiple communication connections when the measurement result of the communication speed between the communication unit and any of the multiple on-board devices via the on-board relay device satisfies predetermined conditions.

4. The vehicle maintenance device according to claim 3, further comprising a storage unit that holds communication speed information indicating a reference value for the communication speed for each type of message, wherein the switching unit performs the switching process based on the difference between the reference value indicated by the communication speed information held in the storage unit and the measurement result.

5. The vehicle maintenance device according to claim 1, wherein the switching unit performs the switching process according to the type of message transmitted by the communication unit to the in-vehicle device via the in-vehicle relay device.

6. The vehicle maintenance device according to claim 5, further comprising a storage unit that holds message information indicating the type of message to be transmitted when multiple communication connections are set up, wherein the switching unit performs the switching process using the message information held in the storage unit.

7. The vehicle maintenance device according to claim 6, wherein the message information includes information indicating the in-vehicle device to which the message is addressed.

8. The vehicle maintenance device according to claim 6 or 7, wherein the message information includes information indicating the type of vehicle to which the message is transmitted.

9. The vehicle maintenance device according to any one of claims 1 to 8, wherein the communication connection is a communication connection conforming to the TCP / IP standard, and the communication unit transmits the message conforming to the DoIP standard to the plurality of in-vehicle devices via the in-vehicle relay device.

10. A vehicle maintenance method for a vehicle maintenance device, wherein the vehicle maintenance device comprises a communication unit capable of communicating with an on-board relay device, and the vehicle maintenance method includes a communication connection for transmitting messages to a plurality of on-board devices via the on-board relay device, and includes a step of performing a switching process to set up one communication connection between the on-board relay device and the communication unit, or to set up a plurality of communication connections.

11. A vehicle maintenance program used in a vehicle maintenance device, which causes a computer to function as a communication unit capable of communicating with an on-board relay device, and a switching unit that performs switching processing to switch between setting up one communication connection between the on-board relay device and the communication unit, or setting up multiple communication connections, for transmitting messages to a plurality of on-board devices via the on-board relay device.