OTA master, update control method, and update control program

The OTA master system addresses the inefficiencies of conventional OTA services by using SWIDs to determine necessary updates, reducing communication data and processing time for vehicle software updates.

JP7540391B2Active Publication Date: 2024-08-27TOYOTA JIDOSHA KK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2021081844
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-13
Publication Date
2024-08-27
Estimated Expiration
2041-05-13

AI Technical Summary

Technical Problem

The increasing number of electronic control units (ECUs) in vehicles leads to significant communication data and processing loads during software updates, making conventional OTA services inefficient.

Method used

An OTA master system that generates and transmits hash values for specific software groups (SWIDs) instead of all ECUs, determining necessary updates based on these groups, reducing communication data and processing time.

Benefits of technology

Reduces communication data and shortens update completion time by focusing on specific software configurations rather than comprehensive updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540391000009
    Figure 0007540391000009
  • Figure 0007540391000010
    Figure 0007540391000010
  • Figure 0007540391000006
    Figure 0007540391000006
Patent Text Reader

Abstract

To provide an OTA master capable of updating ECU software without transmitting data on all ECUs mounted in a vehicle.SOLUTION: An OTA master comprises: a configuration information acquisition unit for acquiring configuration information about a software group which is composed of a combination of software for one or more in-vehicle devices and in which a change has occurred in the configuration of the combination of the software; and a transmission unit for transmitting the acquired configuration information to an OTA center.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an OTA master that is connected to an in-vehicle network including a plurality of in-vehicle devices, is capable of communicating with an OTA center via the network, and updates software of the in-vehicle devices. [Background technology]

[0002] Conventionally, vehicles are equipped with multiple electronic control units (called "ECUs") for executing control functions. The ECU includes a processor and a storage unit, and the processor executes software stored in the storage unit to realize the control function of the ECU. The software stored in each ECU is updatable. Specifically, the software can be updated at a maintenance shop or the like using an external device connected via a diagnostic connector provided in the vehicle. In addition, the software can be updated using software downloaded from a distribution server provided in an update center via wireless communication by wirelessly connecting a communication device provided in the in-vehicle network to a communication network such as the Internet (for example, JP 2020-004245 A). This update service via wireless communication is called an OTA service. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-004245 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the update process of conventional OTA services, before starting an update for a specific vehicle, data on all ECUs installed in the vehicle is sent from the vehicle to a center to grasp the current software configuration of the vehicle. The center determines the necessity of updates, etc. based on the data.

[0005] However, in recent years, as vehicles have become more multifunctional, the number of ECUs contained in a vehicle has also increased, and there may be cases where the number of ECUs installed is close to 50. Therefore, if data about all ECUs were to be sent to the center every time, the amount of communication data would increase, and the load of the check process at the center would also be considerable.

[0006] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide an OTA master that is capable of updating ECU software without sending data on all ECUs implemented in a vehicle. [Means for solving the problem]

[0007] In order to solve the above problems, one aspect of the disclosed technology is an OTA master that is connected to an in-vehicle network including a plurality of in-vehicle devices, can communicate with an OTA center via the network, and updates software of one or more in-vehicle devices. The OTA master includes a configuration information acquisition unit that acquires configuration information related to a software group that is made up of a combination of software of one or more in-vehicle devices and in which a change has occurred in the configuration of the software combination, and a transmission unit that transmits the acquired configuration information to the OTA center. Effect of the Invention

[0008] According to the OTA master of the present disclosure, the amount of data communication in the update process can be reduced, and the time required to complete the update can be shortened. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a block diagram showing the overall configuration of a system according to an embodiment of the present invention; [Diagram 2] Block diagram showing the general configuration of center 1 [Diagram 3] Block diagram showing the schematic configuration of the OTA master 31 [Figure 4] Center 1 Functional Block Diagram [Diagram 5] OTA Master 31 Functional Block Diagram [Figure 6] A memory map showing an example of data stored in the memory unit 16 of the center 1. [Figure 7] An example of the data structure of the SWID database 102 [Figure 8] An example of data configuration of the vehicle database 103 [Figure 9] A memory map showing an example of data stored in the memory unit 47 of the OTA master 31. [Figure 10] An example of the data configuration of implementation SWID definition data 152 [Figure 11] An example of the data configuration of check SWID hash value 153 [Figure 12] 1 is a flowchart showing details of a process according to a first embodiment. [Figure 13] 1 is a flowchart showing details of a process according to a first embodiment. [Figure 14] 11 is a memory map showing an example of data stored in the storage unit 47 of the OTA master 31 in the second embodiment. [Figure 15] 11 is a flowchart showing details of a process according to a second embodiment. [Figure 16] 11 is a flowchart showing details of a process according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.

[0011] Conventionally, when performing an update process for updating the software of an on-vehicle electronic control unit (hereinafter referred to as ECU software) in an OTA service, data on all ECU software installed in the vehicle is transmitted to an OTA center (hereinafter referred to simply as the center). Specifically, a hash value (hereinafter referred to as a total hash value) based on the serial numbers (numbers for identifying each software) of all ECU software and the version of each software is generated and transmitted to the center. In contrast, in this embodiment, configuration information related to some ECU software, not all ECU software, specifically a hash value is generated and transmitted to the center. Then, based on this hash value, a determination is made as to the necessity of update processing for a specific ECU software, and the update processing is performed if necessary. As a result, in this embodiment, it is possible to reduce the amount of communication and shorten the time required to complete the update processing, compared to the case where the above-mentioned total hash value is used. More specifically, using the concept of a "software ID", a hash value related to some ECU software is generated and transmitted, and the necessity of update processing is determined.

