A method of phase ranging and related apparatus

By employing multi-tone signal interaction and multi-RFLO parallel processing technology, the problems of high accuracy and high power consumption in phase ranging in low-power narrowband wireless technology are solved, realizing an efficient and low-cost phase ranging method and improving the accuracy and efficiency of distance measurement between devices.

CN122345835APending Publication Date: 2026-07-07HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2022-01-21
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Existing phase ranging methods in low-power narrowband wireless technologies have poor measurement accuracy, and multiple interactions between devices result in high power consumption and long positioning time, affecting device usage time and positioning accuracy.

Method used

The multi-tone signal interaction method is adopted, which reduces the number of signal interactions by negotiating multiple single-frequency signals for phase measurement. It also eliminates the influence of the initial phase of the equipment and improves the ranging accuracy by using multiple RFLO parallel processing and digital down-conversion technology.

Benefits of technology

It improves the efficiency of phase ranging and the measurement accuracy when the device is moving, reduces the power consumption and ranging cost of the device, reduces the positioning time, and improves the accuracy of distance calculation between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122345835A_ABST
    Figure CN122345835A_ABST
Patent Text Reader

Abstract

This application discloses a phase ranging method and related apparatus. The method includes: receiving a first multi-tone signal transmitted by a second transceiver, the first multi-tone signal comprising N first single-frequency signals, the N first single-frequency signals being signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1; performing down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; each first single-frequency signal corresponding to one DC signal; measuring the first phase of each of the N DC signals to obtain a first phase value sequence; the first phase including the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second transceiver to the first transceiver; the first phase value sequence being used to calculate the distance between the first transceiver and the second transceiver. Using this application embodiment can improve the efficiency of phase ranging and the measurement accuracy when the device is moving.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202210074767.3 and the original application date is January 21, 2022. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communication technology, and in particular to a phase ranging method and related apparatus. Background Technology

[0003] With the advent of the Internet of Things (IoT) era, low-power narrowband wireless technologies (such as Bluetooth and Zigbee) are finding increasingly widespread applications in daily life. Compared to other wireless technologies like 5G and WiFi, low-power narrowband wireless technologies offer advantages such as extremely low power consumption, meaning longer device lifespans, and simpler designs, resulting in lower device costs. This makes low-power narrowband wireless technologies widely used not only in terminal devices (such as mobile phones, wearables, and smart home devices) but also in the Industrial Internet of Things (IIoT).

[0004] Currently, low-power narrowband wireless technology, in addition to traditional device connectivity, also has the function of measuring the distance between devices, which can be used for device positioning. Other wireless technologies (such as ultra-wideband UWB and WiFi FTM) generally use the time of flight (ToF) method to achieve ranging. However, for low-power narrowband wireless technology, due to its narrow bandwidth (e.g., 2MHz or less), its ToF measurement accuracy is relatively poor.

[0005] Therefore, how to provide a ranging method to improve the efficiency and accuracy of phase ranging is an urgent problem to be solved. Summary of the Invention

[0006] This application provides a phase ranging method and related apparatus to improve phase ranging efficiency and measurement accuracy when the device is moving.

[0007] In a first aspect, embodiments of this application provide a phase ranging method, characterized in that it is applied to a first transceiver, the method comprising: receiving a first multi-tone signal transmitted by a second transceiver, the first multi-tone signal comprising N first single-frequency signals, the N first single-frequency signals being signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1; performing down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; measuring the first phase of each of the N DC signals to obtain a first phase value sequence; wherein the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second transceiver to the first transceiver, the first phase value sequence including the first phase of each of the N DC signals; the first phase value sequence being used to calculate the distance between the first transceiver and the second transceiver.

[0008] In the phase ranging process of this application embodiment, the devices interact through multi-tone signals, enabling phase measurement of multiple frequency points in a single interaction, thereby improving the efficiency of phase ranging. Specifically, before ranging, the two devices can negotiate multiple single-frequency signals (i.e., corresponding to multiple frequency points) contained in the multi-tone signal. Then, the receiving device performs down-conversion processing on the multi-tone signal based on each of the multiple single-frequency signals to measure the phase offset value generated by the signal corresponding to each frequency point from the transmitting device to the receiving device. The distance between the devices is then calculated based on the phase offset values ​​of the signals corresponding to multiple frequency points. In contrast, in the phase ranging process of the prior art, the devices interact through single-frequency signals (i.e., single-carrier signals), and a single interaction can only achieve phase measurement of one frequency point. To achieve phase measurement of multiple frequency points, multiple interactions are required between the devices. Because multiple interactions are required between devices to complete phase ranging, the power consumption of the devices is high. For mobile devices, high power consumption reduces usage time and also leads to longer positioning times. A single ranging measurement takes a long time, meaning a low refresh rate for both ranging and positioning. If the device moves, the located position will deviate significantly from the actual position. Furthermore, it increases the difficulty of coexistence scheduling within the device. For devices with multiple wireless technologies (such as mobile phones), these technologies typically coexist using TDMA. If one technology occupies too much time, it reduces the transmission and reception opportunities for other technologies. This application's embodiment uses a multi-tone signal interaction method instead of the existing single-frequency signal interaction method, reducing the number of signal interactions required for ranging. For example, if the number of frequencies in the multi-tone signal is N, this application's embodiment can reduce the number of signal interactions to 1 / 3 of the number required by existing technologies. N, thereby reducing device power consumption, enabling the determination of distances between devices in a shorter time, and improving phase ranging efficiency and ranging accuracy when devices are moving.

[0009] In one possible implementation, the method further includes: generating a second multi-tone signal based on the N first single-frequency signals; transmitting the second multi-tone signal to the second transceiver; the second multi-tone signal being used by the second transceiver to obtain a second phase value sequence; the second phase value sequence including a phase offset value generated by each of the N first single-frequency signals from the first transceiver to the second transceiver; and the first phase value sequence being used in conjunction with the second phase value sequence to calculate the distance between the first transceiver and the second transceiver.

[0010] In this embodiment, phase synchronization is difficult to achieve in practical use for two wirelessly connected devices. This results in an error between each measured first phase offset value and the actual phase offset value generated by the signal from the second transceiver to the first transceiver. This error arises because the initial phases of the two devices cannot cancel each other out. Therefore, to eliminate the influence of the initial phases of the two devices, the devices can transmit signals to each other and perform phase measurement (i.e., bidirectional phase measurement). It should be noted that the initial phases of the two devices should remain unchanged during the signal transmission process. Specifically, when the first transceiver receives the multi-tone signal transmitted by the second transceiver as a receiving device and obtains the first phase value sequence based on the multi-tone signal, while ensuring that the initial phases of the first and second transceivers remain unchanged, the first transceiver can switch to a transmitting device and send a multi-tone signal containing the same frequency to the second transceiver to achieve the bidirectional phase measurement, eliminate the influence of the initial phases of the two devices, and thus improve the accuracy of phase ranging.

[0011] In one possible implementation, the step of down-converting the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals includes: generating N first radio frequency local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; wherein each first radio frequency local oscillator signal corresponds to a first frequency; and down-converting the first multi-tone signal based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.

[0012] In this embodiment, when the first transceiver includes N RFLOs, each RFLO can generate a radio frequency local oscillator signal based on the frequency corresponding to a single-frequency signal, and perform down-conversion processing on the multi-tone signal to obtain the DC signal corresponding to the single-frequency signal. Furthermore, the phase of the DC signal can be measured to obtain the phase offset value of the single-frequency signal from the second transceiver to the first transceiver. Since the N RFLOs operate in parallel, N DC signals can be obtained more quickly, thereby improving the efficiency of phase ranging.

[0013] In one possible implementation, the step of down-converting the first multi-tone signal based on each of the N first single-frequency signals to obtain N first DC signals includes: generating a second radio frequency local oscillator signal and N first digital local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; the N second frequencies corresponding to the N first digital local oscillator signals are added to a preset frequency corresponding to the second radio frequency local oscillator signal to equal the N first frequencies; and down-converting the first multi-tone signal based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals.

[0014] In this embodiment of the application, the N first frequencies corresponding to the N single-frequency signals are: The second radio frequency local oscillator signal is an RFLO based on a preset frequency. The generated signal; N first digital local oscillator signals are N digital LOs based on The generated signal. Based on the second radio frequency local oscillator signal and N first digital local oscillator signals, the first multi-tone signal can be processed respectively. The down-conversion process yields N DC signals, which are respectively , , ..., The method provided in this application embodiment requires only one RFLO in the transceiver. The number of RFLOs does not need to match the number of frequency points contained in the multi-tone signal, thereby avoiding the problems of increased RF circuit cost, increased power consumption, and increased area caused by multiple RFLOs, thus reducing the ranging cost.

[0015] In one possible implementation, the step of down-converting the first multi-tone signal based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals includes: down-converting the first multi-tone signal based on the second radio frequency local oscillator signal to obtain a first baseband signal; the first baseband signal is the signal after the first multi-tone signal has undergone spectrum shifting based on the preset frequency; and digitally down-converting the first baseband signal based on each of the N first digital local oscillator signals to obtain the N DC signals.

[0016] In this embodiment, when receiving a multi-tone signal, the device first down-converts the multi-tone signal into a baseband signal via an RFLO. Then, this baseband signal is passed to each digital LO for digital down-conversion, converting the signal corresponding to each digital LO frequency into a DC signal before phase measurement. Using the method provided in this embodiment, only one RFLO is needed in the transceiver. The number of RFLOs does not need to match the number of frequency points in the multi-tone signal, thus avoiding the increased cost, power consumption, and area of ​​the RF circuit caused by multiple RFLOs, thereby reducing ranging costs.

[0017] In one possible implementation, generating the second multi-tone signal based on the N first single-frequency signals includes: adding the N first digital local oscillator signals to obtain a second baseband signal; and performing up-conversion processing on the second baseband signal based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.

[0018] In this embodiment of the application, in order to eliminate the influence of the initial phase between the first transceiver and the second transceiver, it is necessary to ensure that the initial phase of the LO when the first transceiver performs down-conversion processing is the same as the initial phase of the LO when transmitting the multi-tone signal. Therefore, when the first transceiver generates the second multi-tone signal, it can obtain the second multi-tone signal based on the digital local oscillator signal generated by N digital LOs and the radio frequency local oscillator signal generated by RFLO. In this way, the influence of the initial phase is eliminated through bidirectional phase measurement, thereby improving the accuracy of phase ranging.

[0019] In one possible implementation, the method further includes: determining the flight time of the signal between the first transceiver and the second transceiver based on the first phase value sequence and the second phase value sequence; and determining the distance between the first transceiver and the second transceiver based on the flight time.

[0020] In this embodiment, the flight time of the signal is calculated based on the phase offset value generated by the signal from the second transceiver to the first transceiver and the phase offset value generated by the signal from the first transceiver to the second transceiver. This avoids the problem that the calculated value of the signal flight time deviates greatly from the actual value due to the influence of the initial phase of the first transceiver and the second transceiver, thereby improving the accuracy of phase ranging.

[0021] In one possible implementation, the method further includes: performing a handshake process with the second transceiver to negotiate the N first single-frequency signals for the phase ranging process.

