<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117487/bluetooth-mesh-light-ctl-color-tuned-light-sample</link><description>Is there a sample app that uses the Zephyr Light CTL Bluetooth Mesh model? I&amp;#39;ve tried to add that model to the light_ctrl sample app, but get a crash during configuration so I must be doing something wrong. 
 The onoff_level_lighting_vnd app claims to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Nov 2025 10:07:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117487/bluetooth-mesh-light-ctl-color-tuned-light-sample" /><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/555025?ContentTypeID=1</link><pubDate>Fri, 21 Nov 2025 10:07:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3f9e34a-e1c2-4ee5-bbbe-b7095f9f73ed</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Sounds good! Feel free to open more cases here as well if anything pops-up.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/554958?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 18:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba24dc4d-1e4d-4f8a-9db6-9b0f9f868f51</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Ok, so that mystery is solved thank you!.&amp;nbsp; I&amp;#39;m still doing some testing, will let you know when I close it out.&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/554927?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 14:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2971dc6e-b546-4d42-8fa3-54987489a095</guid><dc:creator>Elfving</dc:creator><description>[quote user="ji_584"]I had&amp;nbsp;originally been using no subscription address for the servers&amp;nbsp;and 0xFFFF (all nodes) publish address for the clients.&amp;nbsp;Recently, I&amp;nbsp;switched from the Android app to iOS, which is much easier to configure, and I used a group for both publish and subscribe.&amp;nbsp; It seems that&amp;nbsp;CTL started to&amp;nbsp;work when configured this way.&lt;br /&gt;[/quote]
&lt;p&gt;That does make some sense; the address of the node is its primary/first element address. So I wonder if the&amp;nbsp;&lt;span&gt;0xFFFF address wouldn&amp;#39;t target secondary elements. I typically use group addresses for quick tests like these.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1763649433861v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For this reason&amp;nbsp;&lt;span&gt;0xFFFF&amp;nbsp;is eg. not recommended for a DFU. I&amp;#39;ve handled a case where that was a problem before.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="ji_584"]&lt;p&gt;Would you expect all of the servers to work when an appropriate client message is sent to 0xFFFF even if no subscribe address is set on the server?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;Yeah, I believe that is generally true: the node doesn&amp;#39;t need to subscribe to anything to receive a message to 0xFFFF, though once again: that might just be the primary element.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/554606?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2025 23:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98026fac-15f4-4714-9801-6c7976fd74d8</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Funny you should post this, last night it started working and I was puzzled as to why.&lt;/p&gt;
&lt;p&gt;I had&amp;nbsp;originally been using no subscription address for the servers&amp;nbsp;and 0xFFFF (all nodes) publish address for the clients.&amp;nbsp;Recently, I&amp;nbsp;switched from the Android app to iOS, which is much easier to configure, and I used a group for both publish and subscribe.&amp;nbsp; It seems that&amp;nbsp;CTL started to&amp;nbsp;work when configured this way.&lt;br /&gt;&lt;br /&gt;So my conclusion is that something in the CTL server and client doesn&amp;#39;t work with 0xFFFF addresses.&amp;nbsp; I&amp;nbsp;don&amp;#39;t know if the issue is that the CTL client won&amp;#39;t send to all nodes, or if the CTL server doesn&amp;#39;t respond to those messages.&lt;/p&gt;
&lt;p&gt;Would you expect all of the servers to work when an appropriate client message is sent to 0xFFFF even if no subscribe address is set on the server?&lt;/p&gt;
&lt;p&gt;This is great progress.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/554570?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2025 15:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3f3b92c-d240-424d-a6b5-c0817fec3fc7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again, and thanks for the patience on this one.&lt;/p&gt;
&lt;p&gt;I bet&amp;nbsp;the issue is related to how you are addressing the light fixture, and the fact that Light CTL happens to be on another element than the ones related to lightness on the light fixture node. I&amp;nbsp;haven&amp;#39;t gotten around to get properly tested yet, but I figured it was better to get to you on this sooner rather than even later. Your code looks ok.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I realize it&amp;#39;s been a while since you asked. Any update on this one from your side?&amp;nbsp;How are you configuring the addressing?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/552777?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2025 14:00:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f757bb9c-b5e4-4d71-972b-29bbf1c75fbe</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Jack,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s okay, we can keep it here.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look into it, but I might have to get back to you on this next week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/552554?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 20:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ae7aac6-3fac-4647-aece-fb5bc6eac9ad</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;It&amp;#39;s been a while for this ticket, let me know if I need to open a new one.&lt;br /&gt;&lt;br /&gt;I have recently renewed effort in this area, and I have been unable to get a client to actually set the temperature.&amp;nbsp; I used the example ctl srv app posted above:&amp;nbsp;&lt;br /&gt;&lt;a href="https://github.com/omkar3141/sdk-nrf/blob/5c2911b2970616609d03437c1992d311f3f302e7/samples/bluetooth/mesh/light_ctrl/src/model_handler.c"&gt;https://github.com/omkar3141/sdk-nrf/blob/5c2911b2970616609d03437c1992d311f3f302e7/samples/bluetooth/mesh/light_ctrl/src/model_handler.c&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;and the dimmer example app modified to include a ctl client.&lt;br /&gt;&lt;br /&gt;I provisioned with the Android nRF Mesh, setting the app key for the relevant models on both server and client, and publish address of 0xFFFF on the client side models.&amp;nbsp; &amp;nbsp;No error messages are observed, the client appears to be responding to the button press with calls to&amp;nbsp;bt_mesh_light_ctl_set_unack(), the lightness level changes on the server, but there is no indication that the temp level changes.&amp;nbsp; I had to fix a few config file errors due to changing API requirements.&amp;nbsp; Hardware is two nrf54l15dk.&lt;br /&gt;&lt;br /&gt;Any advice on getting this working?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jack&lt;br /&gt;&lt;br /&gt;Here is the model_handler.c I tested, derived from the sample dimmer app:&lt;pre class="ui-code" data-mode="text"&gt;
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/**
* @file
* @brief Model handler for the Light Dimmer Controller.
*
*/
#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/mesh/proxy.h&amp;gt;
#include &amp;lt;bluetooth/mesh/models.h&amp;gt;
#include &amp;lt;bluetooth/mesh/light_ctl_cli.h&amp;gt;
#include &amp;lt;dk_buttons_and_leds.h&amp;gt;
#include &amp;quot;model_handler.h&amp;quot;
#include &amp;lt;time.h&amp;gt;

