Vehicle control method, device, system and computer storage medium based on Bluetooth key
By storing the spare Bluetooth key on the on-board side and verifying and authenticating, the problem of Bluetooth keys not synchronizing in the area without network signals is solved, improving user experience and satisfaction.
Patent Information
- Application Number
- CN202211231847.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-09-30
AI Technical Summary
In the area without network signal, when the owner shares the Bluetooth key to the vehicle, he cannot synchronize the Bluetooth key to the vehicle, resulting in the vehicle being unable to use the vehicle, reducing the user's satisfaction with the Bluetooth key.
The backup Bluetooth key is stored on the on-board side, including the backup key identification, the first key and the second key. By receiving the key verification information sent by the mobile terminal, a random number is generated and authenticated, realizing the vehicle control function in the network-free area.
It improves the user experience of vehicle users using Bluetooth key-control vehicles in areas without network signals, improves the technical control of key control, reduces the user's key usage restrictions, and improves the level of key management control, thereby improving users' satisfaction with Bluetooth keys.
Smart Images

Figure CN115665739B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent vehicles, and in particular to a vehicle control method, device, system, and computer storage medium based on a Bluetooth key. Background Art
[0002] The Bluetooth key of vehicle manufacturers uses Bluetooth communication technology to achieve near-field communication between people and vehicles, realizing wireless control functions such as door unlocking and locking, window opening and closing, steering wheel heating, seat heating and ventilation, as well as the key sharing function, improving the user's vehicle use experience.
[0003] However, when the vehicle is parked in an area without network signal, the vehicle owner shares the Bluetooth key with the vehicle user, but the Bluetooth key cannot be synchronized to the vehicle, resulting in the vehicle user being unable to use the vehicle, reducing the user's satisfaction with the Bluetooth key. Summary of the Invention
[0004] The purpose of the present invention is to provide a vehicle control method, device, system, and computer storage medium based on a Bluetooth key to improve the use experience of vehicle users using the Bluetooth key to control the vehicle in an area without network signal, thereby improving the user's satisfaction with the Bluetooth key.
[0005] In a first aspect, an embodiment of the present invention provides a vehicle control method based on a Bluetooth key, which is applied to an in-vehicle terminal. The in-vehicle terminal stores a spare Bluetooth key, and the spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key. The vehicle control method based on the Bluetooth key includes:
[0006] Receiving key verification information sent by a mobile terminal, where the key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier, and the encrypted data includes the mobile terminal identifier encrypted with the first secret key;
[0007] When the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key, decrypt the encrypted data with the first secret key to obtain decrypted data;
[0008] Verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information;
[0009] When the verification is passed, generate a random number and send the random number to the mobile terminal so that the mobile terminal generates a first authentication code according to the second secret key and the random number;
[0010] When receiving the vehicle control information sent by the mobile terminal, decrypt the vehicle control information with the second secret key to obtain the first authentication code and a vehicle control instruction;
[0011] Authenticate according to the first authentication code;
[0012] When the authentication is passed, vehicle control is performed according to the vehicle control instruction.
[0013] Furthermore, the above-mentioned encrypted data further includes a vehicle identification number, a vehicle security chip identifier, a Bluetooth module serial number, a spare key validity period, and a serial number encrypted with the first key; the step of verifying the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information includes:
[0014] Determine whether the mobile terminal identifier, vehicle identification number, vehicle security chip identifier, and Bluetooth module serial number in the decrypted data are respectively consistent with the mobile terminal identifier in the key verification information, and the vehicle identification number, vehicle security chip identifier, and Bluetooth module serial number of the in-vehicle terminal, to obtain a first judgment result;
[0015] Determine whether the spare key validity period in the decrypted data has not expired, to obtain a second judgment result;
[0016] Determine whether the serial number in the decrypted data differs from the serial number of the previous communication by a preset value, to obtain a third judgment result;
[0017] When the first judgment result, the second judgment result, and the third judgment result are all yes, it is determined that the verification is passed.
[0018] Furthermore, the above-mentioned step of performing authentication according to the first authentication code includes:
[0019] Generate a second authentication code according to the second key and a random number;
[0020] When the second authentication code is the same as the first authentication code, it is determined that the authentication is passed.
[0021] Furthermore, the above-mentioned spare Bluetooth key further includes key permissions; the step of performing vehicle control according to the vehicle control instruction includes:
[0022] Determine whether the vehicle control operation corresponding to the vehicle control instruction is within the key permissions;
[0023] If it is within the key permissions, execute the vehicle control instruction.
[0024] In a second aspect, an embodiment of the present invention provides a vehicle control method based on a Bluetooth key, which is applied to a mobile terminal. The mobile terminal stores a spare Bluetooth key, encrypted data, and a mobile terminal identifier sent by the cloud. The spare Bluetooth key includes a spare key identifier, a first key, and a second key. The encrypted data includes the mobile terminal identifier encrypted with the first key. The vehicle control method based on the Bluetooth key includes:
[0025] When connected to the vehicle-mounted terminal, send key verification information to the vehicle-mounted terminal so that the vehicle-mounted terminal verifies the spare Bluetooth key based on the key verification information; wherein, the key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier;
[0026] When receiving the random number sent by the vehicle-mounted terminal, generate a first authentication code according to the second key and the random number;
[0027] Use the second key to encrypt the first authentication code and the vehicle control instruction to obtain vehicle control information;
[0028] Send the vehicle control information to the vehicle-mounted terminal so that the vehicle-mounted terminal performs authentication and vehicle control based on the vehicle control information.
[0029] Further, the above-mentioned spare Bluetooth key further includes a key type; the step of sending the key verification information to the vehicle-mounted terminal includes:
[0030] Determine the key verification information according to the key type, and send the key verification information to the vehicle-mounted terminal.
[0031] In a third aspect, an embodiment of the present invention further provides a vehicle control device based on a Bluetooth key, which is applied to a vehicle-mounted terminal. The vehicle-mounted terminal stores a spare Bluetooth key, and the spare Bluetooth key includes a spare key identifier, a first key, and a second key; the vehicle control device based on the Bluetooth key includes:
[0032] A data receiving module, configured to receive key verification information sent by a mobile terminal. The key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier, and the encrypted data includes the mobile terminal identifier encrypted using the first key;
[0033] A first decryption module, configured to use the first key to decrypt the encrypted data to obtain decrypted data when the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key;
[0034] A key verification module, configured to verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information;
[0035] A first generation module, configured to generate a random number when the verification module passes the verification;
[0036] A first sending module, configured to send the random number to the mobile terminal so that the mobile terminal generates a first authentication code according to the second key and the random number;
[0037] A second decryption module, configured to use the second key to decrypt the vehicle control information to obtain the first authentication code and the vehicle control instruction when receiving the vehicle control information sent by the mobile terminal;
[0038] An authentication module, configured to perform authentication according to the first authentication code;
[0039] A vehicle control module, configured to control the vehicle according to a vehicle control instruction when the authentication module passes the authentication.
[0040] In a fourth aspect, an embodiment of the present invention further provides a vehicle control device based on a Bluetooth key, which is applied to a mobile terminal. The mobile terminal stores a backup Bluetooth key, encrypted data, and a mobile terminal identifier sent from the cloud. The backup Bluetooth key includes a backup key identifier, a first secret key, and a second secret key. The encrypted data includes the mobile terminal identifier encrypted with the first secret key. The vehicle control device based on the Bluetooth key includes:
[0041] A second sending module, configured to send key verification information to the vehicle-mounted terminal when connected to the vehicle-mounted terminal, so that the vehicle-mounted terminal verifies the backup Bluetooth key based on the key verification information; wherein, the key verification information includes a backup key identifier, encrypted data, and a mobile terminal identifier;
[0042] A second generation module, configured to generate a first authentication code according to the second secret key and a random number when receiving the random number sent by the vehicle-mounted terminal;
[0043] A data encryption module, configured to encrypt the first authentication code and the vehicle control instruction with the second secret key to obtain vehicle control information;
[0044] A third sending module, configured to send the vehicle control information to the vehicle-mounted terminal, so that the vehicle-mounted terminal performs authentication and vehicle control based on the vehicle control information.
[0045] In a fifth aspect, an embodiment of the present invention further provides a vehicle control system based on a Bluetooth key, including a vehicle-mounted terminal, a mobile terminal, and a cloud;
[0046] The cloud is configured to send a backup Bluetooth key, encrypted data, and a mobile terminal identifier to the mobile terminal when receiving an instruction to share the key to the mobile terminal and being unable to send a normal Bluetooth key to the vehicle-mounted terminal; wherein, the backup Bluetooth key includes a backup key identifier, a first secret key, and a second secret key, and the encrypted data includes the mobile terminal identifier encrypted with the first secret key;
[0047] The mobile terminal is configured to send key verification information to the vehicle-mounted terminal when connected to the vehicle-mounted terminal; wherein, the key verification information includes a backup key identifier, encrypted data, and a mobile terminal identifier;
[0048] The vehicle-mounted terminal is configured to decrypt the encrypted data with the first secret key to obtain decrypted data when receiving the key verification information and the backup key identifier in the key verification information is the same as the backup key identifier in the stored backup Bluetooth key; verify the backup Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information; when the verification passes, generate a random number, and send the random number to the mobile terminal;
[0049] The mobile terminal is also used to generate a first authentication code according to the second key and a random number when receiving the random number sent by the vehicle-mounted terminal; encrypt the first authentication code and the vehicle control instruction using the second key to obtain vehicle control information, and send the vehicle control information to the vehicle-mounted terminal;
[0050] The vehicle-mounted terminal is also used to decrypt the vehicle control information using the second key to obtain the first authentication code and the vehicle control instruction when receiving the vehicle control information sent by the mobile terminal; authenticate according to the first authentication code; when the authentication by the authentication module passes, control the vehicle according to the vehicle control instruction.
[0051] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the vehicle control method based on a Bluetooth key in the first aspect or the second aspect.
[0052] The vehicle control method, device and system, and computer storage medium based on a Bluetooth key provided by the embodiments of the present invention. When the vehicle is parked in an area without network signal and the vehicle owner shares the key to the mobile terminal, the cloud cannot send a common Bluetooth key to the vehicle-mounted terminal. At this time, a spare Bluetooth key, encrypted data and the mobile terminal identifier are sent to the mobile terminal; since the vehicle-mounted terminal stores the spare Bluetooth key, after the vehicle-mounted terminal is connected to the mobile terminal, it can verify the spare Bluetooth key based on the key verification information (including encrypted data and the mobile terminal identifier) sent by the mobile terminal, and then authenticate and control the vehicle based on the spare Bluetooth key. In this way, while ensuring the security and effectiveness of the communication between the mobile terminal and the vehicle-mounted terminal, the use experience of the vehicle user using the Bluetooth key to control the vehicle in an area without network signal is improved, the technical control of key control is enhanced, the key usage restrictions of users are reduced, the key management and control level is improved, and thus the user satisfaction with the Bluetooth key is increased. Description of the Drawings
[0053] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0054] Figure 1 It is a schematic flow chart of a user using a Bluetooth key to control a vehicle provided by an embodiment of the present invention;
[0055] Figure 2 It is a schematic structural diagram of a vehicle control system based on a Bluetooth key provided by an embodiment of the present invention;
[0056] Figure 3Schematic flowchart of a vehicle control method based on a Bluetooth key provided by an embodiment of the present invention;
[0057] Figure 4 Schematic structural diagram of a vehicle control device based on a Bluetooth key provided by an embodiment of the present invention;
[0058] Figure 5 Schematic structural diagram of another vehicle control device based on a Bluetooth key provided by an embodiment of the present invention. Detailed implementation manners
[0059] Next, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0060] Currently, when the vehicle is parked in an area without network signal, the vehicle owner shares the Bluetooth key with the vehicle user, but the Bluetooth key cannot be synchronized to the vehicle, resulting in the vehicle user being unable to use the vehicle, which reduces the user's satisfaction with the Bluetooth key. Based on this, a vehicle control method, device, system, and computer storage medium based on a Bluetooth key provided by an embodiment of the present invention can enable the vehicle user to control the vehicle using the Bluetooth key when the vehicle is parked in an area without network signal and the vehicle owner shares the Bluetooth key with the vehicle user, and through key, algorithm, and data comparison, make the communication between the mobile terminal (such as a mobile phone APP) and the vehicle-mounted terminal (such as a Bluetooth module) safe and effective.
[0061] For ease of understanding of this embodiment, first, the application scenario of this embodiment will be introduced. Taking the cloud as the TSP (Telematics Service Provider) platform and the mobile terminal as the mobile phone APP as an example, refer to Figure 1 The schematic flowchart of a user using a Bluetooth key to control a vehicle as shown. The process of a user using a Bluetooth key to control a vehicle is as follows:
[0062] Step S102, the vehicle goes offline.
[0063] Step S104, the vehicle applies to the TSP platform for a spare Bluetooth key.
[0064] Step S106, determine whether the application for the spare Bluetooth key is successful. If yes, execute step S108; if not, re-execute step S104.
[0065] Step S108, the vehicle owner shares the key.
[0066] Step S110: Determine whether the TSP platform has successfully sent a common Bluetooth key to the vehicle. If so, execute Step S112; if not, execute Step S114.
[0067] Step S112: The TSP platform sends the common Bluetooth key to the mobile APP of the vehicle user.
[0068] Step S114: The TSP platform sends a spare Bluetooth key to the mobile APP of the vehicle user.
[0069] Step S116: Control the vehicle according to the Bluetooth key vehicle control strategy.
[0070] Step S118: Determine whether it conforms to the Bluetooth key vehicle control strategy. If so, execute Step S120; if not, re-execute Step S110.
[0071] Step S120: The vehicle user successfully uses the vehicle.
[0072] The focus of this embodiment is on the process of controlling the vehicle according to the Bluetooth key vehicle control strategy based on the spare Bluetooth key.
[0073] See Figure 2 As shown in the structural schematic diagram of a vehicle control system based on a Bluetooth key, the vehicle control system based on a Bluetooth key provided by the embodiment of the present invention includes: an in-vehicle terminal 206, a mobile terminal 204, and a cloud 202;
[0074] The cloud 202 is configured to send a spare Bluetooth key, encrypted data, and a mobile terminal identifier to the mobile terminal 204 when receiving an instruction to share the key to the mobile terminal 204 and being unable to send the common Bluetooth key to the in-vehicle terminal 206; wherein, the spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key, and the encrypted data includes the mobile terminal identifier encrypted with the first secret key;
[0075] The mobile terminal 204 is configured to send key verification information to the in-vehicle terminal 206 when connected to the in-vehicle terminal 206; wherein, the key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier;
[0076] The in-vehicle terminal 206 stores a spare Bluetooth key. The in-vehicle terminal 206 is configured to decrypt the encrypted data with the first secret key to obtain decrypted data when receiving the key verification information and the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key; verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information; when the verification passes, generate a random number and send the random number to the mobile terminal 204;
[0077] The mobile terminal 204 is further configured to generate a first authentication code according to the second key and the random number when receiving the random number sent by the vehicle-mounted terminal 206; encrypt the first authentication code and the vehicle control instruction using the second key to obtain vehicle control information, and send the vehicle control information to the vehicle-mounted terminal 206;
[0078] The vehicle-mounted terminal 206 is further configured to decrypt the vehicle control information using the second key to obtain the first authentication code and the vehicle control instruction when receiving the vehicle control information sent by the mobile terminal 204; authenticate according to the first authentication code; when the authentication by the authentication module passes, control the vehicle according to the vehicle control instruction.
[0079] The above vehicle-mounted terminal 206 may be a Bluetooth module of the vehicle, the mobile terminal 204 may be a mobile phone APP, and the cloud 202 may be a TSP platform.
[0080] In the vehicle control system based on the Bluetooth key provided by the embodiment of the present invention, when the vehicle is parked in an area without network signal and the vehicle owner shares the key to the mobile terminal, the cloud cannot send the ordinary Bluetooth key to the vehicle-mounted terminal. At this time, the spare Bluetooth key, encrypted data and mobile terminal identifier are sent to the mobile terminal; since the vehicle-mounted terminal stores the spare Bluetooth key, after the vehicle-mounted terminal is connected to the mobile terminal, the spare Bluetooth key can be verified based on the key verification information (including encrypted data and mobile terminal identifier) sent by the mobile terminal, and then authentication and vehicle control are performed based on the spare Bluetooth key. In this way, while ensuring the security and effectiveness of the communication between the mobile terminal and the vehicle-mounted terminal, the use experience of the vehicle user using the Bluetooth key to control the vehicle in the area without network signal is improved, the technical control of the key control is enhanced, the key use restrictions of the user are reduced, the key management and control level is improved, and thus the user satisfaction with the Bluetooth key is improved.
[0081] The embodiment of the present invention further provides a vehicle control method based on a Bluetooth key. Refer to Figure 3 the flowchart of a vehicle control method based on a Bluetooth key shown in
[0082] Step S302, when the cloud receives the instruction to share the key to the mobile terminal and cannot send the ordinary Bluetooth key to the vehicle-mounted terminal, send the spare Bluetooth key, encrypted data and mobile terminal identifier to the mobile terminal.
[0083] Among them, the spare Bluetooth key includes a spare key identifier, a first key and a second key, and the encrypted data includes the mobile terminal identifier encrypted using the first key. The spare key identifier may be a key ID; the first key is used for data encryption and verifying whether the data comes from the cloud; the second key is used for challenge authentication between the vehicle-mounted terminal and the mobile terminal.
[0084] Step S304: When the mobile terminal is connected to the vehicle terminal, it sends key verification information to the vehicle terminal.
[0085] Among them, the key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier.
[0086] In some possible embodiments, the above-mentioned spare Bluetooth key further includes a key type, which can be divided into two categories: ordinary key and spare key. Only the spare key sends the above-mentioned key verification information. Based on this, the mobile terminal can first determine the key verification information according to the key type, and then send the key verification information to the vehicle terminal.
[0087] Step S306: The vehicle terminal determines whether the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key.
[0088] Step S308: When the judgment result is yes, the vehicle terminal uses the first key to decrypt the encrypted data to obtain the decrypted data.
[0089] Step S310: The vehicle terminal verifies the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information.
[0090] In some possible embodiments, the above-mentioned encrypted data further includes a vehicle identification code, a vehicle security chip identifier, a Bluetooth module serial number, a spare key expiration time, and a serial number encrypted with the first key. Therefore, the decrypted data includes a mobile terminal identifier, a vehicle identification code, a vehicle security chip identifier, a Bluetooth module serial number, a spare key expiration time, and a serial number (SequenceNumber). In this case, the spare Bluetooth key can be verified in the following manner: Determine whether the mobile terminal identifier, vehicle identification code, vehicle security chip identifier, and Bluetooth module serial number in the decrypted data are respectively consistent with the mobile terminal identifier in the key verification information, and the vehicle identification code, vehicle security chip identifier, and Bluetooth module serial number of the vehicle terminal to obtain a first judgment result; Determine whether the spare key expiration time in the decrypted data has not expired to obtain a second judgment result; Determine whether the serial number in the decrypted data differs from the serial number of the previous communication by a preset value to obtain a third judgment result; When the first judgment result, the second judgment result, and the third judgment result are all yes, it is determined that the verification is passed. It should be noted that the order of execution of these three judgment processes is not limited in this embodiment.
[0091] The above-mentioned mobile terminal identifier is the unique identifier of the mobile terminal, which can be the Hash value of the unique identification code of the mobile phone; the vehicle identification number, abbreviated as VIN (Vehicle Identification Number), is the unique identifier of the vehicle; the vehicle security chip identifier is the unique identifier of the security chip on the vehicle, which can be the ID of the HSM (Hardware Security Module, hardware security module); the Bluetooth module serial number is the unique identifier of the Bluetooth module on the vehicle, which can be the SN (Serial Number) of the Bluetooth module. The above-mentioned preset value can be set according to actual needs. For example, the preset value is 5, that is, each time the cloud issues a spare Bluetooth key, the corresponding serial number increases by 5. The cloud can update the spare Bluetooth key periodically and update the spare Bluetooth key on the in-vehicle device at the same time. Therefore, the spare Bluetooth key has a corresponding spare key valid time.
[0092] Step S312, when the in-vehicle device passes the verification, it generates a random number.
[0093] Step S314, the in-vehicle device sends the random number to the mobile terminal.
[0094] Step S316, the mobile terminal generates a first authentication code according to the second key and the random number.
[0095] The mobile terminal generates a first authentication code according to the second key and the random number by a specific algorithm. The specific algorithm can be any challenge algorithm, which can be a symmetric encryption algorithm or an asymmetric encryption algorithm. For example, the specific algorithm is the AES (Advanced Encryption Standard) encryption algorithm.
[0096] Step S318, the mobile terminal encrypts the first authentication code and the vehicle control instruction with the second key to obtain vehicle control information.
[0097] Step S320, the mobile terminal sends the vehicle control information to the in-vehicle device.
[0098] Step S322, the in-vehicle device decrypts the vehicle control information with the second key to obtain the first authentication code and the vehicle control instruction.
[0099] Step S324, the in-vehicle device performs authentication according to the first authentication code.
[0100] The in-vehicle device can generate a second authentication code according to the second key and the random number by a specific algorithm; when the second authentication code is the same as the first authentication code, it is determined that the authentication passes, otherwise the authentication fails.
[0101] Step S326, when the authentication passes, the in-vehicle device controls the vehicle according to the vehicle control instruction.
[0102] The permissions of the spare Bluetooth key can be the same as or different from those of the ordinary Bluetooth key to meet the user's usage requirements. Based on this, the above-mentioned spare Bluetooth key can also include key permissions. The vehicle-mounted terminal can first determine whether the vehicle control operation corresponding to the vehicle control instruction is within the key permissions; if it is within the key permissions, the vehicle control instruction is executed, otherwise the vehicle control instruction is not executed. For example, the key permissions can include door opening permissions, door opening + engine starting permissions, or owner permissions, etc. If the key permission is the door opening permission and the vehicle control operation is to start the engine, the vehicle control instruction is not executed; if the key permission is the owner permission and the vehicle control operation is to start the engine, the vehicle control instruction is executed to start the engine.
[0103] For the sake of easy understanding, the above vehicle control method based on the Bluetooth key will be introduced in detail by way of example as follows:
[0104] The vehicle has applied for a spare Bluetooth key. At this time, the fixed spare Bluetooth key (key ID, key 1, key 2, key type, key permissions), VIN, HSM ID, and Bluetooth module SN are stored in the vehicle's Bluetooth module; when the vehicle is in a network-free state, the TSP platform cannot send the ordinary Bluetooth key to the vehicle user. The vehicle user's mobile phone APP has obtained the authorization of the owner's spare Bluetooth key, that is, the mobile phone APP stores the spare Bluetooth key sent by the TSP platform, the encrypted data of key 1 (VIN + HSM ID + Bluetooth module SN + mobile phone end unique identification code Hash value + spare key valid time + SequenceNumber), and the mobile phone end unique identification code Hash value. Now the vehicle user is beside the vehicle and ready to use the vehicle.
[0105] ① The mobile phone APP connects to the Bluetooth module.
[0106] ② The mobile phone APP sends the key ID + encrypted data of key 1 + mobile phone end unique identification code Hash value to the Bluetooth module.
[0107] ③ The Bluetooth module reads the key ID list and compares it with the key ID sent by the mobile phone APP. If they are the same, the encrypted data of key 1 is decrypted.
[0108] ④ After the encrypted data of key 1 is decrypted by key 1, if VIN + HSM ID + Bluetooth module SN + mobile phone end unique identification code Hash value is consistent with the corresponding data stored in the Bluetooth module, and the spare key valid time has not expired and the SequenceNumber differs from the SequenceNumber of the previous communication by 5, the data verification of the Bluetooth module passes.
[0109] ⑤ The Bluetooth module generates a random number and sends it to the mobile phone APP.
[0110] ⑥The mobile phone APP generates an authentication code according to the key 2 + random number using a specific algorithm, encrypts the authentication code and the vehicle control instruction with the key 2, and sends them to the Bluetooth module.
[0111] ⑦The Bluetooth module finds the key 2 of the spare Bluetooth key according to the key ID, decrypts the authentication code and the vehicle control instruction using the key 2, generates an authentication code according to the key 2 + random number using a specific algorithm, and compares the generated authentication code with the authentication code sent by the mobile phone APP. If they are the same, the vehicle is controlled using the vehicle control instruction.
[0112] In the vehicle control method based on the Bluetooth key provided by the embodiment of the present invention, when the vehicle is parked in an area without network signal and the vehicle owner shares the key to the mobile terminal, the cloud cannot send the ordinary Bluetooth key to the vehicle-mounted terminal. At this time, the spare Bluetooth key, the encrypted data, and the mobile terminal identifier are sent to the mobile terminal; since the vehicle-mounted terminal stores the spare Bluetooth key, after the vehicle-mounted terminal is connected to the mobile terminal, the spare Bluetooth key can be verified based on the key verification information (including the encrypted data and the mobile terminal identifier) sent by the mobile terminal, and then authentication and vehicle control are performed based on the spare Bluetooth key. In this way, while ensuring the security and effectiveness of the communication between the mobile terminal and the vehicle-mounted terminal, the use experience of the vehicle user using the Bluetooth key to control the vehicle in the area without network signal is improved, the technical control of the key control is enhanced, the key usage restrictions of the user are reduced, the key management and control level is improved, and thus the user's satisfaction with the Bluetooth key is increased.
[0113] The embodiment of the present invention also provides a vehicle control device based on the Bluetooth key, which is applied to the vehicle-mounted terminal. The vehicle-mounted terminal stores the spare Bluetooth key, and the spare Bluetooth key includes a spare key identifier, a first key, and a second key; see Figure 4 the structural schematic diagram of a vehicle control device based on the Bluetooth key shown. The vehicle control device based on the Bluetooth key includes:
[0114] A data receiving module 402, configured to receive the key verification information sent by the mobile terminal. The key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier, and the encrypted data includes the mobile terminal identifier encrypted with the first key;
[0115] A first decryption module 404, configured to decrypt the encrypted data with the first key to obtain decrypted data when the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key;
[0116] A key verification module 406, configured to verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information;
[0117] A first generation module 408, configured to generate a random number when the verification module 406 passes the verification;
[0118] The first sending module 410 is configured to send a random number to the mobile terminal, so that the mobile terminal generates a first authentication code according to the second key and the random number;
[0119] The second decryption module 412 is configured to, when receiving the vehicle control information sent by the mobile terminal, decrypt the vehicle control information using the second key to obtain a first authentication code and a vehicle control instruction;
[0120] The authentication module 414 is configured to perform authentication according to the first authentication code;
[0121] The vehicle control module 416 is configured to, when the authentication by the authentication module 414 is passed, control the vehicle according to the vehicle control instruction.
[0122] Further, the above encrypted data further includes a vehicle identification code, a vehicle security chip identifier, a Bluetooth module serial number, a spare key valid time, and a serial number encrypted using the first key; the key verification module 406 is specifically configured to: determine whether the mobile terminal identifier, vehicle identification code, vehicle security chip identifier, and Bluetooth module serial number in the decrypted data are respectively consistent with the mobile terminal identifier in the key verification information, and the vehicle identification code, vehicle security chip identifier, and Bluetooth module serial number of the in-vehicle terminal, to obtain a first determination result; determine whether the spare key valid time in the decrypted data has not expired, to obtain a second determination result; determine whether the serial number in the decrypted data differs from the serial number of the previous communication by a preset value, to obtain a third determination result; when the first determination result, the second determination result, and the third determination result are all yes, determine that the verification is passed.
[0123] Further, the authentication module 414 is specifically configured to: generate a second authentication code according to the second key and the random number; when the second authentication code is the same as the first authentication code, determine that the authentication is passed.
[0124] Further, the above spare Bluetooth key further includes key permissions; the vehicle control module 416 is specifically configured to: determine whether the vehicle control operation corresponding to the vehicle control instruction is within the key permissions; if it is within the key permissions, execute the vehicle control instruction.
[0125] An embodiment of the present invention further provides a vehicle control device based on a Bluetooth key, which is applied to a mobile terminal. The mobile terminal stores a spare Bluetooth key, encrypted data, and a mobile terminal identifier sent by the cloud. The spare Bluetooth key includes a spare key identifier, a first key, and a second key. The encrypted data includes a mobile terminal identifier encrypted using the first key; refer to Figure 5 As shown in the structural schematic diagram of another vehicle control device based on a Bluetooth key, the vehicle control device based on a Bluetooth key includes:
[0126] The second sending module 502 is configured to send key verification information to the vehicle-mounted terminal when connected to the vehicle-mounted terminal, so that the vehicle-mounted terminal verifies the spare Bluetooth key based on the key verification information; wherein, the key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier;
[0127] The second generation module 504 is configured to generate a first authentication code according to the second key and the random number when receiving the random number sent by the vehicle-mounted terminal;
[0128] The data encryption module 506 is configured to encrypt the first authentication code and the vehicle control instruction using the second key to obtain vehicle control information;
[0129] The third sending module 508 is configured to send the vehicle control information to the vehicle-mounted terminal, so that the vehicle-mounted terminal performs authentication and vehicle control based on the vehicle control information.
[0130] Further, the above-mentioned spare Bluetooth key further includes a key type; specifically, the second sending module 502 is configured to: determine the key verification information according to the key type, and send the key verification information to the vehicle-mounted terminal.
[0131] The vehicle control device based on the Bluetooth key provided in this embodiment has the same implementation principle and technical effects as the foregoing vehicle control method embodiment based on the Bluetooth key. For the sake of brief description, for the parts not mentioned in the vehicle control device embodiment based on the Bluetooth key, reference may be made to the corresponding content in the foregoing vehicle control method embodiment based on the Bluetooth key.
[0132] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the vehicle control method based on the Bluetooth key described in the foregoing method embodiment. The computer-readable storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), RAMs, magnetic disks, or optical discs that can store program codes.
[0133] In all the examples shown and described here, any specific value should be construed as merely exemplary, not as a limitation. Therefore, other examples of the exemplary embodiments may have different values.
[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0135] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical functional division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed between each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, in various embodiments of the present invention, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A vehicle control method based on a Bluetooth key, characterized in that, it is applied to the vehicle-mounted terminal, and the vehicle-mounted terminal stores a spare Bluetooth key, and the spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key; the vehicle control method based on the Bluetooth key includes: Receiving key verification information sent by a mobile terminal, where the key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier, and the encrypted data includes the mobile terminal identifier encrypted using the first secret key; When the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key, use the first secret key to decrypt the encrypted data to obtain decrypted data; Verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information; When the verification is passed, generate a random number and send the random number to the mobile terminal so that the mobile terminal generates a first authentication code according to the second secret key and the random number; When receiving the vehicle control information sent by the mobile terminal, use the second secret key to decrypt the vehicle control information to obtain a first authentication code and a vehicle control instruction; Authenticate according to the first authentication code; When the authentication is passed, control the vehicle according to the vehicle control instruction.
2. The vehicle control method based on a Bluetooth key according to claim 1, characterized in that, the encrypted data further includes a vehicle identification number, a vehicle security chip identifier, a Bluetooth module serial number, a spare key validity period, and a serial number encrypted using the first secret key; The step of verifying the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information includes: Judging whether the mobile terminal identifier, vehicle identification number, vehicle security chip identifier, and Bluetooth module serial number in the decrypted data are respectively consistent with the mobile terminal identifier in the key verification information, and the vehicle identification number, vehicle security chip identifier, and Bluetooth module serial number of the vehicle-mounted terminal, to obtain a first judgment result; Judging whether the spare key validity period in the decrypted data has not expired, to obtain a second judgment result; Judging whether the serial number in the decrypted data differs from the serial number of the previous communication by a preset value, to obtain a third judgment result; When the first judgment result, the second judgment result, and the third judgment result are all yes, it is determined that the verification is passed.
3. The vehicle control method based on a Bluetooth key according to claim 1, characterized in that, The step of authenticating according to the first authentication code includes: Generating a second authentication code according to the second secret key and the random number; When the second authentication code is the same as the first authentication code, it is determined that the authentication is passed.
4. The vehicle control method based on a Bluetooth key according to claim 1, characterized in that, the spare Bluetooth key further includes key permissions; the step of controlling the vehicle according to the vehicle control instruction includes: Judging whether the vehicle control operation corresponding to the vehicle control instruction is within the key permissions; If it is within the key permissions, execute the vehicle control instruction.
5. A vehicle control method based on a Bluetooth key, characterized in that, Applied to a mobile terminal, the mobile terminal stores a spare Bluetooth key, encrypted data, and a mobile terminal identifier sent from the cloud. The spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key. The encrypted data includes the mobile terminal identifier encrypted using the first secret key; The vehicle control method based on the Bluetooth key includes: When connected to the vehicle terminal, sending key verification information to the vehicle terminal so that the vehicle terminal verifies the spare Bluetooth key based on the key verification information; wherein, the key verification information includes the spare key identifier, the encrypted data, and the mobile terminal identifier; When receiving a random number sent by the vehicle terminal, generating a first authentication code according to the second secret key and the random number; Using the second secret key to encrypt the first authentication code and the vehicle control instruction to obtain vehicle control information; Sending the vehicle control information to the vehicle terminal so that the vehicle terminal performs authentication and vehicle control based on the vehicle control information.
6. The vehicle control method based on the Bluetooth key according to claim 5, characterized in that, The spare Bluetooth key further includes a key type; the step of sending the key verification information to the vehicle terminal includes: Determining the key verification information according to the key type and sending the key verification information to the vehicle terminal.
7. A vehicle control device based on the Bluetooth key, characterized in that, Applied to the vehicle terminal, the vehicle terminal stores a spare Bluetooth key. The spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key; the vehicle control device based on the Bluetooth key includes: A data receiving module, configured to receive key verification information sent by the mobile terminal. The key verification information includes a spare key identifier, encrypted data, and a mobile terminal identifier. The encrypted data includes the mobile terminal identifier encrypted using the first secret key; A first decryption module, configured to use the first secret key to decrypt the encrypted data to obtain decrypted data when the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key; A key verification module, configured to verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information; A first generation module, configured to generate a random number when the verification module passes the verification; A first sending module, configured to send the random number to the mobile terminal so that the mobile terminal generates a first authentication code according to the second secret key and the random number; A second decryption module, configured to use the second secret key to decrypt the vehicle control information to obtain a first authentication code and a vehicle control instruction when receiving the vehicle control information sent by the mobile terminal; An authentication module, configured to perform authentication according to the first authentication code; A vehicle control module, configured to perform vehicle control according to the vehicle control instruction when the authentication module passes the authentication.
8. A vehicle control device based on the Bluetooth key, characterized in that, Applied to a mobile terminal, the mobile terminal stores a spare Bluetooth key, encrypted data, and a mobile terminal identifier sent from the cloud. The spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key. The encrypted data includes the mobile terminal identifier encrypted using the first secret key; The vehicle control device based on the Bluetooth key includes: A second sending module, configured to send key verification information to the vehicle-mounted terminal when connected to the vehicle-mounted terminal, so that the vehicle-mounted terminal verifies the spare Bluetooth key based on the key verification information; wherein, the key verification information includes the spare key identifier, the encrypted data, and the mobile terminal identifier; A second generating module, configured to generate a first authentication code according to the second secret key and the random number when receiving the random number sent by the vehicle-mounted terminal; A data encryption module, configured to encrypt the first authentication code and the vehicle control instruction using the second secret key to obtain vehicle control information; A third sending module, configured to send the vehicle control information to the vehicle-mounted terminal, so that the vehicle-mounted terminal performs authentication and vehicle control based on the vehicle control information.
9. A vehicle control system based on a Bluetooth key, characterized in that, it includes a vehicle-mounted terminal, a mobile terminal, and a cloud; The cloud is configured to send a spare Bluetooth key, encrypted data, and a mobile terminal identifier to the mobile terminal when receiving an instruction to share the key to the mobile terminal and unable to send a normal Bluetooth key to the vehicle-mounted terminal; wherein, the spare Bluetooth key includes a spare key identifier, a first secret key, and a second secret key, and the encrypted data includes the mobile terminal identifier encrypted using the first secret key; The mobile terminal is configured to send key verification information to the vehicle-mounted terminal when connected to the vehicle-mounted terminal; wherein, the key verification information includes the spare key identifier, the encrypted data, and the mobile terminal identifier; The vehicle-mounted terminal is configured to, when receiving the key verification information and the spare key identifier in the key verification information is the same as the spare key identifier in the stored spare Bluetooth key, decrypt the encrypted data using the first secret key to obtain decrypted data; verify the spare Bluetooth key according to the decrypted data and the mobile terminal identifier in the key verification information; when the verification passes, generate a random number and send the random number to the mobile terminal; The mobile terminal is further configured to, when receiving the random number sent by the vehicle-mounted terminal, generate a first authentication code according to the second secret key and the random number; encrypt the first authentication code and the vehicle control instruction using the second secret key to obtain vehicle control information, and send the vehicle control information to the vehicle-mounted terminal; The vehicle-mounted terminal is further configured to, when receiving the vehicle control information sent by the mobile terminal, decrypt the vehicle control information using the second secret key to obtain a first authentication code and a vehicle control instruction; perform authentication according to the first authentication code; when the authentication by the authentication module passes, perform vehicle control according to the vehicle control instruction.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that, When the computer program is run by a processor, it executes the vehicle control method based on a Bluetooth key according to any one of claims 1-6.
Citation Information
Patent Citations
Automobile digital key sharing system and method
CN112406783A
Vehicle Bluetooth key generation and authentication method and system in network-free environment
CN113781678A