Re: [android-developers] USB Host API on XOOM tablet

2011-09-29 Thread Ralph Bergmann | the4thFloor.eu
Am 23.09.11 16:27, schrieb Anil Sasidharan:
 It would be great to know if anyone has tested Android's USB Host API on
 any tablet device especially Motorola XOOM. I would really appreciate
 your comments/suggestions.

I tried the missile launcher app from the sample projects.

It does not work on my XOOM, but it works without any changes on my LG
Slate.

But it looks that it works on a XOOM, see
http://community.developer.motorola.com/t5/MOTODEV-Blog/Code-to-Launch-Foam-Missiles-Over-USB/ba-p/17889



Ralph

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] USB Host API on XOOM tablet

2011-09-23 Thread Anil Sasidharan
Hi All,

I'm trying to get the USB Host API (introduced in sdk-version 12) working
with the Motorola XOOM tablet.

The details of the tablet are as follows:
Model:  MZ601
Android-version: 3.1
Firmware configuration version: GAS_ASIA_USAEVRSTURTIRD_P035
Build-number: H.6.3-25-5

We are using a custom USB cable (ref:
http://www.youtube.com/watch?v=COkLEJGo6vo ) to convert the micro-B port of
the tablet to work in USB host mode. This has been tested with USB mouse and
it gets detected (we are able to navigate through the screens using the
mouse). We have even connected an FTDI based device and that gets detected
by the kernel (from dmesg, we can see the device enumeration messages).

Now the next step was to implement a basic test application that uses USB
Host mode APIs of Android to enumerate the peripheral devices connected to
the host port. (Please scroll down to see the code snippet)

I'm able to build the code using Eclipse with latest android-sdk. However
when this application is executed, I do not see any of the USB devices
attached to the host port getting detected.

It would be great to know if anyone has tested Android's USB Host API on any
tablet device especially Motorola XOOM. I would really appreciate your
comments/suggestions.

Code Snippet
Log.d(USB_TEST, begin enumeration);
usbman = (UsbManager) getSystemService(USB_SERVICE);
HashMapString, UsbDevice deviceList = usbman.getDeviceList();
IteratorUsbDevice devIter = deviceList.values().iterator();

while(devIter.hasNext()) {
UsbDevice dev = devIter.next();
Log.d(USB_TEST, dev-name:  + dev.getDeviceName());
Log.d(USB_TEST, vendor-id:  + dev.getVendorId());
Log.d(USB_TEST, product-id:  + dev.getProductId());
}
Log.d(USB_TEST, enumeration complete);

/Code Snippet

Warm Regards,
Anil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en