Vehicle control device

The vehicle control device addresses the inefficiency of software updates by using separate memory areas for control and additional functions, enabling seamless installation and management of updates with user-specific customization.

JP2024115795AInactive Publication Date: 2024-08-27TOYOTA JIDOSHA KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023021638
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies require uninstalling older software versions before installing additional functions, leading to inefficiencies and user inconvenience during software updates.

Method used

A vehicle control device with separate memory areas for control software and additional functions, allowing programs to be installed and rewritten without uninstalling existing software, regardless of version differences.

Benefits of technology

Enables seamless installation and rewriting of additional functions without user intervention, managing updates and rollbacks efficiently, and supporting customized functionality based on user preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115795000001_ABST
    Figure 2024115795000001_ABST
Patent Text Reader

Abstract

To provide a vehicle control device that allows a program to be installed regardless of the present or absence of an additional function or a difference in a version of object software upon installation of the program.SOLUTION: A vehicle control device 1 includes a memory and a processor. The memory has: a first memory area for storing control software; and a second memory area different from the first memory area, for allowing a program having an additional function to be written. The processor determines the need for writing of the additional function to the first memory area, and when determining writing of the additional function as needed, overwrites information stored in the second memory area on a part of the first memory area.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a vehicle control device. [Background technology]

[0002] Patent Document 1 discloses a technique for determining whether a different version software or the same version software is already installed when installing a target program, and installing the target program if it is determined that neither the different version software nor the same version software is already installed. With this technique, if it is determined that a different version software is already installed, the target program is installed without uninstalling the installed different version software. [Prior art documents] [Patent documents]

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

[0004] However, in Patent Document 1, when updating the entire software, the installed target software (hereinafter simply referred to as "additional function") is overwritten, so this additional function needs to be installed again. Furthermore, in Patent Document 1, if an older version of the software is already installed at the time of installation, there is a problem that the additional function cannot be installed until the older version of the software is uninstalled.

[0005] The present disclosure has been made in consideration of the above, and aims to provide a vehicle control device that can install a program regardless of whether or not additional functions are included or regardless of version differences when installing a program, and even if a program including an additional function is rewritten, the additional function is automatically reapplied, eliminating the need to uninstall the program, and eliminating the need for the user to re-install the additional function even if software including the additional function is rewritten in relation to the reapplication of the additional function. [Means for solving the problem]

[0006] In order to solve the above-mentioned problems and achieve the objective, the vehicle control device of the present disclosure is a vehicle control device including a memory and a processor, wherein the memory has a first memory area for storing control software and a second memory area different from the first memory area for writing a program for an additional function, and the processor determines whether or not it is necessary to write the additional function to the first memory area, and if it determines that it is necessary to write the additional function, overwrites information stored in the second memory area to a portion of the first memory area. Effect of the Invention

[0007] According to the present disclosure, when installing a program that includes additional functions, the program can be installed regardless of whether the target software has the additional functions or different versions, and the additional functions can be reapplied even if the program is rewritten. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram showing a schematic configuration of a vehicle control device according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a memory map of a recording unit included in the vehicle control device according to the embodiment. [Diagram 3] FIG. 3 is a flowchart showing an outline of the option rewriting process executed by the vehicle control device according to one embodiment. [Figure 4] FIG. 4 is a flowchart showing an overview of the additional function rewriting process executed by the vehicle control device according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, a vehicle control device according to an embodiment of the present disclosure will be described with reference to the drawings. Note that the present disclosure is not limited to the following embodiment. In the following, the same parts are denoted by the same reference numerals.

[0010] [Overview of vehicle control device] Fig. 1 is a diagram showing a schematic configuration of a vehicle control device according to an embodiment. The vehicle control device 1 shown in Fig. 1 is mounted on a vehicle. The vehicle is assumed to be a hybrid electric vehicle (HEV), a plug-in hybrid electric vehicle (PHEV), a battery electric vehicle (BEV), a fuel cell electric vehicle (FCEV), or the like.

