Other Parts Discussed in Thread: Z-STACK, CC2652R
如果入网成功了,每次上电就会自动进入休眠。
Z-Stack plugin 2.0版本,使用的是C:\ti\simplelink_zigbee_sdk_plugin_2_20_00_06\examples\rtos\CC26X2R1_LAUNCHXL\zstack\zed_switch示例代码。
如题,请问是哪里的问题?已经使能了POWER_SAVING宏。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello Hold and YK
I have test this issue by simplelink_zigbee_sdk_plugin_0_95_00_18 .
You need remove UI functions in zed_switch_cc26x2lp.
1. Define POWER_MEAS, POWER_SAVING, ZED_POWER_CONSUMPTION_WORKAROUND, remove BOARD_DISPLAY_USE_UART, and add Board_shutDownExtFlash() to main.c
2. Remove all unnecessary isolation jumpers (5V, RXD/TXD, SWO, and TDO/TDI if using 2-pin JTAG for EnergyTrace only, 4-pin is required for ++) and power the MCU externally (Unpopulate VSENS jumper and connect VCC to middle pin, only connecting the USB cable after voltage is applied).
3. Free run your project inside the debugger.
4. Test EnergyTrace results against a power amplifier measurement.
Please check my test screen shot.
e2e上Ryan的解决方法比较折中,就是在zclSampleSw_Init函数初始化完成以后调用steering,这种方式我测试在不成功入网的情况下,end-device仍然是无法自动休眠的,不知有其他什么方法:
zstack_bdbStartCommissioningReq_t zstack_bdbStartCommissioningReq; zstack_bdbStartCommissioningReq.commissioning_mode = BDB_COMMISSIONING_MODE_NWK_STEERING; Zstackapi_bdbStartCommissioningReq(zclSampleSw_Entity,&zstack_bdbStartCommissioningReq);