#include &amp;lt;zephyr/logging/log.h&amp;gt;
LOG_MODULE_REGISTER(dimmer_sample, LOG_LEVEL_INF);

#define SHORT_PRESS_THRESHOLD_MS 300
#define LONG_PRESS_TIMEOUT_SEC K_SECONDS(20)
#define DELTA_MOVE_STEP 1000
#define SCENE_COUNT 4

/* Color temperature mapping constants */
#define CTL_TEMP_MIN 2700 /* Warm white at low lightness */
#define CTL_TEMP_MAX 6500 /* Cool white at high lightness */
#define CTL_DELTA_UV 0 /* No delta UV adjustment */

enum dim_direction { DIM_DOWN, DIM_UP };

/* Forward declarations */
static void ctl_status_handler(struct bt_mesh_light_ctl_cli *cli,
struct bt_mesh_msg_ctx *ctx,
const struct bt_mesh_light_ctl_status *status);
static void temp_status_handler(struct bt_mesh_light_ctl_cli *cli,
struct bt_mesh_msg_ctx *ctx,
const struct bt_mesh_light_temp_status *status);

/* CTL client handlers */
static const struct bt_mesh_light_ctl_cli_handlers ctl_handlers = {
.ctl_status = ctl_status_handler,
.temp_status = temp_status_handler,
};

/** Context for a single Light Dimmer instance. */
struct dimmer_ctx {
/** Generic OnOff client instance for this switch */
struct bt_mesh_onoff_cli onoff_client;
/** Generic Level client instance for this switch */
struct bt_mesh_lvl_cli lvl_client;
/** Light CTL client instance for this switch */
struct bt_mesh_light_ctl_cli ctl_client;
/* Relative start time of the latest press of the button */
int64_t press_start_time;
/* Dimmer direction */
enum dim_direction direction;
/* Long press work (Dimmer mode) */
struct k_work_delayable long_press_start_work;
struct k_work_delayable long_press_stop_work;
/* Current lightness level for temperature mapping */
uint16_t current_lightness;
};

/** Context for a single scene button instance */
struct scene_btn_ctx {
/** Scene client instance for this button */
struct bt_mesh_scene_cli client;
/** The currently recalled scene*/
uint16_t current_scene;
/** Time when button was pressed */
int64_t press_start_time;
};

#if IS_ENABLED(CONFIG_BT_MESH_NLC_PERF_CONF)
static const uint8_t cmp2_elem_offset[1] = { 0 };

static const struct bt_mesh_comp2_record comp_rec[2] = {
{/* Basic Scene Selector NLC Profile 1.0.1*/
.id = BT_MESH_NLC_PROFILE_ID_BASIC_SCENE_SELECTOR,
.version.x = 1,
.version.y = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset,
.data_len = 0
},
{/* Dimming Control NLC Profile 1.0.1 */
.id = BT_MESH_NLC_PROFILE_ID_DIMMING_CONTROL,
.version.x = 1,
.version.y = 0,
.version.z = 1,
.elem_offset_cnt = 1,
.elem_offset = cmp2_elem_offset,
.data_len = 0
}
};

static const struct bt_mesh_comp2 comp_p2 = {
.record_cnt = 2,
.record = comp_rec
};
#endif

static void dimmer_start(struct k_work *work)
{
struct dimmer_ctx *ctx = CONTAINER_OF(k_work_delayable_from_work(work), struct dimmer_ctx,
long_press_start_work);

struct bt_mesh_lvl_move_set move_set = {
.delta = (ctx-&amp;gt;direction == DIM_UP) ? DELTA_MOVE_STEP :
(int16_t)(-1 * DELTA_MOVE_STEP),
.transition = &amp;amp;(struct bt_mesh_model_transition){ .time = 500 },
};

LOG_INF(&amp;quot;Start dimming %s...&amp;quot;, (ctx-&amp;gt;direction == DIM_UP ? &amp;quot;UP&amp;quot; : &amp;quot;DOWN&amp;quot;));

/* Use traditional level control for continuous dimming - CTL will be set on release */
if (bt_mesh_model_pub_is_unicast(ctx-&amp;gt;lvl_client.model)) {
bt_mesh_lvl_cli_move_set(&amp;amp;ctx-&amp;gt;lvl_client, NULL, &amp;amp;move_set, NULL);
} else {
bt_mesh_lvl_cli_move_set_unack(&amp;amp;ctx-&amp;gt;lvl_client, NULL, &amp;amp;move_set);
}

k_work_reschedule(&amp;amp;ctx-&amp;gt;long_press_stop_work, LONG_PRESS_TIMEOUT_SEC);
}

