Offline Binding Method, Device, Vehicle and Medium of In-vehicle NFC Card Key

The offline NFC card key binding method addresses the limitations of network-dependent NFC card and vehicle pairing by enabling secure, user-assisted binding without internet connectivity, ensuring convenience and security.

CN115866570BActive Publication Date: 2025-07-15CHERY AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211369890.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2025-07-15
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

In the prior art, the pairing method of NFC cards and vehicles requires network connection, and cannot be completed by itself on unconnected models, which lacks user convenience.

Method used

It provides an offline binding method for vehicle-mounted NFC card keys. By receiving card allocation requests, generating card reminders, reading card information and performing vehicle-side and NFC card verification, and after successful, the service key is derived and encrypted to transmit, and offline card allocation is completed.

Benefits of technology

It realizes that users can self-service binding of NFC cards and vehicles while offline, improving convenience, and does not rely on mobile APPs and vehicle-machine networking, which is safe and fast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866570B_ABST
    Figure CN115866570B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of digital keys, and particularly to an offline binding method, device, vehicle and medium for an in-vehicle NFC card key. The method includes: receiving a card matching request sent by a user, and generating a card pasting reminder based on the card matching request; when it is detected that the user puts the NFC card into the target card reading area, reading the card information of the NFC card, and respectively performing vehicle-side verification and NFC card verification based on the card information and the preset vehicle factory data; after both the vehicle-side verification and the NFC card are successfully verified, deriving the service key of the NFC card, encrypting and transmitting the service key to the NFC card through the session key, and generating a card matching completion prompt. Thereby, the problems that the card matching scheme in the related technology is not applicable to unconnected vehicle models, users cannot perform self-service, and the convenience is poor are solved. It can be applicable to the offline state, users can perform self-service, and it does not require a mobile phone APP and a vehicle machine to be connected to the vehicle, which is safe and fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of digital keys, and particularly to an offline binding method, device, vehicle and medium for an in-vehicle NFC (Near Field Communication) card key. Background Art

[0002] Currently, in order to complete the pairing of an NFC card and a vehicle, there are mainly two methods in the related art to complete the work. One is the self-service method, which completes the binding of the NFC card and the vehicle through the cooperation of the vehicle such as the background server, the in-vehicle large screen, the vehicle body security module, the NFC Reader module, the NFC card intelligent key, and the owner's mobile phone APP; the other is to complete the binding work in the production line or the after-sales 4S store, which depends on the operation of the vehicle factory and the user cannot complete it by themselves.

[0003] However, in the related art, real-time network communication is required between the mobile App (Application) and the background server in the self-service method, and between the background server and the in-vehicle large screen module. It cannot be carried out in the case of no network or the in-vehicle unit is not equipped with an Internet connection function, and the above situation depends on real-time network communication; the other method is a card matching solution completed by the vehicle factory, lacking the convenience of self-service operation by users. Summary of the Invention

[0004] This application provides an offline binding method, device, vehicle and storage medium for an in-vehicle NFC card key to solve the problem that the card matching solution in the related art is not applicable to unconnected models, users cannot complete it by themselves, and the convenience is poor. It can be applied to the offline state, can be completed by users themselves, does not require a mobile phone APP and an in-vehicle unit connected to the network, and is safe and fast.

[0005] The first aspect of this application provides an offline binding method for an in-vehicle NFC card key, including the following steps: receiving a card matching request sent by a user, and generating a card sticking reminder based on the card matching request; when it is detected that the user puts the NFC card into the target card reading area, reading the card information of the NFC card, and respectively performing vehicle-side verification and NFC card verification based on the card information and the preset vehicle factory data; and after the vehicle-side verification and the NFC card are both successfully verified, deriving the service key of the NFC card, encrypting and transmitting the service key to the NFC card through the session key, and generating a card matching completion reminder.

[0006] Optionally, in some embodiments, the card information includes a card ID (Identity document), a card chip ID, a card-side random number, a card counter, and an encrypted value of the card-side random number; the pre-set vehicle factory data includes a security chip ID, a pairing key dispersion factor, and a vehicle-side random number.

[0007] Optionally, in some embodiments, the vehicle-side verification and the NFC card verification are respectively performed based on the card information and the pre-set vehicle factory specified data, including: obtaining a derived key according to a pre-set key dispersion factor, and calculating a session key according to the derived key; decrypting the card counter and the card-side random number by using the session key to complete the vehicle-side verification.