[0012] Here, the above software ID (hereinafter referred to as SWID) will be explained. SWID is a concept indicating a group of ECU software grouped by a predetermined function unit realized by a combination of functions of multiple ECUs. In other words, SWID is a concept indicating a software configuration for realizing a certain function. For example, assume that there is a function called "automatic driving function". The "automatic driving function" is realized by cooperation of three ECU softwares: ECU software that controls the steering wheel (hereinafter referred to as steering wheel ECU), ECU software that controls the accelerator (hereinafter referred to as accelerator ECU), and ECU software that controls the brakes (hereinafter referred to as brake ECU). In this case, "automatic driving function Ver1.0" and "automatic driving function Ver2.0" are defined as examples of SWID. Here, SWID is a concept that defines a combination of ECU software taking into account the version of each ECU software. In the above example, "automatic driving function Ver1.0" indicates a combination of "steering wheel ECU Ver1.0", "accelerator ECU Ver1.0", and "brake ECU Ver1.0". In addition, "Autonomous Driving Function Ver. 2.0" refers to the combination of "Steering ECU Ver. 2.0", "Accelerator ECU Ver. 2.0", and "Brake ECU Ver. 2.0".

[0013] In this embodiment, a hash value is generated for each SWID. For example, a hash value is generated based on the serial number and version number of each ECU software (hereinafter referred to as a constituent ECU) defined as "Autonomous Driving Function Ver. 1.0". This hash value can be said to be configuration information indicating the software configuration of the ECU software related to the SWID. The hash value is then transmitted from the OTA master to the center. The center compares a hash value corresponding to "Autonomous Driving Function Ver. 1.0" stored in itself or capable of being calculated by itself with the hash value transmitted from the OTA master to determine the necessity of updating the constituent ECU related to the SWID. More specifically, if the hash values ​​match, it is determined that no update is necessary, and if they do not match, it is determined that an update is necessary.

[0014] (First embodiment) An application example of the process using the above SWID will be described below. As a first embodiment, the following case is assumed. In the first embodiment, it is assumed that, as a result of a given ECU replacement, the combination of ECU software versions defined as a certain SWID does not match the combination of actual ECU software versions. Specifically, it is assumed that, for a vehicle equipped with "automatic driving function Ver2.0", the accelerator ECU version has changed from "Ver2.0" to "Ver1.0" as a result of the replacement of the accelerator control ECU. In this case, the combination of ECU software versions defined as "automatic driving function Ver2.0" should originally be "Ver2.0" for the accelerator ECU, steering wheel ECU, and brake ECU, but as a result of the replacement of the ECUs, the combination is different from this combination (hereinafter, this state may be referred to as a mismatch state). It is considered undesirable from the viewpoint of safety and security to operate the vehicle in such a state, so it is necessary to update (upgrade) the accelerator ECU from "Ver1.0" to "Ver2.0".

[0015] In the first embodiment, when the above-mentioned mismatch state occurs, the SWID whose configuration has changed is detected, and a hash value (hereinafter referred to as SWID hash value) related to the SWID whose configuration has changed is generated. In the above example, since a change has occurred in the accelerator ECU, which is an ECU constituting the "automatic driving function Ver2.0", the SWID hash value is generated based on the respective versions of the "steering wheel ECU", the "accelerator ECU", and the "brake ECU" at that time. That is, the SWID hash value is generated based on the "steering wheel ECU Ver2.0", the "accelerator ECU Ver1.0" (whose version has changed due to replacement), and the "brake ECU Ver2.0". Then, the SWID hash value is transmitted to the center, and the center determines whether an update is necessary, and if necessary, an update process is performed on the accelerator ECU. The first embodiment will be described in more detail below.

[0016] [Overall system configuration of the first embodiment] 1 is a block diagram showing the overall configuration of an update control system in Example 1. The update control system includes a center 1 and a vehicle 3.

[0017] The center 1 is a server for managing software updates of in-vehicle devices provided in the vehicle 3 (more precisely, the center 1 is a center system including such a server, but for convenience of explanation, the center 1 will be described as a server below). The center 1 is capable of communicating with the vehicle 3 (OTA master 31).

[0018] The vehicle 3 is equipped with an in-vehicle network system. The in-vehicle network system is capable of communicating with the center 1. The in-vehicle network system includes at least an OTA master (software update device) 31, a communication module 32, and a plurality of ECUs (electronic control units) 33a to 33d.

[0019] The OTA master 31 is connected to the communication module 32 and the ECUs 33a to 33d via a bus 35. The OTA master 31 is capable of wireless communication with the center 1 via the communication module 32. The OTA master 31 executes control of software update processing of each ECU 33 while transmitting and receiving predetermined data to and from the center 1. In other words, the OTA master 31 has a software update function. The communication module 32 is a communication device that connects to a predetermined network (such as a telephone network or the Internet).

[0020] The ECUs 33a to 33d control the operations of the various parts of the vehicle 3. It goes without saying that the number of ECUs 33 in FIG.

