Switching in real-time from USRP Source to USRP Sink

Hello GR,

Did anyone tried once to code a kind of event-driven switch which
applies on
the USRP blocks.
Let’s say I need to switch the sink and the source in real time (and by
the
way the linked blocks two will be switched) giving a certain event
trigger.

Do I need to code two different GR flow graphs and switch between them
whenever I got the trigger event in other words I need to implement a
state
machine ?

Any explanations are welcome.
Naceur.


View this message in context:
http://gnuradio.4.n7.nabble.com/Switching-in-real-time-from-USRP-Source-to-USRP-Sink-tp45794.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On 01/17/2014 10:07 PM, Naceur wrote:

Did anyone tried once to code a kind of event-driven switch which applies on
the USRP blocks.
Let’s say I need to switch the sink and the source in real time (and by the
way the linked blocks two will be switched) giving a certain event trigger.

Do I need to code two different GR flow graphs and switch between them
whenever I got the trigger event in other words I need to implement a state
machine ?

Hi Naceur,

maybe not, depending on your app. There’s no way to turn any source into
a sink, but you can have both in a single flowgraph. Also, you don’t
have to stream into a sink. So perhaps this’ll work: Add both a sink
and source to the flow graph, and only produce tx samples when your app
needs to. Your only problem now is that you will rx artifacts from your
own signal from the UHD source. You could switch the source off, but it
might be easier to add some code that simply ignores any rx signals
while you’re tx’ing.

MB

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs