<?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>NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105091/nrf9160---lte-m-takes-a-long-time-for-first-connection</link><description>Hi! We are currently testing our custom device using the nrf9160 modem. Our use case is for an ultralow power IoT device that connects to the Internet each 30 minutes to send some data and then goes back to sleep. We don’t use PSM, when the device goes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Feb 2024 07:24:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105091/nrf9160---lte-m-takes-a-long-time-for-first-connection" /><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/470370?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2024 07:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec513932-67c3-4876-b298-fdda7bb029b9</guid><dc:creator>fernan</dc:creator><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;At this moment I have the same problem, but in the past, I had not.&lt;/p&gt;
&lt;p&gt;About one year ago, the connection spent about 3 seconds. Now it is very difficult to connect and register. The time to connect is too high.&lt;/p&gt;
&lt;p&gt;Eneko, have you solve it?&lt;/p&gt;
&lt;p&gt;I am doing test in Spain too, with Orange and Emnify SIMs, but with the same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/456718?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 14:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8adc020-6406-45e3-850e-59908a55a1d0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="Eneko Montero"] is there any data about the last PLMN saved in the modem? [/quote]
&lt;p&gt;Yes, the modem will save information about the connected network. First in RAM, but it will eventually be stored in flash as well. The application can also trigger the modem to store the information in flash with AT+CFUN=0 (note that this will turn the modem off, not just write the information to flash).&lt;/p&gt;
[quote user="Eneko Montero"]What does&amp;nbsp;&lt;em&gt;initial network search&lt;/em&gt; means in this case? Using a new, unused SIM card?[/quote]
&lt;p&gt;By initial network search, I meant when the modem is searching for a network when it is not already connected to a network.&lt;/p&gt;
[quote user="Eneko Montero"]I can reduce the time (locking bands) the modem takes to register with a new SIM card (then unlock bands).[/quote]
&lt;p&gt;Correct.&lt;/p&gt;
[quote user="Eneko Montero"]As far as I understood, it will start searching the HPLMN (global) and then the Prefered PLMN (26201). After that try to register in nearby networks. Same procedure as the&amp;nbsp;&lt;em&gt;initial network search&lt;/em&gt;. Am I right?[/quote]
&lt;p&gt;Yes. Though the modem will only search for networks potentially deployed in the country it is in. As the home PLMN is global, it can potentially be found anywhere, so the modem will always search for it. However, it will only search for 26201 if it is in Germany. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/456655?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 11:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df4e37bd-175c-46bc-b0a1-79ba702abbd0</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you so much for the explanation. Now I understand better what is going on.&lt;/p&gt;
&lt;p&gt;As you said, it seems the %XCOUNTRYDATA won&amp;#39;t help.&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/105091/nrf9160---lte-m-takes-a-long-time-for-first-connection/456532"]&lt;span&gt;1nce log show that the SIM card does not contain EF_EPSLOCI file, thus the home network (HPLMN) must be searched first.&lt;/span&gt; &lt;span&gt;The HPLMN was not found and the only preferred PLMN configured to the SIM card was not either found (262 01). The only option left for modem is to try to Attach to some random network with high quality signal (3 of them were found). At first modem tries to Attach to 214 01 and luckily the Attach succeeds immediately.&lt;/span&gt;[/quote]
&lt;p&gt;Although&amp;nbsp;the SIM does not have EF_EPSLOCI file, is there any data about the last PLMN saved in the modem? It seems so, since after initial registration the modem takes less than 10s to connect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/105091/nrf9160---lte-m-takes-a-long-time-for-first-connection/456532"]Unfortunately, the fix introduced in mfw 1.3.5 doesn&amp;#39;t impact the initial network search. However, it does mean that the modem will not search for the home network unless it is connected to a different global PLMN.[/quote]
&lt;p&gt;What does&amp;nbsp;&lt;em&gt;initial network search&lt;/em&gt; means in this case? Using a new, unused SIM card?&lt;/p&gt;
&lt;p&gt;I can reduce the time (locking bands) the modem takes to register with a new SIM card (then unlock bands). This way the modem have data about a PLMN -correct me if I&amp;#39;m wrong-.&lt;/p&gt;
&lt;p&gt;What happens if the modem can&amp;#39;t register to the last PLMN? eg: different country (MCC change) or area (same MCC but MNC/operator not available in that area).&lt;/p&gt;
&lt;p&gt;As far as I understood, it will start searching the HPLMN (global) and then the Prefered PLMN (26201). After that try to register in nearby networks. Same procedure as the&amp;nbsp;&lt;em&gt;initial network search&lt;/em&gt;. Am I right?&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/456532?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 18:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73cf7f03-04e7-4ae4-9a7b-2006f7566752</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Yes, and sorry for this taking a bit longer than expected. There were some additional details I had to check.&lt;/p&gt;
&lt;p&gt;First of all, the modem team pointed out that, in general, swapping the SIM cards does not simulate scenario where a new SIM card is used for the first time. Typically SIM card contains the last registered PLMN in EF_EPSLOCI file, so when such card is inserted to whatever device, the last registered PLMN will be searched first. In addition, factory reset would be needed for clearing the cell history modem has stored earlier.&lt;/p&gt;
&lt;p&gt;As for why the 1nce SIM card takes longer to connect to a network, this is what the modem team said:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1nce log show that the SIM card does not contain EF_EPSLOCI file, thus the home network (HPLMN) must be searched first.&lt;/span&gt; &lt;span&gt;The HPLMN was not found and the only preferred PLMN configured to the SIM card was not either found (262 01). The only option left for modem is to try to Attach to some random network with high quality signal (3 of them were found). At first modem tries to Attach to 214 01 and luckily the Attach succeeds immediately. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;They also commented on the use of %XCOUNTRYDATA:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In general, for devices that travel a lot we recommend to use the %XCOUNTRYDATA which can be used for prioritizing certain bands and channels in certain countries. This is very useful if preferred networks for many different countries have been configured to the SIM card. So for example, 1nce SIM card had 262 01 configured as preferred network. If certain band had been configured with %XCOUNTRYDATA for MCC 262, that band would have been scanned first when in country with MCC 262 resulting typically much faster Attach. Unfortunately, 1nce card didn’t have more than one preferred network configured, so benefit of using %XCOUNTRYDATA would limited to country with MCC 262 only.&lt;/span&gt;&lt;/p&gt;
[quote user="Eneko Montero"]I updated the modem firmware to v1.3.5 as the modem won&amp;#39;t search for PLMN started with 901.[/quote]
&lt;p&gt;Unfortunately, the fix introduced in mfw 1.3.5 doesn&amp;#39;t impact the initial network search. However, it does mean that the modem will not search for the home network unless it is connected to a different global PLMN.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/456216?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2023 15:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4c8eb38-0bb4-49d5-868b-aa2317d52166</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Didrik, any feedback from the modem team?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/455526?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 13:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6ea7b88-eb42-4dc0-b9b0-78e913083762</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I have forwarded the trace to our modem team, so they can take a look at it.&lt;/p&gt;
&lt;p&gt;They typically answer quite quickly, so I should have an answer within a day or two.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/455070?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 09:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9b587bf-2aab-4681-8f17-f17df6cffd86</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Attached the modem trace:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1nce_5F00_modem_5F00_trace.bin"&gt;devzone.nordicsemi.com/.../1nce_5F00_modem_5F00_trace.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/454979?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 15:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d23980a-5aa5-4a2d-8ca8-63040ffd74a7</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;There might be other reasons for why the 1once SIM takes longer to connect to a network than just the time it takes to search for it.&lt;/p&gt;
&lt;p&gt;Could you take a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/intro.html"&gt;modem trace&lt;/a&gt;, so we can look at what happens on the modem and SIM side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/454415?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 11:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf5013c2-9f4f-4409-9514-fb83ebe3b529</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Have you been able to look at this?&lt;/p&gt;
&lt;p&gt;Best regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/453808?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 15:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42a3758-0c71-4f1a-bff7-58fba57f0d6e</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Dridik,&lt;/p&gt;
&lt;p&gt;Thank you so much for the explanation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I updated the modem firmware to v1.3.5 as the modem won&amp;#39;t search for PLMN started with 901.&lt;/p&gt;
&lt;p&gt;See mfw_nrf9160_1.3.5_release_notes.txt:&lt;/p&gt;
&lt;p&gt;- Fix for higher priority PLMN search. Global PLMN IDs (start with digit 9) are no more&lt;br /&gt;&amp;nbsp; automatically considered to be suitable for higher priority PLMN search and selection.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using an iBasis SIM for comparation. For &lt;em&gt;emulate&lt;/em&gt; the first connection I&amp;#39;m switching both SIMs to see the time.&amp;nbsp;The iBasis SIM takes less than 20s to make the first connection.&lt;/p&gt;
&lt;p&gt;But with 1nce SIM&amp;nbsp;don&amp;#39;t see any improvement. It takes the same time (around 1:20 min) to connect using automatic network selection (+COPS=0).&lt;/p&gt;
&lt;p&gt;The second connection (resetting the MCU) takes almost no time with both SIM cards.&lt;/p&gt;
&lt;p&gt;If I change to 1nce SIM&amp;nbsp;after connecting using iBasis it takes again 1:20 mins even if it&amp;#39;s connecting to the same PLMN used by iBasis SIM.&lt;/p&gt;
&lt;p&gt;Could this behaviour mean the modem is still trying to connect to the&amp;nbsp;&lt;em&gt;Global&lt;/em&gt; home network (901)?&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/453337?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 15:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac3ab605-7c3d-42b9-97d3-2f8698d05a2d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="Eneko Montero"]I&amp;#39;ve been trying different configurations to improve the connection time. It seems using the XBANDLOCK command and locking bands 3 and 20 (used here in Spain) the time improves a lot, from more than 1 min to less than 30 seconds. I thought XBANDLOCK command and XCOUNTRYDATA command did the same: lock the search to the given bands. Am I missing something?[/quote]
&lt;p&gt;%XBANDLOCK limits what bands the nRF9160 will use. The fewer bands that are enabled, the fewer bands it will have to search through, and the faster a suitable network will be found.&lt;/p&gt;
&lt;p&gt;%XCOUNTRYDATA on the other, simply changes the priority in which the enabled bands are searched through. It doesn&amp;#39;t restrict which bands can be used. However, much of the network search process is also controlled by the LTE specification, so e.g. in this case, where the home network of the SIM card is a &amp;quot;global&amp;quot; network, the modem will have to search for that network first. If the SIM card had had a different home network, you would probably have seen a bigger improvement.&lt;/p&gt;
[quote user="Eneko Montero"]Regarding the modem trace I&amp;#39;m not sure I understand the proccess. As far as I know I need 2 UART, one for the AT commands and another one for the trace. But our custom board only has one UART (UART0). Can I get the trace with only one UART?[/quote]
&lt;p&gt;You only need one UART to take a modem trace. With an extra one, the Cellular Monitor is able to send some At commands to make sure that some information is available in the trace (and so that the Cellular Monitor is able to read the information out of the trace), but it is not strictly necessary.&lt;/p&gt;
&lt;p&gt;One other detail to be aware of, is that unless you are using NCS v2.5.0 which just released, the UART modem trace backend is hardcoded to use UART1. It works with the other UART instances as well, you will just have to change the code manually. Or, you can change the pins, so that UART1 uses the pins you usually use for UART0.&lt;/p&gt;
&lt;p&gt;Another option is to &lt;a href="https://infocenter.nordicsemi.com/topic/ug_cellular_monitor/UG/cellular_monitor/cellular_mon_rtt_playback.html"&gt;capture the trace over RTT instead&lt;/a&gt;. That way, you don&amp;#39;t need to make any changes to how you use the peripherals of the nRF9160.&lt;/p&gt;
&lt;p&gt;But, with the home network of the SIM card being a &amp;quot;global&amp;quot; network, I doubt a modem trace will give us much more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/453274?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 12:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a1cd018-46af-4335-8f88-3e6ba8dcf05d</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using a 1nce SIM card. The MCC is 901 which according to 1nce information is &amp;quot;&lt;span&gt;Worldwide Shared Mobile Country Code&amp;quot; (see&amp;nbsp;&lt;a href="https://help.1nce.com/dev-hub/docs/sim-cards-knowledge"&gt;this link&lt;/a&gt;).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regarding the modem trace I&amp;#39;m not sure I understand the proccess. As far as I know I need 2 UART, one for the AT commands and another one for the trace. But our custom board only has one UART (UART0). Can I get the trace with only one UART?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been trying different configurations to improve the connection time. It seems using the XBANDLOCK command and locking bands 3 and 20 (used here in Spain) the time improves a lot, from more than 1 min to less than 30 seconds. I thought XBANDLOCK command and XCOUNTRYDATA command did the same: lock the search to the given bands. Am I missing something?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/453048?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 13:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecf0357a-6848-452e-b79d-c6d5b47831b4</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;What SIM card are you using?&lt;/p&gt;
&lt;p&gt;How effective the use of %XCOUNTRYDATA is depends a lot on what SIM card you are using, and what networks the SIM card tells the modem to search for.&lt;/p&gt;
&lt;p&gt;One thing you can check is the first 5 or 6 digits of the IMSI (or is it a multi-IMSI SIM?), which tells you the home network of the SIM card, i.e. the network that the SIM card most wants to be connected to. The first 3 digits are the MCC, which represents the country, while the next 2 (European standard) or 3 (North American standard) represents the operator.&lt;/p&gt;
&lt;p&gt;A &lt;a href="https://infocenter.nordicsemi.com/topic/ug_cellular_monitor/UG/cellular_monitor/intro.html"&gt;modem trace&lt;/a&gt; will also help show what the modem is doing while it is searching.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/452834?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 15:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d354a4e-59a3-455f-a622-2ed96c85ee99</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have been doing some connection tests with this command but unfortunately I haven&amp;#39;t seen any difference between using it or not.&lt;/p&gt;
&lt;p&gt;If I don&amp;#39;t use any commands and let the device connect to it&amp;#39;s own to the network, it takes aproximately 1 minute and 25 seconds.&lt;/p&gt;
&lt;p&gt;Using this series of commands (I&amp;#39;m doing test in Spain) it takes 1 minute 20 seconds to connect:&lt;/p&gt;
&lt;pre&gt;AT&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;OK&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;AT%XCOUNTRYDATA=1,&amp;quot;4,214,3,1207,20,6175&amp;quot;&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;OK&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;AT+CFUN=1&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;OK&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m not really seing a difference. I&amp;#39;m I doing something wrong? I&amp;#39;m I missing an intermediate command?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/452642?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 14:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00562aa9-80fb-4165-af67-52b1a7918bab</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="Eneko Montero"]Unfortunately, the devices travel all around the world so we cannot know in which country the device is in when it’s trying to connect.&amp;nbsp;[/quote]
&lt;p&gt;The %XCOUNTRYDATA command doesn&amp;#39;t lock the device to a single country. Instead, when the device detects that it is in a country with information from %XCOUNTRYDATA, it will search the bands set with the command first.&lt;/p&gt;
&lt;p&gt;You can provide information for up to 70 countries, so you should be able to cover the most likely countries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/452636?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 14:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef080379-ff66-4230-9687-f058c06d9649</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;Hi! Thank you for your quick reply. Unfortunately, the devices travel all around the world so we cannot know in which country the device is in when it&amp;rsquo;s trying to connect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Is there any other thing we can do to help the modem connect that first time?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 - LTE-M takes a long time for first connection</title><link>https://devzone.nordicsemi.com/thread/452608?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 13:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3217b859-8070-44cd-a8ed-6b32d1969324</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, the initial connection with a new SIM card/in a new location might take a long time.&lt;/p&gt;
&lt;p&gt;One thing you can try, is to use the %XCOUNTRYDATA AT command to give the modem a bit more information about what bands it should search first in the given country.&lt;/p&gt;
&lt;p&gt;However, much of the cell and network selection procedure is controlled by the LTE spec., so there isn&amp;#39;t much that can be done.&lt;/p&gt;
[quote user=""]Why does the first connection take a long time and the rest doesn’t?[/quote]
&lt;p&gt;The modem will store information about the connected network (in flash if you disconenct with AT+CFUN=0), and use this information when re-connecting to the network.&lt;/p&gt;
&lt;p&gt;That way, it knows what network to search for, and where to find it, and it doesn&amp;#39;t have to try other networks first.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>