<?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>Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110906/set-transmission-power---nrf5340-throughput-example</link><description>Hi All, 
 I was evaluating the throughput of NRF5340 using the DK. I would like to set the transmission power under 0 dBm of the peripheral device. 
 However, i was unable to modify the default transmission power using kconfig or apis. I have gone though</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 May 2024 18:48:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110906/set-transmission-power---nrf5340-throughput-example" /><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/485889?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 18:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:169c613a-d8b3-4353-a39c-b2c31fc01c09</guid><dc:creator>David_Goot</dc:creator><description>&lt;p&gt;hello Overbekk...how does one go around doing this? in what directory should it go in? AND, is there anything else that goes in hci_icp.conf because just bt tx power?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/483175?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 07:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7a600b-8663-44f9-b9b6-315ada5c55d1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vinu&lt;/p&gt;
&lt;p&gt;You welcome, glad I could help out. I will then close the ticket&amp;nbsp;&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;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/483165?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 07:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85f0b16f-29ce-4300-b9d3-75a47c00c242</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;Yes, that is correct. We also needed changes only in hci_ipc.conf&lt;/p&gt;
&lt;p&gt;Thanks for the support, Torbj&amp;oslash;rn.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Vinu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482974?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 09:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b8a00e-9a1b-42a9-a540-8a1a188b6b36</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vinu&lt;/p&gt;
&lt;p&gt;Essentially you need to create the child_image folder and the hci_ipc.conf file, if it doesn&amp;#39;t exist already.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should remove the&amp;nbsp;&lt;span&gt;C&lt;/span&gt;&lt;em&gt;ONFIG_BT_CTLR_TX_PWR_MINUS_20 &lt;/em&gt;config from prj.conf. Since the Bluetooth controller resides entirely in the network core the controller related configurations don&amp;#39;t apply to the application core (prj.conf is for the application core only), and if you include it you will get a warning like you discovered.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482454?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 08:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b66a27-dbe9-4288-977e-10a646b830f7</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the peripheral_uart example, I tried C&lt;em&gt;ONFIG_BT_CTLR_TX_PWR_MINUS_20=y&lt;/em&gt;&amp;nbsp;with nrfConnect App. Did not see much of a difference in RSSI levels.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also see the warning log below. There was no hci_ipc.conf in peripheral_uart. Hope it is fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/warn.JPG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Later we made the below changes in the&amp;nbsp;throughput example and now we are seeing changes in TX power level.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Added&amp;nbsp;C&lt;em&gt;ONFIG_BT_CTLR_TX_PWR_MINUS_20=y&amp;nbsp;&lt;/em&gt;in hci_ipc.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Added&amp;nbsp;C&lt;em&gt;ONFIG_BT_CTLR_TX_PWR_MINUS_20=y&amp;nbsp;&lt;/em&gt;in prj.conf. ( Note: It worked without this change as well )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vinu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482432?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 07:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4dbc14-fc26-43f2-90ed-bae16bcabd8d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vinu&lt;/p&gt;
[quote user="VinuGopalakrishnan"]So, HCI commands are not required for adjusting TX power, correct ?[/quote]
&lt;p&gt;If you just want a static power setting there is no need to send commands from the host to the controller, no. Then you can just set the output power in the controller firmware directly like I described earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to change the output power at runtime, or use different output power for different connections, advertisements etc, then it is a different story. In this case you would need to have the host instruct the controller which output power to use for each role, by sending custom HCI commands. If you are interested in this you can have a look at the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/bluetooth/hci_pwr_ctrl/README.html"&gt;HCI power control sample&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482303?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 13:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9d0625-595a-4598-8189-8a636a903ed9</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me checkout that peripheral_uart example &amp;amp; get back to you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I was testing with nrf connect app and always the power levels remained at around -30 dBm to -45 dBm even at close proximity.&amp;nbsp;&lt;/span&gt;&lt;span&gt;I&amp;#39;ll also checkout with a spectrum analyzer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, HCI commands are not required for adjusting TX power, correct ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vinu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482298?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 13:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c482797-28cd-4e56-97d6-66a9af4e346a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vinu&lt;/p&gt;
&lt;p&gt;My bad, it seems hci_rpmsg has been renamed to hci_ipc, and I hadn&amp;#39;t noticed this change. hci_ipc.conf is the correct file, as you pointed out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested this myself based on the peripheral_uart sample, and I can see that when I change the output power in this file the RSSI will change, but I would recommend trying a much smaller value like&amp;nbsp;&lt;em&gt;CONFIG_BT_CTLR_TX_PWR_MINUS_20 &lt;/em&gt;to ensure that you can see the difference.&lt;/p&gt;
&lt;p&gt;Unless you are measuring in controlled settings using a spectrum analyzer a difference of only 3dB can quickly get lost in the noise.&amp;nbsp;&lt;/p&gt;
[quote user="VinuGopalakrishnan"]2. Can you tell me which is the recommended way of adjusting the TX power ( static or dynamic) ?&amp;nbsp;Is using kconfig GUI the recommended method ?[/quote]
&lt;p&gt;Personally I find it easiest just to change the .conf files directly in VSCode. Assuming the intellisense features are running properly the auto complete feature should help you find the right configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482054?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 13:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db7b9293-877c-4748-9dbb-fbadb452e737</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The file inside child_image dir is&amp;nbsp;hci_ipc.conf and not&amp;nbsp;&lt;span&gt;hci_rpmsg.conf in my case.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway i modified both kconfig and&amp;nbsp;hci_ipc.conf manually with&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_PLUS_3&lt;/span&gt;&lt;span&gt;=y , but not much difference in RSSI levels.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;1. Should i use hci commands like -&amp;nbsp; set_tx_power(uint8_t handle_type, uint16_t handle, int8_t tx_pwr_lvl)&amp;nbsp;&lt;span style="font-family:inherit;"&gt;and manually set the TX power level?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;2. Can you tell me which is the recommended way of adjusting the TX power ( static or dynamic) ?&amp;nbsp;Is using kconfig GUI the recommended method ?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715000390195v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Vinu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/482025?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 12:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b36a8c4-9d80-49df-8e11-b9cf2a62dbb2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vinu&lt;/p&gt;
&lt;p&gt;You should not need all those configuration parameters anymore, the system has been simplified in later updates.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just let me know once you have been able to test this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/481998?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 11:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3832549-b200-4886-9a51-30340b7b5a89</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I tried the settings&amp;nbsp; -&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_ADVANCED_FEATURES&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_PLUS_2&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;Let me try your steps and update you.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;regards,&lt;/div&gt;
&lt;div&gt;Vinu&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set transmission power - nrf5340 throughput example</title><link>https://devzone.nordicsemi.com/thread/481986?ContentTypeID=1</link><pubDate>Mon, 06 May 2024 11:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ae2285-c477-47b3-b481-f94b45d61708</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Vinu&lt;/p&gt;
&lt;p&gt;Which Kconfig parameters did you try?&lt;/p&gt;
&lt;p&gt;How to set the output power is described &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/matter/getting_started/transmission_power.html#changing_tx_power_for_bluetooth_le"&gt;here&lt;/a&gt;. The critical aspect when using the nRF5340 is that you also need to set this for the network core, which is done by modifying the hci_rpmsg.conf file in the child_image subfolder of your project.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>