Vehicle locking method, electronic device and vehicle

By combining ultra-wideband and Bluetooth communication signals and using the change in Bluetooth signal strength to determine the distance between the vehicle and the electronic device, the problem of vehicle control failure caused by poor ultra-wideband communication quality is solved, and the accuracy and safety of vehicle locking are improved.

CN116403312BActive Publication Date: 2025-09-16VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211595589.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-13
Publication Date
2025-09-16
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

When the quality of ultra-wideband communication is poor, the vehicle cannot accurately identify the relative position between itself and the electronic device carried by the user, resulting in the failure of the automatic locking function and a safety hazard.

Method used

By combining ultra-wideband communication signals with Bluetooth communication signals, the target distance between the vehicle and the electronic device is determined using the change in the strength of the Bluetooth communication signal, ensuring that the vehicle locking action can still be accurately executed when the ultra-wideband communication quality is poor.

Benefits of technology

It effectively avoids vehicle control failure caused by poor ultra-wideband communication quality and improves the safety and accuracy of users' use of vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116403312B_ABST
    Figure CN116403312B_ABST
Patent Text Reader

Abstract

The present application discloses a vehicle locking method, electronic device, and vehicle, belonging to the field of communication technology. The vehicle locking method includes: establishing a communication connection between the electronic device and the vehicle via a first communication signal; obtaining a strength value of a second communication signal when the electronic device is located outside the vehicle and the first communication signal is detected to be in a preset state; determining a target distance value between the electronic device and the vehicle based on a change in the strength value of the second communication signal; and performing a locking action on the vehicle when the target distance value is greater than a preset distance value; wherein the first communication signal is an ultra-wideband communication signal and the second communication signal is a Bluetooth communication signal; and the preset state includes any of the following: the strength value of the first communication signal is lower than a preset strength value, or the decay rate of the strength value of the first communication signal is greater than a preset decay rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a vehicle locking method, electronic equipment and a vehicle. Background Art

[0002] With the continuous upgrading of automobiles, the function of automatically locking the vehicle when leaving the vehicle has been widely used in automobiles. In the related art, there has been a method of realizing the function of automatically locking the vehicle when leaving the vehicle by using an electronic device carried by the user.

[0003] In related technologies, the method of realizing the automatic locking function of the vehicle when leaving the vehicle through the electronic device carried by the user mainly uses Ultra Wideband Communication (UWB) technology to detect the relative position between the electronic device and the vehicle, and control the automatic locking of the vehicle accordingly.

[0004] Due to the hardware limitations of the electronic devices carried by users and the uncertainty of the environment in which the electronic devices are located, when the ultra-wideband signal quality is poor, the relative position between the vehicle and the electronic device cannot be identified, resulting in the failure of the vehicle's automatic locking function and a safety hazard. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a vehicle locking method, electronic device and vehicle, which effectively avoids the inability to lock the vehicle due to poor ultra-wideband communication quality, reduces the possibility of vehicle control failure, and improves the safety of users using the vehicle.

[0006] In a first aspect, an embodiment of the present application provides a vehicle locking method, comprising: establishing a communication connection between an electronic device and a vehicle through a first communication signal; when the electronic device is located outside the vehicle and it is detected that the first communication signal is in a preset state, obtaining a strength value of a second communication signal; determining a target distance value between the electronic device and the vehicle based on a change in the strength value of the second communication signal; when the target distance value is greater than a preset distance value, the vehicle performs a locking action; wherein the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate.

[0007] In a second aspect, an embodiment of the present application provides a vehicle locking method, which is executed by an electronic device, including: obtaining a strength value of a second communication signal when a first communication signal is detected to be in a preset state, or when a third distance value between the electronic device and a target object is detected to be less than a first threshold; determining a target distance value between the electronic device and the vehicle based on a change in the strength value of the second communication signal; and sending a first signal to the vehicle when the target distance value is greater than a preset distance value to cause the vehicle to perform a locking action; wherein the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate.

[0008] In a third aspect, an embodiment of the present application provides a vehicle locking method, which is executed by the vehicle, including: upon detecting that the first communication signal is in a preset state, obtaining the strength value of the second communication signal; determining the target distance value between the electronic device and the vehicle based on the change in the strength value of the second communication signal; and performing a locking action when the target distance value is greater than the preset distance value; wherein the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate.

[0009] In a fourth aspect, an embodiment of the present application provides an electronic device for locking a vehicle, comprising:

[0010] The first detection module is used to obtain the strength value of the second communication signal when it is detected that the first communication signal is in a preset state, or when it is detected that the third distance value between the electronic device and the target object is less than the first threshold; the first determination module is used to determine the target distance value between the electronic device and the vehicle based on the change in the strength value of the second communication signal; the first sending module is used to send a first signal to the vehicle when the target distance value is greater than the preset distance value, and the first signal is used to cause the vehicle to perform a locking action; wherein the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate.

[0011] In the fifth aspect, an embodiment of the present application provides a vehicle, comprising: a second detection module, for obtaining the strength value of the second communication signal when it is detected that the first communication signal is in a preset state; a second determination module, for determining the target distance value based on the change in the strength value of the second communication signal; a processing module, for performing a locking action when the target distance value is greater than the preset distance value; wherein the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate.

[0012] In a sixth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the second aspect are implemented.

[0013] In a seventh aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect or the second aspect are implemented.

[0014] In an eighth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect or the second aspect.

[0015] In a ninth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect or the second aspect.

[0016] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, it continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the target distance value is detected by the change in the strength value of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When controlling the unlocking and locking of the vehicle based on the target distance value between the vehicle and the electronic device, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, the possibility of vehicle control failure is reduced, and the safety of users using the vehicle is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 One of the flow charts of the vehicle locking method provided in an embodiment of the present application is shown;

[0018] Figure 2 It shows a schematic structural diagram of the first sensor provided in real time by the present application;

[0019] Figure 3 A schematic diagram of a positioning coordinate system in an embodiment of the present application is shown;

[0020] Figure 4 A graph showing the attenuation of the strength values ​​of the ultra-wideband communication signal and the Bluetooth communication signal as a function of distance provided by an embodiment of the present application is shown;

[0021] Figure 5 The second flowchart of the vehicle locking method provided in the embodiment of the present application is shown;

[0022] Figure 6 The third flowchart of the vehicle locking method provided in the embodiment of the present application is shown;

[0023] Figure 7 A schematic block diagram of an electronic device provided in an embodiment of the present application is shown;

[0024] Figure 8 A schematic block diagram of a vehicle provided in an embodiment of the present application is shown;

[0025] Figure 9 shows a structural block diagram of an electronic device according to an embodiment of the present application;

[0026] Figure 10 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0028] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0029] The following is combined with Figures 1 to 10 , the vehicle locking method, electronic device and vehicle provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0030] In some embodiments of the present application, a vehicle locking method is provided. The vehicle locking method can be executed by a vehicle or an electronic device, and the vehicle and the electronic device are communicatively connected. Figure 1 FIG1 shows one of the flow charts of the vehicle locking method provided in the embodiment of the present application. Figure 1 As shown, the vehicle locking method includes:

[0031] Step 102: establishing a communication connection between the electronic device and the vehicle via a first communication signal;

[0032] In the embodiments of the present application, the electronic device is a user-carried electronic device capable of communicating with a vehicle. The first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal. The electronic device and the vehicle communicate via Bluetooth and ultra-wideband, and the electronic device controls unlocking and locking the vehicle based on the ultra-wideband and Bluetooth communications.

[0033] Step 104: when the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state, obtain a strength value of the second communication signal;

[0034] In this embodiment of the present application, the relative position between the electronic device and the vehicle is continuously detected, and the communication status of the first communication signal between the vehicle and the electronic device is detected. If the first communication signal is detected to be in a preset state, it is determined that the distance between the vehicle and the electronic device cannot be accurately determined using the ultra-wideband signal. Therefore, the strength value of the second communication signal is obtained, that is, the distance between the vehicle and the electronic device is determined to be determined using the Bluetooth signal.

[0035] Step 106, determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal;

[0036] Step 108: If the target distance value is greater than the preset distance value, the vehicle performs a locking action;

[0037] In an embodiment of the present application, the target distance value between the vehicle and the electronic device is determined by the change in the strength value of the second communication signal, and when the target distance value is greater than the preset distance value, it is determined that the user is carrying the electronic device at a far distance away from the vehicle, and the vehicle performs a locking action.

[0038] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0039] In the embodiment of the present application, if the first communication signal meets the preset state, it can be determined that the ultra-wideband communication signal is poor and the target distance value between the vehicle and the electronic device cannot be accurately detected through the ultra-wideband signal.

[0040] In the embodiment of the present application, during the process of ultra-wideband communication between the electronic device and the vehicle, the strength value of the ultra-wideband communication (RSSI, Received Signal Strength Indicator) is continuously detected. The higher the strength value of the ultra-wideband signal, the higher the quality of the ultra-wideband communication between the vehicle and the electronic device, and the lower the strength value of the ultra-wideband signal, the lower the quality of the ultra-wideband communication between the vehicle and the electronic device.

[0041] If the strength of the first communication signal is lower than a preset strength value, the communication quality of the ultra-wideband communication between the vehicle and the electronic device is determined to be poor. For example, the electronic device is a mobile phone, and the user puts the phone in their pocket before exiting the vehicle. As a result, after the user moves the phone outside the vehicle, the detected ultra-wideband communication signal strength is lower than the preset strength value. Therefore, the target distance between the vehicle and the electronic device is detected based on the change in the Bluetooth signal strength.