[0008] Optionally, in some embodiments, the vehicle-side verification and the NFC card verification are respectively performed based on the card information and the pre-set vehicle factory specified data, further including: calculating a new session key by using the card-side random number and the pre-set agreed data; sending the new session key and the pre-set agreed data to the NFC card to complete the NFC card verification after the NFC card decrypts the new session key.

[0009] Optionally, in some embodiments, after the vehicle-side verification and the NFC card verification are both successful, it further includes: calculating a hash value of an encryption factor, and encrypting and transmitting it to the vehicle end by using a session key, and the vehicle end decrypts and verifies the hash value to complete the vehicle-side verification again.

[0010] An embodiment of the second aspect of the present application provides an offline binding device for an in-vehicle NFC card key, including: a receiving module, configured to receive a card matching request sent by a user, and generate a card pasting reminder based on the card matching request; a detection module, configured to read the card information of the NFC card when it detects that the user puts the NFC card into a target card reading area, and respectively perform vehicle-side verification and NFC card verification based on the card information and the pre-set vehicle factory data; and a binding module, configured to derive a service key of the NFC card after the vehicle-side verification and the NFC card verification are both successful, encrypt and transmit the service key to the NFC card through a session key, and generate a card matching completion reminder.

[0011] Optionally, in some embodiments, the card information includes a card ID, a card chip ID, a card-side random number, a card counter, and an encrypted value of the card-side random number; the pre-set vehicle factory data includes a security chip ID, a pairing key dispersion factor, and a vehicle-side random number.

[0012] Optionally, in some embodiments, the detection module is further configured to: obtain a derived key according to a preset key dispersion factor, and calculate a session key according to the derived key; decrypt the card counter and the card-side random number by using the session key to complete the vehicle-side verification.

[0013] Optionally, in some embodiments, the detection module is further configured to: calculate a new session key by using the card-side random number and preset agreed data; send the new session key and the preset agreed data to the NFC card, so as to complete the NFC card verification after the NFC card decrypts the new session key.

[0014] Optionally, in some embodiments, after both the vehicle-side verification and the NFC card are successfully verified, the binding module is further configured to: calculate a hash value of an encryption factor, and encrypt and transmit it to the vehicle end by using a session key, and the vehicle end decrypts and verifies the hash value to complete the vehicle-side verification again.

[0015] An embodiment of the third aspect of the present application provides a vehicle, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the program to implement the offline binding method of the in-vehicle NFC card key as described in the above embodiments.

[0016] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and the program is executed by a processor to be used to implement the offline binding method of the in-vehicle NFC card key as described in the above embodiments.

[0017] Therefore, by receiving a card matching request issued by a user, generating a card pasting reminder based on the card matching request, reading the card information of the NFC card when it is detected that the user puts the NFC card into the target card reading area, and respectively performing vehicle-side verification and NFC card verification based on the card information and preset vehicle factory data; after both the vehicle-side verification and the NFC card are successfully verified, deriving a service key of the NFC card, encrypting and transmitting the service key to the NFC card through a session key, and generating a card matching completion prompt. Thus, the problems that the card matching scheme in the related art is not applicable to unconnected vehicle models, users cannot self-help, and the convenience is poor are solved, and it can be applicable to the offline state, users can self-help, and it can be applied to vehicles that do not rely on a mobile phone APP and vehicle networking, which is safe and fast.

[0018] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings

[0019] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of embodiments in conjunction with the accompanying drawings, where:

[0020] Figure 1 FIG. is a flowchart of an offline binding method for an in-vehicle NFC card key provided according to an embodiment of the present application;

[0021] Figure 2 FIG. is a flowchart of an offline binding method for an in-vehicle NFC card key provided according to a specific embodiment of the present application;

[0022] Figure 3 FIG. is a schematic diagram of a system module provided according to a specific embodiment of the present application;

[0023] Figure 4 FIG. is a block diagram of an offline binding device for an in-vehicle NFC card key provided according to an embodiment of the present application;

[0024] Figure 5 FIG. is a schematic diagram of an electronic device provided according to an embodiment of the present application. Detailed Embodiments

[0025] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present application, and should not be construed as a limitation of the present application.

