Software for running a USB audio dock using Android Open Accessory Protocol 2.
USB audio over AOA2 is supported on all Android devices with OS version 4.1 and up.
- supports all Android devices with OS version 4.1 and up
- Creates alsaloop back device between Android device and sound card
- Sends Play/Pause command to device. This should cause last open APP to start playing
- Track/Play/Pause via steering wheel buttons on BMW e90. Commands are recieved via cars k-can bus (only supported on Beagebone Black)
- USB 2.0 is limited to 500mA charge current by the USB standard. Some third party kernels for Android devices have the ability to bypass this limit.
- project is a work in progress. I try to keep code in repository functional.
if on beaglebone black, use Debian 7.2 image from armf.com
I used this version
Install to device and boot up into os using these directions.
Then setup module dependancies... I had to do this, later versions may not require it.
sudo depmod -a -v "3.8.13-bone30"
From this point on, these directions should work on any debian based linux installation. You may need to remove pulseaudio and install alsa if its installed though.
Update OS
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Install git & alsa
sudo apt-get install git alsa-base alsa-utils
Give debian user permission to use audio device.
sudo adduser debian audio
Reboot or log out of all sessions and then log in again so new permissions take hold
sudo reboot
git clone https://github.com/walac/pyusb
cd pyusb
sudo python setup.py install
cd ~/
git clone https://github.com/SquidIndustries/AndroidCarAudioDock.git
cd AndroidCarAudioDock
sudo ./install.sh
- Beaglebone Black
- PCM2704 based USB DAC
- Small 4 Port USB hub
- Greater than or equal to 1A USB power adapter
- Logic supply beagle bone black case
Picture of my setup. I have cut and soldered all the cords to shorter lengths.
- improve documentation
- post a video of it working