[0022] In the embodiments of this application, before the first transceiver and the second transceiver perform distance measurement, the two devices can negotiate in advance to determine the specific frequency of the multi-tone signal, that is, first negotiate to determine N single-frequency signals, and then obtain the multi-tone signal in the phase ranging process based on these N single-frequency signals, thereby enabling the distance between the devices to be calculated more quickly, improving the efficiency of phase ranging and the measurement accuracy when the devices move.

[0023] In one possible implementation, the method further includes: receiving a carrier signal transmitted by the second transceiver, the carrier signal being a single-frequency signal; determining a frequency offset between the first transceiver and the second transceiver based on the carrier signal; the frequency offset being used to calibrate the frequency deviation between the first transceiver and the second transceiver.

[0024] In this embodiment, the frequency deviation (CFO) between the first transceiver and the second transceiver affects the phase measurement accuracy. Therefore, before the two devices perform the above-mentioned multi-tone signal interaction, the second transceiver can send a carrier signal to the first transceiver at a certain frequency. The first transceiver estimates and compensates for the CFO, so that the CFO between the two devices is close to zero, thereby improving the measurement accuracy.

[0025] Secondly, embodiments of this application provide a phase ranging method, characterized in that it is applied to a second transceiver, the method comprising: generating a first multi-tone signal based on N first single-frequency signals, wherein the N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver, and N is an integer greater than 1; transmitting the first multi-tone signal to the first transceiver; the first multi-tone signal being used by the first transceiver to obtain a first phase value sequence; the first phase value sequence including a phase offset value generated by each of the N first single-frequency signals from the second transceiver to the first transceiver; and the first phase value sequence being used to calculate the distance between the first transceiver and the second transceiver.

[0026] In the phase ranging process of this application embodiment, devices interact through multi-tone signals, enabling phase measurement of multiple frequency points in a single interaction. Specifically, before ranging, the two devices can negotiate multiple single-frequency signals (i.e., corresponding to multiple frequency points) contained in the multi-tone signal. The transmitting device can send the multi-tone signal to the receiving device, and then the receiving device can perform down-conversion processing on the multi-tone signal based on each of the multiple single-frequency signals, and measure the phase offset value generated by the signal corresponding to each frequency point from the transmitting device to the receiving device, thereby calculating the distance between the devices based on the phase offset values ​​of the signals corresponding to multiple frequency points. In contrast, in the phase ranging process of the prior art, devices interact through single-frequency signals (i.e., single-carrier signals), and a single interaction can only achieve phase measurement of one frequency point. To achieve phase measurement of multiple frequency points, multiple interactions are required between the devices. In this application embodiment, the multi-tone signal interaction method is used instead of the existing single-frequency signal interaction method, which can reduce the number of signal interactions required for ranging. For example, if the number of frequencies in the multi-tone signal is N, then this application embodiment can reduce the number of signal interactions to 1 / 3 of the number required by the prior art. N, thereby reducing device power consumption, enabling the determination of distances between devices in a shorter time, and improving phase ranging efficiency and ranging accuracy when devices are moving.

[0027] In one possible implementation, generating the first multi-tone signal based on N first single-frequency signals includes: generating a first radio frequency local oscillator signal and N first digital local oscillator signals based on N first frequencies corresponding to the N first single-frequency signals; adding the N second frequencies corresponding to the N first digital local oscillator signals to a preset frequency corresponding to the first radio frequency local oscillator signal to equal the N first frequencies; adding the N first digital local oscillator signals to obtain a first baseband signal; and performing up-conversion processing on the first baseband signal based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.

[0028] In this embodiment, when generating a multi-tone signal, the signals generated by multiple digital LOs can be added together as a baseband signal. The baseband signal is then up-converted into a multi-tone signal via an RFLO, and finally transmitted through an antenna. Using the method provided in this embodiment, only one RFLO is needed in the transceiver. The number of RFLOs does not need to match the number of frequency points contained in the multi-tone signal, thus avoiding the increased cost, power consumption, and area of ​​the RF circuit caused by multiple RFLOs, thereby reducing ranging costs.

[0029] In one possible implementation, the method further includes: receiving a second multi-tone signal transmitted by the first transceiver, the second multi-tone signal including the N first single-frequency signals; performing down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; measuring the second phase of each of the N DC signals to obtain a second phase value sequence; wherein the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the first transceiver to the second transceiver, and the second phase value sequence includes the second phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver in combination with the second phase value sequence.

[0030] In this embodiment, phase synchronization is difficult to achieve in practical use for two wirelessly connected devices. This results in an error between each phase offset value measured by the first transceiver and the actual phase offset value generated by the signal from the second transceiver to the first transceiver. This error arises because the initial phases of the two devices cannot cancel each other out. Therefore, to eliminate the influence of the initial phases of the two devices, the devices can transmit signals to each other and perform phase measurement (i.e., bidirectional phase measurement). It should be noted that the initial phases of the two devices should remain unchanged during the signal transmission process. Specifically, when the first transceiver, acting as a receiving device, receives the multi-tone signal transmitted by the second transceiver and obtains the first phase value sequence based on the multi-tone signal, while ensuring that the initial phases of the first and second transceivers remain unchanged, the first transceiver can switch to a transmitting device and send a multi-tone signal containing the same frequency to the second transceiver. The second transceiver receives the multi-tone signal and performs phase measurement to achieve the aforementioned bidirectional phase measurement, eliminating the influence of the initial phases of the two devices and thus improving the accuracy of phase ranging.

[0031] In one possible implementation, the wider the bandwidth of the interference band of the channel between the first transceiver and the second transceiver, the fewer the number N of the first single-frequency signals included in the first multi-tone signal.

[0032] In this embodiment of the application, when performing multi-tone signal interaction, the device can adjust the number of frequencies in the multi-tone signal according to the interference of adjacent channels. For example, when there is interference in adjacent channels, a smaller [size / weight] can be used. To avoid interference; conversely, a larger [size / weight] can be used. This is to facilitate faster distance measurement.

[0033] In one possible implementation, the method further includes: sending L first multi-tone signals to the first transceiver to obtain L first phase value sequences; L is an integer greater than 1; each of the L first multi-tone signals corresponds to N different first frequencies; receiving L second multi-tone signals sent by the first transceiver to obtain L second phase value sequences; the L first phase offset value sequences are used to calculate the distance between the first transceiver and the second transceiver in combination with the L second phase offset value sequences.

[0034] In the embodiments of this application, when the first transceiver interacts with the second transceiver, the first transceiver can send multiple multi-tone signals to the second transceiver at one time, thereby enabling phase ranging based on more frequency points and improving measurement accuracy.

[0035] Thirdly, embodiments of this application provide a phase ranging system, characterized in that it includes: a first transceiver, configured to: transmit a first multi-tone signal to M second transceivers respectively, the first multi-tone signal including N single-frequency signals, the N first single-frequency signals being signals negotiated between the first transceiver and the M second transceivers, where N and M are integers greater than 1; each of the M second transceivers is configured to: perform down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; measure the first phase of the N DC signals respectively to obtain a first phase value sequence; wherein the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second transceiver to the first transceiver, and the first phase value sequence includes the first phase of each of the N DC signals; and a computing device, configured to: calculate the distance between the first transceiver and each of the second transceivers based on the M first phase value sequences.

[0036] In this embodiment, in a scenario where multiple devices measure distances from each other (i.e., many-to-many ranging), the broadcast property of wireless signals can be utilized to allow devices to take turns sending multi-tone signals. While one device is sending a signal, other devices simultaneously receive and measure the phase of each frequency point in the multi-tone signal. Furthermore, the distance between the devices can be calculated based on the phase of each frequency point. Compared to devices taking turns performing one-to-one ranging, the many-to-many ranging method can reduce the number of signal transmissions, thereby improving ranging efficiency and measurement accuracy when devices are moving.

[0037] Fourthly, embodiments of this application provide a first transceiver, characterized in that it includes: a radio frequency transceiver circuit, configured to receive a first multi-tone signal transmitted by a second transceiver, the first multi-tone signal including N first single-frequency signals, the N first single-frequency signals being signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1; a baseband processor, configured to perform down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; the baseband processor is further configured to measure the first phase of each of the N DC signals to obtain a first phase value sequence; wherein the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second transceiver to the first transceiver, and the first phase value sequence includes the first phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver.

[0038] In one possible implementation, the baseband processor is further configured to: generate a second multi-tone signal based on the N first single-frequency signals; the baseband processor is further configured to transmit the second multi-tone signal to the second transceiver; the second multi-tone signal is used by the second transceiver to obtain a second phase value sequence; the second phase value sequence includes a phase offset value generated by each of the N first single-frequency signals from the first transceiver to the second transceiver; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver in combination with the second phase value sequence.

[0039] In one possible implementation, the baseband processor is specifically configured to: generate N first radio frequency local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; wherein each first radio frequency local oscillator signal corresponds to a first frequency; and perform down-conversion processing on the first multi-tone signal based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.

[0040] In one possible implementation, the baseband processor is specifically configured to: generate a second radio frequency local oscillator signal and N first digital local oscillator signals based on N first frequencies corresponding to the N first single-frequency signals, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to a preset frequency corresponding to the second radio frequency local oscillator signal to equal the N first frequencies; and perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals.

[0041] In one possible implementation, the baseband processor is specifically configured to: perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal to obtain a first baseband signal; the first baseband signal is the signal after the first multi-tone signal has undergone spectrum shifting based on the preset frequency; and perform digital down-conversion processing on the first baseband signal based on each of the N first digital local oscillator signals to obtain the N DC signals.

[0042] In one possible implementation, the baseband processor is specifically configured to: add the N first digital local oscillator signals to obtain a second baseband signal; and perform up-conversion processing on the second baseband signal based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.

[0043] In one possible implementation, the apparatus further includes: a central processing unit, configured to determine the flight time of the signal between the first transceiver and the second transceiver based on the first phase value sequence and the second phase value sequence; and to determine the distance between the first transceiver and the second transceiver based on the flight time.

[0044] In one possible implementation, the radio frequency transceiver circuit is further configured to receive a carrier signal transmitted by the second transceiver, the carrier signal being a single-frequency signal; the baseband processor is further configured to determine a frequency offset between the first transceiver and the second transceiver based on the carrier signal; the frequency offset is used to calibrate the frequency deviation between the first transceiver and the second transceiver.

[0045] Fifthly, embodiments of this application provide a second transceiver, the device comprising: a baseband processor, configured to generate a first multi-tone signal based on N first single-frequency signals, wherein the N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver, and N is an integer greater than 1; a radio frequency transceiver circuit, configured to transmit the first multi-tone signal to the first transceiver; the first multi-tone signal being used by the first transceiver to obtain a first phase value sequence; the first phase value sequence including a phase offset value generated by each of the N first single-frequency signals from the second transceiver to the first transceiver; and the first phase value sequence being used to calculate the distance between the first transceiver and the second transceiver.

[0046] In one possible implementation, the baseband processor is specifically configured to: generate a first radio frequency local oscillator signal and N first digital local oscillator signals based on N first frequencies corresponding to the N first single-frequency signals, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to a preset frequency corresponding to the first radio frequency local oscillator signal to equal the N first frequencies; add the N first digital local oscillator signals to obtain a first baseband signal; and perform up-conversion processing on the first baseband signal based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.

