Distance determination method, apparatus, device, and storage medium

By sending and receiving two signal components of a probe signal between communication devices, the phase difference between the signal components is determined, thereby accurately calculating the distance. This solves the problem of inaccurate distance calculation caused by clock asynchrony and improves the accuracy of distance determination.

CN117120871BActive Publication Date: 2026-07-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2021-06-29
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

The distance was inaccurate due to the clocks of the communication devices being out of sync.

Method used

The phase difference between two signal components of a probe signal is determined by sending and receiving probe signals between communication devices, and the distance is calculated based on the phase difference.

Benefits of technology

It improves the accuracy of distance determination between communication devices and avoids errors caused by clock asynchrony.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117120871B_ABST
    Figure CN117120871B_ABST
Patent Text Reader

Abstract

The application discloses a distance determination method and device, equipment and storage medium, and relates to the field of mobile communication. The method comprises the following steps: a first communication device receives a probe signal under the condition that the first communication device has sent the probe signal to a second communication device; based on two signal components in the received probe signal, a first phase difference between the two signal components is determined, and the first phase difference is sent to the second communication device; the second communication device receives the probe signal and the first phase difference sent by the first communication device; based on the two signal components in the probe signal, a second phase difference between the two signal components is determined; and according to the first phase difference and the second phase difference, a first distance between the second communication device and the first communication device is determined. The method avoids the problem that the determined distance is inaccurate due to the clock asynchronization of the first communication device and the second communication device, and improves the accuracy of the distance between the two communication devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile communications, and in particular to a distance determination method, apparatus, device, and storage medium. Background Technology

[0002] With the development of communication technology, wireless ranging technology has been widely used. Communication devices can calculate the distance to other communication devices based on communication signals transmitted between them. Taking a first communication device and a second communication device as an example, the first communication device sends a first signal to the second communication device to measure the distance, and sends a second signal to the second communication device to indicate the transmission time of the first signal. The second communication device determines the distance between the first and second communication devices based on the reception time of the first signal and the transmission time indicated by the second signal. However, because the clocks used by the first and second communication devices may be out of sync, the time difference between the determined transmission time and reception time is inaccurate, which in turn leads to an inaccurate determination of the distance. Summary of the Invention

[0003] This application provides a distance determination method, apparatus, device, and storage medium. It eliminates the need to determine the first distance between a second communication device and a first communication device based on the time point of receiving the detection signal, avoiding inaccurate distance determination due to clock asynchrony between the first and second communication devices, and improving the accuracy of determining the distance between the two communication devices. The technical solution is as follows:

[0004] According to one aspect of this application, a distance determination method is provided, applied to a first communication device, the method comprising:

[0005] If a detection signal has already been sent to the second communication device, receive the detection signal;

[0006] Based on two signal components in the received detection signal, a first phase difference between the two signal components is determined, and the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval.

[0007] The first phase difference is sent to the second communication device; the second communication device is used to receive the detection signal sent by the first communication device and the first phase difference, determine the second phase difference between the two signal components based on the two signal components in the detection signal, and determine the first distance between the second communication device and the first communication device according to the first phase difference and the second phase difference.

[0008] According to one aspect of this application, a distance determination method is provided, applied to a second communication device, the method comprising:

[0009] Receive the detection signal sent by the first communication device;

[0010] The first phase difference is received by the first communication device, and the first phase difference is determined by the first communication device based on two signal components of the received detection signal.

[0011] Based on the two signal components in the detection signal, a second phase difference between the two signal components is determined, and the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval.

[0012] Based on the first phase difference and the second phase difference, a first distance is determined between the second communication device and the first communication device.

[0013] According to one aspect of this application, a distance determining device is provided, disposed in a first communication device, the device comprising:

[0014] A receiving module is configured to receive the detection signal when a detection signal has been sent to the second communication device;

[0015] The phase difference determination module is used to determine a first phase difference between two signal components based on two signal components in the received detection signal, wherein the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval.

[0016] The transmitting module is used to transmit the first phase difference to the second communication device; the second communication device is used to receive the detection signal transmitted by the first communication device and the first phase difference, determine the second phase difference between the two signal components based on the two signal components in the detection signal, and determine the first distance between the second communication device and the first communication device according to the first phase difference and the second phase difference.

[0017] According to one aspect of this application, a distance determining device is provided, disposed in a second communication device, the device comprising:

[0018] A receiving module is used to receive the detection signal sent by the first communication device;

[0019] A receiving module is configured to receive a first phase difference sent by the first communication device, wherein the first phase difference is determined by the first communication device based on two signal components of the received detection signal;

[0020] The phase difference determination module is used to determine the second phase difference between the two signal components based on the two signal components in the detection signal, wherein the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval.

[0021] The distance determination module is used to determine a first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference.

[0022] According to one aspect of this application, a communication device is provided, the communication device comprising: a processor; a transceiver connected to the processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to load and execute the executable instructions to implement the distance determination method as described above.

[0023] According to one aspect of this application, a computer-readable storage medium is provided, wherein executable program code is stored therein, the executable program code being loaded and executed by a processor to implement the distance determination method as described above.

[0024] According to one aspect of this application, a chip is provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is operated on a communication device, are used to implement the distance determination method as described above.

[0025] According to one aspect of this application, an embodiment of this application provides a computer program product including computer instructions stored in a computer-readable storage medium; a processor of a communication device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the communication device to perform the distance determination method as described above.

[0026] According to one aspect of this application, an embodiment of this application provides a computer program executed by a processor of a communication device to implement the distance determination method as described above.

[0027] The technical solutions provided in this application have at least the following beneficial effects:

[0028] The methods, apparatus, devices, and storage media provided in this application embodiment allow both the first and second communication devices to determine the first phase difference and the second phase difference of the detection signal based on the two signal components of the detection signal sent by the first communication device. The second communication device then determines the first distance between itself and the first communication device based on the first and second phase differences, eliminating the need to determine the first distance based on the time point of receiving the detection signal. This avoids inaccurate distance determination due to clock asynchrony between the first and second communication devices, thus improving the accuracy of the determined distance between the two communication devices. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 A block diagram of a communication system provided in an exemplary embodiment of this application is shown.

[0031] Figure 2 This illustration shows a structural diagram of a first communication device and a second communication device provided in an exemplary embodiment of this application.

[0032] Figure 3 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0033] Figure 4 A spectrum diagram of a detection signal provided in an exemplary embodiment of this application is shown.

