Leave indication after long sleep problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Leave indication after long sleep problem

635 Views
hernanolave
Contributor I

Hello, we are developing a custom application based on the JN-AN-1229 template. After long sleep (>5 mins) through the PWRM_eScheduleActivity function we wake up the device and make a poll request ZPS_eAplZdoPoll and we get the following events:

NWK: New event on the stack APP_msgZpsEvents = 15
NWK: ZPS_EVENT_NEW_POLL_COMPLETE, status = 0
NWK: MAC_ENUM_SUCCESS
NWK: New event on the stack APP_msgZpsEvents = 15
NWK: ZPS_EVENT_NEW_POLL_COMPLETE, status = 0
NWK: MAC_ENUM_SUCCESS
NWK: New event on the stack APP_msgZpsEvents = 11
NWK: Poll request unhandled event - 11
NWK: New event on the stack APP_msgZpsEvents = 8
NWK: Poll request unhandled event - 8

Therefore, after wake up the coordinator (i guess) asks the node to leave the network and then attemps to rejoin but it fails.

Note: The network is 1 coordinator and 1 sleeping end node.

Please help.

Tags (2)
0 Kudos
1 Reply

519 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Heman,

The End Device Timeout Request command is sent by an end device informing its parent of its timeout requirements. This allows the parent the ability to delete the child entry from the neighbor table if the child has not communicated with the parent in the specified amount of time. Please look at the Zigbee Spec.
In this case, the timeout request is 4 minutes. please see the image attached.
pastedImage_1.png

The parameter passed to the ZPS_bAplAfSetEndDeviceTimeout decides the end device timeout , below are the values that this function can take:

 

typedef enum {
ZED_TIMEOUT_10_SEC, // 0 -> 10 seconds
ZED_TIMEOUT_2_MIN, // 1 -> 2 minutes
ZED_TIMEOUT_4_MIN, // 2 -> 4 minutes
ZED_TIMEOUT_8_MIN, // 3 -> 8 minutes
ZED_TIMEOUT_16_MIN, // 4 -> 16 minutes
ZED_TIMEOUT_32_MIN, // 5 -> 32 minutes
ZED_TIMEOUT_64_MIN, // 6 -> 64 minutes
ZED_TIMEOUT_128_MIN, // 7 -> 128 minutes
ZED_TIMEOUT_256_MIN, // 8 -> 256 minutes (4 hrs 16 min)
ZED_TIMEOUT_512_MIN, // 9 -> 512 minutes (8 hrs 32 min)
ZED_TIMEOUT_1024_MIN, // 10 -> 1024 minutes (17 hrs 4 min)
ZED_TIMEOUT_2048_MIN, // 11 -> 2048 minutes (1 day 10 hrs 8 min)
ZED_TIMEOUT_4096_MIN, // 12 -> 4096 minutes (2 days 20 hrs 16 min)
ZED_TIMEOUT_8192_MIN, // 13 -> 8192 minutes (5 days 16 hrs 32 min)
ZED_TIMEOUT_16384_MIN, // 14 -> 16384 minutes (11 days 9 hrs 4 min)
ZED_TIMEOUT_INDEX_MAX,
ZED_TIMEOUT_UNDEFINED = 0xff
}teZedTimeout;

ZPS_bAplAfSetEndDeviceTimeout( ZED_TIMEOUT_8_MIN);

Regards,

Mario

0 Kudos