Java.IO.IOException: read failed: ENODEV (No such device)

AntaoAlmadaAntaoAlmada PTMember ✭✭
edited February 2016 in Xamarin.Android

I'm working on a Xamarin for Android project that communicates with an external device as UsbAccessory. Unfortunately the communication crashes with the dreaded ENODEV error code.

There is little information about this problem. There is one report in Bugzilla that unfortunately has been solved by using Java instead (not an option for me): https://bugzilla.xamarin.com/show_bug.cgi?id=22234

I suspect it to be a threading issue as it crashes after a random time span. Trying to minimize this I'm using a Reactive Extensions' EventLoopScheduler to perform all the operations on the Java Streams connected to the UsbAccessory. Unfortunately this didn't fix the issue.

Does anyone here have experience with UsbAccessory and Xamarin?

Posts

Sign In or Register to comment.