Electronic control device

The ECU's storage device structure with a separate blank area for new software writing addresses the inefficiencies in software updating by allowing direct writing without altering existing software addresses, reducing update time and optimizing storage, thereby improving the updating process and storage efficiency.

WO2024204783A1PCT designated stage expired Publication Date: 2024-10-03ADVICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/013230
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-29
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing electronic control units (ECUs) face inefficiencies in software updating, particularly in terms of time required for updating software in their storage devices, due to limited storage capacity and the need to shift existing software addresses when new software is written, which can lead to increased update times and storage capacity issues.

Method used

The ECU employs a storage device structure with a designated blank area at a higher address than the existing software area, allowing new software to be written directly into this blank area without altering existing software addresses, thereby reducing the time needed for updates and optimizing storage capacity utilization.

Benefits of technology

This approach effectively suppresses the increase in time required for writing new software and updating existing software, ensuring efficient software management without the need to rewrite or shift existing software, thus enhancing the overall updating process and storage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024013230_03102024_PF_FP_ABST
    Figure JP2024013230_03102024_PF_FP_ABST
Patent Text Reader

Abstract

An ECU 50A comprises an execution device 56, and a memory device 57 that stores software executed by the execution device 56. The memory device 57 has an existing area which is an area in which existing software is written, and a blank area which is an area set to an address higher than that of the existing area and in which software is not written. When writing of new software to the memory device 57 is requested, the execution device 56 writes the new software to the blank area.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic control unit

[0001] The present invention relates to an electronic control device mounted on a vehicle.

[0002] Patent Literature 1 discloses a method for updating software in a storage unit of an in-vehicle electronic control unit. In this method, a tester that stores update software is connected to an in-vehicle network. This allows the electronic control unit to obtain the update software stored in the tester via the in-vehicle network. The electronic control unit can then update the software in the storage unit by writing the update software obtained via the in-vehicle network to the storage unit.

[0003] JP 2018-120438 A

[0004] When updating software in a storage unit, it is desirable to shorten the time required for the update.

[0005] The electronic control device for solving the above problem is a device mounted on a vehicle. The electronic control device includes an execution device and a storage device that stores software executed by the execution device. The storage device has an existing area where existing software is written, and a blank area that is set at a higher address than the existing area and where no software has been written. When a request is made to write new software to the storage device, the execution device writes the new software to the blank area.

[0006] The electronic control device has the advantage of being able to prevent the time required to write new software to its own storage device from becoming too long.

[0007] Fig. 1 is a configuration diagram showing an outline of a vehicle equipped with an electronic control device of an embodiment and a data center installed outside the vehicle. Fig. 2 is a schematic diagram showing the structure of a storage device equipped in the electronic control device of Fig. 1. Fig. 3 is a flowchart showing the flow of processing executed when writing new software to the storage device of Fig. 2. Fig. 4 is a schematic diagram showing a state in which new software has been written to the storage device of Fig. 2. Fig. 5 is a schematic diagram showing a modified example of a blank area in the structure of the storage device equipped in the electronic control device of Fig. 1.

[0008] An embodiment of the electronic control device will be described below with reference to Figures 1 to 4. In this specification, the electronic control device will be referred to as "ECU." "ECU" is an abbreviation for "Electronic Control Unit."

[0009] 1 illustrates a vehicle 10 and a data center 100 provided outside the vehicle 10. <Data Center> The data center 100 is configured to be able to transmit and receive various types of information to and from the vehicle 10 via an off-vehicle network 200. That is, the data center 100 transmits and receives various types of information to and from the vehicle 10 via wireless communication.

[0010] As will be described in detail later, the vehicle 10 is equipped with a plurality of ECUs. When update software for updating the software in the storage device of one of the plurality of ECUs is prepared, the data center 100 transmits the update software to the vehicle 10 via the off-vehicle network 200. Among the plurality of on-vehicle ECUs, the ECU whose software is to be updated is referred to as the "update target ECU."

