Vehicle unlocking methods, devices, vehicles, user terminals, media, and software products

By acquiring ambient temperature and humidity when the vehicle is locked, and combining this with air pressure values ​​to calculate the height difference, the problem of low unlocking accuracy in existing technologies is solved, achieving accurate unlocking even when on the same floor.

CN123104572APending Publication Date: 2026-11-17CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611525914.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-29
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing vehicle unlocking methods determine whether to unlock based solely on the distance between the key and the vehicle, resulting in low unlocking accuracy. This is especially true in scenarios such as multi-story parking lots or multi-level parking garages, where unlocking can be triggered even when the key and vehicle are on different floors but the distance is less than a threshold.

Method used

The system acquires the first ambient temperature and humidity of the user terminal when the vehicle is locked, and continuously acquires the second ambient temperature and humidity when the key and the vehicle meet the preset unlocking conditions. It calculates the height difference using multiple air pressure values, temperature and humidity values, and generates a height detection result to determine whether the user terminal and the vehicle are in the same height range, thereby deciding whether to unlock.

Benefits of technology

This improves the accuracy of vehicle unlocking, ensuring that unlocking only occurs when the user and vehicle are on the same floor, thus reducing the occurrence of accidental unlocking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123104572A_ABST
    Figure CN123104572A_ABST
Patent Text Reader

Abstract

This invention relates to a vehicle unlocking method, apparatus, vehicle, user terminal, medium, and program product. In this method, when the vehicle is locked, it sends a first air pressure acquisition command to the user terminal and acquires a first ambient temperature and a first ambient humidity. When the vehicle detects that the distance and relative direction between the key and the vehicle meet preset unlocking conditions, it continuously sends a second altitude acquisition command to the user terminal and acquires a second ambient temperature and a second ambient humidity. Based on multiple second target air pressures and a first target air pressure, as well as the first ambient temperature, first ambient humidity, second ambient temperature, and second ambient humidity sent by the user terminal, the vehicle generates an altitude detection result. If the altitude detection result indicates that the user terminal and the vehicle are within the same altitude range, unlocking is performed. This solution improves unlocking accuracy by ensuring that the distance and relative direction between the key and the vehicle meet preset unlocking conditions and that the user terminal and the vehicle are within the same altitude range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, specifically to a vehicle unlocking method, device, vehicle, user terminal, medium, and program product. Background Technology

[0002] With the development of technology, keyless entry for vehicles has emerged, enabling vehicles to unlock automatically when a user approaches with the vehicle key, without requiring the user to unlock it, thus providing convenience for the user.

[0003] In existing technology, the vehicle detects the distance between the key and the vehicle, and unlocks the vehicle when the distance is less than a threshold. However, in scenarios such as multi-story parking garages or multi-level parking systems, where the key and vehicle are on different floors but the distance is less than the threshold, the vehicle can still be unlocked.

[0004] In summary, existing vehicle unlocking methods determine whether to unlock based solely on the distance between the key and the vehicle, resulting in low unlocking accuracy. Summary of the Invention

[0005] One objective of this invention is to provide a vehicle unlocking method to solve the problem of low unlocking accuracy caused by existing vehicle unlocking methods that determine whether to unlock based solely on the distance between the key and the vehicle. A second objective is to provide a vehicle unlocking device. A third objective is to provide a vehicle. A fourth objective is to provide a user terminal. A fifth objective is to provide a readable storage medium. A sixth objective is to provide a computer program product.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0007] In a first aspect, the present invention provides a vehicle unlocking method, applied to a vehicle, comprising:

[0008] When locking, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and first ambient humidity are acquired;

[0009] Receive the first target air pressure sent by the user terminal;

[0010] When the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, the system continuously sends a second air pressure acquisition command to the user terminal within a preset first duration, and acquires the second ambient temperature and the second ambient humidity.

[0011] Receive multiple second target air pressures sent by the user terminal;

[0012] Based on the plurality of second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, a height detection result is generated indicating whether the user terminal and the vehicle are at the same height range;

[0013] If the height detection result indicates that the user terminal and the vehicle are at the same height, then unlocking will be performed.

[0014] Furthermore, the preset unlocking conditions are:

[0015] The distance between the key and the vehicle is less than a preset distance threshold, and the relative direction between the key and the vehicle belongs to a preset direction set.

[0016] Further, the step of generating a height detection result indicating whether the user terminal and the vehicle are at the same height range based on the plurality of second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity includes:

[0017] For each second target air pressure, the altitude difference corresponding to the second target air pressure is calculated based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity.

[0018] If none of the height differences is less than a preset height threshold, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

[0019] Furthermore, the method also includes:

[0020] If any of the height differences is less than the preset height threshold, then the height differences corresponding to all the second target air pressures are sorted in order from earliest to latest according to the receiving time of the second target air pressure, to obtain a height difference sequence.

[0021] For each subsequence in the altitude difference sequence, the interval between the receiving times of the second target air pressure corresponding to the subsequence is taken as the time interval of the subsequence; each subsequence is a sequence formed by consecutive altitude differences less than the preset altitude threshold in the altitude difference sequence;

[0022] If there is a subsequence among all subsequences with a time interval greater than the preset second duration, then a height detection result indicating that the user terminal and the vehicle are in the same height range is generated;

[0023] If there is no subsequence with a time interval greater than the preset second duration among all subsequences, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

[0024] Further, based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, the altitude difference corresponding to the second target air pressure is calculated, including:

[0025] Based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, calculate the temperature and humidity error to eliminate false temperature;

[0026] The altitude difference corresponding to the second target air pressure is calculated based on the second target air pressure, the first target air pressure, and the temperature and humidity error to eliminate false temperature.

[0027] Further, the step of calculating temperature and humidity errors to eliminate false temperature based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity includes:

[0028] Calculate the first virtual temperature based on the first target air pressure, the first ambient temperature, and the first ambient humidity;

[0029] The second virtual temperature is calculated based on the second target air pressure, the second ambient temperature, and the second ambient humidity.

[0030] The arithmetic mean, harmonic mean, or weighted mean of the first and second virtual temperatures are used as the virtual temperature to eliminate the temperature and humidity error.

[0031] Furthermore, the method also includes:

[0032] If the height detection result indicates that the user terminal and the vehicle are not at the same height, then unlocking will not be performed.

[0033] Furthermore, before continuously sending the second air pressure acquisition command to the user terminal within a preset first duration, the method further includes:

[0034] Receive a stability indicator sent by the user terminal, the stability indicator being used to indicate whether the air pressure is stable;

[0035] The step of continuously sending a second air pressure acquisition command to the user terminal within a preset first time period includes:

[0036] If the stability indicator indicates that the air pressure is stable, a second air pressure acquisition command will be continuously sent to the user terminal within a preset first time period.

[0037] Furthermore, the method also includes:

[0038] If the stability indicator suggests that the air pressure is unstable, then unlocking is performed.

[0039] Secondly, the present invention provides a vehicle unlocking method, applied to a user terminal, comprising:

[0040] Receive the first air pressure acquisition command sent by the vehicle;

[0041] Multiple initial air pressure values ​​are obtained using a barometer;

[0042] A first target air pressure is generated based on the plurality of first air pressure values;

[0043] Send the first target air pressure to the vehicle;

[0044] Receive the second air pressure acquisition command sent by the vehicle;

[0045] Multiple second pressure values ​​are obtained through the barometer;

[0046] A second target pressure is generated based on the plurality of second pressure values;

[0047] The second target air pressure is sent to the vehicle.

[0048] Furthermore, after obtaining multiple first pressure values ​​via a barometer, the method further includes:

[0049] If the standard deviation of the plurality of first air pressure values ​​is greater than a preset stability threshold, a stability indicator indicating air pressure instability is generated.

[0050] If the standard deviation of the plurality of first air pressure values ​​is less than or equal to the preset stability threshold, a stability indicator indicating stable air pressure is generated.

[0051] The stability identifier is sent to the vehicle.

[0052] Thirdly, the present invention provides a vehicle unlocking device, comprising:

[0053] Communication module, used for:

[0054] When locking, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and first ambient humidity are acquired;

[0055] Receive the first target air pressure sent by the user terminal;

[0056] When the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, the system continuously sends a second air pressure acquisition command to the user terminal within a preset first duration, and acquires the second ambient temperature and the second ambient humidity.

[0057] Receive multiple second target air pressures sent by the user terminal;

[0058] The processing module is used to generate a height detection result indicating whether the user terminal and the vehicle are at the same height range based on the plurality of second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity.

[0059] The control module is used to unlock the device if the height detection result indicates that the user terminal and the vehicle are at the same height.

[0060] Fourthly, the present invention provides a vehicle unlocking device, comprising:

[0061] The communication module is used to receive the first air pressure acquisition command sent by the vehicle;

[0062] The acquisition module is used to acquire multiple first air pressure values ​​through a barometer;

[0063] The processing module is used to generate a first target air pressure based on the plurality of first air pressure values;

[0064] The communication module is also used for:

[0065] Send the first target air pressure to the vehicle;

[0066] Receive the second air pressure acquisition command sent by the vehicle;

[0067] The acquisition module is also used to acquire multiple second pressure values ​​through the barometer;

[0068] The processing module is further configured to generate a second target air pressure based on the plurality of second air pressure values;

[0069] The communication module is also used to send the second target air pressure to the vehicle.

[0070] Fifthly, the present invention provides a vehicle comprising:

[0071] Processor, memory, communication interface;

[0072] The memory is used to store the executable instructions of the processor;

[0073] The processor is configured to execute the vehicle unlocking method according to any one of the first aspects by executing the executable instructions.

[0074] Sixthly, the present invention provides a user terminal, comprising:

[0075] Processor, memory, communication interface, and barometer;

[0076] The memory is used to store the executable instructions of the processor;

[0077] The processor is configured to execute the vehicle unlocking method according to any of the second aspects by executing the executable instructions.

[0078] In a seventh aspect, the present invention provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the vehicle unlocking method described in either the first or second aspect.

[0079] Eighthly, the present invention provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the vehicle unlocking method described in either the first or second aspect.

[0080] The beneficial effects of this invention are:

[0081] (1) This application sends a first air pressure acquisition command to the user terminal when the vehicle is locked, and acquires a first ambient temperature and a first ambient humidity; the user terminal generates a first target air pressure based on the first air pressure value acquired by the barometer and sends it to the vehicle; when the vehicle detects that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, it continuously sends a second altitude acquisition command to the user terminal within a preset first time period, and acquires a second ambient temperature and a second ambient humidity; the user terminal generates a second target air pressure based on the second air pressure value acquired by the barometer and sends it to the vehicle; the vehicle generates an altitude detection result based on multiple second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity; if the altitude detection result indicates that the user terminal and the vehicle are in the same altitude range, then unlocking is performed. This solution improves unlocking accuracy by ensuring that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, and that the user terminal and the vehicle are in the same altitude range.

[0082] (2) This application generates altitude detection results by using multiple second target air pressures, first target air pressures, first ambient temperature, first ambient humidity, second ambient temperature and second ambient humidity, thereby improving the accuracy of altitude detection results.

[0083] (3) This application determines altitude by using multiple air pressure values, which improves the accuracy of altitude. Attached Figure Description

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

[0085] Figure 1 A flowchart illustrating an embodiment of the vehicle unlocking method provided in this application;

[0086] Figure 2 A schematic diagram of the unlocking decision-making process provided for this application;

[0087] Figure 3 This is a schematic diagram of the structure of Embodiment 1 of the vehicle unlocking device provided in this application;

[0088] Figure 4 This is a schematic diagram of the structure of Embodiment 2 of the vehicle unlocking device provided in this application;

[0089] Figure 5 A structural schematic diagram of a vehicle provided in this application;

[0090] Figure 6 This is a schematic diagram of the structure of a user terminal provided in this application.

[0091] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0092] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0093] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. The drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.

[0094] With the development of technology, keyless entry for vehicles has emerged, enabling vehicles to unlock automatically when a user approaches with the vehicle key, without requiring the user to unlock it, thus providing convenience for the user.

[0095] In existing technology, the vehicle detects the distance between the key and the vehicle, and unlocks the vehicle when the distance is less than a threshold. However, in scenarios such as multi-story parking garages or multi-level parking systems, the key and the vehicle may be on different floors, but if the distance is less than the threshold, the vehicle may still be unlocked, leading to issues with low unlocking accuracy.

[0096] To address the problems existing in the prior art, the inventors, during their research on vehicle unlocking methods, discovered that to improve unlocking accuracy, a method can be added to determine whether the user terminal and the vehicle are within the same height range, thus confirming whether the user and vehicle are on the same floor before unlocking. When the vehicle is locked, it sends a first air pressure acquisition command to the user terminal and acquires a first ambient temperature and a first ambient humidity. The user terminal generates a first target air pressure based on the first air pressure value acquired by a barometer and sends it to the vehicle. When the vehicle detects that the distance and relative direction between the key and the vehicle meet preset unlocking conditions, it continuously sends a second altitude acquisition command to the user terminal for a preset first duration, and acquires a second ambient temperature and a second ambient humidity. The user terminal generates a second target air pressure based on the second air pressure value acquired by the barometer and sends it to the vehicle. The vehicle generates an altitude detection result based on multiple second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity. If the altitude detection result indicates that the user terminal and the vehicle are within the same height range, then unlocking is performed. Based on the above inventive concept, the vehicle unlocking scheme of this application was designed.

[0097] The following provides examples illustrating the application scenarios of the vehicle unlocking method provided in this application.

[0098] For example, in this application scenario, the user parks the vehicle on the second basement level, gets out of the car with the user terminal and key, locks the vehicle with the key, and leaves.

[0099] When the vehicle is locked, it sends a first air pressure acquisition command to the user terminal and acquires the first ambient temperature and the first ambient humidity.

[0100] After receiving the first air pressure acquisition command sent by the vehicle, the user terminal acquires multiple first air pressure values ​​through its own barometer; then, based on the multiple first air pressure values, it generates a first target air pressure and sends it to the vehicle.

[0101] After the user returns, they go through the first basement level to the second basement level. When the user is on the first basement level, the vehicle detects that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions. Within a preset first duration, the vehicle continuously sends a second air pressure acquisition command to the user terminal and acquires the second ambient temperature and the second ambient humidity.

[0102] It should be noted that the first preset duration can be 300 milliseconds, 500 milliseconds, 900 milliseconds, etc. This application embodiment does not limit the first preset duration, and it can be determined according to the actual situation.

[0103] Each time the user terminal receives a second air pressure acquisition command, it acquires multiple second air pressure values ​​through a barometer; based on the multiple second air pressure values, it generates a second target air pressure and sends it to the vehicle.

[0104] Based on multiple second target air pressures, first target air pressures, first ambient temperature, first ambient humidity, second ambient temperature, and second ambient humidity, the vehicle generates a height detection result indicating that the user terminal and the vehicle are not at the same height range, and the vehicle does not unlock.

[0105] When the user approaches the vehicle on the second basement level, the vehicle detects again that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions. Within a preset first duration, it continuously sends a second air pressure acquisition command to the user terminal and acquires the second ambient temperature and second ambient humidity again.

[0106] Each time the user terminal receives a second air pressure acquisition command, it acquires multiple second air pressure values ​​through a barometer; based on the multiple second air pressure values, it generates a second target air pressure and sends it to the vehicle.

[0107] Based on multiple second target air pressures, first target air pressures, first ambient temperature, first ambient humidity, second ambient temperature, and second ambient humidity, the vehicle generates a height detection result indicating that the user terminal and the vehicle are at the same height range. The vehicle then unlocks, and the user can directly open the car door.

[0108] It should be noted that the above scenario is only an example of an application scenario provided by the embodiments of this application. The embodiments of this application do not limit the actual form of the various devices included in the scenario, nor do they limit the interaction method between devices. In the specific application of the solution, it can be set according to actual needs.

[0109] The technical solution of this application will now be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0110] Figure 1 This is a flowchart illustrating an embodiment of the vehicle unlocking method provided in this application. This embodiment describes how, when the vehicle is locked, a first ambient temperature and a first ambient humidity are acquired, and a first target air pressure is acquired via a user terminal. When the distance and relative direction between the key and the vehicle meet preset unlocking conditions, a second ambient temperature and a second ambient humidity are acquired, and a second target air pressure is acquired via the user terminal. Furthermore, based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, the method determines when the user terminal and the vehicle are within the same height range and unlocks the vehicle. The method in this embodiment can be implemented through software, hardware, or a combination of both. Figure 1 As shown, the vehicle unlocking method specifically includes the following steps:

[0111] S101: When the vehicle is locked, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and the first ambient humidity are acquired.

[0112] In this step, in order to improve the unlocking accuracy of the keyless entry function, when the vehicle is locked, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and the first ambient humidity are acquired.

[0113] It should be noted that the communication method between the vehicle and the user terminal can be Bluetooth communication, Wireless Fidelity (WiFi) communication, cellular mobile network communication, etc. This application embodiment does not limit the communication method between the vehicle and the user terminal, and it can be determined according to the actual situation.

[0114] It should be noted that the vehicle can obtain the first ambient temperature and humidity through its own temperature and humidity sensors, and can also send a temperature and humidity acquisition request to the cloud server. The temperature and humidity acquisition request includes the current time and current location. The cloud server, based on the current time and current location, retrieves the corresponding temperature and humidity, and then sends it to the vehicle, allowing the vehicle to obtain the first ambient temperature and humidity. This application embodiment does not limit the method by which the vehicle obtains the first ambient temperature and humidity; it can be determined according to the actual situation.

[0115] S102: After receiving the first air pressure acquisition command sent by the vehicle, the user terminal acquires multiple first air pressure values ​​through the barometer.

[0116] In this step, after the vehicle sends a first air pressure acquisition command to the user terminal, the user terminal can receive the first air pressure acquisition command and then acquire multiple first air pressure values ​​through its own barometer.

[0117] S103: The user terminal generates a first target air pressure based on multiple first air pressure values.

[0118] In this step, after the user terminal obtains multiple first air pressure values, it generates a first target air pressure based on these air pressure values.

[0119] Specifically, the average or median of multiple first pressure values ​​is taken as the first target pressure.

[0120] Calculating the first target air pressure based on the average or median of the first air pressure values ​​can reduce the impact of instantaneous noise and improve the accuracy of the first target air pressure.

[0121] S104: The user terminal sends the first target air pressure to the vehicle.

[0122] In this step, after the user terminal obtains the first target air pressure, it sends the first target air pressure to the vehicle.

[0123] S105: The vehicle receives the first target air pressure sent by the user terminal.

[0124] In this step, after the user terminal sends the first target air pressure to the vehicle, the vehicle can receive the first target air pressure and store it for use when determining whether to unlock later.

[0125] The first target air pressure is obtained through the user terminal when the vehicle is locked. At this time, the user terminal is relatively close to the vehicle, and the first target air pressure can be regarded as the air pressure at the location of the vehicle.

