<?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>Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75860/is-there-a-way-to-control-the-unprovisioned-device-a-light-with-nrf5-sdk-for-mesh</link><description>Hi support team, 
 I am a beginner with Nordic nrf5 sdk for mesh. I begin with the sample light_switch. Currently I want to toggle the status (on/off) of the unprovisioned light by phone APP. 
 Is there a method to implement it? 
 I have read the source</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jun 2021 14:43:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75860/is-there-a-way-to-control-the-unprovisioned-device-a-light-with-nrf5-sdk-for-mesh" /><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313471?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 14:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4fa7a7b-e03a-4281-8ae5-5b47d80399cd</guid><dc:creator>Young</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313445?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 13:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ce9ad3e-20d3-462e-8e7a-9d544252214e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You just need to define the function to be called when the provisioner send &amp;quot;identify&amp;quot; . It&amp;#39;s&amp;nbsp;the input to&amp;nbsp;mesh_provisionee_prov_start() function that&amp;#39;s called inside start(). You can find&amp;nbsp;device_identification_start_cb() is provided. You just need to provide the function (to blink an LED for example) into .prov_device_identification_start_cb&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313403?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 12:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e8f530d-5776-4242-9022-c318eb00ee5f</guid><dc:creator>Young</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your suggestion.&lt;/p&gt;
