Vehicle control device and computer program

By introducing an intermediate layer and a state transfer table into the vehicle control device, the state transfer design of the advanced autonomous driving system is simplified, complexity problems are solved, and the smooth and reliability of the vehicle system action switching is achieved.

CN113710558BActive Publication Date: 2024-11-19ASTEMO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080028847.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-04-23
Filing Date
2020-04-03
Publication Date
2024-11-19
Estimated Expiration
2040-04-03

AI Technical Summary

Technical Problem

In the vehicle control device of advanced autonomous driving systems, the problem of complexity in state transfer design, especially because the events input by multiple identification devices increase the number of lower-level state machinery, resulting in complex relationships between intermediate-level state machinery and cannot be effectively brief. Chemical design.

Method used

Using a layered state mechanical structure, the intermediate layer is set up. By storing multiple state transfer tables, the current state, the state to be transferred and the transition conditions are recorded. The intermediate layer divides the state of the lower layer state machinery into the upper layer state according to the functions of the vehicle system. Mechanical, using the status transition table for signal control.

Benefits of technology

It simplifies the state transfer design, reduces the design complexity, and ensures the smooth and reliable operation switching of the vehicle system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113710558B_ABST
    Figure CN113710558B_ABST
Patent Text Reader

Abstract

The present invention provides a vehicle control device and a computer program that can simplify the design of state transition. The intermediate layers (11B) and (11C) constituting ECU1 correspond to the state (114A) of the state machine of the lower layer, and the state (114A) of the state machine of the lower layer is divided according to each function of the vehicle system (1000) and output to the state machine (11D) of the upper layer. The state transition table (113D) of the state machine (11D) of the upper layer contains the current state of the state machine (11A) of the lower layer or the state to be transferred as the state transition condition of the state machine (11D) of the upper layer. The state machine (11D) of the upper layer receives the state (114A) of the state machine of the lower layer input from the intermediate layers (11B) and (11C), and outputs a signal for controlling the vehicle system (1000) with reference to the state transition table (113D).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a vehicle control device and a computer program. Background Art

[0002] As the level of autonomous driving improves and the adaptation area expands, the complexity of the autonomous driving system increases. In addition, the response to a failure by the autonomous driving system is not just to stop on the spot, but also to safely hand over to the driver, slow down to a safe speed, etc., and continue to drive automatically even after a failure. A vehicle control device represented by an autonomous driving ECU (Electronic Control Unit) that implements such an autonomous driving system is connected to a plurality of identification devices represented by sensors. In addition, in the vehicle control device, a plurality of applications operate under various operating conditions. Therefore, the design of state transition in the vehicle control device tends to be complicated.

[0003] As a technology for inserting an intermediate layer to simplify the complex correspondence between state machines of different hierarchies, there is a technology listed in Patent Document 1. Patent Document 1 discloses a system state transition programming method, which inputs a layer structure representing the composition of the state machine, inputs the action specifications of each state machine, maps the input action specifications of each state machine to a combination of the action specifications of the state machine corresponding to the child node on the layer structure, stores the input mapping information, and executes the state transition of each layer based on the stored mapping information when an event occurs.

[0004] Prior art literature

[0005] Patent Literature

[0006] Patent Document 1: Japanese Patent Laid-Open No. 7-212861 Summary of the invention

[0007] Problem that the invention aims to solve

[0008] However, there is no description of how to organize the intermediate layers in the technology disclosed in Patent Document 1. When designing a state transition of a vehicle control device for an advanced automated driving system, the complexity of the state transition design cannot be reduced without providing an appropriate intermediate layer.

[0009] In particular, since the autonomous driving system has many recognition devices, the number of lower-level state machines to which events from the recognition devices are input also increases. Therefore, the relationship between which intermediate-level state machines receive outputs from lower-level state machines becomes complicated, and as a result, the complexity of the state transition design tends to increase.

[0010] The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a vehicle control device and a computer program capable of simplifying the design of state transition.

[0011] Technical means of solving problems

[0012] In order to solve the above-mentioned problems, a vehicle control device according to one aspect of the present invention is a vehicle control device for controlling a vehicle system, the vehicle control device comprising: a control device having a first state machine, a second state machine, and an intermediate layer provided between the first state machine and the second state machine in a hierarchical manner; and a storage device storing a plurality of state transition tables, the plurality of state transition tables describing, for each of the first state machine and the second state machine, the current state, the state to be transferred, and the condition of the state transfer of these first state machines and the second state machines, the first state machine receiving an event input from the vehicle system and outputting the state of the first state machine to the intermediate layer with reference to the state transition table, the intermediate layer dividing the state of the first state machine for each function of the vehicle system in correspondence with the state of the first state machine and outputting the state to the second state machine, the state transition table corresponding to the second state machine including the current state of the first state machine or the state to be transferred as the condition of the state transfer of the second state machine, the second state machine receiving the state of the first state machine input from the intermediate layer and outputting a signal for controlling the vehicle system with reference to the state transition table.

