<?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>Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113880/need-help-connecting-to-mqtt-using-nrf9160</link><description>I can&amp;#39;t figure out what I&amp;#39;m missing. I&amp;#39;m not able to send messages using MQTT. 
 Here&amp;#39;s the link to my code: https://github.com/pranav-ether/test/tree/main/mqtt_pub 
 This are the logs:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Oct 2024 12:35:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113880/need-help-connecting-to-mqtt-using-nrf9160" /><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/507747?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 12:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b476d7-3797-4901-b877-12c22e2e8541</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;Yeah, thanks for the help MQTT works on the DK. I&amp;#39;ll&amp;nbsp;talk to the design team and figure out the custom board issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/507338?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2024 11:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82dcda20-fc34-4ea5-9277-76aade50b1ac</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Ok, I feel we get stuck with firmware debug. There is defiinetly some wrong on you custom HW if eveything works with DK expect your customer HW.&lt;/p&gt;
&lt;p&gt;I saw another ticket shows your HW deisgin is OK, but have you done any antenna tuning job either yourself or by your antenna provider?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We also provide free antenna tuning service for our&amp;nbsp;chips, just create a new ticket and follow guide to send us your custom HW if you are not sure about your antenna performace.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/507107?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2024 10:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca5796b-366d-48d7-8dc5-b26e78aebb64</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;When using RTT shell this is all I get, after this it crashes. When I hit&amp;nbsp;the Enter key after the last&amp;nbsp;command, the shell closes automatically. I have tried this multiple times, always crashes after this point. This might have caused RTT logs to fail.&amp;nbsp;How to fix that?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rtt:~$ at AT+CGMR
mfw_nrf9160_1.3.6
OK

rtt:~$ Modem domain event: Search done
Network registration status: unknown
LTE cell changed: ID: -1, Tracking area: -1

rtt:~$ 
rtt:~$ at AT+CFUN=4
Network registration status: not registered
OK

rtt:~$ at AT%XSYSTEMMODE=0,1,0,0
OK

rtt:~$ at AT+CFUN=1
OK

rtt:~$ at AT+CGDCONT?
OK

rtt:~$ at AT%CONEVAL
%CONEVAL: 1
OK

rtt:~$ Network registration status: searching
Currently active system mode: NB-IoT
LTE cell changed: ID: 279440, Tracking area: 49173&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/506119?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 12:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78890c48-e80f-4933-ae05-4468aac92ef8</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;It&amp;nbsp;should look like this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mosh:~$ &amp;gt; at AT+CFUN=1
at AT+CFUN=1
OK

PDN event: PDP context 0 activated
PDN event: PDP context 0 IPv6 up
mosh:~$ &amp;gt; at AT%CONEVAL
at AT%CONEVAL
%CONEVAL: 0,1,9,73,15,34,&amp;quot;03238D05&amp;quot;,&amp;quot;24201&amp;quot;,457,6400,20,0,0,-13,1,1,88
OK

