<?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>Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111895/issue-getting-cellfund-mqtt-to-work-on-9160</link><description>I have a GSM application connecting to MQTT that worked previously refuse to work when I picked it up again to improve on it. 
 
 To make sure there isnt a problem in my firmware I&amp;#39;m trying to get the GSM fundamentals course to run as well but im still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2024 14:02:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111895/issue-getting-cellfund-mqtt-to-work-on-9160" /><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/494608?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 14:02:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f113235e-46e2-4f23-a0d8-505728ed6524</guid><dc:creator>DawidRicsys</dc:creator><description>&lt;p&gt;Turns out the SIM card we used from our service provider allows for internet connectivity, but not for sending messages somehow. Works with another sim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/492613?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 07:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33a5ebff-458d-42be-82fc-7d4b2ac8e62f</guid><dc:creator>DawidRicsys</dc:creator><description>&lt;p&gt;Hi Michal have you made any progress looking into the trace? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/492003?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 08:44:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92dbdc08-823e-4abf-83df-9544e41d21fc</guid><dc:creator>DawidRicsys</dc:creator><description>&lt;p&gt;Hi Michal, Ive taken another look at the code, unfortunately I&amp;#39;m still stuck. &lt;/p&gt;
&lt;p&gt;Ive ruled out that it is my DK as Ive gotten another one to test my code on.&lt;/p&gt;
&lt;p&gt;Also I dont think there is an issue with my SIM card as Ive replaced that too with one that should work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The DK definitely connects to the network as I get events on my MQTT broker that the device connects but as mentioned earlier it seems that the &amp;#39;handshake&amp;#39; or whatever it is called does not occur.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Im honestly at a loss to what could be causing this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just as a note, confirm that the cellfund exercise works on a DK for you? Then I can pinpoint whether it is something Im doing wrong?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/491416?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 20:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef9a7237-36ea-4d41-8c3b-51a1ffd956d8</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Looks like the trace is correct. I will continue looking into it after the weekend.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/491229?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 07:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:599bdb0c-52fc-4b2d-864f-d6517d3c2a85</guid><dc:creator>DawidRicsys</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2024_2D00_06_2D00_28T07_2D00_43_2D00_50.689Z.mtrace"&gt;devzone.nordicsemi.com/.../trace_2D00_2024_2D00_06_2D00_28T07_2D00_43_2D00_50.689Z.mtrace&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Michal, thanks for the reply.&lt;/p&gt;
&lt;p&gt;Let me know if I captured the trace correctly?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On further inspection, I do not seem to establish the PDN connection, is that something I should look into?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/490945?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 17:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71dd2672-62c7-4508-8903-980ff5da9367</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;No worries. Thank you for the information.&lt;/p&gt;
&lt;p&gt;Could you upload a modem trace of the issue as well?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/490239?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2024 11:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6de5ddf6-159e-4ab2-8966-633879e25fcf</guid><dc:creator>DawidRicsys</dc:creator><description>&lt;p&gt;Hi Michal, Apologies I was on leave last week. &lt;/p&gt;
&lt;p&gt;Ive already tried different brokers and all have the same error and behaviour.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On a personal broker Ive found that the connection does take place, the broker registers that a device with the correct IP address connects, but then the client seems to hang as a client connection is never started as shown in my first post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/489372?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 17:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0dc50f0-4396-4dc2-b356-c29c1eb79634</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;What if you try another broker?&lt;/p&gt;
&lt;p&gt;For example try reverting that commit:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicDeveloperAcademy/cell-fund/commit/2cbecebe2d9019f51c8122459a87fb08076c39e6"&gt;https://github.com/NordicDeveloperAcademy/cell-fund/commit/2cbecebe2d9019f51c8122459a87fb08076c39e6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/488187?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 19:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e415b525-62ec-4142-abc2-7a39c349c16a</guid><dc:creator>DawidRicsys</dc:creator><description>&lt;p&gt;Good evening Michal. Those were the logging options I already added to the prj.config.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My only difference from the normal ./v2.4.0-v2.x.x/lesson4/cellfund_less4_exer1_solution example is the logging that you suggested.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I get a similar capture as previously posted in this thread.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.5.0 ***
[00:00:00.394,866] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Initializing modem library
[00:00:00.644,592] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Connecting to LTE network
[00:00:02.650,177] &amp;lt;inf&amp;gt; Lesson4_Exercise1: RRC mode: Connected
[00:00:03.742,706] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Network registration status: Connected - home network
[00:00:03.742,828] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Connected to LTE network
[00:00:40.670,013] &amp;lt;inf&amp;gt; Lesson4_Exercise1: IPv4 Address found 20.82.16.164
[00:00:40.670,410] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Connection to broker using mqtt_connect
[00:00:40.670,715] &amp;lt;dbg&amp;gt; net_mqtt_sock_tcp: mqtt_client_tcp_connect: (0x2000ced8): Created socket 0
[00:00:40.989,868] &amp;lt;dbg&amp;gt; net_mqtt_sock_tcp: mqtt_client_tcp_connect: (0x2000ced8): Connect completed
[00:00:40.989,929] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Protocol Description.
                                       4d 51 54 54                                      |MQTT