[0013] Effects of the Invention

[0014] According to the present invention, it is possible to realize a vehicle control device and a computer program capable of simplifying the design of state transition. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a diagram showing the overall structure of the vehicle control device of the first embodiment.

[0016] Figure 2 This is a diagram showing an example of the functional configuration of the lower-level state machine of the first embodiment.

[0017] Figure 3 This is a diagram showing an example of the functional configuration of the state machine of the intermediate layer of the first embodiment.

[0018] Figure 4 This is a diagram showing an example of the functional configuration of the upper layer state machine of the first embodiment.

[0019] Figure 5 This is a diagram showing an example of the event table of Example 1.

[0020] Fig. 6A This is a diagram showing an example of a state transition table of a lower layer in the first embodiment.

[0021] Figure 6B This is a diagram showing another example of the state transition table of the lower layer of the first embodiment.

[0022] Fig. 7A This is a diagram showing an example of a state transition table of the intermediate layer in the first embodiment.

[0023] Figure 7B This is a diagram showing another example of the state transition table of the intermediate layer of the first embodiment.

[0024] Figure 8 This is a diagram showing an example of a state transition table of an upper layer according to the first embodiment.

[0025] Fig.9A This is a diagram showing a sensor belonging to the right middle layer of Example 1.

[0026] Fig. 9B This is a diagram showing an example of the intermediate layer of Example 1.

[0027] Fig.10 This is a flowchart showing an example of processing of the state machine of the lower layer according to the first embodiment.

[0028] Fig.11 This is a flowchart showing an example of processing of the state machine of the intermediate layer according to the first embodiment.

[0029] Fig.12 This is a flowchart showing an example of processing of the upper layer state machine of the first embodiment.

[0030] Fig.13A This is a diagram showing an example of a status list of a status machine of an upper layer in the first embodiment.

[0031] Fig. 13B This is a diagram showing an example of a state list of the intermediate layer state machine of Example 1.

[0032] Fig. 13C This is a diagram showing an example of a status list of a lower-level status machine in the first embodiment.

[0033] Fig.14A This is a diagram for explaining the operation of the vehicle control device according to the first embodiment.

[0034] Fig. 14B This is a diagram showing another example of the intermediate layer of Example 1.

[0035] Fig.15 This is a diagram showing the overall structure of a vehicle control device according to the second embodiment.

[0036] Fig.16 This is a diagram showing an example of the functional configuration of a lower-level state machine of the second embodiment.

[0037] Fig.17 This is a diagram showing an example of the functional structure of the intermediate layer of Example 2.

[0038] Fig.18 This is a diagram showing an example of the functional configuration of a state machine of an upper layer according to the second embodiment.

[0039] Fig.19 This is a flowchart showing an example of the processing of the intermediate layer in the second embodiment. DETAILED DESCRIPTION

[0040] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In addition, the embodiments described below do not limit the invention involved in the technical solution, and each element described in the embodiment and all combinations thereof are not necessarily essential to the solution means of the invention.

[0041] In the following description, processing may be described using a "program" as an action subject.

[0042] On the other hand, the program is executed by a processor (e.g., a CPU (Central Processing Unit)), thereby performing processing while using appropriate storage resources (e.g., memory) and / or communication interface devices (e.g., ports), so the entire processing described below can also be performed by the processor. The processing described using the program as the action subject can also be processing performed by a device including a processor. In addition, a dedicated hardware circuit that performs part or all of the processing performed by the processor can also be included. The computer program can also be installed on the device from a program source. The program source can be, for example, a program distribution server or a computer-readable non-temporary recording medium.

[0043] The vehicle control device of the present embodiment is a vehicle control device for controlling a vehicle system, and includes a control unit having a hierarchical first state machine, i.e., a state machine of a lower layer, a second state machine, i.e., a state machine of an upper layer, and an intermediate layer provided between the first state machine and the second state machine. Furthermore, the vehicle control device is characterized in that, corresponding to the state of the first state machine, the state of the first state machine is divided for each function of the vehicle system and output to the second state machine.