[0034] Figure 5 A spectrum diagram of a detection signal provided in an exemplary embodiment of this application is shown.

[0035] Figure 6 A spectrum diagram of a detection signal provided in an exemplary embodiment of this application is shown.

[0036] Figure 7 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0037] Figure 8 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0038] Figure 9 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0039] Figure 10 A schematic diagram of a control field provided in an exemplary embodiment of this application is shown.

[0040] Figure 11 A flowchart of a distance determination method provided by an exemplary embodiment of this application is shown.

[0041] Figure 12 A schematic diagram of the header format of a protocol data unit provided in an exemplary embodiment of this application is shown.

[0042] Figure 13 This illustration shows a type diagram of a CTE field provided in an exemplary embodiment of this application.

[0043] Figure 14 A schematic diagram of an optional information field provided in an exemplary embodiment of this application is shown.

[0044] Figure 15 A schematic diagram of the format of a PHY data packet provided in an exemplary embodiment of this application is shown.

[0045] Figure 16 A schematic diagram of the format of a PHY data packet provided in an exemplary embodiment of this application is shown.

[0046] Figure 17 This illustration shows an extended header format diagram of a protocol data unit provided in an exemplary embodiment of this application.

[0047] Figure 18 A flowchart illustrating the periodic broadcast mode for signal transmission between a first communication device and a second communication device, as provided in an exemplary embodiment of this application, is shown.

[0048] Figure 19 A flowchart illustrating the transmission of signals between a first communication device and a second communication device when a connection has been established is shown.

[0049] Figure 20 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown.

[0050] Figure 21 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown.

[0051] Figure 22 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown.

[0052] Figure 23 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown.

[0053] Figure 24 A schematic diagram of the structure of a communication device provided in an exemplary embodiment of this application is shown. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0055] First, the communication system of this application will be described:

[0056] Figure 1 A block diagram of a communication system provided in an exemplary embodiment of this application is shown. The communication system may include: a first communication device 12 and a second communication device 13.

[0057] The first communication device 12 and the second communication device 13 may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment, mobile stations (MS), terminal devices, etc. For ease of description, the devices mentioned above are collectively referred to as communication devices. Furthermore, the first communication device 12 and the second communication device 13 can communicate with each other.

[0058] In some embodiments, the first communication device 12 is a user equipment and the second communication device is a BLE (Bluetooth Low Energy) device. Then, a BLE connection can be established between the first communication device 12 and the second communication device 13, and the second communication device determines the distance between the second communication device 13 and the first communication device 12 through the established BLE connection.

[0059] In some embodiments, the first communication device is a full-duplex communication device, which includes a first baseband unit and a first antenna, a second baseband unit and a second antenna. The first baseband unit and the first antenna constitute the transmitting module of the first communication device, and the second baseband unit and the second antenna constitute the receiving module of the first communication device, thereby enabling the first communication device to constitute a full-duplex communication device.

[0060] In some embodiments, the second communication device is any one of a full-duplex communication device, a half-duplex communication device, or a simplex communication device. A half-duplex communication device uses the same baseband unit and antenna in a time-division multiplexing manner; it cannot receive signals while transmitting signals, and cannot transmit signals while receiving signals. A simplex communication device only supports receiving signals and does not support transmitting signals.

[0061] For example, if the first communication device is a full-duplex communication device and the second communication device is a half-duplex communication device, then the relationship between the first communication device and the second communication device is as follows: Figure 2 As shown.

[0062] In some embodiments, the first communication device is a master device, and the second communication device is a slave device. The master device sends signals to the slave device, and the slave device receives the signals sent by the master device, thereby executing the distance determination method in this embodiment.

[0063] Figure 3 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown, which is applied to, for example... Figure 1 In the first and second communication devices shown, the method includes at least some of the following:

[0064] Step 301: The first communication device receives the detection signal after sending the detection signal to the second communication device.

[0065] The detection signal is generated by the first communication device, or generated by another device and sent to the first communication device. This detection signal is used by the second communication device to determine the distance between itself and the first communication device.

[0066] The first communication device will also receive its own detection signal after it has sent a detection signal to the second communication device.

[0067] In some embodiments, the detection signal is a Sounding Sequence signal, or other types of signals.

[0068] In some embodiments, during the time period between the time point of sending the probe signal and the time point of receiving the probe signal, the self-interference cancellation function of the first communication device is turned off. The self-interference cancellation function is used to cancel interference in the received signal.

[0069] The first communication device includes a DSIC (Digital Self-Interference Cancellation) and an ASIC (Analog Self-Interference Cancellation), both of which have self-interference cancellation functions.

[0070] This application embodiment disables the self-interference cancellation function of the first communication device to prevent the first communication device from being unable to receive the detection signal it sends, thereby improving communication efficiency and ensuring the smooth progress of the process of determining the distance between the second communication device and the first communication device.

[0071] Step 302: The first communication device determines the first phase difference between the two signal components based on the two signal components of the received probe signal.

[0072] In this embodiment of the application, after receiving the detection signal sent by itself, the first communication device analyzes the detection signal to determine the spectrum of the detection signal, then determines the two signal components of the detection signal based on the spectrum, and then determines the first phase difference between the two signal components in the detection signal.

[0073] The interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the probe signal is the target interval. The DC component of the probe signal is the signal amplitude corresponding to a frequency of 0 Hz (Hertz).

[0074] In some embodiments, the probe signal comprises multiple bit sequences, each containing the same number of bits.

[0075] In one possible implementation, the probe signal comprises multiple identical bit sequences. For example, if each bit sequence comprises 2 bits and can be [0, 1], then the probe signal is [0, 1, 0, 1, 0, 1, 0, 1…]. Alternatively, if each bit sequence comprises 4 bits and can be [1, 1, 0, 0], then the probe signal is [1, 1, 0, 0, 1, 1, 0, 0…].

[0076] In some embodiments, the target interval is the ratio of the symbol rate of the probe signal to the sequence period of the multiple bit sequences.

[0077] The sequence period is the number of bits in the bit sequence of the probe signal.

[0078] In this embodiment of the application, the first communication device determines the ratio of the symbol rate of the probe signal to the sequence period of the plurality of bit sequences, and determines the ratio as the target interval.

[0079] In this embodiment of the application, three types of detection signals can be defined:

[0080] The first type: a detection signal with a 2-bit period.

