<?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>Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44166/simulated-gps-data-on-nrf9160-dk-asset-tracker-example</link><description>I found lines 766 - 768 
 CONFIG_GPS_SIM_DEV_NAME=&amp;quot;GPS_SIM&amp;quot; CONFIG_GPS_SIM_BASE_LATITUDE=6325280 CONFIG_GPS_SIM_BASE_LONGITUDE=1026201 
 in \ncs\nrf\samples\nrf9160\asset_tracker\build\zephyr\.config 
 
 Please let me know how to change to the location</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2019 00:35:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44166/simulated-gps-data-on-nrf9160-dk-asset-tracker-example" /><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/174400?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 00:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7872923a-8a10-4af0-8c6d-3f3fe15911b8</guid><dc:creator>iotlight</dc:creator><description>&lt;p&gt;Yes, it works now.&amp;nbsp; Thank you very much.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Asset-Tracker-LA-Coord-Worked.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/174395?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 23:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1c52210-b4c9-4253-babc-8c06357927a5</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// LA 34.05217,-118.14622
#define CONFIG_GPS_SIM_BASE_LATITUDE  3405217
#define CONFIG_GPS_SIM_BASE_LONGITUDE 1181462 // -ve so &amp;#39;W&amp;#39;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;LA is West, so instead of using &amp;#39;-&amp;#39; and &amp;#39;E&amp;#39;, use instead &amp;#39;W&amp;#39;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	snprintf(tmp_str, GPS_NMEA_SENTENCE_MAX_LENGTH,
//		&amp;quot;$GPGGA,%02d%02d%02d.200,%8.3f,N,%09.3f,E,1,&amp;quot;
		&amp;quot;$GPGGA,%02d%02d%02d.200,%8.3f,N,%09.3f,W,1,&amp;quot; // &amp;lt;== Use &amp;#39;W&amp;#39; instead of &amp;#39;E&amp;#39; and negative numbers
		&amp;quot;12,1.0,0.0,M,0.0,M,,*&amp;quot;, hour, minute, second, lat, lng);
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/174366?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 17:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44434241-b2a4-4a7c-bbd3-6234432c00f3</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;We have started to investigate the issue. At the moment I have no ETA on when it&amp;nbsp;will&amp;nbsp;be fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/174169?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 08:31:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1322197e-88c1-4791-898a-26a2c5581ee3</guid><dc:creator>iotlight</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any progress on this issue?&amp;nbsp; We are planning our demo early next week, it will be nice to show Los Angeles in the map.&amp;nbsp; Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/173697?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 12:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2eefcd0-6e89-4f02-9267-c1b48f15c925</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve looked at the NMEA sentences in your log on both the pictures, and they appear to be correct, we are looking into the issue with the map.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/173576?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 00:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc6e06cd-a967-4fb9-9d94-0525c6e94d3a</guid><dc:creator>iotlight</dc:creator><description>&lt;p&gt;I used Los Angeles decimal coordinates&amp;nbsp;&lt;strong&gt;34.0522308, -118.2436829&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Los-Angeles-Coordinates.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;The messages seems correct, but&amp;nbsp;the map is shown Japan, not Los Angeles, California.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Asset-Tracker-Japan.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Below is using Los Angeles DMS Coordinates as you suggested -11814621 in longitude&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Asset-Tracker-w-DMS-Coord.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/173569?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 20:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb05930-fcac-4e69-ac4c-a9a313c7bafe</guid><dc:creator>Markus Tacker (he/him)</dc:creator><description>&lt;p&gt;The correct values&amp;nbsp;for longitude is -11814.622&lt;/p&gt;
&lt;p&gt;The entire NMEA sentence for the coordinates is&lt;/p&gt;
&lt;p&gt;$GPGGA,134708.200,3405.217,N,-11814.622,E,1,12,1.0,0,0,M,0,0,M,,*45&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/173501?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 13:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e208153-9621-45b8-8a4d-00240f2e54c2</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m unsure on whats happend with the map and I have reported this to the development team.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/173171?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 08:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d608aae5-f053-4111-a5d9-3c1e033b693a</guid><dc:creator>iotlight</dc:creator><description>&lt;p&gt;I followed your instruction to change lines 23 and 34 in file&amp;nbsp;\ncs\nrf\lib\gps_sim\Kconfig&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Kconfig.txt"&gt;devzone.nordicsemi.com/.../Kconfig.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems like it showed the LA lat and long in the Messages, but&amp;nbsp;I lost the map&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Asset-Tracker-Kconfig_5F00_nrf.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know how to make the map shown Los Angeles, California.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulated GPS data on nRF9160 DK Asset Tracker Example</title><link>https://devzone.nordicsemi.com/thread/173162?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 07:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a339dc47-1be4-49aa-beee-3cfcdc12c018</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/reference/kconfig/CONFIG_GPS_SIM_BASE_LATITUDE.html#cmdoption-arg-config-gps-sim-base-latitude"&gt;CONFIG_GPS_SIM_BASE_LATITUDE&lt;/a&gt; is calculated by the following steps:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Start-point latitude for simulated GPS data, from which the generated data will continue.
Calculated by deg * 100000 + minutes * 1000, for example 63 deg 25.280’N will be 6325280. 
Positive values are North, while negative values are South.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So 32.0522&lt;span&gt;° N will be 3200000 + 5220 = 3205220&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/reference/kconfig/CONFIG_GPS_SIM_BASE_LONGITUDE.html#cmdoption-arg-config-gps-sim-base-longitude"&gt;CONFIG_GPS_SIM_BASE_LONGITUDE &lt;/a&gt;is calculated by the following steps:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;Start-point longitude for simulated GPS data, from which the generated data will continue. 
Calculated by deg * 100000 + minutes * 1000, for example 10 deg 26.201’E will be 1026201. 
Positive values are East, while negative values are West.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So 118.2437° W will be 11800000 + 2437000 = -14237000 since West are negative values.&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;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>