[0044] Preferably, the intermediate layer is summarized according to the conditions for the action switching of the vehicle system, and is set for each recognition direction of the recognition device such as a sensor possessed by the vehicle system, or each target object for which the recognition device is the object. More specifically, the intermediate layer is set according to the judgment criterion of the behavior control of the automatic driving in the state machine of the upper layer. Thus, the second state machine can smoothly and reliably switch the action of the vehicle system by referring to the state transition of the intermediate layer.

[0045] Example 1

[0046] Figure 1 This is a diagram showing the overall structure of the vehicle control device of the first embodiment.

[0047] The vehicle system 1000 of the first embodiment is a system mounted on a vehicle such as an automobile, and includes various sensors 12, various actuators 13, and an ECU 1 as an example of a vehicle control device. The various sensors 12 and various actuators 13 and the ECU 1 can communicate with each other via vehicle networks 16 and 17. The vehicle networks 16 and 17 can be any communication network such as Ethernet (registered trademark) and CAN-FD (CAN with Flexible Data-Rate).

[0048] The various sensors 12 as recognition devices include one or more sensors such as radar, LiDAR (Light Detection And Ranging), and camera for acquiring information about the vehicle's surrounding environment. The various sensors 12 output sensor status information to the ECU 1 .

[0049] The various actuators 13 include one or more actuators for operating the running of the vehicle, such as an accelerator, a brake, and a steering wheel. The various actuators 13 control the running of the vehicle based on input control information from the ECU 1 .

[0050] The ECU 1 includes a CPU 14 and a memory 15. The CPU 14 executes various processes according to the programs stored in the memory 15. The memory 15 is, for example, a RAM (Random Access Memory) or a ROM (Read Only Memory), and stores the programs executed by the CPU 14 and necessary information.

[0051] In addition, the ECU 1 may also include a computing element capable of performing various information processing, such as an FPGA (Field-Programmable Gate Array), etc., instead of the CPU 14. In addition, as the memory 15, in addition to the RAM and the ROM, the ECU 1 may also include a magnetic storage medium such as an HDD (Hard Disk Drive), a semiconductor storage medium such as an SSD (Solid State Drive), etc.

[0052] The memory 15 stores processing programs 111A, 111B, 111C, and 111D of the state machine, event tables 112A, 112B, 112C, and 112D, state transition tables 113A, 113B, 113C, and 113D, and states 114A, 114B, 114C, and 114D of the state machine, as a lower-level state machine (first state machine) 11A, an intermediate-level state machine 11B and 11C, and an upper-level state machine (second state machine) 11D. The functions of the programs will be described later.

[0053] In the following description, for convenience, a program is sometimes described as an action subject, but the actual execution subject is the CPU 14 that executes the program.

[0054] In addition, Figure 1 Although one lower-level state machine 11A and two middle-level state machines 11B and 11C are shown in the figure, the number of these lower-level state machines and middle-level state machines is not limited to the example shown in the figure.

[0055] Next, refer to Figure 2 to Figure 4 The functional configuration diagram of the ECU 1 will be described.

[0056] Figure 2 FIG. 1 is a diagram showing an example of the functional configuration of the upper layer state machine 11D of the first embodiment. Figure 2 to Figure 4 In the Data Flow Diagram format, the functional configuration is recorded.

[0057] The processing program 111A of the state machine 11A of the lower layer (actually, a functional unit composed of the CPU 14 that executes the processing program of the state machine of the lower layer) receives event input (sensor state information) from various sensors 12, stores the events from various sensors 12 in the event table 112A, and updates the state 114A of the state machine based on the events and the state 114A of the state machine with reference to the state transition table 113A. Then, after the state 114A is updated, the information of the events and the protection conditions is output to the state machine 11B of the middle layer.

[0058] Figure 3 This is a diagram showing an example of the functional configuration of the intermediate state machine 11B of Embodiment 1. The ECU 1 of this embodiment has a plurality of intermediate state machines 11B and 11C, but each has the same functional configuration, so the functional configuration of the intermediate state machine 11B will be described here.

[0059] The processing program 111B of the state machine 11B of the middle layer stores the input event from the processing program 111A of the state machine 11A of the lower layer in the event table 112B, and updates the state 114B of the state machine with reference to the state transition table 113B based on the event and the state 114B of the state machine. Then, after the state is updated, the information of the event and the protection condition is output to the state machine 11D of the upper layer.

[0060] Figure 4 This is a diagram showing an example of the functional configuration of the upper-level state machine 11D according to the first embodiment.

[0061] The processing program 111D of the state machine 11D of the upper layer stores the input events from the processing programs 111B and 111C of the state machines 11B and 11C of the middle layer in the event table 112D, and updates the state 114D of the state machine with reference to the state transition table 113D based on the events and the state 114D of the state machine. Then, after the state is updated, the control information is output to the various actuators 13.

