discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] usb_claim_interface Invalid argument error


From: EDWARD HALL
Subject: Re: [Discuss-gnuradio] usb_claim_interface Invalid argument error
Date: Tue, 01 Nov 2005 12:28:27 -0500

Eric,

To answer your question, nothing should have changed in the code; especially not in the kernal. I stopped the running application and re-started it after reviewing the python code.

Your mention of -EBUSY might be a clue. While my application was running, I accidentally launched a second application that also interfaces with USB and the USRP. The second application failed to launch and the original application continued to run. It was when I stopped the original application and tried to restart it that I began receiving the error messages. I'm wondering if the -EBUSY flag is not resetting after the conflict for access to the USRP. The problem continues after many computer reboots and troubleshooting. Your idea of ignoring -EBUSY in usrp_prims.cc may be a good work-around.

Ward


From: Eric Blossom <address@hidden>
To: EDWARD HALL <address@hidden>
CC: discuss-gnuradio <address@hidden>
Subject: Re: [Discuss-gnuradio] usb_claim_interface Invalid argument error
Date: Mon, 31 Oct 2005 19:03:11 -0800

On Mon, Oct 31, 2005 at 09:12:51PM -0500, EDWARD HALL wrote:
>
> I've had a usrp version 2 running successfully for several months
> but that changed abruptly a couple of days ago and I can't get it
> operating again.  I'm running from version 2.5 tarballs and Debian
> Sarge on an i386 system.

What changed?  New kernel by any chance?

> After stopping and restarting an application I get the the following
> message that looks like the application cannot open the usb
> interface to usrp:
>
>     self.src = usrp.source_c (0, self.usrp_decim, 1, 0xf0f0f0f2, 0)
> File "/usr/local/lib/python2.3/site-packages/gnuradio/usrp.py", line 65,
> in source_c
> return ((usrp0.source_c, usrp1.source_c)[look_for_usrp(which)])(which,
> *args, **kwargs)
>   File "/usr/local/lib/python2.3/site-packages/gnuradio/usrp1.py", line
> 1168, in source_c
>     return _usrp1.source_c(*args)
> RuntimeError: std::runtime_error
>
>
> Running usrper load_standard_bits gives this output:
>
> debian:/home/ward/usrp-0.8/host/apps# usrper load_standard_bits
> usrper: found unconfigured usrp; needs firmware.
> usrp_open_interface: usb_claim_interface: failed conf 0
> could not set config 1: Invalid argument
> open_nth_cmd_interface: open_cmd_interface failed
> usrper: failed

> Why would I start getting the "Invalid argument" between application
> runs?  Any help regarding what to look for would be appreciated.
>
> Thanks,
> Ward

Hi Ward,

I'm not sure, but this may be related to a problem that Jeff Long
reported a couple of days ago.  He was seeing usb_set_configuration
fail from within usrp_open_interface.  The problem was triggered by
some change in the kernel devio.c code.  Not sure which kernel version
he was running.  The work-around is to ignore an -EBUSY return from
usb_set_configuration in usrp_prims.cc.  I'll be checking that into CVS
later tonight.

Eric






reply via email to

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