[0021] [Center 1 configuration] Fig. 2 is a block diagram showing a schematic configuration of the center 1. As shown in Fig. 2, the center 1 includes a processor 11, a RAM 12, a storage device 13, and a communication device 14. The storage device 13 includes a readable / writable storage medium such as a hard disk or SSD, and stores various programs and data required for the processing according to this embodiment. In the center 1, the processor 11 executes a program read from the storage device 13 by using the RAM 12 as a working area, thereby performing a predetermined control processing. The communication device 14 is a device that communicates with the vehicle 3 via a network.

[0022] [About the configuration of OTA Master 31] Fig. 3 is a block diagram showing a schematic configuration of the OTA master 31. As shown in Fig. 3, the OTA master 31 includes a microcomputer 45 including a processor 41, a RAM 42, a ROM 43, and a storage device 44, and a communication device 46. In the OTA master 31, the processor 41 of the microcomputer 45 executes a program read from the ROM 43 by using the RAM 42 as a working area, thereby executing a predetermined control process. The communication device 46 is a device that communicates with the communication module 32 and the ECUs 33a to 33d via the bus 35 shown in Fig. 1.

[0023] [Center 1 functional block diagram] Fig. 4 is a functional block diagram of the center 1. The center 1 includes a storage unit 16, a communication unit 17, and a control unit 18. The communication unit 17 and the control unit 18 are realized by the processor 11 shown in Fig. 2 executing a program stored in the storage unit 13 using the RAM 12, and the storage unit 16 is realized by the storage unit 13 shown in Fig. 2.

[0024] The storage unit 16 stores the programs and data used in the processing according to this embodiment.

[0025] The control unit 18 uses the communication unit 17 to transmit and receive predetermined data to and from the OTA master 31, and executes the software update process.

[0026] [OTA Master 31 Functional Block Diagram] FIG. 5 is a functional block diagram of the OTA master 31 shown in FIG.

[0027] The OTA master 31 includes a storage unit 47, a communication unit 48, and a control unit 49. The storage unit 47 is realized by the storage device 44 shown in Fig. 3, and the communication unit 48 and the control unit 49 are realized by the processor 41 shown in Fig. 3 executing a program stored in the ROM 43 using the RAM 42.

[0028] The storage unit 47 stores various programs and various data for executing the software update process.

[0029] The control unit 49 communicates with the center 1 via the communication unit 48 and executes various controls related to the software update process. Specifically, the control unit 49 executes a process of detecting the occurrence of a change in the software configuration as exemplified above, a process of generating a SWID hash value and transmitting it to the center when a change has occurred, and a process of updating a specified ECU software as necessary.

[0030] The process according to the first embodiment will be described in detail below.

[0031] [Data used at Center 1] First, a description will be given of data used in the processing at the center 1. Fig. 6 is a memory map showing an example of data stored in the storage unit 16 of the center 1. The storage unit 16 stores an update control program 101, a SWID database 102, and a vehicle database 103. Although not shown, various other programs and data for implementing the OTA service are also stored in the storage unit 16.

[0032] The update control program 101 is a program for controlling the software update process according to this embodiment.

[0033] The SWID database 102 is a database that defines the above-mentioned SWID. Moreover, in the SWID database 102, all SWIDs that can be implemented in a vehicle are defined. FIG. 7 is a diagram showing an example of the data configuration of the SWID database 102. The SWID database 102 is a database that has at least the items of SWID 111 and configuration information 112. The SWID 111 is data for identifying a SWID, such as the above-mentioned "automatic driving function Ver. 1.0". The configuration information 112 is data related to the above-mentioned constituent ECUs that constitute the SWID (the function corresponding to the SWID). Specifically, the configuration information 112 is data in a table format that has the items of constituent ECU 113 and version information 114. The constituent ECU 113 is data for identifying the ECU software that constitutes the SWID. The version information 114 is data indicating the version of each ECU software. In the example of FIG. 7, SWID 111 "Automatic driving function Ver. 1.0" is defined to be composed of a combination of "Accelerator ECU Ver. 1.0", "Brake ECU Ver. 1.0", and "Steering ECU Ver. 1.0".

[0034] Returning to FIG. 6, the vehicle database 103 is a database in which information on vehicles for which OTA services are provided is registered. FIG. 8 is a diagram showing an example of the data configuration of the vehicle database 103. The vehicle database 103 is a database having at least the items of VIN 121 and previous storage information 122. The VIN 121 is a number for uniquely identifying a vehicle. The previous storage information 122 is information on the SWID at the time when the most recent update process for the vehicle indicated by the VIN 121 was completed. Specifically, the previous storage information 122 is data in a table format including the SWID 123 and the previous hash value 124. The SWID 123 is data indicating (the function corresponding to) the SWID implemented in the vehicle. Therefore, the contents may differ depending on the vehicle. The previous hash value 124 is a SWID hash value corresponding to the SWID. In this embodiment, the value is the same as the hash value calculated based on the information in the SWID database 102, but the hash value itself is stored in order to save the effort of the process related to the calculation.

[0035] [About the data used by OTA Master 31] Next, a description will be given of data used in the OTA master 31. Fig. 9 is a memory map showing an example of data stored in the storage unit 47 of the OTA master 31. At least an update control program 151, implemented SWID definition data 152, and a check SWID hash value 153 are stored in the storage unit 47 of the OTA master 31. Although not shown in the figure, various other programs and data for implementing the OTA service are also stored in the storage unit 47.