[0081] Each bit sequence in the probe signal is [1, 0], thus the probe signal is [1, 0, 1, 0, 1, 0…], with a period of 2 bits. At a symbol rate of 1 Msym / s, the baseband signal spectrum of this probe signal is as follows: Figure 4 As shown, a signal component is included on each side of the DC component with a frequency of 0Hz, spaced 500kHz (kilohertz).

[0082] The second type: a 4-bit periodic detection signal.

[0083] Each bit sequence in the probe signal is [1, 1, 0, 0], thus the probe signal is [1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0…], with a period of 4 bits. At a symbol rate of 1 Msym / s, the baseband signal spectrum of this probe signal is as follows: Figure 5 As shown, a signal component is included on each side of the DC component at a frequency of 0Hz, spaced 250kHz apart.

[0084] The third type: 8-bit periodic detection signal.

[0085] The probe signal consists of a bit sequence of [1, 1, 1, 1, 0, 0, 0, 0], resulting in a probe signal of [1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0…] with a period of 8 bits. At a symbol rate of 1 Msym / s, the baseband signal spectrum of this probe signal is as follows: Figure 6 As shown, a signal component is included on each side of the DC component with a frequency of 0Hz, spaced 125kHz apart.

[0086] Step 303: The first communication device sends the first phase difference to the second communication device.

[0087] Step 304: The second communication device receives the detection signal sent by the first communication device.

[0088] Step 305: The second communication device receives the first phase difference sent by the first communication device.

[0089] The first phase difference is determined by the first communication device based on the two signal components of the received probe signal.

[0090] After the first communication device determines the first phase difference, it will send the first phase difference to the second communication device, and then the second communication device can receive the first phase difference.

[0091] It should be noted that the embodiments in this application are only illustrated by taking the sequential execution of steps 302-305 as an example. In another embodiment, the execution order of steps 302-303, 304, and 305 is not restricted, and steps 302-303, 304, and 305 can be executed in other orders.

[0092] Step 306: The second communication device determines the second phase difference between the two signal components based on the two signal components in the probe signal.

[0093] In this embodiment, the process by which the second communication device determines the second phase difference is similar to the process by which the first communication device determines the first phase difference in step 302 above, and will not be described again here.

[0094] It should be noted that the specific process by which the second communication device determines the second phase difference is as follows: Figure 7 The process in the illustrated embodiment is similar; please refer to [link / reference] for details. Figure 7 The illustrated embodiment.

[0095] Step 307: The second communication device determines the first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference.

[0096] After the second communication device obtains the first phase difference and the second phase difference, it can determine the first distance between the second communication device and the first communication device.

[0097] This application provides a method for determining the distance between two communication devices. Both the first and second communication devices determine a first phase difference and a second phase difference of the detection signal based on the two signal components of the detection signal sent by the first communication device. The second communication device then determines the first distance between itself and the first communication device based on the first and second phase differences. This eliminates the need to determine the first distance between the second and first communication devices based on the time point of receiving the detection signal, avoiding inaccurate distance determination due to clock asynchrony between the first and second communication devices, and improving the accuracy of the determined distance between the two communication devices.

[0098] exist Figure 3 Based on the embodiment shown, the first communication device samples the detection signal to determine the phase difference between the two signal components. Figure 7 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown. See also: Figure 7 The method includes at least some of the following:

[0099] Step 701: The first communication device samples the detection signal according to the sampling period to obtain the digital signal of the detection signal.

[0100] In this embodiment of the application, it is necessary to determine the first phase difference between the two signal components of the detection signal. Since the detection signal is an analog signal, the first communication device samples the detection signal according to the sampling period to obtain the digital signal of the detection signal, and determines the first phase difference between the two signal components based on the digital signal.

[0101] In some embodiments, the detection signal is s 1 (t), the first communication device will s 1 (t) is sampled as S 1 (n,t)=s 1 (t+nT s ), where Ts The sampling period.

[0102] In some embodiments, the two signal components of the detection signal include a first signal component and a second signal component.

[0103] Wherein, the first signal component is

[0104] The second signal component is

[0105] Where α is the complex gain of the first or second signal component, f is the frequency of the first or second signal component, t is the time of the first or second signal component, and j is a constant.

[0106] Step 702: The first communication device determines the phase of the two signal components based on the digital signal, the sampling period, and the frequencies corresponding to the two signal components.

[0107] In this embodiment of the application, the first communication device can determine the phase of the first signal component and the second signal component based on the digital signal, the sampling period, and the frequencies corresponding to the two signal components.

[0108] In some embodiments, the phase of the first signal component is The phase of the second signal component is

[0109] in, M is a constant, T s α is the sampling period, f is the complex gain of the first or second signal component, t is the time of the first or second signal component, and j is a constant.

[0110] Step 703: The first communication device determines the first phase difference based on the phases of the two signal components.

[0111] In some embodiments, the first communication device determines the phase difference between two signal components as a first phase difference.

[0112] In some embodiments, the first phase difference determined in this application is

[0113] This application provides a method for determining the phase difference of a detection signal. The detection signal is sampled according to a sampling period to obtain a digital signal of the detection signal. Then, the phase difference between the two signal components of the detection signal is determined based on the obtained digital signal. The phase difference determined based on the sampling method can improve the accuracy of the acquired detection signal.

[0114] exist Figure 3 Based on the illustrated embodiment, the first communication device sends a second distance between its receiving module and transmitting module to the second communication device, so that the second communication device can determine the distance between itself and the first communication device based on this second distance. Figure 8 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown. See also: Figure 8 The method includes at least some of the following:

[0115] Step 801: The first communication device sends the second distance to the second communication device.

[0116] The second distance is the distance between the transmitting module for sending the detection signal and the receiving module for receiving the detection signal. The second communication device is used to determine the first distance between the second communication device and the first communication device based on the first phase difference, the second phase difference, and the second distance.

[0117] In this embodiment, the second communication device determines the distance between itself and the first communication device based on the first phase difference sent by the first communication device. Since the determined first phase difference is affected by the second distance between the transmitting module and the receiving module in the first communication device, the distance determined based on the first phase difference will also be affected by the second distance. Therefore, the first communication device sends the second distance to the second communication device, and the second communication device then determines the first distance between itself and the first communication device based on the second distance, thereby improving the accuracy of determining the first distance between itself and the first communication device based on the determined second distance.

[0118] Step 802: The second communication device receives the second distance sent by the first communication device.

[0119] It should be noted that steps 801-802 in the embodiments of this application can be executed after step 302 or after step 303. The embodiments of this application do not limit the execution order of steps 801-802.

