<?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>Read RSSI value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27453/read-rssi-value</link><description>Hello, 
 I&amp;#39;m using 2 nRF58840 dev kit with SDK 14.2.0.
I&amp;#39;m trying to read the RSSI value of the second board from the first board using LE Coded PHY in both modules. 
 I started with the &amp;quot;ATT_MTU Throughput&amp;quot; example which worked correctly when choosing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Nov 2017 09:16:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27453/read-rssi-value" /><item><title>RE: Read RSSI value</title><link>https://devzone.nordicsemi.com/thread/108437?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 09:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ddd5220-03f5-4904-bd7b-24ba70778b92</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Thank you Martin, now it is working for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read RSSI value</title><link>https://devzone.nordicsemi.com/thread/108436?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 09:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a20cbad8-ca54-45d5-beff-03486c6fa1f3</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Q1: I didn&amp;#39;t read your code carefully enough. You should use &lt;code&gt;p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.rssi&lt;/code&gt; to get the RSSI. Then you will get it in every adv report, not just the scan reports.&lt;/p&gt;
&lt;p&gt;Q3: Not really. If the phone doesn&amp;#39;t support 2Mbps or coded phy it is simply not physically possible. It is possible though, that your module is designed to advertise on 1Mbps phy and then switch to coded phy after you have connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read RSSI value</title><link>https://devzone.nordicsemi.com/thread/108435?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 16:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d5a22a-2294-496b-a8d5-9f5ca62f771a</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Thinking about it, RSSI values can be positive. It is just that i&amp;#39;m not used to have such a strong signal with the modules I used before!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read RSSI value</title><link>https://devzone.nordicsemi.com/thread/108434?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 15:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7bd7c35-5acc-4247-9251-cf0aca1bc5d9</guid><dc:creator>Chaabane</dc:creator><description>&lt;p&gt;Hi Martin,
Thank you for the feedback.&lt;/p&gt;
&lt;p&gt;Q1: without &lt;code&gt;scan_rsp&lt;/code&gt; checking I get RSSI values : 0, 2 and 6. They don&amp;#39;t look like real RSSI in dBm ?. That&amp;#39;s why I put this condition for testing purposes. so the real question is why I&amp;#39;m receiving these values of RSSI  and also is it normal that the RSSI si declared as signed char ?&lt;/p&gt;
&lt;p&gt;Q2 : Ok, that&amp;#39;s what I thought.&lt;/p&gt;
&lt;p&gt;Q3: When using my phone (doesn&amp;#39;t have bleutooth 5) with nRF connect App I am able to see both modules. I verified that the PHY used in both modules is LE coded by using &amp;#39;config print&amp;#39; command in PuTTY.  Does that make sense ?&lt;/p&gt;
&lt;p&gt;Q4: OK.&lt;/p&gt;
&lt;p&gt;Thank you.
Chaabane&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read RSSI value</title><link>https://devzone.nordicsemi.com/thread/108433?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 15:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b5cd48-3339-4d2e-9546-82d6c5f28571</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Q1: I&amp;#39;m not sure if I understand why you use&lt;code&gt;if ( p_gap_evt-&amp;gt;params.adv_report.scan_rsp )&lt;/code&gt;. Do you really only want to print RSSI on scan responses? You are not necessarily getting a scan response from all devices. Why don&amp;#39;t you simply use &lt;code&gt;NRF_LOG_INFO(&amp;quot;rssi =%d dBm&amp;quot;,p_gap_evt-&amp;gt;params.rssi_changed.rssi);&lt;/code&gt;, and no if(...) in each BLE_GAP_EVT_ADV_REPORT event? This would print the RSSI from every single received advertising packet.&lt;/p&gt;
&lt;p&gt;Q2: The event will occur each time a device is discovered.&lt;/p&gt;
&lt;p&gt;Q3: Yes. Devices on different physical layers cannot hear each other.&lt;/p&gt;
&lt;p&gt;Q4: You should use the BLE_GAP_EVT_ADV_REPORT event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>