Could not create unicast group (err -134)

I am trying the Zephry Bluetooth samples unicast_audio_server and unicast_audio_client at 

https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/unicast_audio_server and 

https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/unicast_audio_client 

On the client side when the client connects to the server, it fails to create a unicast group with error -134 on calling bt_audio_unicast_group_create()

The terminal out of the clint program is below. What could be causing this? Thanks in advance. 

[AD]: 1 data_len 1
[AD]: 3 data_len 2
Audio server found; connecting
MTU exchanged: 23/23
Connected: F4:5D:59:89:91:45 (random)
MTU exchanged: 65/65
Connected
Discovering sinks
#0: codec_capabilities 0x2000324c dir 0x01
codec 0x06 cid 0x0000 vid 0x0000 count 5
data #0: type 0x01 len 2
f5
data #1: type 0x02 len 1data #2: type 0x03 len 1data #3: type 0x04 len 4
280078
data #4: type 0x05 len 1meta #0: type 0x01 len 2
06
dir 1 loc 4
snk ctx 31 src ctx 15
Sink #0: ep 0x20003070
Sink #1: ep 0x2000315c
Discover sinks complete: err 0
Sinks discovered
Discovering sources
#0: codec_capabilities 0x200032b4 dir 0x02
codec 0x06 cid 0x0000 vid 0x0000 count 5
data #0: type 0x01 len 2
f5
data #1: type 0x02 len 1data #2: type 0x03 len 1data #3: type 0x04 len 4
280078
data #4: type 0x05 len 1meta #0: type 0x01 len 2
06
dir 2 loc 3
snk ctx 31 src ctx 15
Sink #0: ep 0x20002e98
Discover sources complete: err 0
Sources discovered
Configuring streams
Audio Stream 0x20002064 configured
Configured sink stream[0]
Audio Stream 0x20002088 configured
Configured sink stream[1]
Audio Stream 0x200020ac configured
Configured source stream[0]
Stream configured
Creating unicast group
Could not create unicast group (err -134)
[00:01:27.483,917] <err> bt_audio_stream: bt_audio_cig_create: bt_iso_cig_create failed: -134

Parents Reply Children
  • Hi  

    When I add CONFIG_BT_LL_SW_SPLIT=y to the proj.conf of the hci_rpmsg sample and flash the network core with it, then the server can't even create an advertising set. With this disabled, it can create an advertising set, but then the client is unable to create  a unicast group.  

    *** Booting Zephyr OS build v3.2.99-ncs1 ***
    Bluetooth initialized
    Location successfully set
    Available contexts successfully set
    Failed to create advertising set (err -5)
    

  • Hello,

    I am taking over this case from Karl. I can look closer into it over the weekend, but I have some initial thoughts.

    I can see that you are linking to both Zephyr and NCS documentation, and I want to clear up which SDK you are using.

    Are you using Zephyr from Zephyr Project or the Zephyr samples from nRF Connect SDK? NCS uses a downstream version of Zephyr, and the different version could be a factor for your error.

    Kind Regards,
    Maria

  • Ok. If you don't have nRF Connect SDK (NCS)  installed, please follow these instructions to install it.

    Then you can find unicast_server and unicast_client located at <ncs-installation>/zephyr/samples/bluetooth. Include CONFIG_BT_LL_SW_SPLIT to the prj.conf for both samples as Karl described and build the modified sample.

    Regards,
    Maria

  •  Thanks for your reply. However, there is still an issue. The server fails to set advertising data. Here is my output

    *** Booting Zephyr OS build v3.2.99-ncs1-1547-ge2bec540218d ***
    [00:00:00.395,599] <inf> bt_hci_core: hci_vs_init: HW Platform: Nordic Semiconductor (0x0002)
    [00:00:00.395,660] <inf> bt_hci_core: hci_vs_init: HW Variant: nRF53x (0x0003)
    [00:00:00.395,690] <inf> bt_hci_core: hci_vs_init: Firmware: Standard Bluetooth controller (0x00) Version 3.2 Build 99
    [00:00:00.397,796] <inf> bt_hci_core: bt_dev_show_info: Identity: E6:15:13:0B:35:CD (random)
    [00:00:00.397,827] <inf> bt_hci_core: bt_dev_show_info: HCI: version 5.3 (0x0c) revision 0x0000, manufacturer 0x05f1
    [00:00:00.397,857] <inf> bt_hci_core: bt_dev_show_info: LMP: version 5.3 (0x0c) subver 0xffff
    Bluetooth initialized
    Location successfully set
    Available contexts successfully set
    [00:00:00.399,291] <wrn> bt_hci_core: bt_hci_cmd_send_sync: opcode 0x2037 status 0x0c
    Failed to set advertising data (err -5)
    

Related