Digital key secret key acquisition method and device

By generating a key pair between the user equipment and the vehicle and having the controller encrypt and decrypt the key, the high cost problem caused by the digital key cloud platform is solved, and secure, low-cost key acquisition and transmission are achieved.

CN121126331APending Publication Date: 2025-12-12CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511230525.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-29
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

Existing methods for obtaining digital keys require the deployment of a digital key cloud platform, resulting in high infrastructure construction costs and long-term operation and maintenance costs.

Method used

By establishing a communication connection between the user equipment and the vehicle, a key pair is generated, and the target key is encrypted by the controller in the vehicle and sent to the user equipment for decryption, thus avoiding reliance on the digital key cloud platform.

Benefits of technology

It reduces the cost of obtaining digital key keys, improves transmission security, prevents keys from being stolen or tampered with during transmission, and enhances availability in environments without a network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121126331A_ABST
    Figure CN121126331A_ABST
Patent Text Reader

Abstract

The invention provides a digital key secret key obtaining method and device, and the method comprises the steps: generating a secret key pair under the condition of completing the establishment of communication connection between user equipment and a vehicle, receiving an encrypted target secret key sent by a controller in the vehicle, and enabling the encrypted target secret key to be a public key sent by the controller based on the user equipment, and encrypting the target key, and decrypting the encrypted target key according to the private key to obtain a decrypted target key. According to the invention, under the condition that the communication connection between the user equipment and the vehicle is established, the target key is directly obtained through the controller in the vehicle, dependence on an additional digital key cloud platform is avoided, funds do not need to be invested to deploy the digital key cloud platform, and furthermore, the user equipment is more convenient to use. Therefore, the cost of obtaining the digital key is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of digital key technology, and in particular to a method and apparatus for obtaining digital key keys. Background Technology

[0002] With the rapid development of intelligent vehicles, digital keys are gradually becoming an important component of vehicle intelligence. The core of a digital key lies in its key system. Users need to obtain and use a specific digital key through their terminal device to securely complete critical operations such as identity authentication, unlocking, and engine starting of the target vehicle. Therefore, obtaining a digital key is the foundation and prerequisite for the realization and widespread adoption of digital key functionality.

[0003] The methods for obtaining digital key keys primarily rely on a digital key cloud platform. The digital key keys are stored and managed centrally by the platform. When a user needs to obtain a digital key key, they must send a request to the platform. Upon receiving the request, the platform retrieves the digital key key and then sends it to the user.

[0004] However, the methods for obtaining digital keys require the additional deployment of a digital key cloud platform. Deploying such a platform necessitates a significant one-time investment in infrastructure development, along with long-term operational costs. Therefore, these methods present a high cost issue. Summary of the Invention

[0005] In view of the above problems, a method and apparatus for obtaining digital keys are proposed to overcome or at least partially solve the above problems, including: In a first aspect, embodiments of this application provide a digital key acquisition method, applied to a user equipment, the method comprising: Establish a communication connection between the user equipment and the vehicle; Upon establishing a communication connection between the user equipment and the vehicle, a key pair is generated, wherein the key pair includes a public key and a private key; The system receives an encrypted target key sent by the controller in the vehicle, wherein the encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment; The encrypted target key is decrypted using the private key to obtain the decrypted target key.

[0006] Optionally, establishing a communication connection between the user equipment and the vehicle includes: Establish a Bluetooth connection between the user equipment and the vehicle.

[0007] Optionally, establishing a Bluetooth connection between the user equipment and the vehicle includes: Obtain the target vehicle's Bluetooth name; The controller in the vehicle is requested to generate a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name; In response to the Bluetooth pairing code input by the user, a Bluetooth connection is established between the user device and the vehicle.

[0008] Optionally, obtaining the target vehicle's Bluetooth name includes: When the vehicle is unlocked and the power system in the vehicle is in operation, the user's identity is verified in response to the user's input, and a verification result is obtained. If the verification result is successful, the digital key application interface will be displayed; In response to the user's operation on the digital key application interface, the target vehicle's Bluetooth name is obtained.