[0062] Figure 5 This is a diagram showing an example of the event table of Example 1. Figure 1 to Figure 4 The event tables 112A to 112D shown have the same data structure.

[0063] The event tables 112A to 112D are tables for storing events output by the sensors 12, the lower-level state machines 11A, and the intermediate-level state machines 11B and 11C. When a plurality of events are stored, the events may be reflected in the order of first arrival, or the priorities may be determined separately in advance and reflected in the order of priority.

[0064] Fig. 6A as well as Figure 6B 113A is a diagram showing the state transition table 113A of the lower layer of the first embodiment. Fig. 6A And 6B is an example in which ECU 1 has two lower-level state machines. Fig. 6A as well as Figure 6B The state transition table 113A shown in FIG. 1 has substantially the same data structure, so Fig. 6A Provide explanation.

[0065] The vertical axis of the state transition table 113A represents the events input from the various sensors 12 to the state machine 11A of the lower layer, and the horizontal axis represents the state of the state machine 11A of the lower layer. Each cluster (mas) represents the state to be transferred when the event occurs. For example, when an abnormality 601 of the sensor 12 occurs in the normal state 600, the state machine 11A of the lower layer transfers to the abnormal state. In the state transition table 13A of the lower layer, the transfer target state of the state machine of the lower layer is determined by the input events from the various sensors 12 and the current state of the state machine 11A of the lower layer.

[0066] Fig. 7A as well as Figure 7B This is a diagram showing an example of the state transition tables 113B and 113C of the intermediate layer according to the first embodiment. Fig. 7A as well as Figure 7B The state transition tables 113B and 113C shown in FIG. 1 have substantially the same data structure, so Fig. 7A Provide explanation.

[0067] The vertical axis, horizontal axis, and clusters of the intermediate state transition table 113B are the same as those of the lower state transition table 113A except for the following points. The clusters of the intermediate state transition table 113B include clusters containing [ ], and protection conditions are described in [ ].

[0068] Here, when an event occurs in a certain state, there is a case where transition is performed or not performed, or when the transition target state is different, the condition that determines it is called a guard condition.

[0069] For example, when the state of the state machine 11B of the middle layer is the performance limit 602, when the state of the state machine 11A of the lower layer is transferred to the recovery 603, the transfer target state is different depending on the number of sensors of the performance limit state in the state machine 11A of the lower layer. More specifically, the state of the state machine 11B of the middle layer is transferred to the normal state when there is no sensor of the performance limit state, and is transferred to the performance limit state when there is a sensor of the performance limit state. In the state transition table 113B of the middle layer, the transfer target state of the state machine 11B of the middle layer is determined by the input event from the state machine 11A of the lower layer, the current state and the protection condition.

[0070] Figure 8 This is a diagram showing an example of the state transition table 113D of the upper layer according to the first embodiment.

[0071] The vertical axis, horizontal axis, and each cluster of the state transition table 113D of the upper layer are the same as those of the state transition tables 113B and 113C of the middle layer. For example, when the state of the state machine 11D of the upper layer is the normal state 604, and the state of the state machines 11B and 11C of the middle layer is transferred to the abnormal state 605, the transfer target state varies depending on the number of normal state sensors in the state machines 11B and 11C of the middle layer. More specifically, the state of the state machine 11D of the upper layer is transferred to the driver handover state when the number of normal sensors is less than 2, and is transferred to the function restriction state when the number of normal sensors is more than 2. In the state transition table 113D of the upper layer, the transfer target state of the state machine 11D of the upper layer is determined by the input events from the state machines 11B and 11C of the middle layer, as well as the current state and protection conditions.

[0072] Fig.9A is a diagram showing a sensor belonging to the right middle layer of Example 1, Fig. 9B This is a diagram showing an example of the intermediate layer of Example 1.

[0073] exist Fig. 9B In the example shown, two middle layers (a right middle layer 500 and a left middle layer) are provided.

[0074] Then, if Fig.9A As shown, when the vehicle is divided left and right around an axis extending in the traveling direction, events from a sensor located on the right side of the vehicle or having a detection direction of the sensor 12 on the right side of the vehicle are input into the right middle layer 500 .

[0075] In other words, Fig. 9B In the example shown, the state machine that divides the middle layer is based on the setting position of the identification device, such as various sensors 12, or the identification direction of the identification device, and events from the identification device whose setting position or identification direction (detection direction of the sensor 12) is located on the right side of the vehicle are input into the right middle layer 500.

