Vehicle control device, vehicle control system, and access right management program

The vehicle control system addresses task interruptions by dividing time slots into static and dynamic areas for regular and irregular access, enabling balanced task execution in vehicle control systems with shared storage.

JP7547896B2Active Publication Date: 2024-09-10DENSO CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020159711
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-24
Publication Date
2024-09-10
Estimated Expiration
2040-09-24

AI Technical Summary

Technical Problem

In vehicle control systems with shared storage, tasks requiring periodic data writing, such as trace logs for automatic driving, are often interrupted by tasks with higher priority, disrupting the execution of other tasks.

Method used

A vehicle control system with a shared storage configuration that divides time slots into static and dynamic areas, using a time trigger method for regular access and an event trigger method for irregular access, managed by an access rights management unit to balance task execution.

Benefits of technology

This approach allows for the simultaneous execution of tasks requiring regular access in static time slots and other tasks with higher priority or irregular access in dynamic time slots, ensuring efficient and balanced task management without interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547896000011
    Figure 0007547896000011
  • Figure 0007547896000016
    Figure 0007547896000016
  • Figure 0007547896000003
    Figure 0007547896000003
Patent Text Reader

Abstract

To appropriately balance the execution of tasks each requiring regular access to a shared storage with the execution of other tasks.SOLUTION: A vehicle control device 4 includes: a shared storage 9 shared by multiple applications; and an access right management unit 14 configured to divide one time slot so as to include a static area corresponding to an application's access request by a time trigger method and a dynamic area corresponding to an application's access request by an event trigger method and allocate an access right to the shared storage from the application to either the static area or the dynamic area.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a vehicle control device, a vehicle control system, and an access right management program. [Background technology]

[0002] In an in-vehicle environment, the need to store various data in a vehicle is increasing due to legal requirements and an increase in the need for image analysis. However, a configuration in which a dedicated storage is provided separately for an electronic control device provided in a vehicle is not efficient in terms of cost, mounting space, and centralized data management. For these reasons, a configuration in which a shared storage shared by multiple applications is provided is envisioned. A configuration in which a shared storage is provided is advantageous in terms of cost, mounting space, and centralized data management, but when an application executes a task of writing or reading data to the shared storage, it is necessary to manage access rights from the application. For example, Patent Document 1 discloses a configuration in which a priority is set for a task executed by an application, and interrupt processing is performed according to the set priority, thereby ensuring real-time performance and further avoiding overwriting the same memory area by the interrupt processing. [Prior art documents] [Patent documents]

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

[0004] However, in a configuration in which interrupt processing is performed according to priority as in Patent Document 1, if there is a task that requires periodic writing of data, such as a trace log for autonomous driving, and a task with a higher priority than that task interrupts, the task that requires periodic writing of data will be interrupted. If the priority of a task that requires periodic writing of data is set to the highest, other tasks cannot be executed.

[0005] The present invention has been made in consideration of the above-mentioned circumstances, and its purpose is to provide a vehicle control device, a vehicle control system, and an access right management program that can appropriately balance the execution of tasks that require periodic access to shared storage with the execution of other tasks. [Means for solving the problem]

[0006] According to the invention described in claim 1, a system includes a shared storage (9) shared by a plurality of applications, and an access right management unit (14) that divides a time slot to include a static area corresponding to an access request from the applications in a time-triggered manner and a dynamic area corresponding to an access request from the applications in an event-triggered manner, and assigns access rights to the shared storage from the applications to either the static area or the dynamic area. When an application that should access the dynamic area at the timing of the dynamic area accesses the static area at the timing of the static area, the access right management unit notifies the application of the timing of the next dynamic area. By providing a static area and a dynamic area within one time slot, tasks that require periodic access to the shared storage can be executed within the time of the static area, and other tasks, such as tasks that do not require periodic access but have a higher priority than others, or tasks that require irregular access regardless of priority, can be executed within the time of the dynamic area. This makes it possible to appropriately balance the execution of tasks that require periodic access to the shared storage with the execution of other tasks. [Brief description of the drawings]

