<?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>RSSI Read Through HCI is always reads as 127</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110604/rssi-read-through-hci-is-always-reads-as-127</link><description>Hi , 
 I&amp;#39;m Using nRFconnect SDKV2.3.0 and in the central device i&amp;#39;m jus trying to read RSSI in connnection Callback but it&amp;#39;s always reads as 127. 
 These are my configurations to enable that 
 prj.confg --&amp;gt; CONFIG_BT_CTLR_ADVANCED_FEATURES =y and CONFIG_BT_CTLR_CONN_RSSI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 May 2024 07:24:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110604/rssi-read-through-hci-is-always-reads-as-127" /><item><title>RE: RSSI Read Through HCI is always reads as 127</title><link>https://devzone.nordicsemi.com/thread/481685?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 07:24:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a96c1b-708a-4901-8f7b-be3243eb0666</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hello, Einar. &lt;br /&gt; &lt;br /&gt;Thank you for the suggestion; it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI Read Through HCI is always reads as 127</title><link>https://devzone.nordicsemi.com/thread/480833?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 08:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:051db76c-8cfb-41d9-905d-8bcbd54d9980</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see the same on my end now. You cannot do it in the connected callback, but need to wait until that has returned. When I do it from the main loop, I get correct readings using the same code as you use, plus this way to get the default conn handle that I added in the connected callback (default_conn_handle is a uint16_t that is declared on the outside):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	int rc = bt_hci_get_conn_handle(conn, &amp;amp;default_conn_handle);
	if(rc)
	{
		printk(&amp;quot;fail getting conn handle&amp;quot;);
	}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI Read Through HCI is always reads as 127</title><link>https://devzone.nordicsemi.com/thread/480703?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 13:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dd354dd-9eb5-462e-8f5d-97a18da6606b</guid><dc:creator>Theja</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for the advise. In fact, I had&amp;nbsp;tried that one as well by getting&amp;nbsp;conn_handle in the connection callback, but the issue remains the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RSSI Read Through HCI is always reads as 127</title><link>https://devzone.nordicsemi.com/thread/480695?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 12:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3df71fdb-daae-455f-8f78-4687725fdba2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In this snippet I do not see that you set&amp;nbsp;default_conn_handle to a sensible value anywhere. Did you not just include that code, or is this uninitialized? You can use&amp;nbsp;bt_hci_get_conn_handle() to get the handle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>