Digital key pairing method and related product

By transmitting and processing encrypted pairing information between the terminal and the vehicle, the randomly generated pairing code factor is used to solve the problem of user inputting pairing code manually, achieving pairing without user participation, and improving user experience and security.

CN120435880APending Publication Date: 2025-08-05YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480005556.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

In the prior art, the pairing of the terminal and the vehicle terminal requires the user to manually enter the pairing code, resulting in complex user operations and poor user experience.

Method used

By transmitting and processing pairing information between the terminal and the vehicle, pairing is achieved without user participation using encryption and decryption technology, and the randomly generated pairing code factor is used to improve security.

Benefits of technology

It realizes pairing between terminals and vehicle terminals without user participation, improves user experience and improves the safety and efficiency of pairing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120435880A_ABST
    Figure CN120435880A_ABST
Patent Text Reader

Abstract

A digital key pairing method and related products are applied to the technical field of digital keys. In the application, the third pairing information sent by the server to the terminal comprises the information obtained by executing the first processing on the information used for determining the first pairing code. And the terminal obtains first pairing information based on the third pairing information, and the first pairing information also comprises information obtained by executing first processing on the information used for determining the first pairing code. And the terminal sends the first pairing information to the vehicle end, and the vehicle end can perform second processing on the first pairing information to obtain the first pairing code, so that the vehicle end can obtain the first pairing code without user participation. And the terminal and the vehicle terminal are paired by using the first pairing code, so that pairing of the terminal and the vehicle terminal can be realized without user participation, and thus the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital key technology, and in particular to a digital key pairing method and related products. Background Art

[0002] After the terminal and vehicle establish a communication connection, data can be output through this connection. However, to improve data transmission security, the terminal and vehicle must be paired using a pairing code before establishing a communication connection. Current technology requires the user to enter the same pairing code on both the terminal and the vehicle before pairing can be completed based on the shared pairing code. This requirement complicates user operations and results in a poor user experience. Summary of the Invention

[0003] The embodiments of the present application provide a digital key pairing method and related products, which can achieve pairing between a terminal and a vehicle without user participation, thereby improving the user experience.

[0004] In a first aspect, embodiments of the present application provide a digital key pairing method, comprising: receiving first pairing information from a terminal, the first pairing information including information obtained by performing a first processing on target information, the target information including information used to determine a first pairing code, the first pairing code including a pairing code used to pair the terminal with a vehicle. A first pairing code is obtained by performing a second processing on the first pairing information, wherein the information obtained by performing the second processing on the information obtained by the first processing includes the information before the first processing. Pairing is performed with the terminal using the first pairing code.

[0005] In an embodiment of the present application, the digital key pairing method in the first aspect can be applied to the vehicle side of the vehicle, for example, the vehicle side is an on-board computer (electronic control unit, ECU). The target information includes information for determining the first pairing code, that is, the first pairing code can be determined based on the target information. Optionally, the target information includes one or more of the following: a first pairing code, information for generating the first pairing code, and information for decrypting the ciphertext of the first pairing code. The first processing is used to convert information into information different from the information processed by the first processing, that is, by performing the first processing on the information, the effect of encrypting the information can be achieved, thereby protecting the security of the information. The information obtained by performing the second processing on the information obtained by the first processing includes the information before the first processing, that is, by performing the second processing on the information obtained by the first processing, the effect of decrypting the information can be achieved.

[0006] In this digital key pairing method, the vehicle receives first pairing information from the terminal by performing a first processing on the target information, wherein the target information includes information for determining the first pairing code. The vehicle is capable of obtaining information including information before the first processing based on the first pairing information. Specifically, by performing a second processing on the first pairing information, the vehicle can obtain information including information before the first processing, that is, the target information. Therefore, the vehicle can obtain the target information by receiving the first pairing information from the terminal, and the transmission security of the target information can be improved. After obtaining the target information, the vehicle can further determine the first pairing code based on the target information, and then use the first pairing code to pair with the terminal. This allows pairing of the terminal and the vehicle without user intervention, thereby improving the user experience.

[0007] In a possible implementation, when the target information includes a pairing code factor and the first pairing code is obtained based on a third processing performed on the pairing code factor, the vehicle-side performs a second processing on the first pairing information to obtain the pairing code factor; and performs a third processing on the pairing code factor to obtain the first pairing code.

[0008] In this embodiment, the pairing code factor is information used to generate the first pairing code. The first pairing code can be obtained by performing the third processing on the pairing code factor. Since the vehicle side is capable of performing the second processing, after the vehicle side performs the second processing on the first pairing information to obtain the pairing code factor, the first pairing code can be further obtained by performing the third processing on the pairing code factor.

[0009] In one possible implementation, the target information includes a key factor, and the first pairing information also includes pairing code information and key factor information obtained by performing a first process on the key factor. The pairing code information is obtained by encrypting the first pairing code using a first key, and the first key is obtained based on the key factor. The vehicle first performs a second process on the key factor information to obtain the key factor. Then, the first key is obtained based on the key factor. Finally, the pairing code information is decrypted using the first key to obtain the first pairing code.

[0010] In this embodiment, the first pairing information received by the vehicle includes pairing code information, where the pairing code information is obtained by encrypting the first pairing code using a first key. Therefore, the vehicle needs to decrypt the pairing code information using the first key to obtain the first pairing code. Because the first key is derived from a key factor, the vehicle needs to obtain the key factor to further obtain the first key. Therefore, in this embodiment, the key factor is the information used to decrypt the ciphertext of the first pairing code. The first pairing information received by the vehicle includes information obtained by performing a first processing on the key factor, namely, the key factor information. By performing a second processing on the key factor information, the vehicle can obtain the key factor, and then obtain the first key based on the key factor.

[0011] In one embodiment, when the first processing includes encrypting the key factor using the second key, the vehicle end decrypts the key factor information using the second key to obtain the key factor.

[0012] In this embodiment, the first processing includes encrypting the key factor using the second key, so the first pairing information includes the key factor information obtained by encrypting the key factor using the second key. Therefore, the vehicle end can decrypt the key factor information using the second key to obtain the key factor.

[0013] In one embodiment, when the first key is obtained by performing the fourth processing on the key factor, the vehicle end performs the fourth processing on the key factor to obtain the first key.

[0014] In this embodiment, the vehicle side can obtain the first key by performing the fourth processing on the key factor.

[0015] In one embodiment, when the target information includes a third key and the first pairing code is obtained by processing the pairing code factor based on the third key, the vehicle end performs a second processing on the first pairing information to obtain the third key; and uses the third key to encrypt the pairing code factor to obtain the first pairing code.

[0016] In this embodiment, the third key is information used to generate the first pairing code. After the vehicle obtains the third key by performing the second processing on the first pairing information, it can use the third key to encrypt the pairing code factor to obtain the first pairing code.

[0017] In one embodiment, when the first processing includes encrypting the third key using the fourth key, the vehicle end decrypts the first pairing information using the fourth key to obtain the third key.

[0018] In this embodiment, since the first processing includes encrypting the third key using the fourth key, the vehicle end decrypts the first pairing information using the fourth key to obtain the third key.

[0019] In one embodiment, before receiving the first pairing information from the terminal, the vehicle randomly generates a pairing code factor and sends the pairing code factor to the terminal.

[0020] In this embodiment, since the pairing code factor is randomly generated by the vehicle end, it is difficult to crack the pairing code factor. Sending the pairing code factor to the terminal can improve the security of the pairing code factor.

[0021] In one embodiment, the vehicle side randomly generates the pairing code factor in such a manner that the pairing code factor is generated twice in a row to meet a preset condition.

[0022] In this embodiment, the preset conditions are used to increase the difficulty of cracking the pairing code factor. Optionally, the preset conditions include the time interval between two consecutive pairing code factor generation being less than or equal to an interval threshold. Optionally, the preset conditions include the second pairing code factor generated in two consecutive pairing code factors being generated after successful pairing based on the pairing code factor generated in the first of the two consecutive pairing code factors. In this case, after the vehicle successfully pairs based on the generated pairing code factor, the next time pairing is required, a new pairing code factor is generated for the next pairing. The vehicle randomly generates pairing code factors in a manner that satisfies the preset conditions for two consecutive pairing code factors, thereby increasing the difficulty of cracking the pairing code factor.

[0023] In one embodiment, when the target information includes the first pairing code, the vehicle end performs a second process on the first pairing information to obtain the first pairing code.

[0024] In this embodiment, since the information in the first pairing information before the first processing includes the first pairing code, the vehicle end can obtain the first pairing code by performing the second processing on the first pairing information.

[0025] In one embodiment, when the first processing includes encryption, the vehicle side obtains the first pairing code by decrypting the first pairing information.

[0026] In this embodiment, the first processing includes encryption, and accordingly, the first pairing information includes information obtained by encrypting the target information. Therefore, the vehicle side can obtain the target information by decrypting the first pairing information, and further obtain the first pairing code based on the target information.

[0027] In one embodiment, when the first pairing information passes identity authentication, the vehicle side obtains the first pairing code by decrypting the first pairing information.

[0028] In this embodiment, identity authentication includes verifying the signature of the first pairing information to determine whether the vehicle identity information carried in the signature is the identity information of the vehicle corresponding to the vehicle. If so, the first pairing information is determined to have passed identity authentication; otherwise, the first pairing information is determined to have failed identity authentication. If the first pairing information passes identity authentication, the vehicle decrypts the first pairing information to obtain the first pairing code, thereby improving the integrity of the first pairing code.

[0029] In one embodiment, the vehicle receives first pairing information sent by the terminal via short-range communication.

[0030] In this embodiment, the vehicle side receives the first pairing information sent by the terminal through short-range communication, and can receive the first pairing information even when the mobile communication network is poor, which is conducive to completing the pairing with the terminal when the mobile communication network is poor.

[0031] In one embodiment, the vehicle end belongs to the vehicle and the terminal is outside the vehicle.

[0032] In this embodiment, since the terminal is outside the vehicle to which the terminal belongs, combining this embodiment with the first aspect and any of its embodiments can achieve pairing of the terminal and the vehicle using the first pairing code without the terminal entering the vehicle.

[0033] In one embodiment, when pairing is successful, the vehicle side stores the first pairing information; after storing the first pairing information, receives the second pairing information; and when the first pairing information and the second pairing information are the same, refuses to pair with the device that sent the second pairing information.

[0034] After two devices are successfully paired, they will store keys for subsequent pairing, such as temporary keys (TK), short-term keys (STK), and long-term keys (LTK), so that they can be paired directly the next time they are connected. In other words, for two devices that have been successfully paired, they will usually not be paired again using the pairing information used for the first pairing. If any of the two successfully paired devices receives the pairing information used for the first pairing, the risk of this pairing is higher. Therefore, in this embodiment, if the first pairing information and the second pairing information are the same, the vehicle end refuses to pair with the device that sent the second pairing information, which can reduce the probability of being affected by a replay attack.

[0035] In one embodiment, the time when the vehicle receives the first pairing information is the first time, and the time when the vehicle receives the second pairing information is the second time. If the first pairing information and the second pairing information are the same, and the time difference between the first time and the second time is greater than or equal to the time threshold, the vehicle refuses to pair with the device that sent the second pairing information.

[0036] Considering that the same device may use the same pairing information to pair with the vehicle multiple times in a short period of time, the first pairing information should be set with an expiration date. In this embodiment, the time threshold is the expiration date of the first pairing information. Therefore, if the first pairing information and the second pairing information are the same, and the time difference between the first and second times is greater than or equal to the time threshold, the vehicle will refuse to pair with the device that sent the second pairing information, which can improve the pairing efficiency between the vehicle and the terminal.

[0037] In one embodiment, the vehicle end belongs to a vehicle. When pairing is successful, the vehicle end receives a control instruction of the vehicle's digital key sent by the terminal, and then controls the vehicle according to the control instruction.

[0038] In this embodiment, if pairing is successful, the vehicle receives the control command of the terminal's digital key through the communication connection established by pairing, which can improve the security of the control command. After receiving the control command, the vehicle can be controlled according to the control command, such as opening and closing the vehicle door.

[0039] In a second aspect, embodiments of the present application provide another digital key pairing method, comprising: a terminal sending first pairing information to a vehicle, wherein the first pairing information includes information obtained by performing a first processing on target information, the target information includes information used to determine a first pairing code, and the first pairing code includes a pairing code used for pairing with the vehicle. The terminal then uses the first pairing code to pair with the vehicle.

[0040] In embodiments of the present application, the digital key pairing method of the second aspect can be applied to a terminal. In this digital key pairing method, the terminal can send first pairing information containing target information to the vehicle, which can then determine a first pairing code based on the received first pairing information. The terminal then uses the first pairing code to pair with the vehicle, enabling pairing of the terminal and vehicle without user interaction, thereby improving the user experience.

[0041] In one embodiment, when the target information includes a pairing code factor and the first pairing code is obtained based on performing a third processing on the pairing code factor, the terminal receives pairing code factor information from the server as the first pairing information before sending the first pairing information to the vehicle end, wherein the pairing code factor information is obtained based on performing the first processing on the pairing code factor.

[0042] In this embodiment, the terminal uses the pairing code factor information from the server as the first pairing information, and then sends the first pairing information to the vehicle end, so that the vehicle end can obtain the pairing code factor information.

[0043] In one embodiment, when the target information includes a first pairing code and a key factor, and the first processing includes performing a first processing on the key factor, the terminal receives a first key and key factor information from a server before sending the first pairing information to the vehicle. The first key is derived from the key factor, and the key factor information is derived by performing the first processing on the key factor. The terminal then encrypts the first pairing code using the first key to obtain pairing code information. Finally, the first pairing information is obtained based on the key factor information and the pairing code information.

[0044] In this embodiment, after receiving the first key from the server, the terminal encrypts the first pairing code using the first key to obtain pairing code information. The terminal then obtains first pairing information based on the pairing code information and the key factor information from the server, so that the first pairing information includes the pairing code information and the key factor information.

[0045] In one embodiment, when the target information includes a third key and the pairing code is obtained by processing the pairing code factor using the third key, the terminal receives key information from the server as the first pairing information before sending the first pairing information to the vehicle end, wherein the key information is obtained by performing the first processing on the third key.

[0046] In this embodiment, the terminal uses the received key information as the first pairing information, so that the first pairing information sent to the vehicle end is the key information.

