<?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>Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70264/measuring-ble-connection-rssi-with-ncs</link><description>Hi Nordic, 
 
 I understand that there&amp;#39;s a way to monitor the RSSI of a Bluetooth connection using appropriate API from softdevice library. But we are currently developping with NCS SDK. Is there thus a way to implement the same with NCS ? And if not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Apr 2021 15:44:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70264/measuring-ble-connection-rssi-with-ncs" /><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/306867?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 15:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee045a4d-f343-4f7f-9ebd-15e3ab78481d</guid><dc:creator>_RK_</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;I was able to build it by pulling latest from main branches of both /nrf and /nrflib and as well as updating the west to v0.10.1 from v0.9.x.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/306674?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 05:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72130227-1cb2-4b6f-af95-ef84839966b8</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Franck!&lt;br /&gt;&lt;br /&gt;As mentioned by _RK_ a fix is ready in the nRF Connect SDK master branch.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/306673?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 05:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49bdc8c8-f708-4081-bea0-2b125178485e</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello!&lt;br /&gt;&lt;br /&gt;Great. I stand corrected! Please open a new ticket regarding the build failure and we&amp;#39;ll assist you there.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/306632?ContentTypeID=1</link><pubDate>Sat, 24 Apr 2021 10:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23af7595-f807-40c3-8248-9fd6d3365d9b</guid><dc:creator>_RK_</dc:creator><description>&lt;div class="author"&gt;
&lt;div class="avatar"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/_5f00_rk_5f00_"&gt;&lt;img alt="_RK_" border="0px" src="https://devzone.nordicsemi.com/cfs-filesystemfile/__key/communityserver-components-imagefileviewer/system-images/anonymous.gif_2D00_44x44x2.png?_=637367229955000086" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/master/softdevice_controller/CHANGELOG.rst"&gt;sdk-nrfxlib/CHANGELOG.rst at master &amp;middot; nrfconnect/sdk-nrfxlib &amp;middot; GitHub&lt;/a&gt;&amp;nbsp;As mentioned here, this issue probably has been already fixed and available on the master branch.&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fixed an issue where &amp;quot;HCI Read RSSI&amp;quot; would always return a Command Disallowed (0x0C) error code (DRGN-15310).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I tried to pull the master branch and build the hci_uart, but it&amp;#39;s failing to build as follows, can you suggest any way to fix the includes for this build?&lt;/p&gt;
&lt;p&gt;2&amp;gt; Compiling &amp;lsquo;entropy_ll_softdevice.c&amp;rsquo;&lt;br /&gt;3&amp;gt; Compiling &amp;lsquo;entropy_cc310.c&amp;rsquo;&lt;br /&gt;2&amp;gt; C:/Users/u1/ncs/v1.5.1/nrf/drivers/bt_ll_softdevice/entropy/entropy_ll_softdevice.c:12:10: fatal error: sdc.h: No such file or directory&lt;br /&gt;2&amp;gt; compilation terminated.&lt;br /&gt;3&amp;gt; C:/Users/u1/ncs/v1.5.1/nrf/drivers/entropy/entropy_cc310.c:20:10: fatal error: nrf_cc3xx_platform_entropy.h: No such file or directory&lt;br /&gt;3&amp;gt; compilation terminated.&lt;br /&gt;Build failed&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/305983?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 06:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee1f6479-08de-4441-909e-ee154e49d412</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;As mentioned below the fix won&amp;#39;t be available before the next major NCS release. In the meantime the Zephyr LL must be used for this functionality.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/305951?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 18:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b92bde9-a658-4319-bdc8-5975d5a74cc1</guid><dc:creator>_RK_</dc:creator><description>&lt;p&gt;Were you able to find a solution to this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/293543?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 12:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3aaf59-1bfd-499f-a1fb-e3ed98ef7c0e</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Great! I&amp;#39;ll check with the developers.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Edit: I got back that it won&amp;#39;t be ready before the next major NCS release at least.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/293393?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 15:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe2fdc1a-df3e-44d6-8944-2a6bed550c8c</guid><dc:creator>fgaultier</dc:creator><description>&lt;p&gt;Thanks Carl. This is indeed what I did: starting from hci_power_ctrl sample.&lt;/p&gt;
&lt;p&gt;Do you know whether that bug in the Softdevice controller will be fixed anytime soon ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Franck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/293389?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 15:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e6a4f2-28df-41d8-8f87-1c7489912930</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;There has been discovered a bug in our Softdevice controller that results in RSSI reading being disallowed. There are unfortunately no workarounds other than using the Zephyr LL. Apologies for the inconvenience.&lt;br /&gt;&lt;br /&gt;Anyway, for proper handling of RSSI reading I suggest to check out how it&amp;#39;s done in the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/60a9e7c8b2836d4bf367b119835ea60688f0b5fe/samples/bluetooth/hci_pwr_ctrl/src/main.c#L45"&gt;hci_power_ctrl sample&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/293226?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2021 16:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c082119b-32f2-462c-991e-642f04c3b6d4</guid><dc:creator>fgaultier</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was not able to have&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/doc/api.html?highlight=hci_read_rssi#c.sdc_hci_cmd_sp_read_rssi"&gt;sdc_hci_cmd_sp_read_rssi(...)&lt;/a&gt;&lt;span&gt;&amp;nbsp;command return an RSSI value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried also the Zephyr bluetooth sample hci_pwr_ctl: &lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Setting the TX power works fine (on NRF52833 and NRF52832 but with NRF52840 you have to adjust stack size),&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;But reading the RSSI (by sending first BT_HCI_OP_READ_RSSI hci command) does not work at all, unless you do not use soft device controller by setting the following config parameters&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;CONFIG_BT_LL_SOFTDEVICE=n&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;CONFIG_BT_LL_SW_SPLIT=y&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Does someone have a working sample with&amp;nbsp;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/doc/api.html?highlight=hci_read_rssi#c.sdc_hci_cmd_sp_read_rssi"&gt;sdc_hci_cmd_sp_read_rssi(...)&lt;/a&gt;&amp;nbsp;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring BLE Connection RSSI with NCS</title><link>https://devzone.nordicsemi.com/thread/288333?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 10:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06179506-46f3-4622-8d15-c74a359ec811</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;You should be able to read out the RSSI using the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/softdevice_controller/doc/api.html?highlight=hci_read_rssi#c.sdc_hci_cmd_sp_read_rssi"&gt;sdc_hci_cmd_sp_read_rssi(...)&lt;/a&gt;&amp;nbsp;command. Ensure that the following is enabled in prj.conf of the project:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_CONN_RSSI=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Hope this answers your question!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>