<?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>Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59616/multiple-connect-attempts-hangs-on-connect-with-aws_iot-cloud-backend</link><description>I&amp;#39;m using v1.2.0 for the nrf project and I am fairly confident I am using modem firmware 1.1.1 (though I don&amp;#39;t know how to verify that). 
 I&amp;#39;m basing my project on &amp;quot;cloud_client&amp;quot; example using the aws_iot backend, and have this function setup: 
 
 Running</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Apr 2020 17:16:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59616/multiple-connect-attempts-hangs-on-connect-with-aws_iot-cloud-backend" /><item><title>RE: Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/thread/243455?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 17:16:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50795ffd-91d4-48b7-ad36-5d99fc99ad1c</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;That did it!&amp;nbsp; Any idea when 0.6.2 will get into a numbered nrf release (like 1.2.1)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/thread/243374?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 11:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06c3cc23-99b4-43f0-b865-06d8df936b97</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I think this is a bug associated with the bsdlib version 0.6.1. If you update NCS this should be fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/thread/243046?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 20:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69b1ef45-9ce3-48d4-b9bf-b648be869961</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;I&amp;#39;ve done this and verified I am on 1.1.1&lt;/p&gt;
&lt;p&gt;AT%SHORTSWVER&lt;br /&gt;%SHORTSWVER: nrf9160_1.1.1&lt;br /&gt;OK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/thread/243045?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 20:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec0ed21c-6206-4844-a39b-ddb886737991</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;It&amp;#39;s kicked off by a button press, so more or less immediately&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching a log of the run with these logs enabled:&lt;/p&gt;
&lt;p&gt;CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=y&lt;br /&gt;CONFIG_AWS_IOT_LOG_LEVEL_DBG=y&lt;br /&gt;CONFIG_NET_LOG=y&lt;br /&gt;CONFIG_MQTT_LOG_LEVEL_DBG=y&lt;/p&gt;
&lt;p&gt;The first run of the function starts at [00:02:09.334,716] and ends at [00:02:27.656,951] and the second run starts at [00:02:35.130,950] and hangs at the connect&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.1.99-ncs1  ***


