<?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>MQTT-SN won&amp;#39;t connect as SED while &amp;quot;THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57985/mqtt-sn-won-t-connect-as-sed-while-thread_radio_mode_rx_off_when_idle</link><description>Hello, 
 I&amp;#39;m struggling to connect to an MQTT-SN Gateway when the device is configured for low power. Currently using MAC-OS Catalina 10.15.3, SES version 4.42 and have tried Nordic + Thread SDK&amp;#39;s version 3.2 and version 4. 
 
 I can&amp;#39;t register an MQTT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Aug 2020 06:33:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57985/mqtt-sn-won-t-connect-as-sed-while-thread_radio_mode_rx_off_when_idle" /><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/266860?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 06:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaa01a58-e967-46bd-9b99-20038b7244f2</guid><dc:creator>dixsept</dc:creator><description>&lt;p&gt;Hello, I would like to ask what is the meaning of current role : 1 or 4?&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/244307?ContentTypeID=1</link><pubDate>Mon, 13 Apr 2020 21:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb763734-2730-41ae-a122-c38136da6e53</guid><dc:creator>for_fun</dc:creator><description>&lt;p&gt;I&amp;#39;m glad that you were able to solve this problem. Could you give more information why this example was not working?&lt;/p&gt;
&lt;p&gt;I have similiar issue. From wirehark it looks like Border router respond to Search Gateway but unfortunately resp does not get into SED. SDK3.2&lt;/p&gt;
&lt;p&gt;Default project. SED connected to Thread network.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2063.SearchMQTTSN_5F00_GW.pcapng"&gt;devzone.nordicsemi.com/.../2063.SearchMQTTSN_5F00_GW.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/239633?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2020 03:25:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c75618-6e95-4799-aa68-ce8632061287</guid><dc:creator>rogerarchibald</dc:creator><description>&lt;p&gt;Thank you for the assistance&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen and Marjeris!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Roger&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/238513?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 12:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d8d613e-a3d4-4122-8052-b109da55b449</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested this on my setup. Initially, I got an error when changing the radio mode to :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: MQTT-SN event: Gateway discovery result: 0x3.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I then set the poll_period and child_timeout parameters, similar to the MQTT-SN Sleepy Subscriber example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;thread_configuration_t thread_configuration =
{
    .radio_mode        = THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE,
    .autocommissioning = true,
    .poll_period           = DEFAULT_POLL_PERIOD,
    .default_child_timeout = DEFAULT_CHILD_TIMEOUT,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I was then able to find and connect the gateway as normal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Thread version   : OPENTHREAD/20180926-01143-g8a1992e2; NRF52840; Dec 10 2019 22:48:00
&amp;lt;info&amp;gt; app: Network name     : NordicOpenThread
&amp;lt;info&amp;gt; app: Thread interface has been enabled.
&amp;lt;info&amp;gt; app: 802.15.4 Channel : 11
&amp;lt;info&amp;gt; app: 802.15.4 PAN ID  : 0xABCD
&amp;lt;info&amp;gt; app: Radio mode       : rx-off-when-idle
&amp;lt;warning&amp;gt; app_timer: RTC instance already initialized.
&amp;lt;info&amp;gt; app: State changed! Flags: 0x011FD33D Current role: 1

&amp;lt;info&amp;gt; app: State change&amp;lt;info&amp;gt; app: MQTT-SN event: Client has found an active gateway.
&amp;lt;info&amp;gt; app: MQTT-SN event: Client connected.
&amp;lt;info&amp;gt; app: MQTT-SN event: Client registered topic.
&amp;lt;info&amp;gt; app: MQTT-SN event: Topic has been registered with ID: 1.
&amp;lt;info&amp;gt; app: MQTT-SN event: Gateway discovery procedure has finished.
&amp;lt;info&amp;gt; app: MQTT-SN event: Gateway discovery result: 0x0.
&amp;lt;info&amp;gt; app: MQTT-SN event: Client has successfully published content.
&amp;lt;info&amp;gt; app: MQTT-SN event: Client has successfully published content.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/235826?ContentTypeID=1</link><pubDate>Sat, 22 Feb 2020 18:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b964d35-631a-440f-bd25-3e7ac9f7b3b4</guid><dc:creator>rogerarchibald</dc:creator><description>&lt;p&gt;Hi Marjeris,&lt;/p&gt;
&lt;p&gt;I have reviewed the test guidelines and I don&amp;#39;t think there&amp;#39;s anything I&amp;#39;m missing there (I could always be wrong on that). &amp;nbsp;I am using a Raspberry Pi with the Nordic Thread Border Router image and using an NRF52840 Dongle as the NCP. &amp;nbsp;I am pretty much using the SDK examples out of the box, the only modification I&amp;#39;ve made is to the sdk_config.h file to clear the&amp;nbsp;&lt;strong&gt;NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED &amp;nbsp;&lt;/strong&gt;flag for debugging within SES. &amp;nbsp;I&amp;#39;ve also set the channel and PANID over the CLI to connect to my network. &amp;nbsp;Those are the only changes.&lt;/p&gt;
&lt;p&gt;The mqttsn_client_publisher example works as described in the test guidelines. &amp;nbsp;The mqttsn_sleepy_publisher works as described if I change the thread configuration radio mode to RX_ON_WHILE_IDLE, but out of the box it isn&amp;#39;t able to connect to the gateway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/235789?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 18:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b928b08-f263-42c9-91e5-206c6ecedc78</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you seen the test guidelines for the sleepy subscriber and publisher projects on the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.0.0/thread_mqttsn_sleepy_example.html"&gt;infocenter&lt;/a&gt;? Are you using our thread border router as the MQTT-SN gateway or a third party&amp;#39;s? Are you struggling to connect the example out of the box or have you made any modifications?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT-SN won't connect as SED while "THREAD_RADIO_MODE_RX_OFF_WHEN_IDLE"</title><link>https://devzone.nordicsemi.com/thread/235181?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 12:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f19a23de-bfff-406a-9660-46839cb3e183</guid><dc:creator>rogerarchibald</dc:creator><description>&lt;p&gt;To clarify, I&amp;#39;m seeing this with the NRF52840-DK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>