discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] running usrp as root, using alsa.


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] running usrp as root, using alsa.
Date: Mon, 21 Feb 2005 10:17:58 -0800
User-agent: Mutt/1.5.6i

On Mon, Feb 21, 2005 at 12:28:03PM -0500, Matt Chapman wrote:
> I've just setup my USRP and have been running it for about a week now.
> (Great job Matt and Eric BTW!) I had been running it as root because I
> was seeing this error: 
> 
>       address@hidden:~/Projects/usrp/test$ ./waterfallsink.py
>       usrp: found usrp rev2
>       usrp_open_interface: usb_claim_interface: failed conf 0
>       could not set config 1: Operation not permitted
>       open_nth_cmd_interface: open_cmd_interface failed
>       usrp: failed to load
>       firmware /usr/local/share/usrp/rev2/usrp_firmware.ihx.
>       Traceback (most recent call last):
>               File "./waterfallsink.py", line 234, in ?
>               [...]
> 
> The simple solution was to add these options to the /proc/bus/usb entry
> in the /etc/fstab file:
> 
>    usbfs /proc/bus/usb usbfs devgid=501,devmode=0664 0 0
> 
> Adding my gid(501) allows my user write access to any usb device plugged
> into the system. I don't need to be root anymore.

Good solution.

> Also, I was having problems with ALSA and sampling rates on my audio
> board (it only supports 48khz). I've found that the easy solution is to
> change the "audio.sink(audio_rate)" lines to
> "audio.sink(audio_rate,'plughw:0,0')" This allows the alsa to emulate
> many sampling rates, including the 32khz one the examples want to use.
> Could this be done as the default for sink devices?

It could be, but plughw is slow compared to hw if you don't need it.

I think what we need is some kind of preference file where folks can
specify their default audio device (different for OSS vs ALSA, etc).

> I understand the need for ADC sources, but are many people sourcing
> RF through their audio card? (I mean on purpose ;-)

Some folks are using them for narrow band comms. 

Eric




reply via email to

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