<?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>Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117621/timing-advance-reading-too-high-and-neighbouring-cells-unable-to-be-parsed</link><description>Hi there, 
 I am using an nRF9160DK and looking to get accurate Timing Advance numbers from it and also information on neighbouring cells. I believe in order to get an accurate figure for TA from the serving cell, I need my RCC Mode to be &amp;#39;connected&amp;#39;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Dec 2025 20:37:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117621/timing-advance-reading-too-high-and-neighbouring-cells-unable-to-be-parsed" /><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/556910?ContentTypeID=1</link><pubDate>Fri, 12 Dec 2025 20:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88cd9d12-c295-4540-b717-db10d26d476b</guid><dc:creator>flau</dc:creator><description>&lt;p&gt;My understand is that 1 TA = 16 Ts.&amp;nbsp; According to the 9160 AT Commands document, the timing_advance reported is Ts.&amp;nbsp; Please correct me if I am wrong.&amp;nbsp; Therefore, dividing your 160 by 16 to get TA = 10.&amp;nbsp; Then multiple by 78 will give you 780 meter.&amp;nbsp; Am I correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/517160?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 09:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f26bef-82dd-4f1a-8995-9e12121dcb2e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I hope that you are able to find the solution, and we apologies for the inconvenience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/517089?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 19:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b81378d3-7081-42a9-8d9a-b167357e5ec8</guid><dc:creator>Turk</dc:creator><description>&lt;p&gt;OK, I&amp;rsquo;ll see if I can work out how to use&amp;nbsp;&lt;span&gt;lte_lc_neighbor_cell_measurement() myself but if I struggle I&amp;rsquo;ll just use have to live with the parsing errors till the function has a little more documentation. Thanks for bringing it to the attention of your developers.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516964?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 11:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebd01cb2-f81d-48f9-a582-c93f212f392c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;No, that&amp;#39;s is an issue that our developers will fix. They do see that the information is lacking.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;That said, if you are using LTE LC, you should be using i.e.&amp;nbsp;&lt;span&gt;lte_lc_neighbor_cell_measurement()&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516951?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 10:18:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f46746-8b57-4bd5-830a-d50d6865f332</guid><dc:creator>Turk</dc:creator><description>&lt;p&gt;Hey there,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;oh, I didn&amp;rsquo;t even know that function existed. Are the parameters detailed anywhere? &amp;nbsp;I&amp;rsquo;m struggling to find the information.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516935?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 09:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e1ffc1d-a820-4a5b-a866-6bd887d718e4</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, thanks for your patience.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The problem is most likely that you are directly calling&amp;nbsp;&lt;code&gt;%NCELLMEAS&lt;/code&gt;&amp;nbsp;and not calling &lt;code&gt;lte_lc_neighbor_cell_measurement()&lt;/code&gt; to trigger the measurement. LTE LC needs to know the measurement parameters to be able to parse the notification correctly&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516572?ContentTypeID=1</link><pubDate>Tue, 31 Dec 2024 20:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b62f2ce-682b-43d2-802c-66d55fc75dc0</guid><dc:creator>Turk</dc:creator><description>&lt;p&gt;As for the error from your parsing code, I still have to look into that more, but have to move house in between. Any indication on how to avoid the error coming up would be helpful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516571?ContentTypeID=1</link><pubDate>Tue, 31 Dec 2024 20:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eca078b-00a7-490d-ac2d-439386f1aef2</guid><dc:creator>Turk</dc:creator><description>&lt;p&gt;Some more information. I took another walk with the kit and see that TA is only reported in increments of 16. So taking my 160 figure, it&amp;rsquo;s actually an equivalent to a timing advance of 10, which is about 780m, which is much closer to the distance I was from the tower. Other pings of other towers were even more accurate. &amp;nbsp;Not sure why your TA reports in chunks is of 16, &amp;nbsp;but at least now I know the calculation to use.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516542?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2024 22:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b6ca35-f895-4bab-b341-17aad2a31838</guid><dc:creator>Turk</dc:creator><description>&lt;p&gt;Hey there,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&amp;nbsp; I am trying to get an accurate timing advance number and neighbouring cell ID&amp;#39;s for location purposes. I&amp;#39;m running firmware&amp;nbsp;mfw_nrf9160_1.3.7&lt;/p&gt;