[0047] In one possible implementation, the radio frequency transceiver circuit is further configured to receive a second multi-tone signal transmitted by the first transceiver, the second multi-tone signal including the N first single-frequency signals; the baseband processor is further configured to perform down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; the baseband processor is further configured to measure the second phase of the N DC signals respectively to obtain a second phase value sequence; wherein the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the first transceiver to the second transceiver, and the second phase value sequence includes the second phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver in combination with the second phase value sequence.

[0048] In one possible implementation, the radio frequency transceiver circuit is further configured to: send L first multi-tone signals to the first transceiver to obtain L first phase value sequences; each of the L first multi-tone signals corresponds to N different first frequencies; L is an integer greater than 1; receive L second multi-tone signals sent by the first transceiver to obtain L second phase value sequences; the L first phase offset value sequences are used to calculate the distance between the first transceiver and the second transceiver in combination with the L second phase offset value sequences.

[0049] Sixthly, embodiments of this application provide a first phase ranging device, characterized in that the device comprises: a first receiving unit, configured to receive a first multi-tone signal transmitted by a second phase ranging device, the first multi-tone signal comprising N first single-frequency signals, the N first single-frequency signals being signals negotiated between the first phase ranging device and the second phase ranging device, where N is an integer greater than 1; a first processing unit, configured to perform down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; a first measuring unit, configured to measure the first phase of each of the N DC signals to obtain a first phase value sequence; wherein the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second phase ranging device to the first phase ranging device, and the first phase value sequence includes the first phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first phase ranging device and the second phase ranging device.

[0050] In one possible implementation, the apparatus further includes: a second processing unit for generating a second multi-tone signal based on the N first single-frequency signals; a first transmitting unit for transmitting the second multi-tone signal to the second phase ranging device; the second multi-tone signal is used by the second phase ranging device to obtain a second phase value sequence; the second phase value sequence includes a phase offset value generated by each of the N first single-frequency signals from the first phase ranging device to the second phase ranging device; the first phase value sequence is used to calculate the distance between the first phase ranging device and the second phase ranging device in combination with the second phase value sequence.

[0051] In one possible implementation, the first processing unit is specifically configured to: generate N first radio frequency local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; wherein each first radio frequency local oscillator signal corresponds to a first frequency; and perform down-conversion processing on the first multi-tone signal based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.

[0052] In one possible implementation, the first processing unit is specifically configured to: generate a second radio frequency local oscillator signal and N first digital local oscillator signals based on the N first single-frequency signals corresponding to the N first first frequencies, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequencies corresponding to the second radio frequency local oscillator signals to equal the N first frequencies; and perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals.

[0053] In one possible implementation, the first processing unit is specifically configured to: perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal to obtain a first baseband signal; the first baseband signal is the signal after the first multi-tone signal has undergone spectrum shifting based on the preset frequency; and perform digital down-conversion processing on the first baseband signal based on each of the N first digital local oscillator signals to obtain the N DC signals.

[0054] In one possible implementation, the second processing unit is specifically used to: add the N first digital local oscillator signals to obtain a second baseband signal; and perform up-conversion processing on the second baseband signal based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.

[0055] In one possible implementation, the apparatus further includes: a third processing unit, configured to determine the flight time of the signal between the first phase ranging device and the second phase ranging device based on the first phase value sequence and the second phase value sequence; the third processing unit is further configured to determine the distance between the first phase ranging device and the second phase ranging device based on the flight time.

[0056] In one possible implementation, the apparatus further includes: a second receiving unit for receiving a carrier signal transmitted by the second phase ranging device, the carrier signal being a single-frequency signal; and a fourth processing unit for determining a frequency offset between the first phase ranging device and the second phase ranging device based on the carrier signal; the frequency offset being used to calibrate the frequency deviation between the first phase ranging device and the second phase ranging device.

[0057] In a seventh aspect, embodiments of this application provide a second phase ranging device, characterized in that the device comprises: a first processing unit, configured to generate a first multi-tone signal based on N first single-frequency signals, wherein the N first single-frequency signals are signals negotiated between the first phase ranging device and the second phase ranging device, and N is an integer greater than 1; a first transmitting unit, configured to transmit the first multi-tone signal to the first phase ranging device; the first multi-tone signal is used by the first phase ranging device to obtain a first phase value sequence; the first phase value sequence includes a phase offset value generated by each of the N first single-frequency signals from the second phase ranging device to the first phase ranging device; the first phase value sequence is used to calculate the distance between the first phase ranging device and the second phase ranging device.

[0058] In one possible implementation, the first processing unit is specifically configured to: generate a first radio frequency local oscillator signal and N first digital local oscillator signals based on the N first single-frequency signals corresponding to the N first first frequencies, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequencies corresponding to the first radio frequency local oscillator signals to equal the N first frequencies; add the N first digital local oscillator signals to obtain a first baseband signal; and perform up-conversion processing on the first baseband signal based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.

[0059] In one possible implementation, the apparatus further includes: a first receiving unit, configured to receive a second multi-tone signal transmitted by the first phase ranging device, the second multi-tone signal including the N first single-frequency signals; a second processing unit, configured to perform down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; a first measuring unit, configured to measure the second phase of the N DC signals respectively to obtain a second phase value sequence; wherein the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the first phase ranging device to the second phase ranging device, and the second phase value sequence includes the second phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first phase ranging device and the second phase ranging device by combining the second phase value sequence.

[0060] In one possible implementation, the apparatus further includes: a second transmitting unit, configured to transmit L first multi-tone signals to the first phase ranging device to obtain L first phase value sequences; L is an integer greater than 1; each of the L first multi-tone signals corresponds to N different first frequencies; a second receiving unit, configured to receive L second multi-tone signals transmitted by the first phase ranging device to obtain L second phase value sequences; the L first phase offset value sequences are used to calculate the distance between the first phase ranging device and the second phase ranging device by combining the L second phase offset value sequences.

[0061] Eighthly, embodiments of this application provide an electronic device, characterized in that it includes a processor, a memory, and a communication interface, wherein the memory is used to store information transmission program code, and the processor is used to call the phase ranging method program code to execute the method described in any one of the first aspects.

[0062] In a ninth aspect, embodiments of this application provide an electronic device, characterized in that it includes a processor, a memory, and a communication interface, wherein the memory is used to store information transmission program code, and the processor is used to call the phase ranging method program code to execute the method described in any one of the second aspects above.

[0063] In a tenth aspect, this application provides a chip system, characterized in that the chip system includes at least one processor, a memory, and an interface circuit, the memory, the interface circuit, and the at least one processor being interconnected via circuits, and the at least one memory storing instructions; when the instructions are executed by the processor, the method described in any one of the first aspects above is implemented.

[0064] Eleventhly, this application provides a chip system, characterized in that the chip system includes at least one processor, a memory, and an interface circuit, the memory, the interface circuit, and the at least one processor being interconnected via circuits, and the at least one memory storing instructions; when the instructions are executed by the processor, the method described in any one of the second aspects above is implemented.

[0065] In a twelfth aspect, embodiments of this application provide a computer storage medium, characterized in that the computer storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of the first aspects above.

[0066] In a thirteenth aspect, embodiments of this application provide a computer storage medium, characterized in that the computer storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of the second aspects above.

[0067] In a fourteenth aspect, this application provides a computer program, characterized in that the computer program includes instructions that, when executed by a computer, cause the computer to perform the method described in any one of the first aspects above.

[0068] In a fifteenth aspect, this application provides a computer program, characterized in that the computer program includes instructions that, when executed by a computer, cause the computer to perform the method described in any one of the second aspects above. Attached Figure Description

[0069] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.

[0070] Figure 1A This is a system architecture diagram of a ranging system provided in an embodiment of this application.

[0071] Figure 1B This is a schematic diagram of the structure of a receiving device provided in an embodiment of this application.

[0072] Figure 2 This is a schematic diagram of signal phase and distance provided in an embodiment of this application.

[0073] Figure 3 This is a schematic flowchart of a phase ranging method in an embodiment of this application.

[0074] Figure 4 This is a frequency diagram of a multi-tone signal provided in an embodiment of this application.

[0075] Figure 5 This is a schematic diagram of a hybrid multi-tone signal generation method provided in an embodiment of this application.

[0076] Figure 6 This is a schematic diagram of the spectrum of a multi-tone signal and a DC signal provided in an embodiment of this application.

[0077] Figure 7 This is a schematic diagram of the spectrum of another multi-tone signal and DC signal provided in an embodiment of this application.

[0078] Figure 8 This is a schematic diagram of a digital downconversion provided in an embodiment of this application.

[0079] Figure 9 This is a schematic diagram of a local oscillator provided for an embodiment of this application.

[0080] Figure 10This is a schematic diagram of a downconversion process provided in an embodiment of this application.

[0081] Figure 11 This is a schematic diagram of device interaction provided in an embodiment of this application.

[0082] Figure 12 This is a diagram showing the relationship between signal phase and frequency, provided as an embodiment of this application.

[0083] Figure 13 This is a flowchart illustrating another phase ranging method in the embodiments of this application.

[0084] Figure 14 This is a comparative diagram of the relationship between signal phase and frequency provided in an embodiment of this application.

[0085] Figure 15 This is a schematic diagram of a multi-tone signal interaction method provided in an embodiment of this application.

[0086] Figure 16 This is a schematic diagram of a phase ranging system in an embodiment of this application.

[0087] Figure 17 This is a schematic diagram of a multi-phase ranging method provided in an embodiment of this application.

[0088] Figure 18 This is a schematic diagram of a first phase ranging device provided in an embodiment of this application.

[0089] Figure 19 This is a schematic diagram of a second phase ranging device provided in an embodiment of this application.

[0090] Figure 20 This is a schematic diagram of a first transceiver device provided in an embodiment of this application.

[0091] Figure 21 This is a schematic diagram of a second transceiver device provided in an embodiment of this application. Detailed Implementation

[0092] The embodiments of this application will now be described with reference to the accompanying drawings.

[0093] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0094] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0095] As used in this specification, the terms "component," "module," "system," etc., are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process and / or an execution thread, and components may be located on a single computer and / or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, and / or a network, such as the Internet interacting with other systems via signals).

[0096] First, a brief introduction to some terms used in the embodiments of this application will be given.

[0097] (1) Upconversion: The process of converting an input signal with a certain frequency into an output signal with a higher frequency (usually without changing the information content and modulation method of the signal). In a superheterodyne receiver, if the intermediate frequency (IF) signal obtained after mixing is higher than the original signal, then this mixing method is called upconversion. Because the IF frequency obtained by upconversion is higher, higher requirements are placed on the IF amplification, filtering, and demodulation in the receiver, making the overall cost of the receiver higher. Upconversion can achieve extremely high anti-image interference capability and can obtain a very flat frequency response across the entire frequency band.

[0098] (2) Down Conversion: In a receiver, if the intermediate frequency signal obtained after mixing is lower than the original signal, then this mixing method is called down conversion. The purpose of down conversion is to reduce the carrier frequency of the signal or to directly remove the carrier frequency to obtain the baseband signal. Because down conversion circuits are simple and low in cost, it is widely used in civilian equipment and military equipment with low performance requirements.