[0036] The update control program 151 is a program for the OTA master 31 to execute the process according to this embodiment.

[0037] The implemented SWID definition data 152 is data related to the SWID (function corresponding to the SWID) implemented in the vehicle. FIG. 10 is a diagram showing an example of the data configuration of the implemented SWID definition data 152. The implemented SWID definition data 152 is a database including at least items of SWID 161 and configuration information 162. The basic data configuration is the same as that of the SWID database 102, so a detailed description is omitted. However, the implemented SWID definition data 152 includes only data related to the SWID currently implemented in the vehicle, which is extracted from the data included in the SWID database 102. The contents of the implemented SWID definition data 152 may also be updated during an update process. For example, when the "automatic driving function Ver. 1.0" is updated to the "automatic driving function Ver. 2.0" as a result of an update process by the OTA service, the contents of the implemented SWID definition data 152 are also updated according to the update contents.

[0038] Returning to FIG. 9, the check SWID hash value 153 is data used to determine whether or not a change has occurred in the software configuration of the vehicle other than that caused by the update process related to the OTA service. In this embodiment, the case where the ECU is physically replaced at a maintenance shop is assumed. Therefore, the check SWID hash value 153 is generated, for example, by a mechanic performing a predetermined operation before the replacement work. Specifically, based on the predetermined operation, SWID hash values ​​related to each SWID (implemented in the vehicle) at that time are calculated, and the check SWID hash value 153 is generated by storing these in the storage unit 47. FIG. 11 shows an example of the data configuration of the check SWID hash value 153. The check SWID hash value 153 is data in a table format having items of SWID 171 and check hash value 172. SWID 171 is data indicating the SWID implemented in the vehicle. The check hash value 172 is data storing the SWID hash value before the replacement work.

[0039] [Processing flow of the first embodiment] Next, the flow of processing in the first embodiment will be described. Figs. 12 to 13 are flowcharts showing details of the update control processing according to the first embodiment. In Figs. 12 and 13, the left side of the figures shows the processing executed by the OTA master 31, and the right side of the figures shows the processing executed by the center 1. In this embodiment, the processing on the OTA master 31 side is assumed to start when the ignition of the vehicle is turned on. In the following description, it is assumed that the check SWID hash value 153 has already been generated by the mechanic as described above.

[0040] First, in step S1, the control unit 49 of the OTA master 31 judges whether or not a change in the software configuration has occurred for the ECU software installed in the vehicle. That is, it judges whether or not there is a SWID in a mismatched state. Any method may be used for the judgment, but in this embodiment, a method of comparing SWID hash values ​​before and after the ECU replacement work is exemplified. Specifically, before the ECU replacement work as described above, SWID hashes related to all SWIDs installed in the vehicle are stored based on the operation of a mechanic. Then, the control unit 49 judges whether or not the SWID hash value after the replacement matches the stored SWID hash value for each SWID, thereby judging whether or not a change in the software configuration has occurred. That is, the control unit 49 calculates the SWID hash value of each SWID and compares each of them with the contents of the check SWID hash value 153. Then, if there is a mismatched SWID hash value, the control unit 49 judges that a change has occurred in the software configuration related to that SWID. If there is no mismatched SWID hash value, the control unit 49 judges that no change has occurred in the software configuration.

[0041] In the first embodiment, the process of step S1 is described as an example in which SWID hash values ​​related to all SWIDs implemented in the vehicle are stored, and all SWIDs are checked to detect the SWID in which a configuration change has occurred. In other embodiments, the following may be performed. For example, it is considered that the ECU to be replaced can be determined in advance in a maintenance shop. Therefore, before the start of the replacement work, only data indicating the SWID in which the ECU to be replaced is a constituent ECU and the SWID hash value may be stored as the check SWID hash value 153. Then, in the process of step S1, the above-mentioned comparison process may be performed only on the SWID related to the ECU to be replaced. This makes it possible to speed up the process.

[0042] As a result of the determination in step S1 above, if no change has occurred in the software configuration (NO in step S1), the update control process on the vehicle side ends. On the other hand, if a change has occurred in the software configuration (YES in step S1), in step S2, the control unit 49 calculates a SWID hash value related to the SWID in which the change has occurred in the software configuration. Then, the control unit 49 generates an "update inquiry" which is data for inquiring whether an update has occurred, and transmits it to the center 1. At this time, the control unit 49 transmits the "update inquiry" including the VIN indicating the vehicle, the SWID in which the change has occurred, and the calculated SWID hash.

[0043] Next, in step S3, the control unit 18 of the center 1 judges whether or not an "update inquiry" including the SWID hash has been transmitted from a specific vehicle. If an "update inquiry" including the SWID hash has not been transmitted (NO in step S3), the control unit 18 repeats the process of step S3 (i.e., waits for an "update inquiry"). If an "update inquiry" has been transmitted (YES in step S3), then, in step S4, the control unit 18 receives the "update inquiry" and executes a check process based on the SWID hash value contained therein. Specifically, the control unit 18 refers to the vehicle database 103 and identifies the vehicle (OTA master 31) that has transmitted the "update inquiry". Furthermore, the control unit 18 acquires the previous hash value 124 corresponding to the SWID contained in the "update inquiry" from the vehicle database 103. Then, the control unit 18 judges whether or not the previous hash value 124 matches the SWID hash. As a result of the determination, if the hash values ​​match (YES in step S4), in step S5, the control unit 18 transmits an update-unnecessary notification indicating that update processing is unnecessary to the OTA master 31. After that, the control unit 18 returns to the processing in step S3.

