Hello, I believe I am. fabri...@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 # explanation : http://www.gnuradio.eu/examples/BasicHF/BasicTx.html 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, 0) # 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: fabri...@ftdev:~/GNURadio/tmp$ ./BasicTX.py usrp: failed to find usrp[0] Traceback (most recent call last): File "./BasicTX.py", line 41, in <module> 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: 1) 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. 2) Command ls -lR /dev/bus/usb | grep usrp does not work anymore 3) 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) 4) 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 On Wed, Feb 17, 2010 at 9:27 PM, Eric Blossom <[email protected]> wrote: > On Wed, Feb 17, 2010 at 10:04:47AM +0100, Fabrizio Tappero wrote: >> Hello, >> I am new in the GNU Radio community and I am looking for some help to >> get started. >> >> I have installed Linux Ubuntu 9.10 (Karmic Koala) as Virtual Box host >> in OS X 10.5.8. >> following the "Getting Started" indications from: >> http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall >> >> I successfully installed GNURadio 3.2.2 from the binary of >> deb http://gnuradio.org/ubuntu stable main >> >> by issuing ls -lR /dev/bus/usb | grep usrp I get: >> crw-rw---- 1 root usrp 189, 2 2010-02-17 09:40 003 >> >> Which might mean that all went well. However following up the Ubuntu >> Install indications in >> http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall >> >> if I do: >> >> cd /usr/share/gnuradio/examples/python/usrp >> ./usrp_benchmark_usb.py >> >> I unfortunately get this: >> Testing 2MB/sec... usrp: failed to find usrp[0] > > Are you in group usrp? > > (Use the id or groups command to check.) > > Eric > _______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
