discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] [USRP-users] Possible to use stream tagging featu


From: Josh Blum
Subject: Re: [Discuss-gnuradio] [USRP-users] Possible to use stream tagging features to implement RX sample bursts after a TX burst?
Date: Fri, 24 Jun 2011 16:02:30 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

> Maybe a better solution would be to use the UHD stream commands? Is it
> possible to issue a sequence of stream commands and have them executed
> serially by the USRP?
> 
> Example:
> * Issue command to send Z samples at clock value M
> * Issue command to receive X samples at clock value N
> * Issue command to send Y samples immediately based on the decoded received
> samples
> 

You can absolutely do this. For send, this is an issue of tagging the
stream with times and with start/end of burst. For receive, its done
through issuing stream commands, we would need to swig up the
issue_stream_command() call in the source block:
http://www.ettus.com/uhd_docs/doxygen/html/structuhd_1_1stream__cmd__t.html

One thing to point out:
The gr-uhd source block expects samples to keep coming or it times out
(something like a 1 second timeout). So there needs to be a way to block
the source block's work function when its not reasonable to be receiving
any samples. A simple solution might be to implement a mode where the
source block continually re-tries after each timeout as long as the
block has not been stopped (stop() called).

-josh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]