Communication device, communication control method, and communication control program

The communication device and method address vehicle communication system delays by determining and adjusting frame transmission orders and protocols to ensure timely transmission within allowable limits, effectively managing frame delays and prioritization.

WO2024190387A1PCT designated stage expired Publication Date: 2024-09-19AUTONETWORKS TECH LTD +2
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/006858
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-02-26
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

The existing communication control systems in vehicles face delays due to arbitration losses, where changing frame priorities can result in the transmission order of frames from other ECUs being moved down, potentially exceeding allowable delay times.

Method used

A communication device and method that determine if the transmission timing of frames exceeds a delay time, generating a stop request frame to adjust the transmission order, estimating and prioritizing subsequent frames to ensure they are transmitted within their delay times, and switching to a higher-speed communication protocol when necessary.

Benefits of technology

This approach effectively suppresses delays in multiple frames transmitted through the communication channel by prioritizing frames and adjusting transmission orders, ensuring they are sent within their allowable delay times, thereby preventing secondary delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024006858_19092024_PF_FP_ABST
    Figure JP2024006858_19092024_PF_FP_ABST
Patent Text Reader

Abstract

This communication device comprises: a determination unit that determines whether a transmission timing of a first frame will exceed a first delay time; a generation unit that, if it is determined that the transmission timing of the first frame will exceed the first delay time, generates a stop request frame; and an estimation unit that, if it is determined that the transmission timing of the first frame will exceed the first delay time, estimates a transmission timing of a second frame. The determination unit determines whether the transmission timing of the second frame will exceed a second delay time. If it is determined that the transmission timing of the second frame will exceed the second delay time, the generation unit generates the stop request frame for requesting transmission stoppage of a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through a communication channel.
Need to check novelty before this filing date? Find Prior Art

Description

Communication device, communication control method, and communication control program

[0001] This application claims priority to Japanese Patent Application No. 2023-038479 filed on March 13, 2023, and incorporates by reference the entire contents of that application.

[0002] A vehicle is equipped with a variety of on-board devices, such as control system ECUs (Electronic Control Units) that control the engine, transmission, etc., body system ECUs that control headlights, power windows, etc., and information system ECUs for navigation devices, multimedia devices, etc. Each on-board device is connected to an on-board network and can communicate with each other.

[0003] Patent Document 1 discloses a communication controller that arbitrates frame transmission based on a priority assigned to the frame. The communication controller disclosed in Patent Document 1 changes a frame that cannot be transmitted over a communication path even if the allowable delay time is exceeded due to repeated arbitration losses to a high-priority frame, acquires the right to transmit, and transmits the frame by switching the communication protocol from a low-speed Controller Area Network (CAN) to a high-speed CAN FD (CAN with Flexible Data Rate).

[0004] JP 2017-188794 A

[0005] A communication device according to one aspect of the present disclosure is a communication device that controls communication in a communication path to which a plurality of in-vehicle devices are connected, and includes: a determination unit that determines whether a transmission timing of a first frame among a plurality of frames to be transmitted to the communication path exceeds a first delay time; a generation unit that generates a stop request frame for requesting a stop of frame transmission when the determination unit determines that the transmission timing of the first frame exceeds the first delay time; a transmission unit that transmits the stop request frame generated by the generation unit to the plurality of in-vehicle devices through the communication path; an estimation unit that, when it is determined that the delay time will be exceeded, estimates the transmission timing of a second frame whose transmission timing changes due to a change in the transmission order of the first frame, wherein the determination unit determines whether the transmission timing of the second frame estimated by the estimation unit exceeds a second delay time, and the generation unit, when it is determined by the determination unit that the transmission timing of the second frame will exceed the second delay time, generates the stop request frame to request that transmission of frames different from the first frame and the second frame be stopped until the first frame and the second frame are transmitted over the communication path.

[0006] FIG. 1 is a block diagram showing an example of the configuration of an in-vehicle system according to an embodiment. FIG. 2 is a block diagram showing an example of the configuration of a relay ECU according to an embodiment. FIG. 3 is a block diagram showing an example of the configuration of an ECU according to an embodiment. FIG. 4 is a functional block diagram showing an example of the function of a relay ECU according to an embodiment. FIG. 5 is a schematic diagram showing a CAN frame format. FIG. 6 is a schematic diagram showing an example of communication in an in-vehicle system according to an embodiment. FIG. 7 is a diagram showing an example of a management table. FIG. 8A is a flowchart showing a first half of a communication control process by a relay ECU according to an embodiment. FIG. 8B is a flowchart showing a second half of a communication control process by a relay ECU according to an embodiment. FIG. 9 is a flowchart showing communication processing by an ECU according to an embodiment. FIG. 10 is a sequence diagram showing an example of the operation of an in-vehicle system according to an embodiment. FIG. 11 is a diagram showing a modified example of the management table.

[0007] <Problem that the present disclosure aims to solve> However, in the communication control controller disclosed in Patent Document 1, changing the priority of a frame in one ECU may result in the transmission order of a frame sent from another ECU being moved down, which may result in the allowable delay time of the frame being exceeded.

[0008] <Effects of the Present Disclosure> According to the present disclosure, it is possible to suppress delays in multiple frames transmitted over a communication path.

[0009] <Outline of Embodiments of the Present Disclosure> Below, an outline of embodiments of the present disclosure will be listed and described.

[0010] (1) A communication device according to this embodiment is a communication device that controls communication over a communication path to which a plurality of in-vehicle devices are connected, and includes: a determination unit that determines whether the transmission timing of a first frame among a plurality of frames scheduled to be transmitted over the communication path will exceed a first delay time; a generation unit that generates a stop request frame for requesting a stop of frame transmission when the determination unit determines that the transmission timing of the first frame will exceed the first delay time; a transmission unit that transmits the stop request frame generated by the generation unit to the plurality of in-vehicle devices over the communication path; and an estimation unit that, when the determination unit determines that the transmission timing of the first frame will exceed the first delay time, estimates the transmission timing of a second frame whose transmission timing changes due to a change in the transmission order of the first frame, wherein the determination unit determines whether the transmission timing of the second frame estimated by the estimation unit will exceed a second delay time, and when the determination unit determines that the transmission timing of the second frame will exceed the second delay time, the generation unit generates the stop request frame for requesting a stop of transmission of frames different from the first frame and the second frame until the first frame and the second frame are transmitted over the communication path. This allows the transmission timing of the second frame, which is moved down in the transmission order due to the first frame being preferentially transmitted, to be estimated, and if the transmission timing exceeds the second delay time, the second frame is also transmitted preferentially. Therefore, delays of the second frame as well as the first frame can be suppressed.

[0011] (2) In the above (1), the estimation unit may estimate, as the transmission timing of the second frame, a timing after a time required for transmitting the stop request frame and the first frame has elapsed, based on the transmission timing of the second frame before the transmission order of the first frame is changed. This makes it possible to accurately estimate the transmission timing of the second frame.

