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.

cc2540怎么开关广播



各位大侠:

        我使用一个按键来开关广播,关闭广播为了更加省电

广播设置为一直打开,然后用如下的方式打开或关闭广播

打开和关闭广播都正常,但关闭广播时候电流更大,请问是什么原因

initial_advertising_enable =  !initial_advertising_enable;
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable );

谢谢!

  • 请问您现在关闭广播时候电流大约是多少?关闭广播后是否还有其他任务运行?是否预编译了POWER_SAVING

    如在协议栈simpleBLEPeripheral中,如果关闭广播后, 定时器任务完成后系统是会自动进入PM3 模式的, 除非有定时任务没有完成才会在PM2.

    不需要额外做什么, 如果有定时任务没完成, 系统会立即进入PM2, 不然就立即进入PM3