<?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>multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46458/multiple-clients-and-one-server-in-bluetooth-mesh-application</link><description>What I want to accomplish 
 I want to create a bluetooth mesh application. I want one board to act as a server and 12 or more other boards acting as clients. Each client will have 4 buttons and upon pushing one button on the client,will send send a ON</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 09:21:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46458/multiple-clients-and-one-server-in-bluetooth-mesh-application" /><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/191982?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:942e5f95-5e2b-4087-a4f4-e8d30d788a20</guid><dc:creator>EAn</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;, here it is: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48338/export-mesh-network-information-mapping-mesh-network-and-nodes-constitution"&gt;devzone.nordicsemi.com/.../export-mesh-network-information-mapping-mesh-network-and-nodes-constitution&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/191711?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 17:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09ed7e43-6c1f-4788-ba70-fa6290ab1ff0</guid><dc:creator>EAn</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt; . I could. I was just trying to avoid duplicating questions, as there are many similar cases and that basically makes the information spread and sometimes conflicting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will add a new case as you&amp;#39;ve requested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/191695?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 15:32:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a21ebf5b-f879-4ffa-afb5-24987b458ba4</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ean_5f00_bn"&gt;EAn&lt;/a&gt; Could you please create a new DevZone case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/191457?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 17:24:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ed4eca5-7626-419b-bdd5-7df6e26e3b57</guid><dc:creator>EAn</dc:creator><description>&lt;p&gt;I&amp;#39;d like to know this for the Android App (in any case for a consumer application it would be important to develop for both OSs ...) . Thank you &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;, for your assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/191456?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 17:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47f8c632-7d60-42a7-bff0-2654c904201d</guid><dc:creator>EAn</dc:creator><description>&lt;p&gt;Greetings! &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt; Isn&amp;#39;t there a way to achieve this same type of information mapping using, for instance one of the mesh nodes that could act as a client/provisioner to all other nodes and therefore keep all the mesh information which could then be backed up through either a BLE&amp;lt;&amp;gt;cloud gateway, or a WiFi network coprocessor?&lt;/p&gt;