[0007] [Figure 1] Functional block diagram showing one embodiment. [Diagram 2] Diagram showing time slots [Diagram 3] Diagram showing multiple consecutive time slots [Figure 4] Diagram showing time slots [Diagram 5] Process flow diagram [Figure 6] Process flow diagram [Figure 7] Process flow diagram [Figure 8] Process flow diagram [Figure 9] Process flow diagram [Figure 10] Diagram showing time slots [Figure 11] Diagram showing time slots [Figure 12] Diagram showing time slots [Figure 13] Diagram showing time slots [Figure 14] Diagram showing time slots [Figure 15] Diagram showing time slots [Figure 16] Diagram showing time slots [Figure 17] Diagram showing time slots [Figure 18] Diagram showing time slots [Figure 19] Diagram showing multiple consecutive time slots [Figure 20] Diagram showing multiple consecutive time slots [Figure 21] Diagram showing multiple consecutive time slots DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] An embodiment will be described below with reference to the drawings. In the following description, the application means software in general for causing an electronic control device or a vehicle control device to execute a predetermined operation, and in a broad sense includes concepts of threads and modules. As shown in FIG. 1, a vehicle control system 1 mounted on a vehicle has two electronic control devices (hereinafter referred to as ECUs: Electronic Control Units) 2 and 3, and one integrated ECU 4 for integrally managing the ECUs 2 and 3, and is configured so that the ECUs 2 and 3 and the integrated ECU 4 can communicate data with each other via a bus 5. The integrated ECU 4 corresponds to a vehicle control device. The bus 5 is, for example, CAN (Controller Area Network) (registered trademark), LIN (Local Interconnect Network) (registered trademark), CXPI (Clock Extension Peripheral Interface) (registered trademark), FlexRay (registered trademark), MOST (Media Oriented Systems Transport) (registered trademark), or the like. In this embodiment, two ECUs are illustrated as being connected to the integrated ECU 4 via the bus 5 so as to be able to communicate data with each other, but the number may be one or three or more.

[0009] The integrated ECU 4 has a bus communication unit 6, a first control unit 7, a second control unit 8, and a shared storage 9. The bus communication unit 6 performs data communication with the bus 5. The first control unit 7 is configured by a microcomputer having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and I / O (Input / Output).

[0010] The first control unit 7 executes a process corresponding to a control program stored in a non-transient substantial storage medium by executing the control program, and cooperates with the second control unit 8 as necessary to control the overall operation of the integrated ECU 4. The first control unit 7 manages the operation of the applications 4a to 4c implemented in the integrated ECU 4, and executes the applications 4a to 4c when a request to start the applications 4a to 4c occurs. The applications 4a to 4c whose operation is managed by the first control unit 7 correspond to applications belonging to a first group, and although three applications 4a to 4c are illustrated in this embodiment, the number of applications may be two or less, or four or more. The control programs executed by the first control unit 7 include an access right management program.

[0011] The second control unit 8 is configured by a microcomputer having a CPU, a ROM, a RAM, and an I / O, similar to the first control unit 7. The second control unit 8 executes a process corresponding to a control program stored in a non-transient substantial storage medium by executing the control program, and cooperates with the first control unit 7 as necessary to control the overall operation of the integrated ECU 4. The second control unit 8 manages the operation of the apps 4d to 4f implemented in the integrated ECU 4, and executes the apps 4d to 4f when a start request for the apps 4d to 4f occurs. The apps 4d to 4f whose operation is managed by the second control unit 8 correspond to apps belonging to a second group, and although three apps 4d to 4f are illustrated in this embodiment, the number may be two or less, or four or more.

[0012] The ECU 2 has a bus communication unit 10 and a control unit 11. The bus communication unit 10 performs data communication with the bus 5. The control unit 11 is configured with a microcomputer having a CPU, a ROM, a RAM, and an I / O. The control unit 11 executes a control program stored in a non-transient substantial storage medium to execute processing corresponding to the control program and control the overall operation of the ECU 2. The control unit 11 manages the operation of an application 2a implemented in the ECU 2, and executes the application 2a when a request to start the application 2a occurs. In this embodiment, the control unit 11 manages the operation of one application, the application 2a, but may manage two or more applications.

[0013] The ECU 3 has a bus communication unit 12 and a control unit 13. The bus communication unit 12 performs data communication with the bus 5. The control unit 13 is configured by a microcomputer having a CPU, a ROM, a RAM, and an I / O. The control unit 13 executes a control program stored in a non-transient substantial storage medium to execute processing corresponding to the control program and control the overall operation of the ECU 3. The control unit 13 manages the operation of an application 3a implemented in the ECU 3, and executes the application 3a when a start request for the application 3a occurs. In this embodiment, the application whose operation is managed by the control unit 13 is exemplified as one application 3a, but two or more applications may be managed.

