<?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>AT%NCELLMEAS=x,y gives an error message when x &amp;gt; 2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111718/at-ncellmeas-x-y-gives-an-error-message-when-x-2</link><description>Hello, 
 I am trying to issue the command like AT%NCELLMEAS=3,3 on my console when running asset_tracker_v2 and using Serial Terminal, which is a superb terminal for issuing AT commands. But the command produces an ugly log error message. I tracked down</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jun 2024 03:26:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111718/at-ncellmeas-x-y-gives-an-error-message-when-x-2" /><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488404?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2024 03:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25fb3e2-7762-4960-a9d8-d21cf72e91b0</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;I see from a 3 year old ticket that the problem was I was using AT commands directly for %NCELLMEAS rather than something like the Modem Shell sample, which is okay as long as %NCELLMEAS can return data immediately rather than returning data with an event.&lt;/p&gt;
&lt;p&gt;But %NCELLMEAS=4,15&amp;#39;s equivalent in MODEM SHELL will still not show that one network (FirstNet) that +COPS=? shows. Why is that? Truthfully, I have never heard of FirstNet before, but cellmapper.net shows that they have plenty of towers.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488386?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 20:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:616aed73-d57c-4df5-a5bc-c58164b36f79</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;No change in behavior after the upgrade to 1.3.6!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488380?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 18:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa819152-9164-4c5d-9ced-0861d00b66c6</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Kenneth. Meanwhile, I will upgrade from mfw_1.3.5 to 1.3.6 to see if it helps.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488374?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 17:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6830de60-ccf3-46e7-88c1-40acd6061a49</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;Let me relay your input and check if they need further information.&lt;/p&gt;
&lt;p&gt;You are right about the error code, we can find the error code in the latest release under section 5.37 as you write:&amp;nbsp;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nrf9160_at_commands_v2.4.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nrf9160_at_commands_v2.4.pdf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488368?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 15:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60848f2a-15dd-40de-9037-315ddd13944c</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;I may set things up to do a modem log, but before I do, I was surprised that you did not find CME error 530 on your error code lists: it is one of two errors shown in the nrf9160 AT Commands Reference Guide under section 5.37 %NCELLMEAS. It simply means Measurement Ongoing. With that in mind, do you still need a modem trace?&lt;/p&gt;
&lt;p&gt;Thank you for reminding me about AT+COPS=? Interestingly, it shows 4 PLMNs&lt;br /&gt;&lt;span&gt;&amp;gt; AT+COPS=?&lt;/span&gt;&lt;br /&gt;&lt;span&gt;+COPS: (2,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;311480&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&lt;/span&gt;&lt;span&gt;&amp;quot;310410&amp;quot;,7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;313100&amp;quot;,&lt;/span&gt;&lt;span&gt;7),(1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;310260&amp;quot;,7)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;where 313100 (FirstNet) I had never seen before. And if I execute AT%NCELLMEAS=4,x where x&amp;gt;3, I still see no cells. If I use 4,3 then I see all but 313100. Do you think there is any relationship between the problem I am experiencing with NCELLMEAS and the 313100 network--is it possible that that network has a weak signal, causing it to appear with AT+COPS=? but not with NCELLMEAS?&lt;/p&gt;
&lt;p&gt;Let me know if I should do a modem trace, given this additional information. Thanks.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488261?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 09:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d7e275f-1d71-4d40-b9f0-f8d6d413e63f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;span&gt;I think we would need modem log for these &lt;/span&gt;&lt;code&gt;AT%NCELLMEAS=5,X&lt;/code&gt;&lt;span&gt; related questions/issues to see what&amp;#39;s really going on.&amp;nbsp;CME error 530 doesn’t seem to be in the error code lists we can find so would be nice to see what modem actually does here and is there some encoding problem in the app side. So modem log and corresponding output from application side would be nice for futher investigation here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to see what networks are available when a device cannot seem to find network. AT%NCELLMEAS=4,15, should do the trick. You could also do a PLMN search with AT+COPS=?.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope that helps,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488006?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 04:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99dd9ad1-94d6-45ba-b833-acfaeab2ff7c</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Here is something related that seems like a bug:&lt;/p&gt;
&lt;p&gt;&amp;gt; at%ncellmeas=5,5&lt;br /&gt;OK&lt;br /&gt;&amp;gt; at%ncellmeas=5,2&lt;br /&gt;+CME ERROR: 530&lt;br /&gt;&amp;gt; at%ncellmeasstop&lt;br /&gt;OK&lt;br /&gt;&amp;gt; at%ncellmeas=5,4&lt;br /&gt;OK&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&amp;gt;&amp;gt;&amp;gt;Here is where I ask if there are one or two bugs. Take my word that I issued the %ncellmeas=5,2 shortly after issuing the %ncellmeas=5,4 command. I did not get a CME ERROR:530 error but neither did I get any results from the %ncellmeas=5,4 command, other than an OK. In the %ncellmeas=5,5 case I could wait a REALLY long time before issuing %ncellmeas=5,2 and still get the 530 error. Why do 5,4 and 5,5 behave so differently? Although I don&amp;#39;t show it here, 5,3 and 5,4 do the same thing: no output. This is modem firmware 1.3.5. And the AT_CLIENT sample program. More testing shows me that 5,5 will eventually finish but it does not print anything at that time.&lt;/span&gt;&lt;br /&gt;&amp;gt; at%ncellmeas=5,2&lt;br /&gt;OK&lt;br /&gt;%NCELLMEAS: 0,&amp;quot;025FFB01&amp;quot;,&amp;quot;311480&amp;quot;,&amp;quot;9B00&amp;quot;,65535,0,5230,268,45,26,3669915,0,0,&amp;quot;0BBF5E0F&amp;quot;,&amp;quot;310410&amp;quot;,&amp;quot;2704&amp;quot;,65535,0,5110,381,36,19,3669924,0,0&lt;br /&gt;&amp;gt; at%ncellmeas=5,4&lt;br /&gt;OK&lt;br /&gt;&amp;gt; at%ncellmeas=5,2&lt;br /&gt;OK&lt;br /&gt;%NCELLMEAS: 0,&amp;quot;025FFB01&amp;quot;,&amp;quot;311480&amp;quot;,&amp;quot;9B00&amp;quot;,65535,0,5230,268,45,25,3681995,0,0,&amp;quot;0BBF5E0F&amp;quot;,&amp;quot;310410&amp;quot;,&amp;quot;2704&amp;quot;,65535,0,5110,381,36,16,3682004,0,0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/488001?ContentTypeID=1</link><pubDate>Sun, 09 Jun 2024 16:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75dd0cf7-5348-4688-9220-6a9797bdd27e</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Kenneth, for helpful hints. Truthfully, once I got used to the fact that the error log message will appear, it was not such a big deal. I just wondered if a hot shot programmer could make it disappear with minimal effort, so I figured it was worth asking.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Who is the test engineer in the field? I think that may be me, along with my colleagues, as our company provides a customized nRF9160 board to the real end customer. I am trying to help my colleagues figure out what options we have when the end customer uses the board in a weak signal location, where the board may connect once, but at some point, disconnect and not reconnect to any network for a very long time.&lt;/p&gt;
&lt;p&gt;When it comes to understanding the LTE-M procedure for searching for a usable cell, I admittedly am clueless. I have experimented with AT commands like %NCELLMEAS hoping I can get hints. Here is a question not directly related to what I started the ticket with: suppose I was using a home network SIM, like Verizon (US), and the strongest Verizon cell signal was too weak. If I replaced that SIM with one that does do roaming, is it possible that the roaming SIM would have a better chance of finding a usable signal? Maybe consider the iBasis SIM used with the DK and Thingy boards, although we probably would not use that one specifically.&lt;/p&gt;
&lt;p&gt;My experiments with %NCELLMEAS have been with a connected board. I never see other than 0 neighbor cells. My thought is to work with a board that is in functional mode receive only (AT+CFUN=2) and then see what happens.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/487998?ContentTypeID=1</link><pubDate>Sun, 09 Jun 2024 15:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712df234-029a-4c06-b8d1-cffed6b0ee85</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi Burt,&lt;/p&gt;
&lt;p&gt;I got some feedback and this seems to be a known issue, but shouldn&amp;#39;t have negative impacts on the functionality although as mentioned, error log is printed when parsing fails.&lt;/p&gt;
&lt;p&gt;quote&amp;gt; I want to take advantage of built in code and also AT commands. Can this be fixed?&lt;/p&gt;
&lt;p&gt;When mixing the use of AT commands and the use of libraries that use AT commands, there is a risk for suboptimal behavior, or even clear errors.&amp;nbsp;They (the developers) are not completely following why that error message is&amp;nbsp;such a bad thing&amp;nbsp;as they would expect AT%NCELLMEAS=3,3 to be used by a test engineer in the field (and not the real end customer). Please comment on this one so I can relay.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/487166?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 17:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1d41a5a-b898-4f2e-8327-f3bcfaead0ac</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks, Kenneth. I am working with v2.5.0. I took a brief look at v2.6.1 code--I believe it is structured the same way.&lt;/p&gt;
&lt;p&gt;Burt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT%NCELLMEAS=x,y gives an error message when x &gt; 2</title><link>https://devzone.nordicsemi.com/thread/487052?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 08:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fda2f38e-8d37-4493-a4df-5be8bae484bd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have reported it internally, will let you know when I get feedback. Maybe you can provide details of which ncs version you are on, so I can add that too.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>