<?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>FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80611/fota-with-nb-iot-failing</link><description>Hi community I&amp;#39;m trying to evaluate the possibilities of an application update over the air via NB-Iot. According to this post this should be possible. 
 I&amp;#39;m using the application_update example with the nRF9160-DK (B1). 
 The example works fine with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 11:08:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80611/fota-with-nb-iot-failing" /><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334830?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 11:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61da61c4-ec8e-4eec-aa01-16a49e7c8db3</guid><dc:creator>zhaw-moss</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;thanks for your reply and your help. It seems like it won&amp;#39;t work in Switzerland with Swisscom. So I think this thread can be closed.&lt;br /&gt;&lt;br /&gt;Best wishes,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334819?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 10:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd5d18e-776f-4c18-9574-1d0b18a456a4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;The iBasis SIM card does not support our local NB-IoT network in Norway, so I did not have a chance to test it myself.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I check with my colleague who has done&amp;nbsp;FOTA over NB-IoT, here is his impression:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I&amp;#39;ve tested FOTA over nb-iot with SLM. &lt;/em&gt;&lt;br /&gt;&lt;em&gt;It works, but it is slow and prone for retries. (so download stops, and resumes when the connection is stable again)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;FOTA over nb-iot takes a long time and is power-hungry, but it should work. (however, recommended to use LTE-M if available)&lt;/em&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: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334672?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 15:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c8d9ab-cd90-46df-af82-8667557d58d5</guid><dc:creator>zhaw-moss</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;thanks! I tried it again, doesn&amp;#39;t work, trace attached. Let&amp;#39;s put it in another way: Do you or anyone else ever managed to properly do a FOTA over NB-IoT?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_10_2D00_18T15_2D00_35_2D00_53.786Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_10_2D00_18T15_2D00_35_2D00_53.786Z.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best wishes,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334614?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 12:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bef1fe44-5a4e-4ddb-a5c1-94becbb7264a</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Sorry, the latest NCS uses a different way to configure APN, I have corrected the former suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334602?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 12:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29165f10-78b9-4d54-8d73-7bba0a428507</guid><dc:creator>zhaw-moss</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;Thanks for yor answer.&lt;/p&gt;
&lt;p&gt;If I add those two lines I get the error that these Kconfig symbols are undefined:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;c:\Users\moss\Code\application_update_moss\prj.conf:68: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol LTE_PDP_CMD

c:\Users\moss\Code\application_update_moss\prj.conf:69: warning: attempt to assign the value &amp;#39;&amp;quot;1\&amp;quot;IP\&amp;quot;,\&amp;quot;globaldata.net\&amp;quot;&amp;quot;&amp;#39; to the undefined symbol LTE_PDP_CONTEXT&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do I have to somehow activate those config options? I&amp;#39;m using the nRF Connect SDK 1.7.0.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334574?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 11:37:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e383ec6-80d3-48dd-aa92-4f09269d6621</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I find some discussion mentioned that&amp;nbsp;&lt;span&gt;Swisccom does not enable the APN correction on its network that means the user needs to specify the correct APN in the device.&lt;/span&gt;&lt;span&gt;I guess this might be the cause of the problem. Please try to add the following lines to the configuration file:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PDN_SYS_INIT=y
CONFIG_PDN=y
CONFIG_PDN_DEFAULTS_OVERRIDE=y
CONFIG_PDN_DEFAULT_APN=&amp;quot;1\&amp;quot;IP\&amp;quot;,\&amp;quot;globaldata.net\&amp;quot;&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding TCP over NB-IoT, while NB-IoT supports both TCP and UDP as transport protocols. However, TCP is sensitive to delays and packet losses during data transmission. If you compare the feature of LTE-M and NB-IoT,&amp;nbsp; &amp;quot;TCP over NB-IoT&amp;quot; is not a good practice on TCP/MQTT, TCP/HTTP/FOTA solution, you should use LTE-M as your first option.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334221?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 15:43:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:282c59da-e605-4e34-ba41-d03e683298fd</guid><dc:creator>zhaw-moss</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;The PSM was set by default. I tried again after I disabled it (set the first three digits to one).&lt;/p&gt;
&lt;p&gt;But it is still failing, maybe there are some timeout parameters set by the carrier, I cannot say that.&lt;/p&gt;
&lt;p&gt;With your btw tipp of converting the bin to pcapng I looked into the trace myself. It still does the RCC Release, see attached.&lt;/p&gt;
&lt;p&gt;What is visible too is that there are loads of TCP retransmissions, double ACK and out-of-order packets - It seems like the tcp communication just isn&amp;#39;t working as intended.&lt;/p&gt;
&lt;p&gt;I have heard about problems with NB-IoT and TCP. So I&amp;#39;m asking myself if its just not possible to properly communicate with TCP over NB-IoT (or only if you&amp;#39;re lucky), what do you think?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_10_2D00_14T15_2D00_31_2D00_32.772Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_10_2D00_14T15_2D00_31_2D00_32.772Z.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and best wishes,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334210?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 14:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feebbbfc-fb7d-46a4-825c-db2428570e24</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I convert your trace to pcapng and checked with wireshark. The last message is an LTE RCC Release command. Have you set the PSM or does your carrier have some keep link timeout parameters?&lt;/p&gt;
&lt;p&gt;NB-IoT has low speed and it may take a very long time to finish a FOTA downloading, this might &lt;span&gt;exceed&amp;nbsp;&lt;/span&gt;some time limits.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334122?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 11:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:651270e8-2e42-479c-a7aa-a3c59fa59ea7</guid><dc:creator>zhaw-moss</dc:creator><description>&lt;p&gt;Hi Charlie&lt;/p&gt;
&lt;p&gt;Yes, I tested the NB-IoT connection before, but I doublechecked it with the AT Client sample and it works.&lt;br /&gt;&lt;br /&gt;I recorded the trace of two attempts. In the first attempt it failed before the download started. In the second attempt it failed after it downloaded the first two fragments. Log below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** FIRST ATTEMPT ***

