Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/releases/release-notes-4.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ New APIs and options
* Bluetooth

* Audio

* :c:macro:`BT_BAP_ADV_PARAM_CONN_QUICK`
* :c:macro:`BT_BAP_ADV_PARAM_CONN_REDUCED`
* :c:macro:`BT_BAP_CONN_PARAM_SHORT_7_5`
* :c:macro:`BT_BAP_CONN_PARAM_SHORT_10`
* :c:macro:`BT_BAP_CONN_PARAM_RELAXED`
* :c:macro:`BT_BAP_ADV_PARAM_BROADCAST_FAST`
* :c:macro:`BT_BAP_ADV_PARAM_BROADCAST_SLOW`
* :c:macro:`BT_BAP_PER_ADV_PARAM_BROADCAST_FAST`
* :c:macro:`BT_BAP_PER_ADV_PARAM_BROADCAST_SLOW`

* Host

* :c:func:`bt_le_get_local_features`
Expand Down
95 changes: 95 additions & 0 deletions include/zephyr/bluetooth/audio/bap.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The BAP specification suggests to use an advertising interval of 20-30 ms or 150 ms. See https://www.bluetooth.com/specifications/specs/bap-1-0-2/. Is there a reason for not sticking to that?

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <zephyr/bluetooth/addr.h>
#include <zephyr/bluetooth/bluetooth.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/bluetooth/gap.h>
#include <zephyr/bluetooth/iso.h>
#include <zephyr/net_buf.h>
#include <zephyr/sys/slist.h>
Expand All @@ -51,6 +52,100 @@ extern "C" {
/** An invalid Broadcast ID */
#define BT_BAP_INVALID_BROADCAST_ID 0xFFFFFFFFU

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for selecting different sets of intervals for 7.5 ms and 10 ms SDU intervals? To keep things simple, I would suggest using a common factor of these. That is, use intervals 30, 60, or 90 ms.

Edit. The BAP specification in itself suggests to use connection intervals of 7.5 - 30 ms, or 50 - 70 ms, see https://www.bluetooth.com/specifications/specs/bap-1-0-2/. I would suggest to stick to that.

* @brief Recommended connectable advertising parameters
*
* If connection has not been established after 30 seconds, the device should switch to
* @ref BT_BAP_ADV_PARAM_CONN_REDUCED
*
* Defined by Table 8.1 in BAP 1.0.2
*/
#define BT_BAP_ADV_PARAM_CONN_QUICK \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this file we now use QUICK/SHORT/FAST and REDUCED/SLOW. The existing advertising macros use FAST and SLOW only, so maybe we should stick to that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing advertising macros use FAST and SLOW only, so maybe we should stick to that?

The BT Core spec uses "FAST" and "SLOW" when defining the values
image

The BAP spec does not defines values for advertising, but the BAP macros for advertising in this PR uses SLOW and FAST.

The Core spec does not defined slow/fast values for connection parameters, and only has

image

Not sure if it makes sense to define SLOW and FAST for connection parameters, since those are not defined by Zephyr or Core Spec either.

The BAP spec uses the following terminology
image

image

I'm OK to modify it to always be fast and slow for consistency if you think that makes more sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have a strong opinion on this. But I believe it may make sense to align terminology with existing macros

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe @cvinayak or @larsgk have some opinion on this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically, I always open up a Spec PDF and search for terms like "quick" or "reduced", in this case the BAP spec. Hence, I will keep the QUICK and REDUCED in this context to be able to quickly refer to spec definitions.

If the other new defined with FAST, SLOW and RELAXED too have references to in the BAP spec, I will use it so.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rugeGerritsen Please re-review :)

BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(20), \
BT_GAP_MS_TO_ADV_INTERVAL(30), NULL)

/**
* @brief Reduced connectable advertising parameters
*
* Defined by Table 8.1 in BAP 1.0.2
*/
#define BT_BAP_ADV_PARAM_CONN_REDUCED \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_EXT_ADV, \
BT_GAP_MS_TO_ADV_INTERVAL(150), BT_GAP_MS_TO_ADV_INTERVAL(150), NULL)

