Error Occurred During Step-by-Step Channel Sounding Distance Measurement

Hi Nordic,

I am currently writing about the process of performing channel sounding sequentially on three connected devices. However, after the first channel sounding is completed and the CS procedure is closed, when I attempt to start the second channel sounding (using bt_le_cs_procedure_enable), the following error occurs:

[00:00:28.513,899] <wrn> bt_hci_core: opcode 0x2094 status 0x07 
[00:00:28.513,910] <err> app_main: Failed to enable CS procedures (err -5)


According to the Bluetooth specification, this error corresponds to "Memory Capacity Exceeded". I would like to ask how to resolve this issue.

Thanks!

Parents
  • Hi

    Okay, does indeed seem like it's related to the allocated memory on the application. First off, can you try moving to NCS v3.0.0 where we added a lot of support for Bluetooth channel sounding?

    Then, if you still see issues with the bt_le_cs_procedure_enable() try increasing the memory allocated with CONFIG_MAIN_STACK_SIZE or increase CONFIG_BT_MAX_CONN for example.

    Best regards,

    Simon

    EDIT: I had a conversation with one of the developers today, and we suspect that the error you're seeing is caused by CONFIG_BT_CTLR_SDC_CS_COUNT=1 in your config file. Can you try setting this to 3 and see if that fixes your issue?

Reply
  • Hi

    Okay, does indeed seem like it's related to the allocated memory on the application. First off, can you try moving to NCS v3.0.0 where we added a lot of support for Bluetooth channel sounding?

    Then, if you still see issues with the bt_le_cs_procedure_enable() try increasing the memory allocated with CONFIG_MAIN_STACK_SIZE or increase CONFIG_BT_MAX_CONN for example.

    Best regards,

    Simon

    EDIT: I had a conversation with one of the developers today, and we suspect that the error you're seeing is caused by CONFIG_BT_CTLR_SDC_CS_COUNT=1 in your config file. Can you try setting this to 3 and see if that fixes your issue?

Children
Related