[0044] On the other hand, if the result of the above determination is that the hash values ​​do not match (NO in step S4), in step S6, the control unit 18 transmits a transmission request for detailed information related to the corresponding SWID to the OTA master 31. This detailed information is information indicating the specific software versions of each of the constituent ECUs of the SWID (not the SWID hash). After transmitting the transmission request, the control unit 18 waits for a response from the OTA master 31.

[0045] Next, in step S7, the control unit 49 of the OTA master 31 judges whether or not there is a request to transmit detailed information. Specifically, the control unit 49 judges whether an update-unnecessary notification has been transmitted or a request to transmit detailed information has been transmitted. If an update-unnecessary notification has been transmitted (NO in step S7), the control unit 49 determines that no request for detailed information has been made and ends the update control process on the vehicle side. On the other hand, if a request to transmit detailed information has been transmitted (YES in step S7), then, in step S8, the control unit 49 generates detailed information and transmits it to the center 1. Specifically, the control unit 49 acquires information on the software version for each of the constituent ECUs of the SWID specified in the transmission request. Then, the control unit 49 generates detailed information including this information and transmits it to the center 1. Thereafter, the control unit 49 waits for an instruction from the center 1.

[0046] Next, in step S9, the control unit 18 of the center 1 receives the transmitted detailed information. Next, in step S10, the control unit 18 identifies ECU software with mismatched versions based on the detailed information. Specifically, the control unit 18 compares the version of each configured ECU indicated in the detailed information with the Ver information 114 defined in the SWID database 102, thereby identifying configured ECUs with mismatched versions. Hereinafter, such configured ECUs will be referred to as mismatched ECUs.

[0047] Next, in step S11 of FIG. 13, the control unit 18 determines whether or not it is necessary to perform an update process on the mismatched ECU to resolve the mismatch state. This is in consideration of the fact that, although the mismatch state should be resolved in principle, there may be cases where there is no functional problem even if the mismatch state remains, depending on the software version. For example, when the version of the accelerator ECU is upgraded from 2.0 to 2.1, and the change does not affect the realization of the automatic driving function, it may be determined that the update is unnecessary even if the content does not match the content defined in the SWID database 102. This makes it possible to avoid performing an update process that is not necessarily necessary, and also reduces the amount of communication. Note that, although not shown in the figure, data indicating such information on the version that is acceptable even in the mismatch state may be stored in the storage unit 16 of the center 1. Then, the control unit 18 may determine the necessity of the update process based on this information.

[0048] As a result of the determination in the above step S11, when it is determined that there is no need to resolve the mismatch state (NO in step S11), in step S12, the control unit 18 transmits the above update unnecessary notification to the OTA master 31. Then, the control unit 18 returns to the above step S3 and repeats the process.

[0049] On the other hand, if it is determined in step S11 that the mismatch state needs to be resolved (YES in step S11), the update process is executed. Specifically, first, in step S13, the control unit 18 transmits an update start instruction to the OTA master 31. Next, in step S14, the control unit 49 of the OTA master 31 determines whether or not an update start instruction has been received. If the determination result is that an update unnecessary notification has been received instead of an update start instruction (NO in step S14), the control unit 49 ends the update control process on the OTA master 31 side. On the other hand, if an update start instruction has been received (YES in step S14), in steps S15 and S16, the control unit 18 of the center 1 and the control unit 49 of the OTA master 31 cooperate as appropriate to execute the update process for the mismatched ECU. Specifically, the control unit 18 of the center 1 transmits update data to the OTA master 31, and the control unit 49 of the OTA master 31 executes a process of updating the software of the mismatched ECU based on the update data.

[0050] Next, in step S17, the control unit 49 determines whether the update process is complete. If it is not yet complete (NO in step S17), the process returns to step S15 and continues the update process. If the update process is complete (YES in step S17), the control unit 49 transmits an update completion notification to the center 1. Furthermore, in step S18, the control unit 49 generates an updated SWID hash value and transmits it to the center 1.

[0051] Meanwhile, in the center 1, in step S19, the control unit 18 determines whether or not the update completion notification has been received from the OTA master 31, and if not, returns to step S16 and continues the update process. If the update completion notification has been received, in step S20, the control unit 18 receives the updated SWID hash value transmitted from the OTA master 31 and records it as the previous hash value 124 in the vehicle database 103. Thereafter, the control unit 18 returns to step S3 and repeats the process.

[0052] Next, in step S21, the control unit 49 of the OTA master 31 updates the contents of the check SWID hash value 153 with the contents of the SWID hash value after the update. As a result, the next time the determination in step S1 is made, it will be determined that no configuration change has occurred. In other words, the mismatch state of the software configuration has been resolved. This is the end of the update control process according to the first embodiment.

[0053] In this way, in the first embodiment, when an ECU replacement causes a change in the software configuration of the ECU before and after the replacement, only the information of the ECU related to the SWID where the change occurred can be transmitted to the center 1 to execute the update process. This makes it possible to reduce the amount of communication compared to the case where the above-mentioned comprehensive hash value is used, and also shorten the time required to complete the update process.

