In-vehicle device, in-vehicle system, control method, and computer program
By setting up a temporary cluster in the vehicle system, only the ECUs that need to be updated are woken up, which suppresses unnecessary ECU wake-ups, solves the problem of power consumption for ECU updates in the vehicle system, and improves energy efficiency.
Patent Information
- Application Number
- CN202380028531.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-04
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-22
Smart Images

Figure CN118829967A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an in-vehicle device, an in-vehicle system, a control method, and a computer program. This application claims priority based on Japanese application No. 2022-062434 filed on April 4, 2022, and all the contents described in the above Japanese application are cited. Background Art
[0002] In-vehicle networks that connect multiple ECUs (Electronic Control Units) are known. In recent years, as the number of ECUs installed in vehicles has increased, in order to suppress the power consumption of the entire system, a local network function has been developed that wakes up only some ECUs used in control and puts other ECUs to sleep. When using the local network function, a technology that smoothly wakes up the ECUs by clustering the cooperating ECU groups is known.
[0003] Non-Patent Literature 1 discloses a technique for communicating requests and open information of a partial network cluster (PNC) between ECUs using a network management message (NM message).
[0004] Patent document 1 discloses a technique for forming a PNC between ECUs that communicate data frames with each other. For example, a first PNC is formed between an air-conditioning ECU and an instrument ECU that indicates the operating status of the air-conditioning. Each ECU creates an NM frame that includes PNC information indicating which PNC among multiple PNCs is communicating the data frame, and transmits the NM frame to other ECUs via an in-vehicle network.
[0005] Patent document 2 discloses a control device belonging to a first cluster and a control device belonging to a second cluster. Each control device transmits a network management frame including a sleep permission bit indicating whether each cluster can sleep to the other control device. When the sleep permission bit of the first cluster included in the network management frame is "1", the control device belonging to the first cluster stops sleeping and enters the activation state.
[0006] Prior art literature Patent Literature Patent Document 1: Japanese Patent Application Publication No. 2021-182679 Patent Document 2: Japanese Patent Application Publication No. 2014-872 Non-patent literature Non-patent literature 1: AUTOSAR Layered Software Architecture, [online], [retrieved on March 2, 2020], Internet <https: / / www.autosar.org / fileadmin / user_upload / standards / classic / 4-3 / AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf> p.161-p.165 Summary of the invention
[0007] Technical solutions to solve problems
[0008] In a vehicle-mounted device of the present disclosure, update data provided from outside of the vehicle is distributed to a plurality of ECUs connected via a communication bus, wherein each of the plurality of ECUs belongs to at least one cluster among a plurality of clusters, and in a control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU is in a sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU is in a normal mode, the sleep mode being a mode in which functions are limited and power consumption is suppressed compared to the normal mode. The vehicle-mounted device includes a control unit, and the control unit distributes setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distribution of first update data, the first update data being update data for the first cluster among the plurality of clusters, the temporary cluster being a cluster to which an update ECU updated by the first update data belongs and to which non-update ECUs not updated by the first update data do not belong, among the plurality of ECUs belonging to the first cluster, and the control unit distributes the control message to invalidate the first cluster and validate the temporary cluster to the plurality of ECUs when the first update data is distributed.
[0009] The control method disclosed herein is a control method for controlling an in-vehicle device, the in-vehicle device distributing update data provided from outside of the vehicle to a plurality of ECUs connected via a communication bus, wherein the plurality of ECUs respectively belong to at least one of a plurality of clusters, and in a control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU is in a sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU is in a normal mode, the sleep mode being a mode in which functions are limited and power consumption is suppressed compared to the normal mode, the control method comprising: a first step of distributing setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distributing first update data, the first update data being update data for the first cluster among the plurality of clusters, the temporary cluster being a cluster to which an update ECU updated by the first update data belongs and to which non-update ECUs not updated by the first update data do not belong, among the plurality of ECUs belonging to the first cluster; and a second step of distributing the control message to invalidate the first cluster and validate the temporary cluster to the plurality of ECUs when distributing the first update data.
[0010] A computer program of the present disclosure is a computer program for controlling an in-vehicle device, the in-vehicle device distributing update data provided from outside of the vehicle to a plurality of ECUs connected via a communication bus, wherein the plurality of ECUs respectively belong to at least one of a plurality of clusters, and in a control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU is in a sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU is in a normal mode, the sleep mode being a mode in which functions are limited and power consumption is suppressed compared to the normal mode, the computer program causing a computer to execute the following steps: a first step of distributing setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distributing first update data, the first update data being update data for the first cluster among the plurality of clusters, the temporary cluster being a cluster to which an update ECU updated by the first update data belongs and to which non-update ECUs not updated by the first update data do not belong among the plurality of ECUs belonging to the first cluster; and a second step of distributing the control message to invalidate the first cluster and validate the temporary cluster to the plurality of ECUs when distributing the first update data. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 It is a diagram showing an example of an in-vehicle system according to an embodiment. Figure 2It is a diagram showing an example of the internal structure of the vehicle-mounted device involved in the embodiment. Figure 3 It is a diagram showing an example of the internal structure of the ECU according to the embodiment. Figure 4 This is a table showing an example of cluster information according to the embodiment. Figure 5 This is a diagram illustrating the relationship between each bit of the data field and the cluster. Figure 6 This is a diagram showing an example of a control message according to an embodiment of the present invention. Figure 7 This is a flowchart showing an example of a control method according to the embodiment. Figure 8 Yes means Figure 7 A flowchart showing details of the temporary cluster formation process. Fig. 9 This is a table showing an example of cluster information including temporary clusters. Fig.10 Yes means Figure 7 A flowchart showing the details of the update process. Fig.11 This is a diagram showing a control message that enables only a temporary cluster. Fig.12 Yes means Figure 7 A flowchart showing details of the temporary cluster abandonment process. Fig.13 It is a diagram showing an in-vehicle system according to a modified example. Fig.14 : is a flowchart showing a control method according to a modification. Fig.15 : is a flowchart showing a control method according to a modification. DETAILED DESCRIPTION
[0012] [Problems to be Solved by the Present Disclosure]
[0013] In a vehicle-mounted system such as PNC that controls the awakening and sleeping of ECUs in cluster units, ECU programs are sometimes updated by updating data distributed in cluster units. In this case, when updating data targeting a specified cluster is distributed, all ECUs belonging to the specified cluster are awakened.
[0014] However, the specified cluster may include ECUs that are not updated by the update data. In other words, only some of the ECUs belonging to the specified cluster may be updated by the update data. In this case, the ECUs that are not updated are also awakened unnecessarily, so that unnecessary power consumption may occur in the vehicle-mounted system when the ECUs are updated.
[0015] In particular, the updating of the ECU is often performed in a situation where it is desired to further reduce the power consumption of the battery of the vehicle, such as when the ignition of the vehicle is turned off. Therefore, it is necessary to reduce the power consumption required for updating the ECU.
[0016] In view of the above problem, an object of the present disclosure is to provide an in-vehicle device, an in-vehicle system, a control method, and a computer program capable of suppressing power consumption required for updating an ECU.
[0017] [Effects of the present disclosure]
[0018] According to the present disclosure, it is possible to suppress power consumption required for updating the ECU.
[0019] [Description of Embodiments of the Present Disclosure]
[0020] The embodiments of the present disclosure include the following structures as the gist thereof.
[0021] (1) An in-vehicle device of the present disclosure is a device for distributing update data provided from outside of a vehicle to a plurality of ECUs connected via a communication bus, wherein each of the plurality of ECUs belongs to at least one of a plurality of clusters, and in a control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU is in a sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU is in a normal mode, the sleep mode being a mode in which functions are limited compared to the normal mode to suppress power consumption, and the in-vehicle device includes a control unit, the control unit distributing setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distributing first update data, the first update data being update data for the first cluster among the plurality of clusters, the temporary cluster being a cluster to which an update ECU to be updated by the first update data belongs and to which non-update ECUs not to be updated by the first update data do not belong, and the control unit distributing the control message to the plurality of ECUs to invalidate the first cluster and to validate the temporary cluster when distributing the first update data.
[0022] By distributing the control message for invalidating the first cluster and validating the temporary cluster to the plurality of ECUs, only the updated ECU can be awakened while the non-updated ECUs are maintained in the sleep mode, thereby suppressing the power consumption required for updating the ECUs.
[0023] (2) The vehicle-mounted device of (1) may further include a storage unit storing cluster information, wherein the cluster information is information that associates the plurality of ECUs with the clusters to which the plurality of ECUs respectively belong, and the control unit may determine whether the plurality of ECUs belonging to the first cluster are the update ECUs or the non-update ECUs based on the first update data or update information provided from outside the vehicle before providing the first update data and the cluster information.
[0024] Thus, the control unit can determine whether each of the plurality of ECUs belonging to the first cluster is an update ECU or a non-update ECU.
[0025] (3) In the vehicle-mounted device of (1) or (2), the control unit may distribute discarding information to the plurality of ECUs belonging to the first cluster after distributing the first update data, the discarding information being used to discard the setting of the temporary cluster.
[0026] With this configuration, it is possible to dynamically set a temporary cluster from a limited number of clusters.
[0027] (4) In the vehicle-mounted device of any one of (1) to (3), the control unit may also obtain information related to the new ECU, i.e., additional information, before adding the new ECU to the communication bus before distributing the first update data, and the control unit may also distribute the additional information to multiple ECUs belonging to the first cluster before distributing the first update data.
[0028] By configuring in this way, information related to the new ECU can be transmitted in advance to the ECUs belonging to the first cluster before the first update data is distributed. Thus, the non-updated ECUs that are in sleep mode when the first update data is distributed can detect in advance that a new ECU will be added. Thus, the reliability of the vehicle-mounted system can be improved.
[0029] (5) In the vehicle-mounted device according to any one of (1) to (4), the control unit may distribute the setting information to the plurality of ECUs belonging to the first cluster in a state where the plurality of ECUs belonging to the first cluster are set to the normal mode by the control message that makes the first cluster valid.
[0030] Even when the ECU to be distributed is in the sleep mode, the control unit distributes the setting information after temporarily waking up the ECU to be distributed. Therefore, the setting information can be distributed to the ECU more reliably.
[0031] (6) In the vehicle-mounted device of any one of (1) to (5), the control unit may also notify the first non-updated ECU of the update content of the update ECU based on the first update data when the first non-updated ECU becomes the normal mode after the update ECU is updated by the first update data, and the first non-updated ECU is the non-updated ECU connected to the same communication bus as the update ECU.
[0032] This can prevent the update content of the update ECU from causing a malfunction in the operation of the first non-update ECU.
[0033] (7) In the vehicle-mounted device of any one of (1) to (6), the plurality of ECUs may include a competing ECU, and the competing ECU may switch to the normal mode through a first control message before the temporary cluster is set, and may switch to the normal mode through a second control message different from the first control message instead of the first control message after the temporary cluster is set. Alternatively, the control unit may send the second control message to the competing ECU when the control unit receives the first control message addressed to the competing ECU after the temporary cluster is set. Alternatively, the control unit may send validation information to the competing ECU in a state where the competing ECU is set to the normal mode through the second control message, the validation information being used to set that the first control message switches the competing ECU to the normal mode. Alternatively, the control unit may send the first control message to the competing ECU after sending the validation information.
[0034] By temporarily changing the cluster setting of the competing ECU that is not awakened due to the competition of the temporary cluster, the predetermined control in the competing ECU can be executed. Thus, even if the number of clusters is limited and the temporary cluster is set for the cluster already in use, the occurrence of malfunctions in the vehicle system can be suppressed.
[0035] (8) In the vehicle-mounted device of (7), the control unit may also send invalidation information to the competing ECU after sending the validation information and the first control message to the competing ECU, wherein the invalidation information is used to set the first control message not to switch the competing ECU to the normal mode.
[0036] By restoring the cluster setting of the competing ECU in this manner, the competing ECU can be maintained in the sleep mode during the updating of the update ECU based on the first update data, thereby suppressing the power consumption of the vehicle-mounted system during the updating.
[0037] (9) In the vehicle-mounted device of (7) or (8), the control message may also include: an instant message, which is a message that the allowed time from the time the control unit receives the control message to the time the competing ECU executes control based on the control message is less than a first threshold; and a non-instant message, which is a message that the allowed time is greater than the first threshold, and the first control message is the non-instant message.
[0038] With this configuration, it is possible to suppress the occurrence of delay in control in which the allowed time is short.
[0039] (10) An in-vehicle system comprising: the in-vehicle device according to any one of (1) to (9); and a plurality of ECUs connected to the in-vehicle device via the communication bus.
[0040] (11) The control method disclosed herein is a control method for controlling an in-vehicle device, the in-vehicle device distributing update data provided from outside the vehicle to a plurality of ECUs connected via a communication bus, wherein the plurality of ECUs respectively belong to at least one of a plurality of clusters, and in a control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU is in a sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU is in a normal mode, the sleep mode being a mode in which functions are limited and power consumption is suppressed compared to the normal mode, the control method comprising: a first step of distributing setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distributing first update data, the first update data being update data for the first cluster among the plurality of clusters, the temporary cluster being a cluster to which an update ECU to be updated by the first update data belongs and to which non-update ECUs not to be updated by the first update data do not belong, among the plurality of ECUs belonging to the first cluster; and a second step of distributing the control message to invalidate the first cluster and validate the temporary cluster to the plurality of ECUs when distributing the first update data.
[0041] By distributing the control message for invalidating the first cluster and validating the temporary cluster to the plurality of ECUs, only the updated ECU can be awakened while the non-updated ECUs are maintained in the sleep mode, thereby suppressing the power consumption required for updating the ECUs.
[0042] (12) A computer program of the present disclosure is a computer program for controlling an in-vehicle device, the in-vehicle device distributing update data provided from outside the vehicle to a plurality of ECUs connected via a communication bus, wherein the plurality of ECUs respectively belong to at least one of a plurality of clusters, and in a control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU is in a sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU is in a normal mode, the sleep mode being a mode in which functions are limited and power consumption is suppressed compared to the normal mode, the computer program causing a computer to execute the following steps: a first step of distributing setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distributing first update data, the first update data being update data for the first cluster among the plurality of clusters, the temporary cluster being a cluster to which an update ECU to be updated by the first update data belongs and to which non-update ECUs not to be updated by the first update data do not belong, among the plurality of ECUs belonging to the first cluster; and a second step of distributing the control message to invalidate the first cluster and validate the temporary cluster to the plurality of ECUs when distributing the first update data.
[0043] By distributing the control message for invalidating the first cluster and validating the temporary cluster to the plurality of ECUs, only the updated ECU can be awakened while the non-updated ECUs are maintained in the sleep mode, thereby suppressing the power consumption required for updating the ECUs.
[0044] [1. Details of the embodiments of the present disclosure]
[0045] Hereinafter, details of the embodiments of the present disclosure will be described with reference to the drawings.
[0046] [1.1 Structure of the vehicle system]
[0047] Figure 1 It is a diagram showing a configuration example of the vehicle-mounted system 1 according to the embodiment.
[0048] The in-vehicle system 1 is a system installed in a vehicle V1 such as an automobile. The in-vehicle system 1 includes an in-vehicle device 10 , a plurality of ECUs 20 , a communication bus 30 , communication lines 41 , 42 , and a communication device 50 .
[0049] The vehicle-mounted device 10 functions as, for example, an integrated ECU (Electronic Control Unit) that manages a plurality of ECUs 20. For example, the vehicle-mounted device 10 functions as a master ECU, and the plurality of ECUs 20 function as slave ECUs. The vehicle-mounted device 10 distributes update data provided from outside the vehicle V1 (specifically, the external device 61, the diagnostic device 62, or the recording medium 17) to the plurality of ECUs 20.
[0050] The vehicle-mounted device 10 may also function as a GW-ECU (Gateway-ECU) that relays data sent and received between multiple ECUs 20. For example, the vehicle-mounted device 10 may relay data sent and received by multiple ECUs 20 in each LAN (Local Area Network) in a network environment where multiple different LANs exist in the vehicle V1. Specifically, it may also be a central gateway (CGW). The internal structure of the vehicle-mounted device 10 will be described later.
[0051] The communication device 50 is a communication interface for wirelessly communicating with the external device 61 via a network N1 such as the Internet. Specifically, the communication device 50 is a TCU (Telematics Communication Unit). The communication device 50 transmits data output from the vehicle-mounted device 10 via the communication line 41 to the external device 61 via the network N1. In addition, the communication device 50 inputs data (update data, update information Y1, etc.) transmitted from the external device 61 via the network N1 to the vehicle-mounted device 10 via the communication line 41.
[0052] The external device 61 is a device provided outside the vehicle V1. The external device 61 is, for example, a server having a control unit, a storage unit, and a communication unit. The storage unit of the external device 61 stores, for example, a program or data for controlling each unit of the vehicle-mounted system 1 (for example, the vehicle-mounted device 10 or the ECU 20). For example, the manufacturer of the ECU 20 modifies the program or data as needed, and stores the modified program or data in the storage unit of the external device 61 at any time. The communication unit of the external device 61 sends the modified program or data as update data to the vehicle-mounted device 10. Therefore, the external device 61 is also called an OTA (Over The Air) server.
[0053] Before the update data is transmitted to the in-vehicle device 10 , the external device 61 may transmit update information Y1 including information for identifying the ECU to be updated by the update data (such as the address of the ECU) to the in-vehicle device 10 .
[0054] The update data may be a program (application program) for updating the software of the ECU 20, or a program (firmware program) for updating the firmware of the ECU 20. In addition, the update data may be data for updating parameter information stored in the ECU 20. The parameter information is data used by the software implemented in the ECU 20, and specifically, is map information, control parameters, etc.
[0055] The diagnostic device 62 (also referred to as a "diagnostic tool") is a device used by a vehicle maintenance provider (e.g., a dealer) who is responsible for the maintenance of the vehicle V1. The diagnostic device 62 is, for example, a general-purpose information terminal such as a personal computer, a tablet terminal, or a smartphone, which is installed with an application for diagnosing the status of each part (ECU 20, etc.) of the vehicle-mounted system 1. Alternatively, the diagnostic device 62 may be a dedicated terminal installed with the application.
[0056] The diagnostic device 62 includes a control unit, a storage unit, and a communication unit. When the diagnostic device 62 is used to perform maintenance work on the vehicle-mounted system 1, the communication unit of the diagnostic device 62 is connected to the vehicle-mounted device 10 via the communication line 42. The communication unit of the diagnostic device 62 communicates with the external device 61 via the network N1 according to a wireless communication standard such as Wi-Fi. The diagnostic device 62 downloads update data from the external device 61 via the network N1. The diagnostic device 62 sends the update data to the vehicle-mounted device 10 via the communication line 42.
[0057] The communication bus 30 extends from the vehicle-mounted device 10. A plurality of ECUs 20 are connected to the communication bus 30. Figure 1 In the example, two communication buses 30 extend from the vehicle-mounted device 10, but the number of the communication buses 30 is not particularly limited. When the two communication buses 30 are distinguished, they are respectively referred to as communication buses 31 and 32. The communication bus 30 is based on a communication protocol such as CAN (Controller Area Network), CAN-FD (CAN with Flexible Data Rate), Ethernet (registered trademark), LIN (Local Interconnect Network), CXPI (Clock Extension Peripheral Interface), or FlexRay (registered trademark).
[0058] The vehicle-mounted device 10 communicates with a plurality of (in Figure 1 In the example of 5) ECU20 is connected. Figure 1In the example of FIG. 1 , the vehicle-mounted device 10 is connected to three ECUs 20 via a communication bus 31 and is connected to two ECUs 20 via a communication bus 32. When distinguishing between a plurality of ECUs 20, the ECUs 20 connected to the communication bus 31 are referred to as ECUs 21, 22, and 23, respectively, from the top, and the ECUs 20 connected to the communication bus 32 are referred to as ECUs 24 and 25, respectively, from the top.
[0059] The number of ECU20 included in the vehicle system 1 is not particularly limited as long as it is two or more. ECU20 is, for example, a device (operating system ECU) that controls various parts of the vehicle V1 (for example, brakes, doors, batteries, air conditioners, etc.). The function of ECU20 is not particularly limited, and ECU20 may also be a device (identification system ECU) that communicates with sensors to monitor the status of various parts of the vehicle V1. Multiple ECU20 may have different functions or the same functions.
[0060] The plurality of ECUs 20 correspond to the partial network functions and belong to at least one of the plurality of clusters. Here, the cluster is a data set that defines a group of ECUs that synchronously perform at least one of wake-up and sleep among the plurality of ECUs 20, such as a partial network cluster (PNC). A specific example of the cluster set in the vehicle-mounted system 1 will be described later.
[0061] [1.2 Internal structure of the vehicle-mounted device 10]
[0062] Figure 2 1 is a diagram showing an example of the internal structure of the vehicle-mounted device 10 .
[0063] The vehicle-mounted device 10 includes a microcontroller unit 11 (hereinafter referred to as “microcomputer 11 ”) including a control unit 12 and a storage unit 13 , a reading unit 14 , and a plurality of transceivers 15 a to 15 d . These units are electrically connected via a bus 16 .
[0064] The control unit 12 includes, for example, a circuit structure such as a processor. Specifically, the control unit 12 includes one or more CPUs (Central Processing Units). The processor included in the control unit 12 may also be a GPU (Graphics Processing Unit). In this case, the control unit 12 reads the computer program stored in the storage unit 13 and performs various operations and controls.
[0065] The control unit 12 may also include a processor in which a predetermined program is pre-written. For example, the control unit 12 may also be an integrated circuit such as a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), or an ASIC (Application Specific Integrated Circuit). In this case, the control unit 12 performs various operations and controls based on the pre-written program.
[0066] The storage unit 13 has a volatile memory and a nonvolatile memory, and stores various data. The volatile memory includes, for example, a RAM (Random Access Memory). The nonvolatile memory includes, for example, a flash memory, a HDD (Hard Disk Drive), an SSD (Solid State Drive), or a ROM (Read Only Memory). A part of the nonvolatile memory may also be provided outside the microcomputer 11.
[0067] The storage unit 13 stores computer programs, cluster information described below, and various parameters in a nonvolatile memory, for example. The storage unit 13 may store computer programs downloaded from the external device 61 via the network N1 and the communication device 50 .
[0068] The reading unit 14 reads information from a computer-readable recording medium 17. The recording medium 17 is, for example, an optical disk such as a CD or a DVD, an SD memory card, or a USB flash memory. The reading unit 14 is, for example, an optical drive, a memory card slot, or a USB terminal. The recording medium 17 records a computer program, update data, and various parameters. By making the reading unit 14 read the recording medium 17, the computer program, update data, and various parameters are stored in the nonvolatile memory of the storage unit 13.
[0069] The transceivers 15a to 15d receive signals flowing through the communication bus 30 or the communication lines 41 and 42 via ports (not shown), respectively, and convert them into signals that can be read by the microcomputer 11. The transceiver 15a is connected to the communication bus 31, the transceiver 15b is connected to the communication bus 32, the transceiver 15c is connected to the communication line 41, and the transceiver 15d is connected to the communication line 42.
[0070] [1.3 Internal structure of ECU 20]
[0071] Figure 31 is a diagram showing an example of the internal structure of the ECU 21. The internal structure of the other ECU 20 is the same as that of the ECU 21, and thus the description thereof is omitted.
[0072] The ECU 21 includes a microcontroller unit 71 (hereinafter referred to as "microcomputer 71") including a control unit 73 and a storage unit 74, and a transceiver 72 including a register 75. The transceiver 72 is electrically connected to the microcomputer 71. The ECU 21 also includes a power supply circuit (not shown) that converts power supplied from a power supply (not shown) and supplies the converted power to each of the components 71 and 72.
[0073] The control unit 73 includes a circuit structure such as a processor, similarly to the control unit 12. For example, the control unit 73 reads a computer program stored in the storage unit 74 and performs various operations and controls. In addition, the control unit 73 may also include a processor in which a predetermined program is pre-written, similarly to the control unit 12. In this case, the control unit 73 performs various operations and controls based on the pre-written program.
[0074] The storage unit 74 has a volatile memory and a nonvolatile memory, similar to the storage unit 13, and stores various data. The storage unit 74 stores, for example, a computer program and various parameters in the nonvolatile memory.
[0075] The transceiver 72 is a transceiver corresponding to the local network function, and includes an integrated circuit (IC). The transceiver 72 is, for example, a CAN transceiver or an SBC (System Basis Chip). The transceiver 72 is connected to the communication bus 31 and receives various control messages from the communication bus 31 .
[0076] The transceiver 72 includes a transmitting circuit, a receiving circuit, and a detection circuit (not shown in the figure). The transmitting circuit and the receiving circuit communicate according to the same communication protocol as the communication bus 31. The transmitting circuit converts the data of the digital signal output from the microcomputer 71 into a three-level analog signal and sends it to the communication bus 31. The analog signaled data is broadcast to the communication bus 31. The receiving circuit converts the analog signal input from the communication bus 31 into a digital signal that can be read by the microcomputer 71, and outputs the digital signal to the microcomputer 71.
[0077] The detection circuit has a function of determining whether a control message received from the communication bus 31 is a control message destined for the ECU 21. If the detection circuit determines that the received control message is a control message destined for the ECU 21, the detection circuit switches the ECU 21 from the sleep mode to the normal mode.
[0078] Specifically, when receiving a control message corresponding to cluster information T2 described later recorded in the register 75 , the transceiver 72 switches the ECU 21 from the sleep mode to the normal mode (ie, wakes up the ECU 21 ).
[0079] [1.4 Partial networking of vehicle-mounted system 1]
[0080] In order to reduce the power consumption of the entire vehicle-mounted system 1, the vehicle-mounted system 1 uses a network management function to wake up only a portion of the ECUs 20 used in the control and keep the other ECUs 20 in sleep mode. The ECUs 20 can switch between a normal mode and a sleep mode, and these mode switches are basically performed based on control messages broadcast to the communication bus 30. The control message is also called a network management frame (NM frame).
[0081] The normal mode is a mode in which the ECU 20 wakes up and the functions of the ECU 20 required for various controls can be used. For example, the normal mode is a state in which a clock circuit of a processor included in the ECU 20 operates according to a predetermined number of clocks set in advance.
[0082] The sleep mode is a mode in which the functions of the ECU 20 are limited compared to the normal mode to suppress power consumption. For example, the sleep mode is a state in which the operation of the clock circuit and the operation of the processor are stopped by stopping the power supply to the clock circuit of the processor included in the ECU 20. In addition, the sleep mode may be a state in which, although power is supplied to the clock circuit of the processor included in the ECU 20, the power consumption is suppressed by operating with a clock number less than the clock number in the normal mode.
[0083] For example, when the ECU 20 is not used for a predetermined period of time or when a predetermined control is executed, the ECU 20 automatically switches from the normal mode to the sleep mode. While the ECU 20 is in the sleep mode, the power supply from the power supply circuit of the ECU 20 to the detection circuit of the transceiver 72 continues. Thus, in the sleep mode, the transceiver 72 can detect control messages.
[0084] The control message for switching the ECU 20 from the sleep mode to the normal mode is generated in the vehicle-mounted device 10 or another ECU 20, for example, and broadcasted to the communication bus 30. The control message includes an information pattern indicating the cluster to be awakened, and each ECU 20 is awakened according to the cluster to which it belongs based on the control message.
[0085] Here, the cluster will be described. Each of the plurality of ECUs 20 belongs to at least one cluster. The storage unit 13 of the vehicle-mounted device 10 stores cluster information T1 that associates the plurality of ECUs 20 with the clusters to which the plurality of ECUs 20 belong.
[0086] Figure 4 is a table showing an example of cluster information T1. In cluster information T1, it is shown which ECU 20 belongs to each of the eight clusters C1 to C8. Figure 4 The number of clusters in is shown as an example, and nine or more clusters may be prepared. In the table, "1" indicates that the ECU 20 belongs to the cluster in the row, and "0" indicates that the ECU 20 does not belong to the cluster in the row.
[0087] For example, Figure 1 As shown, ECU21, 22, 24, 25 belong to cluster C1. In addition, ECU22, 23 belong to cluster C2. ECU21~25 belong to cluster C3. In this way, one ECU20 can also belong to multiple clusters. Moreover, ECU21~25 does not belong to cluster C8, which is a so-called "empty" cluster. In the following description, "waking up ECU21, 22, 24, 25 belonging to cluster C1" will also be expressed as "waking up cluster C1". The same expression is used for other clusters C2~C8.
[0088] Next, a control message for waking up the ECU 20 for each cluster will be described. The control message includes a data field F1 indicating a cluster to be woken up among the plurality of clusters C1 to C8.
[0089] Figure 5 2 is a diagram illustrating the association between each bit of the data field F1 and the clusters C1 to C8. The data field F1 is composed of, for example, eight bits, and each bit is assigned a cluster C1 to C8. For example, the first bit (bit 0) is assigned a cluster C1.
[0090] Figure 6 1 is a diagram showing an example of the data field F1 included in the control message. The ECU 20 that receives the control message wakes up when it belongs to the cluster corresponding to the bit "1" in the data field F1. Figure 6 In the data field F1, bit 0 is "1" and bits 1 to 7 are "0". Figure 5 As shown, among the ECUs 20 that have received the control message including the data field F1, only the ECUs 21, 22, 24, and 25 belonging to the cluster C1 wake up.
[0091] Hereinafter, in the data field F1 of the control message, setting a bit to "1" is appropriately expressed as making the cluster corresponding to the bit "valid", and setting a bit to "0" is appropriately expressed as making the cluster corresponding to the bit "invalid".
[0092] Each ECU 20 stores cluster information T2 in the register 75. The cluster information T2 is information indicating the cluster to which the ECU 20 itself belongs. Figure 4Information in the first column (a column indicating the cluster to which ECU 21 belongs) of cluster information T1 is stored as cluster information T2 in register 75. In the case of ECU 22, information in the second column of cluster information T1 is stored in register 75 as cluster information T3.
[0093] When the transceiver 72 of the ECU 20 receives a control message including the data field F1 via the communication bus 30, it determines whether the cluster information T2 stored in its register 75 matches the data field F1. Specifically, the transceiver 72 calculates the product of the bit of the cluster information T2 and the corresponding bit in the data field F1 for each bit. Then, if there is a bit that becomes "1" after the calculation, it is determined that the cluster information T2 and the data field F1 are "matched", and the ECU 20 is awakened.
[0094] exist Figures 4 to 6 In the example of , cluster information T2 has an eight-bit pattern of "101···0", and data field F1 has an eight-bit pattern of "100···0". Figure 5 The nth bit of the cluster information T2 corresponds to the nth bit of the data field F1. Since the product of the first bit of the cluster information T2 and the first bit of the data field F1 becomes "1", the ECU 21 wakes up.
[0095] [1.5 Issues to be Solved by the Present Embodiment]
[0096] In the vehicle-mounted system 1, update data for updating the program of the ECU 20 is provided to the vehicle-mounted device 10 from outside the vehicle V1, such as the external device 61, the diagnostic device 62, or the recording medium 17. In the vehicle-mounted system 1, in order to control the awakening and sleeping of a plurality of ECUs 20 in units of clusters, the update data is also provided to the vehicle-mounted device 10 in units of clusters.
[0097] Conventionally, the vehicle-mounted device 10 directly distributes update data for clusters provided from outside the vehicle V1 to the plurality of ECUs 20, thereby updating the ECUs 20 in clusters. For example, when the vehicle-mounted device 10 receives update data for the cluster C1 from the outside, it distributes the update data to the plurality of ECUs 20 in clusters. Figure 6 The control message of the data field F1 shown is distributed together to wake up all the ECUs 21 , 22 , 24 , and 25 belonging to the cluster C1 .
[0098] However, the cluster C1 may include an ECU 20 that is not updated by the update data. Figure 1In the example of FIG. 1 , ECUs 21, 24, and 25 shown with hatching are ECUs to be updated with update data (update ECUs 21, 24, and 25), and ECUs 22 not shown with hatching are ECUs not to be updated with update data (non-update ECUs 22). In this case, when cluster C1 is awakened, non-update ECUs 22 are also awakened unnecessarily, so that unnecessary power consumption may occur in the vehicle-mounted system 1.
[0099] In particular, the updating of the ECU 20 is often performed when the ignition of the vehicle V1 is turned off, for example, in a situation where the power consumption of the battery of the vehicle V1 needs to be further reduced. Therefore, the power consumption required for updating the ECU 20 needs to be reduced.
[0100] Therefore, in the present embodiment, the vehicle-mounted device 10 distributes setting information Y2 to the plurality of ECUs 21, 22, 24, 25 belonging to the cluster C1 before distributing update data (hereinafter referred to as first update data D1) targeting the cluster C1. The setting information Y2 is used to set a temporary cluster. The update ECUs 21, 24, 25 updated by the first update data D1 belong to the temporary cluster, and the non-update ECUs 22 not updated by the first update data D1 do not belong to the temporary cluster.
[0101] Then, after the temporary cluster is set in each ECU 21, 22, 24, 25, the vehicle-mounted device 10 distributes a control message M1 for invalidating the cluster C1 and validating the temporary cluster to the plurality of ECUs 20 when the first update data D1 is distributed. In this way, only the update ECU 21, 24, 25 can be awakened during the update while the non-update ECU 22 is in a dormant state, so that the power consumption for updating the ECU 20 can be suppressed.
[0102] Hereinafter, the specific control contents in the vehicle-mounted system 1 will be described by taking the case where the ECU 20 is updated by the first update data D1 as an example.
[0103] [1.6 Control method]
[0104] Figure 7 1 is a flowchart showing an example of a control method performed by the vehicle-mounted system 1. Figure 7 The left side shows the control performed by the vehicle-mounted device 10. Figure 7 The center shows the control performed by ECU 21 (update ECU). Figure 7 The right side of shows the control performed by ECU22 (non-update ECU). Figure 8 The subsequent flowcharts also show the control executed by the vehicle-mounted device 10, ECU 21, and ECU 22.
[0105] The control performed by the vehicle-mounted device 10 is performed by the microcomputer 11 or the transceivers 15a to 15d. When the microcomputer 11 performs control, the control unit 12 reads a computer program from the storage unit 13 (or follows a program pre-written in the control unit 12) and performs various calculations and processes.
[0106] The control performed by the ECU 21 is performed by the microcomputer 71 or the transceiver 72. When the microcomputer 71 performs the control, the control unit 73 reads a computer program from the storage unit 74 (or follows a program written in advance in the control unit 73) and performs various calculations and processes.
[0107] like Figure 7 As shown, the vehicle-mounted system 1 performs the following steps: a temporary cluster forming step (step S100) to form a temporary cluster including only the update ECUs 21, 24, and 25 updated by the first update data D1; an updating step (step S200) to update the ECU 20 belonging to the temporary cluster; and a temporary cluster discarding step (step S300) to discard the setting of the temporary cluster. In addition, the temporary cluster discarding step (step S300) may also be omitted.
[0108] The temporary cluster forming step S100 is executed, for example, when the ignition switch of the vehicle V1 is turned on. Then, the updating step S200 is executed when the ignition switch of the vehicle V1 is turned off. That is, the update data is provided to the vehicle-mounted device 10 by OTA or the like while the vehicle V1 is traveling. Then, the ECU 20 is updated based on the update data while the vehicle V1 is parked.
[0109] In addition, the temporary cluster forming step S100 may be executed in a state where the ignition switch of the vehicle V1 is off. In addition, the state of the vehicle V1 when the temporary cluster discarding step S300 is executed is not particularly limited.
[0110] [1.6.1 Temporary cluster formation process]
[0111] Figure 8 Yes means Figure 7 Flowchart showing details of the temporary cluster forming step S100.
[0112] First, the vehicle-mounted device 10 obtains update information Y1 from outside the vehicle V1 (step S111). The update information Y1 includes, for example, information identifying the cluster targeted by the first update data D1 (e.g., the cluster number of the cluster C1) and information identifying the update ECU to be updated by the first update data D1 (e.g., the address of the update ECU 21, 24, 25).
[0113] The in-vehicle device 10 receives, for example, the first update data D1 distributed from the external device 61 via the network and the communication device 50. Then, the in-vehicle device 10 obtains the update information Y1 based on the received first update data D1 (for example, by analyzing the data content of the first update data D1). In addition, the update information Y1 itself may be provided to the in-vehicle device 10 before the first update data D1 is provided from outside the vehicle V1.
[0114] Next, the vehicle-mounted device 10 determines whether each of the ECUs 21 , 22 , 24 , and 25 belonging to the cluster C1 is an update ECU updated by the first update data D1 or a non-update ECU not updated by the first update data D1 based on the update information Y1 and the cluster information T1 (step S112 ).
[0115] For example, the vehicle-mounted device 10 identifies the cluster C1 to be updated from the plurality of clusters C1 to C8 based on the update information Y1. Then, based on the cluster information T1, the vehicle-mounted device 10 identifies the ECUs 21, 22, 24, and 25 belonging to the cluster C1 from the plurality of ECUs 20. Finally, based on the update information Y1, the vehicle-mounted device 10 extracts the update ECUs 21, 24, and 25 updated by the first update data D1 from the ECUs 21, 22, 24, and 25. Then, the remaining ECUs 22 that have not been extracted are determined to be non-updated ECUs.
[0116] Next, the vehicle-mounted device 10 generates a temporary cluster to which the update ECUs 21 , 24 , 25 belong and to which the non-update ECU 22 does not belong (step S113 ). Specifically, the control unit 12 generates cluster information T1a including the temporary cluster and stores the cluster information T1a in the storage unit 13 .
[0117] Fig. 9 is a table showing an example of cluster information T1a including temporary clusters. Fig. 9 As shown, the control unit 12 uses the cluster C8 as a temporary cluster. Specifically, in the cluster C8, the update ECUs 21, 24, and 25 are set to "1", and the other ECUs 20 including the non-update ECU 22 are set to "0". The cluster C8 is an empty cluster to which no ECU 20 belongs before the temporary cluster is set, so by setting such a cluster C8 as a temporary cluster, it is possible to suppress the situation where the existing clusters are affected.
[0118] Next, the control unit 12 distributes the setting information Y2 for setting the temporary cluster to the ECUs 21, 22, 24, and 25 belonging to the cluster C1 (steps S114 and S115). For example, the control unit 12 sends the cluster information T2a to the ECU 21 (step S114) and sends the cluster information T3a to the ECU 22 (step S115). The cluster information T2a has an eight-bit pattern of "101···1", and the cluster information T3a has an eight-bit pattern of "111···0".
[0119] When the ECU 20 to which the setting information Y2 is to be distributed is in sleep mode, the control unit 12 temporarily wakes up the ECU 20 to which the setting information Y2 is to be distributed, and then distributes the setting information Y2. Specifically, when the ECUs 21, 22, 24, and 25 belonging to the cluster C1 are in sleep mode, the control unit 12 sends a control message ( Figure 6 The control message shown in the figure) is distributed to multiple ECUs 20, so that the ECUs 21, 22, 24, and 25 belonging to the cluster C1 are set to the normal mode. In this state, the setting information Y2 is distributed to each ECU 21, 22, 24, and 25.
[0120] When receiving cluster information T2a as setting information Y2, ECU21 rewrites cluster information T2 (101...0) stored in register 75 to cluster information T2a (resetting "0" of the eighth bit to "1"), thereby executing new cluster setting including the temporary cluster (step S121). When rewriting of register 75 is completed in ECU21, ECU21 transmits a completion notification to the vehicle-mounted device 10 (step S122).
[0121] When receiving cluster information T3a as setting information Y2, ECU22 rewrites cluster information T3 stored in register 75 to cluster information T3a, thereby executing new cluster setting including temporary cluster (step S131). When rewriting of register 75 is completed in ECU22, ECU22 transmits a completion notification to vehicle-mounted device 10 (step S132).
[0122] In the ECU 22 , the cluster setting does not change before and after the temporary cluster is set, and the cluster information T3 is the same as the cluster information T3a. In this case, the vehicle-mounted system 1 may omit the execution of steps S115 , S131 , and S132 .
[0123] When the control unit 12 receives the completion notification from the ECUs 21, 22, 24, 25 belonging to the cluster C1 and other sleep conditions are satisfied, it distributes a sleep signal for putting the ECUs 21, 22, 24, 25 into sleep mode (step S116). When the ECUs 21, 22, 24, 25 receive the sleep signal, they switch from the normal mode to the sleep mode (steps S123, S133). Thus, the temporary cluster formation step S100 ends.
[0124] [1.6.2 Update process]
[0125] Fig.10 Yes means Figure 7 Flowchart showing details of the updating step S200.
[0126] When distributing the first update data D1, the control unit 12 distributes a control message M1 for waking up only the update ECUs 21, 24, and 25 (step S211). Fig.10 As shown, the control unit 12 may distribute the control message M1 before distributing the first update data D1, or may send the first update data D1 and the control message M1 simultaneously. In addition, the first update data D1 may be included in the control message M1.
[0127] Fig.11 is a diagram showing an example of the data field F2 of the control message M1.
[0128] In the data field F2 , the cluster C1 (the first bit) to which the first update data D1 is applied is invalid, and the temporary cluster (in this example, the cluster C8 , the eighth bit) is valid.
[0129] The control message M1 is broadcasted from the vehicle-mounted device 10 to the communication bus 30 and received by each of the plurality of ECUs 20. As described above, the transceiver 72 of each ECU 20 determines whether the control message M1 matches the cluster information stored in its register 75 and wakes up if it matches.
[0130] Since ECU 21 belongs to the temporary cluster through the temporary cluster formation process (i.e., since the eighth bit of cluster information T2a is "1"), it wakes up when receiving control message M1 (step S221). Similarly, other update ECUs 24 and 25 also wake up. On the other hand, since ECU 22 does not belong to the temporary cluster, it does not wake up even if it receives control message M1, and maintains sleep mode.
[0131] Then, the control unit 12 distributes the first update data D1 to the plurality of ECUs 20 (step S212). In addition, when the first update data D1 is included in the control message M1 as described above, steps S211 and S212 are executed simultaneously. The first update data D1 is received by the awakened update ECUs 21, 24, and 25, and the update ECUs 21, 24, and 25 are updated respectively (step S222). When the update is completed, the ECU 21 sends a completion notification to the vehicle-mounted device 10 (step S223), and then switches from the normal mode to the sleep mode (step S224).
[0132] By distributing the control message M1 to invalidate the cluster C1 and validate the temporary cluster to the plurality of ECUs 20 , only the update ECUs 21 , 24 , 25 can be awakened while the non-update ECU 22 is maintained in the sleep mode, thereby suppressing power consumption for updating the ECUs 20 .
[0133] [1.6.3 Temporary cluster abandonment process]
[0134] Fig.12 Yes means Figure 7 Flowchart showing details of the temporary cluster discarding step S300.
[0135] In the control message, the data field allocated for cluster setting is limited, so the number of clusters that can be set is also limited. Figure 6 and Fig.11 The data fields F1 and F2 shown are one byte (eight bits), so the upper limit of the number of clusters that can be set is eight. Therefore, after the update of the ECU 20 is completed, the vehicle-mounted device 10 discards the temporary cluster set as the cluster C8 and becomes a state in which a new temporary cluster can be set for the cluster C8.
[0136] After the updating step S200, the control unit 12 Fig. 9 The values of the row of cluster C8 of cluster information T1a shown are all set to "0", thereby discarding the setting of the temporary cluster (step S311). As a result, cluster information T1a becomes Figure 4 When the first update data D1 changes the ECU 21 to newly belong to the cluster C2, for example, the change is maintained. That is, the control unit 12 returns only the value of the temporary cluster in the updated cluster information T1a to the state of the cluster information T1.
[0137] Next, the control unit 12 distributes the discarding information Y3 for discarding the temporary cluster setting to the ECUs 21, 22, 24, and 25 belonging to the cluster C1 (steps S312 and S313). For example, the control unit 12 sends the cluster information T2 to the ECU 21 (step S312) and sends the cluster information T3 to the ECU 22 (step S313).
[0138] When receiving cluster information T2 as discard information Y3, ECU21 rewrites cluster information T2a stored in register 75 to cluster information T2, and performs new cluster setting that does not include the temporary cluster (step S321). That is, the bit corresponding to the temporary cluster in cluster information T2a is changed from "1" to "0". Through this cluster setting, ECU21 no longer belongs to the temporary cluster. When rewriting of register 75 in ECU21 is completed, ECU21 sends a completion notification to the vehicle-mounted device 10 (step S322).
[0139] When receiving cluster information T3 as discard information Y3, ECU 22 rewrites cluster information T3a stored in register 75 to cluster information T3, thereby performing new cluster setting that does not include a temporary cluster (step S331). When rewriting of register 75 is completed in ECU 22, ECU 22 transmits a completion notification to the vehicle-mounted device 10 (step S332).
[0140] If the register 75 in the ECU 22 is not rewritten in the temporary cluster forming step S100 (ie, if the execution of steps S115 , S131 , and S132 is omitted), the in-vehicle system 1 may omit the execution of steps S313 , S331 , and S332 .
[0141] Thus, the temporary cluster abandonment step S300 ends. After the update step S200, by abandoning the setting of the temporary cluster, the temporary cluster can be dynamically set in a limited number of clusters. For example, when update data for other clusters (such as clusters C2 and C3) is continuously distributed, the process of steps S100, S200, and S300 can be continuously executed.
[0142] [2. Modifications]
[0143] Hereinafter, a modification of the embodiment will be described. In the modification, the same reference numerals are given to the same components as those of the above-described embodiment, and description thereof will be omitted.
[0144] [2.1 Addition of ECU]
[0145] Fig.131 is a diagram showing a state where one ECU 20 is newly added to the vehicle-mounted system 1. The new ECU 20 is referred to as an ECU 26. The ECU 26 is an ECU belonging to the cluster C1 after the addition.
[0146] For example, consider a case where the ECU 26 is added while the ignition switch of the vehicle V1 is off and all the ECUs 20 belonging to the cluster C1 are in the sleep mode. In this case, for example, the ECUs 20 belonging to the cluster C1 may be updated along with the addition of the ECU 26, but when the update is performed by the control method according to the above-mentioned embodiment, the non-updated ECU 22 is maintained in the sleep mode in the update step S200, and therefore the non-updated ECU 22 cannot detect the addition of the ECU 26.
[0147] Therefore, when a new ECU 26 is added to the cluster C1 before the first update data D1 is distributed, the control unit 12 of the present modification obtains the additional information Y4, which is information related to the new ECU 26, before the new ECU 26 is added. Then, the control unit 12 distributes the additional information Y4 to the plurality of ECUs 20 belonging to the cluster C1 before the first update data D1 is distributed.
[0148] Thus, information on the ECU 26 can be transmitted to the ECU 20 belonging to the cluster C1 before the first update data D1 is distributed, so that the non-update ECU 22 in the sleep mode when the first update data D1 is distributed can detect in advance that the ECU 26 will be added. This can improve the reliability of the vehicle system 1.
[0149] Fig.14 4 is a flowchart showing a control method according to a modification. The vehicle-mounted device 10 first obtains additional information Y4 (step S411). The additional information Y4 is provided to the vehicle-mounted device 10 together with the first update data D1 from, for example, the external device 61, the diagnostic device 62, or the recording medium 17. The additional information Y4 includes, for example, information for identifying the ECU 26 (for example, the address of the ECU 26) and information related to the cluster to which the ECU 26 belongs (for example, the cluster number).
[0150] Before adding the ECU 26, the vehicle-mounted device 10 distributes the additional information Y4 to the ECU 20 belonging to the cluster C1 (the cluster to which the ECU 26 is scheduled to belong) via the communication bus 30 (step S412). For example, the vehicle-mounted device 10 performs step S412 when the ECU 20 belonging to the cluster C1 is in the normal mode. Specifically, the vehicle-mounted device 10 distributes the additional information Y4 when the ignition switch of the vehicle V1 is turned on.
[0151] The ECUs 20 (including the non-updated ECUs 22) belonging to the cluster C1 store the received additional information Y4 in the storage unit 74. Thus, the ECUs 20 belonging to the cluster C1 can detect in advance the information on the ECUs 26 that are scheduled to newly belong to the cluster C1.
[0152] Next, the ECU 26 is actually added to the vehicle-mounted system 1 (step S421 ). For example, the ECU 26 is connected to the communication bus 32 . When the connection is completed, the ECU 26 transmits an addition completion notification to the vehicle-mounted device 10 (step S422 ).
[0153] Then, the in-vehicle system 1 executes the temporary cluster forming step S100 and the updating step S200. The ECU 26 may be an update ECU updated by the first update data D1 or a non-update ECU not updated by the first update data D1.
[0154] After receiving the addition completion notification in step S422 , the vehicle-mounted device 10 transmits addition completion information Y5 notifying that the addition of the ECU 26 is completed to the ECU 20 belonging to the cluster C1 when each of the ECUs 20 belonging to the cluster C1 wakes up (step S413 ).
[0155] The sending time of the addition completion information Y5 may be different depending on the time when the ECU 20 wakes up. For example, when the ECUs 21, 24, and 25 are updated, the vehicle-mounted device 10 sends the addition completion information Y5 to the update ECUs 21, 24, and 25 because the vehicle-mounted device 10 wakes up when setting the temporary cluster in the temporary cluster forming step S100 or when updating in the updating step S200.
[0156] In the case of the non-updated ECU 22, when the temporary cluster is set in the temporary cluster formation step S100, the non-updated ECU 22 is in the normal mode at this time, so the addition completion information Y5 may be sent. However, in the case where the non-updated ECU 22 is not awakened in the temporary cluster formation step S100 (omitted), Figure 8 Therefore, the vehicle-mounted device 10 may distribute the addition completion information Y5 to the ECUs 21, 22, 24, and 25 when the ignition switch of the vehicle V1 is turned on and all the ECUs 20 belonging to the cluster C1 are in the normal mode.
[0157] [2.2 Notification of update content to non-update ECUs]
[0158] In the above-mentioned embodiment, the non-updated ECU 22 is maintained in the sleep mode in the update step S200. Therefore, the non-updated ECU 22 cannot know the update content of the update ECU 21. For example, in the case where the update content of the update ECU 21 affects the operation of the non-updated ECU 22, even if the program of the non-updated ECU 22 itself is not updated, it is preferable for the non-updated ECU 22 to know the update content in advance in order to prevent a malfunction of the vehicle-mounted system 1.
[0159] Here, when data is transmitted from the ECU 20 connected to the communication bus 31 to the ECU 20 connected to the different communication bus 32, since the data passes through the vehicle-mounted device 10, the vehicle-mounted device 10 can stop transmitting data that may cause a malfunction in the ECU 20 connected to the communication bus 32 to the communication bus 32. On the other hand, when the update ECU 21 and the non-update ECU 22 are mixed in the same communication bus 31, the data transmitted from the update ECU 21 to the communication bus 31 directly reaches the non-update ECU 22, so the stop function of the vehicle-mounted device 10 does not work, and there is a high possibility that a malfunction will occur in the operation of the non-update ECU 22.
[0160] Therefore, the control unit 12 according to the present modification collects the update contents of the update ECU 21 based on the first update data D1 and stores them in the storage unit 13 when the update ECU 21 and the non-update ECU 22 exist in the same communication bus 31. Then, after the update ECU 21 is updated by the first update data D1, the control unit 12 notifies the non-update ECU 22 of the update contents of the update ECU 21 based on the first update data D1 when the non-update ECU 22 (first non-update ECU) connected to the same communication bus 31 as the update ECU 21 enters the normal mode.
[0161] This can prevent the update content of the update ECU 21 from causing malfunction in the operation of the non-update ECU 22 .
[0162] [2.3 Temporary cluster in competition]
[0163] In the above-mentioned embodiment, the temporary cluster is set as the "empty" cluster C8. However, in reality, there may be no "empty" cluster C8. In this case, for example, a cluster with low usage frequency may be temporarily set as the temporary cluster.
[0164] For example, consider a case where the cluster C3 is temporarily changed to a temporary cluster during the period from the temporary cluster forming step S100 to the temporary cluster discarding step S300 , and the update ECUs 21 , 24 , 25 updated only by the first update data D1 belong to the temporary cluster.
[0165] In this case, before the temporary cluster is set, the ECU 22 switches to the normal mode by a control message (hereinafter referred to as a "first control message Mx1") including a data field that enables the cluster C3. On the other hand, after the temporary cluster is set, the ECU 22 no longer belongs to the cluster C3, so the ECU 22 does not switch to the normal mode by the first control message Mx1.
[0166] Furthermore, the ECU 22 switches to the normal mode by a control message (hereinafter referred to as a “second control message Mx2 ”) including a data field for validating the cluster C2 , whether before or after the temporary cluster is set.
[0167] In such a case, even if the cluster C3 attempts to wake up the ECU 22, the temporary cluster setting cannot wake up the ECU 22. For example, consider a case where the cluster C3 originally sets the ECU 20 to operate in response to the door unlocking of the vehicle V1. Specifically, the ECU 21 is an ECU for receiving a release signal indicating that the door lock of the vehicle V1 is unlocked from a sensor, and the ECU 22 is an ECU for controlling an actuator for opening the rearview mirror of the vehicle V1 to the outside in response to the door unlocking of the vehicle V1.
[0168] At this time, upon receiving the release signal, ECU21 sends a first control message Mx1 to the communication bus 31, in an attempt to wake up ECU20 including ECU22 that operates in conjunction with door lock release. However, if a temporary cluster is set for cluster C3, ECU22 that should be woken up by the first control message Mx1 will not wake up, and a problem such as failure to open the rearview mirror of the vehicle V1 may occur.
[0169] Therefore, in this modification, even if the setting of the temporary cluster conflicts with the original cluster, in order to suppress malfunction in the vehicle system 1 , the vehicle-mounted device 10 wakes up the ECU 22 that has not been woken up by the first control message Mx1 by another control message.
[0170] Fig.15 : is a flowchart showing a control method according to a modification.
[0171] After the temporary cluster formation step S100 and before the temporary cluster abandonment step S300, the ECU 21 sends the first control message Mx1 to the communication bus 31. The first control message Mx1 is received by the ECU 22 via the communication bus 31 (step S521), and is also received by the vehicle-mounted device 10 (step S522). As described above, after the temporary cluster is set, the ECU 22 does not wake up even if it receives the first control message Mx1.
[0172] For example, in the temporary cluster formation step S100, the control unit 12 stores information (change information) about a portion of the cluster information T1 that is changed from "1" to "0" by setting the temporary cluster in the storage unit 13. Then, after step S522, the control unit 12 determines whether the temporary cluster for which the first control message Mx1 is valid conflicts with the original cluster (step S511).
[0173] Specifically, when receiving the first control message Mx1, the control unit 12 determines whether the first control message Mx1 sets as the destination the ECU 20 whose cluster information T1 is changed from "1" to "0" by the setting of the temporary cluster. In other words, it determines whether the destination of the first control message Mx1 is the ECU 20 (competing ECU) that was awakened by the first control message Mx1 before the setting of the temporary cluster but is no longer awakened by the first control message Mx1 due to the setting of the temporary cluster.
[0174] When the control unit 12 determines that the destination of the first control message Mx1 is a competing ECU, it sends a second control message Mx2 to the competing ECU (in this example, ECU 22) (step S512). ECU 22 switches from the sleep mode to the normal mode by receiving the second control message Mx2 (step S531).
[0175] Next, the control unit 12 sends the validation information Y6 to the ECU 22 while the ECU 22 is in the normal mode by the second control message Mx2 (step S513). The validation information Y6 is information for changing the cluster setting of the ECU 22 so that the first control message Mx1 switches the ECU 22 to the normal mode.
[0176] For example, in the register 75 of the ECU 22, when cluster information T3 (111···0) is stored before the temporary cluster forming step S100 and cluster information T3b (for example, 110···0) is stored after the temporary cluster forming step S100, the validation information Y6 is information for changing the "0" of the third bit in the cluster information T3b to become a temporary cluster to "1" as in the cluster information T3c (111···0).
[0177] The ECU 22 rewrites the cluster information in the register 75 based on the validation information Y6 to newly set the cluster (step S532 ). Thus, the ECU 22 can be awakened by a control message including a data field indicating that the temporary cluster (cluster C3 ) is valid, or can perform various controls.
[0178] Next, the vehicle-mounted device 10 transmits the first control message Mx1 to the ECU 22 (step S514 ). Alternatively, the vehicle-mounted device 10 may instruct the ECU 21 to retransmit the first control message Mx1 . In this case, the ECU 21 that receives the instruction transmits the first control message Mx1 to the ECU 22 .
[0179] The ECU 22 executes a predetermined control based on the first control message Mx1 (step S533). The predetermined control is, for example, a control to open the rearview mirror of the vehicle V1. After the predetermined control is executed and before the update process S200 is executed, the vehicle-mounted device 10 sends the invalidation information Y7 to the ECU 22 (step S515).
[0180] Here, the invalidation information Y7 is information for changing the cluster setting of the ECU 22 so that the first control message Mx1 does not switch the ECU 22 to the normal mode. For example, the invalidation information Y7 is information for restoring the bit that was temporarily changed from "0" to "1" by the validation information Y6, such as the third bit of the cluster information T3c (111...0), to "0".
[0181] ECU22 rewrites the cluster information of register 75 based on invalidation information Y7 to newly set the cluster (step S534). As a result, ECU22 is not awakened by a control message including a data field indicating that the temporary cluster (cluster C3) is valid. Then, ECU22 switches to sleep mode (step S535).
[0182] As described above, by temporarily changing the cluster setting of the ECU 22 that is no longer awake due to competition of temporary clusters, it is possible to execute predetermined control in the ECU 22. This can suppress the occurrence of malfunctions in the vehicle-mounted system 1 even when the number of clusters is limited and a temporary cluster is set for a cluster already in use.
[0183] Furthermore, by restoring the cluster setting of the ECU 22 after the predetermined control in the ECU 22 , the ECU 22 can be maintained in the sleep mode in the updating step S200 , so that the power consumption of the vehicle-mounted system 1 during the updating can be suppressed.
[0184] [2.4 Avoiding contention in temporary clusters]
[0185] according to Fig.15 The control method shown in FIG. 1 can cause the ECU 22 to operate even when competition occurs in the temporary cluster. Fig.15In the example of FIG. 1 , it takes time TM1 from the first control message Mx1 sent from ECU 21 to ECU 22 to perform the specified control. If there is no temporary cluster setting in cluster C3, immediately after the first control message Mx1 is sent from ECU 21 to ECU 22 (that is, without passing through Fig.15 ECU 22 can respond quickly without competition from the temporary cluster. Therefore, it is preferable not to set a temporary cluster for such a cluster that is required to be controlled more quickly.
[0186] For example, the control message includes an immediate message requiring immediate control and a non-immediate message not requiring immediate control like the immediate message. For example, the immediate message is a control message in which the allowed time from ECU 21 sending the control message to ECU 22 to ECU 22 executing the processing based on the control message is less than the first threshold Th1.
[0187] The control executed by the instant message is, for example, the control of unlocking the door of the vehicle V1. In the door unlocking control, if the user of the vehicle V1 waits for a long time for the door to be unlocked, the user is likely to feel uncomfortable, so the control is required to be instant. In addition, the control executed by the instant message may also be the control of driving the seat motor of the vehicle V1. This control is the following control: if there is a delay, the user is likely to feel uncomfortable, so the control is required to be instant.
[0188] In addition, the control executed by the instant message may be to turn on the headlights of the vehicle V1, to turn on the hazard lights of the vehicle V1, or to operate the wipers of the vehicle V1. Since these controls are related to the safety of the vehicle V1, they require instant control.
[0189] In addition, the control performed by the instant message may be a security control (e.g., glass breakage detection, the sounding of an anti-theft alarm, etc.) or a lighting control. If the security control is delayed, the risk of the vehicle V1 being stolen may increase, so instant control is required. In addition, if the flashing of the lights of the vehicle V1 changes, the person who visually sees the lights may feel uncomfortable, so instant control is required.
[0190] The non-immediate message is, for example, a control message in which the allowed time from when the ECU 21 transmits a control message addressed to the ECU 22 until when the ECU 22 executes a process based on the control message is equal to or longer than the first threshold value Th1.
[0191] The control executed by the non-instant message is, for example, the control of opening the rearview mirror when the door of the vehicle V1 is unlocked. After the door of the vehicle V1 is unlocked, it takes time for the user to fasten the seat belt, for example, until the vehicle V1 starts, so even if there is a slight delay until the rearview mirror is opened, the user is unlikely to feel uncomfortable.
[0192] The ECU 20 that transmits and receives the instant message among the plurality of ECUs 20 is predetermined, and the storage unit 13 stores information related to the ECU 20 that transmits and receives the instant message. Furthermore, when setting the temporary cluster, the control unit 12 does not set the temporary cluster for the cluster in which the ECU 20 that transmits and receives the instant message becomes "1". As a result, only non-instant messages may become the first control message. Thus, it is possible to suppress the occurrence of delay in the control with a short allowable time.
[0193] [3. Supplementary Note]
[0194] In addition, with respect to the above-mentioned embodiments and various modifications, at least a part thereof may be arbitrarily combined with each other. In addition, it should be considered that the embodiments and modifications disclosed this time are illustrative and non-restrictive in all aspects. The scope of the present disclosure is shown by the claims, and it is intended to include all changes within the meaning and scope equivalent to the claims.
[0195] Description of symbols 1. Vehicle system 10 Vehicle-mounted device 11 Microcontroller unit (microcomputer) 12 Control Unit 13 Storage 14 Reading unit 15a Transceiver 15b transceiver 15c Transceiver 15d Transceiver 16 Bus 17 Recording Media 20 ECU 21 ECU (Update ECU) 22 ECUs (non-updated ECUs, first non-updated ECUs, competing ECUs) 23 ECU (Update ECU) 24 ECU (Update ECU) 25 ECU (Update ECU) 26 ECU (new ECU) 30 Communication bus 31 Communication bus 32 Communication bus 41 Communication line 42 Communication lines 50 communication devices 61 External Devices 62 Diagnostic Devices 71 Microcontroller unit (microcomputer) 72 Transceiver 73 Control Department 74 Storage 75 Registers V1 Vehicle N1 Network C1 Cluster (Cluster 1) C2 Cluster C3 Cluster C8 Cluster T1 Cluster Information T1a Cluster Information T2 Cluster Information T2a Cluster Information T3 Cluster Information T3a Cluster Information T3b Cluster Information T3c Cluster Information F1 Data Field F2 Data Field D1 First update data M1 Control Message Mx1 First control message Mx2 Second control message Y1 Update Information Y2 Setting information Y3 Obsolete information Y4 Additional information Y5 Add completion information Y6 Validation Information Y7 Nullification Information TM1 takes time Th1 first threshold.
Claims
1. An in-vehicle device that distributes update data provided from outside the vehicle to a plurality of ECUs connected via a communication bus, wherein: The plurality of ECUs respectively belong to at least one cluster among the plurality of clusters, In the control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU enters the sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU enters the normal mode, wherein the sleep mode is a mode in which functions are limited and power consumption is suppressed compared to the normal mode, The vehicle-mounted device includes a control unit, The control unit distributes setting information for setting a temporary cluster to the plurality of ECUs belonging to a first cluster before distributing first update data, wherein the first update data is update data for the first cluster among the plurality of clusters, and the temporary cluster is a cluster among the plurality of ECUs belonging to the first cluster to which update ECUs updated by the first update data belong and to which non-update ECUs not updated by the first update data do not belong, The control unit distributes the control message for invalidating the first cluster and validating the temporary cluster to the plurality of ECUs when distributing the first update data.
2. The vehicle-mounted device according to claim 1, wherein: The vehicle-mounted device further includes a storage unit storing cluster information, wherein the cluster information is information associating the plurality of ECUs with the clusters to which the plurality of ECUs respectively belong. The control portion determines whether each of the plurality of ECUs belonging to the first cluster is the update ECU or the non-update ECU based on the first update data or update information provided from outside the vehicle before the first update data is provided and the cluster information.
3. The vehicle-mounted device according to claim 2, wherein: After distributing the first update data, the control unit distributes discarding information to the plurality of ECUs belonging to the first cluster, the discarding information being used to discard the setting of the temporary cluster.
4. The vehicle-mounted device according to claim 1, wherein: When a new ECU belonging to the first cluster is to be added to the communication bus before the first update data is distributed, the control unit acquires additional information related to the new ECU before adding the new ECU. The control unit distributes the additional information to the plurality of ECUs belonging to the first cluster before distributing the first update data.
5. The vehicle-mounted device according to claim 1, wherein: The control unit distributes the setting information to the plurality of ECUs belonging to the first cluster in a state where the plurality of ECUs belonging to the first cluster are set to the normal mode by the control message that makes the first cluster valid.
6. The vehicle-mounted device according to claim 5, wherein: After the update ECU is updated by the first update data, the control unit notifies the first non-update ECU of the update content of the update ECU based on the first update data when the first non-update ECU enters the normal mode. The first non-update ECU is the non-update ECU connected to the same communication bus as the update ECU.
7. The vehicle-mounted device according to claim 1, wherein: The plurality of ECUs include a competing ECU, the competing ECU being switched to the normal mode by a first control message before the temporary cluster is set, and being switched to the normal mode by a second control message different from the first control message instead of the first control message after the temporary cluster is set, The control unit sends the second control message to the competing ECU when the control unit receives the first control message destined for the competing ECU after the temporary cluster is set. The control unit sends validation information to the competing ECU in a state where the competing ECU is set to the normal mode by the second control message, wherein the validation information is used to set that the first control message switches the competing ECU to the normal mode, The control unit transmits the first control message to the competing ECU after transmitting the validation information.
8. The vehicle-mounted device according to claim 7, wherein: After sending the validation information and the first control message to the competing ECU, the control unit sends invalidation information to the competing ECU, the invalidation information being used to set the first control message not to switch the competing ECU to the normal mode.
9. The vehicle-mounted device according to claim 7 or claim 8, wherein: The control message includes: An immediate message, wherein the immediate message is a message that an allowed time from when the control unit receives the control message to when the competing ECU executes control based on the control message is less than a first threshold; and a non-instant message, wherein the non-instant message is a message whose allowed time is greater than the first threshold, The first control message is the non-instant message.
10. A vehicle-mounted system comprising: The vehicle-mounted device according to any one of claims 1 to 8; and The plurality of ECUs are connected to the vehicle-mounted device via the communication bus.
11. A control method for controlling an in-vehicle device that distributes update data provided from outside of a vehicle to a plurality of ECUs connected via a communication bus, wherein: The plurality of ECUs respectively belong to at least one cluster among the plurality of clusters, In the control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU enters the sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU enters the normal mode, wherein the sleep mode is a mode in which functions are limited and power consumption is suppressed compared to the normal mode, The control method comprises: A first step is to distribute setting information for setting a temporary cluster to a plurality of ECUs belonging to a first cluster before first update data is distributed, wherein the first update data is update data for the first cluster among the plurality of clusters, and the temporary cluster is a cluster among the plurality of ECUs belonging to the first cluster to which update ECUs updated by the first update data belong and to which non-update ECUs not updated by the first update data do not belong; and In the second step, when distributing the first update data, the control message for invalidating the first cluster and validating the temporary cluster is distributed to the plurality of ECUs.
12. A computer program for controlling an in-vehicle device that distributes update data provided from outside of a vehicle to a plurality of ECUs connected via a communication bus, wherein: The plurality of ECUs respectively belong to at least one cluster among the plurality of clusters, In the control message received from the communication bus, if the cluster to which the own ECU belongs is invalid, the ECU enters the sleep mode, and if the cluster to which the own ECU belongs is valid, the ECU enters the normal mode, wherein the sleep mode is a mode in which functions are limited and power consumption is suppressed compared to the normal mode, The computer program causes the computer to execute the following steps: A first step is to distribute setting information for setting a temporary cluster to a plurality of ECUs belonging to a first cluster before first update data is distributed, wherein the first update data is update data for the first cluster among the plurality of clusters, and the temporary cluster is a cluster among the plurality of ECUs belonging to the first cluster to which an update ECU to be updated by the first update data belongs and to which non-update ECUs not to be updated by the first update data do not belong; and In the second step, when distributing the first update data, the control message for invalidating the first cluster and validating the temporary cluster is distributed to the plurality of ECUs.