[0042] In this embodiment of the present application, the decay rate of the first communication signal strength value is the decrease in the ultra-wideband communication signal strength value per unit time. For example, the electronic device is a mobile phone. A user holds the mobile phone while exiting a vehicle. As the user moves away from the vehicle, the user puts the mobile phone into a pocket. At this time, if the decay rate of the ultra-wideband signal strength value is detected to be greater than a preset decay rate, the target distance value between the vehicle and the electronic device is detected based on the change in the Bluetooth signal strength value.

[0043] In an embodiment of the present application, by determining whether the first communication signal is in a preset state, it is possible to determine whether the distance between the vehicle and the electronic device can be detected through the ultra-wideband signal. When the first communication parameter is not in the preset state, the signal quality of the ultra-wideband communication signal between the electronic device and the vehicle is good, that is, the target distance value between the electronic device and the vehicle can be determined based on the ultra-wideband signal. When the first communication signal is in the preset state, the signal quality of the ultra-wideband communication signal between the electronic device and the vehicle is poor, that is, it is determined that the target distance value between the electronic device and the vehicle cannot be determined based on the ultra-wideband signal, and the target distance value between the vehicle and the electronic device continues to be detected through the Bluetooth communication signal, and the vehicle performs a locking action based on the target distance value and the preset distance value.

[0044] The power spectral density of ultra-wideband (UWB) signals in ultra-wideband (UWB) communication is limited to -41.3dBm / MHz, resulting in limited coverage. Bluetooth communication between electronic devices and vehicles requires a higher transmission power compared to UWB communication. Furthermore, Bluetooth signals have a longer wavelength. Therefore, when the first UWB signal parameters between the electronic device and the vehicle are within a preset state, Bluetooth is used to initiate vehicle locking.

[0045] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, it continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the target distance value is detected by the change in the strength value of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When controlling the unlocking and locking of the vehicle based on the target distance value between the vehicle and the electronic device, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, the possibility of vehicle control failure is reduced, and the safety of users using the vehicle is improved.

[0046] In some embodiments of the present application, a vehicle locking method includes: while the electronic device is being moved from inside the vehicle to outside the vehicle, and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of a second communication signal;

[0047] Determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal includes:

[0048] A first distance value between the electronic device and the vehicle is obtained according to a change in the strength value of the second communication signal, where the first distance value is a target distance value between the electronic device and the vehicle.

[0049] In the embodiment of the present application, the first distance value is a distance value calculated by the change in the strength value of the Bluetooth communication signal. The process of calculating the first distance value can be performed by the electronic device or by the vehicle.

[0050] In this embodiment of the present application, when the electronic device moves from the interior of the vehicle to the exterior, upon detecting that the first communication signal is in a preset state, the strength value of the second communication signal is immediately acquired. The first distance value determined based on the strength value of the second communication signal is directly used as the target distance value.

[0051] Specifically, since the distance between the electronic device and the vehicle is 0 during the process of the electronic device moving from the inside of the vehicle to the outside of the vehicle, the change in the strength value of the second communication signal is obtained during the process of the electronic device moving from the inside of the vehicle to the outside of the vehicle, and the first distance value determined based on the change in the strength value is the distance between the vehicle and the electronic device. The target distance value is calculated using the relationship (1):

[0052] D1=10^(abs(RSSI1-A) / (10×n))(1)

[0053] Where D1 is the target distance value, RSSI1 is the current strength value of the Bluetooth communication signal, A is the initial strength value of the Bluetooth communication signal, (RSSI1-A) is the change in the strength value of the Bluetooth communication signal, and n is the Bluetooth signal attenuation coefficient.

[0054] For example, the vehicle and the electronic device can detect whether the electronic device is inside the vehicle through the positioning device. When the electronic device moves from the inside of the vehicle to the outside of the vehicle, the first communication signal is in a predetermined state, corresponding to the scenario where the user puts the electronic device into the user's pocket while getting out of the vehicle with the electronic device. Alternatively, the user puts the electronic device into the user's pocket before getting out of the vehicle with the electronic device, and the electronic device remains in the user's pocket while getting out of the vehicle.

[0055] In an embodiment of the present application, when an electronic device moves from inside a vehicle to outside, if the first communication signal is detected to be in a preset state, i.e., if the distance between the electronic device and the vehicle is determined to be zero, the first communication signal is no longer able to accurately determine the target distance between the two. At this point, the first distance value calculated based on the change in the strength of the second communication signal is determined as the target distance, and the change in the strength of the Bluetooth communication signal is then acquired. The distance value determined based on the Bluetooth communication signal is then directly used as the target distance between the two, further improving the accuracy of detecting the target distance.

[0056] In some embodiments of the present application, before obtaining the strength value of the second communication signal, the method further includes: obtaining a second distance value between the electronic device and the vehicle according to the strength value of the first communication signal;

[0057] Determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal includes:

[0058] A first distance value between the electronic device and the vehicle is obtained according to a change in the strength value of the second communication signal, and a sum of the first distance value and the second distance value is a target distance value.

[0059] In the embodiment of the present application, the second distance value is the distance value between the vehicle and the electronic device determined by the strength value of the first communication signal, that is, the distance value calculated by the ultra-wideband signal. The process of calculating the second distance value can be performed by the electronic device or by the vehicle. The target distance value is calculated by the relationship (2):

[0060] D2=10^(abs(RSSI2) / (10×m))(2)

[0061] Wherein, D2 is the target distance value, RSSI2 is the strength value of the ultra-wideband communication signal, and m is the ultra-wideband communication signal attenuation coefficient.

[0062] Specifically, before obtaining the strength value of the Bluetooth communication signal, it is necessary to determine the second distance value between the electronic device and the vehicle through the ultra-wideband signal. The first distance value determined by the Bluetooth communication signal is the distance value between the vehicle and the electronic device after the start of obtaining the strength value of the Bluetooth communication signal. Before obtaining the strength value of the Bluetooth communication signal, the second distance value determined based on the strength value of the ultra-wideband communication signal is the distance value between the vehicle and the electronic device before the start of obtaining the strength value of the Bluetooth communication signal. When calculating the target distance value, it is necessary to add the distance values ​​obtained before and after the start of obtaining the strength value of the Bluetooth communication signal, so the sum of the first distance value and the second distance value is used as the target distance value.

[0063] For example, after a user gets off a vehicle holding an electronic device, the user puts the electronic device into a pocket while moving away from the vehicle. At this time, the quality of the ultra-wideband communication signal is affected and is in a preset state. Before obtaining the strength value of the Bluetooth communication signal, the electronic device calculates a second distance value between the electronic device and the vehicle using the ultra-wideband communication signal. The second distance value is the distance value between the vehicle and the electronic device before the user puts the electronic device into the pocket while moving away from the vehicle. Subsequently, a first distance value is calculated based on the change in the strength value of the Bluetooth communication signal. The first distance value is the distance the electronic device moves relative to the vehicle after the user puts the electronic device into the pocket while moving away from the vehicle. The target distance value can be obtained by adding the first distance value and the second distance value.

[0064] Illustratively, after calculating the second distance value, the electronic device establishes a communication connection with the vehicle via a Bluetooth communication signal, and obtains a strength value of the Bluetooth communication signal.

[0065] In an embodiment of the present application, when a user carries an electronic device away from a vehicle and the first communication signal is in a preset state, the second distance value before the first communication signal is in the preset state is calculated using the strength value of the first communication signal, and the first distance value after the first communication signal processes the preset state is calculated using the strength value of the second communication signal, and the sum of the first distance value and the second distance value is used as the target distance value. This ensures the accuracy of the target distance value calculated using the Bluetooth communication signal. Since the second distance value before obtaining the strength value of the Bluetooth communication signal is calculated using the ultra-wideband communication signal, Bluetooth communication between the vehicle and the electronic device can be established when the first communication signal processes the preset state, thereby reducing the power consumption of the electronic device.

[0066] In some embodiments of the present application, when the preset state is that the strength value of the first communication signal is lower than a preset strength value, obtaining the second distance value between the electronic device and the vehicle according to the strength value of the first communication signal includes:

[0067] When the strength value of the first communication signal drops to a preset strength value range to which the preset strength value corresponds, the real-time strength value of the first communication signal is acquired to obtain a second distance value between the electronic device and the vehicle.

[0068] In an embodiment of the present application, at the first moment when the strength value of the first communication signal is detected to be lower than the preset strength value, it is determined that the first communication signal after the first moment cannot meet the accuracy of calculating the distance between the vehicle and the electronic device, so the second distance value between the vehicle and the electronic device before the first moment is calculated based on the strength value of the first communication signal.

[0069] In the embodiment of the present application, the second distance value is calculated based on the first time range corresponding to the first moment in time to ensure calculation accuracy, taking into account the response speed of the device. Specifically, the first time range corresponding to the first moment in time corresponds to a preset strength value range. Therefore, when the strength value of the first communication signal is detected to fall within the preset strength value range, the second distance value between the electronic device and the vehicle is calculated based on the real-time strength value of the first communication signal.

[0070] Exemplarily, the first moment is T1, and the value range of the first time range is T1-1S to T1+1S.

[0071] In an embodiment of the present application, when it is detected that the strength value of the first communication signal drops to a preset strength value range corresponding to the preset strength value, the second distance value is calculated using the real-time strength value of the first communication signal, thereby avoiding the problem of error in calculating the second distance value due to the device requiring a certain response speed, and further ensuring the accuracy of the target distance value between the vehicle and the electronic device finally obtained.

[0072] In some embodiments of the present application, when the preset state is that the attenuation rate of the strength value of the first communication signal is greater than a preset attenuation rate, obtaining the second distance value between the electronic device and the vehicle based on the strength value of the first communication signal includes:

[0073] When the attenuation speed of the first communication signal rises to a preset attenuation speed range to which the preset attenuation speed corresponds, a real-time strength value of the first communication signal is acquired to obtain a second distance value between the electronic device and the vehicle.

