Hi everyone,
I am using USRP, with RFX2400 daughter, and Linux system.
I am trying to implement an echo back system where one Transceiver (say
Master) will transmit a frame to other transceiver (say Slave). The
Salve
returns the frame immediatelly without any processing to Master.
On Master side following is the flow control:
tx = send()
tx.run()
tx.stop()
rx = receive(options.payload_size, options.data_rate,
options.gain,options.no_gui)
rx.start()
while (rx.is_running and flag)
if (data is received):
flag = 0
rx.stop()
On Slave side following is the flow control:
rx = receive(options.payload_size, options.data_rate,
options.gain,options.no_gui)
rx.start()
while (rx.is_running and flag)
if (data is received):
flag = 0
rx.stop()
tx = send()
tx.run()
tx.stop()
The problem which I am facing is the following error on Master side
after
one complete cycle (i.e. Master transmit, and then start receiving, and
after receing when it try to go back to transmit mode this error is
generated)
“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 “./tx_Master.py”, line 336, in
main ()
File “./tx_Master.py”, line 295, in main
tx = send(options.payload_size, data, options.data_rate,
options.gain)
File “./tx_Master.py”, line 125, in send
u = usrp.sink_c (0, usrp_interp)
File “/usr/local/lib/python2.5/site-packages/gnuradio/usrp.py”, line
212,
in init
fpga_filename, firmware_filename)
File “/usr/local/lib/python2.5/site-packages/gnuradio/usrp1.py”, line
710,
in sink_c
return _usrp1.sink_c(*args)
RuntimeError: can’t open usrp1”
On receive side after one complete cycle (Receive then Transmit then
Receive->Error) error is received for receive interface i.e “can’t open
tx
interface”, remaining description of error is same.
Can some one help me to solve this error.
If some one wants to have a look at code then complete code is attached.
Thanks
Kaleem Ahmad http://www.nabble.com/file/p19491587/tx_Master.py
tx_Master.py
http://www.nabble.com/file/p19491587/rx_Slave.py rx_Slave.py
View this message in context:
http://www.nabble.com/Error-%3A-usb_claim_interface%3A-failed-interface-1-tp19491587p19491587.html
Sent from the GnuRadio mailing list archive at Nabble.com.