xzlzq / androiddelphiinterface Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ruudermers/androiddelphiinterface
Android to PC USB Interfaces (ADB, AOA, HID) with Delphi
License: Other
This project forked from ruudermers/androiddelphiinterface
Android to PC USB Interfaces (ADB, AOA, HID) with Delphi
License: Other
This is a set of code to aid development for communication between an Android device and an Embedded Device, or PC. There are examples for the following: Communication between PC and Android device, over USB, using the ADB (Android Debug) protocol. Communication between PC and Android device, over USB, using the AOA (Android Open Accessory) protocol. Communication between PC and a simple HID device (Arduino and LPC 1768 Microcontroller). All PC code is written in Delphi. Android code is in Java and the embedded code in C/C++. So why would you want this? We are developing a hardware device which needs to interact with an Android phone. It needs to be robust and simple, so we opted for a USB interface. (Wireless connections were ruled out) In this case the Android device is the USB client, and the hardware device is USB Host. In development it became clear that it would be handy to change the hardware device for a PC, to test the Android side of things without to much hassle on the hardware device. Therefor we needed an Android <-> PC bridge. I found a few (in C), but I opted to use Delphi for quick testing. Based on LibUSBK there is a class which implements a simple twoway USB connection. From there, there are classes which implement the ADB protocol and the AOA protocol. As you may know the ADB interface runs on devices supporting Android 1.5. AOA is only supported by some devices, and need Android 2.3.3. Personally, I don't see any advantage of using AOA as it is not widely supported. In fact, I was only able to get this working with one Android Device i have (a chines Android TV Stick) All of this code becomes 'obsolete' when using an Android device which adds HID facility. This is supported from Android 4.0. Since all the basics wre there I decide to add an example where Delphi takes over the Android side to test the hardware. I have added two examples on Embedded platforms, for Arduino and LPC 1768 (from mBed). I have also some examples for FEZ Domino or Microchip Cereboth (both implementing ADB host). On the HID facility: This is also only implemented in some devices.
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.