Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 2019 17:13:03 +0530
From:      Prasad M <mprasad9689@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   FreeBsd I2C utility gives same value as MSB and LSB from DS75 sensor 16bit register.
Message-ID:  <CAHp9zCky5dVLfUUJqhE9jNM3Fm%2BCL-aW-Zc9gfWFRz55k4KB8w@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi Folks,

I am trying to access a DS75 I2C temperature sensor. It kind of works with
the default i2c utility. But it returns twice the high byte instead of the
high and low byte for the temperature. Probably because it does 1 byte
reads on the I2C bus, sending a stop condition after every byte.

The device expects continuous reads and no stop/start in between the 2
bytes. Trying all options i2c, most notably the -m mode switch, yields the
same results all the time. Looking at the code in i2c.c

Could any one help to solve this problem with working I2CRDWR utility.

Thanks
Prasad M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHp9zCky5dVLfUUJqhE9jNM3Fm%2BCL-aW-Zc9gfWFRz55k4KB8w>