timotto / aoa-proxy Goto Github PK
View Code? Open in Web Editor NEWAndroid Open Accessory USB&Bluetooth <-> HTTP Proxy
License: GNU General Public License v2.0
Android Open Accessory USB&Bluetooth <-> HTTP Proxy
License: GNU General Public License v2.0
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
Anybody can tell me how to build the project, please.
Hi,
I found your project while searching for a data transfer method between a computer and an Android device. I managed to connect Anroid via AOA and exchange byte type data bidirectionally, but I wanted higher level protocol.
Your code looks promising, and I was wondering how you transmit data from Android. It probably has to parse the data into TCP and write to FileOutputStream witht he FileDescriptor acquired thru UsbManager.
Did you code Android side, too? I am looking for code I can learn from. It would be great if you can give me a hint.
Thanks,
Daigo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.