[0126] S106: When the vehicle detects that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, it continuously sends a second air pressure acquisition command to the user terminal within a preset first time period, and acquires the second ambient temperature and the second ambient humidity.

[0127] In this step, after the vehicle is locked, the system continuously monitors the distance and relative orientation between the key and the vehicle to determine if they meet preset unlocking conditions. When the distance and relative orientation between the key and the vehicle meet the preset unlocking conditions, it indicates that the user and the vehicle are close in the horizontal direction and the orientation meets the unlocking requirements. To determine if the user and the vehicle are close in the vertical direction, a second air pressure acquisition command is continuously sent to the user terminal within a preset first time period, and the second ambient temperature and second ambient humidity are acquired.

[0128] The preset unlocking conditions are: the distance between the key and the vehicle is less than a preset distance threshold, and the relative direction between the key and the vehicle belongs to a preset direction set.

[0129] The vehicle contains multiple devices that detect signals emitted by the key, each facing a different direction. When a device detects a signal, it determines the distance corresponding to the signal strength based on a preset relationship between signal strength and distance. The maximum distance obtained from all devices is taken as the distance between the key and the vehicle; the orientation of the device that detected the distance is taken as the relative direction between the key and the vehicle. The vehicle can also calculate the angle of arrival of the key's signal and determine the relative direction between the key and the vehicle based on this angle.

[0130] In the relationship between signal strength and distance, signal strength and distance are negatively correlated.

[0131] It should be noted that the key and the user terminal can be the same device or different devices.

[0132] It should be noted that the way the vehicle obtains the second ambient temperature and the second ambient humidity is similar to the way it obtains the first ambient temperature and the first ambient humidity, and will not be described again here.

[0133] By measuring the distance between the key and the vehicle, as well as their relative orientation, the system can determine whether the user and the vehicle are close enough in the horizontal direction and whether the orientation meets the unlocking requirements, thus improving unlocking accuracy.

[0134] S107: After receiving the second air pressure acquisition command sent by the vehicle, the user terminal acquires multiple second air pressure values ​​through the barometer.

[0135] In this step, after the vehicle sends a second altitude acquisition command to the user terminal, the user terminal can receive the second altitude acquisition command. In order to obtain the altitude, the user terminal needs to obtain multiple second air pressure values ​​through its own barometer.

[0136] S108: The user terminal generates a second target air pressure based on multiple second air pressure values.

[0137] In this step, after the user terminal obtains multiple second air pressure values, it generates a second target air pressure based on these air pressure values.

[0138] It should be noted that this step is the same as the process of calculating the first target air pressure in step S103, and will not be repeated here.

[0139] S109: The user terminal sends the second target air pressure to the vehicle.

[0140] In this step, after the user terminal obtains the second target air pressure, it sends the second target air pressure to the vehicle so that the vehicle can calculate the height difference to determine whether to unlock.

[0141] S110: After receiving multiple second target air pressures sent by the user terminal, the vehicle generates a height detection result indicating whether the user terminal and the vehicle are in the same height range based on the multiple second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity.

[0142] In this step, after the user terminal sends the second target air pressure to the vehicle, the vehicle can receive the second target air pressure. Since the vehicle continuously sends the second air pressure acquisition command to the user terminal within a preset first time period, the user terminal generates a second target air pressure and sends it to the vehicle each time it receives the second air pressure acquisition command, so the vehicle can receive multiple second target air pressures.

[0143] Then, based on multiple second target air pressures, a first target air pressure, a first ambient temperature, a first ambient humidity, a second ambient temperature, and a second ambient humidity, a height detection result is generated to indicate whether the user terminal and the vehicle are at the same height. The second target air pressure can represent the air pressure at the user's location, as well as the air pressure at the current location of the user terminal.

[0144] Specifically, for each second target air pressure, the altitude difference corresponding to the second target air pressure is calculated based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity.

[0145] That is, firstly, based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, calculate the temperature and humidity error to eliminate false temperature.

[0146] The first virtual temperature can be calculated based on the first target air pressure, the first ambient temperature, and the first ambient humidity; the second virtual temperature can be calculated based on the second target air pressure, the second ambient temperature, and the second ambient humidity; the arithmetic mean, harmonic mean, or weighted mean of the first virtual temperature and the second virtual temperature can be used as the temperature and humidity error to eliminate the virtual temperature.

[0147] According to the formula Calculate the first virtual temperature. Among them, , , Indicates the first false temperature. Indicates the first ambient temperature. Indicates the first target air pressure. Indicates water vapor pressure. Indicates the first ambient humidity. This indicates the saturated vapor pressure.

[0148] According to the formula Calculate the second imaginary temperature. Among them, , , Indicates the second virtual temperature. Indicates the second ambient temperature. Indicates the second target air pressure. Indicates water vapor pressure. Indicates the second ambient humidity. This indicates the saturated vapor pressure.

[0149] For the weighted average of the first and second imaginary temperatures, the weight of the first imaginary temperature is the first target air pressure, and the weight of the second imaginary temperature is the second target air pressure.

[0150] After calculating the temperature and humidity error and eliminating the false temperature, the altitude difference corresponding to the second target air pressure is calculated based on the first target air pressure, the second target air pressure, and the temperature and humidity error after eliminating the false temperature.

[0151] According to the formula Calculate the height difference. Among them, This represents the height difference, and R represents the universal gas constant. M represents the acceleration due to gravity, and M represents the molar mass of air. This indicates that temperature and humidity errors have been eliminated, thus eliminating false temperature readings. Indicates the first target air pressure. This indicates the second target air pressure.

[0152] If none of the height differences is less than the preset height threshold, it means that the user and the vehicle are not on the same floor, and that the user terminal and the vehicle are not in the same height range. In this case, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

[0153] It should be noted that the preset height threshold can be 2 meters, 3 meters, 4 meters, etc. This application embodiment does not limit the preset height threshold, and it can be determined according to the actual situation.

[0154] If any of the height differences is less than a preset height threshold, then the height differences corresponding to all the second target air pressures are sorted in order from earliest to latest according to the time of receipt of the second target air pressure, to obtain a height difference sequence.

[0155] For each subsequence in the altitude difference sequence, the interval between the receiving times of the second target air pressure corresponding to that subsequence is taken as the time interval of that subsequence. Each subsequence is a sequence formed by consecutive altitude differences less than a preset altitude threshold in the altitude difference sequence.

