Joe Polastre wrote:

Trouble is, still, when I connect I2C to the Telos, no radio messages
are received.  We measured some voltage on a pin (connected to our
I2C level converter, aka Philips Level Translating I2C Bus Repeater)
that the radio presumably shares - is this the problem?  Should we
use a diode to block voltage going back to the Telos?


Have you released the I2C resource when you finished using it?

I presume so, e.g.

 // this when we get I2C access granted
 event void CmdIO.granted( uint8_t rh ) {
   result_t r;
   buffer[0] = lcd+1;
   r = call I2CPacket.writePacket(rh,128,1,buffer);
   if (r != SUCCESS) call CmdIO.release();
   }
 event void I2CPacket.writePacketDone(uint16_t addr, uint8_t len,
                                      uint8_t* data, result_t s) {
   call CmdIO.release();
   call Leds.redToggle();
   }

-Ted
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to