[0011] <Vehicle> The vehicle 10 includes a plurality of sensors 21, 22, 23, 24, . . . , a communication device 30, an information processing device 40, a plurality of ECUs 50, and a braking device 60.

[0012] The multiple sensors 21, 22, 23, 24, ... include sensors that detect the driving state of the vehicle 10 and sensors that detect the driver's operating state. Examples of sensors that detect the driving state of the vehicle 10 include an acceleration sensor, a wheel speed sensor, and a yaw rate sensor. Examples of sensors that detect the driver's operating state include an accelerator sensor, a brake sensor, and a steering sensor. The accelerator sensor is a sensor that detects information related to the operation of the accelerator pedal. The brake sensor is a sensor that detects information related to the operation of the brake pedal. The steering sensor is a sensor that detects information related to the steering of the steering wheel.

[0013] The communication device 30 is a vehicle-side interface for transmitting and receiving information to and from the data center 100. The information processing device 40 is configured to be able to communicate with the communication device 30 via a local network 31. The local network 31 is a network for transmitting and receiving information only between the information processing device 40 and the communication device 30.

[0014] The information processing device 40 includes an execution device 41, a storage device 42, and a storage device 43. For example, the execution device 41 is a CPU, the storage device 42 is a non-volatile memory, and the storage device 43 is a volatile memory. The storage device 42 stores software executed by the execution device 41. The storage device 43 temporarily stores information transmitted from the communication device 30 via the local network 31. That is, when the data center 100 transmits information identifying the ECU to be updated and update software to the vehicle 10, the communication device 30 receives the information transmitted from the data center 100. The communication device 30 then transmits the received information to the information processing device 40 via the local network 31. The execution device 41 of the information processing device 40 then stores the information received via the local network 31, i.e., the information identifying the ECU to be updated and the update software, in the storage device 43.

[0015] Each of the plurality of ECUs 50 has a plurality of input ports 51 and a microcomputer 55. Detection signals from sensors are input to the input ports 51. When the number of sensors that output detection signals to one ECU 50 is N, the ECU 50 has M input ports 51, which is greater than N.

[0016] The microcomputer 55 executes various processes based on the sensor detection signals input to the input port 51. The microcomputer 55 has an execution unit 56 and a storage unit 57. For example, the execution unit 56 is a CPU. The storage unit 57 is a non-volatile memory. The storage unit 57 stores multiple types of software executed by the execution unit 56.

[0017] One ECU 50A of the plurality of ECUs 50 is an ECU that controls a braking device 60. The braking device 60 has an actuator 61 such as an electric motor. The ECU 50A controls the actuator 61 to generate a braking force on the vehicle 10.

[0018] The execution unit 56 of the ECU 50A executes drive processing, input processing, output processing, arithmetic processing, and function processing by executing software stored in the storage unit 57. The drive processing is processing for driving the actuator 61. For example, in the drive processing for the electric motor, the execution unit 56 derives the current values ​​to be passed through the multiple coils provided in the electric motor and operates the inverter of the electric motor based on the current values.

[0019] The input process is a process of receiving a detection signal of a sensor input via the input port 51. For example, in the input process, the execution unit 56 derives a detection value of the sensor by performing a known filtering process on the detection signal.

[0020] The output process is a process of outputting information derived by the calculation process to the outside of the ECU 50A. For example, in the output process, the execution device 56 outputs the vehicle speed VSO calculated based on the detection value of the wheel speed sensor to the global network 33.

[0021] The arithmetic processing is processing for calculating information necessary for controlling the vehicle 10 by performing various calculations using the sensor detection values ​​derived by the input processing. For example, in the arithmetic processing, the execution unit 56 calculates the vehicle body speed VSO based on the detection values ​​of the wheel speed sensors. Also, for example, the execution unit 56 calculates the wheel slip amount SLP based on the wheel speed VW, which is the detection value of the wheel speed sensor, and the vehicle body speed VSO.