[0074] In an embodiment of the present application, at the second moment when it is detected that the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate, it is determined that the first communication signal after the second moment cannot meet the accuracy of calculating the distance between the vehicle and the electronic device, so the second distance value between the vehicle and the electronic device before the first moment is calculated using the strength value of the first communication signal.

[0075] In this embodiment of the present application, taking into account the response speed of the device and to ensure calculation accuracy, the second distance value is calculated based on the second time range corresponding to the second moment. Specifically, the second time range corresponding to the second moment corresponds to a preset attenuation rate range. Therefore, when the attenuation rate of the first communication signal is detected to have risen within the preset attenuation rate range, the second distance value between the electronic device and the vehicle is calculated based on the real-time strength value of the first communication signal.

[0076] Exemplarily, the second moment is T2, and the value range of the second time range is T2-1S to T2+1S.

[0077] In an embodiment of the present application, when it is detected that the attenuation rate of the first communication signal rises to within a preset attenuation rate range, the second distance value is calculated using the real-time strength value of the first communication signal, thereby avoiding the problem of errors in calculating the second distance value due to the device requiring a certain response speed, and further ensuring the accuracy of the target distance value between the vehicle and the electronic device.

[0078] In some embodiments of the present application, before obtaining the strength value of the second communication signal, the method further includes: disconnecting the communication connection between the vehicle and the electronic device established through the first communication signal.

[0079] In an embodiment of the present application, before obtaining the strength value of the second communication signal, the electronic device is required to establish a communication connection with the vehicle through the Bluetooth communication signal. Before the electronic device and the vehicle establish a communication connection through the Bluetooth communication signal, the ultra-wideband communication signal between the electronic device and the vehicle is controlled to be disconnected, thereby reducing the power consumption caused by the electronic device turning on the ultra-wideband communication.

[0080] For example, upon detecting that the first communication signal is in a preset state, and when communication is established between the electronic device and the vehicle via the second communication signal, the communication connection between the vehicle and the electronic device via the first communication signal is disconnected after a preset time interval. The preset time interval ranges from 1s to 3s.

[0081] In an embodiment of the present application, when an electronic device and a vehicle establish a communication connection via a Bluetooth signal, and the ultra-wideband communication signal is in a preset state, that is, it is determined that the signal quality of the ultra-wideband communication signal is poor, the ultra-wideband communication signal between the electronic device and the vehicle is disconnected at this time, which can reduce the power consumption of the electronic device and the vehicle.

[0082] In some embodiments of the present application, when the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is not in a preset state, the second distance value between the electronic device and the vehicle is obtained through the strength value of the first communication signal. When the second distance value is greater than the preset distance value, the vehicle performs a locking action.

[0083] In an embodiment of the present application, when the electronic device is already outside the vehicle and the first communication signal between the electronic device and the vehicle is not always in a preset state, it is determined that the signal quality of the ultra-wideband communication signal remains good. At this time, the second distance value detected according to the ultra-wideband communication signal is used as the actual distance value between the electronic device and the vehicle. When it is detected that the second distance value is greater than the preset distance value, it is determined that the user is carrying the electronic device away from the vehicle, so the vehicle performs a locking action.

[0084] In an embodiment of the present application, when the signal quality of the ultra-wideband communication signal between the vehicle and the electronic device remains good, the second distance value calculated based on the ultra-wideband communication signal is directly used as the actual distance value between the vehicle and the electronic device to control whether the vehicle performs the locking action. There is no need to obtain the strength value of the Bluetooth communication signal between the vehicle and the electronic device again, which further improves the accuracy of the vehicle's locking action.

[0085] In some embodiments of the present application, the electronic device includes a first sensor, and the vehicle locking method further includes:

[0086] The electronic device obtains a third distance value between the electronic device and the target object through the first sensor, and obtains a strength value of the second communication signal when the third distance value is less than the first threshold.

[0087] In the embodiment of the present application, the first sensor is a distance measuring sensor, which can detect a third distance value between the electronic device and a target object. The target object is an obstruction of the ultra-wideband signal.

[0088] Exemplarily, the first sensor is a UWB vehicle blocking radar integrated in a UWB module of the electronic device. The UWB vehicle blocking radar calculates the third distance between the target object and the UWB module by transmitting and receiving electromagnetic waves and calculating the flight time of the electromagnetic waves.

[0089] Figure 2 The schematic diagram of the structure of the first sensor provided in real time by this application is shown in FIG. Figure 2 As shown, the first sensor includes a UWB chip module, a signal receiving end TX and a signal transmitting end RX.

[0090] In this embodiment of the present application, the electronic device can detect a third distance between the main body and an object obstructing the ultra-wideband signal. The smaller the third distance, the greater the obstruction of the ultra-wideband signal by the obstruction, and the lower the quality of ultra-wideband communication. The larger the second distance, the less obstruction of the ultra-wideband signal by the obstruction, and the better the quality of ultra-wideband communication.

[0091] Specifically, during ultra-wideband signal communication between the electronic device and the vehicle, the electronic device continuously detects the third distance value. If the third distance value is detected to be greater than or equal to the first threshold, the electronic device continues to detect the distance between the vehicle and the electronic device using ultra-wideband communication. If the third distance value is detected to be less than the first threshold, the electronic device obtains the strength value of the second communication signal and determines the target distance value based on the change in the strength value of the second communication signal.

[0092] In an embodiment of the present application, by detecting the third distance value between the electronic device and the obstruction of the ultra-wideband signal, it is accurately determined whether the electronic device can continue to accurately detect the distance value between the electronic device and the vehicle through ultra-wideband communication, and when the third distance value is less than the first threshold, the strength value of the second communication signal is obtained, and the target distance value is determined based on the change in the strength value of the second communication signal, thereby improving the accuracy of detecting the target distance value.

[0093] In some embodiments of the present application, the vehicle includes multiple positioning anchor points, and the vehicle locking method further includes: the vehicle obtains positioning information of the electronic device through the multiple positioning anchor points; based on the positioning information, when it is determined that the electronic device is in the vehicle, the vehicle remains unlocked.

[0094] In the embodiments of the present application, a vehicle includes multiple positioning anchor points. Through the multiple positioning anchor points, the vehicle can detect the positioning information of an electronic device and accurately determine the positional relationship between the vehicle and the electronic device based on the positioning information. When it is detected that the electronic device is inside the vehicle, the vehicle remains unlocked to prevent the vehicle from being accidentally locked when the user is inside the vehicle.

[0095] Exemplarily, the positioning anchor points can be UWB positioning anchor points. Multiple UWB positioning anchor points are provided on the vehicle. To determine whether the electronic device is inside the vehicle, if it is detected that the electronic device is inside the vehicle, no locking operation is performed. When it is determined that the electronic device is outside the vehicle, the second distance value between the vehicle and the electronic device is detected through the ultra-wideband communication signals transmitted and received by the UWB positioning anchor points.

[0096] Figure 3 The schematic diagram of the positioning coordinate system in the embodiments of the present application is shown. As Figure 3 shown, the following method is used to determine whether the electronic device is inside the vehicle. The vehicle includes 5 UWB positioning anchor points, and the main anchor point is located in the middle of the vehicle. A coordinate system is established with the main anchor point in the vehicle as the center. After any 3 anchor points among the 5 UWB positioning anchor points on the vehicle body receive the UWB signal of the mobile phone, the position coordinates of the user can be calculated through the distance. Substitute the length a and width b of the vehicle body into the established coordinate system. Assuming that anchor point 1 is at the exact center of the vehicle, when the calculated user coordinates (x, y) satisfy -b / 2 < x < b / 2 and -a / 2 < y < a / 2, it is determined that the user's position is inside the vehicle; otherwise, it is outside the vehicle. Within the unlocking range, if the target distance value is less than the unlocking threshold, the electronic device sends a signal to keep the vehicle unlocked to the vehicle. Within the locking range, if the target distance value is greater than the locking threshold, the electronic device sends a locking signal to the vehicle.

[0097] In the embodiments of the present application, by setting multiple positioning anchor points in the vehicle, it is possible to accurately detect whether the electronic device is inside the vehicle, and when the electronic device is inside the vehicle, keep the vehicle unlocked to prevent the user from accidentally locking the vehicle when inside the vehicle.

[0098] In some embodiments of the present application, when the electronic device is outside the vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining the intensity value of the second communication signal includes:

[0099] When the electronic device is outside the vehicle and the vehicle detects that the first communication signal is in a preset state, a communication connection between the electronic device and the vehicle is established through the second communication signal, and the intensity value of the second communication signal is obtained.

[0100] In this embodiment of the present application, when the first communication signal between the vehicle and the electronic device is not in a preset state, the vehicle and the electronic device are connected to each other through the first communication signal only. When it is detected that the first communication signal between the vehicle and the electronic device is in the preset state, the communication connection between the vehicle and the electronic device is established through the second communication signal, and the strength value of the second communication signal is obtained.

[0101] Specifically, if the signal quality of ultra-wideband communication between the electronic device and the vehicle is good, the vehicle and the electronic device do not establish a Bluetooth communication connection. If the signal quality of ultra-wideband communication between the electronic device and the vehicle is detected to be poor, the electronic device and the vehicle are controlled to enable Bluetooth communication and establish a Bluetooth communication connection between the two, thereby obtaining the strength value of the Bluetooth communication signal between the two.

[0102] In this embodiment of the present application, when the ultra-wideband communication signal quality between the vehicle and the electronic device is good, only the ultra-wideband communication signal between the two is maintained, eliminating the need to establish Bluetooth communication between the two, thereby reducing power consumption associated with communication between the two. When the ultra-wideband communication signal quality between the vehicle and the electronic device is poor, Bluetooth communication is established between the two, ensuring the accuracy of the target distance value subsequently derived from the change in the Bluetooth communication signal strength.

