Skip to content

Software for running a audio dock using Android Open Accessory Protocol 2

Notifications You must be signed in to change notification settings

SquidIndustries/AndroidCarAudioDock

Repository files navigation

AndroidCarAudioDock

alt text

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.

Current Features

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

Limitations/issues

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

Installation

OS

Beaglebone Black

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"  

Other

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 & Install Necessary Software

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

Install pyusb

git clone https://github.com/walac/pyusb
cd pyusb
sudo python setup.py install

Install AndroidCarAudioDock

cd ~/
git clone https://github.com/SquidIndustries/AndroidCarAudioDock.git
cd AndroidCarAudioDock
sudo ./install.sh

Setup CAN bus

Suggested hardware

Picture of my setup. I have cut and soldered all the cords to shorter lengths. alt text alt text

Reference

To do

  • improve documentation
  • post a video of it working

About

Software for running a audio dock using Android Open Accessory Protocol 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages