discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] cannot detect USRP2 on ubuntu 9.10 whatsoever...v


From: yyl
Subject: Re: [Discuss-gnuradio] cannot detect USRP2 on ubuntu 9.10 whatsoever...various solutions adopted...
Date: Fri, 31 Dec 2010 17:04:54 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

On 12/31/2010 01:34 AM, Nick Foster wrote:
Verify that the ethernet card (and cable) work with another device such
as a network switch. The USRP2 should work with any gigabit Ethernet
card supported in Linux.

--n

On Thu, 2010-12-30 at 20:23 +0800, yyl wrote:
On 12/22/2010 02:10 AM, Nick Foster wrote:
If the ethtool output you provided is with the USRP2 plugged in and
turned on, then your ethernet card isn't detecting a link. If another
computer works fine with that same USRP2, I suspect the ethernet cable
or your ethernet card as the culprit. You might also try:

sudo ifconfig eth0 up

and see if that affects the result of your ethtool output.

--n

On Tue, 2010-12-21 at 11:34 +0800, yulong yang wrote:
Hi all,

I am new to gnuradio and stuck with the usrp2 connection for several
days... I looked up tens of search results but no solution yet.
Therefore I post my problem and hope someone could give me a hand:

I am running gnu radio 3.2.2 on ubuntu9.10, and I think gnuradio works
fine because dial_tone.py and grc all could be launched correctly.
However, when I plug in USRP2, problems happen:

if I typed in "sudo find_usrps" it says: No USRP2 found.

if I typed "sudo find_usrps -e eth0" it also says No USRP2 found.
(eth0 is what I get when typing in ifconfig)

if I typed in "sudo usrp2_fft.py" t says:

Traceback (most recent call last):
    File "/usr/local/bin/usrp2_fft.py", line 273, in<module>
      main ()
    File "/usr/local/bin/usrp2_fft.py", line 269, in main
      app = stdgui2.stdapp(app_top_block, "USRP2 FFT", nstatus=1)
    File
"/usr/local/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/local/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/local/lib/python2.6/dist-packages/gnuradio/wxgui/stdgui2.py",
line 60, in __init__
      self.panel = stdpanel (self, self, top_block_maker)
    File
"/usr/local/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 "/usr/local/bin/usrp2_fft.py", line 70, in __init__
      self.u = usrp2.source_32fc(options.interface, options.mac_addr)
    File "/usr/local/lib/python2.6/dist-packages/gnuradio/usrp2.py",
line 644, in source_32fc
      return _usrp2.source_32fc(*args, **kwargs)
RuntimeError: No USRPs found on interface eth0


What exactly the problem is?
TO note:
1. python is fine. I ran following process and it did not say error:
    Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15)
    [GCC 4.4.1] on linux2
    Type "help", "copyright", "credits" or "license" for more
information.
    >>>   from gnuradio import gr
    >>>   from gnuradio import usrp
    >>>   from gnuradio import audio
    >>>   from gnuradio import usrp2
    >>>   exit()

2. could it be the firmware in usrp2? I saw some threads discussing
firmware in SD card. But it seems to run process like usrp2_fft.py
dose not need any firmware.

3. my usrp2 runs fine. I checked it with another computer which could
launch usrp_fft.py correctly. Also, when I power on usrp2, all 6
lights flah and then D and F remain on.

4. my ethernet card should be fine. it is gigabit. here is what it
says when I type in "sudo ethtool eth0":

     Settings for eth0:
      Supported ports: [ TP ]
      Supported link modes:   10baseT/Half 10baseT/Full
                              100baseT/Half 100baseT/Full
                              1000baseT/Full
      Supports auto-negotiation: Yes
      Advertised link modes:  10baseT/Half 10baseT/Full
                              100baseT/Half 100baseT/Full
                              1000baseT/Full
      Advertised auto-negotiation: Yes
      Speed: Unknown!
      Duplex: Unknown! (255)
      Port: Twisted Pair
      PHYAD: 1
      Transceiver: internal
      Auto-negotiation: on
      Supports Wake-on: pumbag
      Wake-on: g
      Current message level: 0x00000001 (1)
      Link detected: no


I am really confused and find no solution on my own. Any suggestion
would be greatly appreciated. I will wait online and provide any
additional information if you need.
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
sorry for the late response, I have been working on ubuntu for several
days. Thank you for your reply. I just tried this command and nothing
happened, I got the same result as previous.
Could the ethernet card be too new for usrp2 to recognize? I am confused
because I have done every step mentioned in build guide and ran grc well.


I find that the usrp2 could be found when I run wireshark. I searched this question and found a thread talking about that maybe the broadcast and multi-cast function of my ethernet card are closed by default, when wireshark is running it opens them(they say it is under the promiscuous mode) so usrp2 could be detected and ran files like usrp2_fft.py successfully.

I am out of lab for now but I will return 2 days later and test the ethernet card.

Thank you for your quick reply and happy new year in advance:)



reply via email to

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