A vehicle key authentication method, device, vehicle and storage medium

CN118238767BActive Publication Date: 2026-10-27CHONGQING CHANGAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410563404.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2026-10-27
Estimated Expiration
2044-05-08

Smart Images

  • Figure CN118238767B_ABST
    Figure CN118238767B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a vehicle key authentication method and device, a vehicle and a storage medium. The method is applied to a microcontroller, the microcontroller is arranged in a vehicle, and a secure element chip is also arranged in the vehicle. The method comprises: when a connection event of a vehicle key is detected, initiating authentication of the vehicle key to the secure element chip; obtaining an authentication result generated by the secure element chip, and judging whether the secure element chip is abnormal according to the authentication result; if the secure element chip is abnormal, judging whether the vehicle key is legal; and if the vehicle key is legal, authenticating the vehicle key. Thus, when the secure element chip is abnormal, the microcontroller can authenticate the vehicle key, so that the vehicle key cannot be authenticated when the secure element chip is abnormal, and the vehicle door cannot be unlocked and the vehicle cannot be started, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle communication technology, and in particular to a vehicle key authentication method, a vehicle key authentication device, a vehicle, and a computer-readable storage medium. Background Technology

[0002] With the development of vehicle technology, vehicle door opening and starting methods have become more diversified. Compared with traditional mechanical keys, Bluetooth keys or vehicle manufacturer-provided apps on mobile phones are gradually becoming the mainstream methods for opening and starting vehicles. This method usually requires authentication by a safety element chip in the vehicle. Only after successful authentication can the vehicle be opened and started. However, if the safety element chip malfunctions, authentication will fail, and the vehicle cannot be unlocked, opened, or started. Especially in the field, users can only passively call a tow truck to be towed to a repair shop, which greatly affects the user experience and the vehicle's reputation. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a vehicle key authentication method, a vehicle key authentication device, a vehicle, and a computer-readable storage medium that overcome or at least partially solve the above problems.

[0004] To address the aforementioned problems, in a first aspect, embodiments of the present invention disclose a vehicle key authentication method, wherein the method is applied to a microcontroller; the microcontroller is disposed in a vehicle, and the vehicle also contains a security element chip; the method includes:

[0005] When a vehicle key connection event is detected, an authentication process for the vehicle key is initiated with the security element chip;

[0006] Obtain the authentication result generated by the security element chip, and determine whether the security element chip is abnormal based on the authentication result;

[0007] If the security element chip is malfunctioning, then determine whether the vehicle key is valid;

[0008] If the vehicle key is valid, then the vehicle key is authenticated.

[0009] Optionally, the authentication result includes failure; determining whether the security element chip is abnormal based on the authentication result includes:

[0010] If the authentication result is unsuccessful, a reset command is sent to the security element chip, causing the security element chip to respond to the reset command and reset.

[0011] Check whether the reset of the security element chip was successful;

[0012] If the reset of the safety element chip fails, the safety element chip is determined to be faulty.

[0013] Optionally, the method further includes:

[0014] If the security element chip is successfully reset, an authentication for the vehicle key is initiated by the security element chip.

[0015] Obtain the authentication result of the security element chip re-authenticating the vehicle key;

[0016] The security element chip is determined to be abnormal based on the authentication result of the re-authentication of the vehicle key.

[0017] Optionally, determining whether the security element chip is abnormal based on the authentication result of the re-authentication of the vehicle key includes:

[0018] Determine whether the authentication result is failed or the response timed out;

[0019] If the authentication result is unsuccessful or the response times out, the security element chip is determined to be abnormal.

[0020] Optionally, the vehicle is further equipped with a near-field communication chip; the step of initiating authentication of the vehicle key with the security element chip when a connection event of the vehicle key is detected includes:

[0021] When a connection event of the vehicle key triggered by the near-field communication chip is detected, the first key identity information corresponding to the vehicle key sent by the near-field communication chip is obtained; the first key identity information is obtained by the near-field communication chip from the vehicle key;

[0022] Send the first key identity information to the security element chip and initiate authentication for the vehicle key;

[0023] The determination of whether the vehicle key is valid includes:

[0024] Determine whether the identity information of the first key is the same as the pre-stored identity information of the second key;

[0025] If the identity information of the first key is the same as that of the second key, then the vehicle key is determined to be legitimate.