[0009] Optionally, the controller in the requesting vehicle generates a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name, including: In response to a user's Bluetooth connection request for the target vehicle's Bluetooth name, a pairing code input box is displayed, and the Bluetooth connection request is sent to the controller. The controller generates a Bluetooth pairing code upon receiving the Bluetooth connection request and sends the Bluetooth pairing code to the vehicle's infotainment system, which displays the Bluetooth pairing code.

[0010] Optionally, establishing a Bluetooth connection between the user equipment and the vehicle in response to the Bluetooth pairing code input by the user includes: In response to the Bluetooth pairing code displayed on the vehicle's infotainment system and entered by the user in the pairing code input box, a Bluetooth connection is established between the user device and the vehicle.

[0011] Secondly, embodiments of this application provide a digital key generation method, applied to a controller in a vehicle, wherein the controller stores an initial key, and the method includes: Upon establishing a communication connection between the user equipment and the vehicle, the system receives the public key sent by the user equipment. Upon receiving the public key, a target key is generated based on the initial key; The target key is encrypted using the public key to generate an encrypted target key; The encrypted target key is sent to the user equipment, wherein the user equipment is used to decrypt the encrypted target key according to the private key to obtain the decrypted target key.

[0012] Optionally, before the step of receiving the public key sent by the user equipment after establishing a communication connection between the user equipment and the vehicle, the method further includes: Receive Bluetooth connection requests sent by user equipment; Upon receiving the Bluetooth connection request, a Bluetooth pairing code is generated; The Bluetooth pairing code is sent to the vehicle's infotainment system, which displays the Bluetooth pairing code.

[0013] Thirdly, embodiments of this application provide a digital key acquisition device, applied to a user equipment, the device comprising: A communication connection establishment module is configured to establish a communication connection between the user equipment and the vehicle. A key pair generation module is configured to generate a key pair upon completion of establishing a communication connection between the user equipment and the vehicle, wherein the key pair includes a public key and a private key; The data receiving module is configured to receive an encrypted target key sent by the controller in the vehicle, wherein the encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment; The data decryption module is configured to decrypt the encrypted target key based on the private key to obtain the decrypted target key.

[0014] Optionally, the communication connection establishment module includes: The Bluetooth connection establishment submodule is used to establish a Bluetooth connection between the user equipment and the vehicle.

[0015] Optionally, the Bluetooth connection establishment submodule includes: The Bluetooth name acquisition unit is configured to acquire the target vehicle's Bluetooth name. The Bluetooth connection request unit is configured to request the controller in the vehicle to generate a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name; A Bluetooth connection establishment unit is configured to establish a Bluetooth connection between the user equipment and the vehicle in response to a Bluetooth pairing code input by the user.

[0016] Optionally, the Bluetooth name acquisition unit includes: The identity verification subunit is configured to verify the user's identity in response to user input and obtain a verification result when the vehicle is in an unlocked state and the power system in the vehicle is in a working state. The digital key application interface display subunit is configured to display the digital key application interface if the verification result is passed. The Bluetooth name acquisition subunit is configured to acquire the target vehicle's Bluetooth name in response to the user's operation on the digital key application interface.

[0017] Optionally, the Bluetooth connection request unit includes: A Bluetooth connection request sending subunit is configured to display a pairing code input box in response to a user's Bluetooth connection request for the target vehicle's Bluetooth name, and send the Bluetooth connection request to the controller. The controller is configured to generate a Bluetooth pairing code upon receiving the Bluetooth connection request and send the Bluetooth pairing code to the vehicle's infotainment system, which is then used to display the Bluetooth pairing code.

[0018] Optionally, the Bluetooth connection establishment unit includes: The Bluetooth pairing code input subunit is configured to establish a Bluetooth connection between the user device and the vehicle in response to the Bluetooth pairing code displayed on the vehicle's infotainment system and entered by the user in the pairing code input box.

[0019] Fourthly, embodiments of this application provide a digital key generation device applied to a controller in a vehicle, wherein the controller stores an initial key, and the device includes: The public key receiving module is configured to receive the public key sent by the user equipment after establishing a communication connection between the user equipment and the vehicle. The key generation module is configured to generate a target key based on the initial key upon receiving the public key; The key encryption module is configured to encrypt the target key based on the public key to generate an encrypted target key; The key sending module is configured to send the encrypted target key to the user equipment, wherein the user equipment is used to decrypt the encrypted target key according to the private key to obtain the decrypted target key.

[0020] Optionally, the device further includes: The Bluetooth connection request receiving module is configured to receive Bluetooth connection requests sent by user equipment. The Bluetooth pairing code generation module is configured to generate a Bluetooth pairing code upon receiving the Bluetooth connection request. A Bluetooth pairing code sending module is configured to send the Bluetooth pairing code to the vehicle's infotainment system, wherein the infotainment system is used to display the Bluetooth pairing code.

[0021] Fifthly, embodiments of this application also provide an electronic device, including: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the digital key acquisition method as described above, or to implement the digital key generation method as described above.

[0022] Sixthly, embodiments of this application also provide a storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to execute the digital key acquisition method or the digital key generation method as described above.

[0023] In this embodiment, a communication connection is established between the user equipment and the vehicle. Once the connection is established, a key pair is generated, including a public key and a private key. An encrypted target key is received from the controller in the vehicle. This encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment. The encrypted target key is then decrypted using the private key to obtain the decrypted target key. This application, by directly obtaining the target key from the controller in the vehicle after establishing the communication connection, avoids reliance on an additional digital key cloud platform. This eliminates the need for a large upfront investment in the infrastructure of the digital key cloud platform and the incurring long-term maintenance costs, thus reducing the cost of obtaining the digital key. In addition, this application generates a key pair, namely a public key and a private key, in the user equipment. Before the controller sends the target key to the user equipment, the target key is encrypted using the public key to obtain an encrypted target key. After the user equipment receives the encrypted target key, it decrypts the encrypted target key using the private key, thus ensuring the security of the target key (i.e., digital key key) transmission and preventing the target key (i.e., digital key key) from being stolen or tampered with during transmission.

[0024] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0025] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart of the steps of a digital key acquisition method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a digital key acquisition method provided in an embodiment of this application; Figure 3 This is a flowchart of the steps of a digital key generation method provided in an embodiment of this application; Figure 4 This is a device block diagram of a digital key acquisition device provided in an embodiment of this application; Figure 5 This is a device block diagram of a digital key generation apparatus provided in an embodiment of this application; Figure 6 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0026] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0027] The following description, in conjunction with the accompanying drawings, details a digital key acquisition method and apparatus provided in this application through specific embodiments and application scenarios.

[0028] Figure 1 This is a flowchart illustrating the steps of a digital key acquisition method provided in an embodiment of this application, as follows: Figure 1 As shown, the method includes: Step 101: Establish a communication connection between the user equipment and the vehicle.

[0029] Step 102: After establishing a communication connection between the user equipment and the vehicle, a key pair is generated, which includes a public key and a private key.

[0030] Step 103: Receive the encrypted target key sent by the controller in the vehicle. The encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment.

[0031] Step 104: Decrypt the encrypted target key using the private key to obtain the decrypted target key.

[0032] In some embodiments of this application, the controller in the vehicle can be a Bluetooth controller, a digital key controller, or the like. In at least one embodiment, the controller in the vehicle is a digital key controller, and the digital key controller integrates Bluetooth control functionality.

[0033] The digital key app is installed on the user's device, which can be a mobile phone. The user can establish a communication connection between the user's device and the vehicle through the digital key app installed on the user's device. For example, establishing a communication connection between the user's device and the vehicle may include establishing a Bluetooth connection, a Wi-Fi (Wireless Fidelity) connection, or an NFC (Near Field Communication) connection.

[0034] This section uses a digital key controller in a vehicle as an example. After establishing a communication connection between the user equipment and the vehicle, as follows: Figure 2 As shown, the user equipment can generate a public-private key pair (Client_SK, Client_PK) for digital key key transmission protection, i.e., a key pair. Client_SK is the private key, and Client_PK is the public key. The specific implementation process for the user equipment to generate the key pair is that it can generate the key pair through the SDK (Software Development Kit) of the digital key APP in the user equipment.