*** Booting Zephyr OS build v2.6.99-ncs1  ***
HTTP application update sample started
LTE Link Connecting ...
LTE Link Connected!
Press Button 1 to perform application firmware update
I: Configuring socket timeout (30 s)
I: Connecting to hidden-domain.com
I: Downloading: FOTA/app_update.bin [0]
E: Error in recv(), errno 116
E: Download client error
Received error from fota_download


*** SECOND ATTEMPT ***

*** Booting Zephyr OS build v2.6.99-ncs1  ***
HTTP application update sample started
LTE Link Connecting ...
LTE Link Connected!
Press Button 1 to perform application firmware update
I: Configuring socket timeout (30 s)
I: Connecting to hidden-domain.com
I: Downloading: FOTA/app_update.bin [0]
I: Downloaded 512/167219 bytes (0%)
I: Downloaded 1024/167219 bytes (0%)
E: Error in recv(), errno 116
E: Download client error
I: MCUBoot image upgrade aborted.
Received error from fota_download&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_10_2D00_14T11_2D00_24_2D00_14.754Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_10_2D00_14T11_2D00_24_2D00_14.754Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks and best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334059?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 08:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b275d67-f1aa-4171-9961-fac32c877ae3</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Ok, have you tested the NB-IoT connection before? You can use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/applications/serial_lte_modem/README.html"&gt;nRF9160: Serial LTE modem&lt;/a&gt;&amp;nbsp;or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/samples/nrf9160/at_client/README.html"&gt;nRF9160: AT Client&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you can confirm there is no issue with the NB-IoT connection, please record &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_trace_collector%2FUG%2Ftrace_collector%2Fintro.html"&gt;the modem trace&lt;/a&gt; and share it with us for further analysis.&amp;nbsp;&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: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/334033?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 06:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dce1592-0388-4caf-82da-046780a5fae6</guid><dc:creator>zhaw-moss</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;thanks for your answer.&lt;/p&gt;
&lt;p&gt;No, I&amp;#39;m not using the default iBasis SIM card. We have Swisscom IoT simcards running with both LTE-M and NB-IoT enabled.&lt;/p&gt;
&lt;p&gt;Best wishes,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA with NB-IoT failing</title><link>https://devzone.nordicsemi.com/thread/333976?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 14:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a4919e4-9222-46ab-acda-32a0a9c9fc6b</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Are you using the default iBasis SIM card? iBasis has no NB-IoT &lt;a href="https://ibasis.com/solutions/iot-connectivity/network-coverage/"&gt;network coverage&lt;/a&gt; in &lt;span&gt;Switzerland now. You may need to check with iBasis or local carrier to check the locol NB-IoT support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>