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,

  • Hi Aritz, 

    Could you double check in autoconfig.h that's generated by compiling, to see if CONFIG_BT_MAX_CONN is set to 10 or something else?
    I suspect that there could be the chance that the BLE controller was not configured to support more than 2 connections. 

    Could you send the full project so we can compile and test here ? 

  • Hi Hung,

    Thanks for your response.

    I have double checked CONFIG_BT_MAX_CONN in autoconfig.h file and it is set to 10 as well.

    At the moment I am working with a custom board, let me build the project to run in the nRF52840-DK board and I will send the whole project to you.

    Please find attached autoconf.h file.

     

  • 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.

  • Hi Hung,

    Apologies my network connection is not very good today and I am having problems to upload the whole "build" folder.

    I have uploaded just the code and settings files.

    If you send me an email address, I could send you the whole project.

    Regards,

  • Hi Hung,

    I am finishing for today and 2021 year. I will be back to work the 3rd of January.

    Thanks for your time.

    Happy New year!

    Regards

Related