[0014] The applications 2a, 3a, 4a to 4f are, for example, applications that control the body system, applications that control the powertrain system, applications that control the gateway system, and the like, and are applications that perform various controls related to the vehicle. The shared storage 9 is a storage medium with a predetermined data capacity for storing various data. The shared storage 9 is not, for example, a volatile storage medium such as a RAM, but a non-volatile storage medium such as an HDD (Hard Disk Drive), and is different from the storage medium in which the above-mentioned control programs are stored.

[0015] The applications 4a to 4c implemented in the integrated ECU 4 access the shared storage 9 via the first control unit 7 inside the integrated ECU 4, and execute tasks such as writing and reading data to and from the shared storage 9. The applications 4d to 4f implemented in the integrated ECU 4 access the shared storage 9 via the second control unit 8 and the first control unit 7 by data communication between the first control unit 7 and the second control unit 8 inside the integrated ECU 4, and execute tasks such as writing and reading data to and from the shared storage 9. The applications 2a and 3a implemented in the ECUs 2 and 3 each access the shared storage 9 via the bus 5, and execute tasks such as writing and reading data to and from the shared storage 9.

[0016] The above-mentioned configuration is advantageous in terms of cost, mounting space, and unified data management, because the applications 2a, 3a, 4a to 4f share the shared storage 9 and each of the applications 2a, 3a, 4a to 4f accesses the shared storage 9 of the integrated ECU 4 without providing dedicated storage for each of the ECUs 2 and 3. That is, in a configuration in which dedicated storage is provided for each of the ECUs 2 and 3, there are problems in that the ECUs 2 and 3 become expensive and large in size, and that data management becomes complicated when data is shared between the ECUs 2 and 3 and the integrated ECU 4, and the impact of such problems increases as the number of ECUs increases. In this embodiment, the provision of the shared storage 9 makes it possible to avoid the occurrence of such problems.

[0017] The types of tasks executed by the applications 2a, 3a, 4a to 4f include tasks that require periodic access to the shared storage 9, i.e., tasks that require periodic writing and reading of data, tasks that do not require periodic access to the shared storage 9 but have a higher priority, i.e., tasks that do not require periodic writing or reading of data but should be given priority over other tasks when an event occurs, and tasks that require irregular access to the shared storage 9 regardless of priority, i.e., tasks that require irregular writing and reading of data regardless of priority.

[0018] Tasks that require periodic writing and reading of data include, for example, a task that writes data such as a trace log for automatic driving, a task that writes data such as a monitoring log for security detection, etc. Tasks that do not require periodic writing and reading of data but should prioritize writing and reading of data over other tasks when an event occurs, and tasks that require irregular access to the shared storage 9 regardless of priority include, for example, a task that writes video data and vehicle speed data when detecting an obstacle and controlling collision avoidance, and a task that writes abnormal data when an electronic attack from the outside is detected, etc. In this case, the data capacity of the data that is written or read by each task through access to the shared storage 9 may be any size.

[0019] The first control unit 7 has an access right management unit 14 that assigns access rights to the shared storage 9 from a plurality of applications. As shown in FIG. 2, the access right management unit 14 divides one time slot to include a static segment, a dynamic segment, and a buffer segment, and assigns access rights to the shared storage 9 from a plurality of applications to either the static segment or the dynamic segment (corresponding to an assignment procedure). The static segment is an area corresponding to an access request from an application by a time trigger method, and is an area in which an access right to the shared storage 9 from a specific application is secured at a fixed cycle timing. The dynamic segment is an area corresponding to an access request from an application by an event trigger method, and is an area in which an access right to the shared storage 9 from a specific application is secured at each timing of a request from the application. The buffer segment is an area for adjustment, idling, etc. Note that, in FIG. 2, the time width of one time slot is illustrated as 1 to 5 milliseconds, but it may be set in advance to a value other than 1 to 5 milliseconds.

[0020] By dividing one time slot into a static area, a dynamic area, and a buffer area in this manner, the access right management unit 14 periodically secures a static area, a dynamic area, and a buffer area in a plurality of consecutive time slots as shown in Fig. 3. That is, the access right management unit 14 can periodically permit both access requests from an application based on a time trigger method and an access request based on an event trigger method.

