Electronic control apparatus

By setting an upper limit on updates and adjusting intervals for non-volatile memory in ECUs, the lifespan of the memory is extended without increasing device size or cost, addressing the write cycle limitations of existing technologies.

JP2024165026APending Publication Date: 2024-11-28DENSO CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023080834
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

Existing non-volatile memory in electronic control units (ECUs) face limitations in the number of write cycles, leading to a finite lifespan, which cannot be extended without increasing device size and cost by adding multiple memory surfaces.

Method used

Implementing a control unit that sets an upper limit on the number of updates and adjusts the update interval for non-volatile memory during a vehicle's operation, ensuring appropriate data storage without requiring additional memory surfaces.

Benefits of technology

Extends the usable life of non-volatile memory by limiting updates and adjusting intervals, preventing premature wear while maintaining device size and cost efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024165026000001_ABST
    Figure 2024165026000001_ABST
Patent Text Reader

Abstract

To properly extend a usable period of a nonvolatile storage unit and properly update the nonvolatile storage unit while avoiding increase in size of an apparatus and increase in costs thereof.SOLUTION: An electronic control apparatus 1 according to the present invention has a nonvolatile memory 5 updated when data is written therein, and a CPU 3 for updating the nonvolatile memory by giving instructions to write data into the nonvolatile memory. A control unit sets an update upper limit number and an update interval of the nonvolatile memory during the period from power-on time to power-off time and updates the nonvolatile memory at the update interval until the number of times of updating reaches the update upper-limit number.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an electronic control device. [Background technology]

