<?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>nrf9160 AT comamnds to connect and switch to psm</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71205/nrf9160-at-comamnds-to-connect-and-switch-to-psm</link><description>Hi, 
 
 can someone tell me the correct order of AT commands to connect to LTE, activate PSM? 
 My findings so far: 
 
 
 AT% XSYSTEMMODE=1,0,1,0 =&amp;gt; set LTE-M and GPS mode AT+CFUN=21 =&amp;gt; activate LTE AT+CEREG=2 =&amp;gt; to get result codes wait until CEREG returns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Feb 2021 10:21:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71205/nrf9160-at-comamnds-to-connect-and-switch-to-psm" /><item><title>RE: nrf9160 AT comamnds to connect and switch to psm</title><link>https://devzone.nordicsemi.com/thread/293507?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 10:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2853641-196e-4cc9-afba-923712252c17</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, Markus,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My apologies for the late reply.&amp;nbsp;&lt;/p&gt;
[quote user="Markus Schweitzer"]ut when I completely activate and deactivate the LTE everytime, this only works a few minutes[/quote]
&lt;p&gt;Can you please elaborate? The timing is important, and how you handle the connection. Are you in PSM when trying to activate GPS? Can you provide more log output?&lt;/p&gt;
&lt;p&gt;You could try to activate the GPS first in order to&amp;nbsp;&lt;span&gt;try to get a GPS fix first, before you start sending any data. Once you have gotten a fix, the GPS should have downloaded all the necessary information, and therefore interfere less with the LTE stack.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 AT comamnds to connect and switch to psm</title><link>https://devzone.nordicsemi.com/thread/292435?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 10:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2532dd30-578e-4423-994a-b4a2e8f06297</guid><dc:creator>Markus Schweitzer</dc:creator><description>&lt;p&gt;Thanks for your anwser. I had a look in the asset_tracker sample, but sine I need a interval time of &amp;lt; 10 sec for gps samples, I switched to the gps sample (where lte and gps get activated and deactivated). There a interval of &amp;lt;5 sec (getting gps fix, conenct to lte, http post request) is currently possible, but when I completely activate and deactivate the LTE everytime, this only works a few minutes, until the LTE modem gets stuck with CEREG: 2 =&amp;gt; searching, not connected).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 AT comamnds to connect and switch to psm</title><link>https://devzone.nordicsemi.com/thread/292427?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 10:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5cc2209-c64e-43c7-960f-d2de76dc764b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Markus,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/gps.html?resultof=%22%6e%72%66%39%31%36%30%22%20%22%67%70%73%22%20%22%67%70%22%20%22%72%65%63%65%69%76%65%72%22%20%22%72%65%63%65%69%76%22%20"&gt;Please read the nRF9160 Product Specification on GPS receiver&lt;/a&gt;. It states the following:&lt;br /&gt;&lt;em&gt;&amp;quot;The&amp;nbsp;GPS&amp;nbsp;receiver&amp;nbsp;supports&amp;nbsp;GPS&amp;nbsp;L1 C/A reception. &lt;strong&gt;Operation is time multiplexed with LTE modem, and it is possible to obtain the&amp;nbsp;GPS&amp;nbsp;position either while the LTE is in RRC Idle mode or power saving mode (PSM), or when the LTE modem is completely deactivated.&lt;/strong&gt;&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Which means that you are doing correct in regards to the AT commands. I also suggest looking at our samples i.e. the Asset Tracker on how it supports GPS and LTE connection.&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></channel></rss>