[0103] In some embodiments of the present application, a communication connection is established between the electronic device and the vehicle via a first communication signal and a second communication signal; when the electronic device is located outside the vehicle, a strength value of the first communication signal and a strength value of the second communication signal are monitored;

[0104] When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of the second communication signal includes:

[0105] When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state and the second communication signal meets preset conditions, the strength value of the second communication signal is obtained; the preset conditions include any one of the following: the strength value of the second communication signal is lower than the second threshold, and the attenuation rate of the strength value of the second communication signal is greater than a third threshold.

[0106] In an embodiment of the present application, before starting to measure the distance between the electronic device and the vehicle, a communication connection is maintained between the electronic device and the vehicle through the first communication signal and the second communication signal. When the electronic device is located outside the vehicle, the strength values ​​of the first communication signal and the second communication signal are monitored synchronously. When it is detected that the first communication signal is in a preset state and the second communication signal meets the preset conditions, it is determined that the first communication signal cannot meet the accuracy of detecting the distance value between the vehicle and the electronic device, and the second communication signal can meet the accuracy of detecting the distance value between the vehicle and the electronic device, so the strength value of the second communication signal is obtained, and the target distance value is accurately detected based on the strength value of the second communication signal, thereby realizing auxiliary monitoring of whether the signal quality of the first communication signal is good through the second communication signal.

[0107] Specifically, the vehicle maintains Bluetooth communication and ultra-wideband communication with the electronic device. When the Bluetooth communication signal meets the preset conditions and the ultra-wideband communication signal is in a preset state, ranging is started through the Bluetooth communication signal, avoiding misjudgment of whether the quality of the first communication signal is poor, and also avoiding poor ranging effect caused by poor quality of the Bluetooth communication signal.

[0108] In the embodiment of the present application, when it is detected that the strength value of the second communication signal is lower than the second threshold and the attenuation rate of the strength value of the second communication signal is greater than the third threshold, it is determined that the second communication signal meets the preset condition.

[0109] Figure 4 The graph showing the attenuation of the strength values ​​of the ultra-wideband communication signal and the Bluetooth communication signal provided by the embodiment of the present application with respect to the distance is shown as follows: Figure 4 As shown, curve 1 is the curve of the ultra-wideband signal attenuating with distance under normal circumstances, curve 2 is the curve of the ultra-wideband communication signal attenuating with distance under abnormal circumstances, and curve 3 is the curve of the Bluetooth communication signal attenuating with distance under abnormal circumstances. It can be seen that under normal circumstances, as the distance between the electronic device and the vehicle increases, the strength value of the ultra-wideband communication signal decreases accordingly, and the reduction process is relatively smooth. Under abnormal circumstances, such as when the user puts the electronic device into a pocket or backpack while carrying the electronic device away from the vehicle, the first strength value of the ultra-wideband communication signal will experience a steep decline due to the interference of the pocket or backpack on the electronic device's transmission and reception of the ultra-wideband signal. When there is an abnormality in the ultra-wideband communication signal, the strength value of the ultra-wideband communication signal will drop sharply, and the corresponding strength value of the Bluetooth communication signal will also drop sharply.

[0110] Specifically, when the strength values ​​of the ultra-wideband communication signal and the Bluetooth communication signal simultaneously experience a sharp drop, that is, when the decay rate of the strength value of the first communication signal is greater than a preset decay rate, and the decay rate of the strength value of the second communication signal is greater than a third threshold, an abnormality in the ultra-wideband communication signal is determined. Alternatively, if the strength value of the first communication signal is lower than a preset strength value, and the strength value of the second communication signal is lower than a second threshold, an abnormality in the ultra-wideband communication signal is determined, achieving the effect of auxiliary monitoring of the signal quality of the ultra-wideband communication signal through the strength value of the Bluetooth communication signal.

[0111] For example, when a user controls a vehicle through an electronic device, the first strength value of the ultra-wideband signal between the electronic device and the vehicle changes differently depending on how the user carries the electronic device away from the vehicle.

[0112] Scenario 1: A user puts an electronic device in their pocket in a car. At this time, the user gets out of the car and moves away from the car. Since the antenna of the electronic device is close to the human body and is blocked by the human body, after getting out of the car, the strength value of the ultra-wideband communication signal is lower than the preset strength value, and the strength value of the Bluetooth communication signal is lower than the second threshold.

[0113] Scenario 2: The user gets out of the car holding an electronic device and puts the electronic device into his pocket while walking away from the car. In this case, the ultra-wideband communication quality between the electronic device and the car is good before the electronic device is put into the pocket. At this time, the attenuation curve of the ultra-wideband communication signal strength value is as follows: Figure 4 As shown in curve 1 in . When the user puts the electronic device into the pocket when leaving, the strength values ​​of the ultra-wideband communication signal and the Bluetooth communication signal will have a steep attenuation. The attenuation speed of the strength value of the ultra-wideband communication signal is greater than the preset attenuation speed, and the attenuation speed of the strength value of the Bluetooth communication signal is greater than the third threshold value, as shown in FIG. Figure 4 Curve 2 and curve 3 in .

[0114] Scenario 3: The user gets out of the car holding a mobile phone and moves away until the car is locked. At this time, the attenuation curve of the UWB intensity value is as follows: Figure 4 As shown in curve 1.

[0115] In the above three exemplary usage scenarios, both Scenario 1 and Scenario 2 will result in poor ultra-wideband communication quality between the electronic device and the vehicle. At this time, the target distance value between the vehicle and the electronic device is determined through Bluetooth communication signals.

[0116] In an embodiment of the present application, Bluetooth communication and ultra-wideband communication are maintained between the electronic device and the vehicle. When it is detected that the Bluetooth communication signal meets the preset conditions and the ultra-wideband communication signal is in a preset state, it is determined that the signal quality of the ultra-wideband signal is poor. At this time, the strength value of the Bluetooth communication signal is obtained, and the target distance value between the vehicle and the electronic device is determined accordingly. This realizes auxiliary monitoring of the communication quality of the ultra-wideband communication signal through the strength value of the Bluetooth communication signal, avoiding misjudgment of whether the ultra-wideband communication signal is of poor quality.

[0117] In some embodiments of the present application, a vehicle locking method is provided, wherein the vehicle locking method comprises a vehicle, a vehicle and an electronic device communicating with each other. Figure 5 FIG2 shows a second flow chart of the vehicle locking method provided in an embodiment of the present application. Figure 5 As shown, the vehicle locking method includes:

[0118] Step 502: When the electronic device detects that the first communication signal is in a preset state, or when the electronic device detects that a third distance value between the electronic device and the target object is less than a first threshold, obtain a strength value of the second communication signal;

[0119] In an embodiment of the present application, when the electronic device is located outside a vehicle, the electronic device detects the communication status of a first communication signal between the vehicle and the electronic device, and detects a third distance value between the electronic device and a target object. Upon detecting that the first communication signal is in a preset state, or detecting that the distance value between the electronic device and the target object is less than a first threshold, it is determined that the distance between the vehicle and the electronic device cannot be accurately determined using the ultra-wideband signal. Therefore, the device begins acquiring the strength value of the second communication signal, i.e., begins determining the distance value between the vehicle and the electronic device using the Bluetooth signal.

[0120] In the embodiment of the present application, the first sensor is a distance measuring sensor, which can detect a third distance value between the electronic device and a target object. The target object is an obstruction of the ultra-wideband signal.

[0121] Step 504: The electronic device determines a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal;

[0122] Step 506: When the target distance value is greater than the preset distance value, the electronic device sends a first signal to the vehicle to cause the vehicle to perform a locking action;

[0123] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0124] In an embodiment of the present application, the electronic device determines the target distance value between the vehicle and the electronic device by measuring the change in the strength value of the second communication signal, and when the target distance value is greater than a preset distance value, and when it is determined that the user is carrying the electronic device at a long distance away from the vehicle, the electronic device controls the vehicle to perform a locking action by sending a first signal to the vehicle.

[0125] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0126] In the embodiment of the present application, the first communication signal meets the preset state, and the electronic device can determine that the ultra-wideband communication signal is poor and cannot continue to accurately detect the target distance value between the vehicle and the electronic device through the ultra-wideband signal.

[0127] In the embodiment of the present application, during the process of ultra-wideband communication between the electronic device and the vehicle, the electronic device continuously detects the strength value of the ultra-wideband communication (RSSI, Received Signal Strength Indicator). The higher the strength value of the ultra-wideband signal, the higher the quality of the ultra-wideband communication between the vehicle and the electronic device, and the lower the strength value of the ultra-wideband signal, the lower the quality of the ultra-wideband communication between the vehicle and the electronic device.

[0128] In an embodiment of the present application, the electronic device can determine whether it is possible to detect the distance between the vehicle and the electronic device through the ultra-wideband signal by determining whether the first communication signal is in a preset state. When the first communication parameter is not in the preset state, the signal quality of the ultra-wideband communication signal between the electronic device and the vehicle is good, and the electronic device can determine the target distance value between the electronic device and the vehicle based on the ultra-wideband signal. When the first communication signal is in the preset state, the signal quality of the ultra-wideband communication signal between the electronic device and the vehicle is poor, and the electronic device determines that it cannot determine the target distance value between the electronic device and the vehicle based on the ultra-wideband signal. The electronic device continues to detect the target distance value between the vehicle and the electronic device through the Bluetooth communication signal, and when the target distance value is greater than the preset distance value, sends a first signal to the vehicle to control the vehicle to perform a locking action.

