Center, OTA master, system, method, program, and vehicle

The center and OTA master system addresses the issue of mixed memory types in electronic control units by adapting update processes based on communication status, ensuring efficient software updates and reduced startup times.

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

Patent Information

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

AI Technical Summary

Technical Problem

Electronic control units with single bank memory and dual bank memory require different recovery methods during software updates, leading to prolonged startup times when mixed in a vehicle update campaign due to mismatched download and installation processes.

Method used

A center and OTA master system that distinguishes between single bank and dual bank memory types, controlling software updates based on communication status to ensure appropriate data transmission and processing for each memory type.

Benefits of technology

Facilitates efficient software updates for both single bank and dual bank memory electronic control units, reducing the time required for proper startup post-update.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540402000008
    Figure 0007540402000008
  • Figure 0007540402000003
    Figure 0007540402000003
  • Figure 0007540402000002
    Figure 0007540402000002
Patent Text Reader

Abstract

To provide a center, an OTA master, or the like, that can execute a software update adapted to a single-bank memory and a dual-bank memory.SOLUTION: A center which can communicate with an OTA master configured to control software update of electronic control units mounted on a vehicle includes: a communication unit configured to transmit, to the OTA master, first-type update data that is update data for an electronic control unit on which a first-type non-volatile memory having one storage area is mounted and second-type update data that is update data for an electronic control unit on which a second-type non-volatile memory having two storage areas is mounted; and a control unit configured to control, on the basis of, a communication state between the center and the OTA master, the update data to be transmitted from the communication unit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a center, an OTA master, or the like 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 the 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 a center, OTA master, etc. that can perform software updates adapted to 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 a center capable of communicating with an OTA master that controls software updates of an electronic control unit mounted on a vehicle, the center including a communication unit that transmits to the OTA master first type update data, which is update data intended for an electronic control unit equipped with a first type of non-volatile memory having one storage area, and second type update data, which is update data intended for an electronic control unit equipped with a second type of non-volatile memory having two storage areas, and a control unit that controls the update data transmitted from the communication unit based on the communication status between the center and the OTA master. Effect of the Invention

[0010] According to the center of the present disclosure, software updates (downloads) suitable for single bank memories and dual bank memories can be executed based on the communication status between the center and the vehicle (OTA master). [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a block diagram showing an overall configuration of a network system according to an embodiment; [Diagram 2] Block diagram showing the general configuration of the center [Diagram 3] Center functional block diagram [Figure 4] Block diagram showing the schematic configuration of the OTA master [Diagram 5] OTA Master Functional Block Diagram [Figure 6A] FIG. 1 is a block diagram showing an example of a schematic configuration of an electronic control unit; [Figure 6B] FIG. 1 is a block diagram showing an example of a schematic configuration of an electronic control unit; [Figure 7] FIG. 13 is a diagram showing an example of type information [Figure 8] Example of a flow chart of the download process performed by the center and OTA master [Figure 9] Example of a flowchart for the installation process performed by the OTA master and the target electronic control unit [Figure 10] Example of a flowchart of the activation process performed by the OTA master and the target electronic control unit DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] In the network system disclosed herein, update data suitable for the memory type (single bank memory / dual bank memory) of the electronic control unit to be updated is downloaded based on the communication status between the center and the vehicle. This process can reduce the time it takes to properly start up the electronic control unit after the software update. 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 is capable of communicating with an OTA master 30 (described later) provided in the in-vehicle network 20 via the network 70. The center 10 can control and manage software updates of the multiple electronic control units 40a-40d connected to the OTA master 30 by transmitting update data for the software of the electronic control units 40a-40d and receiving notifications indicating the progress of the software update process between the center 10 and 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 software update control and update management, and software 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] Fig. 3 is a functional block diagram of the center 10 shown in Fig. 2. The center 10 shown in Fig. 3 includes a storage unit 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.

[0017] 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 at least update management information in which information indicating software available in the electronic control units 40a to 40d is associated with each vehicle identification information (vehicle ID) for identifying the vehicle, and update data (or a distribution package including the update data) of the software of the electronic control units 40a to 40d. As the information indicating the software available in the electronic control units 40a to 40d, for example, a combination of the latest version information of each software of the multiple electronic control units 40a to 40d is defined. Furthermore, as the information related to the software update processing, the storage unit 16 can store an update status indicating the update state of the software being performed in the vehicle. Furthermore, the storage unit 16 can store information (described later) related to the type of non-volatile memory mounted in each of the multiple electronic control units 40a to 40d.

