'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
(http://old.nabble.com/Full-duplex-and-half-duplex-doesnot-work-td27226209.html)
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
file
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
following
error:

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
main()
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,
options)
File
“/home/usuariogrcm/Desktop/gnuradio/examples/usrp/usrp_transmit_path.py”,
line 67, in init
self._setup_usrp_sink(options)
File
“/home/usuariogrcm/Desktop/gnuradio/examples/usrp/usrp_transmit_path.py”,
line 76, in _setup_usrp_sink

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

Thanks in advance


View this message in context:
http://old.nabble.com/'Failed-to-automatically-setup-a-usrp-device'-running-benchmark_{rx-tx}.py-tp30748066p30748066.html
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