User Manual
Table Of Contents
Chengdu Ebyte Electronic Technology Co., Ltd. E18-2G4U04B User Manual
Copyright ©2012–2018,Chengdu Ebyte Electronic Technology Co., Ltd.
7
address to NV, and use this address as the MAC address later.
4) If nothing is found in 3), a 64-bit variable is randomly generated and written to the NV as the MAC address.
How can I prevent a node from continuously searching the network or increase the interval between
sending Beacon Requests?
End Device is a low-power device, battery supplied. After the node is disconnected, how can the node be
prevented from continuously searching the network or increase the interval between sending Beacon
Requests?
1)Start to search network uint8 ZDApp_StartJoiningCycle( void )
Stop to search network uint8 ZDApp_StopJoiningCycle( void )
2) Change interval of sending Beacon Request
Modify variant zgDefaultStartingScanDuration
// Beacon Order Values
#define BEACON_ORDER_NO_BEACONS 15
#define BEACON_ORDER_4_MINUTES 14 // 245760 milliseconds
#define BEACON_ORDER_2_MINUTES 13 // 122880 milliseconds
#define BEACON_ORDER_1_MINUTE 12 // 61440 milliseconds
#define BEACON_ORDER_31_SECONDS 11 // 30720 milliseconds
#define BEACON_ORDER_15_SECONDS 10 // 15360 MSecs
#define BEACON_ORDER_7_5_SECONDS 9 // 7680 MSecs
#define BEACON_ORDER_4_SECONDS 8 // 3840 MSecs
#define BEACON_ORDER_2_SECONDS 7 // 1920 MSecs
#define BEACON_ORDER_1_SECOND 6 // 960 MSecs
#define BEACON_ORDER_480_MSEC 5
#define BEACON_ORDER_240_MSEC 4
#define BEACON_ORDER_120_MSEC 3
#define BEACON_ORDER_60_MSEC 2
#define BEACON_ORDER_30_MSEC 1
#define BEACON_ORDER_15_MSEC 0
How to make the End Device enter the low power state, how is the sleep time set?
After enabling POWER_SAVING in the protocol stack macro definition, and then make
-DRFD_RCVC_ALWAYS_ON=FALSE in the f8wConfig.cfg file, the End Device can be put to sleep.
The time to sleep is determined by the scheduling of the OSAL operating system. Each sleep time is based on
an event timeout that occurs most recently as the sleep time. Specifically, it is described in the protocol stack
hal_sleep function.
This timeout is mainly divided into two categories, one is the timeout of the application layer event, and the
other is the timeout of the MAC layer event.
1) The timeout time of the application layer is obtained by osal_next_timeout() in the
osal_pwrmgr_powerconserve(void) function.
2) The timeout time of the MAC layer is obtained by MAC_PwrNextTimeout(); in the halSleep( uint16
osal_timeout ) function.