Vehicle locking method, device and equipment and storage medium

By adjusting the calibration range of the vehicle key, the error locking problem caused by key positioning errors during vehicle locking is solved, the accuracy and fluency of vehicle locking operation are achieved, and the user experience is improved.

CN118907015APending Publication Date: 2024-11-08WUHAN LOTUS CARS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411138872.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the prior art, vehicle key positioning errors lead to the possibility of accidentally locking the key in the vehicle when the vehicle is locked, which affects the user experience.

Method used

By obtaining the position information of the vehicle key, comparing it with its calibration range, detecting the locking signal, and adjusting the calibration range when necessary to confirm the key position to avoid misjudgment. The specific method includes obtaining the first position coordinate and the first calibration range, detecting the locking signal, and then obtaining the second position coordinate and the second calibration range again to ensure the accurate position of the key.

Benefits of technology

It effectively avoids the phenomenon of the key being locked in the car by mistake, ensures the accuracy and smoothness of the vehicle locking operation, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118907015A_ABST
    Figure CN118907015A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle locking method, device and equipment and a storage medium, and relates to the technical field of automobiles. The method comprises the steps that under the condition that it is detected that a vehicle meets the vehicle locking requirement, position information of a vehicle key of the vehicle is obtained, and a first position coordinate is obtained; comparing the first position coordinate with a first calibration range of the vehicle key, and detecting a vehicle locking signal under the condition of determining that the first position coordinate is located outside the first calibration range; under the condition that the vehicle locking signal is detected, the position information of the vehicle key is obtained again, and a second position coordinate is obtained; and comparing the second position coordinate with a second calibration range of the vehicle key, and controlling the vehicle to be locked under the condition that the second position coordinate is located outside the second calibration range. According to the method, the vehicle key can be prevented from being mistakenly locked in the vehicle in the vehicle locking scene, so that the vehicle unlocking and locking effect is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to a vehicle locking method, device, equipment and storage medium. Background Art

[0002] In a keyless entry system, the key position can be determined by key location, and then the vehicle can be authorized to be unlocked or locked. For example, in a vehicle locking scenario, the vehicle can be locked if it is determined that the key is outside the vehicle.

[0003] In the prior art, the key position is mainly determined by a single pre-set calibration range. For example, if the key is detected outside the calibration range, it is determined that the key is outside the vehicle, and if the key is detected within the calibration range, it is determined that the key is inside the vehicle.

[0004] This implementation method is prone to misjudgment when the key positioning occurs jitter, which can easily lock the key in the vehicle or affect the vehicle locking function, thereby affecting the user experience. Summary of the invention

[0005] The present application provides a vehicle locking method, device, equipment and storage medium, which are used to solve the technical problem in the prior art that the vehicle key is easily locked in the vehicle by mistake when the vehicle is locked due to the positioning error of the vehicle key.

[0006] In a first aspect, the present application provides a vehicle locking method, comprising:

[0007] When it is detected that the vehicle meets the vehicle locking requirement, obtaining the position information of the vehicle key of the vehicle to obtain the first position coordinates;

[0008] Comparing the first position coordinate with a first calibration range of the vehicle key, and detecting a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range; wherein the first calibration range indicates a range beyond a safety distance from a range where the vehicle is located; and the safety distance corresponds to a positioning error of the vehicle key;

[0009] When the vehicle locking signal is detected, obtaining the position information of the vehicle key again to obtain a second position coordinate;

[0010] The second position coordinate is compared with a second calibration range of the vehicle key, and when it is determined that the second position coordinate is outside the second calibration range, the vehicle is locked; wherein the second calibration range indicates the range where the vehicle is located after shrinking inward by the safety distance.

[0011] In a possible implementation, comparing the first position coordinate with a first calibration range of the vehicle key includes:

[0012] Acquire a first preset range matching the vehicle, and determine the first preset range as a first calibration range of the vehicle key;

[0013] The first position coordinate is compared to a first calibrated range for the vehicle key.

[0014] In a possible implementation, comparing the first position coordinate with a first calibration range of the vehicle key includes:

[0015] Determining the MAC address of the vehicle key;

[0016] Determining a second preset range that matches the MAC address of the vehicle key; and determining the second preset range as a first calibration range of the vehicle key;

[0017] The first position coordinate is compared to a first calibrated range for the vehicle key.

[0018] In a possible implementation manner, the vehicle has multiple vehicle keys; the method further includes:

[0019] In response to the key pairing request, determining a key type of each vehicle key of the vehicle; wherein the key type indicates a type of electronic device corresponding to the vehicle key;

[0020] determining a safety distance matching each of the vehicle keys based on a key type of each of the vehicle keys;

[0021] Based on the safety distance matched with each of the vehicle keys, a second preset range and a third preset range of each of the vehicle keys are determined; wherein the second preset range indicates a range beyond the safety distance matched with the vehicle key; and the third preset range indicates a range beyond the safety distance matched with the vehicle key;

[0022] A corresponding MAC address is assigned to each of the vehicle keys, and the MAC address corresponding to each of the vehicle keys, the key type of each of the vehicle keys, the second preset range and the third preset range of each of the vehicle keys are associated and stored.

[0023] In a possible implementation manner, determining a safety distance matching each of the vehicle keys based on the key type of each of the vehicle keys includes:

[0024] Obtaining a preset distance list; wherein the preset distance list is used to indicate the association relationship between the preset electronic device type and the corresponding safety distance;

[0025] Based on the preset distance list and the type of electronic device indicated by the key type of each of the vehicle keys, a safety distance matching each of the vehicle keys is determined.