[0026] Optionally, the vehicle is also equipped with a Bluetooth communication chip; the step of determining whether the vehicle key is valid further includes:

[0027] Determine whether the connection event of the vehicle key is triggered by the Bluetooth communication chip and whether the connection is successful;

[0028] If the connection event of the vehicle key is triggered by the Bluetooth communication chip and the connection is successful, then the vehicle key is determined to be legitimate.

[0029] Optionally, authenticating the vehicle key includes:

[0030] Determine the number of times the vehicle key is authenticated by the microcontroller after the security element chip malfunctions;

[0031] If the number of attempts is less than the preset number, then the vehicle key is authenticated.

[0032] Secondly, embodiments of the present invention disclose a vehicle key authentication device, wherein the device is applied to a microcontroller; the microcontroller is disposed in a vehicle, and a security element chip is also disposed in the vehicle; the device includes:

[0033] The detection module is used to initiate authentication for the vehicle key to the security element chip when a connection event of the vehicle key is detected.

[0034] The first judgment module is used to obtain the authentication result generated by the security element chip, and to determine whether the security element chip is abnormal based on the authentication result;

[0035] The second judgment module is used to determine whether the vehicle key is valid if the security element chip is abnormal.

[0036] An authentication module is used to authenticate the vehicle key if it is valid.

[0037] Optionally, the authentication result includes failure; the first judgment module includes:

[0038] The reset submodule is used to send a reset command to the security element chip if the authentication result is unsuccessful, so that the security element chip responds to the reset command and resets.

[0039] The detection submodule is used to detect whether the reset of the security element chip was successful;

[0040] The first determination submodule is used to determine that the security element chip is abnormal if the reset of the security element chip fails.

[0041] Optionally, the device further includes:

[0042] The first sending submodule is used to initiate authentication for the vehicle key to the security element chip if the security element chip is successfully reset.

[0043] The first acquisition submodule is used to acquire the authentication result of the security element chip re-authenticating the vehicle key;

[0044] The first judgment submodule is used to determine whether the security element chip is abnormal based on the authentication result of the re-authentication of the vehicle key.

[0045] Optionally, the first determination submodule includes:

[0046] The judgment unit is used to determine whether the authentication result is failed or the response timed out;

[0047] The determining unit is used to determine that the security element chip is abnormal if the authentication result is unsuccessful or the response times out.

[0048] Optionally, the vehicle is further equipped with a near-field communication chip; the detection module includes:

[0049] The second acquisition submodule is used to acquire first key identity information corresponding to the vehicle key sent by the near-field communication chip when a connection event of the vehicle key triggered by the near-field communication chip is detected; the first key identity information is acquired by the near-field communication chip from the vehicle key.

[0050] The second sending submodule is used to send the first key identity information to the security element chip and initiate authentication for the vehicle key.

[0051] The second judgment module includes:

[0052] The second judgment submodule is used to determine whether the identity information of the first key is the same as the pre-stored identity information of the second key;

[0053] The second determining submodule is used to determine that the vehicle key is valid if the identity information of the first key is the same as that of the second key.

[0054] Optionally, the vehicle is also equipped with a Bluetooth communication chip; the second determination module further includes:

[0055] The third judgment submodule is used to determine whether the connection event of the vehicle key is triggered by the Bluetooth communication chip and whether the connection is successful;

[0056] The third determining submodule is used to determine that the vehicle key is valid if the connection event of the vehicle key is triggered by the Bluetooth communication chip and the connection is successful.

[0057] Optionally, the authentication module includes:

[0058] The fourth determining submodule is used to determine the number of times the vehicle key is authenticated by the microcontroller after the security element chip malfunctions;

[0059] The authentication submodule is used to authenticate the vehicle key if the number of attempts is less than a preset number.

[0060] Thirdly, the present invention discloses a vehicle including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the vehicle key authentication method described above.

[0061] Fourthly, the present invention discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the vehicle key authentication method described above.

[0062] The embodiments of the present invention have the following advantages:

[0063] In this embodiment of the invention, when the microcontroller detects a connection event of the vehicle key, it initiates authentication of the vehicle key with the security element chip, then obtains the authentication result generated by the security element chip, and determines whether the security element chip is abnormal based on the authentication result. If the security element chip is abnormal, it determines whether the vehicle key is valid. If the vehicle key is valid, it authenticates the vehicle key. Thus, when the security element chip is abnormal, the microcontroller can authenticate the vehicle key, avoiding the inability to authenticate the vehicle key when the security element chip is abnormal, thereby preventing the inability to unlock the car door and start the vehicle. At the same time, it also improves the user experience. Attached Figure Description

