<?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>Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122111/use-of-scenes-in-ble-mesh-with-nrf52840</link><description>Hi, 
 I have autoprovisioned and autoconfigured my nrf52840 board (provisioning and configuring are made inside the software and not through external app/provisioner). 
 In particular, I have configured three couples of switch/led as client/server. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jun 2025 13:07:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122111/use-of-scenes-in-ble-mesh-with-nrf52840" /><item><title>RE: Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/thread/540487?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 13:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d63bffc1-55ce-4cf0-a076-36cc2bc9e67d</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Great! Glad to hear it Stefano!&lt;/p&gt;
&lt;p&gt;Let us know if there is anything else!&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: Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/thread/540164?ContentTypeID=1</link><pubDate>Mon, 23 Jun 2025 09:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b619ecc-84a7-4a1e-9f05-a29c1117585a</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;with your help now my program starts correctly!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/thread/540021?ContentTypeID=1</link><pubDate>Fri, 20 Jun 2025 12:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60bbd2ea-ce87-498f-a565-dda7970480c7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looks like you need a&amp;nbsp;Generic Default Transition Time model on the same element, to handle the transition between scenes, given that you are using a server. There is a bit about this &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth/mesh/scene_srv.html"&gt;here &lt;/a&gt;and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth/mesh/gen_dtt_srv.html"&gt;here&lt;/a&gt;. The light dimmer sample shows the client side.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;add a&amp;nbsp;&lt;/span&gt;&lt;span&gt;static&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_mesh_dtt_srv&lt;/span&gt;&lt;span&gt; dtt_srv&lt;/span&gt;&lt;span&gt;&amp;nbsp;and a&amp;nbsp; BT_MESH_MODEL_DTT_SRV(&amp;amp;dtt_srv) to the element list.&lt;br /&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;Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/thread/539669?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 08:52:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b892190-a85f-4e3c-afc3-f43eb47c91f8</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to add an information about this problem: I verified serial messages after reset and I found that the following error is signalled:&lt;/p&gt;
&lt;p&gt;bt_mesh_scene_srv:Failed to find Generic DTT Server on element&lt;/p&gt;
&lt;p&gt;This is why the program does not start&lt;/p&gt;
&lt;p&gt;I hope this information can be useful to you to resolve the problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/thread/539542?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 12:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff8033e-d37b-49f8-9530-b1848044542f</guid><dc:creator>stefanogradozzi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your information.&lt;/p&gt;
&lt;p&gt;I have examined your firmware related to light_ctrl sample and I tried to import in my firmware all the instructions related to scenes. Here is what I did:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I added CONFIG_BT_MESH_SCENE_SRV=y in my prj.conf&lt;/li&gt;
&lt;li&gt;I added:
&lt;ul&gt;
&lt;li&gt;static struct bt_mesh_scene_srv scene_srv in my model_handler.c&lt;/li&gt;
&lt;li&gt;BT_MESH_MODEL_SCENE_SRV(&amp;amp;scene_srv), in element list in my model_handler.c&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Well, I manage to build correctly my program (0 errors), but after programming the result is that the program does not start (the red led should light on but nothing happens)&lt;/p&gt;
&lt;p&gt;Then I verified that if I comment:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;BT_MESH_MODEL_SCENE_SRV(&amp;amp;scene_srv)&lt;/p&gt;
&lt;p&gt;the program starts correctly (the red led lights on etc.)&lt;/p&gt;
&lt;p&gt;Why this happens?&lt;/p&gt;
&lt;p&gt;What have I missed?&lt;/p&gt;
&lt;p&gt;I wait for your help&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use of scenes in BLE mesh with nrf52840</title><link>https://devzone.nordicsemi.com/thread/538817?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 12:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29b4a597-3aa2-436e-92eb-2f69daa520ba</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Stefano and thanks for your patience,&lt;/p&gt;
&lt;p&gt;First of all, doing things in regards to provisioning etc in Mesh programmatically is always a bit frowned upon, as having a dedicated provisioner is considered the safer choice. Though I assume you&amp;#39;ve already been told about this in the past, so I&amp;#39;ll leave it at that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to use scenes you&amp;#39;ll have to use scene server models, and eg. using bt_mesh_scene_cli_store() and&amp;nbsp;bt_mesh_scene_cli_recall().&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth/mesh/scene_srv.html#adding_scene_data_for_a_model"&gt;Have a look here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The best way to learn how this can be done is probably using and testing out the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/mesh/light_dimmer/README.html"&gt;Light dimmer and scene selector sample.&lt;/a&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></channel></rss>