This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Keep Advertising even after connection established

Hello,

 

I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1 and Segger for flashing the image. I am using ‘ble_app_blinky’.

I have a use case where peripheral need to keep advertisement even after connection establishment.

In this case when I call advertising_start() under BLE_GAP_EVT_CONNECTED in ble_evt_handler(), I am getting fatal error.

 

Please let me know how to do.

 

Thanks & Regards

Vishnu Beema

Parents
  • Hi,

     

    I have gone through “ble_app_multiperipheral” and modified code so that even after connection, peripheral can still advertise.

    I modified NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_TOTAL_LINK_COUNT to 2. When I compiled and executed I got below error. I changed RAM_START and RAM_SIZE to the values mentioned in snapshot.

     

    With this changes I am able to connect and see Advertisement from the Peripheral.

     

    My last queries are

    1) Whether value of NRF_SDH_BLE_TOTAL_LINK_COUNT should be sum of NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_CENTRAL_LINK_COUNT as it is used in NRF_BLE_QWRS_DEF(m_qwr, NRF_SDH_BLE_TOTAL_LINK_COUNT);

     

    2) In ble_app_multiperipheral, LINK_TOTAL is used in few places NRF_SDH_BLE_TOTAL_LINK_COUNT is passed in NRF_BLE_QWRS_DEF(). To my understanding both are same. Correct me if I am wrong.

    Thanks & Regards

    Vishnu Beema

Reply
  • Hi,

     

    I have gone through “ble_app_multiperipheral” and modified code so that even after connection, peripheral can still advertise.

    I modified NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_TOTAL_LINK_COUNT to 2. When I compiled and executed I got below error. I changed RAM_START and RAM_SIZE to the values mentioned in snapshot.

     

    With this changes I am able to connect and see Advertisement from the Peripheral.

     

    My last queries are

    1) Whether value of NRF_SDH_BLE_TOTAL_LINK_COUNT should be sum of NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_CENTRAL_LINK_COUNT as it is used in NRF_BLE_QWRS_DEF(m_qwr, NRF_SDH_BLE_TOTAL_LINK_COUNT);

     

    2) In ble_app_multiperipheral, LINK_TOTAL is used in few places NRF_SDH_BLE_TOTAL_LINK_COUNT is passed in NRF_BLE_QWRS_DEF(). To my understanding both are same. Correct me if I am wrong.

    Thanks & Regards

    Vishnu Beema

Children
No Data
Related