Electronic control device, time information providing method, time information providing program, and electronic control system
The electronic control device with an authentication unit and backup master device addresses the time-consuming authentication issue in changing master devices, ensuring secure and efficient time synchronization in in-vehicle systems.
Patent Information
- Application Number
- JP2020197623
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-11-27
AI Technical Summary
The process of changing a master device in an in-vehicle system for time synchronization is time-consuming due to the need for authentication, leading to potential deterioration in time synchronization accuracy during the authentication process.
An electronic control device with an authentication unit and a backup master device that allows for pre-authenticated access to the master clock, enabling seamless transition and reducing the time required for changing the master device while maintaining security.
The solution ensures security by restricting unauthorized access and allows for swift changes in the master device, minimizing disruptions to time synchronization accuracy.
Smart Images

Figure 0007543875000003 
Figure 0007543875000005 
Figure 0007543875000006
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic control device, and more particularly to an electronic control device for a vehicle, a method realized by the electronic control device, a program executable by the electronic control device, and an electronic control system including the electronic control device. [Background technology]
[0002] Automobiles are equipped with various electronic control devices that are connected via an in-vehicle network. By sharing a common time axis, these electronic control devices can control the automobile by linking the functions of the various electronic control devices. For this reason, there is a demand for time synchronization between the various electronic control devices installed in the automobile.
[0003] For example, Patent Document 1 discloses a time synchronization system that synchronizes the time between interconnected in-vehicle devices. In the time synchronization system of Patent Document 1, a grand master that serves as a reference within the network is determined, and the time of the slave devices is synchronized with the time of the determined grand master. Then, when each device within the network detects an abnormality occurring in the grand master by monitoring the error in the grand master's clock, a new grand master is determined, thereby preventing the accuracy of time synchronization within the network from deteriorating. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-167616 A Summary of the Invention [Problem to be solved by the invention]
[0005] A master device (grand master) that provides the reference time in an in-vehicle system can improve the accuracy of the time of the master device, and ultimately the entire in-vehicle system, by periodically obtaining time information from a master clock that has absolute time, such as a GPS (Global Positioning System) or GNSS (Global Navigation Satellite System) receiver.
[0006] Here, the present inventors have found the following problem. In order to prevent unauthorized access to the master clock and to increase the security of the entire in-vehicle system, it is desirable to perform authentication when the master device accesses the master clock. However, if it becomes necessary to change the master device for some reason, the new master device must be newly authenticated in order to access the master clock, which may take time to change the master device. Furthermore, while the new master device is being authenticated, it cannot access the master clock and cannot provide time information to the slave devices, which may degrade the accuracy of time synchronization of the entire in-vehicle system.
[0007] SUMMARY OF THE PRESENT DISCLOSURE An object of the present invention is to shorten the time required to change the master device while ensuring security by authenticating access from the master device to the master clock. [Means for solving the problem]
[0008] An electronic control device according to one embodiment of the present disclosure is an electronic control device that provides reference time information to a slave unit (410), and includes an authentication request sending unit (111) that requests authentication of access to a master clock (50) having a reference time from an authentication unit (310), an authentication result receiving unit (112) that receives the authentication result of access to the master clock from the authentication unit, a time information acquisition unit (122) that accesses the master clock and acquires the reference time when access to the master clock is permitted by the authentication unit, a time information sending unit (124) that transmits the time information indicating the reference time to the slave unit, and an authenticated information sending unit (113) that transmits authenticated information indicating that access to the master clock is permitted to a standby master device (20) connected to the electronic control device, and the standby master device is a device that can transmit the time information to the slave unit on behalf of the electronic control device.
[0009] An electronic control device according to one embodiment of the present disclosure is an electronic control device that provides reference time information to a slave unit (410), and includes an authenticated information receiving unit (211) that receives authenticated information indicating that access to a master clock (50) having a reference time is permitted from a master device (10) that transmits the time information to the slave unit, a stop detection unit (226) that detects that the master device has stopped, a time information acquisition unit (222) that accesses the master clock using the authenticated information to acquire the reference time when the stop detection unit detects that the master device has stopped, and a time information transmission unit (224) that transmits the time information indicating the reference time to the slave unit.
[0010] In addition, the claims and the numbers in parentheses attached to the constituent elements of the invention described in this section indicate the correspondence between the present invention and the embodiments described below, and are not intended to limit the present invention. Effect of the Invention
[0011] The electronic control device, time information providing method, time information providing program, and electronic control system disclosed herein make it possible to reduce the time required to change the master device while ensuring security by restricting access from the master device to the master clock. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram illustrating an electronic control system according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram illustrating the configuration of an electronic control unit that is a master device according to an embodiment of the present invention. [Diagram 3] FIG. 1 is a diagram illustrating a configuration of an electronic control device that is a standby master device according to an embodiment of the present invention. [Figure 4] FIG. 1 is a diagram for explaining the operation of the entire electronic control system according to the present embodiment. [Diagram 5] FIG. 2 is a diagram for explaining the operation of the electronic control unit that is the master device of the present embodiment. [Figure 6] FIG. 2 is a diagram for explaining the operation of the electronic control device that is the standby master device of the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0014] The present invention means the invention described in the claims or in the Summary of the Invention section, and is not limited to the following embodiments. Furthermore, at least the words in quotation marks mean the words described in the claims or in the Summary of the Invention section, and are not limited to the following embodiments.
[0015] The configurations and methods described in the dependent claims are optional configurations and methods in the invention described in the independent claims. The configurations and methods of the embodiments corresponding to the configurations and methods described in the dependent claims, and the configurations and methods described only in the embodiments without being described in the claims, are optional configurations and methods in the present invention. The configurations and methods described in the embodiments when the description of the claims is broader than the description of the embodiments are also optional configurations and methods in the present invention in the sense that they are examples of the configurations and methods of the present invention. In either case, by being described in the independent claims, they become essential configurations and methods of the present invention.
[0016] The effects described in the embodiments are effects obtained when the configurations of the embodiments are provided as examples of the present invention, and are not necessarily effects that the present invention possesses.
[0017] When there are multiple embodiments, the configurations disclosed in each embodiment are not limited to each embodiment, but can be combined across the embodiments. For example, a configuration disclosed in one embodiment may be combined with another embodiment. Also, configurations disclosed in each of the multiple embodiments may be collected and combined.
[0018] The problem described in the section on problems that the invention is intended to solve is not a publicly known problem, but was discovered independently by the inventor, and this, together with the configuration and method of the present invention, is a fact that affirms the inventive step of the invention.
[0019] 1. Configuration of in-vehicle system 1 The electronic control device and the electronic control system of this embodiment will be described with reference to Fig. 1. The electronic control device and the electronic control system of this embodiment are assumed to be an in-vehicle device and an in-vehicle system "mounted" on a vehicle, which is a "moving body", but are not limited thereto.
[0020] Here, the term "mobile body" refers to an object that can move and can move at any speed. It also includes cases where the moving body is stationary. For example, it includes, but is not limited to, automobiles, motorcycles, bicycles, pedestrians, ships, aircraft, and objects mounted on these vehicles. In addition, "mounted" includes not only the case where the device is directly fixed to the moving body, but also the case where the device is not fixed to the moving body but moves with the moving body, such as the case where the device is carried by a person riding on the moving body, or the case where the device is mounted on cargo placed on the moving body.
[0021] The electronic control system 1 is a system that includes a plurality of "electronic control units" (hereinafter, ECUs: Electronic Control Units) (ECU10 to ECU40) and a master clock 50. The electronic control system 1 includes any number of ECUs. These ECUs and the master clock 50 are connected to each other via an in-vehicle network such as a Controller Area Network (CAN) or a Local Interconnect Network (LIN), Ethernet (registered trademark), or a wireless communication network.
[0022] Here, the "electronic control device" may be configured as a so-called information processing device, which is mainly composed of semiconductor devices and has a volatile storage unit such as a CPU (Central Processing Unit) and a RAM (Random Access Memory). In this case, the information processing device may further have a non-volatile storage unit such as a flash storage unit, a network interface unit connected to a communication network, etc. Furthermore, such an information processing device may be a packaged semiconductor device (element), or may have a configuration in which each semiconductor device is wired and connected on a wiring board.
[0023] The ECUs 10 to 40 constituting the electronic control system 1 are assumed to be ECUs based on a platform called an Adaptive Platform (AP) that allows dynamic expansion of functions. The AP is a platform that is mainly suitable for ECUs for autonomous driving. The detailed configurations of the ECUs 10 to 40 will be described later. Note that the ECUs of this embodiment are not limited to those based on an AP, and may be ECUs based on a platform called a Classic Platform (CP) that optimizes static functions.
[0024] The master clock 50 is a clock having a time synchronized with the outside of the electronic control system 1. For example, the master clock 50 has a time acquired by a receiver of a Global Positioning System (GPS) or a Global Navigation Satellite System (GNSS). Access to the master clock 50 is limited to a synchronization master unit permitted by an authentication unit 310, which will be described later. Therefore, in order to access the master clock 50, authentication by the authentication unit 310 is required.
[0025] The following embodiment is described assuming a centralized mode, in which there is one synchronization master unit that provides time information to each slave unit. However, the following embodiment can also be applied to a distributed mode, in which there are multiple synchronization master units that provide time information to each slave unit.
[0026] 2. Configuration of ECU10 The ECU 10 mainly includes an authentication management unit 110 and a synchronization master unit 120. The authentication management unit 110 and the synchronization master unit 120 may each operate on a different virtual machine on the ECU 10. The configurations of the authentication management unit 110 and the synchronization master unit 120 will be described with reference to FIG. 2.
[0027] The ECU 10 can be configured with a general-purpose CPU, volatile memory such as RAM, non-volatile memory such as ROM, flash memory or hard disk, various interfaces, and an internal bus connecting these. The ECU 10 can be configured to perform the functions of each functional block shown in Fig. 2 by executing software on this hardware. Of course, each function of the ECU 10 may be realized by dedicated hardware such as an LSI. The same applies to the other ECUs described below.
[0028] The authentication management unit 110 mainly has a function of managing access from the synchronization master unit 120 to the master clock 50, and blocks the access when an unauthenticated synchronization master unit 120 attempts to access the master clock 50. The authentication management unit 110 has an authentication request transmission unit 111, an authentication result reception unit 112, and an authenticated information transmission unit 113. The authentication management unit 110 corresponds to a PEP (Policy Enforcement Point) in the IAM (Identity and Access Management) function.
[0029] The authentication request transmission unit 111 requests an authentication unit 310 of the ECU 30 (to be described later) to authenticate access from the synchronization master unit 120 to the master clock 50 .
[0030] The authentication result receiving unit 112 receives, from the authentication unit 310, an authentication result in response to the authentication request transmitted by the authentication request transmitting unit 111. Here, if the authentication result received by the authentication result receiving unit 112 indicates that access to the master clock 50 is permitted, the synchronization master unit 120 is able to access the master clock 50. On the other hand, if the authentication result received by the authentication result receiving unit 112 indicates that access to the master clock 50 is not permitted, the authentication management unit 110 blocks the synchronization master unit 120 from accessing the master clock 50.
[0031] The authenticated information transmitting unit 113 transmits "authenticated information" indicating that access from the synchronization master unit 120 to the master clock 50 is permitted to the authentication management unit 210 of the ECU 20, which will be described later. The authenticated information is information generated only when the authentication unit 310 permits access from the synchronization master unit 120 to the master clock 50, and is, for example, authority information indicating an access right to the master clock 50. This authority information may be received by the authentication result receiving unit 112 from the authentication unit 310 together with the authentication result. As another example, the authenticated information may be a certificate of a device (ECU), a certificate of a user, a password for accessing the master clock 50, a session ID set to a random value, or a secret key generated between the synchronization master unit 120 and the master clock 50. Alternatively, the authenticated information may be information used to generate the above-mentioned password or the like.
[0032] Here, the "authenticated information" refers not only to information that directly indicates that access has been granted by the authentication unit, but also to information that indirectly indicates that access has been granted, such as a password or key information that can be generated by granting access.
[0033] For example, the authenticated information transmitting unit 113 periodically transmits the authenticated information to the authentication management unit 210. Alternatively, when an expiration date is set for the password, the session ID, the private key, or the access permission by the authentication unit 310 itself, the authenticated information transmitting unit 113 transmits the authenticated information to the authentication management unit 210 every time the expiration date passes and new authenticated information is generated.
[0034] As another example, when a software update of the ECU 10 or the synchronization master unit 120 is planned and it is expected in advance that the ECU 10 will be "stopped," the authenticated information transmission unit 113 may transmit the authenticated information to the authentication management unit 210 before the ECU 10 is stopped.
[0035] Here, "stopping" includes a case where the entire function of the ECU stops, as well as a case where only some of the functions of the ECU stop.
[0036] Synchronization master unit 120 mainly has a function of providing time information that serves as a reference for slave unit 410 to slave unit 410 of ECU 40, which will be described later. Synchronization master unit 120 includes an internal clock 121, a time information acquisition unit 122, an internal clock control unit 123, a time information transmission unit 124, and a storage unit 125.
[0037] The internal clock 121 functions as a clock for the synchronization master unit 120. The internal clock 121 may be a clock that measures absolute time, or may be a clock that measures a predetermined interval, such as a counter or an oscillator.
[0038] The time information acquisition unit 122 accesses the master clock 50 to "acquire" the reference time of the master clock 50. For example, the time information acquisition unit 122 transmits a reference time request to the master clock 50, requesting transmission of the reference time. Then, the time information acquisition unit 122 acquires the reference time by receiving a reference time reply including the reference time of the master clock 50 from the master clock 50 as a response to the reference time request.
[0039] Here, "obtaining" includes not only obtaining the reference time by receiving it from the master clock, but also obtaining the reference time through calculation using information received from the master clock.
[0040] Alternatively, the time information acquisition unit 122 may transmit a reference time request including the current time of the internal clock 121 to the master clock 50. In this case, the time information acquisition unit 122 receives a reference time reply from the master clock 50 as a response to the reference time request, the reference time reply including the differential time between the current time of the internal clock 121 and the reference time of the master clock 50. The time information acquisition unit 122 may then acquire the reference time by estimating the reference time held by the master clock 50 based on the current time of the internal clock 121 and the differential time included in the reference time reply transmitted from the master clock 50.
[0041] As an alternative method, the time information acquisition unit 122 may acquire the reference time by performing time synchronization with the master clock 50 using a time synchronization technique based on the IEEE 802.1AS standard or the PTP (Precision Time Protocol) specifications.
[0042] Note that time information acquisition section 122 can access master clock 50 and acquire the reference time only when authentication result receiving section 112 has received, from authentication section 310, an authentication result indicating that access is permitted.
[0043] The internal clock control unit 123 controls the internal clock 121 so that the time of the internal clock 121 becomes the reference time acquired by the time information acquisition unit 122. Therefore, the time of the internal clock 121 becomes equal to the reference time.
[0044] The time information transmission unit 124 transmits time information indicating the time of the internal clock 121 to the slave unit 410 of the ECU 40. As described above, the internal clock control unit 123 controls the time of the internal clock 121 so that it is equal to the reference time acquired by the time information acquisition unit 122. Therefore, it can be said that the time information transmitted by the time information transmission unit 124 is time information that "indicates" the reference time. Note that the time information transmitted by the time information transmission unit 124 does not have to be the reference time itself. The synchronization master unit 120 may request the slave unit 410 to transmit the time of the internal clock of the slave unit 410 in advance, and transmit a differential time indicating the difference between the time of the slave unit 410 and the reference time, which is the time of the internal clock 121, to the slave unit 410 as time information. Such a differential time indirectly indicates the reference time. Note that in order to improve the accuracy of the time of the slave unit 410, it is desirable for the time information transmission unit 124 to periodically transmit the time information to the slave unit 410.
[0045] The term "indicate" includes a case where the reference time is directly indicated, as well as a case where the reference time is indirectly indicated.
[0046] The storage unit 125 is a volatile memory such as an SRAM or a DRAM, or a non-volatile memory such as a flash memory or a hard disk, and stores the authenticated information. The above-mentioned authenticated information transmission unit 113 acquires the authenticated information stored in the storage unit 125 and transmits it to the authentication management unit 210.
[0047] As described above, the ECU 10 is an electronic control device that provides reference time information to the slave unit 410, and is therefore also called a "master device."
[0048] 3. Configuration of ECU20 Like the ECU 10, the ECU 20 includes an authentication management unit 210 and a synchronization master unit 220. The configurations of the authentication management unit 210 and the synchronization master unit 220 will be described with reference to FIG.
[0049] The authentication management unit 210 of the ECU 20 includes an authenticated information receiving unit 211. The authenticated information receiving unit 211 receives the "authenticated information" transmitted from the authenticated information transmitting unit 113 of the ECU 10. As described above, the authenticated information is information indicating that access to the master clock 50 is permitted. The authenticated information received by the authenticated information receiving unit 211 is stored in a storage unit 225, which will be described later.
[0050] Like the authentication management unit 110, the authentication management unit 210 has a function of managing access from the synchronization master unit 220 to the master clock 50. If an unauthenticated synchronization master unit 220 attempts to access the master clock 50, the access is blocked. However, the synchronization master unit 220 itself does not have to be authenticated, and if the authenticated information receiving unit 211 has received authenticated information, the synchronization master unit 220 can access the master clock 50 by using the authenticated information received by the authenticated information receiving unit 211, and in this case, access from the synchronization master unit 220 to the master clock 50 is not blocked.
[0051] Similar to synchronization master unit 120 , synchronization master unit 220 includes an internal clock 221 , a time information acquisition unit 222 , an internal clock control unit 223 , a time information transmission unit 224 , and a storage unit 225 , and further includes a stop detection unit 226 .
[0052] The internal clock 221 functions as a clock for the synchronization master unit 220, and may be a device that measures absolute time, or a device that measures a predetermined interval, such as a counter or an oscillator.
[0053] The time information acquisition unit 222 accesses the master clock 50 using the authenticated information received by the authenticated information receiving unit 211, and "acquires" the reference time of the master clock 50. Like the time information acquisition unit 122, the time information acquisition unit 222 acquires the reference time by transmitting a reference time request to the master clock 50 and receiving a reference time reply from the master clock 50. However, the time information acquisition unit 222 of the ECU 20 accesses the master clock 50 to acquire the reference time only when the stop detection unit 226, which will be described later, detects that the ECU 10 has stopped.
[0054] The internal clock control unit 223 controls the internal clock 221 so that the time of the internal clock 221 coincides with the reference time acquired by the time information acquisition unit 222 .
[0055] The time information transmitting unit 224 transmits time information “indicating” the time of the internal clock 221 to the slave unit 410 of the ECU 40 .
[0056] The storage unit 225 is a volatile memory such as an SRAM or a DRAM, or a non-volatile memory such as a flash memory or a hard disk, and stores the authenticated information received by the authenticated information receiving unit 211 .
[0057] The stop detection unit 226 "detects" that the ECU 10 has "stopped." For example, in a configuration in which the authenticated information transmission unit 113 of the ECU 10 periodically transmits the authenticated information, if the authenticated information reception unit 211 cannot receive the authenticated information, the stop detection unit 226 detects that the function of the authentication management unit 110 of the ECU 10 has stopped. Alternatively, the stop detection unit 226 may detect that the function of the synchronization master unit 120 of the ECU 10 has stopped when a message indicating that time information cannot be received from the synchronization master unit 120 is received from the slave unit 410.
[0058] The term "detection" includes cases where the electronic control unit detects the stoppage of the master device by itself, as well as cases where the electronic control unit detects the stoppage of the master device by receiving information indicating that the master device has stopped from another device.
[0059] As described above, ECU 20 is also called a "backup master device" because it is an electronic control device that can provide reference time information to slave unit 410 in place of ECU 10, which is the master device, when ECU 10 stops.
[0060] In the present embodiment, the configuration of the ECU 10 required as the master device and the configuration of the ECU 20 required as the backup master device have been described. However, the ECU 10 and the ECU 20 may have the same configuration. For example, the authentication management unit 210 of the ECU 20 may further include an authentication request transmission unit and an authentication result reception unit, similar to the ECU 10, and the synchronization master unit 120 of the ECU 10 may further include a stop detection unit, similar to the ECU 20.
[0061] 4. Configuration of ECU30 The ECU 30 includes an authentication unit 310. The authentication unit 310 corresponds to a PDP (Policy Decision Point) in an IAM (Identity and Access Management) function.
[0062] When the authentication unit 310 receives an authentication request for access from the synchronization master unit 120 to the master clock 50 from the authentication request transmission unit 111 , it performs authentication to determine whether the synchronization master unit 120 is allowed to access the master clock 50 .
[0063] The authentication unit 310 further transmits the authentication result of the access from the synchronization master unit 120 to the master clock 50 to the synchronization master unit 120 .
[0064] It is preferable that an expiration date be set for the access permission from the synchronization master unit 120 to the master clock 50 by the authentication unit 310. By setting an expiration date for the access permission to the master clock 50 and periodically performing authentication by the authentication unit 310, it is possible to prevent, for example, unauthorized access to the master clock 50 from outside the electronic control system 1 via the synchronization master unit 120.
[0065] 5. Configuration of ECU40 ECU 40 has a slave unit 410. Slave unit 410 has an internal clock (not shown) and corrects the time indicated by the internal clock according to the time information received from synchronization master unit 120. As a result, the reference time in slave unit 410 becomes the time indicated by the time information received from synchronization master unit 120.
[0066] If the slave unit 410 cannot receive time information from the synchronization master unit 120, a discrepancy may occur between the time of the slave unit 410 and the time of the other slave units, and the accuracy of the time synchronization may decrease. Therefore, if the slave unit 410 cannot receive time information from the synchronization master unit 120 for a certain period of time, the slave unit 410 transmits a message to the synchronization master unit 220, which has the same function as the synchronization master unit 120, indicating that it cannot receive time information from the synchronization master unit 120. Alternatively, the slave unit 410 may transmit a message to the synchronization master unit 220 requesting time information. When the stop detection unit 226 of the ECU 20 detects that the function of the synchronization master unit 120 has stopped, the slave unit 410 becomes able to receive time information from the synchronization master unit 220 again.
[0067] The slave unit 410 is a function of an ECU that controls the vehicle, such as steering, acceleration / deceleration, and steering of the vehicle. By synchronizing the reference time in the slave unit 410 with the synchronization master unit 120 or the synchronization master unit 220, and further with the master clock 50, the slave unit 410 can have a time axis shared with, for example, a GPS or an on-board sensor. As a result, the slave unit 410 can perform control at an appropriate timing in terms of the absolute position of the vehicle determined based on information acquired by the GPS or on-board sensor, and the relative position with respect to surrounding objects.
[0068] In the present embodiment, the configuration has been described in which only ECU 40 has the slave unit 410 that receives time information from synchronization master unit 120 or synchronization master unit 220. However, the slave unit 410 may be provided in any ECU. For example, ECU10 to ECU30 may each have a slave unit, and synchronization master unit 120 or synchronization master unit 220 may provide time information to a plurality of slave units 410 provided in these ECUs. Furthermore, in FIG. 1, the electronic control system 1 is described as having only one ECU 40 having the slave unit 410, but it goes without saying that the electronic control system 1 may have a plurality of ECUs having the slave unit 410.
[0069] 6. Operation of Electronic Control System 1 Next, the operation of the electronic control system 1 and each electronic control device included in the electronic control system 1 will be described with reference to Figs. 4 to 6. Fig. 4 is a diagram showing the operation of the entire electronic control system 1. Fig. 5 shows the operation of the ECU 10 which is the master device, and Fig. 6 shows the operation of the ECU 20 which is the backup master device. The symbols shown in Fig. 4 correspond to the symbols shown in Figs. 5 and 6, and the same symbols indicate the same processes.
[0070] The operation of each electronic control device not only indicates a time information providing method executed by the electronic control device, but also indicates the processing procedure of a time information providing program that can be executed by the electronic control device. The processing is not limited to the order shown in Figures 4 to 6. In other words, the order may be changed as long as there is no constraint such as a relationship in which a certain step utilizes the result of the previous step.
[0071] First, the operation of the ECU 10 will be mainly described with reference to FIG. 4 and FIG. In the ECU 10, the authentication request transmission unit 111 of the authentication management unit 110 transmits, to the authentication unit 310 of the ECU 30, an authentication request for requesting authentication of access from the synchronization master unit 120 to the master clock 50 (S101).
[0072] In the ECU 30, when the authentication unit 310 receives the authentication request transmitted from the authentication request transmission unit 111, the authentication unit 310 performs authentication as to whether or not to permit access from the synchronization master unit 120 to the master clock 50 (S102). Then, the authentication unit 310 transmits the authentication result in S102 to the authentication management unit 110.
[0073] The authentication result receiving section 112 of the authentication management section 110 receives the authentication result sent from the authentication section 310 (S103). Here, if the authentication result received in S103 indicates that access from the synchronization master unit 120 to the master clock 50 is permitted, the time information acquisition unit 122 sends a reference time request requesting the transmission of the reference time (S104). Then, the time information acquisition unit 122 receives the reference time reply from the master clock 50, thereby acquiring the reference time (S105). The time information transmitting unit 124 transmits the time information indicating the reference time acquired in S105 to the slave unit 410 (S106). The authenticated information transmitting unit 113 transmits authenticated information indicating that access from the synchronization master unit 120 to the master clock 50 is permitted to the ECU 20 (S107).
[0074] Next, the operation of the ECU 20 will be mainly described with reference to FIG. 4 and FIG. In the ECU 20, the authenticated information receiving unit 211 of the authentication management unit 210 receives the authenticated information transmitted from the authenticated information transmitting unit 113 in S107 (S200). When the stop detection unit 226 of the synchronization master unit 220 detects that the ECU 10 has stopped (S201: Yes), the time information acquisition unit 222 transmits a reference time request to the master clock 50 to request transmission of the reference time (S202). Then, the time information acquisition unit 222 receives the reference time reply from the master clock 50, thereby acquiring the reference time (S203). The time information transmission unit 224 transmits the time information indicating the reference time acquired in S110 to the slave unit 410 (S204).
[0075] The synchronization master unit 120 of the ECU 10 transmits authenticated information indicating that access to the master clock 50 is permitted to the synchronization master unit 220 functioning as a backup for the synchronization master unit 120. As a result, if the ECU 10 stops functioning due to some abnormality or update occurring in the ECU 10 and is no longer able to provide reference time information to the slave unit 410, the backup synchronization master unit 220 can access the master clock 50 to obtain the reference time without being authenticated for access to the master clock 50, and can provide time information indicating the obtained reference time to the slave unit 410.
[0076] As described above, according to the configuration of this embodiment, by authenticating the access from the synchronization master unit to the master clock, it is possible to prevent unauthorized access to the master clock and ensure security. Furthermore, when a spare synchronization master unit provides time information to a slave unit instead of a synchronization master unit in use, the master clock can be accessed without new authentication by using the authenticated information transmitted in advance, so that the time required to change the synchronization master unit can be shortened.
[0077] 7. Summary The features of the electronic control device and the electronic control system including the electronic control device in each embodiment of the present invention have been described above.
[0078] The terms used in each embodiment are merely examples and may be replaced with synonymous terms or terms having the same functions.
[0079] The block diagrams used to explain the embodiments classify and organize the configuration of the device by function. The blocks showing the respective functions are realized by any combination of hardware or software. In addition, since the block diagrams show the functions, they can also be understood as disclosures of a method invention and a program invention that realizes the method.
[0080] The order of the functional blocks that can be understood as the processes, flows, and methods described in each embodiment may be changed as long as there are no constraints such as a relationship in which one step utilizes the results of another step prior to it.
[0081] The terms first, second, through Nth (N is an integer) used in each embodiment and in the claims are used to distinguish two or more configurations or methods of the same type, and do not limit the order or superiority or inferiority.
[0082] The electronic control device of each embodiment is assumed to be an electronic control device that constitutes an on-board device installed in a vehicle, but the electronic control device of the present invention is applicable to any electronic control system, except as specifically limited in the claims.
[0083] Examples of the form of the device of the present invention are as follows. Examples of the component form include a semiconductor element, an electronic circuit, a module, and a microcomputer. Examples of semi-finished products include electronic control units (ECUs (Electric Control Units)) and system boards. Finished product forms include mobile phones, smartphones, tablets, personal computers (PCs), workstations, and servers. Other examples include devices with communication functions, such as video cameras, still cameras, and car navigation systems.
[0084] Furthermore, necessary functions such as an antenna and a communication interface may be added to each device.
[0085] In addition, the present invention can be realized not only by dedicated hardware having the configuration and functions described in each embodiment, but also as a combination of a program for realizing the present invention recorded on a recording medium such as a storage unit or a hard disk, and general-purpose hardware having a dedicated or general-purpose CPU and storage unit capable of executing the program.
[0086] A program stored in a non-transient physical recording medium (for example, an external storage device (hard disk, USB storage unit, CD / BD, etc.) or an internal storage device (RAM, ROM, etc.)) of dedicated or general-purpose hardware can also be provided to the dedicated or general-purpose hardware via a recording medium, or via a communication line from a server without using a recording medium. This makes it possible to always provide the latest functions through program upgrades. [Industrial Applicability]
[0087] Although the electronic control device of the present invention has been described as an on-board electronic control device that is primarily installed in automobiles, it can be applied to any moving object such as motorcycles, ships, trains, airplanes, etc. Furthermore, it is not limited to moving objects, but can be applied to any product that includes a microcomputer. [Explanation of symbols]
[0088] 1 Electronic control system, 10 Electronic control device, 20 Electronic control device, 50 Master clock, 111 Authentication request transmission unit, 112 Authentication result reception unit, 113 Authenticated information transmission unit, 122, 222 Time information acquisition unit, 124, 224 Time information transmission unit, 211 Authenticated information reception unit, 226 Stop detection unit, 310 Authentication unit, 410 Slave unit
Claims
1. An electronic control device that provides reference time information to a slave unit (410), an authentication request transmission unit (111) for requesting an authentication unit (310) for authentication of access to a master clock (50) having a reference time; an authentication result receiving unit (112) that receives an authentication result of access to the master clock from the authentication unit; a time information acquisition unit (122) that accesses the master clock and acquires the reference time when access to the master clock is permitted by the authentication unit; a time information transmission unit (124) that transmits the time information indicating the reference time to the slave unit; an authenticated information transmitting unit (113) for transmitting authenticated information enabling an access from a standby master device (20) connected to the electronic control device to the standby master device; Equipped with the standby master device is a device capable of transmitting the time information to the slave unit in place of the electronic control device; An electronic control device (10).
2. An electronic control device that provides reference time information to a slave unit (410), an authenticated information receiving unit (211) for receiving authenticated information enabling access from the electronic control unit to a master clock (50) having a reference time from a master device (10) that transmits the time information to the slave unit; A stop detection unit (226) for detecting that the master device has stopped; a time information acquisition unit (222) that, when the stop detection unit detects a stop of the master device, accesses the master clock using the authenticated information to acquire the reference time; a time information transmission unit (224) that transmits the time information indicating the reference time to the slave unit; An electronic control device (20).
3. the authenticated information transmission unit periodically transmits the authenticated information to the backup master device. The electronic control device according to claim 1.
4. the authenticated information transmission unit transmits the authenticated information to the standby master device before the electronic control device is stopped; The electronic control device according to claim 1.
5. the authenticated information receiving unit periodically receives the authenticated information from the master device; the stop detection unit detects a stop of the master device when the authenticated information cannot be received from the master device.
3. The electronic control device according to claim 2.
6. the slave unit transmits a message to the electronic control unit when the slave unit cannot receive the time information from the master device; the stop detection unit detects a stop of the master device when the message is received from the slave unit.
3. The electronic control device according to claim 2.
7. the authenticated information is a password for accessing the master clock; 3. The electronic control device according to claim 1 or 2.
8. The electronic control device is a device mounted on a moving body.
8. An electronic control device according to claim 1.
9. A time information providing program executable by an electronic control device that provides reference time information to a slave unit (410), A request is made to the authentication unit (310) for authentication of access to a master clock (50) having a reference time (S101); A result of authentication of access to the master clock is received from the authentication unit (S103); If the authentication unit is permitted to access the master clock, the master clock is accessed to obtain the reference time (S104, S105). The time information indicating the reference time is transmitted to the slave unit (S106). transmits, to a standby master device (20) capable of transmitting the time information to the slave unit instead of the electronic control device, authenticated information enabling the standby master device to access the master clock (S107); A time information providing program.
10. A time information providing program executable by an electronic control device that provides reference time information to a slave unit (410), receiving, from a master device (10) that transmits the time information to the slave unit, authentication information that enables the electronic control device to access a master clock (50) having a reference time (S200); A stop detection unit detects that the master device has stopped (S201); When the stop detection unit detects a stop of the master device, the master clock is accessed using the authenticated information to obtain the reference time (S202, S203). The time information indicating the reference time is transmitted to the slave unit (S204). A time information providing program.
11. An electronic control system having a first electronic control unit (10) and a second electronic control unit (20) that provide reference time information to a slave unit (410), The first electronic control unit includes: an authentication request transmission unit (111) for requesting an authentication unit (310) for authentication of access to a master clock (50) having a reference time; an authentication result receiving unit (112) that receives an authentication result of access to the master clock from the authentication unit; a time information acquisition unit (122) that accesses the master clock and acquires the reference time when access to the master clock is permitted by the authentication unit; a time information transmission unit (124) that transmits the time information indicating the reference time to the slave unit; an authenticated information transmitting unit (113) that transmits authenticated information enabling the second electronic control device (20) to access the master clock; Equipped with The second electronic control unit includes: an authenticated information receiving unit (211) that receives the authenticated information from the first electronic control device; A stop detection unit (226) that detects that the first electronic control device has stopped; a time information acquisition unit (222) that, when the stop detection unit detects a stop of the first electronic control unit, accesses the master clock using the authenticated information to acquire the reference time; a time information transmission unit (224) that transmits the time information indicating the reference time to the slave unit; An electronic control system (1).
12. A time information providing method executed in an electronic control system (1) having a first electronic control unit (10) and a second electronic control unit (20) for providing reference time information to a slave unit (410), comprising: In the first electronic control device, requesting an authentication unit (310) for authentication of access to a master clock (50) having a reference time; receiving an authentication result of access to the master clock from the authentication unit; if the authentication unit is permitted to access the master clock, the master clock is accessed to obtain the reference time; transmitting the time information indicating the reference time to the slave unit; transmitting authentication information to the second electronic control unit that enables the second electronic control unit to access the master clock; In the second electronic control device, receiving the authenticated information from the first electronic control device; A stop detection unit detects that the first electronic control unit has stopped, When the stop detection unit detects a stop of the first electronic control unit, the stop detection unit accesses the master clock using the authenticated information to obtain the reference time; transmitting the time information indicating the reference time to the slave unit; Time information provision method.
Citation Information
Patent Citations
Time matching system for lan system
JP1993250281A
In-vehicle network system
JP2013168865A
Time synchronization method and apparatus
JP2016502790A
Master electronic control device for vehicle, slave electronic control device for vehicle, log collection system for vehicle and log collection program for vehicle
JP2019159600A
Time synchronization system and relay device
JP2020167616A
