Software update device, software update method and software update processing program

The software update device executes updates on ECUs using vehicle battery power only when charging is stopped, utilizing dual storage sections to prevent voltage damage and ensure safe, uninterrupted updates.

JP7559817B2Active Publication Date: 2024-10-02NISSAN MOTOR CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022507925
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-18
Publication Date
2024-10-02
Estimated Expiration
2040-03-18

AI Technical Summary

Technical Problem

Performing software updates on an ECU using power from a vehicle battery during charging can apply a high charging voltage, potentially damaging the ECU and posing safety risks, especially in electric vehicles with larger batteries.

Method used

A software update device that executes updates using power from the vehicle battery only when it is not charging, utilizing two storage sections in the ECU to allow software updates without interrupting device operation and prohibiting charging during the update process.

Benefits of technology

Prevents high charging voltage from affecting the ECU during updates, ensuring safety and reducing the risk of battery drain, while allowing continuous operation of controlled devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559817000001
    Figure 0007559817000001
  • Figure 0007559817000002
    Figure 0007559817000002
Patent Text Reader

Abstract

Provided is a software update device that executes a process of updating software that causes equipment onboard a vehicle to operate. The software update device includes a controller that acquires and applies the software to the equipment to thereby control the equipment, and a rechargeable onboard battery that supplies power to the controller. When the onboard battery is not charging, the controller executes the software update process using power supplied from the onboard battery.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a software updating device, a software updating method, and a software updating processing program. [Background technology]

[0002] JP2017-027549A discloses a software update device that updates the software of an in-vehicle device using an update program received via wireless communication. In this software update device, the in-vehicle device to be updated is supplied with power from an in-vehicle battery to perform the update process. Summary of the Invention

[0003] However, when charging an in-vehicle battery from an external power source or an internal combustion engine, the charging voltage is higher than the voltage used when updating software in an ECU (Electronic Control Unit) that controls in-vehicle devices. Therefore, if software is updated by supplying power from the in-vehicle battery while the in-vehicle battery is being charged, a high charging voltage may be applied to the ECU, which may adversely affect the ECU.

[0004] The present invention has been made in consideration of the above-mentioned problems, and has an object to provide a software updating device, a software updating method, and a software updating processing program capable of updating ECU software without adversely affecting the ECU. Means for solving the problem

[0005] According to one aspect of the present invention, there is provided a software update device that executes an update process for software that operates an on-board device in a vehicle. The software update device includes a controller that acquires software and applies the software to the device to control the device, and an on-board battery that is rechargeable and supplies power to the controller. The controller: When the vehicle battery is not charging, Software updates are performed using power supplied from the vehicle battery death , The controller has a first storage unit that stores the acquired first software and a second storage unit that stores the acquired second software, and executes a software update process by changing software to be applied to the device from the first software to the second software, and before executing the software update process, Prohibits charging of the vehicle battery. [Brief description of the drawings]

[0006] [Figure 1] FIG. 1 is a schematic diagram of a software update system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a flowchart illustrating software update control according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0008] An embodiment of the present invention will be described with reference to Figures 1 and 2. Figure 1 is a schematic diagram of a software updating system 100 and a software updating device 110 according to an embodiment of the present invention.

[0009] 1, the software update system 100 is composed of a software update device 110 mounted on a vehicle 1 and an external server 2, and the software update device 110 is composed of a controller 10, a battery (vehicle battery) 3, and an acquisition unit 4. The vehicle 1 is, for example, an electric vehicle (EV).

[0010] The controller 10 includes a gateway 11 that acquires software from an external server 2, and an electronic control unit (ECU) 12 that controls each device mounted on the vehicle 1.

[0011] The gateway 11 is capable of communicating with the external server 2 and the electronic control unit 12, acquires update software from the external server 2, and transmits the acquired update software to the electronic control unit 12 to be updated. The gateway 11 also acquires control information of each device from the electronic control unit 12, and acquires the state of charge (SOC) of the battery 3 from an acquisition unit 4, which will be described later.

[0012] The gateway 11 is composed of a computer equipped with a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM) and an input / output interface (I / O interface), and performs overall control of the software update device 110. The gateway 11 executes a specific program to perform processing for controlling the software update device 110. The gateway 11 performs software update control, which will be described later, together with the electronic control unit 12, for example.