[0099] (3) The local oscillator (LO) is actually a self-excited sine wave oscillator, which is used as a mixing signal during up-conversion or down-conversion. For example, the local oscillator can generate a high-frequency constant-amplitude sine wave signal that is one intermediate frequency higher than the received signal, and inject this oscillation signal into the mixer to mix with the high-frequency signal to obtain the intermediate frequency signal.

[0100] (4) A phase-locked loop (PLL) is a negative feedback control system that uses a voltage generated by phase synchronization to tune a voltage-controlled oscillator (such as a local oscillator) to generate a target frequency. According to automatic control principles, this is a typical feedback control circuit. It uses an externally input reference signal to control the frequency and phase of the oscillation signal inside the loop, achieving automatic detection of the output signal frequency against the input signal frequency. It is generally used in closed-loop detection circuits. It is a method for stabilizing the frequency in radio transmission, mainly using a VCO (voltage-controlled oscillator) and a PLL IC (phase-locked loop integrated circuit). The VCO provides a signal, part of which is used as the output, and the other part is compared in phase with the local oscillator signal generated by the PLL IC through frequency division. To maintain a constant frequency, the phase difference must not change. If there is a change in the phase difference, the voltage at the output terminal of the PLL IC changes to control the VCO until the phase difference is restored, achieving phase locking. A phase-locked loop is a closed-loop electronic circuit that ensures the frequency and phase of the controlled oscillator maintain a definite relationship with the input signal.

[0101] (5) Time Division Multiple Access (TDMA) uses different time periods of the same physical connection to transmit different signals, achieving the purpose of multiplexing. TDMA uses time as the parameter for signal division, so the signals must not overlap on the time axis. TDMA divides the time provided for the transmission of information in the entire channel into several time slices (or time slots) and allocates these time slots to each signal source.

[0102] (6) Time of Flight (ToF): In a broad sense, time-of-flight technology can be understood as a technology that measures the time it takes for an object, particle, or wave to travel a certain distance in a fixed medium (where the medium, distance, and time are all known or measurable), thereby further understanding certain properties of ions or media. The ToF ranging method is a two-way ranging technology that mainly uses the time it takes for a signal to travel back and forth between two asynchronous transceivers to measure the distance between nodes.

[0103] To better understand the technical solution of this application, the ranging system to which the ranging method provided in the embodiments of this application is applicable is briefly described below.

[0104] Please see Figure 1A , Figure 1A This is a system architecture diagram of a ranging system provided in an embodiment of this application. The ranging system includes at least two devices, which can be connected wirelessly. Figure 1A Taking two devices, device A and device B, as an example, when either device A or device B acts as a receiving device, the other device acts as a transmitting device. The transmitting device sends a wireless signal (in this embodiment, the signal is a multi-tone signal, which includes multiple frequencies) to the receiving device; the receiving device receives the signal sent by the transmitting device and measures the phase of the received signal, thereby calculating the signal transmission distance.

[0105] In specific implementations, the aforementioned receiving device can be, for example, a mobile phone, a smart wearable device, a smart home device, a tablet computer, a PDA, or other general communication devices. Alternatively, it can be a dedicated ranging device composed of a processor such as a DSP (Digital Signal Processing) chip or an OFDM (Orthogonal Frequency Division Multiplexing) baseband chip, a memory, a communication interface, and a communication bus. The embodiments of this application do not limit the specific structural type of the receiving device.

[0106] Further, please refer to Figure 1B , Figure 1B This is a schematic diagram of the structure of a receiving device provided in an embodiment of this application.

[0107] As shown in the figure, the receiving device includes a processor 101, a memory 102, a communication interface 103, and a communication bus 104. The communication bus 104 may include a path for transmitting information between the aforementioned components.

[0108] Processor 101 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of this technical solution. For example, processor 101 may be a DSP chip, an OFDM baseband chip, a field-programmable gate array (FPGA), a microprocessor, etc.

[0109] The memory 102 pre-stores application code and further stores a kernel module, which includes an operating system (such as WINDOWS™, ANDROID™, IOS™, etc.). The memory 102 may be a read-only memory (ROM), or other types of static storage devices that can store static information and instructions, or random access memory (RAM), or other types of dynamic storage devices that can store information and instructions. It may also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), a disk storage medium, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.

[0110] The communication interface 103 can be used for signal reception and transmission. In particular, it receives the multi-tone signal from the transmitting device and then processes it with the processor 101. The communication interface 103 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc.

[0111] The processor 101 of the receiving device reads the application code in the memory 102 to execute the specific steps of a phase ranging method provided in this application embodiment.

[0112] Understandable, Figure 1A The ranging system described above is merely an exemplary implementation in the embodiments of this application. The ranging system architecture in the embodiments of this application includes, but is not limited to, the above system architecture.

[0113] To better understand the embodiments of this application, the phase ranging technology is described below.

