<?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 connection fails over NB-IoT using nRF9151 DK and Serial Modem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126917/mqtt-connection-fails-over-nb-iot-using-nrf9151-dk-and-serial-modem</link><description>Hello Nordic Support Team, I am experiencing an issue when using MQTT over an NB-IoT connection with the nRF9151 DK, and I would like to ask for clarification and guidance. Setup: - Hardware: nRF9151 DK - Zephyr version 3.2.1 - Firmware: Nordic Serial</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Feb 2026 15:31:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126917/mqtt-connection-fails-over-nb-iot-using-nrf9151-dk-and-serial-modem" /><item><title>RE: MQTT connection fails over NB-IoT using nRF9151 DK and Serial Modem</title><link>https://devzone.nordicsemi.com/thread/560934?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2026 15:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e5227e-e30c-4c65-b69e-7fc6fc7cbbf1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Federica,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="feda"]Thank you for your support.&lt;br /&gt;I was able to solve the problem by reviewing other tickets on this portal: I found that the device needed to be configured to use PCO instead of EPCO (which is the default option in the Serial Modem firmware). After setting the command AT%XEPCO=0, the MQTT connection was successfully established.[/quote]
&lt;p&gt;Glad to hear that you found the root cause of the issue.&lt;/p&gt;
[quote user="feda"]For this reason, I would appreciate receiving documentation or reference material regarding CoAP management via AT commands. Unlike MQTT, I didn&amp;#39;t find a dedicated section for CoAP in the Serial Modem AT command documentation.&lt;br /&gt;&lt;br /&gt;Any guidance or documentation you can share would be greatly appreciated.[/quote]
&lt;p&gt;Serial Modem does not expose a CoAP AT command set, unfortunately. Here is the overall socket commands that are covered:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/addon-serial_modem-latest/page/index.html"&gt;https://docs.nordicsemi.com/bundle/addon-serial_modem-latest/page/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Specific protocols, like lwm2m carrier library, are possible to enable, but these are higher level application specific functions.&lt;/p&gt;
&lt;p&gt;However, you can setup a generic udp (datagram) socket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An alternative is to use the coap client:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-3.2.2/page/nrf/samples/net/coap_client/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-3.2.2/page/nrf/samples/net/coap_client/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT connection fails over NB-IoT using nRF9151 DK and Serial Modem</title><link>https://devzone.nordicsemi.com/thread/560878?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2026 09:23:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf1cd1a-82f7-482e-a4fc-9f4548d47bd4</guid><dc:creator>feda</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;br /&gt;&lt;br /&gt;Thank you for your support.&lt;br /&gt;I was able to solve the problem by reviewing other tickets on this portal: I found that the device needed to be configured to use PCO instead of EPCO (which is the default option in the Serial Modem firmware). After setting the command AT%XEPCO=0, the MQTT connection was successfully established.&lt;br /&gt;&lt;br /&gt;At the moment, I have not experienced any timeout-related issues. However, since the system will need to be replicated on a larger scale, it would be better to prevent future issues.&lt;br /&gt;&lt;br /&gt;For this reason, I would appreciate receiving documentation or reference material regarding CoAP management via AT commands. Unlike MQTT, I didn&amp;#39;t find a dedicated section for CoAP in the Serial Modem AT command documentation.&lt;br /&gt;&lt;br /&gt;Any guidance or documentation you can share would be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Federica&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT connection fails over NB-IoT using nRF9151 DK and Serial Modem</title><link>https://devzone.nordicsemi.com/thread/560650?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2026 12:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5460bb3f-1566-4613-96a4-8bc29b26c810</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Federica,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you share a log of what occurs (and possibly a modem trace)?&lt;/p&gt;
&lt;p&gt;If the RSRP (signal strength) is low, it can be problematic as you will get a heavily reduced overall throughput if retransmissions occur on-air (CE level increases).&lt;/p&gt;
[quote user=""]Are there known limitations or specific requirements when using MQTT over NB-IoT with the Serial Modem on nRF9151?[/quote]
&lt;p&gt;TCP based communication tend to suffer in terms of timeout, due to the lower overall throughput on NB-IoT as compared to LTE M1.&lt;/p&gt;
&lt;p&gt;Other than that, there is no technical reason why it should not work; but you will see a difference in terms of robustness, especially when coverage is bad.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>