Android: api for external USB devices for robotic applications

Android devices are becoming incredibly cheap (especially with Android android v1.6). I am going to use it as the brain of an autonomous robot. Unfortunately, I did not find any information about this.

I would like to connect two external USB-webcams and some DIY-made USB-ADC and output port converter for controlling the wheels and reading analog distance sensors. If I choose a cheap netbook, then, as a rule, they already have 3 USB ports. But if I have to use a tablet, then this will also require a USB hub.

  • Do Android devices support USB hubs?
  • Is there any API for capturing still frames from external USB webcams (for example, "vfa: // 0" and "vfa: // 1")
  • Is there any API to read from a USB device? Assume that it will simulate a serial port for simplicity.
  • Do I get all this in Android 1.6 or any new version?

How to update your information: based on the answers, I assume that the Android device will be too expensive compared to the efforts. I will send a cheap atomic netbook with a standard USB device and a USB controller for control devices and sensors. With the cost of a heavier device half a kilogram (one pound), I will save months on training and development.

+5
source share
2 answers

Android, usb (-, ), , usb , , ( ).

, root.

Api USB- linux, C- , Linux ( , x86-, ).

ndk, ( , read/write/ioctl), , , , , java java ndk .

, "", Android-, , root , Linux.

+2

, Java API . , ​​ . Android.

, , , .

0

All Articles