Hope someone can give me some pointers. I am an experienced programmer but have almost no experience in programming USB devices.
My project involves servo motors, and I have used Pololu Maestro successfully. However I want to break away with the Pololu monopoly and use a cheaper "generic" servo controller, such as this one here:
https://www.ebay.com/itm/Servo-Motor-Co ... 2749.l2648
This controller has a USB interface and is showing on my PC as a "USB Input Device". I successfully retrieved its VID and PID, but that's where I hit a wall.
The code that worked beautifully with Pololu, won't work with this one:
The interfaces collection contains no items.
Code: Select all
string aqs = Windows.Devices.SerialCommunication.SerialDevice.GetDeviceSelectorFromUsbVidPid(usbVid, usbPid); DeviceInformationCollection interfaces = await DeviceInformation.FindAllAsync(aqs, null); DeviceInformation deviceInterface = interfaces.FirstOrDefault(i => i.Id.ToLower().Contains("mi_00")); ....
So how should I go about communicating with this controller? Any pointers would be greatly appreciated.
-- D.C. Dweller