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.

1.2.2 z-stack 低功耗设备加网问题

Other Parts Discussed in Thread: Z-STACK, CC2530

平台 cc2530 z-stack home 1.2.2.42930,具体问题如下:

1.设置DEFAULT_CHANLIST = 0x7180000,设备上电找网,找网部分直接使用SampleDoorLock例程代码,之后设备会进入如下函数ZDApp_ProcessNetworkJoin(),执行

if ( ZG_SECURE_ENABLED && ( ZDApp_RestoreNwkKey( TRUE ) == false ) )
{
// wait for auth from trust center
ZDApp_ChangeState( DEV_END_DEVICE_UNAUTH );

// Start the reset timer for MAX UNAUTH time

ZDApp_ResetTimerStart( MAX_DEVICE_UNAUTH_TIMEOUT );
}

这一串代码,导致设备十秒钟之后重启。设备在什么情况下会进入执行这段代码?如果我需要设备继续找网,不希望设备重启,同时不影响设备的找网过程,需要怎么改动?

2.在我将上面那段代码里面的ZDApp_ResetTimerStart( MAX_DEVICE_UNAUTH_TIMEOUT );注释掉的情况下,设备只会寻找19,20,24三个信道,剩下的25和26都没有抓到信标帧,找网部分代码直接使用例程的代码,没有做任何改动,请问是什么原因?