请教:我在用zstack mseh 组网是,用ubiqua抓包 总是发生大量的数据包不断刷屏(如Beacon Request、Power Configuration、Data 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.
请教:我在用zstack mseh 组网是,用ubiqua抓包 总是发生大量的数据包不断刷屏(如Beacon Request、Power Configuration、Data Request)感觉好像崩溃了,这是什么原因啊?
你每次启动都清除zgWriteStartupOptions是怎麼做的,程序貼上來看看;另外如果每次启动都要清除zgWriteStartupOptions,應該可以直接不定義NV_RESTORE就好
zgWriteStartupOptions在main()方法里;
使能了NV_RESTORE
int main( void )
{
// Turn off interrupts
osal_int_disable( INTS_ALL );
// Initialization for board related stuff such as LEDs
HAL_BOARD_INIT();
// Make sure supply voltage is high enough to run
zmain_vdd_check();
// Initialize board I/O
InitBoard( OB_COLD );
// Initialze HAL drivers
HalDriverInit();
// Initialize NV System
osal_nv_init( NULL );
zgWriteStartupOptions(ZG_STARTUP_SET, ZCD_STARTOPT_DEFAULT_NETWORK_STATE);//清除NV数据
// Initialize the MAC
使能了低功耗,在定时任务里,每次任务启动
if ( events & GENERICAPP_SEND_MSG_EVT )
{
// Send "the" message
NLME_SetPollRate( 0 );
NLME_SetQueuedPollRate( 0 );
NLME_SetResponseRate(0 );