[0156] The time interval of a subsequence is the time interval between the receiving time of the second target air pressure corresponding to the first altitude difference in the subsequence and the receiving time of the second target air pressure corresponding to the last altitude difference in the subsequence.

[0157] For example, the height difference sequence is: a1, a2, a3, a4, a5, a6, a7, a8, a9. Since a1, a3, a4, a5, a8, and a9 are all less than a preset height threshold, three subsequences are obtained. The first subsequence has only one height difference, a1; the second subsequence has a3, a4, and a5; and the third subsequence has a8 and a9. The time interval of the first subsequence is 0; the time interval of the second subsequence is the time interval between the reception times of a3 and a5; and the time interval of the third subsequence is the time interval between the reception times of a8 and a9.

[0158] If there is a subsequence among all subsequences with a time interval greater than the preset second duration, it indicates that the user and vehicle are continuously detected to be on the same layer, and it also indicates that the user terminal and vehicle are continuously detected to be in the same height range. In this case, a height detection result indicating that the user terminal and vehicle are in the same height range is generated.

[0159] It should be noted that the preset second duration can be 50 milliseconds, 100 milliseconds, 200 milliseconds, etc. This application embodiment does not limit the preset second duration, and it can be determined according to the actual situation.

[0160] If none of the subsequences has a time interval greater than the preset second duration, it indicates that the user and vehicle are only occasionally detected to be on the same floor, which may be due to abnormal data. To eliminate the influence of abnormal data, a height detection result indicating that the user terminal and vehicle are not on the same height range is generated. Abnormal data may be caused by vehicle calculation errors, communication interference, or the user's proximity to the vehicle for a short period of time. For example, if a user parks the vehicle next to the elevator on the second basement level, and then takes the elevator from the first basement level to the third basement level, the user may be briefly close to the vehicle on the second basement level, thus occasionally detecting that the user and vehicle are on the same floor. In this case, the vehicle does not need to be unlocked, and a height detection result indicating that the user terminal and vehicle are not on the same height range is generated.

[0161] By determining whether there are subsequences with a time interval greater than a preset second duration among all subsequences, the height detection result can be determined, which can reduce the impact of abnormal data and improve the accuracy of height detection results.

[0162] In one implementation, after obtaining the subsequences, if there is a subsequence with a height difference greater than a preset number among all subsequences, it indicates that the user and vehicle are continuously detected to be on the same layer, and it also indicates that the user terminal and vehicle are continuously detected to be in the same height range. Then, a height detection result indicating that the user terminal and vehicle are in the same height range is generated.

[0163] If there is no subsequence with a height difference greater than the preset number among all subsequences, it means that the user and vehicle are only occasionally detected to be on the same level, which may be caused by abnormal data. In order to eliminate the influence of abnormal data, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

[0164] It should be noted that the preset number can be 2, 5, 7, 10, 20, etc. This application embodiment does not limit the preset number, and it can be determined according to the actual situation.

[0165] The principle behind the formula for calculating altitude difference is explained below. The formula for barometric altitude is: Where Z represents altitude, and P represents the target air pressure corresponding to altitude Z. R represents the atmospheric pressure at sea level, and R represents the universal gas constant. M represents the acceleration due to gravity, and M represents the molar mass of air. This represents virtual temperature. Altitude is related to virtual temperature, and virtual temperature can be used as a benchmark for calculating altitude.

[0166] Virtual temperature is a hypothetical temperature concept, referring to the temperature of dry air with the same density as moist air under equal air pressure conditions. Taking the formula for calculating the first virtual temperature above as an example, the physical meaning of virtual temperature will be explained. Given a first target air pressure... If the temperature of the humid air is the first ambient temperature... Humidity is the primary environmental humidity. Then the first false temperature It is to make dry air in the same The temperature that dry air should have when it has the same density as moist air.

[0167] The first position is defined as the position of the user terminal when the vehicle is locked, and the second position is defined as the position of the user terminal when the vehicle detects that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions.

[0168] As shown in the formulas for calculating the first and second virtual temperatures above, virtual temperatures are related to both temperature and humidity. When the first and second ambient temperatures and humidity levels differ, the first and second virtual temperatures will differ. If we directly substitute the first virtual temperature and the first target air pressure into the altitude formula to obtain the altitude at the first location, and substitute the second virtual temperature and the second target air pressure into the altitude formula to obtain the altitude at the second location, using the absolute value of the difference between the altitudes at the second and first locations as the altitude difference will result in inaccurate results and errors. This is because the altitude at the first location is under the first virtual temperature, while the altitude at the second location is under the second virtual temperature; the scales used are different, so directly subtracting the two will introduce errors.

[0169] To eliminate errors, altitude can be calculated using the same scale, thus eliminating temperature and humidity errors, such as artificial temperature. This serves as a scale for eliminating errors. According to the barometric altitude formula, the altitude difference without absolute value is... .in, Indicates the altitude of the second location. Indicates the altitude of the first position. Indicates the first target air pressure. This indicates the second target air pressure.

[0170] The first virtual temperature Second virtual temperature The arithmetic mean, harmonic mean, or weighted mean are used as the temperature and humidity error to eliminate illusory temperature. The altitude of the first location The altitude of the second location The height difference is calculated under the same scale, so the calculated height difference can eliminate the error caused by different virtual temperatures, that is, it can eliminate the error caused by different temperatures and humidity.

[0171] It is calculated based on the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, and then derived from the formula for calculating the height difference. It can be seen that the height difference can be calculated based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity. The height difference can then be used to determine whether the user terminal and the vehicle are in the same height range, and generate a height detection result.

[0172] S111: If the height detection result indicates that the user terminal and the vehicle are at the same height, the vehicle will be unlocked.

[0173] In this step, after the vehicle obtains the height detection result, if the height detection result indicates that the user terminal and the vehicle are at the same height, it means that the user and the vehicle are close in the horizontal direction and the direction meets the unlocking requirements. In addition, the user and the vehicle are close in the vertical direction, and the vehicle will then unlock.

[0174] It should be noted that the vehicle can also unlock the corresponding door or open the trunk depending on the relative orientation of the key and the vehicle.

[0175] It should be noted that if the height detection result indicates that the user terminal and the vehicle are not at the same height, it means that the user and the vehicle are far apart in the vertical direction, and therefore the unlocking will not be performed.