[0011] The vehicle control device 1 is realized by using hardware having a processor. The hardware has processors such as a memory, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), an FPGA (Field-Programmable Gate Array), and a GPU (Graphics Processing Unit). The vehicle control device 1 includes a communication interface 2, a storage unit 3, and an ECU (Electronic Control Unit) 4.

[0012] The communication interface 2, under the control of the CPU 4, establishes a wired or wireless communication connection with an external device.

[0013] The storage unit 3 is configured using a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an HDD (Hard Disk Drive), an SSD (Solid State Drive), and the like. The storage unit 3 has at least a first memory area for storing (storing) control software, and a second memory area different from the first memory area for writing programs for additional functions. The storage unit 3 can be located anywhere as long as it can exchange data with the in-vehicle control device 1 directly or indirectly via a gateway or the like. For example, the storage unit 3 may be provided in the CPU 4, or may not be provided in the vehicle control device 1. It may also be provided in another vehicle control device, a server, or the like.

[0014] FIG. 2 is a diagram showing an example of a memory map of the storage unit 3. The memory map M100 shown in FIG. 2 has a boot area M11 for starting software, a control software area M12 for controlling the vehicle, option areas M13 to M16 for writing optional functions, and a spare area M17. The order and quantity of the boot area M11, the control software area M12, the option areas M13 to M16, and the spare area M17 are not limited to this and can be changed as appropriate. In one embodiment, the control software area M12 functions as a first memory area, and each of the option areas M13 to M16 functions as a second memory area. Here, the control software is software that controls the vehicle, and may include data such as a compatibility constant in addition to the control logic. The additional function is a function that has a different section for changing part of the control of the vehicle or changing to a different compatibility constant.

[0015] As shown in the areas M131 and M141 of the optional areas M13 and M14, each of the optional areas M13 to M16 has rewriteability information indicating whether or not the optional functions can be rewritten by the CPU 4. For example, in one embodiment, the software version of the control software area M12 is an arbitrary or specific version or later, but the content is not important as long as it is possible to determine whether or not the optional functions can be written to the control software area M12. Also, it is sufficient to include information for determining whether or not the optional areas can be rewritten, and the logic for writing to the control software M12 or for determining whether or not the optional areas can be rewritten may not be included in the optional areas M13 to 16. For example, the logic in the boot software M11 or the control software M12 may be used to determine whether or not the optional functions can be rewritten, or it may span multiple memory areas like a subroutine.

[0016] Each of the optional areas M13 to M16 further has a position to be written in the control software area M12 and rewritten contents. As shown in area M131 of the optional area M13, the position to write the contents of the optional area M13 in the control software area M12 has information that identifies a part of the control software area M12 based on a top address and size and allows the rewritten contents to be written. For example, it is assumed that the CPU 4 described later changes the memory map M100 by rewriting the adaptation constant. The position to be written by the CPU 4 may be a relative position rather than an absolute position. For example, an offset may be added based on the information included in the control software area M12.

[0017] In addition, as long as the position to be written in the control software area M12 and the rewrite contents can be specified from the optional areas M13 to M16, the starting address and size are not limited to those exemplified in area M131 of optional area M13. As shown in optional area M141, information for specifying the object to be rewritten in the control software area M12, such as a function name or constant name, and flag information such as its valid / invalid value may be used.

[0018] Returning to FIG. 1, the description of the configuration of the vehicle control device 1 will continue. The CPU 4 is realized by using hardware having a processor. The hardware is, for example, a memory, a CPU, a DSP, and an FPGA. The CPU 4 determines whether or not it is necessary to write an additional function from the option areas M13 to M16, which are second memories, to the control software M12, and if it determines that it is necessary to write the additional function, it overwrites information stored in one of the option areas M13 to M16, which are second memory areas, to a part of the control software area M12, which is the first memory area.

[0019] [Option rewrite process] Next, a description will be given of the option rewriting process executed by the vehicle control device 1. Fig. 3 is a flowchart showing an overview of the option rewriting process executed by the vehicle control device 1.

[0020] In this example, the explanation will be given on the assumption that the user installs the additional function program via a communication line such as a DCM.