[0012] (3) In the above (1) or (2), when the determination unit determines that the transmission timing of the second frame will exceed the second delay time, the generation unit may generate the stop request frame including first identification information for identifying the first frame and second identification information for identifying the second frame. This allows the in-vehicle device that receives the stop request frame to recognize that the frames to be preferentially transmitted are the first frame and the second frame.

[0013] (4) In the above (3), the stop request frame may include the first identification information and the second identification information in the transmission order of the first frame and the second frame, thereby enabling an in-vehicle device receiving the stop request frame to recognize the transmission order of the first frame and the second frame.

[0014] (5) In any one of (1) to (4) above, the first delay time may be set based on a first allowable delay time that is an allowable delay time for the first frame, the number of identification information of frames transmitted over the communication path, the number of the on-board devices connected to the communication path, or a frequency of frame transmission over the communication path, and the second delay time may be set based on a second allowable delay time that is an allowable delay time for the second frame, the number of identification information of frames transmitted over the communication path, the number of the on-board devices connected to the communication path, or a frequency of frame transmission over the communication path. This makes it possible to set rational first delay times and second delay times.

[0015] (6) In any one of (1) to (5) above, the first delay time may be set based on whether a transmission source of the first frame is an on-board device connected to one communication path or a plurality of communication paths, and the second delay time may be set based on whether a transmission source of the second frame is an on-board device connected to one communication path or a plurality of communication paths. This makes it possible to set rational first delay times and second delay times.

[0016] (7) In any one of (1) to (6) above, the communication device may be a relay device connected to a plurality of communication paths and relaying frames between the plurality of communication paths, thereby enabling a relay device that transmits and receives many frames to collectively control communication of frames on each communication path.

[0017] (8) In the above (7), the determination unit may further determine whether a retention time in the relay device of the first frame transmitted from a first communication path to a second communication path among the plurality of communication paths exceeds a threshold, and the generation unit may generate the stop request frame when the determination unit determines that the transmission timing of the first frame exceeds the first delay time or that the retention time exceeds the threshold. This makes it possible to determine whether frame transmission will be delayed due to retention in the relay device, in addition to the transmission timing of the frame.

[0018] (9) In the above (8), when the second frame is a frame to be transmitted from the first communication path to the second communication path, the estimation unit may further estimate a residence time of the second frame in the relay device when the transmission order of the first frame is changed, the determination unit may further determine whether the residence time of the second frame estimated by the estimation unit exceeds the threshold, and the generation unit may generate the stop request frame to request a stop of transmission of frames other than the first frame and the second frame until the first frame and the second frame are transmitted over the communication path when the determination unit determines that the transmission timing of the second frame exceeds the second delay time or that the residence time of the second frame exceeds the threshold. This makes it possible to estimate the residence time of the second frame in the relay device, which is moved down in transmission order due to the first frame being preferentially transmitted, and when the residence time exceeds the threshold, the second frame is also preferentially transmitted. Therefore, delays due to the second frame being retained in the relay device can be suppressed.

[0019] (10) In the above (9), the estimation unit may estimate, as the residence time of the second frame, a time obtained by adding a time required for transmitting the stop request frame and the first frame to a residence time of the second frame in the relay device before the transmission order of the first frame is changed. This makes it possible to accurately estimate the residence time of the second frame.

[0020] (11) In any one of (1) to (10) above, the communication device may further include a switching unit that switches between a first communication protocol and a second communication protocol having a higher transmission speed than the first communication protocol, and may switch from the first communication protocol to the second communication protocol during a period from when the stop request frame is transmitted until when transmission of the first frame and the second frame is completed. This allows the first frame and the second frame, which have been moved up in transmission order, to be transmitted at a higher transmission speed using the second communication protocol.

[0021] (12) A communication control method according to this embodiment is a communication control method for controlling communication over a communication path to which a plurality of in-vehicle devices are connected, the method including: determining whether a transmission timing of a first frame among a plurality of frames to be transmitted over the communication path exceeds a first delay time; estimating a transmission timing of a second frame, the transmission timing of which changes as a result of a change in the transmission order of the first frame, when it is determined that the transmission timing of the first frame exceeds the first delay time; determining whether the estimated transmission timing of the second frame exceeds a second delay time; generating a stop request frame for requesting stop of transmission of frames different from the first frame and the second frame until the first frame and the second frame are transmitted over the communication path, when it is determined by the determination unit that the transmission timing of the second frame exceeds the second delay time; and transmitting the generated stop request frame to the plurality of in-vehicle devices over the communication path. This makes it possible to estimate the transmission timing of the second frame, the second frame being moved down in transmission order due to the preferential transmission of the first frame, and, when the transmission timing exceeds the second delay time, the second frame is also preferentially transmitted. Therefore, it is possible to suppress delay of the second frame in addition to the first frame.

[0022] (13) A communication control program according to this embodiment is a communication control program for controlling communication over a communication path to which a plurality of in-vehicle devices are connected, and causes a computer to execute the following steps: determining whether a transmission timing of a first frame among a plurality of frames to be transmitted over the communication path exceeds a first delay time; when it is determined that the transmission timing of the first frame exceeds the first delay time, estimating a transmission timing of a second frame whose transmission timing changes due to a change in the transmission order of the first frame; determining whether the estimated transmission timing of the second frame exceeds a second delay time; when it is determined by the determination unit that the transmission timing of the second frame exceeds the second delay time, generating a stop request frame for requesting stop of transmission of frames different from the first frame and the second frame until the first frame and the second frame are transmitted over the communication path; and transmitting the generated stop request frame to the plurality of in-vehicle devices over the communication path. As a result, it is possible to estimate the transmission timing of the second frame, which will be moved down in transmission order due to the preferential transmission of the first frame, and when the transmission timing exceeds the second delay time, the second frame is also preferentially transmitted. Therefore, it is possible to suppress delay of the second frame in addition to the first frame.

[0023] The present disclosure can be realized not only as a communication device having the above-described characteristic configuration, a communication control method having steps corresponding to characteristic processes in the communication device, and a communication control program for causing the communication device to execute the characteristic processes, but also as an in-vehicle system including the communication device, or as a semiconductor integrated circuit in which part or all of the communication device is implemented.

[0024] <Details of the embodiments of the present disclosure> Hereinafter, the details of the embodiments of the present disclosure will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any manner.

[0025] 1. In-Vehicle System Fig. 1 is a block diagram showing an example of the configuration of an in-vehicle system according to this embodiment. The in-vehicle system 100 is mounted on a vehicle.

[0026] The in-vehicle system 100 according to this embodiment includes a relay ECU 200 and ECUs 300A, 300B, 300C, 300D, and 300E. The in-vehicle system 100 is an in-vehicle network configured by the relay ECU 200, the ECUs 300A, 300B, 300C, 300D, and 300E, and communication lines (communication buses) connecting them.

