HI
I’m doing secondary development based on periodic_sync_conn in NCS 3.2.1.
After establishing a periodic advertising sync, I have two issues:
- Sometimes the buf is NULL in the
recv_cbcallback. - Sometimes the
recv_cbcallback is not entered at all.
By looking at the Zephyr Bluetooth host code in scan.c, I found:
- The
buf == NULLcase is caused by evt->data_status == BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_RX_FAILED - The
recv_cb not enteredcase is caused by *buf->len < sizeof(evt)
What could be the root causes for these two issues?
Thanks!