Use External host with NRF5340dk as le audio controller

Hi,
I have been trying to use my esp host mcu with nrf5340dk as a controller.I am using the hci_uart application with CONFIG_BT_LL_ACS_NRF53 =y to include le audio support as a controller. The issue is that I am getting an unknown hci command error on the host when I try to send a command to nrf5340dk. 

Below is my Proj.conf file 

CONFIG_CONSOLE=n
CONFIG_STDOUT_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_BT=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_HCI_RAW_H4=y
CONFIG_BT_HCI_RAW_H4_ENABLE=y
CONFIG_BT_BUF_ACL_RX_SIZE=255
CONFIG_BT_BUF_CMD_TX_SIZE=255
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
CONFIG_BT_CTLR_ASSERT_HANDLER=y
CONFIG_BT_MAX_CONN=16
CONFIG_BT_TINYCRYPT_ECC=n
CONFIG_BT_CTLR_DTM_HCI=y
CONFIG_BT_LL_ACS_NRF53=y
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
Below is my cup app.overlay file
/* SPDX-License-Identifier: Apache-2.0 */
&uart0 {
current-speed = <115200>;
status = "okay";
};

&uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX026)>,
<NRF_PSEL(UART_RTS05)>;
};
group2 {
psels = <NRF_PSEL(UART_RX08)>,
<NRF_PSEL(UART_CTS07)>;
bias-pull-up;
};
};
I am quite uncertain about whether I can use the NRf5340dk board for this or the NRf5340dk audio kit.
Feel free to ask for necessary information to provide support. Thanks in advance 
Parents
  • Hi Kenneth,
    Thanks for suggesting the code 

    #if defined(CONFIG_BT_CTLR_ISO_TX_BUFFERS)
        cmds->hci_le_read_buffer_size_v2 = 1;
        cmds->hci_le_read_iso_tx_sync = 1;
        cmds->hci_le_iso_transmit_test = 1;
    #endif

    This helps in finding the file name hci_internal.c which has all commands under different flags. So enabling those flags will make nrf5340dk  usable to iso commands as well.

    file path : nrf/subsys/bluetooth/controller


    Abhinav

Reply
  • Hi Kenneth,
    Thanks for suggesting the code 

    #if defined(CONFIG_BT_CTLR_ISO_TX_BUFFERS)
        cmds->hci_le_read_buffer_size_v2 = 1;
        cmds->hci_le_read_iso_tx_sync = 1;
        cmds->hci_le_iso_transmit_test = 1;
    #endif

    This helps in finding the file name hci_internal.c which has all commands under different flags. So enabling those flags will make nrf5340dk  usable to iso commands as well.

    file path : nrf/subsys/bluetooth/controller


    Abhinav

Children
No Data
Related