Center, distribution control method, and distribution control program
The center system verifies ECU software versions against stored histories to detect and prevent unauthorized changes, ensuring authorized updates and maintaining software integrity.
Patent Information
- Application Number
- JP2021063112
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-01
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-04-01
AI Technical Summary
Existing software update systems for vehicle electronic control units (ECUs) fail to recognize unauthorized software version changes, which can occur due to unauthorized rewriting, making it difficult to detect and manage software version inconsistencies.
A center system that communicates with vehicles to verify the current software versions of ECUs against stored update histories, sending error notifications if versions do not match, thereby ensuring authorized updates and preventing unauthorized changes.
The system effectively identifies and prevents unauthorized software version changes by ensuring that only authorized updates are distributed, maintaining software integrity and user convenience.
Smart Images

Figure 0007540382000009 
Figure 0007540382000010 
Figure 0007540382000004
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] When an electronic control unit is replaced due to a malfunction or other reason, the version of the software implemented in the electronic control unit may change before and after the replacement. If the software version changes as a result of replacing the electronic control unit, the parties involved in the replacement work (workers, users, etc.) can recognize that the version change has occurred without OTA. However, if the software version is changed by unauthorized software rewriting, there is a risk that the user or vehicle will not be able to recognize that the version change has occurred without OTA.
[0007] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide a center, etc. that can recognize that a version change has occurred other than OTA, even if the software version has been changed due to unauthorized software rewriting. [Means for solving the problem]
[0008] In order to solve the above problems, one aspect of the disclosed technology is a center capable of communicating with a vehicle, the center comprising: a memory unit that stores an update history of software of an electronic control unit installed in the vehicle; a receiving unit that receives a current version of the software of the electronic control unit from the vehicle; a determination unit that determines whether or not the current version received by the receiving unit matches the version at the time of the last update recorded in the update history based on the update history; and a transmission unit that transmits an error notification to the vehicle when the determination unit determines that the current version received by the receiving unit does not match the version at the time of the last update. Effect of the Invention
[0009] According to the center and the like of the present disclosure, even if the software version is changed by unauthorized software rewriting, it is possible to recognize that the version change has occurred in a manner other than OTA. [Brief description of the drawings]
[0010] [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 history information stored by the center [Figure 7] Flowchart of update confirmation request processing executed by the center [Figure 8] Diagram of software version consistency [Figure 9] Flowchart of download request processing executed by the center [Figure 10] Flowchart of software update control process executed by OTA master DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] The center of the present disclosure transmits an error notification to the vehicle when the current version of the software of the electronic control unit received from the vehicle does not match the version at the time of the last update in the software update history of the electronic control unit stored and managed by the center. This allows the vehicle to recognize that the version change has occurred in a manner other than OTA, even if the software version has been changed by unauthorized software rewriting. Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings.
[0012] <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.
[0013] (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.
[0014] 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.
[0015] Fig. 3 is a functional block diagram of the center 10 shown in Fig. 2. The center 10 shown in Fig. 3 includes a memory unit 15, a communication unit 16, a control unit 17, a determination unit 18, an inquiry unit 19, and a reception unit 20. The memory unit 15 is realized by the storage device 13 shown in Fig. 2. The communication unit 16, the control unit 17, the determination unit 18, the inquiry unit 19, and the reception unit 20 are realized by the CPU 11 shown in Fig. 2 executing a program stored in the storage device 13 using the RAM 12.
[0016] The storage unit 15 stores information related to software update processing of one or more electronic control units 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 to 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 to 50d. As the information indicating the software available in the electronic control units 50a to 50d, for example, a combination of the latest versions of each software of the multiple electronic control units 50a to 50d is defined. 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.
[0017] The storage unit 15 also stores update history information, which is a software update history of the electronic control units 50a to 50d mounted on the vehicle. The update history information is information in which the contents of software updates performed on the vehicle up to now are cumulatively recorded for each vehicle ID that identifies the vehicle. FIG. 6 shows an example of the update history information. The update history information illustrated in FIG. 6 records a number indicating the number of updates performed, the date and time when the update was performed, and the software version of each electronic control unit (ECU) changed in the update in association with each other. For example, FIG. 6 shows that the electronic control unit ECU-A of the vehicle with vehicle ID_0001 was updated to version 2.0, the electronic control unit ECU-B was updated to version 2.0, and the electronic control unit ECU-C was updated to version 3.0 in the third update process performed on July 31, 20XX at 14:47:58.
[0018] The communication unit 16 transmits and receives data, information, requests, and the like to and from the OTA master 30. The communication unit 16 can receive a software update confirmation request from the OTA master 30 (reception unit). The update confirmation request is information transmitted from the OTA master 30 to the center 10 when, for example, the power supply 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 (transmission unit). Furthermore, when a determination unit 18 described later determines that update data distribution by OTA is invalid, the communication unit 16 transmits an error notification to the OTA master 30 (transmission unit). Furthermore, the communication unit 16 can receive a transmission request (download request) for a distribution package from the OTA master 30 (reception unit). When the communication unit 16 receives a download request for a distribution package, the communication unit 16 transmits a distribution package including software update data for the electronic control units 50a to 50d generated by the control unit 17 described below to the OTA master 30 based on whether or not update data distribution via OTA is enabled / disabled and whether or not an instruction to cancel the disablement is given (transmission unit).
[0019] The determination unit 18 acquires the current version of each piece of software in the electronic control units 50a to 50d from the vehicle configuration information included in the update confirmation request received by the communication unit 16. Then, based on the update history information stored in the storage unit 15, the determination unit 18 determines whether or not the current version of each piece of software acquired from the vehicle matches the version of each piece of software at the time of the last update in the vehicle managed by the center 10 as an update history.
[0020] When the judgment unit 18 determines that the current version of each piece of software does not match the version of each piece of software at the time of the last update, the inquiry unit 19 can inquire of another center (second center) different from the center 10 or of a communication terminal owned by a dealer or a pre-registered user, etc., whether the version of the software in the electronic control units 50a to 50d has been changed.
[0021] The reception unit 20 can receive an instruction to cancel the invalidation when the update data distribution by OTA is invalid. The instruction to cancel the invalidation is given by a dealer, a pre-registered user, or the like when the current version of each piece of software no longer matches the version of each piece of software at the time of the last update for a valid reason such as replacement of an electronic control unit.
[0022] When the determination unit 18 determines that the current version of each piece of software matches the version of each piece of software at the time of the last update, the control unit 17 enables the update data distribution by OTA. On the other hand, when the determination unit 18 determines that the current version of each piece of software does not match the version of each piece of software at the time of the last update, the control unit 17 disables the update data distribution by OTA. The result of the control unit 17 disabling the update data distribution by OTA is transmitted to the OTA master 30 by the communication unit 16 in the form of an error notification. Furthermore, when the communication unit 16 receives an update check request from the OTA master 30, 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 identified by the vehicle ID included in the update check request, based on the update management information stored in the storage unit 15. The result of the determination 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 OTA update data distribution is enabled and there is update data for the software of the electronic control units 50a to 50d, upon receiving a download request for a distribution package from the OTA master 30, the control unit 17 generates a distribution package including the corresponding update data stored in the memory unit 15.
[0023] (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.
[0024] 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).
[0025] 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.
[0026] 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, a control unit 39, and an output unit 40. The storage unit 37 is realized by the storage device 34 shown in Fig. 3. The communication unit 38, the control unit 39, and the output unit 40 are realized by the CPU 31 shown in Fig. 3 executing a program stored in the ROM 33 using the RAM 32.
[0027] 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.
[0028] The communication unit 38 transmits and receives data, information, requests, and the like to and from the center 10. For example, the communication unit 38 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, for example, a vehicle ID for identifying the vehicle and information on the software versions of the electronic control units 50a to 50d connected to the in-vehicle network 90. The vehicle ID and the software versions 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 whether the delivery of the update data by OTA is valid or invalid, by comparing the vehicle ID and the software version of the last update (latest) 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. In addition, the communication unit 38 receives an error notification when the delivery of the update data by OTA is invalid. When there is update data for the software of the electronic control units 50a-50d, the communication unit 38 transmits a download request for a distribution package including the update data to the center 10, and functions as a receiving unit that receives (downloads) the distribution package transmitted from the center 10. In addition, the communication unit 38 transmits to the center 10 the update status of the software transmitted by the electronic control units 50a-50d, which is acquired by an acquisition unit 42 described later.
[0029] 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 the response and error notification 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.
[0030] When the communication unit 38 receives an error notification from the center 10, the output unit 40 can output an instruction to display an error on the display device 70. By displaying the error via the display device 70, it is possible to inform the user that software update processing cannot be performed because, for example, OTA update data distribution from the center 10 to the vehicle is invalid.
[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 that there is update data during software update processing of the electronic control units 50a to 50d, displaying that software update processing cannot be performed because OTA update data distribution is invalid, displaying a consent request screen for requesting consent to the software update from the vehicle user or administrator, and displaying the result of the software update. As the display device 70, a display device of a car navigation system can typically be used, but is not particularly limited as long as it can display information required during program 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] The OTA master 30 transmits a software update check request to the center 10, for example, 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 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 software versions of the electronic control units 50a to 50d are used to determine whether there is update data for the software of the electronic control units 50a to 50d, and whether the distribution of the update data by OTA is valid or invalid, by comparing the vehicle ID and the latest software version 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. Furthermore, if the delivery of update data by OTA is invalid, the OTA master 30 receives an error notification from the center 10. If 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 delivery package to the center 10 and receives the delivery package transmitted from the center 10. In addition to the update data, the delivery package may include verification data for verifying the authenticity of the update data, the number of update data, the order of installation, the order of activation, type information, various control information used when updating the software, and the like.
[0035] The OTA master 30 determines whether or not there is update data for the software of the electronic control units 50a to 50d, based on the response and error notification 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 a program, installation and activation are performed consecutively, so consent request processing for the software update is performed before installation is performed. If the non-volatile memory of the electronic control unit is a dual bank memory having two storage areas for storing a program, consent request processing for the software update is performed at least after installation is performed and before activation is performed. 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 update software for the electronic control units 50a to 50d, compressed data obtained by compressing the update software, and divided data obtained by dividing the update software or the 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, 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 and 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. 7 to 10, the processing executed in the network system according to this embodiment will be described.
[0049] 7 is a flowchart explaining the procedure of the update confirmation request process executed by each component of the center 10. The update confirmation request process shown in FIG. 7 is started when the center 10 receives an update confirmation request transmitted by the OTA master 30.
[0050] (Step S701) The determination unit 18 acquires the current version of the software of each of the electronic control units 50a to 50d mounted on the vehicle in response to the update confirmation request received by the communication unit 16 from the OTA master 30. When the current software version is acquired, the process proceeds to step S702.
[0051] (Step S702) The determination unit 18 checks the consistency of the software versions. This consistency check is performed by determining whether or not the current version of each piece of software acquired from the vehicle matches the version of each piece of software at the time of the last update in the vehicle stored as update history information in the storage unit 37 of the center 10. Once the consistency check is completed, the process proceeds to step S703.
[0052] (Step S703) As a result of checking the consistency, the determination unit 18 determines whether the software versions of the electronic control units 50a to 50d are consistent. If the current version of each piece of software matches the version at the time of the last update, the determination unit 18 determines that there is consistency, and if the current version of each piece of software does not match the version at the time of the last update, the determination unit 18 determines that there is no consistency. If it is determined that there is consistency (step S703, Yes), the process proceeds to step S704, and if it is determined that there is no consistency (step S703, No), the process proceeds to step S705.
[0053] (Step S704) Since the versions of the software are consistent, the control unit 17 enables the OTA update data distribution. When the OTA update data distribution is enabled, the process proceeds to step S706.
[0054] (Step S705) Since the versions of the software are not consistent, the control unit 17 disables the OTA update data distribution. When the OTA update data distribution is disabled, the process proceeds to step S707.
[0055] Here, the consistency of software versions will be described with reference to FIG. 8. FIG. 8 shows an example in which the OTA master 30 transmits the current software versions of the electronic control units ECU-A, ECU-B, and ECU-C to the center 10 when the storage unit 15 of the center 10 stores the update history information shown in FIG. 6. In FIG. 8(a), the current versions "ECU-A: 2.0, ECU-B: 2.0, ECU-C: 3.0" match the versions at the time of the last update (each version indicated by number 3 in FIG. 6), so the update data distribution by OTA is validated. On the other hand, in FIG. 8(b), the version of ECU-C among the current versions "ECU-A: 2.0, ECU-B: 2.0, ECU-C: 1.0" is old and does not match the versions at the time of the last update (each version indicated by number 3 in FIG. 6), so the update data distribution by OTA is invalidated. Also, in (c) of Figure 8, the version of ECU-A is newer than the current versions "ECU-A: 2.0, ECU-B: 2.0, ECU-C: 1.0" and does not match the versions at the time of the last update (the versions numbered 3 in Figure 6), so the update data distribution via OTA is invalidated.
[0056] (Step S706) 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 identified by the vehicle ID included in the update check 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, this update check request process ends.
[0057] (Step S707) The communication unit 16 transmits an error notification indicating that the update data distribution has been disabled to the OTA master 30. When the error notification is transmitted, the update confirmation request process ends. Note that even when the error notification is transmitted, the presence or absence of update data may be transmitted to the OTA master 30 in the same manner as in step S706.
[0058] In the above embodiment, an example has been described in which, if the center 10 determines in step S703 that the software versions are inconsistent, it disables the update data distribution by OTA and transmits an error notification to the OTA master 30 (steps S705 and S707). However, if the center 10 can determine that the current version of the software received from the vehicle contains a defect, it may distribute update data required to resolve the defect to the OTA master 30 without disabling the update data distribution by OTA.
[0059] 9 is a flowchart illustrating the procedure of the download request process executed by each component of the center 10. The download request process shown in FIG. 9 is started when the center 10 receives a download request for a distribution package transmitted by the OTA master 30.
[0060] (Step S901) The control unit 17 judges whether or not the update data distribution by OTA is enabled. If the update data distribution by OTA is enabled (step S901, YES), the process proceeds to step S905, and if the update data distribution by OTA is disabled (step S901, NO), the process proceeds to step S902.
[0061] (Step S902) The inquiry unit 19 inquires of a center (second center) different from the center 10, or of a dealer or a communication terminal previously owned by a user, as to whether or not the software version of the electronic control units 50a to 50d has been updated. When the inquiry is made, the process proceeds to step S903.
[0062] (Step S903) The reception unit 20 judges whether or not an instruction to cancel the invalidation of the update data distribution by OTA has been received. An example of an instruction to cancel the invalidation is to send a one-time password issued by the center 10 to a communication terminal owned by a dealer or a user, or a mobile terminal registered as a vehicle key, and the dealer or user returns (inputs) this one-time password via the Web. In addition, other possible methods include a method in which a predetermined contact point (such as a vehicle manufacturer (OEM) contact point) issues an instruction to cancel the invalidation to the center 10 after authentication by telephone between the user and the predetermined contact point, or a method in which a dealer system that has confirmed that a vehicle will be delivered to the dealer cooperates with the center 10 to notify the center 10 in advance that a dealer operation will be performed. If an instruction to cancel the invalidation has been received (step S903, Yes), the process proceeds to step S904, and if an instruction to cancel the invalidation has not been received (step S903, No), the download request process ends.
[0063] (Step S904) Since there is an instruction to cancel the disablement of the update data distribution by OTA, the control unit 17 enables the update data distribution. When the update data distribution by OTA is enabled, the process proceeds to step S905.
[0064] (Step S905) The control unit 17 generates a distribution package including update data for the software of the electronic control units 50a to 50d. The communication unit 16 transmits the distribution package generated by the control unit 17 to the OTA master 30. When the distribution package is generated and transmitted, this download request process ends.
[0065] Fig. 10 is a flowchart illustrating the procedure of a software update control process executed by each component of the OTA master 30. The software update control process shown in Fig. 10 is executed, for example, when the power supply of the vehicle is turned on.
[0066] (Step S1001) 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 S1002.
[0067] (Step S1002) 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 S1003.
[0068] (Step S1003) The control unit 39 judges whether or not the software can be updated. This judgment can be made based on whether or not the communication unit 38 has received an error notification from the center 10 indicating that the update data distribution has been disabled. If the software can be updated (step S1003, Yes), the process proceeds to step S1004, and if the software cannot be updated (step S1003, No), the process proceeds to step S1008.
[0069] (Step S1004) 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 S1004, Yes), the process proceeds to step S1005, and if there is no software update data at all (step S1004, No), the software update control process ends.
[0070] (Step S1005) The control unit 39 downloads the update data. More specifically, the communication unit 38 transmits a download request for a distribution package 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 S1006.
[0071] (Step S1006) 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. When the installation process is executed, the process proceeds to step S1007.
[0072] (Step S1007) 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.
[0073] (Step S1008) The output unit 40 outputs an instruction to display an error to the display device 70 based on the error notification received by the communication unit 38 from the center 10. When the instruction to display an error is given, the software update control process ends.
[0074] <Effects> As described above, according to the network system according to an embodiment of the present disclosure, the center 10 transmits an error notification to the vehicle when the current version of the software of the electronic control units 50a-50d received from the vehicle (OTA master 30) does not match the version at the time of the last update in the update history information of the software of the electronic control units 50a-50d stored and managed by the center 10. This notification allows the vehicle to recognize that the version change occurred in the vehicle other than through OTA, even if the software version has been changed by unauthorized software rewriting. In addition, by displaying an error on the display device 70 or the like based on the error notification, the user or the like can be notified that the software cannot be updated by OTA.
[0075] Furthermore, if the current version of the software in the electronic control units 50a to 50d does not match the version at the time of the last update in the update history information, the center 10 disables the delivery of update data by OTA. This makes it possible to prevent delivery of update data to electronic control units having unauthorized software.
[0076] In addition, if the center 10 finds for a valid reason that the current version of the software of the electronic control units 50a to 50d does not match the version at the time of the last update in the update history information, the center 10 can cancel the disabling of OTA update data distribution at the instruction of the user, etc., so that user convenience is not unnecessarily impaired.
[0077] Furthermore, when the current version of the software in the electronic control units 50a to 50d does not match the version at the time of the last update in the update history information, the center 10 inquires of a center (a second center) different from the center 10 or a communication terminal owned by a dealer or a preregistered user, etc., as to whether the version of the software in the electronic control units 50a to 50d has been changed. This makes it possible to check whether the software version has been changed due to unauthorized software rewriting.
[0078] The order of the above-mentioned error notification, disabling of OTA update data distribution, and inquiry to the user, etc. is not limited to that in the embodiment, and can be set arbitrarily.
[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 19 Inquiry Department 20 Reception 30 OTA Master 33 ROM 35 Microcomputer 40 Output section 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 capable of communicating with a vehicle, a storage unit that stores a software update history of an electronic control unit mounted on the vehicle; a receiver for receiving a current version of the software of the electronic control unit from the vehicle; a determination unit that determines, based on the update history, whether or not the current version received by the receiving unit matches the version at the time of the last update recorded in the update history; a transmission unit that transmits an error notification to the vehicle when the determination unit determines that the current version received by the reception unit does not match the version at the time of the last update; A center comprising: an inquiry unit that, when the determination unit determines that the current version received by the receiving unit does not match the version at the time of the last update, inquires of a second center or terminal different from the center as to whether the version of the software of the electronic control unit has been changed.
2. 2. The center according to claim 1, further comprising a control unit that disables update data distribution to the vehicle when the determination unit determines that the current version received by the receiving unit does not match the version at the time of the last update.
3. A center capable of communicating with a vehicle, a storage unit that stores a software update history of an electronic control unit mounted on the vehicle; a receiver for receiving a current version of the software of the electronic control unit from the vehicle; a determination unit that determines, based on the update history, whether or not the current version received by the receiving unit matches the version at the time of the last update recorded in the update history; a transmission unit that transmits an error notification to the vehicle when the determination unit determines that the current version received by the reception unit does not match the version at the time of the last update; an inquiry unit that inquires of a second center or a terminal different from the center as to whether or not a version of the software of the electronic control unit has been changed when the judgment unit judges that the current version received by the receiving unit does not match the version at the time of the last update, and a control unit that disables distribution of update data to the vehicle when the judgment unit judges that the current version received by the receiving unit does not match the version at the time of the last update, The control unit, if the current version received by the receiving unit contains a defect, delivers update data for eliminating the defect without disabling update data delivery to the vehicle.
4. a reception unit that receives an instruction to cancel the invalidation of the update data distribution, The center according to claim 1 , wherein the control unit enables the update data distribution to the vehicle when the reception unit receives the instruction.
5. A method for controlling distribution of software update data, the method being executed by a center computer that includes a processor, a memory, and a storage device and is capable of communicating with a vehicle, the method comprising: storing a software update history of an electronic control unit mounted on the vehicle; receiving a current version of the software of the electronic control unit from the vehicle; determining, based on the update history, whether the current version matches the version at the time of the last update recorded in the update history; sending an error notification to the vehicle if it is determined that the current version does not match the version at the time of the last update; A distribution control method comprising: if it is determined that the current version does not match the version at the time of the last update, inquiring of a second center or terminal different from the center as to whether or not the version of the software of the electronic control unit has been changed.
6. A method for controlling distribution of software update data, the method being executed by a center computer that has a processor, a memory, and a storage device and is capable of communicating with a vehicle, the method comprising: storing a software update history of an electronic control unit mounted on the vehicle; receiving a current version of the software of the electronic control unit from the vehicle; determining, based on the update history, whether the current version matches the version at the time of the last update recorded in the update history; sending an error notification to the vehicle if it is determined that the current version does not match the version at the time of the last update; when it is determined that the current version does not match the version at the time of the last update, inquiring of a second center or a terminal different from the center as to whether or not the version of the software of the electronic control unit has been changed; and when the determination unit determines that the current version does not match the version at the time of the last update, disabling update data distribution to the vehicle, The distribution control method, in which, in the invalidating step, if the current version includes a defect, update data for eliminating the defect is distributed without invalidating update data distribution to the vehicle.
7. A software update data distribution control program executed by a center computer that includes a processor, a memory, and a storage device and that is capable of communicating with a vehicle, the program comprising: storing a software update history of an electronic control unit mounted on the vehicle; receiving a current version of the software of the electronic control unit from the vehicle; Top and determining, based on the update history, whether the current version matches the version at the time of the last update recorded in the update history; sending an error notification to the vehicle if it is determined that the current version does not match the version at the time of the last update; A distribution control program including a step of inquiring of a second center or terminal different from the center as to whether or not the version of the software of the electronic control unit has been changed when it is determined that the current version does not match the version at the time of the last update.
8. A software update data distribution control program executed by a center computer that has a processor, a memory, and a storage device and that can communicate with a vehicle, comprising: storing a software update history of an electronic control unit mounted on the vehicle; receiving a current version of the software of the electronic control unit from the vehicle; determining, based on the update history, whether the current version matches the version at the time of the last update recorded in the update history; sending an error notification to the vehicle if it is determined that the current version does not match the version at the time of the last update; when it is determined that the current version does not match the version at the time of the last update, inquiring of a second center or a terminal different from the center as to whether or not the version of the software of the electronic control unit has been changed; and when the determination unit determines that the current version does not match the version at the time of the last update, disabling update data distribution to the vehicle, A distribution control program, wherein the disabling step, if the current version includes a defect, distributes update data for eliminating the defect without disabling update data distribution to the vehicle.
Citation Information
Patent Citations
Management system, management method, terminal equipment, management server, and program
JP2008181228A
Relay device, program update system, and program update method
JP2018181377A
Center device, specifications data generation method, and program for specifications data generation
JP2020027620A
Vehicle control device, vehicle control method, and program
JP2020062909A
Information processor, control system, system, information processing method, control method, and program
JP2022109181A
