Forum: GNU Radio Bad address

62c6afe77dc83ea1bbb16ff0b2a5a88d?d=identicon&s=25 sumitstop (Guest)
on 2013-08-14 01:42
(Received via mailing list)
Yesterday I made a VM with Ubuntu 10.04 and installed gnuradio
(3.6.5.1).

*uhd_find_devices is working fine *

$ uhd_find_devices
linux; GNU C++ version 4.4.3; Boost_104000;
UHD_003.005.003-123-g1c391767

--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
    type: usrp1
    name: node_4
    serial: 4d9e2cab

*lsusb gave this *

$ lsusb
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID fffe:0002
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

*While uhd_fft is throwing this error*

$ uhd_fft
linux; GNU C++ version 4.4.3; Boost_104000;
UHD_003.005.003-123-g1c391767

-- Opening a USRP1 device...
-- Using FPGA clock rate of 64.000000MHz...
Bad address
Traceback (most recent call last):
  File "/usr/local/bin/uhd_fft", line 345, in <module>
    main ()
  File "/usr/local/bin/uhd_fft", line 341, in main
    app = stdgui2.stdapp(app_top_block, "UHD FFT", nstatus=1)
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py",
line 38, 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/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py",
line 42, in OnInit
    self._max_noutput_items)
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py",
line 64, in __init__
    self.panel = stdpanel (self, self, top_block_maker, max_nouts)
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py",
line 86, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "/usr/local/bin/uhd_fft", line 95, in __init__
    self.sink = gr.file_sink(gr.sizeof_gr_complex, options.to_file)  #
creating file sink
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_io.py",
line 457, in file_sink
    return _gnuradio_core_io.file_sink(*args, **kwargs)
RuntimeError: can't open file


What does it mean by "Bad Address"

Yesterday it was running fine. Any pointers ?

I tried resetting usb port with a custom script but that dint help.

Rest other scripts are working fine. bencmark_tx, benchmark_rx
everything
working. Only uhd_fft is painful.

Strange thing is that when I made a grc for viewing fft with QT, it is
working well without any errors.






--
View this message in context:
http://gnuradio.4.n7.nabble.com/Bad-address-tp43138.html
Sent from the GnuRadio mailing list archive at Nabble.com.
558c40b97bd1af8d912424757714bda9?d=identicon&s=25 Marcus D. Leech (Guest)
on 2013-08-14 01:52
(Received via mailing list)
On 08/13/2013 07:01 PM, sumitstop wrote:
> Device Address:
> Bus 001 Device 005: ID fffe:0002
> Traceback (most recent call last):
>    File "/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
>      self.top_block = top_block_maker (frame, self, vbox, sys.argv)
> What does it mean by "Bad Address"
>
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
Why does uhd_fft have a file_sink in it?



--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
62c6afe77dc83ea1bbb16ff0b2a5a88d?d=identicon&s=25 sumitstop (Guest)
on 2013-08-14 02:26
(Received via mailing list)
(Face palm) !! I should have seen this before. Actually I make a sink to
get
the data dumped for offline analysis. And while running dint put the
argument for the file path.... Epic mistake
Shall put an if-else for running without sink too.






--
View this message in context:
http://gnuradio.4.n7.nabble.com/Bad-address-tp4313...
Sent from the GnuRadio mailing list archive at Nabble.com.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.