A Bluetooth key connection method and device for a vehicle

By introducing a two-factor verification mechanism in the vehicle Bluetooth key connection system, we ensure that the communication connection is established only after the two-way verification of the vehicle end and the mobile terminal passes, the problem of vehicle power waste caused by malicious connections is solved and higher security and reliability are achieved.

CN115761954BActive Publication Date: 2025-05-06YINGCHE XINGCHUANG INTELLIGENT TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211419784.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2025-05-06
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

When controlling the vehicle through Bluetooth key, there is a problem of malicious connection, resulting in wasted power in the vehicle.

Method used

By establishing a two-factor verification mechanism between the vehicle end and the mobile terminal, it is ensured that the communication connection is established and the vehicle is awakened only if both the vehicle end and the mobile terminal are successfully verified. The specific steps include obtaining and verifying the random number and sequence information in the terminal data packet.

Benefits of technology

Effectively prevent malicious connections and avoid waste of power caused by vehicle illegal Bluetooth connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115761954B_ABST
    Figure CN115761954B_ABST
Patent Text Reader

Abstract

The present invention provides a vehicle Bluetooth key connection method and device, including: the vehicle Bluetooth key connection method is applied to the vehicle end, including: obtaining a terminal data packet sent by a mobile terminal, the terminal data packet including terminal information to be verified; performing identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle end information, and obtaining a vehicle end verification result; obtaining a terminal verification result generated after the mobile terminal performs identity authentication on the vehicle end data packet according to the pre-acquired vehicle end information and the pre-stored terminal information; when the vehicle end verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle end, and generates a vehicle wake-up signal to wake up the vehicle. The present invention can prevent malicious connections and ensure that vehicle power is not wasted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle communication technology, and in particular to a vehicle Bluetooth key connection method and device. Background Art

[0002] As society becomes more intelligent, mobile phones, as people's portable mobile terminals, play a role in more and more scenarios, and the connection between vehicles and mobile phones is becoming a standard function. Specifically, mobile phones use the Internet, Bluetooth and other communication methods to realize intelligent application scenarios of mobile phone control of vehicles, and mobile phone Bluetooth keys are becoming more and more common. At present, malicious connections may occur when controlling the car through Bluetooth keys, resulting in a waste of vehicle power. Summary of the invention

[0003] The present invention provides a vehicle Bluetooth key connection method and device to solve the above problems.

[0004] The present invention provides a vehicle Bluetooth key connection method, which is applied on a vehicle side and includes:

[0005] Acquire a terminal data packet sent by a mobile terminal, wherein the terminal data packet includes terminal information to be verified;

[0006] Perform identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle-side information to obtain a vehicle-side verification result;

[0007] Obtaining a terminal verification result generated by the mobile terminal after authenticating the vehicle-side data packet according to the pre-acquired vehicle-side information and the pre-stored terminal information;

[0008] When the vehicle-side verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle-side and generates a vehicle wake-up signal to wake up the vehicle.

[0009] According to a vehicle Bluetooth key connection method provided by the present invention, the terminal information to be verified includes first information to be verified and second information to be verified; accordingly, the pre-acquired terminal information is the first terminal information, and the pre-stored vehicle terminal information is the first vehicle terminal information;

[0010] The first information to be verified and the first vehicle-side information are both random numbers;

[0011] The second information to be verified and the first terminal information are both sequences;

[0012] The performing identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle terminal information includes:

[0013] comparing the first information to be verified with the first vehicle-side information to see whether they match;

[0014] Determining whether the second information to be verified is correct according to the first terminal information;

[0015] When the first information to be verified matches the first vehicle-side information and the second information to be verified is correct, the vehicle-side verification result is characterized as verification passed.

[0016] According to a vehicle Bluetooth key connection method provided by the present invention, after the mobile terminal establishes a communication connection with the vehicle end, the method further includes:

[0017] Acquire a terminal data packet resent by the mobile terminal, wherein the resent terminal data packet includes third information to be verified and fourth information to be verified, wherein the third information to be verified is a random number, and the fourth information to be verified is a sequence;

[0018] comparing the first vehicle-side information with the third information to be verified to see whether they match;

[0019] determining whether the fourth information to be verified is repeated according to the first terminal information;

[0020] When the third information to be verified matches the first vehicle-side information and the fourth information to be verified is not repeated, the terminal data packet sent again is released.

[0021] According to a vehicle Bluetooth key connection method provided by the present invention, the terminal information to be verified is information encrypted by a predefined encryption algorithm;

[0022] After acquiring the terminal data packet sent by the mobile terminal, the method further includes:

[0023] Decrypting the terminal information to be verified according to the pre-stored password information to obtain the decrypted terminal information to be verified;

[0024] Accordingly, the method further comprises:

[0025] The vehicle-side data packet is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side data packet is sent to the mobile terminal.

[0026] According to a vehicle Bluetooth key connection method provided by the present invention, before acquiring a terminal data packet sent by a mobile terminal, the method further includes:

[0027] Randomly generate vehicle-side information, encrypt the vehicle-side information using a predefined encryption algorithm, and send the encrypted vehicle-side information to the mobile terminal;

[0028] Accordingly, the pre-stored terminal information is obtained in the following manner:

[0029] Acquire terminal information sent by the mobile terminal, where the terminal information is information encrypted using a predefined encryption algorithm;

[0030] The terminal information is decrypted to obtain decrypted terminal information.

[0031] According to a vehicle Bluetooth key connection method provided by the present invention, the predefined encryption algorithm is an XOR algorithm.

[0032] According to a vehicle Bluetooth key connection method provided by the present invention, the vehicle-side data packet includes fifth information to be verified and sixth information to be verified, the fifth information to be verified is a random number, and the sixth information to be verified is a sequence;

[0033] Accordingly, the method of encrypting the vehicle-side data packet by using a predefined encryption algorithm and sending the encrypted vehicle-side data packet to the mobile terminal includes:

[0034] An XOR operation is performed on the pre-stored password information and the sixth information to be verified to obtain a first XOR result, the fifth information to be verified and the first XOR result are set in the data header of the vehicle-side data packet, and the set vehicle-side data packet is sent to the mobile terminal.

[0035] According to a vehicle Bluetooth key connection method provided by the present invention, the vehicle-side information includes first vehicle-side information and second vehicle-side information, the first vehicle-side information is a random number randomly generated by the vehicle-side, and the second vehicle-side information is a sequence randomly generated by the vehicle-side;