[0064] Figure 1 This is a flowchart of the steps of a vehicle key authentication method provided in an embodiment of the present invention;

[0065] Figure 2 This is a structural block diagram of a vehicle component connection provided by an embodiment of the present invention;

[0066] Figure 3 This is a flowchart of another vehicle key authentication method provided in an embodiment of the present invention;

[0067] Figure 4 This is a structural block diagram of a vehicle key authentication device provided in an embodiment of the present invention. Detailed Implementation

[0068] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0069] When a vehicle's safety element chip malfunctions, the vehicle cannot authenticate the key, unlock the doors, or start the vehicle, forcing the driver to call a tow truck to a repair shop. This significantly impacts the user experience and the vehicle's reputation. To address this problem, this invention provides a vehicle key authentication method. When the microcontroller detects a connection event of the vehicle key, it initiates authentication with the safety element chip. It then obtains the authentication result generated by the safety element chip and determines whether the chip is malfunctioning. If the chip is malfunctioning, it checks the validity of the vehicle key. If valid, it authenticates the key. This allows the microcontroller to authenticate the key even when the safety element chip malfunctions, preventing the inability to authenticate the key and unlock the doors or start the vehicle, thus improving the user experience.

[0070] Reference Figure 1 The diagram illustrates a flowchart of a vehicle key authentication method according to an embodiment of the present invention. The method is applied to a microcontroller, which is installed in a vehicle. The vehicle also has a security element chip installed. The method may specifically include the following steps:

[0071] Step 101: When a connection event of the vehicle key is detected, an authentication for the vehicle key is initiated to the security element chip.

[0072] In this embodiment of the invention, the vehicle may be equipped with a microcontroller unit (MCU) and a safety element chip, such as... Figure 2 The diagram shows a structural block diagram of a vehicle component connection according to an embodiment of the present invention. The microcontroller can be set in the main controller of the vehicle. The main controller can also be equipped with a Bluetooth communication chip and a safety element chip. The microcontroller is communicatively connected to the Bluetooth communication chip and the safety element chip respectively. The vehicle can also be equipped with a central control host and a near-field communication chip. The central control host and the near-field communication chip are respectively connected to the main controller.

[0073] In this embodiment of the invention, when the microcontroller detects a connection event for the vehicle key, it can initiate authentication for the vehicle key with the security element chip. The connection event for the vehicle key can be triggered by either a Bluetooth communication chip or a near-field communication chip.

[0074] Specifically, in this invention, the vehicle key that matches the vehicle can be of two types: one is a card key with NFC (Near Field Communication) functionality, and the other is an application provided by the vehicle manufacturer. The application connects to the vehicle via Bluetooth on the mobile terminal. For example, when unlocking the car door with an NFC-enabled card key, the card key can be brought close to the vehicle's near-field communication chip. The near-field communication chip then triggers a connection event for the vehicle key, allowing subsequent door unlocking. Alternatively, the vehicle can be unlocked via an application provided by the vehicle manufacturer. After logging into the application, the user connects to the vehicle's Bluetooth communication chip via Bluetooth on the mobile terminal. The Bluetooth communication chip then triggers a connection event for the vehicle key, allowing subsequent door unlocking.

[0075] Step 102: Obtain the authentication result generated by the security element chip, and determine whether the security element chip is abnormal based on the authentication result.

[0076] In this embodiment of the invention, after the microcontroller initiates authentication for the vehicle key with the secure element chip, the secure element chip can authenticate the vehicle key. The authentication method in this invention can be as follows: when the microcontroller detects a connection event of the vehicle key, it can obtain the security key corresponding to the vehicle key through a Bluetooth communication chip or a near-field communication chip, and send the security key to the secure element chip. The secure element chip can authenticate the security key and generate a corresponding authentication result. After the secure element chip generates the corresponding authentication result, the microcontroller can obtain the authentication result generated by the secure element chip and determine whether the secure element chip is abnormal based on the authentication result.

[0077] In one embodiment, the authentication result may include failure. Determining whether the security element chip is abnormal based on the authentication result may include: if the authentication result is failure, sending a reset command to the security element chip to cause the security element chip to respond to the reset command and reset; detecting whether the reset of the security element chip is successful; if the reset of the security element chip is unsuccessful, determining that the security element chip is abnormal.

[0078] Specifically, if the certification result of the security element chip is unsuccessful, the microcontroller can send a reset command to the security element chip. After receiving the reset command, the security element chip will reset. If the reset fails, it can be determined that the security element chip is abnormal, indicating that the security element chip has malfunctioned.

[0079] In this embodiment of the invention, if the security element chip is successfully reset, an authentication of the vehicle key is initiated to the security element chip; the authentication result of the security element chip re-authenticating the vehicle key is obtained; and the security element chip is determined to be abnormal based on the authentication result of the re-authentication of the vehicle key.

[0080] Specifically, if the microcontroller determines that the security element chip has been successfully reset, it can initiate authentication of the vehicle key again. The security element chip will authenticate the vehicle key again and generate an authentication result again. The microcontroller can obtain the authentication result generated by the security element again and determine whether the security element chip is abnormal based on the authentication result of the re-authentication of the vehicle key.

[0081] In one embodiment, determining whether the security element chip is abnormal based on the authentication result of re-authenticating the vehicle key may include: determining whether the authentication result is failed or the response timed out; if the authentication result is failed or the response timed out, then determining that the security element chip is abnormal.

[0082] In this invention, if the microcontroller determines that the safety element chip is abnormal, it can send a warning signal to the central control unit. The central control unit can output warning information based on the warning signal, thereby prompting the driver that the safety element chip is abnormal and needs to be repaired in a timely manner.

[0083] Step 103: If the security element chip is abnormal, determine whether the vehicle key is valid.

[0084] In this embodiment of the invention, when the microcontroller determines whether the security element chip is abnormal based on the authentication result, if the security element chip is determined to be abnormal, it can then determine whether the vehicle key is valid.

[0085] In one embodiment, the vehicle is further equipped with a near-field communication (NFC) chip. When a connection event of the vehicle key is detected, authentication of the vehicle key is initiated with the security element chip. This may include: when a connection event of the vehicle key triggered by the NFC chip is detected, obtaining first key identity information corresponding to the vehicle key sent by the NFC chip; the first key identity information is obtained by the NFC chip from the vehicle key; sending the first key identity information to the security element chip and initiating authentication of the vehicle key; determining whether the vehicle key is valid, which may include: determining whether the first key identity information is the same as pre-stored second key identity information; if the first key identity information is the same as the second key identity information, then the vehicle key is determined to be valid.

[0086] Specifically, when a driver uses a key card with NFC functionality to unlock the car door, they can bring the key card close to the vehicle's near-field communication (NFC) chip. This triggers a connection event for the vehicle key. At this time, the microcontroller can obtain the first key identity information corresponding to the key card through the NFC chip and determine whether the first key identity information is the same as the pre-stored second key identity information. If the first key identity information and the second key identity information are the same, the vehicle key is determined to be valid. The second key identity information can be pre-configured by the driver and stored in the vehicle's EEPROM (Electrically Erasable Programmable Read-Only Memory) non-volatile space.

[0087] In another embodiment, the vehicle may also be equipped with a Bluetooth communication chip; determining whether the vehicle key is valid may further include: determining whether the connection event of the vehicle key is triggered by the Bluetooth communication chip and the connection is successful; if the connection event of the vehicle key is triggered by the Bluetooth communication chip and the connection is successful, then the vehicle key is determined to be valid.

[0088] Specifically, the driver can log in to the application provided by the vehicle scenario and connect to the vehicle via the Bluetooth function of the mobile terminal. This will trigger the vehicle key connection event by the vehicle's Bluetooth communication chip. Since the application provided by the vehicle manufacturer will set a password when logging in, the driver must log in to the application with the password. If the driver successfully logs in to the application with the password and successfully connects to the Bluetooth communication chip of the vehicle, it also indicates that the driver is the owner of the vehicle. Therefore, it can be determined that the vehicle key that has successfully connected to the Bluetooth communication chip is legitimate.

[0089] Step 104: If the vehicle key is valid, then authenticate the vehicle key.

