<?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 and PSM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61342/agps-and-psm</link><description>Hi 
 Looking at the AGPS sample code, it seems GPS/LTE is turned on and off using AT commands (AT+CFUN=x, x in {20, 21, 31}). 
 Do you recommend NOT using PSM when using AGPS? 
 Tron</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 May 2020 06:02:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61342/agps-and-psm" /><item><title>RE: AGPS and PSM</title><link>https://devzone.nordicsemi.com/thread/250083?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 06:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b2c420f-288f-4f20-b578-c7a0175cee6d</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Thank you, precise and to the point.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AGPS and PSM</title><link>https://devzone.nordicsemi.com/thread/249786?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 14:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768403fb-004f-4aa5-a5c9-9a525dd9eeef</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The gps sample was originally created with only GPS in mind. It was later expanded when we added A-GPS support.&lt;/p&gt;
&lt;p&gt;That is why the sample only uses GPS, and not LTE (more than necessary for A-GPS). Another consideration to factor in is that the sample is not guaranteed to be granted PSM, and can therefore not rely on PSM to get enough run-time for the GPS.&lt;/p&gt;
&lt;p&gt;That is no longer necessary, with the improvements to the modem, but the sample is still meant to be as basic as possible.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Do you recommend NOT using PSM when using AGPS?[/quote]
&lt;p&gt;I would probably enable PSM after downloading the A-GPS data, but there should not be a problem using PSM with A-GPS.&lt;/p&gt;
&lt;p&gt;However, we have found that the SUPL library is more stable if the GPS is turned off before the SUPL session is started.&lt;/p&gt;
&lt;p&gt;This would make the following order of events: Start GPS -&amp;gt; Get A-GPS data request -&amp;gt; Stop GPS (using socket interface) -&amp;gt; Start SUPL session -&amp;gt; SUPL session ends -&amp;gt; Enable PSM -&amp;gt; Start GPS&lt;/p&gt;
&lt;p&gt;But, things could be done in other orders as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>