<?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>Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73198/geolocalisation-via-lte-when-not-connected</link><description>Hi everyone, 
 
 I am trying to develop an application and I need to solve this situation : when the modem is not able to connect to LTE-M network, I still want to be able to retrieve cell-id information if available in order to track localisation of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Apr 2021 11:51:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73198/geolocalisation-via-lte-when-not-connected" /><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/303472?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 11:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf63470-44d1-40db-b4b1-5b8b4b95e80a</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;I understood that you wanted to know how modem data is read, this happens in the modem_info library:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/modem/modem_info.html"&gt;developer.nordicsemi.com/.../modem_info.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/303461?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 11:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29650bdc-1d0d-471f-bcac-7f8a065a64c3</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;Hello, according to the documentation, I can only retrieve the cell ID of the cell I am connected to, I think I didn&amp;#39;t understand your answer,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help and time,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/303253?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 15:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10784898-6b4e-4f8c-91f7-7cad0e9615b7</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;Information about neighboring cells from the modem is received with notifications, you can have a look at the modem_info library, which handles the %CESQ notifications:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/modem/modem_info.html?highlight=modem_info#c.modem_info_rsrp_register"&gt;developer.nordicsemi.com/.../modem_info.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/303249?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 15:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a9e92eb-cdaf-4680-a036-be1fd3bebf2e</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;Thank you for this answer, does it mean that it is not in this function that the processor reads the data sent from the radio antenna ? Then, where does it happen ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/303053?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 09:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe5434d3-0bd7-43f0-b93d-23c8e45232df</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;The&amp;nbsp;k_sem_take(&amp;amp;link, &amp;lt;duration&amp;gt;) blocks the execution of the rest of the function until the semaphore is released (either by &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/d15f2a19add99e17de31a64ffc9e69f591d11832/lib/lte_link_control/lte_lc.c#L420"&gt;k_sem_give(&amp;amp;link);&lt;/a&gt; or by timeout). If not connected, the function will then retry to connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302887?ContentTypeID=1</link><pubDate>Fri, 02 Apr 2021 08:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b08ef254-f65e-4eb3-9450-604324a15161</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;Hello Mister Tacker, I am very sorry that I didn&amp;#39;t answer you earlier. I am still interested if you have a solution, I am now trying to use the LTE LC module to achieve retrieving the cell information without being connected. Unfortunately, this is still not working. From what I understood, the function and more specifically the line doing the connection is this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; int w_lte_lc_connect(bool blocking)&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt;{&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; int err;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; bool retry;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; if (!is_initialized) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; LOG_ERR(&amp;quot;The LTE link controller is not initialized&amp;quot;);&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; return -EPERM;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; }&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; k_sem_init(&amp;amp;link, 0, 1);&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; do {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; retry = false;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; err = lte_lc_system_mode_set(sys_mode_target);&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; if (err) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; return err;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; }&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; err = lte_lc_normal();&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; if (err || !blocking) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; return err;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; }&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#ff0000;"&gt;&lt;code&gt; &lt;strong&gt;err = k_sem_take(&amp;amp;link, K_SECONDS(CONFIG_LTE_NETWORK_TIMEOUT));&lt;/strong&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; if (err == -EAGAIN) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; LOG_INF(&amp;quot;Network connection attempt timed out&amp;quot;);&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; if (IS_ENABLED(CONFIG_LTE_NETWORK_USE_FALLBACK) &amp;amp;&amp;amp;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; (sys_mode_target == sys_mode_preferred)) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; sys_mode_target = sys_mode_fallback;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; retry = true;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; err = lte_lc_offline();&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; if (err) {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; return err;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; }&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; LOG_INF(&amp;quot;Using fallback network mode&amp;quot;);&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; } else {&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; err = -ETIMEDOUT;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; }&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; }&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; } while (retry);&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt; return err;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;code&gt;}&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, I didn&amp;#39;t understand what is happening inside the k_sem_take function.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help, Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302886?ContentTypeID=1</link><pubDate>Fri, 02 Apr 2021 08:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00a51704-f453-437f-bf1e-3c113c176447</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;Hello, i use this firmware:&amp;nbsp;mfw_nrf9160_1.2.3&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302083?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3380602a-de0b-43a6-a4fb-8f6e106a5d80</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;div&gt;