[0035] Once the key pair is obtained, the user device can send the public key to the digital key controller in the vehicle via Bluetooth. The digital key controller stores the initial key.

[0036] When the digital key controller in the vehicle receives the public key sent by the user equipment, it can derive a digital key key (Dkey1) based on the initial key. The derived digital key key is the target key. With the target key obtained, the digital key controller uses the received public key to perform ENC (Encryption) on the target key, obtaining the encrypted target key, i.e., ciphertext, and then sends the encrypted target key to the user equipment.

[0037] When the user equipment receives the encrypted target key sent by the digital key controller, the user equipment uses its private key to decrypt the encrypted target key, i.e., the ciphertext, to obtain the digital key key, i.e., the decrypted target key.

[0038] This application obtains the target key directly from the vehicle's controller after establishing a communication connection between the user equipment and the vehicle. This avoids reliance on an additional digital key cloud platform, thus eliminating the need for a large upfront investment in digital key cloud platform infrastructure and the associated long-term maintenance costs, thereby reducing the cost of obtaining the digital key. Furthermore, this application generates a key pair (public and private keys) on the user equipment. Before the controller sends the target key to the user equipment, the public key is used to encrypt the target key, resulting in an encrypted target key. After receiving the encrypted target key, the user equipment uses the private key to decrypt it, ensuring the security of the target key (i.e., the digital key) transmission and preventing its theft or tampering during transmission.

[0039] Furthermore, in some embodiments of this application, step 101 may also include the following steps: Step 1011: Establish a Bluetooth connection between the user equipment and the vehicle.

[0040] In some embodiments of this application, such as Figure 2 As shown, preferably, the user can establish a Bluetooth connection between the user device and the vehicle through a digital key APP installed on the user device.

[0041] This application enables the acquisition of a target key (i.e., a digital key key) through a controller in the vehicle after establishing a Bluetooth connection between the user equipment and the vehicle. The acquisition process of the target key (i.e., the digital key key) relies on the Bluetooth connection, and the acquisition of the digital key key can be completed even in an offline environment. This eliminates the risk of being unable to obtain the digital key key due to network failure, poor signal, or the user equipment not having data service enabled, and improves the availability in environments without or with weak network coverage.

[0042] Furthermore, in some embodiments of this application, step 1011 may also include the following steps: Sub-step 11: Obtain the target vehicle's Bluetooth name.

[0043] Sub-step 12 requests the controller in the vehicle to generate a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name.

[0044] Sub-step 13: In response to the Bluetooth pairing code entered by the user, establish a Bluetooth connection between the user device and the vehicle.

[0045] In some embodiments of this application, the target vehicle Bluetooth name refers to the Bluetooth name of a specific vehicle that the user wishes to establish a Bluetooth connection with their user device.

[0046] This section uses a digital key controller in a vehicle as an example for explanation. Figure 2 As shown, once the user device obtains the target vehicle's Bluetooth name, it can request the vehicle's digital key controller to generate a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name. When the user device detects that the user has entered the Bluetooth pairing code in the digital key app, the Bluetooth connection between the user device and the vehicle is established.

[0047] This application establishes a Bluetooth connection between the user device and the vehicle by inputting a Bluetooth pairing code generated by the controller in the vehicle into the user device. The user only needs to input the Bluetooth pairing code into the user device to complete the Bluetooth connection between the user device and the vehicle. The operation is simple and convenient, and the efficiency of establishing a Bluetooth connection is improved.

[0048] Furthermore, in some embodiments of this application, sub-step 11 may further include the following steps: Sub-step 21: When the vehicle is unlocked and the vehicle's power system is operational, the user's identity is verified in response to the user's input, and the verification result is obtained.

[0049] Sub-step 22: If the verification result is successful, display the digital key application interface.

[0050] Sub-step 23: In response to the user's operation on the digital key application interface, obtain the target vehicle's Bluetooth name.