[0076] Fig. 9B The intermediate layer shown is only an example, and the method of setting the intermediate layer can be changed to make it suitable according to the conditions for the state transition of the state machine 11D of the upper layer. For example, an intermediate layer can be set for each detection direction of the sensor 12 and / or each target object that the sensor is a target of. Examples of targets include stationary objects, moving objects, signals, etc. By setting an intermediate layer for each detection direction and / or target object, it is possible to detect where a fault occurs in the vehicle and what detection becomes difficult.

[0077] In this way, by providing an intermediate layer for each condition that causes the state of the upper layer to transition, the operation of the ECU 1 can be switched.

[0078] Next, the state transition processing of the state machines of the lower layer, the middle layer, and the upper layer will be described.

[0079] Fig.10 This is a flowchart showing an example of processing of the lower-level state machine 11A according to the first embodiment.

[0080] Fig.10 The state transition process shown in the flowchart is performed by the CPU 14 executing the processing program 111A of the lower-level state machine 11A. Fig.10 The state transition processing shown is executed, for example, when the state of the sensor 12 transitions. Next, the processing of the state machine processing program 111A of the lower-level state machine 11A will be described.

[0081] When the processing program 111A of the lower-level state machine 11A stores an event in the event table 112A by inputting an event from various sensors 12 ("Yes" in S100), the state of the lower-level state machine 11A is updated (S120) with reference to the state transition table 113A (S110) based on the stored event and the state 114A of the lower-level state machine 11A.

[0082] Then, when it is determined that the event needs to be reflected in the intermediate layer (YES in S130), the state machine processing program 111A notifies the intermediate layer of the event (S140), and ends the processing.

[0083] On the other hand, when no event is stored in the event table 112A (No in S100 ), or when it is determined that there is no need to reflect the event to the intermediate layer (No in S130 ), the state machine processing program 111A ends the processing at that point.

[0084] Fig.11 This is a flowchart showing an example of processing of the intermediate layer state machines 11B and 11C according to the first embodiment.

[0085] Fig.11 The state transition process shown in the flowchart is performed by the CPU 14 executing the processing programs 111B and 111C of the intermediate state machines 11B and 11C. Fig.11 The state transition process shown is executed when the state machine 11A of the lower layer transitions. Since the state transition processes executed by the processing programs 111B and 111C of the intermediate layer state machines 11B and 11C are substantially the same, the process of the processing program 111B of the intermediate layer state machine 11B will be described below.

[0086] When an event is stored in the event table 112B (YES in S200 ), the processing program 111B of the intermediate state machine refers to the state transition table 113B based on the stored event and the state 114B of the intermediate state machine ( S210 ).

[0087] Then, when there is a protection condition in the state transition table 113B ("Yes" in S220), the processing program 111B of the state machine of the middle layer refers to the state of the lower layer (S230) and performs a state update (S240). On the other hand, when there is no protection condition ("No" in S220), the processing program 111B of the state machine of the middle layer directly performs a state update (S240).

[0088] Then, when it is determined that the event needs to be reflected to the upper layer (YES in S250), the state machine processing program 111B of the middle layer notifies the upper layer of the event (S260).

[0089] On the other hand, when no event is stored (No in S200 ) or when it is determined that there is no need to reflect to the upper layer (No in S250 ), the processing program 111B of the state machine of the intermediate layer ends the processing at that moment.

[0090] Fig.12 This is a flowchart showing an example of processing of the upper layer state machine 11D according to the first embodiment.

[0091] Fig.12 The state transition process shown in the flowchart is performed by the CPU 14 executing the processing program 111D of the upper layer state machine 11D. Fig.12 The state transition process shown is executed when the state of the state machines 11B and 11C in the middle layer transitions.

[0092] When an event is stored in the event table 112D (YES in S300 ), the processing program 111D of the upper-level state machine refers to the state transition table 113D based on the stored event and the state 114D of the upper-level state machine ( S310 ).

[0093] Then, when there is a protection condition in the state transition table 113D ("Yes" in S320), the upper layer state machine processing program 111D refers to the state of the middle layer (S330), updates the state, and transmits control information to various actuators 13 (S240).

[0094] On the other hand, when there is no protection condition (No in S320), the upper-layer state machine processing program 111D directly updates the state and transmits control information to various actuators 13 (S340). Then, the upper-layer state machine processing program 111D ends the processing.

[0095] On the other hand, when no event is stored (No in S300 ), the processing program 111D of the upper-level state machine ends the processing at that point.

[0096] Next, Figure 10 to Figure 12 The state update actions (S120, S220, S340) in the flowchart are described.

