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.

CC2541 - Advertising after Exit PM3

Other Parts Discussed in Thread: CC2541

Hi,

our current system gets set into PM3 manualy for a shutdown when we dont need it.

The wakeup is performed by an external interrupt.

Sadly advertising / connecting to the device after exiting PM3 is not wokring.

I already tried calling:

// Start the Device
VOID GAPRole_StartDevice(&sensorTag_PeripheralCBs);

// Start Bond Manager
VOID GAPBondMgr_Register(&sensorTag_BondMgrCBs);

uint8 turnOnAdv = TRUE;
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &turnOnAdv );

wihtout success.


Our code is based on the SensorTag.

Do we have to calle the complete void SensorTag_Init() after exiting PM3?


regards

Frederik

  • Hi Frederik,

    You should follow the GAPROLE_ADVERT_ENABLED set parameter call into the peripheral role and see why it is failing to start advertising.
  • Hi Frederik,

    If CC2541 was on PM3 sleep, then on wake you don't need to call 'GAPRole_StartDevice' and 'GAPBondMgr_Register' again. These function need to be called only at the beginning. You only need to start advertisement to make the device discoverable, so that central device can make connection to it.

    Hope this helps!

    Thanks,

    Dhaval

    Note: If this has answered your question, then you may like to click on 'Verify Answer'!