[0051] In some embodiments of this application, when the vehicle is unlocked and its power system is operational, if a user enters a password or registers a fingerprint in the digital key app, to ensure that the user initiating the digital key acquisition process is an authorized user of the current vehicle, the digital key app, upon receiving the password or fingerprint, will compare the received password or fingerprint with the password or fingerprint of the currently authorized user to determine whether the password or fingerprint received by the digital key app matches the password or fingerprint of the currently authorized user. However, the methods used in this application to verify user identity are not limited to passwords and fingerprints.

[0052] If the password or fingerprint received by the digital key app matches the password or fingerprint of the currently authorized user of the vehicle, it means the user who entered the password or fingerprint is indeed the authorized user of the vehicle, and their identity is valid. Therefore, the user identity verification result is successful. Conversely, if the password or fingerprint received by the digital key app does not match the password or fingerprint of the currently authorized user, it means the user who entered the password or fingerprint is not the authorized user of the vehicle, and their identity is invalid. Therefore, the user identity verification result is unsuccessful.

[0053] like Figure 2 As shown, if the user's identity verification result is successful, it indicates that the user's identity is legitimate, and the digital key acquisition process can continue. At this time, the digital key APP on the user's device will display the digital key application interface. If the digital key APP detects the user's operation on the digital key application interface, the digital key APP will obtain the target vehicle Bluetooth name and display it on the digital key application interface. For example, if the digital key APP detects that the user has entered a target VIN (Vehicle Identification Number) on the digital key application interface, the digital key APP will determine the vehicle Bluetooth name corresponding to the target VIN based on the target VIN entered by the user and the preset correspondence between VINs and vehicle Bluetooth names. The vehicle Bluetooth name corresponding to the target VIN is the target vehicle Bluetooth name, and the target vehicle Bluetooth name is displayed on the digital key application interface.

[0054] This application enhances the security of digital key acquisition by verifying the user's identity, ensuring that only verified users can execute the digital key acquisition process.

[0055] Furthermore, in some embodiments of this application, sub-step 12 may also include the following steps: Sub-step 31: In response to the user's Bluetooth connection request for the target vehicle's Bluetooth name, a pairing code input box is displayed, and the Bluetooth connection request is sent to the controller. The controller generates a Bluetooth pairing code upon receiving the Bluetooth connection request and sends the Bluetooth pairing code to the vehicle's infotainment system, which displays the Bluetooth pairing code.

[0056] In some embodiments of this application, a digital key controller in a vehicle is used as an example for illustration, such as... Figure 2As shown, when the digital key APP detects that the user has clicked on the pairing control or Bluetooth connection control displayed on the digital key application interface, the digital key APP will display a pairing code input box. At the same time, the digital key APP will send a Bluetooth connection request to the digital key controller in the vehicle, requesting to connect to the target vehicle's Bluetooth name.

[0057] When the digital key controller receives a Bluetooth connection request from the digital key app, it generates a Bluetooth pairing code and sends it to the vehicle's infotainment system. Upon receiving the pairing code, the infotainment system displays it on its screen, along with a notification such as "Digital key application in progress." This application does not specify the exact content displayed on the infotainment system screen.

[0058] This application generates a Bluetooth pairing code through the controller in the vehicle and sends the Bluetooth pairing code to the vehicle's infotainment system so that the Bluetooth pairing code can be displayed on the screen of the vehicle's infotainment system. This allows users to intuitively obtain the Bluetooth pairing code through the screen of the vehicle's infotainment system, thus improving the user experience.

[0059] Furthermore, in some embodiments of this application, sub-step 13 may also include the following steps: Sub-step 41: In response to the Bluetooth pairing code displayed on the vehicle's infotainment system and entered by the user in the pairing code input box, a Bluetooth connection is established between the user device and the vehicle.

[0060] In some embodiments of this application, such as Figure 2 As shown, when the vehicle's infotainment system displays the Bluetooth pairing code on its screen, the user can directly obtain the Bluetooth pairing code through the screen and input it into the pairing code input box displayed on the digital key app.

