On-vehicle relay device, relay method, and relay program

The in-vehicle relay device optimizes frame relay processing by monitoring communication load and selectively relaying frames based on priority or order of reception, effectively reducing bus load and ensuring efficient network operation.

JP2024131757AActive Publication Date: 2024-09-30AUTONETWORKS TECH LTD +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023042202
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-16
Publication Date
2024-09-30
Estimated Expiration
2043-03-16

AI Technical Summary

Technical Problem

Existing in-vehicle network systems face challenges in reducing bus load while minimizing the impact on frame relay processing, as conventional methods may be inappropriate for different frame contents.

Method used

An in-vehicle relay device that monitors communication load on buses and selectively relays frames based on their priority or order of reception, using a monitoring unit to determine whether to relay frames according to the acquired measurement results.

Benefits of technology

This approach reduces bus load effectively while maintaining efficient frame relay processing by prioritizing urgent messages and optimizing frame transmission based on communication status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024131757000001_ABST
    Figure 2024131757000001_ABST
Patent Text Reader

Abstract

To reduce the bus load while suppressing the impact on frame relay processing in an on-vehicle network.SOLUTION: An on-vehicle relay device includes a relay unit that performs relay processing to relay a frame sent and received between on-vehicle devices and a monitoring unit that acquires measurement results of communication load on the bus to which the frame is relayed. The relay unit performs a selection process of either relaying the frame according to the priority of the frame according to the measurement results acquired by the monitoring unit or relaying the frame according to the order of reception of the frame by the on-vehicle relay device.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an in-vehicle relay device, a relay method, and a relay program. [Background technology]

[0002] Conventionally, relay devices that perform relay processing in an in-vehicle network have been developed.

[0003] For example, Patent Document 1 (JP Patent Publication 2006-287738 A) discloses the following network system: That is, in a network system equipped with a gateway node, at least one of whose connection destinations is connected to a CAN bus network, the gateway node is equipped with a bus load monitoring means for monitoring frames sent to the CAN bus and a bus load condition on the CAN bus, and a bus load adjusting means for adjusting the bus load according to the bus load condition detected by the bus load monitoring means. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2006-287738 A Summary of the Invention [Problem to be solved by the invention]

[0005] In the network system described in Patent Document 1, when the bus load is high, a process of reducing frame relay processing and a process of reducing the data length of the frame to be relayed are performed. However, such processing may be inappropriate depending on the contents of the frame to be relayed.

[0006] The present disclosure has been made to solve the above-mentioned problems, and its purpose is to provide an in-vehicle relay device, a relay method, and a relay program that can reduce bus load while suppressing the impact on frame relay processing in an in-vehicle network. [Means for solving the problem]

[0007] The vehicle-mounted relay device of the present disclosure comprises a relay unit that performs relay processing to relay frames transmitted and received between vehicle-mounted devices, and a monitoring unit that acquires measurement results of the communication load on the bus to which the frames are relayed, and the relay unit performs a selection process that selects whether to relay the frames according to the priority of the frames or to relay the frames according to the order in which the frames were received at the vehicle-mounted relay device, depending on the measurement results acquired by the monitoring unit.

[0008] The relay method disclosed herein is a relay method in an in-vehicle relay device that relays frames transmitted and received between in-vehicle devices, and includes a step of acquiring measurement results of communication load on a bus to which the frame is relayed, and a step of performing a selection process that selects, based on the acquired measurement results, whether to relay the frame according to the priority of the frame or according to the order in which the frames were received at the in-vehicle relay device.

[0009] The relay program disclosed herein is a relay program used in an in-vehicle relay device, and is a program for causing a computer to function as a relay unit that performs relay processing to relay frames transmitted and received between in-vehicle devices, and a monitoring unit that obtains measurement results of the communication load on the bus to which the frames are relayed, and the relay unit performs a selection process that selects whether to relay the frames according to the priority of the frames or to relay the frames according to the order in which they were received at the in-vehicle relay device, depending on the measurement results obtained by the monitoring unit.