[0021] The access right management unit 14 can variably set the time width of a time slot, and can variably set the time widths of the static area, dynamic area, and buffer area in the time slot. The time width of a time slot and the time widths of the static area, dynamic area, and buffer area in the time slot may be changed, for example, by a diagnostic tool or the like being wired connected to the integrated ECU 4 via the bus 5 and a change instruction signal transmitted from the diagnostic tool being received by the integrated ECU 4, or may be changed by a server being wirelessly connected to the integrated ECU 4 via a communication network and a change instruction signal transmitted from the server being received by the integrated ECU 4.

[0022] Next, the operation of the above-mentioned configuration will be described with reference to Fig. 4 to Fig. 21. Here, it is assumed that the applications A and B are applications that execute a task that requires constant writing and reading of data, and the application C is an application that executes a task that does not require constant writing and reading of data but has a higher priority than the others when an event occurs. The applications A to C may be any of the application 2a implemented in the ECU 2, the application 3a implemented in the ECU 3, and the applications 4a to 4f implemented in the integrated ECU 4. In this case, the access right management unit 14 assigns the access rights from the applications A to C to the shared storage 9 so as to include the static areas of the applications A and B, as shown in Fig. 4.

[0023] As shown in Fig. 5 etc., the access right management unit 14 transmits timing notifications indicating timing of the static area to the applications A and B (S1, S2). When the application A receives the timing notification of the static area from the access right management unit 14, it sets the access timing to the shared storage 9 according to the received timing notification of the static area, and when the setting of the access timing is completed, it transmits a setting completion notification to the access right management unit 14 (S3). When the application B receives the timing notification of the static area from the access right management unit 14, like the application A, it sets the access timing to the shared storage 9 according to the received timing notification of the static area, and when the setting of the access timing is completed, it transmits a setting completion notification to the access right management unit 14 (S4).

[0024] When the access timing set by application A arrives, that is, when the access right to the shared storage 9 is granted, application A transmits an access request to the shared storage 9 to the access right management unit 14 (S5). The access right management unit 14 monitors the reception of an access request to the shared storage 9 from any application, and when it detects the reception of an access request to the shared storage 9 from application A, the access right management unit 14 permits the access request from application A and transmits an access permission notification to application A since the timing of the detection of the reception of the access request is within the time allocated to application A as a static area (S6).

[0025] When application A receives the access permission notification from the access right management unit 14, it executes the task of writing or reading data to the shared storage 9 (S7). The access right management unit 14 monitors the progress of the data writing or reading task, and when the task is completed, it sends a task completion notification to application A (S8). If the task is not completed and the time of the static area allocated to application A has elapsed, the access right management unit 14 forcibly terminates the writing or reading of data from application A to the shared storage 9. After this, application A monitors the next access timing, and when the next access timing arrives, it repeats the above process and periodically executes the task of writing or reading data to the shared storage 9.

[0026] In the above description, the access request from application A to the shared storage 9 occurs within the time allocated to application A as a static area, but due to factors such as synchronization loss within the system, the access request from application A to the shared storage 9 may occur within the time allocated to application B as a static area. In this case, the access right management unit 14 prohibits the access request from application A and sends an access prohibition notice to application A.

[0027] When the access timing set by application B, i.e., the timing when the access right to the shared storage 9 is granted, arrives, application B transmits an access request to the shared storage 9 to the access right management unit 14 (S9). The access right management unit 14 monitors the reception of an access request to the shared storage 9 from any application, and when it detects the reception of an access request to the shared storage 9 from application B, the access right management unit 14 permits the access request from application B and transmits an access permission notification to application B since the timing of the detection of the reception of the access request is within the time allocated to application B as a static area (S10).

[0028] When application B receives an access permission notification from the access right management unit 14, it executes a task of writing or reading data to the shared storage 9 (S11). The access right management unit 14 monitors the progress of the data writing or reading task, and when the task is completed, it sends a task completion notification to application B (S12). In this case as well, if the task is not completed and the time of the static area allocated to application B has elapsed, the access right management unit 14 forcibly terminates the writing or reading of data from application B to the shared storage 9. After this, application B, like application A, also monitors the next access timing, and when the next access timing arrives, repeats the above process and periodically executes the task of writing or reading data to the shared storage 9.

[0029] In this case, too, due to factors such as out-of-synchronization within the system, an access request from application B to the shared storage 9 may occur within the time allocated as a static area to application A. In that case, the access right management unit 14 prohibits the access request from application B and transmits an access prohibition notice to application B.