[0061] Once the digital key app detects that the user has entered a Bluetooth pairing code in the pairing code input box, the Bluetooth connection between the user's device and the vehicle is established.

[0062] This application simplifies the Bluetooth connection establishment process and improves the user experience by enabling users to quickly establish a Bluetooth connection between their devices and vehicles after entering a Bluetooth pairing code.

[0063] Figure 3 This is a flowchart illustrating the steps of a digital key generation method provided in an embodiment of this application, as follows: Figure 3 As shown, the method includes: Step 301: After establishing a communication connection between the user equipment and the vehicle, receive the public key sent by the user equipment.

[0064] Step 302: If the public key is received, generate the target key based on the initial key.

[0065] Step 303: Encrypt the target key using the public key to generate the encrypted target key.

[0066] Step 304: Send the encrypted target key to the user equipment, whereby the user equipment decrypts the encrypted target key using its private key to obtain the decrypted target key.

[0067] In some embodiments of this application, establishing a communication connection between a user equipment and a vehicle may include establishing a Bluetooth connection between the user equipment and the vehicle, establishing a Wi-Fi (Wireless Fidelity) connection between the user equipment and the vehicle, and establishing an NFC (Near Field Communication) connection between the user equipment and the vehicle.

[0068] The controller in the vehicle can be a Bluetooth controller, a digital key controller, etc.

[0069] This section uses the establishment of a Bluetooth connection between the user device and the vehicle, with the vehicle's controller being a digital key controller, as an example for illustration. Figure 2 As shown, once the Bluetooth connection between the user device and the vehicle is established, the digital key controller in the vehicle will receive the public key sent by the user device.

[0070] When the digital key controller receives the public key sent by the user equipment, it derives a digital key key (Dkey1), also known as the target key, based on the initial key stored in the digital key controller. After obtaining the target key, the digital key controller uses the public key to perform ENC (Encryption) on the target key to obtain the encrypted target key, and then sends the encrypted target key to the user equipment.

[0071] When the user equipment receives the encrypted target key sent by the digital key controller, the user equipment uses its private key to decrypt the encrypted target key to obtain the decrypted target key.

[0072] This application addresses the issue of the vehicle's controller sending an encrypted target key to the user equipment (UE) after establishing a communication connection between the UE and the vehicle. The UE can then decrypt the encrypted target key using its private key, obtaining the decrypted target key. This avoids reliance on an additional digital key cloud platform, eliminating the need for a large upfront investment in its infrastructure and the associated long-term maintenance costs, thus reducing the cost of obtaining the digital key. Furthermore, this application encrypts the target key using its public key before sending it to the UE. Upon receiving the encrypted target key, the UE decrypts it using its private key, ensuring the security of the target key (i.e., the digital key) transmission and preventing its theft or tampering during transmission.

[0073] Furthermore, in some embodiments of this application, the following steps may be included before step 301: Step 3011: Receive a Bluetooth connection request sent by the user equipment.

[0074] Step 3012: Upon receiving a Bluetooth connection request, generate a Bluetooth pairing code.

[0075] Step 3012: Send the Bluetooth pairing code to the vehicle's infotainment system, which will then display the Bluetooth pairing code.

[0076] In some embodiments of this application, a digital key controller in a vehicle is used as an example for illustration, such as... Figure 2 As shown, the digital key controller receives Bluetooth connection requests from user devices. Upon receiving such a request, the digital key controller randomly generates a Bluetooth pairing code and sends it to the vehicle's infotainment system. The infotainment system then displays the Bluetooth pairing code on its screen.

[0077] This application generates a Bluetooth pairing code through the controller in the vehicle and sends the Bluetooth pairing code to the vehicle's infotainment system so that the Bluetooth pairing code can be displayed on the screen of the vehicle's infotainment system. This allows users to intuitively obtain the Bluetooth pairing code through the screen of the vehicle's infotainment system, thus improving the user experience.

