<?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 send data to all node over mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39629/how-to-send-data-to-all-node-over-mesh</link><description>I want to send data to all node by mesh 2.1.1. 
 From the Mesh profile(3.4.2.4 Group address),the dst_addr = 0xFFFF is send to all node . 
 I try to setting &amp;quot;packet_tx()&amp;quot;funtion as follows(The red part is add): 
 nrf_mesh_address_t dst_address; dsm_handle_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Nov 2018 09:02:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39629/how-to-send-data-to-all-node-over-mesh" /><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/156435?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 09:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88cce296-1569-4aca-bf7e-4364ec2534e7</guid><dc:creator>listenYes</dc:creator><description>&lt;p&gt;Thanks！I&amp;#39;ll try again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/156427?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 08:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97c84f7-5f52-438a-a101-a2231b6a8325</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I just tested with one proxy client &amp;amp; three proxy server from mesh sdk v2.1.1. All I needed to do was the erase all nrf52832 dks, then flash the examples on the boards &amp;amp; use nRF Mesh app to provision (I tested with iOS on an iPhone 8). I then did the appkey binding process (AppKey 1) for the proxy client &amp;amp; set the publish address of button 3 to 0xFFFF. Lastly, I binded the appkey 1 to the rest of the servers. Then, when I pressed button 3, all&amp;nbsp;LEDs1 toggled on or off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/156247?ContentTypeID=1</link><pubDate>Wed, 07 Nov 2018 03:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:684d6583-f697-4b81-9d87-234f2d8daa2b</guid><dc:creator>listenYes</dc:creator><description>&lt;p&gt;Yes it can,but all server nodes must be&amp;nbsp;&lt;span&gt;subscribe to this group address (0xFFFF)?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/156079?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 08:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d0c717-d3e5-4b7b-8d51-353edfea4e5a</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;What if you just&amp;nbsp;make&amp;nbsp;all server nodes subscribe to this group address (0xFFFF)? Does that work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/155857?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 07:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e15d0ae9-a30a-4f71-b287-d061b9155dd5</guid><dc:creator>listenYes</dc:creator><description>&lt;p&gt;Yes &lt;span&gt;I tried,but it&amp;#39;s so bad.Because,I found a phenomenon:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The dst_addr=0xFFFF messge unable to upload &lt;span class="fontstyle0"&gt;Access layer&lt;/span&gt;&amp;nbsp; from&amp;nbsp; &lt;span class="fontstyle0"&gt;Upper transport layer.&lt;/span&gt;&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/154457?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 10:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a729bff4-5a43-4571-80a7-7ce249b32504</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;It does not seem that the provisioner sets this up out of the box. Have you tested what you explained in your last comment on the dev kits? Did it work? You may need to set the subscribe address yourself if the test does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/154442?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 10:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e291460e-f082-4818-9a17-876c0cdcd7d7</guid><dc:creator>listenYes</dc:creator><description>&lt;p&gt;It can work.Now,all server&amp;nbsp;&lt;span&gt;belong to ODD group.So,when client send message to dst_addr=0xFFFF,server will&amp;nbsp;response client&amp;nbsp;operation.But my doubt is that:If&amp;nbsp; server&amp;nbsp;does not belong to any group(&amp;nbsp;s&lt;span class="fontstyle0"&gt;ubscription list&lt;/span&gt;&amp;nbsp;is NULL),can server still receive from&amp;nbsp;dst_addr=0xFFFF message?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/154415?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 08:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40c8fe6c-7968-458a-9762-d30c81599a9f</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Did you try to update my code to send to the 0xFFFF group address instead of the odd or even group address? Did that work or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/154237?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 09:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9915d38c-956b-43d6-95d1-f2a11c3ace56</guid><dc:creator>listenYes</dc:creator><description>&lt;p&gt;I tried your method, It&amp;#39;s feasible.That is to say anyone node must&amp;nbsp;in group(all node either in ODD or EVEN ),if&amp;nbsp; node does not belong to any group(ODD or EVEN),it can&amp;#39;t receive any from dst_addr = 0xFFFF(0xFFFE) message?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/154002?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 08:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:452118cd-6e18-49df-9e4c-2a1b1003ee02</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You do not need to use 0xC001. You can try out different values, but the most significant bit should be 1. You should be able to use most values between 0xC000 to 0xFFFF. You are correct that 0xFFFF should send the message to all nodes. Have you tried the answer I posted below &amp;amp; updating the publication address to 0xFFFF instead of 0xC001?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/153946?ContentTypeID=1</link><pubDate>Tue, 23 Oct 2018 04:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e7b5fb2-09c0-4b14-bc91-4a2182b8854f</guid><dc:creator>listenYes</dc:creator><description>&lt;p&gt;I&amp;nbsp;&lt;span&gt;use the proxy examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If my want to send data to all node,must use app config&amp;nbsp;configure all node(such as ,all server add subscription address is 0xC001,one or more client&amp;nbsp; add publication address 0xC001)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From the Mesh profile(3.4.2.4 Group address),the group address dst_addr = 0xFFFF is send to all node .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4857._FE564772_1.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So,MESH 2.1.1 can&amp;#39;t receive dst_addr&amp;nbsp;= 0xFFFF message?&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: How to send data to all node over mesh</title><link>https://devzone.nordicsemi.com/thread/153852?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 13:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40558f42-86d6-4300-b9b8-8930838bc829</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39628/mesh-2-2-0-light-switch-example-combine-the-address"&gt;This case&lt;/a&gt; should be helpful. Regarding your question, you want to send a message to a group address, which all of the server nodes will subscribe to. You can either do this by making a few changes to the provisioner &amp;amp; client source codes or by using the proxy client &amp;amp; proxy server examples instead. If you use the proxy examples, you should provision the nodes via the nRF Mesh app for iOS or Android.&lt;/p&gt;
&lt;p&gt;It seems like you want to use the first solution, so I will explain this in detail below:&lt;/p&gt;
&lt;p&gt;In the provisioner, you will notice that four client models are being configured (one for each button the client nRF52 dev kit) (i.e. cases NODE_SETUP_CONFIG_PUBLICATION_ONOFF_CLIENT1-4). If you look at clients 3 &amp;amp;4, you notice that one is configured to send messages to the odd group address &amp;amp; the other sends to the even group address. What you can do is subscribe all nodes to the odd group address for example.&lt;/p&gt;
&lt;p&gt;That way, whenever you press button 3 on the client kit, the lights on all server nodes should either turn on or off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First off, you want to change the code in the&amp;nbsp;NODE_SETUP_CONFIG_SUBSCRIPTION_ONOFF_SERVER case in node_setup.c of the provisioner from this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;            if (m_current_node_addr % 0x02)
            {
                address.value  = GROUP_ADDRESS_ODD;
            }
            else
            {
                address.value  = GROUP_ADDRESS_EVEN;
            }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//            if (m_current_node_addr % 0x02)
//            {
//                address.value  = GROUP_ADDRESS_ODD;
//            }
//            else
//            {
//                address.value  = GROUP_ADDRESS_EVEN;
//            }
            address.value  = GROUP_ADDRESS_ODD;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then, go to the client example &amp;amp; understand the code in case 3. The code snippet below sends a simple on off client unreliable message (i.e. unacknowledged message) to the odd group, which in our case is all server nodes. This is due to the changes made in the on off server group address subscription we did above in the provisioner code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case 3:
            /* send a group message to the ODD group, with inverted GPIO pin value */
            status = simple_on_off_client_set_unreliable(&amp;amp;m_clients[button_number],
                                                         !hal_led_pin_get(BSP_LED_0 + button_number),
                                                         GROUP_MSG_REPEAT_COUNT);
            if (status == NRF_SUCCESS)
            {
                hal_led_pin_set(BSP_LED_0 + button_number, !hal_led_pin_get(BSP_LED_0 + button_number));
            }
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now, whenever you press button 3 on the client board, all lights should either turn on or off on all server boards. This is because the client is publishing a group message to all of the servers that are subscribed to that group address.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>