My application is based on the ncs nrf5340_audio application, but my application and hardware target are both out-of-tree and I am using ncs v2.9.0.
I am able to connect to several different models of earbuds that support BLE audio where the UnicastClient connects to two independent BT addresses and sends a mono audio stream to each earbud. However, if I connect to the TWS style of earbuds that only expose one BT address I get an error when parsing the PACS records. I'll insert the debug log output below.
W [00:01:14.304,992] <inf> main: Device connected GW [00:01:16.020,324] <dbg> bt_mgmt: security_changed_cb: Security changed: level 2 GW [00:01:16.020,355] <inf> main: Security changed GW [00:01:16.367,340] <wrn> unicast_client: Got err: 0 from conn: 0x20006110 GW [00:01:16.367,340] <dbg> unicast_client: unicast_discovery_complete_cb: Unicast discovery complete cb GW [00:01:16.367,523] <dbg> main: le_audio_msg_sub_thread: Received event = 8, current state = 1 GW [00:01:16.367,523] <wrn> main: Unexpected/unhandled le_audio event: 8 GW [00:01:16.967,193] <inf> bt_vol_ctlr: VCS discover finished GW [00:01:19.367,309] <dbg> unicast_client: available_contexts_cb: conn: 00:02:3C:AC:F7:CB (public), snk ctx 3983 src ctx 587 GW [00:01:20.467,285] <wrn> unicast_client: More than one sink endpoint found, idx 0 is used by default GW [00:01:20.867,248] <wrn> bt_bap_unicast_client: No space left to parse ASE
I have tried increasing several of the configuration variables that seem like they would allow the firmware to parse all of the endpoints, but so far I have not been able to get the nrf5340 firmware to connect to these kinds of earbuds. Here are the configuration variables that I have updated to try to resolve this issue:
# Gor testing Creative Aurvana earbuds
#CONFIG_BT_MAX_CONN=6
#CONFIG_BT_BUF_ACL_RX_COUNT=8
#CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SNK_COUNT=12
#CONFIG_BT_BAP_UNICAST_CLIENT_ASE_SRC_COUNT=4
Do you have any other suggestions on how to make the nrf5340 firmware connect to this type of earbud system?
Best regards,
Kristopher