static void dimmer_stop(struct k_work *work)
{
struct dimmer_ctx *ctx = CONTAINER_OF(k_work_delayable_from_work(work), struct dimmer_ctx,
long_press_stop_work);

struct bt_mesh_lvl_move_set move_set = {
.delta = 0,
.transition = NULL,
};

if (bt_mesh_model_pub_is_unicast(ctx-&amp;gt;lvl_client.model)) {
bt_mesh_lvl_cli_move_set(&amp;amp;ctx-&amp;gt;lvl_client, NULL, &amp;amp;move_set, NULL);
} else {
bt_mesh_lvl_cli_move_set_unack(&amp;amp;ctx-&amp;gt;lvl_client, NULL, &amp;amp;move_set);
}
}

static struct dimmer_ctx dimmer = {
.lvl_client = BT_MESH_LVL_CLI_INIT(NULL),
.onoff_client = BT_MESH_ONOFF_CLI_INIT(NULL),
.ctl_client = BT_MESH_LIGHT_CTL_CLI_INIT(&amp;amp;ctl_handlers),
.press_start_time = 0,
.direction = DIM_DOWN,
.current_lightness = 0
};

/* Helper function to map lightness level to color temperature */
static uint16_t lightness_to_temperature(uint16_t lightness)
{
/* Linear mapping: 0 lightness = 2700K, 65535 lightness = 6500K */
uint32_t temp_range = CTL_TEMP_MAX - CTL_TEMP_MIN;
uint32_t temp = CTL_TEMP_MIN + ((uint32_t)lightness * temp_range) / 65535;
return (uint16_t)temp;
}

/* Helper function to set both lightness and temperature */
static int set_light_ctl(uint16_t lightness, const struct bt_mesh_model_transition *transition)
{
uint16_t temperature = lightness_to_temperature(lightness);

struct bt_mesh_light_ctl_set set = {
.params = {
.light = lightness,
.temp = temperature,
.delta_uv = CTL_DELTA_UV,
},
.transition = transition
};

dimmer.current_lightness = lightness;

LOG_INF(&amp;quot;Setting CTL: lightness=%u, temp=%uK, delta_uv=%d&amp;quot;, lightness, temperature, CTL_DELTA_UV);

/* Use unacknowledged message for group addresses or to avoid blocking */
return bt_mesh_light_ctl_set_unack(&amp;amp;dimmer.ctl_client, NULL, &amp;amp;set);
}

/* CTL status handlers */
static void ctl_status_handler(struct bt_mesh_light_ctl_cli *cli,
struct bt_mesh_msg_ctx *ctx,
const struct bt_mesh_light_ctl_status *status)
{
LOG_INF(&amp;quot;CTL status: light=%u, temp=%u&amp;quot;, status-&amp;gt;current_light, status-&amp;gt;current_temp);
dimmer.current_lightness = status-&amp;gt;current_light;
}

static void temp_status_handler(struct bt_mesh_light_ctl_cli *cli,
struct bt_mesh_msg_ctx *ctx,
const struct bt_mesh_light_temp_status *status)
{
LOG_INF(&amp;quot;CTL temp status: temp=%u, delta_uv=%d&amp;quot;,
status-&amp;gt;current.temp, status-&amp;gt;current.delta_uv);
}

static void dimmer_button_handler(struct dimmer_ctx *ctx, bool pressed)
{
int err;

if (pressed) {
ctx-&amp;gt;direction = (ctx-&amp;gt;direction == DIM_UP) ? DIM_DOWN : DIM_UP;

ctx-&amp;gt;press_start_time = k_uptime_get();
err = k_work_reschedule(&amp;amp;ctx-&amp;gt;long_press_start_work,
K_MSEC(SHORT_PRESS_THRESHOLD_MS));

if (err &amp;lt; 0) {
LOG_ERR(&amp;quot;Scheduling dimming to start failed: %d&amp;quot;, err);
}
} else {
if ((k_uptime_get() - ctx-&amp;gt;press_start_time) &amp;gt;= SHORT_PRESS_THRESHOLD_MS) {
/** Button was released after a long time.
* Stop dimming immediately.
*/
err = k_work_reschedule(&amp;amp;ctx-&amp;gt;long_press_stop_work, K_NO_WAIT);

if (err &amp;lt; 0) {
LOG_INF(&amp;quot;Scheduling dimming to stop failed: %d&amp;quot;, err);
}

} else {
/** Button was released after a short time.
* Cancel dimming operation and toggle light on/off with CTL.
*/
k_work_cancel_delayable(&amp;amp;ctx-&amp;gt;long_press_start_work);

uint16_t target_lightness = (ctx-&amp;gt;direction == DIM_UP) ? 65535 : 0;
LOG_INF(&amp;quot;Toggle light %s with CTL (lightness=%u)&amp;quot;,
(ctx-&amp;gt;direction == DIM_UP ? &amp;quot;ON&amp;quot; : &amp;quot;OFF&amp;quot;), target_lightness);

err = set_light_ctl(target_lightness, NULL);
if (err) {
LOG_ERR(&amp;quot;Failed to send CTL set message: %d&amp;quot;, err);

/* Fallback to basic on/off control */
struct bt_mesh_onoff_set set = {
.on_off = ctx-&amp;gt;direction,
};

if (bt_mesh_model_pub_is_unicast(ctx-&amp;gt;onoff_client.model)) {
err = bt_mesh_onoff_cli_set(&amp;amp;ctx-&amp;gt;onoff_client, NULL, &amp;amp;set, NULL);
} else {
err = bt_mesh_onoff_cli_set_unack(&amp;amp;ctx-&amp;gt;onoff_client, NULL, &amp;amp;set);
}

if (err) {
LOG_ERR(&amp;quot;Failed to send OnOff fallback message: %d&amp;quot;, err);
}
}
}
}
}

