Shop OBEX P1 Docs P2 Docs Learn Events
3 XBee with sleep — Parallax Forums

3 XBee with sleep

si8si8 Posts: 20
edited 2012-03-07 07:11 in Accessories
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

Comments

  • Martin HebelMartin Hebel Posts: 1,239
    edited 2012-03-05 19:45
    Si,
    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
  • groggorygroggory Posts: 205
    edited 2012-03-06 12:58
    digimesh would allow this to work and have all three sleep.

    This will require xbee series 1 w/ digimesh firmware updated
  • si8si8 Posts: 20
    edited 2012-03-07 07:11
    In the book/ text it mentions that there are good examples of shortcuts on the forums for BASIC stamp code, i cant seem to find them, would you know where they are?

    Thanks again
Sign In or Register to comment.