[i2c] i2c_smbus_write_block_data does not send all bytes?!
Jean Delvare
khali at linux-fr.org
Mon Jul 14 22:54:24 CEST 2008
Hallo Nick,
On Mon, 14 Jul 2008 20:32:25 +0000 (GMT), Nick Teen wrote:
> Hello folks,
>
> i despair of i2c_smbus_write_block_data. I try to send this few bytes:
>
> 5D W 11 02 33 44
>
> but my attached example code sends always:
>
> 5D W 11 03 33
>
> I'm perfectly happy if somebody can help me! :-)
You probably want to use i2c_smbus_write_i2c_block_data instead. With
i2c_smbus_write_block_data, the first data byte isn't real data,
instead in indicates how many bytes follow until the end of the block.
It should result in "5D W 11 33 44" in your case though, not sure why
you get "5D W 11 03 33" instead.
--
Jean Delvare
More information about the i2c
mailing list