[0047] In one embodiment, before the terminal uses the first pairing code to pair with the vehicle, it receives a third key from the server, and then uses the third key to encrypt the pairing code factor to obtain the first pairing code.

[0048] In this embodiment, the terminal encrypts the pairing code factor using the third key from the server to obtain the first pairing code.

[0049] In one embodiment, before the terminal encrypts the pairing code factor using the third key to obtain the first pairing code, the terminal receives the pairing code factor from the vehicle end.

[0050] In this embodiment, the terminal uses the third key to encrypt the pairing code factor to obtain the first pairing code, wherein the third key comes from the server and the pairing code factor comes from the vehicle end, which can increase the difficulty of cracking the first pairing code.

[0051] In one embodiment, when the target information includes a first pairing code and the first processing includes performing a first processing on the first pairing code, the terminal receives pairing code information from the server as the first pairing information before sending the first pairing information to the vehicle end, wherein the pairing code information is obtained by performing the first processing on the first pairing code.

[0052] In this embodiment, the terminal uses the received pairing code information as the first pairing information, so that the first pairing information sent to the vehicle end is the pairing code information.

[0053] In one embodiment, the first processing includes encrypting the target information.

[0054] In one embodiment, the terminal sends the first pairing information to the vehicle via short-range communication.

[0055] In this embodiment, the first pairing information sent by the terminal to the vehicle via short-range communication can be sent even when the mobile communication network is poor, thereby facilitating pairing with the vehicle even when the mobile communication network is poor.

[0056] In one embodiment, the vehicle end belongs to the vehicle and the terminal is outside the vehicle.

[0057] In this embodiment, since the terminal is outside the vehicle to which the vehicle terminal belongs, this embodiment is combined with the second aspect and any of its embodiments to achieve pairing of the terminal and the vehicle using the first pairing code without the terminal entering the vehicle.

[0058] In one embodiment, the vehicle side belongs to a vehicle, and the terminal includes a digital key of the vehicle. When pairing is successful, the terminal sends a control instruction of the digital key to the vehicle side.

[0059] In this embodiment, if pairing is successful, the terminal sends the digital key control command to the vehicle via the communication connection established by pairing, which can improve the security of the control command. By sending the digital key control command to the vehicle, the vehicle can be controlled.

[0060] In a third aspect, embodiments of the present application provide another digital key pairing method, comprising: after receiving a key request from a terminal, performing a first process on target information to obtain third pairing information, wherein the key request is used to request the issuance of a digital key, and the target information includes information for determining a first pairing code, wherein the first pairing code includes a pairing code used for pairing the terminal with a vehicle. Sending the digital key and the third pairing information to the terminal, wherein the vehicle determines the first pairing code based on the third pairing information from the terminal.

[0061] In an embodiment of the present application, the digital key pairing method in the third aspect can be applied to a server. In this digital key pairing method, after receiving a key request from a terminal, the server performs a first process on the target information to obtain third pairing information, wherein the target information includes information for determining a first pairing code, and the first pairing code includes a pairing code used for pairing the terminal with the vehicle end. Thus, third pairing information that is different from the target information and may include the target information can be obtained. Then the digital key and the third pairing information are sent to the terminal. Since sending the digital key to the terminal is completed when it is determined that the terminal is a device authorized to use the vehicle corresponding to the digital key, sending the third pairing information to the terminal can enable the device authorized to use the vehicle corresponding to the digital key to have the third pairing information. In this way, when the terminal is paired with the vehicle end, it can send the third pairing information to the vehicle end so that the vehicle end can obtain the target information based on the third pairing information, and then determine the first pairing code based on the target information.

[0062] In one embodiment, when the target information includes the first pairing code and the third pairing information includes the pairing code information, the server performs a first process on the first pairing code to obtain the pairing code information.

[0063] In one embodiment, when the target information includes a pairing code factor and the first pairing code is obtained based on performing a third processing on the pairing code factor, the server performs the first processing on the pairing code factor to obtain pairing code factor information. In this case, the third pairing information includes the pairing code factor information.

[0064] In one embodiment, when the target information includes a key factor and the key factor is used to obtain the first key, the server performs a first process on the key factor to obtain key factor information. In this case, the third pairing information includes pairing code factor information.

[0065] In one embodiment, when the target information includes the third key and the first pairing code is obtained by encrypting the pairing code factor using the third key, the server performs the first processing on the third key to obtain the key information. In this case, the third pairing information includes the key information.

[0066] In one implementation, the server encrypts the target information to obtain third pairing information.

[0067] In fourth aspect, an embodiment of the present application provides a digital key pairing device, characterized in that it includes a unit for executing the method described in the first aspect or any one of the embodiments of the first aspect, or includes a unit for executing the method described in the second aspect or any one of the embodiments of the second aspect, or includes a unit for executing the method described in the third aspect or any one of the embodiments of the third aspect.

[0068] Exemplarily, the digital key pairing device includes a processing unit and a communication unit. The processing unit is used to implement one or more operations such as processing, determining, generating, encrypting, and decrypting. The communication unit is used to implement one or more operations such as sending and receiving.

[0069] In a fifth aspect, the present application provides a chip comprising a processor and an interface circuit, the interface circuit being used to receive signals from other communication devices (including nodes) and transmit them to the processor or to send signals from the processor to other communication devices (including nodes), and the processor being used to implement the method described in the first aspect or any one of the embodiments of the first aspect through logic circuits or execution code instructions, or to implement the method described in the second aspect or any one of the embodiments of the second aspect, or to implement the method described in the third aspect or any one of the embodiments of the third aspect.

[0070] In a sixth aspect, the present application provides a vehicle comprising a digital key pairing device. The digital key pairing device comprises a processor and a memory, the memory being configured to store computer instructions, and the processor being configured to invoke the computer instructions stored in the memory to implement the method described in the first aspect or any embodiment of the first aspect.

[0071] In a seventh aspect, the present application provides a terminal comprising a digital key pairing device. The digital key pairing device comprises a processor and a memory, the memory being configured to store computer instructions, and the processor being configured to invoke the computer instructions stored in the memory to implement the method described in the second aspect or any one of the embodiments of the second aspect.

[0072] In an eighth aspect, the present application provides a server comprising a digital key pairing device. The digital key pairing device comprises a processor and a memory, the memory being configured to store computer instructions, and the processor being configured to invoke the computer instructions stored in the memory to implement the method described in the third aspect or any one of the embodiments of the third aspect.

[0073] In the ninth aspect, the present application provides a digital key pairing system, which includes one or more of the following: a first digital key pairing device, a second digital key pairing device, and a third digital key pairing device, wherein the first digital key pairing device is used to implement the method described in the first aspect or any one of the embodiments of the first aspect, the second digital key pairing device is used to implement the method described in the second aspect or any one of the embodiments of the second aspect, and the third digital key pairing device is used to implement the method described in the third aspect or any one of the embodiments of the third aspect.

[0074] In the tenth aspect, the present application provides a readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, a communication device including a processor implements the method described in the first aspect or any one of the embodiments of the first aspect, or implements the method described in the second aspect or any one of the embodiments of the second aspect, or implements the method described in the third aspect or any one of the embodiments of the third aspect.

[0075] In the eleventh aspect, the present application provides a computer program product. When the computer program product is executed by a processor, it enables a communication device including a processor to implement the method described in the first aspect or any one of the embodiments of the first aspect, or implement the method described in the second aspect or any one of the embodiments of the second aspect, or implement the method described in the third aspect or any one of the embodiments of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0077] Figure 1 A schematic diagram of a process for a terminal to apply for a digital key for a vehicle provided in an embodiment of the present application;

[0078] Figure 2 A schematic diagram of the architecture of a digital key pairing system provided in an embodiment of the present application;

[0079] Figure 3 A schematic diagram of the architecture of another digital key pairing system provided in an embodiment of the present application;

[0080] Figure 4a A flowchart of a pairing method provided in an embodiment of the present application;

[0081] Figure 4b A method provided in the embodiment of this application Figure 4a Schematic diagram of the scenario in which the pairing method shown resists attacks;

[0082] Figure 5 A flowchart of a digital key pairing method provided in an embodiment of the present application;

[0083] Figure 6 A flowchart of another digital key pairing method provided in an embodiment of the present application;

[0084] Figure 7An architectural diagram of another digital key pairing system provided in an embodiment of the present application;

[0085] Figure 8 A flowchart of another digital key pairing method provided in an embodiment of the present application;

[0086] Figure 9 An architectural diagram of another digital key pairing system provided in an embodiment of the present application;

[0087] Figure 10 A flowchart of another digital key pairing method provided in an embodiment of the present application;

[0088] Figure 11 An architectural diagram of another digital key pairing system provided in an embodiment of the present application;

[0089] Figure 12 A flowchart of another digital key pairing method provided in an embodiment of the present application;

[0090] Figure 13 An architectural diagram of another digital key pairing system provided in an embodiment of the present application;

[0091] Figure 14 An architectural diagram of another digital key pairing system provided in an embodiment of the present application;

[0092] Figure 15 A schematic diagram of the structure of a digital key pairing device provided in an embodiment of the present application;

[0093] Figure 16 This is a structural diagram of another digital key pairing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0094] In order to make the purpose, technical solutions and advantages of this application clearer, the embodiments of this application will be described below in conjunction with the drawings in the embodiments of this application.

[0095] The terms "first" and "second" in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to the process, method, product, or device.

[0096] The “embodiment” mentioned herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be understood explicitly and implicitly by those skilled in the art that in the various embodiments of the present application, unless otherwise specified and there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment according to their inherent logical relationship.

[0097] It should be understood that in the present application, "at least one (item)" refers to one or more, "more than one" refers to two or more, "at least two (items)" refers to two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0098] To improve the convenience of using vehicles, most vehicles currently support control via digital keys. After successfully applying for a vehicle's digital key from a server via a terminal, the user can control the vehicle by sending digital key control instructions to the vehicle's onboard terminal via the terminal. A terminal is an electronic device with communication capabilities. Optionally, terminals include: mobile phones, tablets, laptops, and smart wearable devices. Smart wearable devices include smart watches, smart bracelets, and smart glasses. The vehicle terminal includes electronic devices with communication capabilities, and the vehicle terminal is deployed in the vehicle. Optionally, the vehicle terminal includes a terminal deployed in the vehicle, for example, the vehicle terminal is an ECU. See Figure 1 , Figure 1 This is a flow chart of a terminal applying for a vehicle digital key according to an embodiment of the present application. Figure 1As shown, the user first logs in to an account on the terminal's application (APP), where the APP is used to control the vehicle. The account includes the user's identity information, the terminal's identity information, and information about the vehicle used by the user. For example, the user's identity information includes the user's mobile phone number and username. The terminal's identity information includes the terminal's international mobile equipment identity (IMEI) and the terminal's media access control (MAC) address (or local area network address, hardware address, or physical address). The information about the vehicle used by the user includes the vehicle's frame number, the vehicle's IMEI, and the vehicle's MAC address. After logging in to the account, the user applies for the vehicle's digital key from the server through the account. The server determines the user's identity information, the terminal's identity information, and the vehicle's information based on the logged-in account. When the server determines that the terminal is a device authorized to use the user's vehicle based on the user's identity information and the terminal's identity information, and determines the vehicle's digital key based on the information about the vehicle used by the user, it sends the vehicle's digital key to the terminal. The terminal thus successfully applies for the vehicle's digital key through the APP.

[0099] Before the terminal sends a digital key control command to the vehicle for the first time, it must establish a communication connection with the vehicle through pairing. After the communication connection is established, the terminal then sends the digital key control command to the vehicle through this communication connection, which improves the transmission security of the digital key control command. For example, after the user completes Bluetooth pairing with the vehicle using a mobile phone, after the mobile phone receives the user's input to open the vehicle door using the digital key, the mobile phone can send the digital key door opening command to the vehicle through the Bluetooth connection between the mobile phone and the vehicle, allowing the vehicle to control the vehicle door opening.

[0100] In traditional pairing methods, the terminal and vehicle are paired based on a default pairing code. For example, the "just works" pairing method in Bluetooth pairing is based on a default pairing code. Because the pairing code is the default, it is easy for third parties other than the terminal and vehicle to crack it, resulting in low security for this method.

[0101] To improve pairing security, a pairing method based on setting the same pairing code on both the terminal and the vehicle has emerged, such as the passkey entry method in Bluetooth pairing. However, this pairing method requires the user to enter the same pairing code on both the terminal and the vehicle, which complicates the user experience and leads to a poor user experience.

[0102] Based on this, embodiments of the present application provide a digital key pairing method. This method can be applied to a digital key pairing system, wherein the digital key pairing system includes a server, a terminal, and a vehicle, and data can be transmitted between the server and the terminal. Optionally, the server and the terminal transmit data via long-distance communication, for example, via a mobile communication network. In this digital key pairing method, the server can issue a vehicle digital key to the terminal. After obtaining the digital key, the terminal can pair the vehicle with the vehicle using this digital key pairing method before using the digital key for the first time. Specifically, the terminal sends information for determining a first pairing code to the vehicle, so that the vehicle, after receiving the information for determining the first pairing code, determines the first pairing code based on the information for determining the first pairing code. The first pairing code includes the pairing code used for pairing the terminal with the vehicle. In this way, when both the terminal and the vehicle use the first pairing code for pairing, pairing is completed between the terminal and the vehicle. Because this digital key pairing method allows pairing between the terminal and the vehicle without user interaction, it can improve the user experience.

[0103] See also Figure 2 , Figure 2 This is a schematic diagram of the architecture of a digital key pairing system provided in an embodiment of the present application. Figure 2 As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle 13. A communication connection exists between the server 11 and the terminal 12, through which data can be transmitted. For example, the server 11 can send a digital key to the terminal 12 via this communication connection. A communication connection also exists between the terminal 12 and the vehicle 13, through which data can be transmitted.

