<?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>distance between two nrf51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18906/distance-between-two-nrf51</link><description>can anyone tell me how to calculate distance between two nrf51??</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jan 2017 15:06:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18906/distance-between-two-nrf51" /><item><title>RE: distance between two nrf51</title><link>https://devzone.nordicsemi.com/thread/73064?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2017 15:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:776cb696-04ec-406c-90f0-0a7fbd3f75e0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using the signal strength (i.e. RSSI) you can get a very rough estimate on the distance (for instance: close, far, further). You can use the function &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=3_7_2_1_0_2_1_2_23#ga51f25b5b74290f91aa92cb47dc8d4276"&gt;sd_ble_gap_rssi_get()&lt;/a&gt; to get the RSSI.&lt;/p&gt;
&lt;p&gt;There are several theoretical formulas (you can find a simple formula &lt;a href="http://electronics.stackexchange.com/questions/83354/calculate-distance-from-rssi/83356#83356"&gt;here&lt;/a&gt;) you can use to calculate the RSSI value into meters, but in practice the RSSI signal is too unreliable for any accurate distance measuring. There will always be too many variables affecting the measured RSSI, like radio interference, signal/multi-path reflections, and loss in the antenna layouts. So if you need accurate distance measuring, RRSI is not suited and you will have to look into other technologies.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>