[0120] Step 803: The second communication device determines the first distance between the second communication device and the first communication device based on the first phase difference, the second phase difference, and the second distance.

[0121] In some embodiments, the second communication device determines the difference between the second phase difference and the first phase difference, determines a ratio of the frequency corresponding to the signal component based on the difference, and determines a first distance between the second communication device and the first communication device based on the ratio, the signal transmission speed, and the second distance.

[0122] For example, the first distance Where D is the first distance. The first phase difference, Let f be the second phase difference, f be the frequency corresponding to the signal component, c be the speed of light, and d be the second distance.

[0123] The method provided in this application embodiment, after determining the distance between the second communication device and the first communication device based on the first phase difference and the second phase difference, also considers the second distance, which includes the second distance between the transmitting module for transmitting the detection signal and the receiving module for receiving the detection signal in the first communication device, and determines the first distance based on the second distance. This eliminates interference from the distance between the transmitting module and the receiving module in the first communication device and improves the accuracy of the determined distance between the second communication device and the first communication device.

[0124] exist Figure 3 Based on the illustrated embodiment, the second communication device will also actively request to acquire the detection signal. Figure 9 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown. See also: Figure 9 The method includes at least some of the following:

[0125] Step 901: The second communication device sends a first request message to the first communication device.

[0126] Step 902: The first communication device receives the first request message sent by the second communication device.

[0127] In this embodiment of the application, if the second communication device needs to measure the distance between itself and the first communication device, the second communication device actively sends a first request message to the first communication device, and then obtains the detection signal sent by the first communication device based on the first request message, and then determines the first distance between the second communication device and the first communication device based on the received detection signal.

[0128] It should be noted that in this embodiment of the application, the first communication device receives a first request message sent by the second communication device, determines that the second communication device needs to determine the distance between itself and the first communication device, and the first communication device sends a detection signal to the second communication device.

[0129] Step 903: In response to the first request message, the first communication device sends a probe signal to the second communication device.

[0130] Step 904: The second communication device receives the probe signal sent by the first communication device in response to the first request message.

[0131] In some embodiments, the first request message is carried in a control field in the second data packet, which is used to control the probe signal.

[0132] The second data packet can be an LL_SS_REQ PDU or other data packets.

[0133] Optionally, the control field includes a minimum duration field, which indicates the duration of the detection signal.

[0134] Optionally, the control field includes a free field, which includes free bits.

[0135] Optionally, the control field includes a second type field, which is used to indicate the type of probe signal.

[0136] For example, Figure 10 A schematic diagram of a control field provided in an exemplary embodiment of this application is shown. See also Figure 10 This control field includes a minimum duration field, an idle field, and a second type field. The minimum duration field consists of 5 bits, the idle field consists of 1 bit, and the second type field consists of 2 bits.

[0137] Among them, the control field is the CtrData (control data) field, the minimum duration field is the MinSSLenReq (minimum probe sequence duration request) field, the idle field is the RFU field, and the second type field is the SSTypeReq (probe sequence type request) field.

[0138] It should be noted that the detection signal in this embodiment is transmitted in connection mode. This connection mode refers to the connection between the first communication device and the second communication device.

[0139] The method provided in this application embodiment involves a second communication device actively sending a first request message to a first communication device to inform the first communication device of the distance between the two devices. The first communication device then sends a probe signal to the second communication device to determine the distance, thereby improving the communication efficiency between the communication devices.

[0140] exist Figure 3 Based on the illustrated embodiment, the second communication device will also actively request to obtain the first phase difference. Figure 11 A flowchart of a distance determination method provided in an exemplary embodiment of this application is shown. See also: Figure 11 The method includes at least some of the following:

[0141] Step 1101: The second communication device sends a second request message to the first communication device.

[0142] Step 1102: The first communication device receives the second request message sent by the second communication device.

[0143] In this embodiment of the application, the second communication device needs to measure the distance between itself and the first communication device. The first communication device determines the first phase difference between the two signal components based on the received detection signal. The first communication device does not actively send the first phase difference to the second communication device. Instead, the second communication device actively sends a second request message to the first communication device. After receiving the second request message, the first communication device sends the first phase difference to the second communication device based on the second request message. The second communication device receives the first phase difference sent by the first communication device.

[0144] It should be noted that in this embodiment of the application, the first communication device receives a first request message sent by the second communication device, determines that the second communication device needs to determine the distance between itself and the first communication device, and the first communication device sends a detection signal to the second communication device.

[0145] Step 1103: In response to the second request message, the first communication device sends the first phase difference to the second communication device.

[0146] Step 1104: The second communication device receives the first phase difference sent by the first communication device in response to the second request message.

[0147] In some embodiments, the second request message is carried in a third data packet. This third data packet is an LL_SS_PHASE_REQ PDU, or another type of data packet.

[0148] It should be noted that the detection signal in this embodiment is sent in connection mode, which means that the first communication device and the second communication device are in a connected state.

[0149] In addition, if the first communication device and the second communication device are in a connected state, the PHY data packet in this embodiment includes a target field, which is used to indicate whether the optional field exists.

[0150] The PHY data packet includes a Protocol Data Unit field, which contains a target field.

[0151] In some embodiments, Figure 12 The header format of the protocol data unit is shown in the figure. Figure 12The header includes a 2-bit LLID (Logical Link Identifier), a 1-bit NESN (Next Expected Sequence Number), a 1-bit SN (Sequence Number), a 1-bit MD (More Data), a 1-bit OP (OptionInfo), a 2-bit RFU (Reserve for Future Use), an 8-bit Length, and an 8-bit OptionInfo.

[0152] Figure 3 The illustrated embodiment explains how to determine the distance between the second communication device and the first communication device based on the detection signal. In some embodiments, the detection signal may also be carried in a data packet, and the first communication device transmits the detection signal by sending the data packet.

[0153] The detection signal is carried in a PHY (Physical Layer) data packet. The PHY data packet is explained below.

[0154] In some embodiments, the PHY data packet is the LE unencoded PHY data packet in the BLE standard, or other types of data packets; this application embodiment does not limit the specific types of data packets.

[0155] The PHY data packet can be an AUX_SYNC_IND PDU, an LL_SS_RSP PDU, or any other data packet.

[0156] In some embodiments, the PHY data packet includes optional fields in which probe signals are carried.

[0157] In some embodiments, the PHY data packet includes an optional information field for configuring optional fields in the PHY data packet.