[0176] Whether to unlock the vehicle depends on a comprehensive judgment based on the distance between the key and the vehicle, their relative orientation, and the height detected. For example, Figure 2 The diagram illustrating the unlocking decision-making process provided in this application is as follows: Figure 2 As shown, the system determines whether the distance between the key and the vehicle is less than a preset distance threshold, whether the relative direction between the key and the vehicle belongs to a preset direction set, and whether the height detection result indicates that the user terminal and the vehicle are at the same height. If the distance between the key and the vehicle is less than the preset distance threshold, the relative direction between the key and the vehicle belongs to the preset direction set, and the height detection result indicates that the user terminal and the vehicle are at the same height, then the vehicle is unlocked. If the distance between the key and the vehicle is greater than or equal to the preset distance threshold, the relative direction between the key and the vehicle does not belong to the preset direction set, or the height detection result indicates that the user terminal and the vehicle are not at the same height, then the vehicle is not unlocked.

[0177] The vehicle unlocking method provided in this embodiment involves the vehicle sending a first air pressure acquisition command to the user terminal when locked, and acquiring a first ambient temperature and a first ambient humidity. The user terminal generates a first target air pressure based on the first air pressure value acquired by a barometer and sends it to the vehicle. When the vehicle detects that the distance and relative direction between the key and the vehicle meet preset unlocking conditions, it continuously sends a second altitude acquisition command to the user terminal for a preset first time period, and acquires a second ambient temperature and a second ambient humidity. The user terminal generates a second target air pressure based on the second air pressure value acquired by the barometer and sends it to the vehicle. The vehicle generates an altitude detection result based on multiple second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity. If the altitude detection result indicates that the user terminal and the vehicle are within the same altitude range, then unlocking is performed. Compared to the prior art, which only determines whether to unlock based on the distance between the key and the vehicle, this solution improves unlocking accuracy by ensuring that the distance and relative direction between the key and the vehicle meet preset unlocking conditions, and that the user terminal and the vehicle are within the same altitude range.

[0178] Based on the above embodiments, the following describes the second embodiment of the vehicle unlocking method provided in this application, in which the user terminal generates a stability identifier after obtaining the first air pressure value and sends it to the vehicle, and the vehicle determines whether to unlock based on the stability identifier.

[0179] After the user terminal obtains the first air pressure value, it can generate a stability indicator based on multiple first air pressure values.

[0180] If the standard deviation of multiple first air pressure values ​​is greater than the preset stability threshold, it indicates that the fluctuation of multiple first air pressure values ​​is large, and a stability indicator indicating air pressure instability is generated.

[0181] If the standard deviation of multiple first air pressure values ​​is less than or equal to the preset stability threshold, it indicates that the fluctuation of multiple first air pressure values ​​is small, and a stability indicator indicating stable air pressure is generated.

[0182] It should be noted that the preset stability threshold can be 0.5hPa, 1hPa, 1.5hPa, etc. This application embodiment does not limit the preset stability threshold, which can be determined according to the actual situation.

[0183] The accuracy of stability indicators can be improved by generating stability indicators using the standard deviation of air pressure values.

[0184] The user terminal sends a stability indicator to the vehicle, which then receives the indicator. When the vehicle detects that the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, if the stability indicator indicates stable air pressure, it means the first target air pressure is accurate and derived from a stable first air pressure value. In this case, the vehicle continuously sends a second air pressure acquisition command to the user terminal for a preset first duration.

[0185] If the stability indicator shows that the air pressure is unstable, it means that the first target air pressure is obtained based on the unstable first air pressure value and is inaccurate. Therefore, a downgrade process is performed. Since the user and the vehicle are relatively close in the horizontal direction and the direction meets the unlocking requirements, the vehicle will unlock to avoid the situation where the user is close to the vehicle but cannot unlock it.

[0186] In one implementation, the vehicle starts timing when it sends a first air pressure acquisition command to the user terminal and stops timing when it receives the first target air pressure, thus obtaining the timing duration. If the distance and relative direction between the key and the vehicle meet preset unlocking conditions, and the timing duration is less than a preset duration threshold, it indicates that the first target air pressure is safe, and a second air pressure acquisition command is continuously sent to the user terminal within the preset first duration. If the timing duration is greater than or equal to the preset duration threshold, it indicates that the first target air pressure poses a safety hazard, and the first target air pressure is not used to determine whether to unlock. Since the user and vehicle are relatively close in the horizontal direction at this time, and the direction meets the unlocking requirements, the vehicle unlocks to avoid a situation where the user is close to the vehicle but cannot unlock it.

[0187] It should be noted that the preset duration threshold can be 50ms, 100ms, 150ms, etc. This application embodiment does not limit the preset duration threshold, and it can be determined according to the actual situation.

[0188] The vehicle unlocking method provided in this embodiment improves the accuracy of vehicle unlocking by continuously sending a second air pressure acquisition command to the user terminal for a preset first time period when the vehicle detects that the distance and relative direction between the key and the vehicle meet preset unlocking conditions, and if the stability indicator indicates stable air pressure. This allows for determining whether to unlock based on altitude. By unlocking when the stability indicator indicates unstable air pressure, the method avoids situations where the user is close to the vehicle but cannot unlock it due to the unavailability of the first target air pressure.

[0189] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0190] Figure 3This is a schematic diagram of the structure of a vehicle unlocking device according to a first embodiment of the present application; the device can be integrated into the vehicle in the above method embodiments, or it can be implemented using the vehicle in the above method embodiments. Figure 3 As shown, the vehicle unlocking device 30 includes:

[0191] Communication module 31 is used for:

[0192] When locking, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and first ambient humidity are acquired;

[0193] Receive the first target air pressure sent by the user terminal;

[0194] When the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, the system continuously sends a second air pressure acquisition command to the user terminal within a preset first duration, and acquires the second ambient temperature and the second ambient humidity.

[0195] Receive multiple second target air pressures sent by the user terminal;

[0196] Processing module 32 is used to generate a height detection result indicating whether the user terminal and the vehicle are in the same height range based on multiple second target air pressures, first target air pressures, first ambient temperature, first ambient humidity, second ambient temperature and second ambient humidity.

[0197] The control module 33 is used to unlock the device if the height detection result indicates that the user terminal and the vehicle are at the same height.

[0198] Furthermore, the preset unlock conditions are:

[0199] The distance between the key and the vehicle is less than a preset distance threshold, and the relative direction between the key and the vehicle belongs to a preset direction set.

[0200] Furthermore, processing module 32 is specifically used for:

[0201] For each second target air pressure, calculate the altitude difference corresponding to the second target air pressure based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity;

[0202] If none of the height differences is less than a preset height threshold, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