&lt;p&gt;I noticed that the way (blink) to identify the unprovisioned device is implemented in light_switch example, but not implemented in light_lightness, light_ctl examples. so how to identify the unprovisioned device with these examples? Maybe I missed much about the sdk, but could you pls&amp;nbsp; give any suggestion? Thank you in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313300?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 08:08:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50f4f38-ccb6-428d-b8d9-b2ca547a450d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you considered the RSSI solution I mentioned about ? If you want to set 20 pcs the light to one network, you just bring them closer to the phone, then you should be able to select only them.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313298?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 08:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff6a26b-6f24-48c0-82f6-9206633cccb3</guid><dc:creator>Young</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks so much for your patience for my question. Yes, you&amp;#39;re right.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re trying to figure out a solution for the situation like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the manufactory, there are 100 same lights. We plan to create 5 mesh networks and each mesh network will include 20 lights. After these lights are powered up, we will use smartphone (nRF5 mesh app) to provision for every light and make each light into the corresponding network. If connect to every light to identify, maybe it would take too much time,&amp;nbsp;so we meet the original question.&lt;/p&gt;
&lt;p&gt;If there isn&amp;#39;t another way, the sample way (connect and identify) we have to use.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313276?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 07:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f115225-4314-46e1-a51a-f3cc44ff6b92</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please correct me if I&amp;#39;m wrong. So the problem here is that all of the nodes look identical from the outside, there is no serial number or anything. And&amp;nbsp;you want to provision a particular node and you don&amp;#39;t know the MAC address or the serial number of the node , correct&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the case you can use RSSI (Received Signal Strength Indicator) . So if you want to provision a device, you can just pick it up , and bring it close to the phone. On the phone you only show the device with the RSSI higher than a certain level (very close to the phone). This way you can provision the device without the need to connect to every single one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313237?ContentTypeID=1</link><pubDate>Thu, 03 Jun 2021 02:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca84fb3f-3c95-448b-96a1-e92de8c8803c</guid><dc:creator>Young</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I understand the way you mentioned.&amp;nbsp; That is to say that in order to find A4, the phone (nRF Mesh app) needs to connect to every unprovisioned node to identify and try to see if it is the node which I want to provision. If there were many unprovisioned nodes (not just 10), it would not be&amp;nbsp;a good way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a way to identify the unprovisioned node without connection?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I searched and found the similar ticket,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34871/how-to-identify-a-non-provisioned-node-with-the-thingy-mesh-demo"&gt;How to identify a non provisioned node with the Thingy mesh demo - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;, but didn&amp;#39;t find the&amp;nbsp;&lt;span&gt;Link Establishment Request and cannot open the link page &amp;quot;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_doc_getting_started_provisioning.html?cp=4_1_0_3_4"&gt;latest mesh sdk&lt;/a&gt;&amp;quot; (maybe it&amp;#39;s too old). I am using nRF5 sdk for mesh v5.0.0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any suggestion would be very appreciated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313168?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 14:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f6c207-f5b2-4412-8ab3-7f5b7f5a02c5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What you can do is to click on the App to select A4 , then when it&amp;#39;s connected to the phone (nRF Mesh app) you click on Identity. Then A4 will start to blink (if you implement that on a nRF52 DK kit the LED 1 to LED4 will start blinking). Then you would know which in the 10 nodes is A4 and can take the device.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313108?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 12:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:875e46ec-19ad-481f-a751-4d6a07a0a6a2</guid><dc:creator>Young</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks so much for your quick reply.&lt;/p&gt;
&lt;p&gt;As you said, there are 10 unprovisoned nodes A1-A10 (10 lights). Now I just want to provision for A4, but I don&amp;#39;t know which one is A4, so before provisioning, I need to find A4.&amp;nbsp; Maybe it is more clearly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313100?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 12:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946eb10f-32b9-44f4-9c24-655569cd0baa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please be aware that&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_SCAN_REQ_REPORT&amp;nbsp; would trigger when there is any central that doing active scanning. So you will response to any phones, laptops, anything that can send a scan request. Not ideal solution.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I still don&amp;#39;t really understand what you want to do .&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Let&amp;#39;s say you have 10 unprovisioned nodes A1 to A10 and 10 provisioned node B1 to B10. You can see the list of all the unprovisioned node A1 to A10.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What you do mean by &amp;quot;I want to figure out a method to find the specific unprovisioned node to provision&amp;quot; ?&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you want to provision A4 you just connect to A4 and click identify the A4 node will response.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On the opposite, if you just hold a node and you want to know which node address is this, you can use RSSI on the phone to check which node is the closest to you.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313090?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 12:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca6187d1-b5d7-4387-ba6e-0f7d4ccb0194</guid><dc:creator>Young</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using nrf5 sdk for mesh v5.0.0 and nrf5 sdk v17.0.2.&lt;/p&gt;
&lt;p&gt;In fact, I want to select a specific unprovisioned node (a light) from all the unprovisioned nodes, because I want to divide all unprovisioned nodes into a few networks.&amp;nbsp; However&amp;nbsp;these nodes are in the same state, e.g. off, so I want to figure out a method to find the specific unprovisioned node to provision.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;According to what you said &amp;quot;&lt;span&gt;If you do provisioning you can find that after you connect to the unprovisioned node you can click Identify and the node will start blinking.&lt;/span&gt;&amp;quot;, actually it is not possible to connect all unprovisioned nodes one by&amp;nbsp; one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just thought of the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_SCAN_REQ_REPORT&amp;nbsp;&amp;nbsp;event.&amp;nbsp; The provisioner (smartphone) just sends scan request but not connect request later and see if the corresponding node&amp;#39;s state is changed (toggled). When the unprovisoned node received the scan request which is sent to itself, it toggles the state (on/off), and then I can know if this node is the node which I want to provision.&amp;nbsp; But if the node is a provisioned node and received a scan request, it will do nothing.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it practicable? or Is there a better way to implement the functionality?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Additionally I am reading the light_switch sample, I didn&amp;#39;t find where BLE_GAP_EVT_SCAN_REQ_REPORT&amp;nbsp;&amp;nbsp;event is handled in the sample.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for any suggestion.&lt;/span&gt;&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: Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?</title><link>https://devzone.nordicsemi.com/thread/313079?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 11:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa0941d-9545-41b2-bd7e-421a099026d5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Young,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give some more information on what you plan to do ?&lt;/p&gt;
&lt;p&gt;Are you planning to be able to control a node without connecting to it ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you do provisioning you can find that after you connect to the unprovisioned node you can click Identify and the node will start blinking.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think using&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_SCAN_REQ_REPORT&amp;nbsp; event to react would be a good idea. Your device will response to all of the central device around because there is no payload inside the scan request.&amp;nbsp;&lt;/span&gt;&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></channel></rss>