<?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>recv() hangs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68895/recv-hangs</link><description>Hi 
 We used one German SIM card(1NCE) on both of our product and 9160 dk, in both cases the recv() hangs after the downloading started at some point. I tried all nrf sdk versions(1.4.0; 1.3.0; 1.2.0) and most modem version(mfw_nrf9160_1.2.0, mfw_nrf9160_1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Dec 2020 14:45:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68895/recv-hangs" /><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/283860?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 14:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8fcd87f-ad86-4825-a0ec-ca9604e51de3</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That could have to do with the&amp;nbsp;CONFIG_APPLICATION_VERSION configuration. This needs to be 2 for the image uploaded to the S3 bucket and 1 for the application flashed to the DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The app_update.bin file on the nrfconnectsdk should have the correct application version since it was uploaded by a Nordic developer, so make sure the app you&amp;#39;re flashing to your device has the application version 1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/283678?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 23:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912110f0-51c6-467d-ae5a-1e61c1ff4346</guid><dc:creator>nmlkpoiu</dc:creator><description>&lt;p&gt;Hi Hedi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;I run the&amp;nbsp;http_application_update sample&amp;nbsp;from V1.3.0&amp;nbsp;on 9160 DK and modem version is&amp;nbsp;&lt;span&gt;mfw_nrf9160_1.2.1;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; I met another issue, after the download app_update.bin from &amp;nbsp;nrfconnectsdk.s3.eu-central-1.amazonaws.com, I use 1 sysreboot(0)&amp;nbsp; or 2: press the reset button. Both way end up still the old image boot&amp;nbsp;up instead of the&amp;nbsp;new downloaded image.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you know why? Am I missing a config flag or the&amp;nbsp;&lt;span&gt;app_update.bin is damaged?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/283510?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 11:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ecd2350-ad60-4ccc-ad22-25ceec9328c5</guid><dc:creator>nmlkpoiu</dc:creator><description>&lt;p&gt;Hi Heidi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for your time. I was unable to &lt;span&gt;reproduce&amp;nbsp;&lt;/span&gt;the hanging bug in last weekend,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I still not feeling safe, it may hangs in real product in the field. I will try to reproduce it again. Sooner or later. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/283499?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 10:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10de23f0-d4ef-4d11-a810-f9729d825a76</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, I am unable to reproduce the issue you&amp;#39;re describing. Could you please try to take a modem trace when the application is running?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/282917?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 14:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:331415b8-35cb-4d8b-a548-29d9b26da974</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;1. Thank you. I will&amp;nbsp;see if I can reproduce this issue. It could be a problem with your network, in which we will need a &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;modem trace&lt;/a&gt;&amp;nbsp;to look into it further.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Okay, I see what you are asking. The application is the HTTP application update sample from NCS 1.4.0, nrf commit&amp;nbsp;5522ca2b5f4c93eab5229f2f3f0e7bd08389cbe8.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you set up your own bucket for testing? I see from the log it still says&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Connected to nrfconnectsdk.s3.eu-central-1.amazonaws.com&amp;quot;.&lt;/p&gt;
&lt;p&gt;Remember to change&amp;nbsp;&lt;span&gt;CONFIG_DOWNLOAD_HOST to your own server.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/282768?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 00:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d2a123a-166a-4956-9ec1-9eb32826e922</guid><dc:creator>nmlkpoiu</dc:creator><description>&lt;p&gt;1. Here is the log when I run the&amp;nbsp;HTTP application update example with my INCE German Sim card:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.3.0-rc1-ncs1 ***
E: AT socket could not be opened
E: thingy91_magpio_configure failed with error: -14
HTTP application update sample started. Wait for new app...
Initializing bsdlib
Initialized bsdlib
LTE Link Connecting ...
LTE Link Connected!
Press Button 1 to start the FOTA download
I: Attempting to connect over IPv4
I: Connected to nrfconnectsdk.s3.eu-central-1.amazonaws.com
I: Downloading: app_update.bin [0]
I: Downloaded 4096/155242 bytes (2%)
I: Erasing page at offset 0x00086000
I: Downloaded 8192/155242 bytes (5%)
I: Erasing page at offset 0x00087000
I: Downloaded 12288/155242 bytes (7%)
I: Erasing page at offset 0x00088000
I: Downloaded 16384/155242 bytes (10%)
I: Erasing page at offset 0x00089000
I: Downloaded 20480/155242 bytes (13%)
I: Erasing page at offset 0x0008a000
I: Downloaded 24576/155242 bytes (15%)
I: Erasing page at offset 0x0008b000
W: Copying 601 payload bytes
I: Downloaded 28672/155242 bytes (18%)
I: Erasing page at offset 0x0008c000
I: Downloaded 32768/155242 bytes (21%)
I: Erasing page at offset 0x0008d000
W: Copying 601 payload bytes
I: Downloaded 36864/155242 bytes (23%)
I: Erasing page at offset 0x0008e000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The last the line is where the&amp;nbsp;recv() hangs. And then no more prints.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. I know I built my&amp;nbsp;app_update.bin with nrf version V1.3.0 . That is not what I am asking.&lt;/p&gt;
&lt;p&gt;I mean, the&lt;span&gt;&amp;nbsp;HTTP application update sample by default downloads an .bin file from&amp;nbsp;nrfconnectsdk.s3.eu-central-1.amazonaws.com bucket. It was Nordic developer uploaded it, so everyone can run the&amp;nbsp;HTTP application update sample&amp;nbsp;can download this&amp;nbsp;public .bin file without needing to uploading&amp;nbsp;their&amp;nbsp;own&amp;nbsp;&amp;nbsp;.bin file. I want to know what version was used to created this&amp;nbsp;public&amp;nbsp;.bin file. Because this .bin file used an old but bug free nrf sdk(I think.)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/282737?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 16:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2948206-7b1b-4db5-a677-7017c33dcfa4</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could I please have the full log in a text file?&lt;/p&gt;
&lt;p&gt;Are you using HTTP application update in NCS out-of-box or a modified version or your own application?&lt;/p&gt;
[quote user="nmlkpoiu"]which version of nrf sdk does the&amp;nbsp;app_update.bin use?[/quote]
&lt;p&gt;&amp;nbsp;The app_update.bin on your AWS server is a file you have uploaded, so which NCS version it&amp;#39;s built with depends on what you built the application with.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: recv() hangs</title><link>https://devzone.nordicsemi.com/thread/282423?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 12:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3543df86-b3d4-4e41-a829-14b8a693b20e</guid><dc:creator>nmlkpoiu</dc:creator><description>&lt;div class="author"&gt;
&lt;div class="avatar"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/nmlkpoiu"&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;I notice the app_update.bin in&amp;nbsp;&lt;span&gt;nrfconnectsdk.s3.eu-central-1.amazonaws.com bucket from the http_application_update sample works more stable, which version of nrf sdk does the&amp;nbsp;app_update.bin use?&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>