RadioShark2 under Ubuntu

Tagged:  •    •  

I finally got my RadioShark2 device working with Ubuntu, here are the details.

There are two different RadioShark devices, the original one and the newer RadioShar2. Even though they both have the exact same USB device Id, they have different control sequences. So, you cannot use the control program written for the original model if you have the newer one, you need the code specific for RadioShark2.

You can either compile the code yourself, libhid is the only dependency, or you can download the attached binaries: i386 and amd64. Also, make sure that libhid0 is installed.

There is one more thing you need, to set proper permissions on the audio device created when you connect the device. Just copy the attached 50-radio-shark.rules to /etc/udev/rules.d/.

You are ready to tune in. Connect the device and first try to see if you can control the LEDs:

$ shark2 -red 1

If the worked then everything is fine. Tune in to a radio station:

$ shark2 -fm 105.7

And now you just have to capture the audio stream:

$ arecord -c 2 -f dat -D hw:2,0 | aplay -D hw:0,0
Technorati Tags:
AttachmentSize
radioshark-i386.tar.gz9.7 KB
radioshark-amd64.tar.gz9.7 KB
50-radio-shark.rules281 bytes

Since both control programs already have the opcodes figured out, wouldn't the proper thing be to write a real driver for them? Then any V4L2 app could take advantage (eg, Rhythmbox, Gnomeradio, etc).

Got this running on Gutsy with a bit of determination - Many thanks!

Jon

I have the newer RadioShark 2, and will try installing it in Ubuntu this weekend.
Thanks for passing on this information.
T

Syndicate content