[0097] Figures 13A to 13C The following are diagrams showing an example of a state list of the upper layer state machine 11D, the middle layer state machines 11B and 11C, and the lower layer state machine 11A of Example 1. In these diagrams, the left column shows the number of state machines, and the right column shows the current state of each state machine. When the state is updated, for example, when the lower layer 1 is changed to abnormal, the state is updated from normal to abnormal.

[0098] Fig.14A It is a diagram for explaining the operation of the vehicle control device 1 according to the first embodiment.

[0099] like Fig.14A As shown, the vehicle 400 is traveling straight on a two-lane road, and a front vehicle 401 is traveling in front of the vehicle 400. Furthermore, it is assumed that the vehicle 400 is about to overtake the front vehicle 401.

[0100] At this time, when the front right Radar 510 (refer to Fig.9A ) When a fault 402 occurs, the state machine 11A of the lower layer stores the event in the event table 112A, and based on the event and the state 114A of the state machine of the lower layer, refers to the state transition table 113A to update the state 114A of the state machine. Furthermore, when the state machine 11A of the lower layer needs to be reflected to the state machines 11B and 11C of the middle layer, the state machine 11A of the lower layer updates the state 114A of the state machine 114A in the right middle layer 520 (refer to Fig.9A ) stores events in the event table.

[0101] The state machines 11B and 11C of the right middle layer 520 (actually, any one of the state machines 11B and 11C of the middle layers, but it is not necessary to determine in the description here, so the symbols are all added) refer to the state transition tables 113B and 113C based on the event input from the state machine 11A of the lower layer and the state machine states 114B and 114C. If there is a protection condition in the state transition tables 113B and 113C, the state machines 11B and 11C of the middle layers refer to the state of the state machine 11A of the lower layer included in the target middle layer, and update the state 114B and 114C of the state machine of the middle layer to an abnormal state. And, if the state 114B and 114C of the state machine of the middle layer becomes an abnormal state, it is necessary to reflect it to the state machine 11D of the upper layer, so the state machines 11B and 11C of the middle layers store the event in the state machine 11D of the upper layer.

[0102] The upper-layer state machine 11D entered by the event refers to the state transition table 113D based on the event input from the middle-layer state machines 11B and 11C and the state 114D of the upper-layer state machine. Since the states 114B and 114C of the middle-layer state machine become abnormal states, the state 114D of the upper-layer state machine is transferred to the function restriction state.

[0103] Assuming that only a single intermediate-layer status machine is provided, if a failure 402 occurs only in the front right Radar 510 of the vehicle 400, it is considered that all sensors have failed, and the upper-layer status machine 11D changes to the "waiting for driver handover" state, and the upper-layer status machine 11D outputs a control signal to notify the driver of the abnormality of the sensor, etc. On the other hand, according to the ECU 1 of this embodiment, even if a failure 402 occurs in the front right Radar 510 of the vehicle 400, the state 114D of the upper-layer status machine stops at the transition to the function restriction state, and does not immediately perform control to report a warning to the driver.

[0104] According to the present embodiment thus constructed, the state of the state machine 11A of the lower layer is divided according to each function of the vehicle system 1000, and is output to the state machine 11D of the upper layer, in correspondence with the state machines 11B and 11C of the middle layer. The state of the state machine 11A of the lower layer is divided according to each function of the vehicle system 1000, and is output to the state machine 11D of the upper layer. The state machine 11D of the upper layer receives the state of the lower layer state machine 11A input from the state machines 11B and 11C of the middle layer, and outputs a signal for controlling the vehicle system 1000 with reference to the state transition table 113D.

[0105] More specifically, the intermediate state machines 11B and 11C output the state of the lower state machine 11A to the upper state machine 11D according to the direction of the vehicle system 1000 of the sensor 12 or each target object targeted by the sensor 12 .

[0106] Therefore, it is possible to simplify the design of the state transition of the state machines 11A to 11D constituting the ECU 1. In addition, the operation of the vehicle system 1000 can be switched by referring only to the states of the target intermediate state machines 11B and 11C.

[0107] In addition, as described above, how to set the intermediate layer, more specifically, how to divide is not limited to the method shown in the embodiment. Fig. 14B When two intermediate layers are provided as shown, not only Fig. 14B As shown in the left part of the left part, it can also be split into left and right parts as shown in the left part of the right part. Fig. 14B In the case of the front-to-back split, when dividing from the center of the vehicle to the front and rear of the traveling direction, events from a sensor located at the front side of the vehicle or having a detection direction of the sensor 12 at the front side of the vehicle are input to the front middle layer 501. Fig. 14B The middle layer shown in the figure can be arranged in the left and right parts respectively. In other words, the middle layer can also be divided into four parts, front, back, left and right.

[0108] Example 2