[00:00:00.192,993] &amp;lt;dbg&amp;gt; ss_certs.ss_certs_check_type: Keys exist 0 already!
[00:00:00.195,098] &amp;lt;dbg&amp;gt; ss_certs.ss_certs_check_type: Keys exist 1 already!
[00:00:00.197,204] &amp;lt;dbg&amp;gt; ss_certs.ss_certs_check_type: Keys exist 2 already!
[00:00:00.197,357] &amp;lt;dbg&amp;gt; main.main: Init Success
[00:00:00.197,418] &amp;lt;dbg&amp;gt; ss_lte.ss_lte_connection_work: Running init work
[00:00:00.199,707] &amp;lt;dbg&amp;gt; ss_lte.ss_lte_connection_work: Init work return 0
[00:00:00.199,737] &amp;lt;dbg&amp;gt; main.lte_connection_cb: Init Success!
[00:00:04.997,161] &amp;lt;dbg&amp;gt; ss_lte.ss_lte_connection_work: Running connect work
[00:00:04.997,161] &amp;lt;dbg&amp;gt; main.lte_connection_cb: Connecting!
[00:00:04.997,253] &amp;lt;dbg&amp;gt; lte_lc.w_lte_lc_connect: Network mode: AT%XSYSTEMMODE=1,0,0,0
[00:01:36.097,412] &amp;lt;dbg&amp;gt; lte_lc.parse_nw_reg_status: Network registration status: 2
[00:01:42.088,378] &amp;lt;dbg&amp;gt; lte_lc.parse_nw_reg_status: Network registration status: 5
[00:01:42.088,562] &amp;lt;dbg&amp;gt; ss_lte.ss_lte_connection_work: Connect request return 0
[00:01:42.088,562] &amp;lt;dbg&amp;gt; ss_lte.ss_lte_connection_work: Requesting PSM
[00:01:42.089,813] &amp;lt;dbg&amp;gt; ss_lte.ss_lte_connection_work: PSM request ret 0
[00:01:42.089,813] &amp;lt;dbg&amp;gt; main.lte_connection_cb: LTE Connected!
[00:02:09.334,716] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: AWS IoT Work!
[00:02:10.252,380] &amp;lt;dbg&amp;gt; aws_iot.broker_init: IPv4 Address found 54.149.99.172
[00:02:10.252,746] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20020620): Created socket 2
[00:02:15.738,250] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20020620): Connect completed
[00:02:15.738,281] &amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20020620): Encoding Protocol Description. Str:MQTT%s: (%p): &amp;lt;&amp;lt; msg type:0x%02x length:0x%08x Size:00000004.
[00:02:15.738,311] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_utf8_str: (0x20020620): &amp;gt;&amp;gt; str_size:00000006 cur:0x200222e9, end:0x200223e4
[00:02:15.738,311] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20020620): &amp;gt;&amp;gt; val:0004 cur:0x200222e9, end:0x200223e4
[00:02:15.738,311] &amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20020620): Encoding Protocol Version 04.
[00:02:15.738,342] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20020620): &amp;gt;&amp;gt; val:04 cur:0x200222ef, end:0x200223e4
[00:02:15.738,342] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20020620): &amp;gt;&amp;gt; val:00 cur:0x200222f0, end:0x200223e4
[00:02:15.738,342] &amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20020620): Encoding Keep Alive Time 003c.
[00:02:15.738,372] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20020620): &amp;gt;&amp;gt; val:003c cur:0x200222f1, end:0x200223e4
[00:02:15.738,372] &amp;lt;dbg&amp;gt; net_mqtt_enc.connect_request_encode: (0x20020620): Encoding Client Id. Str:ss-first-test Size:0000000d.
[00:02:15.738,403] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_utf8_str: (0x20020620): &amp;gt;&amp;gt; str_size:0000000f cur:0x200222f3, end:0x200223e4
[00:02:15.738,403] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20020620): &amp;gt;&amp;gt; val:000d cur:0x200222f3, end:0x200223e4
[00:02:15.738,433] &amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20020620): &amp;lt;&amp;lt; msg type:0x10 length:0x00000019
[00:02:15.738,433] &amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20020620): &amp;gt;&amp;gt; length:0x00000019 cur:0x00000000, end:0x00000000
[00:02:15.738,433] &amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20020620): Fixed header length = 02
[00:02:15.738,464] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20020620): &amp;gt;&amp;gt; val:10 cur:0x200222e7, end:0x200223e4
[00:02:15.738,464] &amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20020620): &amp;gt;&amp;gt; length:0x00000019 cur:0x200222e8, end:0x200223e4
[00:02:15.739,562] &amp;lt;dbg&amp;gt; net_mqtt.client_connect: (0x20020620): Connect completed
[00:02:15.739,593] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: Connect success!
--- 7 messages dropped ---
[00:02:16.368,774] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20020620): &amp;lt;&amp;lt; val:00
[00:02:16.368,774] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20020620): &amp;gt;&amp;gt; cur:0x200221e7, end:0x200221e8
--- 3 messages dropped ---
[00:02:16.368,774] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20020620): &amp;lt;&amp;lt; val:00
[00:02:16.368,804] &amp;lt;dbg&amp;gt; net_mqtt_dec.connect_ack_decode: (0x20020620): [CID 0x20021ff4]: session_present_flag: 0
[00:02:16.368,835] &amp;lt;dbg&amp;gt; net_mqtt_rx.mqtt_handle_packet: (0x20020620): [CID 0x20021ff4]: return_code: 0
[00:02:16.368,865] &amp;lt;dbg&amp;gt; aws_iot.mqtt_evt_handler: MQTT client connected!
[00:02:16.368,865] &amp;lt;dbg&amp;gt; ss_aws.cloud_evt_handler: CLOUD_EVT_CONNECTED
[00:02:16.368,865] &amp;lt;dbg&amp;gt; ss_aws.cloud_evt_handler: CLOUD_EVT_READY
[00:02:16.368,896] &amp;lt;dbg&amp;gt; aws_iot.aws_iot_send: Publishing to topic: ss-test-topic
[00:02:16.368,896] &amp;lt;dbg&amp;gt; net_mqtt.mqtt_publish: (0x20020620): [CID 0x20021ff4]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x0000000d, Data size 0x0000001d
[00:02:16.368,927] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_utf8_str: (0x20020620): &amp;gt;&amp;gt; str_size:0000000f cur:0x200222e9, end:0x200223e4
[00:02:16.368,927] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint16: (0x20020620): &amp;gt;&amp;gt; val:000d cur:0x200222e9, end:0x200223e4
[00:02:16.368,988] &amp;lt;dbg&amp;gt; net_mqtt_enc.mqtt_encode_fixed_header: (0x20020620): Fixed header length = 02
[00:02:16.369,018] &amp;lt;dbg&amp;gt; net_mqtt_enc.pack_uint8: (0x20020620): &amp;gt;&amp;gt; val:32 cur:0x200222e7, end:0x200223e4
[00:02:16.369,049] &amp;lt;dbg&amp;gt; net_mqtt_enc.packet_length_encode: (0x20020620): &amp;gt;&amp;gt; length:0x0000002e cur:0x200222e8, end:0x200223e4
[00:02:16.369,079] &amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20020620): [0x20021ff4]: Transport writing 19 bytes.
[00:02:16.369,873] &amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20020620): [0x20021ff4]: Transport write complete.
[00:02:16.369,903] &amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20020620): [0x20021ff4]: Transport writing 29 bytes.
[00:02:16.370,605] &amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20020620): [0x20021ff4]: Transport write complete.
[00:02:16.370,635] &amp;lt;dbg&amp;gt; net_mqtt.mqtt_publish: (0x20020620): [CID 0x20021ff4]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000
[00:02:16.370,666] &amp;lt;dbg&amp;gt; ss_aws.cloud_evt_handler: Cloud send success!
[00:02:17.648,651] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: Input!
[00:02:17.648,681] &amp;lt;dbg&amp;gt; net_mqtt.mqtt_input: (0x20020620): state:0x00000006
[00:02:17.648,712] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20020620): &amp;gt;&amp;gt; cur:0x200221e4, end:0x200221e6
[00:02:17.648,712] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint8: (0x20020620): &amp;lt;&amp;lt; val:40
[00:02:17.648,742] &amp;lt;dbg&amp;gt; net_mqtt_dec.packet_length_decode: (0x20020620): length:0x00000002
[00:02:17.648,773] &amp;lt;dbg&amp;gt; net_mqtt_rx.mqtt_handle_packet: (0x20020620): [CID 0x20021ff4]: Received MQTT_PKT_TYPE_PUBACK!
[00:02:17.648,773] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint16: (0x20020620): &amp;gt;&amp;gt; cur:0x200221e6, end:0x200221e8
[00:02:17.648,803] &amp;lt;dbg&amp;gt; net_mqtt_dec.unpack_uint16: (0x20020620): &amp;lt;&amp;lt; val:2f38
[00:02:17.648,803] &amp;lt;dbg&amp;gt; aws_iot.mqtt_evt_handler: MQTT_EVT_PUBACK: id = 12088 result = 0
[00:02:27.648,925] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: Timeout!
[00:02:27.648,956] &amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20020620): [0x20021ff4]: Transport writing 2 bytes.
[00:02:27.655,731] &amp;lt;dbg&amp;gt; net_mqtt.client_write: (0x20020620): [0x20021ff4]: Transport write complete.
[00:02:27.655,761] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_disconnect: (0x20020620): Closing socket 2
[00:02:27.656,921] &amp;lt;dbg&amp;gt; aws_iot.mqtt_evt_handler: MQTT_EVT_DISCONNECT: result = 0
[00:02:27.656,921] &amp;lt;dbg&amp;gt; ss_aws.cloud_evt_handler: CLOUD_EVT_DISCONNECTED
[00:02:27.656,951] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: disconnect call success!
[00:02:27.656,951] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: We are at the end!
uart:~$ 
uart:~$ 
[00:02:35.130,950] &amp;lt;dbg&amp;gt; ss_aws.aws_iot_test_work: AWS IoT Work!
[00:02:35.131,469] &amp;lt;dbg&amp;gt; aws_iot.broker_init: IPv4 Address found 54.149.99.172
[00:02:35.131,805] &amp;lt;dbg&amp;gt; net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20020620): Created socket 2   &amp;lt;&amp;lt; This is the last thing that is printed, no matter how long you wait
uart:~$ 
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/thread/242938?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 11:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecd93c6-178e-47ff-8bce-ddd4f70a1c6d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;how soon after the disconnect do you try to reconnect? Do you reset first?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple connect attempts hangs on connect with AWS_IOT cloud backend</title><link>https://devzone.nordicsemi.com/thread/242806?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 00:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3389a77-d885-4238-8952-2342e1c0aab0</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;gt; I&amp;#39;m using&amp;nbsp;v1.2.0 for the nrf project and I am fairly confident I am using modem firmware 1.1.1 (though I don&amp;#39;t know how to verify that).&lt;/span&gt;&lt;br /&gt;You can display the version of your firmware with AT%SHORTSWVER.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>