[0027] The multiple ECUs 300A, 300B, 300C, 300D, and 300E are disposed in various parts of the vehicle. The ECUs 300A, 300B, 300C, 300D, and 300E individually control the hardware of the various parts of the vehicle and monitor the status of the hardware of the various parts of the vehicle. For example, the ECUs 300A, 300B, 300C, 300D, and 300E are ECUs for a control system, a body system, and an information system. The ECUs 300A, 300B, 300C, 300D, and 300E are examples of "on-vehicle devices." In the following description, the ECUs 300A, 300B, 300C, and 300D are also collectively referred to as "ECU 300."

[0028] The relay ECU 200 is connected to each of the ECUs 300A, 300B, 300C, 300D, and 300E via communication buses 400A and 400B. The communication buses 400A and 400B are, for example, CAN buses. Specifically, the ECUs 300A, 300B, and 300C are connected to the bus 400A. The ECUs 300D and 300E are connected to the bus 400B. The relay ECU 200 can communicate with each of the ECUs 300A, 300B, 300C, 300D, and 300E.

[0029] The relay ECU 200 and the ECU 300 use a first communication protocol for periodically or non-periodically transmitting and receiving messages. The first communication protocol is, for example, CAN. The relay ECU 200 and the ECU 300 can use a second communication protocol having a higher transmission speed than the first communication protocol. The second communication protocol is, for example, CAN with Flexible Data Rate (CAN FD). The second communication protocol may be, for example, CAN XL. In this embodiment, an example will be described in which the first communication protocol is CAN and the second communication protocol is CAN FD.

[0030] The relay ECU 200 functions as a gateway that relays communications between a plurality of ECUs 300. The ECUs 300 can transmit frames. The relay ECU 200 relays frames between ECUs connected to different buses. For example, the relay ECU 200 can relay frames between an ECU 300A connected to a bus 400A and an ECU 300D connected to a bus 400B.

[0031] 2. Configuration of the Relay ECU FIG. 2 is a block diagram showing an example of the configuration of the relay ECU according to this embodiment. The relay ECU 200 includes a processor 201, a nonvolatile memory 202, a volatile memory 203, and communication interfaces (hereinafter also referred to as "communication I / Fs") 204A and 204B. The relay ECU 200 is an example of a "communication device." More specifically, the relay ECU 200 is an example of a "relay device." The processor 201, the nonvolatile memory 202, the volatile memory 203, and the communication I / Fs 204A and 204B are connected to each other by a bus 205, which is a communication line. The processor 201, the nonvolatile memory 202, the volatile memory 203, and the communication I / Fs 204A and 204B can transmit data to each other via the bus 205.

[0032] The volatile memory 203 is, for example, a semiconductor memory such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory). The non-volatile memory 202 is, for example, a flash memory, a hard disk, a ROM (Read Only Memory), etc. The non-volatile memory 202 stores a communication control program 210, which is a computer program, and data used to execute the communication control program 210. The functions of the relay ECU 200, which will be described later, are realized when the processor 201 executes the communication control program 210.

[0033] The processor 201 is, for example, a CPU (Central Processing Unit). However, the processor 201 is not limited to a CPU. The processor 201 may be a GPU (Graphics Processing Unit). In a specific example, the processor 201 is a multi-core processor. The processor 201 may be a single-core processor. The processor 201 is configured to be able to execute a computer program. However, the processor 201 may be, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as an FPGA (Field Programmable Gate Array). In this case, the ASIC or programmable logic device is configured to be able to execute the same function as the communication control program 210.

[0034] The communication I / Fs 204A and 204B are communication interfaces that comply with the first and second communication protocols described above, and are, for example, CAN interfaces.

[0035] The communication I / F 204A is connected to the bus 400A. The communication I / F 204B is connected to the bus 400B. The relay ECU 200 can communicate with the ECUs 300A, 300B, and 300C via the communication I / F 204A. The relay ECU 200 can communicate with the ECUs 300D and 300E via the communication I / F 204B.

[0036] The nonvolatile memory 202 stores a management table 211. The management table 211 is used by the communication control program 210. The management table 211 will be described later.

[0037] 3 is a block diagram showing an example of the configuration of an ECU according to this embodiment. ECU 300 includes a processor 301, a nonvolatile memory 302, a volatile memory 303, and a communication I / F 304. Processor 301, nonvolatile memory 302, volatile memory 303, and communication I / F 304 are connected to one another by a bus 305, which is a communication line. Processor 301, nonvolatile memory 302, volatile memory 303, and communication I / F 304 can transmit data to one another via bus 305.

[0038] The volatile memory 303 is, for example, a semiconductor memory such as an SRAM or a DRAM. The non-volatile memory 302 is, for example, a flash memory, a hard disk, a ROM, etc. The non-volatile memory 302 stores a communication program 310, which is a computer program, and data used to execute the communication program 310. The functions of the ECU 300, which will be described later, are realized when the processor 301 executes the communication program 310.

[0039] The processor 301 is, for example, a CPU. However, the processor 301 is not limited to a CPU. The processor 301 may be a GPU. In a specific example, the processor 301 is a multi-core processor. The processor 301 may be a single-core processor. The processor 301 is configured to be able to execute a computer program. However, the processor 301 may be, for example, an ASIC or a programmable logic device such as an FPGA. In this case, the ASIC or programmable logic device is configured to be able to execute the same function as the communication program 310.

[0040] The communication I / F 304 is a communication interface that complies with the first and second communication protocols described above, and is, for example, a CAN interface.

[0041] The communication I / F 304 is connected to the bus 400. The ECU 300 can communicate with the ECU 300 and the relay ECU 200 via the communication I / F 304.

[0042] 4. Functions of the Relay ECU FIG. 4 is a functional block diagram showing an example of functions of the relay ECU according to this embodiment.

[0043] When the processor 201 of the relay ECU 200 executes the communication control program 210, the functions of the determination unit 221, the generation unit 222, the transmission unit 223, the estimation unit 224, and the switching unit 225 are realized. That is, the determination unit 221, the generation unit 222, the transmission unit 223, the estimation unit 224, and the switching unit 225 are each realized by the processor 201.

[0044] FIG. 5 is a schematic diagram showing a CAN frame format. FIG. 5 shows the data frame structure of the CAN standard format. The upper line in the figure indicates recessive, and the lower line indicates dominant. As shown in FIG. 5, a CAN data frame includes the following fields: SOF (Start of Frame), CAN ID, RTR (Remote Transmission Request), control field, data field, CRC (Cyclic Redundancy Check) sequence, CRC delimiter, ACK (Acknowledgement) slot, ACK delimiter, and EOF (End of Frame). SOF indicates the start of the frame. CAN ID is used to identify the ECU and the frame type. RTR is used to identify data frames and remote frames. In the case of data frames, RTR is dominant. The control field stores information used for communication control. The data field stores up to 8 bytes of actual data (payload). The CRC sequence and CRC delimiter are collectively called the CRC field, and a type of error detection code is stored in the CRC field. The ACK slot and ACK delimiter are collectively called the ACK field, and information indicating whether the CRC field portion was received correctly or not is stored in the ACK field. EOF indicates the end of the frame.