[0109] Fig.15 1 is an overall configuration diagram of a vehicle control device (ECU 1) according to Embodiment 2. In the following description, the same reference numerals are given to the same components as those of Embodiment 1, and the description thereof is simplified.

[0110] In the vehicle system 1001 of the second embodiment, the ECU 1 as the vehicle control device is different from the ECU 1 of the first embodiment in the following point. That is, in the intermediate layers 11B and 11C of the memory 15, the intermediate layer processing programs 116B and 116C and the reliability calculation programs 115B and 115C are stored instead of the state machine processing programs 111B and 111C, the state transition tables 113B and 113C, and the state machine states 114B and 114C.

[0111] Fig.16 1 is a diagram showing an example of the functional configuration of the lower-level state machine 11A according to the second embodiment. Fig.17 1 is a diagram showing an example of the functional configuration of the intermediate layers 11B and 11C of Example 2. Fig.18 This is a diagram showing an example of the functional configuration of the upper layer state machine 11D of the second embodiment. Figure 16 to Figure 18The functional configuration shown Fig.16 as well as Fig.18 The functional configuration shown is respectively the same as that of the above-mentioned embodiment 1. Figure 2 as well as Figure 4 The functional structure shown is the same, so the description is omitted here. Fig.17 functional composition.

[0112] exist Fig.17 In the embodiment, the processing program 116B of the middle layer (actually, a functional unit composed of the CPU 14 executing the processing program 116B of the middle layer) receives event input (notification information of the state) from the state machine 11A of the lower layer, stores the event in the event table 112B, 112C, calculates the reliability through the reliability calculation program 115B, 115C, and notifies the event to the state machine 11D of the upper layer when the reliability is below the threshold. The details of the reliability and its calculation method will be described later.

[0113] Fig.19 This is a flowchart showing an example of processing of the intermediate layers 11B and 11C according to the second embodiment. Fig.19 The state transition processing shown in the flowchart is executed when the state of the state machine 11A of the lower layer is transitioned. In this embodiment, the processing of the state machine 11A of the lower layer and the state machine 11D of the upper layer are the same as those of the first embodiment, so the description is omitted. In addition, the state transition processing executed by the processing programs 116B and 116C of the middle layer is roughly the same, so the processing of the processing program 116B of the state machine of the middle layer 11B is described below.

[0114] When the event is stored in the event table 112B ("Yes" in S200), the processing program 116B of the middle layer calculates the reliability of the sensor (S270). Then, when the reliability calculated in S270 is below the threshold ("Yes" in S280), and when it is determined that it is necessary to further reflect to the upper layer ("Yes" in S250), the processing program 116B of the middle layer notifies the event to the state machine 11D of the upper layer (S260).

[0115] On the other hand, when there are no stored events ("No" in S200), when the reliability is below the threshold ("No" in S280), and when it is judged that it does not need to be reflected to the upper layer ("No" in S250), the middle layer processing procedure 116B ends the processing.

[0116] In this embodiment, the reliability is a value indicating whether the various sensors 12 are operating normally, and a value of normal / abnormal is obtained for each sensor. As an example, if the radio wave intensity received by the Radar is a normal value (in other words, it can be measured normally by the Radar), the reliability is 1, and if the radio wave intensity is lower than the normal value by a specified value or more (including the case where the radio wave intensity is 0), the reliability is 0. In addition, if the sensor is a camera, if the contrast of the image signal of the camera shows a normal value, the reliability is 1, and if it is lower than the normal value by a specified value or more, the reliability is 0.

[0117] The processing programs 116B and 116C of the middle layer calculate the reliability of each sensor 12 based on the event input from the state machine 11A of the lower layer, and calculate the reliability of the middle layer by integrating these. Therefore, the reliability can also be said to be the redundancy that indicates whether the sensor 12 that inputs the event to the middle layer 11B and 11C via the state machine 11A of the lower layer is normal. The threshold value is determined from the viewpoint of determining whether to notify the event to the upper layer state machine 11D based on how many sensors 12 have become abnormal.

[0118] For the operation of the ECU 1 of this embodiment, refer to Fig.9A , the description will focus on the differences from Example 1.

[0119] The processing program of the right middle layer 520 (assuming that it is the processing program 116B) calculates the reliability of all sensors 12 belonging to the right middle layer 520. The calculated result is that when the average reliability in the right middle layer 520 is below the threshold, it is determined whether it is necessary to notify the upper layer state machine 11D according to the number of sensors 12 whose reliability is below the threshold and the degree of reliability. This time, the number of sensors below the threshold is 1, but since the reliability of the front right Radar 510 is 0, the event is stored in the upper layer state machine 11D.