[0114] Next, please see Figure 2 , Figure 2 This application provides a schematic diagram of signal phase and distance, taking the measurement of the distance between two devices as an example. Figure 2 This application provides a detailed explanation of the fundamental relationship between signal phase and distance in the phase ranging technology involved in its embodiments. Assume that the ranging system includes two devices, device A and device B. Device A sends a carrier signal to device B (taking a single-frequency signal as an example, with a frequency of...). Device B measures the phase of the received carrier signal. For example... Figure 2 As shown in (a), It is the phase of the carrier signal emitted by device A at a certain moment, which can also be understood as the LO (Local Oscillator) phase of device A; It refers to the LO phase of device B at the same point in time. For example... Figure 2 As shown in (b), if the distance between device A and device B is half the signal wavelength (i.e., If device B is at position B, then the phase of the signal at position B is half a cycle behind the phase at position A (i.e., lagging behind). Its value is equal to (Phase shift due to signal latency); similarly, if the distance between device A and device B is 3 / 4 of the signal wavelength, i.e., device B is at position B', then the phase of the signal at position B' is equal to... .

[0115] When device B receives a signal from device A at position B, device B's mixer down-converts the received signal based on the LO signal. The down-converted signal is a direct current (DC) signal (because the received signal and the LO signal of the receiving device have the same frequency). The phase of the DC signal is equal to... Similarly, when device B receives the signal from A at position B', the phase of the DC signal obtained by device B after frequency down-conversion is... .

[0116] Furthermore, assume that the LO phase of transmitting device A and the LO phase of receiving device B are synchronized (i.e., Then the phase values ​​measured by the receiving device at positions B and B' are respectively and Furthermore, the distances between the transmitting and receiving devices can be calculated based on the measured phase values. and That is, distance ( The wavelength of the carrier signal. (where D is the phase of the DC signal measured by device B, and D is the distance between the devices).

[0117] However, in practical applications of the aforementioned phase ranging method, the maximum working distance of this phase ranging method is only wavelength. (This is due to the effective phase range being [0, 2π)). For example, the wavelength of a traditional 2.4 GHz ISM band is only about 12 cm, so this method is only suitable for short-range ranging scenarios, limiting its practical application. To solve this problem, phase measurements can be performed at two (or more) relatively close frequency points, and the distance can be calculated based on the phase difference between the frequency points.

[0118] Specifically, assuming the two frequency points are respectively and ( < The measured phase values ​​are respectively and The relationship between phase and distance D is shown in Formula 1 and Formula 2 below (where c is the speed of light and mod refers to modulo): (Formula 1) (Formula 2) Based on Formula 1 and Formula 2, we can obtain and The phase difference between them is: (Formula 3) Formula 3 above It can be viewed as a virtual wavelength, which determines the maximum usable distance for ranging. When In this case, no modulo operation is required in Formula 3 above. Then the distance can be obtained from formula four: (Formula 4) If the two frequency points are 1MHz apart (i.e. )hour, =300m, therefore, multi-frequency phase ranging can greatly increase the usable distance of ranging.

[0119] The specific method architecture on which the embodiments of this application are based will be described in detail below.

[0120] Please see Figure 3 , Figure 3 This is a schematic flowchart of a phase ranging method according to an embodiment of this application. The following will be described in conjunction with the attached diagram. Figure 3And based on the above Figure 1A The ranging system architecture in the middle starts from the first transceiver (which can be...) Figure 1A Device A) and the second transceiver (can be) Figure 1A The interaction side of device B in this application describes the phase ranging method in the embodiments of this application. It should be noted that, in order to describe the phase ranging method in the embodiments of this application in more detail, this application describes the corresponding execution subject as a first transceiver or a second transceiver in each process step, but this does not mean that the embodiments of this application can only perform the corresponding method process through the described execution subject.

[0121] Step S201: The second transceiver generates a first multi-tone signal based on N first single-frequency signals.

[0122] Specifically, the N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1. A single-frequency signal can be understood as a signal whose frequency does not change; one single-frequency signal corresponds to one frequency. A multi-tone signal can be understood as a composite signal with multiple frequencies. For example, the signal when dialing a telephone is composed of two sinusoidal signals of different frequencies, also known as a two-tone signal. The N first single-frequency signals correspond to N frequencies; the first multi-tone signal can be a signal composed of the N frequencies corresponding to the N first single-frequency signals.

[0123] In one possible implementation, the method further includes: a handshake process between the first transceiver and the second transceiver to negotiate the N first single-frequency signals in the phase ranging process. Specifically, before ranging between the first transceiver and the second transceiver, the two devices can negotiate and determine the specific frequencies of the multi-tone signals in advance, that is, first negotiate and determine N single-frequency signals, and then obtain the multi-tone signals in the phase ranging process based on these N single-frequency signals. This application embodiment does not limit the number of single-frequency signals N (i.e., the number of frequencies N included in the multi-tone signals) or the frequency range of the signals. For example, as... Figure 4 As shown, Figure 4 This diagram illustrates the frequency distribution of a multi-tone signal according to an embodiment of this application. The multi-tone signal may include four frequencies: 2401 MHz, 2402 MHz, 2403 MHz, and 2404 MHz. Furthermore, the first and second transceivers can interact via the multi-tone signal to measure the phase values ​​at these frequencies, thereby determining the distance between the two devices based on a multi-frequency phase ranging method. Additionally, for the next multi-tone signal interaction between the first and second transceivers, a multi-tone signal containing four additional frequencies can be used, such as 2405 MHz, 2406 MHz, 2407 MHz, and 2408 MHz.

[0124] It should be noted that the first transceiver and the second transceiver can be wirelessly connected via Bluetooth, WiFi (Wireless Fidelity), ZigBee, or other technologies, and no specific limitations are specified here.

[0125] In one possible implementation, the second transceiver generates a first multi-tone signal based on N first single-frequency signals, including: the second transceiver generates N RFLO (Radio Frequency Local Oscillator) signals based on the N first frequencies corresponding to the N first single-frequency signals, wherein each RFLO corresponds to a first frequency; and the first multi-tone signal is obtained based on the N RFLOs. Specifically, for the interaction of multi-tone signals, the most direct implementation method is to use multiple RFLOs. That is, if the second transceiver has N RFLOs, each RFLO generates an RFLO signal corresponding to one frequency of the N single-frequency signals, and thus the N RFLO signals generated by the N RFLOs can obtain a multi-tone signal composed of N frequencies. Optionally, phase ranging can be performed by transmitting the multi-tone signal through the N RFLOs.

[0126] In one possible implementation, the second transceiver generates a first multi-tone signal based on N first single-frequency signals, including: the second transceiver generates a first radio frequency local oscillator signal and N first digital local oscillator signals based on N first frequencies corresponding to the N first single-frequency signals; the N second frequencies corresponding to the N first digital local oscillator signals are added to a preset frequency corresponding to the first radio frequency local oscillator signal to equal the N first frequencies; the N first digital local oscillator signals are added together to obtain a first baseband signal; and the first baseband signal is up-converted based on the first radio frequency local oscillator signal to obtain the first multi-tone signal. Specifically, the disadvantage of using multiple RFLOs is that it increases the cost, power consumption, and area of ​​the RF circuit. Therefore, this application proposes a hybrid implementation, that is, using one RFLO and multiple digital LOs to achieve the transmission and reception of multi-tone signals and phase measurement. For example, as... Figure 5 As shown, Figure 5 This is a schematic diagram of a hybrid multi-tone signal generation method provided in an embodiment of this application. It is assumed that the multi-tone signal negotiated by the first and second transceivers contains four frequencies: 2401MHz, 2402MHz, 2403MHz, and 2404MHz (i.e., the frequencies of four single-frequency signals). The second transceiver in the diagram... The frequency of RFLO (i.e., the preset frequency of the radio frequency local oscillator signal). arrive These are the frequencies of the four digital LOs (i.e., the frequencies of the N digital local oscillator signals). The digital LOs transmit signals through... (i.e., digital local oscillator signal, which is an IQ signal) to achieve this, where, For amplitude, For the frequency of the digital LO. In this example, it should be ensured that arrive respectively with The sum equals the frequencies of the four pre-negotiated single-frequency signals, ensuring that the first multi-tone signal transmitted by the second transceiver includes the four frequency points of 2401MHz, 2402MHz, 2403MHz, and 2404MHz. Optionally, [the following text is missing: "will..."] If set to 2402.5MHz, then arrive These are -1.5 MHz, -0.5 MHz, 0.5 MHz, and 1.5 MHz respectively; other combinations can also be chosen, such as... If we set it to 2402M, then arrive The frequencies are -1 MHz, 0 MHz, 1 MHz, and 2 MHz, respectively, without limitation. When the second transceiver transmits the first multi-tone signal, the signals of multiple digital LOs are added together to form a baseband signal. This baseband signal is then sent to the RFLO via a DAC (Digital to Analog Converter). The RFLO up-converts the baseband signal based on the RF local oscillator signal to obtain the first multi-tone signal, which is then transmitted through the antenna.

[0127] In one possible implementation, the wider the bandwidth of the interference-affected frequency band of the channel between the first transceiver and the second transceiver, the fewer the number N of the first single-frequency signals included in the first multi-tone signal. Specifically, during multi-tone signal interaction, the device can adjust the number of frequencies in the multi-tone signal according to the interference situation of adjacent channels. For example, when there is interference in adjacent channels, a smaller [size / weight] can be used. To avoid interference; conversely, a larger [size / weight] can be used. This is to facilitate faster distance measurement.

[0128] Step S202: The second transceiver sends the first multi-tone signal to the first transceiver.

[0129] Specifically, if the second transceiver generates a multi-tone signal based on the aforementioned multiple RFLOs, it can add the multiple RFLO local oscillator signals together and send them to the first transceiver, so that the first transceiver can simultaneously receive signals from multiple frequency points (i.e., multi-tone signals). For example, the multi-tone signal includes two frequency points, namely... and Then RFLO1 in the second transceiver generates RFLO2 generation can and The signals are added together to obtain a multi-tone signal, which is then transmitted to the first transceiver so that the first transceiver can simultaneously receive signals from multiple frequency points, i.e., the first multi-tone signal (including...). and If the second transceiver generates a multi-tone signal based on the above hybrid method, it can transmit a multi-frequency signal to the first transceiver through an RFLO. For example, the multi-tone signal includes two frequency points, namely... and Then, the two digital LO1 and digital LO2 in the second transceiver can generate two digital local oscillator signals, which are then added together to obtain the baseband signal (e.g., Then, based on the RFLO (Radio Frequency Loop) local oscillator signal, the baseband signal is up-converted to obtain a multi-tone signal. , , The multi-tone signal is sent to the first transceiver, enabling the first transceiver to receive signals from multiple frequency points simultaneously.

[0130] In one possible implementation, the method further includes: a first transceiver receiving a carrier signal transmitted by a second transceiver, the carrier signal being a single-frequency signal; determining a frequency offset between the first transceiver and the second transceiver based on the carrier signal; the frequency offset being used to calibrate the frequency deviation between the first transceiver and the second transceiver. Specifically, the frequency offset (Carrier Frequency Offset, CFO) between the first transceiver and the second transceiver affects the phase measurement accuracy. Therefore, before the two devices perform the aforementioned multi-tone signal interaction, the second transceiver can transmit a carrier signal to the first transceiver at a certain frequency point. The first transceiver estimates and compensates for the CFO, making the CFO between the two devices close to zero, thereby improving the measurement accuracy.

[0131] Step S203: The first transceiver performs down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals.

[0132] Specifically, the frequency of the DC signal is 0. For example, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the spectrum of a multi-tone signal and a DC signal provided in an embodiment of this application. The multi-tone signal received by the first transceiver includes two frequency points, namely, the first multi-tone signal is... Since the first multi-tone signal is generated based on the single-frequency signal negotiated between the first and second transceivers, the first transceiver can then... The corresponding single-frequency signal and The corresponding single-frequency signals are respectively for The result is obtained by downconversion. and Furthermore, two DC signals can be obtained through filtering, namely... , .

[0133] In one possible implementation, the first transceiver performs down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N first DC signals. This includes: the first transceiver generates a second radio frequency local oscillator signal and N first digital local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; the N second frequencies corresponding to the N first digital local oscillator signals are added to a preset frequency corresponding to the second radio frequency local oscillator signal to equal the N first frequencies; and the first multi-tone signal is down-converted based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals. Specifically, the N first frequencies corresponding to the N single-frequency signals are... The second radio frequency local oscillator signal is an RFLO based on a preset frequency. The generated signal, such as Figure 5 In the middle, the RFLO of the first transceiver is based on The generated signal; N first digital local oscillator signals are N digital LOs based on The generated signal, such as Figure 5 In this context, the signal is generated by N digital local oscillators (LOs) (which can be implemented in hardware). It should be noted that both digital LOs and RF LOs can be implemented in hardware, but the difference lies in the fact that RF LOs are implemented using analog circuits, which are significantly more expensive than the digital circuits used in digital LOs. Based on the second RF local oscillator signal and N first digital local oscillator signals, the first multi-tone signal can be processed separately. The down-conversion process yields N DC signals, which are respectively , , ..., .

[0134] In one possible implementation, the first transceiver performs down-conversion processing on the first multi-tone signal based on the second RF local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals. This includes: the first transceiver performs down-conversion processing on the first multi-tone signal based on the second RF local oscillator signal to obtain a first baseband signal; the first baseband signal is the signal after the first multi-tone signal has undergone spectrum shifting based on the preset frequency; and the first baseband signal is digitally down-converted based on each of the N first digital local oscillator signals to obtain the N DC signals. Specifically, when receiving the multi-tone signal, the device can first down-convert the multi-tone signal to a baseband signal via RFLO, then pass this baseband signal to each digital LO for digital down-conversion processing, converting the signal corresponding to the frequency of each digital LO into a DC signal, and then performing phase measurement. For example, as... Figure 7 As shown, Figure 7 This is a schematic diagram of the spectrum of another multi-tone signal and a DC signal provided in an embodiment of this application. The diagram shows that the multi-tone signal contains two frequency points. Taking a multi-tone signal as an example, the down-conversion process is described. First, RFLO is based on a preset... The baseband signal is obtained by down-converting the multi-tone signal. Then, the baseband signal is given to digital LO1 and digital LO2 respectively for digital down-conversion processing, so as to... Taking signal phase measurement as an example, after digital down-conversion, the frequencies of the two signals are respectively And 0, and mixed together. Further, to obtain the phase of the second signal, the signal can be filtered to obtain the corresponding DC signal of the second signal; similarly, the corresponding DC signal of the first signal can be obtained. Optionally, such as... Figure 8 As shown, Figure 8 This is a schematic diagram of a digital down-conversion signal provided in an embodiment of this application. The diagram uses a multi-tone signal containing four frequency points as an example. arrive These represent the frequencies of the four digital LOs. Taking signal phase measurement as an example, after digital down-conversion, the frequencies of the four signals are respectively , ,0, And they are mixed together. Furthermore, to obtain the phase of the third signal, the digitally down-converted signal can be averaged using the IQ method, with the IQ accumulation period being... , , The least common multiple of the three signals can be used to cancel out the influence of other signals on the third signal, so that the phase contained in the final average IQ is the phase of the third signal. Similarly, the phases of the other three signals can be obtained.

[0135] In one possible implementation, the first transceiver performs down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals. This includes: the first transceiver generating N first radio frequency local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; wherein each first radio frequency local oscillator signal corresponds to a first frequency; and performing down-conversion processing on the first multi-tone signal based on each of the N first radio frequency local oscillator signals to obtain the N DC signals. Specifically, when the second transceiver transmits multi-tone signals based on N RFLOs, in order to ensure that the first transceiver can simultaneously receive the multi-tone signals transmitted by the second transceiver, the first transceiver also needs to be designed with N RFLOs. For example, as... Figure 9 As shown, Figure 9 This is a schematic diagram of a local oscillator provided in an embodiment of this application. The diagram assumes that a second transceiver transmits a multi-tone signal (including two frequency points) based on two RFLOs. Specifically, the second transceiver generates two RFLO local oscillator signals based on the two RFLOs, then adds these two RFLO signals to obtain the multi-tone signal, and transmits this multi-tone signal to the first transceiver. The first transceiver then generates radio frequency local oscillator signals based on the frequencies of pre-negotiated single-frequency signals from its two RFLOs, and performs down-conversion processing on the received signals to obtain two DC signals. For example, as... Figure 10 As shown, Figure 10 This is a schematic diagram of a downconversion process provided in an embodiment of this application, where multi-tone signals are used. Taking a receiver with two frequency points as an example, RFLO1 in the first receiver is based on the frequency of A single-frequency signal generates a radio frequency local oscillator signal. and the received The result is obtained by downconversion. Then you can do Filtering is performed to obtain Similarly, based on RFLO2 in the first transceiver, we can obtain .

[0136] Step S204: The first transceiver measures the first phase of each of the N DC signals to obtain a sequence of first phase values.

[0137] Specifically, the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each of the DC signals from the second transceiver to the first transceiver, and the first phase value sequence includes the first phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver. Assume, the first multi-tone signal... It includes two frequency points; the first transceiver can... The down-conversion process yields two DC signals, respectively. , Furthermore, the first transceiver measures respectively and The phase is determined to obtain the first phase value sequence, which includes... phase and phase , and These two DC signals represent the phase shifts of their respective single-frequency signals from the second transceiver to the first transceiver, which correspond to the phase shifts in Formula 1 above. And in Formula 2 .

[0138] Optionally, if the LO phase of the second transceiver is synchronized with the LO phase of the first transceiver, the first phase value sequence and the multiple frequency points contained in the multi-tone signal can be substituted into Formula 4 above to calculate the distance between the first and second transceivers. It should be noted that the two devices can be connected to a central controller via a cable, and the central controller can then synchronize the initial LO phases of the two devices using pulses, thus synchronizing the LO phases of the first and second transceivers.

[0139] It should be noted that when the LO phase of the second transceiver is synchronized with the LO phase of the first transceiver, the obtained first phase value sequence can be substituted into Formula 4 above to calculate the distance between the devices. However, for two devices connected wirelessly, phase synchronization is difficult to achieve in practice, which means that the initial phases of the two devices cannot cancel each other out, thus affecting the measured phase value. To remove the influence of the initial phases of the two devices, the devices can send signals to each other and perform phase measurement (i.e., bidirectional phase measurement). It should be noted that during the process of the devices sending signals to each other, the initial phases of the two devices should remain unchanged. The following will use a single-frequency signal (frequency is...) For example, and in combination Figure 11 Please describe in detail how to eliminate the influence of the initial phase of the two devices. Figure 11 As shown, Figure 11 This is a schematic diagram of device interaction provided in an embodiment of this application. In the diagram, device A is... The signal is sent at all times, The time arrives at device B (where, , (For the signal's time of transmission), while device B measures the phase; then device A becomes the receiving device, and device B becomes the transmitting device, device B in The signal sent at all times The signal arrives at device A at a certain time, and device A simultaneously measures the phase. During the above signal interaction, the phase at each time point is as follows: exist At time t, the phase of the signal transmitted by A (or the LO phase of A) is t. ,in, It is the initial phase of the LO of device A.

[0140] exist At time t, the LO phase of B is ,in, This is the initial phase of the LO signal from device B. At this time, the signal phase from A to B is... Therefore, after down-conversion, the phase measured by B is... .

[0141] exist At time t, the phase of the signal transmitted by B (or the LO phase of B) is .

[0142] exist At time t, the LO phase of A is At this point, the phase of the signal from B to A is... Therefore, after down-conversion, the phase measured by A is... .

[0143] Adding the phase measurements from the two devices above cancels out the influence of the initial phase, resulting in Formula 5: (Formula 5) Furthermore, the flight time of the signal can be calculated based on Formula 5. This allows us to calculate the distance between the devices.

[0144] It should be noted that, in order to ensure the continuity of the LO phase of the devices, the PLL (Phase-Locked Loop) of the devices needs to remain locked during the TX / RX (transmitter / receiver) role transition (TX to RX for device A, and RX to TX for device B) to guarantee phase continuity. However, when the devices hop frequencies to other frequencies for similar bidirectional signal exchange, the PLL does not need to remain locked during the frequency hopping process.

[0145] To improve ranging accuracy, please refer to Figure 12 , Figure 12 This application provides a signal phase versus frequency relationship diagram. The diagram shows that the above-mentioned bidirectional phase measurement can be performed based on multiple frequency points to obtain multiple phase values. Then, the distance value is estimated by the slope of the phase change with frequency.

[0146] Please see Figure 13 , Figure 13 This is a flowchart illustrating another phase ranging method in the embodiments of this application. The following will be discussed in conjunction with the attached diagram. Figure 13 From the first transceiver (which can be...) Figure 1A Device A) and the second transceiver (can be) Figure 1A The phase ranging method in the embodiments of this application is described on the interactive side of device B). It should be noted that... Figure 13 For a detailed description of steps S301-S304, please refer to the above description. Figure 3 The relevant descriptions of steps S201-S204 are not repeated here.

[0147] Step S305: The first transceiver generates a second multi-tone signal based on the N first single-frequency signals.

[0148] Specifically, when the first transceiver receives the multi-tone signal sent by the second transceiver as a receiving device and obtains the first phase value sequence based on the multi-tone signal, while ensuring that the initial phase of the first transceiver and the second transceiver remains unchanged, the first transceiver can be converted into a transmitting device to send a multi-tone signal containing the same frequency to the second transceiver, thereby realizing the above-mentioned bidirectional phase measurement.

[0149] In one possible implementation, the first transceiver generates a second multi-tone signal based on the N first single-frequency signals, including: the first transceiver adds the N first digital local oscillator signals to obtain a second baseband signal; and performs up-conversion processing on the second baseband signal based on the second radio frequency local oscillator signal to obtain the second multi-tone signal. Specifically, to eliminate the initial phase influence of the local oscillators of the first and second transceivers, it is necessary to ensure that the initial phase of the LO during down-conversion processing of the first transceiver is the same as the initial phase of the LO when transmitting the multi-tone signal. Therefore, when generating the second multi-tone signal, the first transceiver can obtain the second multi-tone signal based on the digital local oscillator signal generated by the N digital LOs and the radio frequency local oscillator signal generated by the RFLO, thereby eliminating the influence of the initial phase through bidirectional phase measurement and improving the accuracy of phase ranging.

[0150] Step S306: The first transceiver sends the second multi-tone signal to the second transceiver.

[0151] Specifically, the first transceiver can generate a second multi-tone signal based on the above-mentioned hybrid method, and then send a multi-frequency signal to the second transceiver through an RFLO, so that the second transceiver receives a multi-frequency signal with the same frequency as the first multi-tone signal.

[0152] Step S307: The second transceiver performs down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals.

[0153] Specifically, each first single-frequency signal corresponds to a DC signal. For example, the first multi-tone signal includes two frequency points, that is, the first multi-tone signal is... Therefore, the second multi-tone signal also includes signals G at these two frequencies. Since the second multi-tone signal is generated based on the single-frequency signal negotiated between the first and second transceivers, the second transceiver can then... The corresponding single-frequency signal and The corresponding single-frequency signals are respectively for The result is obtained by downconversion. and Furthermore, two DC signals can be obtained through filtering, namely... , .

[0154] Step S308: The second transceiver measures the second phase of each of the N DC signals to obtain a sequence of second phase values.

[0155] Specifically, the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each of the DC signals from the first transceiver to the second transceiver, and the second phase value sequence includes the second phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver by combining the second phase value sequence. Assume, the second multi-tone signal... It includes two frequency points, and the second transceiver can... The down-conversion process yields two DC signals, respectively. , Furthermore, the first transceiver measures respectively and The phase is then used to obtain a second phase value sequence, which includes... phase and phase , and The phase shift of the single-frequency signals corresponding to these two DC signals from the first transceiver to the second transceiver is denoted as .

[0156] In one possible implementation, the method further includes: a first transceiver determining the flight time of the signal between the first transceiver and the second transceiver based on the first phase value sequence and the second phase value sequence; and determining the distance between the first transceiver and the second transceiver based on the flight time. Specifically, the first phase value sequence and the second phase value sequence can be substituted into Formula 5 above to calculate the flight time of the signal, thereby calculating the distance between the devices based on the flight time of the signal.

[0157] For example, such as Figure 11 As shown in the figure, it is assumed that both device A and device B use one RFLO and multiple digital LOs to transmit and receive multi-tone signals and measure phase. Furthermore, the multi-tone signals are negotiated before phase ranging is performed. It includes two frequency points, and the preset frequency of RFLO is The frequencies of the two digits LO are respectively and ,and , Device A is in The signal sent at all times The time arrives at device B (where, , (This refers to the signal's transmission time), while device B measures each phase of the multi-tone signal; then device A becomes the receiving device, and device B becomes the transmitting device. The signal at that moment The time arrives at device A, and device A simultaneously measures each phase of the multi-tone signal. Taking the first signal in the multi-tone signal as an example (i.e., frequency 1),... The signals), and the corresponding phases at each time point are as follows: and These are the initial phases of the RFLO and the first digital LO of device A, respectively; and These are the initial phases of the RFLO and the first digital LO of device B, respectively; The default frequency for RFLO.

[0158] exist At time t, the RFLO phase of A is The first number of A, LO phase is Therefore, the phase of the signal transmitted by A is... .

[0159] exist At time t, the RFLO phase of B is The first number of B, LO phase is At this moment, the phase of the signal arriving at B from A is... Therefore, after down-conversion by RFLO, the phase of the first signal of B is: After digital down-conversion of the first digital LO, the phase of the first signal (i.e., the measured phase) is:

[0160] exist At time t, the RFLO phase of B is The first number of B, LO phase is Therefore, the phase of the signal transmitted by B is... .

[0161] exist At time t, the RFLO phase of A is The first number of A, LO phase is At this time, the phase of the signal arriving at A from B is... Therefore, after down-conversion of A by the RFLO, the phase of the first signal is: After digital down-conversion of the first digital LO, the phase of the first signal (i.e., the measured phase) is:

[0162] Adding the phase measurements from the two devices above cancels out the influence of the initial phase, resulting in Formula Six: (Formula 6) in, The frequency of the first signal in a multi-tone signal. Formula 6 also applies to signals of other frequencies in a multi-tone signal (e.g., signals of other frequencies). Replace with Similarly, by changing By performing the aforementioned multi-tone signal interaction, phase values ​​at other frequency points can be obtained more quickly and used for signal time-of-flight analysis. (i.e., the calculation of distance D).

[0163] It should be noted that when two devices are exchanging multi-tone signals, neither the RFLO nor the digital LO can lose lock to ensure the continuity of the LO phase. For the digital LO, the equivalent signal is... It runs continuously.

[0164] It should also be noted that the above description only considers the zero IF receiver implementation, where the signal received by the antenna is directly converted to a baseband signal after down-conversion at the RFLO. The embodiments of this application apply to the low IF implementation, where the signal received by the antenna is first converted to a low IF signal (e.g., 2MHz) after down-conversion at the RFLO, and then converted to a baseband signal after another down-conversion (e.g., through a digital LO).

[0165] In this embodiment, two devices send multi-tone signals to each other and measure phase values. The distance is estimated by using the slope of the phase values ​​at multiple frequency points as a function of frequency. Figure 14 As shown, Figure 14 This is a schematic diagram comparing the relationship between signal phase and frequency provided in an embodiment of this application. Figure 14 (a) in the figure shows the signal phase and frequency relationship in the prior art. Because the multi-frequency phase ranging technology in the prior art uses carrier signals (i.e., single-frequency signals) for interaction, the number of signal interactions between devices is excessive, resulting in high power consumption. For mobile devices, high power consumption reduces usage time and also lengthens positioning time. A single ranging measurement takes a long time, meaning the ranging and positioning refresh rate will be low. If the device is moving, the located position may not match the actual position. Furthermore, it increases the difficulty of coexistence scheduling within the device. For devices with multiple wireless technologies (such as mobile phones), these technologies typically coexist using TDMA. If one technology occupies too much time, it reduces the transmission and reception opportunities for other wireless technologies. However, in the embodiments of this application, as... Figure 14 Figure (b) shows the signal phase-frequency relationship in an embodiment of this application. The two devices interact using multi-tone signals, enabling phase measurement of multiple frequencies in a single interaction. Specifically, this embodiment replaces the existing carrier signal (i.e., single-frequency signal) interaction method with a multi-tone signal interaction, reducing the number of signal interactions required for ranging. For example, if the number of frequencies in the multi-tone signal is N, this embodiment can reduce the number of signal interactions to 1 / 3 of the number required by existing methods. N, thereby reducing device power consumption, enabling the determination of distances between devices in a shorter time, and improving the ranging accuracy when devices are moving.

[0166] To obtain the distance between devices more quickly, this application provides a phase ranging method based on the interaction of multiple multi-tone signals, which is described in detail below: In one possible implementation, the method further includes: a second transceiver sending L first multi-tone signals to a first transceiver to obtain L sequences of first phase values; L is an integer greater than 1; each of the L first multi-tone signals corresponds to N different first frequencies; receiving L second multi-tone signals sent by the first transceiver to obtain L sequences of second phase values; the L sequences of first phase offset values ​​are used to calculate the distance between the first transceiver and the second transceiver in combination with the L sequences of second phase offset values. For example, as... Figure 15 As shown, Figure 15 This diagram illustrates a multi-tone signal interaction method provided in an embodiment of this application. Device A sends multi-tone signals (containing four frequencies) and periodically changes the frequency of the RFLO (i.e., the stepped shape in the diagram), while the frequency of the digital LO remains constant and operates continuously. Device B adjusts the RFLO frequency according to the same frequency hopping method, and the digital LO frequency remains constant and operates continuously. For each RFLO frequency, device B receives and measures the phase of each frequency point in the multiple multi-tone signals. After the two devices switch roles, device B adjusts the RFLO frequency according to the opposite frequency hopping method and sends multi-tone signals, while the frequency of the digital LO remains constant and operates continuously. Device A adjusts the RFLO frequency according to the same frequency hopping method as B, while A's digital LO frequency remains constant and operates continuously. For each RFLO frequency, device A receives and measures the phase of each frequency point in the multiple multi-tone signals. Throughout the measurement period, the RFLOs of both devices maintain PLL lock-free operation (i.e., ensure phase continuity); the digital LO also operates continuously with a constant frequency. For the phase measurements of devices A and B at the same frequency point, they are added together, and the distance can be calculated more quickly based on the slope of this phase sum as a function of frequency.

[0167] It should be noted that the first signal interaction uses N single-frequency signals, followed by frequency hopping, to enable the second signal interaction, which also uses multi-tone signals (including multiple single-frequency signals). In this example, for scenarios involving the transmission of multiple multi-tone signals, there are three ways to calculate the distance: 1) Calculate the distance between devices based on the multiple phase values ​​obtained from the first signal interaction, such as calculating the slope of "phase and frequency" to obtain the distance; 2) Calculate the distance value based on the phase values ​​of other single-frequency signals obtained from the second signal interaction; 3) Calculate the distance value based on the phase values ​​obtained from both signal interactions, which will yield a more accurate distance than the first two methods.

[0168] Please see Figure 16 , Figure 16 This is a schematic diagram of a phase ranging system according to an embodiment of this application. The following will refer to the attached diagram. Figure 16 From the first transceiver (which can be...) Figure 1A Device A) and M second transceivers (which can be Figure 1AThe phase ranging method in the embodiments of this application is described on the interactive side of device B).

[0169] A first transceiver is configured to: transmit a first multi-tone signal to M second transceivers respectively, wherein the first multi-tone signal includes N single-frequency signals, and the N first single-frequency signals are signals negotiated between the first transceiver and the M second transceivers, where N and M are integers greater than 1; Each of the M second transceivers is configured to: perform down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to one DC signal; measure the first phase of each of the N DC signals to obtain a first phase value sequence; wherein the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second transceiver to the first transceiver, and the first phase value sequence includes the first phase of each of the N DC signals; A computing device is configured to: calculate the distance between the first transceiver and each of the second transceivers based on M sequences of the first phase values.

[0170] Specifically, the above embodiments (i.e. Figure 16 The previous embodiment described a one-to-one ranging scenario between two devices. In actual use, there are also scenarios where multiple devices measure each other's distances (i.e., many-to-many ranging). For many-to-many ranging, the broadcast property of wireless signals can be utilized, allowing devices to take turns sending multi-tone signals. While one device is sending a signal, other devices simultaneously receive and measure the phase of each frequency point in the multi-tone signal. During the device interaction process, the RF LO of the device remains locked, and then the device switches to other frequencies to continue performing similar phase measurements. Detailed phase ranging procedures can be found in the description of steps S301-S308, and will not be repeated here. It should be noted that in many-to-many measurement scenarios, if unidirectional ranging is used, it is necessary to ensure that the initial phase of the first transceiver is the same as that of the other second transceivers. Compared to devices taking turns performing one-to-one ranging, the many-to-many ranging method can reduce the number of signal transmissions, for example, as... Figure 17 As shown, Figure 17 This is a schematic diagram of a multi-to-multi phase ranging method provided in an embodiment of this application. When the three devices in the diagram are measuring distance, the multi-to-multi ranging method can reduce the number of signal transmissions from 6 interactions in one-to-one ranging to 3 interactions.

[0171] The methods of the embodiments of this application have been described in detail above, and the related apparatus of the embodiments of this application is provided below.

[0172] Please see Figure 18 , Figure 18This is a schematic diagram of a first phase ranging device provided in an embodiment of this application. The phase ranging device 40 may include a first receiving unit 401, a first processing unit 402, a first measuring unit 403, a second processing unit 404, a first transmitting unit 405, a third processing unit 406, a second receiving unit 407, and a fourth processing unit 408. The detailed description of each module is as follows: The first receiving unit 401 is used to receive a first multi-tone signal sent by the second phase ranging device. The first multi-tone signal includes N first single-frequency signals. The N first single-frequency signals are signals negotiated between the first phase ranging device and the second phase ranging device, and N is an integer greater than 1. The first processing unit 402 is configured to perform down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to one DC signal. The first measurement unit 403 is used to measure the first phase of each of the N DC signals to obtain a first phase value sequence; wherein, the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second phase ranging device to the first phase ranging device, and the first phase value sequence includes the first phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first phase ranging device and the second phase ranging device.

[0173] In one possible implementation, the apparatus further includes: a second processing unit 404, configured to generate a second multi-tone signal based on the N first single-frequency signals; a first transmitting unit 405, configured to transmit the second multi-tone signal to the second phase ranging device; the second multi-tone signal is used by the second phase ranging device to obtain a second phase value sequence; the second phase value sequence includes a phase offset value generated by each of the N first single-frequency signals from the first phase ranging device to the second phase ranging device; the first phase value sequence is used to calculate the distance between the first phase ranging device and the second phase ranging device in combination with the second phase value sequence.

[0174] In one possible implementation, the first processing unit 402 is specifically configured to: generate N first radio frequency local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; wherein each first radio frequency local oscillator signal corresponds to a first frequency; and perform down-conversion processing on the first multi-tone signal based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.

[0175] In one possible implementation, the first processing unit 402 is specifically configured to: generate a second radio frequency local oscillator signal and N first digital local oscillator signals based on the N first single-frequency signals corresponding to the N first first frequencies, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequencies corresponding to the second radio frequency local oscillator signals to equal the N first frequencies; and perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals.

[0176] In one possible implementation, the first processing unit 402 is specifically used to: perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal to obtain a first baseband signal; the first baseband signal is the signal after the first multi-tone signal has undergone spectrum shifting based on the preset frequency; and perform digital down-conversion processing on the first baseband signal based on each of the N first digital local oscillator signals to obtain the N DC signals.

[0177] In one possible implementation, the second processing unit 404 is specifically used to: add the N first digital local oscillator signals to obtain a second baseband signal; and perform up-conversion processing on the second baseband signal based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.

[0178] In one possible implementation, the apparatus further includes: a third processing unit 406, configured to determine the flight time of the signal between the first phase ranging device and the second phase ranging device based on the first phase value sequence and the second phase value sequence; the third processing unit 406 is further configured to determine the distance between the first phase ranging device and the second phase ranging device based on the flight time.

[0179] In one possible implementation, the device further includes: a second receiving unit 407, configured to receive a carrier signal transmitted by the second phase ranging device, the carrier signal being a single-frequency signal; and a fourth processing unit 408, configured to determine a frequency offset between the first phase ranging device and the second phase ranging device based on the carrier signal; the frequency offset being used to calibrate the frequency deviation between the first phase ranging device and the second phase ranging device.

[0180] It should be noted that the functions of each functional unit in the phase ranging device 40 described in this application embodiment are the same as those described above. Figure 3 The relevant descriptions of the steps performed by the first transceiver in the method embodiment are not repeated here.

[0181] Please see Figure 19 , Figure 19This is a schematic diagram of a second phase ranging device provided in an embodiment of this application. The phase ranging device 50 may include: a first processing unit 501, a first transmitting unit 502, a first receiving unit 503, a second processing unit 504, a second transmitting unit 505, and a second receiving unit 506. The detailed description of each module is as follows: The first processing unit 501 is used to generate a first multi-tone signal based on N first single-frequency signals, wherein the N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver, and N is an integer greater than 1; The first transmitting unit 502 is used to transmit the first multi-tone signal to the first transceiver; the first multi-tone signal is used by the first transceiver to obtain a first phase value sequence; the first phase value sequence includes the phase offset value generated by each of the N first single-frequency signals from the second transceiver to the first transceiver; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver.

[0182] In one possible implementation, the first processing unit 501 is specifically configured to: generate a first radio frequency local oscillator signal and N first digital local oscillator signals based on the N first single-frequency signals corresponding to the N first first frequencies, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequencies corresponding to the first radio frequency local oscillator signals to equal the N first frequencies; add the N first digital local oscillator signals to obtain a first baseband signal; and perform up-conversion processing on the first baseband signal based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.

[0183] In one possible implementation, the apparatus further includes: a first receiving unit 503, configured to receive a second multi-tone signal transmitted by the first transceiver, the second multi-tone signal including the N first single-frequency signals; a second processing unit 504, configured to perform down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to a DC signal; a first measuring unit, configured to measure the second phase of the N DC signals to obtain a second phase value sequence; wherein the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the first transceiver to the second transceiver, and the second phase value sequence includes the second phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver in combination with the second phase value sequence.

[0184] In one possible implementation, the apparatus further includes: a second transmitting unit 505, configured to transmit L first multi-tone signals to the first transceiver to obtain L first phase value sequences; L is an integer greater than 1; each of the L first multi-tone signals corresponds to N different first frequencies; a second receiving unit 506, configured to receive L second multi-tone signals transmitted by the first transceiver to obtain L second phase value sequences; the L first phase offset value sequences are used to calculate the distance between the first transceiver and the second transceiver by combining the L second phase offset value sequences.

[0185] It should be noted that the functions of each functional unit in the phase ranging device 50 described in this application embodiment are the same as those described above. Figure 3 The relevant descriptions of the steps performed by the second transceiver in the method embodiment are not repeated here.

[0186] Please see Figure 20 , Figure 20 This is a schematic diagram of a first transceiver device according to an embodiment of this application. The first transceiver 60 may include: a radio frequency transceiver circuit 601, a baseband processor 602, and a central processing unit 603. The detailed description of each module is as follows: The radio frequency transceiver circuit 601 is used to receive a first multi-tone signal sent by the second transceiver. The first multi-tone signal includes N first single-frequency signals, and the N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1. The baseband processor 602 is used to perform down-conversion processing on the first multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to one DC signal. The baseband processor 602 is further configured to measure the first phase of each of the N DC signals to obtain a first phase value sequence; wherein, the first phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the second transceiver to the first transceiver, and the first phase value sequence includes the first phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver.

[0187] In one possible implementation, the baseband processor 602 is further configured to: generate a second multi-tone signal based on the N first single-frequency signals; the radio frequency transceiver circuit 601 is further configured to transmit the second multi-tone signal to the second transceiver; the second multi-tone signal is used by the second transceiver to obtain a second phase value sequence; the second phase value sequence includes a phase offset value generated by each of the N first single-frequency signals from the first transceiver to the second transceiver; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver in combination with the second phase value sequence.

[0188] In one possible implementation, the baseband processor 602 is specifically configured to: generate N first radio frequency local oscillator signals based on the N first frequencies corresponding to the N first single-frequency signals; wherein each first radio frequency local oscillator signal corresponds to a first frequency; and perform down-conversion processing on the first multi-tone signal based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.

[0189] In one possible implementation, the baseband processor 602 is specifically configured to: generate a second radio frequency local oscillator signal and N first digital local oscillator signals based on the N first single-frequency signals corresponding to the N first frequencies, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequencies corresponding to the second radio frequency local oscillator signals to equal the N first frequencies; and perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal and the N first digital local oscillator signals to obtain the N DC signals.

[0190] In one possible implementation, the baseband processor 602 is specifically configured to: perform down-conversion processing on the first multi-tone signal based on the second radio frequency local oscillator signal to obtain a first baseband signal; the first baseband signal is the signal after the first multi-tone signal has undergone spectrum shifting based on the preset frequency; and perform digital down-conversion processing on the first baseband signal based on each of the N first digital local oscillator signals to obtain the N DC signals.

[0191] In one possible implementation, the baseband processor 602 is specifically used to: add the N first digital local oscillator signals to obtain a second baseband signal; and perform up-conversion processing on the second baseband signal based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.

[0192] In one possible implementation, the apparatus further includes: a central processing unit 603, configured to determine the flight time of the signal between the first transceiver and the second transceiver based on the first phase value sequence and the second phase value sequence; and to determine the distance between the first transceiver and the second transceiver based on the flight time.

[0193] In one possible implementation, the radio frequency transceiver circuit 601 is further configured to receive a carrier signal transmitted by the second transceiver, the carrier signal being a single-frequency signal; the baseband processor 602 is further configured to determine a frequency offset between the first transceiver and the second transceiver based on the carrier signal; the frequency offset is used to calibrate the frequency deviation between the first transceiver and the second transceiver.

[0194] It should be noted that the functions of each functional unit in the first transceiver 60 described in this application embodiment can be found in the above description. Figure 3 The relevant descriptions of the steps performed by the first transceiver in the method embodiment are not repeated here.

[0195] Please see Figure 21 , Figure 21 This is a schematic diagram of a second transceiver device according to an embodiment of this application. The second transceiver 70 may include: a radio frequency transceiver circuit 701 and a baseband processor 702, wherein the detailed description of each module is as follows: The baseband processor 702 is used to generate a first multi-tone signal based on N first single-frequency signals, wherein the N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver, and N is an integer greater than 1; The radio frequency transceiver circuit 701 is used to send the first multi-tone signal to the first transceiver; the first multi-tone signal is used by the first transceiver to obtain a first phase value sequence; the first phase value sequence includes the phase offset value generated by each of the N first single-frequency signals from the second transceiver to the first transceiver; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver.

[0196] In one possible implementation, the baseband processor 702 is specifically configured to: generate a first radio frequency local oscillator signal and N first digital local oscillator signals based on N first frequencies corresponding to the N first single-frequency signals, wherein the N second frequencies corresponding to the N first digital local oscillator signals are added to a preset frequency corresponding to the first radio frequency local oscillator signal to equal the N first frequencies; add the N first digital local oscillator signals to obtain a first baseband signal; and perform up-conversion processing on the first baseband signal based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.

[0197] In one possible implementation, the RF transceiver circuit 701 is further configured to receive a second multi-tone signal transmitted by the first transceiver, the second multi-tone signal including the N first single-frequency signals; the baseband processor 702 is further configured to perform down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; wherein each first single-frequency signal corresponds to one DC signal; the baseband processor 702 is further configured to measure the second phase of the N DC signals to obtain a second phase value sequence; wherein the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the first transceiver to the second transceiver, and the second phase value sequence includes the second phase of each of the N DC signals; the first phase value sequence is used to calculate the distance between the first transceiver and the second transceiver in combination with the second phase value sequence.

[0198] In one possible implementation, the radio frequency transceiver circuit 701 is further configured to: send L first multi-tone signals to the first transceiver to obtain L first phase value sequences; each of the L first multi-tone signals corresponds to N different first frequencies; L is an integer greater than 1; receive L second multi-tone signals sent by the first transceiver to obtain L second phase value sequences; the L first phase offset value sequences are used to calculate the distance between the first transceiver and the second transceiver in combination with the L second phase offset value sequences.

[0199] It should be noted that the functions of each functional unit in the second transceiver 70 described in this application embodiment are as described above. Figure 3 The relevant descriptions of the steps performed by the second transceiver in the method embodiment are not repeated here.

[0200] This application provides an electronic device, characterized in that it includes a processor, a memory, and a communication interface, wherein the memory is used to store information transmission program code, and the processor is used to call the phase ranging method program code to execute the method described above, wherein the execution subject is the first transceiver.

[0201] This application provides an electronic device, characterized in that it includes a processor, a memory, and a communication interface, wherein the memory is used to store information transmission program code, and the processor is used to call the phase ranging method program code to execute the method described above, wherein the execution subject is a second transceiver.

[0202] This application provides a chip system, characterized in that the chip system includes at least one processor, a memory, and an interface circuit, the memory, the interface circuit, and the at least one processor are interconnected by a circuit, and the at least one memory stores instructions; when the instructions are executed by the processor, the method described above, in which the execution subject is any one of the first transceiver, is implemented.

[0203] This application provides a chip system, characterized in that the chip system includes at least one processor, a memory, and an interface circuit, the memory, the interface circuit, and the at least one processor are interconnected by a circuit, and the at least one memory stores instructions; when the instructions are executed by the processor, the method described above, in which the execution subject is any one of the second transceiver, is implemented.

[0204] This application provides a computer storage medium, characterized in that the computer storage medium stores a computer program, which, when executed by a processor, implements the method described above, where the execution subject is any one of the first transceiver.

[0205] This application provides a computer storage medium, characterized in that the computer storage medium stores a computer program, which, when executed by a processor, implements the method described above, where the execution subject is any one of the second transceiver.

[0206] This application provides a computer program, characterized in that the computer program includes instructions that, when executed by a computer, cause the computer to perform the method described above, in which the execution subject is any one of the first transceiver.

[0207] This application provides a computer program, characterized in that the computer program includes instructions that, when executed by a computer, cause the computer to perform the method described above, in which the execution subject is any one of the second transceiver.

[0208] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0209] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0210] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

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