[0018] The communication unit 17 functions as a transmitting unit and a receiving unit that transmits and receives data, information, requests, and the like to and from the OTA master 30. The communication unit 17 receives a software update confirmation request from the OTA master 30 (receiving unit). The update confirmation request is information transmitted from the OTA master 30 to the center 10 when, for example, the power supply or ignition is turned on in the vehicle (hereinafter referred to as "power ON"), and is information for requesting the center 10 to confirm whether or not there is update data for the electronic control units 40a to 40d based on vehicle configuration information described later. In addition, in response to the update confirmation request received from the OTA master 30, the communication unit 17 transmits information indicating the presence or absence of update data to the OTA master 30 (transmitting unit). In addition, the communication unit 17 receives a transmission request (download request) for a distribution package from the OTA master 30 (receiving unit). In addition, when the communication unit 17 receives a download request for a distribution package, it transmits a distribution package (described later) including update data for the software of the electronic control units 40a to 40d to the OTA master 30 based on the communication status between the center 10 and the OTA master 30.

[0019] 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 units 40a-40d 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. The determination result by the control unit 18 as to whether or not there is update data is transmitted to the OTA master 30 by the communication unit 17. When the control unit 18 determines that there is software update data for the electronic control units 40a-40d, and receives a download request for a distribution package from the OTA master 30, the control unit 18 controls the update data to be transmitted to the OTA master 30 based on the communication status between the center 10 and the OTA master 30. Furthermore, the control unit 18 generates a distribution package including the corresponding update data stored in the storage unit 16 as necessary.

