Forum: GNU Radio Getting the usrp and gnuradio going... Problems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A16a14fc32c0d269bb6211c36ded4eb0?d=identicon&s=25 Bob Cameron (Guest)
on 2007-03-18 00:36
(Received via mailing list)
Hi all

SuSE 10.1, Subversion as of a day or two ago, sdcc built from source.
USRP box arrived here two days ago..

Configure/build of gnuradio worked fine after I grabbed all the right
packages. The SuSE instruction kind of has the wrong python path
specified but that was easy to fix. I have done the udev/hotplug mod but
am running as root whilst I work the problem.

Can turn LED on and off with usper. The USB info in /var/log/messages
looks fine.

I have plugged in a basic and 0-50MHz RX in RX A. In a fit of problem
solving I additionally plugged a basic RX into RX B.

When I try to run;

Type "cd gnuradio-examples/python/usrp" and hit Enter. Type "python
test_counting.py" and hit Enter.

The LED rate slows down and maybe 10 seconds later I get a error dump;

usrp_open_interface:usb_claim_interface: failed interface 2
could not claim interface 2: No such file or directory
usrp_basic_rx: can't open rx interface
Traceback (most recent call last):
  File "test_counting.py", line 53, in ?
    main ()
  File "test_counting.py", line 46, in main
    fg = build_graph ()
  File "test_counting.py", line 36, in build_graph
    usrp_rx = usrp.source_s (0, rx_decim, 1, 0x32103210,
usrp.FPGA_MODE_COUNTING)
  File "/usr/local/lib/python2.4/site-packages/gnuradio/usrp.py", line
266, in __init__
    fpga_filename, firmware_filename)
  File "/usr/local/lib/python2.4/site-packages/gnuradio/usrp1.py", line
1547, in source_s
    return _usrp1.source_s(*args)
RuntimeError: std::runtime_error

At this stage the LED rate is still slow. If I resubmit the command the
error dump is immediate.

As with all error messages one must look at the first one. One assumes
"Failed Interface" means it cant talk to the RX but I'd like some
thoughts on this.. Is it USB related? I saw quite a few postings on that
topic but could sort anything specific. USB related modules loaded are;

usblp                  12544  0
usb_storage            69952  1
scsi_mod              121992  3 sg,sd_mod,usb_storage
usbcore               108804  4 usblp,usb_storage,ohci_hcd
ide_core              115900  4 usb_storage,ide_cd,sis5513,ide_disk

The printer  is one of those HP All-In-One things with a front panel USB
port/flash card holder. I have yet tried to run the USRP without the
printer attached.

Maybe there needs to be a /dev entry somewhere (Thinking "No such file
or directory")

I also saw a post about checking the firmware existed in
/usr/local/share/usrp/rev4 and rev2. The filename the post had and what
I have are different! (The post was back in 2005 though)

Any thoughts or guidance appreciated

Cheers Bob W5/VK2YQA
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-03-18 02:13
(Received via mailing list)
On Sat, Mar 17, 2007 at 06:34:51PM -0500, Bob Cameron wrote:
> Can turn LED on and off with usper. The USB info in /var/log/messages
> The LED rate slows down and maybe 10 seconds later I get a error dump;
>
> usrp_open_interface:usb_claim_interface: failed interface 2
> could not claim interface 2: No such file or directory
> usrp_basic_rx: can't open rx interface

This happens when either your machine doesn't have a USB2 controller
(EHCI) or when the EHCI module isn't loaded.

On one of my SuSE 10.1 machines I get this:

[eb@cyan mail]$ lsmod | grep -E '(usb|ehci)'
usbhid                 44640  0
ehci_hcd               31880  0
usbcore               115716  4 usbhid,ehci_hcd,uhci_hcd




[eb@cyan mail]$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and
945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile
945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML
Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI
Controller (rev 02)  <-- the EHCI controller
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface
Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family)
Serial ATA Storage Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller
(rev 02)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet
Controller
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG
Network Connection (rev 02)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller
(rev 09)
15:00.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host
Adapter (rev 18)


Eric
This topic is locked and can not be replied to.