In-vehicle control device, control method, and control program
Patent Information
- Application Number
- JP2022064471
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-04-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-08
AI Technical Summary
When multiple virtual machines are implemented in an in-vehicle device, relay processing between in-vehicle devices is inefficient due to inadequate allocation of task execution times, particularly during message reception periods.
An in-vehicle control device with a first processing unit for relay processing and a second processing unit, along with a determining unit that dynamically determines a first and second period for executing these processes, optimizing task execution times based on message reception probability distributions and vehicle state changes.
This approach allows for efficient relay processing by allocating task execution times during high-probability message reception periods, enhancing the efficiency of communication between in-vehicle devices.
Abstract
Description
Technical Field
[0001] The present disclosure relates to an in-vehicle control device, a control method, and a control program.
Background Art
[0002] Vehicles are equipped with various in-vehicle devices such as a control system ECU (Electronic Control Unit) that controls an engine, a transmission, etc., a body system ECU that controls a headlight, a power window, etc., and an information system ECU such as a navigation device and a multimedia device. In recent years, it has been proposed to construct a plurality of virtual machines in one in-vehicle device and provide the functions of a plurality of ECUs. When a plurality of virtual machines operate in one in-vehicle device, the execution time of tasks is allocated to each virtual machine in a time-sharing manner. Patent Document 1 discloses changing the execution time of tasks allocated to each virtual machine according to the position of an ignition switch and the state of an engine (ACC OFF, ACC ON, immediately after IG OFF, immediately after IG ON, IG ON steady state).
Prior Art Documents
Patent Documents
[0003]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0004] In-vehicle devices include a relay device that relays communication between a plurality of in-vehicle devices. When such a relay device is realized by a virtual machine, relay processing cannot be efficiently performed unless the execution time of a task is allocated during the period when a message is received from the in-vehicle device.
Means for Solving the Problems
[0005] An in-vehicle control device according to one aspect of the present disclosure includes: a first processing unit that performs relay processing for relaying messages communicated between a plurality of in-vehicle devices; a second processing unit that performs processing different from the relay processing related to the vehicle; and a determination unit that dynamically determines a first period for the first processing unit to perform the relay processing and a second period for the second processing unit to perform the processing.
[0006] A control method according to one aspect of the present disclosure includes the steps of: performing a relay process for relaying messages communicated between a plurality of in-vehicle devices; performing a process different from the relay process relating to the vehicle; and dynamically determining a first period for performing the relay process and a second period for performing a process different from the relay process.
[0007] A control program according to one aspect of the present disclosure is a control program used in an in-vehicle control device that performs relay processing for relaying messages communicated between a plurality of in-vehicle devices and processing different from the relay processing related to the vehicle, wherein the computer functions as a determination unit that dynamically determines a first period for executing the relay processing and a second period for executing processing different from the relay processing.
[0008] This disclosure can be implemented not only as an in-vehicle control device having the characteristic configuration described above, a control method that uses characteristic processing in the in-vehicle control device as steps, and a control program for causing the in-vehicle control device to execute characteristic processing, but also as an in-vehicle system including the in-vehicle control device, or as part or all of the in-vehicle control device being implemented as a semiconductor integrated circuit. [Effects of the Invention]
[0009] According to this disclosure, in an in-vehicle control device that performs relay processing for relaying messages communicated between multiple in-vehicle devices and processing related to a vehicle that is different from the relay processing, it is possible to appropriately determine a first period for performing the relay processing and a second period for performing processing different from the relay processing. [Brief explanation of the drawing]
[0010] [Figure 1] This is a block diagram showing an example of the configuration of an in-vehicle system according to the embodiment. [Figure 2] A block diagram showing an example of the configuration of an integrated ECU according to the embodiment. [Figure 3] This is a schematic diagram illustrating the virtual environment in the integrated ECU according to the embodiment. [Figure 4] This is a functional block diagram showing an example of the functions of the integrated ECU according to the embodiment. [Figure 5A] This timing chart shows an example of the relationship between the first and second periods and the timing of message reception. [Figure 5B] This diagram illustrates the determination of the first and second periods by the integrated ECU according to the embodiment. [Figure 6] This diagram illustrates an example of detecting a phase change in message communication. [Figure 7] This flowchart shows an example of the period determination process by the integrated ECU according to the embodiment. [Figure 8] This is a functional block diagram showing a modified example of the functions of the integrated ECU according to the embodiment. [Modes for carrying out the invention]
[0011] <Summary of the embodiments of this disclosure> The embodiments of this disclosure are outlined below.
[0012] (1) The in-vehicle control device according to this embodiment includes a first processing unit that executes a relay process for relaying messages communicated between a plurality of in-vehicle devices, a second processing unit that executes a process different from the relay process regarding the vehicle, and a determination unit that dynamically determines a first period for executing the relay process by the first processing unit and a second period for executing the process by the second processing unit. Thereby, it is possible to appropriately determine the first period for executing the relay process and the second period for executing a process different from the relay process.
[0013] (2) In the above (1), the message is periodically communicated between the plurality of in-vehicle devices, and the determination unit may determine the first period based on the period of the message. Thereby, the first period can be assigned to a period during which the message can be received.
[0014] (3) In the above (2), the determination unit may determine the first period based on the probability distribution of receiving the message over time. Thereby, the first period can be assigned to a period during which the probability of receiving the message is high.
[0015] (4) In the above (3), the determination unit may determine the first period based on a comparison between the probability distribution and a threshold value. Thereby, a period during which the probability of receiving the message is high can be determined using the threshold value.
[0016] (5) In the above (3) or (4), the in-vehicle control device may include a creation unit that creates the probability distribution. Thereby, the first period can be determined using the probability distribution created in the in-vehicle control device.
[0017] (6) In the above (5), the creation unit may create the probability distribution based on the reception history of the message in the in-vehicle control device. Thereby, using the reception history of the message, a probability distribution reflecting the reception period of the message can be obtained.
[0018] (7) In the above (6), the in-vehicle control device includes a phase change detection unit that detects a change in the phase of the periodic communication of the message, and the creation unit may create the probability distribution based on the reception history of the subsequent message from the change in the phase detected by the phase change detection unit. Thereby, a probability distribution reflecting the reception period of the message after the communication phase changes can be obtained.
[0019] (8) In the above (3) or (4), the determination unit may determine the first period based on the probability distribution created by an external device provided outside the vehicle. Thereby, it is not necessary for the in-vehicle control device to create a probability distribution. The in-vehicle control device can determine the first period using the probability distribution created by the external device.
[0020] (9) In any one of the above (1) to (8), the determination unit may determine the first period and the second period at a timing based on a certain period including the first period and the second period. Thereby, the first period and the second period can be determined at a suitable timing.
[0021] (10) In any one of the above (1) to (9), the in-vehicle control device includes a state change detection unit that detects a change in the state of the vehicle, and the determination unit may determine the first period and the second period when the change in the state is detected by the state change detection unit. Thereby, the first period and the second period can be determined at a suitable timing.
[0022] (11) In the above (10), the change in the state of the vehicle may include a change in the driving state of the vehicle. Thereby, the first period and the second period can be determined at the timing when the driving state of the vehicle changes.
[0023] (12) In (10) above, the change in the state of the vehicle may include a change in the configuration of the in-vehicle network including the plurality of in-vehicle devices. This makes it possible to determine the first period and the second period at the timing when the configuration of the in-vehicle network changes.
[0024] (13) In (10) above, the change in the state of the vehicle may include at least one of the plurality of on-board devices switching from a normal operating state to a sleep state, or from a sleep state to a normal operating state. This makes it possible to determine the first period and the second period at the timing when the state of the on-board device changes between a normal operating state and a sleep state.
[0025] (14) The control method according to this embodiment includes the steps of: performing a relay process for relaying messages communicated between a plurality of in-vehicle devices; performing a process different from the relay process relating to the vehicle; and dynamically determining a first period for performing the relay process and a second period for performing a process different from the relay process. This makes it possible to appropriately determine the first period for performing the relay process and the second period for performing a process different from the relay process.
[0026] (15) The control program according to this embodiment is a control program used in an in-vehicle control device that performs relay processing for relaying messages communicated between a plurality of in-vehicle devices and processing different from the relay processing related to the vehicle, wherein the computer functions as a determination unit that dynamically determines a first period for executing the relay processing and a second period for executing processing different from the relay processing. This makes it possible to appropriately determine the first period for executing the relay processing and the second period for executing processing different from the relay processing.
[0027] <Details of the embodiments of this disclosure> The embodiments of the present invention will be described in detail below with reference to the drawings. At least some of the embodiments described below may be combined in any way.
[0028] [1. In-vehicle systems] Figure 1 is a block diagram showing an example of the configuration of an in-vehicle system according to this embodiment. The in-vehicle system 100 is mounted on a vehicle.
[0029] The in-vehicle system 100 in this implementation includes an integrated ECU 200 and individual ECUs 300A, 300B, 300C, 300D, and 300E. The in-vehicle system 100 is an in-vehicle network composed of the integrated ECU 200, the individual ECUs 300A, 300B, 300C, 300D, and 300E, and communication cables (communication buses) connecting them.
[0030] Multiple individual ECUs 300A, 300B, 300C, 300D, and 300E are located in various parts of the vehicle. These individual ECUs control the hardware of each part of the vehicle individually and monitor the status of the hardware of each part of the vehicle. For example, individual ECUs 300A, 300B, 300C, 300D, and 300E are control system, body system, and information system ECUs. Individual ECUs 300A, 300B, 300C, 300D, and 300E are examples of "in-vehicle devices." In the following explanation, individual ECUs 300A, 300B, 300C, 300D, and 300E will be collectively referred to as "individual ECU 300."
[0031] The integrated ECU 200 is connected to each of the individual ECUs 300A, 300B, 300C, 300D, and 300E via in-vehicle buses 400A, 400B, and 400C, which are similar to a CAN (Controller Area Network) bus. Specifically, individual ECUs 300A and 300B are connected to bus 400A. Individual ECUs 300C and 300D are connected to bus 400B. Individual ECU 300E is connected to bus 400C. The integrated ECU 200 can communicate with each of the individual ECUs 300A, 300B, 300C, 300D, and 300E.
[0032] The integrated ECU 200 and individual ECUs 300 use a communication protocol for periodically sending and receiving messages. This communication protocol is, for example, CAN or CAN FD (CAN with Flexible Data Rate).
[0033] The integrated ECU 200 functions as a gateway that relays communication between multiple individual ECUs 300. Each individual ECU 300 can send messages. The integrated ECU 200 relays messages between individual ECUs connected to different buses. For example, the integrated ECU 200 can relay messages between individual ECU 300A connected to bus 400A and individual ECU 300C connected to bus 400B.
[0034] The integrated ECU 200 is connected to the external communication device 350 via bus 400C. The external communication device 350 is, for example, a wireless communication terminal compliant with 5G or 4G, such as a TCU (Telematics Control Unit). The external communication device 350 can communicate with the server 600. The external communication device 350 relays communication between the integrated ECU 200 and the server 600.
[0035] [2. Configuration of the Integrated ECU] Figure 2 is a block diagram showing an example of the configuration of an integrated ECU according to this embodiment. The integrated ECU 200 includes a processor 201, a non-volatile memory 202, a volatile memory 203, and a communication interface (I / F) 204.
[0036] The volatile memory 203 is a semiconductor memory such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). The non-volatile memory 202 is a flash memory or a hard disk. The non-volatile memory 202 is capable of reading and writing data.
[0037] Processor 201 is, for example, a CPU (Central Processing Unit). However, processor 201 is not limited to a CPU. Processor 201 may also be a GPU (Graphics Processing Unit). Processor 201 is configured to execute computer programs. However, processor 201 may include, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as an FPGA (Field Programmable Gate Array).
[0038] The communication interface 204 is a communication interface compliant with the communication protocol for the in-vehicle network described above. The communication interface 204 includes multiple communication ports and is connected to buses 400A, 400B, and 400C, respectively. The communication interface 204 is connected to individual ECUs 300A, 300B, 300C, 300D, and 300E, respectively, via buses 400A, 400B, and 400C. The integrated ECU 200 can communicate with individual ECUs 300A, 300B, 300C, 300D, and 300E via the communication interface 204. Furthermore, the integrated ECU 200 can communicate with server 600 via external communication device 350 using the communication interface 204.
[0039] The non-volatile memory 202 has the hypervisor 251, guest operating systems 252A and 252B, and applications 253A and 253B installed. The hypervisor 251 is run by processor 201 and makes the integrated ECU 200 function as a virtual machine.
[0040] Figure 3 is a schematic diagram illustrating the virtual environment in the integrated ECU according to this embodiment. The hypervisor 251 operates on hardware 260 (processor 201, non-volatile memory 202, volatile memory 203, and communication I / F 204, etc.). The hypervisor 251 can emulate virtual hardware (HW) 260A and 260B. By emulating virtual HW260A, virtual machine 261A is realized, and by emulating virtual HW260B, virtual machine 261B is realized. Hereinafter, virtual machine 261A will also be referred to as "VM_1", and virtual machine 261B will also be referred to as "VM_2". VM_1 is an example of a "first processing unit", and VM_2 is an example of a "second processing unit".
[0041] In VM_1, guest OS252A runs. In VM_1, APP253A runs on guest OS252A. In VM_2, guest OS252B runs. In VM_2, APP253B runs on guest OS252B. APP253A is software for implementing gateway functionality. By processor 201 executing APP253A, the integrated ECU 200 can perform relay processing to relay messages between individual ECUs 300. APP253B is software for implementing functions other than gateway functionality. APP253B is, for example, power window control software. By processor 201 executing APP253B, the integrated ECU 200 can control the power windows.
[0042] Hypervisor 251 manages the execution periods of VM_1 and VM_2. The execution periods of VM_1 and VM_2 are allocated using time-sharing. The execution period of VM_1 is the "first period," and the execution period of VM_2 is the "second period."
[0043] Returning to Figure 2, the non-volatile memory 202 stores the control program 254, which is a computer program, as well as the periodic information 255, history data 256, and schedule table 257 used in the control program 254.
[0044] Control program 254 is a program for determining the execution period of VM_1 and VM_2, respectively.
[0045] Period information 255 indicates the message transmission period for each individual ECU 300A, 300B, 300C, 300D, and 300E. The message transmission periods may differ for at least some of the individual ECUs 300A, 300B, 300C, 300D, and 300E. The message transmission periods may also be the same for at least some of the individual ECUs 300A, 300B, 300C, 300D, and 300E. For example, the message transmission period for individual ECU 300A is T1 seconds, and the message transmission period for individual ECU 300B is T2 seconds. Period information 255 includes the message transmission period for each individual ECU 300. Hereinafter, the message transmission period will also be referred to as the "individual period".
[0046] History data 256 is a record of messages received by the integrated ECU 200 from each individual ECU 300. History data 256 includes the identification information of the originating individual ECU 300 and the time the message was received.
[0047] The schedule table 257 is a table for defining the first and second periods. The schedule table 257 stores the first and second periods determined by the control program 254. The hypervisor 251 operates VM_1 and VM_2 according to the first and second periods specified in the schedule table 257.
[0048] [3. Functions of the Integrated ECU] Figure 4 is a functional block diagram showing an example of the functions of the integrated ECU according to this embodiment.
[0049] The processor 201 executes the control program 254, thereby realizing the functions of the determination unit 211, the creation unit 212, the phase change detection unit 213, and the storage unit 214.
[0050] The decision unit 211 dynamically determines a first period for executing relay processing by VM_1 and a second period for executing processing by VM_2. The decision unit 211 determines the first period based on the message transmission cycle from the individual ECU 300.
[0051] Figure 5A is a timing chart showing an example of the relationship between the first and second periods and the timing of message reception. In the communication protocol used in the in-vehicle system 100, messages are periodically transmitted from individual ECUs 300. In the example in Figure 5A, the message transmitted from individual ECU 300A is indicated as "M_1", the message transmitted from individual ECU 300B as "M_2", and the message transmitted from individual ECU 300C as "M_3", with the first period indicated as "VM_1" and the second period as "VM_2".
[0052] The first and second periods are specified within the basic cycle. Figure 5A shows an example where the first and second periods are fixedly determined within the basic cycle. That is, in the example of Figure 5A, the first and second periods do not change within each basic cycle. In this case, messages M_1, M_2, and M_3 are not necessarily received by the integrated ECU 200 during the first period. In the example of Figure 5A, message M_1 is received during the first period, so VM_1 can relay message M_1 during the first period. However, messages M_2 and M_3 are not received during the first period, so the integrated ECU 200 cannot relay messages M_2 and M_3 until the next first period.
[0053] In this embodiment, the integrated ECU 200 determines a first period in accordance with the message transmission cycle from the individual ECUs 300. Therefore, messages M_1, M_2, and M_3 are received in the integrated ECU 200 during the first period, and relay processing is performed efficiently.
[0054] Returning to Figure 4, specifically, the decision unit 211 determines the first period based on the probability distribution of receiving a message over time (hereinafter referred to as the "reception probability distribution"). The creation unit 212 creates the reception probability distribution.
[0055] The creation unit 212 creates a reception probability distribution using period information 255 and history data 256. Figure 5B is a diagram illustrating the determination of the first and second periods by the integrated ECU according to this embodiment. The lower graph in Figure 5B shows the reception probability distribution. In Figure 5B, 501 is the reception probability distribution of message M_1 from individual ECU 300A, 502 is the reception probability distribution of message M_2 from individual ECU 300B, and 503 is the reception probability distribution of message M_3 from individual ECU 300C. Individual ECUs 300 transmit messages according to their set individual periods, but the timing of message transmission may be shifted due to communication arbitration when multiple individual ECUs 300 transmit messages simultaneously. The creation unit 212 creates a reception probability distribution 501 of message M_1 using the individual period of individual ECU 300A and the reception history of message M_1 from individual ECU 300A. The creation unit 212 creates a reception probability distribution 502 for message M_2 using the individual period of the individual ECU 300B and the reception history of message M_2 from the individual ECU 300B. The creation unit 212 creates a reception probability distribution 503 for message M_3 using the individual period of the individual ECU 300C and the reception history of message M_3 from the individual ECU 300C.
[0056] Returning to Figure 4, the phase change detection unit 213 detects the phase change of the periodic communication of the message. In a specific example, the phase change detection unit 213 uses periodic information 255 and history data 256 to detect the phase change of the message communication.
[0057] Figure 6 illustrates an example of detecting a phase change in message communication. Figure 6 does not consider the timing difference in message transmission due to communication arbitration. Message M_1 is transmitted from the individual ECU 300A at individual cycles. Events that change the phase of message transmission may occur in the individual ECU 300. For example, when the individual ECU 300A enters sleep mode, it interrupts the transmission of message M_1. When the individual ECU 300A returns from sleep mode to normal operation mode, the periodic transmission of message M_1 resumes, but the phase of message M_1 transmission changes from before the sleep mode. The phase change detection unit 213 identifies the past reception state of message M_1 in the integrated ECU 200, for example, from the cycle information 255 and history data 256, and detects the phase change in the reception of message M_1. The phase change detection unit 213 may also detect the phase change in the reception of message M_1 by monitoring the state of the individual ECU 300A (normal operation mode, sleep mode).
[0058] Returning to Figure 4, the creation unit 212 creates a reception probability distribution based on the reception history of messages after the phase change detected by the phase change detection unit 213. In the example in Figure 6, the phase change detection unit 213 detects that a phase change has occurred at the end of the sleep period of the individual ECU 300A (hereinafter referred to as the "phase change point"). The creation unit 212 obtains the reception history of message M_1 from the history data 256 after the phase change point and creates a reception probability distribution of message M_1 using the obtained reception history. This creates a reception probability distribution of message M_1 after the phase change point.
[0059] If multiple phase changes are detected in the message reception history from a single individual ECU 300, the message reception history from the point of the last phase change onward is used. This allows for obtaining a reception probability distribution that accurately reflects the current phase of message reception.
[0060] In one example, the creation unit 212 combines multiple reception probability distributions. Returning to Figure 5B, the reception probability distribution 501 of message M_1 and the reception probability distribution 502 of message M_2 are combined to create the combined probability distribution 504. More specifically, the creation unit 212 adds the values of reception probability distributions 501 and 502 at each time step to create the combined probability distribution 504.
[0061] The determination unit 211 determines the first period based on a comparison between the reception probability distribution created by the creation unit 212 and a threshold. In the integrated ECU 200, a threshold for the message reception probability (shown by a dashed line in the figure) is set. The determination unit 211 compares the composite probability distribution 504 and the reception probability distribution 503 with the threshold and determines the period during which the reception probability is greater than or equal to the threshold as the first period. For example, the determination unit 211 determines any period other than the first period in the basic period as the second period.
[0062] Returning to Figure 4, the creation unit 212 creates a reception probability distribution based on the basic cycle timing, and the determination unit 211 determines the first and second periods based on the basic cycle timing. In a specific example, at the start of the basic cycle, the creation unit 212 creates a reception probability distribution based on the reception history obtained from the phase detection point to the current basic cycle. The determination unit 211 uses the reception probability distribution created by the creation unit 212 to determine the first and second periods in the next basic cycle. Note that the creation unit 212 does not have to create a reception probability distribution for each basic cycle, and the determination unit 211 does not have to determine the first and second periods for each basic cycle. For example, the creation unit 212 may create a reception probability distribution and the determination unit 211 may determine the first and second periods every predetermined number of basic cycles (for example, every three basic cycles).
[0063] The decision unit 211 stores the determined first and second periods in the schedule table 257. This updates the schedule table 257. The hypervisor 251 operates VM_1 and VM_2 according to the first and second periods specified in the schedule table 257. This allows VM_1 to perform relay processing during periods with a high probability of receiving messages.
[0064] The storage unit 214 stores the message reception history in the integrated ECU 200. Each time a message is relayed by VM_1, the storage unit 214 records the sender identification information of the message and the message reception time in the history data 256. This adds new information to the history data 256.
[0065] [4. Operation of the Integrated ECU] The operation of the integrated ECU according to this embodiment will be described below. The processor 201 of the integrated ECU 200 executes the control program 254, thereby performing the period determination process described below. Figure 7 is a flowchart showing an example of the period determination process by the integrated ECU according to this embodiment.
[0066] When the period setting process starts, the processor 201 determines whether or not the basic cycle has started (step S101). If the basic cycle has not started (NO in step S101), the processor 201 executes step S101 again.
[0067] If the basic cycle has started (YES in step S101), the processor 201 refers to the cycle information 255 and the history data 256 and detects the phase change of message reception from the individual ECU 300 (step S102). The processor 201 obtains the reception history from the phase change point onward from the history data 256 (step S103).
[0068] The processor 201 creates a message reception probability distribution based on the period information 255 and the reception history after the phase change point (step S104). If multiple reception probability distributions overlap, the processor 201 combines the multiple reception probability distributions to create a combined probability distribution.
[0069] The processor 201 compares the reception probability distribution with a threshold (step S105) and identifies the period during which the reception probability is greater than or equal to the threshold. The processor 201 determines the identified period as the first period and determines the periods other than the first period in the basic cycle as the second period (step S106).
[0070] The processor 201 stores the determined first and second periods in the schedule table 257 and updates the schedule table 257 (step S107). This completes the period determination process.
[0071] [5. Variation Examples] In the above embodiment, when there is overlap among multiple reception probability distributions, a composite probability distribution is generated by combining the reception probability distributions, and the first period is determined by comparing the composite probability distribution with a threshold. However, the embodiment is not limited to this. For example, if the determination unit 211 compares the reception probability distribution with a threshold to identify a period in which the reception probability is greater than or equal to the threshold, and two or more periods are identified, and the length of the gap period (a period in which the reception probability is less than the threshold) between adjacent periods is less than or equal to a predetermined value, the period obtained by combining the adjacent periods and the gap period may be considered the first period.
[0072] In the above embodiment, the first period was determined based on the message reception probability distribution in the integrated ECU 200, but it is not limited to this. The first period may also be determined based on the message period without using the reception probability distribution. For example, the determination unit 211 can estimate the next message reception time based on the message transmission period of the individual ECU 300 specified in the period information 255, and determine a period of a predetermined width centered on the estimated message reception time as the first period.
[0073] In the above embodiment, the creation unit 212 of the integrated ECU 200 created the message reception probability distribution, but this is not limited to that. The server 600 may have the same functionality as the creation unit 212 and create the message reception probability distribution. In this case, the integrated ECU 200 can obtain the reception probability distribution from the server by communication and determine the first and second periods using the obtained reception probability distribution.
[0074] In the above embodiment, the determination unit 211 determined the first and second periods based on the timing of the basic cycle, but it is not limited to this. For example, the determination unit 211 may determine the first and second periods when a change in the state of the vehicle is detected.
[0075] Figure 8 is a functional block diagram showing a modified example of the functions of the integrated ECU according to the embodiment. The integrated ECU 200 according to this modified example has the function of a state change detection unit 215. The state change detection unit 215 detects changes in the state of the vehicle. When the state change detection unit 215 detects a change in the state of the vehicle, the creation unit 212 creates a message reception probability distribution. When the state change detection unit 215 detects a change in the state of the vehicle, the determination unit 211 determines a first period and a second period based on the reception probability distribution.
[0076] For example, the state change of the vehicle detected by the state change detection unit 215 can be a change in the vehicle's driving state. The state change detection unit 215, for example, obtains a measured value of the vehicle's speed from a speed sensor and determines from the vehicle's speed whether the vehicle is moving or stopped. The state change detection unit 215 detects a change in the vehicle's driving state from a stopped state, or a change from a stopped state to a moving state. When the state change detection unit 215 detects a change in the vehicle's driving state, the creation unit 212 creates a received probability distribution, and the determination unit 211 determines the first period and the second period based on the received probability distribution.
[0077] For example, the state change detection unit 215 detects a change in the vehicle's state, which can be a change in the configuration of the in-vehicle network. The state change detection unit 215 detects the connection of a new individual ECU 300 to the in-vehicle network and the removal of an individual ECU 300 from the in-vehicle network. When the state change detection unit 215 detects a change in the configuration of the in-vehicle network, the creation unit 212 creates a reception probability distribution, and the determination unit 211 determines the first and second periods based on the reception probability distribution.
[0078] For example, the state change of the vehicle detected by the state change detection unit 215 can be a switch between a normal operating state and a sleep state in at least one individual ECU 300. The state change detection unit 215 detects when an individual ECU 300 switches from a normal operating state to a sleep state, and when it switches from a sleep state to a normal operating state. In a specific example, one individual ECU 300 (for example, individual ECU 300E) is a power management ECU that manages the power supply for individual ECUs 300A, 300B, 300C, and 300D, and the power management ECU manages the switching between the normal operating state and the sleep state of individual ECUs 300A, 300B, 300C, and 300D. When a switch between a normal operating state and a sleep state occurs in an individual ECU 300, the power management ECU notifies the integrated ECU 200 that a switch between a normal operating state and a sleep state has occurred in the individual ECU 300, and also provides identification information for the individual ECU 300. When the state change detection unit 215 receives this notification, it detects that a switch has occurred between the normal operating state and the sleep state in the individual ECU 300. When the state change detection unit 215 detects a switch between the normal operating state and the sleep state in the individual ECU 300, the creation unit 212 creates a reception probability distribution, and the determination unit 211 determines the first period and the second period based on the reception probability distribution.
[0079] The above embodiment describes a configuration in which relay processing and processing different from relay processing (power window control processing) are performed by hypervisor-type virtual machines 261A and 261B, but is not limited to this. Relay processing and processing different from relay processing may be performed by two container-type virtual machines, or relay processing and processing different from relay processing may be performed by two applications running on a common OS instead of virtual machines.
[0080] [6. Effects of the Embodiment] The integrated ECU 200 includes a virtual machine 261A (first processing unit), a virtual machine 261B (second processing unit), and a decision unit 211. The virtual machine 261A performs relay processing to relay messages communicated between multiple individual ECUs 300. The virtual machine 261B performs processing different from the relay processing related to the vehicle. The decision unit 211 dynamically determines a first period for executing relay processing by the virtual machine 261A and a second period for executing processing by the virtual machine 261B. This allows for appropriate determination of the first period for executing relay processing and the second period for executing processing different from relay processing.
[0081] Messages may be communicated periodically between multiple individual ECUs 300. The determination unit 211 may determine a first period based on the message period. This allows the first period to be allocated to a period during which messages can be received.
[0082] The decision unit 211 may determine the first period based on the probability distribution of message reception over time. This allows the first period to be assigned to a period with a high probability of receiving a message.
[0083] The determination unit 211 may determine the first period based on a comparison between the reception probability distribution and a threshold. This allows the period in which the probability of receiving a message is high to be determined using the threshold.
[0084] The integrated ECU 200 may include a creation unit 212. The creation unit 212 creates a reception probability distribution. This allows the first period to be determined using the reception probability distribution created in the integrated ECU 200.
[0085] The creation unit 212 may create a reception probability distribution based on the message reception history in the integrated ECU 200. This makes it possible to obtain a probability distribution that reflects the message reception cycle using the message reception history.
[0086] The integrated ECU 200 may include a phase change detection unit 213. The phase change detection unit 213 detects periodic phase changes in message communication. The creation unit 212 may create a reception probability distribution based on the reception history of messages after the phase change point detected by the phase change detection unit 213. This makes it possible to obtain a probability distribution that reflects the reception period of messages from the phase change point of communication.
[0087] The determination unit 211 may determine the first period based on a reception probability distribution created by a server 600 (external device) located outside the vehicle. This eliminates the need for the integrated ECU 200 to create a reception probability distribution. The integrated ECU 200 can determine the first period using the reception probability distribution created by the server 600.
[0088] The determination unit 211 may determine the first and second periods at timings based on a basic cycle (a fixed period) that includes the first and second periods. This allows the first and second periods to be determined at a suitable timing.
[0089] The integrated ECU 200 may include a state change detection unit 215. The state change detection unit 215 detects changes in the state of the vehicle. The determination unit 211 may determine the first period and the second period when the state change detection unit 215 detects a change in the state of the vehicle. This allows the first period and the second period to be determined at a suitable timing.
[0090] Changes in the vehicle's condition may include changes in the vehicle's driving condition. This allows the first and second periods to be determined at the time the vehicle's driving condition changes.
[0091] A change in the vehicle's state may include a change in the configuration of the in-vehicle network, which includes multiple individual ECUs 300. This allows the first and second periods to be determined at the time the configuration of the in-vehicle network changes.
[0092] A change in the vehicle's state may include at least one of the multiple individual ECUs 300 switching from a normal operating state to a sleep state, or from a sleep state to a normal operating state. This allows the first and second periods to be determined at the timing when the state of an individual ECU 300 changes between a normal operating state and a sleep state.
[0093] [7. Supplementary Notes] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is indicated by the claims rather than by the embodiments described above, and includes all modifications within the meaning and scope of the equivalents of the claims. [Explanation of symbols]
[0094] 100 In-vehicle systems 200 Integrated ECU (Onboard Control Unit) 201 Processor 202 Non-volatile memory 203 Volatile memory 204 Communication Interface (Communication I / F) 211 Decision Section 212 Creation Department 213 Phase change detection unit 214 Storage Unit 215 State change detection unit 251 Hypervisor 252A, 252B Guest OS 254 Control Program 255 Period information 256 Historical Data 257 Schedule Table 260 Hardware 260A, 260B Virtual Hardware (Virtual HW) 261A Virtual Machine (First Processing Unit) 261B Virtual Machine (Second Processing Unit) 300,300A,300B,300C,300D,300E Individual ECU (vehicle equipment) 350 External communication device 400A, 400B, 400C In-vehicle bus 501, 502, 503 Reception probability distribution 504 Composite Probability Distributions 600 Servers (External Devices)
Claims
1. a first processing unit that executes a relay process for relaying messages communicated among a plurality of in-vehicle devices; A second processing unit that executes a process different from the relay process related to a vehicle; a determination unit that dynamically determines a first period for executing the relay process by the first processing unit and a second period for executing the process by the second processing unit; Equipped with In-vehicle control device.
2. the messages are periodically communicated between the plurality of in-vehicle devices; The determination unit determines the first period based on a period of the message. The vehicle-mounted control device according to claim 1 .
3. The determination unit determines the first period based on a probability distribution of receiving the message over time. The on-vehicle control device according to claim 2 .
4. The determination unit determines the first period based on a comparison between the probability distribution and a threshold. The on-vehicle control device according to claim 3 .
5. The in-vehicle control device includes a generation unit that generates the probability distribution. The on-vehicle control device according to claim 3 .
6. The creation unit creates the probability distribution based on a reception history of the message in the in-vehicle control device. The on-vehicle control device according to claim 5 .
7. the on-board control device includes a phase change detection unit that detects a change in the phase of the periodic communication of the message; the creation unit creates the probability distribution based on a reception history of the message after the phase change detected by the phase change detection unit. The on-vehicle control device according to claim 6.
8. The determination unit determines the first period based on the probability distribution created by an external device provided outside the vehicle. The on-vehicle control device according to claim 3 .
9. The determination unit determines the first period and the second period at a timing based on a certain cycle including the first period and the second period. The on-vehicle control device according to any one of claims 1 to 8.
10. The on-board control device includes a state change detection unit that detects a change in a state of the vehicle, the determination unit determines the first period and the second period when the change in the state is detected by the state change detection unit. The on-vehicle control device according to any one of claims 1 to 8.
11. The change in the state of the vehicle includes a change in the running state of the vehicle. The on-vehicle control device according to claim 10.
12. The change in the state of the vehicle includes a change in a configuration of an in-vehicle network including the plurality of in-vehicle devices. The on-vehicle control device according to claim 10.
13. The change in the state of the vehicle includes at least one of the plurality of in-vehicle devices switching from a normal operation state to a sleep state, or from a sleep state to the normal operation state. The on-vehicle control device according to claim 10.
14. executing a relay process for relaying messages communicated among a plurality of in-vehicle devices; executing a process different from the relay process related to a vehicle; dynamically determining a first period for executing the relay process and a second period for executing a process different from the relay process; Including, Control methods.
15. A control program used in an in-vehicle control device that executes a relay process for relaying messages communicated between a plurality of in-vehicle devices and a process related to a vehicle that is different from the relay process, Computer, a determination unit that dynamically determines a first period for executing the relay process and a second period for executing a process different from the relay process; A control program that functions as a
