Hello,
I believe I am.
fabrizio@ftdev:~$ id fabrizio
uid=1000(fabrizio) gid=1000(fabrizio)
groups=1000(fabrizio),4(adm),20(dialout),24(cdrom),46(plugdev),104(lpadmin),115(admin),120(sambashare),1001(usrp)
Could you please suggest what can be the most basic technique to
understand whether the whole GNU radio installation plus USRP HW is
properly functioning? Right now I am having the basicTx connected to
an oscilloscope and I am trying to generate a simple signal with this
python code:
#!/usr/bin/python
Title : BasicTX.py
Function : Create test signal on the BasicTX / BasicHF Daughter
board
Author : Pascal Schiks (C) 2008 gnu/gpl
from gnuradio import gr
from gnuradio import usrp
from gnuradio.wxgui import stdgui2, fftsink2
Main Graph
class pmr_graph(stdgui2.std_top_block):
# Constructor
def init(self, frame, panel, vbox, argv):
stdgui2.std_top_block.init(self, frame, panel, vbox, argv)
tx_frequency = 7050000
usrp_tx_rate = 128000000
usrp_tx_interpolation = 400
tx_side = 1
tx_dev = 1
# Transmitter
usrp_tx_sample_rate = usrp_tx_rate / usrp_tx_interpolation
usrp_tx = usrp.sink_c(which=0, interp_rate=usrp_tx_interpolation)
mux = usrp.determine_tx_mux_value(usrp_tx,(tx_side,tx_dev))
usrp_tx.set_mux(mux)
usrp_tx_subdev = usrp.selected_subdev(usrp_tx,(tx_side,tx_dev))
usrp_tx.tune(0,usrp_tx_subdev, tx_frequency)
# rf
rf = gr.sig_source_c(usrp_tx_sample_rate, gr.GR_SIN_WAVE,500,16000,
-
# Connect all
self.connect(rf, usrp_tx)
Main caller program
if name == ‘main’:
aplication = stdgui2.stdapp(pmr_graph,“BasicTX”)
aplication.MainLoop()
This is the error I get:
fabrizio@ftdev:~/GNURadio/tmp$ ./BasicTX.py
usrp: failed to find usrp[0]
Traceback (most recent call last):
File “./BasicTX.py”, line 41, in
aplication = stdgui2.stdapp(pmr_graph,“BasicTX”)
File “/usr/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7978, in init
self._BootstrapApp()
File
“/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7552, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File “/usr/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File “/usr/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 60, in init
self.panel = stdpanel (self, self, top_block_maker)
File “/usr/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py”,
line 81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “./BasicTX.py”, line 26, in init
usrp_tx = usrp.sink_c(which=0, interp_rate=usrp_tx_interpolation)
File “/usr/lib/python2.6/dist-packages/gnuradio/usrp/usrp_swig.py”,
line 2412, in sink_c
return _usrp_swig.sink_c(*args, **kwargs)
RuntimeError: can’t open usrp
Here is what I have noticed:
- the green led in the USRP is still blinking fast => proper firmware
is no properly uploaded. In fact the ID of the USB port is still the
generic one.
- Command ls -lR /dev/bus/usb | grep usrp does not work anymore
- unlike what suggested in GNU Radio website installation
(http://gnuradio.org/redmine/wiki/1/DebianPackages), the command
usrper seems to be missing in the ubuntu installation (that you get
using deb http://gnuradio.org/ubuntu stable main)
- I tried the command “lsusrp” nd the result is:
usrp_open_interface:usb_set_alt_interface: failed
could not set alt intf 0/0: Connection timed out
open_nth_cmd_interface: open_cmd_interface failed
usrp: failed to load firmware /usr/share/usrp/rev4/std.ihx.
usrp: failed to find usrp[1]
usrp: failed to find usrp[2]
usrp: failed to find usrp[3]
usrp: failed to find usrp[4]
usrp: failed to find usrp[5]
usrp: failed to find usrp[6]
usrp: failed to find usrp[7]
I see to understand that the problem is in the USB connection. Any
suggestion on how to fix it? I am a little lost …
Thank you in advance
Fabrizio