linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i2c-tools userspace tools
@ 2016-04-14 21:55 Svein Seldal
  0 siblings, 0 replies; only message in thread
From: Svein Seldal @ 2016-04-14 21:55 UTC (permalink / raw)
  To: linux-i2c

Hi

Is this the right list to discuss the i2c-tools user space software? If 
not, please disregard this email.

I have noticed that I can't seem to be able to use these tools out of 
box for very many i2c devices, as the i2cget/i2cset isn't using a very 
common protocol that these chips use.

E.g. the protocol for byte/word read (which is also found in the SMBUS 
spec) is:

START - WR:SLAVE - DADR - START - RD:SLAVE - DATA - STOP

 From what I have tested, it seems "i2cget BUS SLAVE DADR" does the 
following

START - WR:SLAVE - DADR - START - RD:SLAVE - DADR - DATA - STOP

It contains an extra read DADR byte, which is the slot where the actual 
data is being returned.

(My workaround is to run "i2cset BUS SLAVE CMD; i2cget BUS SLAVE")

Is this something that patches will be accepted for?


Best regards,
sveinse

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-14 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14 21:55 i2c-tools userspace tools Svein Seldal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).