I'm working on some code to read/write a microcontroller's output. I'm fairly new to this, but from my understanding, I've installed all the necessary drivers required to read a navX2-micro's information.
I decided to use libusbp. It's a C++ wrapper for libusb, that adds some other functionality, but mainly I did not want to create my own wrapper.
I can see ASCI when I access the COM PORT on PuTTy,
but when I try to run the libusbp::generic_interface with a device from libusbp::list_connected_devices it returns either:
Error: Failed to initialize generic interface. Device is attached to an incorrect driver: usbser.
Error: Failed to initialize generic interface. Device is attached to an incorrect driver: usbccgp.
Error: Failed to initialize generic interface. Could not find interface 0.
I've followed the code from libusbp's example.
I've read every online post about libusbp I could find, and I've made no progress. Thanks in advance.
Use libusbp only to retrieve the name of the virtual serial port, perhaps depending on other information it can provide. This is from its project site:
Then use that name for standard file functions to connect to the device.