Vehicle ranging method, device, vehicle-mounted terminal, vehicle and storage medium
By using the UWB communication module and the reception period setting of the synchronization frame in the vehicle, the problems of high ranging cost and serious signal interference in the vehicle keyless entry and start-up system are solved, and high-accurate ranging information and keyless start-up are achieved operate.
Patent Information
- Application Number
- CN202210470707.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-04-28
AI Technical Summary
In existing vehicle keyless entry and start systems, ranging costs are high and signal interference is severe, resulting in inaccurate ranging information.
By using the UWB communication module in the vehicle, the synchronization frames sent by the mobile terminal are received, the delay time is determined, and the distance measurement frame and data frame are set according to the reception time, delay time, preset pre-time and preset post-time of the synchronization frame. The reception period ensures that the UWB communication module is synchronized with the clock of the mobile terminal, thereby improving the accuracy of the ranging information.
Without increasing hardware costs, data synchronization is effectively guaranteed, signal interference is avoided, ranging information is improved, and accurate control of keyless start operation is achieved.
Smart Images

Figure CN117008050B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle ranging method, device, vehicle-mounted terminal, vehicle and storage medium. Background Art
[0002] With the rapid development of vehicles, the intelligence of vehicles is gradually improving, and various personalized and diversified functional designs have emerged. The vehicle PEPS (Passive Entry Passive Start) system has become a highlight in smart cars. In related technologies, vehicle keyless entry and start control is performed based on the distance between the mobile terminal and the vehicle. However, the distance measurement cost is high and the signal interference is serious during the distance measurement process. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to provide a vehicle ranging method, which can effectively ensure data synchronization, avoid signal interference, and improve the accuracy of ranging information without increasing hardware costs.
[0004] A second object of the present invention is to provide a computer-readable storage medium.
[0005] The third objective of the present invention is to provide a vehicle-mounted terminal.
[0006] A fourth object of the present invention is to provide a vehicle.
[0007] A fifth object of the present invention is to provide a vehicle distance measuring device.
[0008] To achieve the above-mentioned purpose, a first aspect of the present invention provides a vehicle ranging method, wherein the vehicle includes at least one UWB communication module, and the method includes: receiving a synchronization frame sent by a mobile terminal, and determining a delay time according to the synchronization frame; determining a first receiving time period of a first ranging frame, a second receiving time period of a second ranging frame, and a third receiving time period of a data frame sent by the mobile terminal to the UWB communication module according to the reception time of the synchronization frame, the delay time period, a preset leading time period, and a preset post-leading time period, and controlling the UWB communication module according to the first receiving time period, the second receiving time period, and the third receiving time period. The block receives the corresponding first ranging frame, second ranging frame and data frame; when the UWB communication module receives the first ranging frame in the first receiving time period, delays the delay time and sends the third ranging frame to the mobile terminal; if the UWB communication module receives the first ranging frame in the first receiving time period, receives the second ranging frame in the second receiving time period and receives the data frame in the third receiving time period, it is determined that the UWB communication module is synchronized with the clock of the mobile terminal, and the ranging information is determined according to the transmission time of the third ranging frame, the reception time of the second ranging frame and the data frame.
[0009] According to the vehicle ranging method of the embodiment of the present invention, a delay duration is determined based on a synchronization frame sent by a mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are respectively pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-time of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without increasing the hardware cost.
[0010] In some embodiments of the present invention, the synchronization frame includes a first synchronization frame and a second synchronization frame, wherein determining the delay duration based on the synchronization frame includes: determining the delay duration based on the difference between the receiving time of the first synchronization frame and the receiving time of the second synchronization frame.
[0011] In some embodiments of the present invention, the synchronization frame includes delay information, wherein determining the delay duration according to the synchronization frame includes: parsing the delay information in the synchronization frame to determine the delay duration.
[0012] In some embodiments of the present invention, the determining of the first receiving time period of the first ranging frame, the second receiving time period of the second ranging frame, and the third receiving time period of the data frame sent by the mobile terminal to the UWB communication module according to the receiving time of the synchronization frame, the delay time, the preset leading time period, and the preset post-duration includes: predicting the first arrival time of the first ranging frame, the second arrival time of the second ranging frame, and the third arrival time of the data frame sent by the mobile terminal to the UWB communication module according to the receiving time of the synchronization frame and the delay time period; determining the first receiving time period of the first ranging frame according to the first arrival time of the first ranging frame, the preset leading time period, and the preset post-duration; determining the second receiving time period of the second ranging frame according to the second arrival time of the second ranging frame, the preset leading time period, and the preset post-duration; determining the third receiving time period of the data frame according to the third arrival time of the data frame, the preset leading time period, and the preset post-duration.
[0013] In some embodiments of the present invention, after controlling the UWB communication module to receive the corresponding first ranging frame, second ranging frame and data frame according to the first receiving time period, the second receiving time period and the third receiving time period, the method further includes: recording the total number of frame losses of the first ranging frame, the second ranging frame and the data frame; when the total number of frame losses is greater than or equal to a preset number, determining that the clock of the UWB communication module is not synchronized with that of the mobile terminal.
[0014] In some embodiments of the present invention, the method also includes: when the delay duration is determined according to the synchronization frame, turning off the receiver of the UWB communication module of the vehicle; at each of the minimum moment of the first receiving time period, the minimum moment of the second receiving time period, and the minimum moment of the third receiving time period, turning on the receiver of the UWB communication module of the vehicle; when receiving any one of the first ranging frame, the second ranging frame and the data frame, turning off the receiver of the UWB communication module of the vehicle.
[0015] In some embodiments of the present invention, the data frame includes the transmission time of the first ranging frame and the reception time of the third ranging frame, wherein the determining the ranging information according to the transmission time of the third ranging frame, the reception time of the second ranging frame and the data frame includes: parsing the data frame to determine the transmission time of the first ranging frame and the reception time of the third ranging frame, and determining the mobile terminal ranging frame flight duration according to the transmission time of the first ranging frame and the reception time of the third ranging frame; determining the vehicle terminal ranging frame flight duration according to the transmission time of the third ranging frame and the reception time of the second ranging frame; and determining the ranging information according to the mobile terminal ranging frame flight duration, the vehicle terminal ranging frame flight duration and the delay duration.
[0016] In some embodiments of the present invention, after determining the ranging information, the method further includes: determining relative position information between the mobile terminal and the vehicle according to the ranging information, so as to control the vehicle to perform a keyless start operation according to the relative position information.
[0017] To achieve the above-mentioned purpose, a second aspect of the present invention provides a computer-readable storage medium on which a vehicle distance measurement program is stored. When the vehicle distance measurement program is executed by a processor, the vehicle distance measurement method described in any of the above-mentioned embodiments is implemented.
[0018] According to the computer-readable storage medium of the embodiment of the present invention, a delay duration is determined based on a synchronization frame sent by a mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are respectively pre-set according to the receiving time, the delay duration, the preset pre-duration and the preset post-duration of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without additionally increasing the hardware cost.
[0019] To achieve the above-mentioned purpose, an embodiment of the third aspect of the present invention proposes a vehicle-mounted terminal, which includes a memory, a processor, and a vehicle ranging program stored in the memory and executable on the processor. When the processor executes the vehicle ranging program, the vehicle ranging method described in any of the above-mentioned embodiments is implemented.
[0020] According to the vehicle-mounted terminal of the embodiment of the present invention, the delay duration is determined based on the synchronization frame sent by the mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-time of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without increasing the hardware cost.
[0021] To achieve the above-mentioned purpose, a fourth aspect of the present invention provides a vehicle, which includes the vehicle-mounted terminal and the UWB communication module described in the above-mentioned embodiment, and the vehicle-mounted terminal is connected to the UWB communication module.
[0022] According to the vehicle of the embodiment of the present invention, a delay duration is determined based on a synchronization frame sent by a mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-duration of the synchronization frame, respectively. When the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal. In this way, when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, thereby effectively ensuring the synchronization of data, avoiding signal interference and improving the accuracy of the ranging information without increasing the hardware cost.
[0023] To achieve the above-mentioned purpose, a fifth aspect of the present invention proposes a vehicle ranging device, wherein the vehicle includes at least one UWB communication module, and the device includes: a first determination module, used to receive a synchronization frame sent by a mobile terminal, and determine a delay time according to the synchronization frame; a second determination module, used to determine a first receiving time period of a first ranging frame, a second receiving time period of a second ranging frame, and a third receiving time period of a data frame sent by the mobile terminal to the UWB communication module according to the reception time of the synchronization frame, the delay time, a preset leading time period, and a preset post-time period; a control module, used to control the UWB according to the first receiving time period, the second receiving time period, and the third receiving time period. The UWB communication module receives the corresponding first ranging frame, second ranging frame and data frame; a transmitting module is used to delay the delay time and send a third ranging frame to the mobile terminal when the UWB communication module receives the first ranging frame in the first receiving time period; a third determining module is used to determine that the UWB communication module is synchronized with the clock of the mobile terminal if the UWB communication module receives the first ranging frame in the first receiving time period, receives the second ranging frame in the second receiving time period and receives the data frame in the third receiving time period, and determines the ranging information according to the transmitting time of the third ranging frame, the receiving time of the second ranging frame and the data frame.
[0024] According to the vehicle ranging device of the embodiment of the present invention, the delay duration is determined based on the synchronization frame sent by the mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are respectively pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-time of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without additionally increasing the hardware cost.
[0025] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0027] Figure 1 is a flow chart of a vehicle distance measurement method according to an embodiment of the present invention;
[0028] Figure 2 is a schematic diagram of the format of a UWB frame of a vehicle ranging method according to an embodiment of the present invention;
[0029] Figure 3 is a structural block diagram of a receiver according to a vehicle ranging method according to an embodiment of the present invention;
[0030] Figure 4 is a flow chart of a vehicle ranging method according to another embodiment of the present invention;
[0031] Figure 5 is a flow chart of a vehicle ranging method according to another embodiment of the present invention;
[0032] Figure 6 is a schematic diagram of a scenario of a vehicle ranging method according to an embodiment of the present invention;
[0033] Figure 7 is a flow chart of a vehicle ranging method according to another embodiment of the present invention;
[0034] Figure 8 is a flow chart of a vehicle ranging method according to another embodiment of the present invention;
[0035] Fig. 9 is a flow chart of a vehicle ranging method according to another embodiment of the present invention;
[0036] Fig.10 is a schematic diagram of a scenario of a vehicle ranging method according to another embodiment of the present invention;
[0037] Fig.11 is a flow chart of a vehicle ranging method according to another embodiment of the present invention;
[0038] Fig.12 is a structural block diagram of a vehicle-mounted terminal according to an embodiment of the present invention;
[0039] Fig.13 is a structural block diagram of a vehicle according to an embodiment of the present invention;
[0040] Fig.14 4 is a structural block diagram of a vehicle distance measuring device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0042] To clearly illustrate the vehicle ranging method, device, vehicle-mounted terminal, vehicle and storage medium of the embodiment of the present invention, the following is combined with Figure 1 The vehicle includes at least one UWB communication module, such as Figure 1 As shown, the vehicle ranging method of the embodiment of the present invention includes the following steps:
[0043] S11: receiving a synchronization frame sent by the mobile terminal, and determining a delay time according to the synchronization frame;
[0044] S13: determining a first receiving time period of a first ranging frame, a second receiving time period of a second ranging frame, and a third receiving time period of a data frame sent by the mobile terminal to the UWB communication module according to the receiving time of the synchronization frame, the delay time period, the preset leading time period, and the preset post-leading time period, and controlling the UWB communication module to receive the corresponding first ranging frame, second ranging frame, and data frame according to the first receiving time period, the second receiving time period, and the third receiving time period;
[0045] S15: When the UWB communication module receives the first ranging frame in the first receiving period, delaying the delay time and sending a third ranging frame to the mobile terminal;
[0046] S17: If the UWB communication module receives a first ranging frame in a first receiving period, receives a second ranging frame in a second receiving period, and receives a data frame in a third receiving period, it is determined that the UWB communication module is synchronized with the clock of the mobile terminal, and the ranging information is determined according to the transmission time of the third ranging frame, the reception time of the second ranging frame, and the data frame.
[0047] According to the vehicle ranging method of the embodiment of the present invention, a delay duration is determined based on a synchronization frame sent by a mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are respectively pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-time of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without increasing the hardware cost.
[0048] It can be understood that UWB (Ultra Wideband) technology has the advantages of high positioning accuracy, good security, and high transmission rate. PEPS system control can be realized based on UWB technology. When UWB technology is applied in the PEPS system, the mobile terminal and the vehicle conduct periodic UWB ranging sessions. The carrier of the UWB ranging session is the UWB frame, such as Figure 2 As shown, the UWB frame includes a SYNC field, an SFD field, a PHY field and a PSDU field, wherein the SYNC field is used to measure the channel between transmission and reception and determine the phase position between transmission and reception, the SFD field is used to start and stop the stopwatch for distance measurement, the PHY field may include the length of the payload, and the PSDU field may include the actual transmitted data. The frame format of the UWB frame transmitted by the UWB communication module of the mobile terminal and the UWB communication module of the vehicle can be pre-configured as a specific format. When binding the mobile terminal and the vehicle, the receiver of the UWB communication module can identify the target signal in the messy signal because the same SYNC field and SFD field are configured. During the UWB ranging session, if the channel is not clean, there is signal interference, or the clocks of the mobile terminal and the vehicle UWB communication module are not synchronized, the ranging result will be large in deviation, low in accuracy, or even unable to complete the UWB ranging session. In an embodiment of the present invention, by configuring the receiving period corresponding to the first ranging frame, the second ranging frame and the data frame, it is possible to simply and effectively avoid mutual interference between signals in the environment, thereby eliminating the need to establish a complex packet listening protocol. At the same time, since the receiving time periods corresponding to the first ranging frame, the second ranging frame and the data frame are predetermined, if the corresponding first ranging frame, the second ranging frame and the data frame can be received within the corresponding receiving time period, it can be determined that the clocks of the mobile terminal and the vehicle UWB communication module are basically synchronized, so there is no need to add expensive hardware devices such as synchronization engines and synchronizers to ensure strict clock synchronization. In other words, the "clock synchronization" in the present invention should be understood as the clock being basically synchronized, that is, the clocks of the two devices may have deviations, but the deviations do not exceed the total duration of the preset lead time and the preset post-time, so that when the total duration of the preset lead time and the preset post-time is small, it can be approximately considered that the clocks of the two devices are synchronized.
[0049] Specifically, the mobile terminal may include a UWB communication module, the vehicle includes at least one UWB communication module, the mobile terminal and the vehicle conduct a UWB ranging session based on the UWB communication module, and determine the ranging information. The mobile terminal can serve as an initiator of the UWB ranging session. When the vehicle includes multiple UWB communication modules, one of the multiple UWB communication modules can serve as a master module, and the remaining UWB communication modules in the multiple UWB communication modules can serve as slave modules. The ranging information between each UWB communication module of the vehicle and the mobile terminal can be determined separately according to the vehicle ranging method of an embodiment of the present invention.
[0050] The UWB communication module may include a receiver. Figure 3 In some embodiments, the receiver 10 includes an RF antenna 11, a low noise amplifier 12, a mixer 13, an oscillator 14, an ADC converter 15, a preamble correlator 16, and a CIR accumulator 17, wherein the mixer 13 is used to receive a signal from the low noise amplifier 12, mix the received signal with a carrier signal to down-convert the signal to an intermediate frequency; the ADC converter 15 is used to receive an analog signal from the mixer 13, convert the analog signal into a digital signal, and provide the digital signal to the preamble correlator 16; the preamble correlator 16 is used to associate the received signal field with a known preamble symbol to identify the corresponding relationship and implement a known decomposition function in the field; the preamble correlator 16 is also used to provide relevant information to the CIR accumulator 17, so that the CIR accumulator 17 determines whether a signal is acquired based on the relevant information received from the preamble correlator 16. The receiver 10 may also include a power control circuit (not shown in the figure), the power control circuit is used to turn on the receiving function of the receiver when powered on, and the power control circuit is also used to turn off the receiving function of the receiver when powered off.
[0051] The synchronization frame can be understood as a UWB frame used to synchronize the session time. The first ranging frame, the second ranging frame, and the third ranging frame can be understood as UWB frames used for distance measurement. The data frame can be understood as a UWB frame used to transmit data information.
[0052] In some embodiments, the mobile terminal is pre-configured with delay information corresponding to the delay duration, so that the mobile terminal determines the transmission time of the synchronization frame, the first ranging frame, the second ranging frame and the data frame according to the delay information, and sends the corresponding synchronization frame, the first ranging frame, the second ranging frame and the data frame at the corresponding transmission time. In one example, after sending the synchronization frame, the mobile terminal delays the transmission time of the synchronization frame by the delay duration and then sends the first ranging frame; and after sending the first ranging frame, the mobile terminal delays the transmission time of the first ranging frame by twice the delay duration and then sends the second ranging frame; and after sending the second ranging frame, the mobile terminal delays the transmission time of the second ranging frame by the delay duration and then sends the data frame, that is, the transmission time of the synchronization frame differs from the transmission time of the first ranging frame by the delay duration, the transmission time of the first ranging frame differs from the transmission time of the second ranging frame by twice the delay duration, and the transmission time of the second ranging frame differs from the transmission time of the data frame by the delay duration. The mobile terminal can record the transmission time of the first ranging frame, the transmission time of the second ranging frame, and the reception time of the third ranging frame during the UWB ranging session through its own clock, and then the mobile terminal can send the recorded transmission time of the first ranging frame, the transmission time of the second ranging frame, and the reception time of the third ranging frame to the UWB communication module of the vehicle through a data frame, so that the vehicle calculates the distance between the mobile terminal and the UWB communication module of the vehicle according to the transmission time of the third ranging frame, the reception time of the second ranging frame and the data frame using a bilateral two-way algorithm.
[0053] It can be understood that the receiving period may include a minimum moment, a maximum moment, and other moments between the minimum moment and the maximum moment, wherein the minimum moment of the first receiving period is earlier than the minimum moment of the second receiving period, and the minimum moment of the second receiving period is earlier than the minimum moment of the third receiving period; the maximum moment of the first receiving period is earlier than the maximum moment of the second receiving period, and the maximum moment of the second receiving period is earlier than the maximum moment of the third receiving period. In some embodiments, the maximum moment of the first receiving period is earlier than the minimum moment of the second receiving period, and the maximum moment of the second receiving period is earlier than the minimum moment of the third receiving period.
[0054] The vehicle can record the reception time of the synchronization frame, the reception time of the first ranging frame, the transmission time of the third ranging frame and the reception time of the second ranging frame during the UWB ranging session through the clock of its own UWB communication module. Further, in step S15, after the vehicle receives the first ranging frame in the first receiving period, it delays the reception time of the first ranging frame by the delay time and sends the third ranging frame to the mobile terminal, that is, the reception time of the first ranging frame differs from the transmission time of the third ranging frame by the delay time.
[0055] The reception time of the first ranging frame can be understood as the time when the first ranging frame is first received in the first receiving period. The reception time of the second ranging frame can be understood as the time when the second ranging frame is first received in the second receiving period.
[0056] Vehicles include but are not limited to pure electric vehicles, hybrid electric vehicles, extended-range electric vehicles, fuel vehicles, etc.
[0057] In some embodiments of the present invention, the synchronization frame includes a first synchronization frame and a second synchronization frame, wherein determining the delay duration based on the synchronization frame includes: determining the delay duration based on the difference between the receiving time of the first synchronization frame and the receiving time of the second synchronization frame.
[0058] Specifically, after transmitting the first synchronization frame, the mobile terminal may delay the second synchronization frame at the transmission time of the first synchronization frame and then transmit the second synchronization frame, that is, the transmission time of the first synchronization frame differs from the transmission time of the second synchronization frame by the delay time. Then, after receiving the first synchronization frame and the second synchronization frame, the vehicle can determine the delay time according to the difference between the reception time of the first synchronization frame and the reception time of the second synchronization frame.
[0059] In one example, the ranging process is as follows Figure 4 As shown, the mobile terminal transmits the first synchronization frame A1 at time T1, and the anchor point (the UWB communication module of the vehicle) receives the first synchronization frame A1 at time T2; the mobile terminal transmits the second synchronization frame A2 at time T3, and the delay time T between time T3 and time T1 is T d The anchor point receives the second synchronization frame A2 at time T4, and determines the delay time T according to the difference between time T2 and time T4. d , and according to the time T2 (or time T4) and the delay time T d Determine the first receiving period of the first ranging frame B1, the second receiving period of the second ranging frame B3 and the third receiving period of the data frame C; the mobile terminal transmits the first ranging frame B1 at time T5, and the time T5 differs from the time T3 by a delay time length T d The anchor point receives the first ranging frame B1 at time T6; the anchor point transmits the third ranging frame B2 at time T7, and the delay time difference between time T7 and time T6 is T d , the mobile terminal receives the third ranging frame B2 at time T8; the mobile terminal transmits the second ranging frame B3 at time T9, and the delay time T is twice that of time T5. d , the anchor point receives the second ranging frame B3 at time T10; the mobile terminal transmits the data frame C at time T11, and the delay time difference between time T11 and time T9 is T d , the anchor point receives data frame C at time T12.
[0060] It can be understood that the above-mentioned T1 moment, T3 moment, T5 moment, T9 moment and T11 moment are predetermined, that is, the mobile terminal transmits the first synchronization frame A1, the second synchronization frame A2, the first ranging frame B1, the second ranging frame B3 and the data frame C according to a fixed period. If the corresponding T6 moment when the anchor point receives the first ranging frame B1 is in the first receiving period, and the corresponding T10 moment when the second ranging frame B3 is received is in the second receiving period, and the corresponding T12 moment when the data frame C is received is in the third receiving period, it can be determined that the UWB communication module of the vehicle is synchronized with the clock of the mobile terminal, and then the ranging information can be determined according to the transmission time T7 of the third ranging frame, the reception time T10 of the second ranging frame and the data frame.
[0061] In some embodiments of the present invention, the synchronization frame includes delay information, wherein determining the delay duration according to the synchronization frame includes: parsing the delay information in the synchronization frame to determine the delay duration.
[0062] Specifically, the mobile terminal may add delay information to the PSDU field of the synchronization frame. When the vehicle receives the synchronization frame, it parses the delay information in the PSDU field, thereby being able to determine the delay duration.
[0063] Please combine Figure 5 In some embodiments of the present invention, step S13 includes:
[0064] S131: predicting a first arrival time of a first ranging frame, a second arrival time of a second ranging frame, and a third arrival time of a data frame sent by the mobile terminal to the UWB communication module according to the reception time and delay duration of the synchronization frame;
[0065] S133: determining a first receiving time period of the first ranging frame according to a first arrival time of the first ranging frame, a preset pre-duration, and a preset post-duration;
[0066] S135: determining a second receiving time period of the second ranging frame according to the second arrival time of the second ranging frame, the preset leading time length, and the preset post-time length;
[0067] S137: Determine a third receiving time period of the data frame according to a third arrival time of the data frame, a preset leading time length, and a preset post-leading time length.
[0068] In this way, the first receiving time period of the first ranging frame, the second receiving time period of the second ranging frame and the third receiving time period of the data frame can be determined more reasonably, so as to determine whether the clocks of the vehicle's UWB communication module and the mobile terminal are synchronized based on the first receiving time period of the first ranging frame, the second receiving time period of the second ranging frame and the third receiving time period of the data frame.
[0069] It can be understood that since the terminal device transmits the synchronization frame, the first ranging frame, the second ranging frame and the data frame at a fixed period according to the delay duration, when the UWB communication module of the vehicle is strictly synchronized with the clock of the mobile terminal, the reception time of the synchronization frame, the first arrival time of the first ranging frame, the second arrival time of the second ranging frame and the third arrival time of the data frame correspond to the transmission time of the synchronization frame, the transmission time of the first ranging frame, the transmission time of the second ranging frame and the transmission time of the data frame, that is, the first arrival time of the first ranging frame, the second arrival time of the second ranging frame and the third arrival time of the data frame can be predicted according to the reception time of the synchronization frame and the delay duration.
[0070] Furthermore, please combine Figure 6 , according to the first arrival time T n and preset lead time T 前 Determine the first arrival time T n The first previous moment T n0 , according to the first arrival time T n and preset post-time T 后 Determine the first arrival time T n The first subsequent moment T n1 , the first arrival time T n The first previous moment T n0 As the minimum time of the first receiving period, the first arrival time T n The first subsequent moment T n1 As the maximum time of the first receiving period, the first receiving period can be determined more reasonably. It should be noted that the determination principle of the second receiving period and the determination principle of the third receiving period are the same as the determination principle of the first receiving period, and are not described here to avoid redundancy.
[0071] Please combine Figure 7 In some embodiments of the present invention, after step S13, the method further includes:
[0072] S21: Record the total number of frame losses of the first ranging frame, the second ranging frame and the data frame;
[0073] S23: When the total number of frame losses is greater than or equal to a preset number, it is determined that the clocks of the UWB communication module and the mobile terminal are not synchronized.
[0074] In this way, it is possible to timely determine that the clocks of the UWB communication module and the mobile terminal are not synchronized, and to re-measure the distance so as to obtain the distance information in time and ensure the accuracy of the distance information. It is understandable that the clock crystals of the UWB communication modules of the mobile terminal and the vehicle may be different, which in turn causes the clocks of the UWB communication modules of the mobile terminal and the vehicle to run at different speeds. In this way, as time goes by, the clock deviation of the UWB communication modules of the mobile terminal and the vehicle may become larger and larger, resulting in the first ranging frame, the second ranging frame and the data frame being unable to be received by the UWB communication module of the vehicle within the corresponding receiving period. At this time, if the third ranging frame is transmitted at the receiving time of the first ranging frame and the ranging information is determined according to the transmitting time of the third ranging frame, the receiving time of the second ranging frame and the data frame, the accuracy of the ranging information cannot be guaranteed.
[0075] Specifically, when the first ranging frame is not received within the receiving time period corresponding to the first ranging frame, it can be determined that the first ranging frame has been lost; when the second ranging frame is not received within the receiving time period corresponding to the second ranging frame, it can be determined that the second ranging frame has been lost; when the data frame is not received within the third receiving time period corresponding to the data frame, it can be determined that the data frame has been lost.
[0076] The "clock out of synchronization" in the present invention can be understood as the deviation of the clocks of the two devices cannot be controlled within the total duration of the preset lead time and the preset post-duration. When the total number of frame losses is greater than or equal to the preset number of times, it can be more reliably determined that the deviation of the clocks of the two devices exceeds the total duration of the preset lead time and the preset post-duration. Therefore, when the total number of frame losses is greater than or equal to the preset number of times, it can be determined that the clocks of the UWB communication module and the mobile terminal are not synchronized; when the total number of frame losses is less than the preset number of times, it can be more reliably determined that the deviation of the clocks of the two devices does not exceed the total duration of the preset lead time and the preset post-duration. Therefore, when the total number of frame losses is less than the preset number of times, it can be determined that the clocks of the UWB communication module and the mobile terminal are synchronized.
[0077] It can be understood that when an obstruction blocks the signal of the mobile terminal, the signal of the mobile terminal cannot be transmitted to the UWB communication module of the vehicle, which will cause frame loss. When the obstruction is removed, the signal of the mobile terminal can continue to be transmitted to the UWB communication module of the vehicle, so that ranging can continue. That is, the frame loss caused by this situation is not caused by the large clock deviation between the mobile terminal and the UWB communication module of the vehicle. At this time, it is considered that the clock of the mobile terminal and the UWB communication module of the vehicle is not synchronized, which is not reasonable. Therefore, the preset number should not be set to a smaller number. In one example, the preset number is set to 15 times, so that it can be more reasonably determined that the clock of the UWB communication module and the mobile terminal are not synchronized.
[0078] In some embodiments, the vehicle can perform multi-round continuous ranging, which may include starting wheel ranging and continuous wheel ranging. Figure 8 , wherein the conversation process from time T1 to time T12 corresponds to the starting round ranging, and the conversation process from time T13 to time T24 corresponds to the continuous round ranging. The continuous round ranging occurs after the starting round ranging. The principles of the starting round ranging and the continuous round ranging are basically the same. The difference is that the receiving period of the synchronization frame, the receiving period of the first ranging frame, the receiving period of the second ranging frame and the receiving period of the data frame in the continuous round ranging are predetermined at the time of the starting round ranging. Furthermore, in multiple rounds of continuous ranging, when the total number of frame losses is greater than or equal to a preset number of times, it is determined that the clocks of the UWB communication module and the mobile terminal are not synchronized, and the initial round of ranging and the continuous round of ranging are performed again, that is: the delay duration is re-determined according to the synchronization frame, and the receiving time period of the first ranging frame, the receiving time period of the second ranging frame and the receiving time period of the data frame in the initial round of ranging and the continuous round of ranging are determined according to the receiving time, delay duration, preset leading time and preset post-time of the synchronization frame. If the UWB communication module receives the first ranging frame in the receiving time period corresponding to the first ranging frame, receives the second ranging frame in the receiving time period corresponding to the second ranging frame, and receives the data frame in the receiving time period corresponding to the data frame in each round of ranging, it is determined that the clocks of the UWB communication module and the mobile terminal are synchronized, and then the ranging information of the round of ranging is determined according to the transmitting time of the third ranging frame, the receiving time of the second ranging frame and the data frame in the round of ranging.
[0079] Please combine Fig. 9 In some embodiments of the present invention, the method further comprises:
[0080] S31: when the delay time is determined according to the synchronization frame, turning off the receiver of the UWB communication module of the vehicle;
[0081] S33: turning on the receiver of the UWB communication module of the vehicle at each of the minimum time of the first receiving period, the minimum time of the second receiving period, and the minimum time of the third receiving period;
[0082] S35: When any one of the first ranging frame, the second ranging frame and the data frame is received, turning off the receiver of the UWB communication module of the vehicle.
[0083] In this way, the power consumption of the vehicle's UWB communication module can be reduced, and signal interference can be reduced, preventing the multipath effect of the signal from causing inaccurate ranging information and affecting the ranging results.
[0084] Specifically, please combine Fig.10In the initial round of ranging, the UWB communication module of the vehicle initializes the receiver after receiving the start ranging command. After the initialization is completed, the receiver is always in the open state to receive the synchronization frame. In some embodiments, the vehicle can communicate with the mobile terminal based on Bluetooth and estimate the distance between the vehicle and the mobile terminal. When the distance between the vehicle and the mobile terminal is less than a preset distance threshold (such as 10 meters), the vehicle automatically triggers the start ranging command.
[0085] When the delay duration is determined according to the synchronization frame, the vehicle has received the synchronization frame and the next frame is expected to receive the first ranging frame. Therefore, when the delay duration is determined according to the synchronization frame, the receiver of the UWB communication module of the vehicle is turned off until the minimum time of the first receiving period is reached.
[0086] When the minimum time of the first receiving time period is reached, the receiver of the UWB communication module of the vehicle is turned on. When the first ranging frame is received at any time in the first receiving time period, the receiver of the UWB communication module of the vehicle is immediately turned off until the minimum time of the second receiving time period, thereby ensuring that subsequent steps are performed according to the first ranging frame received by the first path, preventing the multipath effect from causing inaccurate ranging information and affecting the ranging result; if the first ranging frame is not received at each time in the first receiving time period, the receiver of the UWB communication module of the vehicle is turned off when the maximum time of the first receiving time period is reached, and the total number of frame losses can be increased by one.
[0087] When the minimum time of the second receiving time period is reached, the receiver of the UWB communication module of the vehicle is turned on. When the second ranging frame is received at any time in the second receiving time period, the receiver of the UWB communication module of the vehicle is immediately turned off until the minimum time of the third receiving time period, thereby ensuring that subsequent steps are performed according to the second ranging frame received by the first path, preventing the multipath effect from causing inaccurate ranging information and affecting the ranging result; if the second ranging frame is not received at each time in the second receiving time period, the receiver of the UWB communication module of the vehicle is turned off when the maximum time of the second receiving time period is reached, and the total number of frame losses can be increased by one.
[0088] When the minimum moment of the third receiving time period is reached, the receiver of the UWB communication module of the vehicle is turned on. When a data frame is received at any moment in the third receiving time period, the receiver of the UWB communication module of the vehicle is immediately turned off until the minimum moment of the synchronization frame receiving time period of the continuous round ranging is reached, thereby ensuring that subsequent steps are executed according to the data frame received by the first path, preventing the multipath effect from causing inaccurate ranging information and affecting the ranging result; if no data frame is received at each moment in the third receiving time period, the receiver of the UWB communication module of the vehicle is turned off when the maximum moment of the third receiving time period is reached, and the total number of frame losses can be increased by one.
[0089] Please combine Fig.11 In some embodiments of the present invention, the data frame includes the transmission time of the first ranging frame and the reception time of the third ranging frame, wherein step S17 includes:
[0090] S171: parsing the data frame to determine the transmission time of the first ranging frame and the reception time of the third ranging frame, and determining the flight time of the ranging frame of the mobile terminal according to the transmission time of the first ranging frame and the reception time of the third ranging frame;
[0091] S173: Determine the flight time of the vehicle-side ranging frame according to the transmission time of the third ranging frame and the reception time of the second ranging frame;
[0092] S175: Determine ranging information according to the flight duration of the ranging frame on the mobile side, the flight duration of the ranging frame on the vehicle side, and the delay duration.
[0093] In this way, ranging information can be determined based on the bilateral two-way algorithm.
[0094] Specifically, the timestamp information corresponding to the transmission time of the first ranging frame and the reception time of the third ranging frame can be added to the PSDU field of the data frame, so that when the vehicle receives the data frame sent by the mobile terminal, it can determine the transmission time of the first ranging frame and the reception time of the third ranging frame by parsing the data frame. It can be understood that since the UWB protocol defines that the ranging frame cannot store the payload, and the ranging frame needs to follow the protocol, the transmission time of the first ranging frame and the reception time of the third ranging frame cannot be directly sent to the vehicle through the corresponding ranging frame. Since the UWB protocol defines that the data frame can store the payload, the transmission time of the first ranging frame and the reception time of the third ranging frame can be sent to the vehicle through the data frame after the second ranging frame is transmitted.
[0095] Further, the flight duration of the mobile terminal ranging frame is determined according to the difference between the transmission time of the first ranging frame and the reception time of the third ranging frame, and the flight duration of the vehicle terminal ranging frame is determined according to the difference between the transmission time of the third ranging frame and the reception time of the second ranging frame. The ranging information may include the relative distance between the mobile terminal and the UWB communication module of the vehicle, and the relative distance can be expressed by the following formula: R = [(T d 2 -T a *T b ) / (2T d +T a +T b )]*C, where R is the relative distance between the mobile terminal and the UWB communication module of the vehicle, T d is the delay time, T a is the flight time of the ranging frame on the mobile terminal, T b is the flight time of the vehicle-side ranging frame, and C is the propagation speed of electromagnetic waves.
[0096] In some embodiments, the data frame includes the transmission time of the first ranging frame, the reception time of the third ranging frame, and the transmission time of the second ranging frame. In this way, the vehicle can determine the transmission time of the first ranging frame, the reception time of the third ranging frame, and the transmission time of the second ranging frame by parsing the data frame, and then determine the ranging information according to the transmission time of the first ranging frame, the reception time of the first ranging frame, the transmission time of the third ranging frame, the reception time of the third ranging frame, the transmission time of the second ranging frame, and the reception time of the second ranging frame.
[0097] In some embodiments of the present invention, after determining the distance measurement information, the method further includes: determining relative position information between the mobile terminal and the vehicle according to the distance measurement information, so as to control the vehicle to perform a keyless start operation according to the relative position information.
[0098] In this way, it is convenient to more accurately control the vehicle to perform a keyless start operation based on the relative position information, which is beneficial to improving the intelligence level of the vehicle and enhancing the user experience.
[0099] Specifically, the vehicle may include at least three UWB communication modules. After determining the distance information between each UWB communication module of the vehicle and the mobile terminal, the coordinate point of the mobile terminal relative to the vehicle can be determined by a three-sided positioning algorithm, and then the relative position information of the mobile terminal and the vehicle can be determined more accurately based on the coordinate point of the mobile terminal and the coordinate point of the vehicle. The relative position information may include the relative distance between the mobile terminal and the vehicle.
[0100] Keyless start operations may include welcoming operations, unlocking operations, and starting operations. In one example, when the relative distance between the mobile terminal and the vehicle is less than or equal to 5 meters, the vehicle is controlled to perform a welcoming operation, such as flashing the welcome light; when the relative distance between the mobile terminal and the vehicle is less than or equal to 2 meters, the vehicle is controlled to perform an unlocking operation, such as unlocking the main driver's door lock; when the relative distance between the mobile terminal and the vehicle is less than or equal to 0.5 meters, the vehicle is controlled to perform a starting operation, such as controlling the engine to start, so that the user can enter and start the vehicle without operating the mobile terminal. In addition, there is no need to take out the car key and there is no risk of the car key being lost or stolen, which greatly improves the user experience.
[0101] It should be noted that the specific numerical values mentioned above are only used as examples to illustrate the implementation of the present invention in detail, and should not be understood as limiting the present invention. In other examples or implementations or embodiments, other numerical values can be selected according to the present invention, and are not specifically limited here.
[0102] In order to implement the above embodiments, the embodiments of the present invention further provide a computer-readable storage medium on which a vehicle distance measurement program is stored. When the vehicle distance measurement program is executed by a processor, the vehicle distance measurement method of any of the above embodiments is implemented.
[0103] According to the computer-readable storage medium of the embodiment of the present invention, a delay duration is determined based on a synchronization frame sent by a mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are respectively pre-set according to the receiving time, the delay duration, the preset pre-duration and the preset post-duration of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without additionally increasing the hardware cost.
[0104] For example, when the vehicle distance measurement program is executed by the processor, the following steps of the vehicle distance measurement method are implemented:
[0105] S11: receiving a synchronization frame sent by the mobile terminal, and determining a delay time according to the synchronization frame;
[0106] S13: determining a first receiving time period of a first ranging frame, a second receiving time period of a second ranging frame, and a third receiving time period of a data frame sent by the mobile terminal to the UWB communication module according to the receiving time of the synchronization frame, the delay time period, the preset leading time period, and the preset post-leading time period, and controlling the UWB communication module to receive the corresponding first ranging frame, second ranging frame, and data frame according to the first receiving time period, the second receiving time period, and the third receiving time period;
[0107] S15: When the UWB communication module receives the first ranging frame in the first receiving period, delaying the delay time and sending a third ranging frame to the mobile terminal;
[0108] S17: If the UWB communication module receives a first ranging frame in a first receiving period, receives a second ranging frame in a second receiving period, and receives a data frame in a third receiving period, it is determined that the UWB communication module is synchronized with the clock of the mobile terminal, and the ranging information is determined according to the transmission time of the third ranging frame, the reception time of the second ranging frame, and the data frame.
[0109] It should be noted that the above explanations of the embodiments and beneficial effects of the vehicle ranging method are also applicable to the computer-readable medium of the embodiments of the present invention, and will not be elaborated here in detail to avoid redundancy.
[0110] In order to implement the above embodiment, the embodiment of the present invention further proposes a vehicle-mounted terminal. Fig.12 is a structural block diagram of a vehicle-mounted terminal according to an embodiment of the present invention. Fig.12As shown, the vehicle terminal 100 includes a memory 102, a processor 104, and a vehicle distance measurement program 106 stored in the memory 102 and executable on the processor 104. When the processor 104 executes the vehicle distance measurement program 106, the vehicle distance measurement method of any of the above embodiments can be implemented.
[0111] According to the vehicle terminal 100 of the embodiment of the present invention, the delay duration is determined based on the synchronization frame sent by the mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are pre-set according to the receiving time, the delay duration, the preset pre-duration and the preset post-duration of the synchronization frame, respectively. When the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal. In this way, when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without increasing the hardware cost.
[0112] For example, when the vehicle distance measurement program 106 is executed by the processor 104, the following steps of the vehicle distance measurement method are implemented:
[0113] S11: receiving a synchronization frame sent by the mobile terminal, and determining a delay time according to the synchronization frame;
[0114] S13: determining a first receiving time period of a first ranging frame, a second receiving time period of a second ranging frame, and a third receiving time period of a data frame sent by the mobile terminal to the UWB communication module according to the receiving time of the synchronization frame, the delay time period, the preset leading time period, and the preset post-leading time period, and controlling the UWB communication module to receive the corresponding first ranging frame, second ranging frame, and data frame according to the first receiving time period, the second receiving time period, and the third receiving time period;
[0115] S15: When the UWB communication module receives the first ranging frame in the first receiving period, delaying the delay time and sending a third ranging frame to the mobile terminal;
[0116] S17: If the UWB communication module receives a first ranging frame in a first receiving period, receives a second ranging frame in a second receiving period, and receives a data frame in a third receiving period, it is determined that the UWB communication module is synchronized with the clock of the mobile terminal, and the ranging information is determined according to the transmission time of the third ranging frame, the reception time of the second ranging frame, and the data frame.
[0117] It should be noted that the above explanations of the embodiments and beneficial effects of the vehicle ranging method are also applicable to the vehicle-mounted terminal 100 of the embodiment of the present invention, and will not be elaborated in detail here to avoid redundancy.
[0118] Please combine Fig.13 In order to implement the above embodiment, the embodiment of the present invention further proposes a vehicle 1000, which includes the vehicle terminal 100 and the UWB communication module 200 of the above embodiment, and the vehicle terminal 100 is connected to the UWB communication module 200.
[0119] According to the vehicle 1000 of the embodiment of the present invention, a delay duration is determined based on a synchronization frame sent by a mobile terminal, and receiving time periods of a first ranging frame, a second ranging frame and a data frame are respectively pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-time of the synchronization frame, and when the UWB communication module 200 receives the first ranging frame in the first receiving time period, the delay duration is delayed and a third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, it can be determined that the clock of the UWB communication module 200 is synchronized with the mobile terminal, and then the ranging information can be more accurately determined according to the transmitting time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without increasing the hardware cost.
[0120] It should be pointed out that the above explanation of the embodiment and beneficial effects of the vehicle ranging method is also applicable to the vehicle 1000 of the embodiment of the present invention, and will not be elaborated here in detail to avoid redundancy.
[0121] In order to implement the above embodiments, the embodiments of the present invention further provide a vehicle distance measuring device, which can implement the vehicle distance measuring method of any of the above embodiments. Fig.14 FIG. 1 is a block diagram of a vehicle distance measuring device according to an embodiment of the present invention. The vehicle includes at least one UWB communication module, such as Fig.14As shown, the vehicle ranging device 300 proposed by the present invention includes a first determination module 301, a second determination module 303, a control module 305, a transmitting module 307 and a third determination module 309. The first determination module 301 is used to receive the synchronization frame sent by the mobile terminal, and determine the delay duration according to the synchronization frame. The second determination module 303 is used to determine the first receiving period of the first ranging frame, the second receiving period of the second ranging frame and the third receiving period of the data frame sent by the mobile terminal to the UWB communication module according to the receiving time, delay duration, preset leading duration and preset post-duration of the synchronization frame. The control module 305 is used to control the UWB communication module to receive the corresponding first ranging frame, second ranging frame and data frame according to the first receiving period, the second receiving period and the third receiving period. The transmitting module 307 is used to delay the delay duration and send the third ranging frame to the mobile terminal when the UWB communication module receives the first ranging frame in the first receiving period. The third determination module 309 is used to determine that the UWB communication module is synchronized with the clock of the mobile terminal if the UWB communication module receives the first ranging frame in the first receiving period, receives the second ranging frame in the second receiving period, and receives the data frame in the third receiving period, and determines the ranging information according to the transmission time of the third ranging frame, the reception time of the second ranging frame, and the data frame.
[0122] According to the vehicle ranging device 300 of the embodiment of the present invention, the delay duration is determined based on the synchronization frame sent by the mobile terminal, and the receiving time periods of the first ranging frame, the second ranging frame and the data frame are pre-set according to the receiving time, the delay duration, the preset leading time and the preset post-time of the synchronization frame, and when the UWB communication module receives the first ranging frame in the first receiving time period, the delay duration is delayed and the third ranging frame is sent to the mobile terminal, so that when the first ranging frame, the second ranging frame and the data frame are received in the corresponding receiving time period, the clock synchronization of the UWB communication module and the mobile terminal can be determined, and then the ranging information can be more accurately determined according to the transmission time of the third ranging frame, the receiving time of the second ranging frame and the data frame, so that the synchronization of data is effectively guaranteed, signal interference is avoided, and the accuracy of the ranging information is improved without additionally increasing the hardware cost.
[0123] In some embodiments of the present invention, the synchronization frame includes a first synchronization frame and a second synchronization frame, wherein the first determination module 301 is further configured to determine the delay duration according to the difference between the reception time of the first synchronization frame and the reception time of the second synchronization frame.
[0124] In some embodiments of the present invention, the synchronization frame includes delay information, wherein the first determination module 301 is further configured to parse the delay information in the synchronization frame to determine the delay duration.
[0125] In some embodiments of the present invention, the second determination module 303 includes a first determination unit, a second determination unit, a third determination unit, and a fourth determination unit. The first determination unit is used to predict the first arrival time of the first ranging frame, the second arrival time of the second ranging frame, and the third arrival time of the data frame according to the reception time and delay duration of the synchronization frame. The second determination unit is used to determine the first receiving time period of the first ranging frame according to the first arrival time of the first ranging frame, the preset leading time period, and the preset post-time period. The third determination unit is used to determine the second receiving time period of the second ranging frame according to the second arrival time of the second ranging frame, the preset leading time period, and the preset post-time period. The fourth determination unit is used to determine the third receiving time period of the data frame according to the third arrival time of the data frame, the preset leading time period, and the preset post-time period.
[0126] In some embodiments of the present invention, the vehicle ranging device 300 further includes a recording module and a fourth determination module. The recording module is used to record the total number of frame losses of the first ranging frame, the second ranging frame and the data frame. The fourth determination module is used to determine that the clocks of the UWB communication module and the mobile terminal are not synchronized when the total number of frame losses is greater than or equal to a preset number.
[0127] In some embodiments of the present invention, the vehicle ranging device 300 further includes a first closing module, an opening module, and a second closing module. The first closing module is used to close the receiver of the UWB communication module of the vehicle when the delay duration is determined according to the synchronization frame. The opening module is used to open the receiver of the UWB communication module of the vehicle at each of the minimum time of the first receiving period, the minimum time of the second receiving period, and the minimum time of the third receiving period. The second closing module is used to close the receiver of the UWB communication module of the vehicle when any one of the first ranging frame, the second ranging frame, and the data frame is received.
[0128] In some embodiments of the present invention, the data frame includes the transmission time of the first ranging frame and the reception time of the third ranging frame, wherein the third determination module includes a parsing unit, a fifth determination unit and a sixth determination unit. The parsing unit is used to parse the data frame to determine the transmission time of the first ranging frame and the reception time of the third ranging frame, and determine the flight duration of the mobile terminal ranging frame according to the transmission time of the first ranging frame and the reception time of the third ranging frame. The fifth determination unit is used to determine the flight duration of the vehicle-side ranging frame according to the transmission time of the third ranging frame and the reception time of the second ranging frame. The sixth determination unit is used to determine the ranging information according to the flight duration of the mobile terminal ranging frame, the flight duration of the vehicle-side ranging frame and the delay duration.
[0129] In some embodiments of the present invention, the vehicle distance measuring device 300 further includes a fifth determination module, which is used to determine the relative position information between the mobile terminal and the vehicle according to the distance measurement information, so as to control the vehicle to perform a keyless start operation according to the relative position information.
[0130] It should be noted that the above explanations of the embodiments and beneficial effects of the vehicle distance measurement method are also applicable to the vehicle distance measurement device 300 of the embodiment of the present invention, and will not be elaborated in detail here to avoid redundancy.
[0131] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0132] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0133] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0135] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0136] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0137] It should be pointed out that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0138] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A vehicle ranging method, characterized in that: The vehicle includes at least one UWB communication module, and the method includes: Receiving a synchronization frame sent by a mobile terminal, and determining a delay duration according to the synchronization frame; Determine, according to the reception time of the synchronization frame, the delay duration, the preset leading duration, and the preset post-duration, a first reception time period of a first ranging frame, a second reception time period of a second ranging frame, and a third reception time period of a data frame sent by the mobile terminal to the UWB communication module, and control the UWB communication module to receive the corresponding first ranging frame, second ranging frame, and data frame according to the first reception time period, the second reception time period, and the third reception time period; When the UWB communication module receives the first ranging frame in the first receiving period, delaying the delay time and sending a third ranging frame to the mobile terminal; If the UWB communication module receives the first ranging frame in the first receiving period, receives the second ranging frame in the second receiving period, and receives the data frame in the third receiving period, it is determined that the UWB communication module is synchronized with the clock of the mobile terminal, and the ranging information is determined according to the transmission time of the third ranging frame, the reception time of the second ranging frame, and the data frame; The method of determining, according to the reception time of the synchronization frame, the delay duration, the preset leading duration, and the preset post-duration, a first reception time period of a first ranging frame, a second reception time period of a second ranging frame, and a third reception time period of a data frame sent by the mobile terminal to the UWB communication module comprises: Predicting, according to the reception time of the synchronization frame and the delay duration, a first arrival time of the first ranging frame, a second arrival time of the second ranging frame, and a third arrival time of the data frame sent by the mobile terminal to the UWB communication module; Determine a first receiving time period of the first ranging frame according to a first arrival time of the first ranging frame, the preset leading time length, and the preset post-time length; determining a second receiving time period of the second ranging frame according to the second arrival time of the second ranging frame, the preset leading time length, and the preset post-leading time length; Determining a third receiving time period of the data frame according to the third arrival time of the data frame, the preset leading time length, and the preset post-leading time length; When the UWB communication module is strictly synchronized with the clock of the mobile terminal, the reception time of the synchronization frame, the first arrival time of the first ranging frame, the second arrival time of the second ranging frame and the third arrival time of the data frame correspond to the transmission time of the synchronization frame, the transmission time of the first ranging frame, the transmission time of the second ranging frame and the transmission time of the data frame.
2. The vehicle distance measurement method according to claim 1, characterized in that: The synchronization frame includes a first synchronization frame and a second synchronization frame, wherein determining the delay duration according to the synchronization frame includes: The delay duration is determined according to a difference between a reception time of the first synchronization frame and a reception time of the second synchronization frame.
3. The vehicle distance measurement method according to claim 1, characterized in that: The synchronization frame includes delay information, wherein determining the delay duration according to the synchronization frame includes: The delay information in the synchronization frame is parsed to determine the delay duration.
4. The vehicle distance measurement method according to claim 1, characterized in that: After controlling the UWB communication module to receive the corresponding first ranging frame, second ranging frame and data frame according to the first receiving period, the second receiving period and the third receiving period, the method further includes: Recording the total number of frame losses of the first ranging frame, the second ranging frame and the data frame; When the total number of frame losses is greater than or equal to a preset number, it is determined that the clocks of the UWB communication module and the mobile terminal are not synchronized.
5. The vehicle distance measurement method according to claim 1, characterized in that: The method further comprises: When the delay duration is determined according to the synchronization frame, turning off a receiver of the UWB communication module of the vehicle; At each of the minimum time of the first receiving period, the minimum time of the second receiving period, and the minimum time of the third receiving period, turning on the receiver of the UWB communication module of the vehicle; When any one of the first ranging frame, the second ranging frame and the data frame is received, the receiver of the UWB communication module of the vehicle is turned off.
6. The vehicle distance measurement method according to claim 1, characterized in that: The data frame includes a transmission time of the first ranging frame and a reception time of the third ranging frame, wherein determining the ranging information according to the transmission time of the third ranging frame, the reception time of the second ranging frame and the data frame includes: Parse the data frame to determine the transmission time of the first ranging frame and the reception time of the third ranging frame, and determine the flight time of the ranging frame of the mobile terminal according to the transmission time of the first ranging frame and the reception time of the third ranging frame; Determine the flight duration of the vehicle-side ranging frame according to the transmission time of the third ranging frame and the reception time of the second ranging frame; The ranging information is determined according to the flight duration of the mobile terminal ranging frame, the flight duration of the vehicle terminal ranging frame and the delay duration.
7. The vehicle distance measurement method according to claim 6, characterized in that: After determining the ranging information, the method further includes: The relative position information between the mobile terminal and the vehicle is determined according to the distance measurement information, so as to control the vehicle to perform a keyless start operation according to the relative position information.
8. A computer-readable storage medium, characterized in that: A vehicle distance measurement program is stored thereon, and when the vehicle distance measurement program is executed by a processor, the vehicle distance measurement method according to any one of claims 1 to 7 is implemented.
9. A vehicle-mounted terminal, characterized in that: The invention comprises a memory, a processor and a vehicle distance measurement program stored in the memory and executable on the processor. When the processor executes the vehicle distance measurement program, the vehicle distance measurement method according to any one of claims 1 to 7 is implemented.
10. A vehicle, characterized in that: It comprises the vehicle-mounted terminal and a UWB communication module as claimed in claim 9, wherein the vehicle-mounted terminal is connected to the UWB communication module.
11. A vehicle distance measuring device, characterized in that: The vehicle includes at least one UWB communication module, and the device includes: A first determination module, configured to receive a synchronization frame sent by a mobile terminal and determine a delay duration according to the synchronization frame; A second determination module is used to determine a first receiving time period of a first ranging frame, a second receiving time period of a second ranging frame, and a third receiving time period of a data frame sent by the mobile terminal to the UWB communication module according to the reception time of the synchronization frame, the delay duration, the preset leading duration, and the preset post-duration; A control module, configured to control the UWB communication module to receive corresponding first ranging frames, second ranging frames and data frames according to the first receiving period, the second receiving period and the third receiving period; A transmitting module, configured to delay the delay time and send a third ranging frame to the mobile terminal when the UWB communication module receives the first ranging frame in the first receiving period; a third determining module, configured to determine that the UWB communication module is clock synchronized with the mobile terminal if the UWB communication module receives the first ranging frame in the first receiving period, receives the second ranging frame in the second receiving period, and receives the data frame in the third receiving period, and determine ranging information according to a transmission time of the third ranging frame, a reception time of the second ranging frame, and the data frame; The method of determining, according to the reception time of the synchronization frame, the delay duration, the preset leading duration, and the preset post-duration, a first reception time period of a first ranging frame, a second reception time period of a second ranging frame, and a third reception time period of a data frame sent by the mobile terminal to the UWB communication module comprises: Predicting, according to the reception time of the synchronization frame and the delay duration, a first arrival time of the first ranging frame, a second arrival time of the second ranging frame, and a third arrival time of the data frame sent by the mobile terminal to the UWB communication module; Determine a first receiving time period of the first ranging frame according to a first arrival time of the first ranging frame, the preset leading time length, and the preset post-time length; determining a second receiving time period of the second ranging frame according to the second arrival time of the second ranging frame, the preset leading time length, and the preset post-leading time length; Determining a third receiving time period of the data frame according to the third arrival time of the data frame, the preset leading time length, and the preset post-leading time length; When the UWB communication module is strictly synchronized with the clock of the mobile terminal, the reception time of the synchronization frame, the first arrival time of the first ranging frame, the second arrival time of the second ranging frame and the third arrival time of the data frame correspond to the transmission time of the synchronization frame, the transmission time of the first ranging frame, the transmission time of the second ranging frame and the transmission time of the data frame.