static struct scene_btn_ctx scene_btn = {
.current_scene = 1,
.press_start_time = 0
};

static void scene_button_handler(struct scene_btn_ctx *ctx, bool pressed)
{
if (pressed) {
ctx-&amp;gt;press_start_time = k_uptime_get();
} else {
int err;

if (k_uptime_get() - ctx-&amp;gt;press_start_time &amp;gt; SHORT_PRESS_THRESHOLD_MS) {
/* Long press, store scene */
LOG_INF(&amp;quot;Storing scene %d&amp;quot;, ctx-&amp;gt;current_scene);
err = bt_mesh_scene_cli_store_unack(&amp;amp;ctx-&amp;gt;client, NULL,
ctx-&amp;gt;current_scene);

if (err) {
LOG_ERR(&amp;quot;Failed to send Scene Store message: %d&amp;quot;, err);
}
} else {
/* Short press, recall next scene */
ctx-&amp;gt;current_scene = (ctx-&amp;gt;current_scene &amp;gt;= SCENE_COUNT) ?
1 : ctx-&amp;gt;current_scene + 1;
LOG_INF(&amp;quot;Recalling scene %d&amp;quot;, ctx-&amp;gt;current_scene);
err = bt_mesh_scene_cli_recall_unack(&amp;amp;ctx-&amp;gt;client, NULL,
ctx-&amp;gt;current_scene, NULL);

if (err) {
LOG_ERR(&amp;quot;Failed to send Scene Recall message: %d&amp;quot;, err);
}
}
}
}

static void button_handler_cb(uint32_t pressed, uint32_t changed)
{
if (!bt_mesh_is_provisioned()) {
LOG_ERR(&amp;quot;Node is not provisioned&amp;quot;);
return;
}

if (changed &amp;amp; BIT(0)) {
dimmer_button_handler(&amp;amp;dimmer, pressed &amp;amp; BIT(0));
}
if (changed &amp;amp; BIT(1)) {
scene_button_handler(&amp;amp;scene_btn, pressed &amp;amp; BIT(1));
}
}

/* Set up a repeating delayed work to blink the DK&amp;#39;s LEDs when attention is
* requested.
*/
static struct k_work_delayable attention_blink_work;
static bool attention;

static void attention_blink(struct k_work *work)
{
static int idx;
const uint8_t pattern[] = {
#if DT_NODE_EXISTS(DT_ALIAS(sw0))
BIT(0),
#endif
#if DT_NODE_EXISTS(DT_ALIAS(sw1))
BIT(1),
#endif
#if DT_NODE_EXISTS(DT_ALIAS(sw2))
BIT(2),
#endif
#if DT_NODE_EXISTS(DT_ALIAS(sw3))
BIT(3),
#endif
};

if (attention) {
dk_set_leds(pattern[idx++ % ARRAY_SIZE(pattern)]);
k_work_reschedule(&amp;amp;attention_blink_work, K_MSEC(30));
} else {
dk_set_leds(DK_NO_LEDS_MSK);
}
}

static void attention_on(const struct bt_mesh_model *mod)
{
attention = true;
k_work_reschedule(&amp;amp;attention_blink_work, K_NO_WAIT);
}

static void attention_off(const struct bt_mesh_model *mod)
{
/* Will stop rescheduling blink timer */
attention = false;
}

static const struct bt_mesh_health_srv_cb health_srv_cb = {
.attn_on = attention_on,
.attn_off = attention_off,
};

static struct bt_mesh_health_srv health_srv = {
.cb = &amp;amp;health_srv_cb,
};

BT_MESH_HEALTH_PUB_DEFINE(health_pub, 0);

static struct bt_mesh_elem elements[] = {
BT_MESH_ELEM(1,
BT_MESH_MODEL_LIST(BT_MESH_MODEL_CFG_SRV,
BT_MESH_MODEL_HEALTH_SRV(&amp;amp;health_srv, &amp;amp;health_pub),
BT_MESH_MODEL_ONOFF_CLI(&amp;amp;dimmer.onoff_client),
BT_MESH_MODEL_LVL_CLI(&amp;amp;dimmer.lvl_client),
BT_MESH_MODEL_LIGHT_CTL_CLI(&amp;amp;dimmer.ctl_client),
BT_MESH_MODEL_SCENE_CLI(&amp;amp;scene_btn.client)),
BT_MESH_MODEL_NONE),
};

static const struct bt_mesh_comp comp = {
.cid = CONFIG_BT_COMPANY_ID,
.elem = elements,
.elem_count = ARRAY_SIZE(elements),
};