[0129] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, the electronic device continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the electronic device detects the target distance value by measuring the change in the strength of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When the electronic device controls the unlocking and locking of the vehicle based on the target distance value between the electronic device and the vehicle, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, the possibility of vehicle control failure is reduced, and the safety of the user using the vehicle is improved.

[0130] In some embodiments of the present application, a vehicle locking method includes: when the electronic device is moved from the interior of the vehicle to the exterior of the vehicle, and the vehicle detects that the first communication signal is in a preset state, the electronic device obtaining a strength value of a second communication signal;

[0131] Determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal includes:

[0132] The electronic device obtains a first distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal, where the first distance value is a target distance value between the electronic device and the vehicle.

[0133] In this embodiment of the present application, when the electronic device moves from the interior of a vehicle to the exterior, upon detecting that the first communication signal is in a preset state, the electronic device immediately obtains the strength value of the second communication signal. The first distance value determined based on the strength value of the second communication signal is directly used as the target distance value.

[0134] In an embodiment of the present application, when an electronic device moves from inside a vehicle to outside, if the first communication signal is detected to be in a preset state, i.e., if the distance between the electronic device and the vehicle is determined to be zero, the first communication signal is no longer able to accurately determine the target distance between the two. At this point, the first distance value calculated based on the change in the strength of the second communication signal is determined as the target distance, and the change in the strength of the Bluetooth communication signal is then acquired. The distance value determined based on the Bluetooth communication signal is then directly used as the target distance between the two, further improving the accuracy of detecting the target distance.

[0135] In some embodiments of the present application, before the electronic device obtains the strength value of the second communication signal, the method further includes: the electronic device obtains a second distance value between the electronic device and the vehicle according to the strength value of the first communication signal;

[0136] The electronic device determines a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal, including:

[0137] The electronic device obtains a first distance value between the electronic device and the vehicle according to the change in the strength value of the second communication signal, and the sum of the first distance value and the second distance value is a target distance value.

[0138] In this embodiment of the present application, the second distance value is the distance between the vehicle and the electronic device determined by the strength of the first communication signal, that is, the distance value calculated using the ultra-wideband signal. The process of calculating the second distance value can be performed by the electronic device or by the vehicle.

[0139] Specifically, before the electronic device obtains the strength value of the Bluetooth communication signal, it is necessary to determine the second distance value between the electronic device and the vehicle through the ultra-wideband signal. The first distance value determined by the electronic device through the Bluetooth communication signal is the distance value between the vehicle and the electronic device after the start of obtaining the strength value of the Bluetooth communication signal. Before the electronic device obtains the strength value of the Bluetooth communication signal, the second distance value determined by the electronic device based on the strength value of the ultra-wideband communication signal is the distance value between the vehicle and the electronic device before the start of obtaining the strength value of the Bluetooth communication signal. When calculating the target distance value, it is necessary to add the distance values ​​obtained before and after the start of obtaining the strength value of the Bluetooth communication signal, so the sum of the first distance value and the second distance value is used as the target distance value.

[0140] In an embodiment of the present application, when a user carries an electronic device away from a vehicle and the first communication signal is in a preset state, the electronic device calculates the second distance value before the first communication signal is in the preset state by using the strength value of the first communication signal. The electronic device also calculates the first distance value after the first communication signal processes the preset state by using the strength value of the second communication signal, and uses the sum of the first distance value and the second distance value as the target distance value. This ensures the accuracy of the target distance value calculated by the Bluetooth communication signal. Since the second distance value before obtaining the strength value of the Bluetooth communication signal is calculated by the ultra-wideband communication signal, Bluetooth communication between the vehicle and the electronic device can be established when the first communication signal processes the preset state, thereby reducing the power consumption of the electronic device.

[0141] In some embodiments of the present application, when the preset state is that the strength value of the first communication signal is lower than a preset strength value, the electronic device obtains a second distance value between the electronic device and the vehicle based on the strength value of the first communication signal, including:

[0142] When the strength value of the first communication signal drops to a preset strength value range to which the preset strength value corresponds, the electronic device obtains the real-time strength value of the first communication signal to obtain a second distance value between the electronic device and the vehicle.

[0143] In an embodiment of the present application, at the first moment when the electronic device detects that the strength value of the first communication signal is lower than the preset strength value, it is determined that the first communication signal after the first moment cannot meet the accuracy of calculating the distance between the vehicle and the electronic device, so the electronic device calculates the second distance value between the vehicle and the electronic device before the first moment based on the strength value of the first communication signal.

[0144] In this embodiment of the present application, taking into account the response speed of the electronic device and to ensure calculation accuracy, the second distance value is calculated based on the first time range corresponding to the first moment. Specifically, the first time range corresponding to the first moment corresponds to a preset strength value range. Therefore, when the strength value of the first communication signal is detected to fall within the preset strength value range, the second distance value between the electronic device and the vehicle is calculated based on the real-time strength value of the first communication signal.

[0145] In an embodiment of the present application, when the electronic device detects that the strength value of the first communication signal drops to a preset strength value range corresponding to the preset strength value, the second distance value is calculated based on the real-time strength value of the first communication signal, thereby avoiding the problem of error in calculating the second distance value due to the device requiring a certain response speed, and further ensuring the accuracy of the target distance value between the vehicle and the electronic device.

[0146] In some embodiments of the present application, when the preset state is that the attenuation rate of the strength value of the first communication signal is greater than a preset attenuation rate, the electronic device obtains a second distance value between the electronic device and the vehicle based on the strength value of the first communication signal, including:

[0147] When the attenuation speed of the first communication signal rises to within a preset attenuation speed range to which the preset attenuation speed corresponds, the electronic device obtains a real-time strength value of the first communication signal to obtain a second distance value between the electronic device and the vehicle.

[0148] In an embodiment of the present application, at the second moment when the electronic device detects that the attenuation rate of the strength value of the first communication signal is greater than the preset attenuation rate, it is determined that the first communication signal after the second moment cannot meet the accuracy of calculating the distance between the vehicle and the electronic device, so the second distance value between the vehicle and the electronic device before the first moment is calculated using the strength value of the first communication signal.

[0149] In this embodiment of the present application, taking into account the response speed of the device and to ensure calculation accuracy, the second distance value is calculated based on the second time range corresponding to the second moment. Specifically, the second time range corresponding to the second moment corresponds to a preset attenuation rate range. Therefore, when the attenuation rate of the first communication signal is detected to have risen within the preset attenuation rate range, the second distance value between the electronic device and the vehicle is calculated based on the real-time strength value of the first communication signal.

[0150] In an embodiment of the present application, when the electronic device detects that the attenuation rate of the first communication signal rises to within a preset attenuation rate range, the second distance value is calculated using the real-time strength value of the first communication signal, thereby avoiding the problem of errors in calculating the second distance value due to the device requiring a certain response speed, and further ensuring the accuracy of the target distance value between the vehicle and the electronic device.

[0151] In some embodiments of the present application, before the electronic device obtains the strength value of the second communication signal, the method further includes: the electronic device disconnecting the communication connection established between the vehicle and the electronic device through the first communication signal.

[0152] In an embodiment of the present application, before obtaining the strength value of the second communication signal, the electronic device is required to establish a communication connection with the vehicle through the Bluetooth communication signal. Before the electronic device and the vehicle establish a communication connection through the Bluetooth communication signal, the ultra-wideband communication signal between the electronic device and the vehicle is controlled to be disconnected, thereby reducing the power consumption caused by the electronic device turning on the ultra-wideband communication.

[0153] In an embodiment of the present application, when an electronic device and a vehicle establish a communication connection via a Bluetooth signal, and the ultra-wideband communication signal is in a preset state, that is, it is determined that the signal quality of the ultra-wideband communication signal is poor, the ultra-wideband communication signal between the electronic device and the vehicle is disconnected at this time, which can reduce the power consumption of the electronic device and the vehicle.

[0154] In some embodiments of the present application, when the electronic device is located outside a vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of the second communication signal includes:

[0155] When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state, the electronic device establishes a communication connection between the electronic device and the vehicle through the second communication signal and obtains the strength value of the second communication signal.

[0156] In this embodiment of the present application, when the first communication signal between the vehicle and the electronic device is not in a preset state, the vehicle and the electronic device establish a communication connection only through the first communication signal. When the electronic device detects that the first communication signal between the vehicle and the electronic device is in a preset state, the electronic device then establishes a communication connection between the vehicle and the electronic device through the second communication signal and obtains the strength value of the second communication signal.

[0157] In this embodiment of the present application, when the ultra-wideband communication signal quality between the vehicle and the electronic device is good, the electronic device maintains the ultra-wideband communication signal between the two, eliminating the need to establish Bluetooth communication between the two, thereby reducing power consumption associated with communication between the two. When the ultra-wideband communication signal quality between the vehicle and the electronic device is poor, the electronic device establishes Bluetooth communication between the two, ensuring the accuracy of the target distance value subsequently derived from the change in the strength of the Bluetooth communication signal.

[0158] In some embodiments of the present application, a communication connection is established between the electronic device and the vehicle via a first communication signal and a second communication signal; when the electronic device is located outside the vehicle, the electronic device monitors a strength value of the first communication signal and a strength value of the second communication signal;

[0159] When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of the second communication signal includes:

[0160] When the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state and the second communication signal meets preset conditions, the electronic device obtains the strength value of the second communication signal; the preset conditions include any one of the following: the strength value of the second communication signal is lower than the second threshold, and the attenuation rate of the strength value of the second communication signal is greater than a third threshold.

