Hi all,
As I wanted to try out the new extended periodic advertising examples (periodic_adv and periodic_sync) located under /v1.5.0/zephyr/samples/bluetooth of the latest nRF Connect SDK (V1.5.0). This post focuses on the periodic_adv sample.
Try with the nrf softdevice
On line 335 (bt_hci_cmd_send_sync()) I stumbled upon an error code with value -1, since coming from the HCI I suppose it means BT_HCI_ERR_UNKNOWN_CMD from which I deduce that periodic extended advertising is not yet supported by the softdevice that is used with that version of the SDK and the nrf52840 DK. Question Number 1: is that correct?
The call stack leading to this error is as follows:
main()
main.c line 37: bt_le_per_adv_set_param()
hci_core line 7156: bt_hci_cmd_send_sync()
hci_core line 335 status = cmd(buf)->status; Here the status is -1
hci_core line 337 bt_hci_cmd_send_sync()
Because of status being -1 the bt_le_per_adv_set_param() function fails and the execution is aborted.
Try with the Zephyr BLE Controller
Since the samples are located in the Zephyr directory and not in the nrf directory I tried to select the BLE controller from Zephyr by enabling BLE_LL_SW_SPLIT in the sdk configuration tool. By using the BLE controller form Zephyr I don't get the BT_HCI_ERR_UNKNOWN_CMD error anymore but instead I run in a semaphore timeout, the call stack is as follows :
main()
line 52: bt_le_ext_adv_start()
line 8754: set_le_adv_enable_ext()
line 561: bt_hci_cmd_send_sync()
line 332: hci_core k_sem_take()
line 333: BT_ASSERT_MSG() with err being -11
Here is a screenshot of the Terminal:
Question number 2: does that mean that the BLE Controller from Zephyr does not yet support periodic extended advertising?
Here I found that the Zephyr BLE Controller does not support extended advertising. Which brings me to Question 3: Can you provide a roadmap as to when the periodic advertising samples will be supported respectively by the softdevice and the Zephyr BLE Controller?
I hope I have exposed my problem clearly, I am looking forward to reading your answers
Cheers
Colin