Thanks (again) for your answer and the file, maybe I'll have to add some
kind of delay ("Warmup") between powering the device up (I have commented
the lines out because it didn't work with them so I just tried something
else) and using the I2C (I also needed to do this for measuring light and
Temp on the mts300 to produce good values). Well, next year then...Happy new year, Thomas
Your usage of the I2CPacket interface looks right. Where are you configuring the IO pins and activating the I2C device? The code there has the operations commented out. If it's not on, then you might see it hang. I've found I2C devices to be really finicky; often, the fastest way to debug them us to go into Atm128I2CMasterPacketP.nc and figure out which state the operation is failing in. I've attached a file for the I2C driver for an ADS7823 ADC device. Hopefully it will help. Phil
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
