Vehicle-based distance measurement method, vehicle control method, vehicle and storage medium
By determining and updating the identity information after the vehicle and mobile terminal establish a connection, and combining the ranging parameters of the main module and the slave module, the problem of inaccurate distance measurement caused by changes in the mobile terminal's identity information is solved, and higher ranging accuracy is achieved.
Patent Information
- Application Number
- CN202511136736.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2025-11-21
AI Technical Summary
How to improve the accuracy of distance measurement between mobile terminals and vehicles, especially when the identity information of mobile terminals changes.
By responding to the connection established between the mobile terminal and the vehicle, the identification and identity information are obtained, the target operation is performed to determine whether the identity information has changed, and the identity information is updated when it has changed. The distance is determined using multiple ranging parameters, including the collaborative ranging of the main module and the slave module.
It improves the accuracy of distance measurement when the identity information of the mobile terminal changes, ensuring the accuracy and reliability of the distance measurement results.
Smart Images

Figure CN120993393A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, specifically to a vehicle-based ranging method, a vehicle control method, a vehicle, and a storage medium. Background Technology
[0002] With the development of vehicle intelligence, many intelligent functions in vehicles now rely on the distance between a mobile device and the vehicle. Taking digital key contactless triggering as an example, this function uses mobile devices such as smartphones and smartwatches to replace traditional physical keys, enabling contactless unlocking, locking, starting, and sharing of the vehicle. Distance measurement is one of the key technologies for achieving contactless digital key triggering. For instance, when a user carrying a mobile device approaches the vehicle (within 2 meters), the vehicle can automatically unlock based on distance measurement; when the user carrying the mobile device moves a certain distance away from the vehicle (more than 5 meters), the vehicle can automatically lock based on distance measurement; and if the vehicle detects a legitimate mobile device inside the vehicle through distance measurement, it can allow the vehicle to start.
[0003] Improving the accuracy of measuring the distance between a mobile terminal and a vehicle has become an urgent problem to be solved. Summary of the Invention
[0004] The main objective of this application is to propose a vehicle-based ranging method, vehicle control method, vehicle, and storage medium, aiming to improve the accuracy of measuring the distance between a mobile terminal and a vehicle.
[0005] This application provides a vehicle-based ranging method applied to a vehicle. The method includes: in response to a mobile terminal establishing a first connection with the vehicle, obtaining first identity information of the mobile terminal based on the identification information of the mobile terminal; performing a target operation based on the first identity information to obtain a determination result corresponding to a change in the identity information of the mobile terminal; obtaining second identity information of the mobile terminal based on the determination result; and determining the distance of the mobile terminal relative to the vehicle based on at least two ranging parameters determined by the second identity information.
[0006] In one embodiment, the target operation includes a first operation and / or a second operation; the first operation includes: a first operation of address parsing the ranging signal of the mobile terminal using the first identity information; the second operation includes: an operation of scanning the ranging signal of the mobile terminal using the first identity information.
[0007] In one embodiment, the step of performing a target operation based on the first identity information to obtain a determination result corresponding to the change in the identity information of the mobile terminal includes: when the target operation includes the first operation, performing the first operation through the main module of the vehicle to obtain the address resolution result of the ranging signal; when the address resolution result indicates that the address resolution of the ranging signal failed, determining that the determination result indicates that the identity information of the mobile terminal has changed; when the target operation includes the second operation, performing the second operation through the slave module of the vehicle to obtain the scanning result of the ranging signal; when the scanning result indicates that the scanning of the ranging signal failed, determining that the determination result indicates that the identity information of the mobile terminal has changed.
[0008] In one embodiment, obtaining the second identity information of the mobile terminal based on the determination result includes: sending a target instruction to the mobile terminal when the determination result indicates that the identity information of the mobile terminal has changed; establishing a second connection between the vehicle and the mobile terminal in response to connection information sent by the mobile terminal according to the target instruction; obtaining the second identity information of the mobile terminal through the second connection; or determining the first identity information as the second identity information of the mobile terminal when the determination result indicates that the identity information of the mobile terminal has not changed.
[0009] In one embodiment, establishing a second connection between the vehicle and the mobile terminal in response to connection information sent by the mobile terminal according to the target instruction includes any one of the following: if the operating system of the mobile terminal belongs to a first type of system, establishing the second connection in response to a connection request sent by the mobile terminal according to the target instruction; wherein the first type of system is a system related to the Android operating system; if the operating system of the mobile terminal belongs to a second type of system, sending the connection request to the mobile terminal in response to a connection notification sent by the mobile terminal according to the target instruction to establish the second connection; wherein the second type of system is a system related to the Apple operating system.
[0010] In one embodiment, the first identity information is obtained based on a preset mapping relationship, the preset mapping relationship including the correspondence between the identification information and the target identity information of the mobile terminal, the target identity information being the identity information corresponding to the identification information; the method further includes: if the determination result indicates that the identity information of the mobile terminal has changed, after obtaining the second identity information of the mobile terminal according to the determination result, updating the target identity information in the preset mapping relationship to the second identity information.
[0011] In one embodiment, the vehicle includes a main module and at least one slave module for implementing contactless triggering of a digital key; the at least two ranging parameters include a first intensity value and a second intensity value; determining the distance of the mobile terminal relative to the vehicle based on the at least two ranging parameters determined through the second identity information includes: obtaining a first intensity value of the ranging signal of the mobile terminal through the main module; scanning the ranging signal using the second identity information by at least two slave modules respectively to obtain a second intensity value corresponding to each slave module; wherein the second intensity value is obtained by the corresponding slave module scanning the ranging signal; and determining the distance of the mobile terminal relative to the vehicle by the main module based on the first intensity value and the second intensity value corresponding to each slave module.
[0012] This application also provides a vehicle control method, including: determining the distance between a mobile terminal and the vehicle using the vehicle-based ranging method described above; and performing a vehicle control operation based on the distance; wherein the control operation includes an operation triggered by the mobile terminal.
[0013] In one embodiment, the mobile terminal includes a device that communicates via Bluetooth.
[0014] This application also provides a vehicle, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described vehicle-based ranging method or the above-described vehicle control method.
[0015] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described vehicle-based ranging method or the above-described vehicle control method.
[0016] This application provides a vehicle-based ranging method, vehicle control method, vehicle, and storage medium. In response to a mobile terminal establishing a first connection with a vehicle, it obtains the mobile terminal's first identity information based on the mobile terminal's identification information, performs a target operation based on the first identity information, and obtains a determination result corresponding to a change in the mobile terminal's identity information. This accurately determines whether the mobile terminal's identity information has changed. Furthermore, based on the determination result, it obtains the mobile terminal's second identity information and determines the distance between the mobile terminal and the vehicle based on at least two ranging parameters determined by the second identity information. This allows for the determination of the mobile terminal's distance relative to the vehicle using the second identity information even when the mobile terminal's identity information has changed, improving the accuracy of measuring the distance between the mobile terminal and the vehicle using the mobile terminal's identity information. Attached Figure Description
[0017] Figure 1 This is a schematic flowchart of the vehicle-based ranging method provided in the embodiments of this application;
[0018] Figure 2 This is a schematic diagram showing the arrangement of the main module and slave module of the vehicle provided in this application embodiment;
[0019] Figure 3 This is a schematic diagram of the triangulation principle provided in the embodiments of this application;
[0020] Figure 4 This is a schematic flowchart of the vehicle control method provided in the embodiments of this application;
[0021] Figure 5 This is a schematic diagram of the architecture of the vehicle control system provided in an embodiment of this application;
[0022] Figure 6 This is a timing diagram of the vehicle control method provided in the embodiments of this application;
[0023] Figure 7 This is a schematic diagram of the vehicle control device provided in the embodiments of this application;
[0024] Figure 8 This is a schematic diagram of the hardware structure of the vehicle provided in the embodiments of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0026] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the digit " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0027] The vehicle-based ranging method and vehicle control method provided in this application will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0028] Please see Figure 1 This application provides a vehicle-based ranging method, applied to vehicles, which includes:
[0029] Step S101: In response to the establishment of a first connection between the mobile terminal and the vehicle, obtain the first identity information of the mobile terminal based on the identification information of the mobile terminal;
[0030] Optionally, the mobile terminal can be a device that communicates via Bluetooth, Ultra-Wideband (UWB), or Radio Frequency (RF). A Bluetooth-enabled device can be a physical vehicle key or a Bluetooth digital key; a UWB-enabled device can be a physical vehicle key or a UWB digital key; and an RF-enabled device can be a physical vehicle key or an RF digital key. The digital key can be any device linked to a mobile phone, wristband, watch, or tablet computer with digital key functionality.
[0031] Optionally, the first connection established between the vehicle and the mobile terminal can be a Bluetooth Low Energy (BLE) connection, a UWB connection, a Spark Link connection, or a radio frequency connection. Optionally, the first identity information can be identity information pre-stored by the vehicle corresponding to the identification information, and the identity information can be used to measure the distance between the mobile terminal and the vehicle.
[0032] In practice, when the mobile terminal establishes its first connection with the vehicle, the mobile terminal can send its identification information and identity information to the vehicle, and the vehicle can store the mobile terminal's identification information and identity information locally on the vehicle. When the vehicle and the mobile terminal establish a first connection again, the mobile terminal can send its identification information to the vehicle, and the vehicle can query the correspondence between the mobile terminal's identification information and identity information stored in the vehicle in advance based on the mobile terminal's identification information to obtain the mobile terminal's first identity information.
[0033] In practice, to further improve the communication security between the mobile terminal and the vehicle, when the mobile terminal and the vehicle establish a first connection for the first time or again, the vehicle and the mobile terminal can perform business security authentication; the mobile terminal can send its identification information to the vehicle after the business security authentication between the two parties is successful.
[0034] Step S102: Perform the target operation based on the first identity information to obtain the determination result corresponding to the change of the identity information of the mobile terminal;
[0035] Optionally, the target operation is used to determine whether the identity information of the mobile terminal has changed. The target operation may include a first operation and / or a second operation; the first operation may include: a first operation of address resolution of the ranging signal of the mobile terminal using the first identity information; the second operation may include: an operation of scanning the ranging signal of the mobile terminal using the first identity information. In this way, the target operation performed on the first identity information can be flexibly selected according to the interference factors in the actual execution environment to ensure the accuracy of the determination result corresponding to the change of the mobile terminal's identity information. Optionally, the ranging signal is a signal sent by the mobile terminal to measure the distance of the mobile terminal relative to the vehicle.
[0036] In practice, a determination result corresponding to the change in the mobile terminal's identity information can be obtained based on the address resolution result of the ranging signal of the mobile terminal using the first identity information. For specific implementation details, please refer to the relevant description below; alternatively, a determination result corresponding to the change in the mobile terminal's identity information can be obtained based on the scanning result of the ranging signal of the mobile terminal using the first identity information. For specific implementation details, please refer to the relevant description below; alternatively, a determination result corresponding to the change in the mobile terminal's identity information can be obtained by combining the address resolution result of the ranging signal of the mobile terminal using the first identity information and the scanning result of the ranging signal of the mobile terminal using the first identity information. For specific implementation details, please refer to the relevant description below.
[0037] Step S103: Based on the determination result, obtain the second identity information of the mobile terminal;
[0038] Optionally, the second identity information is the current identity information of the mobile terminal. In actual implementation, if the above determination result indicates that the identity information of the mobile terminal has not changed, the above first identity information can be determined as the second identity information; if the above determination result indicates that the identity information of the mobile terminal has changed, a second connection between the vehicle and the mobile terminal can be established by reporting the change in identity information to the mobile terminal, and the second identity information of the mobile terminal can be obtained through the second connection. For specific implementation details, please refer to the relevant description below, which will not be described here.
[0039] Step S104: Determine the distance between the mobile terminal and the vehicle based on at least two ranging parameters determined through the second identity information.
[0040] Optionally, the above-mentioned at least two ranging parameters may include the intensity values of ranging signals received at at least two different locations of the vehicle; or they may include the phase difference and propagation time of at least two consecutive ranging signals received by the vehicle.
[0041] In practice, the ranging signal of the mobile terminal can be scanned using the second identity information to obtain the strength values of the ranging signals received at at least two locations of the vehicle. Then, based on the strength values of the ranging signals received at at least two locations of the vehicle, and combined with the relationship between the signal strength value and the distance, the distance between the mobile terminal and the vehicle can be determined.
[0042] This application embodiment, in response to the establishment of a first connection between the mobile terminal and the vehicle, obtains the first identity information of the mobile terminal based on the identification information of the mobile terminal, and performs a target operation based on the first identity information to obtain a determination result corresponding to the change of the mobile terminal's identity information. This can accurately determine whether the identity information of the mobile terminal has changed. Furthermore, by obtaining the second identity information of the mobile terminal based on the determination result, and determining the distance of the mobile terminal relative to the vehicle based on at least two ranging parameters determined by the second identity information, this embodiment can determine the distance of the mobile terminal relative to the vehicle using the second identity information of the mobile terminal even if the identity information of the mobile terminal has changed, thereby improving the accuracy of measuring the distance of the mobile terminal relative to the vehicle using the identity information of the mobile terminal.
[0043] In one embodiment, step S102 above, which involves performing a target operation based on the first identity information to obtain a determination result corresponding to the change in the identity information of the mobile terminal, includes:
[0044] If the target operation includes the first operation, the first operation is executed through the vehicle's main module to obtain the address resolution result of the ranging signal; if the address resolution result indicates that the address resolution of the ranging signal has failed, the determination result is that the identity information of the mobile terminal has changed.
[0045] If the target operation includes a second operation, the second operation is executed by the vehicle's slave module to obtain the scanning result of the ranging signal; if the scanning result indicates that the ranging signal scanning failed, the determination result is that the identity information of the mobile terminal has changed.
[0046] Optionally, the address of the ranging signal refers to the unique identifier embedded in the signal frame of the ranging signal. It is a key field in the communication protocol used to identify the mobile terminal, ensuring the correct routing of the ranging signal and the correct attribution of the ranging result. Considering communication security, it is generally necessary to use the mobile terminal's identity information to perform parsing operations such as matching, mapping, or replacing on the address field of the ranging signal to extract the valid address of the ranging signal.
[0047] In actual implementation, once the vehicle and the mobile terminal establish a first connection, the vehicle's main module can use the first identity information to perform address resolution on the mobile terminal's ranging signal, obtaining the address resolution result of the ranging signal. If the address resolution result indicates that resolving the address of the ranging signal using the first identity information failed, it can be determined that the mobile terminal's identity information has changed. If the address resolution result indicates that resolving the address of the ranging signal using the first identity information was successful, it can be determined that the mobile terminal's identity information has not changed.
[0048] In actual implementation, once the vehicle and the mobile terminal establish a first connection, the vehicle's main module can send the mobile terminal's first identity information to the slave module. The slave module can then use this first identity information to scan the mobile terminal's ranging signal and obtain the scanning result. If the scanning result indicates that the mobile terminal's ranging signal was not detected using the first identity information, it can be determined that the mobile terminal's identity information has changed. If the scanning result indicates that the mobile terminal's ranging signal was detected using the first identity information, it can be determined that the mobile terminal's identity information has not changed.
[0049] Optionally, when the target operation includes the first operation and the second operation, the ranging signal of the mobile terminal can be scanned by the slave module using the first identity information to obtain the scanning result of the ranging signal; then, if the scanning result indicates that the ranging signal scanning failed, the address resolution of the ranging signal of the mobile terminal can be performed by the master module using the first identity information to obtain the address resolution result of the ranging signal; then, if the resolution result indicates that the address resolution of the ranging signal failed, it can be determined that the identity information of the mobile terminal has changed.
[0050] In actual implementation, after the vehicle and mobile terminal establish a first connection, the vehicle's main module can send the mobile terminal's first identity information to the slave module. The slave module can then use this first identity information to scan the mobile terminal's ranging signal and obtain the scanning result. If the scanning result indicates that the mobile terminal's ranging signal was detected using the first identity information, it can be determined that the mobile terminal's identity information has not changed. If the scanning result indicates that the mobile terminal's ranging signal was not detected using the first identity information, the main module can further use the first identity information to perform address parsing on the mobile terminal's ranging signal to obtain the address parsing result. If the parsing result indicates that parsing the address of the ranging signal using the first identity information failed, it can be determined that the mobile terminal's identity information has changed. If the parsing result indicates that parsing the address of the ranging signal using the first identity information was successful, it can be determined that there was interference in the slave module's scanning process of the mobile terminal's ranging signal using the first identity information, leading to inaccurate scanning results, and ultimately, it can be determined that the mobile terminal's identity information has not changed. This is equivalent to designing a dual verification mechanism to determine whether the identity information of the mobile terminal has changed, which can effectively avoid misjudgments caused by occasional scanning failures due to signal interference, environmental factors, or other reasons.
[0051] This application embodiment can determine whether the identity information of the mobile terminal has changed by using the address parsing result of the ranging signal of the mobile terminal using the first identity information by the main module; it can also determine whether the identity information of the mobile terminal has changed by using the scanning result of the ranging signal of the mobile terminal using the first identity information by the slave module; or it can combine the address parsing result of the ranging signal of the mobile terminal using the first identity information by the main module and the scanning result of the ranging signal of the mobile terminal using the first identity information by the slave module to determine whether the identity information of the mobile terminal has changed. This takes into account the interference factors in the actual execution environment of the above-mentioned target operation, and can improve the accuracy of determining whether the identity information of the mobile terminal has changed.
[0052] In one embodiment, obtaining the second identity information of the mobile terminal based on the determination result in step S103 above includes:
[0053] If the determination result indicates that the identity information of the mobile terminal has changed, a target instruction is sent to the mobile terminal; in response to the connection information sent by the mobile terminal according to the target instruction, a second connection is established between the vehicle and the mobile terminal; through the second connection, the second identity information of the mobile terminal is obtained; or
[0054] If the determination result is that the identity information of the mobile terminal has not changed, the first identity information will be determined as the second identity information of the mobile terminal.
[0055] Optionally, the second connection established between the vehicle and the mobile terminal can be a Bluetooth Low Energy (BLE) connection, a UWB connection, a Spark Link connection, or a radio frequency connection. The second connection can be the same type of connection as the first connection mentioned above, or it can be a different type of connection.
[0056] In actual implementation, if the determination result indicates a change in the mobile terminal's identity information, the vehicle can first send a target instruction to the mobile terminal indicating the change. Then, the mobile terminal can send connection information to the vehicle based on this target instruction. Optionally, this connection information is determined based on the mobile terminal's system type. The vehicle can respond to this connection information and establish a second connection with the mobile terminal. Specific implementation details are described below and will not be elaborated here. Then, with the vehicle and mobile terminal establishing a second connection, the mobile terminal can send its current identity information (i.e., second identity information) to the vehicle. The vehicle can then update its pre-stored identity information corresponding to the mobile terminal's identification information to the second identity information.
[0057] In practice, if the determination result is that the identity information of the mobile terminal has not changed, the first identity information can be directly determined as the second identity information of the mobile terminal; it can be understood that in this case, the identity information of the mobile terminal corresponding to the identification information of the mobile terminal stored in advance by the vehicle is the current identity information of the mobile terminal.
[0058] This application embodiment, by sending a target instruction to the mobile terminal when the determination result indicates a change in the mobile terminal's identity information, and responding to the connection information sent by the mobile terminal according to the target instruction, establishes a second connection between the vehicle and the mobile terminal, and obtains the second identity information of the mobile terminal through the second connection, can improve the efficiency and accuracy of obtaining the current identity information of the mobile terminal when the determination result indicates a change in the mobile terminal's identity information, thereby improving the accuracy of measuring the distance between the mobile terminal and the vehicle using the mobile terminal's identity information.
[0059] In one embodiment, the establishment of a second connection between the vehicle and the mobile terminal in response to connection information sent by the mobile terminal according to the target instruction includes any one of the following:
[0060] When the mobile terminal's operating system belongs to the first type of system, a second connection is established in response to the connection request sent by the mobile terminal according to the target instruction; wherein, the first type of system is a system related to the Android operating system;
[0061] When the mobile terminal's operating system belongs to the second type of system, in response to the connection notification sent by the mobile terminal according to the target instruction, a connection request is sent to the mobile terminal to establish a second connection; wherein, the second type of system is a system related to the Apple operating system.
[0062] Optionally, the connection information may include either a connection request sent by the mobile terminal according to the target instruction, or a connection notification sent by the mobile terminal according to the target instruction. Optionally, the connection notification is used to instruct the vehicle to send a connection request to the mobile terminal.
[0063] Optionally, the first type of system may include the native Android operating system and derivative systems developed based on the native Android system; the second type of system may include the native Apple operating system (iOS) and derivative systems developed based on the native iOS system.
[0064] In practice, if the mobile terminal's operating system is a type 1 system, the mobile terminal can send a connection request to the vehicle according to the target instruction; the vehicle can establish a second connection with the mobile terminal by accepting the connection request sent by the mobile terminal.
[0065] In actual implementation, when the mobile terminal's operating system belongs to the second type of system, the mobile terminal can send a connection notification to the vehicle according to the target instruction. This connection notification is used to instruct the vehicle to send a connection request to the mobile terminal. The vehicle can respond to the connection notification and send a connection request to the mobile terminal. If the mobile terminal accepts the connection request, the vehicle and the mobile terminal establish a second connection.
[0066] Based on the system type of the mobile terminal, this application embodiment establishes a second connection by responding to a connection request sent by the mobile terminal according to a target instruction; or by responding to a connection notification sent by the mobile terminal according to a target instruction, and sending a connection request to the mobile terminal to establish a second connection. This allows for adaptation to the mobile terminal's system type when the determination result indicates a change in the mobile terminal's identity information. It automatically triggers the corresponding process for re-establishing the connection between the vehicle and the mobile terminal, ensuring the efficiency and compatibility of re-establishing the connection and avoiding connection failures due to differences in the mobile terminal's system. This, in turn, improves the accuracy of measuring the distance between the mobile terminal and the vehicle using the mobile terminal's identity information.
[0067] Optionally, the aforementioned first identity information is obtained based on a preset mapping relationship, which includes the correspondence between the identification information of the mobile terminal and the target identity information of the mobile terminal, wherein the target identity information is the identity information corresponding to the identification information.
[0068] In one embodiment, the ranging method provided in this application further includes:
[0069] If the determination result indicates that the identity information of the mobile terminal has changed, after obtaining the second identity information of the mobile terminal based on the determination result, the target identity information in the preset mapping relationship is updated to the second identity information.
[0070] In practice, if the above determination result indicates that the identity information of the mobile terminal has changed, after obtaining the second identity information of the mobile terminal based on the determination result, the target identity information in the above preset mapping relationship can be updated to the second identity information, and the identity information pre-stored by the vehicle corresponding to the identity identifier of the mobile terminal can be updated in a timely manner. In this way, the accuracy of measuring the distance between the mobile terminal and the vehicle using the identity information of the mobile terminal can be improved.
[0071] Optionally, the vehicle includes a main module and at least one slave module for implementing contactless triggering of the digital key. In one embodiment, step S104 above: determining the distance of the mobile terminal relative to the vehicle based on at least two ranging parameters determined through the second identity information, includes:
[0072] The first strength value of the ranging signal from the mobile terminal is obtained through the main module;
[0073] By scanning the ranging signal using the second identity information by at least two slave modules, a second intensity value corresponding to each slave module is obtained; wherein, the second intensity value is obtained by the corresponding slave module scanning the ranging signal;
[0074] The main module determines the distance between the mobile terminal and the vehicle based on the first intensity value and the second intensity value corresponding to each slave module.
[0075] In practical implementation, when a first or second connection is established between the vehicle and the mobile terminal, the vehicle's main module can obtain the first strength value of the mobile terminal's ranging signal through the connection channel corresponding to the mobile terminal, and can send the obtained second identity information of the mobile terminal to at least two slave modules. Each of the at least two slave modules can use the second identity information to perform a directional scan of the mobile terminal's ranging signal, and can send the second strength value of the directional scanned ranging signal to the main module. The main module can determine the distance of the mobile terminal relative to the vehicle based on the first strength value and the second strength values corresponding to the at least two slave modules, combined with the distribution positions of the main module and the slave modules on the vehicle.
[0076] It is worth mentioning that, to support the parallel connection management of multiple mobile terminals, the main module can synchronously send the acquired second identity information and identification information of the mobile terminals to the slave module. If the slave module successfully scans the ranging signal of the mobile terminal using the second identity information, it can synchronously send the second intensity value of the ranging signal and the identification information of the mobile terminal to the main module. In actual implementation, for each mobile terminal that establishes a connection with the vehicle, the main module can determine the distance between the mobile terminal and the vehicle based on the mobile terminal's identification information, the first intensity value of the ranging signal corresponding to that identification information acquired by the main module itself, and the second intensity value of the ranging signal corresponding to that identification information.
[0077] Optionally, when the vehicle includes a master module and a slave module, the master module and slave module can be arranged in positions within the vehicle that maximize spatial separation. For example, if the master module is located in the front center console area, the slave module can be located in the rear trunk or inside the rear bumper. This maximizes spatial separation between the slave module and the master module, increasing the intensity difference of the ranging signals received by the master module and the slave module from the mobile terminal. This improves the accuracy of determining the distance of the mobile terminal relative to the vehicle using the first intensity value of the ranging signal acquired by the master module and the second intensity value of the ranging signal scanned by the slave module. In practical implementation, when the vehicle includes a master module and a slave module, differential ranging can be used to determine the distance of the mobile terminal relative to the vehicle based on the first intensity value of the ranging signal acquired by the master module and the second intensity value of the ranging signal scanned by the slave module.
[0078] The distance between the mobile terminal and the vehicle determined using differential ranging can be represented as a specific distance value between the mobile terminal and the vehicle, or as the mobile terminal being closer to the main module or the slave module. Based on this distance, control operations can be executed depending on whether the mobile terminal is closer to the main module or the mobile terminal is closer to the slave module. For example, if the main module is located in the front center console area and the slave module is located in the rear trunk, using differential ranging to determine that the mobile terminal is closer to the main module allows for unlocking the doors; conversely, using differential ranging to determine that the mobile terminal is closer to the slave module allows for unlocking the trunk.
[0079] In practical implementation, a hyperbolic equation can be established using the distance difference between the master module and the slave module, the coordinates of the master module, the coordinates of the slave module, and the coordinates of the mobile terminal to be solved. This hyperbolic equation is established based on the following: the distance difference between the master module and the slave module satisfies the definition of a hyperbola, and the mobile terminal lies on the hyperbola with the master module and the slave module as foci. By solving this hyperbolic equation, two candidate coordinates of the mobile terminal can be obtained. Next, based on the matching results of the first theoretical intensity values corresponding to the two candidate coordinates with the first intensity value of the ranging signal acquired by the master module, and the matching results of the second theoretical intensity values corresponding to the two candidate coordinates with the second intensity value of the ranging signal scanned by the slave module, the target coordinates of the mobile terminal can be selected from the two candidate coordinates. Optionally, the first theoretical intensity values corresponding to the two candidate coordinates are the theoretical intensity values of the ranging signal acquired by the master module corresponding to the two candidate coordinates; the second theoretical intensity values are the theoretical intensity values of the ranging signal scanned by the slave module corresponding to the two candidate coordinates. Then, based on the target coordinates of the mobile terminal and the reference coordinates of the vehicle, the specific distance value of the mobile terminal relative to the vehicle can be determined. Optionally, the vehicle's reference coordinates can be the coordinates of the main module or the coordinates of the vehicle's center point, which can be determined according to the actual situation.
[0080] Optionally, when the vehicle includes one main module and multiple slave modules, the main module and each slave module can be arranged in a position that maximizes the coverage of the vehicle space to improve the strength value of the ranging signal obtained by the main module and the strength value of the ranging signal obtained by the multiple slave modules respectively, thereby improving the accuracy of determining the distance of the mobile terminal relative to the vehicle. For example, when the vehicle includes one main module and two slave modules, the main module can be arranged at the center of the vehicle, and the two slave modules can be symmetrically arranged at the front left and rear right sides of the vehicle; when the vehicle includes one main module and three slave modules, the main module can be arranged in the front center console area of the vehicle, and the three slave modules can be arranged at the center of the left side, the center of the right side, and the rear trunk of the vehicle, respectively; when the vehicle includes one main module and four slave modules, the main module can be arranged at the center of the vehicle, and the four slave modules can be symmetrically arranged at the centers of the front, rear, left, and right sides of the vehicle. In practice, when the vehicle includes one main module and multiple slave modules, the distance between the mobile terminal and the vehicle can be determined by using the polygonal positioning method or triangulation method, based on the first intensity value of the ranging signal obtained by the main module and the second intensity value of the ranging signal obtained by the multiple slave modules respectively.
[0081] In practical implementation, when the vehicle includes one master module and multiple slave modules, the multilateral positioning method can be used. First, formula (1) is used to determine the distance of the mobile terminal relative to the i-th module:
[0082]
[0083] Where, d i RSSI represents the distance of the mobile terminal relative to the i-th module, where the i-th module can be the master module or any of the multiple slave modules, and i is a non-negative integer; i P represents the intensity value of the ranging signal corresponding to the i-th module; tx Indicates the transmission power of the ranging signal; n i denoted as the path loss index, which is a known value related to the placement location of the i-th module.
[0084] Next, based on the distance d0 of the mobile terminal relative to the main module, and the distances d1, d2, ..., dm of the mobile terminal relative to each of the m slave modules, we can... m (m is an integer greater than 1), the coordinates of the main module (x0, y0, z0), and the coordinates of the m slave modules (x1, y1, z1), (x2, y2, z2), ..., (x...). m y m , z m ), and the coordinates (x, y, z) of the mobile terminal to be solved, establish the system of equations (2):
[0085]
[0086] When m = 2, the coordinates (x, y, z) of the mobile terminal can be obtained directly by solving the system of equations (2); when m > 2, the optimal solution of the system of equations (2) can be obtained by using the least squares method to obtain the coordinates (x, y, z) of the mobile terminal.
[0087] Furthermore, the distance between the mobile terminal and the vehicle can be determined based on the solved coordinates of the mobile terminal and the vehicle's reference coordinates. Optionally, the vehicle's reference coordinates can be the coordinates of the main module or the coordinates of the vehicle's center point, whichever is appropriate.
[0088] In practical implementation, when the vehicle includes one main module and two slave modules, triangulation can be used to determine the distance of the mobile terminal relative to the vehicle based on the first intensity value of the ranging signal acquired by the main module and the second intensity value of the ranging signal obtained by the two slave modules. When the vehicle includes one main module and two or more slave modules, the second intensity values of the ranging signals obtained by each slave module are first compared. Two target slave modules with higher second intensity values are selected, and then triangulation is used to determine the distance of the mobile terminal relative to the vehicle based on the first intensity value of the ranging signal acquired by the main module and the second intensity values obtained by the two target slave modules.
[0089] Please see Figure 2 The vehicle may include one main module A and four slave modules (slave modules B1, B2, B3, and B4). The main module A can be positioned at the center of the vehicle, while slave modules B1, B2, B3, and B4 can be positioned at the centers of the front, rear, left, and right sides of the vehicle, respectively. In practice, the main module A can send the mobile terminal's second identity information to slave modules B1, B2, B3, and B4. Slave modules B1, B2, B3, and B4 can then use the second identity information to perform directional scanning of the ranging signal and send the second intensity value of the scanned ranging signal to the main module A. The main module A can select two target slave modules with higher second intensity values from each slave module based on the second intensity values sent by slave modules B1, B2, B3 and B4. Then, based on the first intensity value of the ranging signal of the mobile terminal obtained by itself and the second intensity values sent by the two target slave modules respectively, it can use the triangulation method to determine the distance of the mobile terminal relative to the vehicle.
[0090] Optionally, the ranging signal described above can be Bluetooth ranging broadcast, and correspondingly, the master module and slave module can be Bluetooth nodes. Please refer to [link / reference]. Figure 3The main module and two target slave modules can form three Bluetooth nodes arranged in a triangular pattern. The main module can determine the distance R1 of the mobile terminal relative to the main module based on the first strength value of the ranging signal of the mobile terminal it acquires, and determine the distance R2 of the mobile terminal relative to the first target slave module based on the second strength value sent by the first target slave module, and determine the distance R3 of the mobile terminal relative to the second target slave module based on the second strength value sent by the second target slave module. Then, based on the distances R1, R2, and R3, the distance of the mobile terminal relative to the vehicle can be determined using the triangulation method.
[0091] This embodiment of the application obtains the first intensity value of the ranging signal of the mobile terminal through the main module, and scans the ranging signal using the second identity information through at least two slave modules to obtain the second intensity value of the ranging signal. The main module determines the distance of the mobile terminal relative to the vehicle based on the first intensity value and the second intensity values corresponding to the at least two slave modules. This enables the slave modules to always scan the ranging signal of the mobile terminal based on the current identity information of the mobile terminal, which can effectively avoid the problem of the slave modules failing to scan the ranging signal of the mobile terminal using the old identity information of the mobile terminal, resulting in ranging failure. This improves the accuracy of measuring the distance of the mobile terminal relative to the vehicle using the identity information of the mobile terminal.
[0092] Please see Figure 4 This application also provides a vehicle control method, including:
[0093] Step S201: Determine the distance between the mobile terminal and the vehicle using the vehicle-based ranging method described above;
[0094] Step S202: Based on the distance between the mobile terminal and the vehicle, perform vehicle control operations; wherein, the control operations include operations triggered by the mobile terminal.
[0095] Optionally, the mobile terminal can be a device that communicates via Bluetooth, Ultra-Wideband (UWB), or Radio Frequency (RF). A Bluetooth-enabled device can be a physical vehicle key or a Bluetooth digital key; a UWB-enabled device can be a physical vehicle key or a UWB digital key; and an RF-enabled device can be a physical vehicle key or an RF digital key. The digital key can be any device linked to a mobile phone, wristband, watch, or tablet computer with digital key functionality.
[0096] Optionally, the operation triggered by the mobile terminal can be an operation automatically triggered by the mobile terminal when the distance between the mobile terminal and the vehicle is within a preset range; or it can be an operation manually triggered by the user via the mobile terminal when the distance between the mobile terminal and the vehicle is within a preset range.
[0097] In practical implementation, after determining the distance between the mobile terminal and the vehicle using the aforementioned vehicle-based ranging method, it can be further determined whether the distance between the mobile terminal and the vehicle is within a preset range. Optionally, the preset range is used to limit the distance range corresponding to triggering the vehicle control operation, and can be determined according to the actual situation. If the distance between the mobile terminal and the vehicle is within the preset range, the vehicle control operation is executed. Optionally, the vehicle control operation may include at least one of the following: turning on welcome lights, unlocking the vehicle, locking the vehicle, starting the vehicle, turning on the air conditioning, and adjusting the seat.
[0098] In practical implementation, when the distance between the mobile terminal and the vehicle is within a first preset range, the vehicle's welcome lights and air conditioning can be turned on; when the distance between the mobile terminal and the vehicle is within a second preset range, the vehicle's seat can be adjusted to a user-preset position; when the distance between the mobile terminal and the vehicle is within a third preset range, the vehicle can be unlocked; and when the distance between the mobile terminal and the vehicle is within a fourth preset range, the user can press the start button to start the vehicle or directly control the vehicle to start. Optionally, the distance value in the first preset range is greater than the distance value in the second preset range, the distance value in the second preset range is greater than the distance value in the third preset range, and the distance value in the third preset range is greater than the distance value in the fourth preset range. The first, second, third, and fourth preset ranges can be determined according to actual conditions.
[0099] The implementation process of step S201 can be referred to the above embodiment of the vehicle-based ranging method, and will not be repeated here.
[0100] This application embodiment uses the above-described vehicle-based ranging method to determine the distance between the mobile terminal and the vehicle, and executes vehicle control operations based on this distance. This not only accurately determines whether the mobile terminal's identity information has changed, but also, even if the mobile terminal's identity information has changed, uses the mobile terminal's second identity information to determine the distance between the mobile terminal and the vehicle. This improves the accuracy of measuring the distance between the mobile terminal and the vehicle using the mobile terminal's identity information, thereby enhancing the effectiveness of executing vehicle control operations based on the distance between the mobile terminal and the vehicle.
[0101] In one specific embodiment, the connection established between the vehicle and the mobile terminal can be a BLE connection (also known as a Bluetooth connection); the ranging signal of the mobile terminal can be a Bluetooth ranging broadcast; the identity information of the mobile terminal can be an Identity Resolving Key (IRK); the address of the ranging signal can be a Resolvable Private Address (RPA) of the Bluetooth ranging broadcast, which can be obtained by parsing the Bluetooth ranging broadcast using the IRK; and the signal strength value can be a Received Signal Strength Indication (RSSI) value of the Bluetooth ranging broadcast.
[0102] The vehicle control method provided in this application embodiment can be based on, for example, Figure 5 The vehicle control system shown is implemented; the vehicle control system may include a mobile terminal (also known as a device), a vehicle terminal, and a cloud terminal; optionally, the device terminal includes a vehicle manufacturer application (APP) and a BLE module; the vehicle terminal may include a Bluetooth communication module, one digital key master module, four digital key slave modules, a vehicle network communication module, and a vehicle body domain control module.
[0103] Please combine Figure 5 and Figure 6 The vehicle control method provided in this application embodiment can be applied to the following scenarios: the device establishes a Bluetooth connection with the vehicle for the first time (Scenario 1), the device establishes a Bluetooth connection with the vehicle again and the IRK of the device does not change (Scenario 2), and the device establishes a Bluetooth connection with the vehicle again and the IRK of the device changes (Scenario 3).
[0104] For scenario one, the vehicle control method provided in this application embodiment may include, but is not limited to, the following steps:
[0105] Step 1: The device and vehicle complete the initial Bluetooth connection pairing and business security authentication; after the initial Bluetooth connection pairing is completed, the vehicle manufacturer's APP on the device can send the device's IRK to the vehicle's digital key main module; after the business security authentication is completed, the vehicle manufacturer's APP on the device can send the device's key ID information to the vehicle's digital key main module.
[0106] Step 2: The device continuously broadcasts Bluetooth ranging information; optionally, the device can actively enable Bluetooth ranging broadcast for vehicle-side scanning and ranging; or the vehicle-side can request the device to enable Bluetooth ranging broadcast.
[0107] Step 3: The vehicle-side digital key master module stores the key ID associated with the device's IRK and public address locally; optionally, the key ID information on the device side can also be referred to as the device's serial number information;
[0108] Step 4: The vehicle-side digital key master module transmits the IRK information of the device to each slave module and associates it with the device's serial number information; optionally, the associated serial number information can be used for parallel management in the case of multiple device connections;
[0109] Step 5: Each slave module on the vehicle side scans the Bluetooth ranging broadcast of the corresponding device based on the IRK information and returns the ranging RSSI value to the digital key master module, along with the corresponding device's serial number information;
[0110] Step 6: The vehicle-side digital key master module combines the RSSI values returned by each slave module with its own RSSI value obtained through the Bluetooth connection channel, and calculates the distance of the current device relative to the vehicle based on the triangulation algorithm.
[0111] Step 7: Based on the distance measurement results of each connected device, the vehicle-side digital key main module can trigger functions such as contactless vehicle locking and unlocking and vehicle start through the vehicle domain controller.
[0112] For scenario two, the vehicle control method provided in this application embodiment may include, but is not limited to, the following steps:
[0113] Step 1: The device and vehicle complete Bluetooth connection and business security authentication; after completing business security authentication, the vehicle manufacturer's APP on the device can send the key ID information from the device to the digital key main module on the vehicle.
[0114] Step 2: The device continuously broadcasts Bluetooth ranging information; optionally, the device can actively enable Bluetooth ranging broadcast for vehicle-side scanning and ranging; or the vehicle-side can request the device to enable Bluetooth ranging broadcast.
[0115] Step 3: The vehicle-side digital key master module looks up the corresponding IRK information of the device based on the key ID information on the device side. Optionally, the key ID information on the device side can also be referred to as the device's serial number information;
[0116] Step 4: The vehicle-side digital key master module transmits the IRK information of the device to each slave module and associates the connected device's serial number information; the associated serial number information can be used for parallel management in the case of multiple device connections;
[0117] Step 5: Each slave module on the vehicle side scans the Bluetooth ranging broadcast of the corresponding device based on the IRK information and returns the ranging RSSI value to the digital key master module, along with the corresponding device's serial number information;
[0118] Step 6: The vehicle-side digital key master module combines the RSSI values returned by each slave module with its own RSSI value obtained through the Bluetooth connection channel, and calculates the distance of the current device relative to the vehicle based on the triangulation algorithm.
[0119] Step 7: Based on the distance measurement results of each connected device, the vehicle-side digital key main module can trigger functions such as contactless vehicle locking and unlocking and vehicle start through the vehicle domain controller.
[0120] For scenario three, the vehicle control method provided in this application embodiment may include, but is not limited to, the following steps:
[0121] Step 1: The device and vehicle complete Bluetooth connection and business security authentication; after completing business security authentication, the vehicle manufacturer's APP on the device can send the key ID information from the device to the digital key main module on the vehicle.
[0122] Step 2: The device continuously broadcasts Bluetooth ranging information; optionally, the device can actively enable Bluetooth ranging broadcast for vehicle-side scanning and ranging; or the vehicle-side can request the device to enable Bluetooth ranging broadcast.
[0123] Step 3: The vehicle-side digital key master module searches for the corresponding device's IRK information based on the key ID information; optionally, the key ID information on the device side can also be referred to as the device's serial number information;
[0124] Step 4: The vehicle-side digital key master module transmits the IRK information of the device to each slave module and associates the connected device number information; the associated number information can be used for parallel management in the case of multiple device connections; the slave module can use the IRK information of the device to scan the broadcast of the corresponding device, but since the IRK on the device side has changed, the slave module cannot scan the broadcast of the corresponding device based on the IRK information before the change, and cannot obtain the RSSI value (which can be regarded as a scan failure).
[0125] Step 5: The vehicle-side digital key master module associates the IRK information with the connected device number and transmits it to the vehicle-side Bluetooth communication module;
[0126] Step 6: The vehicle-side Bluetooth communication module uses the IRK information to parse the RPA address of the corresponding connected device. Since the IRK on the device side has changed, the vehicle-side Bluetooth communication module cannot parse the RPA address of the corresponding connected device using the IRK information, i.e., the parsing fails.
[0127] Step 7: The vehicle-side Bluetooth communication module notifies the digital key master module that the IRK of the connected device has changed;
[0128] Step 8: The vehicle-side digital key master module notifies the slave module to stop scanning and locating the device, and attaches the device's old IRK information;
[0129] Step 9: The vehicle-side digital key master module notifies the vehicle manufacturer's APP on the device side that the IRK information of the device has changed;
[0130] If the device's system type is iOS, then proceed with steps 10-12:
[0131] Step 10: The vehicle manufacturer's app on the device side notifies the vehicle-side digital key master module to re-initiate the pairing request;
[0132] Step 11: The vehicle-side digital key main module notifies the Bluetooth communication module that it needs to re-pair with the device via Bluetooth;
[0133] Step 12: The vehicle-side Bluetooth communication module actively initiates a pairing request to the device, and the device and the vehicle re-complete Bluetooth pairing;
[0134] If the device's system type is Android, then proceed to step 13: the vehicle manufacturer's APP on the device directly initiates a pairing request, and the device and the vehicle re-complete Bluetooth pairing;
[0135] Step 14: The vehicle-side Bluetooth communication module transmits the new IRK information of the device obtained through re-pairing to the digital key master module;
[0136] Step 15: The vehicle-side digital key master module saves the new Bluetooth IRK and Public address associated with the key ID locally;
[0137] Step 16: The vehicle-side digital key master module transmits the new IRK information of the device to each slave module and associates the connected device's serial number information; the associated serial number information can be used for parallel management in the case of multiple device connections;
[0138] Step 17: Each slave module on the vehicle resumes the Bluetooth ranging broadcast of the corresponding device based on the new IRK information, and returns the ranging RSSI value to the digital key master module, along with the corresponding device number information;
[0139] Step 18: The vehicle-side digital key master module combines the RSSI values returned by each slave module with its own RSSI value obtained through the Bluetooth connection channel, and calculates the distance of the current device relative to the vehicle based on the triangulation algorithm.
[0140] Step 19: Based on the distance measurement results of each connected device, the vehicle-side digital key main module can trigger functions such as contactless vehicle locking and unlocking and vehicle start through the vehicle domain controller.
[0141] The vehicle control method provided in this application embodiment, when the vehicle-side master module finds the pre-stored IRK information based on the key ID on the device, uses the vehicle-side Bluetooth communication module to parse the Bluetooth ranging broadcast RPA address on the device using the pre-stored IRK information to verify whether the device's RPA address has changed. This allows the vehicle-side to actively identify whether the device's IRK information has changed. Furthermore, if the device's IRK information has changed, the process of actively triggering the re-establishment of the Bluetooth connection between the vehicle-side and the device is initiated to obtain the latest IRK information from the device. The latest IRK information is then used to update the locally stored IRK information, and the latest IRK information is transmitted to the slave module for scanning and ranging. This achieves closed-loop information synchronization between the master module, slave module, and device, ensuring that the slave module always uses the latest IRK information. By performing scanning and ranging, the problem of ranging failure caused by the slave module using old IRK information can be avoided. In addition, by combining the RSSI value obtained by the master module based on the latest IRK information scanned by the slave module with the RSSI value obtained by itself through the connection channel, the distance between the device and the vehicle can be determined, and the control operations related to the contactless triggering of the digital key can be executed. This can significantly improve the reliability and robustness of the contactless triggering of the digital key, and can systematically solve the problem of ranging failure caused by changes in the IRK of the device, which leads to the failure of the contactless triggering of the digital key. In addition, the key obstacle of ranging through BLE connection is eliminated. While giving full play to the advantages of ranging through BLE connection, the commercial reliability of this technology is further improved, consolidating its mainstream position in the field of digital keys. At the same time, the vehicle control method provided by this application is compatible with all models and systems of devices, and has high technical universality.
[0142] Please see Figure 7 This application also provides a vehicle control device that can implement the above-described vehicle control method. The device includes a first acquisition module 701, a determination module 702, a second acquisition module 703, a ranging module 704, and an execution module 705.
[0143] The first acquisition module 701 is used to acquire the first identity information of the mobile terminal based on the identification information of the mobile terminal in response to the establishment of a first connection between the mobile terminal and the vehicle.
[0144] The determination module 702 is used to perform a target operation based on the first identity information to obtain a determination result corresponding to the change of the identity information of the mobile terminal;
[0145] The second acquisition module 703 is used to acquire the second identity information of the mobile terminal based on the judgment result;
[0146] The ranging module 704 is used to determine the distance between the mobile terminal and the vehicle based on at least two ranging parameters determined through the second identity information.
[0147] The execution module 705 is used to perform vehicle control operations based on the distance between the mobile terminal and the vehicle. The control operations include operations triggered by the mobile terminal.
[0148] The vehicle control device provided in this application embodiment can implement all the steps of the above-described vehicle control method embodiment and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0149] This application also provides a vehicle, including a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, they implement the various steps of the above-described vehicle-based ranging method or the above-described vehicle control method embodiments and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0150] Figure 8 To implement the hardware structure diagram of the vehicle in this application embodiment, the vehicle includes:
[0151] The processor 801 can be implemented using a general-purpose central processing unit (CPU), microprocessor, application specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0152] The memory 802 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 802 and is called and executed by the processor 801 using the vehicle control method of the embodiments of this application.
[0153] The 803 input / output interface is used to implement information input and output.
[0154] The communication interface 804 is used to enable communication and interaction between this vehicle and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0155] Bus 805 transmits information between various components of the vehicle (e.g., processor 801, memory 802, input / output interface 803, and communication interface 804);
[0156] The processor 801, memory 802, input / output interface 803, and communication interface 804 communicate with each other within the vehicle via bus 805.
[0157] The vehicle provided in this application embodiment can implement all the steps of the above-described vehicle-based ranging method or the above-described vehicle control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0158] This application also provides a computer-readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various steps of the above-described vehicle-based ranging method or vehicle control method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0159] The processor is the processor in the vehicle described in the above embodiments. The computer-readable storage medium includes computer-readable storage media such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0160] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various steps of the above-described vehicle-based ranging method or the above-described vehicle control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0161] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0162] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various steps of the vehicle-based ranging method or the vehicle control method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0163] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not delete other identical elements present in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0164] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0165] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A vehicle-based ranging method, characterized in that, Applied to vehicles, the method includes: In response to the establishment of a first connection between the mobile terminal and the vehicle, the first identity information of the mobile terminal is obtained based on the identification information of the mobile terminal; Perform the target operation based on the first identity information to obtain a determination result corresponding to the change of the identity information of the mobile terminal; Based on the determination result, the second identity information of the mobile terminal is obtained; The distance between the mobile terminal and the vehicle is determined based on at least two ranging parameters determined through the second identity information.
2. The method as described in claim 1, characterized in that, The target operation includes a first operation and / or a second operation; The first operation includes: performing an address parsing operation on the ranging signal of the mobile terminal using the first identity information; The second operation includes: scanning the ranging signal of the mobile terminal using the first identity information.
3. The method as described in claim 2, characterized in that, The step of performing a target operation based on the first identity information to obtain a determination result corresponding to the change in the identity information of the mobile terminal includes: If the target operation includes the first operation, the first operation is executed by the main module of the vehicle to obtain the address resolution result of the ranging signal; if the address resolution result indicates that the address resolution of the ranging signal failed, the determination result is that the identity information of the mobile terminal has changed. If the target operation includes the second operation, the second operation is performed by the slave module of the vehicle to obtain the scanning result of the ranging signal; if the scanning result indicates that the ranging signal scanning failed, the determination result is that the identity information of the mobile terminal has changed.
4. The method as described in claim 1, characterized in that, The step of obtaining the second identity information of the mobile terminal based on the determination result includes: If the determination result indicates that the identity information of the mobile terminal has changed, a target instruction is sent to the mobile terminal; in response to the connection information sent by the mobile terminal according to the target instruction, a second connection is established between the vehicle and the mobile terminal; through the second connection, the second identity information of the mobile terminal is obtained; or If the determination result indicates that the identity information of the mobile terminal has not changed, the first identity information is determined as the second identity information of the mobile terminal.
5. The method as described in claim 4, characterized in that, The step of establishing a second connection between the vehicle and the mobile terminal in response to connection information sent by the mobile terminal according to the target instruction includes any one of the following: If the operating system of the mobile terminal belongs to the first type of system, the second connection is established in response to the connection request sent by the mobile terminal according to the target instruction; wherein, the first type of system is a system related to the Android operating system; If the operating system of the mobile terminal belongs to the second type of system, in response to the connection notification sent by the mobile terminal according to the target instruction, a connection request is sent to the mobile terminal to establish the second connection; wherein, the second type of system is a system related to the Apple operating system.
6. The method as described in claim 1, characterized in that, The first identity information is obtained based on a preset mapping relationship, which includes the correspondence between the identification information and the target identity information of the mobile terminal, wherein the target identity information is the identity information corresponding to the identification information. The method further includes: If the determination result indicates that the identity information of the mobile terminal has changed, after obtaining the second identity information of the mobile terminal based on the determination result, the target identity information in the preset mapping relationship is updated to the second identity information.
7. The method as described in claim 1, characterized in that, The vehicle includes a master module and at least one slave module for realizing contactless triggering of the digital key; the at least two ranging parameters include a first intensity value and a second intensity value; Determining the distance between the mobile terminal and the vehicle based on at least two ranging parameters determined through the second identity information includes: The main module obtains the first intensity value of the ranging signal of the mobile terminal; The ranging signal is scanned by at least two of the slave modules using the second identity information to obtain a second intensity value corresponding to each slave module; wherein the second intensity value is obtained by the corresponding slave module scanning the ranging signal. The main module determines the distance of the mobile terminal relative to the vehicle based on the first intensity value and the second intensity value corresponding to each of the slave modules.
8. A vehicle control method, characterized in that, include: The distance between the mobile terminal and the vehicle is determined by the vehicle-based ranging method according to any one of claims 1-7; Based on the distance, control operations are performed on the vehicle; wherein, the control operations include operations triggered by the mobile terminal.
9. The method according to any one of claims 1-7 or 8, characterized in that, The mobile terminal includes devices that communicate via Bluetooth.
10. A vehicle, characterized in that, The vehicle includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method as described in any one of claims 1-7 or 8-9.
11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7 or 8-9.