[0026] The offline binding method, device, vehicle, and medium of the in-vehicle NFC card key according to the embodiments of the present application will be described below with reference to the accompanying drawings. In view of the problem that the card matching scheme in the related technology mentioned in the above background technology is not applicable to unconnected vehicle models, users cannot perform self-service, and the convenience is poor, the present application provides an offline binding method for an in-vehicle NFC card key. In this method, by receiving a card matching request issued by a user, generating a card sticking reminder based on the card matching request, reading the card information of the NFC card when it is detected that the user puts the NFC card into the target card reading area, and respectively performing vehicle-side verification and NFC card verification based on the card information and the preset vehicle factory data; after the vehicle-side verification and the NFC card are both successfully verified, a service key for the NFC card is derived, the service key is encrypted and transmitted to the NFC card through a session key, and a card matching completion prompt is generated. Thus, the problem that the card matching scheme in the related technology is not applicable to unconnected vehicle models, users cannot perform self-service, and the convenience is poor is solved. It can be applied to the offline state, can be self-service by users, and can be used for vehicles without relying on a mobile phone APP and vehicle machine networking, which is safe and fast.

[0027] Specifically, Figure 1Schematic flow chart of an offline binding method for an in-vehicle NFC card key provided by an embodiment of this application.

[0028] As Figure 1 shown, the offline binding method for the in-vehicle NFC card key includes the following steps:

[0029] In step S101, a card matching request sent by the user is received, and a card sticking reminder is generated based on the card matching request.

[0030] Specifically, the user enters the card matching mode through the prompt of the in-vehicle infotainment system's card matching program. The large screen prompts the NFC Reader to search for the card through CAN communication, notifies the digital key main module to start card matching, the main module enters the card matching mode, and prompts the user to perform the card sticking operation. The user enters the card matching mode through the prompt of the in-vehicle infotainment system's large screen.

[0031] In the actual execution process, the user can use a biometric lock (voice feature, facial feature, etc.) to enter the program through the in-vehicle infotainment system's card matching program, and safely complete the authentication of the vehicle owner's identity. After the in-vehicle infotainment system's card matching program verifies the vehicle owner's identity, it clicks the trigger button to trigger the digital key main module to enter the pairing mode. This process is completed through CAN communication, without the need for a networked vehicle. The in-vehicle infotainment system's large screen prompts the user to perform the card sticking operation and place the card in the card swiping area.

[0032] In step S102, when it is detected that the user places the NFC card in the target card reading area, the card information of the NFC card is read, and vehicle-side verification and NFC card verification are respectively performed based on the card information and the pre-set vehicle factory data.

[0033] Specifically, the user brings the NFC Card close to the NFC Reader area, and the NFC Reader reads the card content and transmits the content to the digital key main module through CAN communication.

[0034] Optionally, in some embodiments, the card information includes the card ID, card chip ID, card terminal random number, card counter, and encrypted value of the card terminal random number; the pre-set vehicle factory data includes the security chip ID, pairing key dispersion factor, and vehicle terminal random number.

[0035] Optionally, in some embodiments, vehicle-side verification and NFC card verification are respectively performed based on the card information and the pre-set vehicle factory specified data, including: obtaining a derived key according to a pre-set key dispersion factor, and calculating a session key according to the derived key; decrypting the card counter and the card terminal random number by using the session key to complete the vehicle-side verification.

[0036] Specifically, the vehicle end reads the card information. The parameters carried in the read command are the pre-set data specified by the vehicle manufacturer, mainly including the main module and the security chip ID, the pairing key dispersion factor, the random number at the vehicle end, etc. The read card information includes the card ID, the card chip ID, the random number at the card end, and the ciphertext (the encrypted value of parameters such as the card counter and the random number at the card end). The vehicle end derives a key based on the key dispersion factor, calculates the session key based on the derived key, and uses the session key to decrypt values such as the card counter and the random number at the card end. The vehicle side performs a verification once.

[0037] Optionally, in some embodiments, based on the card information and the pre-set data specified by the vehicle manufacturer, vehicle side verification and NFC card verification are respectively performed, and it further includes: calculating a new session key using the random number at the card end and the pre-set agreed data; sending the new session key and the pre-set agreed data to the NFC card to complete the NFC card verification after the NFC card decrypts the new session key.

[0038] Specifically, the card end data and the pre-set agreed data are selected to participate in the calculation of the new session key. The new session key encrypts the card end data and the pre-set agreed data and sends them to the card end. The card end decrypts the data in the same way and the card end performs a verification once.

