Skip to content

Commit 787933f

Browse files
Thalleyrlubos
authored andcommitted
[nrf fromtree] Bluetooth: BAP: Add a set of suggested intervals to use with BAP
Add a selection of interval values that are suitable for BAP, which will allow better coexistence between ISO and ACL, for both broadcast and unicast. Some of these are defined by the BAP spec, and some are defined by Zephyr, since they do have a suggested value from BAP. Samples and tests have been updated to use these new values. Peripheral samples have also been updated with CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS so that the connection parameters from the centrals aren't updated to something else shortly after. The shell has also been updated to use the LE Audio (BAP) values if audio is enabled, and the audio.conf file has disabled automatic updating of the connection parameters as the peripheral, as we rarely (if ever) want to do that. Due to the connection interval change, CI hit an issue with test_bass_broadcast_code in test_main_client_sync, where the reading of the long receive state did not finish before we attempted to do another procedure, so the function was updated to have a retry. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no> (cherry picked from commit 9d4cc4b)
1 parent 5b4a5fe commit 787933f

File tree

44 files changed

+297
-233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+297
-233
lines changed

doc/releases/release-notes-4.2.rst

+12
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ New APIs and options
6565
6666
* Bluetooth
6767

68+
* Audio
69+
70+
* :c:macro:`BT_BAP_ADV_PARAM_CONN_QUICK`
71+
* :c:macro:`BT_BAP_ADV_PARAM_CONN_REDUCED`
72+
* :c:macro:`BT_BAP_CONN_PARAM_SHORT_7_5`
73+
* :c:macro:`BT_BAP_CONN_PARAM_SHORT_10`
74+
* :c:macro:`BT_BAP_CONN_PARAM_RELAXED`
75+
* :c:macro:`BT_BAP_ADV_PARAM_BROADCAST_FAST`
76+
* :c:macro:`BT_BAP_ADV_PARAM_BROADCAST_SLOW`
77+
* :c:macro:`BT_BAP_PER_ADV_PARAM_BROADCAST_FAST`
78+
* :c:macro:`BT_BAP_PER_ADV_PARAM_BROADCAST_SLOW`
79+
6880
* Host
6981

7082
* :c:func:`bt_le_get_local_features`

include/zephyr/bluetooth/audio/bap.h

