|
From: Xiaofan C. <xia...@gm...> - 2016-03-17 05:07:34
|
On Thu, Mar 17, 2016 at 1:30 AM, Antão Almada <ant...@gm...> wrote: > > On Wed, Mar 16, 2016 at 12:54 AM Xiaofan Chen <xia...@gm...> wrote: >> > I'm using Android USB Accessory mode where the connected device is >> > the host and implements Android Open Accessory (AOA). My app is not >> > running on the host and the issue now is that the device does not show >> > up in the device enumeration... :( >> >> In that case,your issue has nothing to do with libusb. libusb is only >> for the host side. But your Android device is not the host in this >> mode. You should forget about libusb in this case. > > > I don't believe that's true. I am 100% sure libusb for Linux is only for the host side. If Android is different from Linux in this regard, that will be interesting to know. Ref: https://github.com/libusb/libusb/wiki/FAQ#Can_libusb_be_used_on_the_USB_device_side_eg_Linux_Gadget_Device > An Android accessory is available as a /dev/usb_accessory file: > https://books.google.pt/books?id=0cuQAwAAQBAJ&pg=PA93 > > It requires some changes on the backend but I'm sure it is possible. If you are sure go ahead to propose the changes. > You'd better be sure about what you're saying before replying to > emails on the mailing list. Anyway I will stop here and maybe others can help you better. -- Xiaofan |