Skip to content

smartperson/android-usb-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

android-usb-pi

A collection of scripts to allow a Raspberry Pi running a Raspbian-like OS to stream audio and control media from of Android 4.x device over USB.

  • Credit to Jacek Fedoryński's blog post for the basics on AOA 2.0 audio communications with Raspberry Pi.

Prerequisites

  1. Raspbian-based OS
  2. pulseaudio
  3. pyusb

Installation

TODOs

  • write proper installation instructions
  • write installer script that will just do it for you
  • write update instructions
  • format this document more nicely

Instructions

  1. clone this code so that it resides in ~/android-usb-pi/
  2. dock.rules goes into your /etc/udev/rules.d/
  3. create a named pipe at ~/android-usb-pi/android_control_pipe
  4. customize your pulseaudio setup if you have to, defaults should work.

Usage

Startup

Just plug in your android device, wait a few seconds, and trying playing some audio on it.

Operation

To control audio, send to the named pipe the following:

  • a for previous track
  • s for play/pause
  • d for next track

About

Collection of scripts to allow a Raspberry Pi running a Raspbian-like OS to stream audio and control media from of Android 4.x device over USB.

Resources

Stars

8 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors