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断开连接进入低功耗PM3的问题



我的从机进入低功耗的程序如下:

//主动断开当前连接的蓝牙设备连接
GAPRole_TerminateConnection();

//关闭蓝牙广播
uint8 advertising_disable = FALSE;//TRUE:打开广播 FALSE:关闭广播
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof(uint8), &advertising_disable );

//关闭事件
osal_stop_timerEx( simpleBLEPeripheral_TaskID, SYS_EVENT_MSG );
osal_stop_timerEx( simpleBLEPeripheral_TaskID, SBP_PERIODIC_EVT );
osal_stop_timerEx( simpleBLEPeripheral_TaskID, SBP_START_DEVICE_EVT );

//进入PM3 - 外部中断休眠模式
halSleep(0);

当没有任何蓝牙信号连接时,可以进入低功耗,

但是当有蓝牙连接时,从机执行GAPRole_TerminateConnection();断开连接和关闭广播了,但是系统却没有进入低功耗,反而出现广播没有关闭,APP还能收集到广播并连接,

请教各位