<?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>AGPS with SUPL vs NRF Cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64762/agps-with-supl-vs-nrf-cloud</link><description>Hi! 
 (My apologies in advance in case the information I need is to be found elsewhere. There are numerous tickets related to GPS/A-GPS, but everybody seems to have his/her own twist) 
 I use ncs v1.3.0 installed using Toolchain Manager (Windows 10).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Aug 2020 11:19:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64762/agps-with-supl-vs-nrf-cloud" /><item><title>RE: AGPS with SUPL vs NRF Cloud</title><link>https://devzone.nordicsemi.com/thread/265065?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 11:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b19738a-f71e-4f50-b7e8-506fbd2dc913</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Glad to hear it worked out!&lt;/p&gt;
&lt;p&gt;There&amp;#39;s some more detail on (A-)GPS + LTE &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/nrf_cloud_agps/README.html#overview"&gt;here &lt;/a&gt;that might be useful.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jan Tore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AGPS with SUPL vs NRF Cloud</title><link>https://devzone.nordicsemi.com/thread/264894?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57233c12-b9e6-4318-a9a1-bc74d86ec340</guid><dc:creator>pemar13</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;Just as you suggested, I managed to get the&amp;nbsp;&lt;span&gt;A-GPS request in asset_tracker to work for Cat-M1 by setting&amp;nbsp;CONFIG_MODEM_INFO_ADD_DATE_TIME=n!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Furthermore, today, the A-GPS response is handled and GPS tracking starts! I don&amp;#39;t understand this, but I suspect that I am doing something differently.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I thus mark your answer as verified and will try to implement the PSM mode properly.I&amp;#39;ll get back to you and your collegues when I&amp;#39;m stuck again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Again, many thanks for your help!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/per&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AGPS with SUPL vs NRF Cloud</title><link>https://devzone.nordicsemi.com/thread/264839?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 11:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05d5c1a-0522-41c0-92ee-bf800da301a6</guid><dc:creator>pemar13</dc:creator><description>&lt;p&gt;Hi Jan Tore!&lt;/p&gt;
&lt;p&gt;Many thanks for the insights provided in your answers above! Especially what you write under B) is very good info for me as I haven&amp;#39;t understood these (for me) intricate details until now.&lt;br /&gt;The modem firmware version I use is 1.2.0 (sorry for not including this in my original ticket).&lt;/p&gt;
&lt;p&gt;Providing you with modem traces&amp;nbsp;will take some time depending on which priorities I have to make. I leave this ticket open for now, and will decide&amp;nbsp;if&amp;nbsp;it needs to be made private when I know how to proceed.&lt;/p&gt;
&lt;p&gt;Thanks for now!&lt;/p&gt;
&lt;p&gt;Besxt regards, Per&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AGPS with SUPL vs NRF Cloud</title><link>https://devzone.nordicsemi.com/thread/264833?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 11:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43503efa-de8d-4d61-b699-c55fcf05d741</guid><dc:creator>Jan Tore Guggedal</dc:creator><description>&lt;p&gt;Hi Per,&lt;/p&gt;
&lt;p&gt;Common for all the issues you&amp;#39;re seeing is that they&amp;#39;re hard to debug without knowing more about what the device sends to the SUPL server using LTE-M and to nRF Cloud in the asset tracker case. It would be very useful if you can follow the guide here and gather modem traces, which will help a lot in understanding what fails:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/how-to-get-modem-trace-using-trace-collector-in-nrf-connect&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also,&amp;nbsp;I need to&amp;nbsp;know which modem firmware version you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;Anyway, I&amp;#39;ll try to answer your questions based on the information you&amp;#39;ve added here.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In the first log ouput you provide, this line says that gathering information for the A-GPS request fails:&lt;br /&gt;&amp;lt;err&amp;gt; modem_info_params: Link data not obtained: 20 -5&lt;/p&gt;
&lt;p&gt;Some networks/SIM cards don&amp;#39;t provide all information that is requested, which can cause failures like this.&amp;nbsp;I think you should be able to fix that issue by setting this configuration in your Kconfig:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MODEM_INFO_ADD_DATE_TIME=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;B)&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;The&amp;nbsp;GPS_EVT_OPERATION_(UN)BLOCKED&amp;nbsp;events indicate whether the GPS is&amp;nbsp;allowed to use the radio resources to receive GPS signals. By default, LTE has priority, which causes the GPS to be blocked from using the radio whenever the LTE modem requires it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;To use A-GPS, LTE has to be enabled while data is being transfered. When the download of A-GPS data is done, you can switch off LTE to let GPS operate. That&amp;#39;s what&amp;#39;s done in the GPS sample. &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In the asset tracker a different approach is used, where the device instead Power Saving Mode (PSM) from the network, which, when granted, will let the GPS operate uninterrupted by LTE for the duration of the PSM interval, or until the device itself initiates a data transfer. The reason for this approach in the asset tracker is power consumption. Attaching to and detaching from network consumes relatively much power, compared to just let the modem go to sleep. In addition a TLS handshake would have to be done with the cloud server every time data is sent, and this is also a quite costly affair in terms of power consumption and bytes sent on air. It&amp;#39;s not unusual that a TLS hanshake requires to send and receive 5k - 8k bytes. Staying in PSM and keeping the MQTT connection alive by periodic pings to the broker may therefore be preferred, depending on your use-case.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;C)&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;I would go for the seconds approach. There seems to be missing a line setting the system mode in the case where LTE should be activated, but other than that it looks reasonable.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;The link controller library will soon also support activating GPS and/or LTE only, which will simplify this switching.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;To sum up, I&amp;#39;d need modem traces and modem firmware version to continue. It will also be useful to know which network you are using. If you wish to share code or information that should not be public, you can make this ticket private.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Jan Tore&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>