A method of phase ranging and related apparatus
By employing multi-tone signal interaction and bidirectional phase measurement, the shortcomings of low-power narrowband wireless technology in ranging accuracy and efficiency are overcome, achieving efficient and low-power phase ranging, which is suitable for device positioning and ranging in low-power narrowband wireless technology.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2022-01-21
- Publication Date
- 2026-04-24
AI Technical Summary
Existing low-power narrowband wireless technologies have shortcomings in ranging accuracy and efficiency, especially in positioning accuracy when the device is moving, and the scheduling difficulty increases when multiple wireless technologies coexist.
The system employs a multi-tone signal interaction method, negotiates multiple single-frequency signals for phase ranging, calculates the distance between devices using the phase offset values of multiple frequency points, and performs bidirectional phase measurement to eliminate the influence of the initial phase, thereby reducing the number of signal interactions and device power consumption.
It improves the efficiency and accuracy of phase ranging, reduces equipment power consumption, shortens ranging time, enhances positioning accuracy when the equipment is moving, and reduces ranging costs.
Smart Images

Figure CN116520245B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a phase ranging method and related apparatus. Background Technology
[0002] 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 and 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).
[0003] 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.
[0004] 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
[0005] This application provides a phase ranging method and related apparatus to improve phase ranging efficiency and measurement accuracy when the device is moving.
[0006] 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.
[0007] 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 devices. For devices with multiple wireless technologies (such as mobile phones), these technologies typically coexist and schedule 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 / N of the number required by existing technologies, thereby reducing device power consumption, determining the distance between devices in a shorter time, and improving phase ranging efficiency and ranging accuracy when the device moves.
[0008] 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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.
[0013] In this embodiment of the application, the N first frequencies corresponding to the N single-frequency signals are f1, f2, ..., f N The second radio frequency local oscillator signal is an RFLO based on a preset frequency f. c The generated signal; N first digital local oscillator signals are N digital LOs based on f1-f c f2-f c ,…,f N -f c The generated signal. Based on the second radio frequency local oscillator signal and N first digital local oscillator signals, the first multi-tone signal F(f1,f2,…,f) can be generated. N The signal is down-converted to obtain N DC signals, namely F1(0), F2(0), ..., F N (0). With the method provided in the embodiments of this application, only one RFLO is needed in the transceiver. The number of RFLOs does not need to be consistent with 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, thereby reducing the ranging cost.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] In this embodiment, the frequency deviation (CFO) between the first transceiver and the second transceiver can affect 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.
[0024] 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.
[0025] 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. Specifically, before ranging, the two devices can negotiate multiple single-frequency signals (i.e., corresponding to multiple frequency points) included 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 of 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, 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. In this embodiment, a 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 embodiment can reduce the number of signal interactions to 1 / N of the number required by the prior art, thereby reducing device power consumption, determining the distance between devices in a shorter time, and improving phase ranging efficiency and ranging accuracy when the device moves.
[0026] 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.
[0027] 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.
[0028] 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.
[0029] 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 transmitting 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.
[0030] 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.
[0031] In the embodiments of this application, when performing multi-tone signal interaction, the device can adjust the number of frequencies N in the multi-tone signal according to the interference of the adjacent channel. For example, when there is interference in the adjacent channel, a smaller N can be used to avoid being affected by interference; conversely, a larger N can be used to complete the ranging more quickly.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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
[0068] 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.
[0069] Figure 1A This is a system architecture diagram of a ranging system provided in an embodiment of this application.
[0070] Figure 1B This is a schematic diagram of the structure of a receiving device provided in an embodiment of this application.
[0071] Figure 2 This is a schematic diagram of signal phase and distance provided in an embodiment of this application.
[0072] Figure 3 This is a schematic flowchart of a phase ranging method in an embodiment of this application.
[0073] Figure 4 This is a frequency diagram of a multi-tone signal provided in an embodiment of this application.
[0074] Figure 5 This is a schematic diagram of a hybrid multi-tone signal generation method provided in an embodiment of this application.
[0075] 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.
[0076] 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.
[0077] Figure 8 This is a schematic diagram of a digital downconversion provided in an embodiment of this application.
[0078] Figure 9 This is a schematic diagram of a local oscillator provided for an embodiment of this application.
[0079] Figure 10This is a schematic diagram of a downconversion process provided in an embodiment of this application.
[0080] Figure 11 This is a schematic diagram of device interaction provided in an embodiment of this application.
[0081] Figure 12 This is a diagram showing the relationship between signal phase and frequency, provided as an embodiment of this application.
[0082] Figure 13 This is a flowchart illustrating another phase ranging method in the embodiments of this application.
[0083] Figure 14 This is a comparative diagram of the relationship between signal phase and frequency provided in an embodiment of this application.
[0084] Figure 15 This is a schematic diagram of a multi-tone signal interaction method provided in an embodiment of this application.
[0085] Figure 16 This is a schematic diagram of a phase ranging system in an embodiment of this application.
[0086] Figure 17 This is a schematic diagram of a multi-phase ranging method provided in an embodiment of this application.
[0087] Figure 18 This is a schematic diagram of a first phase ranging device provided in an embodiment of this application.
[0088] Figure 19 This is a schematic diagram of a second phase ranging device provided in an embodiment of this application.
[0089] Figure 20 This is a schematic diagram of a first transceiver device provided in an embodiment of this application.
[0090] Figure 21 This is a schematic diagram of a second transceiver device provided in an embodiment of this application. Detailed Implementation
[0091] The embodiments of this application will now be described with reference to the accompanying drawings.
[0092] 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.
[0093] 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.
[0094] 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).
[0095] First, a brief introduction to some terms used in the embodiments of this application will be given.
[0096] (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 signal's information content or modulation method). In a superheterodyne receiver, if the intermediate frequency (IF) signal obtained after mixing is higher than the original signal, this mixing method is called upconversion. Because the IF frequency obtained by upconversion is higher, it places higher demands on the IF amplification, filtering, and demodulation in the receiver, making the overall receiver cost higher. Upconversion can achieve extremely high anti-image interference capability and a very flat frequency response across the entire frequency band.
[0097] (2) Down Conversion: In a receiver, if the intermediate frequency (IF) signal obtained after mixing is lower than the original signal, 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-cost, it is widely used in civilian equipment and military equipment with low performance requirements.
[0098] (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 with a frequency 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.
[0099] (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 tracking of the output signal frequency to the input signal frequency. It is generally used in closed-loop tracking 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 it is 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, controlling 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.
[0100] (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 available for transmitting information across the entire channel into several time slices (or time slots) and allocates these time slots to each signal source.
[0101] (6) Time of Flight (ToF): In a broad sense, time-of-flight technology can be understood as a technique 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) to further understand certain properties of ions or media. ToF ranging is a two-way ranging technique 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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 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.
[0110] 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.
[0111] 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.
[0112] To better understand the embodiments of this application, the phase ranging technology is described below.
[0113] 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 (taking a single-frequency signal as an example, with frequency f) to device B, and device B measures the phase of the received carrier signal. Figure 2 As shown in (a) in the figure, 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., λ / 2), meaning device B is at position B, then the phase of the signal at position B lags behind by half a cycle (i.e., π) relative to the phase of the signal at position A. 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...
[0114] 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...
[0115] Furthermore, assume that the LO phase of transmitting device A and the LO phase of receiving device B are synchronized (i.e., If the phase values measured by the receiving device at positions B and B' are -π and -3π / 2, respectively, then the distances between the transmitting and receiving devices can be calculated from the measured phase values as λ / 2 and 3λ / 4, respectively. (λ is 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).
[0116] However, when applying the above phase ranging method in actual use, since the maximum working distance of this phase ranging method is only the wavelength λ (which is due to the effective phase range being [0, 2π)), for example, the wavelength in the traditional 2.4 GHz ISM band is only about 12 cm. Therefore, this method is only applicable to short-distance ranging scenarios, which limits the actual usage scenarios. 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.
[0117] Specifically, assuming that the two frequency points are f1 and f2 (f1 < f2) respectively, the measured phase values are and The relationship between the phase and the distance D is shown in the following Formula 1 and Formula 2 (c is the speed of light, and mod refers to taking the modulus):
[0118]
[0119]
[0120] Based on Formula 1 and Formula 2, the phase difference between and can be obtained as:
[0121]
[0122] The λ in the above Formula 3 V = c / (f2 - f1) can be regarded as a virtual wavelength, which determines the maximum usable distance of the ranging. When D < λ V [[ID=³²]]When, there is no need to perform modulus processing in the above Formula 3, [[ID=3³]]Then the distance can be obtained from Formula º as:
[0123]
[0124] If the two frequency points are separated by 1 MHz (i.e., f2 - f1 = 1 MHz), then λ V = 300 m. Therefore, the usable distance of ranging can be greatly increased by multi-frequency point phase ranging.
[0125] Next, the specific method architecture on which the embodiments of the present application are based will be described in detail.
[0126] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a phase ranging method in an embodiment of the present application. Next, in combination with the attached Figure 3 and based on the above Figure 1A ranging system architecture in, from the first transceiver (which can be Figure 1A device A in) and the second transceiver (which can be It should be noted that there seem to be some unclear or incorrect parts in the original text, such as the "³²" and "º" notations in the translation which might be errors in the original. But the translation is carried out as accurately as possible according to the rules. 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.
[0127] Step S201: The second transceiver generates a first multi-tone signal based on N first single-frequency signals.
[0128] 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.
[0129] 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: 2401MHz, 2402MHz, 2403MHz, and 2404MHz. 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 2405MHz, 2406MHz, 2407MHz, and 2408MHz.
[0130] 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.
[0131] 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 then the N RFLO signals generated by the N RFLOs can be used to 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.
[0132] 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 diagram shows the f-frequency of the second transceiver. c f1′ to f4′ are the frequencies of the four digital LOs (i.e., the preset frequency of the radio frequency local oscillator signal), respectively. The digital LOs transmit signals through... This is achieved using (i.e., the digital local oscillator signal, which is an IQ signal), where A is the amplitude and f is the oscillator signal. i This refers to the frequency of the digital LO. In this example, it should be ensured that f1′ to f4′ are respectively connected to f cThe 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, f... c If we set it to 2402.5MHz, then f1′ to f4′ are -1.5MHz, -0.5MHz, 0.5MHz, and 1.5MHz respectively; other combinations can also be chosen, such as setting f... c If we set it to 2402MHz, then f1′ to f4′ are -1MHz, 0MHz, 1MHz, and 2MHz respectively, without any restrictions. 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.
[0133] 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 N 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 N can be used to avoid being affected by interference; conversely, a larger N can be used to complete ranging more quickly.
[0134] Step S202: The second transceiver sends the first multi-tone signal to the first transceiver.
[0135] Specifically, if the second transceiver generates a multi-tone signal based on the above-mentioned multiple RFLOs, the local oscillator signals of the multiple RFLOs can be added together and sent to the first transceiver so that the first transceiver can simultaneously receive signals at multiple frequency points (i.e., multi-tone signals). For example, if the multi-tone signal includes two frequency points, f1 and f2, then RFLO1 in the second transceiver generates F(f1), and RFLO2 generates F(f2). F(f1) and F(f2) can be added together to obtain a multi-tone signal and sent to the first transceiver so that the first transceiver can simultaneously receive signals at multiple frequency points, i.e., the first multi-tone signal (including F(f1) and F(f2)). If the second transceiver generates a multi-tone signal using the aforementioned hybrid method, it can transmit a multi-frequency signal to the first transceiver via an RFLO. For example, if the multi-tone signal includes two frequency points, f1 and f2, 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 a baseband signal (e.g., F′(f′1, f′2)). Then, based on the RFLO's RF local oscillator signal, the baseband signal is up-converted to obtain the multi-tone signal (F(f′1+f′2)). c ,f′2+f c ),f′1+f c =f1,f′2+f c =f2), and send the multi-tone signal to the first transceiver, so that the first transceiver can receive signals from multiple frequency points at the same time.
[0136] 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.
[0137] 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.
[0138] Specifically, the frequency of the DC signal is 0. For example, such as Figure 6 As shown, Figure 6This 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 F(f1,f2). Since the first multi-tone signal is generated based on the single-frequency signal negotiated by the first transceiver and the second transceiver, the first transceiver can perform down-conversion processing on F(f1,f2) based on the single-frequency signal corresponding to f1 and the single-frequency signal corresponding to f2 to obtain F1(0,f2-f1) and F2(f1-f2,0), respectively. And two DC signals, F1(0) and F2(0), can be obtained by filtering.
[0139] 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 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 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 f1, f2, ..., f... N The second radio frequency local oscillator signal is an RFLO based on a preset frequency f. c The generated signal, such as Figure 5 In the middle, the RFLO of the first transceiver is based on f c The generated signal; N first digital local oscillator signals are N digital LOs based on f1-f c f2-f c ,…,f N -f c 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 F(f1,f2,…,f…) can be generated. N The signal is down-converted to obtain N DC signals, namely F1(0), F2(0), ..., F N (0).
[0140] 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 a multi-tone signal and a DC signal provided in an embodiment of this application. The diagram uses an example of a multi-tone signal containing two frequency points F(f1, f2) to illustrate the down-conversion process of the multi-tone signal. First, RFLO is based on a preset f... c The baseband signal F′(f1-f) is obtained by downconverting the multi-tone signal. c ,f2-f c The baseband signal is then fed to digital LO1 and digital LO2 for digital down-conversion processing. Taking the phase measurement of signal f2 as an example, after digital down-conversion, the frequencies of the two signals are f1-f2 and 0, respectively, and they are 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 diagram illustrates a digital down-conversion method provided in an embodiment of this application. Taking a multi-tone signal containing four frequency points as an example, f1′ to f4′ represent the frequencies of the four digital LOs. Taking the phase measurement of signal f3′ as an example, after digital down-conversion, the frequencies of the four signals are f1′-f3′, f2′-f3′, 0, and f4′-f3′, respectively, and they are mixed together. Further, to obtain the phase of the third signal, the down-converted signal can be averaged using IQ. The IQ accumulation period used is a common multiple of 1 / (f1′-f3′), 1 / (f2′-f3′), and 1 / (f4′-f3′). This cancels out the influence of other signals on the third signal, ensuring 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.
[0141] 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, adds these two RFLO signals to obtain the multi-tone signal, and transmits this multi-tone signal to the first transceiver. Then, the first transceiver 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 downconversion processing provided in an embodiment of this application. Taking a multi-tone signal F(f1,f2) that includes two frequency points as an example, RFLO1 in the first receiver generates a radio frequency local oscillator signal F(f1) based on a single-frequency signal with frequency f1, and performs downconversion processing on the received F(f1,f2) to obtain F1(0,f2-f1). Then, F1(0,f2-f1) can be filtered to obtain F1(0). Similarly, F2(0) can be obtained based on RFLO2 in the first transceiver.
[0142] Step S204: The first transceiver measures the first phase of each of the N DC signals to obtain a sequence of first phase values.
[0143] 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. 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. Assuming that the first multi-tone signal F(f1,f2) includes two frequency points, the first transceiver can down-convert F(f1,f2) to obtain two DC signals, F1(0) and F2(0). Further, the first transceiver measures the phases of F1(0) and F2(0) respectively to obtain the first phase value sequence, which includes the phase of F1(0). Phase of F2(0) 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
[0144] 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.
[0145] 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 take a single-frequency signal (frequency f) as an example, combined with... Figure 11 Please describe in detail how to eliminate the influence of the initial phase of the two devices. Figure 11 As shown, Figure 11This is a schematic diagram of device interaction provided in an embodiment of this application. In the diagram, a signal sent by device A at time t0 arrives at device B at time t0+Δ (where Δ = D / C, and Δ is the signal's transmission time), and device B measures the phase simultaneously. Then, device A becomes a receiving device, and device B becomes a transmitting device. A signal sent by device B at time t1 arrives at device A at time t1+Δ, and device A measures the phase simultaneously. During the above signal interaction, the phases at each time point are as follows:
[0146] At time t0, the phase of the signal transmitted by A (or the LO phase of A) is: in, It is the initial phase of the LO of device A.
[0147] At time t0+Δ, 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
[0148] At time t1, the phase of the signal transmitted by B (or the LO phase of B) is:
[0149] At time t1+Δ, the LO phase of A is At this moment, the signal phase from B to A is Therefore, after down-conversion, the phase measured by A is
[0150] Adding the phase measurements from the two devices above cancels out the influence of the initial phase, resulting in Formula 5:
[0151]
[0152] Furthermore, based on Formula 5, the flight time Δ of the signal can be calculated, thereby determining the distance between the devices.
[0153] 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.
[0154] To improve ranging accuracy, please refer to Figure 12 , Figure 12This 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.
[0155] 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.
[0156] Step S305: The first transceiver generates a second multi-tone signal based on the N first single-frequency signals.
[0157] 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.
[0158] 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.
[0159] Step S306: The first transceiver sends the second multi-tone signal to the second transceiver.
[0160] 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.
[0161] 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.
[0162] Specifically, each first single-frequency signal corresponds to a DC signal. For example, if the first multi-tone signal includes two frequency points, i.e., the first multi-tone signal is F(f1,f2), then the second multi-tone signal also includes signals G(f1,f2) of these two frequency points. Since the second multi-tone signal is generated based on the single-frequency signals negotiated between the first and second transceivers, the second transceiver can perform down-conversion processing on G(f1,f2) based on the single-frequency signals corresponding to f1 and f2 respectively to obtain G1(0,f2-f1) and G2(f1-f2,0), and can obtain two DC signals, G1(0) and G2(0), by filtering.
[0163] Step S308: The second transceiver measures the second phase of each of the N DC signals to obtain a sequence of second phase values.
[0164] 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. 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. Assuming that the second multi-tone signal G(f1,f2) includes two frequency points, the second transceiver can down-convert G(f1,f2) to obtain two DC signals, G1(0) and G2(0). Further, the first transceiver measures the phases of G1(0) and G2(0) respectively to obtain the second phase value sequence, which includes the phase of G1(0). Phase of G2(0) 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 .
[0165] 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.
[0166] 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. Before performing phase ranging, it is agreed that the multi-tone signal F(f1,f2) includes two frequency points, and the preset frequency of the RFLO is f. c The frequencies of the two numbers LO are f1′ and f2′, respectively, and f′1+f c =f1,f ′ 2+f c =f2. The signal transmitted by device A at time t0 arrives at device B at time t0+Δ (where Δ = D / C, Δ is the signal's transmission time), and simultaneously device B measures the phases of the multi-tone signal. Then device A becomes the receiving device, and device B becomes the transmitting device. The signal transmitted by device B at time t1 arrives at device A at time t1+Δ, and simultaneously device A measures the phases of the multi-tone signal. Taking the first signal in the multi-tone signal as an example (i.e., the signal with frequency f1), the corresponding phases at each time point are as follows:
[0167] 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; f c The default frequency for RFLO.
[0168] At time t0, the RFLO phase of A is The first number of A's LO phase is Therefore, the phase of the signal transmitted by A is
[0169] At time t0+Δ, the RFLO phase of B is The first number of B, LO phase, is At this time, 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:
[0170]
[0171] After digital down-conversion of the first digital LO, the phase of the first signal (i.e., the measured phase) is:
[0172]
[0173] At time t1, the RFLO phase of B is The first number of B, LO phase, is
[0174] Therefore, the phase of the signal sent by B is
[0175] At time t1+Δ, the RFLO phase of A is The first number of A's 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:
[0176]
[0177] After digital down-conversion of the first digital LO, the phase of the first signal (i.e., the measured phase) is:
[0178]
[0179] Adding the phase measurements from the two devices above cancels out the influence of the initial phase, resulting in Formula Six:
[0180]
[0181] Among them, f c +f1′ represents the frequency f1 of the first signal in the polyphonic signal. Formula six also applies to signals of other frequencies in the polyphonic signal (e.g., replacing f1′ with f2′). Similarly, by changing f... c By performing the aforementioned multi-tone signal interaction, the phase values of other frequency points can be obtained more quickly and used to calculate the signal flight time Δ (i.e., distance D).
[0182] 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.
[0183] 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).
[0184] 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 (b) in the figure is a signal phase and frequency relationship diagram in an embodiment of this application. The two devices in the figure use multi-tone signals to interact, so that phase measurement of multiple frequency points can be achieved in one interaction. Specifically, in the embodiment of this application, the multi-tone signal interaction method replaces the existing carrier signal (i.e., 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, then the embodiment of this application can reduce the number of signal interactions to 1 / N of the number required by the existing method, thereby reducing device power consumption, determining the distance between devices in a shorter time, and improving the ranging accuracy when the devices move.
[0185] 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:
[0186] 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.
[0187] 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.
[0188] 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).
[0189] 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;
[0190] 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;
[0191] 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.
[0192] 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 attribute 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.
[0193] The methods of the embodiments of this application have been described in detail above. The related apparatus of the embodiments of this application is provided below.
[0194] Please see Figure 18 , Figure 18 This is a schematic diagram of a first phase ranging device provided in an embodiment of this application. The first 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:
[0195] 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.
[0196] 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.
[0197] 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.
[0198] 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.
[0199] 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.
[0200] 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.
[0201] 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.
[0202] 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.
[0203] 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.
[0204] 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.
[0205] It should be noted that the functions of each functional unit in the first 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.
[0206] Please see Figure 19 , Figure 19 This is a schematic diagram of a second phase ranging device provided in an embodiment of this application. The second 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:
[0207] 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;
[0208] 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.
[0209] 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.
[0210] 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.
[0211] 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.
[0212] 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.
[0213] 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:
[0214] 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.
[0215] 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.
[0216] 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.
[0217] 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.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] 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.
[0222] 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.
[0223] 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.
[0224] 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.
[0225] 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:
[0226] 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;
[0227] 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.
[0228] 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.
[0229] 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.
[0230] 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.
[0231] 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.
[0232] 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.
[0233] 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.
[0234] 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.
[0235] 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.
[0236] 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.
[0237] 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.
[0238] 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.
[0239] 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.
[0240] 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 of other embodiments.
[0241] 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.
[0242] 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.
[0243] 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.
[0244] 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.
[0245] 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).
[0246] 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 phase ranging method, characterized in that, Applied to a first transceiver, the method includes: The system receives a first multi-tone signal transmitted by a second transceiver. The first multi-tone signal includes N first single-frequency signals, which are signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1. 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. The first 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 first phase of each of the N DC signals is measured 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; Based on the first phase value sequence, calculate the distance between the first transceiver and the second transceiver; The first multi-tone signal is down-converted based on each of the N first single-frequency signals to obtain N first DC signals, including: Based on the N first frequencies corresponding to the N first single-frequency signals, a second radio frequency local oscillator signal and 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 second radio frequency local oscillator signal to equal the N first frequencies. 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.
2. The method as described in claim 1, characterized in that, The method further includes: Based on the N first single-frequency signals, a second multi-tone signal is generated; The second multi-tone signal is sent 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 the 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 by combining the second phase value sequence.
3. The method as described in claim 1 or 2, characterized in that, The first multi-tone signal is down-converted based on each of the N first single-frequency signals to obtain N DC signals, including: Based on the N first frequencies corresponding to the N first single-frequency signals, N first radio frequency local oscillator signals are generated; wherein each first radio frequency local oscillator signal corresponds to a first frequency. The first multi-tone signal is down-converted based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.
4. The method as described in claim 1, characterized in that, The down-conversion processing of 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: The first multi-tone signal is down-converted 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. Based on each of the N first digital local oscillator signals, the first baseband signal is digitally down-converted to obtain the N DC signals.
5. The method as described in claim 4, characterized in that, The generation of the second multi-tone signal based on the N first single-frequency signals includes: The N first digital local oscillator signals are added together to obtain the second baseband signal; The second baseband signal is up-converted based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.
6. The method as described in claim 2, characterized in that, The method further includes: Based on the first phase value sequence and the second phase value sequence, the flight time of the signal between the first transceiver and the second transceiver is determined; Based on the flight time, the distance between the first transceiver and the second transceiver is determined.
7. The method as described in claim 1 or 2, characterized in that, The method further includes: A handshake process is performed with the second transceiver to negotiate the N first single-frequency signals for the phase ranging process.
8. The method as described in claim 1, characterized in that, The method further includes: Receives a carrier signal transmitted by the second transceiver, wherein the carrier signal is a single-frequency signal; Based on the carrier signal, the frequency offset between the first transceiver and the second transceiver is determined; the frequency offset is used to calibrate the frequency deviation between the first transceiver and the second transceiver.
9. A phase ranging method, characterized in that, Applied to a second transceiver, the method includes: A first multi-tone signal is generated 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 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; The first multi-tone signal is sent 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. The generation of the first multi-tone signal based on N first single-frequency signals includes: Based on the N first frequencies corresponding to the N first single-frequency signals, a first radio frequency local oscillator signal and 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. The N first digital local oscillator signals are added together to obtain the first baseband signal; The first baseband signal is up-converted based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.
10. The method as described in claim 9, 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, 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.
11. The method as described in claim 10, characterized in that, The method further includes: L first multi-tone signals are sent 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; The system receives 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 by combining the L second phase offset value sequences.
12. A phase ranging system, characterized in that, include: The first transceiver is used for: A first multi-tone signal is transmitted to M second transceivers respectively. The first multi-tone signal includes N single-frequency signals. The N first single-frequency signals are signals negotiated between the first transceiver and the M second transceivers. N and M are integers greater than 1. The wider the bandwidth of the interference band of the channel between the first transceiver and the second transceivers, the fewer the number N of the first single-frequency signals included in the first multi-tone signal. Each of the M second transceivers is used for: The first 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 first phase of each of the N DC signals is measured 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; Computing devices, used for; Based on the M first phase value sequences, calculate the distance between the first transceiver and each of the second transceivers; Each of the M second transceivers is specifically used for: Based on the N first frequencies corresponding to the N first single-frequency signals, a second radio frequency local oscillator signal and 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 second radio frequency local oscillator signal to equal the N first frequencies. 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.
13. A first transceiver, characterized in that, include: The radio frequency transceiver circuit is used to receive a first multi-tone signal transmitted by a second transceiver. The first multi-tone signal includes N first single-frequency signals, which are signals negotiated between the first transceiver and the second transceiver, where N is an integer greater than 1. 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. The baseband processor 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 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. The baseband processor is specifically used for: Based on the N first frequencies corresponding to the N first single-frequency signals, a second radio frequency local oscillator signal and 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 second radio frequency local oscillator signal to equal the N first frequencies. 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.
14. The first transceiver as described in claim 13, characterized in that, The baseband processor is also used to: generate a second multi-tone signal based on the N first single-frequency signals; The baseband processor is further configured to send 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 the 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.
15. The first transceiver as described in claim 13 or 14, characterized in that, The baseband processor is specifically used for: Based on the N first frequencies corresponding to the N first single-frequency signals, N first radio frequency local oscillator signals are generated; wherein each first radio frequency local oscillator signal corresponds to a first frequency. The first multi-tone signal is down-converted based on each of the N first radio frequency local oscillator signals to obtain the N DC signals.
16. The first transceiver as described in claim 13, characterized in that, The baseband processor is specifically used for: The first multi-tone signal is down-converted 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. Based on each of the N first digital local oscillator signals, the first baseband signal is digitally down-converted to obtain the N DC signals.
17. The first transceiver as described in claim 14, characterized in that, The baseband processor is specifically used for: The N first digital local oscillator signals are added together to obtain the second baseband signal; The second baseband signal is up-converted based on the second radio frequency local oscillator signal to obtain the second multi-tone signal.
18. The first transceiver as claimed in claim 14, characterized in that, The first transceiver also includes: The central processing unit is configured to determine the flight time of a 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.
19. The first transceiver as claimed in claim 13, characterized in that, The radio frequency transceiver circuit is also used to receive a carrier signal sent by the second transceiver, wherein the carrier signal is a single-frequency signal; The baseband processor is further configured to determine the 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.
20. A second transceiver, characterized in that, include: The baseband processor 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 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; A radio frequency transceiver circuit 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. The baseband processor is specifically used for: Based on the N first frequencies corresponding to the N first single-frequency signals, a first radio frequency local oscillator signal and 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. The N first digital local oscillator signals are added together to obtain the first baseband signal; The first baseband signal is up-converted based on the first radio frequency local oscillator signal to obtain the first multi-tone signal.
21. The second transceiver as described in claim 20, 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; wherein each first single-frequency signal corresponds to one DC signal. The baseband processor is further configured to measure 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 by combining the second phase value sequence.
22. The second transceiver as described in claim 21, characterized in that, The radio frequency transceiver circuit is also used for: L first multi-tone signals are sent 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; The system receives 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.
23. 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-8, or, when executed by a processor, implements the method described in any one of claims 9-11.
24. A computer program product, characterized in that, A 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-8, or cause the computer to perform the method as described in any one of claims 9-11.
Citation Information
Patent Citations
Method and system for signal synchronization between receiver-transmitter and instrument
CN1707980A
Time / angle of arrival measurement using narrowband signals
US20200166631A1