[0030] When an event occurs, application C transmits an access request for the shared storage 9 to the access right management unit 14 (S13). The access right management unit 14 monitors reception of an access request for the shared storage 9 from any application, and when it detects reception of an access request for the shared storage 9 from application C, as shown in Fig. 5, if the timing at which it detects reception of the access request is in a dynamic area, it permits the access request from application C and transmits an access permission notification to application C (S14).

[0031] When application C receives the access permission notification from the access right management unit 14, it executes a task of writing or reading data to the shared storage 9 (S15). The access right management unit 14 monitors the progress of the data writing or reading task, and when the task is completed, it sends a task completion notification to application C (S16). In this case as well, if the task is not completed and the time of the dynamic area has elapsed, the access right management unit 14 forcibly terminates the writing or reading of data to the shared storage 9 from application C. After this, application C monitors the occurrence of the next event, and when the next event occurs, it repeats the above process and sends an access request to the shared storage 9 to the access right management unit 14. Furthermore, the access right management unit 14 performs similar processes for access requests to the shared storage 9 from applications A to C in the next time slot period as well (S17, S18, S19, S20, ...).

[0032] In response to this, as shown in FIG. 6, if the timing at which the access right management unit 14 detects receipt of an access request from application C to the shared storage 9 is not in a dynamic area, the access right management unit 14 prohibits the access request from application C and sends an access prohibition notification to application C (S21).

[0033] When application C receives an access denial notification from the access right management unit 14, it does not execute tasks of writing or reading data to the shared storage 9. In this case, when application C receives an access denial notification from the access right management unit 14, it may invalidate the occurrence of the event and wait for the occurrence of the next event. Alternatively, application C may continue to validate the occurrence of the event and immediately thereafter retransmit an access request to the access right management unit 14, that is, it may retry transmitting the access request.

[0034] 7, the access right management unit 14 may prohibit an access request from application C and notify application C of the timing of the next dynamic area when sending an access prohibition notification to application C (S31). When application C is notified of the timing of the next dynamic area by the access right management unit 14, application C sends an access request to the access right management unit 14 at the notified timing of the next dynamic area (S32). When the access right management unit 14 detects receipt of an access request to the shared storage 9 from application C, the access right management unit 14 permits the access request from application C since the timing at which the access request was detected is a dynamic area, and transmits an access permission notification to application C (S33). After this, when application C receives an access permission notification from the access right management unit 14, it executes a task of writing or reading data to or from the shared storage 9 (S34).

[0035] 8, for example, the application A transmits an allocation change request to the access right management unit 14 (S41). When the access right management unit 14 detects receipt of an allocation change request for the shared storage 9 from the application A, it determines whether or not the time width of the static area allocated to the application A can be changed.

[0036] When the access right management unit 14 determines that the time width of the static area allocated to application A can be changed, it permits the allocation change request from application A, sends a change permission notice to application A (S42) as shown in Fig. 8, and changes the time width of the static area of ​​application A in the next time slot. On the other hand, when the access right management unit 14 determines that the time width of the static area allocated to application A cannot be changed, it prohibits the allocation change request from application A, sends a change prohibition notice to application A (S43) as shown in Fig. 9, and leaves the time width of the static area of ​​application A in the next time slot unchanged, making it the same as the current time width.

[0037] The time width of the static area allocated to application A can be changed either by decreasing the time width or by increasing the time width. To be more specific, for example, if application A requests a decrease in the time width of the static area, the access right management unit 14 determines that the time width of the static area allocated to application A can be changed because the current static area, dynamic area, and buffer area of ​​application B can be maintained even if the time width of the static area of ​​application A is decreased. In this case, the access right management unit 14 may decrease the time width of one time slot according to the decrease in the time width of the static area of ​​application A, or may allocate the decrease in the time width of the static area of ​​application A to any of the static area, dynamic area, and buffer area of ​​application B while maintaining the time width of one time slot.

[0038] That is, as shown in FIG. 10, the access right management unit 14 may reduce the time width of one time slot according to the reduction in the time width of the static region of the application A, and maintain the time widths of the static region, dynamic region, and buffer region of the application B. As shown in FIG. 11, the access right management unit 14 may allocate the reduction in the time width of the static region of the application A to the static region of the application B while maintaining the time width of one time slot. As shown in FIG. 12 and FIG. 13, the access right management unit 14 may allocate the reduction in the time width of the static region of the application A to the dynamic region while maintaining the time width of one time slot. In this case, one dynamic region may be divided and allocated within one time slot, or may be allocated collectively. As shown in FIG. 14, the access right management unit 14 may allocate the reduction in the time width of the static region of the application A to the buffer region while maintaining the time width of one time slot. Note that when the access right management unit 14 changes the position of the static region of the application B within one time slot, it is necessary to transmit a timing notification indicating the timing of the static region again to the application B.