+95
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <zephyr/bluetooth/addr.h>
3333
#include <zephyr/bluetooth/bluetooth.h>
3434
#include <zephyr/bluetooth/conn.h>
35+
#include <zephyr/bluetooth/gap.h>
3536
#include <zephyr/bluetooth/iso.h>
3637
#include <zephyr/net_buf.h>
3738
#include <zephyr/sys/slist.h>
@@ -50,6 +51,100 @@ extern "C" {
5051
/** An invalid Broadcast ID */
5152
#define BT_BAP_INVALID_BROADCAST_ID 0xFFFFFFFFU
5253

54+
/**
55+
* @brief Recommended connectable advertising parameters
56+
*
57+
* If connection has not been established after 30 seconds, the device should switch to
58+
* @ref BT_BAP_ADV_PARAM_CONN_REDUCED
59+
*
60+
* Defined by Table 8.1 in BAP 1.0.2
61+
*/
62+
#define BT_BAP_ADV_PARAM_CONN_QUICK \
63+
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(20), \
64+
BT_GAP_MS_TO_ADV_INTERVAL(30), NULL)
65+
66+
/**
67+
* @brief Reduced connectable advertising parameters
68+
*
69+
* Defined by Table 8.1 in BAP 1.0.2
70+
*/
71+
#define BT_BAP_ADV_PARAM_CONN_REDUCED \
72+
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_EXT_ADV, \
73+
BT_GAP_MS_TO_ADV_INTERVAL(150), BT_GAP_MS_TO_ADV_INTERVAL(150), NULL)
74+
75+
/**
76+
* @brief Recommended connection parameters for initial connection request for 7.5 ms SDU interval
77+
*
78+
* Once service discovery has completed and a stream is setup, it is recommended to switch to
79+
* @ref BT_BAP_CONN_PARAM_RELAXED
80+
*
81+
* Defined by Table 8.3 in BAP 1.0.2
82+
*/
83+
#define BT_BAP_CONN_PARAM_SHORT_7_5 \
84+
BT_LE_CONN_PARAM(BT_GAP_US_TO_CONN_INTERVAL(7500), BT_GAP_MS_TO_CONN_INTERVAL(30), 0, \
85+
BT_GAP_MS_TO_CONN_TIMEOUT(4000))
86+
87+
/**
88+
* @brief Recommended connection parameters for initial connection request for 10 ms SDU interval
89+
*
90+
* Once service discovery has completed and a stream is setup, it is recommended to switch to
91+
* @ref BT_BAP_CONN_PARAM_RELAXED
92+
*
93+
* Defined by Table 8.3 in BAP 1.0.2
94+
*/
95+
#define BT_BAP_CONN_PARAM_SHORT_10 \
96+
BT_LE_CONN_PARAM(BT_GAP_MS_TO_CONN_INTERVAL(10), BT_GAP_MS_TO_CONN_INTERVAL(30), 0, \
97+
BT_GAP_MS_TO_CONN_TIMEOUT(4000))
98+
99+
/**
100+
* @brief Recommended connection parameters for coexistence of ACL and ISO
101+
*
102+
* Defined by Table 8.3 in BAP 1.0.2
103+
*/
104+
#define BT_BAP_CONN_PARAM_RELAXED \
105+
BT_LE_CONN_PARAM(BT_GAP_MS_TO_CONN_INTERVAL(50), BT_GAP_MS_TO_CONN_INTERVAL(70), 0, \
106+
BT_GAP_MS_TO_CONN_TIMEOUT(4000))
107+
108+
/**
109+
* @brief Fast advertising parameters for broadcast audio
110+
*
111+
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes lower time to
112+
* synchronize over coexistence with ISO and power consumption.
113+
*/
114+
#define BT_BAP_ADV_PARAM_BROADCAST_FAST \
115+
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(60), \
116+
BT_GAP_MS_TO_ADV_INTERVAL(60), NULL)
117+
118+
/**
119+
* @brief Slow advertising parameters for broadcast audio
120+
*
121+
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes coexistence with ISO
122+
* and power consumption over lower time to synchronize.
123+
*/
124+
#define BT_BAP_ADV_PARAM_BROADCAST_SLOW \
125+
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(150), \
126+
BT_GAP_MS_TO_ADV_INTERVAL(150), NULL)
127+
128+
/**
129+
* @brief Fast advertising parameters for broadcast audio
130+
*
131+
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes lower time to
132+
* synchronize over coexistence with ISO and power consumption.
133+
*/
134+
#define BT_BAP_PER_ADV_PARAM_BROADCAST_FAST \
135+
BT_LE_PER_ADV_PARAM(BT_GAP_MS_TO_PER_ADV_INTERVAL(60), BT_GAP_MS_TO_PER_ADV_INTERVAL(60), \
136+
BT_LE_PER_ADV_OPT_NONE)
137+
138+
/**
139+
* @brief Slow advertising parameters for broadcast audio
140+
*
141+
* This is suitable for both 7.5 ms and 10 ms SDU intervals, but prioritizes coexistence with ISO
142+
* and power consumption over lower time to synchronize.
143+
*/
144+
#define BT_BAP_PER_ADV_PARAM_BROADCAST_SLOW \
145+
BT_LE_PER_ADV_PARAM(BT_GAP_MS_TO_PER_ADV_INTERVAL(150), \
146+
BT_GAP_MS_TO_PER_ADV_INTERVAL(150), BT_LE_PER_ADV_OPT_NONE)
147+
53148
/**
54149
* @brief Check if a BAP BASS BIS_Sync bitfield is valid
55150
*

samples/bluetooth/bap_broadcast_assistant/src/main.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ static void scan_recv_cb(const struct bt_le_scan_recv_info *info,
383383
printk("Connecting to Broadcast Sink: %s\n", sr_info.bt_name);
384384

385385
err = bt_conn_le_create(info->addr, BT_CONN_LE_CREATE_CONN,
386-
BT_LE_CONN_PARAM_DEFAULT,
387-
&broadcast_sink_conn);
386+
BT_BAP_CONN_PARAM_RELAXED, &broadcast_sink_conn);
388387
if (err != 0) {
389388
printk("Failed creating connection (err=%u)\n", err);
390389
scan_for_broadcast_sink();

samples/bluetooth/bap_broadcast_sink/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ CONFIG_BT_AUDIO=y
44
CONFIG_BT_SMP=y
55
CONFIG_BT_PAC_SNK=y
66
CONFIG_BT_PERIPHERAL=y
7+
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
8+
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
9+
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
10+
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
11+
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
12+
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
713
CONFIG_BT_OBSERVER=y
814
CONFIG_BT_GATT_DYNAMIC_DB=y
915
CONFIG_BT_EXT_ADV=y

samples/bluetooth/bap_broadcast_sink/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ static int start_adv(void)
13951395
int err;
13961396

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

samples/bluetooth/bap_broadcast_source/src/main.c

+2-16
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,6 @@
2929

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

32-
/* Zephyr Controller works best while Extended Advertising interval to be a multiple
33-
* of the ISO Interval minus 10 ms (max. advertising random delay). This is
34-
* required to place the AUX_ADV_IND PDUs in a non-overlapping interval with the
35-
* Broadcast ISO radio events.
36-
*
37-
* I.e. for a 7.5 ms ISO interval use 90 ms minus 10 ms ==> 80 ms advertising
38-
* interval.
39-
* And, for 10 ms ISO interval, can use 90 ms minus 10 ms ==> 80 ms advertising
40-
* interval.
41-
*/
42-
#define BT_LE_EXT_ADV_CUSTOM \
43-
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, BT_GAP_MS_TO_ADV_INTERVAL(80), \
44-
BT_GAP_MS_TO_ADV_INTERVAL(80), NULL)
45-
4632
/* When BROADCAST_ENQUEUE_COUNT > 1 we can enqueue enough buffers to ensure that
4733
* the controller is never idle
4834
*/
@@ -517,14 +503,14 @@ int main(void)
517503
uint32_t broadcast_id;
518504