[0013] The electronic control unit 12 is a controller that controls each device mounted on the vehicle 1, and is, for example, a body control module (BCM), a vehicle dynamics control (VDC), or a hybrid electric vehicle control (HEVC). Each electronic control unit 12 is composed of a computer equipped with a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), and an input / output interface (I / O interface). The BCM controls the operating elements of the body of the vehicle 1, including the engine starter and door lock of the vehicle 1. The VDC controls the brakes and engine output of the vehicle 1, and controls the attitude of the vehicle 1 to prevent skidding of the vehicle 1, etc. If the vehicle 1 is a hybrid vehicle, the HEVC controls the engine and motor that are the driving sources, and realizes highly efficient driving.

[0014] The electronic control unit 12 can communicate with the gateway 11, and constantly transmits control information of each device as a signal to the gateway 11. Each electronic control unit 12 obtains software including a specific program from the gateway 11, and applies the obtained software to the device to be controlled, thereby controlling the device. Additionally, the electronic control unit 12, together with the gateway 11, performs software update control, which will be described later.

[0015] Each electronic control unit 12 also includes two storage units 121, 122 that store software acquired from the gateway 11. The electronic control unit 12 applies the software stored in one storage unit (first storage unit) 121 to the device. The electronic control unit 12 also updates the software by changing the software to be applied to the device to the software stored in the other storage unit (second storage unit) 122. Details of the software update process will be described later.

[0016] The battery 3 is connected to the gateway 11 and each electronic control unit 12. The battery 3 is a power source that supplies power to the gateway 11 and each electronic control unit 12, and can be charged by connecting to an external power source. The battery 3 can also be charged by an internal combustion engine (not shown) of the vehicle 1.

[0017] The acquisition unit 4 is a sensor or the like that detects (acquires) the state of charge (SOC) of the battery 3. The state of charge of the battery 3 detected by the acquisition unit 4 is transmitted to the gateway 11 as a signal.

[0018] Next, the software update process will be described.

[0019] As described above, each electronic control unit 12 includes two storage units 121, 122. When the electronic control unit 12 acquires software (first software) transmitted from the gateway 11, the software is stored in one of the storage units (first storage unit) 121, and the electronic control unit 12 applies the software to the device. Note that the first software may not be acquired from the gateway 11, but may be stored in the first storage unit 121 already in the initial state.

[0020] Next, when the electronic control unit 12 acquires the update software (second software) transmitted from the gateway 11, the update software is stored in the other storage unit (second storage unit) 122. Even while the electronic control unit 12 acquires and stores the second software, the first software is applied to the device.

[0021] In this way, by providing two storage units 121, 122 in each electronic control unit 12, the electronic control unit 12 can acquire (download) and store (install) update software while the first software is applied to the device. That is, it is possible to acquire and store update software without stopping the operation of the controlled device.

[0022] When the updating software (second software) is acquired and stored, the electronic control unit 12 changes the software applied to the device from the first software to the second software. This updates the software applied to the device. Hereinafter, the process of changing the software applied to the device from the first software to the second software is referred to as a software update process (activation).

[0023] Incidentally, when the battery 3 is charged, the charging voltage is higher than the voltage used in the software update process of the electronic control unit 12. Therefore, if the software update process is executed by power supply from the battery 3 while the battery 3 is being charged, the high charging voltage is applied to the electronic control unit 12 such as the ECU, and there is a risk of adversely affecting the electronic control unit 12. In particular, when the vehicle 1 is an electric vehicle, the battery 3 usually has a larger capacity and a larger charging voltage than vehicles other than electric vehicles. Therefore, if the software update process is executed while a large-capacity external power source is connected to charge the battery 3, there is a possibility that a danger may occur to people inside or near the vehicle 1. Therefore, in this embodiment, when the battery 3 is not being charged, the software update process is executed by using the power supplied from the battery 3.

[0024] Specifically, the gateway 11 executes the software update process when the battery 3 of the vehicle 1 is not being charged, and prohibits charging of the battery 3 during the software update process.

[0025] In this way, the software update process is executed when the battery 3 of the vehicle 1 is not being charged, so it is possible to prevent a high charging voltage from being applied to the electronic control unit (ECU) 12 during activation. In other words, the software update process can be executed without adversely affecting the ECU.

[0026] In addition, since the power used in the software update process is very small compared to the power used to operate other devices, there is almost no risk of the battery running out even if the battery 3 is not charged when the software update process is executed. In particular, when the vehicle 1 is an electric vehicle, the capacity of the battery 3 is usually larger than that of vehicles other than electric vehicles, so there is very little risk of the battery running out due to the software update process.