[0090] In this embodiment of the invention, when the microcontroller determines whether the vehicle key is valid, if the vehicle key is valid, it can be authenticated by the microcontroller. It should be noted that the method by which the microcontroller authenticates the vehicle key in this invention can be the same as the method by which the security element chip authenticates the vehicle key. Therefore, when the security element chip malfunctions, the microcontroller can authenticate the vehicle key; if authentication is successful, the vehicle key can be used normally. If authentication fails, the central control unit outputs a corresponding prompt message.

[0091] It should be noted that the microcontroller in this invention authenticates the vehicle key only within the current ignition cycle. The current ignition cycle can refer to the process from when the driver starts / powers on the vehicle to when the vehicle is turned off / powered off. That is, the microcontroller in this invention authenticates the vehicle key only in emergency situations. After the vehicle is turned off / powered off, if the vehicle needs to be started / powered on again, the microcontroller will not authenticate the vehicle key, and the vehicle will not be able to start / power on. This allows the driver to immediately drive the vehicle to a repair center for maintenance after discovering an abnormality in the safety element chip, avoiding the safety risks caused by users not maintaining the safety element chip for a long time.

[0092] In this embodiment of the invention, authenticating a vehicle key may include: determining the number of times the vehicle key will be authenticated by a microcontroller after a security element chip malfunctions; if the number of authentications is less than a preset number, then the vehicle key will be authenticated.

[0093] For example, if the preset number of attempts is 3, and after the safety element chip malfunctions, the microcontroller will authenticate the vehicle key 2 times, then the microcontroller can authenticate the vehicle. After successful authentication, the driver can use the vehicle key normally. This avoids situations where the driver is unable to reach a repair center in time to repair the safety element chip due to the current ignition cycle, resulting in the vehicle key being unusable next time. The preset number of attempts can be set by the driver according to their needs; the specific number of attempts is not limited in this invention.

[0094] In this embodiment of the invention, when a vehicle key connection event is detected, an authentication request for the vehicle key is initiated to the security element chip. The authentication result generated by the security element chip is obtained, and the chip's malfunction is determined based on the result. If the security element chip is malfunctioning, the validity of the vehicle key is determined. If the vehicle key is valid, authentication is performed. Thus, when the security element chip malfunctions, the microcontroller can authenticate the vehicle key, preventing the inability to authenticate the key and unlock the doors or start the vehicle when the security element chip is faulty. This also improves the user experience.

[0095] For better explanation of the present invention, see reference to Figure 3 The present invention will be explained. Figure 3 A flowchart illustrating the steps of another vehicle key authentication method provided by an embodiment of the present invention is shown.

[0096] The microcontroller receives a connection event from the near-field communication chip or Bluetooth communication chip triggered by the vehicle key, and then initiates authentication of the vehicle key with the security element chip. If the authentication result obtained by the microcontroller is successful, the vehicle key can be used normally. If the authentication result obtained by the microcontroller is unsuccessful, a reset command is sent to the security element chip. After receiving the reset command, the security element chip resets. The microcontroller checks whether the reset of the security element chip is successful. If the reset of the security element chip is unsuccessful, it determines that the security element chip is abnormal and sends a warning signal to the central control host. The central control host outputs warning information based on the warning signal.

[0097] If the microcontroller detects that the security element chip has been successfully reset, it will re-initiate authentication for the vehicle key with the security element chip. The security element chip will then re-authenticate the vehicle key and generate a re-authentication result. If the microcontroller obtains a successful re-authentication result for the vehicle key, the vehicle key can be used normally.

[0098] If the microcontroller fails to authenticate the vehicle key again or the response times out, it sends a warning signal to the central control unit (CCU), which then outputs a warning message. Simultaneously, the microcontroller checks the validity of the vehicle key. If invalid, it sends a warning signal to the CCU, which outputs a warning message. If valid, the microcontroller authenticates the vehicle key. If authentication succeeds, the key can be used normally; if authentication fails, it sends a warning signal to the CCU, which outputs a warning message.

[0099] In this embodiment of the invention, when a vehicle key connection event is detected, an authentication request for the vehicle key is initiated to the security element chip. The authentication result generated by the security element chip is obtained, and the chip's malfunction is determined based on the result. If the security element chip is malfunctioning, the validity of the vehicle key is determined. If the vehicle key is valid, authentication is performed. Thus, when the security element chip malfunctions, the microcontroller can authenticate the vehicle key, preventing the inability to authenticate the key and unlock the doors or start the vehicle when the security element chip is faulty. This also improves the user experience.

