Center, distribution control method, and distribution control program
The center system optimizes software updates for vehicles by selecting between difference and full data packages based on current and latest versions, addressing inefficiencies in updating multiple control units and ensuring consistent function alignment.
Patent Information
- Application Number
- JP2021064671
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-06
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-04-06
AI Technical Summary
Existing software update methods for vehicle electronic control units, particularly those involved in automatic driving functions, face inefficiencies due to the need for consistent software versions across multiple units, leading to repeated downloads and user consent processes when replacements occur, which can degrade update processing efficiency.
A center system that manages software updates by determining whether to distribute difference data or full data packages based on the current and latest software versions of multiple control units, ensuring efficient alignment of control functions and reducing redundant update processes.
This approach enhances the efficiency of software update processing by dynamically selecting the appropriate data package type, preventing inefficiencies and optimizing the update process for vehicles with multiple electronic control units.
Smart Images

Figure 0007552483000003 
Figure 0007552483000001 
Figure 0007552483000011
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a center capable of communicating with an OTA master that controls software updates of an electronic control unit mounted in a vehicle. [Background technology]
[0002] A vehicle is equipped with multiple electronic control units (ECUs: Electronic Control Units) for controlling the operation of the vehicle. Each electronic control unit includes a processor, a temporary storage unit such as a RAM, and a non-volatile storage unit such as a flash ROM, and the processor executes software stored in the storage unit to realize the control functions of the electronic control unit. The software stored in each electronic control unit is rewritable, and by updating the software to a newer version, it is possible to improve the functions of each electronic control unit or add new vehicle control functions.
[0003] A known technology for updating software in an electronic control unit is OTA (Over The Air) technology, in which an in-vehicle communication device connected to an in-vehicle network is wirelessly connected to a communication network such as the Internet, and a device responsible for updating the vehicle's software downloads software from a center with server functions via wireless communication and installs the downloaded software in the electronic control unit, thereby updating or adding software to the electronic control unit.
[0004] This software update process using OTA technology can be started when the OTA master, which is a device responsible for updating the vehicle's software, transmits version information of the software of the electronic control unit to a center (update confirmation) via an in-vehicle communication device while the vehicle's power supply or ignition is ON (see, for example, Patent Document 1). When the OTA master downloads update data from the center via OTA, it notifies the user that update data is available by displaying the information on a display device inside the vehicle, and installs and activates the update data when the user gives consent by operating an input device such as a button. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2018-181377 A Summary of the Invention [Problem to be solved by the invention]
[0006] Some control functions provided in a vehicle, such as autonomous driving, are realized by the cooperative operation of multiple electronic control units (or actuators). In order for the autonomous driving function to function properly, the control functions of the software of multiple electronic control units that realize autonomous driving must be consistent with each other. When the function of the software of one of the electronic control units that realizes autonomous driving is updated, the software of the other electronic control units that realize autonomous driving must also be updated in conjunction with this function update. The software of multiple electronic control units that need to have their control functions consistent with each other are usually updated as a set. In addition, in order to reduce the amount of data transmitted from the center to the vehicle, software update data is provided as differential data before and after the update. In other words, the software of multiple electronic control units that need to have their control functions consistent with each other are registered at the center in the form of a distribution package that includes differential data for each software. This distribution package is designed so that it cannot be opened at the center in order to prevent software tampering, and it is difficult to extract only the update data for one piece of software from the distribution package.
[0007] When an electronic control unit is replaced due to a malfunction or the like, the software version of the electronic control unit may change before and after the replacement. If the replaced electronic control unit is one of multiple electronic control units that need to have their control functions coordinated with each other, such as an electronic control unit that realizes an autonomous driving function, the software of the replaced electronic control unit needs to be updated to the latest version by downloading update data registered as a differential data distribution package. However, if the software version of the replaced electronic control unit is significantly different from the latest software version, downloading the differential data distribution package, installing and activating the software using the differential data distribution package, and processing a user consent request may have to be repeated many times, which may result in a decrease in the efficiency of the software update.
[0008] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide a center or the like that can prevent a deterioration in the efficiency of the update process when updating software for multiple electronic control units that need to have their control functions coordinated with each other. [Means for solving the problem]
[0009] In order to solve the above problem, one aspect of the disclosed technology is a center that distributes update data for software of electronic control units to a vehicle equipped with multiple electronic control units, the center comprising: a memory unit that stores update management information including a combination of latest versions of software of multiple first electronic control units, which are electronic control units that need to have their control functions coordinated with each other; a receiving unit that receives current versions of the software of the multiple electronic control units from the vehicle; a determination unit that determines whether or not updating of the software of at least one first electronic control unit is necessary based on the update management information stored in the memory unit and the current version of the software received by the receiving unit; a control unit that, when the determination unit determines that updating of the software of the first electronic control unit is necessary, determines as a distribution package either a package including difference data between versions for all software of the multiple first electronic control units or a package including all data of the latest version of the software of the first electronic control unit that needs to be updated based on the software of the first electronic control unit that needs to be updated; and a transmission unit that transmits the distribution package determined by the control unit to the vehicle based on a request from the vehicle. Effect of the Invention
[0010] According to the center disclosed herein, a decision is made based on the software that needs to be updated as to whether to distribute a package including differential data between versions or a package including all data of the latest version, thereby preventing a decrease in the efficiency of the software update process. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a block diagram showing an overall configuration of a network system according to an embodiment. [Diagram 2] Block diagram showing the general configuration of the center [Diagram 3] Center functional block diagram [Figure 4] Block diagram showing the schematic configuration of the OTA master [Diagram 5] OTA Master Functional Block Diagram [Figure 6] An example of update management information stored in the center [Figure 7A] An example of packaged differential data stored at the center [Figure 7B] An example of all packaged data stored by the center [Figure 8] Flowchart of distribution control process executed by the center [Figure 9] Flowchart of a process for determining a distribution package for a first ECU executed by a center [Figure 10] Flowchart of a process for determining a distribution package for a second ECU executed by the center [Figure 11] Example of the process of determining the distribution package for the first ECU [Figure 12] Example of the process of determining the distribution package for the second ECU [Figure 13] Flowchart of software update control process executed by OTA master DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] The center of the present disclosure determines whether to distribute software update data to the vehicle's electronic control unit in a package including difference data between software versions or in a package including all data of the latest version of the software, based on the software that needs to be updated. This method of determining the distribution package for update data prevents the efficiency of the software update process from deteriorating. Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings.
[0013] <Embodiment> [System configuration] Fig. 1 is a block diagram showing an overall configuration of a network system according to an embodiment of the present disclosure. The network system shown in Fig. 1 is a system for updating software of a plurality of electronic control units (ECUs) 50a to 50d mounted on a vehicle, and includes a center 10 located outside the vehicle and an in-vehicle network 90 built inside the vehicle.
[0014] (1) Center The center 10 can communicate with an OTA master 30 (described later) provided in the in-vehicle network 90 via the network 100, and can manage software updates for the multiple electronic control units 50a-50d connected to the OTA master 30 by transmitting update data for the electronic control units 50a-50d and receiving notifications indicating the progress of software update processing. This center 10 has a function as a so-called server.
[0015] FIG. 2 is a block diagram showing a schematic configuration of the center 10 in FIG. 1. As shown in FIG. 2, the center 10 includes a central processing unit (CPU) 11, a random access memory (RAM) 12, a storage device 13, and a communication device 14. The storage device 13 is a device including a readable and writable storage medium such as a hard disk drive (HDD) or a solid state drive (SSD), and stores a program for performing software update management, information used for the software update management, and update data for each electronic control unit. In the center 10, the CPU 11 executes a program read from the storage device 13 by using the RAM 12 as a working area, thereby performing a predetermined process related to software update. The communication device 14 is a device for communicating with the OTA master 30 via the network 100.
[0016] Fig. 3 is a functional block diagram of the center 10 shown in Fig. 2. The center 10 shown in Fig. 3 includes a storage unit 15, a communication unit 16, a control unit 17, and a determination unit 18. The storage unit 15 is realized by the storage device 13 shown in Fig. 2. The communication unit 16, the control unit 17, and the determination unit 18 are realized by the CPU 11 shown in Fig. 2 executing a program stored in the storage device 13 using the RAM 12.
[0017] The storage unit 15 stores information related to software update processing of one or more electronic control units 50a-50d mounted on the vehicle. As the information related to the software update processing, the storage unit 15 stores at least update management information in which information indicating software available in the electronic control units 50a-50d is associated with each vehicle identification information (vehicle ID) that identifies the vehicle, and update data of the software of the electronic control units 50a-50d. In addition, as the information related to the software update processing, the storage unit 15 stores an update status indicating the update status of the software being implemented in the vehicle.
[0018] In the vehicle management information stored in the storage unit 15, a combination of the latest versions of the software of a plurality of first electronic control units (hereinafter referred to as "first electronic control units") that need to be mutually coordinated in terms of control functions is defined as information indicating software available in the electronic control units. In addition, as information indicating software available in the electronic control units 50a to 50d, the latest version of the software of the second electronic control units (hereinafter referred to as "second electronic control units") that do not need to be mutually coordinated in terms of control functions is described. An example of the vehicle management information is shown in FIG. 6. In the example of FIG. 6, for a vehicle with a vehicle ID of "AB01", electronic control units ECU-A, ECU-B, and ECU-C are first electronic control units that need to be mutually coordinated in terms of control functions, and all of these first electronic control units are defined as a combination of the latest versions being version 4.0. In addition, it is described that the latest version of the electronic control unit ECU-D is 5.0, and the latest version of the electronic control unit ECU-E is 3.0. The vehicle management information may be stored as a single piece of information that combines the first electronic control unit and the second electronic control unit as shown in FIG. 6, or the information for the first electronic control unit and the information for the second electronic control unit may be stored separately.
[0019] Examples of the update data stored in the storage unit 15 include differential data between versions of the software of the electronic control units and all data of the latest version of the software of the electronic control units. The differential data is generated by packaging all the software of the first electronic control units into at least one package. An example of the packaged differential data is shown in FIG. 7A. In the example of FIG. 7A, six packages (1.0 to 6.0) are prepared as differential data packages for the vehicle with vehicle ID_AB01. Package 1.0 includes differential data for updating each software from version 0 to version 1.0 for each of the electronic control units ECU-A, ECU-B, ECU-C, ECU-D, and ECU-E. Note that version 0 means that the software itself does not exist, so the differential data of package 1.0 corresponds to all data of the software. It is written that the size (data amount) of the update data by this package 1.0 is 2000 MB. Package 2.0 also includes differential data for updating each software of electronic control units ECU-D and ECU-E from version 1.0 to version 2.0. Note that for electronic control units ECU-A, ECU-B, and ECU-C, there is no software version update by package 2.0, so software differential data for these electronic control units is not included in package 2.0. It is noted that the size (data volume) of update data by package 2.0 is 150MB. Similarly, packages 3.0 to 6.0 each include differential data of software of each electronic control unit with version updates. This differential data package only needs to include the software of the first electronic control unit, which needs to be compatible with each other in the same package, and there is no particular limitation on the combination of the software of the first electronic control unit and the software of the second electronic control unit.
[0020] FIG. 7B shows an example in which all data of the software of the electronic control unit is packaged. In the example of FIG. 7B, a plurality of packages are prepared as a total data package for the vehicle with vehicle ID_AB01. For example, for the electronic control unit ECU-D, all data of the software of each version 1.0 to 5.0 is prepared as a package, and the size (amount of data) of the update data is shown for each package. Note that the storage unit 15 does not need to store all data packages for all versions, and some packages, such as only the latest version, may be stored depending on the storage capacity of the storage unit 15 and the frequency of use of the version. Note that FIG. 7B shows an example in which all data of a single piece of software is packaged as one package, but all data of multiple pieces of software may be packaged as one package. For example, for the software of the electronic control unit ECU-A, all data of version 1.0 and all data of version 2.0 may be packaged as one package, or all data of the software of the electronic control unit ECU-C and all data of the software of version 3.0 may be packaged as one package.
[0021] The communication unit 16 functions as a transmitting unit and a receiving unit that transmits and receives data, information, requests, and the like to and from the OTA master 30. The communication unit 16 receives a software update confirmation request from the OTA master 30 (receiving unit). The update confirmation request is information transmitted from the OTA master 30 to the center 10 when, for example, the power or ignition is turned on in the vehicle (hereinafter referred to as "power ON"), and is information for requesting the center 10 to confirm whether or not there is update data for the electronic control units 50a to 50d based on vehicle configuration information described later. In response to the update confirmation request received from the OTA master 30, the communication unit 16 transmits information indicating the presence or absence of update data to the OTA master 30 (transmitting unit). In addition, the communication unit 16 receives a transmission request (download request) for a distribution package from the OTA master 30 (receiving unit). In addition, when the communication unit 16 receives a download request for a distribution package, the communication unit 16 transmits a distribution package determined by the control unit 17 described later based on the software of the electronic control unit that needs to be updated to the OTA master 30 (transmitting unit).
[0022] The determination unit 18 acquires the current version of each piece of software in the multiple electronic control units 50a to 50d mounted on the vehicle identified by the vehicle ID from the vehicle configuration information included in the update confirmation request received by the communication unit 16. Then, the determination unit 18 determines whether or not the software of at least one electronic control unit needs to be updated based on the update management information stored in the storage unit 15 and the current version of each piece of software acquired from the vehicle. More specifically, the determination unit 18 determines whether or not the current version of each piece of software acquired from the vehicle matches the latest version of each piece of software in the vehicle managed by the center 10 as vehicle management information.
[0023] When the determination unit 18 determines that at least one electronic control unit needs to have its software updated, the control unit 17 determines whether or not there is update data for the software that needs to be updated, based on information related to the software update process stored in the storage unit 15. The determination result by the control unit 17 as to whether or not there is update data is transmitted to the OTA master 30 by the communication unit 16. Then, when the control unit 17 determines that there is update data for the software of the electronic control units 50a to 50d that needs to be updated, upon receiving a download request for a distribution package from the OTA master 30, the control unit 17 determines a distribution package to be transmitted to the vehicle as update data, based on the software of the electronic control unit that needs to be updated. The method of determining this distribution package will be described later.
[0024] (2) In-vehicle network The in-vehicle network 90 includes an OTA master 30, a plurality of electronic control units 50a to 50d, a display device 70, and a communication module 80. The OTA master 30 and the communication module 80 are connected via a bus 60a. The OTA master 30 and the electronic control units 50a and 50b are connected via a bus 60b. The OTA master 30 and the electronic control units 50c and 50d are connected via a bus 60c. The OTA master 30 and the display device 70 are connected via a bus 60d.
[0025] The OTA master 30 can communicate wirelessly with the center 10 via the network 100 through the bus 60a and the communication module 80. The OTA master 30 can also communicate wired with the electronic control units 50a-50d and the display device 70 through the buses 60b-60d. The OTA master 30 is a device having a function of managing an OTA state, controlling a software update sequence, and implementing software updates of electronic control units to be updated (hereinafter referred to as "target electronic control units"), and controls software updates of the target electronic control units among the electronic control units 50a-50d based on update data acquired by communication from the center 10. The OTA master 30 is sometimes referred to as a central gateway (CGW).
[0026] 4 is a block diagram showing a schematic configuration of the OTA master 30 in FIG. 1. As shown in FIG. 4, the OTA master 30 includes a CPU 31, a RAM 32, a ROM (Read-Only Memory) 33, a storage device 34, and a communication device 36. The CPU 31, the RAM 32, the ROM 33, and the storage device 34 configure a microcomputer 35. In the OTA master 30, the CPU 31 executes a program read from the ROM 33 by using the RAM 32 as a working area, thereby executing a predetermined process related to software update. The communication device 36 is a device for communicating with the communication module 80, the electronic control units 50a to 50d, and the display device 70 via the buses 60a to 60d shown in FIG. 1.
[0027] Fig. 5 is a functional block diagram of the OTA master 30 shown in Fig. 4. The OTA master 30 shown in Fig. 5 includes a storage unit 37, a communication unit 38, and a control unit 39. The storage unit 37 is realized by the storage device 34 shown in Fig. 4. The communication unit 38 and the control unit 39 are realized by the CPU 31 shown in Fig. 4 executing a program stored in the ROM 33 using the RAM 32.
[0028] The memory unit 37 stores a program for executing software updates of the multiple electronic control units 50a to 50d (a control program for the OTA master 30), various data used when executing the software updates, and software update data downloaded from the center 10 via a distribution package.
[0029] The communication unit 38 functions as a transmitting unit and a receiving unit that transmits and receives data, information, requests, and the like to and from the center 10. The communication unit 38 transmits a software update check request to the center 10, for example, when the power of the vehicle is turned on (transmitting unit). The update check request includes, for example, a vehicle ID for identifying the vehicle and information on the current version of the software of the electronic control units 50a to 50d connected to the in-vehicle network 90. The vehicle ID and the current version of the software of the electronic control units 50a to 50d are used to determine whether or not there is update data for the software of the electronic control units 50a to 50d, and which distribution package to adopt if there is update data, by comparing with the latest version of the software stored by the center 10 for each vehicle ID. In addition, the communication unit 38 receives a notification indicating the presence or absence of update data from the center 10 as a response to the update check request (receiving unit). When there is update data for the software of the electronic control units 50a to 50d, the communication unit 38 transmits a download request for a distribution package including the update data to the center 10 (transmission unit), and receives (downloads) the distribution package transmitted from the center 10 (reception unit). In addition, the communication unit 38 transmits the update status of the software transmitted by the electronic control units 50a to 50d to the center 10 (transmission unit).
[0030] The control unit 39 judges whether or not there is update data for the software of the electronic control units 50a to 50d, based on a response from the center 10 to the update confirmation request received by the communication unit 38. The control unit 39 also verifies the authenticity of the distribution package that the communication unit 38 receives (downloads) from the center 10 and stores in the storage unit 37. The control unit 39 also controls the update process (installation, activation) of the software of the electronic control units 50a to 50d, using the update data received (downloaded) from the center 10. Specifically, the control unit 39 transfers one or more pieces of update data downloaded in the distribution package to the target electronic control unit, and causes the target electronic control unit to install update software based on the update data. After the installation is completed, the control unit 39 instructs the target electronic control unit to activate the installed update software.
[0031] The electronic control units 50a to 50d are devices (ECUs) for controlling the operation of each part of the vehicle. Although four electronic control units 50a to 50d are illustrated in Fig. 1, the number of electronic control units is not particularly limited. In addition, the number of buses connecting the electronic control units to the OTA master 30 is also not particularly limited.
[0032] The display device 70 is a human machine interface (HMI) used to perform various displays, such as displaying the presence of update data during software update processing of the electronic control units 50a to 50d, displaying a consent request screen for requesting consent to the software update from the vehicle user or administrator, and displaying the results of the software update. The display device 70 can typically be a display device of a car navigation system, but is not particularly limited as long as it can display information required during software update processing. In addition to the display device 70, an electronic control unit or the like may be further connected to the bus 60d shown in FIG. 1.
[0033] The communication module 80 is a unit having a function of controlling communication between the center 10 and the vehicle, and is a communication device for connecting the in-vehicle network 90 to the center 10. The communication module 80 is wirelessly connected to the center 10 via the network 100, and performs vehicle authentication by the OTA master 30, downloading update data, etc. Note that the communication module 80 may be configured as part of the OTA master 30.
[0034] [Software Updates Process Overview] For example, the OTA master 30 transmits a software update check request to the center 10 when the power supply of the vehicle is turned on. The update check request includes a vehicle ID for identifying the vehicle and vehicle configuration information, which is information on the state (system configuration) of the electronic control units 50a to 50d connected to the in-vehicle network 90, such as the current versions of the hardware and software of the electronic control units 50a to 50d. The vehicle configuration information can be created by acquiring the identification numbers (ECU_ID) of the electronic control units and the identification numbers (ECU_Software_ID) of the software versions of the electronic control units from the electronic control units 50a to 50d connected to the in-vehicle network 90. The vehicle ID and the current versions of the software of the electronic control units 50a to 50d are used to determine whether or not there is update data for the software of the electronic control units 50a to 50d by comparing them with the latest version of the software held by the center 10 for each vehicle ID. In addition, the OTA master 30 receives a notification indicating the presence or absence of update data from the center 10 as a response to the update check request. When there is update data for the software of the electronic control units 50a to 50d, the OTA master 30 transmits a download request for the distribution package to the center 10 and receives the distribution package transmitted from the center 10. In addition to the update data, the distribution package may include verification data for verifying the authenticity of the update data, the number of update data, the installation order, the activation order, type information, various control information used when updating the software, and the like.
[0035] The OTA master 30 determines whether there is update data for the software of the electronic control units 50a to 50d based on the response from the center 10 to the received update confirmation request. The OTA master 30 also verifies the authenticity of the distribution package received from the center 10 and stored in the storage device 13. The OTA master 30 also transfers one or more pieces of update data downloaded in the distribution package to the target electronic control unit, and causes the target electronic control unit to install the update data. After the installation is completed, the OTA master 30 instructs the target electronic control unit to activate the installed updated version of the software.
[0036] In the consent request process, the OTA master 30 causes the output device to output a notification that consent is required for the software update or a notification that prompts input that the software update has been consented to. As the output device, a display device 70 provided in the in-vehicle network 90, an audio output device that gives a voice notification, or the like can be used. For example, in the consent request process, when the display device 70 is used as the output device, the OTA master 30 can cause the display device 70 to display an consent request screen for requesting consent for the software update, and can cause the display device 70 to display a notification that prompts a specific input operation such as pressing an consent button when the user or administrator consents. In addition, in the consent request process, the OTA master 30 can cause the display device 70 to display a statement or an icon notifying that there is update data for the software of the electronic control units 50a to 50d, or cause the display device 70 to display restrictions during the execution of the software update process. When the OTA master 30 receives an input indicating consent from the user or administrator, the OTA master 30 executes the above-mentioned control process of installation and activation, and updates the software of the target electronic control unit.
[0037] Here, if the non-volatile memory of the electronic control unit is a single bank memory having one storage area for storing the control program, update data, etc., installation and activation are performed consecutively, so consent request processing for the software update is performed before installation. If the non-volatile memory of the electronic control unit is a dual bank memory having two storage areas for storing the control program, update data, etc., consent request processing for the software update is performed at least after installation and before activation. Note that, if the non-volatile memory of the electronic control unit is a dual bank memory, consent request processing for the software update before installation may be performed or may be omitted.
[0038] The software update process consists of a phase in which the OTA master 30 downloads update data from the center 10 (download phase), a phase in which the OTA master 30 transfers the downloaded update data to the target electronic control unit and installs the update data in the storage area of the target electronic control unit (installation phase), and a phase in which the target electronic control unit activates the updated software installed by the target electronic control unit (activation phase).
[0039] Downloading is a process in which the OTA master 30 receives update data for updating the software of the electronic control units 50a to 50d, which has been transmitted from the center 10 in a distribution package, and stores the data in the storage device 34. The download phase not only executes the download, but also includes control of a series of processes related to the download, such as judging whether the download can be executed, requesting the vehicle user or administrator to consent to the download, and verifying the update data.
[0040] The update data transmitted from the center 10 to the OTA master 30 may include any of the update software (all data) of the electronic control units 50a to 50d, difference data of the update software, compressed data obtained by compressing the update software, and divided data obtained by dividing the update software, difference data, or compressed data. The update data may also include the ECU_ID (or serial number) of the target electronic control unit and the ECU_Software_ID of the electronic control unit before the update. The update data is downloaded as the above-mentioned distribution package, and the distribution package includes update data for a single or multiple electronic control units.
[0041] The installation is a process in which the OTA master 30 writes update software (an updated program) to the target electronic control unit based on the update data downloaded from the center 10. The installation phase includes not only the execution of the installation, but also control of a series of processes related to the installation, such as a determination as to whether the installation can be performed, a request for consent to the installation from the vehicle user or administrator, the transfer of the update data, and the verification of the update software.
[0042] If the update data includes the update software itself (all data), the OTA master 30 transfers the update data (update software) to the target electronic control unit in the installation phase. If the update data includes compressed data, difference data, or divided data of the update software, the OTA master 30 may transfer the update data to the target electronic control unit and the target electronic control unit may generate the update software from the update data, or the OTA master 30 may generate the update software from the update data and then transfer the update software to the target electronic control unit. Here, the update software can be generated by decompressing the compressed data or assembling (integrating) the difference data or divided data.
[0043] The target electronic control unit can install the update software based on an installation request (or instruction) from the OTA master 30 (or the center 10). Alternatively, the target electronic control unit that receives the update data may autonomously install the software without receiving an explicit instruction from the OTA master 30.
[0044] Activation is a process in which the target electronic control unit activates the installed update software. The activation phase includes not only the execution of activation, but also a series of controls related to activation, such as judging whether activation can be executed, requesting consent to activation from the vehicle user or administrator, and verifying the execution result.
[0045] The activation of the update software can be performed by the target electronic control unit based on an activation request (or instruction) from the OTA master 30 (or the center 10). Alternatively, the target electronic control unit that has received the update data may autonomously activate the software after the installation is completed, without receiving an explicit instruction from the OTA master 30.
[0046] The software update process can be performed consecutively or in parallel for each of the multiple electronic control units.
[0047] Furthermore, in this specification, the "software update process" includes not only a process in which download, installation, and activation are all performed consecutively, but also a process in which only some of the download, installation, and activation are performed.
[0048] [process] Next, with further reference to FIGS. 8 to 12, the processing executed in the network system according to this embodiment will be described.
[0049] Fig. 8 is a flowchart illustrating an example of a distribution control process executed by each component of the center 10. The distribution control process shown in Fig. 8 is started when the center 10 receives an update confirmation request transmitted by the OTA master 30.
[0050] (Step S801) The communication unit 16 determines whether or not a software update check request has been received from the OTA master 30. If an update check request has been received (step S801, YES), the process proceeds to step S802, and if an update check request has not been received (step S801, NO), the process proceeds to step S804.
[0051] (Step S802) The control unit 17 checks whether there is software that needs to be updated. This check is performed based on the current version of the software of each of the electronic control units 50a to 50d mounted on the vehicle acquired by the determination unit 18 from the vehicle configuration information included in the update confirmation request, and the latest version of each piece of software stored in the storage unit 15. After checking whether there is software that needs to be updated, the process proceeds to step S803.
[0052] (Step S803) The control unit 17 determines whether or not there is software update data for the electronic control units 50a to 50d mounted on the vehicle included in the update confirmation request based on the update management information stored in the storage unit 15, and transmits information indicating the presence or absence of update data based on the determination result to the OTA master 30. When the presence or absence of update data is transmitted, the process proceeds to step S804.
[0053] (Step S804) The communication unit 16 determines whether or not a download request for the distribution package has been received from the OTA master 30. If a download request has been received (step S804, YES), the process proceeds to step S805, and if no download request has been received (step S804, NO), the process proceeds to step S801.
[0054] (Step S805) The control unit 17 judges whether an electronic control unit (ECU) having software that needs to be updated (hereinafter referred to as "update target software") is a first electronic control unit that needs to have mutually coordinated control functions, or a second electronic control unit that does not need to have mutually coordinated control functions. If the electronic control unit having the update target software is the first electronic control unit (step S805, first ECU), the process proceeds to step S806, and if the electronic control unit having the update target software is the second electronic control unit (step S805, second ECU), the process proceeds to step S807.
[0055] (Step S806) The control unit 17 executes a process for determining a distribution package of update data for the software of the first electronic control unit (a distribution package determination process for the first ECU). When the execution of the distribution package determination process for the first ECU is completed, the process proceeds to step S808.
[0056] (Step S807) The control unit 17 executes a process for determining a distribution package of update data for the software of the second electronic control unit (a distribution package determination process for the second ECU). When the execution of the distribution package determination process for the second ECU is completed, the process proceeds to step S808.
[0057] (Step S808) The communication unit 16 transmits the distribution package determined by the control unit 17 to the OTA master 30. When the distribution package is transmitted, the process proceeds to step S801.
[0058] The distribution package determination process for the first ECU shown in step S806 in Fig. 8 will be described with reference to Fig. 9. Fig. 9 is a flowchart illustrating an example of the distribution package determination process for the first ECU executed by the control unit 17 of the center 10.
[0059] (Step S901) The control unit 17 judges whether the version difference of the software to be updated exceeds a predetermined value. The version difference of the software to be updated is the difference between the latest version of the software stored in the storage unit 15 and the current version of the software acquired from the vehicle. This judgment is made to judge whether the current version of the software is significantly different from the latest version (there is a large gap between the two versions). For example, if the latest version is 4.0 and the current version is 3.0, the version difference of the software is 1.0. The predetermined value can be set based on the update efficiency based on the amount of data and the update time when comparing a case where the version is upgraded all at once using all the data with a case where the version is upgraded step by step using the difference data. If the version difference of the software to be updated exceeds the predetermined value (step S901, Yes), the process proceeds to step S902, and if the version difference of the software to be updated is equal to or less than the predetermined value (step S901, No), the process proceeds to step S903.
[0060] (Step S902) The control unit 17 determines a package including at least all data of the latest version of the software to be updated (i.e., a full data package) as the distribution package. When the distribution package is determined, the first ECU distribution package determination process ends.
[0061] (Step S903) The control unit 17 determines a package including difference data between versions of all software of the first electronic control unit (i.e., a difference data package) as the distribution package. When the distribution package is determined, the first ECU distribution package determination process ends.
[0062] Here, a specific example of the first ECU distribution package determination process will be described with reference to FIG. 6, FIG. 7A, FIG. 7B, and FIG. 11. It is assumed that the predetermined value of the version difference is 2.0. In FIG. 11(a), the current version 3.0 of each of the software of the first electronic control units ECU-A, ECU-B, and ECU-C that needs to be updated is not a version difference that exceeds the predetermined value from the latest version 4.0 (see FIG. 6). Therefore, the center 10 transmits a difference data package 6.0 (see FIG. 7A) as a distribution package to the OTA master 30 in response to the download request. In FIG. 11(b), the current version 3.0 of the software of the first electronic control unit ECU-C that needs to be updated is not a version difference that exceeds the predetermined value from the latest version 4.0. Therefore, the center 10 transmits a difference data package 6.0 as a distribution package to the OTA master 30 in response to the download request. 11(c), the current version 1.0 of the software of the first electronic control unit ECU-C that needs to be updated has a version difference exceeding a predetermined value from the latest version 4.0. Therefore, in response to the download request, the center 10 transmits the entire data package (see FIG. 7B) of the latest version 4.0 of the software of the first electronic control unit ECU-C as a distribution package to the OTA master 30.
[0063] Next, the process of determining a distribution package for the second ECU shown in step S807 of Fig. 8 will be described with reference to Fig. 10. Fig. 10 is a flowchart illustrating an example of the process of determining a distribution package for the second ECU executed by the control unit 17 of the center 10.
[0064] (Step S1001) The control unit 17 judges whether the size of all data of the software to be updated exceeds a predetermined size. The size (amount of data) of all data of the software is pre-stored in the storage unit 15 (see FIG. 7B). When there are multiple pieces of software to be updated, the size is the total value of all data of the multiple pieces of data. The predetermined size is a value set based on whether the vehicle can download all data of the software to be updated, and can be any value equal to or less than the capacity of the data storage area available for downloading in the storage unit 37 of the vehicle, for example. When the size of all data of the software to be updated exceeds the predetermined size (step S1001, Yes), the process proceeds to step S1004, and when the size of all data of the software to be updated is equal to or less than the predetermined size (step S1001, No), the process proceeds to step S1002.
[0065] (Step S1002) The control unit 17 judges whether the estimated time until the update of the target software is completed is shorter in the update process using all data or in the update process using differential data. The time until the software update is completed can be estimated based on, for example, the congestion of the communication band, the current version of the software, the processing capacity of the electronic control unit, the type of non-volatile memory, etc. If the estimated time until the update of the target software is completed is shorter in the update process using all data (step S1002, all data), the process proceeds to step S1003, and if the estimated time until the update of the target software is completed is shorter in the update process using differential data (step S1002, differential data), the process proceeds to step S1004.
[0066] (Step S1003) The control unit 17 determines a package including at least all data of the latest version of the software to be updated (i.e., a full data package) as the distribution package. When the distribution package is determined, the second ECU distribution package determination process ends.
[0067] (Step S1004) The control unit 17 determines a package including at least difference data between versions of the software to be updated (i.e., a difference data package) as the distribution package. When the distribution package is determined, the second ECU distribution package determination process ends.
[0068] Here, a specific example of the process of determining the distribution package for the second ECU will be described with reference to Figs. 6, 7A, 7B, and 12. The predetermined size is assumed to be 550 MB. In Fig. 12(a), the total data required to upgrade the software of the second electronic control unit ECU-E, which is currently version 2.0, to the latest version 3.0 (see Fig. 6), which is 600 MB (see Fig. 7B), exceeds the predetermined size. Therefore, the center 10 transmits the difference data package 5.0, which is 190 MB in size (see Fig. 7A), to the OTA master 30 as a distribution package in response to the download request. In Fig. 12(b), the total data required to upgrade the software of the second electronic control unit ECU-D, which is currently version 3.0, to the latest version 5.0 (see Fig. 6), which is 540 MB (see Fig. 7B), is equal to or smaller than the predetermined size. Here, in this example, it is assumed that it takes less time to update the version stepwise from 3.0 to 4.0 to 5.0 using differential data than to update all data from 3.0 to 5.0 all at once. Therefore, under this assumption, the center 10 transmits differential data packages 5.0 and 6.0 (see FIG. 7A) to the OTA master 30 as a distribution package in response to the download request. In FIG. 12(c), the total data required to upgrade the software of the second electronic control unit ECU-D, which is currently version 1.0, to the latest version 5.0 is 540 MB or less, which is a predetermined size. Here, in this example, it is assumed that it takes less time to update all data from 1.0 to 5.0 all at once than to update all data stepwise from 1.0 to 2.0 to 3.0 to 4.0 to 5.0 using differential data. Therefore, in this assumption, the center 10 transmits the entire data package (see FIG. 7B) of the latest version 5.0 of the software of the second electronic control unit ECU-D to the OTA master 30 as a distribution package in response to the download request.
[0069] In the above embodiment, in step S805, the electronic control unit (ECU) having the software to be updated is either the first electronic control unit or the second electronic control unit. However, there may be cases where the software of the first electronic control unit and the software of the second electronic control unit are to be updated at the same time. In such a case, the first ECU distribution package determination process (FIG. 9) and the second ECU distribution package determination process (FIG. 10) are performed in parallel, and one of the extracted packages is determined as the distribution package.
[0070] Fig. 13 is a flowchart illustrating an example of a software update control process executed by each component of the OTA master 30. The software update control process shown in Fig. 13 is executed, for example, when the power supply of the vehicle is turned on.
[0071] (Step S1301) The communication unit 38 transmits a confirmation request to the center 10 as to whether or not there is update data for the software of the electronic control units 50a to 50d. This confirmation request includes the vehicle ID and the current version of the software of the electronic control units 50a to 50d. When the confirmation request is transmitted to the center 10, the process proceeds to step S1302.
[0072] (Step S1302) The communication unit 38 receives the confirmation result in response to the confirmation request for the update data from the center 10. When the confirmation result is received, the process proceeds to step S1303.
[0073] (Step S1303) The control unit 39 determines whether or not there is software update data for at least one of the electronic control units 50a to 50d, based on the confirmation result of the update data confirmation request received by the communication unit 38. If there is at least one piece of software update data (step S1303, Yes), the process proceeds to step S1304, and if there is no software update data at all (step S1303, No), the software update control process ends.
[0074] (Step S1304) The control unit 39 downloads the update data. More specifically, the communication unit 38 transmits a download request for a distribution package including the update data to the center 10, and receives the distribution package transmitted from the center 10 in response to the download request. The communication unit 38 stores the received distribution package in the storage unit 37. Once the update data has been downloaded, the process proceeds to step S1305.
[0075] (Step S1305) The control unit 39 executes an installation process for the target electronic control unit. More specifically, the control unit 39 transfers the update data included in the distribution package to the target electronic control unit and instructs the target electronic control unit to install the update data. The target electronic control unit writes the update data received from the OTA master 30 into a data storage area. Once the installation process has been executed, the process proceeds to step S1306.
[0076] (Step S1306) The control unit 39 executes an activation process for the target electronic control unit. More specifically, the control unit 39 instructs the target electronic control unit, which has written the update data to its data storage area, to activate the updated software. The target electronic control unit restarts when a specific input operation, such as turning the power off, is performed, and executes the updated software. When the activation process is executed, the software update control process ends.
[0077] <Effects> As described above, according to the network system according to an embodiment of the present disclosure, the center 10 prestores, as update data, a package including difference data between versions of all software of a plurality of electronic control units (first electronic control units) that need to have their control functions matched with each other, and a package including all data of the latest version of the software of the electronic control units (first electronic control unit, second electronic control unit). Then, the center 10 dynamically changes the package specifications of the update data for the software that needs to be updated, based on the current version of the software of the electronic control units 50a to 50d mounted on the vehicle received from the vehicle (OTA master 30) and the latest version of the software stored in the center 10. This improves the degree of freedom in the method of distributing the update data, and makes it possible to prevent the efficiency of the software update process from deteriorating.
[0078] Furthermore, the center 10 appropriately determines whether to distribute a package including differential data between versions or a package including all data of the latest version based on the version difference of the software requiring the update, the amount of update data, the expected time until the update is completed, etc. This effectively prevents the efficiency of the software update process from deteriorating.
[0079] The above describes one embodiment of the disclosed technology, but the present disclosure can be understood as a distribution control method, a distribution control program, or a computer-readable non-transitory storage medium storing a distribution control program, executed not only by a center but also by a center equipped with a processor, memory, and storage device. [Industrial Applicability]
[0080] The disclosed technique can be used in a network system for updating software in an electronic control unit. [Explanation of symbols]
[0081] 10 Center 11, 31 CPU 12,32 RAM 13, 34 Storage device 14, 36 Communication equipment 15, 37 Storage section 16, 38 Communications Department 17, 39 Control section 18 Judgment section 30 OTA Master 33 ROM 35 Microcomputer 50a~50d Electronic Control Unit (ECU) 60a~60d Bus 70 Display device 80 Communication Module 90 In-vehicle network 100 Network
Claims
1. A center that distributes software update data for a plurality of electronic control units to a vehicle having the plurality of electronic control units, a storage unit that stores update management information including a combination of the latest versions of software of a plurality of first electronic control units that are electronic control units that need to have their control functions coordinated with each other; a receiving unit for receiving current versions of software of the plurality of electronic control units from the vehicle; a determination unit that determines whether or not software update is required for at least one of the first electronic control units based on the update management information stored in the storage unit and the current version of the software received by the receiving unit; a control unit that, when the determination unit determines that the software of the first electronic control unit needs to be updated, determines, based on the software of the first electronic control unit that needs to be updated, either a package including difference data between versions of all of the software of the plurality of first electronic control units or a package including all data of the latest version of the software of the first electronic control unit that needs to be updated, as a distribution package; a transmission unit that transmits the distribution package determined by the control unit to the vehicle based on a request from the vehicle.
2. The center described in claim 1, wherein the control unit determines, when a difference between a current version of the software of the first electronic control unit that requires updating and the latest version of the software of the first electronic control unit that requires updating exceeds a predetermined value, that a package including all data of the latest version of the software of the first electronic control unit that requires updating is the distribution package.
3. The update management information further includes the latest version of software of one or more second electronic control units that are electronic control units that do not need to be coordinated in control function with the plurality of first electronic control units; The determination unit determines whether or not software of at least one of the second electronic control units needs to be updated based on the update management information stored in the storage unit and a current version of the software received by the receiving unit; The center described in claim 1 or 2, wherein when the determination unit determines that an update of the software of the second electronic control unit is necessary, the control unit determines, based on the software of the second electronic control unit that needs to be updated, either a package including difference data between versions regarding the software of the second electronic control unit or a package including all data of the latest version of the software of the second electronic control unit that needs to be updated, as the distribution package.
4. The center described in claim 3, wherein when the amount of data of a package including only the latest version of the software of the second electronic control unit that needs to be updated exceeds the capacity of the data storage area of the vehicle, the control unit determines a package including difference data between versions of the software of the second electronic control unit as the distribution package.
5. The center described in claim 4, wherein when the amount of data in a package including all data of the latest version of the software of the second electronic control unit that requires the update is less than the capacity of the data storage area provided in the vehicle, the control unit determines the package that has the shortest predicted time until the software update is completed as the distribution package.
6. The center described in claim 4, wherein when the amount of data of a package including all data of the latest version of the software of the second electronic control unit that needs to be updated is equal to or less than the capacity of the data storage area provided in the vehicle, the control unit determines the package with the smaller amount of data to be the distribution package.
7. A distribution control method executed by a computer at a center that includes a processor, a memory, and a storage device and distributes software update data for a plurality of electronic control units to a vehicle having the plurality of electronic control units, the method comprising: storing update management information including a combination of the latest versions of software of the plurality of first electronic control units, which are electronic control units that need to have their control functions coordinated with each other; receiving a current version of software for the plurality of electronic control units from the vehicle; determining whether a software update is required for at least one of the first electronic control units based on the update management information and the current version of the software; when it is determined that the software of the first electronic control unit needs to be updated, determining, as a distribution package, either a package including difference data between versions of all software of the plurality of first electronic control units or a package including all data of the latest version of the software of the first electronic control unit that needs to be updated, based on the software of the first electronic control unit that needs to be updated; transmitting the determined distribution package to the vehicle based on a request from the vehicle.
8. A distribution control program executed by a computer at a center that includes a processor, a memory, and a storage device and distributes software update data for a plurality of electronic control units to a vehicle having the plurality of electronic control units, the distribution control program comprising: storing update management information including a combination of the latest versions of software of the plurality of first electronic control units, which are electronic control units that need to have their control functions coordinated with each other; receiving a current version of software for the plurality of electronic control units from the vehicle; determining whether a software update is required for at least one of the first electronic control units based on the update management information and the current version of the software; when it is determined that the software of the first electronic control unit needs to be updated, determining, as a distribution package, either a package including difference data between versions of all software of the plurality of first electronic control units or a package including all data of the latest version of the software of the first electronic control unit that needs to be updated, based on the software of the first electronic control unit that needs to be updated; and transmitting the determined distribution package to the vehicle based on a request from the vehicle.
Citation Information
Patent Citations
Software updating device and software updating method
JP2016170740A
Control device, program update system, and program update method
JP2018180948A
Relay device, program update system, and program update method
JP2018181377A
Electronic control device, electronic control system for vehicle, method for determining consistency in difference data, and program for determining consistency in difference data
JP2020027634A
