In-vehicle device, program, and information processing method
The in-vehicle device efficiently manages ECU replacements by identifying redundant ECUs and transferring necessary software and settings, addressing the lack of ECU replacement management in existing systems and ensuring continuous vehicle operation.
Patent Information
- Application Number
- PCT/JP2024/007395
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2024-02-28
- Publication Date
- 2024-10-24
AI Technical Summary
Existing in-vehicle ECU systems do not effectively manage the replacement of malfunctioning ECUs, leading to potential disruptions in vehicle operations.
An in-vehicle device that communicates with multiple ECUs to identify and replace a redundant ECU when a malfunction is detected, using state data to determine the status of ECUs and initiate a substitution process, including software and setting information transfer to ensure seamless operation.
Enables efficient and uninterrupted vehicle operations by identifying and replacing non-functional ECUs with redundant ones, reducing the need for duplicate software storage and optimizing communication protocols.
Smart Images

Figure JP2024007395_24102024_PF_FP_ABST
Abstract
Description
In-vehicle device, program, and information processing method
[0001] This application claims priority to Japanese Patent Application No. 2023-067872 filed on April 18, 2023, and incorporates by reference all of the contents of that application.
[0002] A vehicle is equipped with a body ECU, which is an on-board ECU that controls body-related devices such as a wiper drive device, interior and exterior lighting devices, door lock devices, power windows, etc. (See, for example, Patent Document 1.) The wiper drive device of Patent Document 1 includes an on-board ECU (body ECU) and is driven by a control program applied to the on-board ECU (Electronic Control Unit).
[0003] Japanese Patent Application Laid-Open No. 2017-224926
[0004] An in-vehicle device according to one aspect of the present disclosure is an in-vehicle device that is mounted on a vehicle and communicatively connected to a plurality of in-vehicle ECUs, and includes a control unit that performs processing related to status management of the in-vehicle ECUs. The control unit acquires status data related to the status of the in-vehicle ECU from the in-vehicle ECU, and if it determines that the in-vehicle ECU is not operating normally based on the acquired status data, it identifies a redundant ECU to replace the in-vehicle ECU that has been determined to be not operating normally, and performs processing on the redundant ECU to replace the in-vehicle ECU that has been determined to be not operating normally.
[0005] 1 is a schematic diagram illustrating the system configuration of an in-vehicle system according to a first embodiment; FIG. 2 is a block diagram illustrating the internal configuration of an in-vehicle device (integrated ECU); FIG. 3 is an explanatory diagram illustrating an ECU status table; FIG. 4 is an explanatory diagram illustrating a substitution table; FIG. 5 is an explanatory diagram illustrating a relay table; FIG. 6 is an explanatory diagram illustrating a processing flow (sequence) by an in-vehicle device, a redundant ECU, etc.; FIG. 7 is a flowchart illustrating the processing of a control unit of an in-vehicle device; FIG. 8 is a flowchart illustrating the processing of a control unit of an in-vehicle device according to a second embodiment (determined based on processing load); FIG. 9 is a flowchart illustrating the processing of a control unit of an in-vehicle device according to a third embodiment (determined based on the number of possible substitutes); FIG. 10 is a schematic diagram illustrating the system configuration of an in-vehicle system according to a fourth embodiment (the integrated ECU includes a redundant ECU);
[0006] [Problem to be solved by the present disclosure] The on-board ECU installed in the vehicle of Patent Document 1 does not take into consideration the processing required to replace another on-board ECU when that other on-board ECU fails or otherwise ceases to operate normally.
[0007] The present disclosure aims to provide an in-vehicle device or the like that can efficiently perform processing related to replacing an in-vehicle ECU when any of the in-vehicle ECUs mounted on a vehicle stops operating normally.
[0008] [Effects of the Present Disclosure] According to one aspect of the present disclosure, it is possible to provide an in-vehicle device or the like that efficiently performs processing related to replacing an in-vehicle ECU mounted on a vehicle when the in-vehicle ECU stops operating normally.
[0009] [Description of Embodiments of the Present Disclosure] First, embodiments of the present disclosure will be listed and described. In addition, at least some of the embodiments described below may be combined in any manner.
[0010] (1) An in-vehicle device according to one aspect of the present disclosure is an in-vehicle device that is mounted on a vehicle and communicatively connected to a plurality of in-vehicle ECUs, and includes a control unit that performs processing related to status management of the in-vehicle ECUs. The control unit acquires status data related to the status of the in-vehicle ECUs from the in-vehicle ECUs, and if it determines based on the acquired status data that the in-vehicle ECU is not operating normally, it identifies a redundant ECU to replace the in-vehicle ECU determined to be not operating normally, and performs processing on the redundant ECU to replace the in-vehicle ECU determined to be not operating normally.
[0011] In this aspect, the in-vehicle device is communicably connected to multiple in-vehicle ECUs via an in-vehicle network installed in the vehicle. These multiple in-vehicle ECUs perform processing to execute various services or functions provided by the vehicle. The in-vehicle ECUs may include not only in-vehicle ECUs installed during vehicle production, but also in-vehicle ECUs (spare ECUs) installed after the vehicle is produced (retrofitted). The spare ECU may acquire messages output from an in-vehicle ECU (sensor / actuator control ECU) to which a sensor or actuator is directly connected via a signal line, and perform processing to execute various services or functions using the acquired messages. The control unit of the in-vehicle device aggregates information (status information) on the status of the in-vehicle ECUs including the spare ECU, sensor / actuator control ECU, and redundant ECU, i.e., information on whether the in-vehicle ECUs are in an operating state (wake-up state) or a stopped state (sleep state), and performs processing related to current status management of the in-vehicle ECUs. The status information of the vehicle ECUs may include management information regarding the functions performed by each vehicle ECU and whether the vehicle ECU is operating normally (normal or abnormal). Furthermore, the control unit of the vehicle device periodically, regularly, or constantly polls the vehicle ECUs to acquire status data regarding the status of the vehicle ECUs. The control unit of the vehicle device determines that the vehicle ECU is not operating normally, for example, if the status data cannot be acquired beyond the transmission period, if the acquired status data contains an abnormality code indicating an abnormality in the vehicle ECU that sent it, or if the acquired status data is determined to be fraudulent data, for example, due to spoofing. Examples of cases in which the vehicle ECU is not operating normally include when the vehicle ECU is malfunctioning or when the vehicle ECU is removed from the vehicle. The control unit of the vehicle device identifies a redundant ECU (substitute ECU) to replace the vehicle ECU determined to be operating abnormally. The redundant ECU is, for example, an ECU of the same model as the vehicle ECU determined to be operating abnormally, or an ECU compatible with the vehicle ECU determined to be operating abnormally.The redundant ECU can provide various services or functions performed by the in-vehicle ECU determined to be malfunctioning by executing software that is the same as or compatible with the software executed by the in-vehicle ECU. The control unit of the in-vehicle device performs processing to substitute (act as a substitute for) the in-vehicle ECU determined to be malfunctioning, such as by sending a wake-up signal or by sending (outputting) an instruction signal to the identified redundant ECU to initiate substitution (actuator start). As a result, the redundant ECU, upon receiving the instruction from the in-vehicle device, initiates processing (substitution processing) to substitute for the in-vehicle ECU determined to be malfunctioning, thereby allowing the service or function performed by the in-vehicle ECU to continue. Furthermore, by substituting the in-vehicle ECU that transmits and receives signals to and from the sensor / actuator control ECU to which a sensor or other device is connected without duplicating the in-vehicle ECU, the number of signal wires, such as harnesses, required to connect the sensor or other device can be reduced.
[0012] (2) In one embodiment of the in-vehicle device of the present disclosure, the control unit acquires software executed by an in-vehicle ECU that has been determined to be malfunctioning, and outputs the acquired software to the redundant ECU, thereby performing processing to replace the redundant ECU.
[0013] In this aspect, the control unit of the in-vehicle device acquires software to be executed by the in-vehicle ECU determined to be malfunctioning. The software may be acquired, for example, from an external server, such as an over-the-air (OTA) server located outside the vehicle. Alternatively, the software may be pre-stored in a storage area accessible by the control unit of the in-vehicle device, such as a storage unit of the in-vehicle device, and the software may be acquired by accessing the storage area. The control unit of the in-vehicle device transmits (outputs) the software acquired from, for example, an external server to the identified redundant ECU. The redundant ECU can acquire the software from the in-vehicle device and install (apply) the acquired software to execute the software, thereby efficiently performing the replacement process. In other words, when replacing one of the in-vehicle ECUs, the redundant ECU does not need to retain (store) the software of the in-vehicle ECU in advance, thereby preventing the redundant ECU's storage area from becoming overloaded. Furthermore, when replacing the in-vehicle ECU, the latest version of the software acquired from an external server can be applied to the redundant ECU.
[0014] (3) In one aspect of the in-vehicle device of the present disclosure, the status data acquired from the in-vehicle ECU includes setting information regarding the operational settings of the in-vehicle ECU at the time the status data is transmitted, and the control unit performs processing to substitute the redundant ECU by outputting the setting information to the redundant ECU.
[0015] In this aspect, the status data output (transmitted) by the in-vehicle ECU to the in-vehicle device periodically, regularly, or steadily includes setting information related to the operational settings of the in-vehicle ECU at the time the status data is transmitted. The in-vehicle ECU provides services or functions by executing software, and the setting information corresponds to, for example, various setting information for providing the services or functions. The setting information may include, for example, user information related to the driver currently driving the vehicle, and may further include setting information associated with each piece of user information (setting information for each driver). Furthermore, the setting information may include history information such as operations performed by the driver currently driving the vehicle (current user) when using a service, etc. The control unit of the in-vehicle device outputs (transmits) to the redundant ECU software necessary to replace the in-vehicle ECU, as well as setting information related to the operational settings of the in-vehicle ECU at the time the status data is transmitted from the in-vehicle ECU. By acquiring software and setting information from the vehicle-mounted device, the redundant ECU can execute the software by reflecting the setting information, and can continue to provide services or functions by inheriting the operational settings of the vehicle-mounted ECU to be replaced.
[0016] (4) In one embodiment of the in-vehicle device of the present disclosure, the control unit uses a relay table stored in an accessible memory area to relay messages sent and received between multiple in-vehicle ECUs, and changes the relay table depending on the identified redundant ECU.
[0017] In this aspect, a relay table is stored in a storage area accessible by the on-board device's control unit, such as a storage unit, and the control unit of the on-board device refers to the relay table to relay messages transmitted and received between multiple on-board ECUs. That is, the on-board device includes multiple on-board communication units, such as CAN transceivers or Ethernet PHY units, corresponding to the physical layers of each communication protocol, and functions as a relay device (CAN gateway, Ethernet switch) that relays messages transmitted and received by each on-board ECU connected to each of the multiple on-board communication units. When a redundant ECU replaces an on-board ECU determined to be malfunctioning, it is expected that the address of the redundant ECU and the address of the on-board ECU will be different on the on-board network. Furthermore, when relaying a message (frame) via CAN or the like, if the on-board ECU to be relayed is identified based on the message's identifier (message ID), it is expected that the relay destination will need to be changed from the on-board ECU determined to be malfunctioning to the redundant ECU. Even if the addresses of the redundant ECU and the onboard ECU are different in this way, the control unit of the onboard device changes the relay table according to the identified redundant ECU, so that messages, etc. necessary to execute services or functions can be reliably relayed to the redundant ECU instead of the onboard ECU to be replaced.
[0018] (5) In an in-vehicle device according to one aspect of the present disclosure, a replacement table relating to replacement by each of the multiple redundant ECUs is stored in a memory area accessible to the control unit, and the control unit identifies one of the multiple redundant ECUs by referring to the replacement table.
[0019] In this aspect, a vehicle is equipped with multiple redundant ECUs. These redundant ECUs may be configured as spare ECUs retrofitted to the vehicle to add new services or functions. That is, each of the multiple spare ECUs retrofitted may function as a redundant ECU substituting for other spare ECUs, thereby constituting a group of redundant ECUs. Information regarding substitution by each of the multiple redundant ECUs is stored, for example, in a table format (substitution table) in a storage area accessible by a control unit of the in-vehicle device, such as a storage unit of the in-vehicle device. The substitution table stores, for example, information regarding the association of one or more redundant ECUs corresponding to various services or functions. The control unit of the in-vehicle device refers to the substitution table to identify a redundant ECU corresponding to a target in-vehicle ECU (an in-vehicle ECU determined to be malfunctioning). Therefore, even when a vehicle is equipped with multiple redundant ECUs, it is possible to efficiently identify an appropriate redundant ECU.
[0020] (6) In one aspect of the in-vehicle device of the present disclosure, the redundant ECU is configured to be able to be added after the vehicle is produced, and when it is installed in the vehicle, it outputs replacement information regarding replacement by the redundant ECU, and the control unit changes the replacement table in accordance with the replacement information obtained from the redundant ECU.
[0021] In this aspect, the redundant ECU is configured to be additionally installed after the vehicle is manufactured. In other words, the spare ECU functioning as the redundant ECU is configured to be detachable, allowing for installation and removal after the vehicle is manufactured. When installed in a vehicle, i.e., when connected to an in-vehicle network, the redundant ECU (spare ECU) outputs (transmits) replacement information regarding its replacement by the redundant ECU to the in-vehicle device. When installed in a vehicle, the redundant ECU (spare ECU) may first acquire management information for the in-vehicle ECU from the in-vehicle device and output (transmit) replacement information to the in-vehicle device based on the acquired management information. By acquiring (receiving) the replacement information from the redundant ECU, the control unit of the in-vehicle device can recognize that the redundant ECU has been installed in the vehicle. Then, by referencing the replacement information, the in-vehicle device can recognize services that the newly installed redundant ECU can provide or in-vehicle ECUs that the redundant ECU can replace. The control unit of the in-vehicle device updates the management information (ECU status table) and the replacement table for the in-vehicle ECU based on the replacement information acquired from the newly installed redundant ECU. This allows the control unit of the in-vehicle device to constantly obtain the latest information on the redundant ECU (standby ECU) connected to the in-vehicle network and to identify an appropriate redundant ECU for an in-vehicle ECU that is determined not to be normally operating.
[0022] (7) In one aspect of the in-vehicle device of the present disclosure, when there are multiple candidates for the redundant ECU to replace an in-vehicle ECU that has been determined to be malfunctioning, the control unit identifies one of the redundant ECUs based on the current processing load of the multiple candidate redundant ECUs.
[0023] In this aspect, a vehicle is equipped with multiple redundant ECUs. These multiple redundant ECUs can perform the same service or function by executing identical or compatible software. In this case, if it is determined that one of the onboard ECUs is malfunctioning, it is assumed that there are multiple redundant ECUs (replacement candidate redundant ECUs) that can replace the malfunctioning onboard ECU. When multiple candidate redundant ECUs (replacement candidate redundant ECUs) exist, the control unit of the onboard device identifies, for example, the redundant ECU with the lowest processing load as the redundant ECU to replace the onboard ECU determined to be malfunctioning based on the current processing load of the multiple candidate redundant ECUs. For example, the status data transmitted from the onboard ECU includes information about the processing load of the onboard ECU at the time of transmission. The control unit of the onboard device can determine the current processing load of the onboard ECU that is the source of the status data based on the information about the processing load included in the acquired status data. In this way, even if there are multiple candidate redundant ECUs, it is possible to operate each of the redundant ECUs in a manner that balances the processing loads of each of the redundant ECUs.
[0024] (8) In one aspect of the in-vehicle device of the present disclosure, when there are multiple candidates for the redundant system ECU to replace an in-vehicle ECU that has been determined to be malfunctioning, the control unit identifies one of the redundant system ECUs based on the number of possible replacements among the multiple candidate redundant system ECUs.
[0025] In this aspect, when there are multiple candidates for redundant ECUs (replacement candidate redundant ECUs), the control unit of the in-vehicle device identifies, for example, the redundant ECU with the smallest number of possible replacements as the redundant ECU to replace the in-vehicle ECU determined to be malfunctioning, based on the number of possible replacements among the redundant ECUs. The number of possible replacements corresponds to the number of in-vehicle ECUs that the redundant ECU can replace, or the number of types of services or functions provided by the in-vehicle ECUs that it can replace. In other words, it is expected that the versatility of the multiple redundant ECUs installed in a vehicle will vary based on the product specifications or characteristics of each of the redundant ECUs. A redundant ECU with relatively high versatility can support a wide variety of services or functions, i.e., can execute a wide variety of software to provide the wide variety of services or functions, and can therefore replace a large number of in-vehicle ECUs. In contrast, a redundant ECU with relatively low versatility can, for example, only support one or a few types of services or functions, i.e., can execute only software for providing a specific service or function, and can therefore replace one or a few types of in-vehicle ECUs. Even in such cases, if there are multiple candidate redundant ECUs, the control unit of the in-vehicle device will prioritize identifying the redundant ECU with the fewest possible replacements, thereby preserving the relatively versatile redundant ECUs. As a result, even if there are multiple candidate in-vehicle ECUs in an in-vehicle system including multiple redundant ECUs, it is possible to identify redundant ECUs for each of these multiple in-vehicle ECUs in a balanced manner, thereby improving the availability of the in-vehicle system.
[0026] (9) In the in-vehicle device according to one aspect of the present disclosure, the control unit functions as the redundant ECU.
[0027] In this aspect, the control unit of the in-vehicle device functions as a redundant ECU (control unit of the redundant ECU). That is, the in-vehicle device functions as a state management device that manages the states of multiple in-vehicle ECUs, and also functions as a redundant ECU that replaces an in-vehicle ECU determined to be malfunctioning. For example, a virtualization system such as a hypervisor may be applied to the in-vehicle device, and the in-vehicle device may function as a state management device and a redundant ECU by operating as multiple virtual environments (virtual machines) generated by the virtualization system. By including a redundant ECU in the in-vehicle device in this way, surplus resources of the in-vehicle device, i.e., free time in the control unit of the in-vehicle device, can be allocated to processing as the redundant ECU.
[0028] (10) A program according to one aspect of the present disclosure causes a computer that is communicatively connected to a plurality of vehicle ECUs to acquire status data regarding the status of the vehicle ECUs from the vehicle ECUs, and if it determines based on the acquired status data that the vehicle ECU is not operating normally, to identify a redundant ECU to replace the vehicle ECU determined to be not operating normally, and to cause the redundant ECU to execute a process to replace the vehicle ECU determined to be not operating normally.
[0029] In this aspect, a program can be provided that causes a computer to function as an in-vehicle device that efficiently performs processing related to replacing an in-vehicle ECU installed in a vehicle when the in-vehicle ECU stops operating normally.
[0030] (11) An information processing method according to one aspect of the present disclosure includes having a computer communicatively connected to a plurality of vehicle ECUs acquire status data regarding the status of the vehicle ECUs from the vehicle ECUs, and if it is determined based on the acquired status data that the vehicle ECU is not operating normally, identifying a redundant ECU to replace the vehicle ECU determined to be not operating normally, and having the redundant ECU execute a process to replace the vehicle ECU determined to be not operating normally.
[0031] In this aspect, an information processing method can be provided that causes a computer to function as an in-vehicle device that efficiently performs processing related to replacing an in-vehicle ECU installed in a vehicle when the in-vehicle ECU stops operating normally.
[0032] [Details of the embodiment of the present disclosure] The present disclosure will be specifically described with reference to the drawings illustrating the embodiment. An in-vehicle device 2 according to the embodiment of the present disclosure will be described below with reference to the drawings. Note that the present disclosure is not limited to these examples, but is defined by the claims, and is intended to include all modifications within the meaning and scope equivalent to the claims.
[0033] (Embodiment 1) Hereinafter, an embodiment will be described with reference to the drawings. FIG. 1 is a schematic diagram illustrating the system configuration of an in-vehicle system S according to embodiment 1. FIG. 2 is a block diagram illustrating the internal configuration of an in-vehicle device 2 (integrated ECU). The in-vehicle system S is configured with an in-vehicle device 2 mounted on a vehicle C and a redundant ECU 32 as a main device. The in-vehicle device 2 is communicably connected to a plurality of in-vehicle ECUs 3, including a standby ECU 31 and a redundant ECU 32, via an in-vehicle network 4. The in-vehicle device 2 may have a relay function and may relay messages transmitted and received by each of the in-vehicle ECUs 3. Alternatively, a relay device such as a CAN gateway or an Ethernet switch may be connected to the in-vehicle device 2, and the relay device may relay messages transmitted and received by each of the in-vehicle ECUs 3.
[0034] Furthermore, the in-vehicle device 2 is communicatively connected to an external server S1, such as an OTA (Over The Air) server, connected to an external network such as the Internet, via the exterior communication device 1. The exterior communication device 1 includes an exterior communication unit and an input / output I / F (interface) for communicating with the in-vehicle device 2. The exterior communication unit is a communication device for wireless communication using a mobile communication protocol such as LTE, 4G, 5G, or Wi-Fi, and transmits and receives data to and from the external server S1 via an antenna 11 connected to the exterior communication unit. The communication between the exterior communication device 1 and the external server S1 is performed via an external network such as a public line network or the Internet.
[0035] The on-board ECUs 3 include the on-board ECUs 3 that are mounted during the production stage of the vehicle C (installed at the time of shipment), as well as a spare ECU 31 that is retrofitted (installed after the production and shipment of the vehicle C) when adding a new service or function to the vehicle C. The spare ECU 31 may include a redundant spare ECU 31 (redundant system ECU 32) that has a function to replace another on-board ECU 3 (spare ECU 31). The on-board ECUs 3 that are installed at the time of shipment include on-board ECUs 3 (sensor / actuator control ECUs) to which sensors 301 or actuators 302 are directly connected via signal lines or the like, and on-board ECUs 3 that do not directly connect to such sensors 301 or the like and that output calculation results or the like obtained by processing information based on messages or the like obtained from these sensor / actuator control ECUs.
[0036] By additionally connecting (newly installing) the spare ECU 31 to the in-vehicle network 4 in this way, it is possible to add new services or functions to the vehicle C. The additionally connected (newly installed) spare ECU 31 may include a redundant system ECU 32 (substitute ECU) that has the function of substituting (replacing) the other in-vehicle ECUs 3 by executing the same software as the other in-vehicle ECUs 3. By using the redundant system ECU 32, even if the added spare ECU 31 or the in-vehicle ECUs 3 installed at the time of shipment no longer operate normally, it is possible to substitute for the in-vehicle ECUs 3 and continue or resume providing the services and the like that were provided by the in-vehicle ECUs 3.
[0037] The in-vehicle device 2 is an integrated ECU that includes a control unit 21, a storage unit 22, and an in-vehicle communication unit 23 and is configured by a central control device such as a vehicle computer, for example, and performs overall control of the vehicle C. The in-vehicle device 2 may have multiple in-vehicle communication units 23 and function as a relay device that relays messages, etc., transmitted and received between the in-vehicle ECUs 3 connected to each of these in-vehicle communication units 23. Alternatively, multiple individual ECUs may be connected under the in-vehicle device 2 functioning as an integrated ECU, and the in-vehicle device 2 may control the relay functions, etc., of these individual ECUs. The in-vehicle device 2 performs processing related to status management of the in-vehicle ECUs 3 by acquiring and aggregating status data periodically transmitted from the multiple in-vehicle ECUs 3 connected to the in-vehicle network 4.
[0038] The control unit 21 is configured with a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), and performs various control processes and arithmetic processes by reading and executing a program P (program product) and data pre-stored in the storage unit 22. The control unit 21 is not limited to a software processing unit that performs software processing such as a CPU, but may also include a hardware processing unit that performs various control processes and arithmetic processes by hardware processing such as an FPGA, an ASIC, or an SOC.
[0039] The storage unit 22 is configured with a volatile memory element such as a random access memory (RAM) or a non-volatile memory element such as a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory, and stores a program P (program product) and data to be referenced during processing. The program P (program product) stored in the storage unit 22 may be a program P (program product) read from a recording medium M readable by the in-vehicle device 2. Alternatively, the program P (program product) may be downloaded from an external computer (not shown) connected to a communication network (not shown) and stored in the storage unit 22. The storage unit 22 may also store an ECU status table, a substitution table, and a relay table. Details of these tables will be described later.
[0040] The in-vehicle communication unit 23 is an input / output interface (CAN transceiver, Ethernet PHY) using a communication protocol such as CAN (Control Area Network), CAN-FD, or Ethernet (registered trademark). A communication line 41 such as a CAN bus or an Ethernet cable is connected to the in-vehicle communication unit 23 depending on the communication protocol. The control unit 21 communicates with in-vehicle ECUs 3, such as a standby ECU 31 and a redundant ECU 32, which are connected to the in-vehicle network 4, via the in-vehicle communication unit 23.
[0041] The in-vehicle ECUs 3, such as the redundant ECU 32 and the standby ECU 31, include a control unit, a storage unit, and an in-vehicle communication unit, similar to the in-vehicle device 2. These in-vehicle ECUs 3 may be activated or deactivated (in standby mode) in response to a wake-up signal or a sleep signal transmitted from the in-vehicle device 2.
[0042] 3 is an explanatory diagram illustrating an example of an ECU status table. The storage unit 22 of the in-vehicle device 2 aggregates status information of the in-vehicle ECUs 3 based on status data acquired from the multiple in-vehicle ECUs 3, including the spare ECU 31, redundant ECU 32, and sensor / actuator control ECUs, and stores information related to the current status management of the in-vehicle ECUs 3, for example, in a table format (ECU status table). The ECU status table includes management items (fields), such as ECU name, function, type, status, and processing load. The ECU name management item stores, for example, an ECU number, ECU name, or an identification number that uniquely identifies the in-vehicle ECU 3.
[0043] The function management item stores the name (function name) of a function or service that is performed or assumed by the in-vehicle ECU 3 (ECU name) stored in the same record when the in-vehicle ECU 3 executes software. Based on the function name, the redundant ECU 32 or the in-vehicle device 2 can identify another in-vehicle ECU 3 that can be substituted by the redundant ECU 32 (the in-vehicle ECU 3 to be substituted).
[0044] The type management item stores the type of the in-vehicle ECU 3 (ECU name) stored in the same record. The type includes, for example, spare, redundant spare, sensor connection, actuator connection, and installation.
[0045] The in-vehicle ECU 3 of the type spare indicates a spare ECU 31, and is an in-vehicle ECU 3 that can be retrofitted (attached after production and shipping of the vehicle C) when adding a new service or function to the vehicle C. The in-vehicle ECU 3 of the type redundant spare indicates a redundant ECU 32, and is an in-vehicle ECU 3 that can be substituted for another in-vehicle ECU 3 among the spare ECUs 31 that can be retrofitted.
[0046] The sensor-connected type on-board ECU 3 is an on-board ECU 3 to which a sensor 301 such as a LiDAR, an infrared sensor 301, or a CMOS camera is directly connected via a signal line, etc. The actuator-302-connected type on-board ECU 3 is an on-board ECU 3 to which an actuator 302 such as a switch, a lamp, or a drive motor is directly connected via a signal line, etc. The installed type on-board ECU 3 is an on-board ECU 3 that is installed in the vehicle C during the production stage of the vehicle C (installed at the time of shipment).
[0047] The status management item stores the operating status of the in-vehicle ECU 3 (ECU name) stored in the same record. The operating status includes, for example, "in operation" indicating normal operation, "failed" indicating abnormal operation, "in redundant operation" indicating replacement processing, and "standby" indicating a sleep state. When indicating a redundant operation status, information indicating which in-vehicle ECU 3 is being replaced (for example, "replacement for ECU name = A") may be added.
[0048] The processing load management item stores the usage status of the hardware resources of the in-vehicle ECU 3 (ECU name) stored in the same record. The usage status of the hardware resources includes, for example, the CPU usage rate or the memory usage rate.
[0049] The control unit 21 of the in-vehicle device 2 updates the operating state of each in-vehicle ECU 3 based on the status data periodically acquired from each in-vehicle ECU 3. Therefore, the control unit 21 of the in-vehicle device 2 can grasp the current operating state and processing load of each in-vehicle ECU 3, using the transmission period (reception period) of the status data as the processing unit time.
[0050] 4 is an explanatory diagram illustrating an example of the substitution table. The storage unit 22 of the in-vehicle device 2 stores, for example, in a table format (substitution table), information indicating which redundant ECU 32 can substitute for each in-vehicle ECU 3, including the spare ECU 31. The control unit 21 of the in-vehicle device 2 may update the substitution table based on substitutability information or product specification information transmitted from the newly installed spare ECU 31 and redundant ECU 32 (the spare ECU 31 of the redundant system spare).
[0051] The substitution table includes, as management items (fields), for example, a name of the ECU to be substituted and a name of the redundant ECU. The management item of the name of the ECU to be substituted stores the name of the ECU 3 to be substituted when it is determined that the in-vehicle ECU 3 is not operating normally. The ECU name is the ECU name defined in the ECU status table, and the substitution table is normalized accordingly.
[0052] The management item for redundant ECU name stores the ECU name of a redundant ECU 32 that can replace an in-vehicle ECU 3 with an ECU name stored in the same record. In other words, the management item stores the ECU name of a redundant ECU 32 that can execute software that is the same as or compatible with the software executed by an in-vehicle ECU 3 with a replacement target ECU name, and thereby can provide the same service or function as the in-vehicle ECU 3.
[0053] The number of substitutable redundant ECUs 32 for any one of the on-board ECUs 3 (name of ECU to be replaced), such as the spare ECU 31, is not limited to one (single), but may be multiple. Therefore, the redundant ECUs 32 include a redundant ECU 32 that can replace only one on-board ECU 3 (spare ECU 31) or a redundant ECU 32 that can replace multiple on-board ECUs 3 (spare ECUs 31). In other words, the versatility of the redundant ECUs 32 varies depending on the product specifications or characteristics of each redundant ECU 32. However, by referring to the replacement table, the number of substitutable on-board ECUs 3 for each redundant ECU 32 (the number of substitutable on-board ECUs 3) can be efficiently determined.
[0054] 5 is an explanatory diagram illustrating an example of a relay table. The in-vehicle device 2 functioning as a relay device performs relay processing of messages transmitted and received between a plurality of in-vehicle ECUs 3 by referring to the relay table stored in the storage unit 22. Alternatively, the in-vehicle device 2 may transmit route information extracted by referring to the relay table to another relay device such as a CAN gateway connected to the in-vehicle network 4 in response to an inquiry from the other relay device. The relay table includes, as management items (fields), for example, a message ID and a relay destination ECU.
[0055] The message ID management item stores an identifier indicating the type of communication data to be relayed, such as a message, frame, or packet. For example, if the communication protocol is CAN or CAN / FD, the message ID may store a CAN-ID. If the communication protocol is TCP / IP, the message ID may store a TCP port number or a UDP port number.
[0056] The relay destination ECU management item stores the name of the in-vehicle ECU 3 to which communication data (messages, etc.) of the message ID stored in the same record is relayed. When applying the redundant ECU 32 (starting replacement processing), the control unit 21 of the in-vehicle device 2 changes the relay table according to the redundant ECU 32, so that messages, etc. required to execute a service or function can be reliably relayed to the redundant ECU 32 instead of the in-vehicle ECU 3 to be replaced.
[0057] 6 is an explanatory diagram illustrating a processing flow (sequence) by the in-vehicle device 2, the redundant ECU 32, etc. The in-vehicle device 2, the standby ECU 31, and the redundant ECU 32 included in the in-vehicle system S are communicably connected via the in-vehicle network 4, and perform the following processes in association with each other.
[0058] The in-vehicle device 2 periodically, regularly, or steadily performs polling communication or the like (status inquiry) with the in-vehicle ECUs 3 including the spare ECU 31 and the redundant ECU 32, and acquires status data relating to the status of the in-vehicle ECUs 3 (S01). A plurality of in-vehicle ECUs 3 including the spare ECU 31 and the redundant ECU 32 are connected to the in-vehicle network 4, and the in-vehicle device 2 continuously performs status inquiries with the plurality of in-vehicle ECUs 3 through polling communication or the like. Based on whether or not the in-vehicle device 2 has acquired status data periodically transmitted from the plurality of in-vehicle ECUs 3, the in-vehicle device 2 can recognize whether the in-vehicle ECU 3 is operating or stopped (removed from the in-vehicle network 4).
[0059] Furthermore, when a new spare ECU 31 (including a redundant system ECU 32 that is a redundant system spare ECU 31) is connected (newly installed) to the in-vehicle network 4, the in-vehicle device 2 can recognize that the spare ECU 31 has been newly connected to the in-vehicle network 4 by acquiring status data from the newly installed spare ECU 31. When a new service or function is added to the vehicle C, it is assumed that the spare ECU 31 will be retrofitted (installed after production and shipping of the vehicle C). Even for the spare ECU 31 that is retrofitted in this way in response to the addition of a service, the in-vehicle device 2 can timely recognize that the spare ECU 31 has been newly installed.
[0060] The status data output (transmitted) from the in-vehicle ECU 3 includes information indicating whether the in-vehicle ECU 3 is operating normally (normal operation) and information indicating that the in-vehicle ECU 3 is not operating normally but is in an abnormal state (abnormal operation). Therefore, the in-vehicle device 2 can determine the operating state of the in-vehicle ECU 3, i.e., whether it is operating normally (abnormal operation), based on the status data acquired from the in-vehicle ECU 3.
[0061] The in-vehicle device 2 updates the management information (ECU status table) of the in-vehicle ECU 3 based on the status data acquired from the in-vehicle ECU 3 (S02). The in-vehicle device 2 stores the status data acquired from the in-vehicle ECU 3 in the storage unit 22 of the in-vehicle device 2. In the storing process, the in-vehicle device 2 may store the operating status (normal or abnormal), operational settings, and processing load of the in-vehicle ECU 3 included in the status data acquired from the in-vehicle ECU 3 in the ECU status table, thereby updating the management information (ECU status table) of the in-vehicle ECU 3 to the latest state.
[0062] The operational settings of the in-vehicle ECU 3 correspond to, for example, various setting information (information related to the operational settings) of the software when the in-vehicle ECU 3 executes the software to provide a service or the like. The various setting information of the software may include, for example, user information related to the driver driving the vehicle C, and may further include setting information associated with each piece of user information (setting information for each driver). Furthermore, the operational settings of the in-vehicle ECU 3 (various setting information of the software) may include history information such as the details of operations performed by the driver currently driving the vehicle C (current user) when using a service or the like. The processing load of the in-vehicle ECU 3 may include, for example, the usage status (CPU usage rate, memory usage rate) of hardware resources such as the CPU and memory used when the in-vehicle ECU 3 executes the software.
[0063] The redundant system ECU 32 (newly installed redundant system standby ECU 3) newly connected to the in-vehicle network 4 acquires management information from the in-vehicle device 2 and identifies a replaceable in-vehicle ECU 3 (standby ECU 31) (S03). For example, when the redundant system ECU 32 (newly installed redundant system standby ECU 3) is newly connected to the in-vehicle network 4, the redundant system ECU 32 (newly installed redundant system standby ECU 3) communicates with the in-vehicle device 2 and acquires management information (ECU status table) from the in-vehicle device 2. As described above, the management information (ECU status table) includes information about all in-vehicle ECUs 3 (including the existing standby ECU 31) connected to the in-vehicle network 4. The information includes, for example, information about functions or services that each in-vehicle ECU 3 can provide. Furthermore, the information may include, for example, information about software executed by each in-vehicle ECU 3 (software name, version, etc.). The redundant system ECU 32 (newly installed redundant system standby ECU 3) determines which on-board ECU 3 (including the existing standby ECU 31) it can replace by referring to management information (ECU status table) from the on-board device 2, and identifies the on-board ECU 3 that can be replaced.
[0064] The redundant ECU 32 newly connected to the in-vehicle network 4 transmits information about the identified replaceable in-vehicle ECU 3 to the in-vehicle device 2 (S04). The redundant ECU 32 (newly installed redundant standby ECU 3) transmits information about the identified replaceable in-vehicle ECU 3, such as the ECU name and function name of the in-vehicle ECU 3, to the in-vehicle device 2.
[0065] The in-vehicle device 2 updates the management information (ECU status table) and the replacement table based on the information acquired from the redundant system ECU 32 (information related to the identified replaceable in-vehicle ECU 3) (S05). The in-vehicle device 2 updates the management information (ECU status table) and the replacement table based on the information acquired from the redundant system ECU 32 (newly installed redundant system standby ECU 3) (such as the ECU name and function name of the replaceable in-vehicle ECU 3). By updating the replacement table, the newly installed redundant system ECU 32 (newly installed redundant system standby ECU 3) is reflected in the replacement table. By updating the management information (ECU status table), information related to the operating state of the newly installed redundant system ECU 32 (newly installed redundant system standby ECU 3) is reflected in the ECU status table.
[0066] The in-vehicle device 2 performs polling communication (status inquiry) with the spare ECU 31 (existing spare ECU 1) to acquire status data (normal response, operation setting) related to the status of the spare ECU 31 (existing spare ECU 1) (S06). The in-vehicle device 2 determines that the spare ECU 31 (existing spare ECU 1) is abnormal based on whether or not the status data has been acquired or the acquired abnormal response (S07). As described above, the in-vehicle device 2 performs polling communication (status inquiry) with all in-vehicle ECUs 3 connected to the in-vehicle network 4, and acquires the latest operation setting of the spare ECU 31 (existing spare ECU 1), for example. If a problem occurs in the spare ECU 31 (existing spare ECU 1), the in-vehicle device 2 determines that the spare ECU 31 (existing spare ECU 1) is abnormal based on whether or not status data has been received from the spare ECU 31 (existing spare ECU 1) or the content of the status data.
[0067] If the in-vehicle device 2 does not acquire status data from the spare ECU 31 (existing spare ECU1) for a period exceeding the transmission cycle, the in-vehicle device 2 may determine that the spare ECU 31 (existing spare ECU1) is malfunctioning or has been removed from the in-vehicle network 4 and is not operating normally. If the status data acquired from the spare ECU 31 (existing spare ECU1) indicates an abnormal response, the in-vehicle device 2 may determine that the spare ECU 31 (existing spare ECU1) is not operating normally.
[0068] The in-vehicle device 2 outputs a wake-up signal (WakeUp instruction) to the redundant system ECU 32 (newly installed redundant system standby ECU3) (S08). The in-vehicle device 2, for example, refers to a substitution table to identify the in-vehicle ECU 3 determined to be malfunctioning, i.e., the redundant system ECU 32 (newly installed redundant system standby ECU3) that can substitute for the standby ECU 31 (existing standby ECU1) to be substituted. The in-vehicle device 2 outputs a wake-up signal (WakeUp instruction) to the identified redundant system ECU 32 (newly installed redundant system standby ECU3), thereby activating the redundant system ECU 32 (newly installed redundant system standby ECU3).
[0069] The redundant system ECU 32 (newly installed redundant system standby ECU 3) outputs a startup completion notification to the in-vehicle device 2 (S09). For example, the redundant system ECU 32 (newly installed redundant system standby ECU 3), which was in a paused or standby state (sleep state), starts startup processing in response to a startup signal (WakeUp instruction) from the in-vehicle device 2. The redundant system ECU 32 (newly installed redundant system standby ECU 3) that has completed the startup processing and entered an activated state (wakeup state) outputs a startup completion notification to the in-vehicle device 2. By receiving the startup completion notification from the redundant system ECU 32 (newly installed redundant system standby ECU 3), the in-vehicle device 2 can recognize that the redundant system ECU 32 (newly installed redundant system standby ECU 3) has started up.
[0070] The in-vehicle device 2 acquires software for substituting for the spare ECU 31 (existing spare ECU1) determined to be abnormal from the external server S1 (S10). The in-vehicle device 2 acquires the software for substituting for the spare ECU 31 (existing spare ECU1) determined to be abnormal from the external server S1 functioning as, for example, an OTA server. The in-vehicle device 2 may identify a function to be performed or software to be executed by the spare ECU 31 (existing spare ECU1) determined to be malfunctioning, for example, by referring to an ECU status table, and acquire (download) the software from the external server S1 by transmitting a request signal including information related to the identified function or software to the external server S1.
[0071] The in-vehicle device 2 outputs software and operational settings to the redundant system ECU 32 (newly installed redundant system standby ECU 3) (S11). The in-vehicle device 2 outputs to the redundant system ECU 32 (newly installed redundant system standby ECU 3) software acquired (downloaded) from the external server S1 and operational settings (software setting information) included in status data last acquired from the standby ECU 31 (existing standby ECU 1) determined to be malfunctioning. The status data last acquired from the standby ECU 31 (existing standby ECU 1) corresponds to status data acquired immediately before it was determined that the standby ECU 31 (existing standby ECU 1) was malfunctioning. By using the operational settings (software setting information) included in such status data, it is possible to continue providing services or functions by inheriting the operational settings immediately before it was determined that the standby ECU 31 (existing standby ECU 1) was malfunctioning.
[0072] The redundant system ECU 32 (newly installed redundant system standby ECU 3) installs the software acquired from the in-vehicle device 2 and applies the operational settings (S12). The redundant system ECU 32 (newly installed redundant system standby ECU 3) installs the software acquired from the in-vehicle device 2. This allows the redundant system ECU 32 (newly installed redundant system standby ECU 3) to provide the same services, etc. as those provided by the standby ECU 31 (existing standby ECU 1) that was determined to be malfunctioning. Then, the redundant system ECU 32 (newly installed redundant system standby ECU 3) applies the operational settings (software setting information) acquired from the in-vehicle device 2. This allows the redundant system ECU 32 (newly installed redundant system standby ECU 3) to continue providing services or functions by inheriting the operational settings that were in place immediately before the standby ECU 31 (existing standby ECU 1) was determined to be malfunctioning.
[0073] The in-vehicle device 2 updates the relay table and management information (ECU status table) (S13). The in-vehicle device 2 updates (changes) the relay table in accordance with the redundant ECU 32 (newly installed redundant standby ECU 3). The in-vehicle device 2 uses the relay table to relay messages (frames) transmitted and received between the in-vehicle ECUs 3. In response to this, the in-vehicle device 2 updates the relay table to change the relay destination for a specific message (frame), for example, from the standby ECU 31 (existing standby ECU 1) determined to be malfunctioning to the redundant ECU 32 (newly installed redundant standby ECU 3). As a result, messages (frames) required for the redundant ECU 32 (newly installed redundant standby ECU 3) to execute software are relayed from the in-vehicle ECU 3 that sent them via the in-vehicle device 2. The in-vehicle device 2 may further update the ECU status table to the latest state by storing in the ECU status table information indicating that the redundant ECU 32 (newly installed redundant standby ECU 3) is performing alternative processing and that the standby ECU 31 (existing standby ECU 1) that has been determined not to be operating normally is malfunctioning.
[0074] The redundant system ECU 32 (newly installed redundant system standby ECU 3) starts a process (substitution process) to substitute for the standby ECU 31 (existing standby ECU 1) determined to be abnormal (S14). By starting the substitution process for the standby ECU 31 (existing standby ECU 1), the redundant system ECU 32 (newly installed redundant system standby ECU 3) can continue to provide the services or functions that were previously handled by the standby ECU 31 (existing standby ECU 1). This ensures the availability of the in-vehicle system S including the standby ECU 31 and the redundant system ECU 32.
[0075] In the present embodiment, the newly installed redundant system ECU 32 (newly installed redundant system standby ECU 3) is initially, i.e., when newly installed, in a standby state (sleep state) without providing any service and is activated by a wake-up signal (wake-up signal) from the in-vehicle device 2 to start replacement processing. However, this is not limited to this. The newly installed redundant system ECU 32 (newly installed redundant system standby ECU 3) may initially, i.e., when newly installed, execute software corresponding to a newly added service to provide the service. Furthermore, when software for replacing one of the in-vehicle ECUs 3 (the in-vehicle ECU 3 determined to be malfunctioning) is acquired from the in-vehicle device 2, the newly installed redundant system ECU 32 may also execute the software for the replacement, thereby providing multiple services, etc. By executing multiple software, the redundant system ECU 32 having the replacement function can execute other software to provide services, etc., even when it is not replacing one of the in-vehicle ECUs 3 (the in-vehicle ECU 3 determined to be malfunctioning). This can improve the utilization rate of the redundant system ECU 32 (promoting effective use of hardware resources).
[0076] 7 is a flowchart illustrating the processing of the control unit 21 of the in-vehicle device 2. The control unit 21 of the in-vehicle device 2 (integrated ECU) steadily performs the following processing, for example, when the vehicle C is stopped (power switch or IG switch is off) or started (power switch or IG switch is on).
[0077] The control unit 21 of the in-vehicle device 2 (integrated ECU) periodically, regularly, or steadily performs polling communication or the like with the in-vehicle ECUs 3 including the spare ECU 31 and redundant ECU 32 via the in-vehicle network 4, and continues processing to acquire status data from these in-vehicle ECUs 3. This enables the control unit 21 of the in-vehicle device 2 to recognize the spare ECU 31 and redundant ECU 32 that are newly connected (newly installed) to the in-vehicle network 4, as well as to recognize the in-vehicle ECUs 3 (including the spare ECU 31 and redundant ECU 32) that have been removed from the in-vehicle network 4.
[0078] The control unit 21 of the in-vehicle device 2 continuously performs processing to change (update) the management information (ECU status table), the replacement table, and the relay table stored in the storage unit 22 in response to the recognition of the installation or removal of the in-vehicle ECU 3. Then, the control unit 21 of the in-vehicle device 2 performs processing to substitute the redundant ECU 32 in response to the determination of the operating state of the in-vehicle ECU 3.
[0079] The control unit 21 of the in-vehicle device 2 acquires status data from the in-vehicle ECU 3 via the in-vehicle network 4 (S101). The control unit 21 of the in-vehicle device 2 periodically, regularly, or steadily acquires status data from all in-vehicle ECUs 3 connected to the in-vehicle network 4 via the in-vehicle network 4. The status data includes information regarding the operating state (normal or abnormal), processing load, and operational settings (setting information of running software, etc.) of the in-vehicle ECU 3 that is the sender of the status data.
[0080] The control unit 21 of the in-vehicle device 2 may update the ECU status table stored in the storage unit 22 based on the acquired status data. The control unit 21 of the in-vehicle device 2 may use the information stored in the updated ECU status table to generate screen data showing the status of each in-vehicle ECU 3 connected to the in-vehicle network 4, and output the screen data to an HMI (Human Machine Interface) device such as a display. This allows the operator of the vehicle C to be notified of information regarding the status of each in-vehicle ECU 3.
[0081] The control unit 21 of the in-vehicle device 2 determines whether any of the in-vehicle ECUs 3 is abnormal (S102). Based on the acquired status data, the control unit 21 of the in-vehicle device 2 determines whether the in-vehicle ECU 3 that is the sender of the status data is abnormal, i.e., whether the in-vehicle ECU 3 is operating normally. For example, the control unit 21 of the in-vehicle device 2 determines the operating status of the in-vehicle ECUs 3 of all ECU names included in the ECU status table by referring to the ECU status table.
[0082] The control unit 21 of the in-vehicle device 2 determines that the in-vehicle ECU 3 is abnormal, for example, when the status data cannot be acquired for a period exceeding the transmission period, when the acquired status data includes an abnormality code indicating an abnormality in the in-vehicle ECU 3 that is the sender, or when the acquired status data is determined to be fraudulent data, for example, due to spoofing, etc. Cases where the in-vehicle ECU 3 is not operating normally (is abnormal) include, for example, when the in-vehicle ECU 3 has failed or when the in-vehicle ECU 3 has been removed from the vehicle C.
[0083] If none of the on-board ECUs 3 is abnormal (S102: NO), the control unit 21 of the on-board device 2 performs loop processing by executing S101 again. As a result, the control unit 21 of the on-board device 2 continues the process of acquiring status data from all on-board ECUs 3 connected to the on-board network 4. The status data includes information about the current operational settings and processing loads of each on-board ECU 3 (at the time of transmission of the status data), so the control unit 21 of the on-board device 2 can acquire the latest operational settings and processing loads of each on-board ECU 3. The control unit 21 of the on-board device 2 stores the acquired operational settings and processing loads in the storage unit 22, for example, by storing (updating) them in an ECU status table.
[0084] If any of the in-vehicle ECUs 3 is abnormal (S102: YES), the control unit 21 of the in-vehicle device 2 identifies a redundant ECU 32 to replace the in-vehicle ECU 3 determined to be abnormal (S103). The control unit 21 of the in-vehicle device 2 identifies the redundant ECU 32 that can replace the in-vehicle ECU 3 determined to be abnormal (not operating normally) by, for example, referring to a substitution table or an ECU status table.
[0085] The control unit 21 of the in-vehicle device 2 outputs a start-up signal to the identified redundant ECU 32 (S104). The control unit 21 of the in-vehicle device 2 outputs a start-up signal, such as a wake-up signal, to the identified redundant ECU 32. For example, the redundant ECU 32 that was in a standby state (sleep state) starts start-up (wake-up) processing in response to the start-up signal (wake-up signal) from the in-vehicle device 2. When start-up is completed, the redundant ECU 32 transmits (outputs) a start-up completion notification to the in-vehicle device 2.
[0086] The control unit 21 of the in-vehicle device 2 acquires software to replace the in-vehicle ECU 3 determined to be abnormal (S105). The control unit 21 of the in-vehicle device 2 identifies the functions performed by the in-vehicle ECU 3 determined to be abnormal or the software to be executed by the in-vehicle ECU 3, for example, by referring to the ECU status table, and acquires (downloads) the software corresponding to the functions from the external server S1.
[0087] The control unit 21 of the in-vehicle device 2 determines whether or not a startup completion notification has been acquired from the redundant ECU 32 (S106). The control unit 21 of the in-vehicle device 2 determines whether or not a startup completion notification has been acquired (received) from the redundant ECU 32 that has completed startup. If a startup completion notification has not been acquired (NO in S106), the control unit 21 of the in-vehicle device 2 performs loop processing by executing S106 again. As a result, the control unit 21 of the in-vehicle device 2 continues processing to wait for a startup completion notification from the redundant ECU 32.
[0088] When the control unit 21 of the in-vehicle device 2 acquires (receives) the startup completion notification, it outputs the acquired software and operational settings to the redundant system ECU 32 (S107). When the control unit 21 acquires (receives) the startup completion notification from the redundant system ECU 32, it transmits (outputs) the software acquired from the external server S1 to the redundant system ECU 32. Furthermore, the control unit 21 of the in-vehicle device 2 outputs to the redundant system ECU 32 the operational settings included in the status data acquired immediately before it was determined that the redundant system ECU 32 was not operating normally (had an abnormality). Having acquired (received) the software and operational settings from the in-vehicle device 2, the redundant system ECU 32 installs the software and executes the software by applying the operational settings. This allows the redundant system ECU 32 to continue (resume) providing a service or function by inheriting the operational settings of the on-vehicle ECU to be replaced.
[0089] The control unit 21 of the in-vehicle device 2 changes the relay table in accordance with the identified redundant ECU 32 (S108). The control unit 21 of the in-vehicle device 2 updates the relay table by changing the relay destination of a message required to execute a service or function from the in-vehicle ECU 3 determined not to be operating normally (the in-vehicle ECU 3 to be substituted) to the redundant ECU 32 that performs substitute processing for the in-vehicle ECU 3.
[0090] 8 is a flowchart illustrating the processing of the control unit 21 of the in-vehicle device 2 according to the second embodiment (specified based on the processing load). The control unit 21 of the in-vehicle device 2 performs the processing of S201 to S202 similar to the processing of S101 to S102 in the first embodiment.
[0091] If any of the in-vehicle ECUs 3 is abnormal (S202: YES), the control unit 21 of the in-vehicle device 2 determines whether there are multiple candidates that can serve as redundant ECUs 32 that can replace the in-vehicle ECU 3 determined to be abnormal (S203). The control unit 21 of the in-vehicle device 2 identifies one or more redundant ECUs 32 that can replace the in-vehicle ECU 3 determined to be abnormal (the in-vehicle ECU 3 to be replaced) by, for example, referring to a replacement table. If there is one replaceable redundant ECU 32, it determines that there are no multiple candidates. If there are multiple replaceable redundant ECUs 32, it determines that there are multiple candidates. If there are no multiple candidates that can serve as redundant ECUs 32 (S203: NO), the control unit 21 of the in-vehicle device 2 identifies a replaceable redundant ECU 32 (S2031) in the same manner as in process S103 of the first embodiment.
[0092] If there are multiple candidates that can be the redundant ECU 32 (S203: YES), the control unit 21 of the in-vehicle device 2 acquires the processing loads of the multiple candidate redundant ECUs 32 (S204). If there are multiple candidates that can be the redundant ECU 32, the control unit 21 of the in-vehicle device 2 acquires the processing loads (CPU usage rate, memory usage rate) of each of the multiple candidate redundant ECUs 32, for example, by referring to an ECU status table. The ECU status table is updated based on status data transmitted from each of the multiple redundant ECUs 32, so it is possible to acquire the processing load of each redundant ECU 32 at the time when the immediately preceding (most recent) status data was transmitted (transmission time).
[0093] The control unit 21 of the in-vehicle device 2 identifies the redundant ECU 32 based on the processing load (S205). Based on the acquired processing load, the control unit 21 of the in-vehicle device 2 identifies the redundant ECU 32 with the lowest processing load from among the plurality of candidate redundant ECUs 32 as the redundant ECU 32 to replace the in-vehicle ECU 3 determined to be malfunctioning.
[0094] During periods when the redundant system ECU 32 is not executing the alternative processing, the redundant system ECU 32 may execute software corresponding to a newly added service to provide the service. In this case, it is expected that the processing load (utilization rate of hardware resources) will vary among the candidate redundant system ECUs 32 depending on the software currently being executed. In response to this, by identifying (selecting) the redundant system ECU 32 with the lowest processing load among the candidate redundant system ECUs 32, it is possible to level out the processing loads among the candidate redundant system ECUs 32 while ensuring the response of the alternative processing by the identified (selected) redundant system ECU 32.
[0095] The control unit 21 of the in-vehicle device 2 performs the process of S206 after executing S205 or S2031. The control unit 21 of the in-vehicle device 2 performs the processes of S206 to S210 in the same manner as the processes of S104 to S108 in the first embodiment.
[0096] 9 is a flowchart illustrating the processing of the control unit 21 of the in-vehicle device 2 according to a third embodiment (identification based on the number of possible replacements). The control unit 21 of the in-vehicle device 2 performs the processing of S301 to S302 similar to the processing of S101 to S102 of the first embodiment. The control unit 21 of the in-vehicle device 2 performs the processing of S303 to S3031 similar to the processing of S203 to S2031 of the second embodiment.
[0097] If there are multiple candidates that can become the redundant ECU 32 (S303: YES), the control unit 21 of the in-vehicle device 2 acquires the number of replaceable ECUs of the multiple candidate redundant ECUs 32 (S304). If there are multiple candidates that can become the redundant ECU 32, the control unit 21 of the in-vehicle device 2 acquires the number of replaceable ECUs of each of the multiple candidate redundant ECUs 32, for example, by referring to a replacement table. The number of replaceable ECUs corresponds to the number of in-vehicle ECUs 3 that can be replaced by the redundant ECU 32, or the number of types of services, functions, etc. provided by the in-vehicle ECUs 3 that can be replaced.
[0098] A redundant ECU 32 that can be replaced by a relatively large number of ECUs 32 has relatively high versatility, while a redundant ECU 32 that can be replaced by a relatively small number of ECUs 32 has relatively low versatility. For example, in this embodiment, a redundant ECU 32 that can be replaced by one ECU 32 is a redundant ECU 32 that can replace only one of the on-board ECUs 3, such as one of the spare ECUs 31.
[0099] The control unit 21 of the in-vehicle device 2 identifies a redundant ECU 32 based on the number of replaceable ECUs (S305). Based on the number of replaceable ECUs, the control unit 21 of the in-vehicle device 2 identifies, for example, the redundant ECU 32 with the smallest number of replaceable ECUs as the redundant ECU 32 to replace the in-vehicle ECU 3 determined to be malfunctioning. Among the multiple candidate redundant ECUs 32, for example, a redundant ECU 32 with a number of replaceable ECUs of one, i.e., a redundant ECU 32 that can replace only the in-vehicle ECU 3 determined to be malfunctioning (the in-vehicle ECU 3 to be replaced), is identified (selected).
[0100] Furthermore, if there are multiple redundant ECUs 32 with the fewest number of replaceable ECUs (e.g., redundant ECUs 32 with one replaceable ECU), the redundant ECU 32 with the lowest processing load may be identified (selected) from among these redundant ECUs 32, as in the second embodiment. In this manner, if there are multiple candidate redundant ECUs 32, the control unit 21 of the in-vehicle device 2 may identify (select) one of the redundant ECUs 32 based on not only the number of replaceable ECUs (priority determination is made based on the number of replaceable ECUs), but also the processing load. That is, if there are multiple candidate redundant ECUs 32, the control unit 21 of the in-vehicle device 2 may identify (select) one of the redundant ECUs 32 by combining the number of replaceable ECUs and the processing load. This allows for well-balanced identification of the redundant ECUs 32, thereby improving the availability of the in-vehicle system S including the redundant ECUs 32.
[0101] The control unit 21 of the in-vehicle device 2 performs the process of S306 after executing S305 or S3031. The control unit 21 of the in-vehicle device 2 performs the processes of S306 to S310 in the same manner as the processes of S104 to S108 in the first embodiment.
[0102] 10 is a schematic diagram illustrating a system configuration of an in-vehicle system S according to a fourth embodiment (in which the integrated ECU includes a redundant ECU 32). The in-vehicle system S in this embodiment includes a plurality of in-vehicle ECUs 3, such as an in-vehicle device 2 (integrated ECU), a standby ECU 31, and a redundant ECU 32, similar to the first embodiment.
[0103] Similar to the redundant ECU 32 of the first embodiment, the control unit 21 of the in-vehicle device 2 functions as the redundant ECU 32 by executing software that is the same as or compatible with the software of the in-vehicle ECU 3 to be replaced. That is, the in-vehicle device 2 includes the redundant ECU 32. By using the in-vehicle device 2 configured in this manner, even if the processing load of another redundant ECU 32 connected to the in-vehicle network 4 exceeds an allowable value, the in-vehicle device 2 functioning as the redundant ECU 32 can perform processing in place of one of the in-vehicle ECUs 3.
[0104] Alternatively, the redundant ECU 32 mounted on the vehicle C may be the only redundant ECU 32 implemented (included) in the on-board device 2, eliminating the need for individual redundant ECUs 32 connected to the on-board network 4. In this case, the CPU or memory of the on-board device 2 may be implemented with more hardware resources than would be required when the on-board device 2 functions as an integrated ECU. By having the on-board device 2 essentially include the redundant ECU 32 in this way, surplus resources of the on-board device 2, such as free time in the control unit 21 of the on-board device 2, can be allocated to processing as the redundant ECU 32.
[0105] (Note) An in-vehicle system S including an in-vehicle device 2 mounted on a vehicle C and communicatively connected to a plurality of in-vehicle ECUs 3, and a redundant ECU 32 replacing one of the plurality of in-vehicle ECUs 3, wherein the in-vehicle device 2: acquires status data relating to the status of the in-vehicle ECU 3 from the in-vehicle ECU 3; if it determines based on the acquired status data that the in-vehicle ECU 3 is not operating normally, it identifies the redundant ECU 32 to replace the in-vehicle ECU 3 determined to be not operating normally; performs processing on the redundant ECU 32 to replace the in-vehicle ECU 3 determined to be not operating normally; and the redundant ECU 32: starts processing to replace the in-vehicle ECU 3 determined to be not operating normally in response to an instruction from the in-vehicle device 2.
[0106] The embodiments disclosed herein are to be considered as illustrative in all respects and not restrictive. The scope of the present invention is defined by the claims, not by the above meaning, and is intended to include all modifications within the meaning and scope of the claims.
[0107] Multiple claims may be combined with each other regardless of the form of reference. The claims may contain multiple dependent claims that depend on multiple claims. Multiple dependent claims may be contained that depend on multiple dependent claims. If multiple dependent claims that depend on multiple dependent claims are not contained, this does not limit the number of multiple dependent claims that depend on multiple dependent claims.
[0108] C Vehicle S In-vehicle system S1 External server 1 Exterior communication device 11 Antenna 2 In-vehicle device (integrated ECU) 21 Control unit 22 Storage unit M Recording medium P Control program (program product) 23 In-vehicle communication unit 3 In-vehicle ECU 31 Spare ECU 32 Redundant ECU 301 Sensor 302 Actuator 4 In-vehicle network 41 Communication line
Claims
1. An on-board device that is mounted on a vehicle and communicatively connected to a plurality of on-board ECUs, comprising a control unit that performs processing related to status management of the on-board ECUs, wherein the control unit: acquires status data related to the status of the on-board ECU from the on-board ECU; if it determines that the on-board ECU is not operating normally based on the acquired status data, it identifies a redundant ECU to replace the on-board ECU determined to be not operating normally; and performs processing for the redundant ECU to replace the on-board ECU determined to be not operating normally.
2. The in-vehicle device according to claim 1, wherein the control unit acquires software executed by an in-vehicle ECU determined to be not operating normally, and outputs the acquired software to the redundant ECU, thereby performing processing to have the redundant ECU take the place of the ECU.
3. The vehicle-mounted device according to claim 2, wherein the status data acquired from the vehicle-mounted ECU includes setting information regarding the operational settings of the vehicle-mounted ECU at the time the status data is transmitted, and the control unit outputs the setting information to the redundant ECU, thereby performing processing to cause the redundant ECU to take over.
4. The vehicle-mounted device according to claim 1, wherein the control unit performs relay processing of messages transmitted and received between the plurality of vehicle-mounted ECUs using a relay table stored in an accessible memory area, and changes the relay table according to the identified redundant ECU.
5. The in-vehicle device according to claim 1, wherein a replacement table relating to replacement by each of the multiple redundant ECUs is stored in a memory area accessible to the control unit, and the control unit identifies one of the multiple redundant ECUs by referring to the replacement table.
6. The in-vehicle device according to claim 5, wherein the redundant ECU is configured to be capable of being added after production of the vehicle, and when installed in the vehicle, outputs replacement information regarding replacement by the redundant ECU, and the control unit changes the replacement table in accordance with the replacement information obtained from the redundant ECU.
7. The vehicle-mounted device according to claim 1, wherein, when there are multiple candidates for the redundant ECU to replace an in-vehicle ECU determined to be not operating normally, the control unit identifies one of the redundant ECUs based on the current processing loads of the multiple candidate redundant ECUs.
8. The vehicle-mounted device according to claim 1, wherein, when there are multiple candidates for the redundant ECU to replace an in-vehicle ECU determined to be not operating normally, the control unit identifies one of the redundant ECUs based on the number of possible replacements among the multiple candidate redundant ECUs.
9. The in-vehicle device according to any one of claims 1 to 8, wherein the control unit functions as the redundant ECU.
10. A program that causes a computer that is communicatively connected to multiple vehicle ECUs to execute the following process: acquire status data relating to the status of the vehicle ECUs from the vehicle ECUs; if it is determined based on the acquired status data that the vehicle ECU is not operating normally, identify a redundant ECU to replace the vehicle ECU determined to be not operating normally; and have the redundant ECU replace the vehicle ECU determined to be not operating normally.
11. An information processing method in which a computer communicatively connected to a plurality of vehicle-mounted ECUs executes the following process: acquires status data relating to the status of the vehicle-mounted ECUs from the vehicle-mounted ECUs; if it is determined based on the acquired status data that the vehicle-mounted ECU is not operating normally, identifies a redundant ECU to replace the vehicle-mounted ECU determined to be not operating normally; and causes the redundant ECU to replace the vehicle-mounted ECU determined to be not operating normally.
Citation Information
Patent Citations
Vehicle system
JP2018180698A
Replacement device, replacement control program and replacement method
JP2020149130A
Shared backup unit and control system
WO2018138775A1
Vehicle control system, vehicle control method, and non-transitory computer-readable medium in which vehicle control program is stored
WO2020183954A1
Cited By
Security monitoring system, security monitoring method, and program
WO2026150462A1