[0010] One aspect of the present disclosure can be realized not only as an in-vehicle relay device equipped with such a characteristic processing unit, but also as a semiconductor integrated circuit that realizes part or all of the in-vehicle relay device, or as an in-vehicle communication system that includes the in-vehicle relay device. Effect of the Invention

[0011] According to the present disclosure, it is possible to reduce the bus load while suppressing the impact on the frame relay processing in an in-vehicle network. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram illustrating an example of a CAN frame transmitted by an in-vehicle ECU in the in-vehicle communication system according to the embodiment of the present disclosure. [Diagram 3] FIG. 3 is a diagram illustrating a configuration of an in-vehicle relay device according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a diagram illustrating an example of a priority table in the vehicle-mounted relay device according to the embodiment of the present disclosure. [Diagram 5] FIG. 5 is a diagram for explaining the relay process and the selection process by the vehicle-mounted relay device according to the embodiment of the present disclosure. [Figure 6] FIG. 6 is a diagram for explaining the relay process and the selection process by the vehicle-mounted relay device according to the embodiment of the present disclosure. [Figure 7] FIG. 7 is a time chart showing an example of a relay process and a selection process of a CAN frame by the vehicle-mounted relay device according to the embodiment of the present disclosure. [Figure 8] FIG. 8 is a flowchart defining an example of an operation procedure when the vehicle-mounted relay device according to the embodiment of the present disclosure performs the relay process and the selection process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] First, the contents of the embodiments of the present disclosure will be listed and described. (1) An in-vehicle relay device according to an embodiment of the present disclosure includes a relay unit that performs relay processing to relay frames transmitted and received between in-vehicle devices, and a monitoring unit that acquires measurement results of the communication load on the bus to which the frames are relayed, and the relay unit performs a selection process that selects, depending on the measurement results acquired by the monitoring unit, whether to relay the frames according to the priority of the frames or to relay the frames according to the order in which the frames were received at the in-vehicle relay device.

[0014] In this way, by selecting whether to relay frames according to the frame priority or according to the reception order of the frames at the vehicle-mounted relay device depending on the communication load on the bus to which the frame is to be relayed, it is possible to select appropriate relay processing content depending on the communication status of the bus to which the frame is to be relayed, and to reduce the communication load on the bus to which the frame is to be relayed while eliminating the need to thin out or reduce the data of the frames to be relayed. Therefore, it is possible to reduce the bus load while suppressing the impact on the frame relay processing in the vehicle-mounted network.

[0015] (2) In the above (1), the relay unit may store the frames received by the vehicle-mounted relay device and relay the stored frames, and the monitoring unit may calculate the communication load on the bus to which the frames are relayed based on the frames stored by the relay unit.

[0016] With this configuration, the frame reception status in the vehicle-mounted relay device can be grasped early and can be reflected in the selection process early.

[0017] (3) In the above (2), the relay unit may perform the selection process of the stored frames in accordance with the communication load calculated based on the stored frames.

[0018] With this configuration, it is possible to perform selection processing that more accurately reflects the frame reception status in the vehicle-mounted relay device, thereby improving the adaptability of the selection processing to the communication status.

[0019] (4) In any of (1) to (3) above, the monitoring unit may obtain measurement results of the communication load for each bus, and the relay unit may perform the selection process of the frames to be relayed through the bus in accordance with the measurement results corresponding to each bus.

[0020] With this configuration, the communication load can be calculated for each bus connected to the vehicle-mounted relay device and selection processing can be performed for each bus, thereby more effectively reducing the bus load in the vehicle-mounted network.

[0021] (5) In any of (1) to (4) above, the relay unit may perform the relay process of relaying a periodic frame including a message that is transmitted periodically, and an event frame including an event message, and a higher priority may be set for the event frame than for the periodic frame.

[0022] With this configuration, even in situations where the communication load is high, for example, event messages with high urgency can be transmitted with priority, making it possible to build a more stable in-vehicle communication system.

[0023] (6) In any of (1) to (5) above, the monitoring unit may classify each of the frames received by the vehicle-mounted relay device into groups according to the priority, and the relay unit may transmit the frames classified by the monitoring unit in group units in the relay process of relaying the frames according to the priority of the frames.