519505
/* Create a connectable advertising set */
520-
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CUSTOM, NULL, &adv);
506+
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_BROADCAST_FAST, NULL, &adv);
521507
if (err != 0) {
522508
printk("Unable to create extended advertising set: %d\n", err);
523509
return 0;
524510
}
525511

526512
/* Set periodic advertising parameters */
527-
err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT);
513+
err = bt_le_per_adv_set_param(adv, BT_BAP_PER_ADV_PARAM_BROADCAST_FAST);
528514
if (err) {
529515
printk("Failed to set periodic advertising parameters (err %d)\n", err);
530516
return 0;

samples/bluetooth/bap_unicast_client/src/main.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ static bool check_audio_support_and_connect(struct bt_data *data,
162162
printk("Audio server found with type %u, contexts 0x%08x and meta_len %u; connecting\n",
163163
announcement_type, audio_contexts, meta_len);
164164

165-
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
166-
BT_LE_CONN_PARAM_DEFAULT,
165+
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_BAP_CONN_PARAM_RELAXED,
167166
&default_conn);
168167
if (err != 0) {
169168
printk("Create conn to failed (%u)\n", err);

samples/bluetooth/bap_unicast_server/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ CONFIG_BT=y
22
CONFIG_LOG=y
33
CONFIG_BT_SMP=y
44
CONFIG_BT_PERIPHERAL=y
5+
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
6+
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
7+
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
8+
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
9+
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
10+
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
511
CONFIG_BT_ISO_PERIPHERAL=y
612
CONFIG_BT_AUDIO=y
713
CONFIG_BT_GATT_DYNAMIC_DB=y

samples/bluetooth/bap_unicast_server/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ int main(void)
765765
}
766766

767767
/* Create a connectable advertising set */
768-
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &adv);
768+
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, NULL, &adv);
769769
if (err) {
770770
printk("Failed to create advertising set (err %d)\n", err);
771771
return 0;

samples/bluetooth/cap_acceptor/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CONFIG_BT=y
22
CONFIG_LOG=y
33
CONFIG_BT_PERIPHERAL=y
4+
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
5+
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
6+
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
7+
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
8+
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
9+
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
410
CONFIG_BT_GATT_DYNAMIC_DB=y
511
CONFIG_BT_GATT_CLIENT=y
612
CONFIG_BT_EXT_ADV=y

samples/bluetooth/cap_acceptor/src/main.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <zephyr/bluetooth/addr.h>
1414
#include <zephyr/bluetooth/audio/audio.h>
15+
#include <zephyr/bluetooth/audio/bap.h>
1516
#include <zephyr/bluetooth/audio/cap.h>
1617
#include <zephyr/bluetooth/audio/lc3.h>
1718
#include <zephyr/bluetooth/audio/pacs.h>
@@ -104,7 +105,7 @@ static int advertise(void)
104105
{
105106
int err;
106107

107-
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, NULL, &adv);
108+
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, NULL, &adv);
108109
if (err) {
109110
LOG_ERR("Failed to create advertising set: %d", err);
110111

samples/bluetooth/cap_initiator/src/cap_initiator_broadcast.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,14 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
7272
int err;
7373

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

8181
/* Set periodic advertising parameters */
82-
err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_PARAM(BT_GAP_PER_ADV_FAST_INT_MIN_2,
83-
BT_GAP_PER_ADV_FAST_INT_MAX_2,
84-
BT_LE_PER_ADV_OPT_NONE));
82+
err = bt_le_per_adv_set_param(*adv, BT_BAP_PER_ADV_PARAM_BROADCAST_FAST);
8583
if (err != 0) {
8684
LOG_ERR("Failed to set periodic advertising parameters: %d", err);
8785
return err;

samples/bluetooth/cap_initiator/src/cap_initiator_unicast.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ static bool check_audio_support_and_connect_cb(struct bt_data *data, void *user_
599599
return false;
600600
}
601601

602-
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_LE_CONN_PARAM_DEFAULT, &peer.conn);
602+
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_BAP_CONN_PARAM_RELAXED,
603+
&peer.conn);
603604
if (err != 0) {
604605
LOG_WRN("Create conn to failed: %d, restarting scan", err);
605606
start_scan();

samples/bluetooth/hap_ha/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
CONFIG_BT=y
22
CONFIG_BT_PERIPHERAL=y
3+
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
4+
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
5+
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
6+
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
7+
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
8+
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
39
CONFIG_BT_ISO_PERIPHERAL=y
410
CONFIG_BT_PRIVACY=y
511
CONFIG_BT_GATT_DYNAMIC_DB=y

samples/bluetooth/hap_ha/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static void adv_work_handler(struct k_work *work)
101101

102102
if (ext_adv == NULL) {
103103
/* Create a connectable advertising set */
104-
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, &adv_cb, &ext_adv);
104+
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, &adv_cb, &ext_adv);
105105
if (err) {
106106
printk("Failed to create advertising set (err %d)\n", err);
107107
}

