<?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>A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63085/a-gps-download-fails-mid-session</link><description>Hello, 
 I am trying to run the A-GPS sample program but am encountering a bit of difficulty with the SUPL code. 
 I had to modify the LTE connection code to allow access for NB-IoT, APN and User/Pass for the SIMs we are using but encounter this error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jul 2020 11:11:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63085/a-gps-download-fails-mid-session" /><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/262376?ContentTypeID=1</link><pubDate>Thu, 30 Jul 2020 11:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a4fbd8-1c71-4a47-a49b-ccc295086af9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;It&amp;#39;s preferred to make all configurations first, (store permanent parameters to modem flash with CFUN=0) and activate the modem. This way all configurations are affecting to first LTE registration. However, this is not mandatory, parameters can be changed at any time with some limitations. For example, some commands require that the modem is deactivated.&lt;/p&gt;
&lt;p&gt;Please note that CFUN=20/21 is affecting LTE only, CFUN=30/31 are affecting to GNSS only, and CFUN=1/4/0 are affecting to both LTE and GNSS.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/262162?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 11:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0765a23-b515-4a2b-955b-beb143d70d3f</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;OK, thanks to that little bit of information, I made a change to the modem setup. I moved the AT commands for setting up LTE out of &amp;#39;activate_lte()&amp;#39; and into setup_modem() where the initial GNSS AT modem parameters are entered.&lt;/p&gt;
&lt;p&gt;I added only the full AT commands for &amp;quot;+CGDCONT&amp;quot; and&amp;nbsp; &amp;quot;+CGAUTH&amp;quot;, this seems to have had a dramatic effect on the application.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;2020-07-29T11:12:58.511Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.3.0-rc1-ncs1-3-g2400b4921ea9  ***\x0D
2020-07-29T11:12:58.518Z DEBUG modem &amp;lt;&amp;lt; Staring GPS application\x0D\x0A
2020-07-29T11:12:58.520Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT%XSYSTEMMODE=0,1,1,0\x0D\x0A
2020-07-29T11:12:58.525Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577\x0D\x0A
2020-07-29T11:12:58.528Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT%XCOEX0=1,1,1570,1580\x0D\x0A
2020-07-29T11:12:58.542Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;arkessalp.com&amp;quot;\x0D\x0A
2020-07-29T11:12:58.555Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CGAUTH=0,&amp;quot;PAP&amp;quot;,&amp;quot;arkessa&amp;quot;,&amp;quot;arkessa&amp;quot;\x0D\x0A
2020-07-29T11:12:58.561Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CFUN=31\x0D\x0A
2020-07-29T11:12:58.579Z DEBUG modem &amp;lt;&amp;lt; GPS Socket created\x0D\x0A
2020-07-29T11:12:58.589Z DEBUG modem &amp;lt;&amp;lt; Getting GPS data...\x0D\x0A
2020-07-29T11:12:58.599Z DEBUG modem &amp;lt;&amp;lt; \x1B[1;1H\x1B[2JNew AGPS data requested, contacting SUPL server, flags 59\x0D\x0A
2020-07-29T11:12:58.728Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CFUN=21\x0D\x0A
2020-07-29T11:13:36.271Z DEBUG modem &amp;lt;&amp;lt; *** Booting Zephyr OS build v2.3.0-rc1-ncs1-3-g2400b4921ea9  ***\x0D\x0A
2020-07-29T11:13:36.277Z DEBUG modem &amp;lt;&amp;lt; Starting GPS application\x0D\x0A
2020-07-29T11:13:36.281Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT%XSYSTEMMODE=0,1,1,0\x0D\x0A
2020-07-29T11:13:36.297Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT%XMAGPIO=1,0,0,1,1,1574,1577\x0D\x0A
2020-07-29T11:13:36.301Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT%XCOEX0=1,1,1570,1580\x0D\x0A
2020-07-29T11:13:36.303Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;arkessalp.com&amp;quot;\x0D\x0A
2020-07-29T11:13:36.311Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CGAUTH=0,&amp;quot;PAP&amp;quot;,&amp;quot;arkessa&amp;quot;,&amp;quot;arkessa&amp;quot;\x0D
2020-07-29T11:13:36.324Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CFUN=31\x0D\x0A
2020-07-29T11:13:36.339Z DEBUG modem &amp;lt;&amp;lt; GPS Socket created\x0D\x0A
2020-07-29T11:13:36.347Z DEBUG modem &amp;lt;&amp;lt; Getting GPS data...\x0D\x0A
2020-07-29T11:13:36.353Z DEBUG modem &amp;lt;&amp;lt; \x1B[1;1H\x1B[2JNew AGPS data requested, contacting SUPL server, flags 59\x0D\x0A
2020-07-29T11:13:36.367Z DEBUG modem &amp;lt;&amp;lt; Sending AT command: AT+CFUN=21\x0D\x0A
2020-07-29T11:14:50.866Z DEBUG modem &amp;lt;&amp;lt; Established LTE link\x0D\x0A
2020-07-29T11:14:51.205Z DEBUG modem &amp;lt;&amp;lt; ip adc2:4cc0::1101:300:1b00:1b00 (c04cc2ad) port 7276\x0D\x0A
2020-07-29T11:14:51.336Z DEBUG modem &amp;lt;&amp;lt; Starting SUPL session\x0D\x0D\x0A
2020-07-29T11:14:51.354Z DEBUG modem &amp;lt;&amp;lt; ULP encoding length: 38\x0D\x0A
2020-07-29T11:14:51.363Z DEBUG modem &amp;lt;&amp;lt; Bytes sent: 38\x0D\x0A
2020-07-29T11:14:51.611Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 34, total 34\x0D\x0A
2020-07-29T11:14:51.628Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode success, choice 3\x0D\x0A
2020-07-29T11:14:51.632Z DEBUG modem &amp;lt;&amp;lt; SUPL server responded using version 2.0.4\x0D\x0A
2020-07-29T11:14:51.637Z DEBUG modem &amp;lt;&amp;lt; SUPL response received\x0D\x0A
2020-07-29T11:14:51.644Z DEBUG modem &amp;lt;&amp;lt; ULP encoding length: 57\x0D\x0A
2020-07-29T11:14:51.645Z DEBUG modem &amp;lt;&amp;lt; Bytes sent: 57\x0D\x0A
2020-07-29T11:14:52.114Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 708, total 708\x0D\x0A
2020-07-29T11:14:52.120Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode more input 4\x0D
2020-07-29T11:14:52.559Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 708, total 1416\x0D\x0A
2020-07-29T11:14:52.562Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode more input 4\x0D\x0A
2020-07-29T11:14:52.997Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 708, total 2124\x0D
2020-07-29T11:14:53.004Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode more input 4\x0D\x0A
2020-07-29T11:14:53.354Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 708, total 2832\x0D\x0A
2020-07-29T11:14:53.357Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode more input 4\x0D\x0A
2020-07-29T11:14:53.898Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 162, total 2994\x0D\x0A
2020-07-29T11:14:53.908Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode success, choice 5\x0D\x0A
2020-07-29T11:14:53.911Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 1, size: 16\x0D\x0A
2020-07-29T11:14:53.929Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.932Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.935Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.937Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.939Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.942Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.944Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.945Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.954Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.957Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.960Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.962Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D
2020-07-29T11:14:53.970Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.973Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.976Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.982Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.985Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:53.989Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.000Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.002Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.005Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.007Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.009Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.011Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.012Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.024Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.027Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.029Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.030Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.038Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.043Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 2, size: 72\x0D\x0A
2020-07-29T11:14:54.045Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.047Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.057Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.059Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.061Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.063Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.065Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.074Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.076Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.078Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.086Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.090Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.092Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.094Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.103Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.105Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.107Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.110Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.112Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.121Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.125Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.126Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.128Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.137Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.140Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.141Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.143Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.152Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.155Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.156Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.159Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 3, size: 32\x0D\x0A
2020-07-29T11:14:54.161Z DEBUG modem &amp;lt;&amp;lt; No integrity data available\x0D\x0A
2020-07-29T11:14:54.173Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 4, size: 8\x0D\x0A
2020-07-29T11:14:54.177Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 6, size: 144\x0D
2020-07-29T11:14:54.188Z DEBUG modem &amp;lt;&amp;lt; No location data available\x0D\x0A
2020-07-29T11:14:54.190Z DEBUG modem &amp;lt;&amp;lt; Injected AGPS data, flags: 7, size: 16\x0D\x0A
2020-07-29T11:14:54.192Z DEBUG modem &amp;lt;&amp;lt; MCC location info injected, MCC: 234\x0D\x0A
2020-07-29T11:14:54.194Z DEBUG modem &amp;lt;&amp;lt; \x09Lat: 5044349 Lon: -133751\x0D\x0A
2020-07-29T11:14:54.196Z DEBUG modem &amp;lt;&amp;lt; \x09Unc semiminor/semimajor: 119/119\x0D\x0A
2020-07-29T11:14:54.203Z DEBUG modem &amp;lt;&amp;lt; \x09Confidence: 100\x0D\x0A
2020-07-29T11:14:54.205Z DEBUG modem &amp;lt;&amp;lt; \x09Orientation: 0\x0D\x0A
2020-07-29T11:14:54.206Z DEBUG modem &amp;lt;&amp;lt; SUPL POS received\x0D\x0A
2020-07-29T11:14:54.993Z DEBUG modem &amp;lt;&amp;lt; Bytes received: 34, total 34\x0D
2020-07-29T11:14:55.002Z DEBUG modem &amp;lt;&amp;lt; ULP ossDecode success, choice 6\x0D\x0A
2020-07-29T11:14:55.004Z DEBUG modem &amp;lt;&amp;lt; SUPLEND:\x0D\x0A
2020-07-29T11:14:55.005Z DEBUG modem &amp;lt;&amp;lt; \x09Mask: 0\x0D\x0A
2020-07-29T11:14:55.007Z DEBUG modem &amp;lt;&amp;lt; \x09Status: 0\x0D\x0A
2020-07-29T11:14:55.008Z DEBUG modem &amp;lt;&amp;lt; SUPL END received\x0D\x0A
2020-07-29T11:14:55.009Z DEBUG modem &amp;lt;&amp;lt; SUPL session internal resources released\x0D\x0A
2020-07-29T11:14:55.010Z DEBUG modem &amp;lt;&amp;lt; SUPL session finished\x0D\x0A
2020-07-29T11:14:55.011Z DEBUG modem &amp;lt;&amp;lt; Done\x0D\x0A
2020-07-29T11:14:57.199Z DEBUG modem &amp;lt;&amp;lt; \x1B[1;1H\x1B[2JTracking: 0 Using: 0 Unhealthy: 0\x0D\x0A
2020-07-29T11:14:57.208Z DEBUG modem &amp;lt;&amp;lt; Seconds since last fix 81\x0D\x0A\x0D\x0A
2020-07-29T11:14:57.708Z DEBUG modem &amp;lt;&amp;lt; Scanning [|] \x1B[1;1H\x1B[2JTracking: 0 Using: 0 Unhealthy: 0\x0D\x0A
2020-07-29T11:14:57.716Z DEBUG modem &amp;lt;&amp;lt; Seconds since last fix 81\x0D\x0A\x0D\x0A
2020-07-29T11:14:58.215Z DEBUG modem &amp;lt;&amp;lt; Scanning [/] \x1B[1;1H\x1B[2JTracking: 0 Using: 0 Unhealthy: 0\x0D
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So it would appear that the issue was where I was entering the AT commands for the LTE control as I needed to set the modem to CFUN=4 to change the above characteristics. Setting them at the beginning negates the problem.&lt;/p&gt;
&lt;p&gt;My question is then how does this work with other AT commands that overwrite the controls needed for GPS? Such as adding bandlocking for faster LTE connection and changing MAGPIO settings for platforms like the thingy:91 which require the appropiate config for MAGPIOs for the matching circuits.&lt;/p&gt;
&lt;p&gt;EDIT: &lt;br /&gt;Figured the MAGPIOs for the thingy:91 out using the manual. Added in bandlocking to see what would happen as well.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;New AGPS data requested, contacting SUPL server, flags 59
Sending AT command: AT+CFUN=21
Established LTE link
ip adc2:4cc0::1101:300:1b00:1b00 (c04cc2ad) port 7276
Starting SUPL session
ULP encoding length: 38
Bytes sent: 38
Bytes received: 34, total 34
ULP ossDecode success, choice 3
SUPL server responded using version 2.0.4
SUPL response received
ULP encoding length: 57
Bytes sent: 57
read again
Bytes received: 1024, total 1024
ULP ossDecode more input 4
read again
read again
Bytes received: 712, total 1736
ULP ossDecode more input 4
Bytes received: 1258, total 2994
ULP ossDecode success, choice 5
Injected AGPS data, flags: 1, size: 16
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 2, size: 72                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
Injected AGPS data, flags: 3, size: 32                                          
No integrity data available                                                     
Injected AGPS data, flags: 4, size: 8                                           
Injected AGPS data, flags: 6, size: 144                                         
No location data available                                                      
Injected AGPS data, flags: 7, size: 16                                          
MCC location info injected, MCC: 234                                            
        Lat: 5044349 Lon: -133751                                               
        Unc semiminor/semimajor: 119/119                                        
        Confidence: 100                                                         
        Orientation: 0                                                          
SUPL POS received                                                               
read again                                                                      
read again                                                                      
read again                                                                      
Bytes received: 34, total 34                                                    
ULP ossDecode success, choice 6                                                 
SUPLEND:                                                                        
        Mask: 0                                                                 
        Status: 0                                                               
SUPL END received                                                               
SUPL session internal resources released                                        
SUPL session finished                                                           
Done                                                                            

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 90

Scanning [-] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 91

Scanning [\] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 91

Scanning [|] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 92

Scanning [/] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 92

Scanning [-] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 93

Scanning [\] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 93

Scanning [|] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 94

Scanning [/] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 94

Scanning [-] 

Tracking: 0 Using: 0 Unhealthy: 0
Seconds since last fix 95

Scanning [\] 

Tracking: 1 Using: 0 Unhealthy: 0
Seconds since last fix 95

Scanning [|] 

Tracking: 1 Using: 0 Unhealthy: 0
Seconds since last fix 96

Scanning [/] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 96

Scanning [-] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 97

Scanning [\] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 97

Scanning [|] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 98

Scanning [/] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 98

Scanning [-] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 99

Scanning [\] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 99

Scanning [|] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 100

Scanning [/] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 101

Scanning [-] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 101

Scanning [\] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 102

Scanning [|] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 102

Scanning [/] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 103

Scanning [-] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 103

Scanning [\] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 104

Scanning [|] 

Tracking: 2 Using: 0 Unhealthy: 0
Seconds since last fix 104

Scanning [/] 

Tracking: 3 Using: 0 Unhealthy: 0
Seconds since last fix 105

Scanning [-] 

Tracking: 3 Using: 0 Unhealthy: 0
Seconds since last fix 105

Scanning [\] 

Tracking: 3 Using: 0 Unhealthy: 0
Seconds since last fix 106

Scanning [|] 

Tracking: 3 Using: 0 Unhealthy: 0
Seconds since last fix 106

Scanning [/] 

Tracking: 3 Using: 0 Unhealthy: 0
Seconds since last fix 107

Scanning [-] 

Tracking: 3 Using: 0 Unhealthy: 0
Seconds since last fix 107

Scanning [\] &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;A little bit more shaky on&amp;nbsp; the initial network connection but considering I&amp;#39;m in poor cell reception range and indoors, the results speak for themselves, 2 sats are tracked within a few seconds of GNSS resuming whilst indoors.&lt;/p&gt;
&lt;p&gt;All that was needed was adding an extra MAGPIO config:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	#define AT_MAGPIO      &amp;quot;AT\%XMAGPIO=1,1,1,2,5,791,849,7,1574,1577&amp;quot;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/262088?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 05:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8b8df3-ddd1-414b-b66d-ef5d36362b3b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Michael&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve returned from vacation, so this case is back in my hands. Regarding the last file you uploaded, it doesn&amp;#39;t seem like a valid modem trace as it&amp;#39;s only 22kB in size while the previous ones are way larger, and myself and the R&amp;amp;D team assigned to this case aren&amp;#39;t able to decode the modem trace, so you&amp;#39;ll have to try making another trace log.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;UPDATE:&amp;nbsp;&lt;/strong&gt;We took another look at&amp;nbsp; the&amp;nbsp;&lt;span&gt;trace-2020-07-16T12-32-27.611Z.bin file and here it seems like the SUPL data is downloaded and forwarded correctly, and that the problem might be entering the data to GNSS. It seems like you&amp;#39;re not activating GNSS after the data download, which might be what&amp;#39;s causing the issue, however that&amp;#39;s also where the trace stops, so can you confirm whether the GNSS is activated and the data entered to GNSS after the trace ends?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261841?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 15:51:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d678244-784d-4705-9bf5-94fbd1a86b17</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;There is no progress yet. It seems that many of them are on vacation this week, so I might need to find someone else to look at it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261837?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 15:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2730462-7d14-421e-817f-e4bf16f2b468</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Have the internal team had a chance to review the new trace today?&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261644?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:55:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d104b0-63b9-4657-b2f0-6caf7fd232d2</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261638?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:29:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c49f49db-a115-4270-b846-8471060ceb38</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Not regarding the last trace as far as I can tell. I will check again on Monday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261605?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 12:26:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62f4c71f-ef5d-4c42-a38e-5dee8c059dc7</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any updates?&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261168?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 10:28:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f0ce3c2-6fe7-49bb-a401-84a34cb5f004</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;[quote userid="73166" url="~/f/nordic-q-a/63085/a-gps-download-fails-mid-session/261136"][/quote]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Did you get any values for +CESQ confirming this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a log on this but using the AT client yesterday, CESQ was in the mid 30s. Around 34 RSRP so decently higher than before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261136?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 08:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:face018b-f20d-44ed-adb3-44ea0344dab5</guid><dc:creator>Hakon</dc:creator><description>[quote user="MJD093"]There should be some improvement in the signal strength in this attempt but it still failed out as shown above.[/quote]
&lt;p&gt;&amp;nbsp;Did you get any values for +CESQ confirming this?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have the modem team look at the trace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261047?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 16:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a5c87e4-6cca-4b1f-8631-6b77b8788397</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;I happen to be in the office today and I have my colleagues v0.8.5 DK instead of my usual DK.&lt;/p&gt;
&lt;p&gt;There should be some improvement in the signal strength in this attempt but it still failed out as shown above.&lt;/p&gt;
&lt;p&gt;(I believe I followed the trace set-up steps for the modem correctly for this DK)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2020_2D00_07_2D00_21T16_2D00_31_2D00_26.836Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2020_2D00_07_2D00_21T16_2D00_31_2D00_26.836Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261043?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 16:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b550b9-dc39-4ba2-870c-00457624123d</guid><dc:creator>Hakon</dc:creator><description>[quote userid="75438" url="~/f/nordic-q-a/63085/a-gps-download-fails-mid-session/261040"]My application requires at least values of 21 RSRP before I will allow the device to initiate UDP transfers or FOTA.[/quote]
&lt;p&gt;21 seems too low. The product spec gives the following values for RX sensitivity...&lt;/p&gt;
&lt;p&gt;&amp;quot;RX sensitivity: -108 dBm for Cat-M1 and -114 dBm for Cat-NB1 and Cat-NB2&amp;quot;&lt;/p&gt;
&lt;p&gt;21 corresponds to -119 dBm. For NB-IoT you should stay above 26.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261040?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 16:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03784c5e-1100-41e5-a25e-7e1265de4c1f</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I work from home a lot, I live in the countryside and the transmitter would be expected to run at max TX power due to low signal strength. AT logs show that I can still achieve at least values as shown below for the RSRP:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Sending AT command: AT+CESQ                                                     
Modem response: +CESQ: 99,99,255,255,22,23&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is there an expected minimum value of RSRP that is required to improve success rates? My application requires at least values of 21 RSRP before I will allow the device to initiate UDP transfers or FOTA. It would be expected to do the same when I impliment A-GPS into my radio scheduler code in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261039?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 16:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d97ff55-85d8-4be7-b293-36072e9d6e4c</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;A couple of things have been mentioned since last time...&lt;/p&gt;
&lt;p&gt;&amp;quot;Looking at his log in devzone the SUPL connection was totally unsuccessful, and not similar to the previous case.&lt;/p&gt;
&lt;p&gt;The modem trace shows to me that transmitter is requested to send at full power which indicates a poor connection. Strange is that RX SNR is still positive +4dB which should be good enough.&amp;quot;&lt;/p&gt;
&lt;p&gt;And there is a discussion about what is happening in the trace I&amp;#39;m assuming, but that would be internal information so I can&amp;#39;t share it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/261029?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 15:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4862244-630b-4775-abd3-0d4bd00316a9</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Has there been any word on this issue. I appreciate that the recent holidays have caused disruptions but we really need a resolution for this issue ASAP. It&amp;#39;s been 25 days since we wanted to improve our custom devices with A-GPS.&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/260644?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 15:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b791c4-d511-4b0c-a601-46bc5389ad3a</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Is there anything I can add to the sample that will prevent the GPS side of the application from failing to utilise cold start GPS locating after a failed A-GPS run. I&amp;#39;d imagine that even a successful A-GPS download would fail to start the GPS socket as well.&lt;/p&gt;
&lt;p&gt;As I mentioned, the GPS code on it&amp;#39;s own works fine so it&amp;#39;s whatever is going in the handover between the LTE and GPS configs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/260640?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 15:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:116eda49-b8b8-4553-9f25-1b1b5fae8188</guid><dc:creator>Hakon</dc:creator><description>[quote user="MJD093"]Does the code call CFUN=20 correctly in the trace after A-GPS failure?[/quote]
&lt;p&gt;&amp;nbsp;Yes that is called and LTE is turned off. Modem still seems to do some wakeups every 1.28 seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/260585?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 12:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ae91fa0-8c60-42a3-96a4-4896e331a3c1</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Thanks for the log, I will forward it for analysis.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/260366?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 12:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f17cb4f-bd48-419f-abb7-320e6e560ac9</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;I was using the SDK v1.2.0 to do this testing. I have updated to v1.3.0 and attached a modem trace below. Please let me know if there are any issues with the trace.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2020_2D00_07_2D00_16T12_2D00_32_2D00_27.611Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2020_2D00_07_2D00_16T12_2D00_32_2D00_27.611Z.bin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For reference, the GPS application is modified to use an AT command array with the following commands, without this LTE set-up, the SIM Cards will never make a connection to the network.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define AT_CFUN_OFF						&amp;quot;AT+CFUN=4&amp;quot;
#define AT_APN_zzzz					&amp;quot;AT+CGDCONT=0,\&amp;quot;IP\&amp;quot;,\&amp;quot;ep.inetd.gdsp\&amp;quot;&amp;quot;
#define AT_MAGPIO_LTE      			    &amp;quot;AT\%XMAGPIO=1,1,1,1,5,791,849&amp;quot;
#define AT_BANDLOCK						&amp;quot;AT\%XBANDLOCK=1,\&amp;quot;10000000000000000000\&amp;quot;&amp;quot;
#ifdef CONFIG_BOARD_NRF9160DK_NRF9160NS
	#define AT_MAGPIO                   &amp;quot;AT\%XMAGPIO=1,0,0,1,1,1574,1577&amp;quot;
	#define AT_COEX0                    &amp;quot;AT\%XCOEX0=1,1,1570,1580&amp;quot;
	#define AT_APN_xxx				&amp;quot;AT+CGDCONT=0,\&amp;quot;IP\&amp;quot;,\&amp;quot;xxx.com\&amp;quot;&amp;quot;
	#define AT_xxxx_USER_PASS		&amp;quot;AT+CGAUTH=0,\&amp;quot;PAP\&amp;quot;,\&amp;quot;xxx\&amp;quot;,\&amp;quot;xxx\&amp;quot;&amp;quot;
	#define AT_LEG_PCO					&amp;quot;AT\%XEPCO=1&amp;quot;
#endif

static const char     at_commands_NB[][50]  = {
				AT_CFUN_OFF,
				AT_XSYSTEMMODE,
#ifdef CONFIG_BOARD_NRF9160DK_NRF9160NS
				//AT_MAGPIO_LTE,
				AT_BANDLOCK,
				AT_APN_xxx,
				AT_xxx_USER_PASS,
				AT_LEG_PCO,
#endif
				AT_ACTIVATE_LTE
			};
			
static int activate_lte(bool activate)
{
	if (activate) {
		for (int i = 0; i &amp;lt; ARRAY_SIZE(at_commands_NB); i++) {
			if (at_cmd_write(at_commands_NB[i], NULL, 0, NULL) != 0) {
				printk(&amp;quot;Error with at_commands_NB\n&amp;quot;);
				return -1;
			}
		}

		at_notif_register_handler(NULL, wait_for_lte);
		if (at_cmd_write(&amp;quot;AT+CEREG=2&amp;quot;, NULL, 0, NULL) != 0) {
			printk(&amp;quot;Error with wait_for_lte 1\n&amp;quot;);
			return -1;
		}

		k_sem_take(&amp;amp;lte_ready, K_FOREVER);

		at_notif_deregister_handler(NULL, wait_for_lte);
		if (at_cmd_write(&amp;quot;AT+CEREG=0&amp;quot;, NULL, 0, NULL) != 0) {
			printk(&amp;quot;Error with wait_for_lte 2\n&amp;quot;);
			return -1;
		}
	} else {
		if (at_cmd_write(AT_DEACTIVATE_LTE, NULL, 0, NULL) != 0) {
			printk(&amp;quot;Error with AT_DEACTIVATE_LTE\n&amp;quot;);
			return -1;
		}
	}

	return 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have tried with and without setting legecy PCO on v1.3.0 as mentioned to try by Simonr in an earlier reply and had no success.&lt;/p&gt;
&lt;p&gt;Note:&lt;/p&gt;
&lt;p&gt;I have had a couple instances today of this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;New AGPS data requested, contacting SUPL server, flags 59
Sending AT command: AT+CFUN=4
Sending AT command: AT%XSYSTEMMODE=0,1,1,0
Sending AT command: AT%XBANDLOCK=1,&amp;quot;10000000000000000000&amp;quot;
Sending AT command: AT+CGDCONT=0,&amp;quot;IP&amp;quot;,&amp;quot;xxx.com&amp;quot;
Sending AT command: AT+CGAUTH=0,&amp;quot;PAP&amp;quot;,&amp;quot;xxx&amp;quot;,&amp;quot;xxx&amp;quot;
Sending AT command: AT%XEPCO=1
Sending AT command: AT+CFUN=21
Established LTE link
ip 40e9:a6c0::1001:300:1b00:1b00 (c0a6e940) port 7276
Starting SUPL session
ULP encoding length: 38
Bytes sent: 38
read again
read again
read again
read error: -1
SUPL error: 1
ULP encoding length: 18
Sending SUPL message failed, bytes_sent: -1
SUPL session internal resources released
Done
Failed to start GPS&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The last line of GPS failure to start is appearing in the v1.3.0 example, I not sure why but I have played around in the AT client and can see that swapping between AT+CFUN=21 and 31 can ERROR out so I believe that may be the issue. Does the code call CFUN=20 correctly in the trace after A-GPS failure? GPS starts and works as normal when SUPL is not configured &amp;#39;y&amp;#39; in the prj.conf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/260173?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 13:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a30be44c-516e-4c44-b4bd-7a1a9b081615</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Are you using the newest version of A-GPS sample? There seems to be an issue with A-GPS injection possibly being intercepted by GNSS search. Can you please capture a modem log? Just follow &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;these instructions&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/260061?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2020 08:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4946e47-931e-478a-8c07-4dc018e44e04</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;not Simon, but I&amp;#39;m handling the case while he is away. Those that were working on your problem are on vacation now, so I got someone else to take over. Hopefully you will get an answer today or in the near future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/258575?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 10:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab827032-1027-4dd6-b632-308b0ee739d0</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;,&lt;br /&gt;Has any progress been made internally on this issue?&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/257566?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 12:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:089e0602-3b7d-42d9-8c95-679e0b36864c</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Thank you Simonr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/257536?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 10:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e460a8d-c510-418c-a7b4-fba08a21a9fc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve forwarded this issue internally to confirm whether this might be due to TCP not cooperating with NB-IoT or not (and hopefully find a fix or workaround to this issue). Please note that we are moving into the summer vacation period here in Norway, so it might take a bit longer to get to the bottom of this than expected, as staff during the month of July will be reduced. I&amp;#39;m sorry about the inconvenience, but please be patient. And I&amp;#39;ll get back to you as soon as I hear something from the devs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A-GPS download fails mid session</title><link>https://devzone.nordicsemi.com/thread/257420?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 13:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf0ffdc-14cd-4466-b58b-a40e02621c53</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;UPDATE:&lt;br /&gt;I added in the command to change to legacy PCO:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define AT_LEG_PCO							&amp;quot;AT\%XEPCO=0&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, it doesn&amp;#39;t seem to have made any improvements. (strerror() response is in this log)&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Scanning [/] [1;1H[2J
New AGPS data requested, contacting SUPL server, flags 59
Established LTE link
ip 4a7d:8cc0:: (c08c7d4a) port 7276
Starting SUPL session
ULP encoding length: 38
Bytes sent: 38
Bytes received: 34
ULP ossDecode success, choice 3
SUPL server responded using version 2.0.4
SUPL response received
ULP encoding length: 57
Bytes sent: 57
Bytes received: 708
ULP ossDecode more input 4
Bytes received: 1416
ULP ossDecode more input 4
Bytes received: 2124
ULP ossDecode more input 4
Bytes received: 2994
ULP ossDecode success, choice 5
Failed to send AGNSS data, type: 1 (err: 5|I/O error)
UTC conversion/injection failed, rc: 3
Generic assistance data injection failed, rc: 3
SUPL error: 2
ULP encoding length: 34
Bytes sent: 34
SUPL session internal resources released
SUPL session finished
Done&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>