bt_bap_broadcast_sink: Failed to add sync as Receive State for sink 0x2000a218

I'm using nrf52840, v3.0.2, scanning BIG/BIS and printing out the BASE.

I first scan the extended broadcast with the label broadcast_id, and then establish synchronization: bt_le_per_adv_sync_create(&sync_create_param, &g_sync_state.sync); in the sync_cb of bt_le_per_adv_sync_cb, I then go to bt_bap_broadcast_sink_create(sync, g_sync_state.broadcast_id, &g_sync_state.sink); in the base_recv callback of bt_bap_broadcast_sink_cb, I parse the BASE content. After parsing, I do bt_le_per_adv_sync_recv_disable(g_sync_state.sync); In state_changed in bt_le_per_adv_sync_cb, call bt_bap_broadcast_sink_delete(g_sync_state.sink);bt_le_per_adv_sync_delete(g_sync_state.sync); and then repeat this process.

An error like <wrn> bt_bap_broadcast_sink: Failed to addsync as Receive State for sink 0x2000a218: -120 will appear.

Parents
  • the log is:

    [DEVICE]: DC:1E:7F:E2:D5:16 (random), Subevent-id 0, RSSI -32, Name: Lecture, ID: 0x123456
    PER_ADV_SYNC: [DEVICE]: DC:1E:7F:E2:D5:16 (random) synced, Interval 200 ms, PHY 2M
    Broadcast sink creating with ID 0x123456.
    Added broadcast ID 0x123456 to synced list.

    Received BASE from broadcast:
    Presentation delay: 40000 us
    Subgroup count: 1
    Could not get codec configuration: -12
    -> Got BASE info, disabling reception.
    PER_ADV_SYNC: [DEVICE]: state changed. recv_enabled: 0
    Warning: Sync not NULL in reset_sync_state.
    Sync state reset. Ready for next advertiser.

    [DEVICE]: D4:EA:63:28:FA:28 (random), Subevent-id 1, RSSI -66, Name: Studio, ID: 0x925A22
    PER_ADV_SYNC: [DEVICE]: D4:EA:63:28:FA:28 (random) synced, Interval 90 ms, PHY 1M
    [00:00:06.046,997] <wrn> bt_bap_broadcast_sink: Failed to add sync as Receive State for sink 0x2000a218: -120
    Broadcast sink creating with ID 0x925A22.
    Added broadcast ID 0x925A22 to synced list.

Reply
  • the log is:

    [DEVICE]: DC:1E:7F:E2:D5:16 (random), Subevent-id 0, RSSI -32, Name: Lecture, ID: 0x123456
    PER_ADV_SYNC: [DEVICE]: DC:1E:7F:E2:D5:16 (random) synced, Interval 200 ms, PHY 2M
    Broadcast sink creating with ID 0x123456.
    Added broadcast ID 0x123456 to synced list.

    Received BASE from broadcast:
    Presentation delay: 40000 us
    Subgroup count: 1
    Could not get codec configuration: -12
    -> Got BASE info, disabling reception.
    PER_ADV_SYNC: [DEVICE]: state changed. recv_enabled: 0
    Warning: Sync not NULL in reset_sync_state.
    Sync state reset. Ready for next advertiser.

    [DEVICE]: D4:EA:63:28:FA:28 (random), Subevent-id 1, RSSI -66, Name: Studio, ID: 0x925A22
    PER_ADV_SYNC: [DEVICE]: D4:EA:63:28:FA:28 (random) synced, Interval 90 ms, PHY 1M
    [00:00:06.046,997] <wrn> bt_bap_broadcast_sink: Failed to add sync as Receive State for sink 0x2000a218: -120
    Broadcast sink creating with ID 0x925A22.
    Added broadcast ID 0x925A22 to synced list.

Children
No Data
Related