<?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>Decreased TX power and RSSI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111189/decreased-tx-power-and-rssi</link><description>Hello 
 I have 2 devices ,a central and a peripheral on a custom nRF52840 board 
 Using Zephyr SDK 2.5.0 
 The distance between the devices is 10.9 meters. When TX power on the peripheral is set to 0 the central receives packets with RSSI around -65 dBM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 May 2024 09:02:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111189/decreased-tx-power-and-rssi" /><item><title>RE: Decreased TX power and RSSI</title><link>https://devzone.nordicsemi.com/thread/485014?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 09:02:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1602e49-beeb-47a1-ae53-e43efce5e6a9</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thanks for the patience. Its been holidays here in Norway so we have not been in the office since Thursday. Glad to hear you wear able to figure it out&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decreased TX power and RSSI</title><link>https://devzone.nordicsemi.com/thread/484785?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 21:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff7c61e-67ea-47ce-8297-b1fb11952ff5</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;I found the root of the problem&lt;/p&gt;
&lt;p&gt;The advertising set handle&amp;nbsp; I passed to set_tx_power was wrong.&amp;nbsp;&lt;br /&gt;I use extended advertising set and assumed&amp;nbsp; that its handle value is always 1&lt;br /&gt;That is not the case in SDK 2.5 so my code broke&lt;br /&gt;&lt;span&gt;So the solution is to use&amp;nbsp;&amp;nbsp;&lt;/span&gt;bt_hci_get_adv_handle() and set the TX for the adv set I&amp;#39;m interested in.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;Looks like I&amp;#39;m good &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Thank you&lt;br /&gt;Andy&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decreased TX power and RSSI</title><link>https://devzone.nordicsemi.com/thread/484585?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 23:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51384954-d77e-41b3-9fa1-89524d556db4</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Did some more testing&amp;nbsp;&lt;br /&gt;Same application code with different SDK&amp;#39;s at ~5 m distance between central and&amp;nbsp;peripheral&lt;br /&gt;&lt;br /&gt;&lt;span&gt;3.2.99-ncs2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;TX&amp;nbsp; &amp;nbsp; &amp;nbsp;RSSI&lt;br /&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -76&lt;br /&gt;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -65&lt;br /&gt;-8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-80&lt;br /&gt;-20&amp;nbsp; &amp;nbsp; &amp;nbsp;-87&lt;br /&gt;-40&amp;nbsp; &amp;nbsp; &amp;nbsp;-90&lt;/p&gt;
&lt;p&gt;SDK 2.4.0 and SDK 2.5.0&lt;br /&gt;&lt;br /&gt;&lt;span&gt;TX&amp;nbsp; &amp;nbsp; &amp;nbsp;RSSI&lt;/span&gt;&lt;br /&gt;&lt;span&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -71&lt;/span&gt;&lt;br /&gt;&lt;span&gt;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -71&lt;/span&gt;&lt;br /&gt;&lt;span&gt;-8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-70&lt;br /&gt;&lt;/span&gt;-20&amp;nbsp; &amp;nbsp; &amp;nbsp; -71&lt;br /&gt;&lt;span&gt;-40&amp;nbsp; &amp;nbsp; &amp;nbsp;-70&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decreased TX power and RSSI</title><link>https://devzone.nordicsemi.com/thread/483525?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 13:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:034df11a-9ba6-4cc5-80aa-a4b45e3c42aa</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;My code uses exact same function to get the power level so I&amp;#39;m pretty confident it changes&lt;/p&gt;
&lt;p&gt;My application requires dynamic TX power adjustment in some cases. It used to work in SDK&amp;#39;s prior to 2.5.0 that I&amp;#39;m using now.&lt;br /&gt;I went back to&amp;nbsp;v3.2.99-ncs2 ( not sure what SDK it maps to ) and at -40 TX the packets from the peripheral do not reach central - as expected. But with SDK 2.5.0&amp;nbsp;the central continues to receive them at &amp;nbsp;-64 dBM from 5.5 m&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Decreased TX power and RSSI</title><link>https://devzone.nordicsemi.com/thread/483390?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 06:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab83603-efbd-40ce-9faf-f73f3f15b7e2</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I will need to check. Normally if I have the need to adjust TX power I do with Kconfig option&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ or&amp;nbsp;&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ANTENNA can be used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to add the get_tx_power function from &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/bluetooth/hci_pwr_ctrl/src/main.c#L112"&gt;here&lt;/a&gt; to see if it actually changes the tx power?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>