samples/bluetooth/pbp_public_broadcast_source/src/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
149149
int err;
150150

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

@@ -165,7 +165,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
165165
}
166166

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

samples/bluetooth/tmap_bms/src/cap_initiator.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int setup_extended_adv(struct bt_le_ext_adv **adv)
136136
int err;
137137

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

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

samples/bluetooth/tmap_central/src/main.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ static bool check_audio_support_and_connect(struct bt_data *data, void *user_dat
188188
return false;
189189
}
190190

191-
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
192-
BT_LE_CONN_PARAM_DEFAULT,
191+
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_BAP_CONN_PARAM_RELAXED,
193192
&default_conn);
194193
if (err != 0) {
195194
printk("Create conn to failed (%u)\n", err);

samples/bluetooth/tmap_peripheral/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CONFIG_BT=y
22
CONFIG_LOG=y
33
CONFIG_BT_PERIPHERAL=y
4+
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
5+
# Set preferred values based on BT_BAP_CONN_PARAM_RELAXED
6+
CONFIG_BT_PERIPHERAL_PREF_MIN_INT=50
7+
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=70
8+
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
9+
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
410
CONFIG_BT_ISO_PERIPHERAL=y
511
CONFIG_BT_GATT_CLIENT=y
612
CONFIG_BT_GATT_AUTO_DISCOVER_CCC=y

samples/bluetooth/tmap_peripheral/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ int main(void)
252252
}
253253
printk("BAP initialized\n");
254254

255-
err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN, &adv_cb, &adv);
255+
err = bt_le_ext_adv_create(BT_BAP_ADV_PARAM_CONN_QUICK, &adv_cb, &adv);
256256
if (err) {
257257
printk("Failed to create advertising set (err %d)\n", err);
258258
return err;

0 commit comments

Comments
 (0)