[0002] For example, an electronic control unit (hereinafter referred to as an ECU (Electronic Control Unit)) mounted on a vehicle is configured to hold data updated by control processing in a non-volatile memory during the period from when the power is turned on to when the power is turned off, and the data is updated by writing data to the non-volatile memory (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2020-154674 A Summary of the Invention [Problem to be solved by the invention]

[0004] For example, data flash and EEPROM (Electrically Erasable Programmable Read-Only Memory) are used as non-volatile memory, but there is a limit to the number of times data can be written, about one million times. Therefore, if the vehicle is assumed to be in use for 20 years, it is not possible to guarantee a sufficient number of times data can be written. For example, if the vehicle is assumed to be used every day for 20 years, the number of times the non-volatile memory is updated per day must be limited to about 130 times, and if the update frequency is once per second, the non-volatile memory can only be updated for about two minutes.

[0005] Furthermore, since data flash, an example of non-volatile memory, is implemented in a microcomputer, even if the number of times data is written exceeds the number of times it can be written, the non-volatile memory alone cannot be easily replaced, and the ECU itself cannot be used continuously. In order to extend the usable period of the non-volatile memory, a method of providing data storage areas on multiple sides to increase the number of times data can be written is considered. However, this requires increasing the capacity and number of non-volatile memories implemented, which can lead to larger equipment and higher costs.

[0006] The present invention has been made in consideration of the above-mentioned circumstances, and its purpose is to provide an electronic control device that can appropriately extend the usable period of a non-volatile memory unit and appropriately update the non-volatile memory unit while avoiding increases in size and cost of the device. [Means for solving the problem]

[0007] According to the invention described in claim 1, a non-volatile storage unit (5, 15) is provided that is updated by writing data therein, and a control unit (3, 13) that updates the non-volatile storage unit by instructing the non-volatile storage unit to write data. The control unit sets an upper limit number of updates and an update interval for the non-volatile storage unit during the period from power-on to power-off, and updates the non-volatile storage unit according to the update interval until the update count reaches the upper limit number of updates. The period from power-on to power-off is called a trip.

[0008] By setting the maximum number of updates, it is possible to limit the number of updates of the non-volatile storage unit during the period from power-on to power-off, and the usable period of the non-volatile storage unit can be appropriately extended. By setting the update interval, it is possible to avoid bias in the update timing of the non-volatile storage unit, and the non-volatile storage unit can be updated at an appropriate update interval. In this case, there is no need to provide multiple data storage areas, and it is possible to appropriately extend the usable period of the non-volatile storage unit and appropriately update the non-volatile storage unit while avoiding an increase in size and cost of the device. [Brief description of the drawings]

[0009] [Figure 1] A functional block diagram showing the overall configuration of a first embodiment. [Diagram 2] A diagram showing the update interval setting value table [Diagram 3] flowchart [Figure 4] A diagram explaining the relationship between the ECU operation time from the start of a trip and the update interval. [Diagram 5] A diagram explaining the change in update interval from the start of a trip to the end of a trip [Figure 6] A functional block diagram showing the overall configuration of a second embodiment. [Figure 7] A diagram showing the update interval setting value table [Figure 8] flowchart [Figure 9] A diagram explaining the relationship between the number of updates to the non-volatile memory from the start of a trip and the update interval. [Figure 10] A diagram explaining the change in update interval from the start of a trip to the end of a trip DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, a number of embodiments will be described with reference to the drawings. Note that in the subsequent embodiments, the description of the same contents as in the preceding embodiments may be omitted.

[0011] (First embodiment) A first embodiment of the present invention applied to an HV (Hybrid Vehicle)-ECU mounted on a vehicle will be described below with reference to Figs. 1 to 5. The HV-ECU is a device that performs, for example, cooperative control of the driving force of the motor and the engine, high-voltage battery control, regenerative braking control, etc. as a comprehensive control in a hybrid system. The present invention can also be applied to ECUs for other purposes.

[0012] As shown in FIG. 1, an HV-ECU (hereinafter referred to as ECU) 1 includes a microcomputer 2 that controls the operation of the entire device. The microcomputer 2 includes a CPU 3 (corresponding to a control unit) that processes each piece of control software, a volatile memory 4 capable of storing data, and a non-volatile memory 5 (corresponding to a non-volatile storage unit) capable of storing data. The volatile memory 4 is a RAM, and the non-volatile memory 5 is a data flash or an EEPROM. For example, when an ignition switch is turned on, the ECU 1 is powered on and starts operating, and when the ignition switch is turned off, the power is turned off. The ECU 1 does not immediately stop operating even when the power is turned off, but stops operating after performing pre-operation stop processing.

[0013] The CPU 3 implements, for example, control software A to C, and executes each of the control software A to C in response to the occurrence of an event of each of the control software A to C. As the control software A executes, it uses data A, the control software B uses data B, and the control software C uses data C. The use of data here includes at least any of reading data, processing or editing data, writing data, etc. In this embodiment, a configuration in which the CPU 3 implements three control software A to C is exemplified, but the number of control software implemented by the CPU 3 and the number of data used by each control software are arbitrary.

[0014] When the ECU 1 starts operating, the CPU 3 identifies the start of a trip and causes each of the data A to C stored in the non-volatile memory 5 to be reflected in the volatile memory 4. Each of the control software A to C performs a process of reading each of the data A to C from the volatile memory 4 and a process of writing each of the data A to C to the volatile memory 4. The CPU 3 periodically causes each of the data A to C stored in the volatile memory 4 to be reflected in the non-volatile memory 5, and updates the non-volatile memory 5.

[0015] The volatile memory 4 stores, in addition to the above-mentioned data A to C, an update count counter, an update interval, an update interval counter, and data on the operation time of the ECU 1 from the start of a trip, which are used to update the nonvolatile memory 5. The nonvolatile memory 5 stores, in addition to the above-mentioned data A to C, data on the update upper limit count and an update interval setting value table.

[0016] As shown in Fig. 2, the update interval setting value table is a table in which the operation time of the ECU1 from the start of the trip is associated with the update interval. The timing of switching the update interval is set according to the operation time of the ECU1 from the start of the trip. For example, the CPU3 sets the update interval of the non-volatile memory 5 to "t0" until the operation time of the ECU1 from the start of the trip reaches "T1", and when the operation time of the ECU1 from the start of the trip reaches "T1", the CPU3 switches the update interval of the non-volatile memory 5 from "t0" to "t1". The CPU3 maintains the update interval of the non-volatile memory 5 at "t1" until the operation time of the ECU1 from the start of the trip reaches "T2", and when the operation time of the ECU1 from the start of the trip reaches "T2", the CPU3 switches the update interval from "t1" to "t2". Similarly, the CPU 3 maintains the update interval of the non-volatile memory 5 at "t2" until the operation time of the ECU 1 from the start of the trip reaches "T2", and when the operation time of the ECU 1 from the start of the trip reaches "T3", it switches the update interval from "t2" to "t3". The operation time of the ECU 1 from the start of the trip, "T1" to "Tn", and the update interval of the non-volatile memory 5, "t1" to "tn", are values ​​that can be statically changed. The upper limit number of updates may also be a changeable value. The initial value "t0" of the update interval of the non-volatile memory 5 is a value specified outside the update interval setting value table. The update interval of the non-volatile memory 5 gradually increases as shown in the following formula. t0≦t1≦t2≦…≦tn

[0017] Next, the operation of the above-mentioned configuration will be described with reference to Figures 3 to 5. The CPU 3 monitors power-on, and when it identifies that the power is on and that a trip has started, it starts a non-volatile memory update process.

[0018] When the CPU 3 starts the non-volatile memory update process, as an initial process, it resets the update count counter, sets the update interval to "t0" for initialization, resets the update interval counter, and resets the operation time of the ECU 1 from the start of the trip (S1). The CPU 3 counts the operation time of the ECU 1 from the start of the trip (S2), and determines whether or not the conditions for pre-stop processing are met (S3). The pre-stop processing is processing that is performed from when the power is turned off as the ignition switch is turned off until the ECU 1 stops operating. That is, the CPU 3 performs the pre-stop processing during the period from when the power is turned off until the ECU 1 stops operating.

[0019] When the CPU 3 determines that the pre-operation stop processing condition is not satisfied (S3: NO), it compares the update counter with a value obtained by subtracting "1" from the upper limit of the update count, and determines whether the update counter has reached a value obtained by subtracting "1" from the upper limit of the update count (S4). When the CPU 3 determines that the update counter has not reached a value obtained by subtracting "1" from the upper limit of the update count (S4: NO), it refers to the update interval setting value table described above with reference to FIG. 2, and determines the update interval according to the operation time of the ECU 1 from the start of the trip (S5).

[0020] The CPU 3 determines whether the update interval counter has reached the update interval (S6). If the CPU 3 determines that the update interval counter has not reached the update interval (S6: NO), it specifies that the non-volatile memory 5 is in a waiting state for the update timing, counts the update interval counter (S7), and returns to the above-mentioned step S2.

[0021] When the CPU 3 determines that the update interval counter has reached the update interval (S6: YES), it determines that it is time to update the non-volatile memory 5, and executes (S8) an update of the non-volatile memory 5. The CPU 3 counts the update count counter (S9), resets the update interval counter (S10), and returns to step S2 described above.

[0022] In other words, during a period when the conditions for pre-operation shutdown processing are not satisfied and the update count counter has not reached a value obtained by subtracting "1" from the upper update count limit, the CPU 3 determines the update interval in accordance with the operation time of the ECU 1 from the start of the trip, and updates the non-volatile memory 5 every time the update interval counter reaches the update interval.

[0023] On the other hand, when the CPU 3 determines that the update counter has reached a value obtained by subtracting "1" from the upper limit number of updates (S4: YES), the next update of the non-volatile memory 5 to be executed will be the upper limit number of updates during the corresponding trip and will be the final update during the corresponding trip, so the CPU 3 will not execute an update of the non-volatile memory 5 until the conditions for pre-operation shutdown processing are met. In other words, the CPU 3 suppresses updates to the non-volatile memory 5 by setting the upper limit number of updates.

[0024] When the CPU 3 determines that the pre-operation stop processing condition is satisfied (S3: YES), the CPU 3 executes update of the non-volatile memory 5 to store in the non-volatile memory 5 the data of the final state immediately before the ECU 1 stopped operation (S11). The CPU 3 counts the update number counter (S12) and ends the non-volatile memory update processing.

[0025] By executing the non-volatile memory update process, as shown in Figs. 4 and 5, the CPU 3 sets the update interval to "t0" immediately after the ECU 1 starts operating, and updates the non-volatile memory 5 every time "t0" elapses during the period until the operation time of the ECU 1 from the start of the trip reaches "T1". When the operation time of the ECU 1 from the start of the trip reaches "T1", the CPU 3 switches the update interval from "t0" to "t1", and updates the non-volatile memory 5 every time "t1" elapses during the period until the operation time of the ECU 1 from the start of the trip reaches "T2". Similarly, when the operation time of the ECU 1 from the start of the trip reaches "T2", the CPU 3 switches the update interval from "t1" to "t2", and updates the non-volatile memory 5 every time "t2" elapses during the period until the operation time of the ECU 1 from the start of the trip reaches "T3". In this case, since the update interval gradually increases as described above, an upper limit number of updates is set, but the update of the non-volatile memory 5 does not end biased toward the early stage of the corresponding trip.

[0026] As described above, according to the first embodiment, the following advantageous effects can be obtained. In the ECU 1, the upper limit number of updates and the update interval of the non-volatile memory 5 during the period from power-on to power-off are set, and the non-volatile memory 5 is updated according to the update interval until the update number reaches the upper limit number of updates. By setting the upper limit number of updates, the number of updates of the non-volatile memory 5 during the period from power-on to power-off can be limited, and the usable period of the non-volatile memory 5 can be appropriately extended. By setting the update interval, it is possible to avoid bias in the update timing of the non-volatile memory 5, and the non-volatile memory 5 can be updated at an appropriate update interval. In this case, there is no need to provide data storage areas on multiple surfaces, and it is possible to appropriately extend the usable period of the non-volatile memory 5 and appropriately update the non-volatile memory 5 while avoiding an increase in size and high costs of the device.

[0027] The timing for switching the update interval is determined based on the operation time of the ECU 1 from the start of the trip. By using the operation time of the ECU 1 from the start of the trip, the update interval of the non-volatile memory 5 can be switched with a simple configuration.

[0028] The update interval is gradually increased each time the update interval is switched. By gradually increasing the update interval in accordance with the increase in the operation time of the ECU 1 from the start of the trip, it is possible to avoid a situation in which the number of updates reaches the upper update limit early and the non-volatile memory 5 is no longer updated even though the ECU 1 is in operation.

[0029] The update interval is switched by referring to an update interval setting value table in which the operation time of the ECU 1 from the start of a trip is associated with the update interval. By preparing the update interval setting value table in advance, the update interval of the non-volatile memory 5 can be switched with a simple configuration.

[0030] The update interval is initialized to a predefined initial value "t0" when the power is turned on. By initializing the update interval when the power is turned on, the non-volatile memory 5 can be updated at an appropriate update interval.

[0031] After the number of updates reaches the upper limit of the number of updates, updating of the non-volatile memory 5 is stopped. By not updating the non-volatile memory 5 after the number of updates reaches the upper limit of the number of updates, the usable period of the non-volatile memory 5 can be appropriately extended.

[0032] Second embodiment The second embodiment will be described with reference to Figures 6 to 10. While the first embodiment is configured to determine the update interval based on the operation time of the ECU 1 from the start of the trip, the second embodiment is configured to determine the update interval based on the number of updates to the non-volatile memory from the start of the trip.

[0033] 6, the ECU 11 includes a microcomputer 12 that controls the operation of the entire device. The microcomputer 12 includes a CPU 13 (corresponding to a control unit), a volatile memory 14, and a non-volatile memory 15 (corresponding to a non-volatile storage unit).

[0034] Volatile memory 14 holds, in addition to each of data A to C, an update count counter, an update interval, and an update interval counter data used to update non-volatile memory 15. Non-volatile memory 15 holds, in addition to each of data A to C, data on the update upper limit count, and an update interval setting value table.

[0035] As shown in FIG. 7, the update interval setting value table is a table in which the number of updates of the non-volatile memory 15 since the start of the trip is associated with the update interval. The update interval switching timing is set according to the number of updates of the non-volatile memory 15 since the start of the trip. For example, the CPU 13 sets the update interval of the non-volatile memory 5 to "t0" until the number of updates of the non-volatile memory 15 since the start of the trip reaches "N1", and when the number of updates of the non-volatile memory 15 since the start of the trip reaches "N1", the CPU 13 switches the update interval of the non-volatile memory 15 from "t0" to "t1". The CPU 13 maintains the update interval of the non-volatile memory 5 at "t1" until the number of updates of the non-volatile memory 15 since the start of the trip reaches "N2", and when the number of updates of the non-volatile memory 15 since the start of the trip reaches "N2", the CPU 13 switches the update interval from "t1" to "t2". The CPU 13 maintains the update interval of the non-volatile memory 5 at "t2" until the number of updates of the non-volatile memory 15 since the start of the trip reaches "N3", and when the number of updates of the non-volatile memory 15 since the start of the trip reaches "N3", the CPU 13 switches the update interval from "t2" to "t3". The number of updates of the non-volatile memory 15 since the start of the trip, "N1" to "Nn", and the update interval of the non-volatile memory 15, "t1" to "tn", are statically changeable values. The upper limit number of updates may also be a changeable value. The initial value "t0" of the update interval of the non-volatile memory 15 is a value specified outside the update interval setting value table. In this case, the update interval of the non-volatile memory 15 gradually increases as shown in the following formula. t0≦t1≦t2≦…≦tn

[0036] Next, the operation of the above-mentioned configuration will be described with reference to Figures 8 to 10. The CPU 13 monitors whether the power is on, and when it determines that the power is on, starts the non-volatile memory update process.

[0037] When the CPU 13 starts the non-volatile memory update process, as an initial process, it resets the update count counter, initializes the update interval by setting it to "t0", and resets the update interval counter (S21). The CPU 13 performs steps S3 to S12 described in the first embodiment. In this case, the CPU 13 refers to the update interval setting value table described in FIG. 7 above, and determines the update interval corresponding to the number of updates of the non-volatile memory 15 since the start of the trip counted by the update count counter (S5).

[0038] As described above, according to the second embodiment, the following advantageous effects can be obtained. In the ECU 11, the maximum number of updates and the update interval for the non-volatile memory 15 during the period from power-on to power-off are set, and the non-volatile memory 15 is updated according to the update interval until the number of updates reaches the maximum number of updates. As in the first embodiment, it is possible to appropriately extend the usable period of the non-volatile memory 15 and appropriately update the non-volatile memory 15 while avoiding an increase in size and cost of the device.

[0039] The timing for switching the update interval is determined based on the number of updates in the non-volatile memory 15 since the start of the trip. By using the number of updates in the non-volatile memory 15 since the start of the trip, the update interval of the non-volatile memory 5 can be switched with a simple configuration.

[0040] The update interval is gradually increased each time the update interval is switched. By gradually increasing the update interval in accordance with an increase in the number of updates to the non-volatile memory 15 from the start of the trip, it is possible to avoid a situation in which the number of updates reaches the upper update limit early and the non-volatile memory 15 stops being updated even though the ECU 11 is in operation.

[0041] The update interval is switched by referring to an update interval setting value table in which the number of updates of the non-volatile memory 15 since the start of the trip is associated with the update interval. By preparing the update interval setting value table in advance, the update interval of the non-volatile memory 15 can be switched with a simple configuration.

[0042] (Other embodiments) Although the present disclosure has been described based on the embodiment, it is not limited to the embodiment or structure. The present disclosure also includes various modifications and modifications within the equivalent range. In addition, various combinations and forms, and other combinations and forms including only one element, more than one element, or less than one element, are also within the scope and concept of the present disclosure.

[0043] The control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described in the present disclosure may be realized by one or more special-purpose computers configured by a combination of a processor and a memory programmed to execute one or more functions and a processor configured with one or more hardware logic circuits. Also, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer. [Explanation of symbols]

[0044] In the drawing, 1 and 11 are ECUs (electronic control units), 3 and 13 are CPUs (control units), and 5 and 15 are non-volatile memories (non-volatile storage units).

Claims

1. a non-volatile storage unit (5, 15) in which data is written and updated; a control unit (3, 13) that updates the nonvolatile storage unit by instructing the nonvolatile storage unit to write data; The control unit sets a maximum number of updates and an update interval for the non-volatile memory unit during the period from power-on to power-off, and updates the non-volatile memory unit according to the update interval until the number of updates reaches the maximum number of updates.

2. 2. The electronic control device according to claim 1, wherein the control unit determines an update interval switching timing for switching the update interval based on an operation time of the device from the start of a trip, and switches the update interval in accordance with the update interval switching timing.

3. 2. The electronic control device according to claim 1, wherein the control unit determines an update interval switching timing for switching the update interval based on the number of updates of the non-volatile storage unit since the start of a trip, and switches the update interval in accordance with the update interval switching timing.

4. 4. The electronic control device according to claim 2, wherein the control unit gradually increases the update interval at each update interval switching timing.

5. 4. The electronic control device according to claim 2, wherein the control unit switches the update interval by referring to a table in which the update interval switching timing is associated with the update interval.

6. 4. The electronic control device according to claim 2, wherein the control unit initializes the update interval to a predetermined value when the power is turned on.

7. 4. The electronic control device according to claim 2, wherein the control unit stops updating the non-volatile storage unit after the number of updates reaches the upper limit number of updates.

Citation Information

Patent Citations

  • Information processing device, information processing method, and program

    JP2020154674A