开发者

Embedded System USB to Android Device

I am writing an Android 2.1 application that needs to get data from a USB device. The USB device is an embedded system i created. The embedded system has no OS. Also, the android device does not send any data to the embedded system.

How should i go about this, I'm guessing i will need to make a high-level driver to开发者_开发问答 communicate from USB to the application. But, i have never made a Linux driver before.

If creating a high-level driver is the best way to do this, can someone give me some references so i have somewhere to start.

If there are other ways to accomplish this i would also like to hear about it

-Thanks


The Android Open Accessory Development Kit is where you should start looking. Like many of other Google's documents, the tutorial is reasonably complete and should provide you with a good starting point

Good Luck!


I think you will need to recompile Android kernel to add usb device support. It can be an option if you are working on some dedicated project and only one Android phone should be supported. If you want to support all kinds of Android phones, I can suggest to implement USB host in your embedded system( if it is possible), thus your Android phone can be connected using ADB protocol.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