<?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>sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76772/sync-using-gps---nrf9160</link><description>Hi 
 in communication networks, GPS is often us to sync network elements and to get accurate timing. 
 with nRF9160 MFW 1.3, &amp;quot;GPS time based configurable IO-pin / pulse&amp;quot; is available; with 1pps pulse. 
 To this regard: 
 
 where is best documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Aug 2021 12:39:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76772/sync-using-gps---nrf9160" /><item><title>RE: sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/thread/325513?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 12:39:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae7112b2-0147-473c-8212-b2a6ab50cb4d</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Thanks. Second point is what I was looking at.&amp;nbsp;&lt;br /&gt;I will close the ticket&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/thread/325506?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 12:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81e08a1d-1704-4872-a2a1-0a6b33ede2e9</guid><dc:creator>Kaja</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Marcus is out of office, but here are some info back from the R&amp;amp;D team:&lt;/p&gt;
[quote user="nLorami"]Using cellular, there is the&amp;nbsp;%XTIME command to get unsolicited tiemstamp, but this to me is not necessary&amp;nbsp;very accurate and some networks may not send this information, correct?[/quote]
&lt;p&gt;&amp;nbsp;-&amp;nbsp;&lt;span&gt;This is our understanding also.&lt;/span&gt;&lt;/p&gt;
[quote user="nLorami"]--&amp;gt; if I set the pulse to happen at a precise time, (let&amp;#39;s say at 12pm UTC every day; if possible?), which reference timing will be used to trigger this action? will it be at 12pm based on GPS?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;-&amp;nbsp;&lt;span&gt;This is exactly what can be done with the 1PPS feature, and it will use the GPS time (converted to UTC) to trigger the action. There are several options to trade-off between accuracy and power consumption (all of them will be accurate from millisecond level down to tens of nanoseconds).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kaja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/thread/319828?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 13:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:105ab022-e72e-4415-9c97-edff7f47ce98</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Lorenzo,&lt;/p&gt;
&lt;p lang="en-GB"&gt;I again have to check with the modem team here. Answer can be delayed again, due to most of the experts are on summer vacation currently.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/thread/319734?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 09:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b18233f-fb8b-4d8f-8ec8-f455637115b0</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Still not clear to me on how to use this or a combination of cellular and GPS to get an accurate and sync timestamp across all my devices, no matter which network I am using.&amp;nbsp;&lt;br /&gt;Using cellular, there is the&amp;nbsp;%XTIME command to get unsolicited tiemstamp, but this to me is not necessary&amp;nbsp;very accurate and some networks may not send this information, correct?&lt;br /&gt;&lt;br /&gt;I am wondering if there is any other way to get an accurate timestamp combining cellular and GPS? could the 1PPS help?&lt;/p&gt;
&lt;p&gt;in documentation shared by you, I can read: &amp;quot;&amp;nbsp;&lt;span&gt;It is also possible to configure the pulses to start at a specific date and time. Instead of repeating pulses, 1PPS can also be used in a one-time pulse mode, &lt;span style="text-decoration:underline;"&gt;where only a single pulse is given at the specified time&lt;/span&gt; or as soon as GNSS gets a fix.&amp;quot;&lt;br /&gt;&lt;br /&gt;--&amp;gt; if I set the pulse to happen at a precise time, (let&amp;#39;s say at 12pm UTC every day; if possible?), which reference timing will be used to trigger this action? will it be at 12pm based on GPS?&amp;nbsp;&lt;br /&gt;Or do you have better way to suggest to have same accurate and sync timestamp across all devices?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lorenzo&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/thread/318640?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 12:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e854c6-dd3e-457e-8fb8-5787e62f951f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Lorenzo,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My apologies for the delayed answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First of all, what should be indicated is that we currently have two ways to control a GNSS module, via legacy &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrfxlib/nrf_modem/doc/api.html#socket-api"&gt;Socket interface&lt;/a&gt; and NCS 1.6.0 introduced &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrfxlib/nrf_modem/doc/gnss_interface.html#gnss-interface"&gt;GNSSv2 API&lt;/a&gt;. All new MFW 1.3.0 GNSS features are only supported in GNSSv2 API. No intent to add further support to legacy Socket Interface.&lt;/p&gt;
[quote user=""]where is best documentation to read more about this functionality (how to set it up)[/quote]
&lt;p&gt;Some documentation in nrfxlib 1.6.0 about 1PPS:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For controlling enable/disable of 1PPS, normal GNSS operation has to be stopped.&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrfxlib/nrf_modem/doc/gnss_interface.html#stopping-gnss" rel="noopener noreferrer" target="_blank"&gt;GNSS interface — nrfxlib 1.6.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;I.e. first configure and start 1PPS followed by starting GNSS operation. Once the first fix has been achieved 1PPS pulse is outputted&lt;/li&gt;
&lt;li&gt;For power save it&amp;#39;s possible to keep 1PPS enabled and rather accurate with TCXO timing source (more power consumed in sleep mode) or if accuracy degradation is allowed then RTC (less power consumed in sleep mode).&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrfxlib/nrf_modem/doc/gnss_interface.html#sleep-timing-source" rel="noopener noreferrer" target="_blank"&gt;GNSS interface — nrfxlib 1.6.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrfxlib/nrf_modem/doc/api.html#group__nrf__modem__gnss_1ga6cecc32218d28b050301875fdc57361f" rel="noopener noreferrer" target="_blank"&gt;API documentation — nrfxlib 1.6.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrfxlib/nrf_modem/doc/gnss_interface.html#pps" rel="noopener noreferrer" target="_blank"&gt;GNSS interface — nrfxlib 1.6.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;
[quote user=""]for which use case this has been introduced?[/quote]
&lt;p&gt;&amp;nbsp;In Generally 1PPS can be used where ever accurate time sync is needed&lt;/p&gt;
[quote user=""]how can I use it in my application to sync all devices?&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;example: if I want to make sure that all my devices have the same time and they are in sync, how can I use it?&lt;br /&gt;To have the same time on all devices, I guess they need to receive the Time of the Day at first (or from time to time) and then keep the sync using the 1pps pulse? or how?&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;ul&gt;
&lt;li&gt;One device needs to have GNSS fix to output 1PPS initially via COEX1 PIN. After this my knowledge of the HW inputs is rather limited on preview kits, i.e. which input to use for external clock source and what Zephyr RTOS side RTC. Would monitor the external clock?&lt;/li&gt;
&lt;li&gt;As mentioned originating 1PPS device can either be kept constantly in GNSS ON state to output the pulse or put to sleep mode and use RTC/TCXO to maintain 1PPS pulse output. Eventually the latter will start to degrade over time but periodical sync/GNSS ON will synchronise the 1PPS again with satellite clocks.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope this answers your questions!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sync using GPS - nRF9160</title><link>https://devzone.nordicsemi.com/thread/317371?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 05:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971a6be4-4842-4e0b-9e95-8aca19e651ed</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Hello Lorenzo,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;I have to check this with our modem team and come back to you!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>