# Setting hw number

**URL:** <https://www.ruby-forum.com/t/setting-hw-number/226644>\
**Category:** GNU Radio\
**Created:** [February 16, 2013, 3:33pm UTC](https://www.ruby-forum.com/t/setting-hw-number/226644 "2013-02-16T15:33:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frankie\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a5b964/32.png) [@Frankie\_R](https://www.ruby-forum.com/u/Frankie_R)\
**Post date:** [February 16, 2013, 3:33pm UTC](https://www.ruby-forum.com/t/setting-hw-number/226644/1 "2013-02-16T15:33:30Z")

</div>

Hi All,

I’m unable to get simple\_ra to recognize the USRP1.  
I have carried out the check below but do not know how to set the ‘hw  
number’ in ‘simple\_ra’

Hope someone is able to help.

Many thanks,

## Frank

alpha@alpha:~$ cat /proc/asound/cards  
0 [Intel]: HDA-Intel - HDA Intel  
HDA Intel at 0xfdff8000 irq 44  
alpha@alpha:~$

* * *

alpha@alpha:~$ aplay --list-devices  
\*\*\*\* List of PLAYBACK Hardware Devices \*\*\*\*  
card 0: Intel [HDA Intel], device 0: VT2020 Analog [VT2020 Analog]  
Subdevices: 1/1  
Subdevice #0: subdevice #0  
card 0: Intel [HDA Intel], device 2: VT2020 HP [VT2020 HP]  
Subdevices: 1/1  
Subdevice #0: subdevice #0

---

<div class="post-metadata">

**Author:** ![Frankie\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a5b964/32.png) [@Frankie\_R](https://www.ruby-forum.com/u/Frankie_R)\
**Post date:** [February 16, 2013, 3:58pm UTC](https://www.ruby-forum.com/t/setting-hw-number/226644/2 "2013-02-16T15:58:03Z")

</div>

> Many thanks,  
> alpha@alpha:~$ aplay --list-devices  
> \*\*\*\* List of PLAYBACK Hardware Devices \*\*\*\*  
> card 0: Intel [HDA Intel], device 0: VT2020 Analog [VT2020 Analog]  
> Subdevices: 1/1  
> Subdevice #0: subdevice #0  
> card 0: Intel [HDA Intel], device 2: VT2020 HP [VT2020 HP]  
> Subdevices: 1/1  
> Subdevice #0: subdevice #0

Hi Frank,

you are checking for Audio devices, the USRP is a regular USB device,  
not  
an audio device. You can see information about your USRP hardware with  
uhd\_find\_devices, given you use the UHD to interface your USRP.

Try to find out if simple\_ra also works with other devices than sound  
cards.

Martin

---

<div class="post-metadata">

**Author:** ![Frankie\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a5b964/32.png) [@Frankie\_R](https://www.ruby-forum.com/u/Frankie_R)\
**Post date:** [February 16, 2013, 4:29pm UTC](https://www.ruby-forum.com/t/setting-hw-number/226644/3 "2013-02-16T16:29:37Z")

</div>

Hi Martin,

OK thanks. I have actually attached a piece of wire to a socket on the  
USRP and found that it is working.  
I sent my previous E mail too soon without checking properly!

Thanks for the information though.

Frank

---

<div class="post-metadata">

**Author:** ![Frankie\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a5b964/32.png) [@Frankie\_R](https://www.ruby-forum.com/u/Frankie_R)\
**Post date:** [February 16, 2013, 5:09pm UTC](https://www.ruby-forum.com/t/setting-hw-number/226644/4 "2013-02-16T17:09:55Z")

</div>

> Frank  
> USRP doesn’t “manifest” as a sound device.

simple\_ra takes a “–devid” argument that is in the style of the  
gr-osmosdr device specifier. For USRP1, you’d  
use:

–devid “uhd=a,type=usrp1”
