Forum Discussion

sifustevec's avatar
sifustevec
Occasional Reader
Sep 19, 2024

I2C WriteRead with no restart, IoT libraries and FT4232H device

Hi everyone,

I am porting an app and trying to use the FTDI Ft4232H device to communicate to some I2C devices.

When I use the "old" dongle(going to be obsolete) and I2C call to the device, I get the correct transaction and read results from the device.

 

 

However, when I use the IoT libraries and the "WriteRead" command to do the same thing, the library issues a restart and the transaction fails.

Can anyone help or point me to:

  1. A library that does a correct multi byte read without a restart?
  2. A way to do this with the current IoT libraries?

Here are the "using" statements in my C# code:

using Iot.Device.FtCommon;
using Iot.Device.Ft4232H;
using System.Device.I2c;

 

Cheers,

Steve

 

 

Resources