[0036] Accordingly, the randomly generated vehicle-side information, and the vehicle-side information is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side information is sent to the mobile terminal, including:

[0037] Randomly generate the first vehicle-side information and the second vehicle-side information;

[0038] Performing an XOR operation on the first vehicle-side information according to the pre-stored password information to obtain a second XOR result;

[0039] Performing an XOR operation on the first vehicle-side information and the second vehicle-side information to obtain a third XOR result;

[0040] The second XOR result and the third XOR result are sent to the mobile terminal.

[0041] The present invention also provides a vehicle Bluetooth key connection method, which is applied to a mobile terminal and includes:

[0042] Acquire a vehicle-side data packet sent by the vehicle-side, wherein the vehicle-side data packet includes vehicle-side information to be verified;

[0043] Perform identity authentication on the vehicle-side information to be verified according to the pre-acquired vehicle-side information and the pre-stored terminal information to obtain a terminal verification result;

[0044] Obtaining a vehicle-side verification result generated after the vehicle-side authenticates the terminal data packet according to the pre-acquired terminal information and the pre-stored vehicle-side information;

[0045] When the vehicle-side verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle-side.

[0046] According to a vehicle Bluetooth key connection method provided by the present invention, the vehicle-side information to be verified includes fifth information to be verified and sixth information to be verified; accordingly, the pre-acquired vehicle-side information is the second vehicle-side information, and the pre-stored terminal information is the second terminal information;

[0047] The fifth information to be verified and the second terminal information are both random numbers;

[0048] The sixth information to be verified and the second vehicle-side information are both sequences;

[0049] The performing identity authentication on the vehicle-side information to be verified according to the pre-acquired vehicle-side information and the pre-stored terminal information includes:

[0050] comparing the fifth information to be verified with the second terminal information to see whether they match;

[0051] Determining whether the sixth information to be verified is correct according to the second vehicle-side information;

[0052] When the fifth information to be verified matches the second terminal information and the sixth information to be verified is correct, the terminal verification result is characterized as verification passed.

[0053] According to a vehicle Bluetooth key connection method provided by the present invention, after the mobile terminal establishes a communication connection with the vehicle end, the method further includes:

[0054] Acquire a vehicle-side data packet resent by the vehicle-side, wherein the resent vehicle-side data packet includes seventh information to be verified and eighth information to be verified, wherein the seventh information to be verified is a random number, and the eighth information to be verified is a sequence;

[0055] comparing the second terminal information with the seventh information to be verified to see whether they match;

[0056] Determining whether the eighth information to be verified is repeated according to the second vehicle-side information;

[0057] When the seventh information to be verified matches the first vehicle-side information and the eighth information to be verified is not repeated, the vehicle-side data packet sent again is released.

[0058] According to a vehicle Bluetooth key connection method provided by the present invention, the method further includes:

[0059] Randomly generate terminal information to be verified, the terminal information to be verified includes first information to be verified and second information to be verified, the first information to be verified is a random number, and the second information to be verified is a sequence;

[0060] Perform an XOR operation on the pre-stored password information and the second information to be verified to obtain a fourth XOR result, set the first information to be verified and the fourth XOR result in the data header of the terminal data packet, and send the set terminal data packet to the vehicle end.

[0061] According to a vehicle Bluetooth key connection method provided by the present invention, the method further includes:

[0062] Randomly generate terminal information, the terminal information includes first terminal information and second terminal information, the first terminal information is a randomly generated sequence, and the second terminal information is a random number;

[0063] Performing an XOR operation on the pre-stored password information and the second terminal information to obtain a fifth XOR result;

[0064] Performing an XOR operation on the first terminal information and the second terminal information to obtain a sixth XOR result;

[0065] The fifth XOR result and the sixth XOR result are sent to the vehicle end.

[0066] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a Bluetooth key connection method for any vehicle as described above is implemented.

[0067] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the Bluetooth key connection method for any of the above-mentioned vehicles is implemented.

[0068] The vehicle Bluetooth key connection method and device provided by the present invention, wherein the vehicle Bluetooth key connection method applied to the vehicle end, when the vehicle end verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle end, and generates a vehicle wake-up signal to wake up the vehicle. That is to say, only when both the vehicle end and the mobile terminal have successfully verified each other, the communication connection is formally established and the vehicle is woken up. If only one of them passes the verification, the vehicle cannot be woken up, thereby preventing malicious connection. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0070] Figure 1 It is a flow chart of a vehicle Bluetooth key connection method applied on a vehicle side provided by an embodiment of the present invention;

[0071] Figure 2 It is a flowchart of a method for connecting a vehicle's Bluetooth key to a mobile terminal provided by an embodiment of the present invention;

[0072] Figure 3 It is a schematic diagram of the overall flow of a vehicle Bluetooth key connection method provided by an embodiment of the present invention;

[0073] Figure 4 A schematic diagram of the structure of a Bluetooth key connection device for a vehicle provided in an embodiment of the present invention;

[0074] Figure 5 A schematic diagram of the structure of a Bluetooth key connection device for a vehicle applied to a mobile terminal provided by an embodiment of the present invention;

[0075] Figure 6 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0077] First, the term "anti-heavy attack" mentioned in the present invention is explained.

[0078] Anti-replay attack means preventing replay attack. Replay attack refers to an attacker sending a packet that has been received by the destination host to deceive the system. It is mainly used in the identity authentication process to destroy the correctness of authentication. Replay attack can be carried out by the initiator or by the enemy who intercepts and resends the data. The attacker steals the authentication credentials through network monitoring or other means, and then resends it to the authentication server. Replay attack will cause the vehicle to be maliciously connected in the Bluetooth key connection of the vehicle, resulting in a waste of vehicle power.

[0079] The vehicle Bluetooth key connection method and device at the vehicle end proposed by the present invention are described below in conjunction with the accompanying drawings of the specification.

[0080] Figure 1 is a flow chart of a vehicle Bluetooth key connection method applied at a vehicle end provided by an embodiment of the present invention; Figure 1 As shown, the vehicle Bluetooth key connection method applied on the vehicle side includes:

[0081] S101, obtaining a terminal data packet sent by a mobile terminal, wherein the terminal data packet includes terminal information to be verified.

[0082] Among them, the terminal data packet includes a data header and a data part. The data header includes the terminal information to be verified, which includes vehicle-side information and terminal information. Specifically, it can be randomly generated numerical information, identification information, etc. in the vehicle-side or mobile terminal. The data part includes information such as control instructions from the mobile terminal to the vehicle-side.

[0083] The mobile terminal is connected to the vehicle via Bluetooth, and the vehicle obtains the terminal data packet sent by the mobile terminal through the Bluetooth module of the vehicle.

[0084] S102, performing identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle-side information to obtain a vehicle-side verification result.

[0085] The pre-acquired terminal information refers to information pre-acquired from the mobile terminal for marking the mobile terminal, such as randomly generated data in the mobile terminal, identification information of the mobile terminal, etc. The pre-stored vehicle terminal information refers to some information of the vehicle terminal itself, which can be data randomly generated by the vehicle terminal, or identification information of the vehicle terminal, etc.

[0086] In this step, the vehicle side uses the pre-acquired terminal information and the pre-stored vehicle side information to verify the terminal information to be verified. If the verification is successful, the vehicle side verification result of successful verification is obtained, and the terminal data packet is released; if the verification fails, the vehicle side verification result of failed verification is obtained, and the terminal data packet is intercepted to prevent irrelevant mobile terminals from controlling the vehicle.

[0087] S103, obtaining a terminal verification result generated after the mobile terminal authenticates the vehicle-side data packet according to the pre-acquired vehicle-side information and the pre-stored terminal information.

[0088] Specifically, while the vehicle side performs terminal data packet verification, the mobile terminal also authenticates the vehicle side data packet. The specific terminal verification process is described below. Similarly, the mobile terminal will obtain a terminal verification result of passed or failed verification, and the vehicle side will obtain the above terminal verification result.

[0089] S104, when the vehicle-side verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle-side and generates a vehicle wake-up signal to wake up the vehicle.

[0090] In this step, if the vehicle-side verification result is passed and the terminal verification result is also passed, the vehicle-side and mobile terminal formally establish a communication connection, that is, the vehicle-side can receive the terminal data packet and control the vehicle based on the terminal data packet; the mobile terminal can receive the vehicle-side data packet sent by the vehicle-side and obtain relevant information about the vehicle-side. On the basis of formally establishing a communication connection, the vehicle-side generates a vehicle wake-up signal to wake up other components of the vehicle-side.

[0091] The vehicle Bluetooth key connection method provided by the embodiment of the present invention verifies the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle information, that is, not only the vehicle information of the vehicle itself but also the terminal information of the mobile terminal are used to verify the terminal data packet, and when the vehicle verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle and generates a vehicle wake-up signal to wake up the vehicle. That is to say, only when both the vehicle and the mobile terminal are successfully verified, the communication connection is formally established and the vehicle is woken up. If only one of them is verified, the vehicle cannot be woken up, thereby preventing malicious connection.

[0092] In some embodiments of the present invention, the terminal information to be verified includes first information to be verified B' and second information to be verified C'; accordingly, the pre-acquired terminal information is the first terminal information C, and the pre-stored vehicle information is the first vehicle information B.

[0093] The first information to be verified B' and the first vehicle-side information B are both random numbers.

[0094] The second information to be verified C' and the first terminal information C are both sequences.

[0095] The performing identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle terminal information includes:

[0096] The first information to be verified B' is compared with the first vehicle-side information B to see if they match, that is, to determine whether the random number B' is the same as the random number B. If they are the same, the second information to be verified C' is determined. If they are different, the vehicle-side verification fails and the terminal data packet is intercepted.

[0097] Here, the first information to be verified B' is compared with the first vehicle-side information B because when the mobile terminal sends a terminal data packet to the vehicle-side, its terminal data packet needs to comply with specific requirements such as the vehicle-side data format. The vehicle-side information is set in the terminal data packet to verify whether the terminal data packet meets the vehicle-side requirements.

[0098] According to the first terminal information C, it is determined whether the second information to be verified C' is correct, that is, whether the sequence C is consistent with the sequence C'. If they are consistent, the vehicle-side verification is successful and the terminal data packet is released; if they are inconsistent, the vehicle-side verification fails and the terminal data packet is intercepted.

[0099] When the first information to be verified matches the first vehicle-side information and the second information to be verified is correct, the vehicle-side verification result is characterized as verification passed.

[0100] The vehicle Bluetooth key connection method provided by the embodiment of the present invention uses vehicle-side information and terminal information to perform double verification on the terminal data packet to determine the security of the terminal data packet and effectively prevent malicious connection.

[0101] After the mobile terminal establishes a communication connection with the vehicle end, for subsequent data communication between the mobile terminal and the vehicle end, the vehicle end also needs to verify the terminal data packets sent subsequently. The communication verification process is similar to the identity verification process, but slightly different. Specifically, the method further includes:

[0102] A terminal data packet resent by the mobile terminal is obtained, wherein the resent terminal data packet includes third information to be verified B" and fourth information to be verified C", wherein the third information to be verified B" is a random number, and the fourth information to be verified C" is a sequence.

[0103] Compare the first vehicle-side information with the third information to be verified to see if they match, that is, determine whether the random number B" is consistent with the random number B. If they are consistent, it means that the terminal data packet meets some requirements of the vehicle-side for the data format, and then perform the following sequence C" judgment; if the two are inconsistent, the vehicle-side and the mobile terminal do not match, and the terminal data packet is intercepted.

[0104] It is determined whether the fourth information to be verified is repeated according to the first terminal information, that is, whether sequence C" is repeated with sequence C. If the newly received sequence C" is not repeated with the previously received sequence C, it is determined that the vehicle-side communication verification is passed, the terminal data packet sent again is released, and sequence C" is stored in sequence C to form a new sequence C for the next communication verification. If the newly received sequence C" is repeated with the previously received sequence C, it is determined that a replay attack is sent, and the terminal data packet sent again is intercepted.

[0105] When the third information to be verified matches the first vehicle-side information and the fourth information to be verified is not repeated, the terminal data packet sent again is released.

[0106] The vehicle Bluetooth key connection method provided by an embodiment of the present invention verifies the terminal data packet for each communication connection after identity authentication, and releases the terminal data packet when the third information to be verified matches the first vehicle information and the fourth information to be verified is not repeated, thereby effectively preventing replay attacks.

[0107] In some embodiments of the present invention, the terminal information to be verified is information encrypted by a predefined encryption algorithm, wherein the predefined encryption algorithm may be an existing symmetric encryption algorithm, an asymmetric encryption algorithm, or a simple XOR operation.

[0108] After acquiring the terminal data packet sent by the mobile terminal, the method further includes:

[0109] The terminal information to be verified is decrypted according to the pre-stored password information K to obtain the decrypted terminal information to be verified. The decryption algorithm corresponds to the encryption algorithm mentioned above.

[0110] In addition, when the vehicle-side data packet is sent to the mobile terminal, the vehicle-side data packet is also encrypted. Specifically: the vehicle-side data packet is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side data packet is sent to the mobile terminal.

[0111] The vehicle Bluetooth key connection method provided by the embodiment of the present invention improves security by encrypting data transmitted between a mobile terminal and a vehicle terminal.

[0112] In some embodiments of the present invention, before identity authentication, the vehicle side also needs to obtain terminal information and generate vehicle side information, which specifically includes:

[0113] The vehicle-side information is randomly generated, and the vehicle-side information is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side information is sent to the mobile terminal.

[0114] Accordingly, the pre-stored terminal information is obtained in the following manner:

[0115] The terminal information sent by the mobile terminal is obtained, where the terminal information is information encrypted by a predefined encryption algorithm.

[0116] The terminal information is decrypted to obtain the decrypted terminal information and store it.

[0117] The vehicle Bluetooth key connection method provided by the embodiment of the present invention improves security by encrypting data transmitted between a mobile terminal and a vehicle terminal.

[0118] In some embodiments of the present invention, the predefined encryption algorithm is an XOR operation. The XOR operation is that if the values ​​of a and b are different, the XOR result is 1. If the values ​​of a and b are the same, the XOR result is 0. The operation process is simple and can be directly applied to the Bluetooth module of the mobile terminal or the vehicle end to speed up the execution of the program.

[0119] In some embodiments of the present invention, the vehicle-side data packet includes fifth information to be verified A' and sixth information to be verified D', the fifth information to be verified is a random number, and the sixth information to be verified is a sequence.

[0120] Accordingly, the method of encrypting the vehicle-side data packet by using a predefined encryption algorithm and sending the encrypted vehicle-side data packet to the mobile terminal includes:

[0121] An XOR operation is performed on the pre-stored password information K and the sixth information to be verified D' to obtain a first XOR result K^D', the fifth information to be verified A' and the first XOR result K^D' are set in the data header of the vehicle-side data packet, and the set vehicle-side data packet is sent to the mobile terminal.

[0122] After receiving the fifth information to be verified A' and the first XOR result K^D', the mobile terminal uses the password information K pre-stored in the mobile terminal and obtains the sixth information to be verified D' according to the XOR operation rule.

[0123] It should be noted that during the identity authentication process, the vehicle-side information to be verified is encrypted in the above manner, and the above encryption method is also used in the subsequent data communication process, which will not be elaborated here.

[0124] The vehicle Bluetooth key connection method provided by the embodiment of the present invention uses the pre-stored password information K to perform an XOR operation on the sequence D' and sets it together with the random number A' in the data header, thereby encrypting the vehicle-side data packet to improve security.

[0125] In some embodiments of the present invention, the vehicle-end information includes first vehicle-end information B and second vehicle-end information D, the first vehicle-end information B is a random number, and the second vehicle-end information D is a sequence.

[0126] Accordingly, the randomly generated vehicle-side information, and the vehicle-side information is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side information is sent to the mobile terminal, including:

[0127] The first vehicle-side information B and the second vehicle-side information D are randomly generated.

[0128] An XOR operation is performed on the pre-stored password information K and the first vehicle-side information (ie, the random number B) to obtain a second XOR result K^B.

[0129] An XOR operation is performed on the first vehicle-side information (ie, random number B) and the second vehicle-side information (ie, sequence D) to obtain a third XOR result B^D.

[0130] The second XOR result K^B and the third XOR result B^D are sent to the mobile terminal.

[0131] Correspondingly, after obtaining the second XOR result K^B and the third XOR result B^D, the mobile terminal first uses the password information K pre-stored in the mobile terminal, and obtains the first vehicle-side information (i.e., random number B) from the second XOR result K^B according to the XOR operation rules, and then uses the random number B to obtain the sequence D from the third XOR result B^D, and stores the random number B and the sequence D.

[0132] It should be noted that after the mobile terminal obtains the vehicle-side information, each terminal data packet sent by the mobile terminal carries the first vehicle-side information to show that the terminal data packet meets the vehicle-side requirements.

[0133] The vehicle Bluetooth key connection method provided in an embodiment of the present invention uses pre-stored password information to perform an XOR operation with the first vehicle-side information to obtain a second XOR result; and performs an XOR operation based on the first vehicle-side information and the second vehicle-side information to obtain a third XOR result, thereby improving the security of the identity confirmation process.

[0134] Figure 2 is a flow chart of a method for connecting a vehicle's Bluetooth key to a mobile terminal according to an embodiment of the present invention; Figure 2As shown, the vehicle Bluetooth key connection method applied in the mobile terminal includes:

[0135] S201, obtaining a vehicle-side data packet sent by the vehicle-side, wherein the vehicle-side data packet includes vehicle-side information to be verified.

[0136] Among them, the vehicle-side data packet includes a data header and a data part. The data header includes the vehicle-side information to be verified, which includes vehicle-side information and terminal information. Specifically, it can be numerical information, identification information, etc. randomly generated in the vehicle-side or mobile terminal. The data part includes vehicle-side system feedback information transmitted from the vehicle-side to the mobile terminal.

[0137] The mobile terminal and the vehicle are connected via Bluetooth, and the mobile terminal obtains the vehicle data packet through the Bluetooth module in the terminal.

[0138] S202, performing identity authentication on the vehicle-side information to be verified according to the pre-acquired vehicle-side information and the pre-stored terminal information to obtain a terminal verification result.

[0139] The pre-acquired vehicle information refers to information pre-acquired from the vehicle for marking the vehicle, such as randomly generated data in the vehicle, identification information of the vehicle, etc. The pre-stored terminal information refers to some information of the mobile terminal itself, which can be data randomly generated by the mobile terminal, identification information of the mobile terminal, etc.

[0140] In this step, the mobile terminal uses the pre-acquired vehicle-side information and the pre-stored terminal information to verify the vehicle-side information to be verified. If the verification is successful, the terminal verification result of successful verification is obtained, and the vehicle-side data packet is released; if the verification fails, the terminal verification result of failed verification is obtained, and the vehicle-side data packet is intercepted.

[0141] S203, obtaining a vehicle-side verification result generated after the vehicle-side verifies the terminal data packet according to the pre-acquired terminal information and the pre-stored vehicle-side information.

