<?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>mqttsn_client_search_gateway never calls it&amp;#39;s callback function, stays busy even after the supposed timeout.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94828/mqttsn_client_search_gateway-never-calls-it-s-callback-function-stays-busy-even-after-the-supposed-timeout</link><description>Hello again! 
 I have configured and initialised the Thread API from the Thread/Zigbee client publisher example, and receive no errors or warnings when attempting to send mqttsn_client_search_gateway. However the MQTT function simply stays busy for the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Dec 2022 13:10:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94828/mqttsn_client_search_gateway-never-calls-it-s-callback-function-stays-busy-even-after-the-supposed-timeout" /><item><title>RE: mqttsn_client_search_gateway never calls it's callback function, stays busy even after the supposed timeout.</title><link>https://devzone.nordicsemi.com/thread/401273?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 13:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bd4774f-dd03-4ce6-9c65-ed44923b6e70</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Role 4 actually means&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__api-thread-general.html#gga46bf439d509e082c14fade133dc681afa7bb1a0afb1b20a1cd71ac876f0877bd2"&gt;OT_DEVICE_ROLE_LEADER&lt;/a&gt;, which is another indication that the device have not joined the same network as the border router. If this device is the only device in the network/partition (with router capabilities), the device will automatically become leader. There is an API,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__api-thread-general.html#gadb6ff4c47de43b90b9dd49cb600e418c"&gt;otThreadBecomeChild&lt;/a&gt;(), that can be used to change the device role to child (note that this should only be used for testing purposes), or you can call&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/group__api-thread-router.html#ga82101affe91acd922af07a25fcc5a420"&gt;&lt;span&gt;otThreadSetRouterEligible&lt;/span&gt;&lt;/a&gt;() to disable the router capabilities of the device. Note that if the device is not able to join another network, it will not work without router capabilities.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqttsn_client_search_gateway never calls it's callback function, stays busy even after the supposed timeout.</title><link>https://devzone.nordicsemi.com/thread/401154?ContentTypeID=1</link><pubDate>Sun, 18 Dec 2022 20:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c480f89-d406-40e1-8d8e-142010f12553</guid><dc:creator>kwigulaker</dc:creator><description>&lt;p&gt;What Ive noticed is that the thread instance state on the device that does not return search_gateway is 4, while the other device is 2. From what ive seen this means that this device is a router and not a child like the other device, any idea how I can change the role to a child manually?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqttsn_client_search_gateway never calls it's callback function, stays busy even after the supposed timeout.</title><link>https://devzone.nordicsemi.com/thread/401105?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 16:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd64803a-2da9-49ea-a213-20cf988f2ea4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would highly recommend getting a dongle (or preferably two), to run the sniffer and/or a CLI application. This is an invaluable debug tool when developing your applications.&lt;/p&gt;
&lt;p&gt;I tried running your application and perform a sniffer trace, but Wireshark reports that it can&amp;#39;t decrypt the frame. This indicates that the key is changed from the default key used by the examples (I have verified that frames from the MQTT-SN publisher example from the SDK can be decrypted). Tried printing the masterkey from your project, and it looks correct, but there might be set/corrupted by something in the application.&lt;/p&gt;
&lt;p&gt;Have you verified that the MQTT-SN node and the border router have joined the same network?&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: mqttsn_client_search_gateway never calls it's callback function, stays busy even after the supposed timeout.</title><link>https://devzone.nordicsemi.com/thread/400937?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 18:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd18aab6-2ab9-463c-81f1-e5d46623d129</guid><dc:creator>kwigulaker</dc:creator><description>&lt;p&gt;I have setup the border router and gateway using the Nordic raspberry pi image, I do not have an extra dongle or DK to use for the sniffer, as far as I know no network parameters have been changed in the Thread network. Like I mentioned, if I only use the original mqtt_client_publisher example it all works fine, then I am able to find the gateway and publish messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mqttsn_client_search_gateway never calls it's callback function, stays busy even after the supposed timeout.</title><link>https://devzone.nordicsemi.com/thread/400631?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 13:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c3b9c7-c991-45fc-a5fa-58336c1978fa</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you provide a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_802154/UG/sniffer_802154/intro_802154.html"&gt;sniffer trace&lt;/a&gt; of the communication in the Thread network when you call&amp;nbsp;&lt;span&gt;search_gateway? This will send the request to the given (multicast) address, but there might not be any nodes responding at the address.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you setup the border router and MQTT-SN gateway using the Raspberry Pi image provided by Nordic?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you change any network parameters for the Thread network, or commissioned the nodes into a new network? Specifically the&amp;nbsp;Mesh-Local Prefix address affects the address used by the MQTT-SN examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>