/**
* @brief Recommended connection parameters for initial connection request for 7.5 ms SDU interval
*
* Once service discovery has completed and a stream is setup, it is recommended to switch to
* @ref BT_BAP_CONN_PARAM_RELAXED
*
* Defined by Table 8.3 in BAP 1.0.2
*/
#define BT_BAP_CONN_PARAM_SHORT_7_5 \
BT_LE_CONN_PARAM(BT_GAP_US_TO_CONN_INTERVAL(7500), BT_GAP_MS_TO_CONN_INTERVAL(30), 0, \
BT_GAP_MS_TO_CONN_TIMEOUT(4000))

/**
* @brief Recommended connection parameters for initial connection request for 10 ms SDU interval
*
* Once service discovery has completed and a stream is setup, it is recommended to switch to
* @ref BT_BAP_CONN_PARAM_RELAXED
*
* Defined by Table 8.3 in BAP 1.0.2
*/
#define BT_BAP_CONN_PARAM_SHORT_10 \
BT_LE_CONN_PARAM(BT_GAP_MS_TO_CONN_INTERVAL(10), BT_GAP_MS_TO_CONN_INTERVAL(30), 0, \
BT_GAP_MS_TO_CONN_TIMEOUT(4000))

/**
* @brief Recommended connection parameters for coexistence of ACL and ISO
*
* Defined by Table 8.3 in BAP 1.0.2
*/
#define BT_BAP_CONN_PARAM_RELAXED \
BT_LE_CONN_PARAM(BT_GAP_MS_TO_CONN_INTERVAL(50), BT_GAP_MS_TO_CONN_INTERVAL(70), 0, \
BT_GAP_MS_TO_CONN_TIMEOUT(4000))

/**
* @brief Fast advertising parameters for broadcast audio
*
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes lower time to
* synchronize over coexistence with ISO and power consumption.
*/
#define BT_BAP_ADV_PARAM_BROADCAST_FAST \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(60), \
BT_GAP_MS_TO_ADV_INTERVAL(60), NULL)

/**
* @brief Slow advertising parameters for broadcast audio
*
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes coexistence with ISO
* and power consumption over lower time to synchronize.
*/
#define BT_BAP_ADV_PARAM_BROADCAST_SLOW \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(150), \
BT_GAP_MS_TO_ADV_INTERVAL(150), NULL)

/**
* @brief Fast advertising parameters for broadcast audio
*
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes lower time to
* synchronize over coexistence with ISO and power consumption.
*/
#define BT_BAP_PER_ADV_PARAM_BROADCAST_FAST \
BT_LE_PER_ADV_PARAM(BT_GAP_MS_TO_PER_ADV_INTERVAL(60), BT_GAP_MS_TO_PER_ADV_INTERVAL(60), \
BT_LE_PER_ADV_OPT_NONE)

/**
* @brief Slow advertising parameters for broadcast audio
*
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes coexistence with ISO
* and power consumption over lower time to synchronize.
*/
#define BT_BAP_PER_ADV_PARAM_BROADCAST_SLOW \
BT_LE_PER_ADV_PARAM(BT_GAP_MS_TO_PER_ADV_INTERVAL(150), \
BT_GAP_MS_TO_PER_ADV_INTERVAL(150), BT_LE_PER_ADV_OPT_NONE)

