<?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>Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75276/provisioner-and-client-provisionee-roles-in-the-same-application-mesh-5-0</link><description>Provisioner and client (provisionee) roles in the same application. 
 
 Hello everyone, 
 First, I am using SDK 17.02 and BLE Mesh 5.0. 
 By the moment, I want to integrate a static provisioner and a generic OnOff client in the same application. I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Jun 2021 08:39:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75276/provisioner-and-client-provisionee-roles-in-the-same-application-mesh-5-0" /><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/314855?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 08:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f74c67e4-e69e-43d9-9ec4-a9d77b7100df</guid><dc:creator>lshaiou</dc:creator><description>&lt;p&gt;OK。Thanks！~&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/314852?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 08:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb22d97f-ded7-4152-996e-9f2e1a0408d9</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello&amp;nbsp; @Ishaiou,&lt;/p&gt;
&lt;p&gt;The provisioner example given in BLE Mesh examples has a Configuration client role. If you are starting with BLE Mesh I recommend reading the Nordic documentatation:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_mesh_basic_concepts.html"&gt;Bluetooth mesh concepts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is also a good tutorial that it was a good starting point for me:&amp;nbsp;&lt;a href="https://www.novelbits.io/bluetooth-mesh-tutorial-part-1/"&gt;The Ultimate Bluetooth Mesh Tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/314849?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 08:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f094126-477d-498b-aaa8-d6ae9d63f6c7</guid><dc:creator>lshaiou</dc:creator><description>&lt;p&gt;Hi jfpastrana,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I have the same use case as you.T&lt;span&gt;he CORE device could implement provisioner and configuration client roles&amp;nbsp;.And I don&amp;lsquo;t know how to do,because I am a newer on mesh .Have you finished the test?And could you be kind to give me some advice? Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/312946?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 15:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efd2713-a0da-4639-8b76-6eb604c13674</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your answer and thanks again for reviewing the network architecture, it is true. It should be a server, not a client.&lt;/p&gt;
&lt;p&gt;I will keep the CORE node as provisioner node.&lt;/p&gt;
&lt;p&gt;Thanks for the example, I will test it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/312464?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 16:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79acdfae-18a4-400d-bfaf-9e4bc64dee4b</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Provisioner as a role is always a separate device as by spec you must use one of the specified provisioner bearers (ADV or GATT) in order to provision a device. However, by reading the spec, nothing prevents the node that implements Provisioner and Configuration Client to have other models (like it was with generic onoff client). But generally, yes, provisioner and configuration client is a smartphone or some other device that can add devices to a mesh network. Regarding the static provisioner, we see it as an example that can provision and configure all our samples, not just generic onoff client.&lt;/p&gt;
&lt;p&gt;Regarding your case, if you won&amp;#39;t have a smartphone or any other separate device, then the CORE device could implement provisioner and configuration client roles together with generic onoff client.&lt;/p&gt;
&lt;p&gt;I have attached a patch that adds Generic OnOff Client from light switch client example to static provisioner example for nRF5 SDK for Mesh v5.0. Actually, the static provisioner can be any other device as well as CORE device. But since CORE device should subscribe to button status, it should have Generic OnOff Server instance, not the client one. Or use Device A as a provisioner. Then the rest devices could be Light Switch server examples. The important thing is that one and only one device must have provisioner and configuration client roles on it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6787.onoff_5F00_client_5F00_in_5F00_static_5F00_provisioner.diff"&gt;devzone.nordicsemi.com/.../6787.onoff_5F00_client_5F00_in_5F00_static_5F00_provisioner.diff&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/311969?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 07:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa863a5-afc6-4011-8abf-411547413e25</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Any suggestions? Or I just remove the clients from provisioner node?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/311163?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 09:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff9e1bc-be4f-4e97-86f1-91f976029c65</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Ok, I am going to explain you my use of case with an example, for a better understanding.&lt;/p&gt;
&lt;p&gt;Imagine that you have a virtual assistant like Alexa, which is the core of the network. Then you have other nodes, like a smart blind, smart lights, speakers, &amp;hellip; basically devices which need to send its status and have actuators.&lt;/p&gt;
&lt;p&gt;Now the keys of my use of case:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The virtual assistant will be always at the same home.&lt;/li&gt;
&lt;li&gt;You do not want to force to the user to use its smartphone for configuring/pairing.&lt;/li&gt;
&lt;li&gt;You want to add new devices automatically, when the virtual assistant detects a new node, they will be paired automatically.&lt;/li&gt;
&lt;li&gt;I insist again, you want a self-managed network, you cannot force the user for configuring the network.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If it Is not the nature of the provisioner, I do not understand why Nordic has published an example like this.&lt;/p&gt;
&lt;p&gt;I hope it would be explained better.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/311123?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 16:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b310cfc-be98-45a6-a5fb-5011610c3d18</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t quite understand why you need the provisioner and provisionee to be on the same node.Your core don&amp;#39;t need to be a provisioner, or am I wrong here? Could you elaborate?&amp;nbsp;&lt;span&gt;In almost all cases you want your provisioner to be a seperate device, often a smartphone or other device connected to the outside world for backup of the provisioning database.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/311061?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 12:48:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ab4046e-a95b-420c-878b-0fe6b6000acf</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you give some idea? or tell me if it is not a good approach of the given network?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Basicaly, i took the static provisioner example and i included the clien initialization of genereic OnOff client. it means, put the initialization at the end of the&amp;nbsp;models_init_cb() function. (As it is done in the Mesh1.0 example)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    for (uint32_t i = 0; i &amp;lt; CLIENT_MODEL_INSTANCE_COUNT; ++i)
    {
      /* TODO Configure the client locally, if we have more clients, do it in an array */
      m_client_on_off[i].settings.p_callbacks = &amp;amp;client_cbs;
      m_client_on_off[i].settings.timeout = 0;
      m_client_on_off[i].settings.force_segmented = APP_FORCE_SEGMENTATION;
      m_client_on_off[i].settings.transmic_size = APP_MIC_SIZE;
      __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Client\n&amp;quot;);
      ERROR_CHECK(generic_onoff_client_init(&amp;amp;m_client_on_off[i], i + 1));
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, when the program goes to the first&amp;nbsp;generic_onoff_client_init() it breaks. i do not know why, maybe is the order initialization, not sure. I am comparing it with the Mesh 1.0 example but it is quiet difficult to follow, due to the changes between Mesh 1.0 and 5.0.&lt;/p&gt;
&lt;p&gt;Could you give any clue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can find attached my main.c if it helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6808182.main.c"&gt;devzone.nordicsemi.com/.../6808182.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/310626?ContentTypeID=1</link><pubDate>Thu, 20 May 2021 07:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc26ceef-661e-41ae-8e99-22b610aef5be</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I need to develop a network like the picture below, this is a simplified version, in the future will be more devices as DEVICE A. Every device is physically accessible by CORE device, I do not need a remote provisioner.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="Network" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8015.mesh.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Therefore, if I understand well the roles in BLE Mesh, I will need:&lt;/p&gt;
&lt;p&gt;CORE: Control role (Client / server). Also, with Proxy and ANT+ capabilities.&lt;/p&gt;
&lt;p&gt;DEVICE A: Server role&lt;/p&gt;
&lt;p&gt;DEVICE B: Control (Client / server)&lt;/p&gt;
&lt;p&gt;If there is a better role approach, please tell me how I can do it.&lt;/p&gt;
&lt;p&gt;Thank you in advanced,&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Provisioner and client (provisionee) roles in the same application Mesh 5.0</title><link>https://devzone.nordicsemi.com/thread/310540?ContentTypeID=1</link><pubDate>Wed, 19 May 2021 16:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1531ab5-b254-44d6-84dc-a893efc77e82</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is there a reason for you to have both in the same application? Could you tell me more about your use-case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>