Abstract : How to diagnostic "claimInterface" results ? (returns
"false" for me)
(or how to detach kernel usb driver manually ?)

Hello. That's a vague question :

I have a custom USB device (class 0xff) and I want to communicate with
it using my Android phone. I'm on ICS "stock" (original), and official
API provides USB functionnalites.

I use a Java and C API to communicate with my device from my computer
(libusb), so I though that it could be possible to do the same with my
Androphone, and an OTG USB cable.


But my problem : When I plug the device to the Smartphone, it is
correctly detected (and powered). Endpoints are correctly listed, and
I can retrieve the serial name. But when I call the "claimInterface"
function (Android API), it fails. I don't understand why, because the
class of my device is unspecified and shouldn't be handled by Android
OS or other App.
When I do a diagnostic with the XDA USB Host test software, I get
"yes" in line "claimed" (Base API).


I realize that my question is too specific. My hope is to find someone
who has already worked on this kind of problem, or who knows the
limits of the USB host.

Thanks in advance.

-- 
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