[0022] The function processing is processing that realizes a function by operating the braking device 60. The functions referred to here include a function for maintaining the stability of the behavior of the vehicle 10 and a function for improving the comfort of the occupants of the vehicle 10. Examples of functions that can be realized by operating the braking device 60 include anti-lock brake control, skid prevention control, rollover prevention control, and emergency braking.

[0023] Of the multiple types of processing described above, the drive processing, input processing, output processing, and arithmetic processing are basic processing required to operate the braking device 60. On the other hand, the functional processing is processing for providing added value to the vehicle 10 and its occupants. Therefore, the update frequency of the software for the drive processing, the software for the input processing, the software for the output processing, and the software for the arithmetic processing is lower than the update frequency of the software for the functional processing. Among the software for the drive processing, the software for the input processing, the software for the output processing, and the software for the arithmetic processing, the update frequency of the software for the drive processing is the lowest. The update frequency of the software for the input processing and the software for the output processing is higher than the update frequency of the software for the drive processing, but lower than the update frequency of the software for the arithmetic processing.

[0024] Functions can be added to the vehicle 10. When a new function is added, software for the additional function is transmitted from the data center 100 to the vehicle 10. The software for the additional function is then transmitted from the information processing device 40 to the ECU 50A via the global network 33. Then, in the ECU 50A, the execution device 56 writes the software for the additional function to its own storage device 57. As a result, the execution device 56 executes the software for the additional function, allowing the braking device 60 to realize the additional function.

[0025] <Structure of Storage Device> The structure of the storage device 57 of the ECU 50A will be described with reference to Fig. 2. Fig. 2 shows the structure of the storage device 57 before software for additional functions is written.

[0026] As shown in Fig. 2, the storage device 57 has an existing area 57A and a blank area 57B. The existing area 57A is an area where existing software is written. The blank area 57B is an area where no software is written. As is clear from Fig. 2, multiple pieces of software are written in order from the lowest address. The blank area 57B is set at a higher address than the existing area 57A.

[0027] Multiple types of software are written in the existing area 57 A. Specifically, drive processing software, input processing software, output processing software, arithmetic processing software, and function processing software are written in the existing area 57 A.

[0028] The existing area 57A includes a first area 571, a second area 572, and a third area 573. The first area 571 is set to the lowest address among these three areas 571, 572, and 573. The third area 573 is set to the highest address among these three areas 571, 572, and 573. The area between the first area 571 and the third area 573 is the second area 572.

[0029] Of the multiple types of software described above, the drive processing software that is updated least frequently is written in the first area 571. If the braking device 60 is equipped with multiple actuators 61, the multiple types of drive processing software are written in order in the first area 571. The multiple pieces of software written in the first area 571 are also referred to as "first software AP11, AP12, AP13, ...."

[0030] Of the multiple types of software described above, software that is updated more frequently than the drive processing software, i.e., input processing software and output processing software, is written in the second area 572. When detection signals from multiple sensors are input to the ECU 50A, multiple types of input processing software and multiple types of output processing software are written in the second area 572. The multiple pieces of software written in the second area 572 are also referred to as "second software AP21, AP22, AP23, ...."

[0031] The third area 573 is written with software for arithmetic processing, which is updated more frequently than the software for input processing and the software for output processing. Furthermore, the third area 573 is written with software for function processing, which is updated most frequently among the multiple types of software described above. In the third area 573, the software for arithmetic processing is written at a lower address than the software for functions. When the braking device 60 realizes multiple functions, multiple types of software for function processing are written in the third area 573. The multiple pieces of software written in the third area 573 are also referred to as "third software AP31, AP32, AP33, ...."

[0032] In FIG. 2 , "Func_1" is a function that indicates the area where the first software AP 11 is written. "Func_2" is a function that indicates the area where the first software AP 12 is written. "Func_3" is a function that indicates the area where the first software AP 13 is written. "Func_n" is a function that indicates the area where the second software AP 21 is written. "Func_n+1" is a function that indicates the area where the second software AP 22 is written. "Func_n+2" is a function that indicates the area where the second software AP 23 is written. "Func_m" is a function that indicates the area where the third software AP 31 is written. "Func_m+1" is a function that indicates the third software AP 32. "Func_m+2" is a function that indicates the area where the third software AP 33 is written. "Func_reserve" is a function that indicates the blank area 57B.

[0033] The execution unit 56 then executes the first software AP11 by reading the function Func_1. After completing the execution of the first software AP11, the execution unit 56 executes the first software AP12 by reading the function Func_2. When the execution unit 56 reads the function Func_reserve, since no software is written in the blank area 57B, the execution unit 56 executes the first software AP11 by reading the function Func_1. In this way, the execution unit 56 repeatedly executes software written in order, starting with the software written at the lowest address.

[0034] <New Function Addition Process> The new function addition process executed by the execution device 56 of the ECU 50A will be described with reference to Figures 3 and 4. The new function addition process is a process flow when new software is written to the storage device 57 to add a new function. The execution device 56 executes the new function addition process when a request is made to write new software to the storage device 57. In the example of the new function addition process described with reference to Figures 3 and 4, the new software is written to the lowest address in the blank area 57B.

[0035] 3, in step S11, the execution unit 56 searches for the lowest address in the blank area 57B of the storage device 57. When the execution unit 56 finds the lowest address in the blank area 57B, the execution unit 56 proceeds to step S13.

[0036] In step S13, the execution unit 56 starts writing the new software to the lowest address in the blank area 57B. In the following step S15, the execution unit 56 determines whether writing of the software is complete. If writing of the new software is not complete (S15: NO), the execution unit 56 repeatedly executes the determination in step S15 until writing is complete. On the other hand, if writing of the new software is complete (S15: YES), the execution unit 56 ends the new function addition process.

[0037] 4 is a schematic diagram illustrating an example of the structure of the storage device 57 into which new software has been written. As shown in FIG. 4, the new software is written, for example, to the lowest address in the blank area 57B. In FIG. 4, "Func_m+3" is a function indicating the area into which the new software has been written. In other words, the execution device 56 can write the new software to the storage device 57 without making any changes to the existing area 57A.

[0038] <Operation of this embodiment> The operation of the ECU 50A after new software has been written to the storage device 57 will be described.

[0039] In the ECU 50A, when a first function of multiple functions that can be realized by operating the braking device 60 is to be realized, the execution unit 56 searches for the address where software corresponding to the first function is written. If the software corresponding to the first function is the new software, the execution unit 56 searches for the address where the new software is written. Then, the execution unit 56 executes the software written at the address by reading the function at the address. By executing the new software, the execution unit 56 can derive the actuation amount of the braking device 60. An example of the actuation amount of the braking device 60 is a target value of the braking force to be applied to the vehicle 10. After deriving the actuation amount of the braking device 60, the execution unit 56 executes the drive processing software. That is, the execution unit 56 reads the function at the address where the drive processing software is written. As a result, the execution unit 56 derives a command value for the actuator 61 to realize the actuation amount of the braking device 60. Then, the execution unit 56 operates the actuator 61 based on the command value.

[0040] <Advantages of this embodiment> (1) In the storage device 57, a blank area 57B is set at a higher address than the existing area 57A. Therefore, when writing new software to the storage device 57, the execution device 56 writes the new software to the blank area 57B.

[0041] Now consider the case where new software is written to existing area 57A of storage device 57. In this case, the addresses of some of the existing software already written to existing area 57A will be shifted to higher addresses. The existing software whose addresses are shifted to higher addresses will be referred to as predetermined software. In this case, when writing new software to storage device 57, execution device 56 needs to write the predetermined software to storage device 57 again in addition to writing the new software to storage device 57.

[0042] Furthermore, in the on-board ECU 50, the storage capacity of the storage device 57 is limited. Therefore, multiple pieces of software are written without leaving any gaps in the storage device 57. As a result, when writing new software to the existing area 57A, some addresses of the existing software must be changed.