[0045] In CAN, a frame contains identification information called a CAN ID. The CAN ID indicates the type of frame. For example, the CAN ID of a frame containing data on "engine speed" is "0x100," and the CAN ID of a frame containing data on "accelerator opening" is "0x200."

[0046] The CAN ID also indicates the source of the frame. FIG. 6 is a diagram schematically illustrating an example of communication in the in-vehicle system 100 according to the embodiment. In FIG. 6, a five-digit hexadecimal number starting with 0x, such as "0x100," indicates a CAN ID, and a rectangle including the CAN ID indicates a frame. In the example of FIG. 6, the CAN ID of the frame transmitted from ECU 300A is "0x300," the CAN ID of the frame transmitted from ECU 300B is "0x200," the CAN ID of the frame transmitted from ECU 300C is "0x400," the CAN ID of the frame transmitted from ECU 300D is "0x100," and the CAN ID of the frame transmitted from ECU 300E is "0x500."

[0047] Each of the communication buses 400A and 400B transmits frames sequentially. Each of the communication buses 400A and 400B cannot transmit multiple frames simultaneously. In other words, while one frame is being transmitted on each of the communication buses 400A and 400B, that frame occupies the communication buses 400A and 400B.

[0048] 6, a frame with CAN ID 0x200 is transmitted from ECU 300B to communication bus 400A. Therefore, during the period when the frame with CAN ID 0x200 is being transmitted on communication bus 400A, other frames cannot be transmitted.

[0049] Relay ECU 200 relays frames between communication buses 400A and 400B. In the example of Fig. 6, relay ECU 200 relays a frame with CAN ID 0x100 transmitted from ECU 300D and a frame with CAN ID 0x500 transmitted from ECU 300E from communication bus 400B to communication bus 400A. In the example of Fig. 6, relay ECU 200 has not yet transmitted the frames with CAN ID 0x100 and 0x500 received from communication bus 400B to communication bus 400A, and retains the frames with CAN ID 0x100 and 0x500 in an internal buffer.

[0050] The CAN ID indicates the priority in communication arbitration. The smaller the CAN ID, the higher the priority. That is, in the example of FIG. 6, the priority decreases in the order of 0x100, 0x200, 0x300, 0x400, and 0x500. Therefore, after a frame with CAN ID 0x200 is transmitted on communication bus 400A, frames are scheduled to be transmitted sequentially on communication bus 400A in the order of 0x100, 0x300, 0x400, and 0x500.

[0051] However, other frames may interrupt before all frames with CAN ID 0x100, 0x300, 0x400, and 0x500 are transmitted. For example, if a frame with CAN ID 0x200 is transmitted again to communication bus 400A after a frame with CAN ID 0x300 is transmitted, the frames with CAN IDs 0x400 and 0x500 will wait due to arbitration loss. Therefore, frames with low priority, such as frames with CAN IDs 0x400 and 0x500, may continue to lose arbitration and be delayed beyond the allowable range. The relay ECU 200 according to the embodiment suppresses frame delays due to such arbitration loss.

[0052] Returning to FIG. 4, the determination unit 221 determines whether the transmission timing of a frame among a plurality of frames scheduled to be transmitted to the communication buses 400A and 400B exceeds the first delay time.

[0053] In the CAN, frames are transmitted periodically and frames are transmitted aperiodically. For periodically transmitted frames, a frame transmission interval (reception interval) is determined for each CAN ID. In a specific example, the determination unit 221 determines whether the transmission timing exceeds the first delay time by determining whether the elapsed time since the previous reception of a frame with the same CAN ID (hereinafter simply referred to as "elapsed time") exceeds a first threshold value corresponding to a first delay time. Hereinafter, the frame whose elapsed time is compared with the first threshold value is also referred to as the "first frame."

[0054] The relay ECU 200 controls communication in the in-vehicle system 100, for example, by using a management table 211. Fig. 7 is a diagram showing an example of the management table. The management table 211 is a table for managing the communication status of frames of each CAN ID.

[0055] The management table 211 has columns for the CAN ID, reception interval, maximum reception interval, residence time, elapsed time, first threshold, and second threshold, and includes a record (row) for each CAN ID. The management table 211 registers the reception interval, maximum reception interval, residence time, elapsed time, first threshold, and second threshold for each CAN ID.

[0056] The reception interval, maximum reception interval, first threshold, and second threshold are fixed values. The "reception interval" is the frame reception interval specified for each CAN ID. The "maximum reception interval" is the limit value for the allowable delay exceeding the reception interval of one frame. In the example of FIG. 7 , the reception interval for CAN ID 0x100 is P1, and the maximum reception interval is PM1. The reception interval for CAN ID 0x200 is P2, and the maximum reception interval is PM2. The reception interval for CAN ID 0x300 is P3, and the maximum reception interval is PM3. The reception interval for CAN ID 0x400 is P4, and the maximum reception interval is PM4. The reception interval for CAN ID 0x500 is P5, and the maximum reception interval is PM5.

[0057] The retention time and elapsed time are values ​​that are updated as time passes. The management table 211 is updated in real time at predetermined intervals. That is, the retention time and elapsed time are updated at predetermined intervals.

[0058] The "retention time" is the time that relay ECU 200 is currently holding a frame. In other words, the "retention time" is the time that has elapsed since relay ECU 200 received a frame. The "retention time" is set to "0" when relay ECU 200 receives a frame to be relayed from communication bus 400B to communication bus 400A, and increases as time passes. The "retention time" is deleted from management table 211 when relay ECU 200 transmits the frame.

[0059] The retention time is set only for the CAN ID of the frame relayed by relay ECU 200. In the example of Fig. 7, the retention time for CAN ID 0x100 is t21. The retention time for CAN ID 0x500 is t25. No retention time is set for CAN IDs 0x200, 0x300, and 0x400.

[0060] The "elapsed time" is the time that has elapsed since the relay ECU 200 (and ECUs 300A, 300B, 300C, 300D, and 300E) last received a frame with the target CAN ID. The "elapsed time" is set to "0" when the relay ECU 200 receives a frame with the target CAN ID, and increases as time passes. The "elapsed time" is reset when the relay ECU 200 receives the next frame with the target CAN ID.

[0061] An elapsed time is set for each CAN ID. In the example of Fig. 7, the elapsed time for CAN ID 0x100 is t11. The elapsed time for CAN ID 0x200 is t12. The elapsed time for CAN ID 0x300 is t13. The elapsed time for CAN ID 0x400 is t14. The elapsed time for CAN ID 0x500 is t15.

