Basically I want to do following things on one usrp node.
- receive packets from one other node
- relay the packets received
- transmit packets generated locally
So my idea is to get the packets through usrp_src and receive_path, then
the received packets and locally generated packets together into
use send_pkts() to sendout packets through transmit_path and usrp_snk.
There are several problems I am facing now(sorry, I am not a good
maybe they are silly questions):
I am trying to use different threads to receive packets and transmit
packets. Although I used “global killed” and “sys.exit(1)” to make sure
threads exit when Ctrl-C pressed, it won’t abort to the command line.
As I said I need to combine received packets and locally generated
at transmitting, but I didn’t figure out how to achieve that. I am
make a global variable payload_all, and just throw every packets into
then use send_pkts to transmit the payload while receiving packets from
in another thread. Is that possible?
The blocks transmit_path and receive_path I think are both having
connector in the graph. Is there any easy way to connect these two
is there any other blocks that I can use to make this kind of
Any related suggestion will be appreciated.
I posted my small test codes
you can take a look at it and give me some suggestion, that will be
Thanks a lot.