I'm having communication problems between an xbee s2c and an xbee3 with the Zigbee protocol.
I have a device that wakes up when some movement occurs and sends a unicast message to another device. This sleeping device has an xbee s2c configured as end device and SM = 1 (Pin Hibernate). When the device wakes up, it wakes up Xbee s2c, waits for the association pin to indicate that Xbee has joined the network. After that, it sends the unicast message, waits to receive the ACK, and then goes back to sleep. There are 4 attempts to send the message for a maximum time of 10 seconds. The device responsible for receiving this unicast message is an Xbee3, which is configured as a router.
The problem that occurs is when the device is sleeping for a time longer than 2 minutes. When this device is woken up after that time, sometimes it takes a while to associate the network, or when it does, it fails to send the message to the destination. If the device is activated later, the xbee s2c sends the message to the router (xbee3) with success.
Does anyone know what may be the cause of this issue and how I can resolve it?