<?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>Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81449/use-supl_client_abort-a-gps-supl-nrf9160</link><description>Hi. 
 I use GPS with SUPL client library, so I need your help. 
 I enabled CONFIG_AGPS_SRC_SUPL and use gps_agps_request() function to request agps 
 I found that in supl_start(), you don&amp;#39;t use supl_client_abort() function. 
 
 This document ( https:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Nov 2021 14:42:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81449/use-supl_client_abort-a-gps-supl-nrf9160" /><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/339055?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 14:42:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a85ff52-d969-48a2-843a-21a5ba8e2037</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="haohv6"]Another issue, I use Agps with supl, it work fine but sometimes, Its position is wrong ( It may be up&amp;nbsp;to thousands of kilometers).[/quote]
&lt;p&gt;That almost sounds like a corrupted buffer/uart output?&lt;/p&gt;
&lt;p&gt;Does it continuously report the wrong position?&lt;/p&gt;
[quote user="haohv6"]I use sdk 1.4.0 and fw 1.2.3, I don&amp;#39;t use Low accurancy GPS mode.[/quote]
&lt;p&gt;Have you tested on a newer ncs version? We&amp;#39;re currently on v1.7.1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338889?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 01:51:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b52265b-468e-407d-8d98-19ce1027ef22</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;Sorry, i don&amp;#39;t have log about that. I will try catch it.&lt;/p&gt;
&lt;p&gt;Another issue, I use Agps with supl, it work fine but sometimes, Its position is wrong ( It may be up&amp;nbsp;to thousands of kilometers).&lt;br /&gt;&lt;br /&gt;I use sdk 1.4.0 and fw 1.2.3, I don&amp;#39;t use Low accurancy GPS mode.&lt;/p&gt;
&lt;p&gt;What should i do?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338826?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 14:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:398d68e6-c28f-4663-bc1f-e10ccdb3a019</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you wait until the network is available? Do you have a log showing the issue?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338805?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:30:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:910c81d0-80a0-40e2-83bb-ec24f3b0c859</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I use it 5 minutes once.&lt;/p&gt;
&lt;p&gt;I known that it can&amp;#39;t connect LTE more 30 times per hour, are there any cases AT thread hanged?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338796?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a33b652-8bdb-46d8-8426-7c923a7351f0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How often do you do this, ie CFUN=1/CFUN=4?&lt;/p&gt;
&lt;p&gt;You are limited to 30 network attaches per hour as per GSMA guidelines (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53264/cannot-connect-to-lte-after-trying-to-disconnect-reconnect-30-times/215160#215160"&gt;see here for documentation references&lt;/a&gt;). If this happens, the modem will wait until an hour has passed before you&amp;#39;re able to attach to the network again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338773?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 12:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1362f91-ffe4-440b-92d4-acac3d845f93</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I found that my connection thread hanged.&lt;br /&gt;In that thread, I turned on AT + CFUN = 1 to connect to LTE&amp;nbsp; and send message, after sent message, It disconnects and go to sleep mode with AT + CFUN = 4.&lt;/p&gt;
&lt;p&gt;So,&amp;nbsp;I think it have a problem at AT thread in at_cmd.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338767?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 12:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa3b7b4-58db-437b-b280-469cdfd40eee</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="haohv6"]I found that in at_cmd.c, socket didn&amp;#39;t have timeout. Are there any cases it hang forever? My custom board sometimes reboot because I set a watchdog timer with period 5 minutes.&lt;br /&gt;I use AT+CFUN = 1 and AT +CFUN = 4 to connect LTE 5 minutes once[/quote]
&lt;p&gt;Have you tried to disable the watchdog, and debugged the issue to see where it is stuck?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/338745?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 10:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d13ee2-b08f-4b83-b53d-b4650b736fd7</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;Thank you, I understood.&lt;/p&gt;
&lt;p&gt;I found that in at_cmd.c, socket didn&amp;#39;t have timeout. Are there any cases it hang forever? My custom board sometimes reboot because I set a watchdog timer with period 5 minutes.&lt;br /&gt;I use AT+CFUN = 1 and AT +CFUN = 4 to connect LTE 5 minutes once&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/337923?ContentTypeID=1</link><pubDate>Mon, 08 Nov 2021 13:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41d0b374-3de8-4c85-a1b7-3ad8a46bafcf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="haohv6"]&lt;p&gt;I use your gps sample but i don&amp;#39;t find where to set low accuracy mode ( &lt;span&gt;GNSS might use only three satellites to determine a fix).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I use it?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This is set in the gps configuration:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/agps/src/main.c#L110-L116"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/agps/src/main.c#L110-L116&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By adding the .accuracy = GPS_ACCURACY_LOW&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="haohv6"]&lt;p&gt;In addition, my device uses the ATCFUN = 4 command to set the modem into sleep mode when inactive (for infrastructure reasons, my device cannot use PSM mode).&lt;/p&gt;
&lt;p&gt;I noticed at + CFUN = 4 fast or slow respond depending on network conditions (sometimes a few seconds to minutes).&lt;/p&gt;
&lt;p&gt;Is AT thread will wait until the socket reponds?&lt;/p&gt;
&lt;p&gt;What is its timeout?&lt;/p&gt;[/quote]
&lt;p&gt;Minutes sounds quite long here. But it can take a couple of seconds for the link to gracefully shut down.&lt;/p&gt;
&lt;p&gt;What are you doing prior to this sequence taking minutes to finish?&lt;/p&gt;
[quote user="haohv6"]are there any cases &lt;span&gt;supl_client_session()&lt;/span&gt; functions wait forever&amp;nbsp;and do not return results( how long timeout is it).?[/quote]
&lt;p&gt;The session by default sets up a 1 second timeout:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.7.0/lib/agps/agps.c#L140-L150"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.7.0/lib/agps/agps.c#L140-L150&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/337778?ContentTypeID=1</link><pubDate>Sat, 06 Nov 2021 04:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a21966b-86da-432f-a417-82fafe759f26</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;This documet (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf91_features.html#introduction"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf91_features.html#introduction&lt;/a&gt;) wrote that:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To improve this, Nordic Semiconductor has implemented the following methods for acquiring a fix in a shorter time:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;
&lt;p&gt;A-GPS or P-GPS or a combination of both&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Low accuracy mode&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I use your gps sample but i don&amp;#39;t find where to set low accuracy mode ( &lt;span&gt;GNSS might use only three satellites to determine a fix).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I use it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/337777?ContentTypeID=1</link><pubDate>Sat, 06 Nov 2021 04:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:743faf14-4044-45ed-b53b-03bcc3f95caa</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;In addition, my device uses the ATCFUN = 4 command to set the modem into sleep mode when inactive (for infrastructure reasons, my device cannot use PSM mode).&lt;/p&gt;
&lt;p&gt;I noticed at + CFUN = 4 fast or slow respond depending on network conditions (sometimes a few seconds to minutes).&lt;/p&gt;
&lt;p&gt;Is AT thread will wait until the socket reponds?&lt;/p&gt;
&lt;p&gt;What is its timeout?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use supl_client_abort() A GPS SUPL nrf9160</title><link>https://devzone.nordicsemi.com/thread/337749?ContentTypeID=1</link><pubDate>Fri, 05 Nov 2021 15:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1f4356-3659-4f5d-8753-deecb7a17c78</guid><dc:creator>haohv6</dc:creator><description>&lt;p&gt;are there any cases &lt;span&gt;supl_client_session()&lt;/span&gt; functions wait forever&amp;nbsp;and do not return results( how long timeout is it).?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>