Hi everybody I have to implement a WSN with an msp430.
The application is low power, so what I do is to wake up once a minute, listen for messages, go to sleep.
I thought to give a "window" to every sensor, so no collisions are possible.
My problem is that to keep them in sync every sensor need to receive a "beacon" and to reset his counter (TAR register) in order to wake up next time in sync with the node.
So what I do is to receive bacon and set tar to a value like "maximum-K*mac_address_sensor"
K is the window's length.
I need this formula since every sensor sends the beacon in its window, so I need to wake up earlier (corresponding to the window 0).
My problem is that I read something about a prescaler error, when I write TAR next increment will be based on the prescaler status and not when I want.
How can I keep them in sync?
thanks