<?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>CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112877/cscon-and-gps-timer</link><description>Hi, 
 I try to use CPSMS command to reduce the power consumption. The idea is to send a MQTT message every 10min and have the GPS coordinate every 5 min. 
 The NRF9160 is flashed with serial LTE modem and I communicate with him through AT command. 
 This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2024 07:54:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112877/cscon-and-gps-timer" /><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494491?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 07:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe592a83-0cd3-4762-a53f-84b420e9d673</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;You are welcome! :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494488?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 07:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4de95f-2dba-415f-a093-d578e244e24c</guid><dc:creator>Alban THIERRY</dc:creator><description>&lt;p&gt;Hi charlie,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank a lot for all your answer&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alban&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494487?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 07:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce1c5962-84e5-4e31-85ab-303db8527f4c</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;&lt;em&gt;Each satellite transmits its own&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/Ephemeris"&gt;ephemeris&lt;/a&gt;&amp;nbsp;data and common&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/GPS_signals#Almanac"&gt;almanac&lt;/a&gt;&amp;nbsp;data:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Ephemeris data - Provides information about the orbit of the satellite transmitting it. This data is valid for four hours and becomes inaccurate after that.&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Almanac data - Provides coarse orbit and status information for each satellite in the constellation. Each satellite broadcasts almanac data for all satellites.&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;---- From&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/nrf91/nrf91_features.html"&gt;Features of nRF91 Series (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494328?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 11:27:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ec1afc-1915-4407-8c4d-4f2b66b78f43</guid><dc:creator>Alban THIERRY</dc:creator><description>&lt;p&gt;Thank a lot,&lt;/p&gt;
&lt;p&gt;did you know where I can find period of time from where it&amp;#39;s valid ?&lt;/p&gt;
&lt;p&gt;Best regard,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alban&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494322?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 11:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd2f4c43-0517-4ccb-88c5-d25305dd6c72</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Alban,&lt;/p&gt;
&lt;p&gt;It is a hot start. The downloaded GPS satellites data still valid for a period of time.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494305?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 09:41:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b1ea15f-bd62-4f7b-83ab-4c155f5d04d8</guid><dc:creator>Alban THIERRY</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the answer &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Just to be sure when I do :&lt;/p&gt;
&lt;p&gt;AT#XGPS=0&lt;br /&gt;AT+CFUN=21&lt;/p&gt;
&lt;p&gt;do this reset&amp;nbsp; delete the navigation data and need to do the cold start cold again or it will be some hot start ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alban&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494297?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 09:07:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f32a3405-5d71-4cc2-9010-a08141820335</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Alban,&lt;/p&gt;
[quote user="Alban THIERRY"]What sequence of AT command I need to sent&amp;nbsp; to be able to use the LTE-M and the GPS in parallel?[/quote]
&lt;p&gt;The sequence is quite clear, you get GPS fix when&lt;span&gt;&amp;nbsp;LTE modem either be completely deactivated or in&amp;nbsp;RRC idle mode&amp;nbsp;or&amp;nbsp;Power Saving Mode (PSM)&lt;/span&gt;&lt;span&gt;&amp;nbsp;when using the GNSS receiver, then send&amp;nbsp;messages though MQTT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you choose to deactivate LTE modem, the sequence can be the following.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CEREG=5
AT%XSYSTEMMODE=1,0,1,0
AT+CFUN=31
AT#XGPS=1,0,0,290
Until GPS fixed received or timeout
AT#XGPS=0
AT+CFUN=21
AT#XMQTTCFG=&amp;quot;MyMQTT-Client-ID&amp;quot;,300,1
AT#XMQTTCON=1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;test.mosquitto.org&amp;quot;,1883
AT#XMQTTPUB=&amp;quot;nrf91/slm/mqtt/topic0&amp;quot;,&amp;quot;Test message with QoS 0&amp;quot;,0,0
AT#XMQTTCON=0
Loop:
    AT+CFUN=0
    AT+CEREG=5
    AT+CFUN=31
    AT#XGPS=1,0,0,290
    Until GPS fixed received or timeout
    AT#XGPS=0
    AT+CFUN=21
    AT#XMQTTCFG=&amp;quot;MyMQTT-Client-ID&amp;quot;,300,1
    AT#XMQTTCON=1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;test.mosquitto.org&amp;quot;,1883
    AT#XMQTTPUB=&amp;quot;nrf91/slm/mqtt/topic0&amp;quot;,&amp;quot;Test message with QoS 0&amp;quot;,0,0
    AT#XMQTTCON=0&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you choose to run GNSS during PSM state, you need to make sure your network operator support PSM feature as I explained, it is not just set by CPSMS command, the sequence can be the following.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CEREG=5
AT%XSYSTEMMODE=1,0,1,0
AT+CPSMS=1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;10101010&amp;quot;,&amp;quot;00100001&amp;quot;
AT%XMODEMSLEEP=1,60000,60000
AT+CFUN=1
Rec:+CEREG: 1,&amp;quot;xxxxxxxxx&amp;quot;,&amp;quot;xxxxxxxxxxx&amp;quot;,7,0,2,&amp;quot;00100001&amp;quot;,&amp;quot;10101010&amp;quot;
AT#XMQTTCFG=&amp;quot;MyMQTT-Client-ID&amp;quot;,300,1
AT#XMQTTCON=1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;test.mosquitto.org&amp;quot;,1883
LOOP(should less than MQTT KEEP-Alive period):
    If Rec:%XMODEMSLEEP: 1,539975
        AT#XGPS=1,0,0,290
        AT#XMQTTPUB=&amp;quot;nrf91/slm/mqtt/topic0&amp;quot;,&amp;quot;Test message with QoS 0&amp;quot;,0,0&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The application logic/sequence is of course decided by you, above is just a demonstration to show how to use the commands.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494197?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 14:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fda9708-51e3-428b-bafe-0ccc03bd8605</guid><dc:creator>Alban THIERRY</dc:creator><description>&lt;p&gt;Thank for the answer, but I would to it in AT command using serial LTE modem firmware. In the future the master will receive some bluethoot message and push it also in MQTT.&lt;/p&gt;
