Home/Support/Support Forum/XBee 3 locks up when xbee.transmit() is called

XBee 3 locks up when xbee.transmit() is called

0 votes
I have a prototype using an XBee3 (zigbee function set) which frequently locks up when xbee.transmit() is called.

We've been able to see the problem while the MicroPython terminal is connected, and xbee.transmit() just never returns. We've waited 10+ minutes, even though the docs say there should always be a timeout of some sort. After restarting at the terminal, the XBee immediately receives packets that were sent while it was frozen.

Is there a way to force xbee.transmit() to always have a timeout?
asked Aug 13 in MicroPython by Densaugeo New to the Community (1 point)

Please log in or register to answer this question.

2 Answers

0 votes
The xbee.transmit function is a blocking function. Try putting it into a loop where the AI is checked.
answered Aug 13 by mvut Veteran of the Digi Community (14,777 points)
0 votes
I got access to the problem device again today, and found that the bug went away after updating to the latest FW from Digi. Another lesson in keeping things updated...
answered Aug 20 by Densaugeo New to the Community (1 point)
...