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.

2541SimpleBLEPeripheral程序进入PM3模式

Other Parts Discussed in Thread: CC2590

大家好

我用的是SimpleBLEPeripheral程序,想请问一下各位大神们。当我这样配置时

// What is the advertising interval when device is discoverable (units of 625us, 160=100ms)
#define DEFAULT_ADVERTISING_INTERVAL          160       //广播间隔默认100ms

#define DEFAULT_DISCOVERABLE_MODE             GAP_ADTYPE_FLAGS_GENERAL

uint16 gapRole_AdvertOffTime = 0;

GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime );

 uint16 default_advInt=160;//默认100ms

 GAP_SetParamValue( TGAP_GEN_DISC_ADV_INT_MIN, default_advInt );
 GAP_SetParamValue( TGAP_GEN_DISC_ADV_INT_MAX, default_advInt );

在初始化函数(SimpleBLEPeripheral_Init)中加入下面代码

 #if defined ADD_CC2590
    HCI_EXT_ExtendRfRangeCmd();
    TXPOWER = 0xF1;
    HCI_EXT_SetRxGainCmd(HCI_EXT_RX_GAIN_HIGH);
#endif

为什么一天半后程序会进入PM3模式??????????????????????????????

希望大神们不吝赐教,先谢过了