nrf5340 bis_reciever

When using two nRF5340 Audio DKs as bis_transmitter and bis_receiver respectively for the iso_time_sync sample, the iso_recv event is triggered.

However, in the respective callback, net_buf::len is 0, and the BT_ISO_FLAGS_VALID bit in bt_iso_recv_info::flags is not set.

Could you please tell me what I should configure or pay attention to?

00> *** Booting nRF Connect SDK v2.7.0-rc2-b2d45030365f ***
00> *** Using Zephyr OS v3.6.99-f047959a650c ***
00> Bluetooth ISO Time Sync Demo
00> [00:00:04.104,370] <inf> bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)
00> [00:00:04.104,400] <inf> bt_hci_core: HW Variant: nRF53x (0x0003)
00> [00:00:04.104,431] <inf> bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 109.50488 Build 2560361275
00> [00:00:04.106,414] <inf> bt_hci_core: Identity: CD:A9:25:EE:E1:D1 (random)
00> [00:00:04.106,445] <inf> bt_hci_core: HCI: version 5.4 (0x0d) revision 0x21f3, manufacturer 0x0059
00> [00:00:04.106,475] <inf> bt_hci_core: LMP: version 5.4 (0x0d) subver 0x21f3
00> Choose role - cis_central (c) / cis_peripheral (p) / bis_transmitter (b) / bis_receiver (r) : r
00> Starting BIS receiver, BIS index 1
00> Scanning for periodic advertiser
00> Waiting for BigInfo
00> Synced to periodic advertiser
00> BigInfo received
00> Syncing to BIG index 1

(gdb) p buf->len
$15 = 0
(gdb) f
#4  0x00005966 in rx_work_handler (work=<optimized out>) at /opt/nordic/ncs/v2.7.0-rc2/zephyr/subsys/bluetooth/host/hci_core.c:4100
4100			hci_iso(buf);
(gdb) bt
#0  iso_recv (chan=0x200001f8 <iso_chan>, info=0x20002ce0 <iso_info_data>, buf=0x20008cbc <_net_buf_iso_rx_pool>) at /opt/nordic/ncs/v2.7.0-rc2/nrf/samples/bluetooth/iso_time_sync/src/iso_rx.c:59
#1  0x0000d2ac in bt_iso_recv (iso=iso@entry=0x200019c0 <iso_conns>, buf=buf@entry=0x20008cbc <_net_buf_iso_rx_pool>, flags=<optimized out>, flags@entry=2 '\002')
    at /opt/nordic/ncs/v2.7.0-rc2/zephyr/subsys/bluetooth/host/iso.c:725
#2  0x00017298 in bt_conn_recv (conn=conn@entry=0x200019c0 <iso_conns>, buf=buf@entry=0x20008cbc <_net_buf_iso_rx_pool>, flags=flags@entry=2 '\002') at /opt/nordic/ncs/v2.7.0-rc2/zephyr/subsys/bluetooth/host/conn.c:417
#3  0x0000cee4 in hci_iso (buf=0x20008cbc <_net_buf_iso_rx_pool>) at /opt/nordic/ncs/v2.7.0-rc2/zephyr/subsys/bluetooth/host/iso.c:140
#4  0x00005966 in rx_work_handler (work=<optimized out>) at /opt/nordic/ncs/v2.7.0-rc2/zephyr/subsys/bluetooth/host/hci_core.c:4100
#5  0x00011a5e in work_queue_main (workq_ptr=0x20001310 <bt_workq>, p2=<optimized out>, p3=<optimized out>) at /opt/nordic/ncs/v2.7.0-rc2/zephyr/kernel/work.c:688

Parents
  • CONFIG_BT=y
    CONFIG_BT_ISO_BROADCASTER=y
    CONFIG_BT_ISO_SYNC_RECEIVER=y
    CONFIG_BT_ISO_CENTRAL=y
    CONFIG_BT_ISO_PERIPHERAL=y
    CONFIG_BT_OBSERVER=y
    CONFIG_BT_DEVICE_NAME="XXXX_BROADCASTER_DEV"
    
    CONFIG_BT_MAX_CONN=5
    CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=1
    
    CONFIG_BT_ISO_MAX_CHAN=4
    CONFIG_BT_ISO_TX_BUF_COUNT=4
    CONFIG_BT_CTLR_ADV_ISO_STREAM_COUNT=4
    CONFIG_BT_CTLR_SYNC_ISO_STREAM_COUNT=4
    CONFIG_BT_CTLR_CONN_ISO_STREAMS=4
    
    CONFIG_BT_ISO_TX_MTU=5
    CONFIG_BT_ISO_RX_MTU=23
    
    CONFIG_CONSOLE=y
    CONFIG_CONSOLE_SUBSYS=y
    CONFIG_CONSOLE_HANDLER=y
    CONFIG_CONSOLE_GETCHAR=y
    

    currently settings.

Reply
  • CONFIG_BT=y
    CONFIG_BT_ISO_BROADCASTER=y
    CONFIG_BT_ISO_SYNC_RECEIVER=y
    CONFIG_BT_ISO_CENTRAL=y
    CONFIG_BT_ISO_PERIPHERAL=y
    CONFIG_BT_OBSERVER=y
    CONFIG_BT_DEVICE_NAME="XXXX_BROADCASTER_DEV"
    
    CONFIG_BT_MAX_CONN=5
    CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=1
    
    CONFIG_BT_ISO_MAX_CHAN=4
    CONFIG_BT_ISO_TX_BUF_COUNT=4
    CONFIG_BT_CTLR_ADV_ISO_STREAM_COUNT=4
    CONFIG_BT_CTLR_SYNC_ISO_STREAM_COUNT=4
    CONFIG_BT_CTLR_CONN_ISO_STREAMS=4
    
    CONFIG_BT_ISO_TX_MTU=5
    CONFIG_BT_ISO_RX_MTU=23
    
    CONFIG_CONSOLE=y
    CONFIG_CONSOLE_SUBSYS=y
    CONFIG_CONSOLE_HANDLER=y
    CONFIG_CONSOLE_GETCHAR=y
    

    currently settings.

Children
No Data
Related