[0026] In a possible implementation manner, when it is determined that the first position coordinate is outside the first calibration range, detecting a vehicle locking signal includes:

[0027] When it is determined that the first position coordinate is outside the first calibration range, the vehicle locking signal is detected within a preset time period; wherein the vehicle locking signal indicates a keyless locking signal triggered by a user.

[0028] In a possible implementation, the method further includes:

[0029] When it is determined that the first position coordinate is not outside the first calibration range, the vehicle locking signal is detected and a warning message is issued.

[0030] In a second aspect, the present application provides a vehicle locking device, comprising:

[0031] A first acquisition unit is used to acquire the position information of the vehicle key of the vehicle to obtain the first position coordinates when it is detected that the vehicle meets the vehicle locking requirement;

[0032] a detection unit, configured to compare the first position coordinate with a first calibration range of the vehicle key, and detect a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range; wherein the first calibration range indicates a range beyond a safety distance from a range where the vehicle is located; and the safety distance corresponds to a positioning error of the vehicle key;

[0033] A second acquisition unit is used to acquire the position information of the vehicle key again to obtain a second position coordinate when the vehicle locking signal is detected;

[0034] A control unit is used to compare the second position coordinate with a second calibration range of the vehicle key, and control the vehicle to lock when it is determined that the second position coordinate is outside the second calibration range; wherein the second calibration range indicates the range where the vehicle is located after shrinking the safety distance inward.

[0035] In a possible implementation, the detection unit includes a comparison module, which is used to:

[0036] Acquire a first preset range matching the vehicle, and determine the first preset range as a first calibration range of the vehicle key;

[0037] The first position coordinate is compared to a first calibrated range for the vehicle key.

[0038] In a possible implementation, the comparison module is used to:

[0039] Determining the MAC address of the vehicle key;

[0040] Determining a second preset range that matches the MAC address of the vehicle key; and determining the second preset range as a first calibration range of the vehicle key;

[0041] The first position coordinate is compared to a first calibrated range for the vehicle key.

[0042] In a possible implementation manner, the vehicle has a plurality of vehicle keys; the device further includes a response unit for:

[0043] In response to the key pairing request, determining a key type of each vehicle key of the vehicle; wherein the key type indicates a type of electronic device corresponding to the vehicle key;

[0044] determining a safety distance matching each of the vehicle keys based on a key type of each of the vehicle keys;

[0045] Based on the safety distance matched with each of the vehicle keys, a second preset range and a third preset range of each of the vehicle keys are determined; wherein the second preset range indicates a range beyond the safety distance matched with the vehicle key; and the third preset range indicates a range beyond the safety distance matched with the vehicle key;

[0046] A corresponding MAC address is assigned to each of the vehicle keys, and the MAC address corresponding to each of the vehicle keys, the key type of each of the vehicle keys, the second preset range and the third preset range of each of the vehicle keys are associated and stored.

[0047] In a possible implementation, the response unit is used to:

[0048] Obtaining a preset distance list; wherein the preset distance list is used to indicate the association relationship between the preset electronic device type and the corresponding safety distance;

[0049] Based on the preset distance list and the type of electronic device indicated by the key type of each of the vehicle keys, a safety distance matching each of the vehicle keys is determined.

[0050] In a possible implementation, the detection unit includes a detection module, which is used to:

[0051] When it is determined that the first position coordinate is outside the first calibration range, the vehicle locking signal is detected within a preset time period; wherein the vehicle locking signal indicates a keyless locking signal triggered by a user.

[0052] In a possible implementation manner, the device is further configured to include a warning unit, configured to:

[0053] When it is determined that the first position coordinate is not outside the first calibration range, the vehicle locking signal is detected and a warning message is issued.

[0054] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0055] The memory stores computer-executable instructions;

[0056] The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of the first aspects.

[0057] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any one of the methods in the first aspect.

[0058] In a fifth aspect, the present application provides a computer program product, comprising: computer execution instructions, the computer execution instructions are stored in a readable storage medium, at least one processor of an electronic device can read the computer execution instructions from the readable storage medium, and the at least one processor executes the computer execution instructions so that the electronic device performs any method described in the first aspect.

[0059] The vehicle locking method, device, equipment and storage medium provided by the present application can first obtain the location information of the vehicle key of the vehicle to obtain the first location coordinates when it is detected that the vehicle meets the vehicle locking requirements, and then compare the first location coordinates with the maximum range determined based on the positioning error of the vehicle key, that is, the first calibration range, so that when it is determined that the first location coordinates are outside the first calibration range, it can be ensured that the vehicle key is outside the vehicle, thereby avoiding the vehicle key located inside the vehicle being misjudged as being outside the vehicle due to the positioning jump problem, thereby causing the vehicle key to be mistakenly locked inside the vehicle. When it is determined that the vehicle key is outside the vehicle, a vehicle locking signal is detected, and when the vehicle locking signal is detected, the location information of the vehicle key is obtained again to obtain the second location coordinates. At this time, the second location coordinates can be compared with the minimum range determined based on the positioning error of the vehicle key, that is, the second calibration range, so that when it is determined that the second location coordinates are outside the second calibration range, it can be confirmed again that the vehicle key is outside the vehicle, and at the same time, it can also avoid the key located outside the vehicle being misjudged as being inside the vehicle due to the positioning jump problem, thereby affecting the vehicle to perform the vehicle locking operation. This implementation method uses two calibration ranges to determine whether the vehicle key is outside the vehicle, which not only avoids the phenomenon of accidentally locking the vehicle key in the vehicle, but also ensures the accurate, efficient and effective execution of the vehicle locking operation, thereby improving the smoothness of the vehicle locking operation and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0061] Figure 1 A schematic diagram of an application scenario of a vehicle locking method in the prior art provided in an embodiment of the present application;