[0142] Specifically, while the mobile terminal performs vehicle-side data packet verification, the vehicle-side also performs identity verification on the mobile terminal data packet. For specific acquisition of the vehicle-side verification result, see the above description.

[0143] S204, when the vehicle-side verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle-side.

[0144] In this step, if the vehicle-side verification result is passed and the terminal verification result is also passed, a communication connection is formally established between the vehicle-side and the mobile terminal, that is, the vehicle-side can receive the terminal data packet and control the vehicle based on the terminal data packet; the mobile terminal can receive the vehicle-side data packet sent by the vehicle-side and obtain vehicle-side related information.

[0145] The vehicle Bluetooth key connection method provided by the embodiment of the present invention performs identity authentication on the vehicle information to be verified based on the pre-acquired vehicle information and the pre-stored terminal information, that is, not only the vehicle information of the vehicle itself but also the terminal information of the mobile terminal are used to verify the vehicle data packet, and when the vehicle verification result and the terminal verification result are both characterized as passed verification, the mobile terminal establishes a communication connection with the vehicle. That is to say, only when both the vehicle and the mobile terminal are successfully verified, the communication connection is formally established and the vehicle is awakened. If only one of them is verified, the subsequent data communication cannot be carried out between the vehicle and the mobile terminal, and the vehicle cannot be awakened, thereby preventing malicious connections.

[0146] In some embodiments of the present invention, the vehicle-side information to be verified includes fifth information A' and sixth information D' to be verified; accordingly, the pre-acquired vehicle-side information is second vehicle-side information D, and the pre-stored terminal information is second terminal information A.

[0147] The fifth information to be verified A' and the second terminal information A are both random numbers.

[0148] The sixth information to be verified D' and the second vehicle-side information D are both sequences.

[0149] The performing identity authentication on the vehicle-side information to be verified according to the pre-acquired vehicle-side information and the pre-stored terminal information includes:

[0150] Compare the fifth information to be verified with the second terminal information to see if they match, that is, compare the random number A' with the random number A to see if they are consistent. If they are consistent, further perform the following sequence D' judgment; if they are inconsistent, determine that the identity authentication fails and intercept the vehicle-side data packet.

[0151] Here, the fifth information to be verified A' is compared with the second terminal information A because the mobile terminal also has its own data format requirements. When the vehicle sends a vehicle data packet, the vehicle uses the second terminal information to perform the first level of identity verification required by the data packet.

[0152] According to the second vehicle-side information, determine whether the sixth information to be verified is correct, that is, determine whether sequence D and sequence D' are the same. If they are the same, it is determined that the terminal verification is passed and the vehicle-side data packet is released; if they are different, it is determined that the terminal verification is not passed and the vehicle-side data packet is intercepted.

[0153] When the fifth information to be verified matches the second terminal information and the sixth information to be verified is correct, the terminal verification result is characterized as verification passed.

[0154] The vehicle Bluetooth key connection method provided by the embodiment of the present invention uses vehicle-side information and terminal information to perform double verification on the terminal data packet to determine the security of the terminal data packet and effectively prevent malicious connection.

[0155] In some embodiments of the present invention, after the mobile terminal establishes a communication connection with the vehicle end, the mobile terminal continues to verify the vehicle end data packets received during the subsequent communication process, which is slightly different from the identity verification process and is similar to the above-mentioned vehicle end communication verification. Specifically, the method further includes:

[0156] A vehicle-side data packet resent by the vehicle-side is obtained, wherein the resent vehicle-side data packet includes seventh information to be verified A" and eighth information to be verified D", wherein the seventh information to be verified A" is a random number, and the eighth information to be verified D" is a sequence.

[0157] Compare the second terminal information with the seventh information to be verified to see if they match, that is, determine whether the random number A" is the same as the random number A. If they are the same, then proceed with the subsequent sequence D" judgment; if they are not the same, the communication verification fails and the vehicle-side data packet is intercepted.

[0158] According to the second vehicle-side information, it is determined whether the eighth information to be verified is repeated, that is, whether sequence D is repeated with sequence D”. If it is repeated, it means that a replay attack has occurred and the vehicle-side data packet is intercepted; if it is not repeated, the vehicle-side data packet is released, and sequence D” is stored in sequence D to form a new sequence D for the next communication verification.

[0159] When the seventh information to be verified matches the first vehicle-side information and the eighth information to be verified is not repeated, the vehicle-side data packet sent again is released.

[0160] The vehicle Bluetooth key connection method provided by the embodiment of the present invention allows the vehicle-side data packet sent again to pass when the seventh information to be verified matches the second terminal information and the eighth information to be verified is not repeated, thereby effectively preventing replay attacks.

[0161] In some embodiments of the present invention, the method further comprises:

[0162] Randomly generate terminal information to be verified, the terminal information to be verified includes first information to be verified B' and second information to be verified C', the first information to be verified B' is a random number, and the second information to be verified C' is a sequence;

[0163] Perform an XOR operation on the pre-stored password information K and the second information to be verified C' to obtain a fourth XOR result K^C', set the first information to be verified B' and the fourth XOR result K^C' in the data header of the terminal data packet, and send the set terminal data packet to the vehicle end.

[0164] After obtaining the first information to be verified B' and the fourth XOR result K^C', the vehicle end decrypts the fourth XOR result K^C' according to the password information K pre-stored in the vehicle end and uses the XOR operation rule to obtain the sequence C'.

[0165] In some embodiments of the present invention, the method further comprises:

[0166] The terminal information is randomly generated, and the terminal information includes first terminal information C and second terminal information A, the first terminal information C is a randomly generated sequence, and the second terminal information A is a random number.

[0167] An XOR operation is performed on the pre-stored password information K and the second terminal information A to obtain a fifth XOR result K^A.

[0168] An XOR operation is performed on the first terminal information C and the second terminal information A to obtain a sixth XOR result A^C.

[0169] The fifth XOR result K^A and the sixth XOR result A^C are sent to the vehicle end.

[0170] Correspondingly, after obtaining the fifth XOR result K^A and the sixth XOR result A^C, the vehicle side first uses the password information K pre-stored in the vehicle side, and obtains the random number A from the fifth XOR result K^A based on the XOR operation criteria, and then obtains the sequence C from the sixth XOR result A^C according to the random number A.

[0171] Figure 3 : is a schematic diagram of the overall flow of the vehicle Bluetooth key connection method provided by an embodiment of the present invention; Figure 3 As shown, the Bluetooth key connection method of the vehicle includes:

[0172] S301, the mobile terminal generates a random number A and a sequence C, and sends the XOR operation result of the random number A and the password K, and the XOR operation result of the random number A and the sequence C to the vehicle;

[0173] S302, after receiving the XOR operation result of the random number A and the password K, and the XOR operation result of the random number A and the sequence C, the vehicle obtains the random number A and the sequence C based on the XOR operation using the built-in common password K, and stores them;

[0174] S303, the vehicle generates a random number B and a sequence D, and sends the XOR operation result of the random number B and the password K, and the XOR operation result of the random number B and the sequence D to the mobile phone;

[0175] S304, after receiving the XOR operation result of the random number B and the password K and the XOR operation result of the random number B and the sequence D, the mobile phone obtains the random number B and the sequence D based on the XOR operation using the built-in common password K and stores them;

[0176] S305, in the data packet sent by the mobile phone to the vehicle, the data header part contains the random number B' and the XOR operation result of the sequence C' and the password K. After the vehicle receives the data from the mobile phone, it first verifies whether the random number B' matches, and then verifies whether the sequence C' is correct;

[0177] S306, in the data packet sent by the vehicle to the mobile phone, the data header part contains the random number A' and the XOR operation result of the sequence D' and the password K. After the mobile phone receives the vehicle data, it first verifies whether the random number A' matches, and then verifies whether the sequence D' is correct;

[0178] S307, when both step S305 and step S306 are successfully verified, communication data are sent to each other, and subsequent communication data also includes a data header. The data header sent by the mobile phone to the vehicle includes the XOR operation result of the random number B” and the sequence C” and the password K. After the vehicle receives the mobile phone data, it first verifies whether the random number B” matches the random number B, and then verifies whether the sequence C” is repeated. When the random number B” matches and the sequence C” is not repeated, the vehicle releases the mobile phone data. The data header sent by the vehicle to the mobile phone includes the XOR operation result of the random number A” and the sequence D” and the password K. After the mobile phone receives the vehicle data, it first verifies whether the random number A” matches the random number A, and then verifies whether the sequence D” is repeated. When the random number A” matches and the sequence D” is not repeated, the mobile phone releases the vehicle data.

[0179] The Bluetooth key connection device for a vehicle provided by the present invention is described below. The Bluetooth key connection device for a vehicle described below and the Bluetooth key connection method for a vehicle described above can be referred to each other.

[0180] Figure 4 A schematic diagram of a vehicle Bluetooth key connection device for use at a vehicle end provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the vehicle Bluetooth key connection device applied on the vehicle side includes:

[0181] The terminal data acquisition module 401 is used to acquire a terminal data packet sent by a mobile terminal, wherein the terminal data packet includes terminal information to be verified.

[0182] Among them, the terminal data packet includes a data header and a data part. The data header includes the terminal information to be verified, which includes vehicle-side information and terminal information. Specifically, it can be randomly generated numerical information, identification information, etc. in the vehicle-side or mobile terminal. The data part includes information such as control instructions from the mobile terminal to the vehicle-side.

[0183] The mobile terminal is connected to the vehicle via Bluetooth, and the vehicle obtains the terminal data packet sent by the mobile terminal through the Bluetooth module of the vehicle.

[0184] The vehicle-side verification module 402 is used to perform identity verification on the terminal information to be verified based on the pre-acquired terminal information and the pre-stored vehicle-side information to obtain the vehicle-side verification result.

[0185] The pre-acquired terminal information refers to the information pre-acquired from the mobile terminal for marking the mobile terminal, such as randomly generated data in the mobile terminal, identification information of the mobile terminal, etc. The pre-stored vehicle terminal information refers to some information of the vehicle terminal itself, which can be randomly generated data of the vehicle terminal, or identification information of the vehicle terminal, etc.

[0186] In this step, the vehicle side uses the pre-acquired terminal information and the pre-stored vehicle side information to verify the terminal information to be verified. If the verification is successful, the vehicle side verification result of successful verification is obtained, and the terminal data packet is released; if the verification fails, the vehicle side verification result of failed verification is obtained, and the terminal data packet is intercepted to prevent irrelevant mobile terminals from controlling the vehicle.

[0187] The terminal verification result acquisition module 403 is used to obtain the terminal verification result generated after the mobile terminal authenticates the vehicle-side data packet according to the pre-acquired vehicle-side information and the pre-stored terminal information.

[0188] Specifically, while the vehicle side performs terminal data packet verification, the mobile terminal also authenticates the vehicle side data packet. The specific terminal verification process is described below. Similarly, the mobile terminal will obtain a terminal verification result of passed or failed verification, and the vehicle side will obtain the above terminal verification result.

[0189] The vehicle wake-up module 404 is used to establish a communication connection between the mobile terminal and the vehicle end and generate a vehicle wake-up signal to wake up the vehicle when the vehicle end verification result and the terminal verification result are both characterized as passed verification.

[0190] In this module, if the vehicle-side verification result is passed and the terminal verification result is also passed, the vehicle-side and mobile terminal formally establish a communication connection, that is, the vehicle-side can receive the terminal data packet and control the vehicle based on the terminal data packet; the mobile terminal can receive the vehicle-side data packet sent by the vehicle-side and obtain relevant information about the vehicle-side. On the basis of formally establishing a communication connection, the vehicle-side generates a vehicle wake-up signal to wake up other components of the vehicle-side.

[0191] The vehicle Bluetooth key connection device provided by the embodiment of the present invention verifies the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle information, that is, not only the vehicle information of the vehicle itself but also the terminal information of the mobile terminal are used to verify the terminal data packet, and when the vehicle verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle and generates a vehicle wake-up signal to wake up the vehicle. That is to say, only when both the vehicle and the mobile terminal are successfully verified, the communication connection is formally established and the vehicle is woken up. If only one of them is verified, the vehicle cannot be woken up, thereby preventing malicious connection.

[0192] Figure 5 A schematic diagram of the structure of a Bluetooth key connection device for a vehicle applied to a mobile terminal provided by an embodiment of the present invention, such as Figure 5 As shown, the vehicle Bluetooth key connection device applied to the mobile terminal includes:

[0193] The vehicle-side data acquisition module 501 is used to acquire a vehicle-side data packet sent by the vehicle-side, wherein the vehicle-side data packet includes vehicle-side information to be verified.