[0021] As shown in FIG. 3, first, the CPU 4 receives a program of an additional function from the outside via the communication interface 2 and updates it. When it is detected that the control software has been changed or that there is a control software area, it judges whether or not there is an existing optional function that is an additional function in any of the option areas M13 to M16 (step S1). When the CPU 4 judges that there is no existing optional function that is an additional function in any of the option areas M13 to M16 (step S1: No), it sets the write destination of the program of the additional function to the top option (step S2). Specifically, the CPU 4 sets the write destination of the program of the additional function to the option area M13. After step S2, the CPU 4 proceeds to step S4. On the other hand, when the CPU 4 judges that there is an existing optional function that is an additional function in any of the option areas M13 to M16 (step S1: Yes), it sets the write destination of the program of the additional function to an empty option (step S3). Specifically, the CPU 4 sets the write destination of the program of the additional function to an option area that has an empty area among the option areas M13 to M16. After step S3, the CPU 4 proceeds to step S4.

[0022] Next, the CPU 4 writes the additional function program received from outside into the option area (step S4), performs a writing check of the additional function program (step S5), and if the writing check of the additional function program is normal (step S5: Yes), proceeds to step S6. On the other hand, if the writing check of the additional function program is not normal (step S5: No), the CPU 4 proceeds to step S7.

[0023] In step S6, the CPU 4 executes a rewrite option enabling process to enable the program of the additional function. After step S6, the CPU 4 displays information to the operator or the like that the program of the additional function has been normally installed, and ends the process.

[0024] In step S7, the CPU 4 executes a rewrite option disabling process to disable the program of the additional function. After step S7, the CPU 4 displays information to the user or the like that the program of the additional function was not installed normally, and terminates abnormally. The information that the program was not installed normally may be notified to the outside via a communication line such as a DCM. For example, the information may be notified to a dealer or repair shop used by the user, or may be notified to the user's smartphone or the like via an external server.

[0025] [Additional function rewriting process] Next, a description will be given of the additional function rewriting process executed by the vehicle control device 1. Fig. 4 is a flowchart showing an outline of the additional function rewriting process executed by the vehicle control device 1.

[0026] 4, first, the CPU 4 judges whether or not there is a valid option (step S11), and if it is judged that there is a valid option (step S11: Yes), the process proceeds to step S12, and if it is judged that there is no valid option (step S11: No), the process ends. For example, when performing additional function rewriting processing at the start of the vehicle, the CPU 4 starts up the control software after the process ends.

[0027] In step S12, the CPU 4 determines whether the option is valid or not. If it determines that the option is valid (step S12: Yes), it proceeds to step S13. If it determines that the option is not valid (step S12: No), it terminates this processing.

[0028] Next, the CPU 4 executes a pre-rewrite process (step S13), and overwrites the control software from the option (step S14).

[0029] Thereafter, the CPU 4 judges whether the option write check is normal or not (step S15). If it judges that the option write check is normal (step S15: Yes), it judges that the rewriting has been completed normally and ends this process, and if it judges that the option write check is not normal (step S15: No), it assumes that the rewriting was not completed normally and ends this process. The process to be performed after the completion of this process is optional. For example, if this process is completed normally when the vehicle is started, the control software may be started, and if this process is completed normally when the vehicle is shut down, the control device may be shut down. As an example of the case where this process is completed abnormally, the start of the control software may be prohibited and recovery may be performed.

[0030] According to the embodiment described above, the CPU 4 determines whether or not it is necessary to write additional functions from the option area M13, which is the second memory, to the control software area M12, which is the first memory area, and if it determines that it is necessary to write the additional functions, it overwrites information stored in the option area M13, which is the second memory area, to a part of the control software area M12, which is the first memory area. This makes it possible to install a program regardless of the presence or absence of additional functions or version differences of the target software in the control software area M12 when installing the program.

[0031] According to one embodiment, when the CPU 4 detects a change in the control software, it determines whether or not the additional function needs to be written, regardless of whether or not there is an external user operation, and if it determines that the additional function needs to be written, it overwrites the information stored in the option area M13, which is the second memory area, over a part of the control software area M12, which is the first memory area. This allows the program to be installed regardless of the presence or absence of additional functions or different versions of the target software.

