[Tinyos-help] Assigning addresses for I2C slave devices for Tmote
Sky
Ankur Kamthe
akamthe at ucmerced.edu
Mon Feb 19 23:52:55 PST 2007
Hi all,
I was attempting to establish communication between a tmote and a
slave i2c device (cyclops camera). The led on the slave device is
supposed to blink everytime I press the user button on the mote.
I am assigning the slave device the address 0x80 (=value and bcast =
true). While writing packets to the I2C bus the mote calls the slave
device using address 0x80. I, also tried calling the slave device
using 0x00 since bcast is enabled, however I was unable to get any
response from the slave device (no leds blink)
Could someone be able to tell me if I am atleast assigning the correct
addresses to these entities?
thanks,
ankur
for reference:
/*
* Sets the address of the I2C Slave
*
* @param value The 7 lower bits of value are the I2C slave address.
* @param bcast determines whether slave will respond to general call
* address
*
* @return SUCCESS always
*/
command result_t setAddress(uint8_t value, bool bcast);
More information about the Tinyos-help
mailing list