<?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>How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112060/how-to-set-the-default-ble-tx-power-at-runtime</link><description>We have some devices that run the same firmware, but need different default BLE tx power settings. 
 There is a KConfig value to set the default, but in our case it is different for different hardware that the same firmware runs on. So we cannot use that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Dec 2024 20:53:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112060/how-to-set-the-default-ble-tx-power-at-runtime" /><item><title>RE: How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/thread/514378?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 20:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9487226-e084-4dcd-977a-f38de638e66c</guid><dc:creator>AMarch01</dc:creator><description>&lt;p&gt;awesome, thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/thread/514362?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 18:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd40582b-c1be-440e-8598-8dc4435fdad1</guid><dc:creator>denis</dc:creator><description>&lt;p&gt;You may find some useful tx power code at the top of&amp;nbsp;&lt;a href="https://github.com/denisbohm/firefly-zephyr/blob/main/subsys/ble/src/fd_ble.c"&gt;https://github.com/denisbohm/firefly-zephyr/blob/main/subsys/ble/src/fd_ble.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/thread/514350?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 17:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6506835-4147-4150-b2c2-fb1d82bc63e8</guid><dc:creator>AMarch01</dc:creator><description>&lt;p&gt;If you are still around, is there any chance you can list those API commands you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/thread/488804?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 07:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5533b428-d4c9-4f66-8141-6032ca8fb65a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Apologies, I see now that I missed that part, please disregard my previous comment and instead see this one:&lt;br /&gt;&lt;br /&gt;A connection will inherit the TX power level configured for the advertising, so you can just configure your peripheral&amp;#39;s TX power for the advertisement, and then it will keep this same level for any connections established from this advertisement.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/thread/488729?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 15:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7deea442-a89c-465c-8150-022fa34c9686</guid><dc:creator>denis</dc:creator><description>&lt;p&gt;Not sure you read my original post?&lt;/p&gt;
&lt;p&gt;Setting it dynamically after a connection is established means the power was not at the right level for connection establishment.&lt;/p&gt;
&lt;p&gt;We need to be able to set the default output power via code. &amp;nbsp;The same firmware runs on different devices - which need different default power settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set the default BLE TX power at runtime?</title><link>https://devzone.nordicsemi.com/thread/488721?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 15:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd4954ee-ff19-487a-a3ff-79e99cfd033f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;You can use the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_CTLR_TX_PWR_ANTENNA"&gt;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;kconfig to configure the default output power of your radio.&lt;br /&gt;You can then use the same functions you are referencing in the original post to change this further for individual connections or roles, if necessary.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>