[0161] In an embodiment of the present application, before the electronic device starts to measure the distance between the electronic device and the vehicle, the electronic device and the vehicle maintain a communication connection through the first communication signal and the second communication signal. When the electronic device is outside the vehicle, the strength values ​​of the first communication signal and the second communication signal are monitored synchronously. When the electronic device detects that the first communication signal is in a preset state and the second communication signal meets the preset conditions, it is determined that the first communication signal cannot meet the accuracy of detecting the distance value between the vehicle and the electronic device, and the second communication signal can meet the accuracy of detecting the distance value between the vehicle and the electronic device, so the electronic device starts to obtain the strength value of the second communication signal, and accurately detects the target distance value based on the strength value of the second communication signal, thereby realizing the electronic device's auxiliary monitoring of whether the signal quality of the first communication signal is good through the second communication signal.

[0162] In an embodiment of the present application, when the electronic device detects that the strength value of the second communication signal is lower than the second threshold or the attenuation rate of the strength value of the second communication signal is greater than the third threshold, it is determined that the second communication signal meets the preset condition.

[0163] In an embodiment of the present application, the electronic device maintains Bluetooth communication and ultra-wideband communication with the vehicle. When it is detected that the Bluetooth communication signal meets the preset conditions and the ultra-wideband communication signal is in a preset state, it is determined that the signal quality of the ultra-wideband signal is poor. At this time, the strength value of the Bluetooth communication signal is obtained, and the target distance value between the vehicle and the electronic device is determined based on this. The electronic device uses the strength value of the Bluetooth communication signal to assist in monitoring the communication quality of the ultra-wideband communication signal, thereby avoiding misjudgment of whether the ultra-wideband communication signal is of poor quality.

[0164] In some embodiments of the present application, a vehicle locking method is provided, wherein the vehicle locking method is executed by a vehicle, and the vehicle is communicatively connected with an electronic device. Figure 6 FIG3 shows a flow chart of the vehicle locking method provided in the embodiment of the present application. Figure 6 As shown,

[0165] Step 602: When the vehicle detects that the first communication signal is in a preset state, obtain a strength value of the second communication signal;

[0166] In this embodiment of the present application, the vehicle continuously detects the relative position between the electronic device and the vehicle, and detects the communication status of a first communication signal between the two devices. Upon detecting that the first communication signal is in a predetermined state, it is determined that the distance between the vehicle and the electronic device cannot be accurately determined using the ultra-wideband signal. Therefore, the vehicle begins acquiring the strength of the second communication signal, i.e., begins determining the distance between the vehicle and the electronic device using the Bluetooth signal.

[0167] Step 604: The vehicle determines a target distance value between the electronic device and the vehicle based on a change in the strength value of the second communication signal;

[0168] Step 606: When the target distance value is greater than the preset distance value, the vehicle performs a locking action.

[0169] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0170] In an embodiment of the present application, the vehicle can determine whether it is possible to detect the distance between the vehicle and the electronic device through the ultra-wideband signal by determining whether the first communication signal is in a preset state. When the first communication parameter is not in the preset state, the signal quality of the ultra-wideband communication signal between the electronic device and the vehicle is good, that is, the vehicle can determine the target distance value between the electronic device and the vehicle based on the ultra-wideband signal. When the first communication signal is in the preset state, the signal quality of the ultra-wideband communication signal between the electronic device and the vehicle is poor, that is, it is determined that the target distance value between the electronic device and the vehicle cannot be determined based on the ultra-wideband signal, and the target distance value between the vehicle and the electronic device continues to be detected through the Bluetooth communication signal, and the vehicle performs a locking action based on the target distance value and the preset distance value.

[0171] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, the vehicle continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the vehicle detects the target distance value by measuring the change in the strength of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When the vehicle is unlocked or locked based on the target distance value between the vehicle and the electronic device, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, thereby reducing the possibility of vehicle control failure and improving the safety of users using the vehicle.

[0172] In some embodiments of the present application, a vehicle locking method includes: while the electronic device is being moved from inside the vehicle to outside the vehicle, and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of a second communication signal;

[0173] The vehicle determines a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal, including:

[0174] The vehicle obtains a first distance value between the electronic device and the vehicle according to the change in the strength value of the second communication signal, where the first distance value is a target distance value between the electronic device and the vehicle.

[0175] In this embodiment of the present application, when the electronic device moves from the interior of the vehicle to the exterior, the vehicle immediately obtains the strength value of the second communication signal when it detects that the first communication signal is in a preset state. The first distance value determined based on the strength value of the second communication signal is directly used as the target distance value.

[0176] In an embodiment of the present application, when an electronic device moves from inside a vehicle to outside, the vehicle detects that the first communication signal is in a preset state, i.e., when the vehicle determines that the distance between the electronic device and the vehicle is 0, the first communication signal is no longer able to accurately determine the target distance between the two. At this point, the first distance value calculated based on the change in the strength of the second communication signal is determined as the target distance, and the change in the strength of the Bluetooth communication signal is then acquired. The distance value determined based on the Bluetooth communication signal is then directly used as the target distance between the two, further improving the accuracy of detecting the target distance.

[0177] In some embodiments of the present application, before the vehicle obtains the strength value of the second communication signal, the method further includes: the vehicle obtains a second distance value between the electronic device and the vehicle according to the strength value of the first communication signal;

[0178] The vehicle determines a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal, including:

[0179] The vehicle obtains a first distance value between the electronic device and the vehicle according to the change in the strength value of the second communication signal, and the sum of the first distance value and the second distance value is a target distance value.

[0180] In this embodiment of the present application, the second distance value is the distance between the vehicle and the electronic device determined by the strength of the first communication signal, that is, the distance value calculated using the ultra-wideband signal. The process of calculating the second distance value can be performed by the electronic device or by the vehicle.

[0181] In an embodiment of the present application, when a user carries an electronic device away from a vehicle, and the first communication signal is in a preset state, the vehicle calculates the second distance value before the first communication signal is in the preset state by using the strength value of the first communication signal, and calculates the first distance value after the first communication signal processes the preset state by using the strength value of the second communication signal. The vehicle uses the sum of the first distance value and the second distance value as the target distance value. This ensures the accuracy of the target distance value calculated by the vehicle through the Bluetooth communication signal. Since the second distance value before obtaining the strength value of the Bluetooth communication signal is calculated by the ultra-wideband communication signal, Bluetooth communication between the vehicle and the electronic device can be established when the first communication signal processes the preset state, thereby reducing the power consumption of the electronic device.

[0182] In some embodiments of the present application, when the preset state is that the strength value of the first communication signal is lower than a preset strength value, the vehicle obtains a second distance value between the electronic device and the vehicle based on the strength value of the first communication signal, including:

[0183] When the strength value of the first communication signal drops to within a preset strength value range to which the preset strength value corresponds, the vehicle acquires the real-time strength value of the first communication signal to obtain a second distance value between the electronic device and the vehicle.

[0184] In this embodiment of the present application, the vehicle calculates the second distance value based on the first time range corresponding to the first moment, taking into account the response speed of the device and to ensure calculation accuracy. Specifically, the first time range corresponding to the first moment corresponds to a preset strength value range. Therefore, when the strength value of the first communication signal is detected to fall within the preset strength value range, the second distance value between the electronic device and the vehicle is calculated based on the real-time strength value of the first communication signal.

[0185] In an embodiment of the present application, when it is detected that the strength value of the first communication signal drops to a preset strength value range corresponding to the preset strength value, the second distance value is calculated using the real-time strength value of the first communication signal, thereby avoiding the problem of error in calculating the second distance value due to the device requiring a certain response speed, and further ensuring the accuracy of the target distance value between the vehicle and the electronic device finally obtained.

[0186] In some embodiments of the present application, when the preset state is that the attenuation rate of the strength value of the first communication signal is greater than a preset attenuation rate, obtaining the second distance value between the electronic device and the vehicle based on the strength value of the first communication signal includes:

[0187] When the attenuation speed of the first communication signal rises to within a preset attenuation speed range to which the preset attenuation speed corresponds, the vehicle obtains a real-time strength value of the first communication signal to obtain a second distance value between the electronic device and the vehicle.

[0188] In this embodiment of the present application, taking into account the response speed of the device and to ensure calculation accuracy, the second distance value is calculated based on the second time range corresponding to the second moment. Specifically, the second time range corresponding to the second moment corresponds to a preset attenuation rate range. Therefore, when the attenuation rate of the first communication signal is detected to have risen within the preset attenuation rate range, the second distance value between the electronic device and the vehicle is calculated based on the real-time strength value of the first communication signal.

[0189] In an embodiment of the present application, when the vehicle detects that the attenuation rate of the first communication signal rises to within a preset attenuation rate range, the second distance value is calculated based on the real-time strength value of the first communication signal, thereby avoiding the problem of errors in calculating the second distance value due to the device requiring a certain response speed, and further ensuring the accuracy of the target distance value between the vehicle and the electronic device.

[0190] In some embodiments of the present application, before the vehicle obtains the strength value of the second communication signal, the method further includes: the vehicle disconnecting the communication connection established between the vehicle and the electronic device through the first communication signal.

[0191] In an embodiment of the present application, before the vehicle obtains the strength value of the second communication signal, the electronic device is required to establish a communication connection with the vehicle through a Bluetooth communication signal. Before the electronic device and the vehicle establish a communication connection through a Bluetooth communication signal, the vehicle controls the ultra-wideband communication signal between the electronic device and the vehicle to be disconnected, thereby reducing the power consumption caused by the electronic device turning on ultra-wideband communication.

[0192] In an embodiment of the present application, when an electronic device and a vehicle establish a communication connection via a Bluetooth signal, and the ultra-wideband communication signal is in a preset state, that is, it is determined that the signal quality of the ultra-wideband communication signal is poor, the ultra-wideband communication signal between the electronic device and the vehicle is disconnected at this time, which can reduce the power consumption of the electronic device and the vehicle.

