|
From: Xiaofan C. <xia...@gm...> - 2012-12-18 01:22:20
|
On Sat, Dec 15, 2012 at 12:22 AM, Peter Knee <pa...@sa...> wrote: > All, > > I have ported libusb (version 1.0.9) to Android (4.0). Maybe you want to tell us a bit more what you have done to port libusb 1.0.9 to Android 4.0, did you modify anything? > Android sits on top > of a Linux kernel. I have been working on a project that needs to > asynchronously capture data from a USB device. The issue I'm running into > is when I try and cancel the transfers I have submitted. Specifically, it > appears as though the transfers are never cancelled, instead just showing a > "LIBUSB_TRANSFER_COMPLETED" status. I have begun to go through the code to > try and understand why the callback function I supplied is never called with > the "LIBUSB_TRANSFER_CANCELLED" status but I have not had any luck in > tracking this down. Has anyone seen something similar? Or can you point me > in the right direction to where I need to look to see where this is hanging > up. The first thing you may want to try is to use the git version to see if that helps. Secondly, a debug log will help. You can refer to the following page on how to do that. http://libusb.org/wiki/debug > I should mention that I have successfully installed and ran my project using > LibUSB on RHEL 6, with the ability to cancel all the transfers that I > submit. You can generate the debug log in RHEL 6 and compare with the previous debug log to see if that helps. -- Xiaofan |