This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[ZIGBEE] SLEEPY ZED CONFIG

SDK: 14.1.0

CHIP: 52840

MULTI PROTOCOL

Hi, I want to know zed rf on off switching mechanism and configure on/off interval time.

I(current) - t(time) graph

What function I can setup rf on/off time?

What is the exact meaning of these functions?

zb_set_ed_timeout(ED_AGING_TIMEOUT_256MIN);

zb_set_keepalive_timeout(ZB_MILLISECONDS_TO_BEACON_INTERVAL(3000));

zb_sleep_set_threshold(20);

  • Hi

    I would suggest checking out the Zigbee Light Control example in our our Thread & Zigbee SDK, and specifically the Sleepy End Device behavior that make the CPU enter sleep mode to conserve energy. 

    As for the functions you are referring to:

    zb_set_ed_timeout: Set the end device's timeout. Use it on the end device to specify the End Device timeout period used in ED timeout requests.

    zb_set_keepalive_timeout: Used to set the keep alive timeout. You can specify how often a device should poll its parent.

    zb_sleep_set_threshold: Used to get sleep threshold value from the stack (in milliseconds).

    Best regards,

    Simon

  • Hi, Thanks for reply. I am newbie in zigbee stack. 

    I have some questions for understanding zigbee world.

    zb_set_ed_timeout: Set the end device's timeout. Use it on the end device to specify the End Device timeout period used in ED timeout requests.

    What is the End Device timeout?

    zb_set_keepalive_timeout: Used to set the keep alive timeout. You can specify how often a device should poll its parent.

    Is this keepalive same to data request? My zed sends data request packet in every 5 seconds for now.

    zb_sleep_set_threshold: Used to get sleep threshold value from the stack (in milliseconds).

    Is the threshold in this function whether rf on time or rf off time? I want to know it is during sleep time or woke time.

  • 1 & 2. Please check out more information on End devices and the keep alive process here.

    3. Check out more information on Power saving for Zigbee End devices here. When the scheduler detects that a device can be put in sleep mode, it will notify the application with a signal ZB_COMMON_SIGNAL_CAN_SLEEP. A device can not be put into sleep mode when the sleep interval is lower than this threshold. If the threshold is 0, it means that there is no threshold, and the application will be notified each time when the stack is ready to sleep, with no immediate callbacks in queue.

    Best regards,

    Simon

Related