[0039] On the other hand, if, for example, app A requests an increase in the time width of the static area, increasing the time width of app A's static area may affect other areas, so if there is no possibility of affecting other areas, the access rights management unit 14 determines that the time width of the static area assigned to app A can be changed, and if there is a possibility of affecting other areas, determines that the time width of the static area assigned to app A cannot be changed.

[0040] That is, the access right management unit 14 may determine that the time width of the static area allocated to the application A can be changed if the time width of one time slot can be increased according to an increase in the time width of the static area of ​​the application A and the time widths of the static area, dynamic area, and buffer area of ​​the application B can be maintained as shown in Fig. 15. The access right management unit 14 may determine that the time width of the static area allocated to the application A can be changed if the increase in the time width of the static area of ​​the application A can be supplemented by the buffer area while maintaining the time width of one time slot as shown in Fig. 16. On the other hand, the access right management unit 14 may determine that the time width of the static area allocated to the application A cannot be changed if the increase in the time width of the static area of ​​the application A cannot be supplemented by the buffer area while maintaining the time width of one time slot.

[0041] 17, if the increase in the time width of the static area of ​​application A can be complemented by the static area of ​​application B while maintaining the time width of one time slot, the access right management unit 14 may determine that the time width of the static area allocated to application A can be changed. On the other hand, if the increase in the time width of the static area of ​​application A cannot be complemented by the static area of ​​application B while maintaining the time width of one time slot, the access right management unit 14 may determine that the time width of the static area allocated to application A cannot be changed.

[0042] 18, if the increase in the time width of the static area of ​​application A can be supplemented with a dynamic area while maintaining the time width of one time slot, the access right management unit 14 may determine that the time width of the static area allocated to application A can be changed. On the other hand, if the increase in the time width of the static area of ​​application A cannot be supplemented with a dynamic area while maintaining the time width of one time slot, the access right management unit 14 may determine that the time width of the static area allocated to application A cannot be changed.

[0043] 8 and 9 show an example in which an allocation change request from application A to shared storage 9 is received in the buffer area, but the allocation change request may be received in the static area of ​​application A. If the period during which the time of the static area is changed or the number of accesses is limited, at least one of the access right management unit 14 and application A may manage the period during which the time width of the static area is changed or the number of accesses, and may manage the period during which the allocation change request is valid or the number of accesses.

[0044] Any of the applications A to C may transmit an allocation change request to the access right management unit 14. That is, the application C that executes a task with a higher priority than the others may transmit an allocation change request to the access right management unit 14. In this case, by reducing the time width of the dynamic region, the reduced amount may be allocated to either the static region or the buffer region of the application A or the application B, or by increasing the time width of the dynamic region, the increased amount may be supplemented by either the static region or the buffer region of the application A or the application B.

[0045] In the above-mentioned configuration, when the apps 2a and 3a implemented in the ECUs 2 and 3 execute tasks to write and read data to the shared storage 9 via the bus 5, even when the access right to the shared storage 9 is granted, if the communication bandwidth of the bus 5 is used for other data communication, it is assumed that a malfunction such as the inability to execute the task of writing or reading data to the shared storage 9 or a delay in execution may occur. In order to prevent such a malfunction from occurring, if the app that executes the task of writing or reading data to the shared storage 9 via the bus 5 is an app that requires periodic access to the shared storage 9, it is desirable to reserve the communication bandwidth of the bus 5 in the vehicle control system 1 according to the data capacity. In addition, for example, if the bus 5 is a bus that employs a time-triggered protocol such as FlexRay, it is desirable to synchronize the timing of data communication between the app and the bus 5 with the timing of data communication between the shared storage 9 and the bus 5.

[0046] Although the above describes a case where the same area is allocated in a plurality of consecutive time slots, the areas to be allocated may be different. As shown in Fig. 19, the access right management unit 14 may allocate the access right from application A to the static area of ​​the first time slot, and the access right from application B to the static area of ​​the second time slot in a plurality of consecutive time slots, and may periodically repeat the first time slot and the second time slot.

