[USRP-users] Simultaneous TX and RX from the UHD

Marcus D. Leech patchvonbraun at gmail.com
Sun Jan 26 12:47:49 EST 2020

On 01/26/2020 06:57 AM, Varban Metodiev via USRP-users wrote:
> Dear USRP Community,
> I need to do a realistic loopback TX-RX communication (via a feeder 
> and attenuator) of my B205mini device.
> I took the examples from tx_samples_c.c and rx_samples_c.c, and tried 
> running them as two different POSIX threads. However, this way I could 
> get only transmission working, without any reception. When trying from 
> GNU Radio - both the source and sink modules work simultaneously 
> without any problem, meaning that I have done something really wrong 
> in my approach...
> Could you please advise what is the correct structural pattern for 
> simultaneous RX and TX on a single USRP device via the UHD framework?
> Best regards,
> Varban

There's an example that does this:


You can look at the source code of that example to get some ideas of how 
to properly structure such a thing.

More information about the USRP-users mailing list