[0158] The optional fields include the CTE (Constant Tone Extension) field or the SS (Sounding Sequence) field.

[0159] If the optional field is the CTE field, the probe signal is carried on the CTE field. If the optional field is the SS field, the probe signal is carried on the SS field.

[0160] In some embodiments, the optional information field includes a time field, which indicates the duration of the optional field.

[0161] In some embodiments, the optional information field includes an indicator field, which is used to indicate whether the optional field is a CTE field or an SS field.

[0162] If the indicator field includes 1 bit, and the indicator field is 0, the optional field is the CTE field; if the indicator field is 1, the optional field is the SS field.

[0163] In one possible implementation, if the indicator field is a CTE field, the CTE field includes two types: AOA (Angle of Arrival) and AOD (Angle of Departure). Each type has two slot lengths: 1 microsecond and 2 microseconds.

[0164] For example, Figure 13 The type of CTE field is shown in the image. Figure 13 CTE has two types: AOA and AOD, and each type has two time slot lengths: 1 microsecond and 2 microseconds.

[0165] like Figure 13 As shown, regardless of the CTE field type, the protection period is always 4 microseconds, represented by a single block. The reference period is always 8 microseconds, also represented by a single block. However, the switching time slot and sampling time slot differ for AOA reception, AOD transmission, or AOD reception.

[0166] The switching and sampling time slots for AOA reception are 1 microsecond. Alternatively, the switching and sampling time slots for AOA reception are 2 microseconds.

[0167] The switching time slot for AOD transmission is 1 microsecond, or 2 microseconds. The sampling time slot for AOD reception is 1 microsecond, or 2 microseconds.

[0168] Furthermore, each switching time slot and each sampling time slot is represented by a tile.

[0169] It should be noted that, Figure 13 The image is used as an example only; the length of each image does not represent the actual time slot length.

[0170] In some embodiments, the optional information field includes a first type field, which is used to indicate the type of the optional field.

[0171] The first type field consists of 2 bits. Based on the optional field indicated by the indicator field, different bits of the first type field indicate different types of optional fields.

[0172] The meanings of the different bits in the first type of field are shown in Table 1.

[0173] Table 1

[0174]

[0175] For example, Figure 14 A schematic diagram of an optional information field provided in an exemplary embodiment of this application is shown. See also Figure 14 The time field uses 5 bits, the indicator field uses 1 bit, and the type field uses 2 bits.

[0176] Among them, the time field is the Time field, the indicator field is the Option field, and the first type field is the Type field.

[0177] In some embodiments, the PHY data packet includes a protocol data unit field, which includes an optional information field.

[0178] In some embodiments, the PHY data packet further includes at least one of a preamble field, an access address field, or a cyclic redundancy check field.

[0179] In one possible implementation, the PHY data packet includes a preamble field, an access address field, a cyclic redundancy check field, a protocol data unit field, and a CTE field.

[0180] For example, such as Figure 15 As shown, the preamble field includes 1 or 2 octets (bytes), the access address field includes 4 octets, the cyclic redundancy check field includes 3 octets, the protocol data unit field includes 2-258 octets, and the CTE field lasts for 16-160 microseconds.

[0181] In another possible implementation, the PHY packet includes a preamble field, an access address field, a cyclic redundancy check field, a protocol data unit field, and an SS field.

[0182] For example, such as Figure 16 As shown, the preamble field includes 1 or 2 octets (8 bits), the access address field includes 4 octets, the cyclic redundancy check field includes 3 octets, the protocol data unit field includes 2-258 octets, and the SS field lasts for 16-160 microseconds.

[0183] It should be noted that the detection signal in this embodiment is transmitted in a periodic broadcast mode.

[0184] In some embodiments, the extended header format of the protocol data unit field is as follows: Figure 17 As shown, the extended header format includes Flags for 1 octet, AdvA (Advertising Address) for 6 octets, TargetA (Target Address) for 6 octets, OptionInfo for 1 octet, ADI (AdvDataInfo) for 2 octets, AuxPtr (Auxiliary Pointer) for 3 octets, SyncInfo (SynchronizationInformation) for 18 octets, TxPower (Transmit Power) for 1 octet, and a variable ACAD (Additional Controller Advertising Data).

[0185] It should be noted that the above embodiments can be separated or freely combined, and this application does not limit the separation or combination of the embodiments.

[0186] For example, Figure 18 The process of transmitting signals between the first communication device and the second communication device using a periodic broadcast mode is shown.

[0187] 1. The first communication device sends ADV_EXT_IND on three broadcast physical channels respectively.

[0188] 2. The first communication device sends AUX_ADV_IND on another broadcast physical channel.

[0189] 3. The first communication device periodically sends AUX_SYNC_IND on the broadcast physical channel to complete the establishment of periodic broadcast.

[0190] In the AUX_SYNC_IND PDU, the optional field in the OptionInfo field of the extended header is set to 1, indicating that the PDU (Protocol Data Unit) includes a probe signal. The values ​​of the time field and the first type field are specified by the first communication device. Furthermore, AUX_SYNC_IND is configured to point to an AUX_CHAIN_IND PDU, which carries the first phase difference and second distance determined by the first communication device in the AdvData field.

[0191] 4. The second communication device receives AUX_SYNC_IND containing the probe signal and determines the second phase difference.

[0192] 5. The second communication device receives AUX_CHAIN_IND and parses out the first phase difference and the second distance. Based on the first phase difference, the second phase difference, and the second distance, the first distance between the second communication device and the first communication device is determined.

[0193] Secondly Figure 19 The process of sending signals between a first communication device and a second communication device after a connection has been established is shown.

[0194] 1. The second communication device sends an LL_SS_REQ PDU to the first communication device to request the acquisition of the probe signal.

[0195] The LL_SS_REQ PDU includes a minimum duration field, an idle field, and a second type field.

[0196] 2. After receiving the LL_SS_REQ PDU, the first communication device sends an LL_SS_RSP PDU containing a probe signal to the second communication device and determines the first phase difference.

[0197] In the LL_SS_RSP PDU header, the target field is set to 1, the indicator field of the optional information field is set to 1, the time field is set to be greater than or equal to the value of the minimum duration field in the LL_SS_REQ PDU, and the first type field is set to the value of the second type field in the LL_SS_REQ PDU.

[0198] In some embodiments, if the first communication device is unable to send a probe signal, it sends a rejection message to the second communication device.