[0047] In addition, in a situation where it is expected that the data volume in one access to, for example, application C is irregular and relatively large, the access right management unit 14 may assign the access rights from application A and application B to the static area of ​​the first time slot, assign the access rights from application A and application B to the static area of ​​the second time slot, and secure a large dynamic area without allocating a static area to the third time slot, and periodically repeat the first time slot to the third time slot, as shown in Fig. 20. In addition, the access right management unit 14 may assign the access right from application A to the static area of ​​the first time slot, assign the access right from application B to the static area of ​​the second time slot, and secure a large dynamic area without allocating a static area to the third time slot, and periodically repeat the first time slot to the third time slot, as shown in Fig. 21, in a situation where it is expected that the data volume in one access to, for example, application C is irregular and the data volume in

[0048] As described above, according to this embodiment, the following advantageous effects can be obtained. In the integrated ECU 4, one time slot is divided to include a static area and a dynamic area, and an access right from an application to the shared storage 9 shared by a plurality of applications is assigned to either the static area or the dynamic area. By executing a task that requires periodic access to the shared storage 9 within the time of the static area and executing other tasks within the time of the dynamic area, it is possible to appropriately balance the execution of the task that requires periodic access to the shared storage 9 with the execution of other tasks. That is, in the vehicle control system 1, it is possible to appropriately coexist the execution of the task that requires periodic access to the shared storage 9 with the execution of other tasks.

[0049] In addition, the integrated ECU 4 can variably set the time width of the time slot and the time width of the static region and the dynamic region in the time slot. It is possible to appropriately respond to the frequency of access requests from applications, the data transfer speed, and the increase / decrease in data capacity. For example, if the period of access requests from applications that require periodic access to the shared storage 9 is relatively short, the time width of the time slot can be set relatively short, and on the other hand, if the period of the access requests is relatively long, the time width of the time slot can be set relatively long, so that it can be appropriately responded to. For example, if the number of access requests from applications that require periodic access to the shared storage 9 has increased or is expected to increase, the time width of the static region can be increased, and on the other hand, if the access requests have decreased or are expected to decrease, the time width of the static region can be decreased, so that it can be appropriately responded to. For example, if the number of access requests from applications that have a higher priority than others has increased or is expected to increase, the time width of the dynamic region can be increased, and on the other hand, if the access requests have decreased or are expected to decrease, the time width of the dynamic region can be decreased, so that it can be appropriately responded to.

[0050] Furthermore, in the integrated ECU 4, one time slot is added to the static area and dynamic area, and is divided to include a buffer area. By changing the time width of the buffer area without changing the time width of the time slot, the time widths of the static area and the dynamic area can be flexibly changed. By providing a part or the entire buffer area to the static area, the time width of the static area can be increased without changing the time width of the dynamic area. By providing a part or the entire buffer area to the dynamic area, the time width of the dynamic area can be increased without changing the time width of the static area.

[0051] In addition, the integrated ECU 4 is able to variably set the time width of the buffer region. This increases the degree of freedom in changing the time width of the static region and the dynamic region while ensuring the time width provided to the static region and the dynamic region. If the time width of the buffer region is set relatively short, the time width of the static region and the dynamic region can be ensured relatively long in normal times, while if the time width of the buffer region is set relatively long, the time width of the static region and the dynamic region can be appropriately ensured in an emergency in which it becomes necessary to increase the time width of the static region and the dynamic region.

[0052] Furthermore, in the integrated ECU 4, when an application accesses the shared storage 8 via the bus 5, the timing of data communication between the application and the bus 5 is synchronized with the timing of data communication between the shared storage 9 and the bus 5. When an application executes a task of writing or reading data to the shared storage 9 via the bus 5, it is possible to prevent problems such as the data writing or reading task becoming impossible or being delayed, and the task can be executed appropriately.

[0053] Although the present disclosure has been described based on the embodiment, it is understood that the present disclosure is not limited to the embodiment or structure. The present disclosure also includes various modifications and modifications within the equivalent range. In addition, various combinations and forms, as well as other combinations and forms including only one element, more than one element, or less than one element, are also within the scope and concept of the present disclosure.

[0054] The control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a control program. Alternatively, the control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described in the present disclosure may be realized by one or more special-purpose computers configured by a combination of a processor and a memory programmed to execute one or more functions and a processor configured with one or more hardware logic circuits. In addition, the control program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer. [Explanation of symbols]