[0062] The first threshold is a threshold for elapsed time. The first threshold is set for each CAN ID. In the example of FIG. 7 , the first threshold corresponding to CAN ID 0x100 is Th11. The first threshold corresponding to CAN ID 0x200 is Th12. The first threshold corresponding to CAN ID 0x300 is Th13. The first threshold corresponding to CAN ID 0x400 is Th14. The first threshold corresponding to CAN ID 0x500 is Th15.

[0063] As described above, the first threshold corresponds to the first delay time. The maximum reception interval is the allowable frame delay time. The first threshold, i.e., the first delay time, is set within a range in which the elapsed time does not exceed the maximum reception interval. Specifically, the first threshold is set to a value greater than the reception interval and smaller than the maximum reception interval.

[0064] If a frame is not transmitted even though the reception interval has elapsed since the transmission (reception) of the previous frame, i.e., if the transmission of the frame is delayed, the frame is required to be transmitted so as not to exceed the maximum reception interval. Assuming that the current time is the earliest transmission timing of the frame, if the current time exceeds the first delay time, there is a possibility that the transmission timing of the frame will exceed the maximum reception period. Returning to FIG. 4 , the determination unit 221 determines whether the transmission timing of the frame will exceed the first delay time by determining whether the elapsed time exceeds the first threshold. In other words, if the elapsed time at the current time exceeds the first threshold, there is a possibility that the transmission timing of the frame will exceed the maximum reception period.

[0065] The first threshold is set based on the maximum reception interval. For example, the first threshold can be set based on the maximum reception interval as well as the number of CAN IDs of frames transmitted over the communication buses 400A and 400B. If the number of CAN IDs of frames transmitted over the communication buses 400A and 400B is large, it is expected that frames with large CAN IDs will repeatedly lose arbitration. Therefore, the first threshold can be set smaller as the number of CAN IDs of frames transmitted over the communication buses 400A and 400B increases.

[0066] For example, the first threshold value may be set based on the number of ECUs 300 connected to communication buses 400A, 400B in addition to the maximum reception interval. The more ECUs connected to communication buses 400A, 400B, the more frames are transmitted through communication buses 400A, 400B, and it is expected that frames with large CAN IDs will repeatedly lose arbitration. Therefore, the more ECUs connected to communication buses 400A, 400B, the smaller the first threshold value can be set.

[0067] For example, the first threshold value may be set based on the maximum reception interval as well as the frequency of frame transmission on the communication buses 400A and 400B. That is, if the frequency of frame transmission on the communication buses 400A and 400B is high, the number of frames transmitted on the communication buses 400A and 400B will be large, and it is expected that frames with large CAN IDs will repeatedly lose arbitration. Therefore, the higher the frequency of frame transmission on the communication buses 400A and 400B, the smaller the first threshold value can be set.

[0068] For example, the first threshold may be set based on, in addition to the maximum reception interval, whether the source of a frame of the corresponding CAN ID is an in-vehicle device connected to one communication bus 400A, i.e., ECU 300, or an in-vehicle device connected to multiple communication buses 400A and 400B, i.e., relay ECU 200. Multiple frames may be retained in relay ECU 200. In such a case, if a frame to be transmitted first is retained, it is expected that the retention time of frames to be transmitted later will be longer. Therefore, it is preferable to shorten the retention time of frames in relay ECU 200. For this reason, the first threshold may be set small for a CAN ID whose frame source is relay ECU 200, and set large for a CAN ID whose frame source is ECU 300.

[0069] When the judgment unit 221 determines that the elapsed time exceeds the first threshold, i.e., when it determines that the frame transmission timing exceeds the first delay time, the generation unit 222 generates a stop request frame to request that the frame transmission be stopped.

[0070] The generation unit 222 determines a frame with a CAN ID for which the elapsed time is determined to exceed the first threshold as a priority frame, which is a frame to be preferentially transmitted. The payload of the stop request frame includes the CAN ID of the priority frame. The stop request frame is a frame for requesting the stop of a frame other than the priority frame.

[0071] The stop request frame is assigned a CAN ID smaller than the smallest CAN ID in the in-vehicle system. In one example, the CAN ID of the stop request frame is set to the smallest CAN ID that can be assigned in the in-vehicle system. For example, the CAN ID of the stop request frame is set to "0x000" or "0x001." This gives the stop request frame a higher priority than other frames. The transmitter 223 transmits the stop request frame generated by the generator 222 to the ECUs 300A, 300B, and 300C via the communication bus 400A. The ECUs 300A, 300B, and 300C that receive the stop request frame stop transmitting frames other than priority frames until they receive a frame with the CAN ID specified in the stop request frame. If ECU 300A, 300B, or 300C is holding a frame for transmission with a CAN ID determined as a target for priority transmission, that ECU transmits the priority frame upon receiving a stop request frame, thereby transmitting the priority frame before frames with other CAN IDs.

[0072] As a result of the priority frame being transmitted before other frames, it is conceivable that some of the other frames (i.e., frames whose transmission is delayed by the priority frame) will not be transmitted even if the maximum reception interval is exceeded (frames whose transmission is secondarily delayed). The relay ECU 200 according to the embodiment controls the frame transmission order so as to prevent frames whose transmission is secondarily delayed from occurring.

[0073] When the determination unit 221 determines that the transmission timing of the first frame will exceed the first delay time, the estimation unit 224 estimates the transmission timing of a frame whose transmission timing will change due to a change in the transmission order of the first frame. Hereinafter, the transmission timing estimated by the estimation unit 224 is also referred to as the "anticipated transmission timing." For example, the estimation unit 224 determines the anticipated transmission timing of a frame based on the delay time caused by the transmission of a priority frame. Hereinafter, the frame whose anticipated transmission timing is to be determined is also referred to as the "second frame."

[0074] In a specific example, the estimation unit 224 can determine the expected transmission timing of the second frame to be the timing after the time required to transmit the stop request frame and the first frame has elapsed from the transmission timing of the second frame before the transmission order of the first frame (priority frame) is changed.

[0075] For example, the estimation unit 224 can calculate the transmission time of the stop request frame based on the data size of the stop request frame and the transmission speed of the communication buses 400A and 400B. The estimation unit 224 can calculate the transmission time of the priority frame based on the data size of the priority frame and the transmission speed of the communication buses 400A and 400B. The estimation unit 224 can calculate the delay time caused by transmitting the priority frame by adding the transmission time of the stop request frame, the transmission time of the priority frame, and the interval between frames (for two times).

[0076] The estimation unit 224 calculates the expected elapsed time by adding the calculated delay time to the elapsed time of each CAN ID (excluding the CAN ID determined as the priority frame). Frames of CAN IDs other than the priority frame are transmitted after the expected elapsed time. Therefore, the expected elapsed time is the earliest possible timing from the current time at which a frame can be transmitted. The expected elapsed time is an example of an estimated transmission timing.