[0100] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0101] Reference Figure 4 The diagram illustrates a structural block diagram of a vehicle key authentication device according to an embodiment of the present invention. The device is applied to a microcontroller; the microcontroller is disposed in a vehicle, and the vehicle also contains a security element chip. The device may specifically include the following modules:

[0102] The detection module 401 is used to initiate authentication for the vehicle key to the security element chip when a connection event of the vehicle key is detected.

[0103] The first judgment module 402 is used to obtain the authentication result generated by the security element chip and determine whether the security element chip is abnormal based on the authentication result.

[0104] The second judgment module 403 is used to determine whether the vehicle key is valid if the security element chip is abnormal.

[0105] The authentication module 404 is used to authenticate the vehicle key if the vehicle key is valid.

[0106] In one embodiment, the authentication result includes failure; the first judgment module 402 includes:

[0107] The reset submodule is used to send a reset command to the security element chip if the authentication result is unsuccessful, so that the security element chip responds to the reset command and resets.

[0108] The detection submodule is used to detect whether the reset of the security element chip was successful;

[0109] The first determination submodule is used to determine that the security element chip is abnormal if the reset of the security element chip fails.

[0110] In one embodiment, the device further includes:

[0111] The first sending submodule is used to initiate authentication for the vehicle key to the security element chip if the security element chip is successfully reset.

[0112] The first acquisition submodule is used to acquire the authentication result of the security element chip re-authenticating the vehicle key;

[0113] The first judgment submodule is used to determine whether the security element chip is abnormal based on the authentication result of the re-authentication of the vehicle key.

[0114] In one embodiment, the first determination submodule 402 includes:

[0115] The judgment unit is used to determine whether the authentication result is failed or the response timed out;

[0116] The determining unit is used to determine that the security element chip is abnormal if the authentication result is unsuccessful or the response times out.

[0117] In one embodiment, the vehicle is further equipped with a near-field communication chip; the detection module 401 includes:

[0118] The second acquisition submodule is used to acquire first key identity information corresponding to the vehicle key sent by the near-field communication chip when a connection event of the vehicle key triggered by the near-field communication chip is detected; the first key identity information is acquired by the near-field communication chip from the vehicle key.

[0119] The second sending submodule is used to send the first key identity information to the security element chip and initiate authentication for the vehicle key;

[0120] The second judgment module 403 includes:

[0121] The second judgment submodule is used to determine whether the identity information of the first key is the same as the pre-stored identity information of the second key;

[0122] The second determining submodule is used to determine that the vehicle key is valid if the identity information of the first key is the same as that of the second key.

[0123] In one embodiment, the vehicle is further equipped with a Bluetooth communication chip; the second determination module 403 further includes:

[0124] The third judgment submodule is used to determine whether the connection event of the vehicle key is triggered by the Bluetooth communication chip and whether the connection is successful;

[0125] The third determining submodule is used to determine that the vehicle key is valid if the connection event of the vehicle key is triggered by the Bluetooth communication chip and the connection is successful.

[0126] In one embodiment, the authentication module 404 includes:

[0127] The fourth determining submodule is used to determine the number of times the vehicle key is authenticated by the microcontroller after the security element chip malfunctions;

[0128] The authentication submodule is used to authenticate the vehicle key if the number of attempts is less than a preset number.

[0129] In this embodiment of the invention, a detection module is used to initiate authentication of the vehicle key to the security element chip when a connection event of the vehicle key is detected; a first judgment module is used to obtain the authentication result generated by the security element chip and determine whether the security element chip is abnormal based on the authentication result; a second judgment module is used to determine whether the vehicle key is valid if the security element chip is abnormal; and an authentication module is used to authenticate the vehicle key if it is valid. Thus, when the security element chip malfunctions, the vehicle key can be authenticated through the microcontroller, avoiding the inability to authenticate the vehicle key and thus unlock the car door and start the vehicle when the security element chip malfunctions, thereby improving the user experience.

[0130] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0131] This invention also provides a vehicle, comprising:

