Key verification method
By combining the difference verification of signal strength and positioning information in the vehicle key verification, the problem of low security of vehicle key unlocking in the existing technology is solved, the safety of the vehicle is improved, and illegal unlocking is prevented.
Patent Information
- Application Number
- CN202410616539.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing vehicle key unlocking technology has low security issues and is vulnerable to threats from relay attacks or forged signals, resulting in an increased risk of the vehicle being illegally opened.
By combining the signal strength and the positioning information of the mobile terminal and the vehicle in the key verification method, the first distance and the second distance are calculated, and the difference between the two is verified to ensure that the received unlocking request is legal, thereby Improve vehicle safety.
This effectively prevents false relay signals from being misjudged as legitimate unlocking requests, improves vehicle safety, and prevents illegal unlocking incidents.
Smart Images

Figure CN118570906A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of intelligent driving technology, and in particular to a key verification method. Background Art
[0002] Current vehicle key unlocking technology usually uses short-range wireless communication to match the vehicle to unlock the door, but relay attacks or forged signals can illegally open the door, reducing the safety of the vehicle. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention provide a key verification method, device and computer-readable storage medium to solve the problem of low security of vehicle-mounted key unlocking technology in the prior art.
[0004] According to one aspect of an embodiment of the present invention, a key verification method is provided, the method comprising:
[0005] In response to an unlocking request sent by a target key, a preset verification value and a signal strength corresponding to the target key are determined; the target key is set in a target application module of a target mobile terminal;
[0006] If the preset verification value includes a distance verification value, the distance information of the target key relative to the target vehicle is obtained; the distance information includes a first distance and a second distance; the first distance is determined based on the signal strength of the target key; the second distance is determined based on the positioning of the target mobile terminal and the positioning of the target vehicle;
[0007] Based on the distance verification value, the distance information is verified to obtain distance verification information; the distance verification information is verification information corresponding to the distance verification value in the preset verification value;
[0008] Based on the verification information corresponding to the preset verification value, the verification result of the target key is determined and output.
[0009] In an optional implementation, the distance verification value includes a preset distance difference; based on the distance verification value, the distance information is verified to obtain the distance verification information, including:
[0010] Calculate the distance difference between the first distance and the second distance;
[0011] If the distance difference is less than the preset distance difference, it is determined that the distance verification information is verified.
[0012] In an optional implementation, the distance verification value includes a preset relative distance and a preset distance difference; based on the distance verification value, the distance information is verified to obtain the distance verification information, including:
[0013] Calculate the distance difference between the first distance and the second distance;
[0014] Comparing the first distance and the second distance with the preset relative distance respectively;
[0015] If the distance difference is smaller than the preset distance difference, and both the first distance and the second distance are smaller than the preset relative distance, it is determined that the distance verification information is verified successfully.
[0016] In an optional implementation, verifying the distance information based on the distance verification value to obtain the distance verification information further includes:
[0017] If the distance difference is less than the preset distance difference, and the first distance or the second distance is greater than the preset relative distance, the distance verification information is determined to be to be verified, and a verification request is sent to the target mobile terminal; the verification request is used to verify the distance information to the target mobile terminal.
[0018] In an optional implementation, verifying the distance information based on the distance verification value to obtain the distance verification information further includes:
[0019] If the distance difference is greater than the preset distance difference, it is determined that the distance verification information is a verification failure.
[0020] In an optional implementation, in response to the unlocking request sent by the target key, after determining the preset verification value corresponding to the target key, the method further includes:
[0021] If the preset verification value includes a time verification value, determining the first time when the unlocking request is received;
[0022] Get the second time recorded in the unlock request;
[0023] Calculate the time difference between the first time and the second time;
[0024] If the time difference is less than the time verification value, the time verification information is determined to be verified; the time verification information is the verification information corresponding to the time verification value in the preset verification value.
[0025] In an optional implementation, determining a preset verification value corresponding to the target key includes:
[0026] Based on the unlocking request, determining a key type of the target key; the key type includes a first type and a second type; the communication distance of the first type of key is greater than the communication distance of the second type of key;
[0027] If the key type of the target key is the first type, determining the preset verification value to be a distance verification value and a time verification value;
[0028] If the key type of the target key is the second type, the preset verification value is determined to be a time verification value.
[0029] In an optional implementation, if the preset verification value is a distance verification value and a time verification value, and the preset verification value includes a preset distance difference, then based on the verification information corresponding to the preset verification value, determining and outputting the verification result of the target key includes:
[0030] If the distance verification information and the time verification information are verified, the verification result is determined to be verified, and the verification result is output;
[0031] If the distance verification value or the time verification information is a verification failure, the verification result is determined to be a verification failure, and the verification result is output.
[0032] In an optional implementation, if the preset verification value is a distance verification value and a time verification value, and the preset verification value includes a preset distance difference and a preset relative distance, then based on the verification information corresponding to the preset verification value, determining and outputting the verification result of the target key includes:
[0033] If the distance verification information and the time verification information are verified, the verification result is determined to be verified, and the verification result is output;
[0034] If the distance verification information is pending verification and the time verification information is verified passed, the verification result is determined to be pending verification, and a verification request is sent to the target mobile terminal;
[0035] If the distance verification value or the time verification information is a verification failure, the verification result is determined to be a verification failure, and the verification result is output.
[0036] In an optional implementation, if the preset verification value is a time verification value, determining and outputting a verification result of the target key based on the verification information corresponding to the preset verification value includes:
[0037] If the time verification information is verified, the verification result is determined to be verified, and the verification result is output;
[0038] If the time verification information is verification failure, the verification result is determined to be verification failure, and the verification result is output.
[0039] According to another aspect of an embodiment of the present invention, there is provided a key verification device, comprising:
[0040] A verification value determination module, for determining a preset verification value and a signal strength corresponding to a target key in response to an unlocking request sent by a target key; the target key is set in a target application module of a target mobile terminal;
[0041] A distance information acquisition module, for acquiring distance information of a target key relative to a target vehicle if the preset verification value includes a distance verification value; the distance information includes a first distance and a second distance; the first distance is determined based on the signal strength of the target key; the second distance is determined based on the positioning of the target mobile terminal and the positioning of the target vehicle;
[0042] A verification information determination module is used to verify the distance information based on the distance verification value to obtain distance verification information; the distance verification information is the verification information corresponding to the distance verification value in the preset verification value;
[0043] The key verification module is used to determine and output the verification result of the target key based on the verification information corresponding to the preset verification value.
[0044] According to another aspect of an embodiment of the present invention, there is provided a vehicle-mounted terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0045] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute any operation of the key verification method described above.
[0046] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which at least one executable instruction is stored. When the executable instruction is executed on a vehicle-mounted terminal / key verification device, the vehicle-mounted terminal / key verification device performs the operation of any of the key verification methods described above.
[0047] During key verification, the embodiment of the present invention not only determines the first distance based on the signal strength, but also introduces the second distance corresponding to the distance between the mobile terminal and the vehicle, and verifies the first distance and the second distance at the same time to ensure that the received unlocking request is issued by the target mobile terminal corresponding to the target key, thereby avoiding erroneous judgment of the relayed forged signal as a legitimate unlocking request signal issued by the mobile terminal, thereby improving the safety of the vehicle.
[0048] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0050] Figure 1It is a flowchart of a key verification method provided by an embodiment of the present invention;
[0051] Figure 2 It is a schematic diagram of a flow chart of verifying a target key when a distance verification value is a preset distance difference in a key verification method provided by an embodiment of the present invention;
[0052] Figure 3 It is a schematic diagram of a flow chart of verifying a target key when the distance verification value is a preset relative distance and a preset distance difference in a key verification method provided by an embodiment of the present invention;
[0053] Figure 4 It is a schematic diagram of a flow chart of verifying a target key when a preset verification value is a time verification value in a key verification method provided by an embodiment of the present invention;
[0054] Figure 5 It is a schematic diagram of a flow chart of determining a preset verification value in a key verification method provided by an embodiment of the present invention;
[0055] Figure 6 is a structural schematic diagram of an embodiment of a key verification device provided by an embodiment of the present invention;
[0056] Figure 7 It is a schematic diagram of the structure of an embodiment of a vehicle-mounted terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0058] Relay attack is an attack method that uses wireless communication technology to amplify and forward key signals. It can copy the user's key signal at a distance, and through forwarding and amplification, mislead the vehicle to determine that the key is within the unlocking range and open the door. The current vehicle key unlocking technology usually uses short-range wireless communication to match the vehicle to complete the door unlocking. Using relay attacks and other means to forge signals, the door can be illegally opened, which leads to the risk of vehicle theft and reduces the safety of the vehicle.
[0059] Based on this, an embodiment of the present invention provides a key verification method, which includes: in response to an unlocking request sent by a target key, determining a preset verification value and a signal strength corresponding to the target key; the target key is set in a target application module of a target mobile terminal; if the preset verification value includes a distance verification value, obtaining distance information of the target key relative to the target vehicle; the distance information includes a first distance and a second distance; the first distance is determined based on the signal strength of the target key; the second distance is determined based on the positioning of the target mobile terminal and the positioning of the target vehicle; based on the distance verification value, verifying the distance information to obtain distance verification information; the distance verification information is the verification information corresponding to the distance verification value in the preset verification value; based on the verification information corresponding to the preset verification value, determining and outputting the verification result of the target key. In this way, when verifying the key, not only the first distance is determined according to the signal strength, but also the second distance corresponding to the distance between the mobile terminal and the vehicle is introduced, and the first distance and the second distance are verified at the same time to ensure that the received unlocking request is sent by the target mobile terminal corresponding to the target key, thereby avoiding the relay forged signal from being mistakenly judged as a legitimate unlocking request signal sent from the mobile terminal, thereby improving the safety of the vehicle.
[0060] The following describes a specific embodiment of a key verification method of the present invention. Figure 1 It is a flowchart of a key verification method provided by an embodiment of the present invention. This specification provides method operation steps such as the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in the order of the method shown in the embodiment or the figure or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 1 As shown, the method may include:
[0061] Step 110: In response to the unlocking request sent by the target key, determine a preset verification value and a signal strength corresponding to the target key.
[0062] In the embodiment of the present invention, the target key is set in the target application module of the target mobile terminal. The target key is a communication component that can perform near field communication and matching with the vehicle, which is set in the target application module, and the target application module can be a software application or hardware architecture corresponding to the unlocking application of the target mobile terminal. The target mobile terminal can be a mobile, portable terminal device such as a mobile phone, a car smart key, etc.
[0063] In the embodiment of the present invention, the preset verification value is a verification threshold for verifying the target key, which defines the relevant information required for verifying the target key and the threshold range that the relevant information needs to meet when the target key is verified. For different verification strategies, the preset verification value will contain different information. When determining the preset verification value corresponding to the target key, the target vehicle will first match the verification strategy for the target key, and determine the specific preset verification value according to the matched verification strategy.
[0064] In the embodiment of the present invention, the signal strength is the strength of the signal corresponding to the unlocking request when the target vehicle receives the unlocking request. Since the signal strength weakens with the increase of the propagation distance, the distance between the device sending the signal and the target vehicle can be determined based on the signal strength.
[0065] Step 120: If the preset verification value includes a distance verification value, then obtain the distance information of the target key relative to the target vehicle.
[0066] In the embodiment of the present invention, the preset verification value may include multiple types of verification values, and different types of verification values correspond to verification of different information. Among them, the distance verification value corresponds to verification of distance information.
[0067] In the embodiment of the present invention, the distance information includes a first distance and a second distance, wherein the first distance is determined based on the signal strength of the target key, and the second distance is determined based on the positioning of the target mobile terminal and the positioning of the target vehicle. Since the signal strength can be artificially forged, the reliability of the first distance determined based on the signal strength is low and cannot be used as the only basis for verifying the target key. Therefore, the second distance is introduced in this embodiment, and the location information of the target mobile terminal and the target vehicle are respectively obtained by GPS positioning and the like, and the distance between the two is calculated based on the location information of the two to obtain the second distance.
[0068] Step 130: Verify the distance information based on the distance verification value to obtain distance verification information.
[0069] In the embodiment of the present invention, the distance verification information is verification information corresponding to the distance verification value in the preset verification value. Based on the distance verification value, the distance information is verified, that is, the first distance and the second distance are verified to obtain the distance verification information.
[0070] In an optional implementation, for different verification strategies, the distance verification value may also include different information. Specifically, the distance verification value includes a preset distance difference and a preset relative distance, wherein the preset distance difference is a verification threshold of the distance difference between the first distance and the second distance, and the preset relative distance is a verification threshold of the first distance and the second distance. In step 110 above, when determining the distance verification value corresponding to the target key, the target vehicle will match the verification strategy for the target key to determine the specific distance verification value.
[0071] In an optional implementation, in order to ensure the reliability of the target key verification result, the distance verification value determined by verification strategy matching must include a preset distance difference, so as to determine whether the device sending the unlock request signal is the target mobile terminal through the second distance.
[0072] Step 140: Determine and output the verification result of the target key based on the verification information corresponding to the preset verification value.
[0073] In the embodiment of the present invention, since the preset verification value may include multiple verification values, the distance verification information can only be used as one of the bases for verifying the target key. It is necessary to verify the target key by integrating the verification information corresponding to all verification values in the preset verification value, so as to determine the verification result of the target key and output it. The verification result of the target key is used by the target vehicle to decide whether to perform the door unlocking operation. If the verification result is verification passed, the target vehicle performs the door unlocking operation. If the verification result is verification failed, the target vehicle does not perform the door unlocking operation.
[0074] In an optional implementation, if the distance verification value is determined to be a preset distance difference through matching of the verification strategy, then Figure 2 As shown, the above step 130 may include the following steps:
[0075] Step 210: Calculate the distance difference between the first distance and the second distance.
[0076] In the embodiment of the present invention, the first distance is subtracted from the second distance, and the absolute value is taken to obtain the relative distance between the first distance and the second distance, that is, the distance difference between the first distance and the second distance.
[0077] Step 220: If the distance difference is less than the preset distance difference, the distance verification information is determined to be verified.
[0078] In an embodiment of the present invention, if the device that sends the unlock request signal is the target mobile terminal, the first distance and the second distance should be equal. Taking into account the existence of factors such as errors, there will be a certain deviation between the first distance and the second distance. Therefore, a preset distance difference is set based on the deviation. If the distance difference between the first distance and the second distance is less than the preset distance difference, it indicates that the deviation between the first distance and the second distance is within the allowable error range. At this time, it can be considered that the device that sends the unlock request signal is the target mobile terminal, and the signal is credible and legal. Therefore, the distance verification information is determined to be verified, indicating that the target vehicle can perform the door unlocking operation.
[0079] In an optional implementation, if the distance verification value determined by matching the verification strategy includes a preset relative distance and a preset distance difference, then Figure 3 As shown, the above step 130 may include the following steps:
[0080] Step 310: Calculate the distance difference between the first distance and the second distance.
[0081] In the embodiment of the present invention, the first distance is subtracted from the second distance, and the absolute value is taken to obtain the relative distance between the first distance and the second distance, that is, the distance difference between the first distance and the second distance.
[0082] Step 320: Compare the first distance and the second distance with the preset relative distance respectively.
[0083] In the embodiment of the present invention, the preset relative distance is used to verify the source of the unlocking request signal, or the distance between the target mobile terminal where the target key is located and the target vehicle, to ensure that the unlocking request signal or the target mobile terminal is within the set unlocking range. Based on this, the first distance and the second distance are respectively compared with the preset relative distance.
[0084] Step 330: If the distance difference is smaller than the preset distance difference, and both the first distance and the second distance are smaller than the preset relative distance, then it is determined that the distance verification information is verified to be passed.
[0085] In an embodiment of the present invention, if the distance difference between the first distance and the second distance is less than the preset distance difference, it indicates that the deviation between the first distance and the second distance is within the allowable error range. At this time, it can be considered that the device that sends the unlock request signal is the target mobile terminal, and the signal is credible and legal; if both the first distance and the second distance are less than the preset relative distance, it indicates that the source of the signal, or the target mobile terminal, is within the set unlocking range, and the set unlocking distance requirement is met. When both of the above two conditions are met, the distance verification information is determined to be verified, indicating that the target vehicle can perform the door unlocking operation.
[0086] In an optional implementation, the verification of the distance information after the above step 320 also includes the following three situations:
[0087] In the first case, if the distance difference is less than the preset distance difference, and the first distance or the second distance is greater than the preset relative distance, then although it can be determined that the device that sends the unlock request signal is the target mobile terminal, due to errors and other reasons, the first distance or the second distance is greater than the preset relative distance, and one of the two cannot meet the set unlock distance requirement. Therefore, it cannot be determined whether the target mobile terminal is within the set unlock range. At this time, a verification request is sent to the target mobile terminal, and the verification request is used to verify the distance information to the target mobile terminal. After receiving the verification request, the target mobile terminal will initiate a verification and authorization request to the user in the form of a pop-up window, for example, it can be displayed in the form of a pop-up window "The system recognizes that you are unlocking. If you are operating it yourself, please click to confirm". After the user clicks to confirm, it is confirmed that the user has authorized the unlock request and the distance information verification is passed. At this time, it can be determined that the distance verification information is verified, indicating that the target vehicle can perform the door unlocking operation.
[0088] In the second case, if the distance difference is less than the preset distance difference, and the first distance and the second distance are both greater than the preset relative distance, then although it is determined that the device sending the unlock request signal is the target mobile terminal, the signal source, or the target mobile terminal, is outside the set unlocking range and does not meet the set unlocking distance requirement. Therefore, the distance verification information is determined to be a verification failure, instructing the target vehicle not to perform the door unlocking operation.
[0089] In the third case, if the distance difference is greater than the preset distance difference, it indicates that the device sending the unlock request signal is not the target mobile terminal, and the unlock request signal is forged by signal forgery or relay attack, etc. The signal is illegal. Therefore, it is determined that the target key verification has failed and the target vehicle does not perform the door unlocking operation.
[0090] In an optional implementation, in addition to the distance verification value, the preset verification value also includes a time verification value, and the time verification value verifies the unlocking request signal from a time perspective. Figure 4 1 is a schematic diagram of a flow chart of verifying a target key when the preset verification value is a time verification value in a key verification method provided by an embodiment of the present invention, such as Figure 4 As shown, after the above step 110: responding to the unlocking request sent by the target key and determining the preset verification value corresponding to the target key, the following steps may also be included:
[0091] Step 410: If the preset verification value includes a time verification value, determine the first time when the unlocking request is received.
[0092] In an embodiment of the present invention, if the preset verification value includes a time verification value, the time when the target vehicle receives the unlocking request is determined to be the first time. Specifically, the first time is the time information recorded by the communication module in the target vehicle that is in communication connection with the target key when receiving the unlocking request according to the clock set therein.
[0093] Step 420: Obtain the second time recorded in the unlocking request.
[0094] In the embodiment of the present invention, the unlocking request records the timestamp information of the unlocking request when it is sent. When the unlocking request is received, the unlocking request is parsed to obtain the timestamp information recorded therein and obtain the second time.
[0095] Step 430: Calculate the time difference between the first time and the second time.
[0096] In the embodiment of the present invention, the first time is subtracted from the second time to obtain a time difference between the two, and the time difference can represent the time taken for the unlocking request to be transmitted from the signal source to the target vehicle.
[0097] Step 440: If the time difference is less than the time verification value, the time verification information is determined to be verified.
[0098] In the embodiment of the present invention, the time verification value is used to verify the transmission time of the unlock request signal, which is equivalent to verifying the distance of the signal source of the unlock request signal from the perspective of time. The time verification information is the verification information corresponding to the time verification value in the preset verification value. If the time difference is less than the time verification value, it means that the transmission time of the unlock request signal is within the set transmission time range. At this time, it can be determined that the time verification information is verified to be passed, indicating that the target vehicle can perform the door unlocking operation. If the time difference is greater than the time verification value, it means that the transmission time of the unlock request signal exceeds the set transmission time range. At this time, it can be determined that the time verification information is verified to be failed, indicating that the target vehicle does not perform the door unlocking operation.
[0099] In an optional embodiment, Figure 5 is a schematic diagram of a flow chart of determining a preset verification value in a key verification method provided by an embodiment of the present invention, such as Figure 5 As shown, in step 110, determining the preset verification value corresponding to the target key may include the following steps:
[0100] Step 510: Based on the unlocking request, determine the key type of the target key.
[0101] In the embodiment of the present invention, the key type includes a first type and a second type, wherein the communication distance of the first type of key is greater than the communication distance of the second type of key. For example, the first type of key may be a Bluetooth key, and the second type of key may be a key corresponding to an NFC card.
[0102] In the embodiment of the present invention, different types of keys send different unlocking requests, so the target vehicle can determine the key type of the target key according to the received unlocking request.
[0103] Step 520: If the key type of the target key is the first type, the preset verification value is a distance verification value and a time verification value.
[0104] In an embodiment of the present invention, if the target key is a first type of key with a relatively long communication distance, since keys with a longer communication distance usually have a longer unlocking distance requirement, the signal transmission time may be relatively long. Therefore, under normal circumstances, a relatively long time verification value will be set for the target vehicle. The setting of a longer time verification value will leave room for illegal door opening through relay attacks or signal forgery. At this time, the reliability of verifying the target key only through the time verification value is relatively low. Therefore, the preset verification value includes both the distance verification value and the time verification value, and the target key is verified from both the time and distance perspectives.
[0105] Step 530: If the key type of the target key is the second type, the preset verification value is a time verification value.
[0106] In an embodiment of the present invention, if the target key is a second type of key with a relatively short communication distance, since the corresponding unlocking distance requirement of the key with a short communication distance is also relatively short, the signal transmission time is also relatively short. Therefore, under normal circumstances, the target vehicle will set a relatively short time verification value. At this time, the operability of illegally opening the door through relay attacks or signal forgery is relatively low. Therefore, the preset verification value can only include the time verification value, and the target key is only verified from a time perspective.
[0107] In an optional implementation, when the key type of the target key is the second type, in order to further ensure the reliability of key verification, the distance verification value may also be added to the preset verification value corresponding to the second type of key.
[0108] In an optional implementation, the specific values of the time verification value and the distance verification value corresponding to the first type of key and the second type of key are different. Specifically, since the communication distance of the first type of key is relatively longer, the specific value of its time verification value is usually greater than the specific value of the time verification value of the second type of key, and the preset relative distance in the distance verification value is usually greater than the preset relative distance of the second type of key.
[0109] In an optional implementation, as described above, for the same type of key, setting different verification strategies will also result in different preset verification values used in the verification process. Specifically, according to different verification strategies, the preset verification values can be divided into the following different types:
[0110] The first type is that the preset verification value only includes the time verification value. This verification strategy is only applicable to the second type of key. At this time, if the time verification information is verification passed, the verification result of the target key is determined to be verification passed, and the verification result is output; if the time verification information is verification failed, the verification result is determined to be verification failed, and the verification result is output.
[0111] The second type is that the preset verification value includes a time verification value and a distance verification value, wherein the distance verification value only includes a preset distance difference. In this case, the target key verification is considered to have been passed only if both the time difference is within the preset time difference and the distance difference is within the preset distance difference. In other words, if the distance verification information and the time verification information are verified, the verification result is determined to be verified, and the verification result is output; if the distance verification value or the time verification information is verified failed, the verification result is determined to be verified failed, and the verification result is output.
[0112] The third type is that the preset verification value includes a time verification value and a distance verification value, wherein the distance verification value includes a preset distance difference and a preset relative distance. In this case, it is necessary to simultaneously meet the two conditions that the time difference is within the preset time difference and the distance difference is within the preset distance difference. At the same time, when both the first distance and the second distance are less than the preset relative distance, the target key can be directly determined to have passed. If any one of the first distance and the second distance is greater than the preset relative distance, a verification request needs to be sent to the target mobile terminal at this time to verify the target key to the target mobile terminal. After the user authorizes the unlocking request, the target key is confirmed to have passed verification. In other words, if the distance verification information and the time verification information are verified, the verification result is determined to be verified, and the verification result is output; if the distance verification information is to be verified and the time verification information is verified, the verification result is determined to be to be verified, and a verification request is sent to the target mobile terminal; if the distance verification value or the time verification information is verified failed, the verification result is determined to be verified failed, and the verification result is output.
[0113] A key verification method provided by an embodiment of the present invention not only determines the first distance according to the signal strength during key verification, but also introduces the second distance corresponding to the distance between the mobile terminal and the vehicle, and verifies the first distance and the second distance at the same time to ensure that the received unlocking request is issued by the target mobile terminal corresponding to the target key, thereby avoiding erroneous judgment of the relayed forged signal as a legitimate unlocking request signal issued by the mobile terminal, thereby improving the safety of the vehicle.
[0114] The embodiment of the present invention further provides a key verification device, Figure 6 is a schematic diagram of the structure of an embodiment of a key verification device provided by an embodiment of the present invention, such as Figure 6 As shown, the device 600 includes:
[0115] The verification value determination module 610 is used to determine the preset verification value and signal strength corresponding to the target key in response to the unlocking request sent by the target key; the target key is set in the target application module of the target mobile terminal;
[0116] The distance information acquisition module 620 is used to acquire the distance information of the target key relative to the target vehicle if the preset verification value includes the distance verification value; the distance information includes a first distance and a second distance; the first distance is determined based on the signal strength of the target key; the second distance is determined based on the positioning of the target mobile terminal and the positioning of the target vehicle;
[0117] The verification information determination module 630 is used to verify the distance information based on the distance verification value to obtain distance verification information; the distance verification information is the verification information corresponding to the distance verification value in the preset verification value;
[0118] The key verification module 640 is used to determine and output the verification result of the target key based on the verification information corresponding to the preset verification value.
[0119] In an optional implementation, the verification information determination module 630 includes:
[0120] a distance difference calculation unit, configured to calculate a distance difference between a first distance and a second distance;
[0121] The verification unit is used to determine that the distance verification information is verified if the distance difference is less than a preset distance difference.
[0122] In an optional implementation, the verification information determination module 630 includes:
[0123] a distance difference calculation unit, configured to calculate a distance difference between a first distance and a second distance;
[0124] A distance comparison unit, used to compare the first distance and the second distance with a preset relative distance respectively;
[0125] The verification unit is used to determine that the distance verification information is verified if the distance difference is less than a preset distance difference, and the first distance and the second distance are both less than a preset relative distance.
[0126] In an optional implementation manner, the verification unit is further configured to:
[0127] If the distance difference is less than the preset distance difference, and the first distance or the second distance is greater than the preset relative distance, the distance verification information is determined to be to be verified, and a verification request is sent to the target mobile terminal; the verification request is used to verify the distance information to the target mobile terminal.
[0128] In an optional implementation manner, the verification unit is further configured to:
[0129] If the distance difference is greater than the preset distance difference, it is determined that the distance verification information is a verification failure.
[0130] In an optional embodiment, the device further includes:
[0131] A first time determination module, configured to determine a first time when an unlocking request is received if the preset verification value includes a time verification value;
[0132] A second time acquisition module, used to acquire the second time recorded in the unlocking request;
[0133] A time difference calculation module, used to calculate the time difference between the first time and the second time;
[0134] The verification module is also used to determine that the time verification information is verified if the time difference is less than the time verification value; the time verification information is the verification information corresponding to the time verification value in the preset verification value.
[0135] In an optional implementation, the verification value determination module 610 includes:
[0136] A key type determination unit, configured to determine a key type of a target key based on an unlocking request; the key types include a first type and a second type; a communication distance of a key of the first type is greater than a communication distance of a key of the second type;
[0137] A first type determination unit, configured to determine, if the key type of the target key is the first type, that the preset verification value is a distance verification value and a time verification value;
[0138] The second type determination unit is configured to determine that the preset verification value is a time verification value if the key type of the target key is the second type.
[0139] In an optional implementation, if the preset verification value is a distance verification value and a time verification value, and the preset verification value includes a preset distance difference, the key verification module 640 is configured to:
[0140] If the distance verification information and the time verification information are verified, the verification result is determined to be verified, and the verification result is output;
[0141] If the distance verification value or the time verification information is a verification failure, the verification result is determined to be a verification failure, and the verification result is output.
[0142] In an optional implementation, if the preset verification value is a distance verification value and a time verification value, and the preset verification value includes a preset distance difference and a preset relative distance, the key verification module 640 is used to:
[0143] If the distance verification information and the time verification information are verified, the verification result is determined to be verified, and the verification result is output;
[0144] If the distance verification information is pending verification and the time verification information is verified passed, the verification result is determined to be pending verification, and a verification request is sent to the target mobile terminal;
[0145] If the distance verification value or the time verification information is a verification failure, the verification result is determined to be a verification failure, and the verification result is output.
[0146] In an optional implementation, if the preset verification value is a time verification value, the key verification module 640 is used to:
[0147] If the time verification information is verified, the verification result is determined to be verified, and the verification result is output;
[0148] If the time verification information is verification failure, the verification result is determined to be verification failure, and the verification result is output.
[0149] The device and method embodiments in the embodiments of the present application are based on the same application concept.
[0150] Figure 7 The schematic diagram of the structure of the vehicle-mounted terminal provided by the embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the vehicle-mounted terminal.
[0151] like Figure 7 As shown, the vehicle-mounted terminal may include: a processor (processor) 702 , a communication interface (Communications Interface) 704 , a memory (memory) 706 , and a communication bus 708 .
[0152] The processor 702, the communication interface 704, and the memory 706 communicate with each other via the communication bus 708. The communication interface 704 is used to communicate with other devices such as a client or other server network elements. The processor 702 is used to execute the program 710, which can specifically execute the relevant steps in the above-mentioned key verification method embodiment.
[0153] Specifically, the program 710 may include program code including computer executable instructions.
[0154] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the vehicle terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0155] The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0156] The program 710 can be specifically called by the processor 702 to enable the vehicle terminal to execute the relevant steps in the above-mentioned key verification method embodiment.
[0157] It can be understood by those skilled in the art that Figure 7 The structure shown is only for illustration and does not limit the structure of the above-mentioned device. Figure 7 More or fewer components as shown, or with Figure 7 Different configurations shown.
[0158] An embodiment of the present invention provides a computer-readable storage medium storing at least one executable instruction. When the executable instruction is executed on a vehicle-mounted terminal / key verification device, the vehicle-mounted terminal / key verification device executes the key verification method in any of the above method embodiments.
[0159] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0160] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0161] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0162] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A key verification method, characterized in that: The method comprises: In response to an unlocking request sent by a target key, determining a preset verification value and a signal strength corresponding to the target key; the target key is set in a target application module of a target mobile terminal; If the preset verification value includes a distance verification value, obtaining distance information of the target key relative to the target vehicle; the distance information includes a first distance and a second distance; the first distance is determined based on the signal strength of the target key; the second distance is determined based on the positioning of the target mobile terminal and the positioning of the target vehicle; Based on the distance verification value, the distance information is verified to obtain distance verification information; the distance verification information is verification information corresponding to the distance verification value in the preset verification value; Based on the verification information corresponding to the preset verification value, a verification result of the target key is determined and output.
2. The method according to claim 1, characterized in that The distance verification value includes a preset distance difference; and the distance information is verified based on the distance verification value to obtain the distance verification information, including: calculating a distance difference between the first distance and the second distance; If the distance difference is less than the preset distance difference, it is determined that the distance verification information is verified.
3. The method according to claim 1, characterized in that The distance verification value includes a preset relative distance and a preset distance difference; and the distance information is verified based on the distance verification value to obtain the distance verification information, including: calculating a distance difference between the first distance and the second distance; respectively comparing the first distance and the second distance with the preset relative distance; If the distance difference is smaller than the preset distance difference, and both the first distance and the second distance are smaller than the preset relative distance, it is determined that the distance verification information is verified to be passed.
4. The method according to claim 3, characterized in that: The verifying the distance information based on the distance verification value to obtain distance verification information further includes: If the distance difference is less than the preset distance difference, and the first distance or the second distance is greater than the preset relative distance, the distance verification information is determined to be to be verified, and a verification request is sent to the target mobile terminal; the verification request is used to verify the distance information to the target mobile terminal.
5. The method according to claim 3, characterized in that: The verifying the distance information based on the distance verification value to obtain distance verification information further includes: If the distance difference is greater than the preset distance difference, it is determined that the distance verification information is a verification failure.
6. The method according to claim 1, characterized in that After the preset verification value corresponding to the target key is determined in response to the unlocking request sent by the target key, the method further includes: If the preset verification value includes a time verification value, determining a first time when the unlocking request is received; Obtaining a second time recorded in the unlock request; Calculate the time difference between the first time and the second time; If the time difference is less than the time verification value, it is determined that the time verification information is verified. The time verification information is the verification information corresponding to the time verification value in the preset verification value.
7. The method according to any one of claims 1 to 6, characterized in that: The step of determining a preset verification value corresponding to the target key includes: Based on the unlocking request, determining a key type of the target key; the key type includes a first type and a second type; a communication distance of the first type of key is greater than a communication distance of the second type of key; If the key type of the target key is the first type, determining the preset verification value to be the distance verification value and the time verification value; If the key type of the target key is the second type, the preset verification value is determined to be a time verification value.
8. The method according to claim 7, characterized in that If the preset verification value is the distance verification value and the time verification value, and the preset verification value includes a preset distance difference, then determining and outputting the verification result of the target key based on the verification information corresponding to the preset verification value includes: If the distance verification information and the time verification information are verified, determining that the verification result is verified, and outputting the verification result; If the distance verification value or the time verification information is a verification failure, the verification result is determined to be a verification failure, and the verification result is output.
9. The method according to claim 7, characterized in that: If the preset verification value is the distance verification value and the time verification value, and the preset verification value includes a preset distance difference and a preset relative distance, then determining and outputting the verification result of the target key based on the verification information corresponding to the preset verification value includes: If the distance verification information and the time verification information are verified, determining that the verification result is verified, and outputting the verification result; If the distance verification information is pending verification and the time verification information is verified, determining that the verification result is pending verification, and sending a verification request to the target mobile terminal; If the distance verification value or the time verification information is a verification failure, the verification result is determined to be a verification failure, and the verification result is output.
10. The method according to claim 7, characterized in that If the preset verification value is a time verification value, then determining and outputting the verification result of the target key based on the verification information corresponding to the preset verification value includes: If the time verification information is verified, determining that the verification result is verified, and outputting the verification result; If the time verification information is verification failure, the verification result is determined to be verification failure, and the verification result is output.
Citation Information
Patent Citations
Method for preventing vehicle relay attack and user terminal and system thereof
CN111954191A
Device and method for enhancing defense aiming at relay attack in Bluetooth unlocking range
CN112995968A
Relay attack detection method and device and storage medium
CN116546502A
Method and device for controlling pop-up of hidden door handle of automobile and automobile
CN116575812A
Systems And Methods for Activating Vehicle Functions
US20200298800A1
