<?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>Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99730/acquiring-pgps-data-using-a-proxy-server</link><description>Hi, at the moment for testing we connect direct to the nrfCloud to collect pgps data using a developer account. 
 We now have a proxy server in place for production units, and I would like to collect the PGPS data using the proxy server. 
 
 What changes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 May 2023 07:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99730/acquiring-pgps-data-using-a-proxy-server" /><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/428068?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 07:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4067b9c-080a-414b-8989-87adf426bd60</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user="Sirjee"]HI, I have read the Cloud to Cloud setup, it explains what the proxy server should do, but not what the nrf9160 device should do differently when connecting via a proxy server.[/quote]
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The documentation does not address the device side, because that is entirely up to the&amp;nbsp;you. Cloud-to-cloud means that the device will connect to&amp;nbsp;your cloud, not nRF Cloud. Their cloud could be anything -- Azure, AWS, or what have you.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;What the device side does need is some way for&amp;nbsp;your&amp;nbsp;device/cloud interface to request P-GPS data with parameters provided by the P-GPS library, and then once data is received, for the device to download and utilize the P-GPS data.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;This is explained here:&lt;/div&gt;
&lt;div&gt;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrf/libraries/networking/nrf_cloud_pgps.html#configuration" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/nrf_cloud_pgps.html#configuration" rel="noopener noreferrer" target="_blank"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/nrf_cloud_pgps.html#configuration&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/latest/nrf/libraries/networking/nrf_cloud_pgps.html#transport-mechanisms" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/nrf_cloud_pgps.html#transport-mechanisms" rel="noopener noreferrer" target="_blank"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/networking/nrf_cloud_pgps.html#transport-mechanisms&lt;/a&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;look at &lt;code&gt;CONFIG_NRF_CLOUD_PGPS_TRANSPORT_NONE&lt;/code&gt; -- this allows the&amp;nbsp;you&amp;nbsp;to provide a custom interface for sending the P-GPS parameters to your cloud and for receiving from your cloud the hostname and path to the P-GPS binary data;&amp;nbsp;your cloud would obtain that using its proxy to the nRF Cloud P-GPS service&lt;/li&gt;
&lt;li&gt;look at &lt;code&gt;CONFIG_NRF_CLOUD_PGPS_DOWNLOAD_TRANSPORT_CUSTOM&lt;/code&gt; vs. &lt;code&gt;CONFIG_NRF_CLOUD_PGPS_DOWNLOAD_TRANSPORT_HTTP&lt;/code&gt; -- these let the&amp;nbsp;you select how the actual P-GPS binary data will be downloaded to the device; if&amp;nbsp;your cloud service provides a hostname and path to the file on&amp;nbsp;your server,&amp;nbsp;you can use &lt;code&gt;CONFIG_NRF_CLOUD_PGPS_DOWNLOAD_TRANSPORT_HTTP&lt;/code&gt;; otherwise,&amp;nbsp;you need to use _CUSTOM and implement that interface yourselves.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Sirjee"]A follow up to my previous question, what should the HTTP header look like, in terms of the JWT Bearer authentication that is used when its a direct cloud to cloud.[/quote]
&lt;p&gt;Here is our documentation to what JWTs should look like in the header&lt;br /&gt;&lt;a href="https://docs.nrfcloud.com/APIs/REST/RESTIntro/#using-jwts-in-requests"&gt;https://docs.nrfcloud.com/APIs/REST/RESTIntro/#using-jwts-in-requests&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/427649?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 06:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2fd061e-8784-4d60-87a0-4b8e92c4cef7</guid><dc:creator>Sirjee</dc:creator><description>&lt;p&gt;A follow up to my previous question, what should the HTTP header look like, in terms of the JWT Bearer authentication that is used when its a direct cloud to cloud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/427545?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 13:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12150711-29a1-4533-837a-41a7de77aafc</guid><dc:creator>Sirjee</dc:creator><description>&lt;p&gt;HI, I have read the Cloud to Cloud setup, it explains what the proxy server should do, but not what the nrf9160 device should do differently when connecting via a proxy server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/427417?ContentTypeID=1</link><pubDate>Thu, 25 May 2023 08:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5d6847b-09d9-420d-946d-cf3b43b7a638</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/sirjee"&gt;Sirjee&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My answer does not seem to be visible in the public view. Can you please verify that you have seen this message?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685002656557v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I tried searching in the documentation and online, but nothing seems to be clear as to how this will work.[/quote]
&lt;p&gt;In what documentation have you searched? Have you looked at the nRF Cloud &lt;a href="https://docs.nrfcloud.com/LocationServices/LocationServicesOverview/"&gt;documentation on Location Services&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Do you want your server to connect to nRF Cloud in order to use Location Services? If so, have a look at the &lt;a href="https://docs.nrfcloud.com/LocationServices/CloudToCloud/"&gt;Cloud to Cloud setup documentation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/427283?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 14:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d00e8e6-7cf8-4376-a825-8ebfd6da87ca</guid><dc:creator>Sirjee</dc:creator><description>&lt;p&gt;Hi it would be nice to get a response to my request above, repeated here.&lt;br /&gt;&lt;br /&gt;What changes should be made in the rest api code to connect through a proxy server to retrieve AGPS and PGPS data.&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/425714?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 18:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc4b6b00-36f8-405b-95c7-3da9ec892879</guid><dc:creator>Sirjee</dc:creator><description>&lt;p&gt;We are very close to production and I want to make little changes as possible.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Also I have just taken this project over, and it is not not clear at the moment as to how I move to v2.3.0 without making too many changes.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Are the devicetree structure compatible etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What changes are required to move to v2.3.0, I would actually prefer that if the changes are minimal risk to my deliverables.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Acquiring PGPS data using a proxy server</title><link>https://devzone.nordicsemi.com/thread/425645?ContentTypeID=1</link><pubDate>Mon, 15 May 2023 13:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0e359a-1418-41f5-b62d-81e9ea51f0fe</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will have a look into your case. Could you please elaborate more on exactly how your application will work? Is there a reason for using nRF Connect SDK v1.9.0? Current version is at v2.3.0 and includes more fixes, etc.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>