[0039] It should be noted that the card needs to be pre-canned with a learning key through an encryption machine when it leaves the factory. The learning key pre-set in the vehicle body security module has an algorithmic association with the card key. The vehicle body security module calculates the learning key symmetric to the card end according to the algorithm, and derives the session key based on the learning key. Both parties use the session key to encrypt the parameters of the pre-set security chip, the random numbers of both parties, the counter value, etc., and perform multiple two-way authentications to finally complete the verification process.

[0040] Specifically, the digital key main module sends a learning start instruction (encrypted by the SE (Secure Element) module). The NFCReader transparently transmits the learning instruction. After receiving the instruction, the NFCCard calculates the session key according to the learning key, decrypts the instruction, performs a verification, and uses the session key to encrypt factors such as the random number counter value and transmits them to the digital key main module. The digital key main module communicates with the SE, and the SE completes the decryption of the encrypted data and uses the session key to encrypt the data and transmit it to the NFCCard for verification. Both parties complete the double authentication process according to the agreed algorithm.

[0041] In step S103, after both the vehicle side verification and the NFC card are successfully verified, the service key of the NFC card is derived, and the service key is encrypted and transmitted to the NFC card through the session key, and a prompt for completing card matching is generated.

[0042] Specifically, after the dual authentication is completed, the in-vehicle SE module derives the service key of the NFCCard according to the preset service key, encrypts it with the session key and transmits it to the NFCCard. After the learning is completed, the digital key master module feeds back the result to the in-vehicle large screen through CAN (Controller Area Network) communication, prompting the user to complete card matching. After the learning and pairing are completed, the in-vehicle security module derives the transaction key and passes the transaction key (encrypted with the session key) into the security module of the NFC card. After the pairing is completed, the NFC digital key can realize functions such as keyless start / keyless entry of the vehicle and starting the in-vehicle engine. The user can operate the new card close to the NFCReader to complete the function verification of unlocking / locking the vehicle and starting the engine.

[0043] Optionally, in some embodiments, after the vehicle-side verification and the NFC card are both successfully verified, it further includes: calculating the hash value of the encryption factor, encrypting it with the session key and transmitting it to the vehicle side, and the vehicle side decrypts and verifies the hash value to complete the vehicle-side verification again.

[0044] Specifically, after the vehicle-side verification and the NFC card are both successfully verified, calculate the hash value of the encryption factor, encrypt it with the session key and transmit it to the vehicle side, the vehicle side decrypts and calculates the hash value for verification, and the vehicle side verifies again.

[0045] To enable those skilled in the art to further understand the offline binding method of the in-vehicle NFC card key according to the embodiments of the present application, the following will be described in detail with reference to specific embodiments.

[0046] As Figure 2 shown, Figure 2 is a flowchart of the offline binding method of the in-vehicle NFC card key according to the embodiments of the present application.

[0047] The embodiments of the present application are provided with modules such as the in-vehicle large screen, digital key master module, NFCReader, NFCCard, and SE as Figure 3 shown.

[0048] 1. In-vehicle large screen: It is the in-vehicle center control screen, which provides a UI interface for the vehicle owner to self-match the card and communicates with the digital key module through the in-vehicle can network.

[0049] 2. Digital key master module: It is an ECU (Electronic Control Unit) loaded with the digital key program, which completes key generation, encryption and decryption calculations, etc. through communication with the SE. It can perform spi (Serial Peripheral Interface) communication through the NFCReader module preset, or perform can communication separately.

[0050] 3. NFC Reader: It is the vehicle-end NFC card reader for the vehicle, and it completes the authentication process with the NFC Card through NFC near-field communication.

[0051] 4. NFC Card: It is the NFC card for the vehicle.

[0052] 5. SE: It is the vehicle-end security module.

[0053] Through the above modules, the user enters through the biometric lock using the card matching program on the in-vehicle infotainment (IVI) screen; clicks the trigger button to trigger the digital key main module to enter the pairing mode; the IVI screen prompts the user to perform the card pasting operation; the NFC Card (the card) is placed in the area of the NFC Reader (the vehicle-end card reader), and the vehicle-end reads the card information; the SE (security module) of the digital key main module and the SE (security module) of the NFC Card perform double authentication to complete the authentication of the card and the card reader, write the card information into the vehicle body key list to complete the pairing; after the learning is completed, the screen prompts the user that the card matching is completed.