[0078] Corresponding to the method provided in the above embodiments of the digital key acquisition method of this application, see [link to relevant documentation]. Figure 4 This application also provides a block diagram of a digital key acquisition device. In this embodiment, the device includes: The communication connection establishment module 401 is configured to establish a communication connection between the user equipment and the vehicle. The key pair generation module 402 is configured to generate a key pair after establishing a communication connection between the user equipment and the vehicle, wherein the key pair includes a public key and a private key. The data receiving module 403 is configured to receive an encrypted target key sent by the controller in the vehicle. The encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment. The data decryption module 404 is configured to decrypt the encrypted target key based on the private key to obtain the decrypted target key.

[0079] Optionally, the communication connection establishment module 401 includes: The Bluetooth connection establishment submodule is used to establish a Bluetooth connection between the user equipment and the vehicle.

[0080] Optionally, the Bluetooth connection establishment submodule includes: The Bluetooth name acquisition unit is configured to acquire the target vehicle's Bluetooth name. The Bluetooth connection request unit is configured to request the controller in the vehicle to generate a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name; The Bluetooth connection establishment unit is configured to establish a Bluetooth connection between the user device and the vehicle in response to a Bluetooth pairing code input by the user.

[0081] Optionally, the Bluetooth name acquisition unit includes: The identity verification subunit is configured to verify the user's identity and obtain the verification result in response to the user's input when the vehicle is unlocked and the power system in the vehicle is in operation. The digital key application interface display sub-unit is configured to display the digital key application interface when the verification result is successful. The Bluetooth name acquisition subunit is configured to acquire the target vehicle's Bluetooth name in response to user actions on the digital key application interface.

[0082] Optionally, the Bluetooth connection request unit includes: The Bluetooth connection request sending subunit is configured to display a pairing code input box in response to a user's Bluetooth connection request for the target vehicle's Bluetooth name, and send the Bluetooth connection request to the controller. The controller is used to generate a Bluetooth pairing code upon receiving the Bluetooth connection request and send the Bluetooth pairing code to the vehicle's infotainment system, which then displays the Bluetooth pairing code.

[0083] Optionally, the Bluetooth connection establishment unit includes: The Bluetooth pairing code input subunit is configured to establish a Bluetooth connection between the user device and the vehicle in response to the Bluetooth pairing code displayed on the vehicle's infotainment system when entered by the user in the pairing code input box.

[0084] Corresponding to the method provided in the above embodiments of the digital key generation method of this application, see [link to relevant documentation]. Figure 5 This application also provides a block diagram of a digital key generation device. In this embodiment, the device includes: The public key receiving module 501 is configured to receive the public key sent by the user equipment after the communication connection between the user equipment and the vehicle is established. The key generation module 502 is configured to generate a target key based on the initial key upon receiving a public key; The key encryption module 503 is configured to encrypt the target key based on the public key to generate an encrypted target key; The key sending module 504 is configured to send the encrypted target key to the user equipment, wherein the user equipment is used to decrypt the encrypted target key according to the private key to obtain the decrypted target key.

[0085] Optionally, the device further includes: The Bluetooth connection request receiving module is configured to receive Bluetooth connection requests sent by user equipment. The Bluetooth pairing code generation module is configured to generate a Bluetooth pairing code upon receiving a Bluetooth connection request. The Bluetooth pairing code sending module is configured to send a Bluetooth pairing code to the vehicle's infotainment system, which then displays the Bluetooth pairing code.

[0086] Figure 6 This is a structural diagram of an electronic device M00 provided in an embodiment of this application. In the diagram, the electronic device M00 includes a processor M01 and a memory M02. The memory M02 stores a program or instructions that can run on the processor M01. When the program or instructions are executed by the processor M01, they implement the various steps of the above-described digital key acquisition method embodiment or the various steps of the above-described digital key generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0087] In embodiments of this application, the memory M02 can be used to store software programs and various data. The memory M02 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, applications or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory M02 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory M02 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0088] The processor M01 may include one or more processing units; optionally, the processor M01 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor M01.

