Sun Apr 11 19:11:00 EDT 2010

Bluetooh Audio Through the NSLU2.

@POTUSCamacho has an interesting article about how to use the NSLU2 in combination with a USB bluetooth adapter as an audio server. POTUSCamacho explains how to do it with a mono audio adapter but clarifies that it should be possible to do it using a stereo adapter.

Lets take a look at this interesting howto:

Once you have installed Ubuntu, log in and update your packages:

Then install the following packages:

Note: I do alot of other development stuff on my unit. I may have left off something, and if so let me know if you try it and it doesn't work.
Now that the needed packages are installed, an .asoundrc needs to be created in your user home directory. An example:

Edit the device section with the MAC address of your bluetooth headset. To find this, issue a reset of the bluetooth adapter by issuing the command:

Then place your headset in pairing mode and issue the following command:

Now copy the following python script into a file named pair.py:

Now place your headset into pairing mode again and issue the follow command:

Once again replacing the address above with your headsets MAC. The last step involves editing the vlcrc. To do this, issue the command:

Scroll down and replace:

To:

If it does not exist then create it.

Now you should be ready to listen to audio. To listen to the audio from NASA TV's online video stream, issue the command:

If everything is working you should hear audio. Keep in mind that the sample rate needs to be 8000Hz since that is the sample rate the headset can handle.

To pair another headset, or to re-pair the current, the /var/lib/bluetooth/(your MAC)/linkkeys file must be deleted. It will regenerate once you have paired the devices. Also remember that the .asoundrc file must be edited to match a different headset as the MAC will be different.

To find out more info about this article, please visit POTUSCamacho Industries blog.


Spanish version: Audio vía bluetooh desde el NSLU2.