&lt;div&gt;I suspect&amp;nbsp;this to be the issue:&lt;/div&gt;
&lt;blockquote class="copy-paste-block" itemprop="copy-paste-block"&gt;
&lt;p&gt;Neighboring cell measurements are valid and available only when neighbors are being monitored, which means that the strength and quality of the current cell signal do not meet the network configured level. For more information, see the requirements in &lt;cite&gt;3GPP TS 36.304&lt;/cite&gt;.&lt;/p&gt;
&lt;p&gt;To save energy, nRF9160 does not search and measure neighboring cells for mobility purposes if the level and quality of the serving cell signal are above the thresholds defined by the network.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div&gt;If you are in areas with good cell coverage, but e.g. deliberately do not want to connect (or can&amp;#39;t because of your SIM), you don&amp;#39;t get neighboring cell information.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302082?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c778bf8d-f0fb-4a22-b57b-b25587aea47c</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;Hm, are you on the latest modem firmware? And it could be that it only works if connected to LTE, however I am not sure about the details.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302081?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af07328e-027a-498f-8e1f-6c74fc00628a</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;Unfortunately, I didn&amp;#39;t manage to run this command (I am doing tests on the LTE link monitor consol), I get response &amp;quot;OK&amp;quot; but no information is displayed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302080?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7299b3a4-694a-4633-8c15-c34cbcfe1e03</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;You could run&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/nbrgrsrp_set.html"&gt;AT%NBRGRSRP&lt;/a&gt;&amp;nbsp;and store that data locally, then send it to the cloud once connected and have the cloud resolve the cell locations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302079?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a37c2923-c384-4868-9edd-d6bd6b5f3018</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;I would like to record the different positions of the device and then send them to the internet once I am connected again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302076?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbbc3a13-668b-4d1a-9542-5a6feb9ee898</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;Yeah, that&amp;#39;s what I suspected. However there are tens of thousands of cells per country, so knowing the cellId wouldn&amp;#39;t help you much to further improve location information beyond the country &lt;strong&gt;if you have no connection at all.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/302075?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 09:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062a1cb0-8bf7-420d-bab4-5da543f4d9b5</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;I can use AT+COPS? to determine the MCC+MNC of the device even when not connected. However, I didn&amp;#39;t succeed in getting information about cell id.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/301858?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 10:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d620bf-f080-47ed-88b8-98bc1b9f4387</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;I think this case is a little more challenging: from what I understand in this case the device has no internet connection at all, so while it is able to get cell information from the modem, it&amp;#39;s not able to send this information to the cloud for processing there.&lt;/p&gt;
&lt;p&gt;Nevertheless OP is interested in knowing the location of the device.&lt;/p&gt;
&lt;p&gt;The information about the cell that the modem provides includes the MCC (mobile country code), and you can use at least this information &amp;quot;offline&amp;quot; / on the device to determine in which country the device currently resides.&lt;/p&gt;
&lt;p&gt;I am not sure however, if this information (or &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cops_read.html"&gt;AT+COPS?&lt;/a&gt;) is available if not connected to LTE at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Geolocalisation via LTE when not connected</title><link>https://devzone.nordicsemi.com/thread/301849?ContentTypeID=1</link><pubDate>Thu, 25 Mar 2021 10:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60d69d73-b4e4-4f09-9336-dfa145d1251a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Have a look at the latest answer from &lt;a href="https://devzone.nordicsemi.com/members/coderbyheart"&gt;Markus Tacker (he/him)&lt;/a&gt; here:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/73139/scanning-for-all-nearby-base-stations-with-nrf9160dk"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/73139/scanning-for-all-nearby-base-stations-with-nrf9160dk&lt;/a&gt;&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></channel></rss>