mosh:~$ &amp;gt; at AT%CONEVAL
at AT%CONEVAL
%CONEVAL: 0,1,7,73,11,26,&amp;quot;03238D05&amp;quot;,&amp;quot;24201&amp;quot;,457,6400,20,0,0,-13,1,1,88
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/506079?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 11:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:860568a9-76f3-453e-8ecc-93e0ee6966e8</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;Trace was recorded for about 10mins, but looks like there was only activity for 34sec.&lt;/p&gt;
&lt;p&gt;I just tried running&amp;nbsp;&lt;span&gt;AT%CONEVAL just after boot (before connection) on my DK and this is what I got:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;rtt:~$ at AT%CONEVAL
%CONEVAL: 1
OK&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this expected?&lt;br /&gt;I&amp;#39;ll try with my custom board a bit later.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/506032?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 08:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45dbc626-9f93-4024-851c-709e55de21d3</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Pranav,&lt;/p&gt;
&lt;p&gt;Thanks for sharing.&amp;nbsp;I mange to open it and see the same information, but unfortunately, the modem trace only&amp;nbsp;show&amp;nbsp;34-sconds&amp;nbsp;communication and device stop at trying to attched to NB netrowk.&lt;/p&gt;
&lt;p&gt;Have you try to wait a bit longer so there might be some reject resone give by basestation side? Or device keeping stucking like this?&lt;/p&gt;
&lt;p&gt;Running&amp;nbsp;&lt;span&gt;AT%CONEVAL before CFUN=1 can provide more informaiton about sournding network.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/coneval_set.html"&gt;docs.nordicsemi.com/.../coneval_set.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/505650?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2024 06:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff81149-8efe-49c2-9133-6114cc1038fe</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;Custom Board uses 1.3.5 afaik. It&amp;#39;s opening on my system. On the Cellular Monitor app, I don&amp;#39;t know why the AT Commands are missing on when I select 1.3.5. When I select 1.3.6 AT commands are shown.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1728540094591v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/505614?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 15:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbbaf5d-5a5f-4c05-9cbf-4b35c0f02056</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Pranav,&lt;/p&gt;
&lt;p&gt;Do you convert them to show on Wireshark with Cellular Monitor succesfully?&lt;/p&gt;
&lt;p&gt;I can successfully convert nRF9160DK modem trace with MFW1.3.5(after chekcing you another ticket), but not your custom board recording, do you know which MFW version it uses?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/505515?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 10:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95083fa2-e3cd-4392-9815-ff9519b4684f</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;Thanks, I was able to get the log file. I have attached&amp;nbsp;log trace files for DK &amp;amp; custom board. The DK connects to the network and sends messages through MQTT. Custom Board did not send messages, I stopped the trace collection after about 10mins.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF9160DK_5F00_mqtt_5F00_pub_5F00_Trace_5F00_09102024_2D00_135810.log"&gt;devzone.nordicsemi.com/.../nRF9160DK_5F00_mqtt_5F00_pub_5F00_Trace_5F00_09102024_2D00_135810.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Custom_5F00_Board_5F00_mqtt_5F00_pub_5F00_Trace_5F00_09102024_2D00_154345.log"&gt;devzone.nordicsemi.com/.../Custom_5F00_Board_5F00_mqtt_5F00_pub_5F00_Trace_5F00_09102024_2D00_154345.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/505357?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 13:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe2d150a-05a2-4502-94aa-f273f601c7bd</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Pranav,&lt;/p&gt;
&lt;p&gt;The link you point to using a quite old mfw, so this might be the reason.&lt;/p&gt;
&lt;p&gt;Could you refer to the link I point to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html?&lt;/a&gt;&amp;nbsp;Assuming your firmware still based on NCS 2.6.1 and using latest MFW 1.3.6.&lt;/p&gt;
&lt;p&gt;I did a test with NCS 2.6.1+ MFW 1.3.6+ nrf/samples/net/mqtt smaple on nRF9160DK, and I can collect modem trace RTT log and open with Cellular Monitor as epxected. Following overlay is what I used for building.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF_MODEM_LIB_TRACE&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USE_SEGGER_RTT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_RTT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/505317?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 11:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfdaa94-6828-48d1-b21e-5a2605f6901e</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;I was not able to get the&amp;nbsp;modem trace over RTT. I read another post about it. I have followed the steps but it mentions I have to record the .log file from JLinkRTTViewer. I wasn&amp;#39;t able to get that part. I use Linux. Is there some&amp;nbsp;software I have to install?&lt;br /&gt;I followed this post:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102145/modem-trace-for-modem-fw-1-2-3-with-cellular-monitor/447195"&gt;devzone.nordicsemi.com/.../447195&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/505312?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 11:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:918683d4-a1d2-4c6d-9a25-1fd2d7268bbb</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Do you manage to get modem trace from nRF9160DK? then how about your custom devcie?&lt;/p&gt;
&lt;p&gt;I see another HW reveiw ticket is undergoing. Let me know when you get HW ready and able to provide more debugging info.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/504934?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2024 07:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0326d1a-61c9-444a-b266-25954e035383</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;I was able to get MQTT working with Jio in India. But the same firmware isn&amp;#39;t working in South Africa with Vodacom NB-IoT. Here&amp;#39;s the log and trace. I want to get the firmware working with the DK. I have opened another issue for my custom board connection problems.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_10_2D00_04T06_2D00_22_2D00_12.925Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_10_2D00_04T06_2D00_22_2D00_12.925Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK 3758bcbfa5cd ***
[00:00:00.496,185] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace thread ready
[00:00:00.503,814] &amp;lt;inf&amp;gt; nrf_modem_lib_trace: Trace level override: 2
[00:00:00.508,941] &amp;lt;inf&amp;gt; LTE: Connecting to LTE network
[00:00:00.511,077] &amp;lt;inf&amp;gt; LTE: lte_lc_system_mode_set: 0
[00:00:00.537,811] &amp;lt;inf&amp;gt; LTE: lte_lc_connect_async: 0
[00:01:54.258,575] &amp;lt;inf&amp;gt; LTE: Network registration status: Connected - home network
[00:01:54.258,697] &amp;lt;inf&amp;gt; LTE: Connected to LTE network
[00:01:54.258,728] &amp;lt;inf&amp;gt; LTE: ====== Cell Network Info ======
[00:01:54.260,284] &amp;lt;inf&amp;gt; LTE: Signal strength: 53
[00:01:54.261,047] &amp;lt;inf&amp;gt; LTE: Current LTE band: 8
[00:01:54.261,749] &amp;lt;inf&amp;gt; LTE: Supported LTE bands: (1,2,3,4,5,8,12,13,17,19,20,25,26,28,66)
[00:01:54.262,542] &amp;lt;inf&amp;gt; LTE: Tracking area code: 8CA1
[00:01:54.263,214] &amp;lt;inf&amp;gt; LTE: Current mode: 0
[00:01:54.263,977] &amp;lt;inf&amp;gt; LTE: Current operator name: 65501
[00:01:54.264,923] &amp;lt;inf&amp;gt; LTE: Cell ID of the device: 0E241F17
[00:01:54.266,082] &amp;lt;inf&amp;gt; LTE: IP address of the device: 100.xx.xx.xxx
[00:01:54.266,632] &amp;lt;inf&amp;gt; LTE: Modem firmware version: mfw_nrf9160_1.3.5
[00:01:54.267,364] &amp;lt;inf&amp;gt; LTE: LTE-M support mode: 0
[00:01:54.268,005] &amp;lt;inf&amp;gt; LTE: NB-IoT support mode: 1
[00:01:54.268,676] &amp;lt;inf&amp;gt; LTE: GPS support mode: 0
[00:01:54.269,256] &amp;lt;inf&amp;gt; LTE: Mobile network time and date:
[00:01:54.269,256] &amp;lt;inf&amp;gt; LTE: ===============================
[00:01:54.269,714] &amp;lt;inf&amp;gt; MQTT: Connection to broker using mqtt_init
[00:02:06.240,570] &amp;lt;inf&amp;gt; MQTT: Successfully connected to MQTT broker
[00:03:06.240,753] &amp;lt;err&amp;gt; mqtt_helper: Cloud MQTT keepalive ping failed: -128&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/504549?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 13:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:105c0f52-ff94-4e51-b0e1-7628ab790635</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Ok, could you test with an official sample like&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/serial_lte_modem/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/applications/serial_lte_modem/README.html?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can test on nRF9160DK board first if you have one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/504503?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 10:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ab387c7-7d62-422b-bd6a-b3be30007c4b</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;I added the 2 configs to prj.conf file but I can&amp;#39;t find the .log trace file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/504494?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2024 09:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca066217-ee8c-4352-b281-9ec3ab611a9d</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;You can refer to the following document to enable Modem trace through RTT&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#modem_tracing_with_rtt"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/libraries/modem/nrf_modem_lib/nrf_modem_lib_trace.html#modem_tracing_with_rtt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/504395?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 14:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef44cf4-5341-4be7-bfc8-5b61bcc5fb4e</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;How do I get modem trace through RTT? My custom board does not have free UART ports for logging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/504331?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 11:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0ef88b-3154-4b24-ab70-d278cef5d8a0</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;1) For the original sample&amp;nbsp; &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/net/mqtt/doc/description.html"&gt;docs.nordicsemi.com/.../description.html&lt;/a&gt;, if you want to use&amp;nbsp;&lt;span&gt;username &amp;amp; password to connect with MQTT broker, y&lt;/span&gt;ou need to add&amp;nbsp;&lt;span&gt;username &amp;amp; password parameters&amp;nbsp;here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/2bae3437305bc8f5eb29260ca545fb8033b2b80b/samples/net/mqtt/src/modules/transport/transport.c#L187"&gt;https://github.com/nrfconnect/sdk-nrf/blob/2bae3437305bc8f5eb29260ca545fb8033b2b80b/samples/net/mqtt/src/modules/transport/transport.c#L187&lt;/a&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_helper_conn_params&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; /* The hostname must be null-terminated. */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_helper_buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;hostname&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_helper_buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device_id&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_helper_buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;user_name&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_helper_buf&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;password&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;2) For your custom board connection issue, can you attach the log and modem trace?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/503729?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 10:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce4a54cf-81d1-4eb8-a701-bf42f5a89a55</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;I was able to get Jio SIMs and I&amp;#39;m able to connect to the network. But my MQTT program still doesn&amp;#39;t work. It works only for brokers without username &amp;amp; password.&amp;nbsp;The broker I want to connect to has username, password &amp;amp;&amp;nbsp;port (My program is in the body of this post).&lt;/p&gt;
&lt;p&gt;Also the network is getting connected on the nRF9160DK but not my custom board. What could be the reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/502948?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 13:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03f98489-f8ae-4898-8a99-e19d7277a713</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Yes, only JIO network is found by your device according to AT%COPS=? feedback.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;td&gt;MCC&lt;/td&gt;
&lt;td&gt;MNC&lt;/td&gt;
&lt;td&gt;PLMN&lt;/td&gt;
&lt;td&gt;Region&lt;/td&gt;
&lt;td&gt;Country&lt;/td&gt;
&lt;td&gt;ISO&lt;/td&gt;
&lt;td&gt;Operator&lt;/td&gt;
&lt;td&gt;Brand&lt;/td&gt;
&lt;td&gt;TADIG&lt;/td&gt;
&lt;td&gt;Bands&lt;/td&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;405&lt;/td&gt;
&lt;td&gt;861&lt;/td&gt;
&lt;td&gt;405861&lt;/td&gt;
&lt;td&gt;Asia and the Middle East&lt;/td&gt;
&lt;td&gt;India&lt;/td&gt;
&lt;td&gt;IN&lt;/td&gt;
&lt;td&gt;Karnataka&lt;/td&gt;
&lt;td&gt;Jio&lt;/td&gt;
&lt;td&gt;INDJ9&lt;/td&gt;
&lt;td&gt;LTE 850 / LTE 1800 / TD-LTE 2300&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/502921?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 11:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64990657-1035-4e16-8b36-7c72b9b4bbe8</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;Airtel says&amp;nbsp;that the SIMs they&amp;#39;ve sent are&amp;nbsp;NB-IoT SIMs.&lt;br /&gt;But this confirms that there is no Airtel signal right? Is there any other ways of pin pointing the issue?&lt;br /&gt;I&amp;#39;m not able to fine LTE Link Monitor app on nRF Connect. Any idea why? I&amp;#39;m using Linux and the latest appimage.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;mosh:~$ &amp;gt; at AT%COPS=?
at AT%COPS=?
%COPS: (1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;405861&amp;quot;,9)
OK