[0062] Figure 2 A schematic flow chart of a vehicle locking method provided in an embodiment of the present application;

[0063] Figure 3 A schematic diagram of the position coordinates and corresponding calibration range of a vehicle key provided in an embodiment of the present application;

[0064] Figure 4 A schematic flow chart of another vehicle locking method provided in an embodiment of the present application;

[0065] Figure 5 A flowchart of a vehicle locking method according to an embodiment of the present application;

[0066] Figure 6A schematic diagram of a key pairing process provided in an embodiment of the present application;

[0067] Figure 7 A flowchart of another vehicle locking method provided in an embodiment of the present application;

[0068] Figure 8 A schematic diagram of the structure of a vehicle locking device provided in an embodiment of the present application;

[0069] Fig. 9 A schematic diagram of the structure of another vehicle locking device provided in an embodiment of the present application;

[0070] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0071] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0072] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0073] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0074] Terminology explanation:

[0075] MAC address: Media Access Control Address, media access control address.

[0076] In a keyless entry system, the key position can be determined by key positioning, and then the vehicle can be authorized to be unlocked or locked. For example, in a vehicle locking scenario, the vehicle can be locked if it is determined that the key is outside the vehicle. For example, if it is determined that the vehicle key is outside the vehicle and a vehicle locking signal for keyless entry and exit triggered by a user is received (for example, a locking signal initiated after triggering a door handle), the vehicle locking operation is performed.

[0077] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of a vehicle locking method in the prior art provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, in the vehicle exit locking scenario, it is possible to determine whether the vehicle key is outside the vehicle based on a pre-set single calibration range and the key location of the vehicle key. For example, the pre-set single calibration range can be Figure 1 The vehicle is in the range shown. Figure 1 As shown, if it is determined that the location of the vehicle key is outside the preset calibration range, it is determined that the vehicle key is outside the vehicle. At this time, the vehicle locking operation can be performed (see Figure 1 If the vehicle key is located within the preset calibration range, the vehicle key is determined to be in the vehicle, and the vehicle locking operation cannot be performed (see Figure 1 The vehicle key 2) shown in the figure can avoid the vehicle key being accidentally locked in the vehicle, thereby affecting the subsequent vehicle unlocking operation.

[0078] This implementation method is prone to misjudgment when the key position fluctuates, and thus the key may be easily locked in the vehicle. For example, if the vehicle key is located in a position inside the vehicle close to the outside of the vehicle (for example, the storage area inside the door, the area outside the seat, etc.), then the vehicle key may be misjudged as being outside the vehicle due to the positioning error of the vehicle key. At this time, if the user triggers the keyless locking signal, the vehicle key may be mistakenly locked in the vehicle, which not only affects the vehicle locking function, and then affects the subsequent vehicle unlocking function, but also affects the user experience.

[0079] The vehicle locking method provided in the present application aims to take into account the key positioning error to accurately determine whether the vehicle key is located outside the vehicle, thereby solving the above technical problems of the prior art.

[0080] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0081] Figure 2 A schematic diagram of a vehicle locking method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the vehicle locking method specifically includes the following steps:

[0082] S201. When it is detected that the vehicle meets the vehicle locking requirement, obtain the position information of the vehicle key of the vehicle to obtain the first position coordinates.

[0083] In one example, the vehicle locking requirement may indicate a vehicle status of the vehicle capable of performing a vehicle locking operation, in which case the vehicle status may indicate that the vehicle is turned off and there are no passengers in the vehicle (in this case, passengers include humans and animals, etc.).

[0084] In one example, when determining whether a vehicle meets the vehicle locking requirement, it can be first detected whether the vehicle is in an ignition-off state. If it is determined that the vehicle is in an ignition-off state, the vehicle door state can be detected. If it is determined that the vehicle door is in a closed state (for example, the door is first opened and then closed), it can be further detected whether there are passengers in the vehicle. If it is determined that there are no passengers in the vehicle, it is determined that the vehicle meets the vehicle locking requirement.

[0085] In one example, the vehicle key of a vehicle may indicate a physical key and / or a digital key, and the type of the vehicle key is not limited here. Among them, the digital key may indicate the vehicle key set in different devices, for example, it may be a digital key set in a mobile phone, a digital key set in a smart watch, or a digital key set in other smart control devices, etc., and the type of device corresponding to the digital key is not limited here, and it is subject to what can be realized.

[0086] In one example, when a vehicle has multiple vehicle keys, the location information of each vehicle key within a preset collection range of the vehicle (wherein the preset collection range may indicate the maximum range of location information that the vehicle can receive) may be obtained to obtain the first location coordinates of each vehicle key.

[0087] S202: Compare the first position coordinate with a first calibration range of the vehicle key, and detect a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range.

[0088] The first calibration range indicates the range beyond the safety distance of the vehicle; the safety distance corresponds to the positioning error of the vehicle key.

[0089] In one example, different types of vehicle keys, or vehicle keys from different manufacturers may correspond to different positioning methods. For example, common positioning methods include but are not limited to: near-field communication positioning method, radio frequency identification communication positioning method, Bluetooth communication positioning method, ultra-wideband communication positioning method, WiFi communication positioning method, etc.