[0203] Furthermore, the processing module 32 is also used for:

[0204] If any of the height differences is less than a preset height threshold, then the height differences corresponding to all the second target air pressures are sorted in order from earliest to latest according to the receiving time of the second target air pressure, to obtain a height difference sequence.

[0205] For each subsequence in the altitude difference sequence, the interval between the receiving times of the second target air pressure corresponding to the subsequence is taken as the time interval of the subsequence; each subsequence is a sequence formed by consecutive altitude differences less than a preset altitude threshold in the altitude difference sequence.

[0206] If there is a subsequence among all subsequences with a time interval greater than the preset second duration, then a height detection result indicating that the user terminal and the vehicle are in the same height range is generated;

[0207] If there is no subsequence with a time interval greater than the preset second duration among all subsequences, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

[0208] Furthermore, processing module 32 is specifically used for:

[0209] Based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, calculate the temperature and humidity error to eliminate false temperature;

[0210] Based on the second target air pressure, the first target air pressure, and the temperature and humidity error to eliminate false temperature, calculate the altitude difference corresponding to the second target air pressure.

[0211] Furthermore, processing module 32 is specifically used for:

[0212] Calculate the first virtual temperature based on the first target air pressure, the first ambient temperature, and the first ambient humidity;

[0213] Calculate the second virtual temperature based on the second target air pressure, the second ambient temperature, and the second ambient humidity;

[0214] The arithmetic mean, harmonic mean, or weighted mean of the first and second virtual temperatures are used as the temperature and humidity error to eliminate virtual temperatures.

[0215] Furthermore, the control module 33 is also used for:

[0216] If the height detection result indicates that the user terminal and the vehicle are not at the same height, then unlocking will not be performed.

[0217] Furthermore, before continuously sending the second air pressure acquisition command to the user terminal within a preset first duration, the communication module 31 is also used for:

[0218] Receive stability flags sent by user terminals. Stability flags are used to indicate whether the air pressure is stable.

[0219] Communication module 31 is specifically used for:

[0220] If the stability indicator shows that the air pressure is stable, a second air pressure acquisition command will be continuously sent to the user terminal within a preset first time period.

[0221] Furthermore, the control module 33 is also used for:

[0222] If the stability indicator shows that the air pressure is unstable, then unlock the device.

[0223] The vehicle unlocking device provided in this embodiment is used to execute the technical solution of the vehicle in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0224] Figure 4 This is a schematic diagram of the structure of a second embodiment of the vehicle unlocking device provided in this application; the device can be integrated into the user terminal in the above method embodiments, or it can be implemented through the user terminal in the above method embodiments. Figure 4 As shown, the vehicle unlocking device 40 includes:

[0225] Communication module 41 is used to receive the first air pressure acquisition command sent by the vehicle;

[0226] The acquisition module 42 is used to acquire multiple first air pressure values ​​through a barometer;

[0227] Processing module 43 is used to generate a first target air pressure based on multiple first air pressure values;

[0228] Communication module 41 is also used for:

[0229] Send the first target air pressure to the vehicle;

[0230] Receive the second air pressure acquisition command sent by the vehicle;

[0231] The acquisition module 42 is also used to acquire multiple second pressure values ​​via a barometer;

[0232] The processing module 43 is also used to generate a second target air pressure based on multiple second air pressure values;

[0233] The communication module 41 is also used to send the second target air pressure to the vehicle.

[0234] Furthermore, after obtaining multiple first pressure values ​​through the barometer, the processing module 43 is also used for:

[0235] If the standard deviation of multiple first air pressure values ​​is greater than a preset stability threshold, a stability indicator indicating air pressure instability is generated.

[0236] If the standard deviation of multiple first air pressure values ​​is less than or equal to a preset stability threshold, a stability indicator indicating stable air pressure is generated.

[0237] The communication module 41 is also used to send stability indicators to the vehicle.

[0238] The vehicle unlocking device provided in this embodiment is used to execute the technical solution of the user terminal in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0239] Figure 5 This is a structural schematic diagram of a vehicle provided for this application. For example... Figure 5 As shown, the vehicle 50 includes:

[0240] Processor 51, memory 52, and communication interface 53;

[0241] Memory 52 is used to store executable instructions of processor 51;

[0242] The processor 51 is configured to execute the technical solution of the vehicle in any of the foregoing method embodiments by executing executable instructions.

[0243] Optionally, the memory 52 can be either standalone or integrated with the processor 51.

[0244] Optionally, when the memory 52 is a device independent of the processor 51, the vehicle 50 may also include:

[0245] Bus 54, memory 52 and communication interface 53 are connected to processor 51 through bus 54 and complete communication with each other. Communication interface 53 is used to communicate with other devices.

[0246] Optionally, the communication interface 53 can be implemented using a transceiver. The communication interface is used to enable communication with other devices (e.g., clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk drive.

[0247] Bus 54 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0248] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0249] The vehicle is used to execute the technical solution of the vehicle in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar, and will not be repeated here.

[0250] Figure 6 This is a schematic diagram of the structure of a user terminal provided in this application. Figure 6 As shown, the user terminal 60 includes:

[0251] Processor 61, memory 62, communication interface 63, and barometer 64;

[0252] Memory 62 is used to store executable instructions of processor 61;

[0253] The processor 61 is configured to execute the technical solution of the user terminal in any of the foregoing method embodiments by executing executable instructions.

[0254] Optionally, the memory 62 can be either standalone or integrated with the processor 61.

[0255] Optionally, when the memory 62 is a device independent of the processor 61, the user terminal 60 may further include:

[0256] Bus 65, memory 62, communication interface 63 and barometer 64 are connected to processor 61 through bus 65 and complete communication with each other. Communication interface 63 is used to communicate with other devices.

[0257] Optionally, the communication interface 63 can be implemented using a transceiver. The communication interface is used to enable communication between the database access device and other devices (e.g., clients, read-write databases, and read-only databases). The memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk drive.

[0258] Bus 65 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0259] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0260] The user terminal is used to execute the technical solution of the user terminal in any of the aforementioned method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0261] This application also provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solutions provided by the vehicle or user terminal in any of the foregoing method embodiments.

[0262] This application also provides a readable storage medium storing a computer program thereon, which, when executed by a processor, implements the technical solution provided by the vehicle or user terminal in any of the foregoing method embodiments.

