Vehicle key updating method, device and system
By obtaining vehicle identification information on the mobile terminal, establishing a short-distance communication connection, sending a key update request to the server, and receiving the key update information generated by the server, and transmitting it to the vehicle for key update, solving the problem of key update when the vehicle cannot be connected to the Internet, and achieving efficient and secure key updates.
Patent Information
- Application Number
- CN202211305640.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-24
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-10-24
AI Technical Summary
Existing vehicles cannot safely update vehicle keys without networking, the update efficiency is inefficient and time period is long, and they have too much dependence on other ECUs.
By obtaining vehicle identification information on the mobile terminal, establishing a short-distance communication connection, sending a key update request to the server, and receiving the key update information generated by the server, transmitting it to the vehicle for key update, and displaying the update progress or result on the mobile terminal.
It is realized that when the vehicle cannot connect to the server in the network, the vehicle key is safely updated through the mobile terminal, which improves the update efficiency and independence, and reduces the dependence on other ECUs.
Smart Images

Figure CN115696323B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of vehicle key updating, and in particular to a vehicle key updating method, device and system. Background Art
[0002] With the rapid development of smart mobile terminals, people use mobile phones in more and more scenarios, so modern vehicles are usually equipped with digital key functions so that users can use mobile terminals instead of original physical keys. The main principle of digital keys is based on cryptography and communications, and the relevant keys are often pre-made when the digital key master controller leaves the factory. However, as car manufacturers pay more attention to information security, strict requirements are also made for the keys pre-made in the car, such as unique per car, regular updates and other mechanisms.
[0003] At present, most car manufacturers use a key update method for digital keys, which requires a TBOX (Telematics Box in English, which means: remote communication terminal in Chinese) networking channel to update the key. The update link involves many ECUs, resulting in low update efficiency and a long time period. In addition, when the vehicle is not connected to the Internet, the update of the vehicle key will fail. Therefore, the current vehicle key update has too much reliance on other ECUs. Summary of the invention
[0004] The present disclosure provides a vehicle key update method, device and system to solve the technical problem that the existing vehicle cannot safely update the vehicle key when the vehicle is not connected to the Internet.
[0005] According to one embodiment of the present disclosure, a vehicle key update method is provided, which is applied to a mobile terminal, and includes: obtaining vehicle identification information, and establishing a short-distance communication connection with a corresponding vehicle based on the vehicle identification information; sending a key update request containing the vehicle identification information to a server, and successively receiving first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; based on the short-distance communication connection, sequentially transparently transmitting the first key update information and the second key update information to the vehicle, so that the vehicle performs a key update; receiving update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information; transparently transmitting the update response information to the server, and displaying the update progress and / or result of the vehicle on the mobile terminal.
[0006] According to another embodiment of the present disclosure, a vehicle key update method is provided, which is applied to a vehicle, and includes: establishing a short-range communication connection with a mobile terminal, and receiving first key update information and second key update information obtained by the mobile terminal from a server; in response to the first key update information, generating a random number for encrypting the second key update information by the server, and sending the random number to the mobile terminal; in response to the second key update information, updating the key of the vehicle.
[0007] According to another embodiment of the present disclosure, a vehicle key update device is provided, which is applied to a mobile terminal, including: a vehicle communication connection module, configured to obtain vehicle identification information, and establish a short-distance communication connection with a corresponding vehicle based on the vehicle identification information; an update information receiving module, configured to send a key update request containing the vehicle identification information to a server, and successively receive first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; a first information transparent transmission module, configured to transparently transmit the first key update information and the second key update information to the vehicle in sequence based on the short-distance communication connection, so that the vehicle performs a key update; a response information receiving module, configured to receive update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information; and a second information transparent transmission module, configured to transparently transmit the update response information to the server, and display the update progress of the vehicle on the mobile terminal.
[0008] According to another embodiment of the present disclosure, a vehicle key update device is provided, which is applied to a vehicle and includes: a terminal communication connection module, configured to establish a short-range communication connection with a mobile terminal, and receive first key update information and second key update information obtained by the mobile terminal from a server; a first update response module, configured to respond to the first key update information, generate a random number for the server to encrypt the second key update information, and send the random number to the mobile terminal; and a second update response module, configured to respond to the second key update information and perform a key update on the vehicle.
[0009] According to another embodiment of the present disclosure, a vehicle key update system is provided, including: a mobile terminal, a vehicle and a server, wherein the mobile terminal is used to execute the steps of the method applied to the mobile terminal; and the vehicle is used to execute the steps of the method applied to the vehicle.
[0010] The beneficial effects of the technical solution provided by the present disclosure are: by obtaining vehicle identification information on a mobile terminal, and establishing a short-distance communication connection with the corresponding vehicle based on the vehicle identification information; sending a key update request containing the vehicle identification information to a server, and successively receiving first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; based on the short-distance communication connection, the first key update information and the second key update information are sequentially transmitted to the vehicle to enable the vehicle to perform a key update; receiving an update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information; transmitting the update response information to the server, and displaying the update progress and / or results of the vehicle on the mobile terminal, thereby achieving the effect of securely updating the vehicle key via the mobile terminal when the vehicle cannot connect to the server over the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0012] Figure 1 is a schematic diagram of the architecture of a vehicle key update system in an embodiment of the present disclosure;
[0013] Figure 2 is a flow chart of a vehicle key update method in an embodiment of the present disclosure;
[0014] Figure 3 is a flow chart of another vehicle key update method in an embodiment of the present disclosure;
[0015] Figure 4 is a structural schematic diagram of a vehicle key updating device in an embodiment of the present disclosure;
[0016] Figure 5 is a schematic structural diagram of another vehicle key updating device in an embodiment of the present disclosure;
[0017] Figure 6 It is a schematic diagram of the structure of a computer system in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other without conflict.
[0019] It should be noted that the illustrations provided in the following embodiments are only used to schematically illustrate the basic concept of the present disclosure. Therefore, the drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0020] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present disclosure. However, it is obvious to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present disclosure difficult to understand.
[0021] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0022] Unless otherwise stated, the term "plurality" means two or more.
[0023] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0024] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0025] See also Figure 1 The present disclosure provides a vehicle key update system, which can be an application scenario of some of the following embodiments, such as Figure 1 As shown, the vehicle key update system includes: a mobile terminal 1, a vehicle 2, a server 3 and a network 4.
[0026] The mobile terminal 1 may be software or hardware. If the mobile terminal 1 is hardware, it may include but is not limited to electronic devices such as smart phones, smart wearable devices, and tablet computers. In the embodiment of the present disclosure, the mobile terminal 1 is preferably a smart phone; if the mobile terminal 1 is software, it may be an application installed on the aforementioned electronic devices, for example, vehicle management software, vehicle digital key software, and other applications.
[0027] The vehicle 2 can establish a network connection with the server 3, and can also establish a network connection with the mobile terminal 1. When the vehicle 2 can establish a network connection with the server 3, the vehicle 2 can directly download a new key from the server 3 for update. Therefore, this embodiment is only applicable to the case where the vehicle 2 and the server 3 cannot establish a network connection. In addition, the network connection between the vehicle 2 and the mobile terminal 1 is a short-distance communication connection, such as Bluetooth, WIF, and radio frequency communication. In this embodiment, the communication connection between the vehicle 2 and the mobile terminal 1 is preferably a Bluetooth connection.
[0028] Server 3 may be a server for managing the key update of the digital key of vehicle 2. When leaving the factory, the digital key of vehicle 2 is pre-made in server 3 and vehicle 2, and vehicle 2 may obtain the key update from server 3 later. In addition, in order to ensure the security of data interaction between server 3 and vehicle 2, a pre-made private key may be set in server 3 in advance, and a pre-made public key corresponding to the pre-made private key may be set in vehicle 2. When server 3 sends data to vehicle 2, the private key may be used to encrypt the data, and vehicle 2 may decrypt the data using the pre-made public key after receiving the encrypted data, so as to ensure the security of the data during transmission.
[0029] The network 4 may be a wired network or a wireless network. In this embodiment, the network between the mobile terminal 1 and the server 3 is preferably a wireless communication network. For example, the mobile terminal 1 and the vehicle 2 are connected via Bluetooth, while the mobile terminal 1 and the server 3 are connected via a mobile communication network.
[0030] See also Figure 2 The present disclosure provides a vehicle key update method, which is applied to Figure 1 The mobile terminal 1 in Figure 2 As shown, the vehicle key update method includes:
[0031] S201, obtaining vehicle identification information, and establishing a short-distance communication connection with a corresponding vehicle based on the vehicle identification information;
[0032] S202, sending a key update request including vehicle identification information to a server, and successively receiving first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information;
[0033] S203, based on the short-distance communication connection, transparently transmitting the first key update information and the second key update information to the vehicle in sequence, so that the vehicle performs a key update;
[0034] S204, receiving update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information;
[0035] S205, transparently transmit the update response information to the server, and display the vehicle update progress on the mobile terminal.
[0036] Specifically, the vehicle identification information may be a unique identification code of the vehicle-mounted terminal device, a vehicle identification code, and other codes associated with the unique identification code of the vehicle-mounted terminal device or the vehicle identification code, etc., and the embodiments of the present disclosure are not limited to this.
[0037] This embodiment obtains vehicle identification information on a mobile terminal, and establishes a short-distance communication connection with the corresponding vehicle based on the vehicle identification information; sends a key update request containing the vehicle identification information to a server, and successively receives first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; based on the short-distance communication connection, sequentially transmits the first key update information and the second key update information to the vehicle, so that the vehicle performs a key update; receives update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information; transmits the update response information to the server, and displays the update progress and / or results of the vehicle on the mobile terminal, thereby achieving the effect of securely updating the vehicle key via the mobile terminal when the vehicle cannot connect to the server over the network.
[0038] In one embodiment, the short-range communication connection between the mobile terminal and the vehicle includes a WIFI connection, a Bluetooth connection, a radio frequency connection, and the like.
[0039] For example, the short-distance communication connection between the mobile terminal and the vehicle is preferably a Bluetooth connection. A vehicle application is installed on the mobile terminal, and the vehicle application is used to manage the vehicle or the key of the vehicle. The user can register using the vehicle identification information, mobile phone number and other information to obtain an account for logging into the vehicle. When the user logs into the vehicle on the vehicle application of the mobile terminal, the surrounding Bluetooth devices are scanned. If the Bluetooth module of the logged-in vehicle is scanned, it is paired with the Bluetooth module, thereby establishing a short-distance communication connection between the mobile terminal and the vehicle.
[0040] It should be noted that the vehicle application installed on the mobile terminal is used to connect to the back-end server. Therefore, when logging into the vehicle on the vehicle application, the cellular mobile network of the mobile terminal or the AP (Access Point abbreviation, meaning: wireless access node) connected to the mobile terminal can be used to establish a wireless network connection with the back-end server. In addition, in this embodiment, the server can preferably be a digital key server for the vehicle.
[0041] Furthermore, the key update request may be an update query instruction sent by a mobile terminal. For example, when the mobile terminal is communicatively connected to the server, an update query instruction may be sent to the server through the mobile terminal where the vehicle application is located, and the server responds to the update query instruction and queries whether the key of the corresponding vehicle needs to be updated based on the vehicle identification information; alternatively, the key update request may be a selection instruction in which the user responds to an update prompt sent by the server on the mobile terminal. For example, when the mobile terminal establishes a communication connection with the server, the server may actively check whether the key of the vehicle needs to be updated based on the vehicle identification information of the vehicle logged in to the vehicle application. If an update is required, an update prompt is sent to the mobile terminal where the vehicle application is located, and the user responds to the prompt by selecting whether to update or not.
[0042] Among them, when the server detects that the vehicle key needs to be updated, or the user chooses to update in response to the server's prompt, the server will generate the first key update information in sequence based on the vehicle identification information to continue the next update process; however, when the server detects that the vehicle key does not need to be updated, or the user chooses not to update in response to the server's prompt, the vehicle key update process is ended.
[0043] In addition, when the server detects that the vehicle's key needs to be updated, or the user selects the need to update as a response to the server's prompt, it can also check whether the mobile terminal has established a short-distance communication connection with the corresponding vehicle. If a short-distance communication connection has been established, the subsequent update process will be entered. If no short-distance communication connection has been established, the vehicle key update process will be terminated.
[0044] In one embodiment, first key update information and second key update information generated by a server based on vehicle identification information are successively received, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information, including:
[0045] Receiving first signature information calculated by the server based on vehicle identification information, a first random number, a timestamp, and a prefabricated private key, where the first signature information is used to request the vehicle to generate a second random number;
[0046] After the server obtains the second random number generated by the vehicle, the receiving server calculates second signature information based on the vehicle identification information, the first random number, the second random number, the timestamp, the new key and the prefabricated private key.
[0047] Among them, the first key update information can be the content of the first signature information, or the first signature information and the content of the signature; similarly, the second key update information can be the content of the second signature information, or the second signature information and the content of the signature, which is not limited in the embodiments of the present disclosure.
[0048] Among them, combined Figure 1 In terms of application scenarios, a prefabricated private key is set on the server, and a prefabricated public key is set on the vehicle accordingly. The prefabricated public key can be preset when the vehicle leaves the vehicle, or can be sent by the server to the vehicle. Generally, there is only one prefabricated private key, but there can be multiple prefabricated public keys, so that the server can use the private key to interact with multiple vehicles for encrypted information. Specifically, when the vehicle receives the first signature information and the second signature information, the corresponding prefabricated public key can be used to verify the correctness of the first signature information and the second signature information, as well as the timestamp and the second random number therein, to prevent the content sent by the server to the vehicle from being tampered with.
[0049] In addition, the timestamps corresponding to the first signature information and the second signature information are different. Since timestamp is a common technology for digital signatures, it will not be described here.
[0050] In one embodiment, Figure 2 The update response information sent by the receiving vehicle includes:
[0051] receiving a second random number generated by the vehicle in response to the first signature information;
[0052] Receive a key update result generated by the vehicle in response to the second signature information.
[0053] Specifically, when the vehicle verifies that the first signature information is correct, it will generate a second random number to respond to the first signature information sent by the server; when the vehicle verifies that the second signature information is correct, it will use a new key to replace the current key to update the vehicle's key, thereby responding to the second signature information sent by the server.
[0054] Specifically, after the vehicle generates the second random number, it will send the second random number to the mobile terminal, which will transparently transmit the second random number to the server; in addition, after the vehicle uses the new key to update, it will send the update result to the mobile terminal, which will transparently transmit the update result to the server. The update result includes update success and update failure.
[0055] Specifically, when the mobile terminal receives the update response information returned by the vehicle, the current status of the key update can be displayed, for example, the first signature information and the second signature information sent by the receiving server are displayed on the mobile terminal, as well as the update response information returned by the vehicle, etc., until the update is completed; or, the update result can be displayed according to the update response information sent by the vehicle, for example, the update success or update failure is displayed on the mobile terminal.
[0056] Among them, when the mobile terminal receives the update response information returned by the vehicle indicating that the update is successful, a prompt of successful update can be displayed on the mobile terminal, and the short-distance communication connection with the vehicle can be disconnected, and the vehicle key of the currently logged-in vehicle can be deleted locally to end the update process.
[0057] In addition, when the server receives an update response message returned by the vehicle that is a second random number, it will generate a second signature message based on the second random number to enhance the security of data transmitted from the server to the vehicle; in addition, when the server receives an update response message returned by the vehicle that indicates an update is successful, the server stores the replacement key and recycles all keys of the vehicle.
[0058] In one embodiment, after establishing a short-distance communication connection with the corresponding vehicle based on the above vehicle identification information, it also includes: generating a session key between the mobile terminal and the vehicle.
[0059] Specifically, the session key can be a private key stored in the vehicle and the mobile terminal respectively. Since only the vehicle and the mobile terminal have the same private key, when the vehicle and the mobile terminal exchange data, the session key can be used to encrypt the information first, and then the encrypted data can be sent to the other party. Similarly, when the data sent by the other party is received, the session key is used to decrypt the data first. In this way, the security of data transmission is guaranteed.
[0060] thus, Figure 2 The key update information is transparently transmitted to the vehicle, including:
[0061] The key update information is encrypted using the session key, and the encrypted key update information is transparently transmitted to the vehicle.
[0062] For example, when the mobile terminal receives the key update information, the key update information is first encrypted using the session key, and then the encrypted key update information is transparently transmitted to the vehicle.
[0063] in addition, Figure 2 Receiving update response information sent by the vehicle, including: receiving the update response information encrypted by the vehicle using a session key; in addition, transparently transmitting the update response information to the server, including: decrypting the update response information encrypted by the vehicle using the session key to obtain the decrypted update response information; and transparently transmitting the decrypted update response information to the server.
[0064] For example, when the mobile terminal receives the encrypted update response information, it first uses the session key to decrypt the encrypted update response information, and then transparently transmits the decrypted update response information to the server.
[0065] See also Figure 3 The present disclosure provides another vehicle key update method, which is applied to Figure 1 Vehicles in Figure 3 As shown, the vehicle key update method includes:
[0066] S301, establishing a short-range communication connection with a mobile terminal, and receiving first key update information and second key update information obtained by the mobile terminal from a server;
[0067] S302, in response to the first key update information, generating a random number for encrypting the second key update information by the server, and sending the random number to the mobile terminal;
[0068] S303, in response to the second key update information, updating the key of the vehicle.
[0069] Here, the vehicle and the mobile terminal establish a short-distance communication connection, and exchange information based on the short-distance communication connection to implement the key update of the vehicle. Figure 2 Method embodiments are disclosed.
[0070] This embodiment establishes a short-distance communication connection with the mobile terminal, receives first key update information and second key update information obtained by the mobile terminal from the server, responds to the first key update information, generates a random number for the server to encrypt the second key update information, and sends the random number to the mobile terminal, responds to the second key update information, updates the key of the vehicle, thereby achieving the effect of securely updating the vehicle key via the mobile terminal when the vehicle cannot connect to the server over the Internet.
[0071] The technical solutions of all the above disclosed embodiments can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0072] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0073] Figure 4 A vehicle key update device provided by an embodiment of the present disclosure is applied to Figure 1 Mobile terminals such as Figure 4 As shown, the vehicle key updating device includes:
[0074] The vehicle communication connection module 401 is configured to obtain vehicle identification information and establish a short-range communication connection with a corresponding vehicle based on the vehicle identification information;
[0075] The update information receiving module 402 is configured to send a key update request including vehicle identification information to the server, and successively receive first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information;
[0076] The first information transparent transmission module 403 is configured to transparently transmit the first key update information and the second key update information to the vehicle in sequence based on the short-distance communication connection, so that the vehicle performs key update;
[0077] The response information receiving module 404 is configured to receive the update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information;
[0078] The second information transparent transmission module 405 is configured to transparently transmit the update response information to the server and display the update progress of the vehicle on the mobile terminal.
[0079] This embodiment obtains vehicle identification information on a mobile terminal, and establishes a short-distance communication connection with the corresponding vehicle based on the vehicle identification information; sends a key update request containing the vehicle identification information to a server, and successively receives first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; based on the short-distance communication connection, sequentially transmits the first key update information and the second key update information to the vehicle, so that the vehicle performs a key update; receives update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information; transmits the update response information to the server, and displays the update progress and / or results of the vehicle on the mobile terminal, thereby achieving the effect of securely updating the vehicle key via the mobile terminal when the vehicle cannot connect to the server over the network.
[0080] Figure 5 A vehicle key update device provided by an embodiment of the present disclosure is applied to Figure 1 Vehicles in Figure 5 As shown, the vehicle key updating device includes:
[0081] The terminal communication connection module 501 is configured to establish a short-range communication connection with the mobile terminal and receive the first key update information and the second key update information obtained by the mobile terminal from the server;
[0082] The first update response module 502 is configured to generate a random number for server-encrypted second key update information in response to the first key update information, and send the random number to the mobile terminal;
[0083] The second update response module 503 is configured to update the key of the vehicle in response to the second key update information.
[0084] This embodiment establishes a short-distance communication connection with the mobile terminal, receives first key update information and second key update information obtained by the mobile terminal from the server, responds to the first key update information, generates a random number for the server to encrypt the second key update information, and sends the random number to the mobile terminal, responds to the second key update information, updates the key of the vehicle, thereby achieving the effect of securely updating the vehicle key via the mobile terminal when the vehicle cannot connect to the server over the Internet.
[0085] See also Figure 6 , is a schematic diagram of the structure of a computer system provided by an embodiment of the present disclosure. The computer system can be Figure 1 The mobile terminal, the host or server of the vehicle, etc. It should be noted that Figure 6The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0086] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603, such as executing the method in the above embodiment. In the RAM 603, various programs and data required for system operation are also stored. The CPU 601, ROM 602 and RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0087] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.
[0088] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 609, and / or installed from a removable medium 611. When the computer program is executed by a central processing unit (CPU) 601, various functions defined in the system of the present application are executed.
[0089] The mobile terminal disclosed in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program so that the mobile terminal executes each step of the above method.
[0090] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0091] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0092] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0093] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A vehicle key update method, applied to a mobile terminal, characterized in that: include: Acquiring vehicle identification information, and establishing a short-range communication connection with a corresponding vehicle based on the vehicle identification information; Sending a key update request including the vehicle identification information to a server, and successively receiving first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; Based on the short-distance communication connection, transparently transmitting the first key update information and the second key update information to the vehicle in sequence, so that the vehicle performs a key update; receiving an update response message sent by the vehicle, wherein the update response message at least includes a random number generated by the vehicle in response to the first key update message; Transmitting the update response information to the server, and displaying the vehicle update progress and / or result on the mobile terminal; The step of successively receiving first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information, comprises: Receiving first signature information calculated by the server based on vehicle identification information, a first random number, a timestamp, and a prefabricated private key, where the first signature information is used to request the vehicle to generate a second random number; After the server obtains the second random number generated by the vehicle, the receiving server calculates second signature information based on the vehicle identification information, the first random number, the second random number, the timestamp, the new key and the prefabricated private key.
2. The vehicle key updating method according to claim 1, characterized in that: Receiving update response information sent by the vehicle, including: receiving a second random number generated by the vehicle in response to the first signature information; Receive a key update result generated by the vehicle in response to the second signature information.
3. The vehicle key updating method according to claim 1, characterized in that: The short-range communication connection between the mobile terminal and the vehicle includes a Bluetooth connection, a WIFI connection or a radio frequency connection.
4. The vehicle key updating method according to any one of claims 1 to 3, characterized in that: After establishing a short-distance communication connection with the corresponding vehicle based on the vehicle identification information, the method further includes: generating a session key between the mobile terminal and the vehicle.
5. The vehicle key updating method according to claim 4, characterized in that: Transparently transmitting the key update information to the vehicle, including: The key update information is encrypted using the session key, and the encrypted key update information is transparently transmitted to the vehicle.
6. The vehicle key updating method according to claim 5, characterized in that: Receiving the update response information sent by the vehicle, including: receiving the update response information encrypted by the vehicle using the session key; The transparently transmitting the update response information to the server includes: Decrypting the encrypted update response information of the vehicle using the session key to obtain decrypted update response information; The decrypted update response information is transparently transmitted to the server.
7. A vehicle key update method, applied to a vehicle, characterized in that: include: Establishing a short-range communication connection with a mobile terminal, and receiving first key update information and second key update information obtained by the mobile terminal from a server; In response to the first key update information, generating a random number for the server to encrypt the second key update information, and sending the random number to the mobile terminal; In response to the second key update information, updating the key of the vehicle; Receiving first key update information and second key update information obtained by the mobile terminal from the server, comprising: Receiving first signature information obtained by the mobile terminal from the server and calculated based on vehicle identification information, a first random number, a timestamp, and a prefabricated private key, wherein the first signature information is used to request the vehicle to generate a second random number; After the server obtains the second random number generated by the vehicle, the mobile terminal receives second signature information obtained from the server and calculated based on the vehicle identification information, the first random number, the second random number, the timestamp, the new key and the prefabricated private key.
8. A vehicle key update device, applied to a mobile terminal, characterized in that: include: A vehicle communication connection module is configured to obtain vehicle identification information and establish a short-range communication connection with a corresponding vehicle based on the vehicle identification information; an update information receiving module, configured to send a key update request including the vehicle identification information to a server, and successively receive first key update information and second key update information generated by the server based on the vehicle identification information, wherein the first key update information is used to request the vehicle to generate a random number for encrypting the second key update information; A first information transparent transmission module is configured to transparently transmit the first key update information and the second key update information to the vehicle in sequence based on the short-distance communication connection, so that the vehicle performs a key update; a response information receiving module, configured to receive update response information sent by the vehicle, wherein the update response information at least includes a random number generated by the vehicle in response to the first key update information; A second information transparent transmission module is configured to transparently transmit the update response information to the server and display the update progress of the vehicle on the mobile terminal; The update information receiving module is specifically used for: Receiving first signature information calculated by the server based on vehicle identification information, a first random number, a timestamp, and a prefabricated private key, where the first signature information is used to request the vehicle to generate a second random number; After the server obtains the second random number generated by the vehicle, the receiving server calculates second signature information based on the vehicle identification information, the first random number, the second random number, the timestamp, the new key and the prefabricated private key.
9. A vehicle key updating device, applied to a vehicle, characterized in that: include: A terminal communication connection module, configured to establish a short-range communication connection with a mobile terminal, and receive first key update information and second key update information obtained by the mobile terminal from a server; A first update response module, configured to generate a random number for the server to encrypt the second key update information in response to the first key update information, and send the random number to the mobile terminal; A second update response module is configured to update the key of the vehicle in response to the second key update information; The terminal communication connection module is specifically used for: Receiving first signature information obtained by the mobile terminal from the server and calculated based on vehicle identification information, a first random number, a timestamp, and a prefabricated private key, wherein the first signature information is used to request the vehicle to generate a second random number; After the server obtains the second random number generated by the vehicle, the mobile terminal receives second signature information obtained from the server and calculated based on the vehicle identification information, the first random number, the second random number, the timestamp, the new key and the prefabricated private key.
10. A vehicle key update system, comprising: A mobile terminal, a vehicle and a server, characterized in that: The mobile terminal is used to perform the steps of the method according to any one of claims 1 to 6; The vehicle is used to perform the steps of the method as claimed in claim 7.
Citation Information
Patent Citations
Method, device and system for updating vehicle electronic key
CN111402464A