[0120] The upper state machine 11D into which the event enters refers to the state transition table 113D based on the input event and the state machine state 114D. The upper state machine 11D then transitions the state machine state 114D to the function restriction state based on the reliability of the intermediate layers 11B and 11C.

[0121] Therefore, according to this embodiment, it is possible to obtain the same effects as those of the above-described embodiment 1. In addition, the operation of the vehicle system 1001 can be switched simply by calculating the reliability of the intermediate layers 11B and 11C.

[0122] In addition, the present invention is not limited to the above-described embodiment, and includes various modifications.

[0123] For example, the above-mentioned embodiments are examples described in detail in order to explain the present invention in an easy-to-understand manner, and are not necessarily limited to examples having all the described structures. In addition, a part of the structure of one embodiment may be replaced with the structure of another embodiment, and a structure of another embodiment may be added to a structure of one embodiment. In addition, other structures may be added, deleted, or replaced with a part of the structure of each embodiment.

[0124] In addition, the control lines and information lines are considered necessary for explanation, and not all control lines and information lines are necessarily shown on the product. In fact, it can be considered that almost all components are connected to each other.

[0125] Explanation of symbols

[0126] 1000, 1001…vehicle system, 1…ECU, 11A…lower-layer state machine, 11B, 11C…middle-layer state machine, 11D…upper-layer state machine, 14…CPU, 15…memory, 111A, 111B, 111C, 111D…state machine processing program, 113A, 113B, 113C, 113D…state transition table, 114A, 114B, 114C, 114D…state of the state machine, 115B, 115C…reliability calculation program, 116B, 116C…middle-layer processing program.

Claims

1. A vehicle control device, which controls a vehicle system and comprises: A control device comprising a layered first state machine, a second state machine, and an intermediate layer provided between the first state machine and the second state machine; and a storage device storing a plurality of state transition tables, wherein the plurality of state transition tables record, for each of the first state machine and the second state machine, the current state of the first state machine and the second state machine, the state to be transferred, and the condition of the state transfer, The vehicle system has a sensor, and the first state machine receives an event from the sensor. The vehicle control device is characterized in that the first state machine receives an event input from the vehicle system, outputs the state of the first state machine to the intermediate layer with reference to the state transition table, the intermediate layer is divided according to each direction of the sensor in the vehicle system or each target object as the object of the sensor, and outputs the state of the first state machine to the second state machine, The state transition table corresponding to the second state machine includes the current state of the first state machine or the state to be transitioned as a condition for the state transition of the second state machine, The second state machine receives the state of the first state machine input from the intermediate layer, refers to the state transition table, and outputs a signal for controlling the vehicle system.

2. The vehicle control device according to claim 1, characterized in that: The condition for the state transition of the second state machine includes the event or the protection condition.

3. The vehicle control device according to claim 1, characterized in that: The middle layer is the state machine.

4. The vehicle control device according to claim 3, characterized in that: The storage device has the state transition table which describes the current state of the intermediate layer, the state to be transitioned, and the condition of the state transition. The condition for the state transition of the state machine of the intermediate layer includes the event or protection condition of the first state machine.

5. The vehicle control device according to claim 1, characterized in that: The intermediate layer outputs the state of the first-state machine to the second-state machine based on a relationship between a first numerical value obtained from the state of the first-state machine and a preset threshold value.

6. The vehicle control device according to claim 5, characterized in that: The first numerical value is the number of the first-state machines that are in a preset state among the first-state machines.

7. The vehicle control device according to claim 1, characterized in that: The vehicle system includes an actuator, and the second state machine outputs a signal for controlling the actuator.

8. A computer program product comprising a computer program executed by a computer controlling a vehicle system, The computer program is characterized in that When the computer program is executed, the computer generates a layered first state machine, a second state machine, and an intermediate layer provided between the first state machine and the second state machine. The computer has a storage device storing a plurality of state transition tables, wherein the plurality of state transition tables record, for each of the first state machine and the second state machine, the current state of the first state machine and the second state machine, the state to be transferred, and the condition of the state transfer. Further, The first state machine receives an event input from the vehicle system, outputs the state of the first state machine to the intermediate layer with reference to the state transition table, divides the intermediate layer into each direction of the sensor in the vehicle system or each target object as a target of the sensor, and outputs the state of the first state machine to the second state machine, The state transition table corresponding to the second state machine includes the current state of the first state machine or the state to be transitioned as a condition for the state transition of the second state machine, The second state machine receives the state of the first state machine input from the intermediate layer, and outputs a signal for controlling the vehicle system with reference to the state transition table.