discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Matt Chapman
Subject: [Discuss-gnuradio] running usrp as root, using alsa.
Date: Mon, 21 Feb 2005 12:28:03 -0500

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.
---

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




-- 
Matt Chapman <address@hidden>

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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