<?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>Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71820/remote-provisioning-from-all-devices-on-the-mesh</link><description>I am using mesh SDK v4.2.0. 
 I read the documentation of the remote provisioning example (pb_remote) and took look at the code. 
 My first feeling was that the remote provisioning in this example is done through a specific device on the mesh that implements</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 May 2021 16:06:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71820/remote-provisioning-from-all-devices-on-the-mesh" /><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/309309?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 16:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a2d6119-6faf-4609-ab3e-06f63667f995</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Glad&amp;nbsp;it worked out for you :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/309215?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 11:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b9a8e16-7b7b-4f4a-bd44-a3350bcb56e6</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;My mistake, the client should be in&amp;nbsp;&lt;span&gt;PB_REMOTE_CLIENT_STATE_IDLE when the server is scanning. The problem was in my application, I was determining the mesh address of the servers wrongly, and the client did not receive the ACK message from the server because there was none in that address, so it was permanently in the wait for ack state.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/309061?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 17:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ada2bc8-9c67-4106-abac-13ecf201f4bc</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;I&amp;#39;m calling&amp;nbsp;pb_remote_client_remote_scan_cancel in a timer handler that is triggered 30 seconds after I start the scan from the first server but I&amp;#39;m getting&amp;nbsp;NRF_ERROR_INVALID_STATE since&amp;nbsp;p_client-&amp;gt;state != PB_REMOTE_CLIENT_STATE_IDLE obviously. Is it safe to force it to &lt;span&gt;PB_REMOTE_CLIENT_STATE_IDLE before&amp;nbsp;calling&amp;nbsp;pb_remote_client_remote_scan_cancel?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t mind experimenting and customizing the SDK to my needs, I&amp;#39;m just asking so I don&amp;#39;t lose time implementing a workflow that was already well thought by you guys. Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/308603?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 16:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae35bb07-d9be-47a1-b05c-d6c78f48f251</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;pb remote client can work only with one pb remote server at a time. Dynamically changing publication address of the client will lead to incorrect state of both the server and the client. You can only change pb remote client publication (and thus run provisioning on another pb remote server) when it&amp;#39;s state is IDLE.&lt;/p&gt;
&lt;p&gt;So what you can do is that you can set publication to one server and do scanning through that server. Once scanning is finished (either by canceling scanning or if server reaches the limit of maximum stored UUIDs defined by&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;PB_REMOTE_SERVER_UUID_LIST_SIZE&lt;/strong&gt;), you will get&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;PB_REMOTE_EVENT_SCAN_CANCELED&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;event on the client. Now you can change the publication address to another server or start provisioning. If the provisioning process is started, you can&amp;#39;t change the client&amp;#39;s publication address until the provisioning is completed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/307993?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 15:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5108658-32c6-4431-a38f-e8959ae6bdbf</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;Hi, I returned to the development of the remote provisioner and while I got it working, I cannot start multiple remote scans at the same time. From my interpretation of the code, this is not natively possible.&lt;/p&gt;
&lt;p&gt;Currently I am&amp;nbsp;cycling through all active nodes in the mesh network, first setting/changing the publish address of the pb_remote_client with the dsm&amp;nbsp;to the address of the pb_remote_server in that node and then initiating the scan with&amp;nbsp;pb_remote_client_remote_scan_start.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;pb_remote_client_remote_scan_start only returns NRF_SUCCESS if the client state is&amp;nbsp;&lt;/span&gt;PB_REMOTE_CLIENT_STATE_IDLE, returning NRF_ERROR_INVALID_STATE otherwise. After the first scan is ordered, an event of type&amp;nbsp;PB_REMOTE_CLIENT_EVENT_SCAN_START is sent for processing, which will trigger&amp;nbsp;pb_remote_client_event_scan_start_cb and change the client state to&amp;nbsp;PB_REMOTE_CLIENT_STATE_WAIT_ACK_SCAN. On ordering the second scan from the second node, client state is no longer&amp;nbsp;&lt;span&gt;PB_REMOTE_CLIENT_STATE_IDLE, but&amp;nbsp;PB_REMOTE_CLIENT_STATE_WAIT_ACK_SCAN. This will trigger the NRF_ERROR_INVALID_STATE error and prevent me from initiating remote scanning on the second node.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I imagine this is done because the remote client does not change its publish address dynamically, depending on the address of the server that links with the unprovisioned device. Am I on the right track? Thank you.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/298402?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 13:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac218187-2049-412a-a4a2-e3f557de0793</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="EAn_BN"]Imagine we have more than one remote provisioning server. When one starts a provisioning/configuration session with an unprovisioned device that beaconed it. Would that unprovisioned device also be hearing and replying to other remote provisioning servers?[/quote]
&lt;p&gt;Any unprovisioned device will have at most one provisioning link open at one time. I.e. the device will at some level &amp;quot;hear&amp;quot; the other servers, but it will open a link to at most one of them at a time and the actual provisioning process will only communicate between these two devices.&lt;/p&gt;
[quote user="EAn_BN"]How would the original provisioner device handle the information of the other nodes being remotely provisioned by other remove provisioning server? For instance, we are using the nodes UUID as a sort of login identifier in our cloud gateway, is that info relayed back to the original provisioner?[/quote]
&lt;p&gt;With remote provisioning, the pb-remote client is in charge of the actual provisioning and as such has access to all information normally available during e.g. provisioning over the advertiser bearer. The pb-remote server(s) and the rest of the mesh network only really exist to relay the messages for the provisioning process between the pb-remote client and the provisionee.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/296613?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 15:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b785c553-ac1c-4656-bfa0-3ddb645df4b6</guid><dc:creator>EAn</dc:creator><description>&lt;p&gt;Greetings&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/rmarques"&gt;rmarques&lt;/a&gt;&amp;nbsp;, and DevZone community.&lt;br /&gt;I am currently working on this also. At the moment I have two questions still standing concerning this:&lt;br /&gt;&lt;br /&gt;- Imagine we have more than one remote provisioning server. When one starts a provisioning/configuration session with an unprovisioned device that beaconed it. Would that unprovisioned device also be hearing and replying to other remote provisioning servers? &lt;br /&gt;&lt;br /&gt;- How would the original provisioner device handle the information of the other nodes being remotely provisioned by other remove provisioning server? For instance, we are using the nodes UUID as a sort of login identifier in our cloud gateway, is that info relayed back to the original provisioner?&lt;br /&gt;&lt;br /&gt;Thank you very much for all support,&lt;br /&gt;&lt;br /&gt;Best Regards and stay safe &lt;br /&gt;//EA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/296592?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 14:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d91dcaa-0a80-48af-986a-880cc4a999e7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You are correct, a specific remote provisioning server is used for actually provisioning each unprovisioned device. There is nothing stopping you from having a lot of these in the network however, possibly on every node. In addition, choosing the &amp;quot;best&amp;quot; server for provisioning a new device is not really neccessary, any device which picks up the unprovisioned beacon should do.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote provisioning from all devices on the mesh</title><link>https://devzone.nordicsemi.com/thread/296483?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 10:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62cc4a36-b597-4366-ae20-b14447b2774c</guid><dc:creator>rmarques</dc:creator><description>&lt;p&gt;Hello, do you have any news on this? I am not expecting hand holding on implementing any new stuff, just confirmation that I understood this correctly and, if possible, further recommendation on the general direction to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>