GithubHelp home page GithubHelp logo

johnneycat / aoa-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timotto/aoa-proxy

0.0 2.0 0.0 360 KB

Android Open Accessory USB&Bluetooth <-> HTTP Proxy

License: GNU General Public License v2.0

Makefile 0.22% M4 1.07% Shell 41.38% C 55.89% C++ 1.44%

aoa-proxy's Introduction

AOA Proxy is a general purpose Android Open Accessory Protocol 2.0 implementation supporting both USB and Bluetooth connectivity. It forwards incoming AOA connections to a specified IP:port via TCP (usually something on localhost). You can implement your Android Open Accessory host device and don't have to worry about USB or Bluetooth connectivity. Instead just listen on an ordinary TCP server socket for incoming connections.

The USB transport also supports audio playback. For audio over Bluetooth you need to setup A2DP on your own. 

To compile it you need the GNU autotools. Run the following commands once:

aclocal
autoconf
automake --add-missing

Now you can use configure and make to build AOA Proxy.

Depending on what you want AOA Proxy to do you need a few libraries (libusb, bluez, libao). The configure script will tell you more.

There are a few command line parameters:

Usage: ./aoaproxy [-d] [-h host] [-p port] [-f] [-x vid1:pid1] [-x vidn:pidn]
	-d	starts aoaproxy as a daemon
	-h host to connect to (default: localhost)
	-p port to connect to (default: 8721)
	-f I can't remember what that one did
	-x USB vid and pid to exclude from AOA attempts

By default aoaproxy attempts an AOA initialization on every USB device connected to the host computer. This probably isn't nice and some USB devices I have exposed some awkward behaviour afterwards.

For details on AOA see http://source.android.com/accessories/aoa2.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.