In-vehicle electronic control device
By segregating the control program into specific and normal areas, the solution allows parallel execution of updates and monitoring, addressing the challenge of updating in-vehicle programs without disrupting power converter operation in electric vehicles.
Patent Information
- Application Number
- JP2021045524
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-19
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-03-19
AI Technical Summary
Existing technologies face challenges in updating in-vehicle programs for electric vehicles while simultaneously monitoring the operation of power converters, as rewriting the monitoring program interferes with the monitoring process.
The solution involves segregating the control program into a specific program area for parallel execution during updates and a normal program area, allowing the update process to occur without disrupting the monitoring of the power converter operation by setting the normal program area as inactive during updates.
This approach enables the execution of necessary processing, such as failure detection of the DC-DC converter, in parallel with the program update, ensuring continuous monitoring and operation of the power converter.
Smart Images

Figure 0007565836000001 
Figure 0007565836000002 
Figure 0007565836000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an on-vehicle electronic control device. [Background technology]
[0002] The following Patent Document 1 discloses an update device for an in-vehicle program. In this update device, at least one control unit mounted on a vehicle communicates with an update program storage unit in which an update program is stored by a data communication unit, the update program is downloaded from the update program storage unit and stored in a program storage unit installed in the vehicle, and a program rewriting unit reads out a pre-update program written in the control unit and stores it in the program storage unit, and then rewrites the pre-update program written in the control unit with the update program stored in the program storage unit. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2015-232815 A Summary of the Invention [Problem to be solved by the invention]
[0004] The background art is a technology for updating an on-board program at the initiative of the user, without bringing the vehicle to a designated maintenance site. In an electric vehicle that generates low-voltage power for driving an electronic control unit (ECU) or the like by stepping down the output (high-voltage power) of a high-voltage battery such as a lithium-ion battery, it is necessary to separately monitor the operation of a power converter (DC-DC converter) that generates low-voltage power from the high-voltage power when updating the on-board program, from the viewpoint of safety.
[0005] However, when an attempt is made to rewrite the pre-update program with an update program, the program that monitors the operation of the power converter is also subject to rewriting, making it impossible to monitor the operation of the power converter. In other words, in the above-mentioned background art, it is not possible to rewrite the pre-update program with an update program while executing necessary processes.
[0006] The present invention has been made in consideration of the above-mentioned circumstances, and has an object to provide an in-vehicle electronic control unit that is capable of executing necessary processes in parallel with updating an in-vehicle program. [Means for solving the problem]
[0007] In order to achieve the above object, the present invention provides, as a first solution relating to an in-vehicle electronic control device, an in-vehicle electronic control device having a central processing unit that rewrites a control program stored in a memory unit with an update program received by a communication unit, wherein the memory unit separately has a specific program area in which a specific program to be executed in parallel when the control program is updated is stored, and a normal program area in which normal programs other than the specific program are stored, and when an instruction to update the control program is input from the communication unit, the central processing unit adopts a means for rewriting the control program with the update program, with the normal program area as the area to be rewritten.
[0008] In the present invention, as a second solution related to an in-vehicle electronic control device, in the above-mentioned first solution, the central processing unit adopts a means in which, when an instruction to update the control program is input from the communication unit, the central processing unit starts execution of the specific program by setting the specific program area as an active area, and starts rewriting the normal program with the update program by setting the normal program area as an inactive area.
[0009] In the present invention, as a third solution related to an in-vehicle electronic control device, in the first or second solution, the update instruction includes a wireless update instruction based on an update instruction received wirelessly from an outside and a wired update instruction based on an update instruction received wired from an outside, The central processing unit employs a means for rewriting the control program with the update program, when the over-the-air update instruction is input, with the normal program area being a rewrite target area.
[0010] The present invention provides a fourth solution relating to an in-vehicle electronic control device, which is the third solution described above, in which, when the wired update instruction is input, the central processing unit rewrites the control program with the update program, with the specific program area and the normal program area as areas to be rewritten.
[0011] The present invention employs, as a fifth solution relating to an in-vehicle electronic control device, a solution in which, in any of the above-mentioned first to fourth solutions, the specific program is a monitoring program that monitors the operation of a power converter that generates low-voltage power from high-voltage power. Effect of the Invention
[0012] According to the present invention, it is possible to provide an in-vehicle electronic control device capable of executing necessary processing in parallel with updating an in-vehicle program. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram showing a configuration of an on-vehicle electronic control device A according to an embodiment of the present invention. [Diagram 2] 2 is a memory map of an in-vehicle electronic control device A according to one embodiment of the present invention. [Diagram 3] 4 is a flowchart showing the operation of an in-vehicle electronic control device A according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. 1, an in-vehicle electronic control device A according to this embodiment is a motor ECU (Electronic Control Unit) that controls a motor M via a power conversion circuit B. This in-vehicle electronic control device A is provided in an electric vehicle such as an electric car or a hybrid car, and controls charging of a high-voltage secondary battery (not shown) with regenerative power generated by the motor M to drive the electric vehicle.
[0015] The in-vehicle electronic control device A according to this embodiment is a software control device that directly controls the power conversion circuit B based on a control program preinstalled in the electric vehicle, thereby indirectly controlling the operation of the motor M. In other words, this in-vehicle electronic control device A is a control device that ultimately controls the motor M.
[0016] Such an in-vehicle electronic control device A includes a CPU (Central Processing Unit) 1, a memory 2 (storage unit), an input circuit 4, a CAN communication circuit 5 (communication unit), and a gate drive circuit 6 as components, as shown in the figure.
[0017] Here, the power conversion circuit B is a so-called PCU (power control unit) in an electric vehicle, and includes multiple switching transistors as components. This power conversion circuit B selectively converts DC power to AC power and AC power to DC power between a high-voltage power source D1 and a motor M. Such a power conversion circuit B is composed of, for example, a bidirectional step-up / step-down circuit and an inverter circuit.
[0018] The bidirectional step-up / step-down circuit is a power converter that selectively performs a step-up process, in which the DC power input from the high-voltage power supply D1 is increased in voltage and output to the inverter circuit, and a step-down process, in which the DC power input from the inverter circuit is reduced in voltage and output to the high-voltage power supply D1, under the control of the in-vehicle electronic control device A.
[0019] The inverter circuit is a power converter that selectively performs a powering process in which the DC power input from the bidirectional step-up / step-down circuit is converted into three-phase AC power and output to the motor M, and a regenerative process in which the three-phase AC power input from the motor M is converted into DC power and output to the bidirectional step-up / step-down circuit, under the control of the on-board electronic control device A.
[0020] The motor M is a rotating electric machine that generates rotational power by three-phase AC power input from one of the inverter circuits. The motor M is connected to, for example, the drive wheels of an electric vehicle, and generates the rotational power as driving power. The motor M also generates regenerative power when the electric vehicle decelerates. The motor M outputs the regenerative power to the inverter circuit.
[0021] The high-voltage power supply D1 is, for example, a battery pack such as a lithium-ion battery or a fuel cell, and outputs high-voltage power (for example, several hundred volts) according to the number of battery cells connected in series to the power conversion circuit B. Furthermore, this high-voltage power supply D1 also outputs high-voltage power to a DC-DC converter H separately from the power conversion circuit B.
[0022] This DC-DC converter H generates low voltage power by stepping down the high voltage power input from the high voltage power supply D1 and outputs it to the low voltage power supply D2. In other words, the DC-DC converter H is a power converter that generates low voltage power from high voltage power. The low voltage power supply D2 is a lead storage battery (12 volt power supply) provided in the electric vehicle, and is supplementarily charged by the low voltage power input from the high voltage power supply D1 via the DC-DC converter H.
[0023] In the in-vehicle electronic control device A according to this embodiment, the CPU 1 is a semiconductor integrated circuit known as a central processing unit. The CPU 1 executes a control program prestored in the memory 2 to generate various control commands for controlling the above-mentioned power conversion circuit B and outputs the control commands to the gate drive circuit 6.
[0024] The memory 2 is a semiconductor storage device in which the control program is stored in advance, and is provided with a specific program area, a normal program area, and a reprogramming area, as shown in the memory map in Fig. 2(a). The specific program area is a storage area in which a specific program that is executed in parallel when the control program is updated is stored. The specific program is, for example, a monitoring program that detects a failure of the DC-DC converter H by monitoring the operation of the DC-DC converter H.
[0025] The normal program area is a storage area in which normal programs other than the specific program are stored. That is, the control program is composed of a normal program and a specific program. Of such control programs, the normal program is stored in the normal program area, which is a first storage area, and the specific program is stored in the specific program area, which is a second storage area.
[0026] The reprogramming area is a storage area in which an update program is stored when the control program is updated. The update program is a new control program that is a part of the control program previously stored in the memory 2 that has been modified, and is appropriately stored in the reprogramming area by the CPU 1.
[0027] Here, as will be described in detail later, when a wireless update instruction is input from the CAN communication circuit 5 as an instruction to update a control program pre-stored in memory 2 during operation, the CPU 1 rewrites the control program with an update program, with the normal program area as the area to be rewritten, and when a wired update instruction is input from the CAN communication circuit 5, the CPU 1 rewrites the control program with an update program, with the specific program area and the normal program area as the areas to be rewritten.
[0028] The input circuit 4 is an interface circuit that receives higher-level control commands from a higher-level control device of the motor ECU and detection signals from various sensors input from the outside, and outputs them to the CPU 1. That is, the input circuit 4 converts the higher-level control commands and detection signals into digital signals that comply with the specifications of the CPU 1 and outputs them to the CPU 1.
[0029] The CAN communication circuit 5 is a communication circuit provided in the electric vehicle and communicates with wireless communication devices, wired communication devices, etc., which are connected to each other via a CAN communication line. That is, the CAN communication circuit 5 is a communication circuit that complies with CAN (Controller Area Network), a well-known in-vehicle communication protocol, and when it receives a signal from a wireless communication device, wired communication device, etc., it converts the received signal into a digital signal that complies with the specifications of the CPU1 and outputs it to the CPU1.
[0030] The received signal includes an update instruction (control program update instruction) that instructs the electric vehicle to rewrite the control program with an update program from outside the electric vehicle. The control program update instruction includes a wireless update instruction received from a wireless communication device that is wirelessly connected to the electric vehicle as one of the external communication devices, and a wired update instruction received from a wired communication device that is wired to the electric vehicle as one of the external communication devices.
[0031] The wireless update instruction is a control program update instruction (OTA instruction) received by a wireless communication device mounted on the electric vehicle from, for example, an OTA (Over the Air) center. Such a wireless update instruction is received by the wireless communication device while the electric vehicle is traveling and input to the CAN communication circuit 5. That is, the control program update process based on the wireless update instruction can be executed while the electric vehicle is traveling.
[0032] On the other hand, the wired update instruction is an update instruction for the control program received by the wired communication device from a dedicated device during maintenance of the electric vehicle. This wired update instruction is received by the wired communication device only when the electric vehicle is stopped (during maintenance) and is input to the CAN communication circuit 5. In other words, the update process for the control program based on the wired update instruction is executed only when the electric vehicle is stopped (during maintenance).
[0033] Based on various control commands input from the CPU 1, the gate drive circuit 6 generates a plurality of gate signals for setting the ON / OFF state of each switching transistor constituting the power conversion circuit B. That is, the gate drive circuit 6 generates gate signals for the multiple switching transistors constituting the bidirectional step-up / step-down circuit and gate signals for the inverter circuit, and outputs them to the bidirectional step-up / step-down circuit and the inverter circuit, respectively.
[0034] Next, the operation of the on-vehicle electronic control device A according to this embodiment will be described in detail with reference to the flowchart shown in FIG.
[0035] In this in-vehicle electronic control device A, the CPU 1 normally generates various control commands based on higher-level control commands and detection signals input from the input circuit 4, and outputs them to the gate drive circuit 6. The gate drive circuit 6 then generates a plurality of gate signals based on the various control commands and outputs them to the power conversion circuit B, which causes the motor M to operate appropriately, thereby allowing the electric vehicle to run normally.
[0036] That is, in a normal state in which the above-mentioned wireless update instructions and wired update instructions are not input from the CAN communication circuit 5, the CPU 1 sets the normal program area and the specific program area, among the normal program area, specific program area, and reprogramming area shown in Figure 2(a), as active areas (execution-permitted areas), and normally controls the power conversion circuit B by executing the normal program and the specific program.
[0037] 2, active areas (execution-permitted areas) among the storage areas of the memory 2 are displayed in gray, and inactive areas (execution-prohibited areas) are displayed in white. That is, during normal operation of the in-vehicle electronic control device A, the reprogramming area is set to an inactive area (execution-prohibited area) as shown in FIG. 2(a).
[0038] 3(a), the CPU 1 determines whether a wireless update instruction (OTA instruction) or a wired update instruction is input from the CAN communication circuit 5 at a predetermined time interval during such normal control (step S1). Then, when a wireless update instruction (OTA instruction) is input, the CPU 1 performs a process for executing a specific program (specific program jump process) (step S2).
[0039] Then, when the specific program jump process is completed, the CPU 1 executes the program update process (step S3). That is, in the program update process, the CPU 1 sets the normal program area as an inactive area (execution-unpermitted area) and sets the specific program area and the reprogramming area as active areas (execution-permitted areas) as shown in FIG. 2(b).
[0040] Then, the CPU 1 writes the update program input from the CAN communication circuit 5 following the wireless update instruction (OTA instruction) into the reprogramming area of the memory 2, and then erases the control program in the normal program area in the memory 2 as shown in Fig. 2(c). That is, the CPU 1 sets the normal program area to a blank state.
[0041] Then, CPU1 copies (duplicates) the update program of the reprogramming area to the normal program area, thereby storing the update program in the normal program area as shown in Fig. 2(d). Then, as the final process in step S3, CPU1 sets the normal program area as an active area (execution-permitted area) and sets the reprogramming area as an inactive area (execution-unpermitted area) as shown in Fig. 2(e).
[0042] On the other hand, when a wired update instruction is input from the CAN communication circuit 5, the CPU 1 executes the above-mentioned program update process (step S3) without executing the specific program jump process (step S2). That is, the CPU 1 sets the normal program area and the specific program area as inactive areas (execution-unauthorized areas) and rewrites the control program in the normal program area with the update program without executing the specific program.
[0043] Next, the above-mentioned specific program jump process (step S2) will be described in detail with reference to Fig. 3(b). In the specific program jump process, the CPU 1 first performs a process of saving registers necessary for returning to the main process shown in Fig. 3(a) (step S21). Then, when the above-mentioned process of saving registers is completed, the CPU 1 sets a timer for returning to the main process and starts counting up the timer for returning (step S22).
[0044] Then, the CPU 1 executes a specific program, for example, executes a fault detection process for the DC-DC converter H (step S23). When the fault detection process for the DC-DC converter H is completed, the CPU 1 resets the recovery timer (step S24) and returns to the main process using the register value saved in step S21.
[0045] 3(c) shows details of the above-mentioned fault detection process (step S23) of the DC-DC converter H. That is, in the fault detection process of the DC-DC converter H, the CPU 1 first acquires fault information from the DC-DC converter H (step S231).
[0046] Then, the CPU 1 transmits the malfunction information to a higher-level control device of the electric vehicle by outputting the malfunction information to the CAN communication circuit 5 (step S232). When the transmission of the malfunction information to the higher-level control device is completed, the CPU 1 restores the values of the above-mentioned registers to their original values (step S233).
[0047] In this way, in the in-vehicle electronic control device A according to this embodiment, the specific program area and the normal program area are set as different storage areas in the memory 2, so that necessary processing, for example, failure detection processing of the DC-DC converter H based on the monitoring program, can be executed in parallel with update processing of the normal program (in-vehicle program). Therefore, according to this embodiment, it is possible to provide an in-vehicle electronic control device A that can execute necessary processing in parallel with update of the in-vehicle program.
[0048] The present invention is not limited to the above-described embodiment, and the following modifications are possible. (1) In the above embodiment, the monitoring program that detects a failure in the DC-DC converter H is a specific program, but the present invention is not limited to this. Furthermore, the specific program is not limited to one program such as the above monitoring program.
[0049] (2) In the above embodiment, a control program update instruction received from an OTA (Over the Air) center, i.e., an OTA instruction, is described as an example of a wireless update instruction, but the wireless update instruction is not limited to an OTA instruction. The wireless update instruction of the present invention is an update instruction that can be received while the vehicle is traveling. [Explanation of symbols]
[0050] A. Electronic control device for vehicles B Power conversion circuit (power control unit) D1 High voltage power supply D2 Low voltage power supply H DC-DC Converter Medium motor 1 CPU (central processing unit) 2 Memory (storage section) 4 Input Circuit 5 CAN communication circuit (communication section) 6 Gate drive circuit
Claims
1. An in-vehicle electronic control device including a central processing unit that rewrites a control program stored in a storage unit with an update program received by a communication unit, the storage unit includes a specific program area in which a specific program to be executed in parallel when the control program is updated is stored, and a normal program area in which a normal program other than the specific program is stored, when an instruction to update the control program is input from the communication unit, the central processing unit rewrites the control program with the update program, with the normal program area being a rewrite target area; The update instruction includes a wireless update instruction based on an update instruction received wirelessly from an external device and a wired update instruction based on an update instruction received wired from an external device, The central processing unit, when the wireless update instruction is input, rewrites the control program with the update program, treating the normal program area as the rewrite target area, and when the wired update instruction is input, rewrites the control program with the update program, treating the specific program area and the normal program area as the rewrite target areas.
2. 2. The in-vehicle electronic control device according to claim 1, characterized in that, when an instruction to update the control program is input from the communication unit, the central processing unit starts execution of the specific program by setting the specific program area to an active area, and starts rewriting the normal program with the update program by setting the normal program area to an inactive area.
3. The electronic control device for an automobile as described in claim 1 or 2, characterized in that the specific program is a monitoring program that monitors the operation of a power converter that generates low-voltage power from high-voltage power.
Citation Information
Patent Citations
Semiconductor memory device
JP2000322894A
Memory control system
JP2004295587A
Control device for vehicle, and device for updating vehicle control program
JP2009042850A
On-vehicle program updating device
JP2015232815A
