<?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>BLE Mesh light control example won&amp;#39;t go to &amp;quot;NRF_MESH_EVT_PROV_COMPLETE&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25117/ble-mesh-light-control-example-won-t-go-to-nrf_mesh_evt_prov_complete</link><description>Hello, when trying to finish provisioning my nodes (3 total, per example program&amp;#39;s instructions), my provisioner program keeps running into 
 NRF_MESH_EVT_PROV_LINK_CLOSED
 
 and this is the rough flowchart: 
 
 Note the dash arrow connection line</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2019 09:42:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25117/ble-mesh-light-control-example-won-t-go-to-nrf_mesh_evt_prov_complete" /><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/185893?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 09:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a82812b-524c-4ed2-91a1-ca44c18da52e</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;The link is broken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98933?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 01:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc00958-b567-459b-a8f6-03dab650041f</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Hello, I made a mistake and wasn&amp;#39;t using the correct main.c. Thank you once again for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98929?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 11:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a25d0a-2641-420a-a755-5507939dc1f8</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Please look more closely at the &lt;code&gt;main.c&lt;/code&gt; in the light control server application :) Are you using the Simple OnOff Model? If so, the &lt;code&gt;get_cb()&lt;/code&gt; and&lt;code&gt;set_cb()&lt;/code&gt; should point to functions in your application that should act on a get or set command. For example set a LED or print something on UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98928?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 11:26:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:543543c3-7d4d-4363-9a09-0b31f3038e46</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@thomasstenersen&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;hal_led_pin_set()&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That is very odd! it&amp;#39;s not even compiled in my provisionee project!&lt;/p&gt;
