RadioShark2 under Ubuntu

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:Technorati Tags:
AttachmentSize
radioshark-i386.tar.gz9.7 KB
radioshark-amd64.tar.gz9.7 KB
50-radio-shark.rules281 bytes

4 comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous says:

Awesome work. This worked well for my radio shark 2. Listening now.

Sounds like most of the hard work is done. Hopefully a driver or front-end will follow. Great job!

Anonymous says:

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

Anonymous says:

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

Jon

Anonymous says:

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options