OTA master, center, system, method, program, and vehicle
The OTA master system addresses inefficiencies in updating ECUs with mixed memory types by managing distinct update processes for single and dual bank memories, ensuring efficient and rapid software updates with reduced vehicle downtime.
Patent Information
- Application Number
- JP2021024111
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-18
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2041-02-18
AI Technical Summary
Existing software update methods for vehicles with a mix of electronic control units (ECUs) having single and dual bank memories face inefficiencies, leading to prolonged startup times due to differing recovery methods and inconsistent update processes.
An OTA master system that manages software updates by distinguishing between ECUs with single and dual bank memories, generating tailored distribution packages, and prioritizing updates for ECUs with dual bank memories to minimize downtime and communication load.
The system ensures efficient and timely software updates for both types of ECUs, reducing communication overhead and minimizing vehicle downtime during the update process.
Smart Images

Figure 0007559600000001 
Figure 0007559600000002 
Figure 0007559600000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an OTA master that controls software updates for electronic control units. [Background technology]
[0002] A vehicle is equipped with multiple 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 memory that is a non-volatile storage unit such as a flash ROM. The processor executes software stored in the non-volatile memory to realize the control function of the electronic control unit. The software stored in each electronic control unit is rewritable, and by updating the software to a newer version, the function of each electronic control unit can be improved or a new vehicle control function can be added.
[0003] As a technology for updating software of an electronic control unit, there is known an 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 in charge of updating software of the vehicle downloads software from a server via wireless communication and installs the downloaded software in the electronic control unit, thereby updating or adding software to the electronic control unit. For example, see Patent Document 1.
[0004] There are two types of non-volatile memory installed in electronic control units: memory with one storage area for storing software and other data (single bank memory), and memory with two storage areas for storing software and other data (dual bank memory), and they may be used depending on the specifications of the electronic control unit. Electronic control units equipped with dual bank memory can store two versions of data, one old and one new, in each of the two storage areas. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2004-326689 A Summary of the Invention [Problem to be solved by the invention]
[0006] In a campaign, which is an event for updating software in vehicles, both an electronic control unit equipped with a single bank memory and an electronic control unit equipped with a dual bank memory may be electronic control units for which software is to be updated. The electronic control unit equipped with a single bank memory and the electronic control unit equipped with a dual bank memory have different recovery methods when an update fails due to the memory structure.
[0007] Therefore, when a campaign is applied to a vehicle in which electronic control units equipped with single bank memory and electronic control units equipped with dual bank memory are mixed as electronic control units to be updated, if the download and installation are not performed according to the memory structure of the electronic control unit to be updated, it may take some time for the electronic control unit to start up normally after the software update.
[0008] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide an OTA master and the like that can perform software updates suitable for single bank memories and dual bank memories. [Means for solving the problem]
[0009] In order to solve the above problems, one aspect of the disclosed technology is an OTA master that controls software updates of an electronic control unit mounted on a vehicle, and is equipped with a communication unit that receives a distribution package from a center, the distribution package including update data intended for an electronic control unit equipped with a first type of non-volatile memory having one storage area, and update data intended for an electronic control unit equipped with a second type of non-volatile memory having two storage areas. Effect of the Invention
[0010] According to the present disclosure, it is possible to provide an OTA master or the like capable of performing software updates suitable for single bank memories and dual bank memories. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a block diagram showing an overall configuration of a network system according to an embodiment; [Diagram 2] Block diagram showing the general configuration of the center [Diagram 3] Block diagram showing the schematic configuration of the OTA master [Figure 4A] FIG. 1 is a block diagram showing an example of a schematic configuration of an electronic control unit; [Figure 4B] FIG. 1 is a block diagram showing an example of a schematic configuration of an electronic control unit; [Diagram 5] Center functional block diagram [Figure 6] OTA Master Functional Block Diagram [Figure 7] FIG. 13 is a diagram showing an example of type information [Figure 8] Flowchart of download processing procedure according to concrete example 1 performed by the center and the OTA master [Figure 9] Flowchart of download processing procedure according to concrete example 2 performed by the center and the OTA master [Figure 10] Flowchart of an installation process performed by an OTA master and a target electronic control unit according to a third embodiment [Figure 11A]Flowchart of an installation process performed by an OTA master and a target electronic control unit according to Example 4 [Figure 11B] Flowchart of an installation process performed by an OTA master and a target electronic control unit according to Example 4 [Figure 12] Flowchart of download / installation processing procedure according to concrete example 5 performed by the center, the OTA master, and the target electronic control unit DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] In the network system for updating a program of an electronic control unit disclosed herein, a distribution package containing a mixture of update data for an electronic control unit with a single bank memory and update data for an electronic control unit with a dual bank memory is transmitted and received between the center and the OTA master. This allows, for example, the center to check the consistency between the memory type of the target electronic control unit and the update data when generating a distribution package, and to prioritize installation for a target electronic control unit with a dual bank memory over installation for a target electronic control unit with a single bank memory. Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings.
[0013] <Embodiment> [composition] 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 40a to 40d mounted on a vehicle, and includes a center 10 located outside the vehicle and an in-vehicle network 20 built inside the vehicle.
[0014] (1) Center The center 10 can communicate with an OTA master 30 (described later) provided in the in-vehicle network 20 via the network 70, and can manage software updates of a plurality of electronic control units 40a to 40d connected to the OTA master 30. The center 10 functions as a so-called server.
[0015] FIG. 2 is a block diagram showing a schematic configuration of the center 10 in FIG. 1. As shown in FIG. 2, the center 10 includes a central processing unit (CPU) 11, a random access memory (RAM) 12, a storage device 13, and a communication device 14. The storage device 13 is a device including a readable and writable storage medium such as a hard disk drive (HDD) or a solid state drive (SSD), and stores a program for performing software update management, information used for the software update management, and update data for each electronic control unit. In the center 10, the CPU 11 executes a program read from the storage device 13 by using the RAM 12 as a working area, thereby executing a predetermined process related to software update. The communication device 14 is a device for communicating with the OTA master 30 via a network 70.
[0016] (2) In-vehicle network The in-vehicle network 20 includes an OTA master 30, a plurality of electronic control units 40a to 40d, and a communication module 50. The OTA master 30 and the communication module 50 are connected via a bus 60a. The OTA master 30 and the electronic control units 40a and 40b are connected via a bus 60b. The OTA master 30 and the electronic control units 40c and 40d are connected via a bus 60c.
[0017] The OTA master 30 is capable of wireless communication with the center 10 via the communication module 50. 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 40a to 40d based on update data acquired from the center 10. The OTA master 30 is sometimes referred to as a central gateway (CGW).
[0018] The electronic control units 40a to 40d are devices (ECUs: Electronic Control Units) for controlling the operation of each part of the vehicle. Although four electronic control units 40a to 40d are illustrated in FIG. 1, the number of electronic control units is not particularly limited. For example, a display device (HMI) for performing various displays, such as displaying the presence of update data during software update processing of the electronic control units 40a to 40d, 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, may be connected to the OTA master 30. A car navigation system or the like may be used as the display device. In addition, the number of buses connecting the electronic control units to the OTA master 30 is not particularly limited. For example, the above-mentioned display device may be connected to the OTA master 30 by a bus other than the buses 60a to 60c.
[0019] The communication module 50 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 20 to the center 10. The communication module 50 may be configured to be included in the OTA master 30.
[0020] Fig. 3 is a block diagram showing a schematic configuration of the OTA master 30 in Fig. 1. As shown in Fig. 3, 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 constitute 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 50 and the electronic control units 40a to 40d via the buses 60a to 60c shown in Fig. 1.
[0021] 4A and 4B are block diagrams each showing an example of a schematic configuration of an electronic control unit.
[0022] The electronic control unit 40a shown in FIG. 4A includes a CPU 41, a RAM 42, a non-volatile memory 43a, and a communication device 44. The CPU 41 executes a program read from the non-volatile memory 43a by using the RAM 42 as a working area, thereby realizing the function of the electronic control unit 40a. The non-volatile memory 43a is a memory (single bank memory) having one storage area 45 for storing software. Hereinafter, the memory type of the non-volatile memory 43a having the one storage area 45 is referred to as the "first type". In addition to the software for realizing the function of the electronic control unit 40a, the storage area 45 may store version information, parameter data, a boot program for starting, a program for updating software, and the like. The communication device 44 is a device for communicating with the OTA master 30 and other electronic control units 40b to 40d connected to the in-vehicle network 20.
[0023] The electronic control unit 40b shown in FIG. 4B includes a CPU 41, a RAM 42, a non-volatile memory 43b, and a communication device 44, similar to the electronic control unit 40a. However, the non-volatile memory 43b mounted on the electronic control unit 40b is a memory (dual bank memory) having two storage areas 46a and 46b for storing programs. Hereinafter, the type of the non-volatile memory 43b having the two storage areas 46a and 46b is referred to as the "second type". In addition to software for realizing the functions of the electronic control unit 40b, the storage areas 46a and 46b may store version information, parameter data, a boot program for starting, a program for updating software, and the like. The CPU 41 of the electronic control unit 40b sets one of the two storage areas 46a and 46b of the non-volatile memory 43b as a storage area (operational aspect) to be read, and executes the software stored in the storage area to be read. In the other storage area (non-operational side) that is not the read target, update software (updated program) based on the update data can be installed (written) in the background while the program in the read target storage area (operational side) is being executed. When activating (enabling update software) in the software update process, the update software can be activated by switching the storage area that is the read target of the program by the CPU 41 of the electronic control unit 40b.
[0024] As a specific example, assume that current software is stored in storage area 46a and update software is installed in storage area 46b. When activation of update software is instructed from OTA master 30, for example, by switching the read start address of CPU 41 of electronic control unit 40b from the top address of storage area 46a to the top address of storage area 46b, the storage area to be read by CPU 41 (operation side) can be switched and the update software installed in storage area 46b can be executed. Note that in this disclosure, a configuration called "one-side suspend memory" in which one storage area is partitioned into two sides in a pseudo manner and a program can be written to the other side while a program stored in one side is being executed is also classified as the second type of memory.
[0025] Fig. 5 is a functional block diagram of the center 10 shown in Fig. 2. The center 10 shown in Fig. 5 includes a storage unit 16, a communication unit 17, and a control unit 18. The storage unit 16 is realized by the storage device 13 shown in Fig. 2. The communication unit 17 and the control unit 18 are realized by the CPU 11 shown in Fig. 2 executing a program stored in the storage device 13 using the RAM 12.
[0026] The storage unit 16 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 16 stores, for each vehicle identification information (vehicle ID) that identifies the vehicle, update management information in which information indicating software available in the electronic control unit is associated with update data for the software of the electronic control unit. As the information indicating the software available in the electronic control unit, for example, a combination of the latest version information of each piece of software of the multiple electronic control units is defined.
[0027] The communication unit 17 is capable of receiving a software update confirmation request from the OTA master 30. The update confirmation request is information transmitted from the OTA master 30 to the center 10 when, for example, the power supply or ignition (IGN) is turned on in the vehicle, and is information for requesting the center 10 to confirm whether or not there is update data for the electronic control unit. The communication unit 17 is also capable of receiving a distribution package transmission request (download request) from the OTA master 30. Upon receiving the distribution package download request, the communication unit 17 transmits a distribution package including update data for the software of the electronic control unit, which is generated by the control unit 18 described below, to the OTA master 30.
[0028] When the communication unit 17 receives an update check request from the OTA master 30, the control unit 18 determines whether or not there is software update data for the electronic control unit 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 16. If the control unit 18 determines that there is software update data for the electronic control unit, then upon receiving a download request for a distribution package from the OTA master 30, the control unit 18 generates a distribution package including the corresponding update data stored in the storage unit 16.
[0029] The control unit 18 may individually generate a distribution package including only the update data for the electronic control unit equipped with the first type of nonvolatile memory (single bank memory) and a distribution package including only the update data for the electronic control unit equipped with the second type of nonvolatile memory (dual bank memory). The control unit 18 may also generate a distribution package including the update data for the electronic control unit equipped with the first type of nonvolatile memory (single bank memory) and the update data for the electronic control unit equipped with the second type of nonvolatile memory (dual bank memory). If type information described later is stored in advance in the storage unit 16, the control unit 18 can intentionally generate a distribution package including a mixture of multiple update data of different types. By generating such a distribution package including a mixture of multiple update data of different types, it is possible to transmit a distribution package including the update data for the electronic control unit equipped with the first type of nonvolatile memory and the update data for the electronic control unit equipped with the second type of nonvolatile memory from the center 10 (the communication unit 17) to the OTA master 30.
[0030] Fig. 6 is a functional block diagram of the OTA master 30 shown in Fig. 2. The OTA master 30 shown in Fig. 6 includes a storage unit 37, a communication unit 38, and a control unit 39. The storage unit 37 is realized by the storage device 34 shown in Fig. 3. The communication unit 38 and the control unit 39 are realized by the CPU 31 shown in Fig. 3 executing a program stored in the ROM 33 using the RAM 32.
[0031] The storage unit 37 stores information (hereinafter referred to as "type information") related to the type of non-volatile memory mounted in each of the multiple electronic control units 40a to 40d. An example of the type information is shown in Fig. 7. In the type information shown in Fig. 7, an ECU_ID, which is a number for identifying an electronic control unit, is associated with the type (first type or second type) of the non-volatile memory mounted in the electronic control unit.
[0032] This type information may be created in advance based on the specifications of the electronic control units constituting the in-vehicle network 20 and stored in the storage unit 37 when the vehicle is manufactured. Alternatively, the type information may be acquired by a communication unit 38 (described later) from the target electronic control unit through communication within the in-vehicle network 20 during software update processing, to acquire the type of the nonvolatile memory from the target electronic control unit. If the type of the nonvolatile memory is acquired from the target electronic control unit every time a software update processing is performed, the OTA master 30 can centrally manage the types of the nonvolatile memories mounted in the multiple electronic control units mounted in the vehicle, and can appropriately respond even if the type of the nonvolatile memory is changed due to replacement of the electronic control unit, etc. Alternatively, the type information may be acquired from the center 10 through communication via the network 70. In this case, the type of the nonvolatile memory of the electronic control unit mounted in the vehicle is managed in advance by the center 10.
[0033] The communication unit 38 transmits a software update check request to the center 10, for example, when the power supply or ignition (IGN) of the vehicle is turned on. The update check request includes a vehicle ID for identifying the vehicle and the software versions of the electronic control units 40a to 40d connected to the in-vehicle network 20. The vehicle ID and the software versions of the electronic control units 40a to 40d are used to determine whether or not there is update data for the software of the electronic control units by comparing them with the latest software version held 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. If there is update data for the software of the electronic control units, 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 addition to the update data, the distribution package may include verification data for verifying the authenticity of the update data, the number of update data, the installation order, type information, various control information used during software update, and the like. Furthermore, when type information is obtained from the target electronic control unit during software update processing, the communication section 38 obtains the type information by communicating with the target electronic control unit.
[0034] The control unit 39 determines whether or not there is update data for the software of the electronic control unit based on a response from the center 10 to the update confirmation request received by the communication unit 38. The control unit 39 also verifies the authenticity of the distribution package received by the communication unit 38 from the center 10 and stored in the storage unit 37. The control unit 39 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 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.
[0035] Here, if the non-volatile memory of the electronic control unit is of the first type (single bank memory), installation and activation are performed consecutively, so consent request processing is performed before installation to request consent from the vehicle user or administrator for the software update. If the non-volatile memory of the electronic control unit is of the second type (dual bank memory), consent request processing for the software update is performed at least after installation and before activation. Note that, if the non-volatile memory of the electronic control unit is of the second type, consent request processing for the software update before installation may be performed or may be omitted.
[0036] In the consent request process, the control unit 39 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 that gives a notification by display or an audio output device that gives a notification by audio can be used. For example, when a display device is used as the output device in the consent request process, the control unit 39 can cause the display device to display an consent request screen for requesting consent to the software update, and can cause the display device to display a notification that prompts a specific input operation such as pressing an consent button when the user or administrator has consented. In addition, in the consent request process, the control unit 39 can cause the display device to display a statement or an icon notifying that update data for the software of the electronic control unit is available, and can cause the display device to display restrictions during the execution of the software update process.
[0037] The control unit 39 performs the consent request process at a timing according to the memory type of the target electronic control unit based on the type information. Then, when the control unit 39 receives an input of consent from the user or administrator, it executes the above-mentioned installation and activation control process to update the software of the target electronic control unit.
[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 update software based on 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 installed update software (activation phase).
[0039] Downloading is a process in which the OTA master 30 receives update data for updating the software of the electronic control unit, which is transmitted from the center 10 in a distribution package, and stores the data in the storage unit 37. Regarding reception of update data by downloading, it is possible to preferentially receive update data intended for an electronic control unit equipped with a second type of nonvolatile memory (dual bank memory) which has a relatively low probability of update failure, or to receive update data intended for an electronic control unit equipped with a first type of nonvolatile memory (single bank memory) and update data intended for an electronic control unit equipped with a second type of nonvolatile memory (dual bank memory) equally. The download phase includes not only execution of the download, but also control of a series of processes related to the download, such as determining whether the download can be executed and verifying the update data.
[0040] The update data transmitted from the center 10 to the OTA master 30 may include update software for the electronic control unit, compressed data obtained by compressing the update software, or divided data obtained by dividing the update software or the compressed data. The update data may also include a number (ECU_ID) of the target electronic control unit and a number (ECU_Software_ID) for identifying the software 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 not only executes the installation, but also includes control of a series of processes related to the installation, such as judging whether the installation can be executed, transferring the update data, and verifying 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 may install the update software based on an installation request from the OTA master 30. 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 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 from the OTA master 30. 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, some specific examples of the software update process executed in the network system according to this embodiment will be described with further reference to FIGS. 8, 9, 10, 11A, 11B, and 12. FIG.
[0049] (1) Specific Example 1 8 is a flowchart for explaining the download processing procedure according to specific example 1 performed by the center 10 and the OTA master 30. This specific example 1 is an example in which the center 10 manages the memory types of the non-volatile memories mounted in each of the multiple electronic control units 40a to 40d, that is, the storage unit 16 stores type information. The same type information may also be stored in the storage unit 37 of the OTA master 30. The processing shown in FIG. 8 is started when the center 10 receives a download request for a distribution package from the OTA master 30.
[0050] (Step S801) The center 10 generates a distribution package including update data for the target electronic control unit that is the target of software update. At this time, the center 10 references the type information stored in the storage unit 16 and generates a distribution package in which the memory type of the non-volatile memory mounted in the target electronic control unit is attached as an attribute to the update data. When the distribution package is generated, the process proceeds to step S802.
[0051] (Step S802) The OTA master 30 receives the distribution package transmitted from the center 10. When the distribution package is received, the process proceeds to step S803.
[0052] (Step S803) The OTA master 30 stores the update data included in the distribution package received from the center 10 and the memory type attached as an attribute to the update data in the storage unit 37. This completes the download process.
[0053] As in the first specific example, when the center 10 manages type information, it is possible to check the consistency between the target electronic control unit and the update data regarding memory type when generating a distribution package. This makes it possible to avoid a situation in which inconsistency is found in the OTA master 30 after downloading. This makes it possible to prevent retransmission of the distribution package and suppress an increase in the amount of communication (communication load) between the center 10 and the OTA master 30.
[0054] (2) Example 2 9 is a flowchart explaining the download processing procedure according to specific example 2 performed by the center 10 and the OTA master 30. This specific example 2 is an example in which the OTA master 30 manages the memory types of the non-volatile memories mounted in each of the multiple electronic control units 40a to 40d, that is, the storage unit 16 of the center 10 does not store type information. The processing shown in FIG. 9 is started when the center 10 receives a download request for a distribution package from the OTA master 30.
[0055] (Step S901) The center 10 generates a distribution package including update data for the target electronic control unit that is the target of software update. At this time, the center 10 does not need to know whether the distribution package includes update data for the electronic control unit equipped with a first type of non-volatile memory (single bank memory) and update data for the electronic control unit equipped with a second type of non-volatile memory (dual bank memory). When the distribution package is generated, the process proceeds to step S902.
[0056] (Step S902) The OTA master 30 receives the distribution package transmitted from the center 10. When the distribution package is received, the process proceeds to step S903.
[0057] (Step S903) The OTA master 30 stores the update data included in the distribution package received from the center 10 in the storage unit 37. This completes the download process.
[0058] In specific example 2, since the OTA master 30 manages the type information, when the memory type of the non-volatile memory is changed due to replacement of the electronic control unit, etc., it is possible to quickly update the type information managed by the OTA master 30 within the vehicle (in-vehicle network 20).
[0059] (3) Example 3 Fig. 10 is a flowchart for explaining the procedure of installation processing according to specific example 3 performed by the OTA master 30 and the target electronic control unit. This specific example 3 is an example in which the OTA master 30 controls the installation order of update data according to the memory type of the nonvolatile memory mounted in the target electronic control unit. In this case, the memory type of the nonvolatile memory mounted in each of the multiple electronic control units 40a to 40d may be managed by either the center 10 or the OTA master 30. The processing shown in Fig. 10 is started after the download of the update data is completed and when predetermined conditions (installation executable, verification of update software, etc.) are satisfied.
[0060] (Step S1001) The OTA master 30 acquires the memory type (first type / second type) of the non-volatile memory mounted in the target electronic control unit (target ECU). This memory type can be acquired by referring to type information stored in the storage unit 37 when managed by the OTA master 30, or by referring to memory type information included in the distribution package and transmitted when managed by the center 10. When the memory type of the target electronic control unit is acquired, the process proceeds to step S1002.
[0061] (Step S1002) The OTA master 30 and the target electronic control unit (target ECU) equipped with the second type of nonvolatile memory (dual bank memory) execute installation, which is a process of writing update software to a storage area based on the update data. This installation is executed continuously or in parallel for all of the target electronic control units equipped with the second type of nonvolatile memory (first process). When the execution of installation for all of the target electronic control units equipped with the second type of nonvolatile memory is completed, the process proceeds to step S1003.
[0062] (Step S1003) The OTA master 30 and a target electronic control unit (target ECU) equipped with a first type of nonvolatile memory (single bank memory) execute installation, which is a process of writing update software to a storage area based on the update data. This installation is executed continuously or in parallel for all of the target electronic control units equipped with the first type of nonvolatile memory (second process). When the execution of installation for all of the target electronic control units equipped with the first type of nonvolatile memory is completed, the installation for all of the target electronic control units is completed and the installation process ends.
[0063] In the third specific example, installation into a target electronic control unit equipped with a dual bank memory that does not require stop control during update is executed with priority over installation into a target electronic control unit equipped with a single bank memory that requires stop control during update. This process allows the OTA master 30, which can grasp the write status of the update software in real time, to write the update software into the storage area of the target electronic control unit equipped with a dual bank memory first, and start writing the update software into the storage area of the target electronic control unit equipped with a single bank memory when the writing is about to be completed. This reduces the communication load within the vehicle (in-vehicle network 20) and shortens the time that the control of the vehicle must be stopped until writing of all the update software is completed.
[0064] (4) Example 4 11A and 11B are flow charts for explaining the procedure of installation processing according to the specific example 4 performed by the OTA master 30 and the target electronic control unit. The processing of FIG. 11A and the processing of FIG. 11B are connected by a connector X. This specific example 4 is an example in which the OTA master 30 controls the installation order of update data according to the memory type of the nonvolatile memory mounted in the target electronic control unit while ensuring consistency between the memory type of the nonvolatile memory mounted in the target electronic control unit and the memory type managed by the type information. In this case, the memory type of the nonvolatile memory mounted in each of the multiple electronic control units 40a to 40d may be managed by either the center 10 or the OTA master 30. The processing shown in FIG. 11A and FIG. 11B is started after the download of the update data is completed and when a predetermined condition (installation executable, verification of update software, etc.) is satisfied.
[0065] (Step S1101) The OTA master 30 acquires the memory type (first type / second type) of the non-volatile memory mounted in the target electronic control unit (target ECU). This memory type can be acquired by referring to type information stored in the storage unit 37 when managed by the OTA master 30, or by referring to memory type information included in the distribution package and transmitted when managed by the center 10. When the memory type of the target electronic control unit is acquired, the process proceeds to step S1102.
[0066] (Step S1102) The OTA master 30 and a target electronic control unit (target ECU) equipped with a second type of nonvolatile memory (dual bank memory) execute installation, which is a process of writing update software to a storage area based on the update data. At this time, the OTA master 30 notifies the target electronic control unit that executed the installation of the memory type acquired in step S1101. When the installation is executed for the target electronic control unit equipped with the second type of nonvolatile memory and the memory type is notified, the process proceeds to step S1103.
[0067] (Step S1103) The target electronic control unit that executed the installation determines whether or not the memory type of the nonvolatile memory mounted thereon matches the memory type notified by the OTA master 30. That is, the target electronic control unit that executed the installation determines whether or not the memory type notified by the OTA master 30 is the second type. If the two memory types match (step S1103, Yes), the process proceeds to step S1102, and if the two memory types do not match (step S1103, No), the process proceeds to step S1104.
[0068] (Step S1104) The target electronic control unit equipped with the second type of nonvolatile memory notifies the OTA master 30 that the memory type notified by the OTA master 30 does not match the memory type of the nonvolatile memory equipped in the target electronic control unit itself. If the center 10 manages the memory types of the nonvolatile memories equipped in each of the multiple electronic control units 40a to 40d, this notification is transmitted from the OTA master 30 to the center 10. When the mismatch in memory types is notified, the process proceeds to step S1102.
[0069] The first process in steps S1102 to S1104 described above is executed consecutively or in parallel for all of the target electronic control units equipped with the second type of nonvolatile memory (dual bank memory).
[0070] (Step S1105) The OTA master 30 and a target electronic control unit (target ECU) equipped with a first type of non-volatile memory (single bank memory) execute installation, which is a process of writing update software to a storage area based on the update data. At this time, the OTA master 30 notifies the target electronic control unit that executed the installation of the memory type acquired in step S1101. After the execution of installation and notification of the memory type for the target electronic control unit equipped with the first type of non-volatile memory are performed, the process proceeds to step S1106.
[0071] (Step S1106) The target electronic control unit that executed the installation determines whether or not the memory type of the nonvolatile memory mounted thereon matches the memory type notified by the OTA master 30. That is, the target electronic control unit that executed the installation determines whether or not the memory type notified by the OTA master 30 is the first type. If the two memory types match (step S1106, Yes), the process proceeds to step S1105, and if the two memory types do not match (step S1106, No), the process proceeds to step S1107.
[0072] (Step S1107) The target electronic control unit equipped with the first type of nonvolatile memory notifies the OTA master 30 that the memory type notified by the OTA master 30 does not match the memory type of the nonvolatile memory equipped in the target electronic control unit itself. If the center 10 manages the memory types of the nonvolatile memories equipped in each of the multiple electronic control units 40a to 40d, this notification is transmitted from the OTA master 30 to the center 10. When the mismatch in memory types is notified, the process proceeds to step S1105.
[0073] The second process in steps S1105 to S1107 described above is executed consecutively or in parallel for all of the target electronic control units equipped with the first type of nonvolatile memory (single bank memory).
[0074] When the execution of installation (first process) for all target electronic control units equipped with the second type of non-volatile memory is completed, and when the execution of installation (second process) for all target electronic control units equipped with the first type of non-volatile memory is completed, the installation process ends.
[0075] In the specific example 4, in addition to performing installation for a target electronic control unit equipped with a dual bank memory that does not require stop control during update prior to installation for a target electronic control unit equipped with a single bank memory that requires stop control during update (specific example 3), a check is made to see if the memory type of the non-volatile memory mounted in the target electronic control unit matches the memory type managed by the type information. This process makes it possible to install update software that matches the actual situation when the memory type in the type information managed by the center 10 or the OTA master 30 is different from the actual situation of the target electronic control unit. Also, if necessary, the memory type in the type information managed by the center 10 or the OTA master 30 can be rewritten and updated.
[0076] (5) Example 5 12 is a flowchart for explaining the download and installation process steps according to specific example 5 performed by the center 10, the OTA master 30, and the target electronic control unit. This specific example 5 is an example in which a distribution package including update data for a target electronic control unit equipped with a first type of nonvolatile memory (single bank memory) and update data for a target electronic control unit equipped with a second type of nonvolatile memory (dual bank memory) is transmitted from the center 10. The memory types of the nonvolatile memories mounted in each of the multiple electronic control units 40a to 40d are managed by the center 10. The process shown in FIG. 12 is started when the center 10 receives a download request for the distribution package from the OTA master 30.
[0077] (Step S1201) The center 10 generates a distribution package including update data for an electronic control unit equipped with a first type of non-volatile memory (single bank memory) and update data for an electronic control unit equipped with a second type of non-volatile memory (dual bank memory). At this time, the center 10 refers to the type information stored in the storage unit 16 and generates a distribution package in which the update data for the first type and the update data for the second type are mixed. The memory type may be attached to the update data as an attribute. When the distribution package is generated, the process proceeds to step S1202.
[0078] (Step S1202) The OTA master 30 receives the distribution package transmitted from the center 10. When the distribution package is received, the process proceeds to step S1203.
[0079] (Step S1203) The OTA master 30 stores the update data and the memory type of the update data included in the distribution package received from the center 10 in the storage unit 37. Once the update data and the memory type of the update data are stored, the process proceeds to step S1204.
[0080] (Step S1204) The OTA master 30 and the target electronic control unit (target ECU) execute an installation process, which is a process of writing update software to a storage area based on the update data. At this time, the installation process for the target electronic control unit equipped with the first type of non-volatile memory and the installation process for the target electronic control unit equipped with the second type of non-volatile memory are executed in parallel. When the installation process for all the target electronic control units is completed, this process ends.
[0081] As in the fifth concrete example, when the center 10 manages type information, it is possible to check the consistency between the target electronic control unit and the update data with respect to the memory type when generating a distribution package. This makes it possible to avoid a situation in which inconsistency is found in the OTA master 30 after downloading. This makes it possible to prevent retransmission of the distribution package and suppress an increase in the amount of communication (communication load) between the center 10 and the OTA master 30. In addition, since installation for a target electronic control unit equipped with a single bank memory and installation for a target electronic control unit equipped with a dual bank memory can be performed in parallel, it is possible to quickly complete the software update process for a system including both a target electronic control unit equipped with a single bank memory and a target electronic control unit equipped with a dual bank memory.
[0082] <Actions and Effects> As described above, according to the network system of one embodiment of the present disclosure, a distribution package including update data intended for an electronic control unit equipped with a single bank memory (a first type of non-volatile memory) and update data intended for an electronic control unit equipped with a dual bank memory (a second type of non-volatile memory), i.e., a distribution package including a mixture of multiple update data of different types, can be transmitted and received between the center and the OTA master.
[0083] As a result, for example, in the case where the center manages type information regarding the memory type of the non-volatile memory mounted in each of a plurality of electronic control units mounted in a vehicle, it is possible to check the consistency between the target electronic control unit and the update data regarding the memory type when generating a distribution package. This makes it possible to avoid a situation where a lack of consistency is found in the OTA master after downloading. This makes it possible to prevent retransmission of the distribution package and suppress an increase in the amount of communication (communication load) between the center and the OTA master. In addition, in the case where the OTA master manages type information, if the memory type of the non-volatile memory is changed due to replacement of the electronic control unit, etc., it becomes possible to quickly update the type information managed by the OTA master in the vehicle (in-vehicle network).
[0084] In addition, since the OTA master can receive a distribution package including update data for an electronic control unit equipped with a single bank memory and update data for an electronic control unit equipped with a dual bank memory, between the OTA master and the target electronic control unit, installation for a target electronic control unit equipped with a dual bank memory, which does not require stop control during the update, can be performed with priority over installation for a target electronic control unit equipped with a single bank memory, which requires stop control during the update.
[0085] This allows the OTA master to write update software to the storage area of the target electronic control unit equipped with dual bank memory first, and when the writing is about to be completed, start writing the update software to the storage area of the target electronic control unit equipped with single bank memory. This reduces the communication load within the vehicle (in-vehicle network) and shortens the time that vehicle control must be stopped until writing of all update software is completed.
[0086] Alternatively, the OTA master can perform installation in a target electronic control unit with a single bank memory and installation in a target electronic control unit with a dual bank memory in parallel. In this case, it is expected that the software update process for a system that includes both a target electronic control unit with a single bank memory and a target electronic control unit with a dual bank memory can be completed quickly.
[0087] Although one embodiment of the disclosed technology has been described above, the present disclosure can be understood as not only an OTA master, but also an update method executed by an OTA master having a processor and a memory, an update program, a computer-readable non-transitory storage medium storing the update program, a center capable of communicating with the OTA master, a system including a center and an OTA master, or a vehicle including an OTA master. [Industrial Applicability]
[0088] The disclosed technique can be used in a network system for updating programs in electronic control units. [Explanation of symbols]
[0089] 10 Center 11, 31, 41 CPUs 12, 32, 42 RAM 13, 34 Storage device 14, 36, 44 Communication equipment 16, 37 Memory section 17, 38 Communications Department 18, 39 Control section 20 In-vehicle network 30 OTA Master 33 ROM 35 Microcomputer 40a~40d Electronic control unit (ECU) 43a, 43b Non-volatile memory 45, 46a, 46b Storage area 50 Communication Module 60a~60c Bus 70 Network
Claims
1. An OTA master that controls software updates of an electronic control unit mounted on a vehicle, receiving from a center a distribution package including update data intended for the electronic control unit equipped with a first type of non-volatile memory having one storage area, update data intended for the electronic control unit equipped with a second type of non-volatile memory having two storage areas, and the number of the update data; notifying the electronic control unit of a type of non-volatile memory mounted in the electronic control unit; An OTA master comprising a communication unit that receives, as a notification from the electronic control unit, a determination result as to whether or not the type of nonvolatile memory mounted in the electronic control unit matches the notified type of nonvolatile memory.
2. 2. The OTA master according to claim 1, further comprising a control unit that transfers the update data received by the communication unit to the electronic control unit to be updated based on type information indicating whether the non-volatile memory mounted in the electronic control unit is the first type or the second type.
3. The OTA master according to claim 2 , wherein the communication unit acquires the type information from the center.
4. The OTA master according to claim 2 , further comprising a storage unit that stores the type information.
5. 5. The OTA master according to claim 2, wherein the control unit transfers update data for the electronic control unit equipped with the second type of non-volatile memory to the electronic control unit to be updated, based on the type information, giving priority to update data for the electronic control unit equipped with the first type of non-volatile memory.
Citation Information
Patent Citations
Method for rewriting software of on-vehicle equipment, system of telematics system, and telematics device
JP2004326689A
Electronic control system for vehicle, method for determining download of distribution package, and program for determining download of distribution package
JP2020027628A
Program update system, control system, moving body, program update method and program
JP2020144682A
