Communication device, communication control method, and communication control program
The communication device addresses frame delay issues by assessing and adjusting transmission timing and order, using a stop request frame to prioritize frames at risk, and switching to a higher-speed protocol, effectively managing vehicle network communication delays.
Patent Information
- Application Number
- JP2023038479
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-03-13
AI Technical Summary
The communication controller in existing systems risks exceeding allowable delay times for frames due to changes in transmission order, leading to potential delays in frame transmission.
A communication device that includes a determination unit to assess whether frame transmission timing exceeds a delay time, generating a stop request frame when necessary, and adjusting the transmission order to prioritize frames that are at risk of delay, using a higher-speed communication protocol when required.
This approach suppresses delays in multiple frames by ensuring timely transmission and maintaining compliance with allowable delay times, thereby optimizing communication efficiency in vehicle networks.
Smart Images

Figure 2024129339000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a communication device, a communication control method, and a communication control program. [Background technology]
[0002] A vehicle is equipped with various types of in-vehicle 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 in-vehicle device is connected to an in-vehicle network and can communicate with each other.
[0003] Patent Document 1 discloses a communication control controller that arbitrates the transmission of frames according to the priority assigned to the frames. The communication control 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 transmission right, and transmits the frame by switching the communication protocol from the low-speed Controller Area Network (CAN) to the high-speed CAN with Flexible Data Rate (CAN FD). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-188794 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, in the communication control controller disclosed in Patent Document 1, changing the priority of a frame in one ECU may result in a frame sent from another ECU being moved down in the transmission order, which may result in the allowable delay time of that frame being exceeded. [Means for solving the problem]
[0006] 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, the communication device including: 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 via the communication path; and an estimation unit that estimates the transmission timing of a second frame, whose transmission timing changes due to a change in the transmission order of the first frame, when it is determined that the delay time will be exceeded, 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 generates the stop request frame to request stopping 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 that the delay time will be exceeded.
[0007] 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. Effect of the Invention
[0008] According to the present disclosure, it is possible to suppress delays in multiple frames transmitted over a communication path. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of an in-vehicle system according to the embodiment. [Diagram 2] FIG. 2 is a block diagram illustrating an example of the configuration of the relay ECU according to the embodiment. [Diagram 3] FIG. 3 is a block diagram illustrating an example of the configuration of the ECU according to the embodiment. [Figure 4] FIG. 4 is a functional block diagram illustrating an example of functions of the relay ECU according to the embodiment. [Diagram 5] FIG. 5 is a schematic diagram showing a CAN frame format. [Figure 6] FIG. 6 is a diagram illustrating an example of communication in the in-vehicle system according to the embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of the management table. [Figure 8A] FIG. 8A is a flowchart showing the first half of the communication control process by the relay ECU according to the embodiment. [Figure 8B] FIG. 8B is a flowchart showing a second half of the communication control process by the relay ECU according to the embodiment. [Figure 9] FIG. 9 is a flowchart showing communication processing by the ECU according to the embodiment. [Figure 10] FIG. 10 is a sequence diagram showing an example of the operation of the in-vehicle system according to the embodiment. [Figure 11] FIG. 11 is a diagram showing a modified example of the management table. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] <Overview of the embodiment of the present disclosure> Below, an overview of the embodiments of the present disclosure will be listed and described.
[0011] (1) A communication device according to this embodiment 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 scheduled 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 transmission of frames 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 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 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 when the determination unit determines that the transmission timing of the second frame will exceed the second delay time. This makes it possible to estimate the transmission timing of the second frame, which is moved down in the transmission order due to the first frame being preferentially transmitted, and when the transmission timing exceeds the second delay time, the second frame is also preferentially transmitted. Therefore, it is possible to suppress delays of the second frame as well as the first frame.
[0012] (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 from 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.
[0013] (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 an 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.
[0014] (4) In the above (3), the stop request frame may include the first identification information and the second identification information in a transmission order of the first frame and the second frame, whereby an in-vehicle device receiving the stop request frame can recognize the transmission order of the first frame and the second frame.
[0015] (5) In any one of the above (1) to (4), the first delay time may be set based on a first permissible delay time that is a permissible delay time for the first frame, the number of identification information of frames transmitted on the communication path, the number of the in-vehicle devices connected to the communication path, or a frequency of frame transmission on the communication path, and the second delay time may be set based on a second permissible delay time that is a permissible delay time for the second frame, the number of identification information of frames transmitted on the communication path, the number of the in-vehicle devices connected to the communication path, or a frequency of frame transmission on the communication path. This makes it possible to set rational first and second delay times.
[0016] (6) In any one of (1) to (5) above, the first delay time may be set based on whether a source of the first frame is an in-vehicle device connected to one communication path or to multiple communication paths, and the second delay time may be set based on whether a source of the second frame is an in-vehicle device connected to one communication path or to multiple communication paths. This makes it possible to set rational first and second delay times.
[0017] (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.
[0018] (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 is delayed due to retention in the relay device, in addition to the transmission timing of the frame.
[0019] (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 or not 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 for requesting a stop of transmission of a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through 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, the transmission order of which is moved down due to the first frame being preferentially transmitted, and when the residence time exceeds the threshold, the second frame is also preferentially transmitted. Therefore, it is possible to suppress a delay due to the residence of the second frame in the relay device.
[0020] (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.
[0021] (11) In any one of the above (1) to (10), 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 rate than the first communication protocol, and switches from the first communication protocol to the second communication protocol during a period from when the stop request frame is transmitted until when the transmission of the first frame and the second frame is completed. This allows the first frame and the second frame that have been moved up in the transmission order to be transmitted at a high transmission rate using the second communication protocol.
[0022] (12) A communication control method according to the present embodiment is a communication control method for controlling communication in a communication path to which a plurality of in-vehicle devices are connected, and includes the steps of: determining 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; 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; determining whether the estimated transmission timing of the second frame exceeds a second delay time; generating a stop request frame for requesting a stop of transmission of a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through 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 through the communication path. In this way, it is possible to estimate the transmission timing of the second frame whose transmission order is moved down as a result of the first frame being preferentially transmitted, 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] (13) A communication control program according to the present embodiment is a communication control program for controlling communication in a communication path to which a plurality of in-vehicle devices are connected, and causes a computer to execute the steps of: determining whether or not a transmission timing of a first frame among a plurality of frames to be transmitted to the communication path exceeds a first delay time; 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; determining whether or not the estimated transmission timing of the second frame exceeds a second delay time; generating a stop request frame for requesting a stop of transmission of a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through 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 through the communication path. As a result, it is possible to estimate the transmission timing of the second frame whose transmission order is moved down as a result of the first frame being preferentially transmitted, 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.
[0024] <Details of the embodiment of the present disclosure> Hereinafter, the details of the embodiments of the present invention will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any desired manner.
[0025] [1. In-vehicle systems] 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 the present 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 "vehicle-mounted devices." In the following description, the ECUs 300A, 300B, 300C, and 300D are also collectively referred to as "ECUs 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 FD (CAN with Flexible Data Rate). 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 has a function as a gateway that relays communication 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. Relay ECU configuration] FIG. 2 is a block diagram showing an example of the configuration of the relay ECU according to the present embodiment. The relay ECU 200 includes a processor 201, a non-volatile memory 202, a volatile memory 203, and communication interfaces (hereinafter, also referred to as "communication I / F") 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 non-volatile 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 non-volatile 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 a static random access memory (SRAM) or a dynamic random access memory (DRAM). The non-volatile memory 202 is, for example, a flash memory, a hard disk, a read only memory (ROM), etc. The non-volatile memory 202 stores a communication control program 210, which is a computer program, and data used for executing the communication control program 210. Functions of the relay ECU 200, which will be described later, are realized by the processor 201 executing 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 the 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. The communication I / Fs 204A and 204B 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 non-volatile 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. ECU configuration] 3 is a block diagram showing an example of the configuration of an ECU according to this embodiment. The ECU 300 includes a processor 301, a nonvolatile memory 302, a volatile memory 303, and a communication I / F 304. The processor 301, the nonvolatile memory 302, the volatile memory 303, and the communication I / F 304 are connected to each other by a bus 305, which is a communication line. The processor 301, the nonvolatile memory 302, the volatile memory 303, and the communication I / F 304 can transmit data to each other via the 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 for executing the communication program 310. Functions of the ECU 300, which will be described later, are realized by the processor 301 executing 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 the 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 the present embodiment.
[0043] The processor 201 of the relay ECU 200 executes the communication control program 210 to realize the functions of a determination unit 221, a generation unit 222, a transmission unit 223, an estimation unit 224, and a switching unit 225. 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 standard CAN format. The upper line in the figure indicates recessive, and the lower line indicates dominant. As shown in FIG. 5, the 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 type of frame. RTR is used to identify a data frame and a remote frame. In the case of a data frame, 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 kind of error detection code is stored in the CRC field. The ACK slot and the ACK delimiter are collectively called the ACK field, and the ACK field stores information indicating whether the data up to the CRC field was received correctly. EOF indicates the end of the frame.
[0045] In CAN, frames contain identification information called CAN ID. The CAN ID indicates the type of frame. For example, the CANID of a frame containing "engine RPM" data is "0x100", and the CANID of a frame containing "accelerator opening" data is "0x200", etc.
[0046] The CAN ID also indicates the source of the frame. Fig. 6 is a diagram showing 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 a CAN ID indicates a frame. In the example of Fig. 6, the CAN ID of the frame transmitted from ECU300A is "0x300", the CAN ID of the frame transmitted from ECU300B is "0x200", the CAN ID of the frame transmitted from ECU300C is "0x400", the CAN ID of the frame transmitted from ECU300D is "0x100", and the CAN ID of the frame transmitted from ECU300E 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, the communication buses 400A and 400B are occupied by that frame.
[0048] 6, a frame with CAN ID 0x200 is sent 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] The relay ECU 200 relays frames between the communication buses 400A and 400B. In the example of Fig. 6, the relay ECU 200 relays a frame with CAN ID 0x100 transmitted from the ECU 300D and a frame with CAN ID 0x500 transmitted from the ECU 300E from the communication bus 400B to the communication bus 400A. In the example of Fig. 6, the relay ECU 200 has not yet transmitted the frames with CAN ID 0x100 and 0x500 received from the communication bus 400B to the communication bus 400A, and holds the frames with CAN ID 0x100 and 0x500 in a built-in buffer.
[0050] The CAN ID indicates a 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, before all of the frames with 0x100, 0x300, 0x400, and 0x500 are transmitted, other frames may interrupt. For example, if a frame with CAN ID 0x200 is transmitted again to the communication bus 400A after a frame with CAN ID 0x300 is transmitted, the frames with CAN IDs 0x400 and 0x500 are put on hold due to arbitration loss. Therefore, frames with low priority, for example, frames with CAN IDs 0x400 and 0x500, may continue to lose arbitration and may be delayed beyond an 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 or not the transmission timing of a frame among a plurality of frames to be transmitted to the communication buses 400A and 400B exceeds the first delay time.
[0053] In CAN, there are frames that are transmitted periodically and frames that are transmitted non-periodically. For frames that are transmitted periodically, the transmission interval (reception interval) of the frame 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 (hereinafter also simply referred to as "elapsed time") since the previous reception of a frame of the same CAN ID exceeds a first threshold value equivalent to a first delay time. Hereinafter, the frame for which the elapsed time is compared with the first threshold value is also referred to as the "first frame".
[0054] The relay ECU 200 performs communication control 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 state 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 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 reception interval of frames defined for each CAN ID. The "maximum reception interval" is the limit value for delays that exceed the reception interval of one frame. In the example of Figure 7, the reception interval of CAN ID0x100 is P1, and the maximum reception interval is PM1. The reception interval of CAN ID0x200 is P2, and the maximum reception interval is PM2. The reception interval of CAN ID0x300 is P3, and the maximum reception interval is PM3. The reception interval of CAN ID0x400 is P4, and the maximum reception interval is PM4. The reception interval of CAN ID0x500 is P5, and the maximum reception interval is PM5.
[0057] The residence time and the elapsed time are values that are updated successively as time passes. The management table 211 is updated in real time at predetermined intervals. That is, the residence time and the elapsed time are updated at predetermined intervals.
[0058] The "retention time" is the time that the relay ECU 200 is currently holding a frame. In other words, the "retention time" is the time that has elapsed since the relay ECU 200 received a frame. The "retention time" is set to "0" when the relay ECU 200 receives a frame to be relayed from the communication bus 400B to the communication bus 400A, and increases as time passes. The "retention time" is deleted from the management table 211 when the relay ECU 200 transmits the frame.
[0059] The retention time is set only for the CAN ID of the frame relayed by the 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] "Elapsed time" is the time that has elapsed since relay ECU 200 (and ECUs 300A, 300B, 300C, 300D, and 300E) last received a frame with the target CAN ID. "Elapsed time" is set to "0" when relay ECU 200 receives a frame with the target CAN ID, and increases as time passes. "Elapsed time" is reset when 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 Figure 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 permissible delay time of a frame. 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 that is larger than the reception interval and smaller than the maximum reception interval.
[0064] When a frame is not transmitted even if the reception interval has elapsed since the transmission (reception) of the previous frame, that is, when the transmission of the frame is delayed, the frame is requested 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, the transmission timing of the frame may 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. That is, if the elapsed time at the current time exceeds the first threshold, the transmission timing of the frame may 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 number of CAN IDs of frames transmitted through the communication buses 400A and 400B in addition to the maximum reception interval. When the number of CAN IDs of frames transmitted through the communication buses 400A and 400B is large, it is expected that frames with large CAN IDs will continuously lose arbitration. For this reason, the first threshold can be set smaller as the number of CAN IDs of frames transmitted through the communication buses 400A and 400B is larger.
[0066] For example, the first threshold value may be set based on the number of ECUs 300 connected to the communication buses 400A, 400B in addition to the maximum reception interval. It is assumed that the more ECUs connected to the communication buses 400A, 400B, the more frames are transmitted through the communication buses 400A, 400B, and frames with large CAN IDs are likely to continuously lose arbitration. For this reason, the more ECUs connected to the 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 frequency of frame transmission on the communication buses 400A and 400B in addition to the maximum reception interval. 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 increases, and it is expected that frames with large CAN IDs will continuously lose arbitration. For this reason, the first threshold value can be set smaller as the frequency of frame transmission on the communication buses 400A and 400B increases.
[0068] For example, the first threshold may be set based on whether the source of a frame of the corresponding CAN ID is an in-vehicle device connected to one communication bus 400A, i.e., the ECU 300, or an in-vehicle device connected to multiple communication buses 400A and 400B, i.e., the relay ECU 200, in addition to the maximum reception interval. A plurality of frames may be retained in the relay ECU 200. In such a case, if a frame to be transmitted first is retained, it is expected that the retention time of a frame to be transmitted later will be long. Therefore, it is preferable to shorten the retention time of a frame in the relay ECU 200. For this reason, the first threshold can be set small for a CAN ID whose frame source is the relay ECU 200, and the first threshold can be set large for a CAN ID whose frame source is the ECU 300.
[0069] When the judgment unit 221 judges that the elapsed time exceeds the first threshold, that is, when the judgment unit 221 judges that the frame transmission timing exceeds the first delay time, the generation unit 222 generates a stop request frame to request the stop of frame transmission.
[0070] The generation unit 222 determines the frame of the 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 among the CAN IDs 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 makes the priority of the stop request frame higher than other frames. The transmission unit 223 transmits the stop request frame generated by the generation unit 222 to the ECUs 300A, 300B, and 300C through the communication bus 400A. The ECUs 300A, 300B, and 300C that have received the stop request frame stop transmitting frames other than the priority frame until they receive a frame of the CAN ID specified in the stop request frame. If the ECUs 300A, 300B, and 300C are holding a frame of the CAN ID determined as a target for preferential transmission in order to transmit, the ECU transmits the priority frame when it receives the stop request frame. This ensures that priority frames are transmitted before frames with other CAN IDs.
[0072] As a result of the priority frame being transmitted before other frames, it is possible 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 delayed secondarily). The relay ECU 200 according to the embodiment controls the transmission order of frames so that no frames whose transmission is delayed secondarily occur.
[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 an "expected transmission timing." For example, the estimation unit 224 determines the expected transmission timing of a frame based on the delay time caused by the transmission of a priority frame. Hereinafter, the frame for which the expected transmission timing is determined is also referred to as a "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 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 (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 the transmission of the priority frame by adding up 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 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. As with the first delay time described above, the first threshold value corresponds to the second delay time.
[0078] When the judgment unit 221 judges that the expected transmission timing of the second frame will exceed the second delay time, the generation unit 222 generates a stop request frame to request a stop of frame transmission until the first and second frames are transmitted to the communication buses 400A, 400B.
[0079] The generating unit 222 determines a frame of a CAN ID whose expected elapsed time is determined to exceed the first threshold as a priority frame. The payload of the stop request frame includes the CAN ID of the priority frame, that is, the CAN ID of the first frame whose expected elapsed time is determined to exceed the first threshold, as well as the CAN ID of the second frame whose expected 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 in the transmission order of the first and second frames. For example, if the CAN ID whose expected elapsed time is determined to exceed the first threshold is 0x400 and the CAN ID whose expected elapsed time is determined to exceed the first threshold is 0x500, the payload of the stop request frame includes 0x400, 0x500 in this order.
[0080] It is desirable that the frame stay time in the relay ECU 200 is short, and the frame is required to be transmitted within the permissible stay time. The determination unit 221 can further determine whether the stay time in the relay ECU 200 of the first frame transmitted from the communication bus 400B to the communication bus 400A of the multiple communication buses 400A and 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 is set based on the permissible residence time in the relay ECU 200. Specifically, the second threshold is set to a value equal to or less than the permissible residence 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 of a CAN ID whose residence 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 the communication bus 400B to the communication bus 400A, the estimation unit 224 can estimate the residence time of the second frame in the relay ECU 200 when the transmission order of the first frame is changed. Hereinafter, the residence time estimated by the estimation unit 224 is also referred to as an "expected residence time." For example, the estimation unit 224 determines the expected residence time of the second frame based on the delay time caused by 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 for transmitting 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 as the residence time of the second frame in the relay ECU 200 before the transmission order of the first frame (priority frame) is changed plus the time required for transmitting the stop request frame and the priority frame. 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 or not 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 judges that the expected residence time of the second frame exceeds the second threshold, the generation unit 222 generates a stop request frame to request a stop of frame transmission until the first and second frames are transmitted to the communication buses 400A, 400B.
[0090] The generating unit 222 determines a frame of a CAN ID whose expected residence time is determined to exceed the second threshold as a priority frame. The payload of the stop request frame includes the CAN ID of the priority frame, that is, 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 elapsed time is determined to exceed the second threshold, and 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 in the transmission order of the first frame and the second frame. 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 includes 0x400, 0x500 in this order.
[0091] The switching unit 225 switches between the first communication protocol and the second communication protocol. The switching unit 225 switches from the first communication protocol to the second communication protocol during the period from when the stop request frame is transmitted to when the transmission of the priority frame is completed.
[0092] The stop request frame is transmitted by 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 complies with the second communication protocol. Reception 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. When 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. When the second communication protocol is CAN FD, the transmission speed is, for example, 1 Mbps.
[0095] [5. Operation of in-vehicle system] The operation of the in-vehicle system according to this embodiment will be described below.
[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 waiting time for each CAN ID in the management table 211 (step S101).
[0098] The processor 201 compares the elapsed time with a first threshold for each CAN ID, and determines whether or not there is a CAN ID (frame) whose elapsed time exceeds the first threshold. The processor 201 compares the retention time with a second threshold for each CAN ID, and determines whether or not there is a CAN ID (frame) whose retention time exceeds the second threshold (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 the expected residence time for each CAN ID (excluding the CAN ID of the priority frame) (step S104). In this case, for a CAN ID whose residence time is not registered in the management table 211, the expected residence time is not calculated.
[0102] The processor 201 compares the expected elapsed time with the first threshold for each CAN ID, and determines whether or not a CAN ID (frame) whose expected elapsed time exceeds the first threshold is present. The processor 201 compares the expected retention time with the second threshold for each CAN ID, and determines whether or not a CAN ID (frame) whose expected retention time exceeds the second threshold is present (step S105).
[0103] If a CAN ID exists whose expected elapsed time exceeds the first threshold, or if a CAN ID exists 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 the 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 or not a priority frame has been transmitted or received (step S109). If the relay ECU 200 is the source of the priority frame, the processor 201 determines whether or not a priority frame has been transmitted. If the ECU 300 is not the source of the priority frame, the processor 201 determines whether or not a priority frame has been received.
[0108] When 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 or not a stop request frame has been received (step S201).
[0112] If the stop request frame has not been received (NO in step S201), the processor 301 executes step S201 again.
[0113] When 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 or not a priority frame has been transmitted or received (step S203). If the ECU 300 is the source of the priority frame, the processor 301 determines whether or not the priority frame has been transmitted. If the ECU 300 is not the source of the priority frame, the processor 301 determines whether or not the priority frame has been received.
[0115] When 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] Fig. 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 a stop request frame onward.
[0118] It is assumed that a frame with CAN ID 0x400 and a 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 includes 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) of the CAN ID 0x400 to the communication bus 400A (step S14). The relay ECU 200 and the ECUs 300A and 300B receive the frame of the CAN ID 0x400.
[0122] The relay ECU 200 that relays the CAN ID 0x500 transmits the frame (priority frame) of the CAN ID 0x500 to the communication bus 400A (step S15). The ECUs 300A, 300B, and 300C receive the frame of the 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 the communication control process for suppressing the delay of the frame, but the present invention is not limited thereto. For example, when performing communication control in the communication bus 400A, one of the ECUs 300A, 300B, and 300C can execute the communication control process. That is, the ECU 300 is another example of a "communication device". In this case, since the retention time of the frame in the relay ECU 200 cannot be managed, the columns of the retention time and the second threshold value can be omitted in 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 the 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 state 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] Fig. 11 is a diagram showing a modified example of the management table. Fig. 11 shows a first management table 211A and a second management table 211B. The first management table 211A has columns for CAN ID, reception interval, maximum reception interval, elapsed time, and first threshold value, and includes a record (row) for each CAN ID. In the first management table 211A, the reception interval, maximum reception interval, residence time, and first threshold value are registered for each CAN ID.
[0127] The second management table 211B has columns for CAN ID, reception order, retention time, and second threshold. A plurality of frames with the same CAN ID may simultaneously reside in the relay ECU 200. Therefore, the second management table 211B includes a record for each frame.
[0128] In the second management table 211B, when the relay ECU 200 receives a frame, a record of the frame is added, 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 manner, a plurality of frames having the same CAN ID that are retained in the relay ECU 200 can be managed.
[0131] [7. Supplementary Notes] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims rather than the above-described embodiments, and includes the meaning equivalent to the claims and all modifications within the scope thereof. [Explanation of symbols]
[0132] 100 In-vehicle systems 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 Judgment section 222 Generation part 223 Transmitter 224 Estimation Department 225 Switching section 300,300A,300B,300C,300D,300E ECU (vehicle equipment, communication equipment) 301 Processor 302 Non-volatile memory 303 Volatile Memory 304 Communication Interface (Communication I / F) 310 Correspondence Programs 400, 400A, 400B communication bus (communication path)
Claims
1. A communication device that controls communication in a communication path to which a plurality of in-vehicle devices are connected, 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 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 through the communication path; an estimation unit that estimates a transmission timing of a second frame whose transmission timing changes due to a change in the transmission order of the first frame when the determination unit determines that the transmission timing of the first frame will exceed the first delay time; Equipped with the determination unit determines whether or not the transmission timing of the second frame estimated by the estimation unit exceeds a second delay time; the generation unit generates the stop request frame for requesting stop of transmission of a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through the communication path when the determination unit determines that the transmission timing of the second frame will exceed the second delay time. Communications equipment.
2. the estimation unit estimates, 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 from a transmission timing of the second frame before the transmission order of the first frame is changed; The communication device according to claim 1 .
3. 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. The communication device according to claim 1 .
4. the stop request frame includes the first identification information and the second identification information in a transmission order of the first frame and the second frame, The communication device according to claim 3.
5. the first delay time is set based on a first allowable delay time that is an allowable delay time for the first frame, a number of pieces of identification information of frames transmitted through the communication path, a number of the in-vehicle devices connected to the communication path, or a frequency of frame transmission through the communication path; the second delay time is set based on a second allowable delay time that is an allowable delay time for the second frame, a number of pieces of identification information of frames transmitted through the communication path, a number of the in-vehicle devices connected to the communication path, or a frequency of frame transmission through the communication path. The communication device according to claim 1 .
6. the first delay time is set based on whether a transmission source of the first frame is an in-vehicle device connected to one communication path or an in-vehicle device connected to a plurality of communication paths; the second delay time is set based on whether a transmission source of the second frame is an in-vehicle device connected to one communication path or an in-vehicle device connected to a plurality of communication paths. The communication device according to claim 1 .
7. 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; The communication device according to any one of claims 1 to 6.
8. The determination unit further determines whether a residence time of the first frame in the relay device, the first frame being transmitted from a first communication path to a second communication path among the plurality of communication paths, exceeds a threshold value; 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. The communication device according to claim 7.
9. the estimation unit, when the second frame is a frame to be transmitted from the first communication path to the second communication path, further estimates a residence time of the second frame in the relay device when a transmission order of the first frame is changed; The determination unit further determines whether or not a residence time of the second frame estimated by the estimation unit exceeds the threshold value; when the determination unit determines that the transmission timing of the second frame exceeds the second delay time or the residence time of the second frame exceeds the threshold, the generation unit generates the stop request frame for requesting stop of transmission of a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through the communication path.
9. The communication device according to claim 8.
10. the estimation unit estimates, 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. The communication device according to claim 9.
11. the communication device further includes 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; The switching unit is switching from the first communication protocol to the second communication protocol during the period from when the stop request frame is transmitted until when the transmission of the first frame and the second frame is completed; The communication device according to claim 1 .
12. A communication control method for controlling communication in a communication path to which a plurality of in-vehicle devices are connected, comprising: determining 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; estimating a transmission timing of a second frame whose transmission timing changes due to 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 a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through the communication path when the determination unit determines that the transmission timing of the second frame will exceed the second delay time; transmitting the generated stop request frame to the plurality of in-vehicle devices through the communication path; Including, Communications control method.
13. A communication control program for controlling communication in a communication path to which a plurality of in-vehicle devices are connected, comprising: On the computer, determining 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; estimating a transmission timing of a second frame whose transmission timing changes due to 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 a frame different from the first frame and the second frame until the first frame and the second frame are transmitted through the communication path when the determination unit determines that the transmission timing of the second frame will exceed the second delay time; transmitting the generated stop request frame to the plurality of in-vehicle devices through the communication path; In order to execute Communications control program.
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
Controller for communication control
JP2017188794A
