This application claims priority to Japanese Patent Application No. 2021-102949 filed on Jun. 22, 2021, incorporated herein by reference in its entirety.
The present invention relates to an OTA master, a system, a method, a non-transitory storage medium, and a vehicle.
A plurality of electronic control units used for controlling an operation of a vehicle is mounted on a vehicle. The electronic control unit includes a processor, a transitory storage unit, such as a random access memory (RAM), and a non-volatile memory which is a non-volatile storage unit, such as a flash read-only memory (ROM). A control function of the electronic control unit is implemented when the processor executes software stored in the non-volatile memory. Software stored in each electronic control unit is rewritable, and by updating to a newer version of the software, it is possible to improve a function of each electronic control unit or add a new vehicle control function.
An over-the-air (OTA) technology is known as a technology for updating software of an electronic control unit. In the OTA technology, a device that wirelessly connects an in-vehicle communication device connected to an in-vehicle network to a communication network, such as the Internet, and executes software update processing of the vehicle updates or adds the software of the electronic control unit by downloading software from a server via wireless communication and installing the downloaded software on the electronic control unit (see, for example, Japanese Unexamined Patent Application Publication No. 2004-326689.)
As types of non-volatile memories mounted on the electronic control unit, there are a memory (a single-bank memory) that has one storage area used for storing data, such as software, and a memory (a dual-bank memory) that has two storage areas used for storing data, such as software. The non-volatile memories may be properly used according to specifications or the like of the electronic control unit. An electronic control unit having the dual-bank memory mounted thereon can store two versions of data, old and new, in the two storage areas, respectively.
In a campaign, which is an event for updating software for vehicles, there is a case where both an electronic control unit having a single-bank memory mounted thereon and an electronic control unit having a dual-bank memory mounted thereon are electronic control units of which software is to be updated. Due to structures of the memories, the electronic control unit having the single-bank memory mounted thereon and the electronic control unit having the dual-bank memory mounted thereon have different recovery methods when the update fails.
For this reason, when applying, to a vehicle, a campaign in which the electronic control unit having the single-bank memory mounted thereon and the electronic control unit having the dual-bank memory mounted thereon are mixed as the electronic control units of which software is to be updated, it is required to appropriately execute a software update in consideration of different structures of the memories mounted on the electronic control units of which software is to be updated. Specifically, when the software is installed not based on a communication state of an in-vehicle network to which each electronic control unit is connected, it may take time to normally start the electronic control unit after the software update in a case due to the recovery method of each electronic control unit in a case where the update fails due to the communication state of the in-vehicle network and it may take time to normally start the electronic control unit after the software update.
The present disclosure provides an OTA master, a system, a method, a non-transitory storage medium, and a vehicle that can execute a software update for an electronic control unit adapted to a single-bank memory and a dual-bank memory.
An OTA master according to a first aspect of the present disclosure includes one or more processors configured to: receive, from a center, first update data for a first electronic control unit on which a first-type non-volatile memory having one storage area is mounted and second update data for a second electronic control unit on which a second-type non-volatile memory having two storage areas is mounted, the first electronic control unit and the second electronic control unit being included in a plurality of electronic control units mounted on a vehicle; and control, based on a communication state between the OTA master and a plurality of target electronic control units of which pieces of software are to be updated among the electronic control units, software update for the target electronic control units based on update data, the update data including the first update data and the second update data.
A system according to a second aspect of the present disclosure includes: an over-the-air (OTA) master including one or more first processors; and a center including one or more second processors. The one or more second processors are configured to communicate with the OTA master, and transmit, to the OTA master, first update data for a first electronic control unit on which a first-type non-volatile memory having one storage area is mounted and second update data for a second electronic control unit on which a second-type non-volatile memory having two storage areas is mounted, the first electronic control unit and the second electronic control unit being included in a plurality of electronic control units mounted on a vehicle. The one or more first processors are configured to receive the first update data and the second update data transmitted by the center; and control, based on a communication state between the OTA master and a plurality of target electronic control units of which pieces of software are to be updated among the electronic control units, software update for the target electronic control units based on update data, the update data including the first update data and the second update data.
A method according to a third aspect of the present disclosure is executed by an OTA master that includes one or more processors and one or more memories. The method includes: receiving, from a center, first update data for a first electronic control unit on which a first-type non-volatile memory having one storage area is mounted and second update data for a second electronic control unit on which a second-type non-volatile memory having two storage areas is mounted, the first electronic control unit and the second electronic control unit being included in a plurality of electronic control units mounted on a vehicle; and controlling, based on a communication state between the OTA master and a plurality of target electronic control units of which pieces of software are to be updated among the electronic control units, software update for the target electronic control units based on update data, the update data including the first update data and the second update data.
A non-transitory storage medium according to a fourth aspect of the present disclosure stores instructions that are executable by a computer of an OTA master which includes one or more processors and one or more memories and that cause the computer to execute the method according to the third aspect.
A vehicle according to a fifth aspect of the present disclosure includes the OTA master according to the first aspect.
With each aspect of the present disclosure, it is possible to execute a software update (installation) for an electronic control unit adapted to a single-bank memory and a dual-bank memory based on a communication state of an in-vehicle network.
Features, advantages, and technical and industrial significance of exemplary embodiments of the invention will be described below with reference to the accompanying drawings, in which like signs denote like elements, and wherein:
A network system of the present invention executes, based on a communication state of an in-vehicle network connected to an electronic control unit (ECU), installation of update data appropriate for a memory type (a single-bank memory/a dual-bank memory) included in an ECU to be updated. By this processing, it is possible to reduce a time required to normally start the ECU after a software update. Hereinafter, one embodiment of the present invention will be described in detail with reference to drawings.
Configuration
(1) Center
The center 10 can communicate with an OTA master 30 (described below) included in the in-vehicle network 20, via a network 70. The center 10 can control and manage the update data of the software of the ECUs 40a to 40d connected to the OTA master 30 by executing transmission of the update data of the software of the ECUs 40a to 40d, reception of a notification indicating a proceeding state of software update processing, or the like, to and from the OTA master 30. The center 10 functions as a so-called server.
The storage unit 16 stores information on the software update processing of one or more ECUs mounted on the vehicle. As the information on the software update processing, the storage unit 16 stores at least update management information in which information indicating pieces of software that can be used in the ECUs 40a to 40d is associated with each piece of vehicle identification information (a vehicle ID) for identifying a vehicle, and the update data of the pieces of the software of the ECUs 40a to 40d. As the information indicating the pieces of the software that can be used in the ECUs 40a to 40d, for example, a combination of latest version information of each piece of the software of the ECUs 40a to 40d is defined. Further, as the information on the software update processing, the storage unit 16 can store an update status indicating an update state of the software being executed in the vehicle. In addition, the storage unit 16 can store information (described below) on types of the non-volatile memories mounted on the ECUs 40a to 40d, respectively.
The communication unit 17 functions as a transmission unit and receiving unit that transmits and receives data, information, requests, and the like, to and from the OTA master 30. The communication unit 17 receives an update confirmation request of the software from the OTA master 30 (the receiving unit). The update confirmation request may be, for example, information transmitted from the OTA master 30 to the center 10 at a time when a power supply or an ignition is turned on (hereinafter, referred to as “power supply ON”) in the vehicle, and is information for requesting a confirmation, from the center 10, on whether there is update data for the ECUs 40a to 40d based on vehicle configuration information described below. Further, the communication unit 17 transmits information indicating whether there is the update data to the OTA master 30 in response to the update confirmation request received from the OTA master 30 (the transmission unit). Further, the communication unit 17 receives a transmission request (a download request) for the distribution package from the OTA master 30 (the receiving unit). Further, upon receiving the download request for the distribution package, the communication unit 17 transmits, to the OTA master 30, the distribution package containing the update data of the pieces of the software of the ECUs 40a to 40d.
When the communication unit 17 receives the update confirmation request from the OTA master 30, the control unit 18 determines, based on the update management information stored in the storage unit 16, whether there is the update data of the pieces of the software of the ECUs 40a to 40d mounted on the vehicle specified by the vehicle ID, which is included in the update confirmation request. The determination result, by the control unit 18, on whether there is the update data is transmitted to the OTA master 30 by the communication unit 17. Upon determining that there is the update data of the pieces of the software of the ECUs 40a to 40d, the control unit 18 controls the update data to be transmitted to the OTA master 30 when receiving the download request for the distribution package from the OTA master 30.
(2) In-Vehicle Network
The in-vehicle network 20 includes the OTA master 30, the ECUs 40a to 40d, and a communication module 50. The OTA master 30 is connected to the communication module 50 via a bus 60a, connected to the ECUs 40a, 40b via a bus 60b, and connected to the ECUs 40c, 40d via a bus 60c.
The OTA master 30 can wirelessly communicate with the center 10 via the bus 60a and the communication module 50 by way of the network 70. The OTA master 30 has functions of managing an OTA state and executing the software update for an ECU to be updated (hereinafter, also referred to as a “target ECU”) by controlling an update sequence, which is a flow of the software update processing. Based on the update data and the like acquired from the center 10, the OTA master 30 controls the software update for the target ECU from among the ECUs 40a to 40d. The OTA master 30 may also be referred to as a central gateway (CGW).
In addition to a program (a control program of the OTA master 30) for updating the software of the ECUs 40a to 40d or various pieces of data used when updating the software, the storage unit 37 stores the update data of the software and the like that are downloaded from the center 10. Further, the storage unit 37 can store the information (described below) on the types of the non-volatile memories mounted on the ECUs 40a to 40d, respectively.
The communication unit 38 functions as a transmission unit and receiving unit that transmits and receives data, information, requests, and the like to and from the center 10. The communication unit 38 transmits the update confirmation request of the software to the center 10 at, for example, the time of power supply ON of the vehicle (the transmission unit). The update confirmation request includes, for example, a vehicle ID for identifying the vehicle and the information on the current versions of the pieces of the software of the ECUs 40a to 40d connected to the in-vehicle network 20. The vehicle ID and the current versions of the pieces of the software of the ECUs 40a to 40d are used for determining whether there is the update data of the pieces of the software of the ECUs 40a to 40d by comparing them with the latest software version held by the center 10 for each vehicle ID. Further, as a response to the update confirmation request, the communication unit 38 receives a notification indicating whether there is the update data from the center 10 (the receiving unit). When there is the update data of the pieces of the software of the ECUs 40a to 40d, the communication unit 38 transmits, to the center 10, a download request for the distribution package of the update data of the software (the transmission unit), and receives (downloads) the distribution package transmitted from the center 10 (the receiving unit). Further, the communication unit 38 transmits, to the center 10, the update state of the software transmitted by the ECUs 40a to 40d (the transmission unit).
The control unit 39 determines whether there is the update data of the pieces of the software of the ECUs 40a to 40d based on the response to the update confirmation request received by the communication unit 38 from the center 10. Further, the control unit 39 verifies, based on its own control, authenticity of the distribution package received (downloaded) by the communication unit 38 from the center 10 and stored in the storage unit 37. Further, the control unit 39 controls the software update processing (various types of verification, the installation, the activation, and the like) for the ECUs 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 ECU based on the communication state of the in-vehicle network 20, and causes the target ECU to install the update software based on the update data. After the completion of the installation, the control unit 39 gives the target ECU an instruction on activation that makes the installed update software active. At the time of executing the software update processing, the control unit 39 suitably controls procedures of the various types of verification, the installation, the activation, and the like on the ECUs 40a to 40d.
The ECUs 40a to 40d are devices used for controlling an operation of each part of the vehicle.
Each of
The ECU 40a illustrated in
Similar to the ECU 40a, the ECU 40b illustrated in
As a specific example, it is assumed that current software is stored in the storage area 46a of the non-volatile memory 43b, which is the dual-bank memory, and the update software is installed in the storage area 46b. For example, upon receiving an instruction on activating the update software from the OTA master 30, the ECU 40b can switch the storage area (the active bank) to be read of the CPU 41 by switching a read start address of the CPU 41 from a head address of the storage area 46a to a head address of the storage area 46b, and can execute the update software installed in the storage area 46b. In the present invention, a configuration referred to as a “single-bank suspension memory” in which one storage area is pseudo-divided into two banks and software (a program) can be written on the one bank while the software (the program) stored on the other bank is being executed is also classified into the second-type memory.
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 used for connecting the in-vehicle network 20 to the center 10. The communication module 50 is wirelessly connected to the center 10 by way of the network 70, and the OTA master 30 executes authentication of the vehicle, the download of the update data, or the like. The communication module 50 may be included in the OTA master 30.
Overview of Software Update Processing
At, for example, the time of the power supply ON of the vehicle, the OTA master 30 transmits the update confirmation request of the software to the center 10. The update confirmation request includes a vehicle ID used for identifying the vehicle and vehicle configuration information, which is information on a state of an ECU (a system configuration), such as current versions of hardware and the pieces of the software of the ECUs 40a to 40d connected to the in-vehicle network 20. The vehicle configuration information can be generated by acquiring identification numbers (ECU_ID) of the ECUs and identification numbers of the software versions (ECU_Software_ID) of the ECUs from the ECUs 40a to 40d connected to the in-vehicle network 20. The vehicle ID and the current versions of the pieces of the software of the ECUs 40a to 40d are used for determining whether there is the update data of the pieces of the software of the ECUs 40a to 40d by comparing them with the latest software version held by the center 10 for each vehicle ID. As a response to the update confirmation request received from the OTA master 30, the center 10 transmits a notification indicating whether there is the update data to the OTA master 30. When there is the update data of the pieces of the software of the ECUs 40a to 40d, the OTA master 30 transmits, to the center 10, the download request for the distribution package. In response to the download request received from the OTA master 30, the center 10 transmits, to the OTA master 30, the distribution package of the update data. In addition to the update data, the distribution package may contain verification data for verifying the authenticity of the update data, the number of pieces of update data, type information, various pieces of control information used at the time of executing the software update, or the like.
The OTA master 30 determines whether there is the update data of the pieces of the software of the ECUs 40a to 40d based on the response to the update confirmation request received from the center 10. Further, the OTA master 30 verifies the authenticity of the distribution package received from the center 10 and stored in the storage device 13. Further, the OTA master 30 transfers, based on the communication state of the in-vehicle network 20, one or more pieces of update data downloaded in the distribution package to the target ECU and causes the target ECU to install the update data. After the completion of the installation, the OTA master 30 gives the target ECU an instruction on activation that makes the installed updated version software active.
Further, in approval request processing, the OTA master 30 causes an output device to output a notification indicating that the approval for the software update is required or a notification prompting an input indicating that the software update has been approved. As the output device, a display device (not shown), provided on the in-vehicle network 20 and outputting a notification by a display, a voice output device (not shown) that outputs a notification by voice, or the like, can be used. For example, in the approval request processing, when the display device is used as the output device, the OTA master 30 can cause the display device to display an approval request screen used for requesting the approval for the software update from the user or the manager, or cause the display device to display a notification prompting a specific input operation, such as pressing of an approval button in the case where the user or the manager approves the request. Alternatively, in the approval request processing, the OTA master 30 can cause the display device to display text, an icon, or the like, notifying that there is the update data of the pieces of the software of the ECUs 40a to 40d, or cause the display device to display restrictions and the like during the execution of the software update processing. Upon receiving the input indicating that the request has been approved from the user or the manager, the OTA master 30 executes control processing of the above-described installation and activation, and updates the software of the target ECU.
Here, when the non-volatile memory of the target ECU is the single-bank memory, in principle, approval request processing for the software update is executed before the execution of the installation because the installation and the activation are consecutively executed. Even for the target ECU of the single-bank memory, it can be required that the update processing is temporarily stopped in a state where the installation is in a completed, that is, the activation may be on stand-by (suspended). Further, when the non-volatile memory of the target ECU is the dual-bank memory, the approval request processing for the software update is executed at least after the execution of the installation and before the execution of the activation. When the non-volatile memory of the target ECU is the dual-bank memory, the approval request processing for the software update before the execution of the installation may be executed or omitted.
The software update processing is composed of a phase in which the OTA master 30 downloads the update data from the center 10 (a download phase), a phase in which the OTA master 30 transfers the downloaded update data to the target ECU and installs the update software based on the update data in the storage area of the target ECU (an installation phase), and a phase in which the target ECU makes the installed update software active (an activation phase).
The download is processing in which the OTA master 30 receives the update data for updating the software of the ECU transmitted from the center 10 and stores it in the storage unit 37. In the download, the update data for the ECU having the dual-bank memory mounted thereon and the update data for the ECU having the single-bank memory mounted thereon are downloaded using a predetermined distribution package. The download phase includes not only the execution of the download, but also controls of a series of processes associated with the download, such as determining whether the download can be executed and verifying the update data.
The update data transmitted from the center 10 to the OTA master 30 may include any of the update software of the ECU (total data or difference data), the compressed data obtained by compressing the update software, and the divided data obtained by dividing the update software or the compressed data. Further, the update data may include the ECU_ID of the target ECU (or the serial number) and an ECU_Software_ID of the target ECU before the update. The downloaded distribution package can include the update data only for a single ECU or update data for a plurality of ECUs.
The installation is processing in which the OTA master 30 writes, according to a determined procedure, the update software (the updated version program) on the non-volatile memory 43a and/or the non-volatile memory 43b of a plurality of target ECUs, based on the update data downloaded from the center 10 according to a communication state of the in-vehicle network 20, that is, a communication state between the OTA master 30 and each target ECU. The writing processing includes processing for executing in parallel transference of update data to the target ECUs, processing for pausing the transference of update data to a target ECU, or the like. As long as the installation is based on the communication state of the in-vehicle network 20, the installation may be executed with prioritizing any one of the update data for the ECU having the dual-bank memory mounted thereon and the update data for the ECU having the single-bank memory mounted thereon, or may be executed without prioritizing any of them. The installation phase includes not only the execution of the installation, but also controls of a series of processes associated with the installation, such as determining whether the installation can be executed, transferring the update data, and verifying the update software.
When the update data includes the update software itself (the total data), in the installation phase, the OTA master 30 transfers the update data (the update software) to the target ECU based on the communication state of the in-vehicle network 20. Further, when the update data includes the compressed data, the difference data, or the divided data of the update software, the OTA master 30 may transfer the update data to the target ECU based on the communication state of the in-vehicle network 20 and the target ECU 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 ECU based on the communication state of the in-vehicle network 20. Here, the update software can be generated by decompressing the compressed data, or assembling (integrating) the difference data or the divided data. Further, transferring, by the OTA master 30, the received (downloaded) update data to the target ECU, and transmitting, by the OTA master 30, the update software generated based on the received (downloaded) update data to the target ECU may be simply referred to as the transference of the update data to the target ECU.
The update software can be installed by the target ECU based on a request for the installation from the OTA master 30. Alternatively, a specific target ECU that has received the update data may autonomously execute the installation without receiving an explicit instruction from the OTA master 30.
The activation is processing in which the target ECU makes (activates) the update software installed on the non-volatile memory 43a and/or the non-volatile memory 43b active. The activation may be executed with prioritizing any one of the update data for the ECU having the dual-bank memory mounted thereon and the update data for the ECU having the single-bank memory mounted thereon, or may be executed without prioritizing any of them. The activation phase includes not only the execution of the activation but also controls of a series of processes associated with the activation, such as determining whether the activation can be executed, the approval request for the activation to the user or the manager of the vehicle, and verifying the execution result.
The update software can be activated by the target ECU based on a request for the activation from the OTA master 30. A specific target ECU that has received the update data may autonomously activate after the completion of the installation without receiving an explicit instruction from the OTA master 30.
The software update processing can be executed continuously or in parallel to each of the target ECUs.
Further, the “software update processing” in the present specification includes not only processing for continuously executing all of the download, installation, and activation, but also processing for executing only a part of the download, installation, and activation.
Processing
Next, specific examples of the software update processing executed in the network system according to the present embodiment will be described with further reference to
(1) Specific Example of Download
(Step S801) The center 10 transmits, to the OTA master 30, the distribution package containing update data for a target ECU of which the software is to be updated. In the distribution package, update data for an ECU having a first-type non-volatile memory (the single-bank memory) mounted thereon and update data for an ECU having a second-type non-volatile memory (the dual-bank memory) mounted thereon may be mixed. When the distribution package is transmitted, the process proceeds to step S802.
(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.
(Step S803) The OTA master 30 stores, in the storage unit 37, the update data contained in the distribution package received from the center 10. As such, the download processing ends.
(2) Specific Example of Installation
(Step S901) The OTA master 30 checks the communication state of the in-vehicle network 20. More specifically, the OTA master 30 checks respective states of the buses 60b, 60c that are communication lines connecting the OTA master 30 to respective target ECUs. When the communication state of the in-vehicle network 20 is checked, the process proceeds to step S902.
(Step S902) The OTA master 30 determines a communication load between the OTA master 30 and the target ECU. As an example, the OTA master 30 can determine that the communication load is low when it is lower than a predetermined value, and can determine that the communication load is high when it is equal to or higher than the predetermined value. The communication load can be high in a case where, for example, the target ECU is executing an operation or in a case where a bus to which the target ECU is connected is congested even when the target ECU is not executing an operation. The predetermined value can be set arbitrarily based on, for example, a size of the update data, a communication environment provided in the vehicle (such as a controller area network (CAN) and Ethernet®), and a time limit of the software update. When the OTA master 30 determines that the communication load between the OTA master 30 and the target ECU is low (step S902, low), the process proceeds to step S903. On the other hand, when the OTA master 30 determines that the communication load between the OTA master 30 and the target ECU is high (step S902, high), the process proceeds to S904.
(Step S903) When the OTA master 30 determines that the communication load between the OTA master 30 and the target ECU is low, the OTA master 30 executes the transference of the update data to the target ECU, and executes the installation of the update software on the target ECU. Hereinafter, such a target ECU is referred to as a “first target ECU”. That is, the communication load between the OTA master 30 and the first target ECU is determined to be low. When there is a plurality of first target ECUs, the OTA master 30 executes in parallel the installation of the update software on the first target ECUs. When the OTA master 30 starts the execution, in parallel, of the installation of the update software on the first target ECUs, the process proceeds to step S905.
(Step S904) When the OTA master 30 determines that the communication load between the OTA master 30 and the target ECU is high, the OTA master 30 suspends processing for executing the transference of the update data to the target ECU and installing the update software on the target ECU. Hereinafter, such a target ECU is referred to as a “second target ECU”. That is, the communication load between the OTA master 30 and the second target ECU is determined to be high. When there is a plurality of second target ECUs, the OTA master 30 suspends the installation of the update software on all of the second target ECUs. When the installation of the update software on the second target ECUs is suspended, the process proceeds to step S905.
(Step S905) The OTA master 30 determines whether the installation of the update software on all of the first target ECUs is completed. When the installation of the update software on all of the first target ECUs is completed (step S905, YES), the process proceeds to step S906. On the other hand, when the installation of the update software on all of the first target ECUs is not completed (step S905, NO) and there is a target ECU on which the installation of the update software has not been executed yet, the process proceeds to step S902.
(Step S906) The OTA master 30 executes the installation of the update software on the second target ECUs on which the installation of the update software is suspended. When the installation of the update software on the second target ECUs is executed and the installation of the update software on all of the target ECUs is completed, this installation processing ends.
The installation processing from steps S902 to S906 described above is executed on all of the target ECUs on which the installation of the update software has not been executed.
With the specific example of the installation, it is possible to execute in parallel a plurality of instances of installation with high communication loads based on the communication state of the in-vehicle network 20 via which the OTA master 30 is connected to each target ECU. By this processing, it is possible to implement efficient installation of update software while promoting stability in control.
(3) Specific Example of Activation
(Step S1001) The OTA master 30 and the first-type target ECU start the activation, which is processing for validating the update software written on the storage area of the non-volatile memory of the first-type target ECU. The activation is started all at once or in a predetermined order on all of the first-type target ECUs. When the activation of the update software on the first-type target ECU is started, the process proceeds to step S1002.
(Step S1002) The OTA master 30 and the second-type target ECU start the activation, which is processing for making the update software written on the storage area of the non-volatile memory of the second-type target ECU active. The activation is started all at once or in a predetermined order on all of the second-type target ECUs. The activation on the second-type target ECU may be started after the activation on all of the first-type target ECUs is completed or after the activation on some first-type target ECUs, determined in advance, is completed. When the activation of the update software on the second-type target ECU is started, the process proceeds to step S1003.
(Step S1003) The OTA master 30 determines whether the activation of the update software on all of the target ECUs including the first-type target ECUs and the second-type target ECUs is completed. The OTA master 30 may determine the completion of the activation based on a completion notification from each target ECU or after a predetermined time has elapsed from the start of the activation. The predetermined time can be set, for example, to be equal to or longer than a maximum time required for each activation. When the OTA master 30 determines that the activation of the update software on all of the target ECUs is completed (step S1003, YES), the activation on the target ECUs is completed and this activation processing ends.
According to the specific example of the activation, the activation of the update software on the first-type target ECU is first started, and then the activation of the update software on the second-type target ECU is started. By this processing, the software update for the second-type target ECU can be executed after success of the software update for the first-type target ECU is confirmed, and thus it is possible to appropriately execute the software update processing for the system including the configurations of both the target ECU having the single-bank memory mounted thereon and the target ECU having the dual-bank memory mounted thereon.
Action and Advantageous Effect
As above, in the network system according to one embodiment of the present invention, the OTA master controls, based on a communication state between the OTA master and the target ECU to be updated, the update data to be transferred to the target ECU.
By this processing, it is possible to appropriately execute the installation of the update software based on the communication state between the OTA master and the target ECU. Accordingly, it is possible to reduce a time required to normally start the ECU after the software update.
More specifically, the OTA master according to the present embodiment executes in parallel the transference of the update data to the target ECUs (the first target ECUs) when the communication load between the OTA master and each of the target ECUs (the first target ECUs) is lower than the predetermined value. Further, the OTA master according to the present embodiment suspends the transference of the update data to the target ECUs (the second target ECUs) when the communication load between the OTA master and each of the target ECUs (the second target ECUs) is equal to or higher than the predetermined value.
By this processing, it is possible to execute the processing for installing in parallel the update software on the target ECUs when the communication load between the OTA master and each of the target ECUs is low, and it is possible to suspend the processing for installing the update software on the target ECUs when the communication load between the OTA master and each of the target ECUs is high, thereby prioritizing securing stability in control.
Further, the OTA master according to the present embodiment executes when the communication load between the OTA master and each of the one or more target ECUs (the first target ECUs) is lower than the predetermine value and the communication load between the OTA master and each of the other target ECUs (the second target ECUs) is equal to or higher than the predetermined value, the transference of the update data to the second target ECUs after completing the transference of the update data to the first target ECUs.
By this processing, it is possible to execute efficient installation while promoting stabilization in control according to a communication load inside a vehicle (the in-vehicle network) associated with a control of software update.
As above, one embodiment of the present invention has been described, but the present invention can be regarded not only as the OTA master, but also as a method executed by the OTA master including the one or more processors and the one or more memories, a program, a computer-readable non-transitory storage medium storing the program, the system including the center and the OTA master, a vehicle including the OTA master, or the like.
It is possible to use the technology of the present invention in a network system used for updating software of an ECU.
Number | Date | Country | Kind |
---|---|---|---|
2021-102949 | Jun 2021 | JP | national |