[0090] In a possible implementation, the same safety distance may be set for different types of vehicle keys. In this case, different types of vehicle keys may correspond to the same first calibration range (or the second calibration range described below).

[0091] In another possible implementation, for different types of vehicle keys, different safety distances can be determined based on the positioning errors under the positioning methods corresponding to each vehicle key, thereby determining the first calibration range (or the second calibration range described below) corresponding to each type of vehicle key.

[0092] In one example, the first calibration range (or the second calibration range described below) determined according to the safety distance corresponding to the vehicle key can be a rectangular range or a circular range, etc. The shape of the first calibration range (or the second calibration range described below) is not specifically limited here, and is subject to what can be implemented.

[0093] In one example, if the first position coordinate is outside the first calibration range, it is determined that the distance between the vehicle key and the vehicle is greater than the distance between the first calibration range and the vehicle. At this time, it can be determined that the vehicle key is outside the vehicle. At this time, a vehicle lock signal can be detected. Among them, the vehicle lock signal can indicate a keyless touch lock signal. At this time, the vehicle lock signal can be detected by detecting the user's trigger operation at the target position of the vehicle. For example, after detecting the trigger operation on the inside (or outside) of the vehicle's door handle, it can be determined that the vehicle lock signal is detected. Here, the target position corresponding to the trigger operation is not limited, and it is subject to what can be achieved.

[0094] S203: When a vehicle locking signal is detected, the position information of the vehicle key is acquired again to obtain a second position coordinate.

[0095] In one example, the number of vehicle keys whose first position coordinates are outside the first calibration range may be one or more. In this case, if the number of vehicle keys whose first position coordinates are outside the first calibration range is more than one, the position information of each vehicle key whose first position coordinates are outside the first calibration range may be obtained again to obtain the second position coordinates, or the position information of any vehicle key among the multiple vehicle keys whose first position coordinates are outside the first calibration range may be obtained again to obtain the second position coordinates.

[0096] In one example, it is assumed that the vehicle has two vehicle keys, namely vehicle key 1 and vehicle key 2. Then, if the location information of vehicle key 1 is the first location coordinate 1, the first calibration range corresponding to vehicle key 1 is the first calibration range 1, and the location information of vehicle key 2 is the first location coordinate 2, the first calibration range corresponding to vehicle key 2 is the first calibration range 2, then, after determining that the first location coordinate 1 is outside the first calibration range 1 and the first location coordinate 2 is outside the first calibration range 2, the location information of vehicle key 1 and vehicle key 2 can be obtained again to obtain the second location coordinates corresponding to vehicle key 1 and vehicle key 2 respectively. Alternatively, the location information of vehicle key 1 (or vehicle key 2) can be obtained again to obtain the second location coordinates of vehicle key 1 (or vehicle key 2).

[0097] S204: Compare the second position coordinate with a second calibration range of the vehicle key, and control the vehicle to lock when it is determined that the second position coordinate is outside the second calibration range.

[0098] The second calibration range indicates the range where the vehicle is located after shrinking inward by a safety distance.

