Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.