/**
* @brief Check if a BAP BASS BIS_Sync bitfield is valid
*
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/bap_broadcast_assistant/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,7 @@ static void scan_recv_cb(const struct bt_le_scan_recv_info *info,
printk("Connecting to Broadcast Sink: %s\n", sr_info.bt_name);

err = bt_conn_le_create(info->addr, BT_CONN_LE_CREATE_CONN,
BT_LE_CONN_PARAM_DEFAULT,
&broadcast_sink_conn);
BT_BAP_CONN_PARAM_RELAXED, &broadcast_sink_conn);
if (err != 0) {
printk("Failed creating connection (err=%u)\n", err);
scan_for_broadcast_sink();
Expand Down
6 changes: 6 additions & 0 deletions samples/bluetooth/bap_broadcast_sink/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ CONFIG_BT_AUDIO=y
CONFIG_BT_SMP=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
CONFIG_BT_OBSERVER=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_EXT_ADV=y
Expand Down
2 changes: 1 addition & 1 deletion samples/bluetooth/bap_broadcast_sink/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static int start_adv(void)
int err;

/* Create a connectable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &ext_adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_REDUCED, NULL, &ext_adv);
if (err != 0) {
printk("Failed to create advertising set (err %d)\n", err);

Expand Down
18 changes: 2 additions & 16 deletions samples/bluetooth/bap_broadcast_source/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,6 @@

BUILD_ASSERT(strlen(CONFIG_BROADCAST_CODE) <= BT_ISO_BROADCAST_CODE_SIZE, "Invalid broadcast code");

/* Zephyr Controller works best while Extended Advertising interval to be a multiple
* of the ISO Interval minus 10 ms (max. advertising random delay). This is
* required to place the AUX_ADV_IND PDUs in a non-overlapping interval with the
* Broadcast ISO radio events.
*
* I.e. for a 7.5 ms ISO interval use 90 ms minus 10 ms ==> 80 ms advertising
* interval.
* And, for 10 ms ISO interval, can use 90 ms minus 10 ms ==> 80 ms advertising
* interval.
*/
#define BT_LE_EXT_ADV_CUSTOM \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(80), \
BT_GAP_MS_TO_ADV_INTERVAL(80), NULL)

/* When BROADCAST_ENQUEUE_COUNT > 1 we can enqueue enough buffers to ensure that
* the controller is never idle
*/
Expand Down Expand Up @@ -576,14 +562,14 @@ int main(void)
uint32_t broadcast_id;