[0077] The determination unit 221 determines whether the expected transmission timing of the second frame determined by the estimation unit 224 exceeds the second delay time. In a specific example, the determination unit 221 determines whether the expected elapsed time exceeds a first threshold value, thereby determining whether the transmission timing exceeds the second delay time. Similar to the first delay time described above, the first threshold value corresponds to the second delay time.

[0078] When the judgment unit 221 determines that the expected transmission timing of the second frame exceeds the second delay time, the generation unit 222 generates a stop request frame to request that transmission of frames be stopped until the first frame and the second frame are transmitted to the communication buses 400A and 400B.

[0079] The generation unit 222 determines, as a priority frame, a frame having a CAN ID whose estimated elapsed time is determined to exceed the first threshold. The payload of the stop request frame includes the CAN ID of the priority frame, i.e., the CAN ID of the first frame whose estimated elapsed time is determined to exceed the first threshold, as well as the CAN ID of the second frame whose estimated elapsed time is determined to exceed the first threshold. In a more specific example, the payload of the stop request frame includes the CAN IDs of the first and second frames in the order of transmission. For example, if the CAN ID whose estimated elapsed time is determined to exceed the first threshold is 0x400 and the CAN ID whose estimated elapsed time is determined to exceed the first threshold is 0x500, the payload of the stop request frame will contain 0x400, 0x500, in that order.

[0080] It is desirable that the frame stay time in relay ECU 200 be short, and the frame is required to be transmitted within the permissible stay time. Determination unit 221 can further determine whether the stay time in relay ECU 200 of the first frame to be transmitted from communication bus 400B to communication bus 400A of multiple communication buses 400A, 400B exceeds a second threshold value.

[0081] The second threshold is a threshold for the residence time. The second threshold is set for each CAN ID. In the example of FIG. 7 , the second threshold corresponding to CAN ID 0x100 is Th21. The second threshold corresponding to CAN ID 0x200 is Th22. The second threshold corresponding to CAN ID 0x300 is Th23. The second threshold corresponding to CAN ID 0x400 is Th24. The second threshold corresponding to CAN ID 0x500 is Th25.

[0082] The second threshold value is set based on the allowable retention time in the relay ECU 200. Specifically, the second threshold value is set to a value equal to or less than the allowable retention time.

[0083] Returning to FIG. 4 , the generation unit 222 can generate a stop request frame not only when the elapsed time corresponding to the CAN ID exceeds the first threshold, but also when the determination unit 221 determines that the residence time exceeds the second threshold.

[0084] The generation unit 222 can determine a frame with a CAN ID whose retention time is determined to exceed the second threshold as a priority frame, which is a frame to be preferentially transmitted. The payload of the stop request frame includes the CAN ID of the priority frame.

[0085] When the second frame is a frame to be transmitted from communication bus 400B to communication bus 400A, estimation unit 224 can estimate the residence time of the second frame in relay ECU 200 when the transmission order of the first frame is changed. Hereinafter, the residence time estimated by estimation unit 224 is also referred to as the "expected residence time." For example, estimation unit 224 determines the expected residence time of the second frame based on the delay time due to the transmission of the priority frame.

[0086] In a specific example, the estimation unit 224 can determine the expected residence time of the second frame as the time after the time required to transmit the stop request frame and the first frame has elapsed from the residence time of the second frame before the transmission order of the first frame (priority frame) is changed.

[0087] For example, the estimation unit 224 determines the expected residence time of the second frame by adding the time required to transmit the stop request frame and the priority frame to the residence time of the second frame in the relay ECU 200 before the transmission order of the first frame (priority frame) is changed. As described above, the estimation unit 224 can calculate the delay time due to the transmission of the priority frame by adding the transmission time of the stop request frame, the transmission time of the priority frame, and the interval between frames. The estimation unit 224 calculates the expected residence time by adding the calculated delay time to the residence time of each CAN ID (excluding the CAN ID determined as the priority frame).

[0088] The determining unit 221 can further determine whether the expected residence time of the second frame determined by the estimating unit 224 exceeds a second threshold value.

[0089] When the judgment unit 221 determines that the expected residence time of the second frame exceeds the second threshold, the generation unit 222 generates a stop request frame to request that frame transmission be stopped until the first frame and the second frame are transmitted to the communication buses 400A and 400B.

[0090] The generation unit 222 determines, as a priority frame, a frame having a CAN ID whose expected residence time is determined to exceed the second threshold. The payload of the stop request frame includes the CAN ID of the priority frame, i.e., at least one of the CAN ID of the first frame whose elapsed time is determined to exceed the first threshold and the CAN ID of the first frame whose expected residence time is determined to exceed the second threshold, as well as the CAN ID of the second frame whose expected residence time is determined to exceed the second threshold. As described above, in one example, the payload of the stop request frame includes the CAN IDs of the first and second frames in the transmission order. For example, if the CAN ID whose elapsed time is determined to exceed the first threshold is 0x400 and the CAN ID whose expected residence time is determined to exceed the second threshold is 0x500, the payload of the stop request frame will contain 0x400, 0x500, in this order.

[0091] The switching unit 225 switches between the first communication protocol and the second communication protocol, and switches from the first communication protocol to the second communication protocol during the period from when the stop request frame is transmitted until the transmission of the priority frame is completed.

[0092] The stop request frame is transmitted using a low-speed first communication protocol. Receipt of the stop request frame triggers switching from the first communication protocol to the second communication protocol. When the relay ECU 200 transmits the stop request frame, it switches from the first communication protocol to the second communication protocol. When the ECU 300 receives the stop request frame, it switches from the first communication protocol to the second communication protocol.

[0093] The priority frame is transmitted using a high-speed second communication protocol. The priority frame is created in a format that conforms to the second communication protocol. Receipt of the priority frame triggers switching from the second communication protocol to the first communication protocol. After transmitting all priority frames, the relay ECU 200 switches from the second communication protocol to the first communication protocol. After receiving all priority frames, the ECU 300 switches from the second communication protocol to the first communication protocol.

[0094] The estimation unit 224 can calculate the transmission time of the stop request frame based on the transmission speed of the first communication protocol. If the first communication protocol is CAN, the transmission speed is, for example, 500 kbps. The estimation unit 224 can calculate the transmission time of the priority frame based on the transmission speed of the second communication protocol. If the second communication protocol is CAN FD, the transmission speed is, for example, 1 Mbps.

[0095] 5. Operation of the In-Vehicle System The operation of the in-vehicle system according to this embodiment will now be described.

[0096] 8A and 8B are flowcharts illustrating a communication control process performed by the relay ECU according to the embodiment. The communication control process is executed at predetermined time intervals.

[0097] The processor 201 updates the elapsed time and the residence time for each CAN ID in the management table 211 (step S101).

[0098] The processor 201 compares the elapsed time for each CAN ID with a first threshold value and determines whether or not there is a CAN ID (frame) whose elapsed time exceeds the first threshold value. The processor 201 compares the residence time for each CAN ID with a second threshold value and determines whether or not there is a CAN ID (frame) whose residence time exceeds the second threshold value (step S102).

