nickdademo / cp2112_demo

Demo code for reading SMBus battery parameters using the Silicon Labs CP2112 board.
15 stars 10 forks source link

Could not open device always even when device is present #5

Closed OussamaBKO closed 3 years ago

OussamaBKO commented 3 years ago

Hello,

First of all, thank you for this code, it helped me get a glimpse of how this board works. However, although device is connected and present in windows device manager, I still get the same error (Could not open device) at the very first request (HidSmbus_GetString) even though it detects the presence of HID devices in the other function (HidSmbus_GetNumDevices). I tried everything but I still get the same error. Can you please help me? Thank you in advance

Best regards