[0020] (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.

[0021] The OTA master 30 can wirelessly communicate with the center 10 via the bus 60a and the communication module 50 and the network 70. The OTA master 30 is a device having a function of managing an OTA state, controlling an update sequence, which is a flow of a software update process, and performing a software update of an electronic control unit to be updated (hereinafter referred to as a "target electronic control unit"). The OTA master 30 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, etc. The OTA master 30 is sometimes referred to as a central gateway (CGW).

[0022] Fig. 4 is a block diagram showing a schematic configuration of the OTA master 30 in Fig. 1. As shown in Fig. 4, the OTA master 30 includes a CPU 31, a RAM 32, a ROM (Read-Only Memory) 33, a storage device 34, and a communication device 36. The CPU 31, the RAM 32, the ROM 33, and the storage device 34 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 each of the electronic control units 40a to 40d via the buses 60a to 60c shown in Fig. 1.

[0023] Fig. 5 is a functional block diagram of the OTA master 30 shown in Fig. 4. The OTA master 30 shown in Fig. 5 includes a storage unit 37, a communication unit 38, and a control unit 39. The storage unit 37 is realized by the storage device 34 shown in Fig. 4. The communication unit 38 and the control unit 39 are realized by the CPU 31 shown in Fig. 4 executing a program stored in the ROM 33 using the RAM 32.

[0024] The storage unit 37 stores a program for executing software updates of the multiple electronic control units 40a to 40d (a control program for the OTA master 30), various data used when executing software updates, and software update data downloaded from the center 10. The storage unit 37 can also store information (described later) related to the type of non-volatile memory mounted in each of the multiple electronic control units 40a to 40d.

[0025] The communication unit 38 functions as a transmitting unit and a receiving unit that transmits and receives data, information, requests, and the like to and from the center 10. The communication unit 38 transmits a software update check request to the center 10, for example, when the power of the vehicle is turned on (transmitting unit). The update check request includes, for example, a vehicle ID for identifying the vehicle and information on the current version of the software of the electronic control units 40a to 40d connected to the in-vehicle network 20. The vehicle ID and the current version of the software 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 40a to 40d by comparing them with the latest version of the software 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 (receiving unit). When there is software update data for the electronic control units 40a to 40d, the communication unit 38 transmits a download request for a distribution package of the software update data to the center 10 (transmission unit), and receives (downloads) the distribution package transmitted from the center 10 based on the communication status between the center 10 and the OTA master 30 under the control of the control unit 39 (reception unit). In addition, the communication unit 38 transmits the update status of the software transmitted by the electronic control units 40a to 40d to the center 10 (transmission unit).

[0026] The control unit 39 judges whether or not there is update data for the software of the electronic control units 40a to 40d based on a response from the center 10 to the update confirmation request received by the communication unit 38. The control unit 39 also verifies the authenticity of the distribution package that the communication unit 38 receives (downloads) from the center 10 and stores in the storage unit 37 based on its own control. The control unit 39 also controls the software update process (various verifications, installation, activation, etc.) of the electronic control units 40a to 40d using the update data received (downloaded) from the center 10. Specifically, the control unit 39 transfers one or more pieces of update data downloaded in the distribution package to the target electronic control unit, and causes the target electronic control unit to install update software based on the update data. After the installation is completed, the control unit 39 instructs the target electronic control unit to activate the installed update software. During this software update process, the control unit 39 appropriately controls procedures such as various verifications, installation, and activation in the multiple electronic control units 40a to 40d.

[0027] The electronic control units 40a to 40d are devices (ECUs: Electronic Control Units) for controlling the operation of each part of the vehicle. In FIG. 1, an example is shown in which the in-vehicle network 20 includes four electronic control units 40a to 40d, but the number of electronic control units is not particularly limited. For example, a display device (HMI) for performing various displays, such as a display that there is update data during software update processing of the electronic control units 40a to 40d, a display of a consent request screen for requesting consent to the software update from the vehicle user or administrator, and a display of the result of the software update, may be connected to the OTA master 30. A car navigation system or the like can 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.

[0028] An example of a schematic configuration of the electronic control units 40a to 40d is shown in FIGS. 6A and 6B.

[0029] The electronic control unit 40a shown in FIG. 6A 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 having one storage area 45 for storing data such as software (hereinafter referred to as a "single bank memory"). Hereinafter, the memory type of the non-volatile memory 43a having the one storage area 45 is referred to as a "first type". In addition to 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.

[0030] The electronic control unit 40b shown in FIG. 6B 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 having two storage areas 46a and 46b for storing data such as software (hereinafter referred to as a "dual bank memory"). Hereinafter, the type of the non-volatile memory 43b having the two storage areas 46a and 46b is referred to as a "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.

[0031] As a specific example, assume that current software is stored in the storage area 46a of the non-volatile memory 43b, which is a dual bank memory, and update software is installed in the storage area 46b. When activation of the update software is instructed from the OTA master 30, for example, the electronic control unit 40b can switch the read start address of the CPU 41 from the top address of the storage area 46a to the top address of the storage area 46b, thereby switching the storage area to be read by the CPU 41 (operation side) and executing the update software installed in the storage area 46b. Note that in this disclosure, a configuration called a "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.

[0032] FIG. 7 shows an example of type information, which is information related to the type of nonvolatile memory mounted in each of the electronic control units 40a to 40d. 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 of nonvolatile memory mounted in the electronic control unit (first type (single bank) / second type (dual bank)). This type information is stored and managed in one or both of the storage unit 37 of the OTA master 30 and the storage unit 16 of the center 10. The type information may be created in advance based on the specifications of the electronic control units 40a to 40d constituting the in-vehicle network 20 and stored in the storage unit 37 of the OTA master 30 when the vehicle is manufactured, or may be acquired by the OTA master 30 from the target electronic control unit through communication within the in-vehicle network 20 during software update processing. In addition, when the type information is managed by the center 10, the OTA master 30 may acquire the type information from the center 10 via the network 70.

[0033] 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 is wirelessly connected to the center 10 via the network 70, and performs vehicle authentication by the OTA master 30, downloading update data, etc. This communication module 50 may be configured as being included in the OTA master 30.

[0034] [Software update process overview] The OTA master 30 transmits a software update check request to the center 10, for example, when the power supply of the vehicle is turned on. The update check request includes a vehicle ID for identifying the vehicle, and vehicle configuration information, which is information on the state (system configuration) of the electronic control units 40a to 40d connected to the in-vehicle network 20, such as the current versions of the hardware and software of the electronic control units 40a to 40d. The vehicle configuration information can be created by acquiring the identification numbers (ECU_ID) of the electronic control units and the identification numbers (ECU_Software_ID) of the software versions of the electronic control units from the electronic control units 40a to 40d connected to the in-vehicle network 20. The vehicle ID and the current versions of the software 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 40a to 40d by comparing them with the latest version of the software held by the center 10 for each vehicle ID. The center 10 transmits a notification indicating the presence or absence of update data to the OTA master 30 as a response to the update check request received from the OTA master 30. When there is update data for the software of the electronic control units 40a to 40d, the OTA master 30 transmits a download request for a distribution package to the center 10. In response to the download request received from the OTA master 30, the center 10 transmits to the OTA master 30 a distribution package (described later) of update data based on the communication status between the center 10 and the OTA master 30. In addition to the update data, the distribution package may include verification data for verifying the authenticity of the update data, the number and type information of update data, various control information used when updating the software, and the like.

[0035] The OTA master 30 determines whether or not there is update data for the software of the electronic control units 40a to 40d, based on the response to the update confirmation request received from the center 10. The OTA master 30 also verifies the authenticity of the distribution package received from the center 10 and stored in the storage device 13, based on the communication status between the center 10 and the OTA master 30. The OTA master 30 also transfers one or more pieces of update data downloaded in the distribution package to the target electronic control unit, and causes the target electronic control unit to install the update data. After the installation is completed, the OTA master 30 instructs the target electronic control unit to activate the installed updated software.

[0036] In addition, in the consent request process, the OTA master 30 causes the output device to output a notification that consent is required for the software update or a notification that prompts input that the software update has been consented to. As the output device, a display device (not shown) that provides a notification by display and an audio output device (not shown) that provides a notification by audio, which are provided in the in-vehicle network 20, can be used. For example, when a display device is used as the output device in the consent request process, the OTA master 30 can cause the display device to display a consent request screen for requesting consent to the software update from the user or administrator, or cause the display device to display a notification that prompts a specific input operation such as pressing an consent button if the user or administrator consents. In addition, in the consent request process, the OTA master 30 can cause the display device to display a statement or an icon notifying that there is update data for the software of the electronic control units 40a to 40d, or cause the display device to display restrictions during the execution of the software update process. When the OTA master 30 receives input indicating consent from the user or administrator, it executes the above-mentioned installation and activation control process and updates the software of the target electronic control unit.

[0037] Here, if the non-volatile memory of the target electronic control unit is a single bank memory, in principle, installation and activation are performed consecutively, so consent request processing for the software update is performed before installation is performed. Note that even in the case of a target electronic control unit with a single bank memory, it may be requested to temporarily stop the update processing when installation is complete, that is, to wait (put on hold) activation. Also, if the non-volatile memory of the target electronic control unit is a dual bank memory, consent request processing for the software update is performed at least after installation is performed and before activation is performed. Note that if the non-volatile memory of the target electronic control unit is a dual bank memory, consent request processing for the software update before installation may be performed or may be omitted.

[0038] The software update process consists of a phase in which the OTA master 30 downloads update data from the center 10 (download phase), a phase in which the OTA master 30 transfers the downloaded update data to the target electronic control unit and installs 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 transmitted from the center 10 and stores it in the storage unit 37. In downloading, update data for an electronic control unit equipped with a dual bank memory and update data for an electronic control unit equipped with a single bank memory are downloaded using a predetermined distribution package described below based on the communication status between the center 10 and the OTA master 30. 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 (all data or difference data), 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 the ECU_ID (or serial number) of the target electronic control unit and the ECU_Software_ID of the target electronic control unit before the update. The distribution package to be downloaded may include update data for only a single electronic control unit or update data for multiple electronic control units.

[0041] The installation is a process in which the OTA master 30 writes update software (updated programs) in the non-volatile memories 43a and / or 43b of multiple target electronic control units in a predetermined order based on update data downloaded from the center 10 in accordance with the communication status between the center 10 and the OTA master 30. The installation may be performed by prioritizing either the update data intended for an electronic control unit equipped with a dual bank memory or the update data intended for an electronic control unit equipped with a single bank memory, or may be performed equally. The installation phase includes not only the execution of the installation, but also the control of a series of processes related to the installation, such as judging whether the installation can be performed, transferring the update data, and verifying the update software.

[0042] If the update data includes the update software itself (all data), the OTA master 30 transfers the update data (update software) to the target electronic control unit in the installation phase. If the update data includes compressed data, difference data, or divided data of the update software, the OTA master 30 may transfer the update data to the target electronic control unit and the target electronic control unit may generate the update software from the update data, or the OTA master 30 may generate the update software from the update data and then transfer the update software to the target electronic control unit. Here, the update software can be generated by decompressing the compressed data or assembling (integrating) the difference data or divided data.

[0043] The target electronic control unit can install the update software based on an installation request from the OTA master 30. Note that for a specific target electronic control unit that has received the update data, the installation may be performed autonomously without receiving an explicit instruction from the OTA master 30.

[0044] Activation is a process in which the target electronic control unit activates the update software installed in the non-volatile memory 43a and / or 43b. Activation may be performed with priority given to either the update data intended for the electronic control unit equipped with a dual bank memory or the update data intended for the electronic control unit equipped with a single bank memory, or may be performed without regard to priority to either. The activation phase includes not only the execution of activation, but also a series of controls related to activation, such as determining whether or not activation can be performed, requesting consent to activation from the vehicle user or administrator, and verifying the execution results.

[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. Note that, for a specific target electronic control unit that has received the update data, the activation may be performed autonomously 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 target 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, and 10. FIG.

[0049] (1) Specific examples of downloads 8 is a flowchart illustrating a process procedure according to a specific example of downloading performed by the center 10 and the OTA master 30. The download process illustrated 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 judges whether the communication status between the center 10 and the OTA master 30 is good. The communication status can be judged based on the execution status (communication band availability and communication load status) of an application that controls communication between the center 10 and the vehicle. As an example, the communication status can be defined as good when there is a predetermined value or more of available communication band or the communication load is less than a predetermined value. This predetermined value can be arbitrarily set based on a judgment of whether or not the selection of an individual distribution package described later is desirable, taking into consideration the size of the update data, the communication environment implemented in the vehicle, and the deadline for software update. If the communication status between the center 10 and the OTA master 30 is good (step S801, Yes), the process proceeds to step S802. On the other hand, if the communication status between the center 10 and the OTA master 30 is not good (step S801, No), the process proceeds to step S803.

[0051] (Step S802) The center 10 simultaneously transmits to the OTA master 30 update data (hereinafter referred to as "first type update data") for a target electronic control unit equipped with a first type of nonvolatile memory (single bank memory) among target electronic control units to be updated with software, and update data (hereinafter referred to as "second type update data") for a target electronic control unit equipped with a second type of nonvolatile memory (dual bank memory). The simultaneous transmission of the first type update data and the second type update data can be performed by transmitting an identical distribution package, which is a distribution package in which both the first type update data and the second type update data are packaged together. The center 10 may generate the identical distribution package based on update data acquired from the vehicle manufacturer (OEM), or may acquire an identical distribution package generated by the vehicle manufacturer and use it as is. The identical distribution package in which the first type update data and the second type update data are mixed may be generated in multiple parts for each target electronic control unit. When the first type update data and the second type update data are simultaneously transmitted from the center 10, the process proceeds to step S804.

[0052] (Step S803) The center 10 transmits the first type update data and the second type update data to the OTA master 30 separately. The individual transmission of the first type update data and the second type update data can be performed by separately transmitting a distribution package (individual distribution package) in which only the first type update data is packaged, and a distribution package (individual distribution package) in which only the second type update data is packaged. An example of a transmission method is to first transmit an individual distribution package of the second type update data, which has a relatively low update failure probability, and then transmit an individual distribution package of the first type update data. The center 10 may generate an individual distribution package based on update data acquired from the vehicle manufacturer (OEM), or may acquire an individual distribution package generated by the vehicle manufacturer and use it as it is. In addition, when the center 10 acquires update data in the form of the same distribution package from the vehicle manufacturer, it newly generates an individual distribution package of the first type update data and an individual distribution package of the second type update data. Furthermore, the center 10 may divide an individual distribution package including multiple update data generated by a vehicle manufacturer into multiple packages, for example, for each target electronic control unit. The center 10 can determine the memory type of the non-volatile memory mounted in the target electronic control unit by referring to the type information stored in the storage unit 16. When the first type update data and the second type update data are separately transmitted from the center 10, the process proceeds to step S804.

[0053] (Step S804) The OTA master 30 receives the update data transmitted by the distribution package from the center 10. When the communication conditions between the center 10 and the OTA master 30 are good, the OTA master 30 can simultaneously receive the first type update data and the second type update data by a download process from the center 10 using the same distribution package. When the communication conditions between the center 10 and the OTA master 30 are not good, the OTA master 30 can separately receive the first type update data and the second type update data by a download process from the center 10 using individual distribution packages. When the distribution package transmitted from the center 10 is received, the process proceeds to step S805.

[0054] (Step S805) The OTA master 30 judges whether or not the download of all the update data (first type / second type) transmitted from the center 10 has been completed. The completion of the download of all the update data can be judged by whether or not all the update data requested from the center 10 by the download request has been received. If the download of all the update data has been completed (step S805, Yes), the process proceeds to step S806. On the other hand, if the download of all the update data has not been completed (step S806, No), the process proceeds to step S801.

[0055] (Step S806) The OTA master 30 stores the update data received from the center 10 in the distribution package in the storage unit 37. This completes the download process.

[0056] According to this specific example of downloading, the center 10 and the OTA master 30 can download update data suitable for updating the software of each target ECU, based on the communication status between the center 10 and the OTA master 30.

[0057] In the above specific example, the center 10 determines the communication status between the center 10 and the OTA master 30, and transmits either the same distribution package or the same distribution package to the OTA master 30. Alternatively, the OTA master 30 may determine the communication status between the center 10 and the OTA master 30, and transmit a download request to the center 10 for either the same distribution package or the same distribution package, thereby controlling to receive an appropriate distribution package.

[0058] (2) Installation example Fig. 9 is a flowchart for explaining the procedure of an installation process according to a specific example performed by the OTA master 30 and a target electronic control unit (hereinafter referred to as "target ECU"). The specific example of installation illustrated in Fig. 9 is started after downloading of at least one second type update data is completed and when predetermined conditions (installation can be executed, verification of update data is OK, etc.) are satisfied.

[0059] (Step S901) The OTA master 30 acquires the type (first type / second type) of the non-volatile memory mounted in the target ECU. If the memory type is managed by the OTA master 30, it can be acquired by referring to the type information (FIG. 7) stored in the storage unit 37, and if the memory type is managed by the center 10, it can be acquired by referring to the memory type information included in the distribution package and transmitted. When the memory type of the target ECU is acquired, the process proceeds to step S902.

[0060] (Step S902) The OTA master 30 and the second type target ECU start installation, which is a process of writing update software to the storage area of ​​the non-volatile memory of the second type target ECU based on the update data. This installation is started for all the second type target ECUs at once or in a predetermined order. When the installation for the second type target ECUs starts, the process proceeds to step S903.

[0061] (Step S903) The OTA master 30 and the first type target ECU start installation, which is a process of writing update software to a storage area of ​​a non-volatile memory of the first type target ECU based on the update data. This installation is started for all of the first type target ECUs at the same time or in a predetermined order. Note that the installation for the first type target ECUs may be started after the installation for all of the second type target ECUs is completed, or after the installation for a predetermined part of the second type target ECUs is completed. When the installation for the first type target ECU is started, the process proceeds to step S904.

[0062] (Step S904) The OTA master 30 judges whether installation of the update software in all (first and second type) target ECUs is complete. The OTA master 30 may judge completion of installation when a completion notification is received from each target ECU, or when a predetermined time has elapsed since the start of installation. The predetermined time can be set to, for example, equal to or greater than the maximum time required for each installation. When it is judged that installation of the update software in all target ECUs is complete (step S904, Yes), installation in the target ECUs is complete, and this installation process ends.

[0063] According to the specific example of the installation, the installation for the second type target ECU that does not require stop control during the update can be started with priority over the installation for the first type target ECU that requires stop control during the update. This process can reduce the communication load within the vehicle (in-vehicle network 20) ​​and shorten the time that the control of the vehicle must be stopped until writing of all the update software is completed.

[0064] (3) Specific examples of activation Fig. 10 is a flowchart for explaining a processing procedure according to a specific example of activation performed by the OTA master 30 and the target ECU. The activation processing illustrated in Fig. 10 is started after the installation of update software for each of the first type target ECU and the second type target ECU is completed and when predetermined conditions (activation can be executed, verification of update data is OK, etc.) are satisfied.

[0065] (Step S1001) The OTA master 30 and the first type target ECU start activation to validate the update software written in the storage area of ​​the non-volatile memory of the first type target ECU. This activation is started for all the first type target ECUs at once or in a predetermined order. When activation of the update software in the first type target ECU starts, the process proceeds to step S1002.

[0066] (Step S1002) The OTA master 30 and the second type target ECU start activation to validate the update software written in the storage area of ​​the non-volatile memory of the second type target ECU. This activation is started for all the second type target ECUs at once or in a predetermined order. The activation of the second type target ECUs may be started after the activation of all the first type target ECUs is completed, or may be started after the activation of a predetermined part of the first type target ECUs is completed. When the activation of the update software in the second type target ECU is started, the process proceeds to step S1003.

[0067] (Step S1003) The OTA master 30 judges whether activation of the update software in all target ECUs (first and second types) is completed. The OTA master 30 may judge the completion of activation when a completion notification is received from each target ECU, or when a predetermined time has elapsed since the start of activation. The predetermined time can be set to, for example, equal to or greater than the maximum time required for each activation. When it is judged that activation of the update software in all target ECUs is completed (step S1003, Yes), activation for the target ECUs is completed, and this activation process ends.

[0068] According to the above specific example of activation, activation of update software for a first type target ECU is started first, and then activation of update software for a second type target ECU is started. This process makes it possible to perform software update for a second type target ECU after confirming success of software update for the first type target ECU, and therefore makes it possible to suitably execute software update processing for a system including both a target ECU equipped with a single bank memory and a target ECU equipped with a dual bank memory.

[0069] <Actions and Effects> As described above, according to a network system according to an embodiment of the present disclosure, the method of downloading 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) is suitably controlled between the center and the OTA master based on the communication status between the center and the OTA master.

[0070] This process enables suitable transmission and reception of update data based on the communication conditions between the center and the vehicle, thereby reducing the time required for the electronic control unit to start up normally after the software update.

[0071] More specifically, when the communication load between the center and the OTA master is less than a predetermined value, the update data for the electronic control unit equipped with a single bank memory (first type update data) and the update data for the electronic control unit equipped with a dual bank memory (second type update data) are controlled to be received in the same distribution package. Also, when the communication load between the center and the OTA master is equal to or greater than a predetermined value, the update data for the electronic control unit equipped with a single bank memory and the update data for the electronic control unit equipped with a dual bank memory are controlled to be received in separate distribution packages.

[0072] With this process, when the communication load between the center and the vehicle is low, 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 can be downloaded simultaneously, allowing processing after download to proceed without delay.

[0073] The above describes one embodiment of the disclosed technology, but the present disclosure can be understood as not only a center, but also a method executed by a center equipped with a processor and memory, a program, a computer-readable non-transitory storage medium storing a program, an OTA master capable of communicating with a center, a system equipped with a center and an OTA master, or a vehicle equipped with an OTA master. [Industrial Applicability]

[0074] The disclosed technique can be used in a network system for updating software in an electronic control unit. [Explanation of symbols]

[0075] 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. A center capable of communicating with an OTA master that controls software updates of an electronic control unit mounted in a vehicle, a communication unit that transmits to the OTA master first type update data, which is update data intended for the electronic control unit equipped with a first type of nonvolatile memory having one storage area, and second type update data, which is update data intended for the electronic control unit equipped with a second type of nonvolatile memory having two storage areas and has a lower probability of update failure compared to the first type update data; a control unit that controls the update data to be transmitted from the communication unit based on a communication status between the center and the OTA master; The control unit is When a communication load between the center and the OTA master is less than a predetermined value, the first type update data and the second type update data are controlled so as to be transmitted from the communication unit in a same distribution package; The center controls the communication unit to transmit the first type update data and the second type update data in separate distribution packages when the communication load between the center and the OTA master is equal to or greater than the predetermined value.

2. A center as described in claim 1, wherein the control unit controls the communication unit to transmit a distribution package of update data for the second type first, and then a distribution package of update data for the first type, when the communication load between the center and the OTA master is equal to or greater than the specified value.

3. An OTA master that controls software updates of an electronic control unit mounted on a vehicle, a communication unit that receives from a center first type update data, which is update data intended for the electronic control unit equipped with a first type nonvolatile memory having one storage area, and second type update data, which is update data intended for the electronic control unit equipped with a second type nonvolatile memory having two storage areas and has a lower update failure probability than the first type update data; a control unit that controls the update data received by the communication unit based on a communication status between the center and the OTA master; The control unit is When a communication load between the center and the OTA master is less than a predetermined value, the communication unit requests the center to transmit the first type update data and the second type update data in a same distribution package; When the communication load between the center and the OTA master is equal to or greater than the specified value, the communication unit requests the center to transmit the first type update data and the second type update data in separate distribution packages.

4. A system including an OTA master that controls software updates of an electronic control unit mounted on a vehicle, and a center that can communicate with the OTA master, The center includes: a first communication unit that transmits to the OTA master first type update data, which is update data intended for the electronic control unit equipped with a first type of nonvolatile memory having one storage area, and second type update data, which is update data intended for the electronic control unit equipped with a second type of nonvolatile memory having two storage areas and has a lower probability of update failure compared to the first type update data; a control unit that controls the update data to be transmitted from the first communication unit based on a communication status between the center and the OTA master; The OTA master includes a second communication unit that receives the update data transmitted by the center, The control unit of the center When a communication load between the center and the OTA master is less than a predetermined value, the first communication unit controls to transmit the first type update data and the second type update data in a same distribution package; a first communication unit that controls the first type update data and the second type update data to be transmitted in separate distribution packages when a communication load between the center and the OTA master is equal to or greater than the predetermined value;

5. The system described in Claim 4, wherein the control unit of the center controls the first communication unit to transmit first a distribution package of update data for the second type, and then a distribution package of update data for the first type, when the communication load between the center and the OTA master is equal to or greater than the specified value.

6. A method executed by a center that includes a processor and a memory and is capable of communicating with an OTA master that controls software updates of an electronic control unit installed in a vehicle, the method comprising: A step of determining a communication status between the center and the OTA master; a step of transmitting, when it is determined from the communication status that the communication load between the center and the OTA master is less than a predetermined value, first type update data, which is update data intended for the electronic control unit equipped with a first type of nonvolatile memory having one storage area, and second type update data, which is update data intended for the electronic control unit equipped with a second type of nonvolatile memory having two storage areas and has a lower probability of update failure than the first type update data, to the OTA master in a same distribution package; and when it is determined from the communication status that the communication load between the center and the OTA master is equal to or greater than the predetermined value, transmitting the first type update data and the second type update data to the OTA master in separate distribution packages.

7. A program executed by a computer at a center that includes a processor and a memory and is capable of communicating with an OTA master that controls software updates of an electronic control unit mounted on a vehicle, A step of determining a communication status between the center and the OTA master; a step of transmitting, when it is determined from the communication status that the communication load between the center and the OTA master is less than a predetermined value, first type update data, which is update data intended for the electronic control unit equipped with a first type of nonvolatile memory having one storage area, and second type update data, which is update data intended for the electronic control unit equipped with a second type of nonvolatile memory having two storage areas and has a lower probability of update failure than the first type update data, to the OTA master in a same distribution package; a step of transmitting the first type update data and the second type update data to the OTA master in separate distribution packages when it is determined from the communication status that the communication load between the center and the OTA master is equal to or greater than the specified value.

8. A vehicle equipped with the OTA master according to claim 3.

Citation Information

Patent Citations

  • Method for rewriting software of on-vehicle equipment, system of telematics system, and telematics device

    JP2004326689A

  • Update management system

    JP2018136727A

  • Vehicle information communication system

    WO2020032195A1