Vehicle unlocking method and system
By saving the current interactive key in the mobile terminal and the on-board terminal respectively and updating the key after each unlocking is successful, the problem of vehicle unlocking safety hazards in the prior art is solved, and the security of the unlocking process is improved.
Patent Information
- Application Number
- CN202210573973.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-01
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2040-04-01
AI Technical Summary
The method of controlling vehicle unlocking based on mobile terminals in the prior art has a security risk, and the fixed key can be used to illegally unlock the vehicle after it is stolen.
By saving the current interaction key K0 in the mobile terminal and the on-board terminal respectively, and updating the key after each unlocking is successful, ensuring that a different interaction key is used for each unlocking.
Improves the security of the vehicle unlocking process, prevents the key from being stolen and used for illegal unlocking, ensuring that a different key is used for each unlocking.
Smart Images

Figure CN114999029B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology, and in particular to a vehicle unlocking method and system. Background Art
[0002] With the development of the Internet of Vehicles, the technology of using mobile terminals to control vehicles has made certain progress. For example, it is now possible to control the unlocking and starting of vehicles through mobile terminals, thereby reducing people's dependence on physical keys.
[0003] At present, the method of controlling vehicle unlocking based on a mobile terminal is as follows: the mobile terminal and the vehicle-mounted terminal in the vehicle store a fixed key, and the vehicle-mounted terminal decrypts the encrypted unlocking instruction sent by the mobile terminal based on the fixed key, and unlocks the vehicle after the decryption is successful. If the fixed key is sniffed by a thief through the network, the thief can unlock the vehicle based on the sniffed fixed key. It can be seen that in the prior art, the method of controlling vehicle unlocking based on a mobile terminal has certain security risks. Summary of the invention
[0004] In view of the above technical problems, this specification provides a vehicle unlocking method and system, and the technical solution is as follows:
[0005] According to a first aspect of the present specification, a vehicle unlocking method is provided, wherein a mobile terminal and a vehicle-mounted terminal respectively save a current interactive key K0 to obtain K0m and K0c; the unlocking method comprises:
[0006] After the mobile terminal determines the unlocking requirement, it generates the next interaction key K1;
[0007] The mobile terminal sends an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: a result of symmetrically encrypting K1 with K0m;
[0008] The vehicle terminal uses K0c to decrypt the encryption result in the unlock request message;
[0009] If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update the locally saved K0c value;
[0010] After the mobile terminal determines that the vehicle is unlocked successfully, it uses the locally generated K1 to update the value of K0m stored locally.
[0011] According to a second aspect of the present specification, a vehicle unlocking system is provided, the unlocking system comprising a mobile terminal and a vehicle-mounted terminal, the mobile terminal and the vehicle-mounted terminal respectively save a current interactive key K0, and obtain K0m and K0c;
[0012] The mobile terminal is used to generate the next interaction key K1 after determining the unlocking requirement; send an unlocking request message to the vehicle terminal, and the unlocking request message at least carries: the result of symmetrically encrypting K1 with K0m;
[0013] The vehicle-mounted terminal is used to decrypt the encryption result in the unlock request message using the locally stored K0c after receiving the unlock request message; if the decryption is successful, the vehicle is unlocked, and the locally stored K0c value is updated using the decrypted K1;
[0014] The mobile terminal is also used to update the locally stored value of K0m using the locally generated K1 after determining that the vehicle is unlocked successfully.
[0015] According to a third aspect of the present specification, another vehicle unlocking method is provided, wherein the mobile terminal and the vehicle terminal respectively save the current interactive key K0 and its corresponding serial number to obtain K0m and K0c, and different K0 values correspond to different serial numbers; the unlocking method comprises:
[0016] The vehicle terminal determines the serial number corresponding to K0c and broadcasts it in a wireless signal;
[0017] After detecting the wireless signal broadcast by the vehicle-mounted terminal, the mobile terminal obtains the serial number from the wireless signal and determines K0m according to the obtained serial number;
[0018] After the mobile terminal determines the unlocking requirement, it generates and saves the next interaction key K1 and its corresponding serial number;
[0019] The mobile terminal sends an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of symmetrically encrypting K1 and its serial number with K0m;
[0020] After receiving the unlock request message, the vehicle terminal uses K0c to decrypt the encryption result in the unlock request message;
[0021] If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
[0022] According to a fourth aspect of the present specification, another vehicle unlocking system is provided, the unlocking system comprising a mobile terminal and a vehicle-mounted terminal, the mobile terminal and the vehicle-mounted terminal respectively save a current interactive key K0 and a corresponding serial number thereof, and obtain K0m and K0c, and different K0 values correspond to different serial numbers;
[0023] The vehicle-mounted terminal is used to determine the serial number corresponding to K0c and carry the serial number in the wireless signal for broadcasting;
[0024] The mobile terminal is used to obtain a serial number from the wireless signal broadcast by the vehicle-mounted terminal after detecting the wireless signal, and determine K0m according to the obtained serial number;
[0025] After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number;
[0026] Sending an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of symmetrically encrypting K1 and its serial number with K0m;
[0027] The vehicle-mounted terminal is further configured to decrypt the encryption result in the unlock request message using K0c after receiving the unlock request message;
[0028] If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
[0029] The technical solution provided in the implementation mode of this specification is that after determining that the user has an unlocking demand, the mobile terminal can generate the next interaction key, and encrypt the next interaction key with the current interaction key and add it to the unlocking request. After receiving the unlocking request, the vehicle terminal can decrypt the unlocking request based on the current interaction key stored locally. If the decryption is successful, the vehicle is unlocked and the current interaction key is modified to the next interaction key. After the mobile terminal determines that the vehicle is unlocked successfully, the local current interaction key is also updated. This ensures that the mobile terminal and the vehicle terminal can use one interaction key in one unlocking process, and the interaction key used in each unlocking process is different, which improves the security of the vehicle unlocking process.
[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification.
[0031] Furthermore, it is not necessary for any of the embodiments of the present specification to achieve all of the above-mentioned effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in the implementation methods of this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0033] Figure 1 is an interactive schematic diagram of a first vehicle unlocking method in an implementation manner of this specification;
[0034] Figure 2is an interactive schematic diagram of a second vehicle unlocking method in an implementation manner of this specification;
[0035] Figure 3 is an interactive schematic diagram of a third vehicle unlocking method in an implementation manner of this specification;
[0036] Figure 4 It is a schematic diagram of the structure of the first vehicle unlocking device in the implementation mode of this specification;
[0037] Figure 5 is a schematic diagram of the structure of a second vehicle unlocking device in an embodiment of this specification;
[0038] Figure 6 It is a schematic diagram of the structure of a third vehicle unlocking device according to an embodiment of this specification;
[0039] Figure 7 is a schematic structural diagram of a fourth vehicle unlocking device according to an embodiment of this specification;
[0040] Figure 8 It is a structural schematic diagram of a device used to configure the device of the implementation mode of this specification. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this specification, the technical solutions in the embodiments of this specification will be described in detail below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field should fall within the scope of protection.
[0042] The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0043] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0044] With the development of the Internet of Vehicles, the technology of using mobile terminals to control vehicles has made certain progress. For example, it is now possible to control the unlocking and starting of vehicles through mobile terminals, thereby reducing people's dependence on physical keys.
[0045] At present, the method of controlling vehicle unlocking based on a mobile terminal is as follows: the mobile terminal and the vehicle-mounted terminal in the vehicle store fixed keys, the mobile terminal and the vehicle-mounted terminal are connected based on wireless methods such as Bluetooth, and the vehicle-mounted terminal uses the fixed key to decrypt the encrypted unlocking instruction sent by the mobile terminal, and unlocks the vehicle after the decryption is successful. For example, the mobile terminal and the vehicle-mounted terminal both store a fixed key P1, the mobile terminal uses P1 to encrypt the unlocking request, and then sends it to the vehicle-mounted terminal, the vehicle-mounted terminal uses the locally stored P1 to decrypt, and if the unlocking is successful, the vehicle is unlocked.
[0046] If the fixed key P1 is sniffed by a thief through the network, the thief can unlock the vehicle based on the sniffed fixed key. It can be seen that the current unlocking method based on mobile terminal control of the vehicle has certain security risks.
[0047] In response to the above problems, this manual proposes:
[0048] The mobile terminal and the vehicle terminal initialize the current interactive key in advance and save it locally on both sides. The current interactive key is updated after each successful unlocking, that is, one key is used for one unlocking, and the key used for each unlocking is different, thereby improving the security of vehicle unlocking.
[0049] The following are some specific concepts involved in this specification:
[0050] In the implementation manner of this specification, the vehicle-mounted terminal refers to a terminal device installed on a vehicle, which can control the vehicle to unlock and can receive and send messages.
[0051] The vehicle in the implementation manner of this specification can be any type of motor vehicle or non-motor vehicle equipped with a vehicle-mounted terminal, such as a fuel vehicle, a new energy vehicle, a motorcycle, an electric bicycle, a bicycle, etc., and this specification does not limit this.
[0052] K0 in this specification refers to the currently used interactive key recorded locally by the mobile terminal and the vehicle terminal. In order to distinguish the current interactive keys recorded locally by the mobile terminal and the vehicle terminal, K0m is used to represent the current interactive key recorded locally by the mobile terminal (m represents mobile), and K0c is used to represent the current interactive key recorded locally by the vehicle terminal (c represents car). In addition, since the specification mainly involves the currently used interactive key K0 and the interactive key to be used next time, K1 is introduced to represent the interactive key to be used for the next unlocking.
[0053] It should be noted that K1, K0m and K0c in this manual are not specific and fixed values. The value of K1 is automatically updated each time a new round of keys is generated, and the values of K0m and K0c are updated after each successful unlocking, that is, after a successful unlocking, the values of K0m and K0c are updated to the value of the next interaction key K1.
[0054] Based on the above description, this specification provides a vehicle unlocking solution as follows: when a user uses a mobile terminal to control a vehicle for the first time, the mobile terminal can be bound to an on-board terminal in the vehicle. First, the mobile terminal is connected to the vehicle terminal based on Bluetooth or other wireless methods. After the connection is established, the mobile terminal and the on-board terminal initialize the current interactive key K0, and the value of K0 is saved locally to obtain K0m and K0c;
[0055] The specific technical solutions provided by the embodiments of this specification are as follows:
[0056] S101: After the mobile terminal determines the unlocking requirement, it generates the next interaction key K1;
[0057] When the user needs to unlock, he can open the corresponding application in the mobile terminal and perform the unlocking operation through the corresponding operation interface in the application.
[0058] The mobile terminal determines that there is a need to unlock after detecting the corresponding operation of the user.
[0059] In addition, a contactless unlocking mechanism may also be used, that is, when it is detected that the user has stayed within a preset distance around the vehicle for a preset period of time, it is determined that there is a need to unlock.
[0060] This specification does not limit how to determine whether there is a need to unlock.
[0061] After determining that there is a need to unlock, the mobile terminal can generate an interactive key K1 based on a preset algorithm, wherein K1 must be different from the value of K0m, that is, the value of the next interactive key K1 generated by the mobile terminal according to the preset algorithm must be different from the value of the currently used interactive key K0m stored locally. For example, the value of the current interactive key K0m is AAA, and the value of the next interactive key K1 is BBB, wherein BBB is not equal to AAA.
[0062] S102, the mobile terminal generates an unlock request message, and sends the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: a result of encrypting K1 with K0m;
[0063] After generating the next interaction key K1, the mobile terminal encrypts the next interaction key K1 using the current interaction key K0m, and adds the encrypted result to the unlock request and sends it to the vehicle terminal, wherein the unlock request also includes the unlock instruction encrypted based on K0m.
[0064] S103, after receiving the unlock request message, the vehicle terminal uses the locally stored K0c to decrypt the request message;
[0065] After receiving the above unlocking request, the vehicle terminal can use the locally stored K0c to decrypt the request message; combined with the example in S101 above, for example, the value of K0c stored in the vehicle terminal is the same as the value of K0m stored in the mobile terminal, both of which are AAA, then the vehicle terminal can use the locally stored K0c to decrypt the request message. If the decryption is successful, the value of K1, i.e. BBB, can be obtained.
[0066] S104, if the decryption is successful, the vehicle is unlocked and the locally stored value of K0c is updated using the decrypted result;
[0067] If the vehicle terminal successfully decrypts, it can also determine that the identity of the mobile terminal has been verified, and then send an unlock command to the vehicle to unlock the vehicle. After the vehicle is successfully unlocked, the vehicle terminal updates the value of the current interactive key K0c stored locally to the value of K1, that is, updates the value of K0c from AAA to BBB.
[0068] S105, after the mobile terminal determines that the vehicle is unlocked successfully, the locally generated K1 is used to update the locally stored value of K0m.
[0069] The mobile terminal can determine whether the vehicle is unlocked successfully by receiving a message returned by the vehicle terminal. That is, the mobile terminal can determine that the unlocking is successful after receiving an unlocking success message returned by the vehicle terminal; and determine that the unlocking is unsuccessful after receiving an unlocking failure message returned by the vehicle terminal.
[0070] Of course, the unlocking success may also be determined when no unlocking failure message is received within the preset time, and this embodiment is not limited to this.
[0071] After the mobile terminal determines that the vehicle is unlocked successfully, it also needs to update the locally saved value of K0m to the value of K1, that is, update the value of K0m from AAA to BBB to keep it synchronized with the current key of the vehicle terminal for the next unlocking process.
[0072] It can be seen that the above vehicle unlocking solution can ensure that the mobile terminal and the vehicle terminal can use one interactive key in one unlocking process, and the interactive key used in each unlocking process is different, thereby improving the security of the vehicle unlocking process.
[0073] Since the mobile terminal and the vehicle-mounted terminal use wireless connection, sometimes the wireless connection may be disconnected or the wireless channel may be occupied, resulting in the two parties being unable to receive messages sent by the other party.
[0074] like Figure 2 When the mobile terminal determines that the vehicle is unlocked successfully, the method is as follows: when the unlocking is successful after receiving the unlocking success message returned by the vehicle terminal, the mobile terminal cannot know whether the vehicle is unlocked successfully when it has not received the message returned by the vehicle terminal, and cannot even know whether the other party has received the unlocking request message. At this time, the local K0m cannot be updated.
[0075] Therefore, if the mobile terminal does not receive the unlock success message within the preset time period, the same unlock request needs to be sent to the vehicle-mounted terminal again.
[0076] In combination with the above example, if the mobile terminal does not receive the unlock success message within the preset time, it needs to send an unlock request containing the result of encrypting BBB with AAA to the vehicle terminal again. This ensures that the unlock request is made again without the user's awareness and without the need for user operation to complete the unlocking of the vehicle.
[0077] Considering that the mobile terminal and the vehicle terminal will use a new interactive key in each unlocking process, in order to maintain data information, the mobile terminal can save the history record of K0m value locally, and the history record records the value of K0m from the initial value to the current value, and the use time of each value can also be recorded in the history record. Similarly, the vehicle terminal can also save the history record of K0c value locally.
[0078] For example, the historical records of K0m values can be shown in Table 1:
[0079] K0m value time AAA 2020.1.1 / 08:00-2020.1.1 / 18:00 BBB 2020.1.1 / 18:00-2020.1.2 / 08:00 … … ZZZ 2020.3.7 / 08:00-Current time
[0080] Table 1
[0081] In Table 1, it can be seen that by recording the historical records of the values of K0m saved locally by the mobile terminal, it is possible to determine which interactive keys have been used for unlocking, and the order in which these interactive keys are used can also be determined by the recorded time. For example, by viewing the historical records, it can be determined that the value of K0m is AAA from 2020.1.1 / 08:00 to 2020.1.1 / 18:00, and the value of K0m is BBB from 2020.3.7 / 08:00 to the current time. Similarly, the vehicle-mounted terminal can also save the same table entry locally to record the historical records of K0c.
[0082] When network fluctuations or device failures occur, the mobile terminal and the vehicle terminal may be out of sync. For example, in combination with the example in S104 above, after the vehicle is successfully unlocked, the vehicle terminal updates the value of the current interactive key K0c stored locally to the value of K1, that is, the value of K0c is updated from AAA to BBB, and the method used by the mobile terminal to determine the success of unlocking is to determine the success of unlocking after receiving the unlocking success message returned by the vehicle terminal. If the mobile terminal does not receive the unlocking success message sent by the vehicle terminal due to network reasons, it does not update the local value of K0m from AAA to BBB. At this time, the value of K0c recorded by the vehicle terminal is BBB, and the value of K0m in the vehicle terminal is AAA, and the current interactive keys recorded by both parties are not the same. In this case, if the mobile terminal sends an unlocking request to the vehicle terminal again, AAA is still used to encrypt BBB in the unlocking request, and after the vehicle terminal receives the above unlocking request, since the locally stored K0c is BBB, it cannot be decrypted. At this time, a message of unlocking failure will be sent to the mobile terminal, and the mobile terminal determines that the unlocking failure has occurred after receiving the unlocking failure message.
[0083] Taking into account the situation that the current interaction keys stored in the mobile terminal and the vehicle-mounted terminal are not synchronized due to various reasons, the mobile terminal can send the historical record of the locally stored K0m value to the vehicle-mounted terminal when it is determined that the unlocking has failed; the vehicle-mounted terminal determines to unlock the vehicle based on the historical record of the received K0m value and the historical record of the locally stored K0c value.
[0084] In one embodiment, the vehicle terminal may obtain all historical records from the historical records of K0m values according to a preset unlocking strategy, and match all the acquired historical records with the historical records of K0c values stored locally. If it is determined in the matching result that only the values currently recorded by both parties are different, and all other values are the same, the vehicle is unlocked. Of course, it may also be determined that when the number of successfully matched entries exceeds a preset ratio, such as 90%, it can be determined that the mobile terminal has passed the identity authentication and the vehicle is unlocked. In addition, considering that there are too many historical record entries recorded in the historical records and the matching time is long, the unlocking strategy can be set to obtain and match nearly 10 or 20 historical records. The specific entries obtained can be set according to actual needs, and this specification does not limit this. Of course, if the latter is adopted, the method of only obtaining and matching part of the historical records is used as the unlocking strategy, then when the mobile terminal determines that the unlocking fails, it can only send the historical records of the corresponding entries in the historical records of K0m values stored locally to the vehicle terminal, instead of sending all the historical records to the vehicle terminal, so as to save transmission time.
[0085] In addition, when the vehicle terminal matches the historical record of the K0m value with the historical record of the K0c value stored locally and determines to unlock the vehicle after the match is successful, the vehicle terminal can also send an interactive key synchronization message to the mobile terminal after unlocking the vehicle, and the mobile terminal synchronizes the interactive key with the vehicle terminal after receiving the interactive key synchronization message. The synchronization key can be an initialization key, that is, deleting the data in the historical record of the interactive key stored locally, or it can be synchronized based on the original record.
[0086] This allows the vehicle-mounted terminal and the mobile terminal to synchronize the interactive keys on their own without the user having to perform any additional operations, ensuring that the next unlocking can be performed smoothly, thereby improving the user experience.
[0087] To explain this manual more clearly Figure 1 A vehicle unlocking solution is shown, and the following describes the execution method from a single side perspective:
[0088] For mobile terminals, the tasks that need to be performed are mainly as follows:
[0089] After confirming the unlocking requirement, generate the next interaction key K1;
[0090] Generate an unlock request message, and send the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of encrypting K1 with K0m;
[0091] After confirming that the vehicle is unlocked successfully, the locally generated K1 is used to update the locally saved value of K0m.
[0092] For the vehicle terminal, the main tasks that need to be performed are as follows:
[0093] After receiving the unlock request message sent by the mobile terminal, the request message is decrypted using the locally stored K0c; wherein the request message carries at least: the result of encrypting K1 with K0m;
[0094] If the decryption is successful, the vehicle is unlocked and the locally stored K0c value is updated using the decrypted result.
[0095] like Figure 3 As shown, in a specific implementation manner provided in this specification, in order to ensure that the mobile terminal and the vehicle-mounted terminal will not be out of sync with the current interaction key due to network reasons, a serial number mechanism is introduced in the interaction process.
[0096] As shown in Table 2, each interactive key corresponds to a different serial number. Of course, the serial numbers are represented by Q1, Q1...Qn in this specification only to explain the present solution more clearly. In actual applications, the serial numbers may be represented in a more complex form.
[0097] K0 Serial Number AAA Q1 BBB Q2 … … ZZZ Q
[0098] Table 2
[0099] The mobile terminal and the vehicle terminal initialize the current interactive key K0 and its corresponding serial number in advance, and save K0 and its corresponding serial number locally respectively. Different K0 values correspond to different serial numbers. Combined with the contents in Table 2 above, for example, K0 is initialized, and the K0 and its serial number saved locally by the mobile terminal and the vehicle terminal are both Q1-AAA, where AAA is the initialized K0 value, and Q1 is the serial number corresponding to AAA. Specific unlocking methods include:
[0100] S301, the vehicle terminal determines the serial number corresponding to K0c, and carries the serial number in the wireless signal for broadcasting;
[0101] When the vehicle-mounted terminal determines the current interaction key K0c value saved locally, it can determine the serial number corresponding to the current interaction key K0c value, as shown in Table 3. For example, the vehicle-mounted terminal determines that the serial number corresponding to the current interaction key K0c value is AAA and is Q1. The vehicle-mounted terminal then adds the serial number Q1 to the wireless signal and broadcasts it.
[0102] K0c Serial Number AAA Q1
[0103] Table 3
[0104] S302, after detecting the wireless signal broadcast by the vehicle-mounted terminal, the mobile terminal obtains a serial number from the wireless signal and determines K0m according to the obtained serial number;
[0105] When the mobile terminal enters the broadcast range of the vehicle-mounted terminal, it can establish a connection with the vehicle-mounted terminal. After the connection is successful, the serial number Q1 can be obtained, and the value of the current interaction key K0m can be determined from the multiple values of the serial number Q1 saved locally. Combined with the example in Table 2 above, the mobile terminal can determine the current interaction key to be used this time from the multiple interaction keys saved locally, that is, determine that the value of the current interaction key K0m is AAA according to the serial number Q1.
[0106] S303 After the mobile terminal determines the unlocking requirement, it generates and saves the next interaction key K1 and its corresponding serial number;
[0107] After the mobile terminal determines the unlocking requirement, how to determine the unlocking requirement can refer to the description in S101, which will not be repeated here. Different from S101, the mobile terminal generates a serial number corresponding to K1 while generating the next interactive key K1. Among them, a preset algorithm will be used to make different serial numbers correspond to different K0 values. For example, the value of the generated K1 is BBB, and the serial number corresponding to BBB is a serial number Q2 that is different from the serial number Q1. At the same time, the generated K1 and its serial number will be saved locally.
[0108] S304, the mobile terminal generates an unlock request message, and sends the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of encrypting K1 and its serial number with K0m;
[0109] Different from S102, the mobile terminal needs to use K0m to encrypt K1 and its serial number and add them to the unlock request message. Combined with the example in the previous step, AAA is used to encrypt BBB and Q2 and add them to the unlock request.
[0110] S305, after receiving the unlock request message, the vehicle terminal uses K0c to decrypt the request message;
[0111] After receiving the unlock request message, the vehicle terminal can use the locally stored value of K0c, namely AAA, to decrypt the unlock request message.
[0112] S306: If the decryption is successful, the vehicle is unlocked and the K0c and its serial number are updated using the decrypted result.
[0113] If the decryption is successful, the vehicle terminal unlocks the vehicle. Unlike S104, the serial number of K0c also needs to be updated. Combined with the example in the previous step, if the decryption is successful, the value AAA of K0c and its serial number Q1 are updated to BBB and Q2. The updated K0c and its serial number are shown in Table 4. After the update is completed, the vehicle terminal can add Q2 to the wireless signal for broadcasting.
[0114] K0c Serial Number BBB Q2
[0115] Table 4
[0116] use Figure 3 In the vehicle unlocking scheme shown, the mobile terminal does not need to update the value of K0m in real time. After the mobile terminal receives the serial number broadcast by the vehicle terminal, it determines the current interactive key of the vehicle terminal. Therefore, the reference serial number mechanism ensures that the mobile terminal and the vehicle terminal can fully synchronize the current interactive key. This ensures that the mobile terminal and the vehicle terminal can use one interactive key in one unlocking process, and the interactive key used in each unlocking process is different, thereby improving the security of the vehicle unlocking process.
[0117] In one embodiment, after the vehicle-mounted terminal unlocks the vehicle, it sends an unlock success message to the mobile terminal. The mobile terminal can determine that the unlocking is successful after receiving the unlock success message.
[0118] If the mobile terminal does not receive the unlock success message within the preset time, in order to determine whether the vehicle terminal has completed the unlock, it can be determined whether the serial number in the wireless signal broadcast by the vehicle terminal is the serial number of K1; combined with the example in S306 above, if the mobile terminal does not receive the unlock success message within the preset time, it can be determined whether the serial number in the wireless signal broadcast by the vehicle terminal has been changed to Q2. If so, it means that the vehicle terminal has been decrypted and unlocked successfully and has been updated. The failure to receive the unlock success message may be due to network reasons. The unlock success message was not sent successfully. Therefore, after determining that the serial number in the wireless signal broadcast by the vehicle terminal has been changed to Q2, it is possible to directly determine that the unlock success without making another unlock request.
[0119] If it is determined that the serial number in the wireless signal broadcast by the vehicle terminal has not been updated to Q2 or Q1, it can be determined that the vehicle terminal has not been unlocked successfully. At the same time, no message of unlocking failure has been received. It may be caused by the failure to send the unlocking request. Therefore, the unlocking request containing BBB and Q2 encrypted with AAA can be sent again to complete the unlocking step.
[0120] It can be seen that the solution of this implementation mode can be used to determine whether it is necessary to send an unlock request again to complete the unlocking process based on the serial number mechanism without user participation.
[0121] Similarly, in the case where the current interactive keys stored in the mobile terminal and the vehicle terminal are out of sync due to equipment failure, for example, the vehicle terminal has a storage error when storing the corresponding relationship between the key and the serial number, causing the current interactive keys of the mobile terminal and the vehicle terminal to be out of sync. Figure 1 The synchronization method in the unlocking solution shown automatically synchronizes the key and serial number in the vehicle terminal and the mobile terminal.
[0122] To explain this manual more clearly Figure 3 The vehicle unlocking scheme shown is described below from the perspective of one side:
[0123] For mobile terminals, the tasks that need to be performed are mainly as follows:
[0124] After detecting the wireless signal broadcast by the vehicle-mounted terminal, obtaining a serial number from the wireless signal, and determining K0m according to the obtained serial number;
[0125] After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number;
[0126] An unlock request message is generated and sent to the vehicle-mounted terminal, wherein the unlock request message carries at least: a result of encrypting K1 and its serial number with K0m.
[0127] For the vehicle terminal, the main tasks that need to be performed are as follows:
[0128] Determine the serial number corresponding to K0c and broadcast it in a wireless signal;
[0129] After receiving the unlock request message sent by the mobile terminal, the request message is decrypted using K0c; wherein the unlock request message carries at least: the result of encrypting K1 and its serial number with K0m;
[0130] If the decryption is successful, the vehicle is unlocked and the decrypted result is used to update the K0c and its serial number.
[0131] With the aforementioned Figure 1 Corresponding to a vehicle unlocking method shown, this specification also provides a vehicle unlocking system, the unlocking system includes a mobile terminal and a vehicle terminal, the mobile terminal and the vehicle terminal initialize the current interactive key K0 in advance, and respectively save the value of K0 locally to obtain K0m and K0c;
[0132] The mobile terminal is used to generate the next interaction key K1 after determining the unlocking requirement;
[0133] Generate an unlock request message, and send the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of encrypting K1 with K0m;
[0134] The vehicle-mounted terminal is used to decrypt the unlock request message using the locally stored K0c after receiving the unlock request message;
[0135] If the decryption is successful, the vehicle is unlocked and the locally stored K0c value is updated using the decrypted result;
[0136] The mobile terminal is also used to update the locally stored value of K0m using the locally generated K1 after determining that the vehicle is unlocked successfully.
[0137] like Figure 4 As shown above, Figure 1 Corresponding to the vehicle unlocking method shown, this specification also provides a vehicle unlocking device, which is applied to a mobile terminal, and the mobile terminal and the vehicle terminal initialize the current interactive key K0 in advance, and respectively save the value of K0 locally to obtain K0m and K0c; the unlocking device includes:
[0138] The key generation module 410 is used to generate the next interaction key K1 after determining the unlocking requirement;
[0139] The sending module 420 is used to generate an unlock request message and send the unlock request message to the vehicle terminal, wherein the unlock request message at least carries: the result of encrypting K1 with K0m;
[0140] The updating module 430 is used to update the value of K0m stored locally using the locally generated K1 after determining that the vehicle is unlocked successfully.
[0141] like Figure 5 As shown above, Figure 1 Corresponding to the vehicle unlocking method shown, this specification also provides another vehicle unlocking device, which is applied to a vehicle-mounted terminal, and the mobile terminal and the vehicle-mounted terminal initialize the current interactive key K0 in advance, and respectively save the value of K0 locally to obtain K0m and K0c; the unlocking device includes:
[0142] The receiving module 510 is used to decrypt the unlock request message using the locally stored K0c after receiving the unlock request message sent by the mobile terminal; wherein the request message at least carries: the result of encrypting K1 with K0m;
[0143] The unlocking module 520 is used to unlock the vehicle when the decryption is successful, and to update the locally stored value of K0c using the decrypted result.
[0144] With the aforementioned Figure 3 Corresponding to a vehicle unlocking method shown, this specification also provides another vehicle unlocking system, the unlocking system includes a mobile terminal and a vehicle terminal, the mobile terminal and the vehicle terminal pre-initialize the current interactive key K0 and its corresponding serial number, and respectively save K0 and its corresponding serial number locally, and different K0 values correspond to different serial numbers;
[0145] The vehicle-mounted terminal is used to determine the serial number corresponding to K0c and carry the serial number in the wireless signal for broadcasting;
[0146] The mobile terminal is used to obtain a serial number from the wireless signal broadcast by the vehicle-mounted terminal after detecting the wireless signal, and determine K0m according to the obtained serial number;
[0147] After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number;
[0148] Generate an unlock request message, and send the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of encrypting K1 and its serial number with K0m;
[0149] The vehicle-mounted terminal is further configured to decrypt the unlock request message using K0c after receiving the unlock request message;
[0150] If the decryption is successful, the vehicle is unlocked and the decrypted result is used to update the K0c and its serial number.
[0151] like Figure 6 As shown above, Figure 3 Corresponding to the vehicle unlocking method shown, this specification also provides another vehicle unlocking device, which is applied to a mobile terminal, and the mobile terminal and the vehicle terminal initialize the current interactive key K0 and its corresponding serial number in advance, and respectively save K0 and its corresponding serial number locally, and different K0 values correspond to different serial numbers; the unlocking device includes:
[0152] The detection module 610 is used to obtain a serial number from the wireless signal broadcast by the vehicle-mounted terminal after detecting the wireless signal, and determine K0m according to the obtained serial number;
[0153] The key generation module 620 is used to generate and save the next interaction key K1 and its corresponding serial number after determining the unlocking requirement;
[0154] The sending module 630 is used to generate an unlock request message and send the unlock request message to the vehicle-mounted terminal. The unlock request message at least carries: the result of encrypting K1 and its serial number with K0m.
[0155] like Figure 7 As shown above, Figure 3 Corresponding to the vehicle unlocking method shown, this specification also provides another vehicle unlocking device, which is applied to a vehicle terminal. The mobile terminal and the vehicle terminal initialize the current interactive key K0 and its corresponding serial number in advance, and respectively save K0 and its corresponding serial number locally. Different K0 values correspond to different serial numbers. The unlocking device includes:
[0156] A broadcast module 710 is used to determine a serial number corresponding to K0c and broadcast the serial number in a wireless signal;
[0157] The receiving module 720 is used to decrypt the unlock request message using K0c after receiving the unlock request message sent by the mobile terminal; wherein the unlock request message at least carries: the result of encrypting K1 and its serial number using K0m;
[0158] The unlocking module 730 is used to unlock the vehicle if the decryption is successful, and to update the K0c and its serial number using the decrypted result.
[0159] The implementation process of the functions and effects of each component in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0160] As for the device implementation, since it basically corresponds to the method implementation, the relevant parts refer to the partial description of the method implementation. The device implementation described above is only illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.
[0161] The embodiments of this specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method when executing the program. The method at least includes the method executed by the aforementioned mobile terminal and vehicle-mounted terminal.
[0162] A method performed by a mobile terminal includes:
[0163] After confirming the unlocking requirement, generate the next interaction key K1;
[0164] Generate an unlock request message, and send the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of encrypting K1 with K0m;
[0165] After confirming that the vehicle is unlocked successfully, the locally generated K1 is used to update the locally saved value of K0m.
[0166] Another method performed by a mobile terminal includes:
[0167] After detecting the wireless signal broadcast by the vehicle-mounted terminal, obtaining a serial number from the wireless signal, and determining K0m according to the obtained serial number;
[0168] After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number;
[0169] An unlock request message is generated and sent to the vehicle-mounted terminal, wherein the unlock request message carries at least: a result of encrypting K1 and its serial number with K0m.
[0170] A method performed by a vehicle-mounted terminal includes:
[0171] After receiving the unlock request message sent by the mobile terminal, the request message is decrypted using the locally stored K0c; wherein the request message carries at least: the result of encrypting K1 with K0m;
[0172] If the decryption is successful, the vehicle is unlocked and the locally stored K0c value is updated using the decrypted result.
[0173] Another method performed by the vehicle-mounted terminal includes:
[0174] Determine the serial number corresponding to K0c and broadcast it in a wireless signal;
[0175] After receiving the unlock request message sent by the mobile terminal, the request message is decrypted using K0c; wherein the unlock request message carries at least: the result of encrypting K1 and its serial number with K0m;
[0176] If the decryption is successful, the vehicle is unlocked and the decrypted result is used to update the K0c and its serial number.
[0177] Figure 8A more specific hardware structure diagram of a computing device provided in an embodiment of this specification is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.
[0178] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the implementation methods of this specification.
[0179] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0180] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0181] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0182] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0183] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the implementation scheme of this specification, and does not necessarily include all the components shown in the figure.
[0184] The embodiment of the present specification also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the aforementioned method is implemented. The method at least includes: the method executed by the aforementioned mobile terminal and vehicle-mounted terminal.
[0185] A method performed by a mobile terminal includes:
[0186] After confirming the unlocking requirement, generate the next interaction key K1;
[0187] Generate an unlock request message, and send the unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of encrypting K1 with K0m;
[0188] After confirming that the vehicle is unlocked successfully, the locally generated K1 is used to update the locally saved value of K0m.
[0189] Another method performed by a mobile terminal includes:
[0190] After detecting the wireless signal broadcast by the vehicle-mounted terminal, obtaining a serial number from the wireless signal, and determining K0m according to the obtained serial number;
[0191] After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number;
[0192] An unlock request message is generated and sent to the vehicle-mounted terminal, wherein the unlock request message carries at least: a result of encrypting K1 and its serial number with K0m.
[0193] A method performed by a vehicle-mounted terminal includes:
[0194] After receiving the unlock request message sent by the mobile terminal, the request message is decrypted using the locally stored K0c; wherein the request message carries at least: the result of encrypting K1 with K0m;
[0195] If the decryption is successful, the vehicle is unlocked and the locally stored K0c value is updated using the decrypted result.
[0196] Another method performed by the vehicle-mounted terminal includes:
[0197] Determine the serial number corresponding to K0c and broadcast it in a wireless signal;
[0198] After receiving the unlock request message sent by the mobile terminal, the request message is decrypted using K0c; wherein the unlock request message carries at least: the result of encrypting K1 and its serial number with K0m;
[0199] If the decryption is successful, the vehicle is unlocked and the decrypted result is used to update the K0c and its serial number.
[0200] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0201] It can be known from the above description of the implementation mode that the technicians in this field can clearly understand that the implementation mode of this specification can be implemented by means of software plus the necessary general hardware platform. Based on such an understanding, the technical solution of the implementation mode of this specification can be 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 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 described in each implementation mode or some parts of the implementation mode of this specification.
[0202] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0203] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device implementation, since it is basically similar to the method implementation, the description is relatively simple, and the relevant parts can be referred to the partial description of the method implementation. The device implementation described above is merely schematic, wherein the modules described as separate components may or may not be physically separated, and the functions of each module can be implemented in the same one or more software and / or hardware when implementing the implementation scheme of this specification. It is also possible to select some or all of the modules according to actual needs to achieve the purpose of the present implementation scheme. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0204] The above is only a specific implementation of the implementation method of this specification. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the implementation method of this specification. These improvements and modifications should also be regarded as the protection scope of the implementation method of this specification.
Claims
1. A vehicle unlocking method, wherein a mobile terminal and a vehicle terminal respectively save a current interactive key K0 to obtain K0m and K0c; The unlocking method comprises: After the mobile terminal determines the unlocking requirement, it generates the next interaction key K1; The mobile terminal sends an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: a result of symmetrically encrypting K1 with K0m; The vehicle terminal uses K0c to decrypt the encryption result in the unlock request message; If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update the locally saved K0c value; After the mobile terminal determines that the vehicle is unlocked successfully, it uses the locally generated K1 to update the value of K0m stored locally.
2. The method according to claim 1, wherein the mobile terminal and the vehicle-mounted terminal respectively store the current interactive key K0, comprising: The mobile terminal and the vehicle-mounted terminal initialize the current interactive key K0 in advance, and respectively save the value of K0 locally.
3. The method according to claim 1, further comprising: The mobile terminal generates an unlock request message; The unlock request message also includes an unlock instruction encrypted based on K0m.
4. The method according to claim 1, wherein determining that the vehicle is unlocked successfully comprises: After receiving the unlocking success message returned by the vehicle terminal, confirming that the unlocking is successful; The method further includes: when the mobile terminal does not receive the unlock success message within a preset time period, sending the unlock request again.
5. The method according to claim 1, further comprising: The mobile terminal locally stores the historical record of the K0m value; The vehicle-mounted terminal locally stores the historical record of the K0c value.
6. The method according to claim 5, further comprising: In the case of determining that the unlocking fails, the mobile terminal sends the historical record of the K0m value stored locally to the vehicle-mounted terminal; The vehicle-mounted terminal determines whether to unlock the vehicle based on the historical record of the K0m value and the historical record of the K0c value stored locally.
7. The method according to claim 6, wherein the vehicle terminal determines whether to unlock the vehicle according to the historical record of the K0m value and the historical record of the K0c value stored locally, comprising: The vehicle terminal obtains all or part of the historical records from the historical records of the K0m value according to a preset unlocking strategy; The acquired historical records are matched with the historical records of the K0c values stored locally, and if the match is successful, it is determined that the vehicle is unlocked.
8. The method according to claim 6, after unlocking the vehicle, further comprising: The vehicle-mounted terminal sends an interactive key synchronization message to the mobile terminal; After receiving the interactive key synchronization message, the mobile terminal synchronizes the interactive key with the vehicle-mounted terminal.
9. The method according to claim 8, wherein the synchronization interaction key comprises: Synchronously initialize the key; The method further includes: the mobile terminal deleting the original historical record of the interaction key stored locally; Alternatively, the mobile terminal synchronizes the interaction key based on the original historical records.
10. The method according to claim 5, further comprising: In the case of determining that the unlocking fails, the mobile terminal sends a partial history record of the K0m value stored locally to the vehicle-mounted terminal; The vehicle terminal determines whether to unlock the vehicle according to a partial historical record of the K0m value and a historical record of the K0c value stored locally; The partial historical records include: a preset number of historical records generated recently.
11. A vehicle unlocking method, applied to a mobile terminal, wherein the mobile terminal and the vehicle terminal respectively save the current interactive key K0 to obtain K0m and K0c; The unlocking method comprises: After confirming the unlocking requirement, generate the next interaction key K1; Sending an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: a result of symmetrically encrypting K1 with K0m; After confirming that the vehicle is unlocked successfully, the locally generated K1 is used to update the locally saved value of K0m.
12. A vehicle unlocking method, applied to a vehicle terminal, wherein a mobile terminal and the vehicle terminal respectively save a current interactive key K0 to obtain K0m and K0c; the unlocking method comprises: After receiving the unlock request message sent by the mobile terminal, use K0c to decrypt the encryption result in the unlock request message; wherein the unlock request message carries at least: the result of symmetrically encrypting the next interaction key K1 with K0m; If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update the locally stored value of K0c.
13. A vehicle unlocking method, wherein a mobile terminal and a vehicle terminal respectively save a current interactive key K0 and a corresponding serial number to obtain K0m and K0c, and different K0 values correspond to different serial numbers; the unlocking method comprises: The vehicle terminal determines the serial number corresponding to K0c and broadcasts it in a wireless signal; After detecting the wireless signal broadcast by the vehicle-mounted terminal, the mobile terminal obtains the serial number from the wireless signal and determines K0m according to the obtained serial number; After the mobile terminal determines the unlocking requirement, it generates and saves the next interaction key K1 and its corresponding serial number; The mobile terminal sends an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of symmetrically encrypting K1 and its serial number with K0m; After receiving the unlock request message, the vehicle terminal uses K0c to decrypt the encryption result in the unlock request message; If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
14. The method according to claim 13, further comprising: After the vehicle is unlocked, the vehicle-mounted terminal sends an unlock success message to the mobile terminal.
15. The method according to claim 14, further comprising: If the mobile terminal does not receive the unlock success message within a preset time period, determining whether the serial number in the wireless signal broadcast by the vehicle-mounted terminal is the serial number of K1; If so, it is determined that the unlocking is successful; If not, the unlock request is sent again.
16. A vehicle unlocking method, applied to a mobile terminal, wherein the mobile terminal and the vehicle terminal respectively save the current interactive key K0 and its corresponding serial number to obtain K0m and K0c, and different K0 values correspond to different serial numbers; the unlocking method comprises: After detecting the wireless signal broadcast by the vehicle-mounted terminal, obtaining a serial number from the wireless signal, and determining K0m according to the obtained serial number; After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number; An unlock request message is sent to the vehicle-mounted terminal, wherein the unlock request message carries at least: a result of symmetrically encrypting K1 and its serial number with K0m.
17. A vehicle unlocking method, applied to a vehicle terminal, wherein a mobile terminal and the vehicle terminal respectively save a current interactive key K0 and a corresponding serial number to obtain K0m and K0c, and different K0 values correspond to different serial numbers; the unlocking method comprises: Determine the serial number corresponding to K0c and broadcast it in a wireless signal; After receiving the unlock request message sent by the mobile terminal, use K0c to decrypt the encryption result in the unlock request message; wherein the unlock request message carries at least: the result of symmetrically encrypting the next interaction key K1 and its serial number with K0m; If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
18. A vehicle unlocking system, comprising a mobile terminal and a vehicle-mounted terminal, wherein the mobile terminal and the vehicle-mounted terminal respectively store a current interactive key K0 to obtain K0m and K0c; The mobile terminal is used to generate the next interaction key K1 after determining the unlocking requirement; send an unlocking request message to the vehicle terminal, and the unlocking request message at least carries: the result of symmetrically encrypting K1 with K0m; The vehicle-mounted terminal is used to decrypt the encryption result in the unlocking request message using the locally stored K0c after receiving the unlocking request message; If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update the locally saved K0c value; The mobile terminal is also used to update the locally stored value of K0m using the locally generated K1 after determining that the vehicle is unlocked successfully.
19. A vehicle unlocking device, the device is applied to a mobile terminal, the mobile terminal and the vehicle terminal respectively save the current interactive key K0, and obtain K0m and K0c; The unlocking device comprises: The key generation module is used to generate the next interaction key K1 after determining the unlocking requirement; A sending module, used to send an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: a result of symmetrically encrypting K1 with K0m; The updating module is used to update the value of K0m stored locally using K1 generated locally after determining that the vehicle is unlocked successfully.
20. A vehicle unlocking device, the device is applied to a vehicle terminal, a mobile terminal and the vehicle terminal respectively save the current interactive key K0, and obtain K0m and K0c; The unlocking device comprises: A receiving module, configured to decrypt the encryption result in the unlock request message using the locally stored K0c after receiving the unlock request message sent by the mobile terminal; wherein the unlock request message carries at least: the result of symmetrically encrypting the next interaction key K1 with K0m; The unlocking module is used to unlock the vehicle when the decryption is successful, and to update the locally stored value of K0c using the decrypted K1.
21. A vehicle unlocking system, the unlocking system comprising a mobile terminal and a vehicle-mounted terminal, the mobile terminal and the vehicle-mounted terminal respectively save the current interactive key K0 and its corresponding serial number, obtain K0m and K0c, different K0 values correspond to different serial numbers; The vehicle-mounted terminal is used to determine the serial number corresponding to K0c and carry the serial number in the wireless signal for broadcasting; The mobile terminal is used to obtain a serial number from the wireless signal broadcast by the vehicle-mounted terminal after detecting the wireless signal, and determine K0m according to the obtained serial number; After confirming the unlocking requirement, generate and save the next interaction key K1 and its corresponding serial number; Sending an unlock request message to the vehicle terminal, wherein the unlock request message carries at least: the result of symmetrically encrypting K1 and its serial number with K0m; The vehicle-mounted terminal is further configured to, after receiving the unlock request message, use K0c to decrypt the encryption result in the unlock request message; If the decryption is successful, the vehicle is unlocked and the decrypted K1 is used to update K0c and its serial number.
22. A vehicle unlocking device, the device is applied to a mobile terminal, the mobile terminal and the vehicle terminal respectively save the current interactive key K0 and its corresponding serial number, obtain K0m and K0c, different K0 values correspond to different serial numbers; The unlocking device comprises: A detection module, configured to obtain a serial number from the wireless signal broadcast by the vehicle-mounted terminal after detecting the wireless signal, and determine K0m according to the obtained serial number; The key generation module is used to generate and save the next interaction key K1 and its corresponding serial number after determining the unlocking requirement; The sending module is used to send an unlocking request message to the vehicle-mounted terminal, wherein the unlocking request message at least carries: a result of symmetrically encrypting K1 and its serial number with K0m.
23. A vehicle unlocking device, applied to a vehicle terminal, wherein a mobile terminal and the vehicle terminal respectively store a current interactive key K0 and a corresponding serial number, and obtain K0m and K0c, wherein different K0 values correspond to different serial numbers; The unlocking device comprises: A broadcast module, used to determine the serial number corresponding to K0c and broadcast the serial number in a wireless signal; A receiving module, configured to decrypt the encryption result in the unlock request message using K0c after receiving the unlock request message sent by the mobile terminal; wherein the unlock request message carries at least: the result of symmetrically encrypting the next interaction key K1 and its serial number using K0m; The unlocking module is used to unlock the vehicle when the decryption is successful, and to update K0c and its serial number using the decrypted K1.
24. A computer 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 method according to any one of claims 11, 12, 16 and 17 is implemented.
Citation Information
Patent Citations
A lock control method and system
CN107341872A
Safety intelligent door lock system and control method thereof
CN107700962A
Offline password updating method for Bluetooth door access system and Bluetooth door access system
CN109003368A
Intelligent door lock system
CN109872423A