[0054] (Second Example) Next, a second embodiment of the process using the SWID as described above will be described. In the second embodiment, the following case is assumed. In the second embodiment, a case is assumed where an emergency update is to be performed on a specific ECU. In the OTA service, the OTA master 31 normally periodically inquires the center 1 about the presence or absence of an update, for example, once every two weeks, and if an update exists at that timing, the update process is performed. However, there may be cases where an update with high urgency occurs. In such a case, the following process is performed as the second embodiment. First, the center 1 transmits a command (hereinafter referred to as a center command) to cause the OTA master 31 to perform an "update inquiry" to the center 1 via a route different from the network (Internet network) used in the OTA service, for example, SMS (Short Message Service) or V2X of a carrier network. In this embodiment, a case where the center command is transmitted by SMS is taken as an example. This center command includes information indicating the SWID in which the ECU to be the target of the emergency update is a constituent ECU. On the vehicle side, when the control unit 49 receives the center command, it transmits the SWID hash value related to the SWID indicated in the center command to the center 1 at the timing of the next ignition-on. In the center 1, the control unit 18 determines the necessity of update processing for the vehicle based on the SWID hash value. If necessary, processing related to an emergency update is executed.

[0055] The second embodiment will be described in detail below. First, the hardware configuration (center 1 and OTA master 31) in the second embodiment is basically the same as that in the first embodiment, so detailed description will be omitted. However, in the second embodiment, the communication module 32 of the vehicle 3 also functions as a center command receiving unit that receives the center command.

[0056] Next, the data used in the second embodiment is basically the same as that in the first embodiment, but there is a difference in the data stored in the storage unit 47 of the OTA master 31. Fig. 14 is a memory map showing an example of data stored in the storage unit 47 of the OTA master 31 in the second embodiment. At least an update control program 151, implemented SWID definition data 152, and center command data 181 are stored in the storage unit 47 of the OTA master 31. Of these, the update control program 151 and implemented SWID definition data 152 are the same as those in the first embodiment, so a description thereof will be omitted.

[0057] The center command data 181 is a stored center command received by the communication module 32. In this embodiment, when the ignition is turned on, the presence or absence of the center command data 181 is determined, and if present, processing is executed based on the contents of the center command data 181. In this embodiment, it is assumed that a command for performing the above-mentioned emergency update, specifically, an instruction to transmit the SWID related to the target of the emergency update to the center 1, is defined in the center command.

[0058] Next, a process flow according to the second embodiment will be described. FIG. 15 is a flowchart showing details of the update control process according to the second embodiment. In FIG. 15, the left side of the figure shows the process executed by the OTA master 31, and the right side of the figure shows the process executed by the center 1. In this embodiment, the process on the OTA master 31 side is assumed to start when the ignition of the vehicle is turned on. Also, it is assumed that the center command has already been transmitted by SMS from the center 1 and is stored in the center command data 181.

[0059] First, in step S31, the control unit 49 of the OTA master determines whether or not a center command has been received. Specifically, the control unit 49 refers to the center command data 181, and determines that the center command has been received if the center command is stored, and determines that the center command has not been received if the center command is not stored. If the result of the determination is that the center command has not been received (NO in step S31), the control unit 49 ends the update control process according to the second embodiment. On the other hand, if the center command has been received (YES in step S31), then in step S32, the control unit 49 calculates a SWID hash value related to the SWID indicated in the center command. Then, the control unit 49 generates an "update inquiry" including information indicating the SWID and the SWID hash value, and transmits it to the center 1.

[0060] Next, in step S33, the control unit 18 of the center 1 determines whether or not an "update inquiry" based on the center command has been received from a specific vehicle. Whether or not the "update inquiry" is based on a center command can be determined, for example, by including data indicating that the "update inquiry" is based on a center command in the header portion of the "update inquiry" and having the control unit 18 make the determination based on this data. If the result of this determination is that an "update inquiry" based on a center command has not been received (NO in step S33), the process of step S33 is repeated. That is, the control unit 18 continues to wait for an "update inquiry" based on a center command.

[0061] On the other hand, when an "update inquiry" based on the center command is received (YES in step S33), next, in step S34, the control unit 18 judges whether or not an update process is necessary based on the SWID hash value included in the received "update inquiry." Specifically, the control unit 18 judges whether or not the SWID hash value included in the "update inquiry" matches the hash value of the SWID that is the target of this emergency update. If they match, the control unit 18 judges that an update is not necessary, and if they do not match, the control unit 18 judges that an update is necessary. Note that a case in which such an emergency update is not necessary may be a case in which an update process with the same contents as the emergency update has already been performed, for example, in a maintenance workshop, before the center command related to the emergency update is received.

[0062] As a result of the determination in step S34, if there is no need for updating (NO in step S34), in step S35, the control unit 18 transmits a notification that updating is not required to the OTA master. On the other hand, if there is a need for updating (YES in step S34), in step S36, the control unit 18 transmits an update start instruction to the OTA master 31. Next, in step S37, the control unit 49 of the OTA master 31 determines whether or not an update start instruction has been received. As a result of the determination, if an update no longer required notification has been received instead of an update start instruction (NO in step S37), the control unit 49 ends the update control process. On the other hand, if an update start instruction has been received (YES in step S37), in steps S38 and S39, the control unit 18 of the center 1 and the control unit 49 of the OTA master 31 execute the update process while appropriately cooperating with each other. Specifically, the control unit 49 transmits detailed information to the center 1 as shown in the first embodiment. The control unit 18 of the center 1 identifies the ECU software that needs to be updated, and transmits update data to the OTA master 31. Then, the control unit 49 of the OTA master 31 executes a process of updating the ECU software that is the target of the emergency update, based on the update data.

