Other Parts Discussed in Thread: Z-STACK
您好,
想請教一下,以下兩個問題:
1. Coordinator與End-Device連線後,假設斷線,在Coordinator與End-Device的Z-Stack程序中,那部分可以知道彼此已經斷網的訊息呢?
2. 在斷網後,Coordinator或End-Device 使用哪種API可以發出beacon request呢?
非常感謝您
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.
Other Parts Discussed in Thread: Z-STACK
您好,
想請教一下,以下兩個問題:
1. Coordinator與End-Device連線後,假設斷線,在Coordinator與End-Device的Z-Stack程序中,那部分可以知道彼此已經斷網的訊息呢?
2. 在斷網後,Coordinator或End-Device 使用哪種API可以發出beacon request呢?
非常感謝您
以Z-Stack 3.0.2的sampleSwitch為例,end device跟父節点断線時会進到zclSampleSw_ProcessCommissioningStatus 的 case BDB_COMMISSIONING_PARENT_LOST: 去启动osal_start_timerEx(zclSampleSw_TaskID, SAMPLEAPP_END_DEVICE_REJOIN_EVT, SAMPLEAPP_END_DEVICE_REJOIN_DELAY)作rejoin;至於協調器並無法得知end device断線、這部份可以透過應用程序去執行heart beat達成
設定RFD_RCVC_ALWAYS_ON=TRUE後不要把polling rate設置為0應該就可以解決你的問題
您好,您是說f8wConfig.cfg中的以下參數,不要把polling rate設置為0嗎? 感謝
-DPOLL_RATE=1000
-DQUEUED_POLL_RATE=51
-DRESPONSE_POLL_RATE=51
-DREJOIN_POLL_RATE=440
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
我在ZDO_STATE_CHANGE_EVT中加printf訊息,發現在RFD_RCVC_ALWAYS_ON=TRUE斷網後,不會觸發ZDO_STATE_CHANGE_EVT ,還有其他地方可以觸發斷網狀態嗎? 不好意思麻煩您了,感謝
if ( events & ZDO_STATE_CHANGE_EVT )
{
ZDO_UpdateNwkStatus( devState );
// At start up, do one MTO route discovery if the device is a concentrator
if ( zgConcentratorEnable == TRUE )
{
// Start next event
osal_start_timerEx( NWK_TaskID, NWK_MTO_RTG_REQ_EVT, 100 );
}
// Return unprocessed events
return (events ^ ZDO_STATE_CHANGE_EVT);
}