NFC car key registration method, vehicle-mounted Bluetooth module, vehicle-mounted NFC module and vehicle
Through the collaborative work of the vehicle Bluetooth module and the vehicle NFC module, the status and CA certificate of the NFC car key are automatically verified and stored, which solves the tedious problem of existing NFC car key registration, realizes an efficient automated registration process, and saves cost and time. .
Patent Information
- Application Number
- CN202310029625.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-01-09
AI Technical Summary
The existing NFC car key registration process is cumbersome and has a low degree of automation, resulting in high manpower and time costs and low efficiency.
Through the collaborative work between the vehicle Bluetooth module and the vehicle NFC module, it receives instructions from the diagnostic device to automatically verify the status of the NFC car key and the CA certificate, and stores the identification information after passing the verification to achieve automated registration.
It improves the automation of NFC car key registration, saves a lot of manpower and time costs, and improves the efficiency and stability of batch registration.
Smart Images

Figure CN116012987B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to an NFC vehicle key registration method, a vehicle-mounted Bluetooth module, a vehicle-mounted NFC module, a vehicle and a medium. Background Art
[0002] With the rapid development of vehicle technology, the intelligence of vehicles is gradually improving, and car keys are transitioning from physical keys to virtual keys. For example, NFC car keys can be used to replace physical keys to achieve keyless entry and keyless start of vehicles. Before the vehicle leaves the factory, the NFC car key needs to be registered on the vehicle side. However, in related technologies, NFC car key registration requires cumbersome operations and has a low degree of automation. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to propose a first NFC car key registration method, which has a high degree of automation, saves a lot of manpower and time costs, and improves the efficiency of batch NFC car key registration.
[0004] The second objective of the present invention is to provide a second NFC car key registration method.
[0005] The third objective of the present invention is to provide a vehicle-mounted Bluetooth module.
[0006] A fourth objective of the present invention is to provide a vehicle-mounted NFC module.
[0007] A fifth object of the present invention is to provide a computer-readable storage medium.
[0008] A sixth object of the present invention is to provide a vehicle.
[0009] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a first NFC car key registration method, which is applied to a vehicle-mounted Bluetooth module, and the method includes: after receiving a start learning instruction sent by a diagnostic device, generating a learning card request; sending the learning card request to the vehicle-mounted NFC module, wherein the learning card request is used to instruct the vehicle-mounted NFC module to obtain the identification information and status information of the NFC car key; when receiving the identification information and status information of the NFC car key, determining that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key, and generating a CA certificate acquisition request; sending the CA certificate acquisition request to the vehicle-mounted NFC module, wherein the CA certificate acquisition request is used to instruct the vehicle-mounted NFC module to obtain the CA certificate of the NFC car key; when receiving the CA certificate of the NFC car key, verifying the CA certificate of the NFC car key, and storing the identification information of the NFC car key when the verification passes.
[0010] According to the NFC car key registration method of an embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed to complete the NFC car key registration. The method has a high degree of automation, saves a lot of manpower and time costs, and improves the efficiency of batch NFC car key registration.
[0011] In some embodiments of the present invention, verifying the CA certificate of the NFC car key includes: determining encrypted information based on the CA certificate and a pre-generated first ciphertext; sending the encrypted information to the on-board NFC module, and receiving a second ciphertext sent by the on-board NFC module, wherein the second ciphertext is a ciphertext obtained after the NFC car key decrypts the encrypted information; matching the first ciphertext with the second ciphertext to verify the CA certificate of the NFC car key.
[0012] In some embodiments of the present invention, after storing the identification information of the NFC car key, the method further includes: when receiving a first key backup instruction sent by the diagnostic device, sending the identification information of the NFC car key to the on-board NFC module, so that the on-board NFC module stores the identification information of the NFC car key.
[0013] In some embodiments of the present invention, after sending the identification information of the NFC car key to the on-board NFC module, the method further includes: sending the execution result of the first key backup instruction to the diagnostic device so that the diagnostic device verifies the execution result.
[0014] To achieve the above-mentioned purpose, the second aspect embodiment of the present invention proposes a second NFC car key registration method, which is applied to a vehicle-mounted NFC module, and the method includes: when receiving a learning card request sent by a vehicle-mounted Bluetooth module, obtaining identification information and status information of the NFC car key; sending the identification information and status information of the NFC car key to the vehicle-mounted Bluetooth module, so that the vehicle-mounted Bluetooth module determines that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key, and generates a CA certificate acquisition request; when receiving the CA certificate acquisition request sent by the vehicle-mounted Bluetooth module, obtaining the CA certificate of the NFC car key; sending the CA certificate of the NFC car key to the vehicle-mounted Bluetooth module, so that the vehicle-mounted Bluetooth module verifies the CA certificate of the NFC car key, and when the verification passes, stores the identification information of the NFC car key.
[0015] According to the NFC car key registration method of an embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed to complete the NFC car key registration. The method has a high degree of automation, saves a lot of manpower and time costs, and improves the efficiency of batch NFC car key registration.
[0016] In some embodiments of the present invention, after sending the CA certificate of the NFC car key to the vehicle-mounted Bluetooth module, the method further includes: when receiving encrypted information sent by the vehicle-mounted Bluetooth module, sending the encrypted information to the NFC car key, wherein the encrypted information is determined based on the CA certificate and a pre-generated first ciphertext; when receiving a second ciphertext sent by the NFC car key, sending the second ciphertext to the vehicle-mounted Bluetooth module so that the vehicle-mounted Bluetooth module matches the first ciphertext with the second ciphertext to verify the CA certificate of the NFC car key, wherein the second ciphertext is the ciphertext obtained after the NFC car key decrypts the encrypted information.
[0017] In some embodiments of the present invention, after sending the CA certificate of the NFC car key to the in-vehicle Bluetooth module, the method further includes: storing the identification information of the NFC car key when receiving the identification information of the NFC car key sent by the in-vehicle Bluetooth module.
[0018] In some embodiments of the present invention, after storing the identification information of the NFC car key, the method further includes: when receiving a second key backup instruction sent by the diagnostic device, sending the identification information of the NFC car key to a newly installed vehicle-mounted Bluetooth module, so that the newly installed vehicle-mounted Bluetooth module stores the identification information of the NFC car key.
[0019] To achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes a vehicle-mounted Bluetooth module, which includes a memory, a processor, and an NFC car key registration program stored in the memory and runnable on the processor. When the processor executes the NFC car key registration program, the first NFC car key registration method described in any of the above embodiments is implemented.
[0020] The vehicle-mounted Bluetooth module according to the embodiment of the present invention can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration, with a high degree of automation, saving a lot of manpower and time costs, and improving the efficiency of batch NFC car key registration.
[0021] To achieve the above-mentioned purpose, an embodiment of the fourth aspect of the present invention proposes a vehicle-mounted NFC module, which includes a memory, a processor, and an NFC car key registration program stored in the memory and runnable on the processor. When the processor executes the NFC car key registration program, the second NFC car key registration method described in any of the above embodiments is implemented.
[0022] According to the on-board NFC module of the embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration, with a high degree of automation, saving a lot of manpower and time costs, and improving the efficiency of batch NFC car key registration.
[0023] To achieve the above objectives, a fifth aspect of the present invention proposes a computer-readable storage medium on which an NFC car key registration program is stored. When the NFC car key registration program is executed by a processor, the NFC car key registration method described in any of the above embodiments is implemented.
[0024] According to the computer-readable storage medium of an embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration. The degree of automation is high, a large amount of manpower and time costs are saved, and the efficiency of batch NFC car key registration is improved.
[0025] To achieve the above-mentioned purpose, a sixth embodiment of the present invention proposes a vehicle, the vehicle comprising an on-board Bluetooth module and an on-board NFC module, wherein the on-board Bluetooth module is used to generate a learning card request after receiving a start learning instruction sent by a diagnostic device, and send the learning card request to the on-board NFC module; the on-board NFC
[0026] module, for obtaining the identification information and status information of the NFC car key upon receiving the learning card request, and sending the identification information and status information of the NFC car key to the in-vehicle Bluetooth module; the in-vehicle Bluetooth module also
[0027] The vehicle-mounted NFC module is used to determine that the NFC vehicle key is a valid NFC vehicle key according to the identification information and status information of the NFC vehicle key when receiving the identification information and status information of the NFC vehicle key, and generate a CA certificate acquisition request; the vehicle-mounted NFC module is also used to acquire the CA certificate of the NFC vehicle key when receiving the CA certificate acquisition request.
[0028] The vehicle-mounted Bluetooth module is further used to verify the CA certificate of the NFC car key when receiving the CA certificate of the NFC car key, and to
[0029] When the verification is successful, the identification information of the NFC car key is stored.
[0030] According to the vehicle of the embodiment of the present invention, the vehicle-mounted Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the NFC car key after the verification is passed.
[0031] The key identification information can complete the NFC car key registration, which has a high degree of automation, saves a lot of manpower and time costs, and improves the efficiency of batch NFC car key registration.
[0032] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and / or additional aspects and advantages of the present application will become apparent from the description of the embodiments in conjunction with the following drawings.
[0034] and easy to understand, where:
[0035] Figure 1-Figure 11 It is a flowchart of the NFC car key registration method according to an embodiment of the present invention;
[0036] Fig.12 is a structural block diagram of a vehicle-mounted Bluetooth module according to an embodiment of the present invention;
[0037] Fig.13 is a structural block diagram of a vehicle-mounted NFC module according to an embodiment of the present invention;
[0038] Fig.14 4 is a structural block diagram of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar
[0040] Like reference numerals represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and intended to be used to explain the present invention, but should not be construed as limiting the present invention.
[0041] The following describes an NFC car key registration method, a vehicle-mounted Bluetooth module, a vehicle-mounted NFC module, a vehicle, and a medium according to an embodiment of the present invention with reference to the accompanying drawings.
[0042] Figure 1 FIG. 1 is a flow chart of a first NFC car key registration method according to an embodiment of the present invention. The first NFC car key registration method is applied to a vehicle-mounted Bluetooth module, such as Figure 1 As shown, the first NFC car key registration method of the embodiment of the present invention includes:
[0043] S11: after receiving the start learning instruction sent by the diagnostic device, generating a learning card request;
[0044] S12: Sending a learning card request to the on-board NFC module, wherein the learning card request is used to instruct the on-board NFC module to obtain identification information and status information of the NFC car key;
[0045] S13: upon receiving the identification information and status information of the NFC car key, determining that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key, and generating a CA certificate acquisition request;
[0046] S14: Sending a CA certificate acquisition request to the vehicle-mounted NFC module, wherein the CA certificate acquisition request is used to instruct the vehicle-mounted NFC module to acquire the CA certificate of the NFC car key;
[0047] S15: When the CA certificate of the NFC car key is received, the CA certificate of the NFC car key is verified, and when the verification passes, the identification information of the NFC car key is stored.
[0048] According to the NFC car key registration method of an embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed to complete the NFC car key registration. The method has a high degree of automation, saves a lot of manpower and time costs, and improves the efficiency of batch NFC car key registration.
[0049] It is understandable that if the NFC car key is registered by placing an unregistered NFC car key close to the vehicle-mounted NFC module, connecting to the vehicle-mounted Bluetooth module through the APP on the mobile terminal, and then manually operating on the APP interface, before the vehicle leaves the factory, due to mass production, each car will be operated in this way, which will result in extremely low efficiency and prone to errors, and will require a lot of manpower and time costs. In addition, this method also requires the mobile phone to be connected to the vehicle-mounted Bluetooth module via Bluetooth. Once the Bluetooth signal is interrupted during the registration process, it will cause registration failure and poor stability.
[0050] In the NFC car key registration method of the embodiment of the present invention, the service instructions for NFC car key registration are pre-set in the diagnostic service program of the diagnostic device, and the diagnostic device is connected to the vehicle network by wire through the vehicle's OBD diagnostic port. Since the vehicle-mounted Bluetooth module is also connected to the vehicle network by wire, the NFC car key registration of the vehicle-mounted Bluetooth module can be automatically realized by calling the program of the diagnostic device, and the degree of automation, stability and reliability are high. In addition, since the service instructions for NFC car key registration are set on the diagnostic device, the NFC car key registration can be completed together with the electrical inspection of other vehicle controllers during the electrical inspection of the production line, without the need for separate operations, saving work time.
[0051] Specifically, the diagnostic device may include a diagnostic instrument. The vehicle-mounted Bluetooth module may include an Intelligent Bluetooth module (IBTM). The vehicle-mounted NFC module may include an internal NFC reader or an external NFC reader, the internal NFC reader may be integrated in a wireless charging module (WPC), and the external NFC reader may be installed on the external B-pillar of the vehicle. It is understood that before the NFC car key registration begins and during the registration process, the NFC car key needs to be placed close to the internal NFC reader or the external NFC reader. The antennas in the internal NFC reader and the external NFC reader can sense the NFC car key when the NFC car key is close, and exchange information. After the NFC car key registration is completed, when the NFC car key is placed close to the external NFC reader again, the door can be unlocked to enter the vehicle; when the NFC car key is placed close to the internal NFC reader again, the vehicle can be started. In one example, both the internal NFC reader and the external NFC reader are connected to the intelligent Bluetooth module via a CAN bus, and the intelligent Bluetooth module serves as a logic processing module for the NFC car key.
[0052] Furthermore, the start learning instruction may include a character string (such as 31 01 04 00). When the vehicle-mounted Bluetooth module receives the start learning instruction, it can register an NFC car key. When the vehicle-mounted Bluetooth module completes the NFC car key, if it receives the start learning instruction again, it can register another NFC car key.
[0053] The identification information of the NFC car key may include UID (User Identification) information. The status information of the NFC car key may include the registration status. The vehicle-mounted Bluetooth module can determine whether the current NFC car key is an unregistered key and whether the current NFC car key is a blank key based on the identification information and status information of the NFC car key. Then, when the current NFC car key is an unregistered key and the current NFC car key is a non-blank key, it is determined that the current NFC car key is a valid NFC car key, and the subsequent registration steps can be performed.
[0054] The NFC car key stores the CA certificate, which can be downloaded from the server at the OEM production line and flashed into the NFC car key in advance.
[0055] After the vehicle-mounted Bluetooth module stores the identification information of the NFC car key, the diagnostic instrument can prompt that the NFC car key registration on the vehicle-mounted Bluetooth module has been completed. At this time, place the NFC car key close to the internal NFC card reader. If the vehicle starts, it can be determined that the NFC car key registration on the vehicle-mounted Bluetooth module has been successfully completed.
[0056] It should be pointed out that during the NFC car key registration process, the on-board NFC module only plays the role of transparent transmission of information between the NFC car key and the on-board Bluetooth module. During the NFC car key registration process, the on-board NFC module will not store the identification information of the NFC car key. After the NFC car key registration is completed, the identification information of the NFC car key is sent to the on-board Bluetooth module through the transparent transmission of the on-board NFC module. The on-board Bluetooth module records and saves the identification information of the NFC car key.
[0057] Please combine Figure 2 In some embodiments of the present invention, step S15 includes:
[0058] S151: Determine encryption information according to the CA certificate and the pre-generated first ciphertext;
[0059] S152: Send the encrypted information to the vehicle-mounted NFC module, and receive a second ciphertext sent by the vehicle-mounted NFC module, wherein the second ciphertext is a ciphertext obtained after the NFC vehicle key decrypts the encrypted information;
[0060] S153: Match the first ciphertext with the second ciphertext to verify the CA certificate of the NFC car key.
[0061] In this way, the NFC car key is further verified to ensure that the current communicating parties are the NFC car key and the car Bluetooth module, to prevent interference from other signals and to improve security and reliability.
[0062] Specifically, the CA certificate may include a public key. The first ciphertext is pre-generated by the vehicle-mounted Bluetooth module. The public key in the CA certificate may be used to asymmetrically encrypt the first ciphertext to obtain encrypted information. After receiving the encrypted information, the NFC car key may use its own private key to decrypt the encrypted information to obtain the second ciphertext. The process is as follows: Figure 3 As shown. The decryption algorithm may include an AES128 algorithm. If the first ciphertext is consistent with the second ciphertext, the verification is successful, and the vehicle-mounted Bluetooth module stores the identification information of the NFC car key, completing the registration of the current NFC car key.
[0063] Please combine Figure 4 In some embodiments of the present invention, after step S15, the method further includes:
[0064] S16: When receiving the first key backup instruction sent by the diagnostic device, the identification information of the NFC car key is sent to the on-board NFC module, so that the on-board NFC module stores the identification information of the NFC car key.
[0065] It can be understood that after the NFC car key is successfully registered, the identification information of the NFC car key is backed up and saved in the vehicle-mounted NFC module. If the NFC car key is not successfully registered, it is not backed up. In this way, it is convenient for the subsequent vehicle-mounted NFC module to quickly identify whether the NFC car key being approached is a registered key, reducing the amount of calculation of the vehicle-mounted Bluetooth module.
[0066] Specifically, please combine Figure 5 In some embodiments, after the vehicle-mounted Bluetooth module stores the identification information of the NFC car key, the diagnostic device first sends a first identification reading instruction (such as 22 02 33) to the vehicle-mounted Bluetooth module. After receiving the first identification reading instruction, the vehicle-mounted Bluetooth module sends the stored identification information of the NFC car key to the diagnostic device. After receiving the identification information of the NFC car key sent by the vehicle-mounted Bluetooth module, the diagnostic device sends a first key backup instruction (such as 3101 04 05) to the vehicle-mounted Bluetooth module. When the vehicle-mounted Bluetooth module receives the first key backup instruction, it sends the identification information of the NFC car key to the vehicle-mounted NFC module, so that the vehicle-mounted NFC module stores the identification information of the NFC car key.
[0067] It should be pointed out that when receiving the first key backup instruction sent by the diagnostic device, the vehicle-mounted Bluetooth module will send the identification information of all stored NFC car keys to the vehicle-mounted NFC module, instead of only sending the identification information of one NFC car key to the vehicle-mounted NFC module each time the first key backup instruction is received.
[0068] Please combine Figure 6 In some embodiments of the present invention, after step S16, the method further includes:
[0069] S17: Sending the execution result of the first key backup instruction to the diagnostic device, so that the diagnostic device verifies the execution result.
[0070] Specifically, please continue to combine Figure 5 In some embodiments, after sending the identification information of the NFC car key to the on-board NFC module, the on-board Bluetooth module also sends the execution result of the first key backup instruction to the diagnostic device. If the execution result is a successful backup, that is, the on-board Bluetooth module believes that the on-board NFC module has stored the identification information of the NFC car key, the diagnostic device sends a second identification reading instruction (such as 22 02 34) to the on-board Bluetooth module. After receiving the second identification reading instruction, the on-board Bluetooth module obtains the identification information of the NFC car key stored in the on-board NFC module, and sends the obtained identification information of the NFC car key to the diagnostic device. The diagnostic device verifies whether the on-board NFC module has indeed successfully stored the identification information of the NFC car key.
[0071] Furthermore, the diagnostic device may output the execution result of the first key backup instruction and / or the verification result of the execution result for the operator to view.
[0072] It should be noted that the diagnostic device reads data but does not store it. The process of backing up the identification information of the NFC car key to the internal NFC card reader is the same as the process of backing up the identification information of the NFC car key to the external NFC card reader, but the related instructions are slightly different. For example, the first key backup instruction when backing up the identification information of the NFC car key to the external NFC card reader is 31 01 04 05, and the first key backup instruction when backing up the identification information of the NFC car key to the internal NFC card reader is 31 01 04 06.
[0073] Figure 7 FIG. 1 is a flow chart of a second NFC car key registration method according to an embodiment of the present invention. The second NFC car key registration method is applied to a vehicle-mounted NFC module, such as Figure 7 As shown, the second NFC car key registration method of the embodiment of the present invention includes:
[0074] S21: upon receiving a learning card request sent by the vehicle-mounted Bluetooth module, obtaining identification information and status information of the NFC vehicle key;
[0075] S22: sending the identification information and status information of the NFC car key to the in-vehicle Bluetooth module, so that the in-vehicle Bluetooth module determines that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key, and generates a CA certificate acquisition request;
[0076] S23: upon receiving a CA certificate acquisition request sent by the vehicle-mounted Bluetooth module, acquiring the CA certificate of the NFC vehicle key;
[0077] S24: Send the CA certificate of the NFC car key to the vehicle-mounted Bluetooth module so that the vehicle-mounted Bluetooth module verifies the CA certificate of the NFC car key and stores the identification information of the NFC car key when the verification is successful.
[0078] According to the NFC car key registration method of an embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed to complete the NFC car key registration. The method has a high degree of automation, saves a lot of manpower and time costs, and improves the efficiency of batch NFC car key registration.
[0079] It should be pointed out that the above explanation of the embodiment and beneficial effects of the first NFC car key registration method is also applicable to the NFC car key registration method of the embodiment of the present invention. To avoid redundancy, it will not be elaborated here.
[0080] Please combine Figure 8 In some embodiments of the present invention, after step S24, the method further includes:
[0081] S25: When receiving the encrypted information sent by the vehicle-mounted Bluetooth module, sending the encrypted information to the NFC vehicle key, wherein the encrypted information is determined according to the CA certificate and the pre-generated first ciphertext;
[0082] S26: When receiving the second ciphertext sent by the NFC car key, the second ciphertext is sent to the vehicle-mounted Bluetooth module so that the vehicle-mounted Bluetooth module matches the first ciphertext with the second ciphertext to verify the CA certificate of the NFC car key, wherein the second ciphertext is the ciphertext obtained after the NFC car key decrypts the encrypted information.
[0083] In this way, it is convenient for the in-vehicle Bluetooth module to further verify the NFC car key, ensuring that the current communicating parties are the NFC car key and the in-vehicle Bluetooth module, preventing interference from other signals, and improving safety and reliability.
[0084] Please combine Fig. 9 In some embodiments of the present invention, after step S24, the method further includes:
[0085] S27: When the identification information of the NFC car key sent by the vehicle-mounted Bluetooth module is received, the identification information of the NFC car key is stored.
[0086] In this way, the identification information of the NFC car key is backed up to the on-board NFC module, so that the subsequent on-board NFC module can quickly identify whether the NFC car key being approached is a registered key, thereby reducing the computational workload of the on-board Bluetooth module.
[0087] Specifically, in some embodiments, after the identification information of the NFC car key is stored, the storage result is sent to the vehicle-mounted Bluetooth module, so that the vehicle-mounted Bluetooth module learns the execution result of the first key backup instruction.
[0088] It can be understood that after the on-board NFC module stores the identification information of the NFC car key, when the NFC car key is close to the on-board NFC module again, the on-board NFC module can identify whether the currently close NFC car key is a registered key. Then, when it is identified that the currently close NFC car key is a registered key, the on-board NFC module can send the valid information of the car key to the on-board Bluetooth module, so that the on-board Bluetooth module can quickly perform controls such as unlocking the car door or starting the engine.
[0089] Please combine Fig.10 In some embodiments of the present invention, after step S27, the method further includes:
[0090] S28: When receiving the second key backup instruction sent by the diagnostic device, the identification information of the NFC car key is sent to the newly installed vehicle-mounted Bluetooth module, so that the newly installed vehicle-mounted Bluetooth module stores the identification information of the NFC car key.
[0091] It is understandable that during the use of the vehicle, the on-board Bluetooth module may need to be replaced due to a fault. At this time, the newly installed on-board Bluetooth module does not store the identification information of the NFC car key because it did not participate in the NFC car key registration before leaving the factory. Therefore, after the on-board Bluetooth module is replaced, the identification information of the NFC car key stored in the on-board NFC module is backed up to the newly installed on-board Bluetooth module, which can facilitate the newly installed on-board Bluetooth module to recognize the NFC car key.
[0092] Specifically, please combine Fig.11 In some embodiments, after the on-board NFC module stores the identification information of the NFC car key, if the on-board Bluetooth module is replaced, the diagnostic device first sends a third identification reading instruction (such as 22 02 01) to the on-board NFC module. After receiving the third identification reading instruction, the on-board NFC module sends the stored identification information of the NFC car key to the diagnostic device. After receiving the identification information of the NFC car key sent by the on-board NFC module, the diagnostic device sends a second key backup instruction (such as 31 01 04XX) to the on-board NFC module. When receiving the second key backup instruction, the on-board NFC module sends the identification information of the NFC car key to the newly installed on-board Bluetooth module, so that the newly installed on-board Bluetooth module stores the identification information of the NFC car key. The on-board NFC module also sends the execution result of the second key backup instruction to the diagnostic device. If the execution result of the second key backup instruction is that the backup is successful, that is, the on-board NFC module believes that the newly installed on-board Bluetooth module has stored the identification information of the NFC car key, the diagnostic device sends a fourth identification reading instruction (such as 22 02 33) to the newly installed on-board Bluetooth module. After receiving the fourth identification reading instruction, the newly installed on-board Bluetooth module sends the stored identification information of the NFC car key to the diagnostic device. The diagnostic device verifies whether the on-board NFC module has indeed successfully stored the identification information of the NFC car key.
[0093] In some embodiments, upon receiving the second key backup instruction sent by the diagnostic device, the vehicle-mounted NFC module will send the identification information of all stored NFC car keys to the newly installed vehicle-mounted Bluetooth module, instead of only sending the identification information of one NFC car key to the newly installed vehicle-mounted Bluetooth module each time the second key backup instruction is received.
[0094] In order to implement the above embodiment, the embodiment of the present invention further proposes a vehicle-mounted Bluetooth module. Fig.12 is a structural block diagram of the vehicle-mounted Bluetooth module of an embodiment of the present invention. Fig.12 As shown, the vehicle-mounted Bluetooth module 100 includes a memory 102, a processor 104, and an NFC car key registration program 106 stored in the memory 102 and executable on the processor 104. When the processor 104 executes the NFC car key registration program 106, the first NFC car key registration method of any of the above embodiments is implemented.
[0095] According to the vehicle-mounted Bluetooth module 100 of the embodiment of the present invention, the vehicle-mounted Bluetooth module 100 can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration, with a high degree of automation, saving a lot of manpower costs and time costs, and improving the efficiency of batch NFC car key registration.
[0096] It should be noted that the above explanation of the embodiment and beneficial effects of the first NFC car key registration method is also applicable to the vehicle-mounted Bluetooth module 100 of the embodiment of the present invention, and will not be elaborated here in detail to avoid redundancy.
[0097] In order to implement the above embodiment, the embodiment of the present invention further proposes a vehicle-mounted NFC module. Fig.13 is a structural block diagram of the vehicle-mounted NFC module of an embodiment of the present invention. Fig.13 As shown, the vehicle-mounted NFC module 200 includes a memory 202, a processor 204, and an NFC car key registration program 206 stored in the memory 202 and executable on the processor 204. When the processor 204 executes the NFC car key registration program 206, the second NFC car key registration method of any of the above embodiments is implemented.
[0098] According to the vehicle-mounted NFC module 200 of the embodiment of the present invention, the vehicle-mounted Bluetooth module 100 can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration, with a high degree of automation, saving a lot of manpower and time costs, and improving the efficiency of batch NFC car key registration.
[0099] It should be noted that the above explanation of the embodiment and beneficial effects of the second NFC car key registration method is also applicable to the vehicle-mounted NFC module 200 of the embodiment of the present invention, and will not be elaborated here in order to avoid redundancy.
[0100] In order to implement the above embodiments, the embodiments of the present invention further propose a computer-readable storage medium on which an NFC car key registration program is stored. When the NFC car key registration program is executed by a processor, the NFC car key registration method described in any of the above embodiments is implemented.
[0101] According to the computer-readable storage medium of an embodiment of the present invention, the on-board Bluetooth module can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration. The degree of automation is high, a large amount of manpower and time costs are saved, and the efficiency of batch NFC car key registration is improved.
[0102] It should be pointed out that the above explanation of the embodiment and beneficial effects of the NFC car key registration method is also applicable to the computer-readable medium of the embodiment of the present invention, and will not be elaborated here in order to avoid redundancy.
[0103] In order to implement the above embodiment, the embodiment of the present invention further provides a vehicle, Fig.14 is a structural block diagram of a vehicle according to an embodiment of the present invention. Fig.14 As shown, the vehicle 1000 includes an on-board Bluetooth module 100 and an on-board NFC module 200, wherein the on-board Bluetooth module 100 is used to generate a learning card request after receiving a start learning instruction sent by the diagnostic device, and send the learning card request to the on-board NFC module 200; the on-board NFC module 200 is used to obtain the identification information and status information of the NFC car key when receiving the learning card request, and send the identification information and status information of the NFC car key to the on-board Bluetooth module 100; the on-board Bluetooth module 100 is also used to determine that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key when receiving the identification information and status information of the NFC car key, and generate a CA certificate acquisition request; the on-board NFC module 200 is also used to obtain the CA certificate of the NFC car key when receiving the CA certificate acquisition request, and send the CA certificate of the NFC car key to the on-board Bluetooth module 100; the on-board Bluetooth module 100 is also used to verify the CA certificate of the NFC car key when receiving the CA certificate of the NFC car key, and store the identification information of the NFC car key when the verification passes.
[0104] According to the vehicle 1000 of the embodiment of the present invention, the vehicle-mounted Bluetooth module 100 can automatically verify the status of the NFC car key and the CA certificate of the NFC car key after receiving the start learning instruction sent by the diagnostic device, and store the identification information of the NFC car key after the verification is passed, thereby completing the NFC car key registration, with a high degree of automation, saving a lot of manpower and time costs, and improving the efficiency of batch NFC car key registration.
[0105] It should be pointed out that the above explanation of the embodiment and beneficial effects of the NFC car key registration method are also applicable to the vehicle 1000 of the embodiment of the present invention, and will not be elaborated here in order to avoid redundancy.
[0106] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0107] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of 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, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0108] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0109] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0110] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A NFC car key registration method, characterized in that: Applied to a vehicle-mounted Bluetooth module, the method comprises: After receiving the start learning instruction sent by the diagnostic device, a learning card request is generated; Sending the learning card request to the on-board NFC module, wherein the learning card request is used to instruct the on-board NFC module to obtain identification information and status information of the NFC car key; When the identification information and status information of the NFC car key are received, determining that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key, and generating a CA certificate acquisition request; Sending the CA certificate acquisition request to the on-board NFC module, wherein the CA certificate acquisition request is used to instruct the on-board NFC module to acquire the CA certificate of the NFC car key; When the CA certificate of the NFC car key is received, the CA certificate of the NFC car key is verified, and when the verification passes, the identification information of the NFC car key is stored.
2. The NFC car key registration method according to claim 1, characterized in that: The verifying the CA certificate of the NFC car key includes: Determine encryption information according to the CA certificate and a pre-generated first ciphertext; Sending the encrypted information to the on-board NFC module, and receiving a second ciphertext sent by the on-board NFC module, wherein the second ciphertext is a ciphertext obtained after the NFC car key decrypts the encrypted information; The first ciphertext is matched with the second ciphertext to verify the CA certificate of the NFC vehicle key.
3. The NFC car key registration method according to claim 1, characterized in that: After storing the identification information of the NFC vehicle key, the method further includes: When the first key backup instruction sent by the diagnostic device is received, the identification information of the NFC car key is sent to the on-board NFC module, so that the on-board NFC module stores the identification information of the NFC car key.
4. The NFC car key registration method according to claim 3, characterized in that: After sending the identification information of the NFC car key to the vehicle-mounted NFC module, the method further includes: The execution result of the first key backup instruction is sent to the diagnostic device, so that the diagnostic device verifies the execution result.
5. A NFC car key registration method, characterized in that: Applied to a vehicle-mounted NFC module, the method comprises: Upon receiving a learning card request sent by the vehicle-mounted Bluetooth module, obtaining identification information and status information of the NFC vehicle key, wherein the learning card request is generated by the vehicle-mounted Bluetooth module after receiving a start learning instruction sent by the diagnostic device; Sending the identification information and status information of the NFC car key to the in-vehicle Bluetooth module, so that the in-vehicle Bluetooth module determines that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key, and generates a CA certificate acquisition request; Upon receiving the CA certificate acquisition request sent by the vehicle-mounted Bluetooth module, acquiring the CA certificate of the NFC car key; The CA certificate of the NFC car key is sent to the in-vehicle Bluetooth module so that the in-vehicle Bluetooth module verifies the CA certificate of the NFC car key and stores the identification information of the NFC car key when the verification is successful.
6. The NFC car key registration method according to claim 5, characterized in that: After sending the CA certificate of the NFC car key to the vehicle-mounted Bluetooth module, the method further includes: When receiving the encrypted information sent by the vehicle-mounted Bluetooth module, sending the encrypted information to the NFC vehicle key, wherein the encrypted information is determined according to the CA certificate and a pre-generated first ciphertext; When receiving the second ciphertext sent by the NFC car key, the second ciphertext is sent to the vehicle-mounted Bluetooth module so that the vehicle-mounted Bluetooth module matches the first ciphertext with the second ciphertext to verify the CA certificate of the NFC car key, wherein the second ciphertext is the ciphertext obtained after the NFC car key decrypts the encrypted information.
7. The NFC car key registration method according to claim 5, characterized in that: After sending the CA certificate of the NFC car key to the vehicle-mounted Bluetooth module, the method further includes: When the identification information of the NFC car key sent by the vehicle-mounted Bluetooth module is received, the identification information of the NFC car key is stored.
8. The NFC car key registration method according to claim 7, characterized in that: After storing the identification information of the NFC vehicle key, the method further includes: When the second key backup instruction sent by the diagnostic device is received, the identification information of the NFC car key is sent to the newly installed vehicle-mounted Bluetooth module, so that the newly installed vehicle-mounted Bluetooth module stores the identification information of the NFC car key.
9. A vehicle-mounted Bluetooth module, characterized in that: The invention comprises a memory, a processor and an NFC car key registration program stored in the memory and executable on the processor. When the processor executes the NFC car key registration program, the NFC car key registration method according to any one of claims 1 to 4 is implemented.
10. A vehicle-mounted NFC module, characterized in that: The invention comprises a memory, a processor and an NFC car key registration program stored in the memory and executable on the processor. When the processor executes the NFC car key registration program, the NFC car key registration method described in any one of claims 5 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: An NFC car key registration program is stored thereon, and when the NFC car key registration program is executed by the processor, the NFC car key registration method according to any one of claims 1 to 8 is implemented.
12. A vehicle, characterized in that: Including vehicle-mounted Bluetooth module and vehicle-mounted NFC module, among which, The vehicle-mounted Bluetooth module is used to generate a learning card request after receiving a start learning instruction sent by the diagnostic device, and send the learning card request to the vehicle-mounted NFC module; The vehicle-mounted NFC module is used to obtain the identification information and status information of the NFC car key when receiving the learning card request, and send the identification information and status information of the NFC car key to the vehicle-mounted Bluetooth module; The vehicle-mounted Bluetooth module is further used to determine that the NFC car key is a valid NFC car key according to the identification information and status information of the NFC car key when receiving the identification information and status information of the NFC car key, and generate a CA certificate acquisition request; The vehicle-mounted NFC module is further configured to obtain the CA certificate of the NFC vehicle key upon receiving the CA certificate acquisition request, and send the CA certificate of the NFC vehicle key to the vehicle-mounted Bluetooth module; The vehicle-mounted Bluetooth module is also used to verify the CA certificate of the NFC car key when the CA certificate of the NFC car key is received, and store the identification information of the NFC car key when the verification is successful.