[0024] With this configuration, it is possible to more reliably relay all frames belonging to a higher priority group.

[0025] (7) A relay method according to an embodiment of the present disclosure is a relay method in an in-vehicle relay device that relays frames transmitted and received between in-vehicle devices, and includes a step of acquiring measurement results of communication load on a bus to which the frame is to be relayed, and a step of performing a selection process that selects, based on the acquired measurement results, whether to relay the frame according to the priority of the frame or according to the order in which the frames were received at the in-vehicle relay device.

[0026] In this way, by selecting whether to relay frames according to the frame priority or according to the reception order of the frames at the vehicle-mounted relay device depending on the communication load on the bus to which the frame is to be relayed, it is possible to select appropriate relay processing content depending on the communication status of the bus to which the frame is to be relayed, and to reduce the communication load on the bus to which the frame is to be relayed while eliminating the need to thin out or reduce the data of the frames to be relayed. Therefore, it is possible to reduce the bus load while suppressing the impact on the frame relay processing in the vehicle-mounted network.

[0027] (8) A relay program according to an embodiment of the present disclosure is a relay program used in an in-vehicle relay device, and is a program for causing a computer to function as a relay unit that performs relay processing to relay frames transmitted and received between in-vehicle devices, and a monitoring unit that obtains measurement results of the communication load on the bus to which the frames are relayed, and the relay unit performs a selection process that selects, depending on the measurement results obtained by the monitoring unit, whether to relay the frames according to the priority of the frames or to relay the frames according to the order in which the frames were received at the in-vehicle relay device.

[0028] In this way, by selecting whether to relay frames according to the frame priority or according to the reception order of the frames at the vehicle-mounted relay device depending on the communication load on the bus to which the frame is to be relayed, it is possible to select appropriate relay processing content depending on the communication status of the bus to which the frame is to be relayed, and to reduce the communication load on the bus to which the frame is to be relayed while eliminating the need to thin out or reduce the data of the frames to be relayed. Therefore, it is possible to reduce the bus load while suppressing the impact on the frame relay processing in the vehicle-mounted network.