Network registration status: searching
LTE cell changed: ID: -1, Tracking area: -1
Currently active system mode: NB-IoT
LTE cell changed: ID: 2894737, Tracking area: 49173
mosh:~$ &amp;gt; at AT%COPS=?
at AT%COPS=?
Currently active system mode: None
%COPS: (1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;405861&amp;quot;,9)
OK

LTE cell changed: ID: -1, Tracking area: -1
RRC mode: Connected
Currently active system mode: NB-IoT
LTE cell changed: ID: 6032786, Tracking area: 49173
RRC mode: Idle
Modem domain event: Search done
mosh:~$ &amp;gt; at AT%COPS=?
at AT%COPS=?
Currently active system mode: None
%COPS: (3,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;405861&amp;quot;,9)
OK

LTE cell changed: ID: -1, Tracking area: -1&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/502598?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 11:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2cedfda-1d8a-4d76-9105-d763d174f5af</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105305/how-to-activate-the-nrf-cloud-using-airtel-m2m-sim-card"&gt;(+) How to Activate the nRF Cloud using Airtel M2M sim card? - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72592/steps-for-lte-registration/299987"&gt;(+) steps for lte registration. - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106500/verification-failed/459610"&gt;(+) Verification failed - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.gsma.com/solutions-and-impact/technologies/internet-of-things/deployment-map/"&gt;Mobile IoT Deployment Map | Internet of Things (gsma.com)&lt;/a&gt;&amp;nbsp;shows only JIO supports NB-IoT in India. Please have a try with JIO NB-IoT network.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/502455?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 09:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67564161-990a-478b-b035-727dd8385c6d</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to figure out why it&amp;#39;s not connecting to the network, the ISP says the SIMs are fine. When I try using Modem Shell to connect manually, I&amp;#39;m getting few errors. It would be great if you can help me connect to the network. Please&amp;nbsp;check if the way I&amp;#39;m adding APN details are correct. I have attached the trace file of the Modem&amp;nbsp;Shell, hope that helps.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;mosh:~$ &amp;gt; link connect --apn &amp;quot;airteliot.com&amp;quot; -f &amp;#39;ipv4v6&amp;#39; -A 0 -U &amp;quot;&amp;quot; -P &amp;quot;&amp;quot;&lt;br /&gt;link connect --apn &amp;quot;airteliot.com&amp;quot; -f &amp;#39;ipv4v6&amp;#39; -A 0 -U &amp;quot;&amp;quot; -P &amp;quot;&amp;quot;&lt;br /&gt;pdn_activate() failed, err -8 esm 0 &amp;lt;unknown&amp;gt;&lt;/p&gt;
&lt;p&gt;[00:01:03.817,352] &amp;lt;wrn&amp;gt; pdn: Failed to activate PDN for CID 1, err 65536&lt;br /&gt;mosh:~$ &amp;gt; link funmode -1&lt;br /&gt;link funmode -1&lt;br /&gt;Release 14 features enable AT-command error, type 1 err 0&lt;br /&gt;lte_lc_system_mode_set returned error -14&lt;br /&gt;Functional mode set successfully: normal&lt;br /&gt;[00:01:14.231,323] &amp;lt;err&amp;gt; lte_lc: Could not send AT command, error: 65536&lt;br /&gt;mosh:~$ &amp;gt; link sysmode -n --pref_nbiot&lt;br /&gt;link sysmode -n --pref_nbiot&lt;br /&gt;Cannot set system mode to modem: -14&lt;br /&gt;Requested mode couldn&amp;#39;t set to modem. Not in flighmode nor in pwroff?&lt;br /&gt;sysmode 2 saved successfully to settings&lt;br /&gt;LTE preference 2 saved successfully to settings&lt;br /&gt;[00:01:21.959,320] &amp;lt;err&amp;gt; lte_lc: Could not send AT command, error: 65536&lt;br /&gt;mosh:~$ &amp;gt; link connect --apn &amp;quot;airteliot.com&amp;quot; -f &amp;#39;ipv4v6&amp;#39; -A 0 -U &amp;quot;&amp;quot; -P &amp;quot;&amp;quot;&lt;br /&gt;link connect --apn &amp;quot;airteliot.com&amp;quot; -f &amp;#39;ipv4v6&amp;#39; -A 0 -U &amp;quot;&amp;quot; -P &amp;quot;&amp;quot;&lt;br /&gt;pdn_activate() failed, err -8 esm 0 &amp;lt;unknown&amp;gt;&lt;/p&gt;
&lt;p&gt;[00:01:27.975,372] &amp;lt;wrn&amp;gt; pdn: Failed to activate PDN for CID 1, err 65536&lt;br /&gt;Modem domain event: Search done&lt;br /&gt;Network registration status: searching&lt;br /&gt;LTE cell changed: ID: -1, Tracking area: -1&lt;br /&gt;mosh:~$ &amp;gt; link funmode --normal_no_rel14&lt;br /&gt;link funmode --normal_no_rel14&lt;br /&gt;Release 14 features disable AT-command error, type 1 err 0&lt;br /&gt;lte_lc_system_mode_set returned error -14&lt;br /&gt;Functional mode set successfully: normal&lt;br /&gt;[00:02:51.416,839] &amp;lt;err&amp;gt; lte_lc: Could not send AT command, error: 65536&lt;br /&gt;Network registration status: unknown&lt;br /&gt;Network registration status: searching&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_09_2D00_13T09_2D00_38_2D00_29.062Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_09_2D00_13T09_2D00_38_2D00_29.062Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/500978?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 12:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a0ae4f9-e0bf-46f9-8cc3-4e75101051c8</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;The firmware support both networks so it is not a problem.&amp;nbsp;Converting the modem trace to pcapng file with Cellular Monitor and open with Wireshark.&lt;/p&gt;
&lt;p&gt;I found the devic is rejected by the network with EMM cause 11.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cause #11 – PLMN not allowed&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This EMM cause is sent to the UE if it requests service, or if the network initiates a detach request, in a PLMN where the UE, by subscription or due to operator determined barring, is not allowed to operate.&lt;/p&gt;
&lt;p&gt;Please double check with your network operator if you have a&amp;nbsp;valid subscription, and you have correct PDN if it needs to be set.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/modemtracee.pcapng"&gt;devzone.nordicsemi.com/.../modemtracee.pcapng&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;img style="max-height:200px;max-width:460px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/920x400/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_09_2D00_03-at-14.38.41.png" /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help connecting to MQTT using nRF9160</title><link>https://devzone.nordicsemi.com/thread/500781?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 12:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd19cfc2-c47a-4a1b-b609-f88f66e93bf9</guid><dc:creator>pranav-ether</dc:creator><description>&lt;p&gt;Hi any update on this? I&amp;#39;ve not been able to get network connection. I&amp;#39;m using Airtel IoT SIM card&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>