An automobile key production line pairing method and system
By using the safety checksum command trigger of the diagnostic instrument and NFC module on the automotive production line, real-time pairing of NFC card keys is achieved, solving the problem of ineffective inspection and increase costs in the prior art, and improving production efficiency and key reliability.
Patent Information
- Application Number
- CN202211594418.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-12-13
AI Technical Summary
In the prior art, NFC card car keys cannot be effectively functionally inspected on the production line, resulting in possible problems when leaving the factory and additional costs are added.
The card is identified through the NFC master module and the slave module, and the safety checksum command is triggered on the production line by using the automotive diagnostic instrument, so that the NFC master module enters the learning mode, generates and writes the card key, and realizes real-time pairing of the card key.
Complete the learning pairing of NFC card keys on the basis of existing equipment, reducing additional equipment costs and improving the reliability and production efficiency of factory keys.
Smart Images

Figure CN116129561B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automotive intelligent networking, and particularly to a method and system for pairing automotive key production lines. Background Art
[0002] The statements in this section only mention the background art related to the present invention and do not necessarily constitute prior art.
[0003] Currently, with the development of automotive intelligent networking and the advancement of digitalization, automotive intelligent keys are gradually evolving from traditional keys to diversification. For example, Bluetooth car keys, NFC car keys widely used in some regions, and gradually emerging UWB keys, etc. The diversification and convenience of forms bring new enjoyment to users. Among them, the NFC card automotive key implemented through NFC non-contact technology, as a new, lightweight and low-cost key form, is favored by more and more vehicle manufacturers, especially new energy vehicle manufacturers, and is continuously applied in many vehicle models.
[0004] Currently, vehicle manufacturers have different methods for how NFC keys learn and pair to become a unique key for a vehicle. Some are completed by after-sales sales personnel, some allow users to complete through a certain channel by themselves, and some add additional networking devices on the production line to perform online pairing of NFC keys. These methods either cannot verify the effectiveness of functions at the time of factory production or are time-consuming and laborious, increasing the additional costs of the production line and 4S stores. Summary of the Invention
[0005] To solve the deficiencies of the prior art, the present invention provides a method and system for pairing automotive key production lines; the present invention introduces a method of identifying a card through an NFC main module and an NFC slave module, performing a security check through an automotive diagnostic instrument on the vehicle manufacturer's production line and triggering an instruction for the NFC main module to enter the learning mode, so that the NFC main module actively performs real-time learning and pairing on the NFC card, enabling the vehicle to complete the learning and pairing function of the NFC card key only through existing equipment during workshop production, and the pairing will take effect as a key in the production workshop.
[0006] In the first aspect, the present invention provides a method for pairing automotive key production lines;
[0007] A method for pairing automotive key production lines includes:
[0008] The vehicle is powered on, the vehicle's CAN network wakes up the NFC main module, and the NFC main module wakes up the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range;
[0009] The vehicle diagnostic instrument accesses the on-vehicle diagnostic system OBD interface. The vehicle diagnostic instrument sends an extended session instruction to the NFC main module. The NFC main module switches to the extended session mode. The vehicle diagnostic instrument sends a security authentication instruction to the NFC main module, and security authentication is completed between the vehicle diagnostic instrument and the NFC main module;
[0010] The vehicle diagnostic instrument sends a start learning command to the NFC main module, and the NFC main module forwards the start learning command to the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC main module;
[0011] After the NFC main module receives the message that the card has entered the field, the NFC main module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module to complete the pairing of the vehicle key.
[0012] In a second aspect, the present invention provides a vehicle key production line pairing system;
[0013] A vehicle key production line pairing system includes: a vehicle diagnostic instrument, a vehicle off the production line, an NFC main module, an NFC slave module, and an NFC card;
[0014] The vehicle CAN network of the whole vehicle wakes up the NFC main module, and the NFC main module wakes up the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range;
[0015] The vehicle diagnostic instrument accesses the on-vehicle diagnostic system OBD interface. The vehicle diagnostic instrument sends an extended session instruction to the NFC main module. The NFC main module switches to the extended session mode. The vehicle diagnostic instrument sends a security authentication instruction to the NFC main module, and security authentication is completed between the vehicle diagnostic instrument and the NFC main module;
[0016] The vehicle diagnostic instrument sends a start learning command to the NFC main module, and the NFC main module forwards the start learning command to the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC main module;
[0017] After the NFC main module receives the message that the card has entered the field, the NFC main module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module to complete the pairing of the vehicle key.
[0018] Compared with the prior art, the beneficial effects of the present invention are:
[0019] Based on the industry status quo, the present invention proposes a method and system for pairing NFC card keys with low cost and easy operation. This solution is based on the existing production line automotive diagnostic instrument of the host factory. By manually operating the automotive diagnostic instrument to send diagnostic commands, after completing a series of standard instructions and security verifications with the NFC main module, on the premise of ensuring security, the NFC main module is triggered to enter the learning mode. After the NFC slave module initially determines that a legal card has entered the factory, the NFC main module reads the NFC card CARDSEID through the NFC slave module in a transparent manner. The main module generates a card key through key dispersion using the module master key, dispersion factor stored in the internal SE, and the read CARDSEID, and writes the card key into the NFC card through the NFC slave module, thus completing the learning and pairing of the NFC card key on the production line. In this way, it is not necessary to deploy external devices on the production line to increase additional costs, and functional testing can be completed on the production line, reducing the probability of problems occurring after-sales. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The specification drawings forming a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention.
[0021] Figure 1 It is a system composition relationship diagram;
[0022] Figure 2 It is a method flow chart of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs.
[0024] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0025] In the case of no conflict, the embodiments in the present invention and the features in the embodiments may be combined with each other.
[0026] The acquisition of all data in this embodiment is based on compliance with laws, regulations, and user consent, and is a legal application of the data.
[0027] Explanation of each module term
[0028] 1. NFC communication main module: Usually installed inside the vehicle rearview mirror or the B-pillar trim, it is responsible for external security authentication with smartphones / NFC cards, and internally connects to nodes such as BDM and DMC through the CAN bus, and conducts CAN communication with the NFC slave module through a private CAN; NFC stands for Near Field Communication, and its full English name is Near Field Communication; BDM stands for Body Domain Module, and its full English name is Body Domain Module.
[0029] 2. NFC slave module: Usually installed inside the vehicle's center console's lower instrument panel or integrated with the wireless charging module, it communicates with the main module through a private CAN, and is responsible for reading the ID and key information of smartphones / NFC cards and transmitting them to the main module for security authentication.
[0030] 3. NFC card: A vehicle-mounted card key, which is responsible for NFC communication with the NFC main and slave modules through APDU commands.
[0031] 4. Vehicle OBD port: A standard system interface installed on the vehicle to allow external electronic devices to connect to the in-vehicle network. Among them, OBD stands for On-Board-Diagnostics, and its full English name is On-Board-Diagnostics.
[0032] 5. Vehicle diagnostic instrument: A professional instrument or production line equipment for vehicle detection, which can detect the vehicle by connecting to the vehicle's standard OBD port, and at the same time send standard diagnostic commands to execute some defined functional operations.
[0033] 6. Near Field Communication (NFC) is a short-range, high-frequency radio technology that operates within a 20-centimeter distance at a frequency of 13.56 MHz. Its transmission speed has three types: 106 Kbit / second, 212 Kbit / second, or 424 Kbit / second.
[0034] Embodiment 1
[0035] This embodiment provides a method for pairing automotive keys in a production line.
[0036] As Figure 2 shown, a method for pairing automotive keys in a production line includes:
[0037] S101: Power on the vehicle, wake up the NFC master module through the vehicle's CAN network, and the NFC master module wakes up the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range;
[0038] S102: Connect an automotive diagnostic instrument to the on-vehicle diagnostic system OBD interface, the automotive diagnostic instrument sends an extended session instruction to the NFC master module, the NFC master module switches to the extended session mode, the automotive diagnostic instrument sends a security authentication instruction to the NFC master module, and security authentication is completed between the automotive diagnostic instrument and the NFC master module;
[0039] S103: The automotive diagnostic instrument sends a start learning command to the NFC master module, and the NFC master module forwards the start learning command to the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC master module;
[0040] S104: After the NFC master module receives the message that the card has entered the field, the NFC master module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module to complete the pairing of the vehicle key.
[0041] Exemplarily, S101: Power on the vehicle, wake up the NFC master module through the vehicle's CAN network, and the NFC master module wakes up the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range, specifically including:
[0042] When the vehicle in the OEM final assembly workshop moves along the assembly line to the electrical inspection station, the worker normally powers on the vehicle (i.e., the vehicle is in the ON gear). At this time, the NFC master module already installed in the vehicle's rearview mirror or the B-pillar trim is woken up by the vehicle's CAN network and enters the working mode. At the same time, the master module sends a wake-up instruction to the NFC slave module through the private CAN line, and the NFC slave module wakes up and starts periodic card searching (period 200 ms - 300 ms).
[0043] Further, in S102, the automotive diagnostic instrument sends an extended session instruction to the NFC master module, the NFC master module switches to the extended session mode, the automotive diagnostic instrument sends a security authentication instruction to the NFC master module, and security authentication is completed between the automotive diagnostic instrument and the NFC master module, specifically including:
[0044] The automotive diagnostic instrument sends a command to enter the extended session to the NFC master module. After the NFC master module receives the command, it switches to the extended session mode. After the mode switching is completed, the NFC master module sends a positive response to the automotive diagnostic instrument;
[0045] After the vehicle diagnostic instrument receives an affirmative response, the vehicle diagnostic instrument sends a security authentication instruction to the NFC main module. The NFC main module receives and responds to the security authentication instruction, adds a random number to the feedback result of the security authentication instruction, and then returns it to the vehicle diagnostic instrument;
[0046] The vehicle diagnostic instrument uses a pre-defined encryption algorithm to perform encryption calculations on the random number, and feeds back the result of the random number encryption calculation to the NFC main module. The NFC main module receives the encryption result and verifies it. After the verification passes, the security authentication is completed, and the instruction to complete the security authentication is sent to the vehicle diagnostic instrument.
[0047] It should be understood that the extended session mode: is a way of diagnostic communication. Usually, most of the functions and special functions for diagnosis are carried out in this session mode;
[0048] Affirmative response: is to give an affirmative reply to the sent instruction, indicating that the next step can be entered;
[0049] Exemplarily, S102 specifically includes:
[0050] The worker connects the vehicle diagnostic instrument to the OBD port under the vehicle instrument panel, selects to enter the NFC key learning interface on the device visual interface, and clicks NFC key learning. At this time, the vehicle diagnostic instrument first sends a command to enter the extended session to the NFC main module through the vehicle CAN network. After receiving it, the NFC main module switches to the extended session mode, and sends an affirmative response to the vehicle diagnostic instrument after the mode switch is completed (if the affirmative response is not received, the extended session fails and needs to be initiated again). When the vehicle diagnostic instrument receives the affirmative reply, it will send the second security authentication instruction. After receiving it, the NFC main module internally responds to the established security authentication and adds a random number and returns it to the vehicle diagnostic instrument. The vehicle diagnostic instrument uses the pre-defined encryption algorithm for calculation and feeds back the random number encryption result. After the NFC main module receives the encryption result and passes the internal verification, the security verification is completed (if the security verification fails, it feeds back that the verification fails to the vehicle diagnostic instrument).
[0051] Further, in S103, the NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC main module, which specifically includes:
[0052] The NFC slave module uses its own NFC coil to generate magnetic field induction with the coil of the NFC card, and the NFC card notifies the NFC slave module that the card has entered the field through an APDU instruction;
[0053] After the NFC slave module receives the instruction that the card has entered the field, the NFC slave module sends a card reset instruction to the NFC card, and the NFC card responds to the reset instruction;
[0054] The NFC slave module sends an instruction to obtain the name of the NFC key manufacturer to the NFC card, and the NFC card responds to the instruction to obtain the name of the NFC key manufacturer;
[0055] After the NFC slave module determines that the manufacturer of the NFC card key is the same as the manufacturer of the vehicle, it sends a message that the card has entered the field to the NFC master module.
[0056] Exemplarily, in step S103: The vehicle diagnostic instrument sends an enabling learning command to the NFC master module, and the NFC master module forwards the enabling learning command to the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC master module, which specifically includes:
[0057] After successful security authentication, the vehicle diagnostic instrument will send an enabling learning command and enter a periodic query and learning status mode. At this time, the worker needs to first place the NFC card in the induction area of the NFC slave module in the vehicle's central control (it can also be placed in the induction area of the NFC master module, but because the position of the master module is not convenient for placing the card, it is usually placed in the induction area of the slave module in the vehicle). At this time, the NFC slave module has been in the card searching mode. The card and the NFC slave module use the NFC coil to generate a magnetic field induction. The NFC card notifies the slave module that the card has entered the field through an APDU instruction. After the NFC slave module receives it, it notifies the card to reset through an APDU instruction, and the NFC card responds to the reset instruction.
[0058] Then the NFC slave module sends a select directory instruction (the purpose is to verify whether it is a card of a certain vehicle manufacturer), and the NFC card responds to the select directory instruction through an APDU message. After the NFC slave module determines that the selected directory is correct, it notifies the NFC master module that the card has entered the field through the private CAN (if the slave module determines that the feedback directory is incorrect, it will not feedback that the card has entered the field).
[0059] APDU, Application Protocol Data Unit, is the information unit transmitted between the smart card and the smart card reader.
[0060] Further, in step S104, the NFC master module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module, which specifically includes:
[0061] The NFC master module sends an instruction to read the unique identifier of the NFC card to the NFC card through the NFC slave module;
[0062] After the NFC card receives the read instruction, it sends its unique identifier to the NFC master module through the NFC slave module; after the NFC master module receives the unique identifier, it uses the unique identifier as the dispersion factor and the AES encryption algorithm to disperse the root key inside the NFC master module to generate the card key;
[0063] The NFC master module writes the card key into the NFC card through the NFC slave module. After the writing is completed, the NFC card feeds back the status code of successful writing to the NFC master module through the NFC slave module; after the NFC master module receives the status code, it parses the status code and judges whether the writing is successful.
[0064] Exemplarily, S104: After the NFC master module receives the message that the card has entered the venue, the NFC master module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module to complete the pairing of the car key, which specifically includes:
[0065] After the NFC master module receives the card entry message sent by the slave module, it immediately sends an APDU instruction to read the unique identifier CARDSEID of the NFC card, which is transmitted to the card through the NFC slave module.
[0066] After the FC card receives it, it also transmits the CARDSEID stored in the card SE chip to the master module through the NFC slave module. After the master module receives the CARDSEID, it calls the SE internal applet application through the internal mcu to pass the field to the module internal SE chip. The master module SE chip calls the module master key stored inside through the built-in applet application program, combines the fixed dispersion factor and CARDSEID to perform key dispersion inside the SE to generate the card key.
[0067] After the key is generated, the NFC master module sends an APDU write instruction to be transmitted to the NFC card through the NFC slave module. This process generally requires several repeated writing and verification processes.
[0068] After the writing is completed, the NFC card transmits and feeds back the Response status code of successful writing to the NFC master module through the slave module. After the NFC master module receives it, it parses and judges whether the writing is successfully completed normally.
[0069] The method for generating the NFC master module key is:
[0070] It is generated by dispersing the vehicle factory root key generated by the vehicle factory key platform plus the security chip ID, that is, the unique identifier SEID.
[0071] First, after the digital key platform generates the root key, it is transferred to the main module SE chip supplier offline or online through a secure storage medium;
[0072] The SE chip supplier uses the unique identifier SEID of the SE chip as a dispersion factor on its production line, and adopts the AES algorithm to disperse the root key provided by the vehicle factory to generate the NFC main module key.
[0073] Then, the NFC main module key is loaded into the chip and provided to the NFC main module supplier.
[0074] The NFC main module supplier mounts the SE chip on the module PCB on the production line. After the module assembly is completed, it is delivered to the vehicle factory production line in the form of parts.
[0075] PCB stands for Printed Circuit Board, and its full English name is Printed Circuit Board.
[0076] With the NFC main module key, it is possible to disperse the card key in combination with the vehicle VIN (fixed dispersion factor) and CARDSEID.
[0077] Furthermore, the method further includes:
[0078] S105: The vehicle diagnostic instrument periodically sends a learning status query instruction to the NFC main module. The NFC main module feeds back the NFC card learning status to the vehicle diagnostic instrument. After the vehicle diagnostic instrument queries that the learning process has been completed, the vehicle diagnostic instrument sends an instruction to stop learning to the NFC main module. After receiving the instruction to stop learning, the NFC main module reports its own parsing result to the vehicle diagnostic instrument; the own parsing result includes: success status or failure status; if it is a failure status, the parsing result further includes the reason for the failure.
[0079] Exemplarily, the S105: The vehicle diagnostic instrument periodically sends a learning status query instruction to the NFC main module. The NFC main module feeds back the NFC card learning status to the vehicle diagnostic instrument. After the vehicle diagnostic instrument queries that the learning process has been completed, the vehicle diagnostic instrument sends an instruction to stop learning to the NFC main module. After receiving the instruction to stop learning, the NFC main module reports its own parsing result to the vehicle diagnostic instrument, specifically including:
[0080] The NFC main module feeds back the card learning result to the vehicle diagnostic instrument that is periodically querying the status (whether the learning process has ended). After the vehicle diagnostic instrument queries that the learning process is completed, it will send an instruction to stop learning. After receiving it, the NFC main module reports according to its own parsing result. If the learning is successful, it feeds back success. If the learning fails, it feeds back failure and attaches the reason for the failure.
[0081] After the entire process is completed, the worker can swipe the learned card at the main module of the rearview mirror or the NFC slave module in the middle channel of the vehicle. If the vehicle unlocking, locking or starting can be normally completed, the function is normal.
[0082] Example 2
[0083] This embodiment provides an automotive key production line pairing system;
[0084] As Figure 1 shown, an automotive key production line pairing system includes: a vehicle diagnostic instrument, an off-line vehicle, an NFC master module, an NFC slave module, and an NFC card;
[0085] The vehicle CAN network of the whole vehicle wakes up the NFC master module, and the NFC master module wakes up the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range;
[0086] The vehicle diagnostic instrument accesses the on-vehicle diagnostic system OBD interface, the vehicle diagnostic instrument sends an extended session instruction to the NFC master module, the NFC master module switches to the extended session mode, the vehicle diagnostic instrument sends a security authentication instruction to the NFC master module, and security authentication is completed between the vehicle diagnostic instrument and the NFC master module;
[0087] The vehicle diagnostic instrument sends an enabling learning command to the NFC master module, and the NFC master module forwards the enabling learning command to the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range, and after the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC master module;
[0088] After the NFC master module receives the message that the card has entered the field, the NFC master module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module to complete the pairing of the automotive key.
[0089] As Figure 1 shown, the learning and pairing process of the entire NFC card vehicle key is generally completed at the electrical inspection station in the final assembly workshop of the vehicle factory. This link is associated with 5 parts including a vehicle diagnostic instrument, an off-line vehicle, an NFC master module, an NFC slave module, and an NFC card.
[0090] The vehicle diagnostic instrument sends an extended session instruction to the NFC master module, the NFC master module switches to the extended session mode, the vehicle diagnostic instrument sends a security authentication instruction to the NFC master module, and security authentication is completed between the vehicle diagnostic instrument and the NFC master module. Specifically, it includes:
[0091] The vehicle diagnostic instrument sends a command to enter the extended session to the NFC master module. After receiving the command, the NFC master module switches to the extended session mode. After the mode switching is completed, the NFC master module sends a positive response to the vehicle diagnostic instrument;
[0092] After the vehicle diagnostic instrument receives an affirmative response, it sends a security authentication instruction to the NFC main module. The NFC main module receives and responds to the security authentication instruction, adds a random number to the feedback result of the security authentication instruction, and returns it to the vehicle diagnostic instrument;
[0093] The vehicle diagnostic instrument uses a pre-defined encryption algorithm to perform an encryption calculation on the random number and feeds back the result of the random number encryption calculation to the NFC main module. The NFC main module receives the encryption result and verifies it. After successful verification, the security authentication is completed, and an instruction indicating the completion of the security authentication is sent to the vehicle diagnostic instrument.
[0094] The NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message indicating that the card has entered the field to the NFC main module, specifically including:
[0095] The NFC slave module uses its own NFC coil to generate a magnetic field induction with the coil of the NFC card, and the NFC card notifies the NFC slave module that the card has entered the field through an APDU instruction;
[0096] After the NFC slave module receives the instruction that the card has entered the field, the NFC slave module sends a card reset instruction to the NFC card, and the NFC card responds to the reset instruction;
[0097] The NFC slave module sends an instruction to obtain the name of the NFC key manufacturer to the NFC card, and the NFC card responds to the instruction to obtain the name of the NFC key manufacturer;
[0098] After the NFC slave module determines that the manufacturer of the NFC card key is the same as the manufacturer of the vehicle, it sends a message indicating that the card has entered the field to the NFC main module.
[0099] The NFC main module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module, specifically including:
[0100] The NFC main module sends an instruction to read the unique identifier of the NFC card to the NFC card through the NFC slave module;
[0101] After the NFC card receives the read instruction, it sends its own unique identifier to the NFC main module through the NFC slave module; after receiving the unique identifier, the NFC main module uses the unique identifier as a dispersion factor and adopts the AES encryption algorithm to disperse the root key inside the NFC main module to generate a card key;
[0102] The NFC main module writes the card key into the NFC card through the NFC slave module. After the writing is completed, the NFC card feeds back the status code indicating successful writing to the NFC main module through the NFC slave module. After receiving the status code, the NFC main module parses the status code and determines whether the writing is successful.
[0103] The vehicle diagnostic instrument periodically sends a learning status query instruction to the NFC main module. The NFC main module feeds back the NFC card learning status to the vehicle diagnostic instrument. After the vehicle diagnostic instrument queries that the learning process has been completed, the vehicle diagnostic instrument sends an instruction to stop learning to the NFC main module. After receiving the instruction to stop learning, the NFC main module reports its own parsing result to the vehicle diagnostic instrument; the own parsing result includes: a success status or a failure status; if it is a failure status, the parsing result also includes the reason for the failure.
[0104] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A pairing method for an automotive key production line, characterized in that Including: When the vehicle is powered on, the vehicle's CAN network wakes up the NFC master module, and the NFC master module wakes up the NFC slave module. The NFC slave module periodically searches for NFC cards within a set distance range. The vehicle diagnostic instrument is connected to the on-vehicle diagnostic system OBD interface. The vehicle diagnostic instrument sends an extended session instruction to the NFC master module. The NFC master module switches to the extended session mode. The vehicle diagnostic instrument sends a security authentication instruction to the NFC master module, and security authentication is completed between the vehicle diagnostic instrument and the NFC master module. The vehicle diagnostic instrument sends an extended session instruction to the NFC master module. The NFC master module switches to the extended session mode. The vehicle diagnostic instrument sends a security authentication instruction to the NFC master module, and security authentication is completed between the vehicle diagnostic instrument and the NFC master module, specifically including: The vehicle diagnostic instrument sends a command to enter the extended session to the NFC master module. After receiving the command, the NFC master module switches to the extended session mode. After the mode switching is completed, the NFC master module sends a positive response to the vehicle diagnostic instrument. After receiving the positive response, the vehicle diagnostic instrument sends a security authentication instruction to the NFC master module. The NFC master module receives and responds to the security authentication instruction, and returns the feedback result of the security authentication instruction to the vehicle diagnostic instrument after adding a random number. The vehicle diagnostic instrument uses a pre-defined encryption algorithm to perform encryption calculation on the random number, and feeds back the result of the random number encryption calculation to the NFC master module. The NFC master module receives the encryption result and verifies the encryption result. After the verification passes, the security authentication is completed, and the instruction indicating the completion of the security authentication is sent to the vehicle diagnostic instrument. The vehicle diagnostic instrument sends an instruction to start learning to the NFC master module, and the NFC master module forwards the instruction to start learning to the NFC slave module. The NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field to the NFC master module. After receiving the message that the card has entered the field, the NFC master module generates a card key based on the unique identifier of the NFC card, and writes the card key into the NFC card through the NFC slave module to complete the pairing of the vehicle key.
2. The method for pairing an automotive key production line according to claim 1, characterized in that, The NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message that the card has entered the field, specifically including: The NFC slave module uses its own NFC coil to generate magnetic field induction with the coil of the NFC card, and the NFC card notifies the NFC slave module that the card has entered the field through an APDU instruction. After receiving the instruction that the card has entered the field, the NFC slave module sends a card reset instruction to the NFC card, and the NFC card responds to the reset instruction. The NFC slave module sends an instruction to obtain the name of the NFC key manufacturer to the NFC card, and the NFC card responds to the instruction to obtain the name of the NFC key manufacturer. After the NFC slave module determines that the manufacturer of the NFC card key is the same as the manufacturer of the vehicle, it sends a message that the card has entered the field to the NFC master module.
3. The method for pairing an automotive key production line according to claim 1, characterized in that, The NFC main module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module. Specifically, it includes: The NFC main module sends an instruction to read the unique identifier of the NFC card to the NFC card through the NFC slave module; After receiving the read instruction, the NFC card sends its unique identifier to the NFC main module through the NFC slave module. After receiving the unique identifier, the NFC main module uses the unique identifier as a dispersion factor and adopts the AES encryption algorithm to disperse the root key inside the NFC main module to generate a card key; The NFC main module writes the card key into the NFC card through the NFC slave module. After the writing is completed, the NFC card sends a status code indicating successful writing to the NFC main module through the NFC slave module. After receiving the status code, the NFC main module parses the status code and determines whether the writing is successful.
4. The pairing method for an automotive key production line according to claim 1, characterized in that The method further includes: The vehicle diagnostic instrument periodically sends a learning status query instruction to the NFC main module. The NFC main module feeds back the learning status of the NFC card to the vehicle diagnostic instrument. After the vehicle diagnostic instrument queries that the learning process has been completed, the vehicle diagnostic instrument sends an instruction to stop learning to the NFC main module. After receiving the instruction to stop learning, the NFC main module reports its own parsing result to the vehicle diagnostic instrument; the own parsing result includes: a success status or a failure status; if it is a failure status, the parsing result further includes the reason for the failure.
5. An automotive key production line pairing system, characterized in that, It includes: A vehicle diagnostic instrument, a off-line vehicle, an NFC main module, an NFC slave module, and an NFC card; The vehicle CAN network wakes up the NFC main module, and the NFC main module wakes up the NFC slave module; The NFC slave module periodically searches for NFC cards within a set distance range; The vehicle diagnostic instrument accesses the on-vehicle diagnostic system OBD interface, the vehicle diagnostic instrument sends an extended session instruction to the NFC main module, the NFC main module switches to the extended session mode, the vehicle diagnostic instrument sends a security authentication instruction to the NFC main module, and security authentication is completed between the vehicle diagnostic instrument and the NFC main module; The vehicle diagnostic instrument sends an extended session instruction to the NFC main module, the NFC main module switches to the extended session mode, the vehicle diagnostic instrument sends a security authentication instruction to the NFC main module, and security authentication is completed between the vehicle diagnostic instrument and the NFC main module. Specifically, it includes: The vehicle diagnostic instrument sends a command to enter the extended session to the NFC main module. After receiving the command, the NFC main module switches to the extended session mode. After the mode switching is completed, the NFC main module sends a positive response to the vehicle diagnostic instrument; After receiving the positive response, the vehicle diagnostic instrument sends a security authentication instruction to the NFC main module. The NFC main module receives and responds to the security authentication instruction, adds a random number to the feedback result of the security authentication instruction, and returns it to the vehicle diagnostic instrument; The vehicle diagnostic instrument uses a pre-defined encryption algorithm to perform an encryption calculation on the random number and feeds back the result of the random number encryption calculation to the NFC main module. The NFC main module receives the encryption result and verifies the encryption result. After the verification is passed, the security authentication is completed, and an instruction indicating the completion of the security authentication is sent to the vehicle diagnostic instrument; The vehicle diagnostic instrument sends a learning start command to the NFC main module, and the NFC main module forwards the learning start command to the NFC slave module; the NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message indicating that the card has entered the field to the NFC main module; After the NFC main module receives the message indicating that the card has entered the field, the NFC main module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module to complete the pairing of the vehicle key.
6. The automotive key production line pairing system according to claim 5, wherein The NFC slave module periodically searches for NFC cards within a set distance range. After the NFC slave module senses an NFC card, it sends a message indicating that the card has entered the field to the NFC main module, specifically including: The NFC slave module uses its own NFC coil to generate a magnetic field induction with the coil of the NFC card, and the NFC card notifies the NFC slave module that the card has entered the field through an APDU command; After the NFC slave module receives the command indicating that the card has entered the field, the NFC slave module sends a card reset command to the NFC card, and the NFC card responds to the reset command; The NFC slave module sends an instruction to obtain the name of the NFC key manufacturer to the NFC card, and the NFC card responds to the instruction to obtain the name of the NFC key manufacturer; After the NFC slave module determines that the manufacturer of the NFC card key is the same as the manufacturer of the vehicle, it sends a message indicating that the card has entered the field to the NFC main module.
7. The automotive key production line pairing system according to claim 5, characterized in that, The NFC main module generates a card key based on the unique identifier of the NFC card and writes the card key into the NFC card through the NFC slave module, specifically including: The NFC main module sends an instruction to read the unique identifier of the NFC card to the NFC card through the NFC slave module; After the NFC card receives the read instruction, it sends its own unique identifier to the NFC main module through the NFC slave module; after the NFC main module receives the unique identifier, it uses the unique identifier as a dispersion factor and adopts the AES encryption algorithm to disperse the root key inside the NFC main module to generate a card key; The NFC main module writes the card key into the NFC card through the NFC slave module. After the writing is completed, the NFC card sends a status code indicating successful writing to the NFC main module through the NFC slave module; after the NFC main module receives the status code, it parses the status code and determines whether the writing is successful.
8. The automotive key production line pairing system according to claim 5, characterized in that, The system further includes: The vehicle diagnostic instrument periodically sends a learning status query instruction to the NFC main module, and the NFC main module feeds back the learning status of the NFC card to the vehicle diagnostic instrument. After the vehicle diagnostic instrument queries that the learning process has been completed, the vehicle diagnostic instrument sends a stop learning instruction to the NFC main module. After the NFC main module receives the stop learning instruction, it reports its own parsing result to the vehicle diagnostic instrument; the own parsing result includes: a success status or a failure status; if it is a failure status, the parsing result further includes the reason for the failure.
Citation Information
Patent Citations
NFC key binding method and device, binding equipment and storage medium
CN115447533A