Use native_posix and nrf5340 audio DK controller

This question is being tested at the same time as my previous question.

I want to use linux as host and nrf5340 audio DK as controller.

for linux:

I build zephyr/sameples/bluetooth/broadcast_audio_source with native_posix

for nrf5340 audio DK:

flash to app-core:hci_usb

flash to net-core:ble5-ctr-rpmsg_3330.hex.

nrf5340 audio DK as a ble controller.

Not working properly.

For ohter le audio demo(for example:unicast_audio_client),it also not work properly.

But something is different, the error occurs when connecting, bt_smp timeout.

Can you help me test it, it is very important for our next plan?

Reskyllr

Parents
  • I did quite a bit of experimentation.

    I think it will ok, but there seems to be a problem with the iso:

    *** Booting Zephyr OS build v3.3.99-ncs1-18-g890edab701c0 ***
    -- [00:00:00.088,000] <inf> bt_hci_core: bt_dev_show_info: Identity: EA:5B:B5:CB:5B:DC (random)
    -- [00:00:00.088,000] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    -- [00:00:00.088,000] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.2 (0x0b) subver 0x0d15
    Bluetooth initialized
    Creating broadcast source
    Creating broadcast source with 2 subgroups with 2 streams
    Starting broadcast source
    Broadcast source started
    Waiting 120 seconds before stopped
    -- [00:00:00.250,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.252,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x2800 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.256,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.258,000] <err> bt_hci_core: hci_num_completed_packets: No connection for handle 2048
    -- [00:00:00.258,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    -- [00:00:00.262,000] <wrn> bt_hci_core: hci_cmd_done: opcode 0x0302 pool id 2 pool 0x805b5cc != &hci_cmd_pool 0x805b5a0
    Stopping broadcast source
    Broadcast source stopped
    Deleting broadcast source
    Broadcast source deleted
    Creating broadcast source
    Creating broadcast source with 2 subgroups with 2 streams
    Starting broadcast source
    Broadcast source started
    

    the btmon log:

    https://paste.ubuntu.com/p/fZMx7Vp5pr/

    I need help urgently!

    Thanks,

    Reskllr

  • Hi Reskyllr,

    I will take over this case from Maria.

    Unfortunately, you are using the host which we do not support. Additionally, please have a look at controller's limitations.

    Best regards,
    Dejan

  • Hi,Dejan.

    I have solved this problem, just need to add some config in hci_usb.

    i will off it.

  • Hi Reskyllr,

    Reskyllr said:
    I have solved this problem, just need to add some config in hci_usb.

    This is great to hear! 

    If you want, you could provide relevant config here for the benefit of others.

    Best regards,
    Dejan

Reply Children
  • I asked the developer of zephyr on discord, the problem is that hci_uart or hci_usb also needs to add iso support.

    CONFIG_BT_ISO_PERIPHERAL=y CONFIG_BT_ISO_CENTRAL=y CONFIG_BT_ISO_BROADCASTER=y CONFIG_BT_ISO_SYNC_RECEIVER=y CONFIG_BT_ISO_MAX_CHAN=8 CONFIG_BT_ISO_TX_BUF_COUNT=10 CONFIG_BT_ISO_RX_BUF_COUNT=10 CONFIG_BT_EXT_ADV=y CONFIG_BT_PER_ADV=y CONFIG_BT_PER_ADV_SYNC=y CONFIG_BT_BUF_ACL_TX_SIZE=255 CONFIG_BT_BUF_ACL_RX_SIZE=255

Related