[0212] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0213] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium may include various media capable of storing program code, such as a USB flash drive, portable hard drive, magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM).

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

Claims

1. A signal transmission method, characterized in that, Applied to a second transceiver, the method includes: The first baseband signal is obtained by summing the N first digital local oscillator signals. The first baseband signal is upconverted based on the first radio frequency local oscillator signal to obtain a first multi-tone signal, which includes N first single-frequency signals. The first multi-tone signal is sent to the first transceiver.

2. The method as described in claim 1, characterized in that, The method further includes: Based on the N first frequencies corresponding to the N first single-frequency signals, the first radio frequency local oscillator signal and the N first digital local oscillator signals are generated. The N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequency corresponding to the first radio frequency local oscillator signal to equal the N first frequencies.

3. The method as described in claim 1 or 2, characterized in that, The N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver.

4. The method as described in claim 3, characterized in that, The first multi-tone signal is used by the first transceiver to obtain a first phase value sequence, the first phase value sequence including the phase offset value generated by each of the N first single-frequency signals from the second transceiver to the first transceiver.

5. The method as described in claim 4, characterized in that, The method further includes: Receive a second multi-tone signal sent by the first transceiver, the second multi-tone signal including the N first single-frequency signals; The second multi-tone signal is down-converted based on each of the N first single-frequency signals to obtain N DC signals, wherein each first single-frequency signal corresponds to one DC signal. The second phase of each of the N DC signals is measured to obtain a second phase value sequence, wherein the second phase includes the phase offset value generated by the first single-frequency signal corresponding to each DC signal from the first transceiver to the second transceiver.

