# Sending byte to sleeping XBee (Series 1)

**URL:** <https://forums.digi.com/t/sending-byte-to-sleeping-xbee-series-1/17009>\
**Category:** XBee & XBee Gateway\
**Tags:** xbee-sleep, series1, xbee\
**Created:** [June 30, 2016, 10:34am UTC](https://forums.digi.com/t/sending-byte-to-sleeping-xbee-series-1/17009 "2016-06-30T10:34:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LLamabob](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@LLamabob](https://forums.digi.com/u/LLamabob)\
**Post date:** [June 30, 2016, 10:34am UTC](https://forums.digi.com/t/sending-byte-to-sleeping-xbee-series-1/17009/1 "2016-06-30T10:34:54Z")

</div>

Hello,

I have 2 XBee Series 1 transceivers… XBee\_Host and XBee\_Sensor. XBee\_Sensor is connected to a sleeping Arduino Pro and every 8 seconds, the Arduino wakes and sends a packet of data to XBee\_Host which is on all of the time. Also the XBee\_Host can send a single ascii byte to the XBee\_Sensor anytime which is read by the Arduino and will turn on/off I/O in response. The XBee\_Sensor was powered all of the time.

Everything was working good until I tried to lower the power of the XBee\_Sensor by changing the sleep mode to 1 and using an active low pin on the Arduino to turn on/off pin 9 of the XBee\_Sensor. The XBee\_Sensor’s power is low, and its transmitting packets to the host every 8 seconds. However, I’ve lost the ability to send bytes from the XBee\_Host to the XBee\_Sensor while the sensor is asleep. It appears that when I transmit a byte from the host to the sensor, the byte is lost unless I time it perfectly and catch the sensor awake.

I’m planning on timing my XBee\_Host transmission as soon as the packet of data from the XBee\_Sensor is transmitted. I can leave the receiver on for say 200mS after the sensor sends its data.

Is there an easier or more automated way in the XBee setup to be able to queue a transmission and only send it when it senses an awake transceiver?

Any suggestions would be appreciated.

Thanks,  
Bob

---

<div class="post-metadata">

**Author:** ![jlovinger](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jlovinger](https://forums.digi.com/u/jlovinger)\
**Post date:** [July 20, 2016, 1:32am UTC](https://forums.digi.com/t/sending-byte-to-sleeping-xbee-series-1/17009/2 "2016-07-20T01:32:44Z")

</div>

If you want to buffer tx messages in the network layer will need to move to one of the Series 2 ZigBee XBees. You could then set up your sleeping node as an End Device at which point its “parent” would automatically buffer messages until it wakes, dependant on a timeout. There is a limit to how many messages can be buffered. I can’t recall what limit is for the XBee (at least one, perhaps more).