[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and the description thereof will not be repeated. In addition, at least some of the embodiments described below may be arbitrarily combined.

[0030] [Configuration and basic operation] Fig. 1 is a diagram showing a configuration of an in-vehicle communication system according to an embodiment of the present disclosure. Referring to Fig. 1, an in-vehicle communication system 301 includes an in-vehicle relay device 101, a plurality of in-vehicle ECUs (Electronic Control Units) 111A, and a plurality of in-vehicle ECUs 111B. The in-vehicle ECUs 111A and 111B are examples of in-vehicle devices. Hereinafter, each of the in-vehicle ECUs 111A and 111B will also be referred to as an in-vehicle ECU 111.

[0031] A plurality of in-vehicle ECUs 111A are connected to the in-vehicle relay device 101 via a bus 1A conforming to the CAN (registered trademark) standard. A plurality of in-vehicle ECUs 111B are connected to the in-vehicle relay device 101 via a bus 1B conforming to the CAN standard. Hereinafter, each of the bus 1A and the bus 1B will also be referred to as a bus 1.

[0032] The in-vehicle ECUs 111A and 111B transmit and receive CAN frames, which are frames that comply with the CAN standard.

[0033] The vehicle-mounted relay device 101 may be configured to be connected to three or more CAN buses. Also, the vehicle-mounted communication system 301 may be configured to include a plurality of vehicle-mounted relay devices 101, each of which is connected via a CAN bus.

[0034] 2 is a diagram showing an example of a CAN frame transmitted by an on-board ECU in an on-board communication system according to an embodiment of the present disclosure. Referring to Fig. 2, the CAN frame includes, in this order from the beginning of the frame, a SOF (Start Of Frame) field, an ID field, a DLC field, a data field (hereinafter also referred to as a DAT field), a CRC (Cyclic Redundancy Check) field, an ACK field, and an EOF field.

[0035] The in-vehicle ECU 111A periodically or irregularly generates a CAN frame in which data to be transmitted to the other in-vehicle ECUs 111A and 111B is stored in a DAT field, and transmits the generated CAN frame to the other in-vehicle ECUs 111A and the in-vehicle relay device 101 via the bus 1A.

[0036] The in-vehicle ECU 111B periodically or irregularly generates a CAN frame in which data to be transmitted to the in-vehicle ECU 111A and other in-vehicle ECUs 111B is stored in a DAT field, and transmits the generated CAN frame to the other in-vehicle ECUs 111B and the in-vehicle relay device 101 via the bus 1B.

[0037] The in-vehicle relay device 101 can relay a CAN frame received from the in-vehicle ECU 111A via the bus 1A to the in-vehicle ECU 111B. Also, the in-vehicle relay device 101 can relay a CAN frame received from the in-vehicle ECU 111B via the bus 1B to the in-vehicle ECU 111A.

[0038] [Vehicle-mounted relay device] Fig. 3 is a diagram showing a configuration of an in-vehicle relay device according to an embodiment of the present disclosure. Referring to Fig. 3, the in-vehicle relay device 101 includes a plurality of communication ports 10, a relay unit 11, a monitoring unit 12, a communication unit 13, and a storage unit 14. A part or all of the relay unit 11, the monitoring unit 12, and the communication unit 13 are realized, for example, by a processing circuit including one or more processors. The storage unit 14 is, for example, a non-volatile memory included in the processing circuit.

[0039] As an example, the vehicle-mounted relay device 101 includes communication ports 10A and 10B that are the communication port 10. The communication port 10A is connected to a bus 1A. The communication port 10B is connected to a bus 1B.

[0040] The communication unit 13 receives CAN frames from the in-vehicle ECUs 111A and 111B. More specifically, the communication unit 13 receives a CAN frame from the in-vehicle ECU 111A via the communication port 10A, and outputs the received CAN frame to the relay unit 11. The communication unit 13 also receives a CAN frame from the in-vehicle ECU 111B via the communication port 10B, and outputs the received CAN frame to the relay unit 11.

[0041] (Relay processing) The relay unit 11 performs relay processing to relay CAN frames transmitted and received between the in-vehicle ECUs 111. More specifically, the relay unit 11 performs relay processing of a CAN frame received by the communication unit 13 via the communication port 10A, and relay processing of a CAN frame received by the communication unit 13 via the communication port 10B.

[0042] For example, the memory unit 14 stores a routing table showing the correspondence between the ID of a CAN frame (hereinafter also referred to as a CAN-ID), the bus 1 to which the in-vehicle ECU 111 that is the source of the CAN frame is connected (hereinafter also referred to as the "source bus"), and the bus 1 to which the in-vehicle ECU 111 to which the CAN frame is to be sent (hereinafter also referred to as the "destination bus") is connected.

[0043] The relay unit 11 refers to a routing table in the storage unit 14 to identify a destination bus corresponding to the CAN-ID and source bus of the CAN frame, and outputs the CAN frame to the identified destination bus via the communication unit 13 and the corresponding communication port 10. Specifically, the relay unit 11 transmits a CAN frame received from the in-vehicle ECU 111A to the in-vehicle ECU 111B via the communication port 10B and the bus 1B. The relay unit 11 also transmits a CAN frame received from the in-vehicle ECU 111B to the in-vehicle ECU 111A via the communication port 10A and the bus 1A.

[0044] For example, the relay unit 11 accumulates CAN frames received by the vehicle-mounted relay device 101, and relays the accumulated CAN frames.

[0045] More specifically, relay unit 11 accumulates the CAN frames received from communication unit 13 in the storage unit 14, for example, in the order of reception, i.e., in the order of reception from communication unit 13. In accordance with an instruction from monitoring unit 12, relay unit 11 retrieves the CAN frame from storage unit 14 and transmits it to in-vehicle ECU 111 via communication unit 13, communication port 10, and bus 1.

[0046] The monitoring unit 12 performs an acquisition process to acquire the measurement result of the communication load in the bus 1 that is the relay destination of the CAN frame. For example, the monitoring unit 12 acquires the measurement result of the communication load for each bus 1.

[0047] Specifically, for example, based on a CAN frame stored in relay unit 11, monitor unit 12 calculates the communication load on bus 1, which is the relay destination of the CAN frame.

[0048] More specifically, monitor 12 monitors CAN frames (hereinafter also referred to as accumulated frames) accumulated in memory 14, and calculates, based on the accumulated frames, the communication load (hereinafter also referred to as bus load) on bus 1 to which the accumulated frames are transferred. For example, monitor 12 calculates, for each bus 1, the number of CAN frames accumulated per unit time, or the amount of data in the DAT field of the CAN frames, as the bus load.

[0049] Based on the acquired bus load measurement results, the monitoring unit 12 judges whether the load state of the bus 1 to which the CAN frame is transferred is normal or high load. Specifically, for example, the monitoring unit 12 judges that the load state is normal when the number or the amount of data is less than a predetermined threshold, and judges that the load state is high when the number or the amount of data is equal to or greater than the threshold. The monitoring unit 12 outputs load information indicating the judgment result for each bus 1 to the relay unit 11 as the instruction. The monitoring unit 12 performs such acquisition processing periodically or irregularly.

[0050] FIG. 4 is a diagram illustrating an example of a priority table in the vehicle-mounted relay device according to the embodiment of the present disclosure.

[0051] With reference to FIG. 4, the storage unit 14 stores a priority table TP indicating the correspondence between the CAN-ID and the priority.

[0052] Specifically, in the in-vehicle communication system 301, three types of priority, for example, high, medium, and low, are set for CAN frames. The priorities of CAN frames with CAN-IDs of 0x100, 0x200, 0x300, 0x400, 0x500, and 0x600 are medium, high, low, low, medium, and high, respectively. Here, a number beginning with "0x" means that the number after "0x" is expressed in hexadecimal.

[0053] For example, CAN frames include periodic frames that contain messages that are transmitted periodically, and event frames that contain event messages.

[0054] As an example, a CAN frame with a "high" priority is a frame that includes a control message for automatic driving of the vehicle in which the in-vehicle communication system 301 is installed, a CAN frame with a "medium" priority is a frame that includes an event message that is created in response to an event such as the opening and closing of a door, and a CAN frame with a "low" priority is a frame that includes a periodic message that is created periodically, such as a sensor measurement result.

[0055] In addition, the number of priorities set in the in-vehicle communication system 301 is not limited to three, and may be two or four or more. The number of priorities is set in advance based on the type of CAN frame to be relayed in the in-vehicle communication system 301, the specifications of the in-vehicle relay device 101, and the like.

[0056] The monitor unit 12 classifies each CAN frame received by the vehicle-mounted relay device 101 into groups according to priority.

[0057] Specifically, with reference to FIGS. 3 and 4, a queue area is provided in storage unit 14 for each bus 1 and for each priority level.

[0058] The monitoring unit 12 allocates the accumulated frames, the output destination of which is the bus 1 determined to be in a high load state, to each queue according to the priority corresponding to the CAN-ID by referring to the priority table TP. Note that the monitoring unit 12 may be configured to copy the accumulated frames for all the buses 1 and store them in each queue before determining the load state.

[0059] Relay unit 11 performs a selection process to select whether to relay a CAN frame according to the priority of the CAN frame or to relay the CAN frame according to the order of reception of the CAN frame at in-vehicle relay device 101, depending on the measurement result acquired by monitoring unit 12. For example, relay unit 11 performs a selection process for each bus 1, depending on the measurement result corresponding to the bus 1, of a frame to be relayed to that bus 1.

[0060] More specifically, when the load information received from the monitoring unit 12 indicates a normal state, the relay unit 11 retrieves CAN frames having the corresponding bus 1 as the output destination from the memory unit 14 in the order in which they were stored, and outputs them to the bus 1 via the communication unit 13 and the communication port 10 corresponding to the bus 1.

[0061] In addition, the above-mentioned "process of relaying CAN frames according to the order of reception at the vehicle-mounted relay device 101" is not limited to cases where the CAN frames are relayed in the exact order of reception, but also includes cases where the CAN frames are relayed out of order relative to the order of reception due to internal processing in the communication unit 13 or the relay unit 11, etc.

[0062] On the other hand, when the load information received from the monitoring unit 12 indicates a high load state, the relay unit 11 retrieves CAN frames having the corresponding bus 1 as the output destination from the high priority queue in the memory unit 14, and outputs them to the bus 1 via the communication unit 13 and the communication port 10 corresponding to the bus 1.

[0063] The monitoring unit 12 may be configured to determine three or more types of load states. In this case, when the load state indicated by the load information received from the monitoring unit 12 is a specific load state, the relay unit 11 performs relay processing according to the priority, and when the load state is another load state, the relay unit 11 performs relay processing according to the order of reception. The specific load state may be one type or multiple types.

[0064] Furthermore, the monitoring unit 12 may be configured to acquire the measurement result of the bus load for either one of the buses 1A and 1B. In this case, the relay unit 11 performs the selection process for the bus 1 for which the measurement result has been acquired.

[0065] Furthermore, in the storage unit 14, queues for each priority may be provided in common between the buses 1. In this case, the relay unit 11 refers to the routing table to determine the output bus 1 based on the CAN-ID in the CAN frame, and extracts the CAN frame to be relayed from the queue.

[0066] 5 and 6 are diagrams for explaining the relay process and the selection process by the vehicle-mounted relay device according to the embodiment of the present disclosure.

[0067] In relay processing for relaying CAN frames according to the priority of the CAN frames, the relay unit 11 transmits the CAN frames classified by the monitor unit 12 in group units.

[0068] Specifically, referring to Figures 5 and 6, when a CAN frame FC with a "low" priority, a CAN frame FA with a "high" priority, and a CAN frame FB with a "medium" priority are received in this order by the vehicle-mounted relay device 101, if the monitoring unit 12 determines that the load state of the destination bus 1 is normal, the CAN frames are output to the destination bus 1 in the order of reception, that is, CAN frame FC, CAN frame FA, and CAN frame FB.

[0069] On the other hand, if the monitoring unit 12 determines that the load state of the destination bus 1 is high, priority control is performed, and each CAN frame is output to the destination bus 1 in the order of priority: CAN frame FA, CAN frame FB, CAN frame FC. That is, each received CAN frame is classified into groups according to priority, and relayed in order from the group with the highest priority. Priority within a group is determined, for example, according to the CAN specifications.

[0070] Specifically, as shown in Figure 6, CAN frames with CAN-IDs of 0x200 and 0x600 grouped into group A with a "high" priority are relayed first, CAN frames with CAN-IDs of 0x100 and 0x500 grouped into group B with a "medium" priority are relayed next, and CAN frames with CAN-IDs of 0x300 and 0x400 grouped into group C with a "low" priority are relayed next.

[0071] 7 is a time chart showing an example of a relay process and a selection process of a CAN frame by an in-vehicle relay device according to an embodiment of the present disclosure. As in Fig. 5 and Fig. 6, the symbol "FA" indicates a CAN frame with a "high" priority, the symbol "FB" indicates a CAN frame with a "medium" priority, and the symbol "FC" indicates a CAN frame with a "low" priority.

[0072] The relay unit 11 selects the stored frames in accordance with the communication load calculated based on the stored frames.

[0073] Specifically, referring to Figure 7, it is assumed that CAN frames FB1, FB2, FA1, FB11, FB12, FA11, FC11, and FC12, each of which has an in-vehicle ECU 111 connected to the same bus 1 as its destination, are output to the bus 1 in this order and received by the in-vehicle relay device 101.

[0074] The vehicle-mounted relay device 101 performs a calculation process to calculate the bus load from the CAN frames received during a bus load measurement period T, for example, 1 millisecond, and performs a determination process to determine the load state based on the calculated bus load.

[0075] Specifically, the vehicle-mounted relay device 101 calculates the bus load for the CAN frames FB1, FB2, and FA1 received during a measurement period TA of 1 millisecond, and if it determines that the state is normal, it outputs each CAN frame to the destination bus 1 in the order in which they were received: CAN frames FB1, FB2, FA1.

[0076] On the other hand, when the vehicle-mounted relay device 101 determines that it is in a high-load state, it performs grouping processing on each CAN frame and outputs the CAN frame for each group. Specifically, the vehicle-mounted relay device 101 first outputs the CAN frame FA1 belonging to the group GA with a "high" priority, and then outputs the CAN frames FB1 and FB2 belonging to the group GB with a "medium" priority.

[0077] In parallel with the process for the measurement period TA, the in-vehicle repeater 101 performs the same process for the next measurement period TB of 1 millisecond. Specifically, the in-vehicle repeater 101 calculates the bus load for the CAN frames FB11, FB12, FA11, FC11, and FC12 received in period B, and when it is determined that the bus load is in a normal state, outputs each CAN frame to the destination bus 1 in the order of reception, that is, the CAN frames FB11, FB12, FA11, FC11, and FC12.

[0078] On the other hand, when the vehicle-mounted relay device 101 determines that it is in a high-load state, it performs grouping processing on each CAN frame and outputs the CAN frame for each group. Specifically, the vehicle-mounted relay device 101 first outputs the CAN frame FA11 belonging to the group GA with a "high" priority, then outputs the CAN frames FB11 and FB12 belonging to the group GB with a "medium" priority, and then outputs the CAN frames FC11 and FC12 belonging to the group GC with a "low" priority.

[0079] [Operation flow] FIG. 8 is a flowchart defining an example of an operation procedure when the vehicle-mounted relay device according to the embodiment of the present disclosure performs the relay process and the selection process.

[0080] 8, first, the in-vehicle relay device 101 receives a CAN frame from the in-vehicle ECU 111 (step S1) and stores the received CAN frame in the storage unit 14 (step S2). The in-vehicle relay device 101 continues to receive and store the CAN frame (steps S1 and S2) until a predetermined time has elapsed, that is, until the measurement period T has elapsed (NO in step S3).

[0081] Next, when the measurement period T has elapsed (YES in step S3), the in-vehicle relay device 101 calculates the bus load on the destination bus 1 based on the CAN frames accumulated during the measurement period T (step S4).

[0082] For the bus 1 whose bus load is equal to or greater than the threshold (YES in step S5), the vehicle-mounted relay device 101 relays the stored frame having the bus 1 as the output destination in accordance with the priority (step S6).

[0083] Furthermore, for the bus 1 whose bus load is less than the threshold (NO in step S5), the vehicle-mounted relay device 101 relays the signals in the order of reception on that bus 1 (step S7).

[0084] As described in FIG. 7, the vehicle-mounted relay device 101 performs the above processes in parallel for the measurement periods T that are continuous in time.

[0085] In the vehicle-mounted repeater according to the embodiment of the present disclosure, the repeater 11 is configured to select an accumulated frame according to a communication load calculated based on the accumulated frame, but this is not limited to the above. The repeater 11 may be configured to select an accumulated frame according to a communication load calculated based on a CAN frame received by the vehicle-mounted repeater 101 before the accumulated frame.

[0086] That is, the relay unit 11 may be configured to perform the selection process of the accumulated frame in accordance with the bus load corresponding to the measurement period T prior to the measurement period T corresponding to the accumulated frame. For example, the relay unit 11 performs the selection process of the accumulated frame in accordance with the bus load calculated based on the CAN frame received in the measurement period T prior to the measurement period T corresponding to the accumulated frame. With such a configuration, it is possible to suppress the transmission delay of the CAN frame associated with the relay process including the calculation of the bus load.

[0087] In addition, in the in-vehicle repeater according to the embodiment of the present disclosure, the monitoring unit 12 is configured to calculate the communication load on the bus to which the CAN frame is relayed based on the CAN frame stored in the repeater 11, but this is not limited thereto. The monitoring unit 12 may be configured to obtain the measurement result of the communication load from outside the in-vehicle repeater 101.

[0088] In addition, in the in-vehicle communication system 301 according to the embodiment of the present disclosure, the in-vehicle ECUs 111A and 111B are configured to be connected to the in-vehicle relay device 101 via buses 1A and 1B conforming to the CAN standard, but this is not limited thereto. The in-vehicle ECUs 111A and 111B may be configured to be connected to the in-vehicle relay device 101 via buses conforming to standards other than CAN, such as CAN FD, LIN (Local Interconnect Network), and CXPI (Clock Extension Peripheral Interface).

[0089] Furthermore, the in-vehicle communication system 301 according to the embodiment of the present disclosure may be configured to include in-vehicle ECUs 111 each connected to the in-vehicle relay device 101 via buses conforming to mutually different standards.

[0090] The above-described embodiments should be considered as illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not by the above description, and is intended to include all modifications within the meaning and scope of the claims.

[0091] The above description includes the following additional features. [Appendix 1] An in-vehicle relay device that performs relay processing of frames transmitted and received between functional units in an in-vehicle network, A processing circuit is provided, The processing circuitry includes: A relay process is performed to relay frames transmitted and received between the in-vehicle devices; Obtaining a measurement result of a communication load on a bus to which the frame is relayed; An in-vehicle relay device that performs a selection process to select whether to relay the frame according to the priority of the frame or according to the order in which the frames were received at the in-vehicle relay device, depending on the acquired measurement results. [Explanation of symbols]

[0092] 1,1A,1B Bus 10, 10A, 10B communication ports 11 Relay Section 12 Monitoring Department 13. Communications Department 14 Storage section 101 Vehicle-mounted relay device 111 Automotive ECU 111A,111B Automotive ECU 301 In-vehicle communication system TP Priority Table

Claims

1. An in-vehicle relay device, a relay unit that performs a relay process for relaying frames transmitted and received between the in-vehicle devices; a monitoring unit that acquires a measurement result of a communication load on a bus to which the frame is relayed, The relay unit performs a selection process to select whether to relay the frame according to the priority of the frame or according to the order in which the frames were received at the vehicle-mounted relay device, depending on the measurement results obtained by the monitoring unit.

2. The relay unit stores the frames received by the vehicle-mounted relay device and relays the stored frames; The vehicle-mounted relay device according to claim 1 , wherein the monitoring unit calculates a communication load on a bus to which the frame is relayed, based on the frame stored in the relay unit.

3. The vehicle-mounted relay device according to claim 2 , wherein the relay unit performs the selection process of the stored frames in accordance with the communication load calculated based on the stored frames.

4. The monitoring unit acquires a measurement result of the communication load for each of the buses, 4. The vehicle-mounted relay device according to claim 1, wherein the relay unit performs the selection process of the frames to be relayed to the bus in accordance with the measurement result corresponding to each bus.

5. the relay unit performs the relay process of relaying a periodic frame including a message that is periodically transmitted and an event frame including an event message; The vehicle-mounted relay device according to claim 1 , wherein a higher priority is set for the event frame than for the periodic frame.

6. The monitoring unit classifies each of the frames received by the vehicle-mounted relay device into groups according to the priority level, 4. The vehicle-mounted relay device according to claim 1, wherein the relay unit transmits the frames classified by the monitoring unit in the group unit in the relay process of relaying the frames according to the priority of the frames.

7. A relay method in an in-vehicle relay device that relays frames transmitted and received between in-vehicle devices, comprising: acquiring a measurement result of a communication load on a bus to which the frame is relayed; and performing a selection process to select whether to relay the frame according to the priority of the frame or according to the order of reception of the frame at the vehicle-mounted relay device depending on the acquired measurement result.

8. A relay program used in an in-vehicle relay device, Computer, a relay unit that performs a relay process for relaying frames transmitted and received between the in-vehicle devices; A monitoring unit that acquires a measurement result of a communication load on a bus to which the frame is relayed; It is a program to function as The relay unit performs a selection process to select whether to relay the frame according to the priority of the frame or according to the order in which the frames are received at the vehicle-mounted relay device, depending on the measurement results obtained by the monitoring unit.

Citation Information

Patent Citations

  • Vehicular communication system and on-vehicle communication device

    JP2006088829A

  • Network system

    JP2006287738A

  • In-vehicle communication device

    JP2019161299A

  • Fraud detection server and method

    JP2022125099A