[android-developers] Re: PC as USB Host for Android 2.3.4
In case anyone runs across this, the solution to get past this issue is posted in full on StackOverflow, however, the simple answer is "close the device with libusb_close(handle) before reopening as an 'accessory'." Just releasing the interface is not enough and libusb provides no error when leaving a connection to a device open that will then lock you out of I/O operations for a subsequent reconnection and interface claiming that succeed without errors.
The other thing was having to match up buffers on both sides (due to how the code in my sample app was set up) to see data come across. It is only a sample and not a real nor optimal solution!
-- 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home