[00:00:40.989,929] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (0x2000ced8): &amp;gt;&amp;gt; str_size:00000006 cur:0x2000d937, end:0x2000d9b2
[00:00:40.989,959] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (0x2000ced8): &amp;gt;&amp;gt; val:0004 cur:0x2000d937, end:0x2000d9b2
[00:00:40.989,959] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: (0x2000ced8): Encoding Protocol Version 04.
[00:00:40.989,990] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (0x2000ced8): &amp;gt;&amp;gt; val:04 cur:0x2000d93d, end:0x2000d9b2
[00:00:40.989,990] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (0x2000ced8): &amp;gt;&amp;gt; val:00 cur:0x2000d93e, end:0x2000d9b2
[00:00:40.990,020] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: (0x2000ced8): Encoding Keep Alive Time 003c.
[00:00:40.990,051] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (0x2000ced8): &amp;gt;&amp;gt; val:003c cur:0x2000d93f, end:0x2000d9b2
[00:00:40.990,081] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Client Id.
                                       6e 72 66 2d 33 35 31 35  31 36 31 37 32 36 38 37 |nrf-3515 16172687
                                       37 38 32                                         |782
[00:00:40.990,081] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (0x2000ced8): &amp;gt;&amp;gt; str_size:00000015 cur:0x2000d941, end:0x2000d9b2
[00:00:40.990,112] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (0x2000ced8): &amp;gt;&amp;gt; val:0013 cur:0x2000d941, end:0x2000d9b2
[00:00:40.990,112] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (0x2000ced8): &amp;lt;&amp;lt; msg type:0x10 length:0x0000001f
[00:00:40.990,142] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (0x2000ced8): &amp;gt;&amp;gt; length:0x0000001f cur:(nil), end:(nil)
[00:00:40.990,142] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (0x2000ced8): Fixed header length = 02
[00:00:40.990,173] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (0x2000ced8): &amp;gt;&amp;gt; val:10 cur:0x2000d935, end:0x2000d9b2
[00:00:40.990,173] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (0x2000ced8): &amp;gt;&amp;gt; length:0x0000001f cur:0x2000d936, end:0x2000d9b2
[00:00:40.990,661] &amp;lt;inf&amp;gt; net_mqtt: Connect completed
[00:01:22.313,842] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Publishing: Hi from the nRF91 Series device
[00:01:22.313,873] &amp;lt;inf&amp;gt; Lesson4_Exercise1: to topic: devacademy/publish/topic len: 24
[00:01:22.313,903] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (0x2000cf80): [CID 0x2000d030]:[State 0x02]: &amp;gt;&amp;gt; Topic size 0x00000018, Data size 0x0000001f
[00:01:22.313,934] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (0x2000cf80): [CID 0x2000d030]:[State 0x02]: &amp;lt;&amp;lt; result 0xffffff80
[00:01:22.313,934] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Failed to send message, -128
[00:01:31.950,714] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Publishing: Hi from the nRF91 Series device
[00:01:31.950,744] &amp;lt;inf&amp;gt; Lesson4_Exercise1: to topic: devacademy/publish/topic len: 24
[00:01:31.950,775] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (0x2000cf80): [CID 0x2000d030]:[State 0x02]: &amp;gt;&amp;gt; Topic size 0x00000018, Data size 0x0000001f
[00:01:31.950,805] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (0x2000cf80): [CID 0x2000d030]:[State 0x02]: &amp;lt;&amp;lt; result 0xffffff80
[00:01:31.950,805] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Failed to send message, -128
[00:01:40.990,814] &amp;lt;err&amp;gt; Lesson4_Exercise1: Error in mqtt_live: -128
[00:01:40.990,814] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Disconnecting MQTT client
[00:01:40.990,844] &amp;lt;err&amp;gt; Lesson4_Exercise1: Could not disconnect MQTT client: -128
[00:01:40.990,875] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Reconnecting in 60 seconds...
[00:02:40.990,936] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Connection to broker using mqtt_connect
[00:02:40.991,241] &amp;lt;dbg&amp;gt; net_mqtt_sock_tcp: mqtt_client_tcp_connect: (0x2000ced8): Created socket 1
[00:02:42.955,718] &amp;lt;dbg&amp;gt; net_mqtt_sock_tcp: mqtt_client_tcp_connect: (0x2000ced8): Connect completed
[00:02:42.955,749] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Protocol Description.
                                       4d 51 54 54                                      |MQTT
