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);
            HashMap<String, UsbDevice> deviceList = usbman.getDeviceList();
            Iterator<UsbDevice> 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

Reply via email to