Relay device, control method, and computer program
The relay device addresses the challenge of power consumption in in-vehicle systems by monitoring cluster frames and stopping abnormal clusters, thereby reducing power usage and preventing battery discharge issues.
Patent Information
- Application Number
- PCT/JP2024/010104
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-03-14
- Publication Date
- 2024-09-26
AI Technical Summary
In-vehicle systems face challenges in reducing power consumption, particularly in identifying and managing abnormal clusters within vehicle-mounted control devices to prevent excessive battery discharge and maintain efficient operation.
A relay device that monitors and determines the status of cluster frames transmitted between vehicle-mounted control devices via a communication bus, allowing it to stop abnormal clusters and manage power consumption by not transmitting cluster frames to affected devices, thereby reducing power usage.
The solution effectively suppresses power consumption by identifying and stopping abnormal clusters, preventing excessive battery discharge and ensuring efficient operation of in-vehicle systems.
Smart Images

Figure JP2024010104_26092024_PF_FP
Abstract
Description
Relay device, control method, and computer program
[0001] This application claims priority to Japanese Patent Application No. 2023-044468 filed on March 20, 2023, and incorporates by reference all of the contents of that application.
[0002] A vehicle is equipped with a variety of on-board devices, such as control system ECUs (Electronic Control Units) that control the engine, transmission, etc., body ECUs that control headlights, power windows, etc., and information system ECUs for navigation devices, multimedia devices, etc. In recent years, in on-board systems that connect the on-board devices via a bus network, a partial network function has been developed in which the on-board devices are divided into clusters called PNCs (Partial Network Clusters) for each function (service), and the on-board devices of the PNCs used to execute the service are woken up and the on-board devices of the other PNCs are put to sleep. The partial network function has been standardized in ISO (International Organization for Standardization) 11898-6.
[0003] Non-Patent Document 1 discloses a technique for communicating PNC requests and release information between ECUs using network management messages (NM messages).
[0004] Patent Document 1 discloses a monitoring system that includes a control device that controls power supply from a main battery to a sub-battery, and a comparator that compares the battery voltage of the sub-battery with a reference voltage and activates the control device when the battery voltage falls below the reference voltage. The monitoring system prevents the battery from excessively discharging, which could cause the battery terminal voltage to drop to a level that would prevent electronic devices connected to the battery from operating (hereinafter referred to as excessive discharging).
[0005] Japanese Patent Application Laid-Open No. 2019-146462
[0006] AUTOSAR Layered Software Architecture, [online], [Retrieved February 23, 2023], Internet <https: / / www.autosar.org / fileadmin / standards / classic / 22-11 / AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf> pp.182-186
[0007] A relay device according to one aspect of the present disclosure is a relay device that relays communications between vehicle-mounted control devices that can communicate with each other via a communication bus, and includes: a receiving unit that receives a first cluster frame transmitted by a first vehicle-mounted control device belonging to a first cluster that executes a first function to a second vehicle-mounted control device that belongs to the first cluster; a monitoring unit that monitors the reception status of frames by the receiving unit and acquires the occurrence status of the first cluster frame transmitted from the first vehicle-mounted control device to the second vehicle-mounted control device; a determination unit that determines whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitoring unit and a determination criterion for the frame occurrence status; and a start-up control unit that, if the determination unit determines that the first cluster is normal, transmits the first cluster frame transmitted from the first vehicle-mounted control device to the second vehicle-mounted control device, and, if the determination unit determines that the first cluster is abnormal, does not transmit the first cluster frame transmitted from the first vehicle-mounted control device to the second vehicle-mounted control device.
[0008] The present disclosure can be realized not only as a relay device having the above-described characteristic configuration, a control method in which characteristic processing in the relay device is performed as steps, and a control program for causing the relay device to perform the characteristic processing, but also as a semiconductor integrated circuit in which part or all of the relay device is realized.
[0009] FIG. 1 is a block diagram showing an example of the configuration of an in-vehicle system including a relay device according to a first embodiment. FIG. 2 is a block diagram showing an example of the configuration of a relay device according to the first embodiment. FIG. 3 is a block diagram showing an example of the configuration of an in-vehicle control device according to the first embodiment. FIG. 4 is an example of a cluster table showing in-vehicle control devices belonging to each cluster. FIG. 5 is a functional block diagram showing an example of the functions of a relay device according to the first embodiment. FIG. 6 is a diagram showing an example of a determination criterion for determining whether a cluster is normal or abnormal. FIG. 7 is a schematic diagram showing a data flow when the occurrence status of cluster frames is normal. FIG. 8 is a schematic diagram showing a data flow when the occurrence status of cluster frames is abnormal. FIG. 9 is a schematic diagram showing a data flow when the occurrence status of cluster frames is abnormal. FIG. 10 is a flowchart showing an example of the operation of the relay device according to the first embodiment. FIG. 11 is a functional block diagram showing an example of the functions of a relay device according to a second embodiment. FIG. 12 is a flowchart showing an example of the operation of the relay device according to the second embodiment. FIG. 13 is a diagram showing an example of a determination criterion for a modified example of the relay device.
[0010] [Problem to be Solved by the Invention] In vehicle-mounted systems, further reduction in power consumption is required.
[0011] Effect of the Invention According to the present disclosure, it is possible to stop a second in-vehicle control device that belongs to a cluster that is determined to be abnormal, thereby reducing the power consumption of the in-vehicle system.
[0012] <Outline of Embodiments of the Present Disclosure> Below, an outline of embodiments of the present disclosure will be listed and described.
[0013] (1) A relay device according to this embodiment relays communications between in-vehicle control devices that can communicate with each other via a communication bus, and includes: a receiving unit that receives a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster; a monitoring unit that monitors the reception status of the frame by the receiving unit and acquires an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device; a determining unit that determines whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitoring unit and a determination criterion related to the frame occurrence status; and a start-up control unit that, if the determining unit determines that the first cluster is normal, transmits the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device, and, if the determining unit determines that the first cluster is abnormal, does not transmit the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device. This stops the second in-vehicle control device belonging to the cluster that is determined to be abnormal, thereby reducing power consumption of the in-vehicle system.
[0014] (2) In the above (1), when the determination unit determines that the first cluster is abnormal, the activation control unit may transmit a stop frame to the second in-vehicle control device to stop the second in-vehicle control device, thereby allowing the relay device to actively stop the second in-vehicle control device.
[0015] (3) In the above (1) or (2), the occurrence status of the first cluster frame may include at least one of a duration for which the plurality of first cluster frames are periodically transmitted or a number of occurrences of the first cluster frames. This makes it possible to determine whether the first cluster executing the first function is normal or abnormal based on the duration or number of occurrences of an abnormal frame.
[0016] (4) In any one of (1) to (3) above, the determination unit may determine whether the first cluster is normal or abnormal based on a first determination criterion when a power storage device that supplies power to the on-board control device is not being charged, and may determine whether the first cluster is normal or abnormal based on a second determination criterion that is more relaxed than the first determination criterion when the power storage device is being charged. This makes it possible to appropriately determine whether the cluster is normal or abnormal, in accordance with cases where the cluster must be determined to be abnormal when the power storage device is not being charged, and where the cluster cannot be deemed to be abnormal when the power storage device is being charged.
[0017] (5) In any one of (1) to (4) above, the receiving unit may receive a second cluster frame transmitted from a third in-vehicle control device belonging to a second cluster that executes a second function to a fourth in-vehicle control device belonging to the second cluster, the monitoring unit may acquire an occurrence status of the second cluster frame transmitted from the third in-vehicle control device to the fourth in-vehicle control device, the determination unit may determine whether the second cluster is normal or abnormal based on the occurrence status of the second cluster frame acquired by the monitoring unit and the determination criterion, and the activation control unit may transmit the second cluster frame transmitted from the third in-vehicle control device to the fourth in-vehicle control device when the determination unit determines that the second cluster is normal and when the determination unit determines that the second cluster is abnormal. Thus, even when the determination unit determines that a cluster is abnormal, if a function of the cluster needs to be executed, the function can be executed.
[0018] (6) In the above (5), the first function may be a function that is executed when the remaining amount of stored power of a power storage device that supplies power to the on-board control device is equal to or greater than a certain value, and the second function may be a function that is executed even when the remaining amount of stored power is less than the certain value. In this way, when the determination unit determines that a cluster is abnormal, if it is necessary to execute a function of the cluster, the function can be executed even if the remaining amount of stored power of the power storage device is less than the certain value.
[0019] (7) In any one of (1) to (6) above, a notification unit may be further provided that notifies a user that the first cluster is abnormal when the determination unit determines that the first cluster is abnormal. This allows the user to know that the cluster is abnormal. The notification then allows the user to take action.
[0020] (8) In the above (7), when the notification unit notifies the relay device that the first cluster is abnormal, and the relay device receives a command from the user to continue executing the first function, the start-up control unit may transmit the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device. Thus, even if the cluster is determined to be abnormal, the cluster can execute the function based on the user's instruction when the user intends.
[0021] (9) In any one of (1) to (8) above, the first on-board control device may further belong to a second cluster that executes a second function different from the first function, and the determination unit may determine whether the first cluster is normal or abnormal based on a first determination criterion when the first function is executed alone, and may determine whether the first cluster is normal or abnormal based on a second determination criterion that is more relaxed than the first determination criterion when the first function and the second function are executed simultaneously. This makes it possible to avoid a situation where a load is placed on the first on-board control device belonging to both clusters when the first function and the second function are executed simultaneously, resulting in an erroneous determination that an abnormality is occurring when the abnormality is not actually occurring, due to a determination based on the determination criterion of the first cluster or the determination criterion of the second cluster.
[0022] (10) In any one of (1) to (9) above, the determination criterion may be determined based on a storage capacity of a power storage device that supplies power to the on-board control device and an amount of power consumed by the first cluster. This allows the determination criterion to be determined so that the cluster does not use up all the power of the power storage device, thereby preventing excessive discharge of the power storage device.
[0023] (11) A control method according to this embodiment is a control method for controlling a relay device that relays communication between in-vehicle control devices that can communicate with each other via a communication bus, the control method including the steps of: receiving a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster; monitoring a reception status of the received frame and acquiring an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device; determining whether the first cluster is normal or abnormal based on the acquired occurrence status of the first cluster frame and a determination criterion for the frame occurrence status; transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if it is determined that the first cluster is normal, and not transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if it is determined that the first cluster is abnormal. This stops the second in-vehicle control device belonging to the cluster determined to be abnormal, thereby reducing power consumption of the in-vehicle system.
[0024] (11) A computer program according to this embodiment is a computer program used by a relay device that relays communication between in-vehicle control devices that can communicate with each other via a communication bus, the computer program executing the following steps: receiving a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster; monitoring a reception status of the received frame and acquiring an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device; determining whether the first cluster is normal or abnormal based on the acquired occurrence status of the first cluster frame and a determination criterion for the frame occurrence status; transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if it is determined that the first cluster is normal, and not transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if it is determined that the first cluster is abnormal. As a result, the second in-vehicle control device belonging to the cluster determined to be abnormal can be stopped, thereby reducing power consumption of the in-vehicle system.
[0025] <First Embodiment> [1. Details of First Embodiment of the Present Disclosure] Hereinafter, details of the first embodiment of the present disclosure will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any manner.
[0026] 1 is a block diagram showing an example of the configuration of an in-vehicle system including a relay device according to embodiment 1. The in-vehicle system 1 is mounted on a vehicle. The relay device is sometimes called an integrated ECU or a gateway.
[0027] The in-vehicle system 1 according to the first embodiment includes a relay device 2 and an in-vehicle control device 3a, an in-vehicle control device 3b, an in-vehicle control device 3c, an in-vehicle control device 3d, an in-vehicle control device 3e, and an in-vehicle control device 3f. The in-vehicle control devices are sometimes called ECUs, and hereinafter, the in-vehicle control devices may also be referred to as ECUs. The in-vehicle system 1 is an in-vehicle network configured by the relay device 2, the ECUs 3a, 3b, 3c, 3d, 3e, 3f, and a communication cable (communication bus) connecting them. Note that, hereinafter, the ECUs 3a, 3b, 3c, 3d, 3e, and 3f may be collectively referred to as "ECU 3."
[0028] The ECUs 3 are arranged in various parts of the vehicle. The ECUs 3 individually control the hardware of each part of the vehicle and monitor the status of the hardware of each part of the vehicle. For example, the ECUs 3 are ECUs for a control system, a vehicle body, and an information system.
[0029] The relay device 2 is connected to each of the ECUs 3 via communication buses 12a, 12b, and 12c, such as a CAN (Controller Area Network) bus. Specifically, the relay device 2 includes communication interfaces (communication I / Fs) 11a, 11b, and 11c. The communication I / F 11a is connected to the communication bus 12a. The ECUs 3a and 3d are connected to the communication bus 12a. The communication I / F 11b is connected to the communication bus 12b. The ECUs 3b and 3e are connected to the communication bus 12b. The ECUs 3c and 3f are connected to the communication bus 12c. The relay device 2 can communicate with each of the ECUs 3 mutually.
[0030] Each ECU 3 includes a communication I / F 13a, 13d, 13b, 13e, 13c, and 13f connected to the communication bus. The communication I / Fs 13a, 13d, 13b, 13e, 13c, and 13f are I / Fs that support the partial network function. The ECU 3 uses a communication protocol that supports the partial network function. The communication protocol is, for example, CAN, CAN with Flexible Data Rate (CAN FD), or CAN with Partial Networking (CAN PN).
[0031] The relay device 2 functions as a gateway that relays communications between ECUs 3. The ECUs 3 can transmit frames. The relay device 2 relays frames between ECUs connected to different buses. For example, the relay device 2 can relay frames between the ECU 3a connected to the communication bus 12a, the ECU 3b connected to the communication bus 12b, and the ECU 3f connected to the communication bus 12c. This allows frames to be transmitted and received between the ECUs 3a and 3d connected to the communication bus 12a, the ECUs 3b and 3e connected to the communication bus 12b, and the ECUs 3c and 3f connected to the communication bus 12c, for example.
[0032] 2. Configuration of Relay Device In the first embodiment, the partial network function is available in the relay device 2 and the ECU 3. The hardware configuration of the relay device 2 will be described below.
[0033] 2 is a block diagram showing an example of the configuration of a relay device according to embodiment 1. The relay device 2 includes a microcontroller unit 21 (hereinafter referred to as the "microcomputer 21") including a control unit 22 and a memory 23, and multiple communication I / Fs 11a, 11b, and 11c. The control unit 22, the memory 23, and the communication I / Fs 11a, 11b, and 11c are electrically connected via an internal bus 24.
[0034] The control unit 22 includes a circuit configuration such as a processor. Specifically, the control unit 22 includes one or more central processing units (CPUs). The processor included in the control unit 22 may be a graphics processing unit (GPU). In this case, the control unit 22 reads out computer programs stored in the memory 23 and executes various calculations and controls.
[0035] The control unit 22 may include a processor in which a predetermined program is written in advance. For example, the control unit 22 may be an integrated circuit such as a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or an application-specific integrated circuit (ASIC). In this case, the control unit 22 executes various calculations and controls based on the program written in advance.
[0036] The memory 23 includes a volatile memory and a nonvolatile memory, and stores various types of data. The volatile memory includes, for example, a random access memory (RAM). The nonvolatile memory includes, for example, a flash memory, a hard disk drive (HDD), a solid state drive (SSD), or a read-only memory (ROM). A portion of the nonvolatile memory may be provided outside the microcomputer 21.
[0037] The memory 23 stores, for example, a computer program, cluster information (described later), and various parameters in a non-volatile memory. The memory 23 may also store a computer program downloaded from an external device (not shown) via a network (not shown) and a communication device (not shown).
[0038] The communication I / Fs 11a, 11b, and 11c receive signals flowing through the communication buses 12a, 12b, and 12c via respective ports (not shown) and convert the signals into signals that can be read by the microcomputer 21. The communication I / Fs 11a, 11b, and 11c are connected to the communication buses 12a, 12b, and 12c, respectively. [1-3. Configuration of the ECU] The hardware configuration of the ECU 3 will now be described.
[0039] 3 is a block diagram showing an example of the configuration of an ECU according to embodiment 1. The ECU 3a includes a microcontroller unit 31, a communication I / F 11a, and a peripheral circuit 34. The configurations of the ECUs 3b, 3c, 3d, 3e, and 3f are the same as that of the ECU 3a.
[0040] The microcontroller unit 31 (hereinafter referred to as "microcomputer 31") has the same configuration as the microcomputer 21 of the relay device 2 described above. That is, the microcomputer 31 includes a control unit (processor) 32 and a memory 33 including a non-volatile memory and a volatile memory. The microcomputer 31 may also include a peripheral circuit 34 and a communication I / F 11a.
[0041] The memory 33 stores a control program, which is a computer program, and data used to execute the control program. The control program can be stored in a recording medium such as a flash memory, a ROM, or a CD-ROM. The processor 32 enables the ECU 3a to use a partial network function by using the control program.
[0042] The peripheral circuit 34 includes a serial communication circuit that complies with standards such as UART, I2C, SPI, etc. The serial communication circuit of the peripheral circuit 34 is connected to a device or sensor that is the control target of the ECU 3a, and can receive signals output from the sensor and transmit control signals to the control target.
[0043] The communication I / F 11a is a communication interface that complies with the above-mentioned communication protocol for the in-vehicle network and is an I / F that supports the partial network function.
[0044] The ECU 3 receives power from the power storage device and operates using the received power. Since the amount of power stored in the power storage device is limited, it is desirable for the ECU to transition to a sleep mode that consumes less power than the normal mode after completing a predetermined process in order to reduce power consumption as much as possible. If the ECU operates for a long period of time, the power stored in the power storage device will gradually decrease, and the terminal voltage of the power storage device will drop to the point where the ECU connected to the power storage device will no longer operate, resulting in an over-discharge state. Therefore, it is desirable for the ECU to transition to the sleep mode appropriately.
[0045] [1-4. Cluster] Fig. 4 is an example of a cluster table showing the ECUs belonging to each cluster. Clusters will be described below. Each ECU 3 belongs to at least one cluster. The memory 23 of the relay device 2 stores a cluster table 41 that links the ECUs 3 with the clusters to which each ECU 3 belongs. The cluster table 41 may be stored in each ECU 3.
[0046] A cluster may be defined for each function provided to a user, for example, and the function may be executed by one or more ECUs.
[0047] Examples of functions executed by multiple ECUs include automatic sliding doors, periphery monitoring using image sensors, and charging of a traction battery (high-voltage battery) in an electric vehicle.
[0048] The function of the automatic sliding door is executed by, for example, a body ECU that controls the movable parts of the vehicle body (door locks, power windows, door mirrors, etc.) and an input ECU that accepts switch inputs from the user. Therefore, the body ECU and the input ECU belong to the same cluster.
[0049] Surrounding area monitoring using an image sensor is performed by a sensor ECU connected to a human presence sensor that detects people around the vehicle, and an image ECU that acquires images from the image sensor. Therefore, the sensor ECU and the image ECU belong to the same cluster.
[0050] Charging of the driving battery is performed, for example, by a charging ECU that controls charging of the driving battery and a detection ECU that detects whether a plug that transmits charging power from a charging station is connected to a receptacle in a vehicle that receives the charging power. For this reason, the charging ECU and the detection ECU belong to the same cluster.
[0051] Some functions are performed by a single ECU. Therefore, a cluster including only one ECU can be set up. Examples of functions performed by a single ECU include automatic steering adjustment, automatic seat adjustment, etc.
[0052] The automatic adjustment of the steering is performed by the steering ECU that controls the power steering, and therefore only the steering ECU belongs to one cluster.
[0053] The automatic adjustment of the seat is performed by the seat ECU that controls the power seat, and therefore only the seat ECU belongs to one cluster.
[0054] The cluster table 41 shown in Fig. 4 indicates which ECUs belong to each of three clusters PNC1 to PNC3. Note that the number of clusters in Fig. 4 is an example, and three or more clusters may be prepared. Alternatively, fewer than three clusters may be prepared. In the table, "1" indicates that the ECU belongs to the cluster in that row, and "0" indicates that the ECU does not belong to the cluster in that row.
[0055] For example, ECUs 3a and 3d belong to cluster PNC1. ECUs 3d and 3e belong to cluster PNC2. ECUs 3c and 3f belong to cluster PNC3. In the following description, "waking up ECUs 3a and 3b belonging to cluster PNC1" will also be simply expressed as "waking up cluster PNC1." Similar expressions will be used for the other clusters PNC2 to PNC3.
[0056] [1-5. Operation Mode] The operation mode and wake-up operation of the ECU 3 corresponding to the partial network function will be described.
[0057] The operation modes of the ECU 3 include a normal mode and a sleep mode. In the normal mode, the ECU 3 is in operation, and is capable of controlling the control target and communicating with other ECUs 3. In the sleep mode, the ECU 3 is in a stopped state except for some functions of the communication I / Fs 13a, 13b, 13c, 13d, 13e, and 13f. Note that the communication I / Fs 13a, 13b, 13c, 13d, 13e, and 13f may be referred to hereinafter as "communication I / Fs 13."
[0058] In the CAN, when some clusters are woken up by the partial network function, a cluster frame specifying the cluster to be woken up is transmitted onto the communication buses 12a, 12b, and 12c. The wake-up request, i.e., the cluster frame specifying the cluster to be woken up, is transmitted by, for example, the ECU 3a. In the case of the ECU 3a, the cluster frame is created using the cluster table 41. However, the source of the cluster frame is not limited to the ECU 3a, and the cluster frame may also be transmitted by the ECUs 3b, 3c, 3d, 3e, and 3f.
[0059] The communication I / F 13 of an ECU 3 in sleep mode receives a cluster frame and determines whether the cluster to which the ECU 3 belongs is specified in the cluster frame. If the cluster to which the ECU 3 belongs is not specified, the ECU 3 remains in sleep mode. If the cluster to which the ECU 3 belongs is specified, the communication I / F 13 interrupts the control unit (processor) and instructs it to switch from sleep mode to normal mode. This wakes up the ECUs 3 that belong to the specified cluster.
[0060] On the other hand, the ECU 3 transitions from normal mode to sleep mode when processing related to its own function is completed. That is, the ECU 3 that received the cluster frame and transitioned from sleep mode to normal mode is configured to transition back to sleep mode after the series of processing is completed. Therefore, the ECU 3 transitions to sleep mode when the cluster frame is no longer received, and remains in sleep mode. The ECU 3 may be configured to transition to sleep mode after a predetermined period of time has elapsed after the series of processing is completed.
[0061] The transition of the ECU 3 to the sleep mode is not limited to when the cluster frame is no longer received. For example, the ECU 3 may be configured to transition to the sleep mode when a frame for transitioning the ECU 3 to the sleep mode is received.
[0062] When the ECU 3 shifts from the sleep mode to the normal mode, the ECU 3 operates at a high clock rate. In the sleep mode, the ECU 3 is stopped.
[0063] In the normal mode, the communication I / F 13 operates, whereas in the sleep mode, the communication I / F 13 stops some of its functions.
[0064] In the normal mode, the peripheral circuit 34 operates. That is, in the normal mode, the ECU 3 can receive signals output from sensors and control controlled objects. In the sleep mode, the peripheral circuit 34 is also stopped. That is, in the sleep mode, the ECU 3 cannot receive signals output from sensors and cannot control controlled objects.
[0065] In the normal mode, the power consumption by the ECU 3 is large, whereas in the sleep mode, the power consumption by the ECU 3 is small.
[0066] 5 is a functional block diagram showing an example of the functions of the relay device according to embodiment 1. Fig. 6 is a diagram showing an example of criteria for determining whether a cluster is normal or abnormal.
[0067] The relay device 2 has the functions of a receiving unit 51, a monitoring unit 52, a determination unit 53, and a startup control unit 54. The receiving unit 51, the monitoring unit 52, the determination unit 53, and the startup control unit 54 are functions of the microcomputer 21. The functions of the receiving unit 51, the monitoring unit 52, the determination unit 53, and the startup control unit 54 are realized by the microcomputer 21 executing a control program.
[0068] [1-6-1. Receiving Unit] The receiving unit 51 receives a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster.
[0069] Specifically, the communication I / Fs 11a, 11b, and 11c of the relay device 2 receive signals flowing through the communication buses 12a, 12b, and 12c via ports (not shown), respectively, and convert the signals into signals that can be read by the microcomputer 21. The communication I / Fs 11a, 11b, and 11c are connected to the communication buses 12a, 12b, and 12c, respectively.
[0070] For example, ECU 3a and ECU 3b belong to a cluster PNC1 that performs the automatic sliding door function. ECU 3a is an input ECU that accepts a user's switch input. ECU 3b is a vehicle body ECU that controls the sliding door. When a user switches the switch to the "open" side to open the door, input ECU 3a transmits a cluster frame indicating that the sliding door will be opened to communication I / F 11a of relay device 2 via communication bus 12a.
[0071] The cluster frame transmitted to the communication I / F 11a of the relay device 2 is received by the communication I / F 11a and converted into a signal that can be read by the microcomputer 21. When the control unit 22 receives the converted signal, the receiving unit 51 receives the cluster frame transmitted from the ECU 3a to the ECU 3b.
[0072] [1-6-2. Monitoring Unit] The monitoring unit monitors the frame reception status of the receiving unit and acquires the occurrence status of first cluster frames transmitted from the first in-vehicle control device to the second in-vehicle control device. The occurrence status of first cluster frames may include at least one of the duration for which multiple first cluster frames are periodically transmitted and the number of occurrences of first cluster frames. The first cluster frame is, for example, a cluster frame indicating the detection of a person transmitted to the ECU 3e by the ECU 3d belonging to the cluster PNC 2, which performs the function of perimeter monitoring using an image sensor. For example, in a CAN bus, cluster frames are transmitted periodically. The monitoring unit 52 monitors the cluster frames periodically transmitted to the ECU 3e by the ECU 3d belonging to the cluster PNC 2, and acquires the duration. Specifically, in the case of a perimeter monitoring system using an image sensor, this is the time during which a person is detected. The monitoring unit 52 also monitors the cluster frames transmitted to the ECU 3e by the ECU 3d belonging to the cluster PNC 2, and acquires the number of occurrences of first cluster frames. Specifically, in the case of a perimeter monitoring system, the number of occurrences is the number of times a person is detected. The number of occurrences of cluster frames may be the number of occurrences within a certain period of time.
[0073] If there are multiple clusters, the monitoring unit 52 acquires the occurrence status of cluster frames for each cluster, i.e., the duration and number of occurrences of cluster frames. If there are three clusters as shown in Figure 6, the monitoring unit 52 acquires the occurrence status of cluster frames for clusters PNC1 to PNC3.
[0074] [1-6-3. Determination Unit] The determination unit determines whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitoring unit and a determination criterion related to the frame occurrence status. The determination criterion for determining whether the first cluster is normal or abnormal is set as a threshold value for the occurrence status of cluster frames for each cluster. The determination criterion includes, for example, the duration and number of occurrences of cluster frames. The determination unit 53 may determine that a cluster is abnormal if either the duration or the number of occurrences of a cluster frame acquired by the monitoring unit 52 exceeds the determination criterion, or may determine that a cluster is abnormal if both the duration and the occurrence time exceed the determination criterion.
[0075] The judgment criteria are determined taking into consideration the function of each cluster, and are, for example, information in a table format as shown in FIG. 6. The judgment criteria include, for each cluster, information indicating the threshold value of the duration and occurrence count of cluster frames, which are the judgment criteria, associated with an identifier that identifies the cluster. The occurrence count is specified as 50 times, for example. The judgment criteria may also include information indicating the response action to be taken when an abnormality is determined. The response action will be described later. The judgment criteria are stored, for example, in non-volatile memory in the memory 23 of the relay device 2. The control unit 22 reads out the judgment criteria stored in the memory 23. The judgment unit 53 refers to the read judgment criteria and determines whether each cluster is abnormal based on the judgment criteria and the occurrence status of the data acquired by the monitoring unit 52.
[0076] The criteria for determining the duration may be determined for each cluster, taking into account the function of each cluster. For example, for a cluster with an automatic sliding door function, if the door remains open for more than five minutes, it may be determined that the user forgot to close the door, and thus an abnormality may be detected. For a cluster with a perimeter monitoring function using an image sensor, it may be determined that an abnormality exists, since it is unlikely that a person will be detected continuously around the vehicle for more than 15 minutes. For a cluster with a driving battery charging function, if the plug remains inserted into the receptacle for more than 480 minutes, it may be determined that the user forgot to unplug the plug, and thus an abnormality may be detected. Furthermore, from the perspective of preventing excessive battery discharge, the criteria may be determined based on the storage capacity of the power storage device that supplies power to the on-board control device and the amount of power consumed by the first cluster. For example, the criteria may be determined taking into account the battery capacity and the power consumed by the sensor ECU 3d and the image ECU 3e. Assuming that the battery capacity is 50 AH (ampere hours), the limit of power consumption allowed for the image sensor's peripheral monitoring function is 0.3 percent of the battery capacity, and the sensor ECU and image ECU consume a total of 0.6 A (amperes), the allowable operating time is 15 minutes.
[0077] The criteria for determining the number of occurrences may be determined for each cluster, taking into account the function of each cluster. For example, for a cluster with an automatic sliding door function, the number of occurrences is not considered to be related to the cluster's abnormality, so no criteria for determining the number of occurrences are set. For a cluster with a function of perimeter monitoring using an image sensor, an event in which the human presence sensor detects a person around the vehicle more than 50 times at a time is considered to be an abnormality. For a cluster with a function of charging the driving battery, since the plug remains inserted in the receptacle after charging begins, even if the number of occurrences is one, if the duration exceeds the criteria, it may be determined to be an abnormality.
[0078] Whether an abnormality is determined when either the duration or the number of occurrences exceeds the criterion or when both criteria are exceeded can be determined for each cluster, taking into account the function of each cluster. In the case of an automatic sliding door function cluster, no criterion is set for the number of occurrences, so the cluster is determined to be abnormal when the duration exceeds the criterion. In the case of a perimeter monitoring function using an image sensor, an abnormality is considered to exist when either the duration or the number of occurrences exceeds the criterion, so the cluster is determined to be abnormal when either the criterion is exceeded. In the case of a cluster for a driving battery charging function, since the plug remains inserted in the receptacle after charging begins, an abnormality is considered to exist if the number of occurrences is one or more and the duration is 480 minutes or more. Therefore, if both the duration and the number of occurrences exceed the criterion, the cluster is determined to be abnormal.
[0079] 6 shows clusters PNC1 to PNC3 as examples of clusters. Cluster PNC1 is an example of an automatic sliding door function. Cluster PNC2 is an example of a perimeter monitoring function using an image sensor. Cluster PNC3 is an example of a driving battery charging function.
[0080] In the example of the automatic sliding door function, when a user sets the door switch to "open," the door opens. Specifically, the input ECU 3a receives the user's switch input, and the vehicle body ECU 3b controls the door drive system to open and close the door.
[0081] In an example of the periphery monitoring function using an image sensor, for example, when a person is detected around the vehicle, the image sensor records an image of the surroundings. When the human presence sensor detects a person, the sensor ECU 3d connected to the human presence sensor transmits a cluster frame indicating that a person has been detected to the image ECU 3e. Upon receiving the cluster frame indicating that a person has been detected, the image ECU 3e records an image of the surroundings of the vehicle.
[0082] An example of the function of charging the driving battery is executed by, for example, a charging ECU 3f that controls charging of the driving battery and a detection ECU 3c that detects a receptacle in a vehicle that receives charging power. For example, the detection ECU 3c detects that a plug in a charging station that transmits charging power has been connected to a receptacle in the vehicle that receives charging power, and transmits a cluster frame to the charging ECU 3f indicating that the plug has been connected to the receptacle. Upon receiving the cluster frame indicating that the plug has been connected to the receptacle, the charging ECU 3f starts charging the driving battery.
[0083] [1-6-4. Start-up control unit] When the determination unit determines that the first cluster is normal, the start-up control unit transmits the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device, and when the determination unit determines that the first cluster is abnormal, the start-up control unit does not transmit the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device. Alternatively, when the determination unit determines that the first cluster is abnormal, the start-up control unit may transmit a stop frame to the second in-vehicle control device to stop the second in-vehicle control device.
[0084] 7 is a schematic diagram showing the flow of cluster frames when the cluster frame generation status is normal. If the determination unit 53 determines that the cluster frame transmitted from the ECU 3a to the ECU 3b is generated normally, the relay device 2 transmits the received cluster frame to the ECU 3b. The relay device 2 receives the cluster frame transmitted from the ECU 3a via the communication I / F 13a via the communication I / F 11a. Since the determination unit 53 determines that the status is normal, the relay device 2 transmits the received cluster frame. The relay device 2 may obtain the destination of the cluster frame by, for example, referring to the cluster table 41, or may obtain it from the cluster frame itself.
[0085] 4 shows an example of a cluster table. ECUs 3a and 3b belong to cluster PNC1, which is responsible for the automatic sliding door function. ECUs 3d and 3e belong to cluster PNC2, which is responsible for the periphery monitoring function using an image sensor. ECUs 3c and 3f belong to cluster PNC3, which is responsible for the charging of the driving battery.
[0086] The relay device 2 references the cluster table 41 to acquire the destination of the cluster frame. Since ECU 3a and ECU 3b belong to cluster PNC1, which is the automatic sliding door function, the destination ECU is ECU 3b. The relay device 2 relays the cluster frame transmitted by ECU 3a and transmits it to ECU 3b via communication I / F 11b and communication bus 12b. Upon receiving the cluster frame, ECU 3b executes the automatic sliding door function, which is the function of cluster PNC1.
[0087] 8 is a schematic diagram showing the flow of cluster frames when the data generation status is abnormal, and is an example in which the received cluster frame is not transmitted to the destination ECU and the destination ECU is stopped. If the determination unit 53 determines that the generation status of the cluster frame transmitted from ECU 3a to ECU 3b is abnormal, the relay device 2 does not transmit the cluster frame to ECU 3b. As described above, ECU 3b is configured to transition to sleep mode after a series of processes are completed, so when cluster frames are no longer received, ECU 3b transitions to sleep mode and remains in sleep mode.
[0088] 9 is a schematic diagram showing the flow of data when the data generation situation is abnormal. Unlike the example of FIG. 8, this example shuts down the destination ECU by transmitting a stop frame to the destination ECU. When ECU 3b receives the stop frame instructing its own device to transition to sleep mode, it transitions to sleep mode.
[0089] [1-7. Operation of ECU] Hereinafter, the operation of the relay device according to the first embodiment will be described.
[0090] 10 is a flowchart showing an example of the operation of the relay device according to embodiment 1. [1-7-1. Step S001] The receiving unit 51 receives a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster (step S001).
[0091] Specifically, the communication I / Fs 11a, 11b, and 11c of the relay device 2 receive signals flowing through the communication buses 12a, 12b, and 12c via ports (not shown), respectively, and convert the signals into signals readable by the microcomputer 21. The communication I / Fs 11a, 11b, and 11c are connected to the communication buses 12a, 12b, and 12c, respectively.
[0092] For example, in the case of cluster PNC1 that performs the automatic sliding door function, when a user switches the door opening switch to the "open" side, switch ECU 3a transmits a cluster frame indicating that the sliding door is to be opened to communication I / F 11a of relay device 2 via communication bus 12a (see FIGS. 4, 6, and 7). Then, the cluster frame transmitted to communication I / F 11a of relay device 2 is received by communication I / F 11a and converted into a signal readable by microcomputer 21. When control unit 22 receives the converted signal, receiver 51 receives the data transmitted from ECU 3a to ECU 3b. When receiver 51 receives the data, the process proceeds to step S002.
[0093] [1-7-2. Step S002] The monitoring unit 52 monitors the frame reception status of the receiving unit and acquires the occurrence status of first cluster frames transmitted from the first in-vehicle control device to the second in-vehicle control device (step S002). The occurrence status of first cluster frames may include at least one of the duration over which multiple first cluster frames are periodically transmitted and the number of occurrences of first cluster frames.
[0094] The monitoring unit 52 monitors cluster frames periodically transmitted from, for example, the ECU 3a belonging to cluster PNC1 to the ECU 3b, and acquires their duration. The monitoring unit 52 also monitors cluster frames transmitted from, for example, the ECU 3a belonging to cluster PNC1 to the ECU 3b, and acquires the number of occurrences of the first cluster frame. The number of occurrences of data may be the number of occurrences within a certain period. When there are three clusters as shown in FIG. 6 , the monitoring unit 52 acquires the occurrence status of cluster frames from PNC1 to PNC3. Once the monitoring unit 52 acquires the occurrence status of cluster frames, the process proceeds to step S003.
[0095] [1-7-3. Step S003] The determination unit 53 determines whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitoring unit 52 and a determination criterion related to the frame occurrence status (step S003). The determination unit 53 may determine that the cluster is abnormal if either the duration or the number of occurrences of the cluster frame acquired by the monitoring unit 52 exceeds the determination criterion, or may determine that the cluster is abnormal if both the duration and the occurrence time exceed the determination criterion.
[0096] The judgment criteria include, for example, thresholds for the duration of occurrence of cluster frames and the number of occurrences, and are, for example, information in a table format as shown in Fig. 6. The judgment criteria are stored, for example, in non-volatile memory in the memory 23 of the relay device 2. The control unit 22 reads out the judgment criteria stored in the memory 23. The judgment unit 53 refers to the read judgment criteria and judges for each cluster whether or not the cluster is abnormal based on the judgment criteria and the occurrence status of the data acquired by the monitoring unit.
[0097] For example, assume that the threshold for the duration of the judgment criteria is 15 minutes and the threshold for the number of occurrences is 50. If the duration of the cluster frame occurrence status acquired by the monitoring unit 52 is 10 minutes and the number of occurrences is 12, the judgment unit 53 judges that the cluster is not abnormal. If the duration of the cluster frame occurrence status is 16 minutes and the number of occurrences is 12, the judgment unit 53 judges that the cluster is abnormal. If the duration of the data occurrence status is 10 minutes and the number of occurrences is 60, the judgment unit 53 also judges that the cluster is abnormal. If the judgment unit 53 judges that the cluster is normal, the process proceeds to step S004, and if the judgment unit 53 judges that the cluster is abnormal, the process proceeds to step S005.
[0098] [1-7-4. Steps S004 and S005] If the determination unit 53 determines that the first cluster is normal, the start-up control unit 54 transmits the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device (step S004), and if the determination unit 53 determines that the first cluster is abnormal, the start-up control unit 54 does not transmit the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device (step S005).
[0099] For example, if the determination unit 53 determines that the occurrence status of the cluster frame transmitted from the ECU 3a to the ECU 3b is normal, the relay device 2 transmits the cluster frame to the ECU 3b. The relay device 2 acquires the destination of the cluster frame by referring to a cluster table such as that shown in FIG. 4. Alternatively, the relay device 2 may acquire information indicating the destination contained in the cluster frame. The ECU 3b that receives the cluster frame executes the automatic sliding door function, which is a function of the cluster PNC 1. After transmitting the cluster frame, the relay device 2 returns to step S001 and receives the cluster frame again.
[0100] On the other hand, if the determination unit 53 determines that the occurrence status of the cluster frame transmitted by the ECU 3a to the relay device 2 is abnormal, the relay device 2 does not transmit the received cluster frame to the ECU 3b. The ECU 3b is configured to transition to sleep mode after a series of processes are completed, so that when cluster frames are no longer received, the ECU 3b transitions to sleep mode and remains in sleep mode. If the relay device 2 did not transmit a cluster frame, it returns to step S001 again to receive cluster frames of clusters other than the cluster determined to be abnormal.
[0101] Alternatively, when the determination unit 53 determines that the first cluster is abnormal, the start-up control unit 54 may transmit a stop frame to the second in-vehicle control device to stop the second in-vehicle control device (step S005). The ECU 3b that receives the stop frame to stop the ECU 3b transitions to sleep mode. Even when the relay device 2 transmits the stop frame, it returns to step S001 again to receive cluster frames of clusters other than the cluster determined to be abnormal.
[0102] [1-8 Summary] As a result of the above, cluster frames are not transmitted to ECUs belonging to a cluster determined to be abnormal. ECUs that no longer receive cluster frames transition to sleep mode. Alternatively, stop frames are transmitted to ECUs belonging to a cluster determined to be abnormal, and ECUs that receive the stop frames transition to sleep mode. This stops the second on-board control device belonging to the cluster determined to be abnormal, making it possible to reduce power consumption of the on-board system.
[0103] <Second Embodiment> [2. Details of the Second Embodiment of the Present Disclosure] Details of the second embodiment of the present disclosure will be described below with reference to the drawings. In the second embodiment, the relay device 2 further includes a notification unit as a functional block, but other parts are the same as those in the first embodiment. Also, some of the functions of the start-up control unit 54 are different. The same components as those in the first embodiment are denoted by the same reference numerals, and descriptions of the same components, functions, and operations will be omitted.
[0104] [2-1 Configuration of Relay Device] The configuration of the relay device of the second embodiment is the same as that of the first embodiment.
[0105] [2-2 Problems to be Solved by the Present Embodiment] In the first embodiment, when a cluster is determined to be abnormal, the start-up control unit 54 does not transmit a cluster frame to the ECU belonging to the cluster determined to be abnormal, thereby shutting down the ECU. In such a case, it is desirable to notify the user that the cluster is abnormal. Also, a user who has learned that a cluster is abnormal may wish to execute a function of the cluster. Alternatively, if the function of the cluster is important, it may be desirable to execute the function of the cluster even if the cluster is determined to be abnormal. The second embodiment is intended to meet these needs.
[0106] 11 is a functional block diagram showing an example of the functions of the relay device according to embodiment 2. In embodiment 2, the relay device 2 further includes a notification unit 111 as a functional block.
[0107] [2-3-1 Notification Unit] When the determination unit determines that there is an abnormality, the notification unit notifies the user that the first cluster is abnormal.
[0108] The determination unit 53 may determine an abnormality, for example, when the automatic sliding door function has the door open continuously for more than five minutes, exceeding the five-minute determination criterion. When the determination unit 53 determines an abnormality, it notifies the user that the cluster is abnormal. Specifically, for example, if the vehicle has an audio notification device (not shown) and this notification device is controlled by a notification ECU (not shown), the relay device 2 transmits a cluster frame to the notification ECU notifying the notification ECU that the cluster PNC1 of the automatic sliding door function is abnormal. The notification device controlled by the notification ECU then announces a message inside the vehicle, such as "The door is left open. Please check." Alternatively, the notification may be sent to the user's smartphone.
[0109] This allows the user to know that the cluster is abnormal, for example, that the door is left open, and the user can then take action such as closing the door.
[0110] [2-3-2 Activation Control Unit] The activation control unit 54 transmits the second cluster frame transmitted from the third in-vehicle control device to the fourth in-vehicle control device when the determination unit 53 determines that the second cluster is normal and when the determination unit 53 determines that the second cluster is abnormal. Here, the receiving unit 51 receives the second cluster frame transmitted from the third in-vehicle control device belonging to the second cluster that executes the second function to the fourth in-vehicle control device belonging to the second cluster, the monitoring unit 52 acquires the occurrence status of the second cluster frame transmitted from the third in-vehicle control device to the fourth in-vehicle control device, and the determination unit 53 determines whether the second cluster is normal or abnormal based on the occurrence status of the second cluster frame acquired by the monitoring unit 52 and a determination criterion. Note that the first function may be a function that is executed when the remaining amount of stored power in a power storage device that supplies power to the in-vehicle control device is equal to or greater than a certain value, and the second function may be a function that is executed even when the remaining amount of stored power is less than the certain value.
[0111] In the first embodiment, the start control unit 54 transmits the cluster frame to the destination ECU when it determines that the cluster is normal, and does not transmit the cluster frame to the destination ECU when it determines that the cluster is abnormal. On the other hand, in the second embodiment, the start control unit 54 transmits the cluster frame to the destination ECU when it determines that the cluster is normal, and also transmits the cluster frame to the destination ECU when it determines that the cluster is abnormal.
[0112] That is, even if the cluster is determined to be abnormal, it transmits the cluster frame to the destination ECU, and the ECU that receives the cluster frame executes the cluster function. The ECU executes the cluster function even when it is determined to be abnormal if, for example, the function is an important function that must be executed even if the remaining charge in the power storage device is less than a certain value, or if there is an abnormality but the power consumption of the ECU is small and the impact on the power storage device is minor.
[0113] When the determination unit 53 determines that an abnormality exists, whether the cluster in question is executed is determined for each cluster. The column for "Response Action in Abnormal Event" in FIG. 6 is an example. The activation control unit 54 references the cluster table in FIG. 6 to read information on the response action in abnormal event associated with the cluster. If the information indicates "Stop," the function of the cluster is stopped. That is, the cluster is a cluster that executes the first function. In this case, the activation control unit 54 does not transmit a cluster frame or transmits a stop frame. On the other hand, if the information on the response action in abnormal event indicates "Continue," the function of the cluster is executed. That is, the cluster is a cluster that executes the second function. In this case, the activation control unit 54 transmits a cluster frame to the ECUs belonging to the cluster. The ECUs that receive the transmitted cluster frame execute the function of the cluster.
[0114] As a result, even if a cluster is determined to be abnormal, the functions of the cluster that should be executed even if the remaining amount of electricity stored in the storage device is less than a certain value, and the functions of the cluster that will have only a minor effect on the storage device even if executed, are executed.
[0115] Furthermore, when the notification unit 111 notifies that the first cluster is abnormal, and the relay device 2 receives an instruction to continue executing the first function given by the user, the startup control unit 54 transmits the first cluster frame sent from the first vehicle control device to the second vehicle control device.
[0116] When the determination unit 53 determines that an abnormality has occurred and the information on the response action in the cluster table indicates "stop," the activation control unit 54 does not transmit a cluster frame or transmits a stop frame. In this case, the notification unit 111 has already notified the user that the cluster is abnormal. For example, a voice message saying, "The perimeter monitoring system has already been recording for more than 15 minutes" is announced inside the vehicle. If the user hears this and for some reason intends to continue the perimeter monitoring function using the image sensor, the user can operate, for example, a smartphone to instruct the function to be executed. Upon receiving the command indicating this instruction, the activation control unit 54 of the relay device 2 transmits a cluster frame to the ECUs belonging to the cluster of the function.
[0117] This allows the function to be executed based on the user's instructions when the user wishes, even if the perimeter monitoring system has already recorded for more than 15 minutes and the judgment unit 53 judges that the cluster is abnormal.
[0118] [2-4 Operation of Relay Device] Fig. 12 is a flowchart showing an example of the operation of the relay device according to the second embodiment. The operation of the relay device according to the second embodiment will be described below. The operations from step S001 to step S005 are the same as those in the first embodiment, and therefore will not be described here. The second embodiment differs from the first embodiment in the operation after the determination unit 53 determines that the cluster is abnormal in step S003. The operation after the determination unit 53 determines that the cluster is abnormal will be described below. In the second embodiment, when the determination unit 53 determines that the cluster is abnormal, the process proceeds to step S006 instead of step S005.
[0119] [2-4-1. Step S006] If the determining unit 53 determines that there is an abnormality, the notifying unit 111 notifies the user that the first cluster is abnormal (step S006).
[0120] Specifically, for example, if the vehicle has an audio notification device (not shown) that is controlled by a notification ECU (not shown), the relay device 2 transmits a command to the notification ECU to notify the ECU that the cluster PNC1 for the automatic sliding door function is abnormal. After notifying the user, the relay device 2 proceeds to step S007.
[0121] [2-4-2 Step S007] The start-up control unit 54 transmits the second cluster frame transmitted from the third in-vehicle control device to the fourth in-vehicle control device when the determination unit 53 determines that the second cluster is normal and when the determination unit 53 determines that the second cluster is abnormal.
[0122] When the determination unit 53 determines that an abnormality has occurred, whether or not to execute the function of that cluster is determined for each cluster. An example is the column for "response action in case of abnormality" in FIG. 6. The activation control unit 54 references the cluster table in FIG. 6, reads out information on the response action in case of abnormality linked to the cluster, and if the information indicates "stop," the process proceeds to step S008. On the other hand, if the information on the response action in case of abnormality indicates "continue," the process proceeds to step S004. When proceeding to step S004, the activation control unit 54 transmits a cluster frame to the ECUs belonging to the cluster.
[0123] [2-4-3 Step S008] If the notification unit 111 notifies that the first cluster is abnormal, and the relay device 2 receives a command from the user to continue executing the first function, the start-up control unit 54 transmits the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device (step S008).
[0124] When the determination unit 53 determines that an abnormality has occurred and the information on the response action in the cluster table indicates "stop," the activation control unit 54 does not transmit a cluster frame or transmits a stop frame. In this case, the notification unit 111 has already notified the user that the cluster is abnormal. If the user intends to continue the function of the cluster for some reason, the user operates, for example, a smartphone to instruct the relay device 2 to execute the function. Upon receiving the command indicating the instruction, the relay device 2 proceeds to step S004, and the activation control unit 54 transmits a cluster frame to the ECUs belonging to the cluster of the function. The ECUs that receive the cluster frame execute the function of the cluster.
[0125] On the other hand, if the user does not intend to execute the function of the cluster, the user does not instruct the execution of the function. Therefore, the relay device 2 that does not receive the command indicating the instruction proceeds to step S005, and the activation control unit 54 does not transmit a cluster frame to the ECU belonging to the cluster of the function, or transmits a stop frame. Then, the ECU that does not receive the cluster frame or receives the stop frame transitions to sleep mode.
[0126] [2-5 Summary] The notification unit 111 performs its function to inform the user that a cluster is abnormal, for example, that a door is left open. The alerted user can then take action, such as closing the door. The activation control unit 54 performs its function to execute functions that should be executed even if the remaining amount of power stored in the power storage device is below a certain value. Furthermore, even if the determination unit 53 determines that the cluster is abnormal, the cluster can execute its function based on the user's instruction if the user intends to do so.
[0127] 13 is a diagram showing an example of the determination criteria of Modification 1 of the relay device 2. The function and configuration are the same as those of the first embodiment, but the function of the determination unit 53 is partially different. When a power storage device that supplies power to the on-board control device is not charged, the determination unit determines whether the first cluster is normal or abnormal based on a first determination criterion, and when the power storage device is charged, the determination unit determines whether the first cluster is normal or abnormal based on a second determination criterion that is more strict than the first determination criterion.
[0128] The ECU obtains the power required for operation from a power storage device mounted on the vehicle. If the vehicle is a gasoline engine vehicle, the power storage device is charged with power generated by a generator driven by the engine mounted on the vehicle. Therefore, when the engine is rotating and the vehicle is capable of running, the power storage device is charged, and there is little risk of the power storage device being excessively discharged and entering an over-discharged state. For this reason, the criteria for determining whether the power storage device is not being charged may be relaxed.
[0129] In this modification, when the power storage device is in a first power state in which the power storage device is not being charged, the determination unit 53 refers to the determination criteria in the upper row shown in Fig. 13 in the case of, for example, a function of monitoring the surroundings using an image sensor. The determination unit 53 determines whether the cluster is abnormal or normal using the determination criteria of a duration threshold of 15 minutes and a threshold of the number of occurrences of 50. On the other hand, when the power storage device is in a second power state in which the power storage device is being charged, the determination unit 53 refers to the determination criteria in the lower row in Fig. 13. The determination criteria of a duration threshold of 60 minutes and a threshold of the number of occurrences of 200 are used to determine whether the cluster is abnormal or normal.
[0130] This allows the system to appropriately determine whether the cluster is normal or abnormal, in accordance with cases where the cluster must be judged to be abnormal when the storage device is not being charged, but the cluster cannot be said to be abnormal when the storage device is being charged.
[0131] [3-2 Variation 2] Multiple clusters may be executed simultaneously. In such cases, for example, two clusters may be executed by the same ECU. An ECU that must execute the functions of two clusters will transmit cluster frames corresponding to the functions of each cluster for each function. As a result, the duration and occurrence frequency of cluster frames from the ECU may be longer than when executing a single cluster. In such a situation, if a cluster is determined to be abnormal or normal based on the cluster determination criteria for each function, there is a risk of erroneously determining that each cluster is abnormal even when it is actually normal.
[0132] Therefore, when the first function is executed alone, the judgment unit 53 judges whether the first cluster is normal or abnormal based on a first judgment criterion, and when the first function and the second function are executed simultaneously, the judgment unit 53 judges whether the first cluster is normal or abnormal based on a second judgment criterion that is more relaxed than the first judgment criterion.In addition, the first vehicle control device further belongs to a second cluster that executes a second function different from the first function.
[0133] For example, in the example cluster table shown in Figure 4, ECUs 3d and 3e belong to cluster PNC2, and ECUs 3c and 3f belong to cluster PNC3, with ECU 3d also belonging to cluster PNC3. If cluster PNC2 and cluster PNC3 are executed simultaneously, ECU 3d may generate many cluster frames to execute the functions of cluster PNC2 and cluster PNC3. In such a situation, when the determination unit 53 determines whether a cluster is normal or abnormal by referring to the determination criteria shown in Figure 6, since the upper limit of the number of occurrences of the determination criteria for cluster PNC3 is one, there is a risk that the upper limit of the determination criteria will be exceeded quickly, and cluster PNC3 will be determined to be abnormal.
[0134] Therefore, in order to avoid such erroneous determination, the determination criteria are corrected based on the determination criteria of cluster PNC2 and the determination criteria of cluster PNC3. For example, the number of occurrences of the determination criteria of cluster PNC2 and the number of occurrences of the determination criteria of cluster PNC3 are summed, but the present invention is not limited to this.
[0135] As a result, when cluster PNC2 and cluster PNC3 are executed simultaneously, a load is placed on the ECUs 3d belonging to both clusters, and even if an abnormality is not actually present, it may be judged as abnormal according to the judgment criteria of cluster PNC2 or cluster PNC3. However, by correcting the judgment criteria, it is possible to avoid a situation where an abnormality is judged and the functions of cluster PNC2 and cluster PNC3 are stopped.
[0136] [4-1 Supplementary Note 1] The present disclosure also includes the following vehicle control system: an in-vehicle control system including a relay device that relays data communication between in-vehicle control devices that can communicate with each other via a communication bus, and the in-vehicle devices connected to the communication bus, wherein the relay device includes a receiver that receives a first cluster frame transmitted by a first in-vehicle control device that belongs to a first cluster and executes a first function to a second in-vehicle control device that belongs to the first cluster, a monitor that monitors a reception status of frames by the receiver and acquires an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device, a determiner that determines whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitorr and a determination criterion related to the frame occurrence status, and a start-up controller that transmits the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if the determiner determines that the first cluster is normal, and that does not transmit the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if the determiner determines that the first cluster is abnormal. As a result, in the vehicle control system, the second in-vehicle control device belonging to the cluster determined to be abnormal can be stopped, thereby reducing the power consumption of the in-vehicle system.
[0137] [4-2 Supplementary Note 2] The present disclosure also includes the following vehicle: A vehicle including a relay device that relays data communication between on-board control devices that can communicate with each other via a communication bus, and the on-board devices connected to the communication bus, wherein the relay device includes a receiving unit that receives a first cluster frame transmitted by a first on-board control device that belongs to a first cluster that executes a first function to a second on-board control device that belongs to the first cluster, a monitoring unit that monitors a reception status of frames by the receiving unit and acquires an occurrence status of the first cluster frame transmitted from the first on-board control device to the second on-board control device, a determining unit that determines whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitoring unit and a determination criterion related to the frame occurrence status, and a start-up control unit that transmits the first cluster frame transmitted from the first on-board control device to the second on-board control device when the determining unit determines that the first cluster is normal, and does not transmit the first cluster frame transmitted from the first on-board control device to the second on-board control device when the determining unit determines that the first cluster is abnormal. As a result, in the vehicle, the second on-board control device belonging to the cluster determined to be abnormal can be stopped, thereby reducing the power consumption of the on-board system.
[0138] [4-3 Supplementary Note 3] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims, not the above-described embodiments, and includes meanings equivalent to the claims and all modifications within the scope of the claims.
[0139] REFERENCE SIGNS LIST 1 In-vehicle system 2 Relay device 3, 3a, 3b, 3c, 3d, 3e, 3f ECU (in-vehicle control device) 11a, 11b, 11c Communication I / F (communication interface) 12a, 12b, 12c Communication bus 13, 13a, 13b, 13c, 13d, 13e, 13f Communication I / F (communication interface) 21 Microcomputer (microcontroller unit) 22 Control unit 23 Memory 24 Internal bus 31 Microcomputer (microcontroller unit) 32 Control unit (processor) 33 Memory 34 Peripheral circuit 41 Cluster table 51 Receiving unit 52 Monitoring unit 53 Determination unit 54 Start control unit 111 Notification unit
Claims
1. A relay device that relays communications between in-vehicle control devices that can communicate with each other via a communication bus, comprising: a receiving unit that receives a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster; a monitoring unit that monitors the reception status of frames by the receiving unit and acquires an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device; a judgment unit that judges whether the first cluster is normal or abnormal based on the occurrence status of the first cluster frame acquired by the monitoring unit and a judgment criterion related to the frame occurrence status; and a start-up control unit that transmits the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device when the judgment unit determines that the first cluster is normal, and does not transmit the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device when the judgment unit determines that the first cluster is abnormal.
2. The relay device according to claim 1, wherein the start-up control unit transmits a stop frame to the second in-vehicle control device to stop the second in-vehicle control device when the determination unit determines that the first cluster is abnormal.
3. A relay device according to claim 1 or claim 2, wherein the occurrence status of the first cluster frames includes at least one of the duration over which a plurality of the first cluster frames are periodically transmitted or the number of occurrences of the first cluster frames.
4. A relay device as described in any one of claims 1 to 3, wherein the judgment unit judges whether the first cluster is normal or abnormal based on a first judgment criterion when a storage device that supplies power to the vehicle control device is not being charged, and judges whether the first cluster is normal or abnormal based on a second judgment criterion that is more relaxed than the first judgment criterion when the storage device is being charged.
5. A relay device as described in any one of claims 1 to 4, wherein the receiving unit receives a second cluster frame transmitted by a third vehicle control device belonging to a second cluster executing a second function to a fourth vehicle control device belonging to the second cluster, the monitoring unit acquires an occurrence status of the second cluster frame transmitted from the third vehicle control device to the fourth vehicle control device, the judgment unit judges whether the second cluster is normal or abnormal based on the occurrence status of the second cluster frame acquired by the monitoring unit and the judgment criterion, and the start-up control unit transmits the second cluster frame transmitted from the third vehicle control device to the fourth vehicle control device in each of cases where the judgment unit judges that the second cluster is normal and where the judgment unit judges that the second cluster is abnormal.
6. The relay device according to claim 5, wherein the first function is a function that is executed when the remaining amount of stored power in a power storage device that supplies power to the vehicle control device is equal to or greater than a certain value, and the second function is a function that is executed even when the remaining amount of stored power is less than the certain value.
7. The relay device according to claim 1, further comprising a notification unit that notifies a user that the first cluster is abnormal when the determination unit determines that an abnormality exists.
8. A relay device as described in claim 7, wherein when the notification unit notifies that the first cluster is abnormal and the relay device receives a command from the user to continue executing the first function, the start-up control unit transmits the first cluster frame transmitted from the first vehicle control device to the second vehicle control device.
9. A relay device as described in any one of claims 1 to 8, wherein the first vehicle control device further belongs to a second cluster that executes a second function different from the first function, and the judgment unit judges whether the first cluster is normal or abnormal based on a first judgment criterion when the first function is executed alone, and judges whether the first cluster is normal or abnormal based on a second judgment criterion that is more relaxed than the first judgment criterion when the first function and the second function are executed simultaneously.
10. A relay device according to any one of claims 1 to 9, wherein the judgment criterion is determined based on the storage capacity of a power storage device that supplies power to the vehicle control device and the amount of power consumed by the first cluster.
11. A control method for controlling a relay device that relays communications between in-vehicle control devices that can communicate with each other via a communication bus, comprising: a step of receiving a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster; a step of monitoring a reception status of the received frame and acquiring an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device; a step of determining whether the first cluster is normal or abnormal based on the acquired occurrence status of the first cluster frame and a determination criterion for the frame occurrence status; and a step of transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device when it is determined that the first cluster is normal, and not transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device when it is determined that the first cluster is abnormal.
12. A computer program used by a relay device that relays communications between in-vehicle control devices that can communicate with each other via a communication bus, the computer program executing the following steps: receiving a first cluster frame transmitted by a first in-vehicle control device belonging to a first cluster that executes a first function to a second in-vehicle control device belonging to the first cluster; monitoring the reception status of the received frame and acquiring an occurrence status of the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device; judging whether the first cluster is normal or abnormal based on the acquired occurrence status of the first cluster frame and a judgment criterion related to the frame occurrence status; transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if it is determined that the first cluster is normal, and not transmitting the first cluster frame transmitted from the first in-vehicle control device to the second in-vehicle control device if it is determined that the first cluster is abnormal.
Citation Information
Patent Citations
Denial of service attack prevention method and device
CN111669352A
On-vehicle network system
JP2022090901A
