How to know when the XBee radio has booted and is ready

In my application, if I start writing data to the XBee right away, I get no response.

If I wait half a second before I start writing data, everything is fine.

Is there a way to know when the XBee radio is ready? I would like to avoid a hard-coded delay.

I tried triggering off the Modem Status - 0x8A message with a status of 0x00 = Hardware reset or power up. However, it doesn’t seem that the XBee sends that message until I start writing data to the XBee.

Not sure which product you are working with but when /CTS changes state, the radio is ready to send data. Generally that is under 100ms.