[0043] In this regard, in the ECU 50A, it is not necessary to change the addresses of the existing software when writing new software to the storage device 57. In other words, when writing new software to the storage device 57, the execution device 56 does not need to rewrite the existing software to the storage device 57. Therefore, the ECU 50A can prevent the time required to write new software to its own storage device 57 from becoming long.

[0044] (2) A specific piece of existing software may be updated. If the storage capacity occupied by the specific piece of software increases, the addresses of all other pieces of software written at higher addresses than the specific piece of software will shift to higher addresses. In this case, when updating the specific piece of software, the execution device 56 must also write all other pieces of software written at higher addresses than the specific piece of software to the storage device 57.

[0045] In this regard, in the storage device 57 of the ECU 50A, software that is updated less frequently is written to a lower address than software that is updated more frequently, so that when the ECU 50A updates existing software, the time required for the update can be prevented from becoming long.

[0046] <Modifications> The above embodiment can be modified as follows: The above embodiment and the following modifications can be combined and implemented within the scope of technical compatibility.

[0047] In the storage device 57, the first area 571 may be set between the second area 572 and the third area 573. In the above embodiment, when the execution device 56 writes new software into the storage device 57, the execution device 56 writes the software into the lowest address of the blank area 57B of the storage device 57. In contrast, as shown in FIG. 5A, the storage device 57 may have a structure in which jump areas corresponding to each of a plurality of existing software APs are set in the blank area 57B. In this case, it is preferable that the new software newly written into the storage device 57 be written in the form of a function.

[0048] In this case, the existing software AP is structured so that a command that can read out a jump area corresponding to the software as a function is prepared at the end of the software. Alternatively, the existing software AP may be structured so that a jump area corresponding to the software can be read out as a function within a function that calls the existing software AP.

[0049] The jump areas are set so that if no new software has been added to the existing software AP, no processing is performed and the program returns. For example, in the initial state when no additional programs have been added, such as at the time of factory shipment, all jump areas are set so that no processing is performed and the program returns. On the other hand, if new software has been added to the existing software AP, the jump areas are set so that the added new software can be read from within the jump area by a function. When the processing of the new software is completed and the program returns to the jump area, the program returns.

[0050] Here, a more detailed example of the process of adding a new program related to the second software AP 22 will be described. For example, as shown in Fig. 5A, the new program corresponding to the second software AP 22 is written as a function in an empty area in the blank area 57B. In this case, as shown in Fig. 5C, an instruction to read the function Funk_m+3 corresponding to the new software is written in the jump area corresponding to the related second software AP 22.

[0051] When the software is executed after the new program has been written, for example, at the end of the execution of the second software AP21, the jump area of ​​the second software AP21 is read by a function. Because there is no new program corresponding to the second software AP21, an empty function is set in the jump area of ​​the second software AP21, as shown in FIG. 5B, for example. As a result, the program returns without performing any processing. Next, at the end of the execution of the second software AP22, the jump area of ​​the second software AP22 is read by a function. As shown in FIG. 5C, the jump area of ​​the second software AP22 is set to the function Funk_m+3 of the new software associated with the second software AP22. Then, when the function Funk_m+3 is read, the new software is executed. When the execution of the new software is completed, the program returns to the jump area of ​​the second software AP22, a return is made, and the next second software AP23 is executed.

[0052] As a result, even when new software corresponding to existing software is added, the new software can be executed without rewriting the existing software. In the storage device 57, when new software is first written, it may be written starting from the lowest address in the blank area 57B by a predetermined number of addresses higher than the lowest address. This creates a free space between the area where the new software is written and the area immediately before it. Therefore, when the capacity of the existing software increases due to rewriting of the existing software, it may be possible to avoid rewriting the software written in the blank area 57B. In other words, this is the same as providing a predetermined blank area on the high side of the area immediately above the blank area 57B, and writing the new software to the lowest address in the blank area 57B when the new software is first written.

[0053] In the above embodiment, a case has been described in which new software is written to the storage device 57 included in the ECU 50A that controls the braking device 60. However, new software may also be written to the storage device 57 of an ECU 50 other than the ECU 50A that controls the braking device 60 using a method similar to the method described in the above embodiment.