&lt;p&gt;The timing advance usually calculated out to be 78m (or so) per unit.&amp;nbsp; See here:&lt;a href="https://blog.wirelessmoves.com/2022/08/the-lte-timing-advance.html"&gt;The LTE Timing Advance &amp;ndash; WirelessMoves&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://5g-tools.com/4g-lte-timing-advance-distance-calculator/"&gt;4G LTE Timing Advance Distance Calculator | 5G-Tools.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Therefore a TA of 160 should equal a distance of around 12.5km, which is reading from the device about 12km farther than it should be.&amp;nbsp; I have since done a walk to the cell tower and the TA numbers did decrease and eventually went to &amp;#39;0&amp;#39; when I was right by the tower.&amp;nbsp; So it seem like it is some form of TA value, but I am not sure what the scale is (it&amp;#39;s calculating out to about 3m per unit at present).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the error, my probelm is that I am doing nothing but running the following command (once RRC is showing as &amp;#39;Idle&amp;#39;):&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;err = nrf_modem_at_cmd(response, sizeof(response), &amp;quot;AT%NCELLMEAS=5,3&amp;quot;);&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and then in my handle I have this code as a place holder:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;static void cellMeasHandle(const char *notif)&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;{&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp; printk(&amp;quot;cell measurement complete&amp;quot;);&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;}&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;but get the&amp;nbsp; &amp;quot;&amp;lt;err&amp;gt; lte_lc: Parsing of neighbor cells failed, err: -95&amp;quot; come up in the console.&amp;nbsp; This does not happen when I run the following:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;err&amp;nbsp;=&amp;nbsp;nrf_modem_at_cmd(response,&amp;nbsp;sizeof(response),&amp;nbsp;&amp;quot;AT%NCELLMEAS&amp;quot;);&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;So I am just wondering why this error occurs for the NCELLMEAS command when I give it a 5,3 argument vs. no argument.&amp;nbsp; The only other difference is I deliberately run the no argument command when RRC is &amp;#39;Connected&amp;#39; and the 5,3 version when the RRC is &amp;#39;Idle&amp;#39; (which I have to do to get the neighbouring cell data).&lt;/div&gt;
&lt;div&gt;After a little more investigation, this does not occur in the Serial Terminal run from nRF Desktop (as expected as there is no parsing), and only seems to be an issue the first time the&amp;nbsp;AT%NCELLMEAS=5,3 is called.&amp;nbsp; Subesequent calls seem to work ok.&amp;nbsp; So I think there may be an issue in the parser somewhere?&amp;nbsp; I&amp;#39;ll try and look into it a bit more when I get the chance from my end.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timing Advance reading too high and neighbouring cells unable to be parsed.</title><link>https://devzone.nordicsemi.com/thread/516511?ContentTypeID=1</link><pubDate>Mon, 30 Dec 2024 13:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8c8d8c-09b0-4417-8e9a-20cee905078f</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;Could you please provide what version of the modem FW you are running on your device? What are you trying to achieve?&amp;nbsp;&lt;/p&gt;
[quote user=""]but I am not sure what the error -95 means[/quote]
&lt;p&gt;From&amp;nbsp;nrfxlib\nrf_modem\include\nrf_errno.h -&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_EOPNOTSUPP&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;95&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**&amp;lt; Operation not supported on socket */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;[quote user=""]I am using an nRF9160DK and looking to get accurate Timing Advance numbers from it and also information on neighbouring cells.&amp;nbsp;[/quote]
&lt;p&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/ncellmeas_set.html"&gt;AT%NCELLMEAS is documented here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""].&amp;nbsp; Am I calculating the TA wrong [/quote]
&lt;p&gt;Where do you have this calculation from? I&amp;#39;m not aware of how to calculate this, and could not find this in the referenced 3GPP documentation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>