discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] USRP2-No USRPs found on interface eth0


From: Brook Lin
Subject: Re: [Discuss-gnuradio] USRP2-No USRPs found on interface eth0
Date: Wed, 27 Jan 2010 16:02:08 -0800 (PST)

Thanks, Tim. The error I got is

~/gnuradio/gnuradio-examples/python/usrp2$ sudo ./usrp2_wfm_rcv.py -e eth0
Traceback (most recent call last):
  File "./usrp2_wfm_rcv.py", line 274, in <module>
    app = stdgui2.stdapp (wfm_rx_block, "USRP2 WFM RX")
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 36, in __init__
    wx.App.__init__ (self, redirect=False)
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7836, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 7433, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 39, in OnInit
    frame = stdframe (self.top_block_maker, self.title, self._nstatus)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 60, in __init__
    self.panel = stdpanel (self, self, top_block_maker)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py",
line 81, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "./usrp2_wfm_rcv.py", line 69, in __init__
    self.u = usrp2.source_32fc(options.interface, options.mac_addr)
  File "/usr/local/lib/python2.5/site-packages/gnuradio/usrp2.py", line 501,
in source_32fc
    return _usrp2.source_32fc(*args, **kwargs)
RuntimeError: No USRPs found on interface eth0

The output of ifconfig |grep eth is 
"eth0      Link encap:Ethernet  HWaddr 00:17:a4:eb:e0:ee "

And I also tried what you mentioned above. However, I still had the same
error. Any advice?

Thanks,
Brook


Tim Pearce-2 wrote:
> 
> Immediately above "Traceback (most recent call last):" in the command
> window
> is there any error?
> 
> The most common I get are:
> 
> address@hidden:~$ usrp2_fft.py
> *eth0: SIOCGIFINDEX: No such device*
> 
> or
> 
> address@hidden:~$ usrp2_fft.py -e eth1
> *socket(PF_PACKET, SOCK_RAW, htons(0xBEEF)): Operation not permitted
> eth1: socket: No such file or directory*
> 
> ----
> 
> In the former case for some reason my ubuntu install randomly changed eth0
> to eth1 , run ifconfig and try:
> 
> usrp2_fft.py -e ethX
> 
> where X is the number listed in `ifconfig | grep eth`
> 
> If you get the second error for some reason usrp2_socket_opener has lost
> permissions (or you've been running as root when it worked in the past)
> 
> sudo chmod +s /usr/bin/usrp2_socket_opener
> 
> Should fix this problem.
> 
> Last idea is if you've tried the VRT firmware/gnuradio code on the other
> PC
> -- the control packets have changed in this release so wont work with
> stock
> git/packaged gnuradio versions.
> 
> Cheers,
> 
> Tim
> 
> On Wed, Jan 27, 2010 at 8:31 PM, Brook Lin <address@hidden> wrote:
> 
>>
>> Hi All,
>>
>> I'm testing my USRP2. I run ./usrp2_fft.py and ./usrp2_wfm_rcv.py, both
>> worked fine. However, I got an error now, "RuntimeError: No USRPs found
>> on
>> interface eth0". I didn't change anything on this computer. I connect the
>> USRP2 on another computer, all work fine. Could anyone advise me on how
>> to
>> solve this problem? What causes this error? Thanks in advance.
>>
>> -Brook
>>
>> --
>> View this message in context:
>> http://old.nabble.com/USRP2-No-USRPs-found-on-interface-eth0-tp27346326p27346326.html
>> Sent from the GnuRadio mailing list archive at Nabble.com.
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://old.nabble.com/USRP2-No-USRPs-found-on-interface-eth0-tp27346326p27349005.html
Sent from the GnuRadio mailing list archive at Nabble.com.





reply via email to

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