[0099] If there is no CAN ID whose elapsed time exceeds the first threshold and there is no CAN ID whose retention time exceeds the second threshold (NO in step S102), the processor 201 ends the communication control process.

[0100] If there is a CAN ID whose elapsed time exceeds the first threshold, or if there is a CAN ID whose residence time exceeds the second threshold (YES in step S102), the processor 201 determines the frame of the CAN ID whose elapsed time exceeds the first threshold, or the frame of the CAN ID whose residence time exceeds the second threshold, as a priority frame (step S103).

[0101] The processor 201 calculates the expected elapsed time and expected residence time for each CAN ID (excluding the CAN ID of the priority frame) (step S104). In this case, the expected residence time is not calculated for a CAN ID for which the residence time is not registered in the management table 211.

[0102] The processor 201 compares the expected elapsed time with a first threshold for each CAN ID, and determines whether or not there is a CAN ID (frame) whose expected elapsed time exceeds the first threshold. The processor 201 compares the expected residence time with a second threshold for each CAN ID, and determines whether or not there is a CAN ID (frame) whose expected residence time exceeds the second threshold (step S105).

[0103] If there is a CAN ID whose expected elapsed time exceeds the first threshold, or if there is a CAN ID whose expected residence time exceeds the second threshold (YES in step S105), the processor 201 returns to step S103 and determines the frame of the CAN ID whose expected elapsed time exceeds the first threshold or the frame of the CAN ID whose expected residence time exceeds the second threshold as a priority frame.

[0104] When executing step S104 again, the processor 201 calculates, for each CAN ID (excluding the CAN ID of the priority frame), the estimated elapsed time and estimated residence time due to the newly added priority frame. That is, the processor 201 calculates the transmission time of the newly added priority frame, and adds the calculated transmission time and the interval between frames to the estimated elapsed time and estimated residence time to calculate new estimated elapsed time and estimated residence time.

[0105] If there is no CAN ID whose expected elapsed time exceeds the first threshold and there is no CAN ID whose expected residence time exceeds the second threshold (NO in step S105), the processor 201 generates a stop request frame (step S106).The processor 201 transmits the generated stop request frame (step S107).

[0106] The processor 201 switches from the first communication protocol to the second communication protocol (step S108).

[0107] The processor 201 determines whether a priority frame has been transmitted or received (step S109). If the relay ECU 200 is the sender of the priority frame, the processor 201 determines whether the priority frame has been transmitted. If the ECU 300 is not the sender of the priority frame, the processor 201 determines whether the priority frame has been received.

[0108] If the relay ECU 200 has neither transmitted nor received a priority frame (NO in step S109), the processor 201 executes step S109 again.

[0109] If the relay ECU 200 has transmitted or received a priority frame (YES in step S109), the processor 201 switches from the second communication protocol to the first communication protocol (step S110). This ends the communication control process.

[0110] FIG. 9 is a flowchart showing communication processing by the ECU according to the embodiment.

[0111] The processor 301 determines whether a stop request frame has been received (step S201).

[0112] If a stop request frame has not been received (NO in step S201), the processor 301 executes step S201 again.

[0113] If a stop request frame is received (YES in step S201), the processor 301 switches from the first communication protocol to the second communication protocol (step S202).

[0114] The processor 301 determines whether a priority frame has been transmitted or received (step S203). If the ECU 300 is the sender of the priority frame, the processor 301 determines whether the priority frame has been transmitted. If the ECU 300 is not the sender of the priority frame, the processor 301 determines whether the priority frame has been received.

[0115] If the ECU 300 has neither transmitted nor received a priority frame (NO in step S203), the processor 301 executes step S203 again.

[0116] If the ECU 300 transmits or receives a priority frame (YES in step S203), the processor 301 switches from the second communication protocol to the first communication protocol (step S204). This ends the communication process.

[0117] 10 is a sequence diagram showing an example of the operation of the in-vehicle system according to the embodiment, which illustrates the operation from the stage where the relay ECU 200 generates the stop request frame onward.

[0118] It is assumed that the frame with CAN ID 0x400 and the frame with CAN ID 0x500 are determined as priority frames. The relay ECU 200 generates a stop request frame (step S11). The payload of this stop request frame contains the CAN IDs 0x400 and 0x500.

[0119] The relay ECU 200 transmits a stop request frame to the communication bus 400A (step S12). The ECUs 300A, 300B, and 300C receive the stop request frame.

[0120] The relay ECU 200 and the ECUs 300A, 300B, and 300C each switch from the first communication protocol to the second communication protocol (step S13).

[0121] The ECU 300C, to which the CAN ID 0x400 is assigned, transmits a frame (priority frame) with the CAN ID 0x400 to the communication bus 400A (step S14). The relay ECU 200 and the ECUs 300A and 300B receive the frame with the CAN ID 0x400.

[0122] Relay ECU 200 relaying CAN ID 0x500 transmits the frame (priority frame) of CAN ID 0x500 to communication bus 400A (step S15). ECUs 300A, 300B, and 300C receive the frame of CAN ID 0x500.

[0123] The relay ECU 200 and the ECUs 300A, 300B, and 300C each switch from the second communication protocol to the first communication protocol (step S16).

[0124] [6. Modifications] In the above embodiment, the relay ECU 200 holds the management table 211 and executes communication control processing to suppress frame delays. However, the present invention is not limited to this. For example, when controlling communication on the communication bus 400A, one of the ECUs 300A, 300B, and 300C can execute the communication control processing. That is, the ECU 300 is another example of a "communication device." In this case, since it is not possible to manage the frame retention time in the relay ECU 200, the columns for retention time and the second threshold value can be omitted from the management table 211. The ECU 300 can omit the processes of comparing the retention time (or expected retention time) with the second threshold value and setting a priority frame when the retention time (or expected retention time) exceeds the second threshold value.

[0125] In the above embodiment, the relay ECU 200 manages the communication status of frames for each CAN ID using one management table 211. However, the present invention is not limited to this. The management table 211 may be divided into a plurality of tables.

[0126] 11 is a diagram showing a modified example of the management table. A first management table 211A and a second management table 211B are shown in FIG. 11. The first management table 211A has columns for CAN ID, reception interval, maximum reception interval, elapsed time, and first threshold, and includes a record (row) for each CAN ID. The first management table 211A registers the reception interval, maximum reception interval, residence time, and first threshold for each CAN ID.

[0127] The second management table 211B has columns for the CAN ID, the reception order, the retention time, and the second threshold. Multiple frames with the same CAN ID may be retained at the same time in the relay ECU 200. Therefore, the second management table 211B includes a record for each frame.

[0128] When the relay ECU 200 receives a frame, a record of the frame is added to the second management table 211B, and when the relay ECU 200 transmits a frame, the record of the frame is deleted.