[0032] Furthermore, according to one embodiment, the address at which the CPU 4 writes from the option area M13, which is the second memory area, to the control software area M12, which is the first memory area, can be further changed by an arbitrary offset.

[0033] Furthermore, according to one embodiment, before the CPU 4 overwrites a portion of the control software area M12 in the first memory area with information stored in the optional area M13, which is the second memory area, the information already stored in that portion of the control software area M12, which is the first memory area, is saved to another memory area before the overwrite process is performed, and this stored information is then written again to the portion of the control software area M12, which is the first memory area, thereby enabling recovery in the event of a failure.

[0034] According to one embodiment, the timing of the recovery process can be any of the following: determining whether or not to write the additional function; overwriting the information stored in the option area M13, which is the second memory area, to a part of the control software area M12, which is the first memory area; and saving the information to another memory area. The timing can be different, for example, after starting, after the termination process, or during use. In addition, the timing can be different, or one process can be divided into multiple processes. For example, the CPU 4 can determine whether or not to write the additional function while the user is using the vehicle, and can divide the process of saving the information to another memory area for each mileage or number of starts, and can determine whether or not to write the additional function and overwrite the information stored in the option area M13, which is the second memory area, to a part of the control software area M12, which is the first memory area, when the user is not using the vehicle, such as when the vehicle is parked or charging.

[0035] Furthermore, according to one embodiment, if additional functions are provided within the control software from the beginning, when updating the control software, it is necessary to prepare many types of control software for the combinations of whether or not the additional functions are included, and to determine and write the additional functions used by the user. However, when the control software is rewritten using an OTA (Over The Air) method or at a maintenance shop, the user's additional functions can be retained.

[0036] Also, according to one embodiment, when the adaptation constants are custom-made according to the tastes of the user, it is necessary to prepare control software for the number of users. However, by storing the additional functions separately, when the control software is rewritten, the adaptation constants stored in the additional functions section after the control software is rewritten can be overwritten with the adaptation constants of the control software, and the user's additional functions can be automatically applied even if the control software is updated. This makes it unnecessary to prepare control software for the combination of the additional functions, and if there are additional functions, the control software can refer to a specific area in the memory of the additional functions. Therefore, the additional functions and the control software can be managed separately, and updates and rollbacks can be performed separately.

[0037] According to one embodiment, the CPU 4 may overwrite the additional function, or may refer to the memory area of ​​the additional function from the control software. When overwriting, the CPU 4 may swap the storage contents of the write destination with the contents of the additional function, or may save the storage contents of the write destination in the additional function, so that the original state can be restored. Furthermore, the CPU 4 may specify a date and time for overwriting or saving, and enable the function by overwriting the control software after the specified date, or write back the previously saved storage information to the control software after the specified date, or disable the function. For example, the CPU 4 can apply enable / disable to a subscription contracted function or a function to be enabled after a specific date without a command from a public network line, etc. Therefore, it is possible to avoid a large amount of traffic congestion on the public network line on the days when the function is enabled or disabled.

[0038] In addition, in one embodiment, an option is provided that changes the control map to a sports specification, and when the user purchases this option, the adaptation constants are rewritten, and even if the control software is updated later, the purchased control map can be automatically rewritten after the update.

[0039] In addition, in one embodiment, functions for elderly people, such as increasing the sensitivity of safety features, decreasing accelerator pedal sensitivity, suppressing maximum output, increasing brake assist torque, etc., can be delivered at the user's request, and even if the control software is updated after being rewritten, the additional functions can be overwritten into the control software.

[0040] Additionally, in one embodiment, functionality can be delivered that is customized to meet user needs.

