Issue on setting tx power peripheral connection when CONFIG_BT_CENTRAL is enabled

hci_pwr_ctrl_with_config_bt_central.zip

I am using the following example as a reference for setting the TX power in a peripheral Bluetooth connection: https://github.com/nrfconnect/sdk-zephyr/tree/v3.6.99-ncs2/samples/bluetooth/hci_pwr_ctrl.

I am on latest nordic connect sdk: 2.7.0.

I am using the nRF21540-DK.

The example works fine when the device is configured to operate as a peripheral only. However, when I enable the central role by setting CONFIG_BT_CENTRAL=y in prj.conf, the SoftDevice asserts an error when trying to change the TX power during a connection as peripheral.

ASSERTION FAIL [0] @ WEST_TOPDIR/nrf/subsys/bluetooth/controller/hci_driver.c:278
SoftDevice Controller ASSERT: 49, 1332

What does the assert mean? Since the SoftDevice code is closed i cannot look into the file and line number i suppose. 

Thanks a lot,

Alessandro

Parents
  • Exactly i simply add the CONFIG_BT_CENTRAL=y and the issue is on the peripheral connection.

    CONFIG_BT=y
    CONFIG_LOG=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_CENTRAL=y
    CONFIG_BT_HRS=y
    CONFIG_BT_DEVICE_APPEARANCE=833
    CONFIG_BT_DEVICE_NAME="Dynamic test beacon"
    CONFIG_BT_CTLR_ADVANCED_FEATURES=y
    CONFIG_BT_CTLR_CONN_RSSI=y
    CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
     
Reply
  • Exactly i simply add the CONFIG_BT_CENTRAL=y and the issue is on the peripheral connection.

    CONFIG_BT=y
    CONFIG_LOG=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_CENTRAL=y
    CONFIG_BT_HRS=y
    CONFIG_BT_DEVICE_APPEARANCE=833
    CONFIG_BT_DEVICE_NAME="Dynamic test beacon"
    CONFIG_BT_CTLR_ADVANCED_FEATURES=y
    CONFIG_BT_CTLR_CONN_RSSI=y
    CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
     
Children
Related