const struct bt_mesh_comp *model_handler_init(void)
{
#if IS_ENABLED(CONFIG_BT_MESH_NLC_PERF_CONF)
if (bt_mesh_comp2_register(&amp;amp;comp_p2)) {
printf(&amp;quot;Failed to register comp2\n&amp;quot;);
}
#endif

static struct button_handler button_handler = {
.cb = button_handler_cb,
};

dk_button_handler_add(&amp;amp;button_handler);
k_work_init_delayable(&amp;amp;attention_blink_work, attention_blink);
k_work_init_delayable(&amp;amp;dimmer.long_press_start_work, dimmer_start);
k_work_init_delayable(&amp;amp;dimmer.long_press_stop_work, dimmer_stop);

return &amp;amp;comp;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/531250?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 21:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75539ac1-4ad2-4502-bb8d-5ef7f7e92a5a</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;I was able to provision with the&amp;nbsp;Android app without error.&amp;nbsp; It seems they added an assert to keep&amp;nbsp;&lt;span&gt;CONFIG_BT_MESH_MAX_CONN = 1.&amp;nbsp; I haven&amp;#39;t tested the actual functionality yet.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/531228?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2025 15:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4229aa4b-a61f-47c0-a615-fdf98e8cefd1</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;I appreciate all your help. Understood&amp;nbsp;about the testing situation. I&amp;#39;ll check&amp;nbsp;the new example out and let you know how it goes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/530859?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 14:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe4a9b0b-3c55-4f97-89a4-ac93b2857df7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Jack, I am deeply sorry about the wait.&lt;/p&gt;
&lt;p&gt;I have had one from the relevant R&amp;amp;D team &lt;a href="https://github.com/omkar3141/sdk-nrf/blob/5c2911b2970616609d03437c1992d311f3f302e7/samples/bluetooth/mesh/light_ctrl/src/model_handler.c"&gt;add Light CTL to the light_ctrl example here.&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is worth noting that this sample could be tested more. And one thing he for instance finds missing here is that transitions for Temperature are not printed in console. It is useful to add such printing (to show demonstration of simultaneous transitions for Lightness and Temperature).&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/527034?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 17:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:502b80aa-dc54-4bbb-ab41-6df6a1ffade6</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Elfving,&lt;/p&gt;
&lt;p&gt;No, I last set:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MAX_CONN&lt;/span&gt;&lt;span&gt;=5&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_MESH_MAX_CONN&lt;/span&gt;&lt;span&gt;=1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_EXT_ADV_MAX_ADV_SET&lt;/span&gt;&lt;span&gt;=10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_BUF_CMD_TX_COUNT&lt;/span&gt;&lt;span&gt;=5&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;which doesn&amp;#39;t produce an error when configuring.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Other values of MAX_CONN and MESH_MAX_CONN are also ok as long as (I think) MAX_CONN &amp;gt; MESH_MAX_CONN.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If I set MESH_MAX_CONN to 2 or greater I get problems.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;Jack&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/526998?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 14:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d04588a9-8d38-429d-8804-72cb63fd5a38</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Thanks for the patience Jack,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m waiting for a response from the relevant R&amp;amp;D team. Just one question.&lt;/p&gt;
[quote user="ji_584"]&lt;div&gt;&lt;span&gt;&lt;span&gt;It seems to compile, provision and configure if and only if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;CONFIG_BT_MESH_MAX_CONN == 1&lt;/div&gt;[/quote]
&lt;p&gt;This is interesting. But that is in addition to setting&amp;nbsp;&lt;span&gt;CONFIG_BT_MAX_CONN to 1, right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/526262?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 20:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e0f6432-fc6b-4663-a3cf-b190e2d9ea6b</guid><dc:creator>ji_584</dc:creator><description>&lt;div&gt;&lt;span&gt;&lt;span&gt;Edit: corrected variable name CONFIG_BT_MAX_CONN below&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Elfving,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;It seems to compile, provision and configure if and only if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;CONFIG_BT_MESH_MAX_CONN == 1
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Increasing CONFIG_BT_EXT_ADV_MAX_ADV_SET and/&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_BT_MAX_CONN&amp;nbsp;&lt;/span&gt;didn&amp;#39;t seem to change this.
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Is there a drawback to this setting of &lt;span&gt;CONFIG_BT_MESH_MAX_CONN&lt;/span&gt;?&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;span&gt;Also, can you tell me the best resources for learning the effects and interactions of these configuration variables?&amp;nbsp; I know how to look up the name to get a description, but the context is sometimes lacking.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I still haven&amp;#39;t functionally tested the model once it doesn&amp;#39;t throw errors, so I&amp;#39;ll do that. It seems like the nRF Mesh app doesn&amp;#39;t have a color temperature control, so I&amp;#39;ll set up a dimmer example.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Jack&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/526195?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 14:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fad220b-d07b-413e-b6bc-02c3c1934844</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So this issue could be connected to that&amp;nbsp;&lt;span&gt;CONFIG_BT_MESH_MAX_CONN should be set to less than&amp;nbsp;CONFIG_BT_MAX_CONN if you&amp;#39;d use BLE for other purposes in addition to mesh, like SMP. Although it doesn&amp;#39;t immediately make sense to me why putting CONFIG_BT_MAX_CONN to 1 should make things work, try lowering&amp;nbsp;CONFIG_BT_MESH_MAX_CONN.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Of course, CONFIG_BT_EXT_ADV_MAX_ADV_SET should be increased by one for each additional advertising set you want to use. If you didn&amp;#39;t know exactly how many sets you are using, you could simply increase it one by one and see when it works (ideally for optimum memory use, you should add only that as many&amp;nbsp;as&amp;nbsp;you are using in the application). If this was set to 1 currently, that could also be something that helps us here.&lt;/p&gt;
[quote user="ji_584"]&lt;p&gt;The&amp;nbsp;code that we&amp;#39;ve been discussing was a graft of the Zephyr test suite with the light_ctrl example code and, as I said earlier, is a mess.&amp;nbsp; Everything else I have tried works worse than that one though.&amp;nbsp; I don&amp;#39;t know if that&amp;#39;s the best baseline, but there we are.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Understood. I can see if I can get something neater for you later on, though for the time being the project you sent is what we&amp;#39;re looking at. You haven&amp;#39;t added any other BLE connection to this, like SMP right?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/525202?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 07:49:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef287ac-ebb4-4be0-9db8-a840f8d19b34</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Elfving, thanks for the update.&amp;nbsp; Just to review (it&amp;#39;s been a long thread), I&amp;#39;m looking for an example of CTL working with other relevant models (lightness, on/off, temperature, maybe some others).&amp;nbsp; If someone could just take the light_ctrl example (or any other example) and add CTL, that would be ideal.&amp;nbsp; I&amp;#39;m just trying to get CTL to work some way.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;code that we&amp;#39;ve been discussing was a graft of the Zephyr test suite with the light_ctrl example code and, as I said earlier, is a mess.&amp;nbsp; Everything else I have tried works worse than that one though.&amp;nbsp; I don&amp;#39;t know if that&amp;#39;s the best baseline, but there we are.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not extremely time-critical, we have plenty of other things to do, but if we could get something in the next few weeks it would be helpful.&amp;nbsp; We definitely need to get this working in the end.&lt;/p&gt;
&lt;p&gt;Also, we have switched from nRF52840 to nRF54L15 in the meantime, and the behavior is similar.&amp;nbsp; The build files, etc. I have been sending are still from the 840 build.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/525068?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 13:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11114dde-175d-43cd-9769-5ad7aa76419c</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great! I&amp;#39;ve forwarded this to the relevant R&amp;amp;D team, and I&amp;#39;ll let you know once I hear from them. They&amp;nbsp;said they wanted this. Let me know if there are any updates regarding the urgency of&amp;nbsp;getting this issue fixed.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/524433?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 19:48:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2563b3f0-8f09-44b2-8917-af3d358e864c</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;By the way, I previously said the error wasn&amp;#39;t catastrophic, however, today when I try the issue again, it does sometimes crash after several seconds.&lt;br /&gt;&lt;br /&gt;There was one .config in project\build\zephyr and one in project\build\project\, both are included.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/.config-light_5F00_ctrl_5F00_sample_2D00_build_2D00_light_5F00_ctrl_5F00_sample_2D00_zephyr.zip"&gt;devzone.nordicsemi.com/.../.config-light_5F00_ctrl_5F00_sample_2D00_build_2D00_light_5F00_ctrl_5F00_sample_2D00_zephyr.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/524350?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 13:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1b1c85-60a6-465f-8080-e13eadce0634</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Could you send me the .config file you get generated for the build?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/523368?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 20:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ef91e2b-b613-4791-929f-c70a022e71af</guid><dc:creator>ji_584</dc:creator><description>&lt;div&gt;&lt;span&gt;Call&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;stack when the error&amp;nbsp;occurs:&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;[The error occurs due to a message&amp;nbsp;received at this level.&amp;nbsp; The debugger didn't help me trace it further]&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;bt_hci_cmd_send_sync(uint16_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;opcode,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;net_buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;buf,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;net_buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;**&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rsp&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/host/hci_core.c:440&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;bt_le_adv_set_enable_ext(struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_ext_adv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;adv,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;_Bool&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;enable,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_ext_adv_start_param&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;param&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/host/adv.c:371&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;[this is where the error is printed]&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;bt_le_ext_adv_start(struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_ext_adv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;adv,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_ext_adv_start_param&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;param&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/host/adv.c:1656&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;adv_start(struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_mesh_ext_adv&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ext_adv,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_adv_param&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;param,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_ext_adv_start_param&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;start,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_data&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ad,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ad_len,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_data&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sd,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sd_len&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/mesh/adv_ext.c:203&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;bt_mesh_adv_gatt_start(const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_adv_param&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;param,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;int32_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;duration,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_data&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ad,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ad_len,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_data&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sd,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;size_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;sd_len&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/mesh/adv_ext.c:603&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;bt_mesh_pb_gatt_srv_adv_start&lt;/span&gt;&lt;span&gt;() (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/mesh/pb_gatt_srv.c:308&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;bt_mesh_adv_gatt_send&lt;/span&gt;&lt;span&gt;() (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/mesh/adv.c:301&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;send_pending_adv(struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;k_work&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;work&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/mesh/adv_ext.c:359&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;work_queue_main(void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;workq_ptr,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p2,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p3&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/kernel/work.c:688&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;z_thread_entry(k_thread_entry_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;entry,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p1,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p2,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p3&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/lib/os/thread_entry.c:48&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;z_thread_entry(k_thread_entry_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;entry,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p1,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p2,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;p3&lt;/span&gt;&lt;span&gt;) (&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/lib/os/thread_entry.c:48&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[Unknown code] (&lt;/span&gt;&lt;span&gt;Unknown&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Source:0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;The&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seems&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;to&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;arise&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;here:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_hci_cmd_send_sync&lt;/span&gt;&lt;span&gt;() &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/host/hci_core.c:440&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;case BT_HCI_ERR_INSUFFICIENT_RESOURCES:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;-ENOMEM&lt;/span&gt;&lt;span&gt;; (&lt;/span&gt;&lt;span&gt;-12&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;When&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;there&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;a&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;command&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;code&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;gets&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;returned&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;back&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;up&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;the&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;chain&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;to:&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;In&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_ext_adv_start&lt;/span&gt;&lt;span&gt;() &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;/home/user/ncs/v2.8.0/zephyr/subsys/bluetooth/host/adv.c:1657&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;error&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;is&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;printed:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_le_adv_set_enable_ext&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;adv,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;param&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;LOG_ERR(&lt;/span&gt;&lt;span&gt;&amp;quot;Failed to start advertiser&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;IS_ENABLED(CONFIG_BT_PERIPHERAL&lt;/span&gt;&lt;span&gt;) &amp;amp;&amp;amp; &lt;/span&gt;&lt;span&gt;conn&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_conn_set_state(conn,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT_CONN_DISCONNECTED&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bt_conn_unref(conn&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;I&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;guess&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;it&amp;#39;s something down in the Bluetooth controller.&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;I tried to turn on some logging and am getting&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;[00:08:20.424,499] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x2039 status 0x0d &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[00:08:20.424,560] &amp;lt;err&amp;gt; bt_adv: Failed to start advertiser&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[00:08:20.424,591] &amp;lt;err&amp;gt; bt_mesh_adv_ext: Advertising failed: err -12&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;I think status 0x0d is BT_HCI_ERR_INSUFFICIENT_RESOURCES above, so that&amp;#39;s&lt;/span&gt;&lt;span&gt;&amp;nbsp;at least&amp;nbsp;&lt;/span&gt;&lt;span&gt;consistent.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/523090?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 15:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24611749-0858-4681-ba62-021b19eaee61</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;I see.&lt;/p&gt;
&lt;p&gt;Could you try debugging and figure out where it fails, and exactly what is returning&amp;nbsp;&lt;span&gt;&amp;nbsp;bt_mesh_adv_ext: Advertising failed: err -12?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/522703?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 16:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ae1568-49ef-484a-b512-13b17e019863</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;I don&amp;#39;t see the problem with the default sample app light control.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/522376?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 09:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3834b1e8-29d8-40d5-ab9c-286297c82682</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;/span&gt;Right, sorry about that. Sysbuild is a bit new to me. &lt;span&gt;&amp;lt;project&amp;gt;/build/zephyr/.config&amp;nbsp;contains configs for the entire build, while the configs I referred to can be found in&amp;nbsp;&amp;lt;project&amp;gt;/build/&amp;lt;project&amp;gt;/zephyr/.config. Check there.&lt;/span&gt;&lt;/p&gt;
[quote user="ji_584"]I don&amp;#39;t believe the sysbuild/ipc_radio/prj.conf [/quote]
&lt;p&gt;Good. You having a sysbuild folder there surprised me a bit, as that is something you would typically need for changes in configurations across multiple images, as if you are working with multi-core chips like the 53 or 54. A sysbuild folder doesn&amp;#39;t spawn on my side when building light_ctrl for the 52840dk.&lt;/p&gt;
[quote user="ji_584"]&lt;p&gt;autoconf.h contains the line:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Great! Autoconf is essentially the same as .config, just a different use-case.&lt;/p&gt;
&lt;p&gt;So I guess that didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;Btw, I assume selecting the device in the scanner page of the app when using a completely default sample works fine? Could you check?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/522062?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 23:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1872646a-2277-4a5a-aed1-fe25a0ba8a2a</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Elfiving,&lt;/p&gt;
&lt;p&gt;Thank you for&amp;nbsp;your continued support.&lt;/p&gt;
&lt;p&gt;&amp;lt;project&amp;gt;/build/zephyr/.config only contains entries of the form SB_CONFIG....&amp;nbsp; It doesn&amp;#39;t have any text matching MAX_ADV_SET.&lt;/p&gt;
&lt;p&gt;When I add the suggested config variable to prj.conf (see below) nothing matching appears in .../.config&lt;/p&gt;
&lt;p&gt;When I grep the entire project, MAX_ADV_SET appears in:&lt;/p&gt;
&lt;p&gt;light_ctrl_sample/build/light_ctrl_sample/zephyr/misc/generated/configs.c&lt;/p&gt;
&lt;p&gt;light_ctrl_sample/build/light_ctrl_sample/zephyr/include/generated/zephyr/autoconf.h&lt;/p&gt;
&lt;p&gt;light_ctrl_sample/sysbuild/ipc_radio/prj.conf&lt;/p&gt;
&lt;p&gt;light_ctrl_sample/build/light_ctrl_sample/zephyr/misc/generated/syscalls_links/include_zephyr_bluetooth/bluetooth.h&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe the sysbuild/ipc_radio/prj.conf is being used in the build -- I inserted a syntax error into that file and the build proceeded without errors.&lt;/p&gt;
&lt;p&gt;autoconf.h contains the line:&lt;/p&gt;
&lt;p&gt;#define CONFIG_BT_EXT_ADV_MAX_ADV_SET 5&lt;/p&gt;
&lt;p&gt;configs.c contains the line:&lt;/p&gt;
&lt;p&gt;GEN_ABSOLUTE_SYM_KCONFIG(CONFIG_BT_EXT_ADV_MAX_ADV_SET, 5);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Next, I added&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_EXT_ADV_MAX_ADV_SET&lt;/span&gt;&lt;span&gt;=10&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to the main prj.conf&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;autoconf.h and configs.c changed accordingly.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I compiled and ran, and got the same error.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;[00:00:22.033,569] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x2039 status 0x0d &lt;br /&gt;[00:00:22.033,599] &amp;lt;err&amp;gt; bt_adv: Failed to start advertiser&lt;br /&gt;[00:00:22.033,630] &amp;lt;err&amp;gt; bt_mesh_adv_ext: Advertising failed: err -12&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Jack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/521912?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2025 12:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeb14bef-b55e-41ee-b87b-b92082507a6c</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Could you check the value of&amp;nbsp;&lt;span&gt;CONFIG_BT_EXT_ADV_MAX_ADV_SET in the final generated .config file of the build. You can find it in /build/zephyr/.config.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth Mesh Light CTL (color tuned light) sample</title><link>https://devzone.nordicsemi.com/thread/521418?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 22:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bdefadf-657f-452c-828b-0ceb2010bedf</guid><dc:creator>ji_584</dc:creator><description>&lt;p&gt;Elfving,&lt;/p&gt;
&lt;p&gt;I made the conf changes you suggested with no change.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the log for the event.&amp;nbsp; The error message appears as soon as I select device in the scanner page of the app.&lt;br /&gt;&lt;br /&gt;*** Booting Mesh Light Fixture v2.8.0-9913506ff072 ***&lt;br /&gt;*** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***&lt;br /&gt;*** Using Zephyr OS v3.7.99-0bc3393fb112 ***&lt;br /&gt;Initializing...&lt;br /&gt;[00:00:00.009,002] &amp;lt;inf&amp;gt; fs_nvs: 8 Sectors of 4096 bytes&lt;br /&gt;[00:00:00.009,033] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fe8&lt;br /&gt;[00:00:00.009,033] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, 0&lt;br /&gt;[00:00:00.009,185] &amp;lt;inf&amp;gt; bt_sdc_hci_driver: SoftDevice Controller build revision: &lt;br /&gt; fe 2c f9 6a 7f 36 22 2e a0 79 c0 40 be 2c 03 20 |.,.j.6&amp;quot;. .y.@.,. &lt;br /&gt; 40 c2 f3 32 |@..2 &lt;br /&gt;[00:00:00.013,275] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&lt;br /&gt;[00:00:00.013,305] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)&lt;br /&gt;[00:00:00.013,336] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 254.63788 Build 573996906&lt;br /&gt;[00:00:00.013,854] &amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&lt;br /&gt;Bluetooth initialized&lt;br /&gt;[00:00:00.015,197] &amp;lt;wrn&amp;gt; bt_mesh_access: Unused space in relation list: 14&lt;br /&gt;[00:00:00.430,297] &amp;lt;inf&amp;gt; bt_hci_core: Identity: D4:B8:86:BC:1B:BE (random)&lt;br /&gt;[00:00:00.430,328] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 6.0 (0x0e) revision 0x104e, manufacturer 0x0059&lt;br /&gt;[00:00:00.430,358] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 6.0 (0x0e) subver 0x104e&lt;br /&gt;[00:00:00.435,852] &amp;lt;inf&amp;gt; bt_mesh_provisionee: Device UUID: 8d065d07-ab75-4658-b2f9-a2f8548ac9a7&lt;br /&gt;Mesh initialized&lt;br /&gt;[00:00:04.135,528] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x2039 status 0x0d &lt;br /&gt;[00:00:04.135,589] &amp;lt;err&amp;gt; bt_adv: Failed to start advertiser&lt;br /&gt;[00:00:04.135,620] &amp;lt;err&amp;gt; bt_mesh_adv_ext: Advertising failed: err -12&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Jack&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the way, I can get&amp;nbsp;another error&amp;nbsp;without rebooting by backing out of the provisioning page and selecting the device from the scanner page again.&amp;nbsp; Apparently, the error isn&amp;#39;t catastrophic.&lt;br /&gt;&lt;br /&gt;[00:00:00.015,197] &amp;lt;wrn&amp;gt; bt_mesh_access: Unused space in relation list: 14&lt;br /&gt;[00:00:00.430,297] &amp;lt;inf&amp;gt; bt_hci_core: Identity: D4:B8:86:BC:1B:BE (random)&lt;br /&gt;[00:00:00.430,328] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 6.0 (0x0e) revision 0x104e, manufacturer 0x0059&lt;br /&gt;[00:00:00.430,358] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 6.0 (0x0e) subver 0x104e&lt;br /&gt;[00:00:00.435,852] &amp;lt;inf&amp;gt; bt_mesh_provisionee: Device UUID: 8d065d07-ab75-4658-b2f9-a2f8548ac9a7&lt;br /&gt;Mesh initialized&lt;br /&gt;[00:00:04.135,528] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x2039 status 0x0d &lt;br /&gt;[00:00:04.135,589] &amp;lt;err&amp;gt; bt_adv: Failed to start advertiser&lt;br /&gt;[00:00:04.135,620] &amp;lt;err&amp;gt; bt_mesh_adv_ext: Advertising failed: err -12&lt;br /&gt;[00:08:52.918,304] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x2039 status 0x0d &lt;br /&gt;[00:08:52.918,365] &amp;lt;err&amp;gt; bt_adv: Failed to start advertiser&lt;br /&gt;[00:08:52.918,395] &amp;lt;err&amp;gt; bt_mesh_adv_ext: Advertising failed: err -12&lt;br /&gt;[00:09:08.785,827] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x2039 status 0x0d &lt;br /&gt;[00:09:08.785,858] &amp;lt;err&amp;gt; bt_adv: Failed to start advertiser&lt;br /&gt;[00:09:08.785,888] &amp;lt;err&amp;gt; bt_mesh_adv_ext: Advertising failed: err -12&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/45853.prj.conf"&gt;devzone.nordicsemi.com/.../45853.prj.conf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>