Priority is claimed on Japanese Patent Application No. 2018-053372, filed Mar. 20, 2018, the content of which is incorporated herein by reference.
The invention relates to an onboard authentication device, an authentication method, and a storage medium.
Recently, electronic keys have spread widely as keys to vehicles. An electronic key and a vehicle are associated with each other in advance by an immobilizer which is mounted in the vehicle. The association between a vehicle and an electronic key is performed in a dealer's shop, for example, when the vehicle is delivered to an owner or when between the electronic key is lost. A diagnostic device that is connected to an immobilizer in a wired manner is provided in a dealer's shop, and an operation mode of the immobilizer is switched to a registration mode in which the association between the vehicle and the electronic key can be carried out when necessary information is input from the diagnostic device. When the immobilizer which is operating in the registration mode receives specific key information from the electronic key, the vehicle and the electronic key are associated with each other. For example, there may be a problem in a technique (a so-called immobilizer cutter) of invalidating key information of an original qualified owner and registering new key information.
In this regard, a technique of preventing an electronic key from being rewritten by a malicious person by switching an operation mode to a registration mode in which a new electronic key is registered on the condition that a predetermined operation using a registered electronic key is performed when the electronic key is newly registered is known (for example, see Japanese Unexamined Patent Application, First Publication No. H10-175512).
However, in the related art, there is a problem in that a new electronic key cannot be registered in a case that a qualified owner who has lost a registered electronic key wants to register the new electronic key.
The invention has been made in consideration of the above-mentioned circumstances and an objective thereof is to provide an onboard authentication device, an authentication method, and a storage medium, that can perform a predetermined process associated with authentication of an electronic key while maintaining security of a vehicle.
An onboard authentication device, an authentication method, and a storage medium according to the invention employ the following configurations.
(1) According to an aspect of the invention, there is provided an onboard authentication device including: a communication unit configured to receive key information from an electronic key; an existing electronic key determining unit configured to determine whether the key information received by the communication unit matches key information of a first electronic key registered already in association with a vehicle; and an execution unit configured to execute a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that the existing electronic key determining unit determines that the received key information matches the key information of the first electronic key and to execute the registration process or the invalidation process at a second time later than the first time in a case that the existing electronic key determining unit determines that the received key information does not match the key information of the first electronic key.
(2). In the aspect of (1), the onboard authentication device may further include a connection unit configured to be connected to an external device, the existing electronic key determining unit may be configured to determine whether information input from the external device connected to the connection unit matches electronic key identification information which is stored in a storage device provided in the vehicle and which is identification information of the first electronic key which is different from the key information in a case that the communication unit does not receive key information within a predetermined period, and the execution unit may be configured to execute the registration process or the invalidation process at the first time in a case that the existing electronic key determining unit determines that the information input from the external device matches the electronic key identification information and to execute the registration process or the invalidation process at the second time in a case that the existing electronic key determining unit determines that the information input from the external device does not match the electronic key identification information.
(3) According to another aspect of the invention, there is provided an onboard authentication device including: a connection unit configured to be connected to an external device; an existing electronic key determining unit configured to determine whether information input from the external device connected to the connection unit matches electronic key identification information which is stored in a storage device provided in a vehicle and which is identification information of a first electronic key which is different from key information of the first electronic key registered already in an onboard authentication information in association with the vehicle; and an execution unit configured to execute a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that the existing electronic key determining unit determines, that the information input from the external device matches the electronic key identification information and to execute the registration process or the invalidation process at a second time later than the first time in a case that the existing electronic key determining unit determines that the information input from the external device does not match the electronic key identification information.
(4) In the aspect of (2) or (3), the electronic key identification information may be information which is provided to a qualified owner at the time of purchase of the first electronic key.
(5) In the aspect of any one of (1) to (4), the execution unit may be configured to execute the registration process or the invalidation process in a case that a regular execution key is acquired as an execution key for transitioning to a registration mode in which the registration process is executed or an invalidation mode in which the invalidation process is executed.
(6) According to another aspect of the invention, there is provided an authentication method which is performed by a computer mounted in a vehicle, the authentication method causing the computer including a communication unit configured to receive key information from an electronic key to perform: determining whether the key information received by the communication unit matches key information of a first electronic key registered already in association with a vehicle; and executing a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that it is determined that the received key information matches the key information of the first electronic key; and executing the registration process or the invalidation process at a second time later than the first time in a case that it is determined that the received key information does not match the key information of the first electronic key.
(7) According to another aspect of the invention, there is provided a (non-transitory computer-readable) storage medium having a program stored therein, the program causing a computer including a communication unit configured to receive key information from an electronic key to perform: determining whether the key information received by the communication unit matches key information of a first electronic key registered already in association with a vehicle; executing a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that it is determined that the received key information matches the key information of the first electronic key; and executing the registration process or the invalidation process at a second time later than the first time in a case that it is determined that the received key information does not match the key information of the first electronic key.
(8) According to another aspect of the invention, there is provided an authentication method which is performed by a computer mounted in a vehicle, the authentication method causing the computer including a connection unit configured to be connected to an external device to perform: determining whether information input from the external device connected to the connection unit matches electronic key identification information which is stored in a storage device provided in a vehicle and which is identification information of a first electronic key which is different from key information of the first electronic key registered already in an onboard authentication information in association with the vehicle; executing a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that it is determined that the information input from the external device matches the electronic key identification information; and executing the registration process or the invalidation process at a second time later than the first time in a case that it is determined that the information input from the external device does not match the electronic key identification information.
(9) According to another aspect of the invention, there is provided a (non-transitory computer-readable) storage medium having a program stored therein, the program causing a computer including a connection unit configured to be connected to an external device to perform: determining whether information input from the external device connected to the connection unit matches electronic key identification information which is stored in a storage device, provided in a vehicle and which is identification information of a first electronic key which is different from key information of the first electronic key registered already in an onboard authentication information in association with the vehicle; executing a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that it is determined that the information input from the external device matches the electronic key identification information; and executing the registration process or the invalidation process at a second time later than the first time in a case that it is determined that the information input from the external device does not match the electronic key identification information.
According to the configurations of (1) to (9), it is possible to perform a predetermined process associated with authentication of an electronic key while maintaining security of a vehicle.
Hereinafter, an onboard authentication device, an authentication method, and a storage medium according to embodiments of the invention will be described with reference to the accompanying drawings.
The communication unit 50 and the immobilizer 60 are mounted in a vehicle 70. The immobilizer 60 is an example of an onboard device that performs an authentication process (that is, an onboard authentication device). The onboard authentication device has only to be an onboard device that performs an authentication process and may be a device other than an immobilizer.
The vehicle 70 is, for example, a vehicle which is purchased by a qualified owner A. A registration operation and an invalidation operation of the electronic key 10 which will be described below are performed, for example, in a dealer's shop at one of the time of delivering the vehicle, the time of additional registration, and the time of cancellation of registration. The operations may be performed in the home by the qualified owner A. The time of additional registration includes a time at which a new electronic key is registered in a case that the electronic key has been lost and a time at which a second or later electronic key is registered. The time of cancellation of registration includes a time at which a registered state of a lost electronic key is cancelled. In the following description, these times are not distinguished. In the following description, it is assumed that the registration operation and the invalidation operation are performed by a salesperson B of the dealer's shop.
The electronic key 10 is an electronic key which is prepared for registration in the vehicle 70. In the electronic key 10, key information is stored in a storage unit thereof. Key information is, for example, identification information for identifying the electronic key 10. A predetermined switch is provided in the electronic key 10, and the key information stored in the storage unit of the electronic key 10 is transmitted by operating the switch. In the following description, an electronic key of which key information has been registered in the immobilizer 60 in association with the vehicle 70 is referred to as an electronic key 10X. On the other hand, an electronic key which is newly registered is referred to as an electronic key 10Y. The electronic key 10X and the electronic key 10Y are referred to as an electronic key 10 in a case that they are not distinguished from each other.
The user terminal 20 is a terminal device that is used by a qualified owner A. Examples of the user terminal 20 include a tablet terminal, a smartphone, a personal digital assistant (PDA), and a notebook PC.
The diagnostic device 30 detects a malfunction or the like of the vehicle, for example, in a state in which it is connected to the immobilizer 60 using a dedicated wired cable. The diagnostic device 30 may be connected to the immobilizer 60 indirectly via another ECU or directly. In this embodiment, the diagnostic device 30 is used as a tool for causing the immobilizer 60 to execute a predetermined mode.
The dealer terminal 40 is a terminal device that is used by a salesperson B of a dealer's shop. Examples of the dealer terminal 40 include a desktop PC installed in the dealer's shop, a notebook PC, a tablet terminal, a smartphone, and a PDA.
The communication unit 50 is, for example, a radio communication module that is connected to the network NW via a cellular network or a Wi-Fi network. The communication unit 50 is connected to the immobilizer 60 and outputs information received from an external device such as the management server 100 to the immobilizer 60.
The immobilizer 60 stores key information of an electronic key which is registered through a process of registering the electronic key 10 in a storage unit (which will be described later) and performs comparison of key information with the electronic key 10. Specifically, the immobilizer 60 compares key information registered therein with key information received from the electronic key 10 and determines whether the two pieces of key information match each other. In a case that it is determined in the determination process that the key information received from the electronic key 10 matches the key information stored in the storage unit (in a case that the electronic key 10 has been authenticated as being regular, that is, in a case that authentication has succeeded), the immobilizer 60 permits a predetermined operation such as locking or unlocking of a door of the vehicle 70 or starting of an engine of the vehicle 70. On the other hand, authentication does not succeed with key information from an electronic key 10 which has not been registered. In this case, the immobilizer 60 does not permit the predetermined operation.
An electronic control unit (ECU) 71 is mounted in the vehicle 70. The ECU 71 includes a storage unit 73. Key tag information 73A is stored in the storage unit 73. Key tag information (also referred to as electronic key identification information) is information for identifying an electronic key and is information different from key information. Key tag information is information which can be stored in a place other than the electronic key 10 and is described, for example in a key tag and is handed over to a qualified owner A along with an electronic key 10X. For example, key tag information is information which is provided to a qualified owner A at the time of purchase of the electronic key 10X. Handover of key tag information is not limited to this method and, for example, may be transmitted to the user terminal 20 by e-mail. The ECU 71 is, for example, an engine ECU and may include a brake ECU, a steering ECU, a body ECU. A dealer mail address or a user mail address is an example of an address which is used to transmit information to the dealer terminal 40 or the user terminal 20 and is not limited to a mail address as long as an execution key can be transmitted and received therethrough.
The management server 100 issues execution key which is input to the diagnostic device 30 by a salesperson B in a registration process or an invalidation process of the electronic key 10 which will be described below. An execution key is information for acquiring permission to transition to a registration mode or an invalidation mode. The registration mode is a mode in which the electronic key 10 is registered in the immobilizer 60 as an electronic key dedicated for the vehicle 70. An invalidation mode is a mode in which an electronic key registered in the immobilizer 60 as an electronic key dedicated for the vehicle 70 is invalidated. A salesperson B of a dealer's shop switches the operation mode of the immobilizer 60 to the registration mode, for example, using the execution key and then correlates the electronic key 10 with the vehicle 70. The salesperson B of the dealer's shop switches the operation mode of the immobilizer 60 to the invalidation mode, for example, using the execution key and then cancels the association between the electronic key 10 and the vehicle 70.
The management server 100 will be described below before the immobilizer 60.
The control unit 150 includes, for example, a registration unit 151, an execution key generating unit 152, and a communication control unit 154. These elements are embodied, for example, by causing a hardware processor such as a central processing unit (CPU) to execute a program (software). Some or all of functional units of the control unit 150 which will be described below may be embodied in hardware such as a large scale integration (LSI) circuit, an application specific integrated circuit (ASIC), or a field-programmable gate array (FPGA) or may be embodied in combination of software and hardware. A program may be stored in a storage device (a storage device including a non-transitory storage medium) such as a hard disk drive or a flash memory in advance or may be stored in a removable storage medium such as a DCD or a CD-ROM and be installed in the storage device by setting the storage medium (the non-transitory storage medium) in a drive device.
The registration unit 151 stores information in which the dealer mail address received from the dealer terminal 40 and the user mail address received from the user terminal 20 are associated with the vehicle number received from the dealer terminal 40 in the storage unit 130 as a part of the address management information 131. The mail address which is associated with the vehicle number in the address management information 131 may be any one of the dealer mail address and the user mail address.
The execution key generating unit 152 generates an execution key K using the execution key generation information 132, for example, in response to an execution request from the immobilizer 60. For example, the execution key generating unit 152 generates an execution key K, for example, on the basis of static information such as the vehicle number registered in the address management information 131 or dynamic information such as date and time information of a registration date. The execution key generating unit 152 associates the generated execution key K with the corresponding vehicle number and stores the resultant information in the address management information 131 of the storage unit 130.
The communication control unit 154 transmits the execution key K generated by the execution key generating unit 152 to the diagnostic device 30 having transmitted the execution request. Hereinafter, the execution key K which is transmitted to the diagnostic device 30 is referred to as an execution key Kd. The communication control unit 154 may transmit the execution key K generated by the execution key generating unit 152 to the immobilizer 60 having transmitted the execution request. In the following description, the execution key K which is transmitted to the immobilizer 60 is referred to as an execution key Ki. The execution keys Kd and Ki are the same information, as the execution key K.
The communication control unit 154 transmits the execution key K generated by the execution key generating unit 152 to at least one of the dealer terminal 40 and the user terminal 20. In the following description, the execution key K which is transmitted to at least one of the dealer terminal 40 and the user terminal 20 is referred to as an execution key Kt. The execution key Kt is the same information as the execution key K. The dealer terminal 40 or the user terminal 20 displays the received execution key Kt on a display unit thereof. The display unit is referred to by an operator and the execution key which is input from the diagnostic device 30 to the immobilizer 60 and which is an execution key input to the input unit 32 is referred to as an execution key Kt(m) in the following description.
Information such as execution key information 63A and key information 63B is stored in the storage unit 63. The execution key information 63A is information indicating the execution key Ki received from the management server 100. The key information 63B is identification information which is assigned to the electronic key 10 registered as an electronic key dedicated for the vehicle 70 (that is, the immobilizer 60) in the registration mode. A plurality of pieces of key information, may be included in the key information 63B. For example, key information of the electronic key 10X is included in the key information 63B.
The control unit 65 includes, for example, an execution key registering unit 65A, an execution key comparing unit 65B, an existing electronic key determining unit 65C, an electronic, key registering unit 65D, an electronic key comparing unit 65E, and an electronic key deleting unit 65F. These elements are embodied, for example, by causing a hardware processor such as a CPU to execute a program (software).
The execution key registering unit 65A transmits input information to the management server 100 in a case that an execution request of the registration mode is input from the diagnostic device 30 or in a case that an execution request for the invalidation mode is input from the diagnostic device 30. In a case that an execution key Ki is received from the management server 100, the execution key registering unit 65A stores the received execution key as the execution key information 63A in the storage unit 63.
The execution key comparing unit 65B determines whether the execution key Kt(m) input from the diagnostic device 30 to the immobilizer 60 is regular by executing a predetermined program. A random number or the like which is generated on the basis of a date or a vehicle number or the like can be used as the execution key Kt(m).
For example, the execution key comparing unit 65B compares the execution key Kt(m) input from the diagnostic device 30 to the immobilizer 60 with the execution key Kd input from the diagnostic device 30. The execution key comparing unit 65B determines whether the execution key Kt(m) and the execution key Kd match each other and authenticates the execution key Kt(m) input from the diagnostic device 30 to the immobilizer 60 as being regular (that is, determines that authentication has succeeded) in a case that the two execution keys match each other. On the other hand, in a case that it is determined by the comparison that the two execution keys do not match each other, the execution key comparing unit 65B does not, authenticate the execution key Kt(m) input from the diagnostic device 30 to the immobilizer 60 as being regular (that is, determines that authentication has not succeeded). Matching of keys may include various meanings that correct information is acquired in a case that information encrypted using one key is decrypted using the other key, in addition to matching or partial matching of information indicated by the keys. The same is true in the following description.
The execution key comparing unit 65B may perform the above-mentioned authentication process by comparing the execution key Kt(m) input from the diagnostic device 30 to the immobilizer 60 with the execution key Ki which is the execution key information 63A stored in the storage unit 63.
The existing electronic key determining unit 65C determines whether key information received by the communication unit 62 matches key information of an existing electronic key registered already in association with the vehicle (hereinafter referred to as key information determination). The existing electronic key determining unit 65C may determine whether information input from the diagnostic device 30 connected to the connection unit 61 matches key tag information 73A stored in the storage unit 73 of the ECU 71 (hereinafter referred to as key tag determination). In this, embodiment, it is assumed that the existing electronic key determining unit 65C performs the key tag determination in a case that the communication unit 62 has not received key information within a predetermined time. However, the invention is not limited thereto, and the existing electronic key determining unit 65C may perform any one of the key information determination and the key tag determination.
The electronic key registering unit 65D is configured to transition to the registration mode and to perform the registration process. In a case that a predetermined execution condition is satisfied, the electronic key registering unit 65D performs the registration process at a first time. The first time may be a time immediately after the execution condition has been satisfied or may be a time within a predetermined time (for example, several seconds or several minutes) after the execution condition has been satisfied. The execution condition is, for example, a condition that the execution key Kt(m) is authenticated as being regular by the execution key comparing unit 65B and the pieces of key information (or key tag information) are determined to match each other by the existing electronic key determining unit 65C. The execution condition may include only the determination which is performed by the existing electronic key determining unit 65C. For example, the electronic key registering unit 65D may not perform the authentication process based on the execution key but may perform the registration process in a case that the existing electronic key determining unit 65C determines that the pieces of key information (or key tag information) match each other.
For example, in a case that the execution key Kt(m) is authenticated as being regular by the execution key comparing unit 65B, the electronic key registering unit 65D executes the registration mode in response to an execution request for the registration mode from the diagnostic device 30. The execution request for the registration mode may be performed before the authentication or may be performed after the authentication. In a case that the pieces of key information (or key tag information) are determined to match each other by the existing electronic key determining unit 65C during execution of the registration mode, the electronic key registering unit 65D stores the key information received from the electronic key 10 in the storage unit 63 as the key information 63B and ends the registration mode. In a case that the execution condition has been satisfied, the electronic key registering unit 65D may execute the registration mode in response to the execution request for the registration mode from the diagnostic device 30.
In a case that the pieces of key information (or key tag information) are determined not to match each other by the existing electronic key determining unit 65C, the electronic key registering unit 65D executes the registration process at a second time which is later than the first time. The second time is a time at which a predetermined time (for example, several hours or a day) or more has elapsed after the existing electronic key determining unit 65C has determined that the two pieces of key information do not match each other.
In a case that the key information is received from the electronic key 10, the electronic key comparing unit 65E compares the received key information with the key information 63B in the storage unit 63. The electronic key comparing unit 65E determines whether the two pieces of key information match each other and authenticates the key information received from the electronic key 10 as being regular in a case that the two pieces of key information match each other. In a case that the key information received from the electronic key 10 is authenticated as being regular, the electronic key comparing unit 65E permits a predetermined operation such as locking or unlocking of a door of the vehicle 70 or starting of an engine of the vehicle 70. On the other hand, in a case that the two pieces of key information do not match each other, the electronic key comparing unit 65E does not authenticate the key information received from the electronic key 10 as being regular and does not permit the predetermined operation.
The electronic key deleting unit 65F is configured to transition to the invalidation mode and to execute the invalidation process. In a case that a predetermined execution condition has been satisfied, the electronic key deleting unit 65F executes the invalidation process at a first time. For example, in a case that the execution key Kt(m) has been authenticated as being regular by the execution key comparing unit 65B, the electronic key deleting unit 65F execute the invalidation mode in response to an invalidation request for the registration mode from the diagnostic device 30. The execution request for the invalidation mode may be performed before the authentication or may be performed after the authentication. In a case that the two pieces of key information (or key tag information) are determined to match each other by the existing electronic key determining unit 65C during execution of the invalidation mode, the electronic key deleting unit 65F determines whether the key information received from the electronic key 10 is stored in the storage unit 63 as the key information 63B. In a case that the key information received from the electronic key 10 is stored in the storage unit 63 as the key information 63B, the electronic key deleting unit 65F deletes the key information received from the electronic key 10 from the storage unit 63 and ends the invalidation mode. In a case that the execution key Kt(m) is authenticated as being regular by the execution key comparing unit 65B and the two pieces of key information (or key tag information) are determined to match each other by the existing electronic key determining unit 65C, the electronic key deleting unit 65F may execute the invalidation mode in response to the invalidation request for the registration mode from the diagnostic device 30.
In a case that the two pieces of key information (or key tag information) are determined not to match each other by the existing electronic key determining unit 65C, the electronic key deleting unit 65F executes the invalidation process at the second time.
Subsequently, the salesperson B operates the dealer terminal 40 to instruct to start execution of the registration mode (Step S14). Here, the salesperson B inputs a vehicle number. In a case that the instruction to start execution of the registration mode is received, the dealer terminal 40 transmits an execution request for the registration mode to the management server 100 (Step S15). In a case that the execution request for the registration mode is received, the management server 100 generates an execution key K on the basis of the vehicle number or date, time information, or the like (Step S16).
The management server 100 transmits an execution key Kt which is the execution key generated in Step S16 to the dealer terminal 40 (Step S17). The dealer terminal 40 displays the received execution key Kt on the display unit thereof (Step S18). Although not illustrated, the management server 100 transmits an execution key Kd which is the execution key K generated in Step S16 to the diagnostic device 30 and transmits an execution key Ki which is the execution key K generated in Step S16 to the immobilizer 60.
Subsequently, the salesperson B operates the input unit 32 of the diagnostic device 30 to display an input screen for receiving an input of an execution key (hereinafter referred to as an execution key input screen) on the display unit 33 (Step S31). An input box for information required for authentication as information other than the execution key may be provided on the execution key input screen. The diagnostic device 30 outputs the execution key Kt(m) input to the input unit 32 by the salesperson B to the immobilizer 60 (Step S32).
The immobilizer 60 performs a process of authenticating the execution key on the basis of the execution key Kt(m) input from the diagnostic device 30. In a case that the authentication has failed (Step S34), the immobilizer 60 outputs information indicating that the authentication has failed to the diagnostic device 30 (Step S35) and the diagnostic device 30 displays a screen indicating that the authentication has failed on the display unit 33 on the basis of the input information (Step S36).
On the other hand, in a case that the authentication has succeeded in Step S34, the immobilizer 60 executes the registration mode (Step S37) and outputs information indicating that the registration mode is being executed (or that the authentication of the execution key has succeeded) to the diagnostic device 30 (Step S38). The diagnostic device 30 displays a screen indicating that the registration mode is being executed (or that the authentication of the execution key has succeeded) on the display unit 33 on the basis of the input information (Step S39). Here, the immobilizer 60 may display an existing electronic key ascertaining operation on the diagnostic device 30 along with the above-mentioned details. The existing electronic key ascertaining operation includes an operation of operating a switch of an existing electronic key or an operation of inputting key tag information displayed in a key tag of the existing electronic key to the diagnostic device 30. Accordingly, for example, the salesperson B operates the switch of the existing electronic key 10X (Step S52). The existing electronic key 10X transmits key information stored therein (Step S53).
Subsequently, the immobilizer 60 performs an existing electronic, key determining process (Step S71).
This existing electronic key determining process will be described later in detail. In a case that it is determined in the existing electronic key determining process that the two pieces of key information (or key, tag information) match each other (Step S72), the immobilizer 60 outputs information indicating that a new electronic key 10Y can be registered to the diagnostic device 30 (Step S73). The diagnostic device 30 displays a screen indicating that a new electronic key 10Y can be registered on the display unit 33 on the basis of the input information (Step S74).
On the other hand, in a case that it is determined in Step S72 that the two pieces of key information (or key tag information) do not match each other, the immobilizer 60 waits until a predetermined waiting time elapses (Step S75). In a case that the predetermined waiting time has elapsed, the immobilizer 60 performs the processes of Step S73 and steps subsequent thereto.
Subsequently, in a case that the screen displayed in Step S74 has been ascertained, the salesperson B operates the switch of the new electronic key 10Y (Step S81). In response to the operation from the salesperson B, the new electronic key 10Y transmits key information stored therein (Step S82). In a case that key information is received from the electronic key 10Y, the immobilizer 60 executes the registration process. That is, the immobilizer 60 stores the received key information as the key information 63B in the storage unit 63 (Step S83) and ends the registration mode (Step S84). Subsequently, the immobilizer 60 transmits information indicating, that the key information has registered to the diagnostic device 30 (Step S85) and the diagnostic device 30 displays the received information on the display unit 33 (Step S86).
In a case that the invalidation mode is executed, the same processes as described above are performed. The existing electronic key determining process (Step S71) is performed after the execution key authenticating process (Step S33), but this order may be reversed. The process of Step S83 corresponds to the step of “executing the registration process or the invalidation process” which is described in the claims.
In the sequence, the dealer terminal 40 transmits the execution request, but the diagnostic device 30 may transmits the execution request to the management server 100 via the immobilizer 60 (Case 1). In a case that the communication unit 50 is out of order or a communication environment is not good, the diagnostic device 30 may directly transmit the execution request to the management server 100 (Case 2). In Case 1, the management server 100 transmits an execution key Ki to the immobilizer 60. The immobilizer 60 may perform the process of authenticating the execution key by comparing the execution key Ki with the execution key Kt(m) input from the diagnostic device 30. In Case 2, the management server 100 transmits the execution key Kd to the diagnostic device 30. The immobilizer 60 may perform the process of authenticating the execution key by comparing the execution key Kt(m) with the execution key Kd input from the diagnostic device 30.
The electronic key registering unit 65D or the electronic key deleting unit 65F may perform execute the registration process in a case that the execution key Kt(m) has not been authenticated as being regular by the execution key comparing unit 65B but the two pieces of key information (or key tag information) has been determined to match each other by the existing electronic key determining unit 65C. Accordingly, for example, in a case that the registration mode or the like is requested in a situation in which the vehicle 70 cannot move from a place in which a communication environment with the network is not good such as an underground parking lot and the two pieces of key information (or key tag information) has been determined to match each other by the existing electronic key determining unit 65C, it is possible to execute the registration process or the like.
An example of the existing electronic key determining process will be described below with reference to
In a case that key information has not been received within the predetermined time in Step S101, the existing electronic key determining unit 65C determines whether key tag information is registered in the ECU 71 (Step S105). In a case that key tag information is registered, the key tag information is read from the storage unit 73 and is temporarily stored in the storage unit 63. Subsequently, the existing electronic key determining unit 65C displays a screen indicating an input of key tag information on the diagnostic device 30 (Step S107). Then, the existing electronic key determining unit 65C determines whether key tag information has been input from the diagnostic device 30 within a predetermined time (Step S109).
In a case that key tag information has been input within the predetermined time, the existing electronic key determining unit 65C compares the input key tag information with the key tag information temporarily stored in the storage unit 63 (Step S111). In a case that key tag information matching the input key tag information is included in the key tag information 73A in the storage unit 73 of the ECU 71, the process of registering (or invalidating) the key information is performed immediately. On the other hand, in a case that key tag information matching the input key tag information is not included in the key tag information 73A in the storage unit 73 of the ECU 71, the process of registering (or invalidating) the key information is not performed before the waiting time has elapsed.
In a case that the determination result of Step S105 or S109 is negative, the existing electronic key determining unit 65C determines that the two pieces of key information (or key tag information) do not match each other (Step S113).
With the onboard authentication device according to this embodiment, since the onboard authentication device includes the communication unit 62 that receives key information from an electronic key 10, the existing electronic key determining unit 65C that determines whether the key information received by the communication unit 62 matches key information of an existing electronic key 10X registered already in association with a vehicle 70, and the execution unit (the electronic key registering unit 65D and the electronic key deleting unit 65F) that executes the registration process of registering a new electronic key 10Y in the immobilizer 60 or the invalidation process of invalidating the existing electronic key 10X registered in the immobilizer 60 at a first time in a case that the existing electronic key determining unit 65C determines that the received key information matches the key information of the existing electronic key 10X and executes the registration process or the invalidation process at a second time later than the first time in a case that the existing electronic key determining unit 65C determines that the received key information does not match the key information of the existing electronic key 10X, it is possible to execute the registration process or the invalidation process at the second time even in a case that there is no existing electronic key 10X. Accordingly, it is possible to perform a predetermined process associated with authentication of an electronic key while maintaining security of the vehicle by performing the process of ascertaining the existing electronic key 10X.
An electronic key management system according to a second embodiment can be embodied by the same configuration as the electronic key management system 1 according to the first embodiment. Only differences from the first embodiment will be described below using the same names and reference signs as the elements included in the electronic key management system 1 according to the first embodiment.
A salesperson B operates the diagnostic device 30 to instruct to start execution of the registration mode (Step S21). In a case that the instruction to start execution of the registration mode is received, the diagnostic device 30 outputs an execution request for the registration mode to the immobilizer 60 (Step S22). In a case that the execution request for the registration mode is input, the immobilizer 60 reads key tag information Ta from the storage unit 73 of the ECU 71. (Step S23). Subsequently, the diagnostic device 30 displays an input screen for inputting key tag information (hereinafter referred to as a key tag input screen) on the display unit 33 (Step S24). The diagnostic device 30 outputs key tag information Tb input to the input unit 32 by the salesperson B to the immobilizer 60 (Step S25).
Subsequently, the immobilizer 60 performs an existing electronic key determining process using the key tag information (Step S41). That is, the existing electronic key determining unit 65C compares the key tag information Ta read in Step S23 with the key tag information Tb input in Step S25. In a case that the key tag information Ta and the key tag information Tb do not match each other as the result of comparison, the immobilizer 60 waits until a predetermined waiting time elapses (Step S43). In a case that the predetermined waiting time has elapsed or in a case that the key tag, information Ta and the key tag information Tb match each other in Step S42, the immobilizer 60 executes the registration mode (Step S44) and outputs information indicating that the registration mode is being executed (or that the authentication of the key tag information has succeeded) to the diagnostic device 30 (Step S45). The diagnostic device 30 displays a screen indicating the, registration mode is being executed (or that the authentication of the key tag information has succeeded) on the display unit 33 (Step S46).
The part associated with the key tag determination may be replaced with key information determination.
In the second embodiment, the same advantages as in the first embodiment can be expected.
The embodiment can be expressed as follows:
An onboard authentication device including:
a communication unit configured to receive key information from an electronic key;
a storage device; and
a hardware processor configured to execute a program stored in the storage device,
wherein, the hardware processor is configured, by executing the program, to determine whether the key information received by the communication unit matches key information of a first electronic key registered already in association with a vehicle,
to execute a registration process of registering a second electronic key in the onboard authentication device or an invalidation process of invalidating the first electronic key registered in the onboard authentication device at a first time in a case that it is determined that the received key information matches the key information of the first electronic key, and
to execute the registration process or the invalidation process at a second time later than the first time in a case that it is determined that the received key information does not match the key information of the first electronic key.
While embodiments of the invention have been described above, the invention is not limited to the embodiments and can be subjected to various modifications and substitutions without departing from the gist of the invention.
For example, “the registration process or the invalidation process is executed in the immobilizer 60” means that the processes are settled to be valid. In a case that the key information received from the electronic key 10 in the existing electronic key determining process does not match the key information of the existing electronic key (or in a case that the key tag information input from the diagnostic device 30 does not match the key tag information of the existing electronic key stored in the ECU 71), the immobilizer 60 may immediately perform a preparation process which is included as a part of the registration process or the invalidation process and perform the rest settlement process (that is, the process of settling the processes to be valid) after a predetermined waiting time has elapsed. The preparation process includes, for example, processes of receiving key information from the electronic key 10, writing the received key information to the storage unit 63, and assigning an in-preparation flag to the key information. Accordingly, the immobilizer 60 can store the stored key information as information which is not used for the authentication process or the like in the storage unit 63. The settlement process includes a process of rewriting the in-preparation flag assigned to the key information with a settlement flag. Accordingly, the key information to which the settlement flag is assigned is handled as regularly registered (or invalidated) information by the immobilizer 60.
The existing electronic key determining unit 65C may perform both the key information determination and the key tag determination, execute the registration process or the invalidation process in a case that the results of both the determinations are positive, and execute the registration process or the invalidation process after a predetermined waiting time has elapsed in a case that at least one of the results of both the determinations is negative. In this process, since the existing electronic key determining unit 65C requires a person who intends to execute the registration process or the invalidation process to input both the key information and the key tag information of the existing electronic key, it is possible to further improve security of a vehicle.
The immobilizer 60 can perform the key information determination (or the key tag determination) even before the waiting time has elapsed. In a case that the result of the key information determination (or the key tag determination) is positive while waiting for elapse of the waiting time, the electronic key registering unit 65D or the electronic key deleting unit 65F of the immobilizer 60 may execute the registration process or the invalidation process immediately.
In a case that the result of the key information determination (or the key tag determination) is negative, the electronic key registering unit 65D or the electronic key deleting unit 65F of the immobilizer 60 may shorten the waiting time by performing another authentication process. For example, in a case that authentication in an authentication process based on an ID and a password which are set by the qualified owner A or an authentication process based on an execution key has succeeded, the waiting time may be shortened. In a case that the result of the key information determination is negative and the result of the key tag determination is positive, the waiting time may be shortened. The shortening of the waiting time may be to shorten the waiting time at a predetermined proportion (such as half or one-third) or may be to shorten the waiting time by a predetermined time. The time of the proportion (or length) may be shortened depending on the number of times of success in authentication.
In a case that the result of the key information determination (or the key tag determination) is negative or in a case that the authentication process has failed, the immobilizer 60 may notify the management server 100 of that fact.
The communication control unit 154 may cause the qualified owner A or the salesperson B to verify identity before transmitting an execution key. For example, the communication control unit 154 transmits ascertainment information for ascertaining whether execution of the registration process or the invalidation process of the electronic key 10 is to be permitted for the vehicle 70 to the dealer terminal 40 or the user terminal 20. The ascertainment information may include the vehicle number of the vehicle 70 or a date and time at which the request has been transmitted. In the dealer terminal 40 or the user terminal 20, an ascertainment screen based on the ascertainment information is displayed and permission/non-permission button for inputting whether execution of the registration process or the invalidation process is to be permitted is displayed on the ascertainment screen. The dealer terminal 40 or the user terminal 20 transmits operation details of the permission/non-permission button to the management server 100. In a case that information indicating that the permission button has been operated is received from the dealer terminal 40 or the user terminal 20, the communication control unit 154 transmits the execution key Ki to the immobilizer 60 or the like, transmits the execution key Kt to the dealer terminal 40 or the user terminal 20, and transmits the execution key Kd to the diagnostic device 30.
The electronic key 10 may be replaced with a card key, a user terminal 20, or the like. In case of a card key; the immobilizer 60 receives key information from the card key using a card reader provided in the vehicle 70. In case of a user terminal 20, the immobilizer 60 receives key information from the user terminal 20 using the communication unit 50 or a radio communication device (for example, a Bluetooth (registered trademark) unit) provided in the vehicle 70.
While preferred embodiments of the invention have been described and illustrated above, it should be understood that these are exemplary of the invention and are not to be considered as limiting. Additions, omissions, substitutions, and other modifications can be made without departing from the spirit or scope of the present invention. Accordingly, the invention is not to be considered as being limited by the foregoing description, and is only limited by the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2018-053372 | Mar 2018 | JP | national |