[0194] Among them, the vehicle-side data packet includes a data header and a data part. The data header includes the vehicle-side information to be verified, which includes vehicle-side information and terminal information. Specifically, it can be numerical information, identification information, etc. randomly generated in the vehicle-side or mobile terminal. The data part includes vehicle-side system feedback information transmitted from the vehicle-side to the mobile terminal.

[0195] The mobile terminal and the vehicle are connected via Bluetooth, and the mobile terminal obtains the vehicle data packet through the Bluetooth module in the terminal.

[0196] The terminal verification module 502 is used to perform identity verification on the vehicle-side information to be verified according to the pre-acquired vehicle-side information and the pre-stored terminal information to obtain a terminal verification result.

[0197] The pre-acquired vehicle information refers to information pre-acquired from the vehicle for marking the vehicle, such as randomly generated data in the vehicle, identification information of the vehicle, etc. The pre-stored terminal information refers to some information of the mobile terminal itself, which can be data randomly generated by the mobile terminal, identification information of the mobile terminal, etc.

[0198] In this module, the mobile terminal uses the pre-acquired vehicle-side information and the pre-stored terminal information to verify the vehicle-side information to be verified. If the verification is successful, the terminal verification result of successful verification is obtained, and the vehicle-side data packet is released; if the verification fails, the terminal verification result of failed verification is obtained, and the vehicle-side data packet is intercepted.

[0199] The vehicle-side verification result acquisition module 503 acquires the vehicle-side verification result generated after the vehicle-side performs identity authentication on the terminal data packet according to the pre-acquired terminal information and the pre-stored vehicle-side information.

[0200] Specifically, while the mobile terminal performs vehicle-side data packet verification, the vehicle-side also performs identity verification on the mobile terminal data packet. For specific acquisition of the vehicle-side verification result, see the above description.

[0201] The data communication module 504 is used to establish a communication connection between the mobile terminal and the vehicle end when the vehicle end verification result and the terminal verification result are both characterized as verification passed.

[0202] In this module, if the vehicle-side verification result is passed and the terminal verification result is also passed, a communication connection is formally established between the vehicle-side and the mobile terminal, that is, the vehicle-side can receive the terminal data packet and control the vehicle based on the terminal data packet; the mobile terminal can receive the vehicle-side data packet sent by the vehicle-side and obtain vehicle-side related information.

[0203] The vehicle Bluetooth key connection device provided in the embodiment of the present invention performs identity authentication on the vehicle information to be verified based on the pre-acquired vehicle information and the pre-stored terminal information, that is, not only the vehicle information of the vehicle itself but also the terminal information of the mobile terminal are used to verify the vehicle data packet, and when the vehicle verification result and the terminal verification result are both characterized as passed verification, the mobile terminal establishes a communication connection with the vehicle. That is to say, only when both the vehicle and the mobile terminal are successfully verified, the communication connection is formally established and the vehicle is awakened. If only one of them is verified, the subsequent data communication cannot be carried out between the vehicle and the mobile terminal, and the vehicle cannot be awakened, thereby preventing malicious connections.

[0204] Figure 6 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the vehicle Bluetooth key connection method applied to the vehicle end, the vehicle Bluetooth key connection method comprising: obtaining a terminal data packet sent by a mobile terminal, the terminal data packet including terminal information to be verified; performing identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle end information, and obtaining a vehicle end verification result; obtaining a terminal verification result generated by the mobile terminal after performing identity authentication on the vehicle end data packet according to the pre-acquired vehicle end information and the pre-stored terminal information; when the vehicle end verification result and the terminal verification result are both characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle end, and generates a vehicle wake-up signal to wake up the vehicle.

[0205] Or used to execute a vehicle Bluetooth key connection method applied to a mobile terminal, the vehicle Bluetooth key connection method comprising: obtaining a vehicle-side data packet sent by a vehicle-side, the vehicle-side data packet including vehicle-side information to be verified; authenticating the vehicle-side information to be verified according to pre-acquired vehicle-side information and pre-stored terminal information to obtain a terminal verification result; obtaining a vehicle-side verification result generated by the vehicle-side after authenticating the terminal data packet according to pre-acquired terminal information and pre-stored vehicle-side information; when both the vehicle-side verification result and the terminal verification result are characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle-side.

[0206] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0207] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute a vehicle Bluetooth key connection method applied on a vehicle side. The vehicle Bluetooth key connection method comprises: obtaining a terminal data packet sent by a mobile terminal, the terminal data packet including terminal information to be verified; authenticating the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle side information to obtain a vehicle side verification result; obtaining a terminal verification result generated by the mobile terminal after authenticating the vehicle side data packet according to the pre-acquired vehicle side information and the pre-stored terminal information; when both the vehicle side verification result and the terminal verification result are characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle side and generates a vehicle wake-up signal to wake up the vehicle.

[0208] Or used to execute a vehicle Bluetooth key connection method applied to a mobile terminal, the vehicle Bluetooth key connection method comprising: obtaining a vehicle-side data packet sent by a vehicle-side, the vehicle-side data packet including vehicle-side information to be verified; authenticating the vehicle-side information to be verified according to pre-acquired vehicle-side information and pre-stored terminal information to obtain a terminal verification result; obtaining a vehicle-side verification result generated by the vehicle-side after authenticating the terminal data packet according to pre-acquired terminal information and pre-stored vehicle-side information; when both the vehicle-side verification result and the terminal verification result are characterized as verification passed, the mobile terminal establishes a communication connection with the vehicle-side.

[0209] The device embodiments described above are merely illustrative, wherein 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, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0210] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A vehicle Bluetooth key connection method, characterized in that: The vehicle's Bluetooth key connection method is applied on the vehicle side, including: Acquire a terminal data packet sent by a mobile terminal, wherein the terminal data packet includes terminal information to be verified; Perform identity authentication on the terminal information to be verified according to the pre-acquired terminal information and the pre-stored vehicle-side information to obtain a vehicle-side verification result; The terminal information to be verified includes first information to be verified and second information to be verified; the pre-acquired terminal information is the first terminal information, and the pre-stored vehicle-end information is the first vehicle-end information; the first information to be verified and the first vehicle-end information are both random numbers; the second information to be verified and the first terminal information are both sequences; the identity authentication of the terminal information to be verified based on the pre-acquired terminal information and the pre-stored vehicle-end information includes: comparing the first information to be verified with the first vehicle-side information to see whether they match; Determining whether the second information to be verified is correct according to the first terminal information; When the first information to be verified matches the first vehicle-side information and the second information to be verified is correct, the vehicle-side verification result is characterized as verification passed; Obtaining a terminal verification result generated by the mobile terminal after authenticating the vehicle-side data packet according to the pre-acquired vehicle-side information and the pre-stored terminal information; When both the vehicle-side verification result and the terminal verification result indicate that the verification is passed, the mobile terminal establishes a communication connection with the vehicle-side and generates a vehicle wake-up signal to wake up the vehicle; Acquire a terminal data packet resent by the mobile terminal, wherein the resent terminal data packet includes third information to be verified and fourth information to be verified, wherein the third information to be verified is a random number, and the fourth information to be verified is a sequence; comparing the first vehicle-side information with the third information to be verified to see whether they match; determining whether the fourth information to be verified is repeated according to the first terminal information; When the third information to be verified matches the first vehicle-side information and the fourth information to be verified is not repeated, the terminal data packet sent again is released.