[0129] For example, when the relay ECU 200 receives a frame with CAN ID 0x100, it adds a record for that frame to the second management table 211B. The reception order field of this record stores "1." When the relay ECU 200 receives another frame with CAN ID 0x100 while holding the frame, it adds a record for the newly received frame to the second management table 211B. The reception order field of this record stores "2."

[0130] In this way, it is possible to manage a plurality of frames of the same CAN ID that are retained in relay ECU 200.

[0131] [7. Supplementary Note] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims, not the above-described embodiments, and includes meanings equivalent to the claims and all modifications within the scope thereof.

[0132] 100 In-vehicle system 200 Relay ECU (communication device, relay device) 201 Processor 202 Non-volatile memory 203 Volatile memory 204A, 204B Communication interface (communication I / F) 210 Communication control program 211 Management table 211A First management table 211B Second management table 221 Determination unit 222 Generation unit 223 Transmission unit 224 Estimation unit 225 Switching unit 300, 300A, 300B, 300C, 300D, 300E ECU (in-vehicle device, communication device) 301 Processor 302 Non-volatile memory 303 Volatile memory 304 Communication interface (communication I / F) 310 Communication program 400, 400A, 400B Communication bus (communication path)

Claims

1. A communication device that controls communication in a communication path to which multiple in-vehicle devices are connected, comprising: a determination unit that determines whether a transmission timing of a first frame of multiple frames to be transmitted to the communication path exceeds a first delay time; a generation unit that generates a stop request frame for requesting a stop of frame transmission when the determination unit determines that the transmission timing of the first frame will exceed the first delay time; a transmission unit that transmits the stop request frame generated by the generation unit to the multiple in-vehicle devices through the communication path; and an estimation unit that, when the determination unit determines that the transmission timing of the first frame will exceed the first delay time, estimates a transmission timing of a second frame whose transmission timing changes as a result of a change in the transmission order of the first frame, wherein the determination unit determines whether the transmission timing of the second frame estimated by the estimation unit exceeds a second delay time; and when the determination unit determines that the transmission timing of the second frame will exceed the second delay time, the generation unit generates the stop request frame for requesting a stop of transmission of frames different from the first frame and the second frame until the first frame and the second frame are transmitted through the communication path. Communications equipment.

2. The communication device of claim 1, wherein the estimation unit estimates the transmission timing of the second frame to be the timing after the time required for transmitting the stop request frame and the first frame has elapsed from the transmission timing of the second frame before the transmission order of the first frame is changed.

3. A communication device as described in claim 1 or claim 2, wherein the generation unit generates the stop request frame including first identification information for identifying the first frame and second identification information for identifying the second frame when the determination unit determines that the transmission timing of the second frame will exceed the second delay time.

4. The communication device according to claim 3, wherein the stop request frame includes the first identification information and the second identification information in the transmission order of the first frame and the second frame.

5. A communication device as described in any one of claims 1 to 4, wherein the first delay time is set based on a first permissible delay time which is a permissible delay time for the first frame, the number of identification information of frames transmitted over the communication path, the number of on-board devices connected to the communication path, or the frequency of frame transmission over the communication path, and the second delay time is set based on a second permissible delay time which is a permissible delay time for the second frame, the number of identification information of frames transmitted over the communication path, the number of on-board devices connected to the communication path, or the frequency of frame transmission over the communication path.

6. A communication device as described in any one of claims 1 to 5, wherein the first delay time is set based on whether a source of the first frame is an on-board device connected to one communication path or to multiple communication paths, and the second delay time is set based on whether a source of the second frame is an on-board device connected to one communication path or to multiple communication paths.

7. The communication device according to any one of claims 1 to 6, wherein the communication device is a relay device that is connected to a plurality of communication paths and relays frames between the plurality of communication paths.

8. The communication device described in claim 7, wherein the determination unit further determines whether a residence time in the relay device of the first frame transmitted from a first communication path to a second communication path among the multiple communication paths exceeds a threshold value, and the generation unit generates the stop request frame when the determination unit determines that the transmission timing of the first frame exceeds the first delay time or that the residence time exceeds the threshold value.

9. The communications device of claim 8, wherein the estimation unit further estimates a residence time of the second frame in the relay device when the transmission order of the first frame is changed when the second frame is a frame to be transmitted from the first communication path to the second communication path; the determination unit further determines whether or not the residence time of the second frame estimated by the estimation unit exceeds the threshold value; and the generation unit generates the stop request frame to request stopping of transmission of frames other than the first frame and the second frame until the first frame and the second frame are transmitted over the communications path when the determination unit determines that the transmission timing of the second frame exceeds the second delay time or that the residence time of the second frame exceeds the threshold value.

10. The communication device described in claim 9, wherein the estimation unit estimates the residence time of the second frame to be the residence time of the second frame in the relay device before the transmission order of the first frame is changed plus the time required to transmit the stop request frame and the first frame.

11. The communication device described in any one of claims 1 to 10, further comprising a switching unit that switches between a first communication protocol and a second communication protocol having a higher transmission speed than the first communication protocol, and the switching unit switches from the first communication protocol to the second communication protocol during the period from when the stop request frame is transmitted to when transmission of the first frame and the second frame is completed.

12. A communication control method for controlling communications in a communication path to which multiple in-vehicle devices are connected, comprising: a step of determining whether or not a transmission timing of a first frame among multiple frames to be transmitted to the communication path exceeds a first delay time; a step of estimating a transmission timing of a second frame whose transmission timing changes as a result of a change in the transmission order of the first frame when it is determined that the transmission timing of the first frame exceeds the first delay time; a step of determining whether or not the estimated transmission timing of the second frame exceeds a second delay time; a step of generating a stop request frame for requesting stop of transmission of frames different from the first frame and the second frame until the first frame and the second frame are transmitted over the communication path when it is determined by the determination unit that the transmission timing of the second frame exceeds the second delay time; and a step of transmitting the generated stop request frame to the multiple in-vehicle devices through the communication path.

13. A communication control program for controlling communications in a communication path to which multiple in-vehicle devices are connected, the program causing a computer to execute the following steps: determining whether or not a transmission timing of a first frame among multiple frames to be transmitted to the communication path exceeds a first delay time; when it is determined that the transmission timing of the first frame exceeds the first delay time, estimating a transmission timing of a second frame whose transmission timing changes as a result of changing the transmission order of the first frame; determining whether or not the estimated transmission timing of the second frame exceeds a second delay time; when it is determined by the determination unit that the transmission timing of the second frame exceeds the second delay time, generating a stop request frame for requesting that transmission of frames different from the first frame and the second frame be stopped until the first frame and the second frame are transmitted over the communication path; and transmitting the generated stop request frame to the multiple in-vehicle devices via the communication path.

Citation Information

Patent Citations

  • Flow control device, and flow control method

    JP2010057104A

  • Video quality control system, video reproduction device, program, storage medium and video quality control method

    JP2016015582A

  • On-vehicle relay device, relay method, information processing device, information processing system, and vehicle

    JP2019129512A