6. The method as described in claim 5, characterized in that, The first phase value sequence is used in conjunction with the second phase value sequence to calculate the distance between the first transceiver and the second transceiver.

7. The method as described in claim 1, characterized in that, The method further includes: Send L first multi-tone signals to the first transceiver to obtain L first phase value sequences, wherein each of the L first multi-tone signals corresponds to N different first frequencies, and L is an integer greater than 1; Receive L second multi-tone signals sent by the first transceiver to obtain L second phase value sequences; The L first phase value sequences are used in combination with the L second phase value sequences to calculate the distance between the first transceiver and the second transceiver.

8. A second transceiver, characterized in that, include: The baseband processor is used to add N first digital local oscillator signals to obtain a first baseband signal; The first baseband signal is upconverted based on the first radio frequency local oscillator signal to obtain a first multi-tone signal, which includes N first single-frequency signals. The radio frequency transceiver circuit is used to send the first multi-tone signal to the first transceiver.

9. The second transceiver as described in claim 8, characterized in that, The baseband processor is also used for: Based on the N first frequencies corresponding to the N first single-frequency signals, the first radio frequency local oscillator signal and the N first digital local oscillator signals are generated. The N second frequencies corresponding to the N first digital local oscillator signals are added to the preset frequency corresponding to the first radio frequency local oscillator signal to equal the N first frequencies.

10. The second transceiver as described in claim 8 or 9, characterized in that, The N first single-frequency signals are signals negotiated between the first transceiver and the second transceiver.

11. The second transceiver as described in claim 8, characterized in that, The radio frequency transceiver circuit is also used to receive a second multi-tone signal sent by the first transceiver, the second multi-tone signal including the N first single-frequency signals; The baseband processor is further configured to perform down-conversion processing on the second multi-tone signal based on each of the N first single-frequency signals to obtain N DC signals; and to measure the second phase of the N DC signals to obtain a second phase value sequence.

12. The second transceiver as described in claim 11, characterized in that, The first phase value sequence is used in conjunction with the second phase value sequence to calculate the distance between the first transceiver and the second transceiver.

13. A computer storage medium, characterized in that, The computer storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.

14. A computer program product, characterized in that, The computer program includes instructions that, when executed by a computer, cause the computer to perform the method as described in any one of claims 1-7.