[0199] 3. The second communication device receives the LL_SS_RSP PDU sent by the first communication device and determines the second phase difference.

[0200] 4. The second communication device sends LL_SS_PHASE_REQ PDU.

[0201] 5. The first communication device receives the LL_SS_PHASE_REQ PDU and sends the LL_SS_PHASE_RSP PDU to the second communication device.

[0202] The LL_SS_PHASE_RSP PDU includes a first phase difference and a second distance.

[0203] 6. The second communication device receives the LL_SS_PHASE_REQ PDU and parses out the first phase difference and the second distance. Based on the first phase difference, the second phase difference, and the second distance, the first distance between the second communication device and the first communication device is determined.

[0204] Figure 20 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown. The apparatus is disposed in a first communication device and includes:

[0205] The receiving module 2001 is used to receive a probe signal when a probe signal has been sent to the second communication device;

[0206] The phase difference determination module 2002 is used to determine the first phase difference between two signal components based on two signal components in the received detection signal, and the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval.

[0207] The transmitting module 2003 is used to transmit a first phase difference to a second communication device; the second communication device is used to receive the detection signal and the first phase difference transmitted by the first communication device, determine the second phase difference between the two signal components based on the two signal components in the detection signal, and determine the first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference.

[0208] In some embodiments, the probe signal comprises multiple bit sequences, each containing the same number of bits, and the target interval is the ratio of the symbol rate of the probe signal to the sequence period of the multiple bit sequences.

[0209] In some embodiments, see Figure 21 Phase difference determination module 2002 includes:

[0210] The sampling unit 20021 is used to sample the detection signal according to the sampling period to obtain the digital signal of the detection signal;

[0211] The phase determination unit 20022 is used to determine the phase of two signal components based on the digital signal, the sampling period, and the frequencies corresponding to the two signal components.

[0212] Phase difference determination unit 20023 is used to determine a first phase difference based on the phases of two signal components.

[0213] In some embodiments, see Figure 21 The device also includes:

[0214] The shutdown module 2004 is used to disable the self-interference cancellation function of the first communication device during the time period between the time point of sending the detection signal and the time point of receiving the detection signal. The self-interference cancellation function is used to cancel interference on the received signal.

[0215] In some embodiments, the transmitting module 2003 is further configured to transmit a second distance to the second communication device, the second distance being the distance between the transmitting module for transmitting the detection signal and the receiving module for receiving the detection signal, and the second communication device is configured to determine a first distance between the second communication device and the first communication device based on the first phase difference, the second phase difference, and the second distance.

[0216] In some embodiments, the probe signal is carried in a PHY data packet.

[0217] In some embodiments, the PHY data packet includes optional fields in which probe signals are carried.

[0218] In some embodiments, the PHY data packet includes optional information fields for configuring optional fields in the PHY data packet.

[0219] In some embodiments, the optional information field includes a time field, which is used to indicate the duration of the optional field.

[0220] In some embodiments, the optional information field includes an indicator field, which is used to indicate whether the optional field is a CTE field or an SS field.

[0221] In some embodiments, the optional information field includes a first type field, which is used to indicate the type of the optional field.

[0222] In some embodiments, the PHY data packet includes a protocol data unit field, which includes an optional information field.

[0223] In some embodiments, optional fields include a CTE field or an SS field.

[0224] In some embodiments, the PHY data packet further includes at least one of a preamble field, an access address field, or a cyclic redundancy check field.

[0225] In some embodiments, the first phase difference is carried in the data field of the first data packet.

[0226] In some embodiments, the detection signal is transmitted in a periodic broadcast mode.

[0227] In some embodiments, the PHY data packet also includes a target field, which is used to indicate whether an optional field exists.

[0228] In some embodiments, the PHY data packet includes a protocol data unit field, which includes a target field.

[0229] In some embodiments, the receiving module 2001 is configured to receive a first request message sent by the second communication device;

[0230] The sending module 2003 is used to send a probe signal to the second communication device in response to the first request message.

[0231] In some embodiments, the first request message is carried in the control field of the second data packet, and the control field is used to control the probe signal.

[0232] In some embodiments, the control field includes a minimum duration field, which indicates the duration of the probe signal.

[0233] In some embodiments, the control field includes a free field, which includes free bits.

[0234] In some embodiments, the control field includes a second type field, which is used to indicate the type of probe signal.

[0235] In some embodiments, the receiving module 2001 is configured to receive a second request message sent by the second communication device;

[0236] The sending module 2003 is used to send a first phase difference to the second communication device in response to the second request message.

[0237] In some embodiments, the probe signal is sent in connected mode.

[0238] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0239] Figure 22 A block diagram of a distance determination apparatus provided in an exemplary embodiment of this application is shown. The apparatus is disposed in a second communication device and includes:

[0240] The receiving module 2201 is used to receive the detection signal sent by the first communication device;

[0241] The receiving module 2201 is used to receive a first phase difference sent by the first communication device, the first phase difference being determined by the first communication device based on two signal components of the received detection signal;

[0242] The phase difference determination module 2202 is used to determine the second phase difference between two signal components based on two signal components in the detection signal, wherein the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval.

[0243] The distance determination module 2203 is used to determine a first distance between the second communication device and the first communication device based on a first phase difference and a second phase difference.

[0244] In some embodiments, the probe signal comprises multiple bit sequences, each containing the same number of bits, and the target interval is the ratio of the symbol rate of the probe signal to the sequence period of the multiple bit sequences.

[0245] In some embodiments, see Figure 23 Phase difference determination module 2202 includes:

[0246] The sampling unit 22021 is used to sample the detection signal according to the sampling period to obtain the digital signal of the detection signal;

[0247] The phase determination unit 22022 is used to determine the phase of two signal components based on the digital signal, the sampling period, and the frequencies corresponding to the two signal components.

[0248] The phase difference determination unit 22023 is used to determine the second phase difference based on the phases of the two signal components.

[0249] In some embodiments, the receiving module 2201 is used to receive a second distance sent by the first communication device, the second distance being the distance between the transmitting module for sending a detection signal and the receiving module for receiving the detection signal in the first communication device;

[0250] The distance determination module 2203 is used to determine the first distance between the second communication device and the first communication device based on the first phase difference, the second phase difference, and the second distance.

[0251] In some embodiments, the probe signal is carried in a PHY data packet.

[0252] In some embodiments, the PHY data packet includes optional fields in which probe signals are carried.

[0253] In some embodiments, the PHY data packet includes optional information fields for configuring optional fields in the PHY data packet.

