Cannot use unicast_client and unicast_server in nRF5340 Audio DKs

Hi,

I have two nRF5340 DKs and want one to be server, one be client. I use NCS offcial code and simply buide them, however, "LED3 starts blinking green on every device to indicate the ongoing CPU activity on the application core" Both boards' LED3 is not blinky after I program the DK.

I am confused as "Building and programming using the nRF Connect for VS Code extension is currently not supported." Could you help me on this? I just want one board send out audio and one play it. Thank you so much!

Parents
  • Hello,

    I have two nRF5340 DKs

    Your title and text indicate two different boards. Are you using the nRF5340 DK or nRF5340 Audio DK?

    I have two nRF5340 DKs and want one to be server, one be client. I use NCS offcial code and simply buide them, however, "LED3 starts blinking green on every device to indicate the ongoing CPU activity on the application core" Both boards' LED3 is not blinky after I program the DK.

    You are using the documentation for the nRF5340 Audio applications while building the Zephyr samples BAP Unicast Audio Client and Server. The Zephyr samples does not configure LED3 to indicate application core activity.

    I am confused as "Building and programming using the nRF Connect for VS Code extension is currently not supported." Could you help me on this? I just want one board send out audio and one play it. Thank you so much!

    The nRF5340 Audio applications use command line or a python script to build and program the applications. This is to ease programming of multiple kits with a single command.

    You can also build and program the application with the VS Code extension, though. I shared this method in another ticket a few months ago:  RE: Building Audio Broadcast SDK example in VS Code . I used the nRF5340 Audio Broadcast Source as an example back then, but let me know if you have any issues with using the nrF Connect for VS Code extension to build the nRF5340 Audio Unicast Client or Server applications.

    Best regards,

    Maria

  • Hi,

    Thank you for your information! I am using two nRF5340 Audio DK.

    I have just finish program the boards, however, the two board cannot set up connection. Could you give me some advice, I have tried erase and download it for many times.

  • Hello,

    Ziyao Zhou said:
    Thank you for your information! I am using two nRF5340 Audio DK.

    You're welcome! Thank you for confirming that you are using the Audio DKs.

    Ziyao Zhou said:
    I have just finish program the boards, however, the two board cannot set up connection. Could you give me some advice, I have tried erase and download it for many times.

    Are you getting any logging output from the Audio DKs? Logging should be enabled by default when using the prj.conf configuration file to build.

    Which nRF Connect SDK version are you working with? I could try to reproduce if the log from the DKs are not helpful.

    Best regards,

    Maria

  • Hi,

    Thank you for your reply! I have no idea how to use the vs studio to complile and program, so I am using Building and programming using script as shown in the offical document.

    The errors shows

    headset:

    *** Booting nRF Connect SDK v2.9.1-60d0d6c8d42d ***
    *** Using Zephyr OS v3.7.99-ca954a6216c9 ***
    HL [00:00:00.465,606] <inf> board_version: Compatible board/HW version found: 1.0.0
    HL [00:00:00.498,229] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp       
             NCS base version: 2.9.1                     
             Cmake run : Tue May 13 19:27:03 2025
    HL [00:00:00.498,229] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.498,229] <inf> fw_info: HEADSET left device
    HL [00:00:00.537,475] <wrn> bt_ecc: ECC HCI commands not available
    HL [00:00:00.541,748] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 0
    HL [00:00:00.541,931] <inf> bt_mgmt: Local identity addr: D0:87:E1:F8:8C:8A (random)
    HL [00:00:00.570,861] <wrn> unicast_server: CSIP using the default SIRK, must be changed before production
    HL [00:00:00.575,012] <inf> bt_mgmt_adv: Local addr: 75:03:1B:30:F1:23 (random)
    HL [00:00:00.575,103] <inf> bt_mgmt_adv: Adv directed to: CF:26:7F:75:A8:6E (random).
    HL [00:00:00.575,622] <inf> bt_mgmt_adv: Advertising successfully started
    HL [00:00:00.586,120] <inf> bt_mgmt: Connected: CF:26:7F:75:A8:6E (random)
    HL [00:00:00.586,151] <inf> main: Connection event. Num connections: 1
    HL [00:00:00.586,334] <inf> bt_mgmt_adv: RPA (Resolvable Private Address) expired.
    HL [00:00:00.586,395] <inf> bt_mgmt_adv: Local addr: 75:03:1B:30:F1:23 (random)
    HL [00:00:00.616,546] <inf> main: Security changed
    HL [00:00:00.616,729] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:00.616,729] <wrn> bt_pacs: PACS notify failed: -22
    HL [00:00:00.616,790] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:00.616,790] <wrn> bt_pacs: Available Audio Contexts notify failed: -22
    HL [00:00:00.716,735] <err> bt_content_ctrl_media: Discovery of MCS failed (5)

    server:

    *** Booting nRF Connect SDK v2.9.1-60d0d6c8d42d ***
    *** Using Zephyr OS v3.7.99-ca954a6216c9 ***
    GW [00:00:00.391,906] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.424,224] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp       
             NCS base version: 2.9.1                     
             Cmake run : Tue May 13 19:29:17 2025
    GW [00:00:00.424,224] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.424,224] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.462,524] <wrn> bt_ecc: ECC HCI commands not available
    GW [00:00:00.466,217] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 0
    GW [00:00:00.466,430] <inf> bt_mgmt: Local identity addr: CF:26:7F:75:A8:6E (random)
    GW [00:00:00.466,583] <inf> audio_usb: Ready for USB host to send/receive.
    GW [00:00:00.469,787] <inf> bt_mgmt_scan: Local addr: 7B:23:66:F1:2E:4C (random). May time out. Updates not printed
    GW [00:00:00.469,818] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.602,264] <inf> bt_mgmt_scan: Creating connection to bonded device: D0:87:E1:F8:8C:8A (random)
    GW [00:00:00.608,734] <inf> bt_mgmt: Connected: D0:87:E1:F8:8C:8A (random)
    GW [00:00:00.608,764] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.649,597] <inf> main: Security changed
    GW [00:00:00.759,643] <err> unicast_client: Discovery failed: 5
    GW [00:00:00.819,763] <inf> bt_vol_ctlr: VCS discover finished
    GW [00:00:01.019,622] <wrn> unicast_client: Got err: 5 from conn: 0x20004f20
    GW [00:00:01.020,812] <inf> bt_mgmt_scan: Local addr: 7B:23:66:F1:2E:4C (random). May time out. Updates not printed
    GW [00:00:01.020,812] <inf> bt_mgmt_scan: Scanning successfully started

    Thank you so much!

