<?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>PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56564/pb-remote-configuration-model-fail</link><description>Dear Nordic Support, 
 I am using nRF SDK for Mesh version 3.2.0 with nRF52840-DK. I am making 2 devices like the below: 
 1. First device: the provisioner, able to do PB Remote and node configuration. I combined the code from the light switch provisioner</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jan 2020 10:02:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56564/pb-remote-configuration-model-fail" /><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/231826?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 10:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307f93e5-840a-4931-83f8-a252a5e0e9de</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Glad I could help :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/231784?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 07:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d70a1e-baf6-4421-bc6b-3643dceadddf</guid><dc:creator>Duy</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;
[quote userid="15475" url="~/f/nordic-q-a/56564/pb-remote-configuration-model-fail/231738"]Can you check the dsm to see if you have the correct devkey inside mesh_stack_provisioning_data_store() on the provisionee. You will need to compare this with the devkey you have in the NRF_MESH_PROV_EVT_COMPLETE event on the provisioner.[/quote]
&lt;p&gt;=&amp;gt; After checking back, I found that I generated one net key but I used a different (empty) one when provisioning so I could not bind the key.&lt;/p&gt;
&lt;p&gt;It finally works. Thank you for supporting me.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Duy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/231738?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 15:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:322d1562-5429-4d2e-8411-b9b08324d15e</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you check the dsm to see if you have the correct devkey inside mesh_stack_provisioning_data_store() on the provisionee. You will need to compare this with the devkey you have in the NRF_MESH_PROV_EVT_COMPLETE event on the provisioner. &lt;/p&gt;
&lt;p&gt;The appkey/devkey is used to decrypt incoming messages and is located inside this function, upper_trs_packet_decrypt() in transport.c before getting to access layer. You can try and see if a packet(without correct devkey) ends up in that function or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/230984?ContentTypeID=1</link><pubDate>Sat, 25 Jan 2020 23:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4535365-e22e-4fa0-afd6-07061eacafc5</guid><dc:creator>Duy</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;Thanks for your feedback, I already implemented a configuration clien on the PB Remote provisioner, however the PB Remote provisionee did not receive any signal (opcode) to bind app key + net key. On the PB Remote provisioner side it said that the binding process completed successfully.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you give me any advices on this? The code is already in the beginning of this thread. I think I got the wrong configuration somewhere in the code.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Duy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/230926?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 16:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99c8a132-4662-4efd-8315-2700347e7a27</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The configuration phase doesn&amp;#39;t need PB Remote, it can be done as a normal mesh packet. A suggestion from one of my colleauge is that you can implement a configuration client on the PB Remote provisioner, and send it as a normal mesh packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/230410?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 15:29:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e4c716a-52fe-45da-9093-fa9a086f5b59</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its more clear what you are trying to do. I will have a closer look at the issue and see if I can figure out what is going wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/230309?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 11:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b265564b-b185-4403-9aaf-70b8d4b2ad38</guid><dc:creator>Duy</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;Do you need any further information? Thanks.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Duy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/229611?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 12:54:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63e9d7a-2746-4e47-b97a-7872d52da373</guid><dc:creator>Duy</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;Thank you for your feedback. Sorry not making it clear enough and please correct me if I am wrong.&lt;/p&gt;
&lt;p&gt;What I am doing now is to configure the provisionees as the light switch clients or light switch servers, and I have been adding these features in the&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;PB Remote examples&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The provisioning process works fine for provisioner and provisionees. However, for the node setup (configuration) process, I have not made it work yet. The&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp"&gt;Provisioner&lt;/a&gt;&amp;nbsp;in the &lt;em&gt;Light Switch examples&lt;/em&gt; can configure the using functions in the&amp;nbsp;&lt;em&gt;node_setup.c&lt;/em&gt; file and this file call functions in&amp;nbsp;&lt;em&gt;config_client.c&lt;/em&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I use the same&amp;nbsp;&lt;em&gt;node_setup.c&lt;/em&gt; to put into the &lt;em&gt;PB Provisioner&lt;/em&gt; with some small modifications to make it run, however I think I may have misused or misuderstood something so the&amp;nbsp;&lt;em&gt;Provisionee&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt; does not received the request to add the appkey although I do call it in function&amp;nbsp;&lt;strong&gt;prov_evt_handler&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;            /* Bind the device key to the configuration server and set the new node as the active server. */
            ERROR_CHECK(config_client_server_bind(m_devkey_handles[1 + m_next_unprov_index]));
            ERROR_CHECK(config_client_server_set(m_devkey_handles[1 + m_next_unprov_index],
                                                 m_device_address_handles[m_next_unprov_index]));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I hope that this is clear enough for you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Duy&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PB Remote + Configuration model fail</title><link>https://devzone.nordicsemi.com/thread/229552?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 09:29:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72016ea8-6e96-418f-9f5c-6234170667d2</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think you might misunderstanding something. Not sure why you need to combine the two examples in device 1, The&amp;nbsp;PB remote client&amp;nbsp;example already contains&amp;nbsp;&lt;span&gt;Remote provisioning&amp;nbsp;&lt;/span&gt;&lt;em&gt;client model&lt;/em&gt;&lt;span&gt;&amp;nbsp;that acts as provisioner and provisions remote devices. While the PB remote server example acts as provisionees until they are included in the network, after which they will be able to act as servers that are relays to help provision new devices that are out of reach for the client.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you give me a bit more details on why you are trying to combine the two examples in device 1 and device 2?&lt;/p&gt;
&lt;p&gt;What are your use-case/trying to do? Have you read through &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.0.0/md_examples_pb_remote_README.html?cp=7_2_3_6_2" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>