[0041] In one embodiment, the additional function may be enabled at a specific date and time. In this case, the option area M13 may further include information that can specify the date in the rewriteability information included in the option area M13. In this case, the CPU 4 determines whether or not the additional function is rewritable based on the rewriteability information after a preset date. As a result, the CPU 4 can enable the additional function by overwriting the control software area M12 after the date on which the additional function is enabled. The CPU 4 may also write the additional function into the option area M13 before the date on which the additional function is permitted. As a result, the timing at which the user downloads the optional function can be distributed. As a result, the date on which the user can enable the function can be aligned while distributing network traffic.

[0042] In one embodiment, recovery may be performed when a failure occurs during the deletion of an optional function or during writing of an optional function to the control software area 12. In this case, the CPU 4 may save the stored information contained in the option area M13 before overwriting it to another option area M14-M16 or the reserve area M17, and may restore the control software area M12 to the state before overwriting when the optional function is disabled. Alternatively, the CPU 4 may further overwrite the stored information before overwriting in the option area M13. For example, the CPU 4 may read the control software area M12 and the option area M13 for each memory read / write unit, and rewrite them so as to swap them in the following order. In this case, the CPU 4 performs recovery by writing back only the written area when it detects a failure. When the stored information temporarily held is volatilized due to a power outage or the like, the CPU 4 may use a separate temporary memory of non-volatile storage. (1) Set the read / write position offset to 0 (2) Set the write status to None (3) A read process that reads the overwrite destination of the control software area M12 from the read / write position offset with the minimum read / write unit size (data S) (4) A read process for reading the stored information in the optional areas M13 to M16 from the read / write position offset with the minimum read / write unit size (data D) (5) Write data D to the read / write position offset of the control software area M12, and set the write status to "write completion of data D" (6) Write data S to the read / write position offset of the option area M13, and change the write status to data S to indicate write completion. (7) Return to (1) and repeat the process until the final data is obtained.

[0043] In one embodiment, the recovery process may be performed not only when writing fails, but also on a specified date to invalidate the additional functions written to the control software area M12. For example, this is applicable when a usable period for the additional functions is specified, and the additional functions can be invalidated at the end of the usable period even if the means for communication with an external server via a DCM or the like is lost due to being outside the communication range.

[0044] (Other embodiments) Furthermore, although the row control device according to one embodiment is provided in a vehicle, some of the functions of the vehicle control device may be realized by a server.

[0045] In addition, in the vehicle control device according to one embodiment, the above-mentioned "unit" can be read as "means" or "circuit", etc. For example, the drive control unit can be read as drive control means or a drive control circuit.

[0046] The program executed by the vehicle control device according to one embodiment is provided via a flash memory such as a USB medium, a CD-R, or the like that is directly attached to the vehicle having the vehicle control device to be updated, or via wireless or wired communication. Examples of communication include wireless communication via a DCM, wireless communication between vehicles, wired communication from a charging device at a charging station, and wireless or wired communication from a smartphone or computer owned by the user, but are not limited thereto.

[0047] In the description of the flowcharts in this specification, the order of processing between steps is clearly indicated using expressions such as "first," "then," and "continue," but the order of processing required to implement this embodiment is not uniquely determined by these expressions. In other words, the order of processing in the flowcharts described in this specification can be changed as long as there is no contradiction.

[0048] Further advantages and modifications may readily occur to those skilled in the art. The invention in its broader aspects is not limited to the specific details and representative embodiments shown and described above. Thus, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and equivalents thereof.

[0049] Although some of the embodiments of the present application have been described in detail above with reference to the drawings, these are merely examples, and the present invention can be embodied in other forms that incorporate various modifications and improvements based on the knowledge of those skilled in the art, including the forms described in the disclosure of the present invention. [Explanation of symbols]

[0050] 1 Vehicle control device; 2 Communication interface; 3 Memory unit; 4 CPU

Claims

[Claim 1] A vehicle control device including a memory and a processor, The memory includes: a first memory area for storing control software; a second memory area, different from the first memory area, for writing a program for an additional function; having The processor, determining whether or not the additional function needs to be written to the first memory area; when it is determined that the additional function needs to be written, the information stored in the second memory area is overwritten onto a part of the first memory area; Vehicle control device.

Citation Information

Patent Citations

  • program

    JP2021165939A