[0132] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described vehicle key authentication method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0133] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described vehicle key authentication method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0134] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0135] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0136] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0137] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0139] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0140] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0141] The present invention has provided a detailed description of a vehicle key authentication method, a vehicle key authentication device, a vehicle, and a computer-readable storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A vehicle key authentication method, characterized in that, The method is applied to a microcontroller; the microcontroller is installed in a vehicle, and the vehicle also has a safety element chip installed; the method includes: When a vehicle key connection event is detected, an authentication process for the vehicle key is initiated with the security element chip; Obtain the authentication result generated by the security element chip, and determine whether the security element chip is abnormal based on the authentication result; If the security element chip is malfunctioning, then determine whether the vehicle key is valid; If the vehicle key is valid, then the vehicle key is authenticated; The vehicle is also equipped with a near-field communication chip; when a connection event of the vehicle key is detected, authentication of the vehicle key is initiated to the security element chip, including: When a connection event of the vehicle key triggered by the near-field communication chip is detected, the first key identity information corresponding to the vehicle key sent by the near-field communication chip is obtained; the first key identity information is obtained by the near-field communication chip from the vehicle key; Send the first key identity information to the security element chip and initiate authentication for the vehicle key; The determination of whether the vehicle key is valid includes: Determine whether the identity information of the first key is the same as the pre-stored identity information of the second key; If the identity information of the first key is the same as that of the second key, then the vehicle key is determined to be legitimate.

2. The vehicle key authentication method according to claim 1, characterized in that, The authentication result includes failure; the step of determining whether the security element chip is abnormal based on the authentication result includes: If the authentication result is unsuccessful, a reset command is sent to the security element chip, causing the security element chip to respond to the reset command and reset. Check whether the reset of the security element chip was successful; If the reset of the safety element chip fails, the safety element chip is determined to be faulty.

3. The vehicle key authentication method according to claim 2, characterized in that, The method further includes: If the security element chip is successfully reset, an authentication for the vehicle key is initiated by the security element chip. Obtain the authentication result of the security element chip re-authenticating the vehicle key; The security element chip is determined to be abnormal based on the authentication result of the re-authentication of the vehicle key.

4. The vehicle key authentication method according to claim 3, characterized in that, The step of determining whether the security element chip is abnormal based on the authentication result of the re-authentication of the vehicle key includes: Determine whether the authentication result is failed or the response timed out; If the authentication result is unsuccessful or the response times out, the security element chip is determined to be abnormal.

5. The vehicle key authentication method according to claim 1, characterized in that, The vehicle is also equipped with a Bluetooth communication chip; the determination of whether the vehicle key is valid also includes: Determine whether the connection event of the vehicle key is triggered by the Bluetooth communication chip and whether the connection is successful; If the connection event of the vehicle key is triggered by the Bluetooth communication chip and the connection is successful, then the vehicle key is determined to be legitimate.

6. The vehicle key authentication method according to claim 1, characterized in that, The authentication of the vehicle key includes: Determine the number of times the vehicle key is authenticated by the microcontroller after the security element chip malfunctions; If the number of attempts is less than the preset number, then the vehicle key is authenticated.

7. A vehicle key authentication device, characterized in that, The device is applied to a microcontroller; the microcontroller is installed in a vehicle, and the vehicle also has a safety element chip installed; the device includes: The detection module is used to initiate authentication for the vehicle key to the security element chip when a connection event of the vehicle key is detected. The first judgment module is used to obtain the authentication result generated by the security element chip, and to determine whether the security element chip is abnormal based on the authentication result; The second judgment module is used to determine whether the vehicle key is valid if the security element chip is abnormal. An authentication module is used to authenticate the vehicle key if it is valid. The device is further configured such that the vehicle is also equipped with a near-field communication chip; the step of initiating authentication for the vehicle key to the security element chip when a connection event of the vehicle key is detected includes: When a connection event of the vehicle key triggered by the near-field communication chip is detected, the first key identity information corresponding to the vehicle key sent by the near-field communication chip is obtained; the first key identity information is obtained by the near-field communication chip from the vehicle key; Send the first key identity information to the security element chip and initiate authentication for the vehicle key; The determination of whether the vehicle key is valid includes: Determine whether the identity information of the first key is the same as the pre-stored identity information of the second key; If the identity information of the first key is the same as that of the second key, then the vehicle key is determined to be legitimate.

8. A vehicle, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the vehicle key authentication method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the vehicle key authentication method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Vehicle key authentication method and device, vehicle and storage medium

    CN118238767A