&lt;p&gt;If so, what API calls would we need to get the necessary information to be able to reconstruct the network (network key, app keys, device keys, device constitution (elements+models+addresses) etc...) ?&lt;/p&gt;
&lt;p&gt;In real-case scenarios you don&amp;#39;t always have a device that can speak Python to extract the information in the way you suggest, and in some use-cases you might not want an App that connects via BLE.... &lt;br /&gt;&lt;br /&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/186197?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 12:56:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4477540e-3698-4a69-9481-bd61bb709535</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;No worries! My guess would be somewhere &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/tree/master/android-nrf-mesh-library/meshprovisioner/src"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/186035?ContentTypeID=1</link><pubDate>Wed, 08 May 2019 20:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7467cf5d-fa4d-44b5-8c18-896a18ced416</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;My apologies I thought I mentioned. I mean nRF Mesh Android App.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/185768?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 14:07:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c04c0aca-7794-42a2-9bb3-d0054d624928</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Are you referring to the nRF Mesh iOS or Android app? I will take a look once I know which app you want to know more about.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/185605?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 06:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6ccbb76-6f19-4b18-b9e9-8ee8a9a4690b</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;Thank you &lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&amp;nbsp; &amp;nbsp;I will go with mesh mobile App. Do you happen to know where in the library they save the provision nodes and I will pick up from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/185049?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 07:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea47df30-3e0a-43cc-a9e3-75ba53f818c3</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Regarding the nRF Mesh app, the source code is available &lt;a href="https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library"&gt;here&lt;/a&gt; &amp;amp; &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library"&gt;here&lt;/a&gt;.&amp;nbsp;You could update the source code to send the client addresses to your server. If you don&amp;#39;t want to do this, I would recommend looking at the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_scripts_interactive_pyaci_doc_demo_configuration.html?cp=5_1_2_3_1_2"&gt;interactive python script&lt;/a&gt;. Whenever you provision a node, that node gets added to the &amp;quot;example_database.json&amp;quot; file. All you then need is a nRF52 DK&amp;nbsp;running the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_examples_serial_README.html?cp=5_1_3_4"&gt;mesh serial example&lt;/a&gt; to act as a connectivity chip between your computer running interactive python &amp;amp; the mesh network.&amp;nbsp;You could then easily send the relevant data to your server. That backup file contains all of the relevant data for your network, so you want to make sure the data is sent securely to prevent anyone else from having access to your mesh network.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/184416?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 03:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e25cf2f-6422-4d00-aef6-57e24fb41f41</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;Honestly, I am open to use any of the provisioning method you mentioned above.To get started I was thinking of using nRF mobile App.I know at the time of provisioning with the mobile App I would be able to identify/associate which address/client is located where. But since I don&amp;#39;t have control of the App I won&amp;#39;t be able to programmatically send the clients addresses mapping to my own server. That is why I was hoping if I could access clients addresses on the server node, I could interface it with wifi chip and send the mapping to the server. What provisioning method do you propose in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/184260?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 10:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b300cadd-6321-4bed-a48e-db2a0f9dadf4</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;The provisioner will know the unicast addresses of all of the clients &amp;amp; the servers. The server does not have access to this information the way our mesh sdk is setup at the moment. Are you planning on using the nRF Mesh app for provisioning, the provisioner example or the interactive python script?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/183616?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 03:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a7dbbd-068a-455f-9118-dd3a309ce237</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;Got it. Thank you so much&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bjorn-kvaale"&gt;Bjørn Kvaale&lt;/a&gt;&amp;nbsp; &amp;nbsp;That was very helpful.&lt;/p&gt;
&lt;p&gt;Now, on the server node I want to be able to have a list of source addresses in advance for mapping(like map&amp;nbsp; 0Xabcd to kitchen,0xdef to the living room and so forth....) that way I know this message came from a certain part of the house.(Practically I would have at least 20 client nodes). I am assuming this will be during provisioning,Is this possible for server to access all clients Unicast addresses during provisioning?If yes how?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multiple clients and one server in Bluetooth mesh application</title><link>https://devzone.nordicsemi.com/thread/183508?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 13:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfb5a383-a8b8-4da7-ad7e-1960ab705273</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You will need to instantiate one element for each of the 4 buttons in each client node. However, you will not need to instantiate 48 elements on the server node. An element is essentially a controllable part of your device.&lt;/p&gt;
&lt;p&gt;To simplify things, if you want pressing the same button (e.g. button 1) on each client node to turn the server light on or off, then you only need one element on the server node. This one element would then control when to turn the light on the server on or off.&lt;/p&gt;
&lt;p&gt;If you want each of the 4 buttons on the 52 DK to turn on one of the server LEDs (i.e. button 1 on client turns on LED1 on server, button 2 on client turns on LED2 on server, etc...), then you would require 4 elements on each client &amp;amp; 4 elements on the server.&lt;/p&gt;
&lt;p&gt;I created an &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40090/nrf5-sdk-for-mesh-v2-2-0-light-switch-demo---where-next"&gt;example here&lt;/a&gt; which sets up multiple elements in a Bluetooth Mesh example. In this case, I used the server example to turn on multiple LEDs on the nRF52 DK. You can most likely follow the same procedure if you want to use&amp;nbsp;the newest mesh sdk (which I recommend).&lt;/p&gt;
[quote user=""]How would I know&lt;span&gt;&amp;nbsp; &lt;/span&gt;a message came from this a certain node and element?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Mesh messages are sent with a source address, so you can see which node sent the message. See this struct in access.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** Metadata for received messages. */
typedef struct
{
    /** Source address of the message. */
    nrf_mesh_address_t src;
    /** Destination address of the message. */
    nrf_mesh_address_t dst;
    /** TTL value for the received message. */
    uint8_t ttl;
    /** Application key handle that decrypted the message. */
    dsm_handle_t appkey_handle;
    /** Core RX metadata attached to the packet */
    const nrf_mesh_rx_metadata_t * p_core_metadata;
    /** Network key handle that decrypted the message. */
    dsm_handle_t subnet_handle;
} access_message_rx_meta_t;&lt;/pre&gt;&lt;/p&gt;
[quote user=""]How would this work at the time of configuration, in other words will I have to give one publication address for all 48 elements or just 12 nodes?[/quote]
&lt;p&gt;&amp;nbsp;You can just set the publication address to the unicast address of the server node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>