[0193] In some embodiments of the present application, when the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is not in a preset state, the vehicle obtains a second distance value between the electronic device and the vehicle through the strength value of the first communication signal. When the second distance value is greater than the preset distance value, the vehicle performs a locking action.

[0194] In an embodiment of the present application, when the electronic device is already outside the vehicle and the first communication signal between the electronic device and the vehicle is not always in a preset state, the vehicle determines that the signal quality of the ultra-wideband communication signal remains good. At this time, the vehicle will use the second distance value detected based on the ultra-wideband communication signal as the actual distance value between the electronic device and the vehicle, and when it is detected that the second distance value is greater than the preset distance value, it is determined that the user is carrying the electronic device away from the vehicle, so the vehicle performs a locking action.

[0195] In an embodiment of the present application, when the signal quality of the ultra-wideband communication signal between the vehicle and the electronic device remains good, the second distance value calculated based on the ultra-wideband communication signal is directly used as the actual distance value between the vehicle and the electronic device to control whether the vehicle performs the locking action. There is no need to obtain the strength value of the Bluetooth communication signal between the vehicle and the electronic device again, which further improves the accuracy of the vehicle's locking action.

[0196] In some embodiments of the present application, the vehicle includes multiple positioning anchor points, and the vehicle locking method further includes: the vehicle obtains positioning information of the electronic device through the multiple positioning anchor points; based on the positioning information, when it is determined that the electronic device is in the vehicle, the vehicle remains unlocked.

[0197] In the embodiments of the present application, a vehicle includes multiple positioning anchor points. Through the multiple positioning anchor points, the vehicle can detect the positioning information of an electronic device and accurately determine the positional relationship between the vehicle and the electronic device based on the positioning information. When it is detected that the electronic device is inside the vehicle, the vehicle remains unlocked to prevent the vehicle from being accidentally locked when the user is inside the vehicle.

[0198] Exemplarily, the positioning anchor points can be UWB positioning anchor points. Multiple UWB positioning anchor points are provided on the vehicle. To determine whether the electronic device is inside the vehicle, if it is detected that the electronic device is inside the vehicle, the locking operation is not performed. When it is determined that the electronic device is outside the vehicle, the second distance value between the vehicle and the electronic device is detected through the ultra-wideband communication signals transmitted and received by the UWB positioning anchor points.

[0199] Figure 3 The schematic diagram of the positioning coordinate system in the embodiments of the present application is shown. As Figure 3 shown, the following method is used to determine whether the electronic device is inside the vehicle. The vehicle includes 5 UWB positioning anchor points, and the main anchor point is located in the middle of the vehicle. A coordinate system is established with the main anchor point in the vehicle as the center. After any 3 anchor points among the 5 UWB positioning anchor points on the vehicle body receive the UWB signal of the mobile phone, the position coordinates of the user can be calculated through the distance. Substitute the length a and width b of the vehicle body into the established coordinate system. Assuming that anchor point 1 is at the center of the vehicle, when the calculated user coordinates (x, y) satisfy -b / 2 < x < b / 2 and -a / 2 < y < a / 2, it is determined that the user's position is inside the vehicle; otherwise, it is outside the vehicle. Within the unlocking range, if the target distance value is less than the unlocking threshold, the electronic device sends a signal to keep the vehicle unlocked to the vehicle. Within the locking range, if the target distance value is greater than the locking threshold, the electronic device sends a locking signal to the vehicle.

[0200] In the embodiments of the present application, by setting multiple positioning anchor points in the vehicle, the vehicle can accurately detect whether the electronic device is inside the vehicle and keep the vehicle unlocked when the electronic device is inside the vehicle, preventing the user from accidentally locking the vehicle when inside the vehicle.

[0201] In some embodiments of the present application, when the electronic device is outside the vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining the intensity value of the second communication signal includes:

[0202] When the electronic device is outside the vehicle and the vehicle detects that the first communication signal is in a preset state, the vehicle establishes a communication connection between the electronic device and the vehicle through the second communication signal and obtains the intensity value of the second communication signal.

[0203] In this embodiment of the present application, when the first communication signal between the vehicle and the electronic device is not in a preset state, the vehicle and the electronic device are connected to each other through the first communication signal only. When it is detected that the first communication signal between the vehicle and the electronic device is in the preset state, the communication connection between the vehicle and the electronic device is established through the second communication signal, and the strength value of the second communication signal is obtained.

[0204] In this embodiment of the present application, when the ultra-wideband communication signal quality between the vehicle and the electronic device is good, only the ultra-wideband communication signal between the two is maintained, eliminating the need to establish Bluetooth communication between the two, thereby reducing power consumption associated with communication between the two. When the ultra-wideband communication signal quality between the vehicle and the electronic device is poor, Bluetooth communication is established between the two, ensuring the accuracy of the target distance value subsequently derived from the change in the Bluetooth communication signal strength.

[0205] In some embodiments of the present application, a communication connection is established between the electronic device and the vehicle via a first communication signal and a second communication signal; when the electronic device is located outside the vehicle, the vehicle monitors a strength value of the first communication signal and a strength value of the second communication signal;

[0206] When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of the second communication signal includes:

[0207] When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state and the second communication signal meets preset conditions, the strength value of the second communication signal is obtained; the preset conditions include any one of the following: the strength value of the second communication signal is lower than the second threshold, and the attenuation rate of the strength value of the second communication signal is greater than a third threshold.

[0208] In an embodiment of the present application, before starting to measure the distance between the electronic device and the vehicle, a communication connection is maintained between the electronic device and the vehicle through the first communication signal and the second communication signal. When the electronic device is located outside the vehicle, the strength values ​​of the first communication signal and the second communication signal are monitored synchronously. When it is detected that the first communication signal is in a preset state and the second communication signal meets the preset conditions, it is determined that the first communication signal cannot meet the accuracy of detecting the distance value between the vehicle and the electronic device, and the second communication signal can meet the accuracy of detecting the distance value between the vehicle and the electronic device, so the strength value of the second communication signal is obtained, and the target distance value is accurately detected based on the strength value of the second communication signal, thereby realizing auxiliary monitoring of whether the signal quality of the first communication signal is good through the second communication signal.

[0209] In the embodiment of the present application, when it is detected that the strength value of the second communication signal is lower than the second threshold and the attenuation rate of the strength value of the second communication signal is greater than the third threshold, it is determined that the second communication signal meets the preset condition.

[0210] In an embodiment of the present application, Bluetooth communication and ultra-wideband communication are maintained between the electronic device and the vehicle. When it is detected that the Bluetooth communication signal meets the preset conditions and the ultra-wideband communication signal is in a preset state, it is determined that the signal quality of the ultra-wideband signal is poor. At this time, the strength value of the Bluetooth communication signal is obtained, and the target distance value between the vehicle and the electronic device is determined accordingly. This realizes auxiliary monitoring of the communication quality of the ultra-wideband communication signal through the strength value of the Bluetooth communication signal, avoiding misjudgment of whether the ultra-wideband communication signal is of poor quality.

[0211] The vehicle locking method provided in the embodiment of the present application can be executed by an electronic device. In the embodiment of the present application, the electronic device provided in the embodiment of the present application is described by taking the vehicle locking method executed by the electronic device as an example.

[0212] In some embodiments of the present application, an electronic device is provided. Figure 7 FIG. 1 shows a schematic block diagram of an electronic device 700 provided in an embodiment of the present application, as shown in FIG. Figure 7 As shown, the electronic device 700 includes:

[0213] The first detection module 702 is configured to obtain a strength value of the second communication signal when it is detected that the first communication signal is in a preset state or when it is detected that the third distance value between the electronic device and the target object is less than a first threshold;

[0214] A first determining module 704 is configured to determine a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal;

[0215] A first sending module 706 is configured to send a first signal to the vehicle when the target distance value is greater than a preset distance value, wherein the first signal is configured to cause the vehicle to perform a locking action;

[0216] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0217] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, it continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the target distance value is detected by the change in the strength value of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When controlling the unlocking and locking of the vehicle based on the target distance value between the vehicle and the electronic device, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, the possibility of vehicle control failure is reduced, and the safety of users using the vehicle is improved.

[0218] The vehicle locking method provided in the embodiment of the present application can be executed by a vehicle. In the embodiment of the present application, the vehicle provided in the embodiment of the present application is described by taking the vehicle locking method executed by the vehicle as an example.

[0219] In some embodiments of the present application, an electronic device is provided. Figure 8 A schematic block diagram of a vehicle 800 provided in an embodiment of the present application is shown. Figure 8 As shown, vehicle 800 includes:

[0220] The second detection module 802 is configured to obtain a strength value of the second communication signal when detecting that the first communication signal is in a preset state;

[0221] A second determining module 804 is configured to determine a target distance value according to a change in the strength value of the second communication signal;

[0222] The processing module 806 is configured to execute a locking action when the target distance value is greater than a preset distance value;

[0223] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0224] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, the vehicle continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the vehicle detects the target distance value by measuring the change in the strength of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When the vehicle is unlocked or locked based on the target distance value between the vehicle and the electronic device, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, thereby reducing the possibility of vehicle control failure and improving the safety of users using the vehicle.

[0225] The electronic device in the embodiments of the present application may be a terminal or other device other than a terminal. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM, or an kiosks, etc., and the embodiments of the present application do not specifically limit it.

[0226] The electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0227] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, they will not be described here.

[0228] Optionally, an embodiment of the present application further provides an electronic device, Figure 9 FIG. 1 shows a structural block diagram of an electronic device according to an embodiment of the present application. Figure 9As shown, the electronic device 900 includes a processor 902, a memory 904, and a program or instruction stored in the memory 904 and executable on the processor 902. When the program or instruction is executed by the processor 902, each process of the above-mentioned vehicle locking method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0229] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0230] Figure 10 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0231] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009 and a processor 1010.

