Information processing device and timing synchronization method
The information processing apparatus synchronizes the startup timing of periodic applications across different software platforms in a vehicle control system by using a server to manage and adjust startup signals, addressing asynchronous issues caused by middleware variations.
Patent Information
- Application Number
- PCT/JP2025/018531
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
Existing technologies face challenges in synchronizing the execution timing of applications on different software platforms within a vehicle control apparatus, particularly due to variations in communication middleware overhead, leading to asynchronous startup of periodic applications.
An information processing apparatus and method that utilizes a server to manage and adjust the timing of startup signals for multiple clients, incorporating a server periodic execution management unit, timing adjustment unit, and synchronization confirmation unit to synchronize the startup of periodic applications across different clients.
The solution effectively synchronizes the startup timing of periodic applications across clients, even when running on different software platforms, by adjusting the timing of startup signals based on communication overhead differences, ensuring simultaneous and synchronized execution.
Smart Images

Figure JP2025018531_26112026_PF_FP_ABST
Abstract
Description
Information Processing Apparatus and Timing Synchronization Method
[0001] The present invention relates to an information processing apparatus and a timing synchronization method.
[0002] In recent years, a technology called SDV (Software Defined Vehicle) has been applied to vehicles. In SDV, different software platforms (hereinafter abbreviated as software PF) are installed in a single vehicle control apparatus. This is due to two reasons: firstly, it is necessary to select a software PF suitable for the development of each application to prioritize development speed; secondly, there is a demand to install applications developed by a third party separate from the development of the vehicle control apparatus.
[0003] Patent Document 1 discloses a control apparatus in which a user application processing unit detects a slave device, which is set by a setting tool and is a communication target of control data connected to a field bus, and a communication management unit performs communication management according to the control cycle of the control data, and determines the control cycle by using a pre-stored propagation delay time for each slave device that is a communication target.
[0004] Japanese Unexamined Patent Application Publication No. 2019-159754
[0005] Different software PFs are mixed in one vehicle control apparatus, and the overhead varies depending on the communication middleware. For this reason, conventionally, it has been difficult to synchronize the execution timing of applications. Furthermore, the existing technology can only achieve clock synchronization, and there is a problem that the synchronization of application startup is shifted due to the communication middleware.
[0006] The present invention has been made in view of such a situation, and an object of the present invention is to synchronize the startup timing of periodic applications started on different clients.
[0007] The information processing apparatus according to the present invention comprises a server and a plurality of clients. The server includes a server periodic execution management unit that sends startup signals for a plurality of applications that are periodically started by the plurality of clients to the clients and writes the timing of the transmission of the startup signals to a timing management table, a synchronization confirmation unit that checks the difference in the timing of application startup for each of the plurality of clients based on the timing of the transmission of the startup signals by the server periodic execution management unit and the time when each of the plurality of clients sends an application startup signal to start the application, and a timing adjustment unit that adjusts the timing at which the server periodic execution management unit sends startup signals for each of the plurality of clients based on the difference in the timing of application startup. The client includes a client periodic execution management unit that periodically starts applications in response to startup signals received from the server and manages the execution of the applications, and a periodic diagnosis unit that diagnoses the timing at which the client periodic execution management unit periodically starts applications and writes the timing at which the applications were started to a timing management table.
[0008] According to the present invention, the startup timing of periodic applications launched on different clients can be synchronized. Note that the above-described information processing device is one aspect of the present invention, and a timing synchronization method reflecting one aspect of the present invention is configured similarly to the above-described information processing device.
[0009] This is a block diagram showing an example of the overall configuration of an ECU according to the first embodiment of the present invention. This is a diagram showing an example of the configuration of a time information management table according to the first embodiment of the present invention. This is a flowchart showing an example of server processing according to the first embodiment of the present invention. This is a flowchart showing an example of client 1 processing according to the first embodiment of the present invention. This is a diagram showing an example of synchronization timing calculation performed in the initialization phase and post-synchronization phase according to the first embodiment of the present invention. This is a block diagram showing an example of the overall configuration of an ECU according to the second embodiment of the present invention. This is a flowchart showing an example of server processing according to the second embodiment of the present invention. This is a flowchart showing an example of client 1 processing according to the second embodiment of the present invention. This is a block diagram showing an example of the overall configuration of an ECU according to the third embodiment of the present invention.
[0010] Hereinafter, embodiments for carrying out the present invention will be described with reference to the accompanying drawings. In this specification and drawings, components having substantially the same function or configuration are denoted by the same reference numerals, and redundant descriptions are omitted. The present invention is applicable, for example, to a vehicle control computing device that can communicate with an in-vehicle ECU (Electronic Control Unit) for an Advanced Driver Assistance System (ADAS) or Autonomous Driving (AD).
[0011] [First Embodiment] <Example of Overall Configuration of ECU> Figure 1 is a block diagram showing an example of the overall configuration of ECU 1 according to the first embodiment.
[0012] ECU1 is used, for example, as a vehicle control device that is mounted in a vehicle and controls the operation of various parts of the vehicle. However, ECU1 may also be used as an information processing device that controls the power supply of the battery mounted in the vehicle, controls information and communication equipment including various software, etc. ECU1 is provided with one SoC (System on a Chip) 2. SoC2 is a single chip that integrates the entire system. SoC2 is provided with memory 3 and a CPU (Central Processing Unit) core 4.
[0013] CPU core 4 controls the processing of virtual machines 10, 20, and 30 configured in memory 3. Through the control of CPU core 4, virtual machines 10, 20, and 30 can operate independently.
[0014] Memory 3 contains multiple virtual machines 10, 20, and 30, and a time information management table 40. The multiple virtual machines 10, 20, and 30 are examples of software PF according to the first embodiment, and incorporate an OS (Operating System), communication middleware, etc. (not shown). The information processing unit (ECU 1) includes a server-side virtual machine (virtual machine 10) in which the server is configured, and client-side virtual machines (client-side virtual machines 20 and 30) in which clients (clients 1 and 2) are configured. In other words, the server-side virtual machine (virtual machine 10) and the multiple client-side virtual machines (client-side virtual machines 20 and 30) are configured in a single memory (memory 3). For this reason, virtual machine 10 is used as a server, virtual machine 20 is used as client 1, and virtual machine 30 is used as client 2. Virtual machine 10 is sometimes called the "server," and virtual machines 20 and 30 are sometimes collectively called the "clients."
[0015] Virtual machines 10, 20, and 30 are, for example, virtual machines or containers on a hypervisor. Thus, virtual machines 10, 20, and 30 are configured on the same software PF (on one memory 3), but they may also be configured on different software PFs. Middleware including an OS is configured for each of the multiple clients (clients 1 and 2), and the client periodic execution management unit (client periodic execution management unit 21) periodically starts and executes applications via the middleware.
[0016] The time information management table 40 manages the time information shown in Figure 2, which will be described later. The time information is referenced as needed by virtual machines 10, 20, and 30 and used to synchronize the execution timing of applications. The time information management table 40 is configured to be installed on one of the virtual machines 10, 20, or 30. Alternatively, the time information managed by the time information management table 40 may be referenced by other virtual machines that do not have the time information management table 40 installed. Or, the master of the time information management table 40 may be installed on one of the virtual machines 10, 20, or 30, and the time information copied from the master may be held by other virtual machines other than the master.
[0017] The virtual machine 10 is used as a server in a server-client system and includes a server cycle execution management unit 11 and a timing adjustment unit 12.
[0018] The server periodic execution management unit (server periodic execution management unit 11) sends startup signals to multiple clients (clients 1 and 2) for multiple applications (periodic applications 23 and 33) that are periodically started on multiple clients (clients 1 and 2), and writes the timing of the startup signal transmission to a timing management table (time information management table 40). For example, the server periodic execution management unit 11 manages the execution cycle of periodic applications 23 and 33 that run on clients 1 and 2. When the virtual machine 10 starts up, the server periodic execution management unit 11 is the first to start up. In the following explanation, one example of timing is time. For example, the timing of the startup signal transmission is the time the startup signal is transmitted.
[0019] The timing adjustment unit (timing adjustment unit 12) adjusts the timing at which the server periodic execution management unit (server periodic execution management unit 11) sends a start signal to each of the multiple clients (clients 1 and 2) based on the difference in the timing at which the applications are started. For example, the timing adjustment unit 12 calculates timing adjustment information to adjust the start timing of periodic application 23 executed on virtual machine 20 and periodic application 33 executed on virtual machine 30.
[0020] The virtual machine 20, which is client 1, includes a client periodic execution management unit 21, a periodic diagnostic unit 22, and a periodic application 23. The client periodic execution management unit (client periodic execution management unit 21) periodically starts the application in response to a start signal received from the server and manages the execution of the application. For example, the client periodic execution management unit 21 manages the execution cycle of the periodic application 23 that is periodically started on the virtual machine 20.
[0021] The periodic diagnostic unit (periodic diagnostic unit 22) and the client periodic execution management unit (client periodic execution management unit 21) diagnose the timing for periodically starting the application and write the timing of application startup to the timing management table (time information management table 40). For example, the periodic diagnostic unit 22 diagnoses whether the execution cycle of periodic application 23 is synchronized with the execution cycle of periodic application 33 started on the virtual machine 30.
[0022] Periodic application 23 is an example of an application program that runs on the virtual machine 20 at periodic intervals. In the following description, periodic application 23 will be referred to as "periodic application 1," and in the diagrams, it may be written as "periodic APP1." The timing at which the client periodic execution management unit 21 and the periodic diagnostic unit 22 are started is both before periodic application 1 is started.
[0023] The client 2 virtual machine 30 includes a client periodic execution management unit 31, a periodic diagnostic unit 32, and a periodic application 33. The client periodic execution management unit 31 manages the execution cycle of the periodic application 33 which is periodically started on the virtual machine 30. The periodic diagnostic unit 32 diagnoses whether the execution cycle of the periodic application 33 is synchronized with the execution cycle of the periodic application 23 which is started on the virtual machine 20.
[0024] The periodic application 33 is an example of an application program that runs on the virtual machine 30 at periodic intervals. In the following description, periodic application 33 will be referred to as "periodic application 2," and in the diagrams, it may be written as "periodic APP2." The timing at which the client periodic execution management unit 31 and the periodic diagnostic unit 32 are started is both before periodic application 2 is started.
[0025] Next, the time information management table 40 configured in memory 3 will be described. Figure 2 shows an example of the configuration of the time information management table 40. The time information management table 40 is provided in an area that can be written to or read by the server and clients 1 and 2.
[0026] The time information management table 40 has the following items: target, time information, and time difference with the server. The target item stores the name of the target whose time information is managed. In this embodiment, the server, client 1, and client 2 are the targets whose time information is managed.
[0027] The time information item stores, as an example of time information, the transmission time of the start signal that launches periodic applications 1 and 2. The server-side transmission time when the server sends the start signal to clients 1 and 2 is the time when the server periodic execution management unit 11 sends the start signal to the client periodic execution management units 21 and 31, respectively. In the time information management table 40, for example, the server-side transmission time is stored as "00:10:11".
[0028] The client-side activation signal transmission time is the time when the client-side periodic execution management units 21 and 31 are expected to activate periodic applications 1 and 2, respectively, after receiving the activation signal from the server. For example, the client-side transmission time when the activation signal is sent to periodic application 1 from client 1 is stored as "00:10:13".
[0029] Additionally, the client-side transmission time at which the activation signal is sent from client 2 to periodic application 2 is stored as "00:10:24". As explained later in Figure 5, the transmission time of the dummy activation signal sent to periodic applications 1 and 2 is stored in the time information item during the initial startup.
[0030] Due to differences in the communication middleware used by virtual machines 10, 20, and 30, there are differences in communication overhead, resulting in a discrepancy between the server-side transmission time and the client-side transmission times of clients 1 and 2.
[0031] The server time difference item stores the difference between the server-side transmission time and the client-side transmission time of clients 1 and 2 as the time difference with the server. The time difference is calculated by the server cycle execution management unit 11 and stored in the time information management table 40 as time information indicating the time difference between the server and each client.
[0032] The client-side transmission time of client 1 is 2 milliseconds behind the server-side transmission time. The client-side transmission time of client 2 is 13 milliseconds behind the server-side transmission time. The difference between the client-side transmission time of each client and the server-side transmission time is used by the timing adjustment unit 12 to calculate timing adjustment information.
[0033] <Server Processing> Next, we will explain an example of server processing. Figure 3 is a flowchart showing an example of server processing.
[0034] First, the server cycle execution management unit 11 determines whether the current process is at the timing of the initial startup of cycle applications 1 and 2 (S1). If it is the initialization phase, it is the initial startup, and therefore the difference in the startup timing of cycle applications 1 and 2 cannot be calculated, so the subsequent processing is branched based on the determination in step S1.
[0035] If the server cycle execution management unit 11 determines that it is the first startup (YES in S1), it sends a startup signal for cycle applications 1 and 2 to clients 1 and 2 (S2). Next, the server cycle execution management unit 11 saves the server-side transmission time when it sent the startup signal to clients 1 and 2 in the server's time information item in the time information management table 40 (S3), and then terminates this process.
[0036] On the other hand, if the server periodic execution management unit 11 determines that it is not the first startup (NO in S1), it enters the post-synchronization phase to synchronize the startup times of periodic applications 1 and 2. For this reason, the server periodic execution management unit 11 obtains the client-side transmission times of clients 1 and 2 by reading the client-side transmission times saved by clients 1 and 2 from the time information management table 40 (S4).
[0037] Next, the timing adjustment unit 12 calculates timing adjustment information based on the difference between the server-side transmission time and the client-side transmission time (S5). If the time difference between each client 1 and 2 and the server is different, the timing adjustment unit 12 calculates timing adjustment information using the difference between the server-side transmission time and the client-side transmission time of the periodic applications 1 and 2.
[0038] Next, the server periodic execution management unit 11 sends start signals to clients 1 and 2 at different timings based on the timing adjustment information (S6), and terminates this process. Clients 1 and 2, having received start signals at different timings, can synchronize the start times of periodic applications 1 and 2 and execute them.
[0039] In the first embodiment, the process synchronizes the startup timing of periodic applications 1 and 2 in the post-synchronization phase based on the server-side transmission time and client-side transmission time at the initial startup. Therefore, after step S6, the process of saving the server-side transmission time to the time information management table 40, as in step S3, is not performed.
[0040] <Processing of Client 1> Next, an example of the processing of the client 1 will be described. FIG. 4 is a flowchart illustrating an example of processing of the client 1. Since the processing on the client 2 side is the same as the processing of the client 1, detailed description thereof will be omitted.
[0041] First, the client cycle execution management unit 21 of the client 1 determines whether or not the activation signal transmitted from the server cycle execution management unit 11 has been acquired (S11). If the client cycle execution management unit 21 determines that the activation signal has not been acquired (NO in S11), the client cycle execution management unit 21 ends this processing.
[0042] On the other hand, when the client cycle execution management unit 21 determines that the activation signal has been acquired (YES in S11), it determines whether or not it is the first activation (S12). When the client cycle execution management unit 21 is activated and receives an activation signal from the server for the first time, it determines that it is the first activation in the initialization phase.
[0043] When the client cycle execution management unit 21 determines that it is the first activation (YES in S12), it executes processing for timing adjustment. In the timing adjustment processing, the client cycle execution management unit 21 obtains the activation signal transmission time when the dummy activation signal for activation timing adjustment is transmitted to the periodic application 1. When an actual activation signal is transmitted to the periodic application 1, there is a possibility that malfunction may occur because synchronization with the periodic application 2 is not achieved. Therefore, it is assumed that a dummy activation signal that does not actually activate the periodic application 1 is transmitted to the periodic application 1.
[0044] The cycle diagnosis unit 22 stores the activation signal transmission time when the client cycle execution management unit 21 transmits the dummy activation signal in the time information item of the time information management table 40 as the client-side transmission time (S13), and ends this processing.
[0045] On the other hand, when the client periodic execution management unit 21 determines that it is not the first startup (NO in S12), it transmits a startup signal to the periodic application 1 (S14). Upon receiving the startup signal from the client periodic execution management unit 21, the periodic application 1 starts and operates (S15), and terminates this process. Thereafter, the periodic application 1 operates periodically on the client 1.
[0046] <Example of Calculation of Synchronization Timing> FIG. 5 is a diagram illustrating an example of calculation of synchronization timing performed in the initialization phase and the post-synchronization phase. The initialization phase is also referred to as a timing synchronization phase because it is a phase in which startup timings of the periodic applications 1 and 2 are initialized and synchronized. In the drawing, blocks of the respective functional units shown in FIG. 1 and step numbers of the flowcharts shown in FIGS. 3 and 4 are attached so that the flow of processing can be understood.
[0047] In order from the top of FIG. 5, execution timings of the respective functional units of the virtual machine 10 (server), the virtual machine 20 (client 1), and the virtual machine 30 (client 2) are illustrated. In the drawing, the server periodic execution management unit 11 and the client periodic execution management units 21 and 31 are all abbreviated as “periodic execution management unit”.
[0048] When the initialization phase is started at time s0, the server periodic execution management unit 11 executes processes of steps S1 to S3 in FIG. 3. Therefore, in the initialization phase, the server periodic execution management unit (server periodic execution management unit 11) transmits a startup signal to a plurality of clients (clients 1 and 2). For example, at the startup signal transmission time s1, the server periodic execution management unit 11 transmits a startup signal to the client periodic execution management units 21 and 31.
[0049] The client periodic execution management units 21 and 31 execute the processes shown in steps S11 and S12 of Figure 4, respectively. In the initialization phase, the client periodic execution management unit (client periodic execution management unit 21) provisionally starts the application based on a start signal received from the server periodic execution management unit (server periodic execution management unit 11). For example, after receiving a start signal from the server periodic execution management unit 11, the client periodic execution management unit 21 sends a dummy start signal to the periodic application 1 that does not actually start the periodic application 1. The time when the client periodic execution management unit 21 sends the dummy start signal is denoted as the dummy start signal transmission time a1.
[0050] After processing by the client periodic execution management unit 21, the periodic diagnosis unit (periodic diagnosis unit 22) (abbreviated as "diagnosis unit" in the figure) executes the process of step S13 in Figure 4, and the periodic diagnosis unit (periodic diagnosis unit 22) writes the client-side transmission time, which the client periodic execution management unit (client periodic execution management unit 21) assumes to be when the application is tentatively started, into the timing management table (time information management table 40) as time information for the time the application is started. For example, the periodic diagnosis unit 22 writes the dummy start signal transmission time a1 into the time information item of the time information management table 40.
[0051] Furthermore, after receiving a start signal from the server periodic execution management unit 11, the client periodic execution management unit 31 sends a dummy start signal to the periodic application 2, which does not actually start the periodic application 2. The time at which the client periodic execution management unit 31 sends the dummy start signal is denoted as the dummy start signal transmission time b1. The dummy start signal transmission time b1 is later than the dummy start signal transmission time a1. After the processing by the client periodic execution management unit 31, the periodic diagnostic unit 32 (abbreviated as "diagnostic unit" in the figure) executes the process of step S13 in Figure 4 and writes the dummy start signal transmission time b1 to the time information item of the time information management table 40.
[0052] The difference Δt between the client-side transmission times of periodic applications 1 and 2 is calculated as b1 - a1. Ideally, periodic applications 1 and 2 should be started in a synchronized state with the difference Δt set to zero.
[0053] Furthermore, the difference between the dummy start signal transmission time a1 of periodic application 1 and the start signal transmission time s1 by the server periodic execution management unit 11 is defined as Δt1 = a1 - s1. The difference Δt1 represents the time required for the server periodic execution management unit 11 to start periodic application 1 on client 1. In the figure, the dashed rectangular frame starting from the dummy start signal transmission time a1 of periodic application 1 represents the periodic application 1 that is started at the dummy start signal transmission time a1.
[0054] Similarly, the difference between the dummy start signal transmission time b1 of periodic application 2 and the start signal transmission time s1 by the server periodic execution management unit 11 is defined as Δt2 = b1 - s1. The difference Δt2 represents the time required for the server periodic execution management unit 11 to start periodic application 2 on client 2. In the figure, the dashed rectangular frame starting from the dummy start signal transmission time b1 of periodic application 2 represents the periodic application 2 that is started at the dummy start signal transmission time b1. The differences Δt1 and Δt2 are used in timing calculations to synchronize periodic applications 1 and 2.
[0055] When the dummy start signal transmission times a1 and b1 are saved in the time information management table 40 by clients 1 and 2, the server cycle execution management unit 11 performs the process in step S4 of Figure 3 to obtain the client-side transmission time from the time information management table 40.
[0056] Next, the timing adjustment unit (timing adjustment unit 12) calculates the difference between the transmission timing at which the start signal was sent to the client, as recorded in the timing management table (time information management table 40), and the timing at which multiple client periodic execution management units (client periodic execution management units 21) started the applications (periodic applications 1 and 2). For example, the timing adjustment unit 12 performs the process in step S5 of Figure 3 to calculate the difference Δt of the client-side transmission times of periodic applications 1 and 2, and calculates the timing adjustment information. After that, the server periodic execution management unit (server periodic execution management unit 11) adjusts the transmission timing based on the difference and sends the start signal to multiple clients (clients 1 and 2). For example, the server periodic execution management unit 11 performs the process in step S6 of Figure 3 to send the start signal to clients 1 and 2 with the timing adjusted.
[0057] Next, referring to Figure 5, we will explain the post-synchronization phase. The post-synchronization phase is also called the main phase because periodic applications 1 and 2 are executed in sync. Here, the timing at which applications 1 and 2 synchronize is defined as synchronization time T0. Synchronization time T0 represents the start timing of the first cycle of periodic applications 1 and 2.
[0058] The time obtained by subtracting the difference Δt1 from the synchronization time T0 is represented as T0 - (a1 - s1). Similarly, the time obtained by subtracting the difference Δt2 from the synchronization time T0 is represented as T0 - (b1 - s1). Note that, for the sake of illustration in the diagram, the lengths of the differences Δt1 and Δt2 subtracted from time T0 differ from the lengths calculated by the client period execution management units 21 and 31.
[0059] The server periodic execution management unit 11 sets the time at which it sends a start signal to client 2 to be earlier by a difference Δt than the time at which it sends a start signal to client 1. The client periodic execution management units 21 and 31 receive the application start signal simultaneously at synchronization time T0, and therefore start operating simultaneously at synchronization time T0. For this reason, the client periodic execution management units (client periodic execution management units 21 and 31) periodically start the applications (periodic applications 1 and 2) in response to the start signal.
[0060] Furthermore, the client periodic execution management units 21 and 31 simultaneously send application startup signals (referred to as "APP startup notification" in the diagram) to periodic applications 1 and 2 (referred to as periodic APP1 and periodic APP2 in the diagram), indicated by arrows in the diagram. As a result, periodic applications 1 and 2 start up at the same time they receive the application startup notification, and the processing of the first period in the post-synchronization phase begins.
[0061] In the ECU 1 according to the first embodiment described above, even in an environment where different software PFs are mixed, the startup timing of periodic applications 1 and 2, which are started by different software PFs, can be synchronized. For example, in the initialization phase, the timing adjustment unit 12 calculates the timing difference of the startup of periodic applications 1 and 2 based on the time difference between the server-side startup signal transmission time and the client-side startup signal transmission time stored in the time information management table 40. Subsequently, the server sends startup signals to clients 1 and 2 at the adjusted timing. As a result, it is possible to start periodic applications 1 and 2 in sync by eliminating the timing difference that would otherwise occur due to the middleware overhead in virtual machines 20 and 30.
[0062] For the initial startup, when the client periodic execution management units 21 and 23 of clients 1 and 2 receive a startup signal from the server periodic execution management unit 11, the periodic diagnostic units 22 and 32 save the client-side startup signal transmission time in the time information management table 40. The timing adjustment unit 12 refers to the time information management table 40 to calculate timing adjustment information, and the server periodic execution management unit 11 sends startup signals to clients 1 and 2 at different timings based on the timing adjustment information. As a result, the timing at which the client periodic execution management units 21 and 31 receive the startup signal is synchronized, and the timing at which the client periodic execution management units 21 and 31 send the startup signal to periodic applications 1 and 2 is also synchronized. As a result, the execution timing of periodic applications 1 and 2 on clients 1 and 2 is synchronized.
[0063] In this way, the server can synchronize the startup of periodic applications 1 and 2, even if they are multiple clients 1 and 2 built on different operating systems and platforms in different virtual machines 20 and 30.
[0064] [Second Embodiment] Next, an example of server and client processing according to the second embodiment of the present invention will be described with reference to Figures 6 to 8. Figure 6 is a block diagram showing an example of the overall configuration of the ECU 1 according to the second embodiment.
[0065] In addition to the timing adjustment unit 12 and server cycle execution management unit 11 according to the first embodiment, the virtual machine 10A used as the server for ECU 1 is also provided with a synchronization confirmation unit 13.
[0066] The synchronization confirmation unit (synchronization confirmation unit 13) checks for each of the multiple clients (clients 1 and 2) the difference in the timing at which the applications are started, based on the timing at which the server periodic execution management unit (server periodic execution management unit 11) sends the start signal and the time at which each of the multiple clients (clients 1 and 2) sends the start signal to the applications (periodic applications 1 and 2). For example, the synchronization confirmation unit 13 checks whether the periodic start timings of periodic applications 1 and 2 are synchronized in the post-synchronization phase.
[0067] Then, in the post-synchronization phase, the synchronization confirmation unit (synchronization confirmation unit 13) checks the difference in the startup times of applications launched by multiple clients (clients 1 and 2), and if the difference exceeds a threshold, it determines that the startup timings of the multiple applications (periodic applications 1 and 2) are out of sync. The synchronization confirmation unit 13 is used to eliminate the time difference and synchronize the startup timings of periodic applications 1 and 2 if a time difference occurs again in the execution cycle of periodic applications 1 and 2 after the startup timings of periodic applications 1 and 2 have been synchronized in the first cycle of the post-synchronization phase.
[0068] In the post-synchronization phase, the periodic diagnostic units 22 and 32 of clients 1 and 2 store the client-side startup signal transmission times of periodic applications 1 and 2, which are launched periodically, as time information in the time information items of the time information management table 40. Therefore, the synchronization confirmation unit 13 determines whether there is a difference (startup timing difference) in the client-side startup signal transmission times of periodic applications 1 and 2 read from the time information management table 40, and detects the startup timing difference of periodic applications 1 and 2. If the synchronization confirmation unit 13 determines that there is a difference in the client-side startup signal transmission times of periodic applications 1 and 2, it is necessary to synchronize the startup of periodic applications 1 and 2.
[0069] The server's synchronization confirmation unit 13 then confirms that there is a discrepancy in the startup timing of the periodic applications 1 and 2. Once the synchronization confirmation unit 13 confirms that there is a discrepancy in the startup timing, the timing adjustment unit 12 generates a timing adjustment signal and sends it to the server periodic execution management unit 11. The server periodic execution management unit 11 then sends a startup signal to clients 1 and 2 at the timing adjusted based on the timing adjustment signal. As a result, the startup timing of periodic applications 1 and 2 launched by clients 1 and 2 is synchronized.
[0070] <Server Processing> Next, we will explain an example of server processing. Figure 7 is a flowchart of an example of server processing. In the flowchart of Figure 7, the same steps as in the flowchart of Figure 3 are given, and detailed explanations are omitted.
[0071] First, the server cycle execution management unit 11 determines whether the current process is the initial startup of cycle applications 1 and 2 (S1). If the server cycle execution management unit 11 determines that it is the initial startup (YES in S1), it sends a startup signal to clients 1 and 2 (S6), saves the startup signal transmission time in the time information management table 40 (S3), and terminates this process.
[0072] On the other hand, if the server periodic execution management unit 11 determines that the current process is not the initial startup of periodic applications 1 and 2 (NO in S1), it obtains information on the client-side transmission time of periodic applications 1 and 2 from clients 1 and 2 (S4). The process in step S4 is performed by reading the client-side startup signal transmission time from the time information management table 40.
[0073] The synchronization confirmation unit 13 then determines whether the client-side transmission times are out of sync (S7). For example, if the time difference between the client-side transmission times of periodic applications 1 and 2 is greater than or equal to a threshold (1 millisecond), the synchronization confirmation unit 13 determines that the start times of periodic applications 1 and 2 are out of sync and confirms that periodic applications 1 and 2 are not synchronized.
[0074] The timing adjustment unit (timing adjustment unit 12) calculates timing adjustment information to correct the difference when the synchronization confirmation unit (synchronization confirmation unit 13) determines that the startup timings of multiple applications (periodic applications 1 and 2) are out of sync. For example, if the synchronization confirmation unit 13 determines that the client-side transmission time is out of sync (YES in S7), the timing adjustment unit 12 calculates timing adjustment information. The timing adjustment information is used to adjust the startup times of periodic applications 1 and 2 so that they are below a threshold. The timing adjustment unit 12 calculates timing adjustment information based on the time difference item with the server in the time information management table 40 (S5).
[0075] After step S5, or if the synchronization confirmation unit 13 determines that the client-side transmission time is not misaligned (NO in S7), the server cycle execution management unit (server cycle execution management unit 11) sends start signals to multiple clients (clients 1 and 2) at different timings adjusted based on the timing adjustment information (S6). Then, the server cycle execution management unit 11 saves the server-side start signal transmission time to the server's time information item in the time information management table 40 (S3), and terminates this process.
[0076] <Processing for Client 1> Next, we will explain an example of the processing for Client 1. Figure 8 is a flowchart of an example of the processing for Client 1. Note that the processing on the Client 2 side is the same as that of Client 1, so a detailed explanation will be omitted.
[0077] The process in step S11 is the same as the process described with reference to Figure 4. If the client periodic execution management unit 21 determines that it has not received a start signal (NO in S11), it terminates this process. On the other hand, if the client periodic execution management unit 21 determines that it has received a start signal (YES in S11), it determines whether or not it is the first start (S12).
[0078] If the client periodic execution management unit 21 determines that it is the first startup (YES in S12), it saves the time when it sent the dummy startup signal to periodic applications 1 and 2 as the time information item in the time information management table 40 (S16), and then terminates this process.
[0079] On the other hand, if the client periodic execution management unit 21 determines that it is not the first startup (NO in S12), it is in the post-synchronization phase. Therefore, the client periodic execution management unit 21 sends a startup signal to the periodic application 1 (S14).
[0080] The periodic application 1 starts up and operates when it receives a start signal from the client periodic execution management unit 21 (S15). The periodic diagnostic unit 22 then saves the time the client periodic execution management unit 21 sent the start signal to the periodic application 1 in the time information item for client 1 in the time information management table 40 (S16), and terminates this process.
[0081] In the second embodiment, each time the client periodic execution management unit 21 sends a start signal to the periodic application 1, the client-side start signal transmission time is stored in the time information management table 40. The server's synchronization confirmation unit 13 reads the client-side start signal transmission times of clients 1 and 2 from the time information management table 40 and constantly checks whether the difference in start signal transmission times is greater than or equal to a threshold.
[0082] In the ECU 1 according to the second embodiment, the same processing as the example of synchronization timing calculation according to the first embodiment, as described with reference to Figure 5, is performed. However, the difference is that while the synchronization timing calculation according to the first embodiment was performed only in the initialization phase, the synchronization timing calculation according to the second embodiment is performed in the post-synchronization phase.
[0083] In the ECU 1 according to the second embodiment described above, if the startup timing of periodic applications 1 and 2 becomes misaligned again after the startup timing has been synchronized, the synchronization confirmation unit 13 confirms the misalignment of the startup timing. The timing adjustment unit 12 then calculates timing adjustment information. Based on the timing adjustment information, the server periodic execution management unit 11 sends startup signals to clients 1 and 2 at different timings. As a result, periodic applications 1 and 2 become synchronized again and start periodically.
[0084] In addition, similar to the first embodiment, the ECU 1 according to the second embodiment may also perform synchronization timing calculations during the initialization phase, and the synchronization confirmation unit 13 may check whether the difference in the start signal transmission times is greater than or equal to a threshold. If it is determined that the difference in the start signal transmission times is greater than or equal to a threshold, the timing adjustment unit 12 may calculate timing adjustment information.
[0085] [Third Embodiment] Next, an example of server and client processing according to the third embodiment of the present invention will be described with reference to Figure 9. Figure 9 is a block diagram showing an example of the overall configuration of the ECU 1 according to the third embodiment.
[0086] ECU1 includes SoC2 and SoC2A. SoC2 and SoC2A can communicate with each other via communication lines (not shown) within ECU1. The information processing unit (ECU1) also includes multiple memories (memories 3, 3A).
[0087] SoC2 consists of memory 3 and CPU cores 4. Memory 3 contains virtual machines 10A and 20 and a time information management table 40. Virtual machine 10A, which operates as a server, consists of a server periodic execution management unit 11, a timing adjustment unit 12, and a synchronization confirmation unit 13. Virtual machine 20, which operates as client 1, consists of a client periodic execution management unit 21, a periodic diagnostic unit 22, and a periodic application 23.
[0088] SoC2A consists of memory 3A and CPU core 4A. A virtual machine 30 is configured in memory 3A. The virtual machine 30, which operates as client 2, consists of a client periodic execution management unit 31, a periodic diagnostic unit 32, and a periodic application 33. In this way, the server-side virtual machine (virtual machine 10) and the multiple client-side virtual machines (client-side virtual machines 20, 30) are configured in multiple different memories (memories 3, 3A).
[0089] By configuring the time information management table 40 in dual-port RAM (Random Access Memory), the server and clients 1 and 2 can simultaneously read and write data to the time information management table 40. Therefore, the virtual machine 30 operating as client 2 installed on SoC2A can read or write data to the time information management table 40 via the network configured by the communication lines within the ECU 1. Furthermore, because the time information management table 40 is configured in dual-port RAM, memory 3A does not need to hold the time information management table 40.
[0090] The server-client systems according to each of the embodiments described above can be applied to this technology even when the platform installed changes depending on the vehicle model.
[0091] Furthermore, the server-client systems according to each embodiment are useful technologies for synchronously executing periodic applications installed on different platforms in the continuous evolution of software. Therefore, the technologies according to each embodiment can contribute to improving the value of the IoV (Internet of Vehicles) platform.
[0092] [Modification] In addition, although the server-client system according to each embodiment consists of one server and two clients, it may also consist of three or more clients. Even in this case, the startup signals are adjusted so that there is no difference in the startup times of the periodic applications started on each client. The server periodic execution management unit 11 then sends the adjusted startup signals to each client, thereby synchronizing the startup times of the periodic applications on each client.
[0093] Furthermore, the server-client systems according to each embodiment are also applicable to servers and multiple clients configured in different ECUs. For example, a virtual machine used as a server may be configured in one ECU, and virtual machines used as clients 1 and 2 may be configured in another ECU.
[0094] Furthermore, in the server-client systems according to each embodiment, phase may be used as the startup timing for periodic applications 1 and 2. In this case, a phase difference is used instead of a time difference as the timing difference. The synchronization confirmation unit (synchronization confirmation unit 13) checks the difference in startup times of applications (periodic applications 1 and 2) started by multiple clients (clients 1 and 2), and determines that the phases of the multiple applications (periodic applications 1 and 2) are out of sync if the difference exceeds a threshold. The timing adjustment unit (timing adjustment unit 12) adjusts the timing at which the server periodic execution management unit (server periodic execution management unit 11) sends startup signals to each of the multiple clients (clients 1 and 2) based on the phase difference. Even when a phase difference is used in this way, the startup timing of periodic applications 1 and 2 can be synchronized by the processing performed by each of the functional units described above.
[0095] It should be noted that the present invention is not limited to the embodiments described above, and various other applications and modifications are possible as long as they do not deviate from the gist of the present invention as described in the claims. For example, the embodiments described above describe the configuration of the device and system in detail and concretely in order to explain the present invention in an easy-to-understand manner, and are not necessarily limited to having all the configurations described. Furthermore, it is possible to replace some of the configurations of the embodiments described here with the configurations of other embodiments, and it is also possible to add the configurations of other embodiments to the configuration of one embodiment. In addition, it is possible to add, delete, or replace some of the configurations of each embodiment with other configurations. Furthermore, the control lines and information lines shown are those that are considered necessary for explanation, and do not necessarily represent all control lines and information lines in the actual product. In practice, it can be assumed that almost all configurations are interconnected.
[0096] 1...ECU, 2...SoC, 3...Memory, 4...CPU core, 10...Virtual machine, 11...Server cycle execution management unit, 12...Timing adjustment unit, 13...Synchronization confirmation unit, 20...Virtual machine, 21...Client cycle execution management unit, 22...Cycle diagnosis unit, 23...Cycle application, 30...Virtual machine, 31...Client cycle execution management unit, 32...Cycle diagnosis unit, 33...Cycle application, 40...Time information management table
Claims
1. An information processing device comprising a server-side virtual machine on which a server is configured and a client-side virtual machine on which a client is configured, wherein the server comprises: a server periodic execution management unit that transmits startup signals for a plurality of applications that are periodically started by a plurality of clients to a plurality of clients and writes the timing of the transmission of the startup signals to a timing management table; a synchronization confirmation unit that checks the difference in the timing at which the applications are started for each of the plurality of clients based on the timing of the transmission of the startup signals by the server periodic execution management unit and the time at which each of the plurality of clients transmits the startup signals to the applications; a timing adjustment unit that adjusts the timing at which the server periodic execution management unit transmits the startup signals to each of the plurality of clients based on the difference in the timing at which the applications are started, wherein the client comprises: a client periodic execution management unit that periodically starts the applications in response to the startup signals received from the server and manages the execution of the applications; and a periodic diagnosis unit that diagnoses the timing at which the client periodic execution management unit periodically starts the applications and writes the timing at which the applications were started to the timing management table.
2. Information processing apparatus according to claim 1, wherein in the initialization phase, the server periodic execution management unit transmits the start signal to a plurality of clients, the timing adjustment unit calculates the difference between the transmission timing recorded in the timing management table for transmitting the start signal to the clients and the timing at which the plurality of client periodic execution management units start the application, the server periodic execution management unit transmits the start signal to the plurality of clients with different transmission timings based on the difference, and in the post-synchronization phase, the client periodic execution management unit periodically starts the application in response to the start signal.
3. The information processing apparatus according to claim 2, wherein the timing is a time, and in the initialization phase, the client periodic execution management unit provisionally starts the application based on the start signal received from the server periodic execution management unit, and the periodic diagnosis unit writes the client-side transmission time, which the client periodic execution management unit assumes to have provisionally started the application, into the timing management table as time information for the time the application was started.
4. In the post-synchronization phase, the synchronization confirmation unit confirms the difference in the startup times of the application launched by the multiple clients, and determines that the startup timings of the multiple applications are out of sync if the difference exceeds a threshold; the timing adjustment unit calculates timing adjustment information to correct the difference if the synchronization confirmation unit determines that the startup timings of the multiple applications are out of sync; and the server cycle execution management unit transmits the startup signal to the multiple clients at different timings adjusted based on the timing adjustment information, as described in claim 3.
5. The information processing apparatus according to claim 4, wherein middleware including an OS is configured for each of the multiple clients, and the client periodic execution management unit periodically starts and executes the application via the middleware.
6. The information processing apparatus according to claim 5, comprising memory, wherein the server-side virtual machine and a plurality of client-side virtual machines are configured in a single memory.
7. The information processing apparatus according to claim 5, comprising multiple memories, wherein the server-side virtual machine and the multiple client-side virtual machines are configured in different multiple memories.
8. The information processing apparatus according to claim 2, wherein the timing is phase, the synchronization confirmation unit checks the difference in the startup times of the application started by the multiple clients, and determines that the phases of the multiple applications are out of sync if the difference exceeds a threshold, and the timing adjustment unit adjusts the timing at which the server periodic execution management unit transmits the startup signal to each of the multiple clients based on the phase difference.
9. A timing synchronization method performed in a control system comprising a server and a plurality of clients, comprising: transmitting startup signals for a plurality of applications that are periodically started by the plurality of clients to the clients; recording the timing of the transmission of the startup signals in a timing management table; periodically starting the applications in response to the startup signals received from the server and managing the execution of the applications; diagnosing the timing for periodically starting the applications and recording the timing of the application startup in the timing management table; confirming the difference in the timing of the application startup for each of the plurality of clients based on the timing of the transmission of the startup signals by the server and the time when each of the plurality of clients transmitted the startup signals to the applications; and adjusting the timing at which the server transmits the startup signals for each of the plurality of clients based on the difference in the timing of the application startup.