[0063] Next, in step S40, the control unit 49 judges whether the update process is completed. If it is not yet completed (NO in step S40), the process returns to step S38 and continues the update process. If the update process is completed (YES in step S40), the control unit 49 transmits an update completion notification to the center 1.

[0064] Meanwhile, in the center 1, in step S41, the control unit 18 determines whether or not the update completion notification has been received, and if not (NO in step S41), the control unit 18 returns to step S39 and continues the update process. If the update completion notification has been received (YES in step S41), the control unit 18 returns to step S33 and repeats the process.

[0065] Next, in step S42, the control unit 49 of the OTA master clears the center command data 181. As a result, unless a new center command is received, it will be determined in the above step S31 that a center command has not been received.

[0066] This is the end of the update control process according to the second embodiment.

[0067] In this way, in the second embodiment, when there is an emergency update, the ECU to be updated can be determined in advance, so the center command includes an instruction to transmit only the SWID related to the ECU to be updated. Therefore, it is possible to determine the necessity of the update for each SWID related to the ECU to be the emergency update without performing processing for all ECUs. This makes it possible to complete the processing for the emergency update more quickly.

[0068] (Third Example) Next, a third embodiment will be described. The third embodiment is an example of a process that combines the first and second embodiments described above. Specifically, when the center command is received, if a change in software configuration has occurred, the SWID hash value of the SWID related to the change in configuration is also sent, and the mismatch state is resolved before the execution of the process by the center command is started. In other words, the reception of the center command is used as a trigger to send the SWID in which a change has occurred in the software configuration to the center, and the mismatch state is resolved if necessary.

[0069] FIG. 16 is a flowchart showing a process flow according to the third embodiment. Note that FIG. 16 shows only the process executed by the OTA master 31. In FIG. 16, first, in step S51, the control unit 49 judges whether or not a center command has been received. This process is the same as step S31 described above. If the result of the judgment shows that a center command has been received (YES in step S51), then in step S52, the control unit 49 judges whether or not a change has occurred in the software configuration of the ECU software installed in the vehicle. This process is the same as step S1 shown in FIG. 12 above. If the result of the judgment shows that no change has occurred in the software configuration (NO in step S52), the process proceeds to step S55 described below.

[0070] On the other hand, if a change has occurred in the software configuration (YES in step S52), in step S53, the control unit 49 judges whether or not the SWID (corresponding ECU software) in which the change has occurred in the software configuration is included in the update target indicated in the center command. If the result of the judgment is that the SWID in which the change has occurred in the software configuration is included in the update target indicated in the center command, the SWID is dealt with by the update process based on the center command, and if it is not included in the update target, a separate process for resolving the mismatch state is executed. Specifically, if the SWID in which the change has occurred in the software configuration is not included in the update target indicated in the center command (NO in step S53), in step S54, the control unit 49 executes a process for resolving the mismatch state. That is, the control unit 49 executes the process as described above as the first embodiment to resolve the mismatch state. Thereafter, the process proceeds to step S55.

[0071] On the other hand, if the result of the determination in step S53 above is that the SWID in which a change has occurred in the software configuration is included in the update target indicated in the center command (YES in step S53), then in step S55 the control unit 49 executes update processing based on the center command. That is, the control unit 49 executes the processing as described above as the second embodiment, and updates the ECU software in the update target indicated in the center command. Thereafter, the control unit 49 ends the update control processing according to the third embodiment.

[0072] On the other hand, if the result of the determination in step S51 above is that the center command has not been received (NO in step S51), then in step S56 the control unit 49 determines whether or not a change has occurred in the software configuration of the ECU software installed in the vehicle. This process is the same as that in step S31 above. If the result of the determination is that a change has occurred in the software configuration (YES in step S56), then in step S57 the control unit 49 executes a process to resolve the inconsistency. That is, similar to the process in step S54 above, the control unit 49 executes the process described above as the first embodiment to resolve the inconsistency.

[0073] On the other hand, if no change has occurred in the software configuration (NO in step S56), the control unit 49 ends the update control process according to the third embodiment.

[0074] In this way, in the third embodiment, when a center command is received, if a change has occurred in the software configuration, information about the SWID where the change occurred is sent to the center. Therefore, when executing processing by the center command, processing to resolve the mismatch state can also be executed at the same time. This makes it possible to avoid processing being performed twice, and also makes it possible to quickly resolve the mismatch state.

[0075] [Variations] In the above second embodiment, an example is given in which a center command is sent by SMS or the like in the case of an emergency update, but the present invention is not limited to this case, and a center command other than that for handling an emergency update may be sent. For example, in another embodiment, a center command including an instruction to send only information on SWIDs whose software configuration has changed to the center 1 may be sent. In this case, the control unit 49 of the OTA master 31 may calculate a SWID hash related to the SWID whose configuration has changed according to the instruction of the center command and send it to the center 1. In other words, a center command may be sent to start the process of resolving the mismatch as shown in the above first embodiment.