[0232] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0233] The processor 1010 is configured to obtain a strength value of the second communication signal when it is detected that the first communication signal is in a preset state or when it is detected that the third distance value between the electronic device and the target object is less than the first threshold;

[0234] Processor 1010, configured to determine a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal;

[0235] Processor 1010, configured to send a first signal to the vehicle when the target distance value is greater than a preset distance value, the first signal being configured to cause the vehicle to perform a locking action;

[0236] Among them, the first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following items: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed.

[0237] In an embodiment of the present application, while the electronic device is establishing communication with the vehicle via an ultra-wideband communication signal, it continuously detects whether the ultra-wideband communication signal is in a preset state, thereby determining whether the ultra-wideband communication can continue to accurately detect the target distance value between the vehicle and the electronic device. When the ultra-wideband communication signal cannot accurately detect the target distance value, the target distance value is detected by the change in the strength value of the Bluetooth signal between the vehicle and the electronic device, thereby avoiding the problem of low accuracy of the determined distance value caused by poor communication quality of the ultra-wideband communication. When controlling the unlocking and locking of the vehicle based on the target distance value between the vehicle and the electronic device, the inability to lock the vehicle due to poor ultra-wideband communication quality is effectively avoided, the possibility of vehicle control failure is reduced, and the safety of users using the vehicle is improved.

[0238] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 1010 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0239] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0240] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.

[0241] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0242] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0243] An embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned vehicle locking method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0244] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0245] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned vehicle locking method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0246] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0247] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0248] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A vehicle locking method, characterized in that: include: establishing a communication connection between the electronic device and the vehicle through a first communication signal; When the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state, obtaining a strength value of a second communication signal; determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal; When the target distance value is greater than a preset distance value, the vehicle performs a locking action; The first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed; The electronic device establishes a communication connection with the vehicle via the first communication signal and the second communication signal; monitoring a strength value of the first communication signal and a strength value of the second communication signal when the electronic device is located outside the vehicle; The obtaining of the strength value of the second communication signal when the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state includes: When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in the preset state and the second communication signal meets a preset condition, obtaining a strength value of the second communication signal; The preset condition includes any one of the following: the strength value of the second communication signal is lower than a second threshold, and the attenuation speed of the strength value of the second communication signal is greater than a third threshold.

2. The vehicle locking method according to claim 1, characterized in that: Also includes: When the electronic device moves from the inside of the vehicle to the outside of the vehicle and the vehicle detects that the first communication signal is in the preset state, obtaining a strength value of the second communication signal; The determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal includes: A first distance value between the electronic device and the vehicle is obtained according to a change in the strength value of the second communication signal, where the first distance value is a target distance value between the electronic device and the vehicle.

3. The vehicle locking method according to claim 1, characterized in that: Before acquiring the strength value of the second communication signal, the method further includes: obtaining a second distance value between the electronic device and the vehicle according to the strength value of the first communication signal; The determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal includes: A first distance value between the electronic device and the vehicle is obtained according to a change in the strength value of the second communication signal, and a sum of the first distance value and the second distance value is the target distance value.

4. The vehicle locking method according to claim 3, characterized in that: The preset state is when the strength value of the first communication signal is lower than the preset strength value, and obtaining the second distance value between the electronic device and the vehicle according to the strength value of the first communication signal includes: When the strength value of the first communication signal drops to within a preset strength value range to which the preset strength value belongs, acquiring a real-time strength value of the first communication signal to obtain a second distance value between the electronic device and the vehicle; The preset state is that when the attenuation speed of the strength value of the first communication signal is greater than a preset attenuation speed, obtaining the second distance value between the electronic device and the vehicle according to the strength value of the first communication signal includes: When the attenuation speed of the first communication signal rises to a preset attenuation speed range to which the preset attenuation speed belongs, a real-time strength value of the first communication signal is acquired to obtain a second distance value between the electronic device and the vehicle.

5. The vehicle locking method according to claim 1, characterized in that: Before obtaining the strength value of the second communication signal, the method further includes: disconnecting the communication connection between the vehicle and the electronic device established through the first communication signal.

6. The vehicle locking method according to claim 1, characterized in that: Also includes: When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is not in the preset state, the vehicle performs a locking action by obtaining a second distance value between the electronic device and the vehicle through the strength value of the first communication signal and when the second distance value is greater than the preset distance value.

7. The vehicle locking method according to claim 1, characterized in that: The electronic device includes a first sensor, and the vehicle locking method further includes: The electronic device obtains a third distance value between the electronic device and the target object through the first sensor, and obtains a strength value of the second communication signal when the third distance value is less than a first threshold; The target object is an obstruction of the ultra-wideband signal.

8. The vehicle locking method according to any one of claims 1 to 7, characterized in that: The vehicle includes a plurality of positioning anchor points, and the vehicle locking method further includes: The vehicle obtains the positioning information of the electronic device through the multiple positioning anchor points; When it is determined based on the positioning information that the electronic device is in the vehicle, the vehicle remains unlocked.

9. The vehicle locking method according to any one of claims 1 to 7, characterized in that: When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state, obtaining a strength value of the second communication signal includes: When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in a preset state, a communication connection is established between the electronic device and the vehicle through the second communication signal, and a strength value of the second communication signal is obtained.

10. A vehicle locking method, executed by an electronic device, characterized in that: include: When the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state, or when detects that a third distance value between the electronic device and a target object is less than a first threshold, obtaining a strength value of the second communication signal; determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal; When the target distance value is greater than a preset distance value, sending a first signal to the vehicle to cause the vehicle to perform a locking action; The first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed; The electronic device establishes a communication connection with the vehicle via the first communication signal and the second communication signal; In a case where the electronic device is located outside the vehicle, the electronic device monitors a strength value of the first communication signal and a strength value of the second communication signal; When the electronic device is located outside the vehicle and detects that the first communication signal is in the preset state, obtaining the strength value of the second communication signal includes: When the electronic device is located outside the vehicle and detects that the first communication signal is in the preset state and the second communication signal meets a preset condition, the electronic device obtains a strength value of the second communication signal; The preset condition includes any one of the following: the strength value of the second communication signal is lower than a second threshold value, and the decay rate of the strength value of the second communication signal is greater than a third threshold value; The target object is an obstruction of the ultra-wideband signal.

11. A vehicle locking method, performed by a vehicle, characterized in that: include: When the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state, obtaining a strength value of the second communication signal; determining a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal; When the target distance value is greater than the preset distance value, performing a locking action; The first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed; The electronic device establishes a communication connection with the vehicle via the first communication signal and the second communication signal; In a case where the electronic device is located outside the vehicle, the vehicle monitors a strength value of the first communication signal and a strength value of the second communication signal; When the electronic device is located outside the vehicle and detects that the first communication signal is in the preset state, obtaining the strength value of the second communication signal includes: When the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in the preset state and the second communication signal meets a preset condition, obtaining a strength value of the second communication signal; The preset condition includes any one of the following: the strength value of the second communication signal is lower than a second threshold, and the attenuation speed of the strength value of the second communication signal is greater than a third threshold.

12. An electronic device for locking a vehicle, characterized in that: include: a first detection module, configured to obtain a strength value of a second communication signal when the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state, or when a third distance value between the electronic device and a target object is detected to be less than a first threshold; a first determining module, configured to determine a target distance value between the electronic device and the vehicle according to a change in the strength value of the second communication signal; a first sending module, configured to send a first signal to the vehicle when the target distance value is greater than a preset distance value, wherein the first signal is used to cause the vehicle to perform a locking action; The first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed; The electronic device establishes a communication connection with the vehicle via the first communication signal and the second communication signal; In a case where the electronic device is located outside the vehicle, the electronic device monitors a strength value of the first communication signal and a strength value of the second communication signal; The first detection module is specifically configured to, when the electronic device is located outside the vehicle and the electronic device detects that the first communication signal is in the preset state and the second communication signal meets a preset condition, obtain, by the electronic device, a strength value of the second communication signal; The preset condition includes any one of the following: the strength value of the second communication signal is lower than a second threshold value, and the decay rate of the strength value of the second communication signal is greater than a third threshold value; The target object is an obstruction of the ultra-wideband signal.

13. A vehicle, characterized in that: include: a second detection module, configured to obtain a strength value of a second communication signal when the electronic device is located outside the vehicle and detects that the first communication signal is in a preset state; A second determining module, configured to determine a target distance value according to a change in the strength value of the second communication signal; A processing module, configured to execute a locking action when the target distance value is greater than a preset distance value; The first communication signal is an ultra-wideband communication signal, and the second communication signal is a Bluetooth communication signal; the preset state includes any one of the following: the strength value of the first communication signal is lower than the preset strength value, and the attenuation speed of the strength value of the first communication signal is greater than the preset attenuation speed; Establishing a communication connection between the electronic device and the vehicle through the first communication signal and the second communication signal; In a case where the electronic device is located outside the vehicle, the vehicle monitors a strength value of the first communication signal and a strength value of the second communication signal; The second detection module is specifically configured to obtain a strength value of the second communication signal when the electronic device is located outside the vehicle and the vehicle detects that the first communication signal is in the preset state and the second communication signal meets a preset condition; The preset condition includes any one of the following: the strength value of the second communication signal is lower than a second threshold, and the attenuation speed of the strength value of the second communication signal is greater than a third threshold.

Citation Information

Patent Citations

  • Self-propelled electronic device

    CN106104400A

  • Electronic device and method for performing ranging through UWB

    CN114599987A

  • Vehicle control method and device, electronic equipment and storage medium

    CN115119173A

  • UWB and Bluetooth hybrid positioning tag

    CN217643723U