nickdademo / cp2112_demo

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

Unable to connect MultiSMBus devices #2

Open sreenivasinturi opened 4 years ago

sreenivasinturi commented 4 years ago

Hi, I would like to know the below is a known issue or a new issue. I have the setup where two SMBus devices are connected. Using the following API for connection HID_SMBUS_STATUS status = HidSmbus_Open(&mDevice, mDeviceInfo.index, VID, PID); For Adapter 0 , mDeviceInfo.index value is 0 For Adapter 1 , mDeviceInfo.index value is 5 The issue is " it always connects to Adapter 0" for Second adapter as well. can you please help me regarding this?