[0104] To better understand how the digital key pairing system implements the digital key pairing method, please refer to Figure 3 , Figure 3 This is a schematic diagram of another digital key pairing system provided in an embodiment of the present application. Figure 3As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle end 13. The server 11 includes a digital key service 111, which can be used to generate a digital key for the vehicle. The digital key service 111 includes a generation module 1111 and a first processing module 1112, wherein the generation module 1111 is used to generate a first pairing code, and / or the generation module 1111 is used to obtain third pairing information by performing a first processing on the target information, wherein the first pairing code includes the pairing code used for pairing the terminal 12 with the vehicle end 13, and the target information includes information for determining the first pairing code, that is, the first pairing code can be determined according to the target information. The first processing module 1112 is used to perform a first processing on the target information to obtain the third pairing information, wherein the first processing can be any way of processing data, for example, the first processing is to encrypt using a key, such as Figure 3 As shown, the first processing module 1112 of the digital key service 111 is pre-set during production, that is, the first processing module 1112 is pre-set in the digital key service 111 of the server 11 when the server 11 is produced. Optionally, the first processing module 1112 is a software module (such as a computer program, computer code, computer instruction, etc.). After generating the digital key and the third pairing information of the vehicle, the digital key service 111 sends the digital key and the third pairing information to the terminal. Optionally, when the generation module 1111 generates the first pairing code, the digital key service 111 also sends the second pairing code to the terminal.

[0105] The terminal 12 includes a digital key module 121 and a pairing module 122. The digital key module 121 is configured to generate first pairing information based on the third pairing information from the server 11 and send the first pairing information to the pairing module 122. The first pairing information includes the third pairing information, i.e., the first pairing information includes information obtained by performing the first processing on the target information. In one possible implementation, the digital key module 121 uses the third pairing information as the first pairing information. In another possible implementation, the information sent by the terminal 12 to the vehicle 13 includes ciphertext obtained by encrypting the first pairing code using the first key. The vehicle 13 needs to decrypt the ciphertext using the first key to obtain the first pairing code. In this case, the information used to determine the first pairing code includes information used to determine the first key. For example, the information used to determine the first key includes the first key. For another example, the first key can be obtained by calculating a key factor using another key. The information used to obtain the first key includes the key factor. The key factor can be any information and, optionally, includes a string of characters. In this case, the third pairing information is obtained by performing the first processing on the information used to obtain the first key. The terminal 12 encrypts the first pairing code using the first key to obtain pairing code information, and then uses the pairing code information and the third pairing information as the first pairing information.

[0106] The digital key module 121 is further configured to set the first pairing code as the pairing code used for pairing with the vehicle terminal 13, so that the pairing module 122 uses the first pairing code to pair with the vehicle terminal 13. Specifically, if the digital key module 121 does not receive the first pairing code from the server 11, the digital key module 121 generates the first pairing code. If the digital key module 121 receives the first pairing code from the server 11, the digital key module 121 sets the received first pairing code as the pairing code used for pairing with the vehicle terminal 13. The pairing module 122 is configured to send first pairing information to the vehicle terminal 13 and use the first pairing code to pair with the vehicle terminal 13.

[0107] The vehicle end 13 includes a digital key master control module 131 and a pairing module 132. The digital key master control module 131 includes a second processing module 1311, which is used to perform a second process on the first pairing information, wherein the information obtained by performing the second process on the information obtained by the first process includes the information before the first process. For example, if the first process performed on the target information is to encrypt the target information using a key, then the second process can be to decrypt the encrypted target information using the key to obtain the target information. Figure 3 As shown, the second processing module 1311 is also pre-installed during production, that is, it is pre-installed within the digital key master control module 131 of the vehicle terminal 13 during production. Since the second processing module 1311 obtains target information by performing the second processing on the first pairing information from the terminal 12, and the first pairing code can be determined based on the target information, the second processing module 1311 obtains the first pairing code by performing the second processing on the first pairing information. After obtaining the first pairing code, the digital key master control module 131 sets the first pairing code as the pairing code for pairing with the terminal 12, and then instructs the pairing module 132 to pair with the terminal 12 using the first pairing code.

[0108] In the digital key pairing system, since the first pairing code is not the default pairing code, the terminal 12 and the vehicle end 13 are paired based on the first pairing code, which enables the terminal 12 and the vehicle end 13 to pair based on the password-based pairing method. Specifically, the vehicle end 13 can obtain the target information by receiving the first pairing information from the terminal 12, and then determine the first pairing code based on the target information, so that it can pair with the terminal based on the first pairing code. In this way, the pairing of the terminal 12 and the vehicle end 13 can be achieved without user participation, thereby improving the user experience. In addition, because the first pairing information is obtained by performing a first processing on the target information, wherein the first processing can be implemented by the server 11, and the vehicle end 13 can obtain the target information by performing a second processing on the first pairing information through the second processing module 1311, the terminal 12 sends the target information to the vehicle end 13 by sending the first pairing information to the vehicle end 13, which can improve the transmission security of the target information.

[0109] To address the problem of passkey entry pairing requiring users to enter the same pairing code on both the terminal and the vehicle, resulting in complex user operations and a poor user experience, some methods involve the vehicle performing a preset process on a pairing code factor to obtain a pairing code. For example, the pairing code factor is calculated using a key. The pairing code factor can be arbitrary information and optionally includes a string, such as a random number. The vehicle then broadcasts the pairing code factor, used to generate the pairing code, to the terminal via short-range communication. The terminal then transmits the pairing code factor to a server via a mobile communication network. The server then performs a preset process on the pairing code factor to obtain a pairing code and transmits the pairing code factor to the terminal via the mobile communication network. The terminal and vehicle then pair based on the same pairing code, thereby enabling pairing without user interaction. However, in this method, the terminal must obtain the pairing code from the server via a mobile communication network. Therefore, if the terminal's mobile communication network is poor, the success rate of the terminal obtaining the pairing code from the server is low, resulting in low efficiency and success rate for pairing the terminal and vehicle.

[0110] As an optional implementation, in order to solve the problem of low success rate and low efficiency of vehicle-side pairing, in the digital key pairing system, the terminal 12 and the vehicle-side 13 transmit data through short-range communication. Specifically, the terminal 12 sends the first pairing information to the vehicle-side 13 through short-range communication, wherein the short-range communication technology used to achieve short-range communication includes: Bluetooth (blue tooth), SparkLink (or near link), ZigBee, wireless radio frequency identification (RFID), ultra wide band (UWB), or wireless short-range communication system, etc. Since the implementation of short-range communication does not need to rely on the mobile communication network, in this implementation, the terminal 12 does not need to rely on the mobile communication network to send the first pairing information to the vehicle-side 13. In this way, even if the vehicle is in an area with a poor mobile communication network, the vehicle-side 13 of the vehicle can receive the first pairing information from the terminal 12 through short-range communication, and then determine the first pairing code based on the first pairing information, and use the first pairing code to pair with the terminal 12. Furthermore, because the first pairing code of terminal 12 is generated by terminal 12 or obtained from server 11, and terminal 12 obtains the first pairing code from server 11 by applying for a digital key before pairing terminal 12 with vehicle 13, even if the mobile communication network of terminal 12 is poor, it will not affect the first pairing code held by terminal 12 during pairing with vehicle 13. In the case where a poor mobile communication network does not affect the first pairing code held by either terminal 12 or vehicle 13, the success rate and efficiency of pairing between terminal 12 and vehicle 13 can be improved.

[0111] In one possible scenario, the terminal 12 and the vehicle 13 are both in an underground parking lot with a poor mobile communication network. The digital key pairing method provided in the embodiment of the present application can be used to pair the terminal 12 and the vehicle 13 without using a mobile communication network. In another possible scenario, the terminal 12 and the vehicle 13 are both outdoors with a poor mobile communication network. The digital key pairing method provided in the embodiment of the present application can be used to pair the terminal 12 and the vehicle 13 without using a CMC.

[0112] See also Figure 4a , Figure 4a A flow chart of a pairing method provided in an embodiment of the present application, which is pairing the terminal with the vehicle before using the digital key for the first time. Figure 4a The pairing process shown is the pairing process when the terminal and the vehicle transmit data via Bluetooth. Figure 4aAs shown, the application (app) running on the terminal displays the message "Pairing with the vehicle, please turn on Bluetooth," along with a virtual "Confirm" button. After the user clicks the "Confirm" button, the terminal automatically enters the first pairing code: 238395 and turns on Bluetooth. The vehicle determines the first pairing code: 238395 based on the first pairing information sent by the terminal. The terminal and vehicle can then pair using the first pairing code.

[0113] See also Figure 4b , Figure 4b A method provided in the embodiment of this application Figure 4a The schematic diagram of the pairing method shown in Figure 1 shows how to defend against attacks. Figure 4b In the attack scenario shown, when an attacker (which can be any electronic device other than the aforementioned terminal or vehicle) attempts to establish a Bluetooth connection with the vehicle, a prompt box pops up saying "Please enter the pairing code:". If the attacker does not enter the correct pairing code, the connection with the vehicle cannot be established.

[0114] The following will explain in detail how the digital key pairing system implements the digital key pairing method. Figure 5 , Figure 5 A flowchart of a digital key pairing method provided in an embodiment of the present application.

[0115] 501. The terminal sends a key request to the server. Correspondingly, the server receives the key request from the terminal.

[0116] The meaning of the terminal in the digital key pairing method provided in this application can be found in the relevant description of the terminal above, for example, the terminal is an electronic device with communication capabilities, etc. Optionally, the server in the digital key pairing method is Figure 2 The server 11 in the digital key pairing system shown. The terminal in the digital key pairing method is Figure 2 The terminal 12 in the digital key pairing system is shown.

[0117] The key request is used to request the issuance of a digital key. In one possible implementation, the terminal sends a key request to the server through the APP to apply for the vehicle's digital key. The implementation process of the terminal sending a key request to the server can be found in Figure 1 As well as the previous Figure 1 The description will not be repeated here.

[0118] 502. The server obtains third pairing information by performing the first processing on the target information.

[0119] The target information includes information used to determine a first pairing code. The first pairing code includes the pairing code used to pair the terminal with the vehicle. In other words, the first pairing code can be determined based on the target information. Optionally, the target information includes one or more of the following: the first pairing code, information used to generate the first pairing code, and information used to decrypt the ciphertext of the first pairing code. In one possible implementation, the target information includes the first pairing code. In another possible implementation, the target information includes a pairing code factor used to generate the first pairing code. The first pairing code can be obtained by processing the pairing code factor. As described above, the pairing code factor can be any information. For example, the pairing code factor is 123456. The first pairing code can be generated by calculating the key pair 123456. The processing performed on the pairing code factor includes encryption and encoding. In yet another possible implementation, the target information includes a key used to generate the first pairing code. The first pairing code can be generated by calculating the pairing code factor using the key.

[0120] The first processing is used to convert information into information different from the information processed by the first processing. For example, performing the first processing on information a produces information b, where information a is different from information b. By performing the first processing on target information, information different from the target information can be obtained. The information obtained by the first processing can then be used as the carrier of the target information for transmission, thereby improving the security of the target information.

[0121] In one possible implementation, the first processing includes encryption, and performing the first processing on the target information includes encrypting the target information. Optionally, the first processing includes encrypting using a key, and performing the first processing on the target information includes encrypting the target information using a key. In another possible implementation, the first processing includes encrypting the target information and signing the encrypted ciphertext. By signing the encrypted ciphertext, the identity information of the vehicle corresponding to the digital key can be added to the ciphertext. At this time, the third pairing information obtained by performing the first processing on the target information includes the identity information of the vehicle. Optionally, the signature can be implemented by means of an asymmetric key or a symmetric key. Optionally, the first processing includes implementation based on counting and Galois / counter mode (GCM) algorithm.

[0122] In another possible implementation, the first processing includes processing using a preset algorithm, and performing the first processing on the target information includes processing the target information using the preset algorithm. For example, the preset algorithm is a mathematical model, and processing the target information using the preset algorithm may include using the target information as input to the mathematical model, with the output of the mathematical model being the result of performing the first processing on the target information. For another example, the first processing includes encoding, and performing the first processing on the target information includes encoding the target information.

[0123] The server may obtain third pairing information different from the target information by performing the first processing on the target information, where the third pairing information serves as a carrier of the target information. Optionally, the third pairing information is obtained by performing the first processing on all or part of the target information. In one possible implementation, the target information includes a first pairing code, and the server obtains the third pairing information by performing the first processing on the first pairing code. In another possible implementation, the target information includes a pairing code factor, and the server obtains the third pairing information by performing the first processing on the pairing code factor.

[0124] 503. The server sends the digital key and third pairing information to the terminal.

[0125] After obtaining the third pairing information, the server sends the digital key and the third pairing information to the terminal in response to the terminal's key request. Optionally, the server sends the digital key and the third pairing information to the terminal only if it determines that the terminal is authorized to use the vehicle corresponding to the digital key. This improves the security of the digital key and the third pairing information. For example, if the server determines that the terminal is authorized to use vehicle v, it sends the digital key and the third pairing information for vehicle v to the terminal.

[0126] Because the third pairing information carries the target information, and the target information includes information used to determine the first pairing code, the third pairing information can be used to determine the first pairing code. Furthermore, because the third pairing information is obtained by performing the first processing on the target information, and the vehicle terminal corresponding to the digital key is capable of performing the second processing, where the information obtained by performing the second processing on the information obtained by the first processing includes the information before the first processing, when the server sends the third pairing information to the terminal and the vehicle terminal receives the third pairing information from the terminal, the vehicle terminal can determine the first pairing code based on the third pairing information.

[0127] 504. The terminal obtains the first pairing information based on the third pairing information.

[0128] The terminal generates first pairing information based on the third pairing information from the server. The first pairing information includes the third pairing information, i.e., the first pairing information includes information obtained by performing the first processing on the target information. The specific implementation process of this step can be found in the above description of "digital key module 121 is used to generate first pairing information based on the third pairing information from the server 11" and will not be repeated here.

[0129] 505. The terminal sends first pairing information to the vehicle end. Correspondingly, the vehicle end receives the first pairing information from the terminal.

[0130] In one possible implementation, the terminal sends the first pairing information to the vehicle via short-range communication. Optionally, the terminal sends the first pairing information to the vehicle via short-range communication during the broadcast phase of the short-range communication. This allows data transmission between the terminal and the vehicle to be independent of the mobile communication network, enabling data transmission even when the terminal and / or the vehicle are in areas with poor mobile communication network conditions.

[0131] By executing step 505, the terminal sends first pairing information containing the target information to the vehicle, allowing the vehicle to further determine a first pairing code based on the received first pairing information. The terminal then uses the first pairing code to pair with the vehicle, enabling pairing between the terminal and the vehicle without user interaction, thereby improving the user experience.