[0099] See also Figure 3 , Figure 3 A schematic diagram of the position coordinates of a vehicle key and the corresponding calibration range provided in an embodiment of the present application, such as Figure 3 As shown, it is assumed that, when it is detected that the vehicle meets the vehicle locking requirements, the location information of the vehicle key of the vehicle is obtained, and the first location coordinates (such as Figure 3 The vehicle key position shown in FIG. 1 is the position of the vehicle key, and the first calibration range after the vehicle position exceeds the safety distance is Figure 3 The calibration area 1 shown in the figure is the second calibration area after the vehicle is retracted inward by a safety distance. Figure 3 The calibration area 2 is shown. Figure 3 As shown, it can be determined that the first position coordinate of the vehicle key is outside the calibration area 1. At this time, the vehicle locking signal can be detected, and when the vehicle locking signal is detected, the position information of the vehicle key is obtained again to obtain the second position coordinate. At this time, the second position coordinate can be compared with the calibration area 2, and when it is determined that the second position coordinate is outside the calibration area 2, the vehicle is controlled to be locked.

[0100] It can be seen from the above description that the embodiment of the present application can first obtain the location information of the vehicle key of the vehicle to obtain the first location coordinates when it is detected that the vehicle meets the vehicle locking requirements, and then compare the first location coordinates with the maximum range determined based on the positioning error of the vehicle key, that is, the first calibration range, so that when it is determined that the first location coordinates are outside the first calibration range, it can be ensured that the vehicle key is outside the vehicle, thereby avoiding the vehicle key located inside the vehicle being misjudged as being outside the vehicle due to the positioning jump problem, and then the vehicle key is mistakenly locked inside the vehicle. When it is determined that the vehicle key is outside the vehicle, the vehicle locking signal is detected, and when the vehicle locking signal is detected, the location information of the vehicle key is obtained again to obtain the second location coordinates. At this time, the second location coordinates can be compared with the minimum range determined based on the positioning error of the vehicle key, that is, the second calibration range, so that when it is determined that the second location coordinates are outside the second calibration range, it can be confirmed again that the vehicle key is outside the vehicle, and at the same time, it can also avoid the key located outside the vehicle being misjudged as being inside the vehicle due to the positioning jump problem, thereby affecting the vehicle to perform the vehicle locking operation. This implementation method uses two calibration ranges to determine whether the vehicle key is outside the vehicle, which not only avoids the phenomenon of accidentally locking the vehicle key in the vehicle, but also ensures the accurate, efficient and effective execution of the vehicle locking operation, thereby improving the smoothness of the vehicle locking operation and enhancing the user experience.

[0101] Figure 4 A flow chart of another vehicle locking method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the vehicle locking method specifically includes the following steps:

[0102] S401. When it is detected that the vehicle meets the vehicle locking requirement, obtain the position information of the vehicle key of the vehicle to obtain the first position coordinates.

[0103] S402: Compare the first position coordinate with a first calibration range of the vehicle key.

[0104] The first calibration range indicates the range beyond the safety distance of the vehicle; the safety distance corresponds to the positioning error of the vehicle key.

[0105] S403: When it is determined that the first position coordinate is outside the first calibration range, a vehicle locking signal is detected within a preset time period.

[0106] The vehicle locking signal indicates a keyless locking signal triggered by a user.

[0107] In one example, the preset time period can be a pre-set time period, for example, the preset time period can be 20 seconds, 30 seconds, 1 minute, etc., or the preset time period can also be determined based on the user's historical trigger time interval. For example, if it is determined that the time interval between closing the car door and triggering the keyless locking signal within the historical time period is 30 seconds, then the preset time period can be set to 30 seconds.

[0108] This implementation manner can prevent the vehicle locking operation from being performed when no vehicle locking signal is detected within a preset time period, thereby preventing the vehicle from being locked by mistake.

[0109] S404: When a vehicle locking signal is detected, the location information of the vehicle key is acquired again to obtain a second location coordinate.

[0110] S405: Compare the second position coordinate with a second calibration range of the vehicle key, and control the vehicle to lock when it is determined that the second position coordinate is outside the second calibration range.

[0111] The second calibration range indicates the range where the vehicle is located after shrinking inward by a safety distance.

[0112] S406: When it is determined that the first position coordinate is not outside the first calibration range, a vehicle locking signal is detected, and a warning message is issued.

[0113] In one example, the warning information may indicate a sound prompt information and / or a text prompt information. For example, when it is determined that the first position coordinate is not outside the first calibration range, it means that the vehicle key may be inside the vehicle. At this time, after the vehicle locking signal is detected, the user may be prompted that the vehicle locking fails through a sound prompt information and / or a text prompt information.

[0114] The sound prompt information may be a single whistle sound, multiple whistle sounds, or other types of sounds, etc. The type of the sound prompt information is not limited here. The text prompt information may indicate information sent to the electronic device where the digital key of the vehicle is located.

[0115] This implementation can remind the user that the vehicle key is in the vehicle by issuing a warning message, thereby preventing the user from accidentally locking the vehicle key in the vehicle, thereby affecting the subsequent vehicle unlocking function.

[0116] In an embodiment of the present application, the first calibration range and the second calibration range can be pre-set fixed calibration ranges, or can be calibration ranges flexibly determined according to the key types of different vehicle keys. Therefore, the implementation process of the vehicle locking method provided in the embodiment of the present application is described in detail below according to two implementation methods.

[0117] Embodiment 1: The first calibration range and the second calibration range may be preset fixed calibration ranges.

[0118] At this time, the above-mentioned comparison of the first position coordinates with the first calibration range of the vehicle key may specifically include the following process:

[0119] First, a first preset range matching the vehicle is obtained, and the first preset range is determined as a first calibration range of the vehicle key; then, the first position coordinates are compared with the first calibration range of the vehicle key.

[0120] In one example, the first preset range can be determined based on the positioning errors of each vehicle key of the vehicle. For example, the first preset range can be determined based on the maximum positioning error of each vehicle key, that is, the first preset range can be obtained after the range where the vehicle is located overflows the safety distance determined by the maximum positioning error.

[0121] In another example, the first preset range can also be determined based on the positioning errors of the various vehicle keys of the vehicle and the usage frequency of the various vehicle keys. For example, the first preset range can be determined based on the positioning error of the most frequently used vehicle key among the various vehicle keys. That is, the range where the vehicle is located can be overflowed outward, and the first preset range can be obtained after the safety distance determined by the positioning error of the most frequently used vehicle key. The method for determining the first preset range that matches the vehicle is not limited here, and it is based on what can be implemented.

[0122] Similarly, when comparing the second position coordinates with the second calibration range of the vehicle key, the fourth preset range matching the vehicle can be obtained first, and the fourth preset range can be determined as the second calibration range of the vehicle key; then, the second position coordinates are compared with the second calibration range of the vehicle key.

[0123] Here, the second calibration range indicates the range after the vehicle is located within the range shrinking inward by a safety distance, wherein the method for determining the safety distance is the same as the method for determining the safety distance corresponding to the first calibration range, and will not be repeated here.

[0124] See also Figure 5 , Figure 5 The following is a flowchart of a vehicle locking method provided in an embodiment of the present application. Figure 5As shown, the vehicle state of the vehicle can be detected. When it is detected that the vehicle meets the vehicle locking requirements, the location information of the vehicle key can be obtained according to the location information output in real time by the vehicle key, and the first location coordinates of the vehicle key can be obtained. Then, the first location coordinates are compared with the first calibration range. When it is determined that the first location coordinates are within the first calibration range, a warning message is issued after the vehicle locking signal is detected. When it is determined that the first location coordinates are outside the first calibration range, the vehicle locking signal is detected within a preset time period (for example, 30 seconds), and after the vehicle locking signal is detected, the location information of the vehicle key is obtained again to obtain the second location coordinates, and the second location coordinates are compared with the second calibration range. When it is determined that the second location coordinates are outside the second calibration range, the vehicle is controlled to lock. When it is determined that the second location coordinates are within the second calibration range, a warning message is issued.

[0125] In this implementation, the first position coordinates can be compared with the preset fixed first calibration range according to the preset fixed first calibration range, which can increase the comparison speed and thus improve the vehicle locking efficiency.

[0126] Embodiment 2: Vehicle keys of different key types correspond to different first calibration ranges and second calibration ranges, that is, the first calibration range and the second calibration range are pre-set non-fixed calibration ranges.

[0127] At this time, the above-mentioned comparison of the first position coordinates with the first calibration range of the vehicle key may specifically include the following process:

[0128] First, determine the MAC address of the vehicle key; then, determine a second preset range that matches the MAC address of the vehicle key; and determine the second preset range as the first calibration range of the vehicle key; then, compare the first position coordinates with the first calibration range of the vehicle key.

[0129] At this time, different first calibration ranges can be determined according to the MAC address of the vehicle key, and then the first position coordinates of the vehicle key and the first calibration range can be compared, which can improve the accuracy of the comparison result and help improve the vehicle locking effect.

[0130] In one example, when determining the second preset range that matches the MAC address of the vehicle key, the key type that matches the MAC address may be determined first, and then the matching second preset range may be determined based on the matching key type.

[0131] Based on this, before executing the vehicle locking method provided in the embodiment of the present application, it is necessary to first determine the MAC address assigned to each vehicle key of the vehicle (at this time, the vehicle has multiple vehicle keys, including digital keys and physical keys), the key type of the vehicle key corresponding to each MAC address, and the preset calibration range corresponding to the vehicle key under each key type (including the second preset range and the third preset range below).

[0132] In specific implementation, the key type of each vehicle key of the vehicle can be determined in response to a key pairing request; then, based on the key type of each vehicle key, a safety distance matching each vehicle key is determined; then, based on the safety distance matching each vehicle key, a second preset range and a third preset range of each vehicle key are determined; finally, a corresponding MAC address is assigned to each vehicle key, and the MAC address corresponding to each vehicle key, the key type of each vehicle key, the second preset range and the third preset range of each vehicle key are associated and stored.

[0133] Among them, the key type indicates the type of electronic device corresponding to the vehicle key; the second preset range indicates the range beyond the safety distance that matches the vehicle key from the range where the vehicle is located; the third preset range indicates the range beyond the safety distance that matches the vehicle key from the range where the vehicle is located.

[0134] In one example, the key type of the vehicle key may indicate a physical key or the type of electronic device corresponding to the digital key, for example, the key type may indicate a physical key, a model A mobile phone, a model B mobile phone, a model C smart watch, a model D smart watch, etc. At this time, different key types may correspond to different safety distances, for example, the safety distance corresponding to the physical key lock is safety distance 1, the safety distance corresponding to the model A mobile phone is safety distance 2, the safety distance corresponding to the model B mobile phone is safety distance 3, the safety distance corresponding to the model C smart watch is safety distance 3, the safety distance corresponding to the model D smart watch is safety distance 4, and so on.

[0135] See also Figure 6 , Figure 6 A schematic diagram of a key pairing process provided in an embodiment of the present application, such as Figure 6As shown, after detecting the key pairing request initiated by the vehicle key end, it can be determined whether the key pairing request is the first pairing request. In the case where it is determined that it is not the first pairing request, the pairing is completed directly. In the case where it is determined that it is the first pairing request, the key type of each vehicle key is first determined, and then, based on the key type of each vehicle key, the safety distance that matches each vehicle key is determined. Then, based on the safety distance that matches each vehicle key, the second preset range and the third preset range of each vehicle key are determined. At this time, after assigning a corresponding MAC address to each vehicle key, the key pairing is completed. At this time, the key-related information of the vehicle key can be stored, including the MAC address corresponding to the vehicle key, the key type of the vehicle key, and the second preset range and the third preset range of the vehicle key.

[0136] In one example, when determining a safety distance that matches each vehicle key based on the key type of each vehicle key, a preset distance list can be obtained; then, based on the preset distance list and the type of electronic device indicated by the key type of each vehicle key, the safety distance that matches each vehicle key is determined.

[0137] The preset distance list is used to indicate the association between the preset types of electronic devices and the corresponding safety distances.

[0138] In one example, the preset distance list may include the association between the type of general electronic device and the corresponding safety distance, and the association between the type of specific electronic device and the corresponding safety distance. At this time, the general calibration range, that is, the general second calibration range and the general third calibration range, can be determined according to the general association relationship; and the specific calibration range, that is, the specific second calibration range and the specific third calibration range, can be determined according to the specific association relationship. Among them, the specific association relationship can indicate a specific electronic device. At this time, the number of specific electronic devices can be one or more, and the specific electronic device can be various models of mobile phones or smart watches, etc. The number and type of specific electronic devices are not limited here. For example, 10 mobile phones and the corresponding safety distances of each mobile phone can be set in the preset distance list, and the specific calibration ranges corresponding to the 10 mobile phones are obtained. Other electronic devices all use a general association relationship, that is, a general calibration range is obtained.

[0139] Among them, when setting the safety distance corresponding to the electronic device, the following rules need to be followed: the stronger the signal strength of the electronic device, the smaller the second preset range and the larger the third preset range; the stronger the blocking signal of the electronic device, the larger the second preset range and the smaller the third preset range.

[0140] This implementation method can set the association relationship between specific electronic devices and corresponding safety distances through a preset distance list, thereby making the calibration range of each electronic device more flexible and accurate, and further being able to more specifically determine whether the vehicle key is outside the vehicle.

[0141] See also Figure 7 , Figure 7 This is a flowchart of another vehicle locking method provided in an embodiment of the present application. Figure 7 As shown, the vehicle state of the vehicle can be detected. When it is detected that the vehicle meets the vehicle locking requirements, the location information of the vehicle key can be obtained according to the location information output by the vehicle key in real time, and the first location coordinates of the vehicle key can be obtained. At the same time, the key type of the vehicle key can also be determined according to the MAC address output by the vehicle key in real time. After that, it can be determined whether the vehicle key has a specific calibration range according to the key type of the vehicle key. If it is determined that it exists, the first calibration range and the second calibration range of the vehicle key are determined according to the specific calibration range. At this time, the specific second calibration range is the first calibration range of the vehicle key, and the specific third calibration range is the second calibration range of the vehicle key. If it is determined that it does not exist, the first calibration range and the second calibration range of the vehicle key are determined according to the universal calibration range. At this time, the universal second calibration range is the first calibration range of the vehicle key, and the universal third calibration range is the second calibration range of the vehicle key.

[0142] Afterwards, the first position coordinates can be compared with the first calibration range. When it is determined that the first position coordinates are within the first calibration range, a warning message is issued after the vehicle locking signal is detected. When it is determined that the first position coordinates are outside the first calibration range, the vehicle locking signal is detected within a preset time period (for example, 30 seconds), and after the vehicle locking signal is detected, the position information of the vehicle key is acquired again to obtain the second position coordinates, and the second position coordinates are compared with the second calibration range. When it is determined that the second position coordinates are outside the second calibration range, the vehicle is controlled to lock. When it is determined that the second position coordinates are within the second calibration range, a warning message is issued.

[0143] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0144] Figure 8 A schematic diagram of the structure of a vehicle locking device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the vehicle locking device 800 includes:

