[Tinyos-devel] inconsistency between Telos and MicaZ I2C addressing

Xiaofan Jiang fxjiang at EECS.Berkeley.EDU
Fri Sep 14 15:50:32 PDT 2007


Hi,

I recently came across an inconsistency between Telos and MicaZ I2C addressing scheme when I was porting my telos program to micaz. 

In Telos, the least significant 7 bits of the i2c address argument is used whereas in MicaZ the most significant 7 bits is used. 

For example, to address an I2C device with the address 1010101, in Telos, the command would be something similar to:

call I2CPacket.write(I2C_START | I2C_STOP, 0x55, 1, &buff);

but in MicaZ it would be:

call I2CPacket.write(I2C_START | I2C_STOP, 0xAA, 1, &buff);

It seems like those two should agree in one way or another. 

cheers,
-Fred


More information about the Tinyos-devel mailing list