This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Extended advertising and central role compatibility

Hi all,

We are developing an application using nRF52840 device and the idea is to enable the device with peripheral and central roles.

We would like to set two advertising sets, first one for legacy advertising on 1M PHY and a second one, extended, on Coded PHY.

I managed to make both advertising sets work if CONFIG_BT_CENTRAL role is not enabled. However, if CONFIG_BT_CENTRAL is enabled, I have got BT_HCI_ERR_CONN_LIMIT_EXCEEDED error when executing bt_le_ext_adv_start() function.

I am working with nRF Connect SDK v1.8.0 and SoftDevice HCI Controller.

Please find attached debug output screenshot, ble.c application code and prj.conf file.

Any suggestion would be much appreciated.

Kindest regards,

Parents
  • Hi Hung,

    I managed to reproduce the two errors I am seeing in our custom board with a nRF52840 evaluation board.

    1. When enabling the second advertising set, bt_le_ext_adv_start() function is giving BT_HCI_ERR_CONN_LIMIT_EXCEEDED error and advertising is not started.

    2. When enabling one only set of advertising (either legacy advertising or extended one in Coded/"M PHY), the scanning code stops working on Coded/2M PHY, it does not detect advertising packets.

    Please find attached the whole project folder.  Please copy it into "ncs\v1.8.0\nrf\samples\bluetooth" folder.

Reply
  • Hi Hung,

    I managed to reproduce the two errors I am seeing in our custom board with a nRF52840 evaluation board.

    1. When enabling the second advertising set, bt_le_ext_adv_start() function is giving BT_HCI_ERR_CONN_LIMIT_EXCEEDED error and advertising is not started.

    2. When enabling one only set of advertising (either legacy advertising or extended one in Coded/"M PHY), the scanning code stops working on Coded/2M PHY, it does not detect advertising packets.

    Please find attached the whole project folder.  Please copy it into "ncs\v1.8.0\nrf\samples\bluetooth" folder.

Children
No Data
Related