[0089] This application also provides a storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described digital key acquisition method embodiment or the various processes of the above-described digital key generation method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0090] The processor is the processor in the electronic device described in the above embodiments. The storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0091] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0092] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for obtaining a digital key, characterized in that, Applied to user equipment, the method includes: Establish a communication connection between the user equipment and the vehicle; Upon establishing a communication connection between the user equipment and the vehicle, a key pair is generated, wherein the key pair includes a public key and a private key; The system receives an encrypted target key sent by the controller in the vehicle, wherein the encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment; The encrypted target key is decrypted using the private key to obtain the decrypted target key.

2. The method according to claim 1, characterized in that, Establishing the communication connection between the user equipment and the vehicle includes: Establish a Bluetooth connection between the user equipment and the vehicle.

3. The method according to claim 2, characterized in that, Establishing the Bluetooth connection between the user equipment and the vehicle includes: Obtain the target vehicle's Bluetooth name; The controller in the vehicle is requested to generate a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name; In response to the Bluetooth pairing code input by the user, a Bluetooth connection is established between the user device and the vehicle.

4. The method according to claim 3, characterized in that, The acquisition of the target vehicle's Bluetooth name includes: When the vehicle is unlocked and the power system in the vehicle is in operation, the user's identity is verified in response to the user's input, and a verification result is obtained. If the verification result is successful, the digital key application interface will be displayed; In response to the user's operation on the digital key application interface, the target vehicle's Bluetooth name is obtained.

5. The method according to claim 3, characterized in that, The requesting vehicle's controller generates a Bluetooth pairing code for connecting to the target vehicle's Bluetooth name, including: In response to a user's Bluetooth connection request for the target vehicle's Bluetooth name, a pairing code input box is displayed, and the Bluetooth connection request is sent to the controller. The controller generates a Bluetooth pairing code upon receiving the Bluetooth connection request and sends the Bluetooth pairing code to the vehicle's infotainment system, which displays the Bluetooth pairing code.

6. The method according to claim 5, characterized in that, Establishing a Bluetooth connection between the user equipment and the vehicle in response to the Bluetooth pairing code input by the user includes: In response to the Bluetooth pairing code displayed on the vehicle's infotainment system and entered by the user in the pairing code input box, a Bluetooth connection is established between the user device and the vehicle.

7. A method for generating a digital key, characterized in that, A controller used in a vehicle, the controller storing an initial key, the method comprising: Upon establishing a communication connection between the user equipment and the vehicle, the system receives the public key sent by the user equipment. Upon receiving the public key, a target key is generated based on the initial key; The target key is encrypted using the public key to generate an encrypted target key; The encrypted target key is sent to the user equipment, wherein the user equipment is used to decrypt the encrypted target key according to the private key to obtain the decrypted target key.

8. The method according to claim 7, characterized in that, Before the step of receiving the public key sent by the user equipment after establishing a communication connection between the user equipment and the vehicle, the method further includes: Receive Bluetooth connection requests sent by user equipment; Upon receiving the Bluetooth connection request, a Bluetooth pairing code is generated; The Bluetooth pairing code is sent to the vehicle's infotainment system, which displays the Bluetooth pairing code.

9. A digital key acquisition device, characterized in that, Applied to user equipment, the device includes: A communication connection establishment module is configured to establish a communication connection between the user equipment and the vehicle. A key pair generation module is configured to generate a key pair upon completion of establishing a communication connection between the user equipment and the vehicle, wherein the key pair includes a public key and a private key; The data receiving module is configured to receive an encrypted target key sent by the controller in the vehicle, wherein the encrypted target key is generated by the controller encrypting the target key based on the public key sent by the user equipment; The data decryption module is configured to decrypt the encrypted target key based on the private key to obtain the decrypted target key.

10. A digital key generation device, characterized in that, A controller used in a vehicle, the controller storing an initial key, the device comprising: The public key receiving module is configured to receive the public key sent by the user equipment after establishing a communication connection between the user equipment and the vehicle. The key generation module is configured to generate a target key based on the initial key upon receiving the public key; The key encryption module is configured to encrypt the target key based on the public key to generate an encrypted target key; The key sending module is configured to send the encrypted target key to the user equipment, wherein the user equipment is used to decrypt the encrypted target key according to the private key to obtain the decrypted target key.