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?