<?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 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53578/nrf9160-modem-at-cops-does-not-work-with-sim-inserted</link><description>When I run &amp;quot;AT+COPS=?&amp;quot; WITHOUT a SIM the modem always responds properly. 
 When I run &amp;quot;AT+COPS=?&amp;quot; WITH a SIM the modem does not respond as expected. I get error after approx a minute. I lock to one band to narrow down the scan. I use the following procedure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Oct 2019 11:16:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53578/nrf9160-modem-at-cops-does-not-work-with-sim-inserted" /><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216803?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 11:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94a3e4b5-6461-4621-89e7-24cc04e969ff</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Thanks a lot H&amp;aring;kon, I will try to implement something like this&lt;/p&gt;
&lt;p&gt;BR / Bj&amp;ouml;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216800?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 11:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd60d8c5-f2b3-4792-8165-753edc234789</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Björn,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Bjorn191023"]What is meant by &amp;quot;an active radio connection&amp;quot;?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;If you start the search, then get an ATTACH to the network mid-COPS=?, that would be an active radio connection, or the application starts connecting to a mqtt broker for instance (ie: high throughput on IP). If you wait until the connection is attached (watch AT+CEREG? to see status, if application is connecting to a server, wait until that if finished as well), then issue COPS=?, you should be able to successfully discover other networks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216554?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 09:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed2b3006-a922-49b5-a652-1963ee2ce371</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;How can I find out when the network attachment is done and it is safe to scan for operators without being interrupted? The required state is not clear from the documentation.&lt;/p&gt;
&lt;p&gt;Another question: the link you sent states the following: &amp;quot;The command fails if the device has an active radio connection. It returns ERROR or +CME ERROR: 516&amp;quot;&lt;/p&gt;
&lt;p&gt;What is meant by &amp;quot;an active radio connection&amp;quot;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR / Bj&amp;ouml;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216508?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 07:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d65db3ed-aa70-4e9b-84e5-8c70372c7bde</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Its likely interrupted because you are, mid-process of COPS=?, attaching to your network, which will give an incomplete list back, as per the documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cops_test.html?cp=2_1_6_0_2"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cops_test.html?cp=2_1_6_0_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As mentioned, I also got an error once while continuously resetting in between tests.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216385?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 13:06:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b985f6c1-ce41-456a-93ab-6bebe9f9e6a6</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it is consistent after cold start. The cold start (restart) of Thingy91 is important, otherwise the modem state is retained.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I stated I can get it to work with SIM after a number of attempts (often three attempts) without cold start in between. Also selecting another operator manually (e.g. Tele2 instead of Telia) makes the command work. When it starts working it continues to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216381?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 12:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a1bd0d-2db1-4472-8891-9a7d26ea8bfa</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was able to successfully discover on both M1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+COPS=?
+COPS: (2,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;24201&amp;quot;,7)
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And NB1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+COPS=?
+COPS: (1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;24201&amp;quot;,9),(3,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;24202&amp;quot;,9)
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also locked the band to 20, and repeated with and without SIM card, and got the same responses.&lt;/p&gt;
&lt;p&gt;I was able to get the &amp;quot;ERROR&amp;quot; response once (which can come if there&amp;#39;s network disruptions), and running COPS=? again provided a list. You can try waiting till the link is up, and see if this has an impact. Is this behavior consistent on your side? ie: do you always get &amp;quot;ERROR&amp;quot; back?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216355?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 12:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27e2b07b-93ee-429c-a814-932eca8d6f22</guid><dc:creator>Bjorn191023</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;Thanks for your prompt response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, I have noticed that LTE Link Monitor times out very fast and that the command continues. It is not that timeout I am refering to. I get an actual &amp;quot;ERROR&amp;quot; response from the modem after ~ 1 minute.&lt;/p&gt;
&lt;p&gt;We have narrowed scan to one band (20) to reduce the scan time. Without a SIM it takes around 5 seconds to get a proper response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are using LTE-M mode.&lt;/p&gt;
&lt;p&gt;So I have already tested what you request.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem: AT+COPS=? does not work with SIM inserted</title><link>https://devzone.nordicsemi.com/thread/216354?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 11:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:003798b1-aac9-4025-b0e7-6966324e7441</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The AT+COPS=? command will take several minutes, especially on NB1, to return with the carriers in your area.&lt;/p&gt;
&lt;p&gt;Even if the LTE Link Monitor times out, the command is executed and you&amp;#39;ll have to wait for 2-to-10 minutes (depending on M1 or NB1), before it returns with the discovered list.&lt;/p&gt;
&lt;p&gt;Could you try submitting the command only once, and wait for ~10 minutes to see if you get a response?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>