<?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>How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16814/how-to-know-location-using-lns-location-and-navigation-service-sdk-example-speed-and-location-are-combined-and-encrypted</link><description>we are using nRF52-dk SDK examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Oct 2016 12:26:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16814/how-to-know-location-using-lns-location-and-navigation-service-sdk-example-speed-and-location-are-combined-and-encrypted" /><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64337?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 12:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65fd3daf-ac57-486e-8937-5f927b17e6c8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can decode using Chapter 3.2 in the &lt;a href="https://www.bluetooth.com/specifications/adopted-specifications"&gt;LNS spec&lt;/a&gt;, and &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.location_and_speed.xml"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When you enable the notifications you will receive the initial values for the characteristic (examine initial_lns_location_speed in the code).&lt;/p&gt;
&lt;p&gt;In nRF Connect you will receive:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Attribute value changed, handle: 15, value (0x): 07-02-0C-00-34-09-00-2C-76-DA-F9-22-1D-D6-23
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The first 16 bits are the flag field. The first 6 bits tells you what fields that are present.&lt;/p&gt;
&lt;p&gt;0x07 = 0b00000111 -&amp;gt; Instantanours Speed, Total Distance, Location present&lt;/p&gt;
&lt;p&gt;0x02 = 0b00000010 -&amp;gt; Speed and Distance format is 3D&lt;/p&gt;
&lt;p&gt;The next 16 bits is the instantaneous speed (0x000C)&lt;/p&gt;
&lt;p&gt;The next 24 bits is the total distance (0x000934)&lt;/p&gt;
&lt;p&gt;The next 32 bits is the location - latitude (0xF9DA762C)&lt;/p&gt;
&lt;p&gt;The next 32 bits is the location - longitude (0x23D61D22)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64335?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 09:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e40457-2025-41fa-ab03-0d48d01aab54</guid><dc:creator>Webmobi</dc:creator><description>&lt;p&gt;in code all values(battery,latitude and longitude,speed, navigation, and positional quality) is initialized. this values are transmitted. battery value is incremented or decremented 1 and speed is increased 1.2m every time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64331?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2016 16:58:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:816bd42d-dc30-4308-8d8d-d663aa8be8c1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What did you understand?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64332?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2016 16:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa0dc097-c522-425f-b2d7-725ad93dad7a</guid><dc:creator>Webmobi</dc:creator><description>&lt;p&gt;I try to do it, I only understood partially. Can u help me with it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64333?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2016 12:09:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f2bb93f-7485-4f28-9da2-75f657c5ac01</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you read the spec and/or examined the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64334?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2016 05:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:605ed613-5a51-4106-b6b6-bee302903011</guid><dc:creator>Webmobi</dc:creator><description>&lt;p&gt;when i load the lns example into nordic kit and use nordic connect app to read the data sent using beacons, we can read location and speed, navigation,LN connect. how to calculate location , speed and location is combined and in hex format&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to know location using LNS(location and Navigation Service) sdk example? speed and location are combined and encrypted</title><link>https://devzone.nordicsemi.com/thread/64336?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2016 11:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7af476a7-688a-434d-8490-efce23200077</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand. Could you edit your question and elaborate on what you want to achieve? &lt;a href="https://www.bluetooth.com/specifications/adopted-specifications"&gt;The spec&lt;/a&gt; and the code should explain how to interpret the location and speed characteristic value. I don&amp;#39;t see what encryption has to do with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>