[0054] According to the offline binding method of the in-vehicle NFC card key proposed in the embodiment of the present application, by receiving the card matching request sent by the user, generating a card pasting reminder based on the card matching request, and when it is detected that the user puts the NFC card into the target card reading area, reading the card information of the NFC card, and respectively performing vehicle-side verification and NFC card verification based on the card information and the preset vehicle factory data; after the vehicle-side verification and the NFC card are both successfully verified, deriving the service key of the NFC card, encrypting and transmitting the service key to the NFC card through the session key, and generating a card matching completion prompt. Thus, the problems that the card matching scheme in the related technology is not applicable to unconnected vehicle models, users cannot perform self-service, and the convenience is poor are solved. It can be applicable to the offline state, users can perform self-service, and it can be used without relying on the mobile phone APP and the vehicle-connected vehicle, which is safe and fast.

[0055] Next, refer to the drawings to describe the offline binding device of the in-vehicle NFC card key proposed in the embodiment of the present application.

[0056] Figure 4 It is a block diagram of the offline binding device of the in-vehicle NFC card key according to the embodiment of the present application.

[0057] As Figure 4 shown, the offline binding device 10 of the in-vehicle NFC card key includes: a receiving module 100, a detection module 200, and a binding module 300.

[0058] Among them, the receiving module 100 is used to receive the card matching request issued by the user and generate a card pasting reminder based on the card matching request; the detection module 200 is used to read the card information of the NFC card when it detects that the user puts the NFC card into the target card reading area, and perform vehicle-side verification and NFC card verification respectively based on the card information and the preset vehicle factory data; and the binding module 300 is used to derive the service key of the NFC card after the vehicle-side verification and the NFC card are both successfully verified, encrypt and transmit the service key to the NFC card through the session key, and generate a card matching completion reminder.

[0059] Optionally, in some embodiments, the card information includes the card ID, the card chip ID, the card-end random number, the card counter, and the encrypted value of the card-end random number; the preset vehicle factory data includes the security chip ID, the pairing key dispersion factor, and the vehicle-end random number.

[0060] Optionally, in some embodiments, the detection module 200 is further used to: obtain the derived key according to the preset key dispersion factor, and calculate the session key according to the derived key; use the session key to decrypt the card counter and the card-end random number to complete the vehicle-side verification.

[0061] Optionally, in some embodiments, the detection module 200 is further used to: calculate a new session key by using the card-end random number and the preset agreed data; send the new session key and the preset agreed data to the NFC card to complete the NFC card verification after the NFC card decrypts the new session key.

[0062] Optionally, in some embodiments, after the vehicle-side verification and the NFC card are both successfully verified, the binding module 300 is further used to: calculate the hash value of the encryption factor, and encrypt and transmit it to the vehicle end by using the session key, and the vehicle end decrypts and verifies the hash value to complete the vehicle-side verification again.

[0063] It should be noted that the foregoing explanation of the embodiments of the offline binding method of the in-vehicle NFC card key also applies to the offline binding device of the in-vehicle NFC card key in this embodiment, and will not be elaborated here.

[0064] The offline binding device of the in-vehicle NFC card key proposed according to the embodiments of the present application receives a card matching request issued by a user, generates a card sticking reminder based on the card matching request, reads the card information of the NFC card when it detects that the user puts the NFC card into the target card reading area, and performs vehicle-side verification and NFC card verification respectively based on the card information and the preset vehicle factory data; after the vehicle-side verification and the NFC card are both successfully verified, a service key of the NFC card is derived, and the service key is encrypted and transmitted to the NFC card through a session key, and a card matching completion prompt is generated. Thus, it solves the problems that the card matching scheme in the related technology is not applicable to unconnected vehicle models, users cannot perform self-service, and the convenience is poor. It can be applicable to the offline state, users can perform self-service, and it can be used without relying on a mobile phone APP and a vehicle head unit connected to the network, which is safe and fast.

[0065] Figure 5 The structural schematic diagram of the vehicle provided by the embodiments of the present application. The vehicle may include:

[0066] A memory 501, a processor 502, and a computer program stored on the memory 501 and executable on the processor 502.

[0067] When the processor 502 executes the program, it implements the offline binding method of the in-vehicle NFC card key provided in the above embodiments.

[0068] Further, the vehicle further includes:

[0069] A communication interface 503 for communication between the memory 501 and the processor 502.

[0070] The memory 501 is used to store a computer program executable on the processor 502.

[0071] The memory 501 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0072] If the memory 501, the processor 502, and the communication interface 503 are independently implemented, the communication interface 503, the memory 501, and the processor 502 can be interconnected through a bus and communicate with each other. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 5It is represented only by a thick line, but it does not mean that there is only one bus or one type of bus.