[0254] In some embodiments, the optional information field includes a time field, which is used to indicate the duration of the optional field.

[0255] In some embodiments, the optional information field includes an indicator field, which is used to indicate whether the optional field is a CTE field or an SS field.

[0256] In some embodiments, the optional information field includes a first type field, which is used to indicate the type of the optional field.

[0257] In some embodiments, the PHY data packet includes a protocol data unit field, which includes an optional information field.

[0258] In some embodiments, optional fields include a CTE field or an SS field.

[0259] In some embodiments, the PHY data packet further includes at least one of a preamble field, an access address field, or a cyclic redundancy check field.

[0260] In some embodiments, the first phase difference is carried in the data field of the first data packet.

[0261] In some embodiments, the detection signal is transmitted in a periodic broadcast mode.

[0262] In some embodiments, the PHY data packet also includes a target field, which is used to indicate whether an optional field exists.

[0263] In some embodiments, the PHY data packet includes a protocol data unit field, which includes a target field.

[0264] In some embodiments, the apparatus further includes:

[0265] Sending module 2204 is used to send a first request message to the first communication device;

[0266] The receiving module 2201 is used to receive the probe signal sent by the first communication device in response to the first request message.

[0267] In some embodiments, the first request message is carried in the control field of the second data packet, and the control field is used to control the probe signal.

[0268] In some embodiments, the control field includes a minimum duration field, which indicates the duration of the probe signal.

[0269] In some embodiments, the control field includes a free field, which includes free bits.

[0270] In some embodiments, the control field includes a second type field, which is used to indicate the type of probe signal.

[0271] In some embodiments, the apparatus further includes:

[0272] Sending module 2204 is used to send a second request message to the first communication device;

[0273] The receiving module 2201 is used to receive the first phase difference sent by the first communication device in response to the second request message.

[0274] In some embodiments, the probe signal is sent in connected mode.

[0275] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0276] Figure 24 The diagram shows a schematic representation of a communication device provided in an exemplary embodiment of this application. The communication device includes a processor 2401, a receiver 2402, a transmitter 2403, a memory 2404, and a bus 2405.

[0277] The processor 2401 includes one or more processing cores, and the processor 2401 executes various functional applications and information processing by running software programs and modules.

[0278] The receiver 2402 and the transmitter 2403 can be implemented as a communication component, which can be a communication chip.

[0279] The memory 2404 is connected to the processor 2401 via the bus 2405.

[0280] The memory 2404 can be used to store at least one program code, and the processor 2401 is used to execute the at least one program code to implement the various steps in the above method embodiments.

[0281] The memory 2404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disks or optical disks, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM (Erasable Programmable Read Only Memory), SRAM (Static Random Access Memory), ROM (Read Only Memory), magnetic storage, flash memory, and programmable read only memory (PROM).

[0282] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores executable program code that is loaded and executed by a processor to implement the distance determination method performed by the communication device provided in the above-described method embodiments.

[0283] In an exemplary embodiment, a chip is provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is run on a communication device, are used to implement the distance determination method as provided in the various method embodiments.

[0284] In an exemplary embodiment, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium; a processor of a communication device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the communication device to perform the distance determination method as described above.

[0285] In an exemplary embodiment, a computer program is provided, which is executed by the processor of a communication device, to implement the distance determination method as described above.

[0286] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0287] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A distance determination method, characterized in that, The method includes: The first communication device receives the detection signal after sending a detection signal to the second communication device; based on two signal components in the received detection signal, it determines a first phase difference between the two signal components, and the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is a target interval; and sends the first phase difference to the second communication device. The second communication device receives the detection signal and the first phase difference sent by the first communication device, determines the second phase difference between the two signal components based on the two signal components in the detection signal, and determines the first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference.

2. The method according to claim 1, characterized in that, The detection signal comprises multiple bit sequences, each containing the same number of bits, and the target interval is the ratio of the symbol rate of the detection signal to the sequence period of the multiple bit sequences.

3. The method according to claim 1, characterized in that, The first communication device determines a first phase difference between two signal components based on two signal components in the received detection signal, including: The first communication device samples the detection signal according to the sampling period to obtain a digital signal of the detection signal; based on the digital signal, the sampling period and the frequencies corresponding to the two signal components, the phase of the two signal components is determined; and based on the phase of the two signal components, the first phase difference is determined.

4. The method according to claim 1, characterized in that, The method further includes: During the time period between sending the detection signal and receiving the detection signal, the first communication device disables its self-interference cancellation function, which is used to cancel interference in the received signal.

5. The method according to claim 1, characterized in that, The method further includes: The first communication device sends a second distance to the second communication device, the second distance being the distance between the transmitting module for transmitting the detection signal and the receiving module for receiving the detection signal; The second communication device receives the second distance; The second communication device determines a first distance between itself and the first communication device based on the first phase difference and the second phase difference, including: The second communication device determines the first distance between itself and the first communication device based on the first phase difference, the second phase difference, and the second distance.

6. The method according to claim 1, characterized in that, The detection signal is carried in the PHY data packet.

7. The method according to claim 6, characterized in that, The PHY data packet includes optional fields, and the probe signal is carried in the optional fields.

8. The method according to claim 7, characterized in that, The PHY data packet includes optional information fields, which are used to configure the optional fields.

9. The method according to claim 8, characterized in that, The optional information field includes a time field, which is used to indicate the duration of the optional field.

10. The method according to claim 8, characterized in that, The optional information field includes an indicator field, which is used to indicate whether the optional field is a CTE field or an SS field.

11. The method according to claim 8, characterized in that, The optional information field includes a first type field, which indicates the type of the optional field.

12. The method according to claim 8, characterized in that, The PHY data packet includes a protocol data unit field, which includes the optional information field.

13. The method according to any one of claims 8 to 12, characterized in that, The optional fields include the CTE field or the SS field.

14. The method according to claim 6, characterized in that, The PHY data packet also includes at least one of a preamble field, an access address field, or a cyclic redundancy check field.

15. The method according to claim 1, characterized in that, The first phase difference is carried in the data field of the first data packet.

16. The method according to any one of claims 6 to 12, 14 and 15, characterized in that, The detection signal is transmitted in a periodic broadcast mode.

17. The method according to claim 7, characterized in that, The PHY data packet also includes a target field, which is used to indicate whether the optional field exists.

18. The method according to claim 17, characterized in that, The PHY data packet includes a protocol data unit field, which in turn includes the target field.