[0027] For example, if the execution of the software update process would cause the SOC of the battery 3 to become close to zero, the gateway 11 prohibits the software update process. In such a case, since there is a risk of the battery running out due to the execution of the software update process, it is necessary to charge the battery 3 before executing the software update process. Therefore, the gateway 11 prohibits the software update process and notifies the driver, for example, by a display device, that the battery 3 needs to be charged.

[0028] 2 is a flowchart for explaining software update control according to an embodiment of the present invention. Note that all of the following controls are executed by the controller 10 (gateway 11, electronic control unit 12). Also, in the initial state, it is assumed that a first software is stored in the first storage unit 121 of the electronic control unit 12, and that the first software is applied to the controlled device.

[0029] In step S101, when the gateway (GW) 11 acquires update software (second software) from the external server 2, the gateway (GW) 11 transmits the update software to the electronic control unit 12 to be updated.

[0030] In step S102, the electronic control unit 12 acquires (downloads) the update software (second software) from the gateway 11.

[0031] Next, in step S103, the electronic control unit 12 stores (installs) the update software (second software) in the second storage unit 122. Even during the acquisition and storage of the second software in steps S102 and S103, the first software is applied to the controlled device of the electronic control unit 12, so that the controlled device of the electronic control unit 12 is not stopped.

[0032] In step S104, the gateway 11 acquires the SOC value of the battery 3 detected by the acquisition unit 4, and judges whether the SOC of the battery 3 is equal to or greater than a predetermined value (threshold value). The predetermined value here is, for example, a value that makes the SOC of the battery 3 close to zero when a software update process is executed. If the SOC of the battery 3 is equal to or greater than the predetermined value (threshold value), the gateway 11 executes the process of step S105. On the other hand, if the SOC of the battery 3 is less than the predetermined value, the gateway 11 executes the process of step S114.

[0033] If the SOC of the battery 3 is less than the predetermined value, the gateway 11 prohibits the software update process in step S114. Preferably, the gateway 11 notifies the driver that the battery 3 needs to be charged, for example, by a display device. When the gateway 11 prohibits the software update process, the process returns to step S104. When the battery 3 is charged and the SOC of the battery 3 becomes equal to or greater than the predetermined value, the gateway 11 executes the process of step S105.

[0034] If the SOC of the battery 3 is equal to or greater than the predetermined value in step S104, the gateway 11 determines in step S105 whether the battery 3 is being charged. The determination as to whether the battery 3 is being charged is made, for example, based on the control information of each device from the electronic control unit 12 and the SOC of the battery 3 detected by the acquisition unit 4. If the battery 3 is not being charged, the gateway 11 executes the process of step S106. On the other hand, if the battery 3 is being charged, the gateway 11 executes the process of step S115.

[0035] If the battery 3 is being charged, in step S115, the gateway 11 prohibits the software update process, and returns to the process of step S105. When the charging of the battery 3 is stopped, the gateway 11 executes the process of step S106.

[0036] If the battery 3 is not being charged in step S105, the gateway 11 prohibits charging of the battery 3 in step S106.

[0037] In step S107, the gateway 11 supplies the power required for the software update process from the battery 3 to the electronic control unit 12, and the electronic control unit 12 executes the software update process using the power supplied from the battery 3. Specifically, the electronic control unit 12 changes the software applied to the device to be controlled from the first software to the second software. As a result, the software applied to the device is updated from the first software to the second software. Preferably, during the software update process, the driver is notified that the update process is in progress by a display device or the like.

[0038] When the software update is completed, in step S108, the gateway 11 releases the prohibition on charging the battery 3, and ends the software update control.

[0039] In this way, when the battery 3 is not being charged, the software update process is executed using power supplied from the battery 3, which makes it possible to prevent a high charging voltage from being applied to the electronic control unit 12 during the update process. Also, since charging of the battery 3 is prohibited before the software update process, it is possible to more reliably prevent a high charging voltage from being applied to the electronic control unit 12 during the update process.

[0040] Furthermore, since the electronic control unit 12 has two storage units 121, 122, it can acquire and store update software (second software) in a state where the first software stored in the first storage unit 121 is applied to the device. Therefore, the device controlled by the electronic control unit 12 to be updated is not stopped during acquisition and storage of the update software. In other words, charging of the battery (vehicle battery) 3 is not prohibited during acquisition and storage of the update software, and charging of the battery (vehicle battery) 3 is prohibited only during the software update process. Therefore, the charging prohibition time for the battery (vehicle battery) 3 can be shortened compared to the case where the device controlled by the electronic control unit 12 to be updated is stopped to acquire and store the update software.

