<?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 measurement with RSSI in nrf52 and android device.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12841/distance-measurement-with-rssi-in-nrf52-and-android-device</link><description>hello everyone..
i am using nrf52 PCA10040 board with custom application.
in that i want to estimate distance between android device and PCA10040 board when connected.
i am getting RSSI in my app.
i want to read distance in app.
i am using softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2016 19:37:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12841/distance-measurement-with-rssi-in-nrf52-and-android-device" /><item><title>RE: distance measurement with RSSI in nrf52 and android device.</title><link>https://devzone.nordicsemi.com/thread/48842?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2016 19:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de18a24e-9496-4b5d-897a-d48ebf72eee4</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;There is no simple, straightforward formula to directly calculate distance from RSSI.&lt;/p&gt;
&lt;p&gt;The best you can hope for is really just a very rough indication of &amp;quot;near&amp;quot; or &amp;quot;far&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: distance measurement with RSSI in nrf52 and android device.</title><link>https://devzone.nordicsemi.com/thread/48841?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2016 13:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:603bb193-b2a2-4c29-8798-e19da8403f83</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When using S132, you can use &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v2.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=1_3_0_1_0_2_1_2_23&amp;amp;anchor=ga51f25b5b74290f91aa92cb47dc8d4276"&gt;sd_ble_gap_rssi_get(..)&lt;/a&gt; to get the RSSI for the last connection event.
Using sd_ble_gap_rssi_get(..) requires that you first have started RSSI reporting using &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v2.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=1_3_0_1_0_2_1_2_24&amp;amp;anchor=gac369253b7f5ce0fc0093a6133faa791f"&gt;sd_ble_gap_rssi_start(..)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;sd_ble_gap_rssi_start(..) will initiate &amp;quot;continuous&amp;quot; RSSI update when the RSSI changes, through the event BLE_GAP_EVT_RSSI_CHANGED, see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v2.0.0%2Fgroup___b_l_e___g_a_p___r_s_s_i___f_i_l_t___m_s_c.html&amp;amp;cp=1_3_0_1_0_2_1_3_9"&gt;this&lt;/a&gt; message sequence chart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>