Xbee sleep.

Xbee projects like the adapter, xbee tutorials, tweetawatt/wattcher, etc. purchased at Adafruit

Moderators: adafruit_support_bill, adafruit

Xbee sleep.

Postby Nomad-Alien » Sun Dec 02, 2012 8:21 am

I have an xbee that connects to a sensor via serial. My xbee receives the data on its serial interface and transmits it to the other xbee connected to a pc and I can see/read all the sensor data just fine. My problem is that I want the xbee to sleep and wake up every x minutes and transmit for 30 seconds and then go back to sleep.

I'm not using the in sleep, but just use the timer settings on the xbee but it seems that as long as that there is data coming into the serial interface of the xbee that it doesn't go into sleep mode but just keep transmitting all the time. Is this normal behaviour or am I just configuring my xbee wrong? Will the xbee go into sleep regardless of data coming into the serial interface?

Can I fix this problem by using the pin sleep functionality?
Nomad-Alien
 
Posts: 1
Joined: Mon Nov 26, 2012 6:19 am

Re: Xbee sleep.

Postby Aluman000 » Thu Dec 06, 2012 8:58 am

I just happened to have the manual open to this page:
Sleep Support -
Automatic wakeup sampling can be suppressed by setting SO bit 1.When an RF module wakes, it
will always do a sample based on any active ADC or DIO lines. This allows sampling based on the
sleep cycle whether it be Cyclic Sleep (SM parameter = 4 or 5) or Pin Sleep (SM = 1 or 2). To
gather more samples when awake, set the IR (Sample Rate) parameter.
For Cyclic Sleep modes: If the IR parameter is set, the module will stay awake until the IT (Samples
before TX) parameter is met. The module will stay awake for ST (Time before Sleep) time.
Applicable Commands: IR (Sample Rate), IT (Samples before TX), SM (Sleep Mode), IC (DIO
Change Detect), SO (Sleep Options)


http://ftp1.digi.com/support/documentat ... 0982_H.pdf
Page 15
Aluman000
 
Posts: 27
Joined: Sun Apr 10, 2011 3:27 pm


Return to XBee products from Adafruit

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]