<?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>Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12067/can-it-compare-two-rssis-in-nrf51822</link><description>Hi, 
 I use nRF51822. 
 Can it judge a UID of higher RSSI level by comparing the RSSI of two advertizers with Central mode in nRF51882?
I want to know a UID of advertiser that has higher RSSI. 
 For Example, 
 C=Central,
A1=Advertiser1,
A2=Advertiser2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2016 06:57:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12067/can-it-compare-two-rssis-in-nrf51822" /><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45678?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2016 06:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47620e28-fee7-4d77-a818-604803bb9f61</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I&amp;#39;m happy to help. If you are satisfied with my answer I would appreciate it if you could accept it by clicking the circle checkmark to the left of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45677?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 23:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a53d163-aa0f-4d91-baa9-6aa3ba345988</guid><dc:creator>Toru</dc:creator><description>&lt;p&gt;Thank you for quick reply.
I will check the Nordic UART Service Client example and the refered SDK.&lt;/p&gt;
&lt;p&gt;Thanks for any helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45676?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 07:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:286c704c-508d-4caa-a2af-14ad9cd8a66e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You can find the code for the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fble_sdk_app_nus_c.html&amp;amp;cp=4_0_0_4_1_0_3"&gt;Nordic UART Service Client&lt;/a&gt; example that I refer to in &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v11.x.x/"&gt;SDK version 11 alpha&lt;/a&gt;. It is located under &amp;lt;SDK folder&amp;gt;\examples\ble_central\ble_app_uart_c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45675?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 02:38:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:286363fd-352e-46ef-aacd-e0c6c6186b4d</guid><dc:creator>Toru</dc:creator><description>&lt;p&gt;Thank you for your answer.
I could not find this sample code.
How can I find a sample code when I need an other sample code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45674?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 09:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a2d6db-603d-42a2-8a1c-8e11d25941c3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, when you have decided which of the advertisers has the highest RSSI, setting a GPIO accordingly is trivial. You can configure a GPIO as output using &lt;code&gt;nrf_gpio_cfg_output()&lt;/code&gt;, set it using &lt;code&gt;nrf_gpio_pin_set()&lt;/code&gt; and clear it using &lt;code&gt;nrf_gpio_pin_clear&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45673?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 09:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c83f18-8198-4fbc-ba85-82eb7ef63019</guid><dc:creator>Toru</dc:creator><description>&lt;p&gt;Thank you for your answer.
I have one more question.&lt;/p&gt;
&lt;p&gt;Can it get an output signal using a GPIO port of nRF51882 after it have gotten the address and RSSI of an Advertiser by BLE_GAP_EVT_ADV_REPORT?&lt;/p&gt;
&lt;p&gt;For Example,
A1=Advertiser1, A2=Advertizer2,
Can it get a high signal level from a GPIO port, when the RSSI of A1 was higher than A2?&lt;/p&gt;
&lt;p&gt;Thank for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can it compare two RSSIs in nRF51822?</title><link>https://devzone.nordicsemi.com/thread/45672?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6444da1a-94bc-463b-adae-da6a9fb0cb31</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You will get a &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v1.0.0/group___b_l_e___g_a_p___e_n_u_m_e_r_a_t_i_o_n_s.html#ggada486dd3c0cce897b23a887bed284fefa41ba498a9fda3e1cd345f4454a582bd9"&gt;&lt;code&gt;BLE_GAP_EVT_ADV_REPORT&lt;/code&gt;&lt;/a&gt; event whenever an advertisement is received. The advertisement report (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/structble__gap__evt__adv__report__t.html"&gt;&lt;code&gt;ble_gap_evt_adv_report_t&lt;/code&gt;&lt;/a&gt;) will contain both the peer address and RSSI. Using this information, you can compare the RSSI of various advertisers.&lt;/p&gt;
&lt;p&gt;You can see an example of how advertisement data is used this in the &lt;code&gt;on_ble_evt()&lt;/code&gt; function in main.c of the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/ble_sdk_app_nus_c.html?cp=4_0_0_4_1_0_3"&gt;Nordic UART Service Client&lt;/a&gt; example (though this does not use the RSSI).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>