discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] 'Failed to automatically setup a usrp device' running


From: Lebowski80
Subject: [Discuss-gnuradio] 'Failed to automatically setup a usrp device' running benchmark_{rx/tx}.py
Date: Mon, 24 Jan 2011 08:55:51 -0800 (PST)

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 <module>
    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/%27Failed-to-automatically-setup-a-usrp-device%27-running-benchmark_%7Brx-tx%7D.py-tp30748066p30748066.html
Sent from the GnuRadio mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]