Other Parts Discussed in Thread: CC2592, Z-STACK
macRadioTurnOnPower()已经更改,使能的#define HAL_PA_LNA,
结果设备组网很慢(使能了NV_RESTORE),并且很大几率组网不成功。
难道只能升级协议栈吗
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.
程序没做什么,就是为了测试效果
if( events & 0x0001 )
{
osal_set_event(zclGenericApp_TaskID,0x0040) ;
return (events);
}
if( events & 0x0040)
{
return (events ^ 0x0040);
}
處理 0x0001事件後你沒有把bit mask去掉才會一直重複,程序應該要改為
if( events & 0x0001 )
{
osal_set_event(zclGenericApp_TaskID,0x0040) ;
return (events^0x0001 );
}
实际应用中 这个事件就是要一直循环,但是在这个事情中调用osal_set_event()无法触发0x0040事件。
而且我在0x0001事件中加入 osal_set_event(zclGenericApp_TaskID,0x0040 | 0x0001);
也只有0x0001事件可以触发,无0x0040.
组网为终端设备的时候 调用 osal_set_event(zclGenericApp_TaskID,0x0001);
刚使用 协议栈中的GENERICAPP_EVT_2 GENERICAPP_EVT_3事件 可以实现上述问题。
这是什么原因导致的啦?