i2c
1 TopicI2cDevice class / Method WriteReadPartial issuing "unknown error"
Hello community, I'm currently working on an Intel Atom E39340 platform with Windows 10 IOT 2021 LTSC installed on it. The Read and Write methods of the I2cDevice class everything are working just fine. Nevertheless, one of my sensors needs a Write+Read access (Start / Write / Restart / Read /Stop) to access some registers. When I use the WriteRead(byte[] writebuffer, byte[] readbuffer) I get a System.Argument.Exception:'The parameter is incorrect'. (which is really weird because its compiling). When I use the WriteReadPartial(byte[] writebuffer, byte[] readbuffer) method to get the error code the result is 4 (i.e Unknown error). Overall, nothing happens on the I2C bus. I have explored the online documentation but can't find a lead... https://docs.microsoft.com/en-us/uwp/api/windows.devices.i2c.i2cdevice.writereadpartial?view=winrt-22621 Does anyone has ever experienced this ? Thanks a lot for your feedback. Best regards.Solved1.3KViews0likes1Comment