3 XBee with sleep
si8
Posts: 20
Hi,
I am trying to get 2 xbee units to send their data to a third unit. But i am wanting the 2 sending units to sleep for 30min or so in-between sending data (purely to save battery). The third unit would be nice if it slept but it is not essential if it does.
I am wondering what would be a good efficient way to get this done.
So far I had each unit sending their address followed by their data but have complications as sometimes the data arrives while the receiver is waiting for he other unit.
Any ideas would be helpful
Thank you, Si
I am trying to get 2 xbee units to send their data to a third unit. But i am wanting the 2 sending units to sleep for 30min or so in-between sending data (purely to save battery). The third unit would be nice if it slept but it is not essential if it does.
I am wondering what would be a good efficient way to get this done.
So far I had each unit sending their address followed by their data but have complications as sometimes the data arrives while the receiver is waiting for he other unit.
Any ideas would be helpful
Thank you, Si
Comments
Use API mode so that the receiving XBee can obtain the address of the sending module (ensure they are unique MY addresses).
The "Getting Started with XBee Modems" text has example code for sending and receiving data in API mode, including pulling out the address.
http://www.parallax.com/portals/0/downloads/docs/prod/book/122-32450-XBeeTutorial-v1.0.1.pdf
-Martin
This will require xbee series 1 w/ digimesh firmware updated
Thanks again