<?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>Why does certificate provision take 10 minutes to complete?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66026/why-does-certificate-provision-take-10-minutes-to-complete</link><description>Hello, 
 I have loaded the https_client sample to my nRF9160 DK, and when it runs, it blocks after printing &amp;quot;Provisioning certificate&amp;quot; for 10 minutes exactly. That would mean that the function &amp;quot;modem_key_mgmt_write&amp;quot; runs awefully slow. Why is that? Is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Sep 2020 12:02:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66026/why-does-certificate-provision-take-10-minutes-to-complete" /><item><title>RE: Why does certificate provision take 10 minutes to complete?</title><link>https://devzone.nordicsemi.com/thread/270072?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 12:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0865e65-d945-48b7-9812-a95fd08dbb53</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Aleix,&lt;br /&gt;If you are going to connect on NB-IoT you should state that in the projects configurations file to avoid waiting for the 10min fallback from LTE-M.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Set this in your project prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_NETWORK_MODE_NBIOT=y
CONFIG_LTE_LEGACY_PCO_MODE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Last line is maybe not needed if your network supports ePCO, so you could try to run without the last config in your first test to see.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does certificate provision take 10 minutes to complete?</title><link>https://devzone.nordicsemi.com/thread/270058?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 11:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:514c3672-d846-4b88-a137-8abd4bed9da1</guid><dc:creator>Krawlow</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
[quote userid="66115" url="~/f/nordic-q-a/66026/why-does-certificate-provision-take-10-minutes-to-complete/270050"]Which NCS tag are you using? and which mfw are you running?[/quote]
&lt;p&gt;I don&amp;#39;t know how to tell you exactly on which tag am I. I did not update to a tag but to the most recent version of the master branch. The mfw is the 1.2.1.&lt;/p&gt;
[quote userid="66115" url="~/f/nordic-q-a/66026/why-does-certificate-provision-take-10-minutes-to-complete/270050"]Could you share the full Serial output log as well?[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2020-09-17T09:02:30.504Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.3.0-rc1-ncs1-2408-g332206bcad13  ***
2020-09-17T09:02:30.506Z DEBUG modem &amp;lt;&amp;lt; HTTPS client sample started
2020-09-17T09:02:30.508Z DEBUG modem &amp;lt;&amp;lt; Will try to send POST /mb/api/loadsensing/12345/write HTTP/1.1
2020-09-17T09:02:30.512Z DEBUG modem &amp;lt;&amp;lt; Host: senix-pws.worldsensing.com
2020-09-17T09:02:30.513Z DEBUG modem &amp;lt;&amp;lt; Content-Type: application/json
2020-09-17T09:02:30.515Z DEBUG modem &amp;lt;&amp;lt; Content-Length: 195
2020-09-17T09:02:30.516Z DEBUG modem &amp;lt;&amp;lt; {
2020-09-17T09:02:30.518Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;nodeModel&amp;quot;:  &amp;quot;NB-SENIX&amp;quot;,
2020-09-17T09:02:30.523Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;nodeId&amp;quot;:  12345,
2020-09-17T09:02:30.524Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;readings&amp;quot;:  [{
2020-09-17T09:02:30.525Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;channel&amp;quot;:  0,
2020-09-17T09:02:30.526Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;readingData&amp;quot;:  246
2020-09-17T09:02:30.527Z DEBUG modem &amp;lt;&amp;lt; }, {
2020-09-17T09:02:30.528Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;channel&amp;quot;:  1,
2020-09-17T09:02:30.529Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;readingData&amp;quot;:  973
2020-09-17T09:02:30.529Z DEBUG modem &amp;lt;&amp;lt; }],
2020-09-17T09:02:30.559Z DEBUG modem &amp;lt;&amp;lt; &amp;quot;readTimestamp&amp;quot;:  &amp;quot;2020-09-01T15:55:53Z&amp;quot;
2020-09-17T09:02:30.561Z DEBUG modem &amp;lt;&amp;lt; }
2020-09-17T09:02:30.563Z DEBUG modem &amp;lt;&amp;lt; Size of body 197
2020-09-17T09:02:30.755Z DEBUG modem &amp;lt;&amp;lt; Provisioning certificate
2020-09-17T09:12:39.681Z DEBUG modem &amp;lt;&amp;lt; Waiting for network.. OK
2020-09-17T09:12:40.053Z DEBUG modem &amp;lt;&amp;lt; Connecting to senix-pws.worldsensing.com
2020-09-17T09:12:45.103Z DEBUG modem &amp;lt;&amp;lt; Sent 334 bytes
2020-09-17T09:12:46.631Z DEBUG modem &amp;lt;&amp;lt; Received 1092 bytes
2020-09-17T09:12:46.700Z DEBUG modem &amp;lt;&amp;lt; &amp;gt; HTTP/1.1 200 OK&lt;/pre&gt;&lt;/p&gt;
[quote userid="66115" url="~/f/nordic-q-a/66026/why-does-certificate-provision-take-10-minutes-to-complete/270050"]Please also say which SIM card you are using and network.[/quote]
&lt;p&gt;I am using a Movistar SIM card using NB-IoT.&lt;/p&gt;
[quote userid="66115" url="~/f/nordic-q-a/66026/why-does-certificate-provision-take-10-minutes-to-complete/270050"]Have you confirmed that you actually have gotten a connection with the network in your area?[/quote]
&lt;p&gt;Yes, as you can see in the log, there is a succesful connection to the server.&lt;/p&gt;
&lt;p&gt;I would think that the code starts firstly with LTE-M and that when 10 minutes has passed without a successful connection, it switches to NB-IoT. But in the code, the connection to the network takes place afterwards, and I should see on the logs the message &amp;quot;Waiting connection&amp;quot; right? Unless... yeah I might have got it now that I think about it.&lt;/p&gt;
&lt;p&gt;What I think may be happening is that the printk does not show on the nRF Connect LTE Link Monitor until it does a carriage return (\n). And for this reason it does not show the &amp;quot;Waiting connection&amp;quot; message until it finally connects to the network and printing &amp;quot;OK\n&amp;quot;.&lt;/p&gt;
&lt;p&gt;This could be it, I will test it.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Aleix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does certificate provision take 10 minutes to complete?</title><link>https://devzone.nordicsemi.com/thread/270050?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 11:15:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f16056c2-17fd-4951-a1ec-084815efda60</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Aleix,&lt;/p&gt;
&lt;p&gt;Which NCS tag are you using? and which mfw are you running?&lt;/p&gt;
&lt;p&gt;Could you share the full Serial output log as well?&lt;/p&gt;
&lt;p&gt;Please also say which SIM card you are using and network.&lt;/p&gt;
&lt;p&gt;Have you confirmed that you actually have gotten a connection with the network in your area?&lt;/p&gt;
&lt;p&gt;(It should not take 10mins for this, so this has to be something else.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>