[0055] In the drawing, 1 is a vehicle control system, 2 and 3 are electronic control units, 4 is an integrated ECU (vehicle control unit), 7 is a first control unit, 8 is a second control unit, 9 is a shared storage, and 14 is an access right management unit.

Claims

1. Shared storage shared by multiple apps (9) an access right management unit (14) that divides one time slot to include a static area corresponding to an access request from the application by a time trigger method and a dynamic area corresponding to an access request from the application by an event trigger method, and assigns an access right from the application to the shared storage to either the static area or the dynamic area; The access right management unit notifies an application of the timing of the next dynamic area when the application should access the dynamic area at the timing of the static area.

2. 2. The vehicle control device according to claim 1, wherein the access right management unit targets at least one of a plurality of consecutive time slots, divides the targeted time slot to include the static area and the dynamic area, and assigns access rights from the application to the shared storage to either the static area or the dynamic area.

3. The vehicle control device according to claim 1 , wherein the access right management unit assigns an access right from a first application that executes a first task that requires periodic access to the shared storage to the static area.

4. 4. The vehicle control device according to claim 3, wherein the access right management unit assigns to the dynamic area access rights from a second application that executes a second task that does not require periodic access to the shared storage but has a higher priority than the first task, or that requires irregular access regardless of priority.

5. A first control unit (7) that manages the operation of apps belonging to the first group; A second control unit (8) that manages the operation of apps belonging to the second group, A vehicle control device as described in any one of claims 1 to 4, wherein the access right management unit is provided in the first control unit, and assigns access rights to the shared storage from apps belonging to the first group to either the static area or the dynamic area, and assigns access rights to the shared storage from apps belonging to the second group to either the static area or the dynamic area by data communication between the first control unit and the second control unit.

6. The vehicle control device according to claim 1 , wherein the access right management unit is capable of variably setting a time width of the time slot.

7. The vehicle control device according to claim 1 , wherein the access right management unit is capable of variably setting a time width of at least one of the static region and the dynamic region.

8. The vehicle control device according to claim 1 , wherein the access right management unit divides one time slot so as to include a buffer area in addition to the static area and the dynamic area.

9. The vehicle control device according to claim 8 , wherein the access right management section is capable of variably setting a time width of the buffer area.

10. 10. A vehicle control device as claimed in any one of claims 1 to 9, wherein the access right management unit synchronizes a data communication timing between the application and the bus with a data communication timing between the shared storage and the bus when the application accesses the shared storage via a bus.

11. A vehicle control system (1) comprising a vehicle control device (4) in which an app is implemented, and an electronic control device (2, 3) in which the app is implemented, the vehicle control device and the electronic control device being capable of data communication, The vehicle control device includes: Shared storage shared by multiple apps (9) and an access right management unit (14) that divides a time slot to include a static area corresponding to a time-triggered access request from the app and a dynamic area corresponding to an event-triggered access request from the app, and assigns access rights from the app to either the static area or the dynamic area, wherein when an app that should access the shared storage at the timing of the dynamic area accesses the shared storage at the timing of the static area, the access right management unit notifies the app of the timing of the next dynamic area.

12. The electronic control device manages operation of a first app that performs a first task that requires periodic access to the shared storage; The vehicle control system according to claim 11 , wherein the access right management unit assigns an access right from the first application to the shared storage to the static area.

13. the electronic control device manages an operation of a second application that executes a second task that does not require periodic access to the shared storage but has a higher priority than the first task; The vehicle control system according to claim 12 , wherein the access right management unit allocates an access right from the second application to the shared storage to the dynamic area.

14. A control unit (7) of a vehicle control device (4) having a shared storage (9) shared by multiple apps, An access right management program that divides a time slot to include a static area corresponding to a time-triggered access request from the application, and a dynamic area corresponding to an event-triggered access request from the application, executes an allocation procedure that allocates access rights from the application to the shared storage to either the static area or the dynamic area, and if an application that should access the shared storage at the timing of the dynamic area accesses the shared storage at the timing of the static area during the allocation procedure, notifies the application of the timing of the next dynamic area.

Citation Information

Patent Citations

  • Bus-guardian of a subscriber of a communication system, and subscriber for a communication system

    CN101346698A

  • Processing performing device and program

    JP2002278779A

  • Communication modules and communication interface elements with communication interface elements

    JP2008511225A

  • Flexray communications using ethernet

    US20140022912A1

  • Fraud detection method and fraud detection device

    WO2020022444A1