<?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>How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37097/how-to-use-subnet-in-mesh</link><description>I am looking for resources/documentations about implementing subnets in Mesh. The use-case I want to implement is: 
 1. Create two subnets: Subnet A and Subnet B. 
 2. Provision a node X (Let&amp;#39;s say a temperature sensing node) which has network key of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Sep 2018 12:07:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37097/how-to-use-subnet-in-mesh" /><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/150043?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 12:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a14010b6-1c46-486d-a7ec-f13df990a895</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m happy to help :)&amp;nbsp; Glad that it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/150029?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 11:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:287321ae-d33d-42ee-8a5a-674376eb6d89</guid><dc:creator>rbagree</dc:creator><description>&lt;p&gt;It worked. Thank you for all your time and effort.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/149560?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 08:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e04bb50c-8551-46f0-a42b-cb9afecb1089</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ravi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the explanation. Now I understand what you want to do.&amp;nbsp; In your case, if you don&amp;#39;t have a button to physically tell the node that it&amp;#39;s being moved from room 1 to room 2, you would need to implement two client models on your node to send&amp;nbsp; acknowledgement messages to get response from other nodes in each subnet. Based on the RSSI on the response of other nodes, you detect that you are in room 1 or room 2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/149385?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 09:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2bfc408-f06c-4428-b7f8-079396470116</guid><dc:creator>rbagree</dc:creator><description>&lt;p&gt;Let me try to rephrase my doubt:&amp;nbsp;&lt;br /&gt;1. I have two subnets ( which implies I have 2 models ad 2 appkeys and 2 netkeys ...All this is fine and understood)&lt;br /&gt;2. I have provisioned my temperature broadcasting node and have supply both the net keys during configuration.&lt;br /&gt;3. I installed the node in room 1 (Subnet 1) and it is broadcasting its temperature reading using model 1 (bind to Subnet 1)&lt;br /&gt;4. Now I only physically move the node from room 1 (subnet 1) to room 2(subnet 2). So how would the node understand that it has to broadcast using model 2 (bind to subnet 2) as the subnet 1 is not available?&lt;/p&gt;
&lt;p&gt;In other words how would the node switch the model on its own?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Imp: The node is not subscribed to any topic. It is just broadcasting its temperature reading.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/149359?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 08:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43a0827a-ac4c-4248-9505-88e60263d648</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t get it. You have 2 model, each model use different appkey , each appkey bound to different netkey. When you want to transfer the data in a subnet, you use the corresponded&amp;nbsp;model. There is no switching here. You simply use the model that is bound to the subnet that you want to send data.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/149142?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 05:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb287183-4ffb-469b-bb5d-20a17ae257e5</guid><dc:creator>rbagree</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;In my use-case the node is just broadcasting the temperature reading. Both the models (2 subnets =&amp;gt; 2 models) for broadcasting the temperature reading is not subscribed to any topic. So, in this scenario how will the Subnet switching happen?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/148346?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 08:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044f6320-de7c-4c57-80a0-7b41c3ce68b9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ravi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Each model will bind to different appkey. Each appkey will then bind to different network key (subnet key). When you send data from a model, it will only be transmitted in that subnet that it belong to.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you receive a packet that your model subscribed to (which means inside that subnet your model working in) you will have the meta data pointing out which appkey used and which subnet used. You can find it in the&amp;nbsp;access_message_rx_meta_t struct provided from access layer in your model opp code handler function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/148169?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 10:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d907d0-912e-4c47-bcca-34cccad33f0a</guid><dc:creator>rbagree</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have implemented the BLE Mesh subnet for the &amp;quot;LED switch-on&amp;quot; example using two different models and it is working as expected. But for my use case: a temperature node is a member of two subnets. This means there are 2 different models, one for each subnets. Now my question is:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How would the temperature node will get to know which model to use? In other words, how does the temperature node auto-switch between the models based on the subnet it gets associated with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Subnet in Mesh</title><link>https://devzone.nordicsemi.com/thread/142656?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 14:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29777347-fbb8-4a59-a525-a6e14e6fecc6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This involve 2 parts. First is to add several subnet keys when configuration and secondly is to use different netkey when communicate in different subnet. What you need to do is&lt;/p&gt;
&lt;p&gt;- Increase&amp;nbsp;DSM_SUBNET_MAX in nrf_mesh_config_app.h&lt;/p&gt;
&lt;p&gt;- On the provisioner call config_client_netkey_add() to add additional subnet key .On the provisionee, packet with CONFIG_OPCODE_NETKEY_ADD opcode will be handled in&amp;nbsp;handle_netkey_add_update()&lt;/p&gt;
&lt;p&gt;- On the provisioner add appkeys to the provisionee. Note that one appkey can only bind to one netkey (subnet key) . If you have two subnet, you would need 2 appkeys . Currently in the example we only use one&amp;nbsp;NETKEY_INDEX when handling NODE_SETUP_CONFIG_APPKEY_ADD&lt;/p&gt;
&lt;p&gt;- On the provisionee, you may need 2 models to bind to the 2 appkeys you add. We don&amp;#39;t support binding multiple appkeys to one model.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that you can start to communicate in 2 subnet by using the 2 models you have.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>