[0145] The first acquisition unit 801 is used to acquire the position information of the vehicle key of the vehicle and obtain the first position coordinates when it is detected that the vehicle meets the vehicle locking requirement.

[0146] The detection unit 802 is used to compare the first position coordinate with the first calibration range of the vehicle key, and detect a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range; wherein the first calibration range indicates the range after the vehicle is located beyond the safety distance; the safety distance corresponds to the positioning error of the vehicle key.

[0147] The second acquisition unit 803 is used to acquire the position information of the vehicle key again to obtain the second position coordinates when the vehicle locking signal is detected.

[0148] The control unit 804 is used to compare the second position coordinate with the second calibration range of the vehicle key, and control the vehicle to lock when it is determined that the second position coordinate is outside the second calibration range; wherein the second calibration range indicates the range after the vehicle is located inwardly retracted by a safety distance.

[0149] Fig. 9 A schematic diagram of the structure of another vehicle locking device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the vehicle locking device 900 includes:

[0150] The first acquisition unit 901 is used to acquire the position information of the vehicle key of the vehicle and obtain the first position coordinates when it is detected that the vehicle meets the vehicle locking requirement.

[0151] The detection unit 902 is used to compare the first position coordinate with the first calibration range of the vehicle key, and detect a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range; wherein the first calibration range indicates the range after the vehicle is located beyond the safety distance; the safety distance corresponds to the positioning error of the vehicle key.

