<?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 nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72792/distance-between-two-nrf52832</link><description>hello 
 i am using two customised nrf52832 and trying to get the maximum distance between two boards people suggested me this example https://github.com/NordicPlayground/nRF52-ble-long-range-demo but i found that nrf52832 supports only 4 dbm so i cant</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 21:03:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72792/distance-between-two-nrf52832" /><item><title>RE: distance between two nrf52832</title><link>https://devzone.nordicsemi.com/thread/300243?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 21:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3580fc1d-e47d-43a5-ad23-47ccef44fcc9</guid><dc:creator>Amanda Hsieh</dc:creator><description>[quote user="manikandanvalaguru"]1)do i have to include this function both in central and peripheral??[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check out:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54562/location-to-set-tx-power-in-advertisement-and-connection-mode-also-change-them-dynamically-at-runtime/220720#220720"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/54562/location-to-set-tx-power-in-advertisement-and-connection-mode-also-change-them-dynamically-at-runtime/220720#220720&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="manikandanvalaguru"]2)and where can i get the rssi values between the devices in central or peripheral??[/quote]
&lt;p&gt;See this post&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/19437/rssi-measurement-for-each-peripheral-s130-or-132/75493#75493"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/19437/rssi-measurement-for-each-peripheral-s130-or-132/75493#75493&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If the device is the central, it measures the RSSI based on the packet it received from the peripheral.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the device is the peripheral, it measures the RSSI based on the packet it received from the central.&lt;/span&gt;&lt;/p&gt;
[quote user="manikandanvalaguru"]3)which function i can use to get the rssi values between the devices[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span&gt;In order to measure the RSSI on a connected peripheral, you can use the SoftDevice functions&amp;nbsp;&lt;/span&gt;&lt;code&gt;sd_ble_gap_rssi_get()&lt;/code&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;code&gt;sd_ble_gap_rssi_start()&lt;/code&gt;&lt;span&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;code&gt;sd_ble_gap_rssi_stop()&lt;/code&gt;&lt;span&gt;. You can use&amp;nbsp;&lt;a title="sd_ble_gap_rssi_start" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_1_3_35#gac369253b7f5ce0fc0093a6133faa791f"&gt;sd_ble_gap_rssi_start&lt;/a&gt;&amp;nbsp;to get RSSI once you&amp;#39;re in a connection. Read more about these functions&amp;nbsp;&lt;/span&gt;&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;here&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: distance between two nrf52832</title><link>https://devzone.nordicsemi.com/thread/299735?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 10:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4e94242-c9c9-4a41-9c61-2e4ff47a17b8</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;thanks for your reply amanda as i am using two nrf52832 devices i could not use that link&amp;nbsp; what i am doing now is flashing ble_app_uart_c in one board and ble_app_uart in other and i can sucessly establish a connection between two boards and iam&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  advertising_start();
     uint32_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, 4);
&lt;/pre&gt; using this function to increase the tx power my question is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1)do i have to include this function both in central and peripheral??&lt;/p&gt;
&lt;p&gt;2)and where can i get the rssi values between the devices in central or peripheral??&lt;/p&gt;
&lt;p&gt;3)which function i can use to get the rssi values between the devices&lt;/p&gt;
&lt;p&gt;what i am trying to do is get the rssi value and print it in console how can i achieve this&lt;/p&gt;
&lt;p&gt;thanks and regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;manikandan v&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: distance between two nrf52832</title><link>https://devzone.nordicsemi.com/thread/299653?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 07:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a923d6-9240-469d-9860-f20f5a74184b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The long range mode is not supported in the nRF52832, only in the nRF52840.&amp;nbsp;&lt;/span&gt;You can refer to this &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/nrf52840-dk-range-testing-with-ble-zigbee-and-thread-protocols-at-0-4-and-8dbm-transmit-power-settings"&gt;post &lt;/a&gt;for the distance although it&amp;#39;s for nRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>