Electrical – Is it possible to restart XBee with command when power on

xbee

I am using XBee S2 ZigBee to do wireless communication, but sometimes I met cases that XBee failed to get some data frame and after several rounds it stopped. I found out that after I power off both XBees and then power on again, it will work again. So I guess if I can restart it with command when power on, I might able to make it work continuously.

I am using the python-xbee library to send out and receive data.

The xbee connected to computer side was set to API mode as coordinator; the xbee connected to sensor board was set to AT mode as router.

Is it possible to restart both of them with command when power on? How?

Best Answer

According to this document (and others) : https://www.digi.com/resources/documentation/digidocs/pdfs/90002002.pdf there is no command to reboot the module.

But a litle trick you can try, is to use one of the GPIO of your module to do a hard reset of your module like so :

schematic

simulate this circuit – Schematic created using CircuitLab

But of course the best way is to find what causes the errors !