|
From: | Mattia Rizzi |
Subject: | Re: [Discuss-gnuradio] USRP for two way ranging |
Date: | Wed, 27 Jul 2011 12:27:53 +0200 |
Thank you all.
Perphas my idea was not explained very well.
The basic assumption is that i can calculate time since i can count
samples.
If i receive an echo starting from RX sample nr. 12000 and another echo
starting from sample nr. 13230, then i can say that the time between two echo is
1230*Ts.
The problem was how to time-correlate between the rx stream and the tx
stream from USRP.
Let’s assume (for clarity) that USRP1 has 64Ms/s ADC and 64 Ms/s DAC.
Before starting acquisition&transmission, i pre-fill the tx buffer of
the USRP with some dummy samples (preventing underflows) and set
rx_sample_counter = 0; tx_sample_counter=1000 (dummy samples).
At t=0 i start acquisition&transmission.
After Ts, the first incoming sample is sampled and the first rx sample is
transmitted.
So, i detect an echo starting from sample nr.12000 and i prepare a reply. I
prepare the samples for transmission, looking tx_sample_counter and with a
simple subtraction i can calculate the time elapsed between the acquisition of
sample nr.12000 and the departure of the first sample associated to the
reply.
It can’t work?
From: Kunal Kandekar
Sent: Wednesday, July 27, 2011 4:27 AM
To: Colby Boyer
Cc: Mattia Rizzi ; address@hidden
Subject: Re: [Discuss-gnuradio] USRP for two way
ranging Also, take a look at this brief related discussion from a few weeks ago:
http://lists.gnu.org/archive/html/discuss-gnuradio/2011-06/msg00103.html
Kunal
On Tue, Jul 26, 2011 at 8:49 PM, Colby Boyer <address@hidden> wrote:
You would need a very very accurate real time guarantee on how long it would take to process/detect an echo, and then to respond to it. To my knowledge the GNURadio framework cannot make that guarantee, in general. I would not try to depend on getting an accurate time for signal processing delay and Linux delay. |
[Prev in Thread] | Current Thread | [Next in Thread] |