[00:02:42.955,780] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (0x2000ced8): &amp;gt;&amp;gt; str_size:00000006 cur:0x2000d937, end:0x2000d9b2
[00:02:42.955,780] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (0x2000ced8): &amp;gt;&amp;gt; val:0004 cur:0x2000d937, end:0x2000d9b2
[00:02:42.955,810] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: (0x2000ced8): Encoding Protocol Version 04.
[00:02:42.955,810] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (0x2000ced8): &amp;gt;&amp;gt; val:04 cur:0x2000d93d, end:0x2000d9b2
[00:02:42.955,841] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (0x2000ced8): &amp;gt;&amp;gt; val:00 cur:0x2000d93e, end:0x2000d9b2
[00:02:42.955,841] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: (0x2000ced8): Encoding Keep Alive Time 003c.
[00:02:42.955,871] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (0x2000ced8): &amp;gt;&amp;gt; val:003c cur:0x2000d93f, end:0x2000d9b2
[00:02:42.955,902] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Client Id.
                                       6e 72 66 2d 33 35 31 35  31 36 31 37 32 36 38 37 |nrf-3515 16172687
                                       37 38 32                                         |782
[00:02:42.955,932] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (0x2000ced8): &amp;gt;&amp;gt; str_size:00000015 cur:0x2000d941, end:0x2000d9b2
[00:02:42.955,932] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (0x2000ced8): &amp;gt;&amp;gt; val:0013 cur:0x2000d941, end:0x2000d9b2
[00:02:42.955,963] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (0x2000ced8): &amp;lt;&amp;lt; msg type:0x10 length:0x0000001f
[00:02:42.955,963] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (0x2000ced8): &amp;gt;&amp;gt; length:0x0000001f cur:(nil), end:(nil)
[00:02:42.955,993] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (0x2000ced8): Fixed header length = 02
[00:02:42.955,993] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (0x2000ced8): &amp;gt;&amp;gt; val:10 cur:0x2000d935, end:0x2000d9b2
[00:02:42.956,024] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (0x2000ced8): &amp;gt;&amp;gt; length:0x0000001f cur:0x2000d936, end:0x2000d9b2
[00:02:42.956,481] &amp;lt;inf&amp;gt; net_mqtt: Connect completed
[00:03:42.956,604] &amp;lt;err&amp;gt; Lesson4_Exercise1: Error in mqtt_live: -128
[00:03:42.956,604] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Disconnecting MQTT client
[00:03:42.956,634] &amp;lt;err&amp;gt; Lesson4_Exercise1: Could not disconnect MQTT client: -128
[00:03:42.956,665] &amp;lt;inf&amp;gt; Lesson4_Exercise1: Reconnecting in 60 seconds...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Section starting at 1:40.990 to 02:42.956,481 repeats indefinitely leading me to suspect the mqtt_evt_handler isnt being called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/488183?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 19:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae1da93-19bf-471e-93fe-100a73165570</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;You could try to add the following configs to maybe get more information:&lt;/p&gt;
&lt;p&gt;CONFIG_NET_LOG=y&lt;br /&gt;CONFIG_MQTT_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue getting cellfund MQTT to work on 9160</title><link>https://devzone.nordicsemi.com/thread/487945?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 14:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b82623-d1a6-48c2-a8ea-1b620378559b</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will look more into it after the weekend.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>