[0152] The second acquisition unit 903 is used to acquire the position information of the vehicle key again to obtain the second position coordinates when the vehicle locking signal is detected.

[0153] The control unit 904 is used to compare the second position coordinate with the second calibration range of the vehicle key, and control the vehicle to lock when it is determined that the second position coordinate is outside the second calibration range; wherein the second calibration range indicates the range after the vehicle is located inwardly retracted by a safety distance.

[0154] In a possible implementation, the detection unit 902 includes a comparison module 9021, which is used to:

[0155] Acquire a first preset range that matches the vehicle, and determine the first preset range as a first calibration range of the vehicle key;

[0156] The first position coordinate is compared to a first calibrated range of the vehicle key.

[0157] In a possible implementation, the comparison module 9021 is used to:

[0158] Determine the MAC address of the vehicle key;

[0159] Determining a second preset range that matches the MAC address of the vehicle key; and determining the second preset range as the first calibration range of the vehicle key;

[0160] The first position coordinate is compared to a first calibrated range of the vehicle key.

[0161] In a possible implementation manner, the vehicle has multiple vehicle keys; the device further includes a response unit 905, which is used to:

[0162] In response to the key pairing request, determining a key type of each vehicle key of the vehicle; wherein the key type indicates a type of electronic device corresponding to the vehicle key;

[0163] Determining a safety distance matching each vehicle key based on a key type of each vehicle key;

[0164] Based on the safety distances matched with the respective vehicle keys, a second preset range and a third preset range of the respective vehicle keys are determined; wherein the second preset range indicates a range beyond the safety distance matched with the vehicle key from the range where the vehicle is located; and the third preset range indicates a range beyond the safety distance matched with the vehicle key from the range where the vehicle is located from the range where the vehicle is located;

[0165] A corresponding MAC address is assigned to each vehicle key, and the MAC address corresponding to each vehicle key, the key type of each vehicle key, the second preset range and the third preset range of each vehicle key are associated and stored.

[0166] In a possible implementation, the response unit 905 is configured to:

[0167] Obtaining a preset distance list; wherein the preset distance list is used to indicate the association between the preset types of electronic devices and the corresponding safety distances;