Reply
  • Hi,

    Thank you for your reply! I have no idea how to use the vs studio to complile and program, so I am using Building and programming using script as shown in the offical document.

    The errors shows

    headset:

    *** Booting nRF Connect SDK v2.9.1-60d0d6c8d42d ***
    *** Using Zephyr OS v3.7.99-ca954a6216c9 ***
    HL [00:00:00.465,606] <inf> board_version: Compatible board/HW version found: 1.0.0
    HL [00:00:00.498,229] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp       
             NCS base version: 2.9.1                     
             Cmake run : Tue May 13 19:27:03 2025
    HL [00:00:00.498,229] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.498,229] <inf> fw_info: HEADSET left device
    HL [00:00:00.537,475] <wrn> bt_ecc: ECC HCI commands not available
    HL [00:00:00.541,748] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 0
    HL [00:00:00.541,931] <inf> bt_mgmt: Local identity addr: D0:87:E1:F8:8C:8A (random)
    HL [00:00:00.570,861] <wrn> unicast_server: CSIP using the default SIRK, must be changed before production
    HL [00:00:00.575,012] <inf> bt_mgmt_adv: Local addr: 75:03:1B:30:F1:23 (random)
    HL [00:00:00.575,103] <inf> bt_mgmt_adv: Adv directed to: CF:26:7F:75:A8:6E (random).
    HL [00:00:00.575,622] <inf> bt_mgmt_adv: Advertising successfully started
    HL [00:00:00.586,120] <inf> bt_mgmt: Connected: CF:26:7F:75:A8:6E (random)
    HL [00:00:00.586,151] <inf> main: Connection event. Num connections: 1
    HL [00:00:00.586,334] <inf> bt_mgmt_adv: RPA (Resolvable Private Address) expired.
    HL [00:00:00.586,395] <inf> bt_mgmt_adv: Local addr: 75:03:1B:30:F1:23 (random)
    HL [00:00:00.616,546] <inf> main: Security changed
    HL [00:00:00.616,729] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:00.616,729] <wrn> bt_pacs: PACS notify failed: -22
    HL [00:00:00.616,790] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:00.616,790] <wrn> bt_pacs: Available Audio Contexts notify failed: -22
    HL [00:00:00.716,735] <err> bt_content_ctrl_media: Discovery of MCS failed (5)

    server:

    *** Booting nRF Connect SDK v2.9.1-60d0d6c8d42d ***
    *** Using Zephyr OS v3.7.99-ca954a6216c9 ***
    GW [00:00:00.391,906] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.424,224] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp       
             NCS base version: 2.9.1                     
             Cmake run : Tue May 13 19:29:17 2025
    GW [00:00:00.424,224] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.424,224] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.462,524] <wrn> bt_ecc: ECC HCI commands not available
    GW [00:00:00.466,217] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 0
    GW [00:00:00.466,430] <inf> bt_mgmt: Local identity addr: CF:26:7F:75:A8:6E (random)
    GW [00:00:00.466,583] <inf> audio_usb: Ready for USB host to send/receive.
    GW [00:00:00.469,787] <inf> bt_mgmt_scan: Local addr: 7B:23:66:F1:2E:4C (random). May time out. Updates not printed
    GW [00:00:00.469,818] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.602,264] <inf> bt_mgmt_scan: Creating connection to bonded device: D0:87:E1:F8:8C:8A (random)
    GW [00:00:00.608,734] <inf> bt_mgmt: Connected: D0:87:E1:F8:8C:8A (random)
    GW [00:00:00.608,764] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.649,597] <inf> main: Security changed
    GW [00:00:00.759,643] <err> unicast_client: Discovery failed: 5
    GW [00:00:00.819,763] <inf> bt_vol_ctlr: VCS discover finished
    GW [00:00:01.019,622] <wrn> unicast_client: Got err: 5 from conn: 0x20004f20
    GW [00:00:01.020,812] <inf> bt_mgmt_scan: Local addr: 7B:23:66:F1:2E:4C (random). May time out. Updates not printed
    GW [00:00:01.020,812] <inf> bt_mgmt_scan: Scanning successfully started

    Thank you so much!

Children
No Data
Related