&lt;p&gt;What sequence of AT command I need to sent&amp;nbsp; to be able to use the LTE-M and the GPS in parallel?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alban&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494185?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 14:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df459f58-2a28-447e-a8b3-df588cd7f21a</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;This discussion may help:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94449/implementing-gnss-sample-code-with-mqtt-sample-code-error"&gt;(+) implementing GNSS sample code with MQTT sample code Error. - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494141?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 12:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:084dba06-aeef-4381-ae0b-2b3256c5b125</guid><dc:creator>Alban THIERRY</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To resume my project, I would like to have the GPS coordonate every 10min (for example) and send it in a MQTT.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since the GPS and the LTE-M can&amp;#39;t work together, I try to using CPSMS (to cut the LTE-M), but it don&amp;#39;t seem to work.&lt;/p&gt;
&lt;p&gt;What do you suggest ? What sequence of command I need to sent&amp;nbsp; to be able to do this ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alban&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/494129?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 12:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fa6e62e-dbb8-468b-9aac-422f49122a8d</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Alban,&lt;/p&gt;
&lt;p&gt;Kazi is not available temporarily. I will continue to help you on this ticket.&lt;/p&gt;
[quote user=""]I don&amp;#39;t understand why but the GPS timeout after 580s instead of 290s[/quote]
&lt;p&gt;&lt;span&gt;This is properly a bug, but I need to do more test to verify, I will let you know when I figure out more information.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Just in case you did not realize, GNSS and LTE can not work at same time on nRF9160, you can refer to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/nrf91/nrf91_features.html#concurrent_gnss_and_lte"&gt;https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/nrf91/nrf91_features.html#concurrent_gnss_and_lte&lt;/a&gt;&amp;nbsp;for details.&lt;/p&gt;
[quote user=""]I don&amp;#39;t understand in the second CEREG response the Active-Time and the Periodic-TAU is not the same than the one I set with the CPSMS command. Did I configure something wrong ?[/quote]
&lt;p&gt;The actual Active-Time and Periodic-TAU&amp;nbsp;values are decided by the network, you can check the with&amp;nbsp;&lt;span&gt;AT%XMONITOR command or +CEREG notification.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;+CEREG: 5,&amp;quot;E488&amp;quot;,&amp;quot;09343C10&amp;quot;,7,,,&amp;quot;00011110&amp;quot;,&amp;quot;11100000&amp;quot; shows&amp;nbsp;the network Periodic-TAU&amp;nbsp;value is &amp;quot;11100000&amp;quot; which means PSM feature is deactivated on your network.&amp;nbsp;You can check with your network operator to confirm.&lt;/span&gt;&lt;/p&gt;
[quote user=""]My ultimate goal is to reduce the power consumption and the consumption of data.[/quote]
&lt;p&gt;This is quite general requirement for an IoT device, nRF91 is designed for this kind of application.&lt;/p&gt;
[quote user="Alban THIERRY"]&lt;p&gt;I understand for the roaming, when you say modem sleep notification, is just the LTE-M that turn off or also the GPS ?&lt;/p&gt;
&lt;p&gt;What is the difference between this method and send AT+CFUN=31 ?&lt;/p&gt;[/quote]
&lt;p&gt;AT+CFUN=31&amp;nbsp;&lt;span&gt;Activates GNSS without changing LTE.&amp;nbsp;&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/cfun_set.html"&gt;docs.nordicsemi.com/.../cfun_set.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;%XMODEMSLEEP set command subscribes and unsubscribes all types of modem sleep notifications.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/xmodemsleep_set.html"&gt;https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/xmodemsleep_set.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/493565?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2024 06:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee3b79a-75e1-45b5-880c-b573e1d44436</guid><dc:creator>Alban THIERRY</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I understand for the roaming, when you say modem sleep notification, is just the LTE-M that turn off or also the GPS ?&lt;/p&gt;
&lt;p&gt;What is the difference between this method and send AT+CFUN=31 ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alban&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CSCON and GPS timer</title><link>https://devzone.nordicsemi.com/thread/493389?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 11:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66abc346-8370-4383-a8ff-356177c83b7e</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Alban,&lt;/p&gt;
&lt;p&gt;When the device is roaming which can affect PSM, some networks treat roaming devices different in regard to PSM.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&amp;#39;&amp;#39;&lt;span&gt;Also I&amp;#39;m not sure how the CPSMS command work. I don&amp;#39;t understand how the MQTT can wake up the modem part and ask for a synchronization&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can use the proprietary&amp;nbsp;&lt;/span&gt;&lt;span&gt;%XMODEMSLEEP&lt;/span&gt;&lt;span&gt;&amp;nbsp;command to subscribe modem sleep notifications. Based on the&amp;nbsp;&lt;/span&gt;&lt;span&gt;%XMODEMSLEEP&lt;/span&gt;&lt;span&gt;&amp;nbsp;indications, the application can optimize its power efficiency by synchronizing its operations with the sleep and wake-up events of the modem and the radio activity and inactivity.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can look at this link &lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/mob_termination_ctrl_status/xmodemsleep.html#ariaid-title1"&gt;Modem sleep notification %XMODEMSLEEP (nordicsemi.com)&lt;/a&gt;&amp;nbsp;about modem sleep notification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>