[0168] Based on the preset distance list and the type of electronic device indicated by the key type of each vehicle key, a safety distance matched with each vehicle key is determined.

[0169] In a possible implementation, the detection unit 902 includes a detection module 9022, which is used to:

[0170] When it is determined that the first position coordinate is outside the first calibration range, a vehicle locking signal is detected within a preset time period; wherein the vehicle locking signal indicates a keyless locking signal triggered by a user.

[0171] In a possible implementation manner, the device is further configured to include an alert unit 906, configured to:

[0172] When it is determined that the first position coordinate is not outside the first calibration range and a vehicle locking signal is detected, a warning message is issued.

[0173] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the electronic device 1000 includes: a memory 1001 and a processor 1002 .

[0174] Memory 1001 is a memory used to store computer-executable instructions in processor 1002 .

[0175] The processor 1002 is configured to execute the method provided in the above embodiment.

[0176] The electronic device further includes a receiver 1003 and a transmitter 1004. The receiver 1003 is used to receive instructions and data sent by an external device, and the transmitter 1004 is used to send instructions and data to the external device.

[0177] The present application also provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the vehicle locking method in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0178] An embodiment of the present application also provides a computer program product, which carries computer execution instructions. The instructions included in the computer execution instructions can be used to execute the steps of the vehicle locking method in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0179] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0180] It should be further noted that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flow chart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0181] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0182] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0183] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not otherwise specified, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not otherwise specified, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.

[0184] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for an electronic device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0185] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0186] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0187] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A vehicle locking method, It is characterized in that include: When it is detected that the vehicle meets the vehicle locking requirement, obtaining the position information of the vehicle key of the vehicle to obtain the first position coordinates; Comparing the first position coordinate with a first calibration range of the vehicle key, and detecting a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range; wherein the first calibration range indicates a range beyond a safety distance from a range where the vehicle is located; and the safety distance corresponds to a positioning error of the vehicle key; When the vehicle locking signal is detected, obtaining the position information of the vehicle key again to obtain a second position coordinate; The second position coordinate is compared with a second calibration range of the vehicle key, and when it is determined that the second position coordinate is outside the second calibration range, the vehicle is locked; wherein the second calibration range indicates the range where the vehicle is located after shrinking inward by the safety distance.

2. The method according to claim 1, It is characterized in that Comparing the first position coordinate with a first calibration range of the vehicle key includes: Acquire a first preset range matching the vehicle, and determine the first preset range as a first calibration range of the vehicle key; The first position coordinate is compared to a first calibrated range for the vehicle key.

3. The method according to claim 1, It is characterized in that Comparing the first position coordinate with a first calibration range of the vehicle key includes: Determining the MAC address of the vehicle key; Determining a second preset range that matches the MAC address of the vehicle key; and determining the second preset range as a first calibration range of the vehicle key; The first position coordinate is compared to a first calibrated range for the vehicle key.

4. The method according to claim 3, It is characterized in that The number of vehicle keys of the vehicle is multiple; the method further includes: In response to the key pairing request, determining a key type of each vehicle key of the vehicle; wherein the key type indicates a type of electronic device corresponding to the vehicle key; determining a safety distance matching each of the vehicle keys based on a key type of each of the vehicle keys; Based on the safety distance matched with each of the vehicle keys, a second preset range and a third preset range of each of the vehicle keys are determined; wherein the second preset range indicates a range beyond the safety distance matched with the vehicle key; and the third preset range indicates a range beyond the safety distance matched with the vehicle key; A corresponding MAC address is assigned to each of the vehicle keys, and the MAC address corresponding to each of the vehicle keys, the key type of each of the vehicle keys, the second preset range and the third preset range of each of the vehicle keys are associated and stored.

5. The method according to claim 4, It is characterized in that Determining a safety distance matching each of the vehicle keys based on a key type of each of the vehicle keys includes: Obtaining a preset distance list; wherein the preset distance list is used to indicate the association relationship between the preset electronic device type and the corresponding safety distance; Based on the preset distance list and the type of electronic device indicated by the key type of each of the vehicle keys, a safety distance matching each of the vehicle keys is determined.

6. The method according to claim 1, It is characterized in that When it is determined that the first position coordinate is outside the first calibration range, detecting a vehicle locking signal includes: When it is determined that the first position coordinate is outside the first calibration range, the vehicle locking signal is detected within a preset time period; wherein the vehicle locking signal indicates a keyless locking signal triggered by a user.

7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: When it is determined that the first position coordinate is not outside the first calibration range, the vehicle locking signal is detected and a warning message is issued.

8. A vehicle locking device, It is characterized in that include: A first acquisition unit is used to acquire the position information of the vehicle key of the vehicle to obtain the first position coordinates when it is detected that the vehicle meets the vehicle locking requirement; a detection unit, configured to compare the first position coordinate with a first calibration range of the vehicle key, and detect a vehicle locking signal when it is determined that the first position coordinate is outside the first calibration range; wherein the first calibration range indicates a range beyond a safety distance from a range where the vehicle is located; and the safety distance corresponds to a positioning error of the vehicle key; A second acquisition unit is used to acquire the position information of the vehicle key again to obtain a second position coordinate when the vehicle locking signal is detected; A control unit is used to compare the second position coordinate with a second calibration range of the vehicle key, and control the vehicle to lock when it is determined that the second position coordinate is outside the second calibration range; wherein the second calibration range indicates the range where the vehicle is located after shrinking the safety distance inward.

9. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the vehicle locking method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the vehicle locking method according to any one of claims 1 to 7 when executed by a processor.