[0041] In order to more reliably prevent the charging voltage from being applied to the electronic control unit 12, it is preferable to prohibit charging of the battery 3 before the software update process, but this is not necessarily limited to this. In particular, since the software update process in this embodiment does not include obtaining and storing update software, the software update process is completed in a short time. Therefore, if the software update process is started when the battery 3 is not being charged, it is not necessary to perform the process of prohibiting charging of the battery 3. In other words, the processes of steps S106 and S108 may be omitted.

[0042] In addition, in order to reliably prevent the battery from running out due to the software update process, it is preferable to prohibit the software update process when the SOC is less than a predetermined value, but prohibiting the software update process based on the SOC is not essential. Usually, the battery 3 is charged before the SOC of the battery 3 becomes zero, and the power used in the software update process is very small compared to the power used when operating other devices. Therefore, even if the process of prohibiting the software update process based on the SOC is omitted, there is almost no risk of the battery running out due to the software update process. That is, the processes of steps S104 and S114 may be omitted.

[0043] After the software update process is completed, the next time the software is updated, the update software transmitted from the gateway 11 to the electronic control unit 12 is stored (overwritten) in the first storage unit 121. By changing the software to be applied to the device from the second software stored in the second storage unit 122 to the update software stored in the first storage unit 121, the software is updated again.

[0044] The processing shown in FIG. 2 is configured as a program to be executed by the controller 10, which is a computer, and these programs are stored in a storage medium.

[0045] According to the software updating device 110 of the above embodiment, the following effects can be obtained.

[0046] In the software update device 110, the electronic control unit 12 (controller 10) executes the software update process using power supplied from the battery (vehicle battery) 3 when the battery (vehicle battery) 3 is not being charged. Since the software update process is executed when the battery (vehicle battery) 3 is not being charged, it is possible to prevent a high charging voltage from being applied to the electronic control unit (ECU) 12 during activation. In other words, the software update process can be executed without adversely affecting the ECU.

[0047] In software update device 110, when battery (vehicle battery) 3 is not being charged by an external power source, software update processing is performed using power supplied from battery (vehicle battery) 3. If software update processing is performed while a large-capacity external power source is connected to charge battery 3, there is a possibility that danger may arise for people inside or near vehicle 1. On the other hand, in software update device 110 of this embodiment, software update processing is performed when battery 3 is not being charged by an external power source, so that danger to people inside or near vehicle 1 can be prevented.

[0048] In the software update device 110, when the battery (vehicle battery) 3 is not being charged by the internal combustion engine of the vehicle 1, the software update process is performed using power supplied from the battery (vehicle battery) 3. Since the software update process is performed when the battery (vehicle battery) 3 is not being charged by the internal combustion engine, it is possible to prevent a high charging voltage from being applied to the electronic control unit (ECU) 12 during activation. In other words, the software update process can be performed without adversely affecting the ECU.

[0049] In the software update device 110, before executing the software update process, charging of the battery (vehicle battery) 3 is prohibited. This makes it possible to more reliably prevent a high charging voltage from being applied to the electronic control unit 12 during the software update process.

[0050] Further, the electronic control unit 12 (controller 10) has a first storage section 121 for storing the first software and a second storage section 122 for storing the second software. Therefore, in a state where the first software stored in the first storage section 121 is applied to the device, the update software (second software) can be acquired and stored in the second storage section 122. Therefore, the device controlled by the electronic control unit 12 to be updated is not stopped during acquisition and storage of the update software. That is, charging of the battery (vehicle battery) 3 is not prohibited during acquisition and storage of the update software, and charging of the battery (vehicle battery) 3 is prohibited only during the software update process. Therefore, compared with the case where the device controlled by the electronic control unit 12 to be updated is stopped to acquire and store the update software, the charging prohibition time of the battery (vehicle battery) 3 can be shortened, and the convenience during the software update work is improved.

[0051] In the software update device 110, the gateway 11 (controller 10) prohibits the software update process when the state of charge (SOC) of the battery (vehicle battery) 3 acquired by the acquisition unit 4 is less than a predetermined value. This makes it possible to reliably prevent the battery 3 from running out of power due to insufficient stored power caused by the execution of the software update process.

[0052] In this embodiment, the electronic control unit 12 is a BCM, a VDC, or a HEVC. However, the type of the electronic control unit 12 is not limited to these as long as it controls the equipment installed in the vehicle 1, and the number of electronic control units is not limited to these.

[0053] Furthermore, the software update control including the software update process of this embodiment may be executed simultaneously for a plurality of electronic control units 12, or may be executed at different times for each electronic control unit 12.