[0054] When a new sensor is attached to the vehicle 10, the sensor is electrically connected to the ECU 50A. In this case, the execution device 56 needs to be able to execute input processing for processing the detection signal of the sensor, arithmetic processing for performing calculations using the detection values ​​of the sensor obtained through the input processing, and output processing for outputting information obtained through the arithmetic processing. That is, the ECU 50A needs to write software for the input processing, software for the output processing, and software for the arithmetic processing into the storage device 57. When writing such software into the storage device 57, the execution device 56 may write the software into the blank area 57B.

[0055] The ECU 50 is not limited to a configuration including a CPU and a ROM and executing software processing. That is, the ECU 50 may have any one of the following configurations (a), (b), and (c).

[0056] (a) The ECU 50 includes one or more processors that execute various processes according to a computer program. The processor includes a CPU and memory such as RAM and ROM. The memory stores program code or instructions that cause the CPU to execute processes. The memory, i.e., computer-readable medium, includes any available medium that can be accessed by a general-purpose or special-purpose computer.

[0057] (b) The ECU 50 includes one or more dedicated hardware circuits that perform various processes. Examples of dedicated hardware circuits include application-specific integrated circuits (ASICs) and FPGAs. ASIC stands for "Application Specific Integrated Circuit," and FPGA stands for "Field Programmable Gate Array."

[0058] (c) The ECU 50 includes a processor that executes some of the various processes in accordance with a computer program, and dedicated hardware circuits that execute the remaining processes.

[0059] <Other Technical Ideas> Next, the technical ideas that can be understood from the above-described embodiment and modified examples will be described. (Supplementary Note 1) When the execution device realizes the functions of the new software after writing the new software to the storage device, it is preferable that the execution device executes the new software and then returns to the existing software to execute a series of software functions.

[0060] (Note 2) The area where the second software is written is preferably set to the address next to the address of the area where the first software is written. (Note 3) The area between the first area and the third area is preferably the second area.

[0061] It should be noted that the expression "at least one" used in this specification means "one or more" of the desired options. As an example, the expression "at least one" used in this specification means "only one option" or "both of two options" if the number of options is two. As another example, the expression "at least one" used in this specification means "only one option" or "any combination of two or more options" if the number of options is three or more.

Claims

1. An electronic control device mounted on a vehicle, comprising: an execution device; and a storage device storing software executed by the execution device, wherein the storage device has an existing area into which existing software is written; and a blank area which is set to a higher address than the existing area and into which no software has been written; and wherein, when a request is made to write new software to the storage device, the execution device writes the new software into the blank area.

2. The electronic control device according to claim 1, wherein, when a request is made to write new software to the storage device, the execution device writes the new software to the lowest address in the blank area.

3. The electronic control device according to claim 1, wherein the storage device has a predetermined jump area, the existing software is configured to be able to read the jump area, and the jump area is configured such that when new software is written into the jump area, the execution device can read and execute the new software.

4. An electronic control device as described in any one of claims 1 to 3, wherein a first software and a second software that is updated more frequently than the first software are written in the existing area, and the area of ​​the existing area into which the second software is written is set to a higher address than the area into which the first software is written.

5. An electronic control device as claimed in any one of claims 1 to 3, wherein the existing area includes: a first area in which software for operating an on-board actuator is written as the existing software; a second area in which software for performing input processing on detection signals from on-board sensors and software for outputting information derived by arithmetic processing using the detection signals from the sensors is written as the existing software; and a third area in which software for executing the arithmetic processing is written as the existing software, wherein the second area is set at a higher address than the first area and the third area is set at a higher address than the second area.

Citation Information

Patent Citations

  • Correcting method for linked program

    JP1993108338A

  • Remotely downloadable terminal device, downloading method applied to loader program that same terminal device has, and recording medium where same loader program is recorded

    JP1999053193A

  • Rewriting method for firmware

    JP2005321843A