I am facing a problem using the XBEE DigiMesh modules. My project consists in several sensor nodes configured as end devices. in each node there is an MCU that handles all the sleep timing (>1min) and sensor data acquisition. Therefore, there are several times that when I wake the XBEE module up, it gives a ‘Device disassociated’ status preventing me from sending data.
I have already managed a fix for it, which is to always for a reset (AT Command ‘FR’) and then waits for a ‘Device joined network’ modem status, only after that I send the sensor data to the coordinator.
Even it is working so far, as I reset the module, it takes a while to reconnect to the PAN and then waste battery, which is a limited resource.
How can I ensure that, whenever I wakeup the XBEE, it always ramains connected to the same PAN?
ps.: I am using the API mode
ps2: I have already tried to request the association indicator command ‘AI’ to the module, but sometimes it returns ‘OK’ and then the module sends a ‘Device disassociated’, causing loss of data.
Any help will be greatly appreciated.
Regards
Nicolas
The reason you are having these issues is because you are using Pin sleep and you are sleeping for longer than twice the SP time frame on your parent router/coordinator. To resolve this, set the SP time so that it exceeds the maximum sleep time you are using on your Pin sleep end device.
same issue we are facing that u mentioned. your help is appreciated. we have installed total 300 end devices with routers and co-ordinators in networks. some end devices are not re-associated after wakeup time for 5 min. but my SP is not 5 min. in co-ordinator. problem is, some time this end devices are not sending data for more then 1 day. and suddenly after this time this will start sending again. for every 5 min. so data loss occur in trend on customer place.