&lt;p&gt;And I couldn&amp;#39;t find &amp;quot;generic_set_cb&amp;quot; either...&lt;/p&gt;
&lt;p&gt;There should be code which add &amp;quot;hal_led_pin_set()&amp;quot; or &amp;quot;generic_set_cb&amp;quot; to an event queue somewhere and wait for handling, where is that code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98927?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 11:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:333150d9-6f21-4ca9-8689-932a433fc3e6</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;If you&amp;#39;re talking about the light control example, look in its &lt;code&gt;main.c&lt;/code&gt; file, specifically in the &lt;code&gt;generic_set_cb()&lt;/code&gt;. It&amp;#39;s calling the &lt;code&gt;hal_led_pin_set()&lt;/code&gt; function which in turn toggles the GPIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98930?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 10:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c05f63d2-a9bc-41c2-833a-5465620faa37</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@thomasstenersen Hello again, assume the configuration and everything is successful, the provisionees should have code to turn on and off leds right? Where is that code?? I&amp;#39;m a bit lazy and I&amp;#39;ve tried for the past a few hours but couldn&amp;#39;t locate that code, can you tell me where it is? I know for provsionER it&amp;#39;s simple on and off client but I don&amp;#39;t know where for provisionEE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98936?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 12:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ffb0a54-b975-4593-97c3-308bed18ab7e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The main problem was solved in &lt;a href="https://devzone.nordicsemi.com/question/168574/"&gt;this&lt;/a&gt; thread.&lt;/p&gt;
&lt;p&gt;As Thomas mentioned, if you have questions about future releases and timelines you should contact the Regional Sales Manager for your area, if you don&amp;#39;t know who it is, send me a PM with your location and I&amp;#39;ll let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98922?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 10:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6482dca3-5392-4b8e-b88f-c455bddf4aef</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Good to hear it&amp;#39;s fixed now :) For information about upcoming releases and schedules, you should contact your local sales representative. If you don&amp;#39;t know who that is, @petter can help you find him/her.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98919?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 10:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbf6ba55-90c9-4c93-89e1-e422a4fc3b17</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@Petter @thomasstenersen:&lt;/p&gt;
&lt;p&gt;This is well, quite embarrassing and unexpected: it seems that I did not restore the line mentioned above, this line in prov_utils.c:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;return memcmp(confirmation, p_ctx-&amp;gt;peer_confirmation, sizeof(confirmation)) == 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now that I did, it has reached&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case NRF_MESH_EVT_PROV_COMPLETE:
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Sorry for all the inconveniences that I may have caused. I swear I did restore that line myself. But clearly for some reason that wasn&amp;#39;t the case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98923?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 07:17:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05963595-ab9d-4d03-8162-573a9c336978</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Ok cool, I was just saying.&lt;/p&gt;
&lt;p&gt;Will there be a 1.x release for the ble mesh?? When? Will there also be an apple/android app? Can&amp;#39;t wait!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You may select OOB method &amp;quot;None&amp;quot;, then the provisioning process will work as if the OOB data was all zeros.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Will that help me out of this debug quagmire? Or should I wait for the new release? Does the new release support nrf52840 BTW? You don&amp;#39;t have to answer if you are not allowed to...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98921?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 06:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09acce5e-257f-4c11-9291-31afcec2d343</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;I&amp;#39;m busy providing all the new cool features for upcoming releases ;) @Petter can probably help you further. The static data is provided as Out Of Bound (OOB) data to prevent eavesdroppers &amp;quot;taking over&amp;quot; or getting the keys generated/sent during the provisioning process. You may select OOB method &amp;quot;None&amp;quot;, then the provisioning process will work as if the OOB data was all zeros.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98920?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 06:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ba3b47-d1cd-4d90-bf01-6d37c0128d7b</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@thomasstenersen Awww... can&amp;#39;t you just spare a little time, as a hobby? Anyway I very much did roll it back, and it is going the right place. I&amp;#39;ve also checked the auth data which they provide to each other, it&amp;#39;s the same.&lt;/p&gt;
&lt;p&gt;Come to think of it, do they have to provide such data to each other? Instead of one doing all the checks?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98924?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 06:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f45d75d-b5fb-4af4-a949-2cf5b0620eea</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Hi Mitch,&lt;br /&gt;
I unfortunately don&amp;#39;t have the time to debug :(&lt;br /&gt;
But, did you revert back all your changes to the mesh stack? E.g., the changes in &lt;code&gt;prov_utils.c&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98925?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 12:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e58d5012-f58e-43e1-880c-5e56c6374128</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@petter  hello again, it still runs to NRF_MESH_EVT_PROV_LINK_CLOSED, caused by a time out. I don&amp;#39;t know why... here is the call stack tree:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ibb.co/i0ASTk"&gt;https://ibb.co/i0ASTk&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98926?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 12:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a58b76-ffff-43a1-9600-eefc51902f48</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@Petter update: the confirmation problem was solved, because of the auth data on both nodes are not the same, now it is the same and the problem was solved. I&amp;#39;m still trying to see if the program will run to &amp;quot;NRF_MESH_EVT_PROV_COMPLETE&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98932?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 05:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6cd00a-381e-4b4c-9189-1b7d7f18517e</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;The download link:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://s000.tinyupload.com/?file_id=25804502466367562730"&gt;s000.tinyupload.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also you can find the same link in the question&amp;#39;s main body.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98931?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 04:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5564176-a797-467e-b741-c4dc896d108e</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;@petter no problem! Uploaded my project in the main question. All relative directory, should be unzip and play. But you need to install 7zip first. Also it&amp;#39;s password protected and I&amp;#39;ve sent password to your PM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98918?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 11:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e4d6b6-0e55-45f8-a4bf-7fbbdcdcfb30</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. I don&amp;#39;t such a list. Could you share your complete project? Maybe I can figure out what is going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98917?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 01:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c029f8-806e-4a84-a13e-ac435baa4752</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Hi @petter, I&amp;#39;ll be honest I don&amp;#39;t know exactly what those events mean. But could you gave me a list of most probable cause of them so I can eliminate them one by one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98916?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 11:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad20b8a-4a14-41b4-93bd-993f586210f3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Difficult to say exactly what causes it. It seems that you get the p_ctx-&amp;gt;peer_confirmation from the peer with the PROV_PDU_TYPE_CONFIRMATION event. And you get the p_ctx-&amp;gt;peer_random with the PROV_PDU_TYPE_RANDOM event. Which is used in the calculation of the confirmation that is compared with p_ctx-&amp;gt;peer_confirmation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98909?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 10:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34861c8b-b723-441a-ac20-eec63721c684</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Ha, never mind the formalities of formats, what caused the memcmp to return a &amp;lt;0 result?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98908?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 10:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92967794-f7a2-47f6-a8a7-01b58842ba2e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I converted them to answer in the mission of fixing the formatting, but then I couldn&amp;#39;t convert back to comment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98910?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 10:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:922df17d-f45d-44b6-b5be-64267bc0dab7</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Hi, my bad, I didn&amp;#39;t see the &amp;quot;== 0&amp;quot; part.&lt;/p&gt;
&lt;p&gt;Anyway the result is &amp;quot;0x000000AC&amp;quot;, or -84.&lt;/p&gt;
&lt;p&gt;In other words, confirmation is less than p_ctx-&amp;gt;peer_confirmation.&lt;/p&gt;
&lt;p&gt;What could have possibly caused this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98914?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 10:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cd2b48e-b936-42f2-8c0e-db13151019dc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I think it is correct. If equal memcmp() will return 0. 0==0 is 1. !1 is 0. Are you saying that memcmp() returns 1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Mesh light control example won't go to "NRF_MESH_EVT_PROV_COMPLETE"</title><link>https://devzone.nordicsemi.com/thread/98913?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 10:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:666ccd95-2d63-447e-8fbd-693fd235ce79</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Hello Petter, I swear I added as comment, but somehow got converted automatically as answer, I guess it has somethign to do with the character limit.&lt;/p&gt;
&lt;p&gt;Anyway it won&amp;#39;t happen again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>