Re: Question about using I2C_IOCTL_EXEC to read data over I2C

2021-08-17 Thread Dave Tyson
On Tuesday 17 Aug 2021 10:32:50 Jason Thorpe wrote: > > On Aug 17, 2021, at 10:28 AM, Dave Tyson wrote: > > > > The device appears at address 0x77 (it's a BMP085) with i2cscan, the data > > sheet indicates the read address=0xEF/write address=0xEE. I just put 0x77 > > in the address field and

Re: Question about using I2C_IOCTL_EXEC to read data over I2C

2021-08-17 Thread Jason Thorpe
> On Aug 17, 2021, at 10:28 AM, Dave Tyson wrote: > > The device appears at address 0x77 (it's a BMP085) with i2cscan, the data > sheet indicates the read address=0xEF/write address=0xEE. I just put 0x77 in > the address field and assume the read/write bit on the wire is added based on >

Re: Question about using I2C_IOCTL_EXEC to read data over I2C

2021-08-17 Thread Paul Goyette
Dave, As I recall, our I2C driver does not support block transfers. It is necessary to read (or write) one byte at a time. So you would have to loop from 0xAA-0xBF. A long time ago I prepared patches for a small subset of our supported I2C controllers, but they (the patches) are long gone.

Question about using I2C_IOCTL_EXEC to read data over I2C

2021-08-17 Thread Dave Tyson
I am trying to get data from a temperature/pressure sensor connected via i2c to a banana pi running NetBSD current. I understand the I2C protocol but I am having a bit of difficulty understanding what appears on the wire when the I2C_IOCTL_EXEC is called with the various op commands. By trial