[0263] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0264] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0265] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0266] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0267] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0268] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0269] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0270] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A vehicle unlocking method characterized by, Applied to vehicles, including: When locking, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and first ambient humidity are acquired; Receive the first target air pressure sent by the user terminal; When the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, the system continuously sends a second air pressure acquisition command to the user terminal within a preset first duration, and acquires the second ambient temperature and the second ambient humidity. Receive multiple second target air pressures sent by the user terminal; Based on the plurality of second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, a height detection result is generated indicating whether the user terminal and the vehicle are at the same height range; If the height detection result indicates that the user terminal and the vehicle are at the same height, then unlocking will be performed.

2. The method of claim 1, wherein, The preset unlocking conditions are: The distance between the key and the vehicle is less than a preset distance threshold, and the relative direction between the key and the vehicle belongs to a preset direction set.

3. The method of claim 1, wherein, The step of generating a height detection result indicating whether the user terminal and the vehicle are at the same altitude range based on the plurality of second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity includes: For each second target air pressure, the altitude difference corresponding to the second target air pressure is calculated based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity. If none of the height differences is less than a preset height threshold, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

4. The method of claim 3, wherein, The method further includes: If any of the height differences is less than the preset height threshold, then the height differences corresponding to all the second target air pressures are sorted in order from earliest to latest according to the receiving time of the second target air pressure, to obtain a height difference sequence. For each subsequence in the altitude difference sequence, the interval between the receiving times of the second target air pressure corresponding to the subsequence is taken as the time interval of the subsequence; each subsequence is a sequence formed by consecutive altitude differences less than the preset altitude threshold in the altitude difference sequence; If there is a subsequence among all subsequences with a time interval greater than the preset second duration, then a height detection result indicating that the user terminal and the vehicle are in the same height range is generated; If there is no subsequence with a time interval greater than the preset second duration among all subsequences, a height detection result indicating that the user terminal and the vehicle are not in the same height range is generated.

5. The method of claim 3, wherein, The step of calculating the altitude difference corresponding to the second target air pressure based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity includes: Based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity, calculate the temperature and humidity error to eliminate false temperature; The altitude difference corresponding to the second target air pressure is calculated based on the second target air pressure, the first target air pressure, and the temperature and humidity error to eliminate false temperature.

6. The method of claim 5, wherein, The step of calculating temperature and humidity errors and eliminating false temperature based on the second target air pressure, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity includes: Calculate the first virtual temperature based on the first target air pressure, the first ambient temperature, and the first ambient humidity; The second virtual temperature is calculated based on the second target air pressure, the second ambient temperature, and the second ambient humidity. The arithmetic mean, harmonic mean, or weighted mean of the first and second virtual temperatures are used as the virtual temperature to eliminate the temperature and humidity error.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: If the height detection result indicates that the user terminal and the vehicle are not at the same height, then unlocking will not be performed.

8. The method according to any one of claims 1 to 6, characterized in that, Before continuously sending the second air pressure acquisition command to the user terminal within a preset first time period, the method further includes: Receive a stability indicator sent by the user terminal, the stability indicator being used to indicate whether the air pressure is stable; The step of continuously sending a second air pressure acquisition command to the user terminal within a preset first time period includes: If the stability indicator indicates that the air pressure is stable, a second air pressure acquisition command will be continuously sent to the user terminal within a preset first time period.

9. The method of claim 8, wherein, The method further includes: If the stability indicator suggests that the air pressure is unstable, then unlocking is performed.

10. A vehicle unlocking method characterized by, Applied to user terminals, including: Receive the first air pressure acquisition command sent by the vehicle; Multiple initial air pressure values ​​are obtained using a barometer; A first target air pressure is generated based on the plurality of first air pressure values; Send the first target air pressure to the vehicle; Receive the second air pressure acquisition command sent by the vehicle; Multiple second pressure values ​​are obtained through the barometer; A second target pressure is generated based on the plurality of second pressure values; The second target air pressure is sent to the vehicle.

11. The method of claim 10, wherein, After obtaining multiple first pressure values ​​via a barometer, the method further includes: If the standard deviation of the plurality of first air pressure values ​​is greater than a preset stability threshold, a stability indicator indicating air pressure instability is generated. If the standard deviation of the plurality of first air pressure values ​​is less than or equal to the preset stability threshold, a stability indicator indicating stable air pressure is generated. The stability identifier is sent to the vehicle.

12. A vehicle unlocking device characterized by comprising: include: Communication module, used for: When locking, a first air pressure acquisition command is sent to the user terminal, and the first ambient temperature and first ambient humidity are acquired; Receive the first target air pressure sent by the user terminal; When the distance and relative direction between the key and the vehicle meet the preset unlocking conditions, the system continuously sends a second air pressure acquisition command to the user terminal within a preset first duration, and acquires the second ambient temperature and the second ambient humidity. Receive multiple second target air pressures sent by the user terminal; The processing module is used to generate a height detection result indicating whether the user terminal and the vehicle are at the same height range based on the plurality of second target air pressures, the first target air pressure, the first ambient temperature, the first ambient humidity, the second ambient temperature, and the second ambient humidity. The control module is used to unlock the device if the height detection result indicates that the user terminal and the vehicle are at the same height.

13. A vehicle unlocking device, characterized in that, include: The communication module is used to receive the first air pressure acquisition command sent by the vehicle; The acquisition module is used to acquire multiple first air pressure values ​​through a barometer; The processing module is used to generate a first target air pressure based on the plurality of first air pressure values; The communication module is also used for: Send the first target air pressure to the vehicle; Receive the second air pressure acquisition command sent by the vehicle; The acquisition module is also used to acquire multiple second pressure values ​​through the barometer; The processing module is further configured to generate a second target air pressure based on the plurality of second air pressure values; The communication module is also used to send the second target air pressure to the vehicle.

14. A vehicle, characterized in that, include: Processor, memory, communication interface; The memory is used to store the executable instructions of the processor; The processor is configured to execute the vehicle unlocking method according to any one of claims 1 to 9 by executing the executable instructions.

15. A user terminal, characterized in that, include: Processor, memory, communication interface, and barometer; The memory is used to store the executable instructions of the processor; The processor is configured to execute the vehicle unlocking method according to any one of claims 10 to 11 by executing the executable instructions.

16. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the vehicle unlocking method according to any one of claims 1 to 9, or any one of claims 10 to 11.

17. A computer program product, characterized in that, Includes a computer program, which, when executed by a processor, is used to implement the vehicle unlocking method according to any one of claims 1 to 9, or any one of claims 10 to 11.