btstack/test/le_audio
2023-10-04 16:46:15 +02:00
..
include test/le_audio: enable gatt pairing 2022-09-26 11:03:26 +02:00
CMakeLists.txt test/le-audio: use example/le_audio_demo_uitil_* 2023-10-04 16:46:14 +02:00
lc3_test.c btstack_lc3: remove helper functions from btstack_lc3_t interface 2022-09-21 09:50:05 +02:00
le_audio_broadcast_assistant.c test/le_audio_broadcast_assistant: also connect to known device by name / legacy advertising 2023-09-26 14:46:00 +02:00
le_audio_broadcast_sink.c test/le-audio: use example/le_audio_demo_uitil_* 2023-10-04 16:46:14 +02:00
le_audio_broadcast_sink.gatt test/le_audio: add .gatt 2022-09-26 11:03:26 +02:00
le_audio_broadcast_source.c test/le-audio: use example/le_audio_demo_uitil_* 2023-10-04 16:46:14 +02:00
le_audio_unicast_gateway.c test/le_audio: rename unicast examples 2023-10-04 16:46:15 +02:00
le_audio_unicast_headset.c test/le_audio: rename unicast examples 2023-10-04 16:46:15 +02:00
main.c btstack: unified handling of zephyr read static address command 2023-09-09 16:35:28 +02:00
README.md test/le_audio: added documentation 2023-09-07 19:57:44 +02:00
telephony.gatt

These samples are meant to be used with the PTS Dongel or an equivalent setup like the one described in here using a nrf5340dk.

nrf5340dk as HCI dongle

for this a working Zephyr build environment is required, where the setup of Zephyr is beyond the scope of this document.

The nrf5340 is a dual core SOC for which the network core handles the low level radio control and the application core handles the actual application. So to make a working dongle the network core and the application core need to be programmed.

network core / Packetcraft LL

for nrf5340 the latest netcore firmware is located at sdk-nrf to program it:

nrfjprog --program ble5-ctr-rpmsg_<version number>.hex --chiperase --coprocessor CP_NETWORK -r

application core

the hci_uart sample is used here over USB CDC build using:

west build -b nrf5340dk_nrf5340_cpuapp -- -DDTC_OVERLAY_FILE=usb.overlay -DOVERLAY_CONFIG=overlay-usb.conf

with usb.overlay specifying to use USB CDC instead of a physical UART

/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

/ {
	chosen {
		zephyr,bt-c2h-uart = &cdc_acm_uart0;
	};
};

&zephyr_udc0 {
	cdc_acm_uart0: cdc_acm_uart0 {
		compatible = "zephyr,cdc-acm-uart";
	};
};

and overlay-usb.conf to enable USB

CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PRODUCT="Zephyr HCI UART sample"
CONFIG_USB_CDC_ACM=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n