Vehicle key sharing method and apparatus, device, and medium
By performing authorization verification and certificate management on the server side, the problem of poor user experience during car key sharing is solved, an authorization process that does not require continuous restrictions on the car owner's terminal is realized, and the sharing experience and accuracy are improved.
Patent Information
- Application Number
- PCT/CN2024/087628
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-24
AI Technical Summary
In the existing car key sharing process, the car owner's terminal needs to continuously connect to the cloud service, resulting in poor user experience and usage constraints, which can easily lead to operational errors and sharing error states.
The server receives the business information sent by the car owner terminal, generates the information storage address, and sends it to the car owner terminal. It receives and forwards the certificate and public key sent by the car owner terminal to the target terminal, generates and signs the certificate, and enables the target terminal to obtain the car key. permissions to reduce the restrictions on the use of the car owner’s terminal.
It improves the user experience of car key sharing, reduces operational errors and sharing error states caused by restrictions on the use of the car owner's terminal, and enhances the user's operational awareness and experience.
Smart Images

Figure CN2024087628_24102024_PF_FP_ABST
Abstract
Description
Car key sharing method, device, equipment and medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 2023104169944 filed in China on April 18, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to technical fields such as encryption technology and smart car field, and in particular to a method and apparatus, device, medium, computer program product and computer program for sharing car keys. Background Art
[0004] Digital car keys on mobile phones based on Bluetooth communication are already very popular in various models of major car companies. In order to further expand the application scenarios of digital keys, it is a common extended function to allow car owners to share the key usage rights with their friends in a specific way to quickly authorize friends to use the vehicle.
[0005] However, in related technologies, when authorizing a friend's mobile device, the car owner's mobile device is required to sign it with its own private key. This process requires the car owner's mobile device to connect to the cloud service at least once after creating the sharing URL. For the car owner, there are still usage constraints after completing the "key sharing" (such as staying connected to the Internet, keeping the APP open, etc.), resulting in a poor user experience.
[0006] Therefore, a method is needed to improve the experience during the car key sharing process.
[0007] Summary of the Invention
[0008] The embodiments of the present disclosure provide a method and apparatus, device, medium, computer program product, and computer program for sharing a car key, so as to solve the technical problem in the related art that when sharing a car key, there are still usage restrictions after completing "key sharing", resulting in a poor user experience.
[0009] In a first aspect, an embodiment of the present disclosure provides a method for sharing a car key, which is applied to a server. The method includes:
[0010] Receive business information sent by the car owner terminal and generate an information storage address based on the business information;
[0011] Send the information storage address to the vehicle owner's terminal;
[0012] Receive the first certificate and the vehicle public key sent by the vehicle owner terminal, and send the first certificate and the vehicle public key to the target terminal;
[0013] In response to the access instruction of the target terminal, a second certificate is generated and sent to the target terminal, so that the target terminal obtains the vehicle key usage authority through the first certificate, the vehicle public key and the second certificate.
[0014] In one possible implementation, in the method provided in the embodiment of the present disclosure, before receiving the first certificate and the vehicle public key sent by the vehicle owner terminal and sending the first certificate and the vehicle public key to the target terminal, the method further includes:
[0015] Generate a first public key and a first private key based on the business information;
[0016] The first public key is sent to the vehicle owner terminal, so that the vehicle owner terminal generates a first certificate based on the first public key.
[0017] In one possible implementation, in the method provided by the embodiment of the present disclosure, generating a second certificate in response to an access instruction of a target terminal and sending the second certificate to the target terminal includes:
[0018] Responding to an access instruction from the target terminal, obtaining a second public key sent by the target terminal;
[0019] Sign the second public key with the first private key to obtain a second certificate;
[0020] Send the second certificate to the target terminal.
[0021] In a second aspect, an embodiment of the present disclosure provides another method for sharing a car key, which is applied to a car owner terminal and includes:
[0022] Send business information to the server;
[0023] The storage address of the information sent by the receiving server;
[0024] Generate and send a first certificate to the server;
[0025] The information storage address is sent to the target terminal so that the target terminal can access the server through the information storage address and obtain the right to use the car key.
[0026] In one possible implementation, in the method provided in the embodiment of the present disclosure, before sending the service information to the server, the method further includes:
[0027] Generate the owner's terminal private key and the owner's terminal public key;
[0028] Receive the vehicle public key sent by the vehicle and send the owner terminal public key to the vehicle.
[0029] In one possible implementation, in the method provided in the embodiment of the present disclosure, generating and sending the first certificate to the server includes:
[0030] Receive the first public key sent by the server;
[0031] Sign the first public key with the private key of the vehicle owner terminal to generate a first certificate;
[0032] The first certificate and the vehicle public key are sent to the server.
[0033] In a third aspect, an embodiment of the present disclosure provides a car key sharing device, comprising:
[0034] A first receiving unit is configured to receive business information sent by the vehicle owner terminal and generate an information storage address based on the business information;
[0035] A first sending unit, configured to send the information storage address to the vehicle owner terminal;
[0036] The first receiving unit is further used to receive the first certificate and the vehicle public key sent by the vehicle owner terminal, and the first sending unit is further used to send the first certificate and the vehicle public key to the target terminal;
[0037] The first processing unit is used to generate a second certificate in response to an access instruction of the target terminal, and send the second certificate to the target terminal, so that the target terminal obtains the right to use the vehicle key through the first certificate, the vehicle public key and the second certificate.
[0038] In a possible implementation, in the apparatus provided by the embodiment of the present disclosure, the first receiving unit is further configured to:
[0039] Generate a first public key and a first private key based on the business information;
[0040] The first public key is sent to the vehicle owner terminal, so that the vehicle owner terminal generates a first certificate based on the first public key.
[0041] In a possible implementation, in the device provided by the embodiment of the present disclosure, the first processing unit is specifically configured to:
[0042] Responding to an access instruction from the target terminal, obtaining a second public key sent by the target terminal;
[0043] Sign the second public key with the first private key to obtain a second certificate;
[0044] Send the second certificate to the target terminal.
[0045] In a fourth aspect, an embodiment of the present disclosure provides another car key sharing device, comprising:
[0046] A second sending unit sends business information to the server;
[0047] A second receiving unit, configured to receive an information storage address sent by a server;
[0048] A second processing unit is configured to generate and send a first certificate to the server;
[0049] The second sending unit is further used to send the information storage address to the target terminal, so that the target terminal accesses the server through the information storage address, and thereby obtains the right to use the car key.
[0050] In a possible implementation, in the apparatus provided by the embodiment of the present disclosure, the second sending unit is further configured to:
[0051] Generate the owner's terminal private key and the owner's terminal public key;
[0052] Receive the vehicle public key sent by the vehicle and send the owner terminal public key to the vehicle.
[0053] In one possible implementation, in the apparatus provided by the embodiment of the present disclosure, the second processing unit is specifically configured to:
[0054] Receive the first public key sent by the server;
[0055] Sign the first public key with the private key of the vehicle owner terminal to generate a first certificate;
[0056] The first certificate and the vehicle public key are sent to the server.
[0057] In a fifth aspect, an embodiment of the present disclosure provides an electronic device comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method provided in the first aspect or the second aspect of the embodiment of the present disclosure.
[0058] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements the method provided in the first aspect or the second aspect of the embodiment of the present disclosure.
[0059] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method provided according to the first aspect or the second aspect of the embodiment of the present disclosure.
[0060] In an eighth aspect, an embodiment of the present disclosure provides a computer program, which includes computer program code. When the computer program code is run on a computer, the computer executes the method provided in the first aspect or the second aspect of the embodiment of the present disclosure.
[0061] In the embodiment of the present disclosure, the business information sent by the car owner terminal is first received, and an information storage address is generated based on the business information, and then the information storage address is sent to the car owner terminal, and then the first certificate and the vehicle public key sent by the car owner terminal are received, and the first certificate and the vehicle public key are sent to the target terminal, and finally, in response to the access instruction of the target terminal, a second certificate is generated, and the second certificate is sent to the target terminal. Compared with the related art, it solves the problem that when sharing car keys, there are still usage constraints after completing "key sharing", resulting in a poor user experience. By authorizing and verifying the server, and then performing subsequent authorization verification on the target terminal by the server, the authorization process of the target terminal does not require the car owner terminal to continue to be restricted after completing the "key sharing" operation, reducing the occurrence of sharing error states caused by user operation errors due to usage constraints on the car owner terminal, and is more in line with the user's operation cognition, thereby improving the user's sharing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] FIG1 is a schematic diagram of a certificate structure of a related technology provided by an embodiment of the present disclosure;
[0063] FIG2 is a schematic diagram of the basic structure of a certificate system of the related technology provided by an embodiment of the present disclosure;
[0064] FIG3 is a schematic diagram of the structure of a certificate chain of the related technology provided by an embodiment of the present disclosure;
[0065] FIG4 is a flow chart of a method for sharing car keys according to a related art according to an embodiment of the present disclosure;
[0066] FIG5 is a flow chart of a method for sharing car keys according to an embodiment of the present disclosure;
[0067] FIG6 is a flow chart of another method for sharing car keys according to an embodiment of the present disclosure;
[0068] FIG7 is a schematic diagram of a specific process of a car key sharing method provided by an embodiment of the present disclosure;
[0069] FIG8 is a schematic diagram of the basic structure of a certificate system provided by an embodiment of the present disclosure;
[0070] FIG9 is a schematic diagram of the structure of a certificate chain provided by an embodiment of the present disclosure;
[0071] FIG10 is a schematic structural diagram of a car key sharing device provided in an embodiment of the present disclosure;
[0072] FIG11 is a schematic structural diagram of another car key sharing device provided by an embodiment of the present disclosure;
[0073] FIG12 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0074] To make the objectives, technical solutions, and advantages of this disclosure more clear, the disclosure will be further described in detail below with reference to the accompanying drawings. It should be understood that the embodiments described herein are merely some, not all, of the embodiments of this disclosure. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of this disclosure without inventive effort are intended to fall within the scope of protection of this disclosure.
[0075] The following are explanations of some of the words that appear in the text:
[0076] 1. In the embodiments of the present disclosure, the term "and / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0077] Digital car keys on mobile phones based on Bluetooth communication are already very popular in various models of major car companies. In order to further expand the application scenarios of digital keys, it is a common extended function to allow car owners to share the key usage rights with their friends in a specific way to quickly authorize friends to use the vehicle.
[0078] From a security perspective, public-private key pairs are a commonly used security solution. This solution ensures information security between communicating parties by fulfilling two basic conditions. First, the public key can verify the signature of the private key of the same public-private key pair. Second, assume there are two communicating parties, A and B. Party A holds its own public-private key pair and B's public key, and party B holds its own public-private key pair and A's public key. Once these two prerequisites are met, both parties can sign the communication content with their own private key and transmit it. The other party can only accept the received message content after successfully verifying the signature with the public key.
[0079] To enable public keys to be transferred between peers, a certificate structure is often used, as shown in Figure 1. In Figure 1, the certificate name is the name of the certificate; the certificate body is the main content that the certificate intends to encapsulate or transmit. For example, if public key A is to be transmitted, public key A can be the certificate body; the certificate signature is the complete signature of the certificate, typically signed with a private key, and its corresponding public key can verify the signature, thereby ensuring that the communicating peer has securely authenticated the contents of the received certificate.
[0080] In one possible implementation, in order to enable each certificate in the system to be mutually trusted by all terminals, a certificate chain is introduced as shown in Figures 2 and 3.
[0081] Figure 2 shows the public and private key pairs and public key certificates held by each end of the Bluetooth digital key system when they are in the initial state. The signatures of Certificate A, Certificate B, Certificate C, and Certificate D can be obtained through the currently common certificate signature acquisition methods; the signature of Certificate E can be obtained through the common Bluetooth digital key sharing process.
[0082] Figure 3 details the signature verification relationship between the certificates in Figure 2, i.e., the public key in the upper-level certificate can verify the signature of the lower-level certificate, allowing the system to recognize the public key in the lower-level certificate, and this public key can verify the signature of the lower-level certificate, and so on. This allows a single system to use a root certificate and a series of sub-certificates to recognize the public keys in certificates at all levels received in the system after completing a series of signature verifications.
[0083] Regarding the Bluetooth digital key sharing process, assume that during the use of a vehicle's Bluetooth digital key, the owner has already completed the exchange of certificates between the owner's terminal and the vehicle through secure means and has completed the internal certificate signature verification on both ends, enabling trusted secure communication. That is, at this point, the owner's terminal has obtained the vehicle's public key certificate (B), and the vehicle has obtained the owner's terminal public key certificate (D). If the owner wants to share the right to use the vehicle's Bluetooth digital key with a friend, the relevant technology uses a sharing strategy as shown in Figure 4, which includes the following parts:
[0084] 1. The car owner terminal first applies to the server (usually the car owner terminal equipment manufacturer's cloud service server) to open a certain information interaction space (that is, the information storage address, usually also called a "mailbox"), uploads some business information, and generates a URL pointing to the space.
[0085] 2. The car owner shares the URL, i.e., the information storage address, with a friend's terminal device (hereinafter referred to as the target terminal) through some communication method (such as WeChat, SMS, etc.).
[0086] 3. After receiving the URL, the target terminal accesses the server and retrieves the relevant information uploaded by the car owner;
[0087] 4. The target terminal calculates and generates the target terminal public and private key pair locally;
[0088] 5. The target terminal uploads its public key to the server;
[0089] 6. The server sends a notification to the car owner's terminal, notifying the cloud that new information is available;
[0090] 7. The car owner's terminal accesses the server and pulls the target terminal's public key;
[0091] 8. The owner terminal signs the target terminal public key with the owner terminal private key to generate the target terminal public key certificate (E);
[0092] 9. The vehicle owner's terminal pushes the target terminal public key certificate (E) and the vehicle public key certificate (B) to the server;
[0093] 10. The server sends a notification to the target terminal, notifying the cloud that new information is available;
[0094] 11. The target terminal pulls the target terminal public key certificate (E) and vehicle public key certificate (B) signed by the vehicle owner terminal private key from the server;
[0095] 12. When the target terminal approaches the vehicle, the target terminal sends the target terminal public key certificate (E) to the vehicle;
[0096] 13. The vehicle verifies the target terminal public key certificate (E) using the owner terminal public key and accepts the target terminal public key.
[0097] At this point, the vehicle side already has the target terminal public key, and the target terminal also has the vehicle public key. It can be considered that both ends have mutually trusted and secure communication capabilities to use Bluetooth digital key related services.
[0098] However, in the above solution, since the car owner terminal needs to sign the target terminal public key with its own private key after the target terminal uploads it in step 5, this process requires the car owner terminal to connect to the cloud service at least once again after creating the sharing URL. For the car owner, this means that after completing the "key sharing" (i.e. sharing the generated cloud service link URL to the target terminal), there are still usage constraints (such as staying connected to the Internet, keeping the APP open, etc.), resulting in a poor user experience.
[0099] To solve the above problems, the present technical solution provides a method for sharing car keys. The following describes the method, device, equipment and medium for sharing car keys provided in the embodiments of the present disclosure in more detail with reference to the accompanying drawings and embodiments.
[0100] An embodiment of the present disclosure provides a method for sharing a car key, which is applied to a server, as shown in FIG5 , and includes steps S501 to S504 .
[0101] Step S501: receiving business information sent by the vehicle owner terminal, and generating an information storage address based on the business information.
[0102] During specific implementation, the server receives the business information sent by the car owner terminal, and then applies for an information storage address based on the business information. The information storage address is usually set in the cloud, but of course it can also be set in other designated servers or devices. This embodiment of the present disclosure does not limit this.
[0103] Step S502: Send the information storage address to the vehicle owner terminal.
[0104] During specific implementation, the server returns the information storage address in the cloud to the car owner terminal, so that the car owner terminal can share the information storage address with the target user who wants to share the key.
[0105] Step S503: Receive the first certificate and vehicle public key sent by the vehicle owner terminal, and send the first certificate and vehicle public key to the target terminal.
[0106] In specific implementations, the server first generates a first public key and a first private key based on the business information. The server then sends the first public key to the vehicle owner terminal, which then generates a first certificate based on the first public key. The server then receives the first certificate and vehicle public key sent by the vehicle owner terminal and forwards them to the target terminal. This forwarding can occur directly to the target terminal after establishing a connection between the cloud and the target terminal, or the target terminal can be notified to access the information storage address to download the first certificate and vehicle public key. This is not limited in the present embodiment.
[0107] Step S504: In response to the access instruction of the target terminal, generate a second certificate, and send the second certificate to the target terminal.
[0108] In a specific implementation, in response to an access instruction from a target terminal, a second public key generated in the target terminal is obtained. The second public key is then signed with the first private key to obtain a second certificate. The second certificate is then sent to the target terminal, allowing the target terminal to obtain vehicle key usage rights through the first certificate, the vehicle public key, and the second certificate. Specifically, the target terminal sends the first and second certificates to the vehicle via Bluetooth or other connection methods. The vehicle contains the owner's terminal public key. The first and second certificates are verified using the owner's terminal public key to obtain the second public key, enabling secure communication with the target terminal and obtaining operation rights.
[0109] The embodiment of the present disclosure provides another method for sharing car keys, which is applied to a car owner terminal, as shown in FIG6 , and includes steps S601 to S604 .
[0110] Step S601: In response to the instruction of the car owner to share the car key with the target terminal, the service information is sent to the server.
[0111] In specific implementation, before the car owner initiates a command to share their car key with the target terminal, the car owner's terminal private key and the car owner's terminal public key are generated. Then, the vehicle public key is received and sent to the vehicle. This allows the car owner and the vehicle to communicate securely, and the car owner terminal has operational authority.
[0112] In one embodiment, the car owner terminal may send service information to the server in response to an instruction to share the car owner's car key with the target terminal.
[0113] Step S602: Receive the information storage address sent by the server.
[0114] During specific implementation, the information storage address sent by the receiving server is used for subsequent sharing to the target terminal.
[0115] Step S603: Generate and send a first certificate to the server.
[0116] During specific implementation, the vehicle owner terminal receives the first public key sent by the server, then signs the first public key with the vehicle owner terminal private key to generate a first certificate, and then sends the first certificate and the vehicle public key to the server to authorize the server.
[0117] Step S604: Send the information storage address to the target terminal.
[0118] In specific implementation, after the car owner terminal completes the authorization of the server, the information storage address will be sent to the target terminal, so that the target terminal can access the server through the information storage address, interact with the server to obtain authorization, and then obtain the right to use the car key.
[0119] 7 , 8 and 9 , in combination with the car owner terminal, the target terminal, the server and the vehicle, the car key sharing method in the embodiment of the present disclosure is described in detail. As shown in FIG7 , the car key sharing method provided in the embodiment of the present disclosure may include steps S701 to S713.
[0120] Step S701: The vehicle owner terminal sends service information to the server.
[0121] During specific implementation, the car owner terminal sends business information to the server to apply for the information storage address in the cloud.
[0122] It should be noted that in the embodiment of the present disclosure, the basic architecture of the certificate system is shown in Figure 8. Compared with Figure 2, it mainly adds resource constraints within the server, requiring the server to generate a set of intermediate public-private key pairs in the entire system, namely the first public key and the first private key, and hold an intermediate public key certificate (F), namely the first certificate. The server can be a new server set up separately or a car owner's terminal equipment factory, and the embodiment of the present disclosure does not limit this.
[0123] The certificate chain is shown in Figure 9. Compared with Figure 3, an intermediate public key certificate (F) is newly introduced. The certificate body of this certificate is the intermediate public key generated by the server, and the certificate signature is completed by the car owner's terminal private key; and the target terminal public key certificate (E) of the original scheme is modified to the target terminal public key certificate (E2). The main modification is that the certificate signature is no longer completed by the original car owner's terminal private key, but is now completed by the intermediate private key on the server.
[0124] Step S702: The server generates a first public key and a first private key.
[0125] During specific implementation, the server generates an intermediate public-private key pair in the cloud, namely the first public key and the first private key.
[0126] Step S703: Send the information storage address and the first public key to the vehicle owner terminal.
[0127] In step S704, the vehicle owner terminal receives the first public key sent by the server, and then signs the first public key with the vehicle owner terminal private key to generate a first certificate.
[0128] In specific implementation, the car owner terminal receives the first public key sent by the server, that is, the intermediate public key, and then signs the first public key with the car owner terminal private key to obtain a first certificate, that is, the intermediate public key certificate (F).
[0129] Step S705: Send the first certificate and the vehicle public key to the server.
[0130] Step S706: The vehicle owner terminal sends the information storage address to the target terminal.
[0131] During specific implementation, the vehicle owner terminal sends the cloud information storage address to the target terminal via a communication method such as text messages / other communication applications.
[0132] Step S707: The target terminal receives the information storage address and accesses the server according to the information storage address to obtain the first certificate and the vehicle public key.
[0133] Step S708: The target terminal generates a second public key and a second private key.
[0134] During specific implementation, the target terminal generates a target terminal public-private key pair, that is, a second public key and a second private key.
[0135] Step S709: The target terminal sends the second public key to the server.
[0136] In step S710, the server signs the second public key with the first private key to obtain a second certificate.
[0137] During specific implementation, the server signs the second public key with the first private key to obtain a second certificate, namely the target terminal public key certificate (E2).
[0138] Step S711: Send the second certificate to the target terminal.
[0139] In step S712, the target terminal establishes a connection with the vehicle and sends the first certificate and the second certificate to the vehicle.
[0140] In step S713, the vehicle verifies the signatures of the first certificate and the second certificate, and accepts the second public key.
[0141] In specific implementation, the vehicle verifies the signatures of the intermediate public key certificate (F) and the target terminal public key certificate (E2) through the certificate chain shown in Figure 9, and accepts the second public key, which is also the target terminal public key. At this point, the vehicle has the target terminal public key, and the target terminal also has the vehicle public key. It can be considered that both parties have mutually trusted and secure communication capabilities to use Bluetooth digital key related services.
[0142] In another embodiment, steps S702, S703, and S704 may be placed before step S701. By authorizing the server once, when sharing the key, the car owner only needs to apply to the server for the information storage address and forward the information storage address to the target terminal of the user to be shared, thereby improving the user experience while shortening the sharing time.
[0143] As shown in FIG10 , based on the same inventive concept of the car key sharing method, an embodiment of the present disclosure further provides a car key sharing device, including a first receiving unit 1001 , a first sending unit 1002 and a first processing unit 1003 .
[0144] The first receiving unit 1001 is used to receive business information sent by the vehicle owner terminal and generate an information storage address based on the business information.
[0145] The first sending unit 1002 is used to send the information storage address to the vehicle owner terminal.
[0146] The first receiving unit 1001 is further used to receive the first certificate and the vehicle public key sent by the vehicle owner terminal, and the first sending unit 1002 is further used to send the first certificate and the vehicle public key to the target terminal.
[0147] The first processing unit 1003 is configured to generate a second certificate in response to an access instruction from the target terminal, and send the second certificate to the target terminal, so that the target terminal obtains the right to use the vehicle key through the first certificate, the vehicle public key and the second certificate.
[0148] In a possible implementation, in the apparatus provided by the embodiment of the present disclosure, the first receiving unit 1001 is further configured to:
[0149] Generate a first public key and a first private key based on the business information;
[0150] The first public key is sent to the vehicle owner terminal, so that the vehicle owner terminal generates a first certificate based on the first public key.
[0151] In one possible implementation, in the apparatus provided by the embodiment of the present disclosure, the first processing unit 1003 is specifically configured to:
[0152] Responding to an access instruction from the target terminal, obtaining a second public key sent by the target terminal;
[0153] Sign the second public key with the first private key to obtain a second certificate;
[0154] Send the second certificate to the target terminal.
[0155] As shown in FIG11 , based on the same inventive concept of the car key sharing method, the embodiment of the present disclosure further provides a car key sharing device, including a second sending unit 1101 , a second receiving unit 1102 and a second processing unit 1103 .
[0156] The second sending unit 1101 sends service information to the server.
[0157] In one embodiment, the car owner terminal may send service information to the server in response to an instruction to share the car owner's car key with the target terminal.
[0158] The second receiving unit 1102 is configured to receive an information storage address sent by the server.
[0159] The second processing unit 1103 is configured to generate and send a first certificate to the server.
[0160] The second sending unit 1101 is further configured to send the information storage address to the target terminal, so that the target terminal can access the server through the information storage address and thereby obtain the right to use the car key.
[0161] In a possible implementation, in the apparatus provided by the embodiment of the present disclosure, the second sending unit 1101 is further configured to:
[0162] Generate the owner's terminal private key and the owner's terminal public key;
[0163] Receive the vehicle public key sent by the vehicle and send the owner terminal public key to the vehicle.
[0164] In one possible implementation, in the apparatus provided by the embodiment of the present disclosure, the second processing unit 1103 is specifically configured to:
[0165] Receive the first public key sent by the server;
[0166] Sign the first public key with the private key of the vehicle owner terminal to generate a first certificate;
[0167] The first certificate and the vehicle public key are sent to the server.
[0168] An embodiment of the present disclosure further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein when the computer program instructions are executed by the processor, the method provided in any embodiment of the present disclosure is implemented.
[0169] An embodiment of the present disclosure further provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method provided in any embodiment of the present disclosure is implemented.
[0170] An embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the method provided according to any embodiment of the present disclosure when executed by a processor.
[0171] An embodiment of the present disclosure further provides a computer program, which includes computer program code. When the computer program code is run on a computer, the computer is enabled to execute the method provided in any embodiment of the present disclosure.
[0172] It should be noted that the above explanations of the method and device embodiments are also applicable to the electronic devices, media, computer program products and computer programs of the above embodiments, and will not be repeated here.
[0173] In addition, the car key sharing method and device described in conjunction with Figures 1 to 11 of the present application can be implemented by an electronic device. Figure 12 shows a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.
[0174] As shown in Figure 12, the electronic device 1200 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage device 1208 to the random access memory (RAM) 1203 to implement the car key sharing method of the embodiment described in the present disclosure. Various programs and data required for the operation of the electronic device 1200 are also stored in the RAM 1203. The processing device 1201, ROM 1202, and RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.
[0175] Typically, the following devices may be connected to the I / O interface 1205: an input device 1206 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device 1200 to communicate with other devices wirelessly or by wire to exchange data. Although FIG5 illustrates the electronic device 1200 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0176] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the car key sharing method described above. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 1209, or installed from the storage device 1208, or installed from the ROM 1202. When the computer program is executed by the processing device 1201, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0177] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0178] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0179] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0180] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0181] Receive business information sent by the car owner terminal and generate an information storage address based on the business information;
[0182] Send the information storage address to the vehicle owner's terminal;
[0183] Receive the first certificate and the vehicle public key sent by the vehicle owner terminal, and send the first certificate and the vehicle public key to the target terminal;
[0184] In response to the access instruction of the target terminal, a second certificate is generated and sent to the target terminal, so that the target terminal obtains the vehicle key usage authority through the first certificate, the vehicle public key and the second certificate.
[0185] In a possible implementation, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0186] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0187] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0188] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0189] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0190] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0191] In the embodiment of the present disclosure, the business information sent by the car owner terminal is first received, and an information storage address is generated based on the business information, and then the information storage address is sent to the car owner terminal, and then the first certificate and the vehicle public key sent by the car owner terminal are received, and the first certificate and the vehicle public key are sent to the target terminal, and finally, in response to the access instruction of the target terminal, a second certificate is generated, and the second certificate is sent to the target terminal. Compared with the related art, it solves the problem that when sharing car keys, there are still usage constraints after completing "key sharing", resulting in a poor user experience. By authorizing and verifying the server, and then performing subsequent authorization verification on the target terminal by the server, the authorization process of the target terminal does not require the car owner terminal to continue to be restricted after completing the "key sharing" operation, reducing the occurrence of sharing error states caused by user operation errors due to usage constraints on the car owner terminal, and is more in line with the user's operation cognition, thereby improving the user's sharing experience.
[0192] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0193] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.
[0194] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0195] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0196] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0197] Obviously, those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include these modifications and variations.
[0198] All embodiments of the present disclosure may be implemented individually or in combination with other embodiments, and are all considered to be within the scope of protection claimed by the present disclosure.
Claims
1. A method for sharing a car key, applied to a server, characterized in that: include: Receiving business information sent by the vehicle owner terminal, and generating an information storage address based on the business information; Sending the information storage address to the vehicle owner terminal; Receiving a first certificate and a vehicle public key sent by the vehicle owner terminal, and sending the first certificate and the vehicle public key to a target terminal; In response to the access instruction of the target terminal, a second certificate is generated and sent to the target terminal, so that the target terminal obtains the right to use the vehicle key through the first certificate, the vehicle public key and the second certificate.
2. The method according to claim 1, characterized in that: Before receiving the first certificate and the vehicle public key sent by the vehicle owner terminal and sending the first certificate and the vehicle public key to the target terminal, the method further includes: Generate a first public key and a first private key based on the business information; The first public key is sent to the vehicle owner terminal, so that the vehicle owner terminal generates the first certificate based on the first public key.
3. The method according to claim 2, characterized in that The step of generating a second certificate in response to the access instruction of the target terminal and sending the second certificate to the target terminal comprises: In response to the access instruction of the target terminal, acquiring a second public key sent by the target terminal; Signing the second public key with the first private key to obtain the second certificate; Send the second certificate to the target terminal.
4. A method for sharing a car key, applied to a car owner terminal, characterized in that: include: Send business information to the server; Receiving the information storage address sent by the server; generating and sending a first certificate to the server; The information storage address is sent to the target terminal, so that the target terminal accesses the server through the information storage address, and then obtains the right to use the car key.
5. The method according to claim 4, characterized in that Before sending the service information to the server, the method further includes: Generate the car owner terminal private key and car owner terminal public key; Receive the vehicle public key sent by the vehicle, and send the owner terminal public key to the vehicle.
6. The method according to claim 5, characterized in that The generating and sending the first certificate to the server includes: Receiving a first public key sent by the server; Signing the first public key with the private key of the vehicle owner terminal to generate the first certificate; The first certificate and the vehicle public key are sent to the server.
7. A car key sharing device, characterized in that: include: A first receiving unit, configured to receive the service information sent by the vehicle owner terminal, and generate an information storage address based on the service information; A first sending unit, used for sending the information storage address to the vehicle owner terminal; The first receiving unit is further used to receive the first certificate and the vehicle public key sent by the vehicle owner terminal, and the first sending unit is further used to send the first certificate and the vehicle public key to the target terminal; The first processing unit is used to generate a second certificate in response to an access instruction of the target terminal, and send the second certificate to the target terminal, so that the target terminal obtains the right to use the vehicle key through the first certificate, the vehicle public key and the second certificate.
8. A car key sharing device, characterized in that: include: A second sending unit sends business information to the server; A second receiving unit, used to receive the information storage address sent by the server; A second processing unit, configured to generate and send a first certificate to the server; The second sending unit is further used to send the information storage address to the target terminal, so that the target terminal can access the server through the information storage address and obtain the right to use the car key.
9. An electronic device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, which implement the method according to any one of claims 1 to 3 or 4 to 6 when the computer program instructions are executed by the processor.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 3 or 4 to 6 is implemented.
11. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 3 or 4 to 6.
12. A computer program, characterized in that The computer program comprises computer program code, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 3 or 4 to 6.
Citation Information
Patent Citations
Authorization method and system of virtual key and server
CN106394486A
Authorization method of virtual key, server and authorization system
CN106394487A
Vehicle virtual key sharing method, mobile terminal, server and vehicle
CN113766450A
Car key sharing method and device, equipment and medium
CN116489621A
Vehicle digital key distribution management method and device
WO2022127064A1
