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
.
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:
Can retrieve the vendor ID, product ID, revision, and serial number for each connected USB device.
[...]
Can retrieve the names of virtual serial ports provided by a specified USB device (e.g. "COM5").
Then use that name for standard file functions to connect to the device.