<?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>Zephyr - How to set BLE Adversting Tx Power (part 2)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86601/zephyr---how-to-set-ble-adversting-tx-power-part-2</link><description>Folllow-up questions for this thread https://devzone.nordicsemi.com/f/nordic-q-a/84769/zephyr---how-to-set-ble-adversting-tx-power 
 1.In the nRF SDK there are TX power defines ( in \mesh\bearer\include\radio_config.h) 
 typedef enum { #ifdef NRF52840_XXAA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Apr 2022 14:05:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86601/zephyr---how-to-set-ble-adversting-tx-power-part-2" /><item><title>RE: Zephyr - How to set BLE Adversting Tx Power (part 2)</title><link>https://devzone.nordicsemi.com/thread/361884?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 14:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f4c6db7-edad-4679-b667-a95138924e08</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Got it thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - How to set BLE Adversting Tx Power (part 2)</title><link>https://devzone.nordicsemi.com/thread/361820?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 11:49:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fc2fff8-959f-4fd3-82dc-d76a9f2b89ed</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;Have you looked at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hci_pwr_ctrl/README.html"&gt;HCI Power Control &lt;/a&gt;&amp;nbsp;(hci_pwr_ctrl) example ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the example you can find that TX power can be changed dynamically&amp;nbsp;in both when advertising and when in connection. You don&amp;#39;t need to disconnect/stop advertising or disable the stack.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding your frist question, there isn&amp;#39;t a similar definition as in radio_config.h in NRF5 SDK. However, the definitions are the same values as in the RADIO-&amp;gt;TXPOWER register available value in the nRF52840 specification (2&amp;#39;s complement) . You can use the raw number directly.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - How to set BLE Adversting Tx Power (part 2)</title><link>https://devzone.nordicsemi.com/thread/361624?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 21:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db8badaf-f568-42e5-a6a4-3a6055209684</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Googled this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Those are static configuration options&lt;/p&gt;
&lt;p&gt;What I need is a set of values that I can pass to the API to set the tx power dynamically&lt;/p&gt;
&lt;p&gt;Can I just pass the same values as in nrf radio_config.h ?&lt;br /&gt;What about the questions regarding dynamic setting of tx power?&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp; a restart of the ble stack required? If so - what&amp;#39;s the API?&lt;br /&gt;I do not see a bt_disable() API , only bt_enabled.&lt;/p&gt;
&lt;p&gt;Or just stopping advertising will do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - How to set BLE Adversting Tx Power (part 2)</title><link>https://devzone.nordicsemi.com/thread/361613?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 18:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a91b723-107a-4777-ad9c-3d2aa984fe63</guid><dc:creator>qwertynoon</dc:creator><description>&lt;p&gt;CONFIG_BT_CTLR_TX_PWR_PLUS_8=y&lt;/p&gt;
&lt;p&gt;google this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>