[0054] In addition, in the present embodiment, the gateway 11 performs overall control of the software update device 110, and the electronic control unit 12 performs control of each device mounted on the vehicle 1, but the subject of each control may be either the gateway 11 or the electronic control unit 12. For example, the gateway 11 may perform a change in software to be applied to the devices (software update process) instead of the electronic control unit 12.

[0055] In addition, in the present embodiment, the electronic control unit 12 is configured to have two storage units 121 and 122, but this is not necessarily limited to this. As described above, since the charging prohibition time of the battery 3 can be shortened, it is preferable that the electronic control unit 12 has two storage units 121 and 122, but the electronic control unit 12 may be configured to have only one storage unit. In this case, the software update process is performed by overwriting the software stored in the storage unit with the update software. Therefore, since the controlled device of the electronic control unit 12 is stopped even while the electronic control unit 12 is acquiring (downloading) and storing (installing) the update software, the electronic control unit 12 acquires the update software when the battery 3 is not being charged. Also, preferably, charging of the battery 3 is prohibited while the electronic control unit 12 is acquiring (downloading) and storing (installing) the update software.

[0056] Although the embodiments of the present invention have been described above, the above-mentioned embodiments merely show some of the application examples of the present invention, and it is not intended that the technical scope of the present invention be limited to the specific configurations of the above-mentioned embodiments.

Claims

1. A software update device that performs an update process for software that operates a device mounted on a vehicle, a controller that acquires the software and applies the software to the device to control the device; a rechargeable vehicle battery for powering the controller; Equipped with The controller executes the software update process using power supplied from the vehicle battery when the vehicle battery is not being charged; The controller: a first storage unit that stores the acquired first software; a second storage unit that stores the acquired second software, executing an update process of the software by changing the software applied to the device from the first software to the second software; During the acquisition and storage of the updated software, charging of the vehicle battery is not prohibited in a state in which the software stored in the first storage unit is applied to the device, prohibiting charging of the vehicle battery after the acquisition and storage and before executing the software update process; Software update device.

2. 2. The software update device according to claim 1, The vehicle battery is rechargeable by an external power source; the controller executes the software update process using power supplied from the vehicle battery at least when the vehicle battery is not being charged by the external power supply; Software update device.

3. 3. The software update device according to claim 1, the on-board battery is chargeable by an internal combustion engine of the vehicle; the controller executes the software update process using power supplied from the vehicle battery at least when the vehicle battery is not being charged by the internal combustion engine. Software update device.

4. 4. A software update device according to claim 1, An acquisition unit for acquiring a stored charge amount of the in-vehicle battery, the controller prohibits the software update process when the amount of stored power in the in-vehicle battery is less than a predetermined value after the software update process is acquired and stored by the acquisition unit and before the software update process is executed. Software update device.

5. 5. A software update device according to claim 1, Installed in electric vehicles, Software update device.

6. A method for updating software that operates a device mounted on a vehicle, comprising: Obtaining a first software and a second software; storing the acquired first software in a first storage unit; storing the acquired second software in a second storage unit; executing an update process of the software by changing the software applied to the device from the first software to the second software; During the acquisition and storage of the updated software, charging of a rechargeable in-vehicle battery is not prohibited in a state in which the software stored in the first storage unit is applied to the device, prohibiting charging of the vehicle battery after the acquisition and storage and before executing the software update process; updating the software using power supplied from the vehicle battery when the vehicle battery is not being charged; How to update your software.

7. A software update processing program for implementing an update process for software that operates a device mounted on a vehicle, comprising: acquiring a first software and a second software, storing the acquired first software in a first storage unit, storing the acquired second software in a second storage unit, and changing software to be applied to the device from the first software to the second software, thereby executing an update process of the software; During acquisition and storage of the updated software, charging of a rechargeable vehicle battery is not prohibited in a state in which the software stored in the first storage unit is applied to the device; prohibiting charging of an in-vehicle battery after said acquiring and storing and before executing said software update process; updating the software using power supplied from the vehicle battery when the vehicle battery is not being charged; A software update processing program for realizing this in the controller.

Citation Information

Patent Citations

  • Method for enabling electric automobile to continue to be charged after upgrading firmware or software

    CN109733245A

  • Program for electronic controller and data rewriting device

    JP2002147281A

  • On-vehicle communication device

    JP2013084143A

  • On-vehicle update system, on-vehicle update device, and communication apparatus update method

    JP2018037022A

  • Software update apparatus, software update system and software update method

    JP2018200510A