Vehicle control device
The vehicle control device achieves independent operation of multiple applications controlling vehicle devices through isolated execution environments and virtual input/output units, ensuring reliability and reusability by preventing erroneous access and enabling recovery processing.
Patent Information
- Application Number
- JP2023046609
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2043-03-23
AI Technical Summary
Existing technologies fail to ensure mutual independence and proper isolation of applications controlling multiple devices within a single electronic control device, particularly in the context of self-driving and electrification, leading to potential interference and reliability issues.
A vehicle control device is designed with isolated application execution environments and virtual input/output units, managed by a hypervisor, to prevent erroneous access and maintain independence among applications controlling different devices, ensuring reliable operation even in the presence of errors.
The solution ensures independent operation of multiple applications by preventing erroneous access and allowing for recovery without affecting high-reliability applications, improving reusability and maintaining functional safety standards.
Smart Images

Figure 2024135757000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a vehicle control device that controls the running state of a vehicle. [Background technology]
[0002] In the field of automobiles, electronic control devices that use microcomputers and software to control sensors, actuators, and other components for managing the vehicle's driving state are widely used. With the recent development of technologies such as autonomous driving and electrification, the number of electronic control devices installed in automobiles is increasing, and the amount of in-vehicle network communication between electronic control devices is also increasing. Therefore, it has been proposed to reduce the number of electronic control devices by integrating multiple applications into a single electronic control device.
[0003] For example, Patent Document 1 discloses a technique for integrating multiple applications into one electronic control device using virtual machines and dividing the actual storage for saving files for each virtual machine. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2022-85863 Summary of the Invention [Problem to be solved by the invention]
[0005] According to the technology disclosed in Patent Document 1, each application is permitted to access only the storage allocated to it, and therefore it is possible to prevent each application from erroneously accessing the storage allocated to another application. However, Patent Document 1 does not assume a case where multiple applications each controlling multiple devices such as sensors and actuators are integrated into one electronic control device.
[0006] The present invention has been made in consideration of the above-mentioned problems, and its object is to provide a vehicle control device that can execute multiple applications that respectively control multiple devices while ensuring their independence from each other. [Means for solving the problem]
[0007] In order to achieve the above-mentioned objective, the present invention provides a vehicle control device that controls a plurality of devices, comprising a plurality of device input / output units that input and output signals between the plurality of devices, and a plurality of application execution environments that are isolated from each other and correspond to the plurality of devices, and the plurality of application execution environments have a plurality of virtual input / output units that correspond to the plurality of device input / output units. Effect of the Invention
[0008] According to the present invention, in a vehicle control device, it is possible to execute multiple applications while ensuring their independence from one another by preventing other applications from erroneously accessing the device input / output unit that each application accesses when controlling a device. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a configuration diagram of a vehicle control device according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a configuration diagram showing an interface of a virtual input / output unit according to an embodiment of the present invention. [Diagram 3] A flowchart showing the flow of processing by the virtual input / output unit according to an embodiment of the present invention. [Figure 4] A flowchart showing the flow of processing by the virtual input / output management unit according to an embodiment of the present invention. [Diagram 5] A flowchart showing the flow of recovery processing of the virtual input / output unit by the virtual input / output management unit according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In each drawing, the same reference numerals are used to designate the same elements, and duplicated explanations will be omitted as appropriate.
[0011] FIG. 1 is a configuration diagram when the present invention is applied to an ECU1 (Electronic Control Unit) which is an electronic control device of an automobile. A plurality of devices, such as a sensor for measuring the environment around the vehicle and an actuator for controlling vehicle running and equipment, are connected to the ECU1. The inverter 2 is a device for driving the power steering, the drive system for the electric vehicle, and the like. The door motor 3 is a device for opening and closing the door. The camera 4 is a device for recognizing the environment, such as recognizing obstacles in front. The PWM output wiring 21 is a wiring that connects the ECU1 and the inverter 2, and outputs a PWM waveform. The DI wiring 31 and the DO wiring 32 are wiring that connect the ECU1 and the door motor 3, and control digital input and digital output. The CAN communication wiring 41 is a wiring that connects the ECU1 and the camera 4, and controls CAN (Control Area Network) communication.
[0012] The virtual machine A11 is an application execution environment provided for the inverter 2. The virtual machine B12 is an application execution environment provided for the door motor 3. The virtual machine C13 is an application execution environment provided for the camera 4. The virtual machines 11, 12, and 13 are managed by the hypervisor 15 in an isolated state from each other, and each virtual machine cannot directly access the other virtual machines. However, the virtual machines can exchange information with each other via a virtual communication channel (not shown) provided between them. The virtual input / output management unit 14 manages the operation status of the ECU virtual input / output units (ECU virtual input / output unit A112, ECU virtual input / output unit B122, and ECU virtual input / output unit C132) provided in the virtual machines (the virtual machine A11, the virtual machine B12, and the virtual machine C13), and executes recovery processing such as restarting in the event of a malfunction. The hypervisor 15 controls the execution of the virtual machines (the virtual machine A11, the virtual machine B12, and the virtual machine C13) in the ECU 1. The ECU input / output unit 16 controls the input / output (analog input / output, digital input / output, communication, etc.) in the ECU. The ECU input / output unit 16 includes a plurality of device input / output units 16 a , 16 b , and 16 c corresponding to the devices 2 , 3 , and 4 .
[0013] The application A111 is a software application for controlling the inverter 2. The ECU virtual input / output unit A112 is a virtual input / output unit corresponding to the device input / output unit 16a for controlling the inverter 2.
[0014] The application B121 is a software application for controlling the door motor 3. The ECU virtual input / output unit B122 is a virtual input / output unit corresponding to the device input / output unit 16b for controlling the door motor 3.
[0015] The application A131 is a software application for controlling the camera 4. The ECU virtual input / output unit C132 is a virtual input / output unit corresponding to the device input / output unit 16c for controlling the camera 4.
[0016] In this way, an isolated application execution environment is provided corresponding to each device for controlling a vehicle, and a virtual input / output unit is provided for each isolated application execution environment. In automobile control, the reliability level (ASIL) of an electronic control system is determined according to the importance of the control function, as defined in the functional safety standard (ISO26262), for example. When multiple devices are controlled by one electronic control device, the control of devices with different ASIL levels will be mixed. By adopting the configuration of this embodiment, even if an application (e.g., application B) with a low ASIL level (required reliability) issues a temporary error, it is possible to isolate the application (e.g., application A) with a high ASIL level (required reliability) so as not to affect the input / output processing.
[0017] 2 is a configuration diagram showing interfaces of the virtual input / output units 112, 122, and 132 in this embodiment. The virtual input / output interface 113 is provided corresponding to the PWM output wiring 21 connecting the ECU 1 and the inverter 2. The virtual input / output interface 123 is provided corresponding to the DI wiring 31 connecting the ECU 1 and the door motor 3. The virtual input / output interface 124 is provided corresponding to the DO wiring 32 connecting the ECU 1 and the door motor 3. The virtual input / output interface 133 is provided corresponding to the CAN communication wiring 41 connecting the ECU 1 and the camera 4.
[0018] In this way, virtual input / output units 112, 122, 132 are provided for each of the isolated application execution environments 11, 12, 13, and virtual input / output interfaces 113, 123, 124, 133 corresponding to the wiring 21, 31, 32, 41 connecting the ECU 1 and the devices 2, 3, 4 are provided for the virtual input / output units 112, 122, 132. By adopting the configuration of this embodiment, even if an application (e.g., application B) with a low ASIL level (required reliability) issues a temporary error, it is possible to prevent the device input / output unit used by an application (e.g., application A) with a high ASIL level (required reliability) from being affected.
[0019] 3 is a flowchart showing the flow of processing by the virtual input / output unit A112 in this embodiment. Processing starts in step S1121. In step S1122, a request to use the virtual input / output interface 113 is accepted from the application A111. In step S1123, the device input / output unit 16a corresponding to the virtual input / output interface 113 is identified. In step S1124, processing for controlling PWM input / output in the device input / output unit 16a, for example, writing to a register, is executed. In step S1125, the processing ends.
[0020] In this way, the virtual input / output units 112, 122, and 132 convert input / output requests to the virtual input / output interfaces 113, 123, 124, and 133 into input / output of the vehicle control device 1. By adopting the configuration of this embodiment, even in a situation in which the ECU that executes the virtual machines 11, 12, and 13 is changed between, for example, a case in which the applications 111, 121, and 131 are developed in individual ECUs for each device at the development stage and a case in which the applications 111, 121, and 131 are integrated into one ECU at the productization stage, only the ECU virtual input / output units 112, 122, and 132 need to be changed, and thus the reusability of the applications 111, 121, and 131 is improved.
[0021] 4 is a flowchart showing the flow of processing by the virtual I / O management unit 14 in this embodiment. Processing starts in step S141. In step S142, the processing times of the virtual I / O units 112, 122, and 132 are measured. In step S143, it is determined whether or not there is a virtual I / O unit whose processing time has exceeded a predetermined time. If there is a virtual I / O unit whose processing time has exceeded the predetermined time, the process proceeds to step S144, and if there is no virtual I / O unit whose processing time has exceeded the predetermined time, the process proceeds to step S145. In step S144, recovery processing is executed for the virtual machine (application execution environment) to which the virtual I / O unit whose processing time has exceeded the predetermined time belongs. In step S145, the process ends.
[0022] In this way, the virtual I / O management unit 14 monitors whether each of the virtual I / O units 112, 122, and 132 completes processing within a predetermined time (steps S142 and S143), and if any of the virtual I / O units does not complete processing within the predetermined time, executes recovery processing of the virtual machine (application execution environment) to which the virtual I / O unit belongs (step S144). By adopting the configuration of this embodiment, when an error occurs in some of the virtual I / O units, recovery processing of the virtual machine can be executed without restarting the entire ECU, so that it is possible to continue processing of applications that require high reliability.
[0023] 5 is a flowchart showing the flow of recovery processing of a virtual I / O unit by the virtual I / O management unit 14 in this embodiment. Processing starts in step S1441. In step S1442, information about the virtual machine on which recovery processing is to be performed is notified to other virtual machines that are not performing recovery processing. In step S1443, restart processing of the virtual machine is performed. In step S1444, initialization processing of the device I / O unit corresponding to the virtual I / O unit belonging to the virtual machine is performed. In step S1445, time synchronization processing between the virtual machine and other virtual machines is performed. Processing ends in step S1446.
[0024] By adopting the configuration of this embodiment, when some virtual machines are restarted, only the device I / O units of the ECU I / O unit 16 corresponding to the virtual I / O units belonging to the virtual machine being restarted are initialized, so that the virtual I / O units belonging to other virtual machines can continue processing.
[0025] (summary) In this embodiment, a vehicle control device 1 that controls multiple devices 2, 3, and 4 is equipped with device input / output units 16a, 16b, and 16c that input and output signals between the multiple devices 2, 3, and 4, and multiple application execution environments 11, 12, and 13 that are isolated from each other and correspond to each of the multiple devices 2, 3, and 4, and the multiple application execution environments 11, 12, and 13 have multiple virtual input / output units 112, 122, and 132 that correspond to the multiple device input / output units 16a, 16b, and 16c.
[0026] According to the present embodiment configured as described above, in the vehicle control device 1, it is possible to prevent other applications from erroneously accessing the device input / output units 16a, 16b, and 16c that each application 111, 121, and 131 accesses when controlling the devices 2, 3, and 4, and therefore it is possible to execute the multiple applications 111, 121, and 131 while ensuring their independence from each other.
[0027] Furthermore, the multiple application execution environments 11, 12, and 13 in this embodiment have multiple virtual input / output interfaces 113, 123, 124, and 133 corresponding to the wirings 21, 31, 32, and 41 connecting the multiple devices 2, 3, and 4 and the vehicle control device 1. As a result, even in a situation where the ECU that executes the virtual machines 11, 12, and 13 is changed, only the ECU virtual input / output units 112, 122, and 132 need to be changed, thereby improving the reusability of the applications 111, 121, and 131.
[0028] In addition, the present embodiment includes a virtual input / output management unit 14 that converts input / output requests to the multiple virtual input / output interfaces 113, 123, 124, and 133 into input / output requests to the multiple device input / output units 16a, 16b, and 16c. This makes it possible to prevent the applications 111, 121, and 131 operating on the application execution environments 11, 12, and 13 from directly accessing the input / output unit 16 of the vehicle control device 1.
[0029] Furthermore, the virtual input / output management unit 14 in this embodiment monitors the operation statuses of the multiple virtual input / output units 112, 122, and 132. This makes it possible to determine whether the application execution environments 11, 12, and 13 are operating normally.
[0030] Furthermore, the virtual input / output management unit 14 in this embodiment monitors whether the multiple virtual input / output units 112, 122, and 132 complete processing within a predetermined time, and if a specific virtual input / output unit among the multiple virtual input / output units 112, 122, and 132 does not complete processing within the predetermined time, executes recovery processing for a specific application execution environment to which the specific virtual input / output unit belongs among the multiple application execution environments 11, 12, and 13. This makes it possible to restore the operation of the application execution environment in which the error occurred when an error occurs in any of the application execution environments 11, 12, and 13.
[0031] In addition, the recovery process of the specific application execution environment in this embodiment includes a process of notifying other application execution environments among the multiple application execution environments 11, 12, and 13 other than the specific application execution environment that the recovery process of the specific application execution environment is to be executed, a process of restarting the specific application execution environment, a process of initializing a specific device input / output unit among the multiple device input / output units 16a, 16b, and 16c corresponding to a virtual input / output unit belonging to the specific application execution environment, and a process of synchronizing the time of the restarted specific application execution environment with the time of the other application execution environments. This makes it possible to maintain the functions of the other application execution environments even while the recovery process of the specific application execution environment is being executed.
[0032] Moreover, the multiple application execution environments 11, 12, and 13 in this embodiment are multiple virtual machines 11, 12, and 13 managed by a hypervisor 15. This makes it possible to easily realize the multiple application execution environments 11, 12, and 13.
[0033] The present invention is not limited to the above-mentioned embodiment, and various modified examples are included. For example, the above-mentioned embodiment has been described in detail to explain the present invention in an easy-to-understand manner, and is not necessarily limited to those having all the described configurations. In addition, the above-mentioned configurations, functions, processing units, processing means, etc. may be realized in hardware by designing a part or all of them as an integrated circuit, for example. In addition, the above-mentioned configurations, functions, etc. may be realized in software by a processor interpreting and executing a program that realizes each function. Information such as a program, table, file, etc. that realizes each function can be placed in a built-in memory of the processor, an external flash memory, a recording device such as an SSD (Solid State Drive), etc. [Explanation of symbols]
[0034] 1...ECU (vehicle control device), 2...inverter (device), 3...door motor (device), 4...camera (device), 11, 12, 13...virtual machine (application execution environment), 14...virtual input / output management unit, 15...hypervisor, 16...ECU input / output unit, 16a, 16b, 16c...device input / output unit, 21...PWM output wiring, 31...DI wiring, 32...DO wiring, 41...CAN communication wiring, 111...application, 112...ECU virtual input / output unit, 113...virtual input / output interface, 121...application, 122...ECU virtual input / output unit, 123, 124...virtual input / output interface, 131...application, 132...ECU virtual input / output unit, 133...virtual input / output interface.
Claims
1. In a vehicle control device which controls a plurality of devices, A plurality of device input / output units for inputting and outputting signals between the plurality of devices; a plurality of application execution environments, each of which corresponds to the plurality of devices and is isolated from the others; The plurality of application execution environments each have a plurality of virtual input / output units corresponding to the plurality of device input / output units. A vehicle control device comprising:
2. The vehicle control device according to claim 1, The plurality of application execution environments have a plurality of virtual input / output interfaces corresponding to wiring connecting the plurality of devices and the vehicle control device. A vehicle control device comprising:
3. The vehicle control device according to claim 2, a virtual I / O management unit that converts an I / O request to the plurality of virtual I / O interfaces into an I / O to the plurality of device I / O units; A vehicle control device comprising:
4. The vehicle control device according to claim 3, The virtual input / output management unit monitors the operation status of the plurality of virtual input / output units. A vehicle control device comprising:
5. The vehicle control device according to claim 4, The virtual input / output management unit monitors whether the plurality of virtual input / output units complete processing within a predetermined time, and when a specific virtual input / output unit among the plurality of virtual input / output units does not complete processing within the predetermined time, executes recovery processing of a specific application execution environment to which the specific virtual input / output unit belongs among the plurality of application execution environments. A vehicle control device comprising:
6. The vehicle control device according to claim 5, The recovery process of the specific application execution environment includes: a process of notifying application execution environments other than the specific application execution environment among the plurality of application execution environments that a recovery process for the specific application execution environment is to be executed; A process of restarting the specific application execution environment; A process of initializing a specific device I / O unit among the plurality of device I / O units, the specific device I / O unit corresponding to a virtual I / O unit belonging to the specific application execution environment; and synchronizing the time of the restarted specific application execution environment with the time of the other application execution environment. A vehicle control device comprising:
7. The vehicle control device according to claim 1, The plurality of application execution environments are a plurality of virtual machines managed by a hypervisor. A vehicle control device comprising:
Citation Information
Patent Citations
Network connection device
CN113746749A
Function use control device, function use control method, and function use control program
JP2014119789A
Virtual machine management device, virtual machine management method and computer program
JP2018112837A
Information processing device, control method, and control program
WO2013175570A1
Systems and methods for input / output virtualization
WO2014004060A1