[0076] In addition, in regard to the center command, a center command may be sent to the center 1 in the following cases as well, in order to transmit only information on the SWID whose software configuration has changed as described above. For example, assume that as a result of ECU replacement on the vehicle side, a change has occurred in the software configuration for a specific SWID, and the OTA master 31 side is unable to grasp this change for some reason, but the center 1 side is able to grasp this change. A method for the center 1 side to grasp such a change may be, for example, when information on the contents of the ECU replacement work is transmitted from a maintenance shop to the center 1 upon completion of the ECU replacement work. In such a case, the center 1 side can identify the SWID in which a change has occurred (or may occur) for the vehicle in which the replacement work has been performed. Therefore, in order to execute the process shown in the first embodiment in such a case, an instruction to transmit information related to the SWID corresponding to the replaced ECU to the center 1 may be included in the center command and transmitted to the OTA master 31.

[0077] In the first embodiment, when a change occurs in the software configuration, the SWID hash value related to the change is transmitted to the center 1. In the second and third embodiments, the reception of a center command is used as a trigger to transmit a predetermined SWID hash value to the center 1. In other embodiments, the following processing may be performed for such SWID transmission. That is, the above SWID hash value may be transmitted to the center 1 at the timing of a normal update processing inquiry in the OTA service. In the update processing in the OTA service, the center 1 is periodically inquired about the presence or absence of an update, for example, once every two weeks. In the conventional method, the above overall hash value is transmitted at the time of the inquiry, and if the overall hash value is determined to be inconsistent, version information of all ECU software is requested. Instead of the overall hash value, the SWID hash value implemented in a predetermined vehicle may be transmitted to the center 1. Then, the center 1 may perform a check processing on a SWID basis, and request the above-mentioned detailed information only for SWIDs that need to be updated. In this case, it is also possible to shorten the time until the update processing is completed.

[0078] The above describes one embodiment of the disclosed technology. However, the present disclosure can be understood as an update control method executed by an OTA master computer that includes not only an OTA master but also at least a processor and a memory and is capable of communicating with an OTA center via a network, a control program for the method, a computer-readable non-transitory recording medium storing the control program, and the like. [Industrial Applicability]

[0079] The disclosed technology can be used for an OTA master that controls the software update function. [Explanation of symbols]

[0080] 1 Center 3. Vehicle 11 Processors 12 RAM 13 Storage device 14 Communication equipment 31 OTA Master 32 Communication Module 33 Electronic control device 35 Bus 41 Processors 42 RAM 43 ROM 44 Storage device 46 Communication Equipment

Claims

1. An OTA master that is connected to an in-vehicle network including a plurality of in-vehicle devices, can communicate with an OTA center via the network, and updates software of one or more of the in-vehicle devices, a determination unit that determines, from among a plurality of software groups grouped by combinations of software of one or more in-vehicle devices, a software group to be updated, the software group being a software group in which a change has occurred in the version of the software; a generation unit that generates a hash value of the software group to be updated determined by the determination unit; a transmission unit that transmits the hash value of the software group to be updated generated by the generation unit to the OTA center; a receiving unit that receives a request for detailed content of the software group to be updated from the OTA center; The transmission unit transmits information on all of the in-vehicle devices included in the software group to be updated to the OTA center when the reception unit receives the request.

2. The OTA master according to claim 1 , wherein the determination unit determines whether or not the update target software group exists around a predetermined timing.

3. The receiving unit further receives a center command including a command for instructing transmission of information related to a specific software group, 2 . The OTA master according to claim 1 , wherein the transmitting unit transmits the hash value of the software group to be updated to the OTA center when the receiving unit receives the center command.

4. 4. The OTA master according to claim 3, wherein the center command includes at least a command for instructing transmission of the hash value of the software group to be updated.

5. An update control method executed by a computer of an OTA master that is equipped with at least a processor and a memory and is capable of communicating with an OTA center via a network, comprising: determining, for a plurality of software groups grouped by combinations of software of one or more in-vehicle devices, a software group to be updated that is a software group in which a change has occurred in the version of the software; generating a hash value of the determined software group to be updated; transmitting the generated hash value of the update target software group to the OTA center; receiving a request for details of the software group to be updated from the OTA center; when the request is received, transmitting information on all of the in-vehicle devices included in the software group to be updated to the OTA center.

6. An update control program to be executed by an OTA master computer that is equipped with at least a processor and a memory and is capable of communicating with an OTA center via a network, determining, for a plurality of software groups grouped by combinations of software of one or more in-vehicle devices, a software group to be updated that is a software group in which a change has occurred in the version of the software; generating a hash value of the software group for which it has been determined that the change has occurred; generating a hash value of the determined software group to be updated; transmitting the generated hash value of the update target software group to the OTA center; receiving a request for details of the software group to be updated from the OTA center; and transmitting, when the request is received, information regarding all of the in-vehicle devices included in the software group to be updated to the OTA center.

Citation Information

Patent Citations

  • Program update system for vehicle

    JP2011148398A

  • Program rewriting device and program rewriting method

    JP2016188016A

  • Electronic apparatus, version check system and version check program

    JP2018124749A

  • Program update device, program update system, program update method and program update program

    JP2020004245A

  • Computational unit and determination method

    JP2020166583A