/* Create a connectable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CUSTOM, NULL, &adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_BROADCAST_FAST, NULL, &adv);
if (err != 0) {
printk("Unable to create extended advertising set: %d\n", err);
return 0;
}

/* Set periodic advertising parameters */
err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT);
err = bt_le_per_adv_set_param(adv, BT_BAP_PER_ADV_PARAM_BROADCAST_FAST);
if (err) {
printk("Failed to set periodic advertising parameters (err %d)\n", err);
return 0;
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/bap_unicast_client/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ static bool check_audio_support_and_connect(struct bt_data *data,
printk("Audio server found with type %u, contexts 0x%08x and meta_len %u; connecting\n",
announcement_type, audio_contexts, meta_len);

err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
BT_LE_CONN_PARAM_DEFAULT,
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_BAP_CONN_PARAM_RELAXED,
&default_conn);
if (err != 0) {
printk("Create conn to failed (%u)\n", err);
Expand Down
6 changes: 6 additions & 0 deletions samples/bluetooth/bap_unicast_server/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ CONFIG_BT=y
CONFIG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
CONFIG_BT_ISO_PERIPHERAL=y
CONFIG_BT_AUDIO=y
CONFIG_BT_GATT_DYNAMIC_DB=y
Expand Down
2 changes: 1 addition & 1 deletion samples/bluetooth/bap_unicast_server/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ int main(void)
}

/* Create a connectable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, NULL, &adv);
if (err) {
printk("Failed to create advertising set (err %d)\n", err);
return 0;
Expand Down
6 changes: 6 additions & 0 deletions samples/bluetooth/cap_acceptor/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CONFIG_BT=y
CONFIG_LOG=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_EXT_ADV=y
Expand Down
3 changes: 2 additions & 1 deletion samples/bluetooth/cap_acceptor/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <zephyr/bluetooth/addr.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/bluetooth/audio/bap.h>
#include <zephyr/bluetooth/audio/cap.h>
#include <zephyr/bluetooth/audio/lc3.h>
#include <zephyr/bluetooth/audio/pacs.h>
Expand Down Expand Up @@ -104,7 +105,7 @@ static int advertise(void)
{
int err;

err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, NULL, &adv);
if (err) {
LOG_ERR("Failed to create advertising set: %d", err);

Expand Down
6 changes: 2 additions & 4 deletions samples/bluetooth/cap_initiator/src/cap_initiator_broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
int err;

/* Create a non-connectable non-scannable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_BROADCAST_FAST, NULL, adv);
if (err != 0) {
LOG_ERR("Unable to create extended advertising set: %d", err);
return err;
}

/* Set periodic advertising parameters */
err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_PARAM(BT_GAP_PER_ADV_FAST_INT_MIN_2,
BT_GAP_PER_ADV_FAST_INT_MAX_2,
BT_LE_PER_ADV_OPT_NONE));
err = bt_le_per_adv_set_param(*adv, BT_BAP_PER_ADV_PARAM_BROADCAST_FAST);
if (err != 0) {
LOG_ERR("Failed to set periodic advertising parameters: %d", err);
return err;
Expand Down
3 changes: 2 additions & 1 deletion samples/bluetooth/cap_initiator/src/cap_initiator_unicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ static bool check_audio_support_and_connect_cb(struct bt_data *data, void *user_
return false;
}

err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_LE_CONN_PARAM_DEFAULT, &peer.conn);
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_BAP_CONN_PARAM_RELAXED,
&peer.conn);
if (err != 0) {
LOG_WRN("Create conn to failed: %d, restarting scan", err);
start_scan();
Expand Down
6 changes: 6 additions & 0 deletions samples/bluetooth/hap_ha/prj.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
CONFIG_BT_ISO_PERIPHERAL=y
CONFIG_BT_PRIVACY=y
CONFIG_BT_GATT_DYNAMIC_DB=y
Expand Down
2 changes: 1 addition & 1 deletion samples/bluetooth/hap_ha/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void adv_work_handler(struct k_work *work)

if (ext_adv == NULL) {
/* Create a connectable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, &adv_cb, &ext_adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, &adv_cb, &ext_adv);
if (err) {
printk("Failed to create advertising set (err %d)\n", err);
}
Expand Down
4 changes: 2 additions & 2 deletions samples/bluetooth/pbp_public_broadcast_source/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
int err;

/* Create a non-connectable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_BROADCAST_FAST, NULL, adv);
if (err != 0) {
printk("Unable to create extended advertising set: %d\n", err);

Expand All @@ -166,7 +166,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
}

/* Set periodic advertising parameters */
err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_DEFAULT);
err = bt_le_per_adv_set_param(*adv, BT_BAP_PER_ADV_PARAM_BROADCAST_FAST);
if (err) {
printk("Failed to set periodic advertising parameters: %d\n", err);

Expand Down
4 changes: 2 additions & 2 deletions samples/bluetooth/tmap_bms/src/cap_initiator.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
int err;

/* Create a non-connectable advertising set */
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN, NULL, adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_BROADCAST_FAST, NULL, adv);
if (err != 0) {
printk("Unable to create extended advertising set: %d\n", err);
return err;
Expand All @@ -151,7 +151,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
}

/* Set periodic advertising parameters */
err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_DEFAULT);
err = bt_le_per_adv_set_param(*adv, BT_BAP_PER_ADV_PARAM_BROADCAST_FAST);
if (err) {
printk("Failed to set periodic advertising parameters: %d\n",
err);
Expand Down
3 changes: 1 addition & 2 deletions samples/bluetooth/tmap_central/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ static bool check_audio_support_and_connect(struct bt_data *data, void *user_dat
return false;
}

err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
BT_LE_CONN_PARAM_DEFAULT,
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_BAP_CONN_PARAM_RELAXED,
&default_conn);
if (err != 0) {
printk("Create conn to failed (%u)\n", err);
Expand Down
6 changes: 6 additions & 0 deletions samples/bluetooth/tmap_peripheral/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CONFIG_BT=y
CONFIG_LOG=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
CONFIG_BT_ISO_PERIPHERAL=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_AUTO_DISCOVER_CCC=y
Expand Down
2 changes: 1 addition & 1 deletion samples/bluetooth/tmap_peripheral/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ int main(void)
}
printk("BAP initialized\n");

err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, &adv_cb, &adv);
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, &adv_cb, &adv);
if (err) {
printk("Failed to create advertising set (err %d)\n", err);
return err;
Expand Down
Loading
Loading