'Failed to automatically setup a usrp device' running benchmark_{rx/tx}.py

Hello everyone,

I already read another post regarding a same problem as mine
but unfortunately I still don’t understand how to solve it. I’m modified
benchmark code to receive a file by benchmark_rx and and to send it to
another USRP by benxhmark_tx. I run benchmark_rx that wait for the file
in a
certain frequency. When the file is received in the same code I put the
following python code to run benchmark_tx with the aim to send such a
to another USRP:

p = Popen(‘python benchmark_tx.py’, shell = True)

The python code is correct, the file is received correctly but when in
benchmark_rx the code to run benchmark_tx is executed I get the

usrp_open_interface:usb_claim_interface: failed interface 1
could not claim interface 1: Device or resource busy
usrp_basic_tx: can’t open tx interface
Traceback (most recent call last):
File “benchmark_tx.py”, line 147, in
File “benchmark_tx.py”, line 107, in main
tb = my_top_block(mods[options.modulation], options)
File “benchmark_tx.py”, line 44, in init
self.txpath = usrp_transmit_path.usrp_transmit_path(modulator,
line 67, in init
line 76, in _setup_usrp_sink

Can someone help me to solve it? I understand that between benchmark_rx
benchmark_tx I have to make the usb free but I don’t know how, the only
to do that seems removing and putting back the usb but I need to do that
the code.

Thanks in advance

View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.

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