[0132] 506. The vehicle side obtains a first pairing code by performing a second process on the first pairing information.

[0133] The meaning of the vehicle end in the digital key pairing method provided in this application can refer to the relevant description of the vehicle end in the previous text, for example, it includes an electronic device with communication capabilities, and the vehicle end is deployed in the vehicle, etc. Optionally, the vehicle end in the digital key pairing method is Figure 2 The vehicle end 13 in the digital key pairing system is shown.

[0134] The information obtained by performing the second processing on the information obtained by the first processing includes the information before the first processing. In one possible implementation, the first processing includes encryption, and the second processing includes decryption. For example, the third pairing information obtained by encrypting the plaintext of the target information is the ciphertext of the target information, and the plaintext of the target information can be obtained by decrypting the ciphertext of the target information. In another possible implementation, the first processing includes encryption using a key, and the second processing includes decryption using a key. In this implementation, because the server and the vehicle hold the same key, the vehicle has the ability to decrypt the ciphertext encrypted by the server using the key. Specifically, the third pairing information obtained by the server encrypting the plaintext of the target information using the key is the ciphertext of the target information, and the vehicle uses the same key to decrypt the ciphertext of the target information to obtain the plaintext of the target information. Moreover, the terminal transmits the target information in an encrypted manner, and the vehicle obtains the target information by decryption, thereby ensuring the confidentiality of the target information.

[0135] Optionally, when the first processing includes encryption, the vehicle side obtains a first pairing code by decrypting the first pairing information when the first pairing information passes identity authentication. Identity authentication includes verifying the signature of the first pairing information to determine whether the identity information of the vehicle carried in the signature is the identity information of the vehicle corresponding to the vehicle side. If so, it is determined that the first pairing information has passed identity authentication; otherwise, it is determined that the first pairing information has not passed identity authentication. If the first pairing information passes identity authentication, it means that the terminal is a device authorized to use the vehicle corresponding to the vehicle side, and the vehicle side then pairs with the terminal, which can improve the security of the pairing. When the first pairing information passes identity authentication, the vehicle side obtains the first pairing code by decrypting the first pairing information, which can reduce the probability of the first pairing information being tampered with by a device that is not authorized to use the vehicle corresponding to the vehicle side, thereby improving the integrity and legitimacy of the first pairing code obtained based on the first pairing information.

[0136] In another possible implementation, the first processing includes processing using a preset algorithm, and the second processing includes restoring the information obtained by the preset algorithm to the information before the processing by the preset algorithm. The vehicle side can obtain target information by performing the second processing on the first pairing information, and can further determine the first pairing code based on the target information.

[0137] Since the first pairing information includes target information, after the vehicle receives the first pairing information from the terminal in step 506, it can obtain the first pairing code by performing the second processing on the first pairing information, and then use the first pairing code to pair with the terminal. In this way, the terminal and the vehicle can be paired without user participation, thereby improving the user experience.

[0138] 507. The terminal and the vehicle are paired using the first pairing code.

[0139] This step includes pairing the terminal with the vehicle using a first pairing code, and then pairing the vehicle with the terminal using the first pairing code. If both the terminal and the vehicle possess the first pairing code, the terminal and the vehicle can be paired using the first pairing code. It should be understood that the first pairing code used by the terminal for pairing can be from a server or generated by the terminal.

[0140] exist Figure 5 In the digital key pairing method shown, the terminal applies for a digital key from the server, obtains the digital key and the third pairing information issued by the server. The terminal then obtains the first pairing information based on the third pairing information, and sends the first pairing information to the vehicle end. Since the first pairing information includes the information obtained by performing the first processing on the target information, and the information obtained by performing the second processing on the information obtained by the first processing includes the information before the first processing, the vehicle end can obtain the first pairing code by performing the second processing on the first pairing information. The terminal and the vehicle end can then be paired based on the first pairing code. After the pairing is completed, the terminal can send the control instructions of the digital key to the vehicle end based on the communication connection established by the pairing, thereby realizing the control of the vehicle through the digital key. Since the pairing of the terminal and the vehicle end does not require user participation, the user experience can be improved.

[0141] As an optional implementation, the terminal and the vehicle transmit the first pairing information via short-distance communication. Since the process of the terminal obtaining the third pairing information from the server is completed before the terminal is paired with the vehicle, the implementation of this process may not be affected by the mobile communication network status of the terminal and / or the vehicle (such as the user of the terminal may obtain the third pairing information from the server through the terminal when the mobile communication network status of the terminal supports the terminal obtaining the third pairing information from the server). Therefore, the terminal may obtain the third pairing information without being affected by the mobile communication network status of the terminal and / or the vehicle. After the terminal obtains the first pairing information based on the third pairing information, the terminal sends the first pairing information to the vehicle via short-distance communication, so that the pairing of the terminal and the vehicle is not affected by the mobile communication network status of the terminal and / or the mobile communication network status of the vehicle. Therefore, in the case where the terminal and the vehicle transmit the first pairing information via short-distance communication, Figure 5 The digital key pairing method shown can complete the pairing of the terminal and the vehicle without being affected by the mobile communication network status of the terminal and / or the mobile communication network status of the vehicle.

[0142] As an optional implementation, after the vehicle side uses the first pairing code to pair with the terminal, it also performs the following steps: if the pairing is successful, store the first pairing information; after storing the first pairing information, receive the second pairing information; if the first pairing information is the same as the second pairing information, refuse to pair with the device that sent the second pairing information.

[0143] After two devices are successfully paired, they will store the keys used for subsequent pairing, such as TK, STK, and LTK, so that they can be paired directly the next time they connect. In other words, for two devices that have been successfully paired, they will usually not be paired again using the pairing information used for the first pairing. If either of the two successfully paired devices receives the pairing information used for the first pairing, there is a high probability that this pairing is a replay attack. Therefore, if the pairing is successful, the first pairing information is stored; after the first pairing information is stored, the second pairing information is received; if the first pairing information is the same as the second pairing information, pairing with the device that sent the second pairing information is rejected, thereby reducing the probability of being affected by a replay attack.

[0144] Optionally, the time when the vehicle receives the first pairing information is the first time, and the time when the vehicle receives the second pairing information is the second time. If the first pairing information and the second pairing information are the same, and the time difference between the first time and the second time is greater than or equal to the time threshold, the vehicle refuses to pair with the device that sent the second pairing information.

[0145] As an optional implementation, the vehicle end belongs to the vehicle. After the terminal and the vehicle end are successfully paired, the terminal and the vehicle end can establish a connection, and subsequently transmit data through the connection established by pairing, which can improve transmission security. For example, the terminal and the vehicle end establish a Bluetooth connection through pairing, and subsequently the terminal and the vehicle end transmit data through Bluetooth, which can improve transmission security. Therefore, after the terminal is paired with the vehicle end using the first pairing code, the terminal can send the vehicle's digital key control instructions to the vehicle end through the connection established by pairing if the pairing is successful, and after the vehicle end receives the vehicle's digital key control instructions sent by the terminal, it controls the vehicle according to the control instructions. For example, the terminal can open the car door, close the car door, start the vehicle, start the air conditioner, etc. by sending the digital key control instructions to the vehicle end.

[0146] Optionally, if the terminal is outside the vehicle, then based on Figure 5 The digital key pairing method shown pairs the terminal with the vehicle, and can complete the pairing of the terminal with the vehicle without the terminal entering the vehicle. The user can then control the vehicle through the terminal without entering the vehicle.

[0147] In one possible scenario, the user and the vehicle are both in an underground parking lot. Due to the poor mobile communication network in the underground parking lot, it is difficult for the user's terminal and the vehicle's terminal to transmit data through the mobile communication network, which makes it difficult for the terminal and the vehicle to obtain the first pairing code through the mobile communication network. Figure 5 The digital key pairing method shown in the figure can transmit data between the terminal held by the user and the vehicle terminal through short-distance communication. Figure 5 In the digital key pairing method shown, when at least one of the terminal and the vehicle end is in a poor mobile communication network, the terminal and the vehicle end can also transmit information for determining the first pairing code through short-distance communication, so that both the terminal and the vehicle end can hold the first pairing code. In this way, even if the terminal does not enter the vehicle corresponding to the vehicle end, the terminal and the vehicle end can be paired based on the non-default pairing code (i.e., the first pairing code). Therefore, before the user enters the vehicle, the user can control the terminal to pair with the vehicle end through short-distance communication, and establish a short-distance communication connection between the terminal and the vehicle end if the pairing is successful. The user can then control the terminal to send digital key control instructions to the vehicle end through the short-distance communication to control the vehicle.

[0148] As an optional implementation, Figure 5 The target information and first pairing information in the digital key pairing method shown may include the following situations:

[0149] 1. The target information includes a pairing code factor, and the first pairing information includes information obtained by performing a first process on the pairing code factor, wherein the first pairing code is obtained based on performing a third process on the pairing code factor.

[0150] 2. The target information includes a key factor, and the first pairing information includes key factor information obtained by performing the first operation on the key factor, and pairing code information obtained by encrypting a first pairing code using a first key, wherein the first key is obtained based on the key factor.

[0151] 3. The target information includes a third key, and the first pairing information includes information obtained by performing a first processing on the third key, wherein the first pairing code is obtained by processing a pairing code factor based on the third key.

[0152] 4. The target information includes a first pairing code, and the first processing includes information obtained by performing the first processing on the first pairing code.

[0153] The following will explain the above four situations respectively. Figure 6 , Figure 6 A flowchart of another digital key pairing method provided in an embodiment of the present application. Figure 6The digital key pairing method shown can realize the pairing of the terminal and the vehicle end in the first case mentioned above. The digital key pairing method is applied to the field of digital key technology, such as the pairing between the terminal and the vehicle end before the terminal uses the digital key to control the vehicle. It can be understood that the steps in the digital key pairing method can be regarded as the above Figure 5 Alternatively, it is understood that the digital key pairing method in the digital key pairing method can also be regarded as an embodiment that can be executed independently, and this application does not limit this. It is understood that the relevant devices (including servers, terminals, and vehicle terminals) involved in the digital key pairing method can refer to the above Figure 5 The description of the relevant devices (including server, terminal, and vehicle end) of the digital key pairing method shown will not be repeated here.

[0154] 601. The terminal sends a key request to the server. Correspondingly, the server receives the key request from the terminal.

[0155] The implementation of step 601 is the same as that of step 501 and will not be described again here.

[0156] 602. The server performs a first process on the pairing code factor to obtain pairing code factor information.

[0157] In one possible implementation, the pairing code factor may be generated by a server. In another possible implementation, the pairing code factor is generated by a terminal, which then sends the pairing code factor to the server. For example, the key request sent by the terminal to the server includes the pairing code factor.

[0158] 603. The server sends the digital key and pairing code factor information to the terminal.

[0159] After obtaining the pairing code factor information, the server sends the digital key and pairing code factor information to the terminal in response to the terminal's key request. Optionally, the server sends the digital key and pairing code factor information to the terminal if it determines that the terminal is a device authorized to use the vehicle corresponding to the digital key.

[0160] 604. The terminal receives pairing code factor information from the server as first pairing information.

[0161] 605. The terminal sends first pairing information to the vehicle end. Correspondingly, the vehicle end receives the first pairing information from the terminal.

[0162] The implementation of step 605 is the same as that of step 505 and will not be repeated here.

[0163] 606. The vehicle performs a second process on the first pairing information to obtain a pairing code factor.

[0164] Since the information in the first pairing information before the first processing is the pairing code factor, the vehicle side performs the second processing on the first pairing information to obtain the pairing code factor.

[0165] 607. The vehicle performs a third process on the pairing code factor to obtain a first pairing code.

[0166] In one possible implementation, the third process includes encryption. The vehicle encrypts the pairing code factor to obtain the first pairing code. Alternatively, in this implementation, the server encrypts the pairing code factor in the same manner as the vehicle, obtaining the first pairing code, and then sends the first pairing code to the terminal. For example, the server and the vehicle share the same first shared key. The server encrypts the pairing code factor using the first shared key to obtain the first pairing code, and then sends the first pairing code to the terminal. After obtaining the pairing code factor, the vehicle encrypts it using the first shared key to obtain the first pairing code.

[0167] 608. The terminal and the vehicle are paired using the first pairing code.

[0168] The implementation of step 608 is the same as that of step 507 and will not be repeated here.

[0169] In this digital key pairing method, the first pairing code is obtained by performing a third process on the pairing code factor. The pairing code factor information is obtained by the server performing a first process on the pairing code factor. After receiving the pairing code factor information from the server, the terminal sends it as the first pairing information to the vehicle. The vehicle then obtains the pairing code factor by performing the second process on the first pairing information, and then obtains the first pairing code by performing the third process on the pairing code factor. If both the terminal and the vehicle possess the first pairing code, the two can pair using the first pairing code. This allows pairing between the terminal and the vehicle without user interaction.

[0170] See also Figure 7 , Figure 7 This is an architecture diagram of another digital key pairing system provided in an embodiment of the present application. Figure 7 The digital key system shown can be used to perform Figure 6 The digital key pairing method shown in the figure. Figure 7As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle end 13. The server 11 includes a digital key service 111, and the digital key service 111 includes a generation module 1111 and a first processing module 1112. The generation module 1111 is used to obtain a first pairing code and a pairing code factor, and the first processing module 1112 includes a first shared key and a second shared key. Optionally, the shared keys in the embodiments of the present application (including the above-mentioned first shared key, the above-mentioned second shared key, and the third shared key and the fourth shared key to be mentioned below) can all be generated based on the identity information of the vehicle. For example, a shared key can be generated based on the MAC address of the vehicle, or a shared key can be generated based on the vehicle's frame number. Since the identity information of the vehicle is unique, the shared key generated based on the identity information of the vehicle is also unique, which can improve the security of subsequent encryption and decryption based on the shared key.

