[Tinyos-devel] More questions about using I2C on MicaZ / MTS300 (TinyOS 2)
Marina Kurmanova
marina.kurmanova at gmail.com
Tue Jul 21 05:59:44 PDT 2009
Thank, you, Simon, the patch really solves the problem with the mts300
board.
Still, I cannot make I2C work with my DS1621 sensor. I wonder, how did you
get the new TOS_MIC_POT_ADDR = 0x2D address for mts300, and why did you
replace the old 0x5A address. Maybe it can help me with my DS1621 sensor,
because I receive the EINVAL value on error parameter. Or maybe I didn't
understand the second item of the patch file:
"i2c device addresses on the mts300 were already shifted. but the
i2c code already takes care of that, so we can use the real
addresses in the header file."
Which are the "real addresses"?
I would be glad to commit the patch to the TinyOS tree but I don't know how
to do it.
Yours, Marina
2009/7/17 Simon Kellner <kellner at ira.uka.de>
> * Marina Kurmanova [2009-07-17 15:49 +0200]:
> > I'm trying to use DS1921 i2c sensor with MICAz. As I met problems using
> it,
> [...]
> > 1.) The I2CPacket.write seems to succeed (the leds 0 and 2 are lightened)
> > even if the I2C device is not connected (the Sensorboard is unplugged),
> is
> > this possible?
>
> Yes, because the current micaz i2c code doesn't seem to return anything
> other than success. A few weeks ago I spent some time to get the i2c
> components on a mts board working, and I produced the attached patch.
>
> Hope this helps, and if these are software errors, please feel free to
> commit the attached patch into the TinyOS tree.
>
>
> ciao
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20090721/58d83a7f/attachment.htm
More information about the Tinyos-devel
mailing list