<?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>multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28559/multicast-only-received-by-coap-server-not-client</link><description>Hey Nordic devzone, 
 I am tinkering with the following multiprotocol examples:
ble_thread_dyn_mtd_coap_cli (client)
ble_thread_dyn_template (server) 
 Currently the client can be controlled using the BSP buttons or a smartphone with the nordic toolbox</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Dec 2017 10:58:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28559/multicast-only-received-by-coap-server-not-client" /><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113158?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 10:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6481ee71-c5d1-46a1-a8c0-bd75ec487061</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;I erased the flash on the device and am now receiving the coap messages. Thanks Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113156?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 09:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b33fd6-fc6a-411e-8b31-8588502f3a54</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey Hung,&lt;/p&gt;
&lt;p&gt;I erased the flash on the client side that seems to have helped. The client is now receiving the messages.
Although it is warning me that the messages are not of the right format:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;info&amp;gt; app: Received CoAP message that does not match any request or resource
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I added my coap messages in thread_coap_utils.c &amp;amp; .h and compiling both versions with the same files. Will hook up the sniffer and see if I can find what is going wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113155?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 12:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c9eee1-fc44-4f3b-8c2c-40a82fc9bb8d</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey Hung,
Thanks for the response I will take a look at this tomorrow. Today I will be working on other stuff.
Will post an update here tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113157?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 10:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13345d12-6434-42be-8e71-3fcfde71b82e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You would need to double check the log to see if rx-on-when-idle is set to &amp;quot;disabled&amp;quot; or enabled because it maybe saved in flash. I suspect it&amp;#39;s a bug that we don&amp;#39;t reconfigure thread inside thread_init() in thread_utils.c if the role = RX_ON_WHEN_IDLE.&lt;/p&gt;
&lt;p&gt;Please try to do a chip eraseall before testing, and make sure rx-on-when-idle= enable in the RTT log.&lt;/p&gt;
&lt;p&gt;ff03::1 should be able to get to all MED devices in the network, you shouldn&amp;#39;t need to use unicast address. If you still have trouble, we would need to debug deeper why it didn&amp;#39;t receive the message. One easy test you can do is to let it as end device, then kill the leader (and maybe kill other routers also) so that it change to leader/router role and then check if by that change it can receive the  multicast packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113154?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 17:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f90faf-ed57-45db-82fc-e48af51df4ff</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey Hung Bui,&lt;/p&gt;
&lt;p&gt;Thanks for your reply, they way I have set it is now :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;thread_configuration_t thread_configuration =
{
    .role                  = RX_ON_WHEN_IDLE,
    .autocommissioning     = true,
    .poll_period           = 2500,
    .default_child_timeout = 10,
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Checking the definition that should be a powered device:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef enum
{
    RX_ON_WHEN_IDLE = 0,  /**&amp;lt; Powered device */
    RX_OFF_WHEN_IDLE,     /**&amp;lt; Sleepy End Device */
} thread_role_t;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Can I use multicast messages to reach end devices, or should I use unicast messages for that ?&lt;/p&gt;
&lt;p&gt;But it would kind of combat the general idea of a mesh network if I would always need to unicast a message to an end node. So shouldn&amp;#39;t it be possible to reach endnode&amp;#39;s using a multicast message?&lt;/p&gt;
&lt;p&gt;If not, what way could I force the client to not take a end-device role?&lt;/p&gt;
&lt;p&gt;Thanks again Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113153?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 17:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fe25050-2502-4f6a-a0ed-e550b8aa694f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@toaster: Are you sure you didn&amp;#39;t set the rx-on-when-idle to &amp;quot;disabled&amp;quot; ? If you set that it will acts a sleepy end device and can&amp;#39;t receive the packet.&lt;/p&gt;
&lt;p&gt;As you already pointed out ff03::1  is mesh local and should be received by all FTDs and MEDs meaning if it&amp;#39;s an end device it should receive the packet.&lt;/p&gt;
&lt;p&gt;My test here the server with role 2 can receive the packet, turn on/off the light, no problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113152?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 11:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10f1aaa-b4dd-44b7-a86b-f496e35cc5eb</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Is there a way I can force a unit into role 3 as a router, or make sure that my end devices also receive my multicast messages?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multicast only received by CoAP server not client</title><link>https://devzone.nordicsemi.com/thread/113151?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 11:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87da016d-0709-469a-8b7c-3a6701aa278c</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hmm in retro spect I do not think it has to do with the client/server role, but if a node is specified as a end device.&lt;/p&gt;
&lt;p&gt;I just ran my ble_thread_dyn_template (server) on all 3 available boards and it seems that the unit that is designated a role 2: end device is not receiving the multicast messages but it is sending the multicast messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>