<?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>Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34033/mesh-set-message-destination-address</link><description>hi, 
 How can i set Destination Address to a particular Mesh Node. so that all message reach that particular Node Only.Since provisioner can set address while provisioning process. 
 reply is appreciated. .</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Aug 2018 12:52:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34033/mesh-set-message-destination-address" /><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/146119?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 12:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac4a75f8-34c0-4543-96b9-b0c88b3604ea</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/beparas"&gt;beparas&lt;/a&gt; Could you please open a new devzone question please.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/146069?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 09:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cc8d8b8-3c56-41a6-92eb-616a8f0e1841</guid><dc:creator>beparas</dc:creator><description>&lt;p&gt;Hi &lt;span class="user-name"&gt; &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/arunbm123"&gt; arunbm123&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;How do you set &amp;quot;unicast address 50&amp;quot; in&amp;nbsp;&amp;nbsp;button_event_handler() function in client code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131669?ContentTypeID=1</link><pubDate>Fri, 11 May 2018 07:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd76891-ad68-45e5-85d1-75c8d84d11f9</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;How many nodes do you want in your mesh network? If you want three nodes (one provisioner, one client &amp;amp; one server), the server will always get the same unicast address. If you have multiple servers,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the light switch example, the client sends the messages to the server(s) via button presses. As I mentioned above, you can find the unicast node addresses of the client &amp;amp; server(s) by looking at the provisioning_complete_cb() function inside main.c of the light switch client &amp;amp; server examples. Specifically these two lines in mesh sdk 2.0.0 for example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    dsm_local_unicast_addresses_get(&amp;amp;node_address);
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Node Address: 0x%04x \n&amp;quot;, node_address.address_start);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then, if you open an rtt viewer window for both the client &amp;amp; server (assuming you are using one provisioner, one client &amp;amp; one server), you get the log printout of the unicast address which the messages get sent to.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have more than one server (i.e. one provisioner, one client &amp;amp; many servers), I would advise you to take a look at how the provisioner provisions the client. The client UUID is static &amp;amp; known to the provisioner (see CLIENT_NODE_UUID in light_switch_example_common.h). You could assign one of the servers to also have a static UUID (the server that collects the messages) &amp;amp; have an extra else if() block&amp;nbsp;right before:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;else if (m_nw_state.provisioned_devices &amp;lt; SERVER_NODE_COUNT)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;where you can provision the first server. Something like else if(m_nw_state.provisioned_devices == 1) {// your code to provision first server}&lt;/p&gt;
&lt;p&gt;That way, you will know the unicast address of this server.&lt;/p&gt;
&lt;p&gt;After that, you can provision the rest of the servers like shown in the light switch example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131430?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 02:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e115413c-2b02-4449-8b37-f094a57550a3</guid><dc:creator>priya123</dc:creator><description>&lt;p&gt;Any Updates on this Bjorn Kvaale ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131197?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 12:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39cf2847-10ed-4754-a076-ff2f2d785757</guid><dc:creator>priya123</dc:creator><description>&lt;p&gt;yes Bjorn,&lt;/p&gt;
&lt;p&gt;I want only one Node to collect the Messages.Since Provisioner Assigns Address , we dont know what address it assigns to Node which going to collect Messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131193?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 12:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595ba201-9fb5-4ec4-8dd5-f37a2f694cee</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;By static address, do you mean that every time the node gets provisioned &amp;amp; no matter how many nodes are getting provisioned, that one node will always have the same unicast address(es)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131188?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 12:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed927d34-4bce-45f5-950f-e2126f17dc94</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;If you are able to open an rtt viewer window for the client &amp;amp; the server nodes, you can see that the unicast node addresses get printed in the provisioning_complete_cb() function in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    dsm_local_unicast_addresses_get(&amp;amp;node_address);
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Node Address: 0x%04x \n&amp;quot;, node_address.address_start);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;of the light switch client &amp;amp; server examples in Mesh SDK v2.0.0 for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131072?ContentTypeID=1</link><pubDate>Sat, 05 May 2018 10:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:263deb0b-7c09-4cbd-93f1-6aeca9771b1d</guid><dc:creator>priya123</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;is it possible to set Static Address to a Node?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131055?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 16:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cebd7ee2-5865-4c19-9e6e-5685a3fc739a</guid><dc:creator>arunbm123</dc:creator><description>&lt;p&gt;yes the example s working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131039?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 13:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601d837e-4f6d-4256-8619-f9771e8a0eff</guid><dc:creator>priya123</dc:creator><description>&lt;p&gt;Yes I tried this Example...Works Fine...&lt;/p&gt;
&lt;p&gt;My Question is if I have 100 nodes and &lt;strong&gt;I want to send Messages only to 50th Node&lt;/strong&gt;..is it possible ? Since Provisioner Assigns the unicast address .What address is assigned to 50th Node we dont know....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh: set Message Destination Address</title><link>https://devzone.nordicsemi.com/thread/131027?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 12:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57b2c001-e3d9-4a29-969b-a5b80be7d70a</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You can use&amp;nbsp;&lt;a href="http://blog.bluetooth.com/the-fundamental-concepts-of-bluetooth-mesh-networking-part-2"&gt;the unicast address&lt;/a&gt;&amp;nbsp;to send a message from one node to an element in another node.&amp;nbsp;During provisioning, each element in a node is assigned a unicast address. When you then send a message via the unicast address, only the element with that particular unicast address will read the message.&lt;/p&gt;
&lt;p&gt;For example, in the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.0.1/md_examples_light_switch_README.html?cp=4_1_0_4_0"&gt;light switch example&lt;/a&gt;&amp;nbsp;in the newest mesh sdk v2.0.1, when you test this example with three boards (one provisioner, one client &amp;amp; one server), when you press&amp;nbsp;button 2 on the client board, this refers to case 1 in&amp;nbsp;button_event_handler() function in main.c in the client example. This&amp;nbsp;then calls the simple_on_off_client_set() function, which then sends a message through the send_reliable_message() function.&lt;/p&gt;
&lt;p&gt;In the server board, this unicast message gets picked up in the mesh_msg_handle() function inside access.c of the light switch server example. The handle_incoming() function then handles the unicast message to turn the LED on the server board on &amp;amp; off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>