I'm using Visual Studio for Mac targeting Xamarin.Mac Mobile Framework and I can not find a working solution to communicate with my custom usb device. I have tried using LibUsbDotNet package, and while I can get the devices info, I can't write to it without triggering an exception (MonoApiError:SubmitTransfer Ep 0x02 -5:ErrorNotFound:Unknown error:ErrorNotFound).
I abandoned that and tried another nuget package (PInvokeSerialPort), which didn't even allow me to open the serial connection (System.EntryPointNotFoundException: CreateFile
at (wrapper managed-to-native) PInvokeSerialPort.Win32PInvoke.Win32Com:CreateFile (string,uint,uint,intptr,uint,uint,intptr))
I'm back to trying the LibUsbDotNet implementation, but it's telling me to make a codeless kext which requires either signing with an approved developer ID, or disabling System Integrity Protection.
I'd probably have better luck targeting Xamarin.Mac .Net 4.5 Framework, but when I do that it breaks all of my OpenTK implementation (no longer recognizes MonoMacGameView, System.Drawing, etc).
Is there not a simpler way for sending and receiving a few strings from a simple USB control board? I feel like I have to be missing something obvious, and wanted to ask before I jump off the deep end here. Any info or tips appreciated.