<?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>Trying to publish MQTT-SN message with Zephyr and Openthread</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104284/trying-to-publish-mqtt-sn-message-with-zephyr-and-openthread</link><description>There&amp;#39;s no NRF CONNECT sample that implement MQTT-SN on ZEPHYR with OPENTHREAD, but it should work, as openthread transmit UDPV6 messages ? Zephyr provide an MQTT-SN implementation : https://docs.zephyrproject.org/latest/connectivity/networking/api/mqtt_sn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2023 19:09:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104284/trying-to-publish-mqtt-sn-message-with-zephyr-and-openthread" /><item><title>RE: Trying to publish MQTT-SN message with Zephyr and Openthread</title><link>https://devzone.nordicsemi.com/thread/450914?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 19:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110d6fcc-1533-4393-8c07-19527626418b</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;I have taken over this case while Sigurd is away.&lt;/p&gt;
&lt;p&gt;Thank you for sharing that you have made some progress and for answering Sigurd&amp;#39;s questions.&lt;/p&gt;
&lt;p&gt;I had a read through your original ticket together with the &lt;a href="https://www.oasis-open.org/committees/download.php/66091/MQTT-SN_spec_v1.2.pdf"&gt;MQTT-SN specification v1.2&lt;/a&gt;, and I found that some messages have a weird format. I am thinking of the ones with &amp;quot;double lined&amp;quot; arrows from the following log:&lt;/p&gt;
[quote user=""]mqtt-sn paho log&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;cursor:zoom-in;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1031.pastedimage1695998668592v1.png" alt=" " /&gt;[/quote]
&lt;p&gt;The message format is not according to spec. Do you know where the format is from? &lt;/p&gt;
[quote user="krypton76"]In order to succeed i completely clean the RPI from scratch without any docker services, and any network rules.&lt;br /&gt;&lt;br /&gt;Based on that i rebuilt an mqtt-sn paho server, and i have badly the same results : i&amp;#39;m able to connect and start register but i get any callback calls.[/quote]
&lt;p&gt;I assume that you meant that you &lt;strong&gt;&lt;/strong&gt;&lt;em&gt;did not&lt;/em&gt; get any callbacks? &lt;/p&gt;
&lt;p&gt;By comparing the Wireshark screenshot to the Paho log it seems that two UDP messages are missing in the Paho log (packets 3563 and 3564). Do you know which messages these could be? What does their frames look like?&lt;/p&gt;
&lt;p&gt;If you have any new logs to share after the change you made, please share them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to publish MQTT-SN message with Zephyr and Openthread</title><link>https://devzone.nordicsemi.com/thread/449356?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 12:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fa7efea-12e5-4208-bc2b-07136494e8f6</guid><dc:creator>krypton76</dc:creator><description>&lt;p&gt;So thanks for helping me.&lt;br /&gt;For the record, since last time i succeeded in sending a simple coap message on a simple python coap server that is running on RPI ans forwarding the message to cloud mqtt service.&lt;br /&gt;In order to succeed i completely clean the RPI from scratch without any docker services, and any network rules.&lt;br /&gt;&lt;br /&gt;Based on that i rebuilt an mqtt-sn paho server, and i have badly the same results : i&amp;#39;m able to connect and start register but i get any callback calls.&lt;br /&gt;&lt;br /&gt;And to answer you i&amp;#39;m able to ping online ip adresses :&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart:~$ ot ping 8.8.8.8
Pinging synthesized IPv6 address: fd2b:2a9b:18d6:2:0:0:808:808
16 bytes from fd2b:2a9b:18d6:2:0:0:808:808: icmp_seq=2 hlim=114 time=23ms
1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 23/23.0/23 ms.
Done&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to publish MQTT-SN message with Zephyr and Openthread</title><link>https://devzone.nordicsemi.com/thread/449163?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 12:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6cdf034-0add-4d76-bc20-41d036854eb2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="krypton76"]You &amp;#39;re right this is a choice i made, my prior objectives is to work on&amp;nbsp;MQTT network, with a &amp;quot;regular&amp;quot; IOT network.&amp;nbsp;I think that MQTT-SN is the default one that can synchronise natively with other MQTT network.&lt;br /&gt;I&amp;#39;m not so confident to use COAP. I May end with CoaP and a synchronisation process to send messages between MQTT and COAP.&lt;br /&gt;The other point is that MQTT-SN get native functions (that i won&amp;#39;t implement for now) to handle messages asynch with sleeping objects.[/quote]
&lt;p&gt;I talked to some colleagues, and I now understand better that MQTT in many cases advantageous. We will help you debug your issues as best we can.&lt;/p&gt;
&lt;p&gt;First, I want to check a couple of basic things, but an important thing to know still:&lt;/p&gt;
&lt;p&gt;Is you OTBR connected to the internet?&lt;/p&gt;
&lt;p&gt;Are you able to ping online IP addresses from your thread device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to publish MQTT-SN message with Zephyr and Openthread</title><link>https://devzone.nordicsemi.com/thread/448561?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 16:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b445bc2-8864-4796-b4b8-fb3c798704d5</guid><dc:creator>krypton76</dc:creator><description>&lt;p&gt;You &amp;#39;re right this is a choice i made, my prior objectives is to work on&amp;nbsp;MQTT network, with a &amp;quot;regular&amp;quot; IOT network.&amp;nbsp;I think that MQTT-SN is the default one that can synchronise natively with other MQTT network.&lt;br /&gt;I&amp;#39;m not so confident to use COAP. I May end with CoaP and a synchronisation process to send messages between MQTT and COAP.&lt;br /&gt;The other point is that MQTT-SN get native functions (that i won&amp;#39;t implement for now) to handle messages asynch with sleeping objects.&lt;br /&gt;&lt;br /&gt;I&amp;nbsp;already tried several mqtt configurations (even without docker, in native RPI mode) and i get the same behavior, even &amp;lt;ith the one you suggested.&lt;br /&gt;I used paho mqtt-sn mosquitto rsmb and&amp;nbsp;&lt;a id="" href="https://github.com/eclipse/mosquitto.rsmb"&gt;https://github.com/eclipse/mosquitto.rsmb&lt;/a&gt;.&lt;br /&gt;every time i get a connexion entry with CONNACK in broker serer log, but CONNACK never get&amp;nbsp;back to client (i assume it would displays something in&amp;nbsp;&amp;nbsp;evt_cb callback function.&lt;br /&gt;&lt;br /&gt;I just changed something with no luck : i call&amp;nbsp;mqtt_sn_input in a loop just after the connexion, but it&amp;nbsp;never raise any events in the&amp;nbsp;&lt;span&gt;evt_cb function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to publish MQTT-SN message with Zephyr and Openthread</title><link>https://devzone.nordicsemi.com/thread/448535?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 13:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a3715c-0fe6-46a3-ad09-894101537386</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I know it is not the answer you want, but let us first take a step back:&lt;br /&gt;Why have you chosen MQTT-SN instead of CoAP here?&lt;/p&gt;
&lt;p&gt;CoAP does not require anything extra on the OTBR, and we have more support for it.&lt;/p&gt;
&lt;p&gt;It is of course up to you, I just want to try to suggest the alternative I think is easier. Also, I am curios for use-cases where MQTT-SN is preferrable.&lt;/p&gt;
&lt;p&gt;For the MQTT-SN issue, I suggest you startby isolating the issue: Is it the nRF or the OTBR.&lt;br /&gt;Can you test this OTBR also, and see if the same issue is still there? &lt;a href="https://github.com/osaether/otbr-mqtt-sn"&gt;https://github.com/osaether/otbr-mqtt-sn&lt;/a&gt; &lt;br /&gt;If so, there is a higher chance that the issue is on the nRF somewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>