Information processing device and program update method
The information processing device and method address program update failures by using device temperature and usage rate to determine optimal update times, reducing failures and maintenance through conditional program updates.
Patent Information
- Application Number
- JP2023021337
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
AI Technical Summary
Existing program update methods in information processing devices face failures when updating programs, particularly for programs managed on a single area, leading to potential execution issues due to unpredictable power outages or high loads, which can result in device malfunction.
An information processing device and method that determines whether to update programs based on device temperature and usage rate to minimize the risk of power outages, postponing updates during high loads or abnormal temperatures to prevent program failure.
Reduces the likelihood of program update failures and subsequent device malfunctions by strategically timing updates based on device conditions, thereby minimizing maintenance and operational burdens.
Smart Images

Figure 2024115619000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing apparatus for updating a program and a program updating method. [Background technology]
[0002] In an information processing device, when a program is updated by replacing a new version of the program with an old version of the program, the old version of the program is erased. Therefore, if writing the new version of the program fails, the program cannot be executed. Therefore, for example, Patent Document 1 proposes a method of safely updating the program by dividing the memory of the information processing device into two areas, a first area and a second area, writing the new version of the program into one of the areas, and leaving the old version of the program in the other area without erasing it. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-17315 A Summary of the Invention [Problem to be solved by the invention]
[0004] There are two types of programs for information processing devices: those stored in multiple areas (planes) of memory and managed on multiple planes, and those stored in one predetermined area of memory and managed on one plane. In a program managed on multiple planes, as described in Patent Document 1, by updating one of the programs stored in multiple areas by replacing it with a new version of the program, it is possible to execute the program in the other area even if the update fails. On the other hand, in a program managed on one plane, if the update to the new version of the program fails, the program cannot be executed.
[0005] The present invention has been made in light of the above-mentioned problems, and aims to provide an information processing device and a program update method that can reduce the possibility of program update failure. [Means for solving the problem]
[0006] The information processing device of the present invention comprises a memory device that stores a program and a control device that updates the program, and the control device determines whether to update the program based on at least one of the device temperature of the control device and the usage rate of the control device.
[0007] In addition, the program update method of the present invention is a program update method for updating a program stored in a storage device of an information processing device, and includes a step in which a control device of the information processing device acquires at least one of a device temperature and a usage rate of the control device, and a step in which the control device determines whether to update the program based on at least one of the device temperature and the usage rate. Effect of the Invention
[0008] According to the information processing device and program update method of the present invention, the possibility of program update failure can be reduced by determining whether to update a program based on at least one of the device temperature and the usage rate. [Brief description of the drawings]
[0009] [Figure 1] 1 is a schematic configuration diagram of an information processing device according to a first embodiment. [Diagram 2] 2 is a diagram showing a configuration of a first storage device of the information processing device according to the first embodiment. FIG. [Diagram 3] FIG. 4 is a diagram illustrating a program update in the information processing device according to the first embodiment. [Figure 4] 3 is a flowchart of a program updating method according to the first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Embodiment 1 1 is a schematic configuration diagram of an information processing device 100 according to embodiment 1. The information processing device 100 is, for example, an embedded device. As shown in FIG. 1, the information processing device 100 includes a control device 1, a first storage device 2, a second storage device 3, and a temperature sensor 4.
[0011] The control device 1 is a processor such as a CPU or GPU. The control device 1 executes and updates programs stored in a first storage device 2. The first storage device 2 is a non-volatile memory such as a flash memory. The first storage device 2 stores programs to be executed by the control device 1. The second storage device 3 is a volatile memory such as a RAM. The second storage device 3 temporarily stores information required for processing by the control device 1.
[0012] The temperature sensor 4 measures the device temperature T of the information processing device 100. The temperature sensor 4 is, for example, a thermistor, and is arranged around the control device 1, which is the hottest part in the information processing device 100, to measure the temperature of the control device 1. Alternatively, the temperature sensor 4 may be formed of a thermal diode and built into the control device 1.
[0013] FIG. 2 is a diagram showing the configuration of the first storage device 2 of the information processing device 100 according to the first embodiment. As shown in FIG. 2, the first storage device 2 is divided into a first side and a second side. A boot program, an operating system (hereinafter, referred to as "OS"), and application programs are stored in the first side, and the OS and application programs are stored in the second side. That is, the first storage device 2 stores one boot program, two OSs, and two application programs. The first storage device 2 may also store other programs and various data used for executing each program.
[0014] When the information processing device 100 is powered on, the control device 1 reads out a boot program stored on the first side of the first storage device 2 and executes the boot program to start up the system. The boot program then appropriately reads out and executes the OS and application programs from either the first side or the second side of the first storage device 2. This starts up the information processing device 100 and executes functions according to the programs.
[0015] FIG. 3 is a diagram for explaining a program update in the information processing device 100 according to the first embodiment. The information processing device 100 updates the program stored in the first storage device 2 spontaneously or in response to a remote instruction. The program is updated when a new version of the program (hereinafter referred to as an "update program") is issued due to a correction or improvement of the program. As shown in FIG. 3, when updating the program stored in the first storage device 2, the control device 1 of the information processing device 100 first temporarily stores the update program in the second storage device 3. The update program is received by a communication device (not shown) of the information processing device 100 from, for example, an external server via a network. Then, the control device 1 replaces the update program stored in the second storage device 3 with the program to be updated (any of a boot program, an OS, and an application program) in the first storage device 2.
[0016] Here, if the information processing device 100 is powered off while the control device 1 is writing the update program to the first storage device 2, the program will not be updated normally and will fail. As described above, among the programs stored in the first storage device 2, the boot program is a program that is started when the information processing device 100 is powered on, and the memory area to be referenced when the power is turned on is fixed. Therefore, the boot program is stored in one side of the first storage device 2 and managed in one side. On the other hand, since the OS and application programs are called by the boot program after the startup process of the information processing device 100 is completed, it is possible to change the startup side as appropriate. Therefore, the OS and application programs are often managed in two sides. In the case of a program managed in one side such as the boot program, if a power outage occurs while updating the boot program, a startup failure of the information processing device 100 occurs, which may result in device failure.
[0017] The main causes of power outages that are anticipated are as follows: (1) Power outage due to power outage (2) Power outage due to a program error (bug) (3) Power off by user (4) Power outage due to high load (5) Power outage due to abnormal temperature
[0018] Regarding (1) power outages due to power outages, it is difficult to predict power outages other than planned power outages. Similarly, (2) power outages due to program abnormalities are also difficult to predict, just like power outages. Meanwhile, regarding (3) power outages caused by a user, one possible cause is that the processing speed of the information processing device 100 is slower than normal, causing the user to turn off the power. This is thought to be caused by a high load on the control device 1, as with (4) power outages due to high load. Therefore, power outages in (3) and (4) can be predicted by acquiring the usage rate of the control device 1. Furthermore, regarding (5) power outages due to temperature abnormalities, it can be predicted by monitoring the device temperature T of the information processing device 100.
[0019] Therefore, in the information processing device 100 of the present embodiment, in order to reduce failure of a program update due to a power outage, it is determined whether or not to update a program depending on the state of the information processing device 100 that may cause a power outage.
[0020] FIG. 4 is a flowchart of the program update method according to the first embodiment. In FIG. 4, the boot program update method will be described. Each step in FIG. 4 is executed by the control device 1 of the information processing device 100. First, a variable i is set to 0 (S1). The variable i is a count value from the start of this process, and is a value indicating the number of postponements when a program update, which will be described later, is not performed. Then, it is determined whether the variable i is smaller than an upper limit value N (S2). The upper limit value N is an upper limit value for the number of postponements of a program update, and is set in advance based on an upper limit time (for example, one day) for continuing this process and a first time period, which will be described later.
[0021] Then, if the variable i is smaller than the upper limit value N (S2: YES), the utilization rate R of the control device 1 is acquired (S3). The utilization rate R of the control device 1 is the utilization rate of the processor that constitutes the control device 1. The utilization rate R is a value indicating the proportion (%) of the amount of processing that the control device 1 can handle at one time that is being used for processing. Then, it is determined whether the acquired utilization rate R is larger than a first threshold value R0 (S4). The first threshold value R0 is, for example, 50%.
[0022] If the acquired usage rate R is equal to or less than the first threshold value R0 (S4: NO), the device temperature T measured by the temperature sensor 4 is acquired (S5). Then, it is determined whether the acquired device temperature T is greater than a second threshold value T0 (S6). The second threshold value T0 is, for example, 40° C.
[0023] If the acquired device temperature T is equal to or lower than the second threshold T0 (S6: NO), the boot program is updated (S7). In updating the boot program, the update program for the boot program stored in the second storage device 3 as described above is written to the first storage device 2. That is, in the information processing device 100 of this embodiment, if the usage rate R of the control device 1 and the device temperature T are equal to or lower than the thresholds, it is determined that there is a low possibility of a power outage occurring, and the boot program is updated.
[0024] On the other hand, if the acquired usage rate R of the control device 1 is higher than the first threshold value R0 (S4: YES), or if the acquired device temperature T is higher than the second threshold value T0 (S6: YES), the process waits for a preset first time (S8), adds 1 to the variable i (S9), and returns to step S2. In other words, if the usage rate R or device temperature T of the control device 1 is higher than the threshold value, it is determined that there is a possibility of (3) a power outage caused by a user, (4) a power outage due to a high load, or (5) a power outage due to an abnormal temperature occurring, and the update of the boot program is postponed. The first time is, for example, one hour.
[0025] Then, if the variable i becomes equal to or greater than the upper limit value N without updating the boot program (S2: NO), this process is terminated without updating the boot program. That is, if the usage rate R of the control device 1 remains higher than the first threshold value R0, or the acquired device temperature T remains higher than the second threshold value T0 for a period of time equal to or greater than the upper limit, it is determined that there is a high possibility of a power outage occurring, and the program update is abandoned. At this time, the control device 1 may display a notice on a display unit (not shown) of the information processing device 100, or the like, to the effect that the boot program could not be updated.
[0026] As described above, in the information processing device 100 of this embodiment, the possibility of a power outage is estimated based on the usage rate R and device temperature T of the control device 1, and if there is a possibility of a power outage, the program update is not performed, thereby reducing the possibility of a program update failure. This makes it possible to reduce the possibility of a breakdown due to a startup failure of the information processing device 100.
[0027] Furthermore, when a program update in the information processing device 100 is performed by remote operation, if the program update fails, it is necessary to directly collect the information processing device 100 on-site. In contrast, the information processing device 100 of the present embodiment can reduce the possibility of a program update failure, so that the number of times the device must be collected is reduced, and the burden of maintenance operations can be reduced.
[0028] Although the embodiment of the present invention has been described above, the present invention is not limited to the configuration of the above embodiment, and various modifications or combinations are possible within the scope of the technical concept. For example, in the above embodiment, it is determined whether or not to update the program based on both the usage rate R of the control device 1 and the device temperature T, but it is only necessary to determine whether or not to update the program based on at least one of the usage rate R and the device temperature T of the control device 1.
[0029] In the above embodiment, the case where the boot program is updated has been described as an example, but the present invention is not limited to this. For example, when updating a program managed on one side other than the boot program, it may be determined whether or not to update based on the usage rate R and device temperature T of the control device 1. Or, when updating a program managed on multiple sides such as the OS or application program, it may be determined whether or not to update based on the usage rate R and device temperature T of the control device 1. This makes it possible to reduce the number of times the same program is updated for the second or subsequent times due to a failure to update the OS or application program.
[0030] Also, whether or not to make a judgment based on the usage rate R and device temperature T of the control device 1 may be determined based on whether the program to be updated is managed on one side or on multiple sides. Furthermore, the values of the first threshold value R0 of the usage rate R of the control device 1 and the second threshold value T0 of the device temperature T may be different when updating a program managed on one side and when updating a program managed on multiple sides. For example, the first threshold value R0 and the second threshold value T0 when updating a program managed on multiple sides may be larger than the first threshold value R0 and the second threshold value T0 when updating a program managed on one side. [Explanation of symbols]
[0031] 1 control device, 2 first storage device, 3 second storage device, 4 temperature sensor, 100 information processing device.
Claims
1. A storage device for storing a program; A control device for updating the program, The control device includes: An information processing device that determines whether or not to update the program based on at least one of a device temperature of the control device and a usage rate of the control device.
2. The information processing apparatus according to claim 1 , wherein the control device updates the program when the device temperature is equal to or lower than a first threshold value or when the usage rate is equal to or lower than a second threshold value.
3. The information processing apparatus according to claim 1 , wherein the control device updates the program when the device temperature is equal to or lower than a first threshold value and the usage rate is equal to or lower than a second threshold value.
4. The information processing device of any one of claims 1 to 3, wherein the control device does not update the program when the device temperature is higher than a first threshold value or when the usage rate is higher than a second threshold value, and after a predetermined first time has elapsed, determines again whether to update the program.
5. The information processing device according to claim 4 , wherein the control device does not update the program when the device temperature remains higher than a first threshold or the usage rate remains higher than a second threshold for a preset upper limit time or longer.
6. 4. The information processing apparatus according to claim 1, wherein the program is a program managed on one side.
7. The information processing apparatus according to claim 6 , wherein the program is a boot program.
8. A program updating method for updating a program stored in a storage device of an information processing device, comprising: acquiring at least one of a device temperature of the control device and a usage rate of the control device; determining whether to update the program based on at least one of the device temperature and the usage rate.
Citation Information
Patent Citations
Data rewriting device
JP2005174233A
System and method for rewriting program
JP2006268554A
Information processing device, program update control method of management control device, and program update control program
JP2018147448A
Update control device, moving body, update control method, and program
JP2022154490A
Electronic control device for vehicles, rewrite program, and data structure
JP2022163479A