2. The vehicle Bluetooth key connection method according to claim 1, characterized in that: The terminal information to be verified is information encrypted by a predefined encryption algorithm; After obtaining the terminal data packet sent by the mobile terminal, the method further includes: Decrypting the terminal information to be verified according to the pre-stored password information to obtain the decrypted terminal information to be verified; Accordingly, the method further comprises: The vehicle-side data packet is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side data packet is sent to the mobile terminal.

3. The vehicle Bluetooth key connection method according to claim 1, characterized in that: Before acquiring the terminal data packet sent by the mobile terminal, the method further includes: Randomly generate vehicle-side information, encrypt the vehicle-side information using a predefined encryption algorithm, and send the encrypted vehicle-side information to the mobile terminal; Accordingly, the pre-stored terminal information is obtained in the following manner: Acquire terminal information sent by the mobile terminal, where the terminal information is information encrypted using a predefined encryption algorithm; The terminal information is decrypted to obtain decrypted terminal information.

4. The vehicle Bluetooth key connection method according to claim 3, characterized in that: The predefined encryption algorithm is an XOR algorithm.

5. The vehicle Bluetooth key connection method according to claim 4, characterized in that: The vehicle-side data packet includes fifth information to be verified and sixth information to be verified, the fifth information to be verified is a random number, and the sixth information to be verified is a sequence; Accordingly, the method of encrypting the vehicle-side data packet by using a predefined encryption algorithm and sending the encrypted vehicle-side data packet to the mobile terminal includes: An XOR operation is performed on the pre-stored password information and the sixth information to be verified to obtain a first XOR result, the fifth information to be verified and the first XOR result are set in the data header of the vehicle-side data packet, and the set vehicle-side data packet is sent to the mobile terminal.

6. The vehicle Bluetooth key connection method according to claim 4, characterized in that: The vehicle-side information includes first vehicle-side information and second vehicle-side information, the first vehicle-side information is a random number randomly generated by the vehicle-side, and the second vehicle-side information is a sequence randomly generated by the vehicle-side; Accordingly, the randomly generated vehicle-side information, and the vehicle-side information is encrypted using a predefined encryption algorithm, and the encrypted vehicle-side information is sent to the mobile terminal, including: Randomly generating the first vehicle-side information and the second vehicle-side information; Performing an XOR operation on the first vehicle-side information according to the pre-stored password information to obtain a second XOR result; Performing an XOR operation on the first vehicle-side information and the second vehicle-side information to obtain a third XOR result; The second XOR result and the third XOR result are sent to the mobile terminal.

7. A vehicle Bluetooth key connection method, characterized in that: The vehicle Bluetooth key connection method is applied to a mobile terminal, including: Acquire a vehicle-side data packet sent by the vehicle-side, wherein the vehicle-side data packet includes vehicle-side information to be verified; Perform identity authentication on the vehicle-side information to be verified according to the pre-acquired vehicle-side information and the pre-stored terminal information to obtain a terminal verification result; The vehicle-side information to be verified includes fifth information to be verified and sixth information to be verified; accordingly, the pre-acquired vehicle-side information is the second vehicle-side information, and the pre-stored terminal information is the second terminal information; the fifth information to be verified and the second terminal information are both random numbers; the sixth information to be verified and the second vehicle-side information are both sequences; the identity authentication of the vehicle-side information to be verified based on the pre-acquired vehicle-side information and the pre-stored terminal information includes: comparing the fifth information to be verified with the second terminal information to see whether they match; Determining whether the sixth information to be verified is correct according to the second vehicle-side information; When the fifth information to be verified matches the second terminal information and the sixth information to be verified is correct, the terminal verification result is characterized as verification passed; Obtaining a vehicle-side verification result generated after the vehicle-side authenticates the terminal data packet according to the pre-acquired terminal information and the pre-stored vehicle-side information; When both the vehicle-side verification result and the terminal verification result indicate that the verification is passed, the mobile terminal establishes a communication connection with the vehicle-side; Acquire a vehicle-side data packet resent by the vehicle-side, wherein the resent vehicle-side data packet includes seventh information to be verified and eighth information to be verified, wherein the seventh information to be verified is a random number, and the eighth information to be verified is a sequence; comparing the second terminal information with the seventh information to be verified to see whether they match; Determining whether the eighth information to be verified is repeated according to the second vehicle-side information; When the seventh information to be verified matches the first vehicle-side information and the eighth information to be verified is not repeated, the vehicle-side data packet sent again is released.

8. The vehicle Bluetooth key connection method according to claim 7, characterized in that: The method further includes: Randomly generate terminal information to be verified, the terminal information to be verified includes first information to be verified and second information to be verified, the first information to be verified is a random number, and the second information to be verified is a sequence; Perform an XOR operation on the pre-stored password information and the second information to be verified to obtain a fourth XOR result, set the first information to be verified and the fourth XOR result in the data header of the terminal data packet, and send the set terminal data packet to the vehicle end.

9. The vehicle Bluetooth key connection method according to claim 7, characterized in that: The method further includes: Randomly generate terminal information, the terminal information includes first terminal information and second terminal information, the first terminal information is a randomly generated sequence, and the second terminal information is a random number; Performing an XOR operation on the pre-stored password information and the second terminal information to obtain a fifth XOR result; Performing an XOR operation on the first terminal information and the second terminal information to obtain a sixth XOR result; The fifth XOR result and the sixth XOR result are sent to the vehicle end.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the Bluetooth key connection method for a vehicle as claimed in any one of claims 1 to 9 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle Bluetooth key connection method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Vehicle communication method, server, system and storage medium

    CN114697899A

  • Bluetooth connection method and related equipment

    CN115103341A