[0073] Optionally, in a specific implementation, if the memory 501, the processor 502, and the communication interface 503 are integrated on a single chip, the memory 501, the processor 502, and the communication interface 503 can communicate with each other through an internal interface.

[0074] The processor 502 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0075] The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the offline binding method of the in-vehicle NFC card key as described above is implemented.

[0076] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0077] In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless otherwise specifically defined.

[0078] Any process or method description depicted in the flowchart or otherwise described herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logical function or process. The scope of the preferred embodiments of the present application includes additional implementations, where functions can be executed in a substantially simultaneous manner or in a reverse order according to the functions involved, rather than in the order shown or discussed, which should be understood by those skilled in the art to which the embodiments of the present application pertain.

[0079] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits with logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits with appropriate combinational logic gate circuits, programmable gate arrays, field programmable gate arrays, and the like.

[0080] Those of ordinary skill in the art of this technology can understand that all or part of the steps carried out in implementing the methods of the above embodiments can be completed by instructing relevant hardware through a program. The said program can be stored in a computer-readable storage medium, and when executed, includes one or a combination of the steps of the method embodiments.

[0081] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

Claims

1. An offline binding method for an in-vehicle NFC card key, characterized in that, Including the following steps: Receiving a card matching request sent by a user, and generating a card pasting reminder based on the card matching request; When it is detected that the user puts an NFC card into a target card reading area, reading the card information of the NFC card, and respectively performing vehicle-side verification and NFC card verification based on the card information and preset vehicle factory data; and After both the vehicle-side verification and the NFC card are successfully verified, deriving a service key of the NFC card, encrypting and transmitting the service key to the NFC card through a session key, and generating a card matching completion reminder, where The card information includes a card ID, a card chip ID, a card-terminal random number, a card counter, and an encrypted value of the card-terminal random number; The preset vehicle factory data includes a security chip ID, a pairing key dispersion factor, and a vehicle-terminal random number; The respectively performing vehicle-side verification and NFC card verification based on the card information and preset vehicle factory specified data includes: obtaining a derived key according to a preset key dispersion factor, and calculating a session key according to the derived key; decrypting the card counter and the card-terminal random number by using the session key to complete the vehicle-side verification; The respectively performing vehicle-side verification and NFC card verification based on the card information and preset vehicle factory specified data further includes: calculating a new session key by using the card-terminal random number and preset agreed data; sending the new session key and the preset agreed data to the NFC card to complete the NFC card verification after decrypting the new session key on the NFC card.

2. The method according to claim 1, wherein After both the vehicle-side verification and the NFC card are successfully verified, it further includes: Calculating a hash value of an encryption factor, and encrypting and transmitting it to the vehicle terminal by using a session key, and the vehicle terminal decrypts and verifies the hash value to complete the vehicle-side verification again.

3. An offline binding device for an in-vehicle NFC card key, characterized in that, Including: A receiving module, configured to receive a card matching request sent by a user, and generate a card pasting reminder based on the card matching request; A detection module, configured to, when it is detected that the user puts an NFC card into a target card reading area, read the card information of the NFC card, and respectively perform vehicle-side verification and NFC card verification based on the card information and preset vehicle factory data; and A binding module, configured to, after both the vehicle-side verification and the NFC card are successfully verified, derive a service key of the NFC card, encrypt and transmit the service key to the NFC card through a session key, and generate a card matching completion reminder, where The card information includes a card ID, a card chip ID, a card-terminal random number, a card counter, and an encrypted value of the card-terminal random number; The preset vehicle factory data includes a security chip ID, a pairing key dispersion factor, and a vehicle-terminal random number; The detection module is further configured to: obtain a derived key according to a preset key dispersion factor, and calculate a session key according to the derived key; decrypt the card counter and the card-terminal random number by using the session key to complete the vehicle-side verification; The detection module is further configured to: calculate a new session key by using the card-end random number and a preset agreed data; and send the new session key and the preset agreed data to the NFC card, so as to complete the verification of the NFC card after the NFC card decrypts the new session key.

4. A vehicle, characterized in that, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the offline binding method of the in-vehicle NFC card key according to any one of claims 1-2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the offline binding method of the in-vehicle NFC card key according to any one of claims 1-2.

Citation Information

Patent Citations

  • Vehicle and mobile terminal binding method and system

    CN113099457A

  • Vehicle-mounted NFC card key binding system and method

    CN114466357A