<?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>nRF9160DK UART-controlled GPS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76245/nrf9160dk-uart-controlled-gps</link><description>nRF SDK version is 1.5.1 
 upgrade modem fw to 1.3.0 
 Is there any way to do software reset on GPS modem? I have ran the gps example and I notice that &amp;quot;printk&amp;quot; sends everything via UART TX. Is there any function/API to utilize the RX data on the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Jun 2021 13:50:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76245/nrf9160dk-uart-controlled-gps" /><item><title>RE: nRF9160DK UART-controlled GPS</title><link>https://devzone.nordicsemi.com/thread/315164?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 13:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02f7ba4f-703b-4d02-b2c3-d60651427c85</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello again,&lt;/p&gt;
&lt;p lang="en-GB"&gt;I got some feedback from our modem team:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;“&lt;span&gt;&lt;span&gt;I&lt;em&gt;n our implementation GNSS is part of the modem and it&amp;#39;s not possible to reset GNSS separately.&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;em&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;For cold/warm start testing the delete mask in start and stop commands (in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_gnss_nv_data_delete"&gt;GNSS socket API&lt;/a&gt;) is the way to go. To perform a cold start, the delete mask should be set to 0x7f. This clears everything from GNSS except the TCXO offset, which is an GNSS internal value which is not acquired from satellites or A-GPS. Setting the delete mask to 0x01 clears only ephemeris data and can be used to simulate a warm start. Please have a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#delete-bitmask-values"&gt;GNSS interface documentation &lt;/a&gt;for all the bit values.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;em&gt;Cold start cases can also be run by resetting the device. However, in this case the TCXO offset is lost, which may affect TTFF especially when A-GPS is used. This doesn&amp;#39;t reflect the normal use case where device remains powered on.&lt;/em&gt;”&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 hope this answers your question!&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><item><title>RE: nRF9160DK UART-controlled GPS</title><link>https://devzone.nordicsemi.com/thread/315061?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 09:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85bfaf3c-e064-4d21-87ed-7d2e1c5589bd</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html#bluetooth-peripheral-uart"&gt;Peripheral UART&lt;/a&gt; application demonstrates the usage of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/uart.html#uart"&gt;Zephyr UART&lt;/a&gt; library. You have to pick the UART snippets you would like to use and implement/modify them towards your GPS application.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regarding the reset of the GPS socket, I have to check with our modem team if this is possible to do via the application layer.&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: nRF9160DK UART-controlled GPS</title><link>https://devzone.nordicsemi.com/thread/314939?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 14:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8b7a698-e1e2-41a4-bdc9-868c85796baa</guid><dc:creator>bc_metco</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason I want to reset the modem is to test the GPS module in a fully automatic environment, with proper reset mode been set up, I will collect TTFF data from the test bench.&lt;/p&gt;
&lt;p&gt;I thought a controllable reset (via UART) should be a standard feature, since all GPS module manufacturers (uBlox, Qectel, etc) have it ready with their products. e.g. ublox has its own UBX protocol (thru serial comms) to support the configuration.&lt;/p&gt;
&lt;p&gt;the UART example you mentioned is for BlueTooth module and it use NUS service. I wonder if the &amp;quot;printk&amp;quot; function in gps example also uses NUS service? Is there any conflict if I initialized the same UART port with printk?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1623420005253v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK UART-controlled GPS</title><link>https://devzone.nordicsemi.com/thread/314889?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 11:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b3ad8c-a460-483c-b86a-0b857963fb1a</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Bo,&lt;/p&gt;
&lt;p lang="en-GB"&gt;you can &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_gnss_start"&gt;start&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_gnss_stop"&gt;stop&lt;/a&gt; the GPS socket. Additionally you can &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html#c.nrf_modem_gnss_nv_data_delete"&gt;delete GNSS data&lt;/a&gt; to trigger cold/warm starts.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Just out of curiosity: why do you want to reset the modem?&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regarding the UART: Yes, you can use the RX interface of the UART peripheral to communicate with the device. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html#bluetooth-peripheral-uart"&gt;Peripheral UART &lt;/a&gt;sample might be of interest for you here, as it shows the usage of the API.&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this will help you!&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></channel></rss>