[0171] The terminal 12 sends a key request to the server 11 (i.e. Figure 7 After step 1 in sequence number), the digital key service 111 generates the digital key of the vehicle (ie Figure 7 In step 2.1 of the sequence number), the generation module 1111 generates a pairing code factor (i.e. Figure 7 In step 2.2 of the sequence number), the generation module 1111 encrypts the pairing code factor using the first shared key to obtain the first pairing code (i.e. Figure 7 After obtaining the first pairing code, the digital key service 111 uses the second shared key to encrypt the first pairing code to obtain the pairing code factor information (i.e. Figure 7 After obtaining the digital key, the first pairing code, and the pairing code factor information, the server 11 sends the digital key, the first pairing code, and the pairing code factor information to the terminal 12 (i.e. Figure 7 3 in sequence number) to respond to the key request.

[0172] The terminal 12 includes a digital key module 121 and a pairing module 122. After receiving the pairing code factor information from the server 11, the pairing module 122 sends the pairing code factor information (i.e. Figure 7 Specifically, in the broadcast phase of short-range communication, the pairing code factor information is sent to the vehicle end 13 via broadcast. For example, the short-range communication includes Bluetooth, and the pairing code factor information is sent to the vehicle end 13 via Bluetooth broadcast. After receiving the first pairing code from the server 11, the digital key module 121 sets the first pairing code as the pairing code used for pairing with the vehicle end 13 (i.e. Figure 7 5), so that the pairing module 122 is paired with the vehicle end 13 using the first pairing code.

[0173] The vehicle end 13 includes a digital key master control module 131 and a pairing module 132, wherein the digital key master control module 131 includes a second processing module 1311, and the second processing module 1311 includes a first shared key and a second shared key. The pairing module 132 receives the pairing code factor information (i.e. Figure 7 After step 6 in sequence number 6), the pairing code factor and the first pairing code (ie Figure 7 Specifically, the pairing code factor information is first decrypted using the second shared key to obtain the pairing code factor, and then the pairing code factor is encrypted using the first shared key to obtain the first pairing code. After obtaining the first pairing code, the digital key master control module 131 sets the first pairing code as the pairing code used for pairing with the terminal 12 (i.e. Figure 7 8), so that the pairing module 132 pairs with the terminal 12 using the first pairing code.

[0174] When both the terminal 12 and the vehicle end 13 hold the first pairing code, the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are paired using the first pairing code, wherein the pairing module 122 and the pairing module 132 both include modules for short-range communication, for example, the pairing module 122 and the pairing module 132 are both modules for Bluetooth communication, or both are modules for Star Flash communication.

[0175] exist Figure 7 In the illustrated digital key pairing system, the first pairing code is obtained by encrypting the pairing code factor using the first shared key by the server 11, and the pairing code factor information is obtained by encrypting the pairing code factor using the second shared key by the server 11. The vehicle 13 also holds the first and second shared keys. Therefore, after receiving the pairing code factor information from the server, the terminal 12 broadcasts the pairing code factor information to the vehicle 13 via short-range communication. The vehicle 13 then decrypts the pairing code factor information using the second shared key to obtain the pairing code factor, and then encrypts the pairing code factor using the first shared key to obtain the first pairing code. If both the terminal 12 and the vehicle 13 possess the first pairing code, the two can pair using the first pairing code. This allows pairing between the terminal 12 and the vehicle 13 to be achieved without user intervention. Moreover, since the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are both modules for short-distance communication, the communication between the pairing module 122 and the pairing module 132 does not need to rely on the mobile communication network, thereby improving the pairing success rate and efficiency when the mobile communication network is poor.

[0176] See also Figure 8 , Figure 8A flowchart of another digital key pairing method provided in an embodiment of the present application. Figure 8 The digital key pairing method shown can realize the pairing of the terminal and the vehicle end in the second case mentioned above. The digital key pairing method is applied to the field of digital key technology, such as the pairing between the terminal and the vehicle end before the terminal uses the digital key to control the vehicle. It can be understood that the steps in the digital key pairing method can be regarded as the above Figure 5 Alternatively, it is understood that the digital key pairing method in the digital key pairing method can also be regarded as an embodiment that can be executed independently, and this application does not limit this. It is understood that the relevant devices (including servers, terminals, and vehicle terminals) involved in the digital key pairing method can refer to the above Figure 5 The description of the relevant devices (including server, terminal, and vehicle end) of the digital key pairing method shown will not be repeated here.

[0177] 801. The terminal sends a key request to the server. Correspondingly, the server receives the key request from the terminal.

[0178] The implementation of step 801 is the same as that of step 501 and will not be repeated here.

[0179] 802. The server performs a first process on the key factor to obtain key factor information.

[0180] In one possible implementation, the key factor may be generated by a server. In another possible implementation, the key factor is generated by a terminal, and the terminal sends the key factor to the server. For example, the key request sent by the terminal to the server includes the key factor.

[0181] 803. The server sends the digital key, the first key, and the key factor information to the terminal.

[0182] After obtaining the key factor information, the server sends the digital key, first key, and key factor information to the terminal in response to the terminal's key request. Optionally, the server sends the digital key, first key, and key factor information to the terminal if it determines that the terminal is authorized to use the vehicle corresponding to the digital key. The first key is obtained by the server based on the key factor. Optionally, the server encrypts the key factor using a third shared key to obtain the first key.

[0183] 804. The terminal encrypts the first pairing code using the first key to obtain pairing code information.

[0184] 805. The terminal obtains first pairing information according to the key factor information and the pairing code information.

[0185] In this step, the first pairing information includes key factor information and pairing code information. In a possible implementation, the terminal uses the key factor information and pairing code information as the first pairing information.

[0186] 806. The terminal sends first pairing information to the vehicle end. Correspondingly, the vehicle end receives the first pairing information from the terminal.

[0187] 807. The vehicle performs a second process on the first pairing information to obtain a key factor.

[0188] Since the information in the first pairing information before the first processing is the key factor, the vehicle side performs the second processing on the first pairing information to obtain the key factor.

[0189] In one possible implementation, both the server and the vehicle possess a second key; in this case, the second key is a shared key between the server and the vehicle. The first process includes encrypting the key factor using the second key. Specifically, the server encrypts the key factor using the second key to obtain key factor information. During step 807, the vehicle performs the following steps: Decrypting the key factor information using the second key to obtain the key factor.

[0190] 808. The vehicle side obtains the first key based on the key factor.

[0191] The vehicle-side can derive the first key from the key factor in the same manner as the server derives the first key from the key factor. In one possible implementation, the first key is derived by performing the fourth processing on the key factor. Specifically, if the server performs the fourth processing on the key factor to derive the first key, the vehicle-side can also perform the fourth processing on the key factor to derive the first key. Optionally, the server and the vehicle-side possess a third shared key, and performing the fourth processing on the key factor includes encrypting the key factor using the third shared key to obtain the first key.

[0192] 809. The vehicle end decrypts the pairing code information using the first key to obtain a first pairing code.

[0193] Since the pairing code information is obtained by encrypting the first pairing code using the first key, the vehicle end decrypts the pairing code information using the first key to obtain the first pairing code.

[0194] 810. The terminal and the vehicle are paired using a first pairing code.

[0195] The implementation of step 810 is the same as that of step 507 and will not be repeated here.

[0196] In this digital key pairing method, the server obtains a first key based on the key factor. A first processing is performed on the key factor to obtain key factor information. The server then sends the first key and key factor information to the terminal. After receiving the first key from the server, the terminal uses the first key to encrypt the first pairing code to obtain pairing code information, and then obtains the first pairing information based on the pairing code information and the key factor information. The terminal then sends the first pairing information to the vehicle. After receiving the first pairing information, the vehicle first performs a second processing on the key factor information in the first pairing information to obtain the key factor, then obtains the first key based on the key factor, and finally uses the first key to decrypt the pairing code information in the first pairing information to obtain the first pairing code. When both the terminal and the vehicle hold the first pairing code, the terminal and the vehicle can be paired using the first pairing code. In this way, the terminal and the vehicle can be paired without user participation.

[0197] See also Figure 9 , Figure 9 This is an architecture diagram of another digital key pairing system provided in an embodiment of the present application. Figure 9 The digital key system shown can be used to perform Figure 8 The digital key pairing method shown in the figure. Figure 9 As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle end 13. The server 11 includes a digital key service 111, which includes a generation module 1111 and a first processing module 1112. The generation module 1111 is used to obtain key factor information and a first key, and the first processing module 1112 includes a second key and a third shared key. When the terminal 12 sends a key request (i.e. Figure 9 After the step 1 in the sequence number), the digital key service 111 generates the digital key of the vehicle (ie Figure 9 In step 2.1 of the sequence number), the generation module 1111 generates a key factor and encrypts the key factor using the second key to obtain key factor information (ie Figure 9 In step 2.2 of the sequence number), the generation module 1111 uses the third shared key to encrypt the key factor to obtain the first key (ie Figure 9 After obtaining the digital key, key factor information, and first key, the server 11 sends the digital key, key factor information, and first key (i.e. Figure 9 3 in sequence number) to respond to the key request.

[0198] The terminal 12 includes a digital key module 121 and a pairing module 122. After receiving the first key from the server 11, the digital key module 121 uses the first key to encrypt the first pairing code to obtain pairing code information. Optionally, the first pairing code can be randomly generated by the terminal 12. The digital key module 121 then obtains the first pairing information based on the pairing code information and the key factor information. The pairing module 122 sends the first pairing information (i.e., Figure 9 Specifically, in the broadcast phase of short-range communication, the first pairing information is sent to the vehicle end 13 via broadcast. For example, the short-range communication includes Bluetooth, and the first pairing information is sent to the vehicle end 13 via Bluetooth broadcast. The digital key module 121 also sets the first pairing code to the pairing code used for pairing with the vehicle end 13 (i.e. Figure 9 5), so that the pairing module 122 is paired with the vehicle end 13 using the first pairing code.

[0199] The vehicle end 13 includes a digital key master control module 131 and a pairing module 132, wherein the digital key master control module 131 includes a second processing module 1311, and the second processing module 1311 includes a second key and a third shared key. The pairing module 132 receives the first pairing information (i.e. Figure 9 After step 6 in sequence number), the first pairing code (i.e. Figure 9 Specifically, the first pairing information is decrypted using the second key to obtain the key factor, and then the key factor is encrypted using the third shared key to obtain the first key, and finally the pairing code information is decrypted using the first key to obtain the first pairing code. After obtaining the first pairing code, the digital key master control module 131 sets the first pairing code as the pairing code used for pairing with the terminal 12 (i.e. Figure 9 8), so that the pairing module 132 pairs with the terminal 12 using the first pairing code.

[0200] When both the terminal 12 and the vehicle end 13 hold the first pairing code, the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are paired using the first pairing code, wherein the pairing module 122 and the pairing module 132 both include modules for short-range communication, for example, the pairing module 122 and the pairing module 132 are both modules for Bluetooth communication, or both are modules for Star Flash communication.

[0201] exist Figure 9In the illustrated digital key pairing system, the server 11 encrypts the key factor using the second key to obtain key factor information and the key factor using the third shared key to obtain the first key. The server then sends the first key and key factor information to the terminal 12. After receiving the first key from the server, the terminal 12 encrypts the first pairing code using the first key to obtain pairing code information. It then obtains the first pairing information based on the pairing code information and key factor information. The terminal 12 then sends the first pairing information to the vehicle 13. Upon receiving the first pairing information, the vehicle 13 first decrypts the first pairing information using the second key to obtain the key factor, then encrypts the key factor using the third shared key to obtain the first key, and finally decrypts the pairing code information using the first key to obtain the first pairing code. If both the terminal 12 and the vehicle 13 possess the first pairing code, the two can pair using the first pairing code. This allows pairing between the terminal 12 and the vehicle 13 without user interaction. Moreover, since the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are both modules for short-distance communication, the communication between the pairing module 122 and the pairing module 132 does not need to rely on the mobile communication network, thereby improving the pairing success rate and efficiency when the mobile communication network is poor.

[0202] See also Figure 10 , Figure 10 A flowchart of another digital key pairing method provided in an embodiment of the present application. Figure 10 The digital key pairing method shown can achieve the pairing of the terminal and the vehicle end in the third case mentioned above. The digital key pairing method is applied to the field of digital key technology, such as the pairing between the terminal and the vehicle end before the terminal uses the digital key to control the vehicle. It can be understood that the steps in the digital key pairing method can be regarded as the above Figure 5 Alternatively, it is understood that the digital key pairing method in the digital key pairing method can also be regarded as an embodiment that can be executed independently, and this application does not limit this. It is understood that the relevant devices (including servers, terminals, and vehicle terminals) involved in the digital key pairing method can refer to the above Figure 5 The description of the relevant devices (including server, terminal, and vehicle end) of the digital key pairing method shown will not be repeated here.

[0203] 1001. Send a key request to a server. Correspondingly, the server receives the key request from the terminal.

[0204] The implementation of step 1001 is the same as that of step 501 and will not be repeated here.

[0205] 1002. The server performs the first processing on the third key to obtain key information.

[0206] In this step, the third key is used to obtain the first pairing code. Specifically, the third key is used to encrypt the pairing code factor to obtain the first pairing code. Optionally, the third key is randomly generated by the server.

[0207] 1003. The server sends the digital key and key information to the terminal.

[0208] After obtaining the key information, the server sends the digital key and key information to the terminal in response to the terminal's key request. Optionally, the server sends the digital key and key information to the terminal if it determines that the terminal is authorized to use the vehicle corresponding to the digital key. Optionally, the server also sends a third key to the terminal at the same time as sending the digital key and key information to the terminal, so that the terminal can use the third key to obtain the first pairing code.

[0209] 1004. The terminal receives key information from the server as first pairing information.

[0210] 1005. The terminal sends first pairing information to the vehicle end. Correspondingly, the vehicle end receives the first pairing information from the terminal.

[0211] As an optional embodiment, before receiving the first pairing information from the terminal, the vehicle further performs the following steps: randomly generating a pairing code factor; and sending the pairing code factor to the terminal. Optionally, the vehicle broadcasts the pairing code factor to the terminal during the short-range communication broadcast phase. In this way, the terminal can encrypt the pairing code factor using a third key to obtain the first pairing code.

[0212] 1006. Perform a second process on the first pairing information to obtain a third key.

[0213] Since the information in the first pairing information before the first processing is the third key, the vehicle side performs the second processing on the first pairing information to obtain the third key.

[0214] As an optional embodiment, both the server and the vehicle possess a fourth key, which is a shared key between the server and the vehicle. The server performs the first processing on the third key, including encrypting the third key using the fourth key to obtain key information. Since the first pairing information sent by the terminal to the vehicle is key information, upon receiving the first pairing information, the vehicle decrypts the first pairing information using the fourth key to obtain the third key.

[0215] 1007. Encrypt the pairing code factor using the third key to obtain a first pairing code.

[0216] 1008. The terminal and the vehicle are paired using a first pairing code.

[0217] The implementation of step 1008 is the same as that of step 507 and will not be repeated here. Optionally, before pairing the terminal with the vehicle using the first pairing code, the terminal further performs the following steps: receiving a third key from the server. Using the third key, the pairing code factor is encrypted to obtain the first pairing code.

[0218] In this digital key pairing method, the server performs a first process on the third key to obtain key information, which it then sends to the terminal. Upon receiving the key information, the terminal sends it as first pairing information to the vehicle. Upon receiving the first pairing information, the vehicle performs a second process on the first pairing information to obtain the third key. This key is then used to encrypt the pairing code factor to obtain the first pairing code. If both the terminal and the vehicle possess the first pairing code, the two can pair using the first pairing code. This allows for pairing between the terminal and the vehicle without user interaction.

[0219] See also Figure 11 , Figure 11 This is an architecture diagram of another digital key pairing system provided in an embodiment of the present application. Figure 11 The digital key system shown can be used to perform Figure 10 The digital key pairing method shown in the figure. Figure 11 As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle terminal 13. The server 11 includes a digital key service 111, which includes a generation module 1111 and a first processing module 1112. The generation module 1111 is used to obtain key information, and the first processing module 1112 includes a fourth key. When the terminal 12 sends a key request (i.e., Figure 11 After the step 1 in the sequence number), the digital key service 111 generates the digital key of the vehicle (ie Figure 11 2.1) and the third key, the generation module 1111 uses the fourth key to encrypt the third key to obtain key information (ie Figure 11 After obtaining the digital key, the third key, and the key information, the server 11 sends the digital key, the third key, and the key information to the terminal 12 (i.e. Figure 11 3 in sequence number) to respond to the key request.

[0220] The terminal 12 includes a digital key module 121 and a pairing module 122. After receiving the third key from the server 11, the digital key module 121 uses the third key to encrypt the pairing code factor to obtain the first pairing code, wherein the pairing code factor is obtained by the pairing module 122 from the vehicle end 13 through broadcasting. After the digital key module 121 receives the key information from the server 11, the pairing module 122 sends the key information to the vehicle end 13 through broadcasting. In other words, the pairing module 122 receives the pairing code factor from the vehicle end 13 through broadcasting, and sends the key information (i.e. Figure 11 Specifically, in the broadcast phase of short-range communication, the pairing code factor is received from the vehicle end 13 by broadcasting, and the key information is sent to the vehicle end 13 by broadcasting. For example, the short-range communication includes Bluetooth, and the key information is sent to the vehicle end 13 by Bluetooth broadcasting. The digital key module 121 also sets the first pairing code to the pairing code used for pairing with the vehicle end 13 (i.e. Figure 11 5), so that the pairing module 122 is paired with the vehicle end 13 using the first pairing code.

[0221] The vehicle end 13 includes a digital key master control module 131 and a pairing module 132, wherein the digital key master control module 131 includes a second processing module 1311, and the second processing module 1311 includes a third key. Before the vehicle end 13 is paired with the terminal 12, the vehicle end 13 generates a pairing code factor, and the pairing module 132 sends the pairing code factor to the terminal 12 via broadcast during the broadcast phase, so that the terminal 12 can obtain the first pairing code based on the pairing code factor. In addition, the pairing module 132 also receives key information from the terminal 12 via broadcast during the broadcast phase. That is, the pairing module 132 sends the pairing code factor to the vehicle end 13 via broadcast, and receives the key information (i.e. Figure 11 Step 6 in the sequence).

[0222] As an optional embodiment, before receiving the first pairing information from the terminal 12, the vehicle-side 13 further performs the following steps: randomly generating a pairing code factor. Specifically, the pairing code factor is randomly generated, and optionally, the pairing code factor includes a random number. In one possible implementation, the vehicle-side 13 randomly generates the pairing code factor such that two consecutive pairing code factor generation times meet a preset condition. Optionally, the preset condition includes the time interval between two consecutive pairing code factor generation times being less than or equal to an interval threshold. Optionally, the preset condition includes the time interval between two consecutive pairing code factor generation times being a periodic value. In this case, the vehicle-side 13 periodically randomly generates the pairing code factor, and the period is the periodic value. A larger periodic value increases the probability that the pairing code factor generated by the vehicle-side 13 can be cracked by a third party other than the terminal 12 and the vehicle-side 13. A smaller periodic value increases the data processing required by the vehicle-side 13 to generate the pairing code factor. Therefore, the periodic value can be set based on actual needs. Optionally, the preset condition includes the second pairing code factor generated in two consecutive pairing code factors being generated only when pairing is successful based on the first pairing code factor generated in the previous pairing code factor. In other words, after the vehicle end 13 successfully pairs based on the generated pairing code factor, the vehicle end 13 regenerates a pairing code factor for the next pairing when pairing is required next time.

[0223] After the vehicle side 13 generates the pairing code factor and the pairing module 132 receives the key information from the terminal 12, the second processing module 1311 obtains the first pairing code (ie Figure 11 Specifically, the fourth key is used to decrypt the key information to obtain the third key, and then the third key is used to encrypt the pairing code factor to obtain the first pairing code. After obtaining the first pairing code, the digital key master control module 131 sets the first pairing code as the pairing code used for pairing with the terminal 12 (i.e. Figure 11 8), so that the pairing module 132 pairs with the terminal 12 using the first pairing code.

[0224] When both the terminal 12 and the vehicle end 13 hold the first pairing code, the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are paired using the first pairing code, wherein the pairing module 122 and the pairing module 132 both include modules for short-range communication, for example, the pairing module 122 and the pairing module 132 are both modules for Bluetooth communication, or both are modules for Star Flash communication.

[0225] exist Figure 11In the illustrated digital key pairing system, server 11 generates a third key and encrypts the third key using a fourth key to obtain key information. The server then sends the third key and key information to terminal 12. Upon receiving the third key and key information, terminal 12 uses the third key to encrypt the pairing code factor from vehicle 13 to obtain a first pairing code, and then sends the key information to vehicle 13. Upon receiving the key information, vehicle 13 decrypts the key information using the fourth key to obtain the third key, and then encrypts the pairing code factor using the third key to obtain the first pairing code. If both terminal 12 and vehicle 13 possess the first pairing code, the two can pair using the first pairing code. This allows pairing between terminal 12 and vehicle 13 without user intervention. Furthermore, since pairing modules 122 and 132 in terminal 12 and vehicle 13 are both designed for short-range communication, communication between pairing modules 122 and 132 is independent of the mobile communication network, improving pairing success rates and efficiency even in situations with poor mobile communication networks.

[0226] See also Figure 12 , Figure 12 A flowchart of another digital key pairing method provided in an embodiment of the present application. Figure 12 The digital key pairing method shown can achieve the pairing of the terminal and the vehicle end in the fourth case mentioned above. The digital key pairing method is applied to the field of digital key technology, such as the pairing between the terminal and the vehicle end before the terminal uses the digital key to control the vehicle. It can be understood that the steps in the digital key pairing method can be regarded as the above Figure 5 Alternatively, it is understood that the digital key pairing method in the digital key pairing method can also be regarded as an embodiment that can be executed independently, and this application does not limit this. It is understood that the relevant devices (including servers, terminals, and vehicle terminals) involved in the digital key pairing method can refer to the above Figure 5 The description of the relevant devices (including server, terminal, and vehicle end) of the digital key pairing method shown will not be repeated here.

[0227] 1201. Send a key request to the server. Correspondingly, the server receives the key request from the terminal.

[0228] The implementation of step 1201 is the same as that of step 501 and will not be repeated here.

[0229] 1202. The server performs a first process on the first pairing code to obtain pairing code information.

[0230] 1203. The server sends the digital key and pairing code information to the terminal.

[0231] After receiving the pairing code information, the server sends the digital key and pairing code information to the terminal in response to the terminal's key request. Optionally, the server sends the digital key and pairing code information to the terminal when it determines that the terminal is a device authorized to use the vehicle corresponding to the digital key.

[0232] 1204. The terminal receives pairing code information from the server as first pairing information.

[0233] 1205. The terminal sends first pairing information to the vehicle end, and correspondingly, the vehicle end receives the first pairing information from the terminal.

[0234] 1206. Perform a second process on the first pairing information to obtain a first pairing code.

[0235] Since the information in the first pairing information before the first processing is the first pairing code, the vehicle side performs the second processing on the first pairing information to obtain the first pairing code.

[0236] 1207. The terminal and the vehicle are paired using the first pairing code.

[0237] The implementation of step 1207 is the same as that of step 507 and will not be repeated here.

[0238] In this digital key pairing method, the server performs a first process on a first pairing code to obtain pairing code information, which is then sent to the terminal. After receiving the pairing code information, the terminal transmits it as the first pairing information to the vehicle. After receiving the first pairing information, the vehicle performs a second process on the first pairing information to obtain the first pairing code. If both the terminal and the vehicle possess the first pairing code, the two can pair using the first pairing code. This allows pairing between the terminal and the vehicle to be achieved without user interaction.

[0239] As an optional implementation, Figure 12 The digital key pairing method shown can be divided into the following two implementation methods according to the generation method of the first pairing code:

[0240] 1. The first pairing code is generated by the server;

[0241] 2. The first pairing code is generated by the terminal.

[0242] The following will explain these two implementation methods respectively. Figure 13 , Figure 13 This is an architecture diagram of another digital key pairing system provided in an embodiment of the present application. Figure 13 The digital key system shown can be used to implement the first implementation method mentioned above. Figure 13As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle terminal 13. The server 11 includes a digital key service 111, which includes a generation module 1111 and a first processing module 1112. The generation module 1111 is used to obtain a first pairing code and pairing code information, and the first processing module 1112 includes a fourth shared key. When the terminal 12 sends a key request (i.e., Figure 13 After the step 1 in the sequence number), the digital key service 111 generates the digital key of the vehicle (ie Figure 13 In step 2.1 of the sequence number), the generating module 1111 generates a first pairing code (ie Figure 13 In step 2.2 of the sequence number), the generation module 1111 uses the fourth shared key to encrypt the first pairing code to obtain pairing code information (ie Figure 13 After obtaining the digital key, the first pairing code, and the pairing code information, the server 11 sends the digital key, the first pairing code, and the pairing code information to the terminal 12 (i.e. Figure 13 3 in sequence number) to respond to the key request.

[0243] The terminal 12 includes a digital key module 121 and a pairing module 122. After receiving the pairing code information from the server 11, the pairing module 122 sends the pairing code information (i.e. Figure 13 Specifically, in the broadcast phase of short-range communication, the pairing code information is sent to the vehicle end 13 by broadcasting. For example, the short-range communication includes Bluetooth, and the pairing code information is sent to the vehicle end 13 by Bluetooth broadcasting. After receiving the first pairing code from the server 11, the digital key module 121 sets the first pairing code as the pairing code used for pairing with the vehicle end 13 (i.e. Figure 13 5), so that the pairing module 122 is paired with the vehicle end 13 using the first pairing code.

[0244] The vehicle end 13 includes a digital key master control module 131 and a pairing module 132, wherein the digital key master control module 131 includes a second processing module 1311, and the second processing module 1311 includes a fourth shared key. The pairing module 132 receives the pairing code information (i.e. Figure 13 After step 6 in sequence number), the first pairing code (i.e. Figure 13 Specifically, the fourth shared key is used to decrypt the pairing code information to obtain the first pairing code (ie Figure 13 8), so that the pairing module 132 pairs with the terminal 12 using the first pairing code.

[0245] When both the terminal 12 and the vehicle end 13 hold the first pairing code, the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are paired using the first pairing code, wherein the pairing module 122 and the pairing module 132 both include modules for short-range communication, for example, the pairing module 122 and the pairing module 132 are both modules for Bluetooth communication, or both are modules for Star Flash communication.

[0246] exist Figure 13 In the illustrated digital key pairing system, after generating a first pairing code, server 11 encrypts the first pairing code using a fourth shared key to obtain pairing code information. Server 11 then sends the first pairing code and pairing code information to terminal 12. After receiving the pairing code information, terminal 12 sends the pairing code information to vehicle 13. Because vehicle 13 holds the fourth shared key, vehicle 13 can use the fourth shared key to decrypt the pairing code information to obtain the first pairing code. If both terminal 12 and vehicle 13 possess the first pairing code, they can pair using the first pairing code. This allows pairing between terminal 12 and vehicle 13 without user intervention. Furthermore, because pairing modules 122 and 132 in terminal 12 and vehicle 13 are both designed for short-range communication, communication between pairing modules 122 and 132 is independent of the mobile communication network, thereby improving pairing success rate and efficiency in situations with poor mobile communication networks.

[0247] See also Figure 14 , Figure 14 This is an architecture diagram of another digital key pairing system provided in an embodiment of the present application. Figure 14 The digital key system shown can be used to implement the second implementation method mentioned above. Figure 14 As shown, the digital key pairing system includes a server 11, a terminal 12, and a vehicle terminal 13. The server 11 includes a digital key service 111, which includes a generation module 1111 and a first processing module 1112. The generation module 1111 is used to obtain pairing code information, and the first processing module 1112 includes a fourth shared key. The key request sent by the terminal 12 to the server 11 carries the first pairing code (i.e. Figure 14 The first pairing code is generated by the terminal 12. After receiving the key request from the terminal, the digital key service 111 generates a digital key for the vehicle (i.e. Figure 14 In step 2.1 of the sequence number), the generation module 1111 uses the fourth shared key to encrypt the first pairing code to obtain the pairing code information (ie Figure 14 After obtaining the digital key and pairing code information, the server 11 sends the digital key and pairing code information to the terminal 12 (i.e. Figure 143 in sequence number) to respond to the key request.

[0248] The terminal 12 includes a digital key module 121 and a pairing module 122. After receiving the pairing code information from the server 11, the pairing module 122 sends the pairing code information (i.e. Figure 14 Specifically, in the broadcast phase of short-range communication, the pairing code information is sent to the vehicle end 13 by broadcasting. For example, the short-range communication includes Bluetooth, and the pairing code information is sent to the vehicle end 13 by Bluetooth broadcasting. After receiving the first pairing code from the server 11, the digital key module 121 sets the first pairing code as the pairing code used for pairing with the vehicle end 13 (i.e. Figure 14 5), so that the pairing module 122 is paired with the vehicle end 13 using the first pairing code.

[0249] The vehicle end 13 includes a digital key master control module 131 and a pairing module 132, wherein the digital key master control module 131 includes a second processing module 1311, and the second processing module 1311 includes a fourth shared key. The pairing module 132 receives the pairing code information (i.e. Figure 14 After step 6 in sequence number), the first pairing code (i.e. Figure 14 Specifically, the pairing code information is decrypted using the fourth shared key to obtain the first pairing code (ie Figure 14 8), so that the pairing module 132 pairs with the terminal 12 using the first pairing code.

[0250] When both the terminal 12 and the vehicle end 13 hold the first pairing code, the pairing module 122 of the terminal 12 and the pairing module 132 of the vehicle end 13 are paired using the first pairing code, wherein the pairing module 122 and the pairing module 132 both include modules for short-range communication, for example, the pairing module 122 and the pairing module 132 are both modules for Bluetooth communication, or both are modules for Star Flash communication.

[0251] exist Figure 14In the illustrated digital key pairing system, after generating a first pairing code, the terminal 12 sends a key request to the server 11. Upon receiving the key request, the server 11 encrypts the first pairing code using the fourth shared key to obtain pairing code information. The server 11 then sends the pairing code information to the terminal 12. After receiving the pairing code information, the terminal 12 sends the pairing code information to the vehicle 13. Because the vehicle 13 holds the fourth shared key, the vehicle 13 can use the fourth shared key to decrypt the pairing code information to obtain the first pairing code. If both the terminal 12 and the vehicle 13 possess the first pairing code, the two can pair using the first pairing code. This allows pairing between the terminal 12 and the vehicle 13 without user intervention. Furthermore, because the pairing modules 122 and 132 of the terminal 12 and the vehicle 13 are both short-range communication modules, communication between the pairing modules 122 and 132 is independent of the mobile communication network, thereby improving the pairing success rate and efficiency in situations with poor mobile communication networks.

[0252] The above describes in detail the method of the embodiment of the present application. The following provides an apparatus of the embodiment of the present application.

[0253] It should be understood that the division of the units in the device provided in the embodiments of the present application is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. In addition, the units in the device can be implemented in the form of a processor calling software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each unit of the device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor (MPU), and the memory is a memory within the device or a memory outside the device.

[0254] Alternatively, the units in the device may be implemented in the form of hardware circuits, and the functions of some or all of the units may be implemented by designing the hardware circuits, and the hardware circuits may be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), which implements the functions of some or all of the above units by designing the logical relationships of the components within the circuit. For another example, in another implementation, the hardware circuit may be implemented by a programmable logic device (PLD), taking a field programmable gate array (FPGA) as an example, which may include a large number of logic gate circuits, and the connection relationships between the logic gate circuits may be configured through configuration files, thereby implementing the functions of some or all of the above units.

[0255] In an embodiment of the present application, each unit in the device may be one or more processors (or processing circuits) configured to implement the above method, such as: a CPU, a graphics processing unit (GPU), a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), an MPU, a digital signal processor (DSP), an ASIC, an FPGA, or a combination of at least two of these processor forms.

[0256] In addition, the various units in the above devices can be fully or partially integrated together, or can be implemented independently. In one implementation, these units are integrated together to be implemented in the form of a system-on-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of the various units of the device. The types of the at least one processor may be different, for example, including a CPU and an FPGA, or including a CPU and an MCU, or including a CPU and a GPU, etc. Several possible devices are listed below.

[0257] See Figure 15 , Figure 15Schematic diagram of the structure of a digital key pairing device provided in an embodiment of the present application. Optionally, the digital key pairing device 150 can be an independent device, such as a vehicle, a terminal, a server, a processing device, a communication module, etc. Alternatively, the digital key pairing device 150 can also be a device in an independent device (such as a digital key pairing device), such as a chip or an integrated circuit. The digital key pairing device 150 is used to implement the aforementioned digital key pairing method, such as Figure 5 The digital key pairing method shown and its possible implementation methods.

[0258] Exemplarily, the digital key pairing device 150 includes a communication unit 1502 and a processing unit 1501. The processing unit 1501 is configured to implement one or more operations such as processing, determining, generating, calculating, and updating, while the communication unit 1502 is configured to implement one or more operations such as sending, receiving, and acquiring. It should be understood that the unit divisions described here are for illustrative purposes only; in specific implementations, some units may be combined, or a single unit may be split into multiple units.

[0259] In one possible design, the digital key pairing device 150 is used to implement the vehicle-side method in the aforementioned digital key pairing method.

[0260] In one possible implementation, the communication unit 1502 is configured to receive first pairing information from a terminal. The processing unit 1501 is configured to perform second processing on the first pairing information to obtain a first pairing code. The communication unit 1502 is further configured to pair with the terminal using the first pairing code.

[0261] In one possible implementation, the target information includes a pairing code factor, and the first pairing code is obtained based on performing a third processing on the pairing code factor. The processing unit 1501 is configured to: perform the second processing on the first pairing information to obtain the pairing code factor; and perform the third processing on the pairing code factor to obtain the first pairing code.

[0262] In one possible implementation, the target information includes a key factor, and the first pairing information further includes pairing code information and key factor information obtained by performing a first process on the key factor. The pairing code information is obtained by encrypting the first pairing code using a first key, and the first key is obtained based on the key factor. Processing unit 1501 is configured to: perform a second process on the key factor information to obtain the key factor; obtain the first key based on the key factor; and decrypt the pairing code information using the first key to obtain the first pairing code.

[0263] In a possible implementation, the first processing includes encrypting the key factor using the second key; the processing unit 1501 is configured to decrypt the key factor information using the second key to obtain the key factor.

[0264] In a possible implementation, the first key is obtained by performing the fourth processing on the key factor; the processing unit 1501 is configured to perform the fourth processing on the key factor to obtain the first key.

[0265] In one possible implementation, the target information includes a third key, and the first pairing code is obtained by processing the pairing code factor based on the third key; the processing unit 1501 is configured to: perform the second processing on the first pairing information to obtain the third key; and encrypt the pairing code factor using the third key to obtain the first pairing code.

[0266] In a possible implementation, the first processing includes encrypting the third key using the fourth key; and the processing unit 1501 is configured to decrypt the first pairing information using the fourth key to obtain the third key.

[0267] In one possible implementation, the processing unit 1501 is further configured to: randomly generate a pairing code factor;

[0268] The communication unit 1502 is further configured to send the pairing code factor to the terminal.

[0269] In a possible implementation, the processing unit 1501 is configured to randomly generate a pairing code factor in such a manner that generating a pairing code factor twice in a row satisfies a preset condition.

[0270] In a possible implementation, the target information includes a first pairing code; and the processing unit 1501 is configured to perform a second process on the first pairing information to obtain the first pairing code.

[0271] In a possible implementation, the first processing includes encryption; the processing unit 1501 is configured to obtain a first pairing code by decrypting the first pairing information.

[0272] In a possible implementation, the processing unit 1501 is configured to: when the first pairing information passes identity authentication, obtain the first pairing code by decrypting the first pairing information.

[0273] In a possible implementation, the communication unit 1502 is configured to receive first pairing information sent by the terminal through short-range communication.

[0274] In a possible implementation, the vehicle end belongs to the vehicle, and the terminal is outside the vehicle.

[0275] In a possible implementation, the processing unit 1501 is further configured to: if pairing is successful, store the first pairing information;

[0276] The communication unit 1502 is further configured to: after storing the first pairing information, receive the second pairing information;

[0277] The processing unit 1501 is further configured to: when the first pairing information is the same as the second pairing information, refuse to pair with the device that sent the second pairing information.

[0278] In a possible implementation, the time when the vehicle end receives the first pairing information is the first time, and the time when the vehicle end receives the second pairing information is the second time;

[0279] The processing unit 1501 is configured to: when the first pairing information is the same as the second pairing information and the time difference between the first time and the second time is greater than or equal to a time threshold, refuse to pair with the device that sent the second pairing information.

[0280] In a possible implementation, the vehicle terminal belongs to a vehicle, and the communication unit 1502 is further configured to: receive a control instruction of a digital key of the vehicle sent by the terminal when pairing is successful;

[0281] The processing unit 1501 is used to control the vehicle according to the control instructions.

[0282] The detailed description of the above implementation can be found in the introduction of the aforementioned method embodiment.

[0283] In one possible design, the digital key pairing device 150 is used to implement the terminal-side method in the aforementioned digital key pairing method.

[0284] In a possible implementation, the communication unit 1502 is configured to send first pairing information to the vehicle end; and the processing unit 1501 is configured to perform pairing with the vehicle end using the first pairing code.

[0285] In one possible implementation, the target information includes a pairing code factor, and the first pairing code is obtained based on performing a third processing on the pairing code factor. The communication unit 1502 is further configured to: receive pairing code factor information from the server as the first pairing information, where the pairing code factor information is obtained based on performing the first processing on the pairing code factor.

[0286] In one possible implementation, the target information includes a first pairing code and a key factor, and the first processing includes performing a first processing on the key factor. The communication unit 1502 is further configured to: receive a first key and key factor information from a server, wherein the first key is obtained based on the key factor, and the key factor information is obtained by performing the first processing on the key factor.

[0287] The processing unit 1501 is further configured to: encrypt the first pairing code using the first key to obtain pairing code information; and obtain the first pairing information according to the key factor information and the pairing code information.

[0288] In one possible implementation, the target information includes a third key, and the pairing code is obtained by processing the pairing code factor using the third key; the communication unit 1502 is further used to: receive key information from the server as the first pairing information, and the key information is obtained by performing the first processing on the third key.

[0289] In a possible implementation, the communication unit 1502 is further configured to: receive a third key from the server; and the processing unit 1501 is further configured to: encrypt the pairing code factor using the third key to obtain the first pairing code.

[0290] In a possible implementation, the communication unit 1502 is further configured to receive a pairing code factor from the vehicle side.

[0291] In one possible implementation, the target information includes a first pairing code, and the first processing includes performing a first processing on the first pairing code;

[0292] The communication unit 1502 is further configured to receive pairing code information from the server as first pairing information, where the pairing code information is obtained by performing a first process on the first pairing code.

[0293] In one possible implementation, the first processing includes encrypting the target information.

[0294] In a possible implementation, the communication unit 1502 is configured to send the first pairing information to the vehicle end via short-range communication.

[0295] In a possible implementation, the vehicle end belongs to the vehicle, and the terminal is outside the vehicle.

[0296] In a possible implementation, the vehicle end belongs to a vehicle, the terminal includes a digital key for the vehicle, and the communication unit 1502 is used to send a control instruction of the digital key to the vehicle end when pairing is successful.

[0297] The detailed description of the above implementation can be found in the introduction of the aforementioned method embodiment.

[0298] In one possible design, the digital key pairing device 150 is used to implement the server-side method in the aforementioned digital key pairing method.

[0299] In one possible implementation, the communication unit 1502 is used to: receive a key request from the terminal; the processing unit 1501 is used to: obtain third pairing information by performing a first processing on the target information; and the communication unit 1502 is also used to: send the digital key and the third pairing information to the terminal.

[0300] In one possible implementation, the target information includes a first pairing code, and the third pairing information includes pairing code information;

[0301] The processing unit 1501 is configured to perform a first process on the first pairing code to obtain pairing code information.

[0302] In one possible implementation, the target information includes a pairing code factor, the first pairing code is obtained based on performing a third process on the pairing code factor, and the third pairing information includes pairing code factor information;

[0303] The processing unit 1501 is configured to perform a first process on the pairing code factor to obtain pairing code factor information.

[0304] In one possible implementation, the target information includes a key factor, the key factor is used to obtain the first key, and the third pairing information includes key factor information;

[0305] The processing unit 1501 is configured to perform a first process on the key factor to obtain key factor information.

[0306] In one possible implementation, the target information includes a third key, the first pairing code is obtained by encrypting the pairing code factor using the third key, and the third pairing information includes key information;

[0307] The processing unit 1501 is configured to perform the first processing on the third key to obtain key information.

[0308] In a possible implementation, the processing unit 1501 is configured to: encrypt the target information to obtain third pairing information.

[0309] The detailed description of the above implementation can be found in the introduction of the aforementioned method embodiment.

[0310] See Figure 16 , Figure 16 A structural diagram of another digital key pairing device provided in an embodiment of the present application is shown in FIG. Figure 16 The digital key pairing device 160 shown can be an independent device, such as a vehicle, terminal, server, computing device, etc. Alternatively, the digital key pairing device 160 can also be a component in an independent device (such as a digital key pairing device), such as a chip or integrated circuit, etc. The digital key pairing device 160 is used to implement the aforementioned digital key pairing method, such as Figure 5 The digital key pairing method shown and its possible implementation methods.

[0311] The digital key pairing device 160 may include at least one processor 1601 and a memory 1603. Optionally, it may also include a communication interface 1602. Further optionally, it may also include a connection line 1604, wherein the processor 1601, the communication interface 1602, and / or the memory 1603 are connected via the connection line 1604, and / or communicate with each other via the connection line 1604 to transmit control signals and / or data signals.

[0312] in:

[0313] Processor 1601 is a module that performs arithmetic operations and / or logical operations, and may specifically include one or more of the following modules: CPU, application processor (AP), MCU, ECU, GPU, MPU, ASIC, image signal processor (ISP), DSP, FPGA, complex programmable logic device (CPLD), or coprocessor, etc.

[0314] The communication interface 1602 can be used to provide information input or output for at least one processor, or to receive signals sent externally and / or send signals to the outside. For example, the communication interface 1602 may include an interface circuit. For example, the communication interface 1602 may include a wired link interface such as an Ethernet cable, or it may be a wireless link (Wi-Fi, Bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, and other short-range wireless communication technologies, etc.) interface. Optionally, the communication interface 1602 may also include a radio frequency transmitter, an antenna, etc. In the case where the communication interface 1002 includes an antenna, the number of antennas may be one or more.

[0315] As a possible design, if the digital key pairing device 160 is a standalone device, the communication interface 1602 may include a receiver and a transmitter. The receiver and transmitter may be the same component or different components. When the receiver and transmitter are the same component, the component may be referred to as a transceiver.

[0316] As another possible design, if the digital key pairing device 160 is a chip or a circuit, the communication interface 1602 may include an input interface and an output interface. The input interface and the output interface may be the same interface, or may be different interfaces.

[0317] Optionally, the functions of the communication interface 1602 may be implemented by a transceiver circuit or a dedicated transceiver chip.

[0318] Memory 1603 is used to provide storage space for storing data such as an operating system and computer programs. Memory 1003 can be one or a combination of random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM).

[0319] The functions and actions of the modules or units in the digital key pairing device 160 listed above are merely exemplary.

[0320] Each functional unit in the digital key pairing device 160 can be used to implement the aforementioned digital key pairing method, for example Figure 5 The digital key pairing method and its possible implementation methods are shown. For example, the digital key pairing device 160 is used to perform, for example Figure 5 The digital key pairing method shown is a method executed by a server, a method executed by a terminal, or a method executed by a vehicle.

[0321] Optionally, processor 1601 may be a processor specifically used to execute the aforementioned method (for convenience of distinction, referred to as a dedicated processor), or a processor that executes the aforementioned method by calling a computer program (for convenience of distinction, referred to as a dedicated processor). Optionally, at least one processor may include both a dedicated processor and a general-purpose processor.

[0322] Optionally, when the digital key pairing device 160 includes at least one memory 1603 , if the processor 1601 implements the aforementioned digital key pairing method by calling a computer program, the computer program may be stored in the memory 1603 .

[0323] The embodiment of the present application also provides a chip, which includes a logic circuit and a communication interface. The communication interface is used to receive or send signals; the logic circuit is used to receive or send signals through the communication interface. The chip is used to implement the aforementioned digital key pairing method, for example Figure 5 The digital key pairing method shown and its possible implementation methods.

[0324] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When the instructions are executed on at least one processor (or digital key pairing device), the aforementioned digital key pairing method is implemented, for example: Figure 5The digital key pairing method and possible implementation methods shown in the embodiments are shown in the following.

[0325] The embodiment of the present application further provides a computer program product, which includes computer instructions, and the computer instructions are used to implement the aforementioned digital key pairing method, for example Figure 5 The digital key pairing method shown and its possible implementation methods.

[0326] The present application also provides a vehicle, including a digital key pairing device 150 and / or a digital key pairing device 160. Pairable devices include smart terminals or vehicles such as vehicles, robots, drones, ships, and boats. Alternatively, they may include smart home devices, smart showroom devices, smart factory devices, smart city devices, and entertainment devices.

[0327] It should be understood that the aforementioned vehicles are vehicles in a broad sense, and may include transportation vehicles (such as commercial vehicles, passenger cars, motorcycles, flying cars, trains, etc.), industrial vehicles (such as forklifts, trailers, tractors, etc.), engineering vehicles (such as excavators, bulldozers, cranes, etc.), agricultural equipment (such as mowers, harvesters, etc.), etc. For example, robots may include intelligent transport robots (automated guided vehicles, AGVs), walking conversational robots, service robots, and other robots.

[0328] The embodiment of the present application further provides a server, which includes the aforementioned digital key pairing device 150 and / or digital key pairing device 160.

[0329] The embodiment of the present application further provides a terminal, which includes the aforementioned digital key pairing device 150 and / or digital key pairing device 160.

[0330] It should be noted that in the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0331] In the embodiments of the present application, the names of information and devices are illustratively named to facilitate understanding of the content of the present solution. In specific implementations, their names may have other designs. In addition, the names of the same thing may also have different designs in different scenarios (such as different communication layers).

Claims

1. A digital key pairing method, characterized in that: The method comprises: Receiving first pairing information from a terminal, the first pairing information including information obtained by performing a first processing on target information, the target information including information for determining a first pairing code, the first pairing code including a pairing code used for pairing the terminal with the vehicle; The first pairing code is obtained by performing a second process on the first pairing information, and information obtained by performing the second process on the information obtained by the first process includes information before the first process; Pairing with the terminal is performed using the first pairing code.

2. The method according to claim 1, characterized in that The target information includes a pairing code factor, and the first pairing code is obtained by performing a third process on the pairing code factor; The obtaining the first pairing code by performing the second processing on the first pairing information includes: performing the second processing on the first pairing information to obtain the pairing code factor; The third processing is performed on the pairing code factor to obtain the first pairing code.

3. The method according to claim 1, characterized in that The target information includes the key factor, and the first pairing information further includes pairing code information and key factor information obtained by performing the first processing on the key factor, wherein the pairing code information is obtained by encrypting the first pairing code using a first key, and the first key is obtained based on the key factor; The obtaining the first pairing code by performing the second processing on the first pairing information includes: performing the second processing on the key factor information to obtain the key factor; Obtaining the first key according to the key factor; The pairing code information is decrypted using the first key to obtain the first pairing code.

4. The method according to claim 3, characterized in that The first processing includes encrypting the key factor using a second key; The performing the second processing on the key factor information to obtain the key factor includes: The key factor information is decrypted using the second key to obtain the key factor.

5. The method according to claim 3 or 4, characterized in that The first key is obtained by performing a fourth process on the key factor; The obtaining the first key according to the key factor includes: The fourth process is performed on the key factor to obtain the first key.

6. The method according to claim 1, characterized in that The target information includes a third key, and the first pairing code is obtained by processing a pairing code factor based on the third key; The obtaining the first pairing code by performing the second processing on the first pairing information includes: performing the second processing on the first pairing information to obtain the third key; The pairing code factor is encrypted using the third key to obtain the first pairing code.

7. The method according to claim 6, characterized in that The first processing includes encrypting the third key using a fourth key; The performing the second processing on the first pairing information to obtain the third key includes: The first pairing information is decrypted using the fourth key to obtain the third key.

8. The method according to claim 6 or 7, characterized in that Before receiving the first pairing information from the terminal, the method further includes: Randomly generating the pairing code factor; Sending the pairing code factor to the terminal.

9. The method according to claim 8, characterized in that The randomly generating the pairing code factor includes: The pairing code factor is randomly generated in a manner that the pairing code factor is generated twice in succession to meet a preset condition.

10. The method according to claim 1, characterized in that The target information includes the first pairing code; The obtaining the first pairing code by performing the second processing on the first pairing information includes: The second processing is performed on the first pairing information to obtain the first pairing code.

11. The method according to claim 1, wherein The first processing includes encryption; The obtaining the first pairing code by performing the second processing on the first pairing information includes: The first pairing code is obtained by decrypting the first pairing information.

12. The method according to claim 11, characterized in that The decrypting the first pairing information to obtain the first pairing code includes: When the first pairing information passes identity authentication, the first pairing code is obtained by decrypting the first pairing information.

13. The method according to any one of claims 1 to 4, 6, 7, 10 to 12, characterized in that The receiving first pairing information from the terminal includes: The first pairing information is sent by the receiving terminal through short-range communication.

14. The method according to claim 13, characterized in that The vehicle end belongs to the vehicle, and the terminal is outside the vehicle.

15. The method according to any one of claims 1 to 4, 6, 7, 10 to 12, characterized in that After pairing with the terminal using the first pairing code, the method further includes: If the pairing is successful, storing the first pairing information; After storing the first pairing information, receiving second pairing information; If the first pairing information is the same as the second pairing information, pairing with the device that sent the second pairing information is rejected.

16. The method according to claim 15, characterized in that The time when the vehicle end receives the first pairing information is the first time, and the time when the vehicle end receives the second pairing information is the second time; The step of refusing to pair with the device that sent the second pairing information when the first pairing information is the same as the second pairing information includes: If the first pairing information is the same as the second pairing information and the time difference between the first time and the second time is greater than or equal to a time threshold, pairing with the device that sent the second pairing information is rejected.

17. The method according to any one of claims 1 to 4, 6, 7, 10 to 12, characterized in that The vehicle end belongs to a vehicle, and after pairing with the terminal using the first pairing code, the method further includes: If pairing is successful, receiving a control instruction of the digital key of the vehicle sent by the terminal; The vehicle is controlled according to the control instruction.

18. A digital key pairing method, characterized in that: The method comprises: Sending first pairing information to the vehicle end, the first pairing information including information obtained by performing a first processing on the target information, the target information including information for determining a first pairing code, the first pairing code including a pairing code used for pairing with the vehicle end; The first pairing code is used to pair with the vehicle end.

19. The method according to claim 18, characterized in that The target information includes a pairing code factor, and the first pairing code is obtained by performing a third process on the pairing code factor; Before sending the first pairing information to the vehicle end, the method further includes: Pairing code factor information is received from a server as the first pairing information, where the pairing code factor information is obtained by performing the first processing on the pairing code factor.

20. The method according to claim 18, wherein The target information includes the first pairing code and a key factor, and the first processing includes performing the first processing on the key factor; Before sending the first pairing information to the vehicle end, the method further includes: receiving a first key and key factor information from a server, wherein the first key is obtained based on the key factor, and the key factor information is obtained by performing the first processing on the key factor; Encrypting the first pairing code using the first key to obtain pairing code information; The first pairing information is obtained according to the key factor information and the pairing code information.

21. The method according to claim 18, wherein The target information includes a third key, and the pairing code is obtained by processing a pairing code factor using the third key; Before sending the first pairing information to the vehicle end, the method further includes: Key information is received from a server as the first pairing information, where the key information is obtained by performing the first processing on the third key.

22. The method according to claim 21, characterized in that Before pairing with the vehicle end using the first pairing code, the method further includes: receiving a third key from the server; The pairing code factor is encrypted using the third key to obtain the first pairing code.

23. The method according to claim 22, characterized in that Before encrypting the pairing code factor using the third key to obtain the first pairing code, the method further includes: Receive the pairing code factor from the vehicle end.

24. The method according to claim 18, wherein The target information includes the first pairing code, and the first processing includes performing the first processing on the first pairing code; Before sending the first pairing information to the vehicle end, the method further includes: Pairing code information is received from a server as the first pairing information, where the pairing code information is obtained by performing the first processing on the first pairing code.

25. The method according to claim 18, wherein The first processing includes encrypting the target information.

26. The method according to any one of claims 18 to 25, characterized in that The sending of the first pairing information to the vehicle end includes: The first pairing information is sent to the vehicle end via short-range communication.

27. The method according to claim 26, characterized in that The vehicle end belongs to the vehicle, and the terminal is outside the vehicle.

28. The method according to any one of claims 18 to 25, characterized in that The vehicle end belongs to a vehicle, the terminal includes a digital key of the vehicle, and after pairing with the vehicle end using the first pairing code, the method further includes: If the pairing is successful, the control instruction of the digital key is sent to the vehicle end.

29. A digital key pairing method, characterized in that: The method comprises: receiving a key request from a terminal, wherein the key request is used to request issuance of a digital key; Obtaining third pairing information by performing a first process on the target information, the target information including information for determining a first pairing code, the first pairing code including a pairing code used for pairing the terminal with the vehicle; The digital key and the third pairing information are sent to the terminal, and the vehicle side determines the first pairing code based on the third pairing information from the terminal.

30. The method according to claim 29, wherein The target information includes the first pairing code, and the third pairing information includes pairing code information; The obtaining third pairing information by performing the first processing on the target information includes: The first processing is performed on the first pairing code to obtain the pairing code information.

31. The method according to claim 29, wherein The target information includes a pairing code factor, the first pairing code is obtained by performing a third process on the pairing code factor, and the third pairing information includes pairing code factor information; The obtaining third pairing information by performing the first processing on the target information includes: The first processing is performed on the pairing code factor to obtain the pairing code factor information.

32. The method according to claim 29, wherein The target information includes a key factor, the key factor is used to obtain the first key, and the third pairing information includes key factor information; The obtaining third pairing information by performing the first processing on the target information includes: The first processing is performed on the key factor to obtain the key factor information.

33. The method according to claim 29, wherein The target information includes a third key, the first pairing code is obtained by encrypting a pairing code factor using the third key, and the third pairing information includes key information; The obtaining third pairing information by performing the first processing on the target information includes: The first processing is performed on the third key to obtain the key information.

34. The method according to claim 29, wherein The obtaining third pairing information by performing the first processing on the target information includes: The target information is encrypted to obtain the third pairing information.

35. A digital key pairing device, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 17, or a unit for executing the method according to any one of claims 18 to 28, or a unit for executing the method according to any one of claims 29 to 34.

36. A digital key pairing device, characterized in that: The digital key pairing device includes a processing unit and a communication unit, and the digital key pairing device is used to implement the method according to any one of claims 1 to 17, or to implement the method according to any one of claims 18 to 28, or to implement the method according to any one of claims 29 to 34.

37. A vehicle, characterized in that: The vehicle includes a digital key pairing device, and the digital key pairing device includes a processor and a memory, The memory is used to provide a storage space, and the storage space is used to store computer instructions. The processor is configured to call the computer instructions stored in the memory so that the method according to any one of claims 1 to 17 is executed.

38. A terminal, characterized in that: The terminal includes a digital key pairing device, and the digital key pairing device includes a processor and a memory. The memory is used to provide a storage space, and the storage space is used to store computer instructions. The processor is configured to call the computer instructions stored in the memory so that the method according to any one of claims 18 to 28 is executed.

39. A server, characterized in that: The server includes a digital key pairing device, and the digital key pairing device includes a processor and a memory. The memory is used to provide a storage space, and the storage space is used to store computer instructions. The processor is configured to call the computer instructions stored in the memory so that the method according to any one of claims 29 to 34 is executed.

40. A digital key pairing system, characterized in that: The digital key pairing system includes one or more of the following: a first digital key pairing device, a second digital key pairing device, and a third digital key pairing device, wherein the first digital key pairing device is used to implement the method described in any one of claims 1 to 17, the second digital key pairing device is used to implement the method described in any one of claims 18 to 28, and the third digital key pairing device is used to implement the method described in any one of claims 29 to 34.

41. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program. When the computer program is executed, the method according to any one of claims 1 to 17 is executed, or the method according to any one of claims 18 to 28 is executed, or the method according to any one of claims 29 to 34 is executed.

42. A computer program product, characterized in that The computer program product comprises computer language code or computer instructions; When the computer program product is executed by a processor, the method according to any one of claims 1 to 17 is executed, or the method according to any one of claims 18 to 28 is executed, or the method according to any one of claims 29 to 34 is executed.