19. The method according to claim 1, characterized in that, The method further includes: The first communication device receives a first request message sent by the second communication device; in response to the first request message, it sends the detection signal to the second communication device.

20. The method according to claim 19, characterized in that, The first request message is carried in the control field of the second data packet, and the control field is used to control the detection signal.

21. The method according to claim 20, characterized in that, The control field includes a minimum duration field, which indicates the duration of the detection signal.

22. The method according to claim 20, characterized in that, The control field includes a free field, which includes free bits.

23. The method according to claim 20, characterized in that, The control field includes a second type field, which is used to indicate the type of the detection signal.

24. The method according to claim 1, characterized in that, The first communication device sends the first phase difference to the second communication device, including: The first communication device receives a second request message sent by the second communication device; in response to the second request message, it sends the first phase difference to the second communication device.

25. The method according to any one of claims 17 to 24, characterized in that, The detection signal is sent in connection mode.

26. A distance determination method, characterized in that, Applied to a second communication device, the method includes: Receive the detection signal sent by the first communication device; The first phase difference is received by the first communication device, and the first phase difference is determined by the first communication device based on two signal components of the received detection signal. Based on the two signal components in the detection signal, a second phase difference between the two signal components is determined, and the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval. Based on the first phase difference and the second phase difference, a first distance is determined between the second communication device and the first communication device.

27. The method according to claim 26, characterized in that, The detection signal comprises multiple bit sequences, each containing the same number of bits, and the target interval is the ratio of the symbol rate of the detection signal to the sequence period of the multiple bit sequences.

28. The method according to claim 26, characterized in that, Determining the second phase difference between the two signal components based on the two signal components in the detected signal includes: The detection signal is sampled according to the sampling period to obtain the digital signal of the detection signal; Based on the digital signal, the sampling period, and the frequencies corresponding to the two signal components, the phase of the two signal components is determined; The second phase difference is determined based on the phases of the two signal components.

29. The method according to claim 26, characterized in that, The method further includes: The second distance is received from the first communication device, where the second distance is the distance between the transmitting module for transmitting the detection signal and the receiving module for receiving the detection signal in the first communication device. Determining the first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference includes: The first distance between the second communication device and the first communication device is determined based on the first phase difference, the second phase difference, and the second distance.

30. The method according to claim 26, characterized in that, The detection signal is carried in the PHY data packet.

31. The method according to claim 30, characterized in that, The PHY data packet includes optional fields, and the probe signal is carried in the optional fields.

32. The method according to claim 31, characterized in that, The PHY data packet includes optional information fields, which are used to configure the optional fields.

33. The method according to claim 32, characterized in that, The optional information field includes a time field, which is used to indicate the duration of the optional field.

34. The method according to claim 32, characterized in that, The optional information field includes an indicator field, which is used to indicate whether the optional field is a CTE field or an SS field.

35. The method according to claim 32, characterized in that, The optional information field includes a first type field, which indicates the type of the optional field.

36. The method according to claim 32, characterized in that, The PHY data packet includes a protocol data unit field, which includes the optional information field.

37. The method according to any one of claims 32 to 36, characterized in that, The optional fields include the CTE field or the SS field.

38. The method according to claim 30, characterized in that, The PHY data packet also includes at least one of a preamble field, an access address field, or a cyclic redundancy check field.

39. The method according to claim 27, characterized in that, The first phase difference is carried in the data field of the first data packet.

40. The method according to any one of claims 31 to 36, 38 and 39, characterized in that, The detection signal is transmitted in a periodic broadcast mode.

41. The method according to claim 32, characterized in that, The PHY data packet also includes a target field, which is used to indicate whether the optional field exists.

42. The method according to claim 41, characterized in that, The PHY data packet includes a protocol data unit field, which in turn includes the target field.

43. The method according to claim 27, characterized in that, The receiving of the detection signal sent by the first communication device includes: Send a first request message to the first communication device; Receive the detection signal sent by the first communication device in response to the first request message.

44. The method according to claim 43, characterized in that, The first request message is carried in the control field of the second data packet, and the control field is used to control the detection signal.

45. The method according to claim 44, characterized in that, The control field includes a minimum duration field, which indicates the duration of the detection signal.

46. ​​The method according to claim 44, characterized in that, The control field includes a free field, which includes free bits.

47. The method according to claim 44, characterized in that, The control field includes a second type field, which is used to indicate the type of the detection signal.

48. The method according to claim 26, characterized in that, The receiving of the first phase difference sent by the first communication device includes: Send a second request message to the first communication device; The first phase difference is received by the first communication device in response to the second request message.

49. The method according to any one of claims 41 to 48, characterized in that, The detection signal is sent in connection mode.

50. A communication system, characterized in that, The communication system includes a first communication device and a second communication device; The first communication device is configured to receive the detection signal when a detection signal has been sent to the second communication device; Based on two signal components in the received detection signal, a first phase difference between the two signal components is determined, and the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval. Send the first phase difference to the second communication device; The second communication device is configured to receive a detection signal and a first phase difference sent by the first communication device, determine a second phase difference between the two signal components based on the two signal components in the detection signal, and determine a first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference.

51. A distance determining device, characterized in that, The device is disposed in the second communication device, and the device includes: A receiving module is used to receive the detection signal sent by the first communication device; A receiving module is configured to receive a first phase difference sent by the first communication device, wherein the first phase difference is determined by the first communication device based on two signal components of the received detection signal; The phase difference determination module is used to determine the second phase difference between the two signal components based on the two signal components in the detection signal, wherein the interval between the frequency corresponding to each signal component and the frequency corresponding to the DC signal component in the detection signal is the target interval. The distance determination module is used to determine a first distance between the second communication device and the first communication device based on the first phase difference and the second phase difference.

52. A communication device, characterized in that, The communication device includes: processor; A transceiver connected to the processor; Memory for storing the executable program code of the processor; The processor is configured to load and execute the executable program code to implement the distance determination method as described in any one of claims 26 to 49.

53. A computer-readable storage medium, characterized in that, The readable storage medium stores executable program code, which is loaded and executed by a processor to implement the distance determination method as described in any one of claims 26 to 49.

54. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; the processor of the communication device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the communication device to perform the distance determination method as described in any one of claims 26 to 49.

55. A chip, characterized in that, The chip includes programmable logic circuitry and / or program instructions, which, when the chip is run on a communication device, are used to implement the distance determination method as described in any one of claims 26 to 49.