[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] simultanuous receive and transmit on USRP2 in C++, ma
From: |
Martin DvH |
Subject: |
[Discuss-gnuradio] simultanuous receive and transmit on USRP2 in C++, maybe use threads |
Date: |
Tue, 09 Mar 2010 02:34:32 +0100 |
Hi All,
I am building an application where I simultanuously want to receive and
transmit using the USRP2.
Since I also need the timestamps, I implement this using C++.
(Building my own filewriter class which extends usrp2::rx_nop_handler,
like in rx_streaming_samples.cc)
Should I use threads to keep TX and RX from interfering with each other.
With threads I could just start the RX thread and TX thread.
If I don't use threads I have to interleave sending and receiving
packets.
Is there an example I could look at.
I now based my code on :
usrp2/host/apps/rx_streaming_samples.cc
and
usrp2/host/apps/tx_samples.cc
I know gnuradio has its own support code for threads, but I couldn't
find an easy example on how to use it.
Best Regards,
Martin
- [Discuss-gnuradio] simultanuous receive and transmit on USRP2 in C++, maybe use threads,
Martin DvH <=