<?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>tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101857/tx-power-value-returned-by-bt_conn_le_get_tx_power_level-and-support-for-configuring-tx-power-from-app-core</link><description>Hi, 
 
 Setup: NRF5340, BLE softdevice, Appcore. SDK v2.1.1 
 We are leaving the tx power settings to default. Now, from the app core, the value returned by bt_conn_le_get_tx_power_level () is 0. 
 Does this mean 0DBM? If not, What is the meaning of this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2023 14:25:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101857/tx-power-value-returned-by-bt_conn_le_get_tx_power_level-and-support-for-configuring-tx-power-from-app-core" /><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/438332?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 14:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1848d351-98f7-479d-9b2b-fb722ec5a870</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Unfortunately, there aren&amp;#39;t any headers that define the TX power for the app core since the RADIO peripheral resides on the network core. Depending on your goal, it might be easiest to define the supported power levels yourself in the application. The available HCI commands will only allow you to get the current TX power level and the maximum supported level from the controller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/438087?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 13:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f14425f9-78aa-437a-a67b-aea8404cdc51</guid><dc:creator>Mathi</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;.&lt;br /&gt;Lastly, Which header file should we use/include in the app core, for finding definitions of the tx power level, i.e.&amp;nbsp;&lt;br /&gt;For example i see references to symbols such as this one RADIO_TXPOWER_TXPOWER_0dBm.&lt;br /&gt;But, what would the correct header file that contains the definitions for the various power levels for NRF5340&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/438056?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 11:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc72a59-6fd5-4c45-814f-1163095f24e5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I forgot that this symbol was introduced in a later version. You can use&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_0=y instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/437997?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 07:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:847a6ec2-d386-4a9e-8616-6560f3afb14e</guid><dc:creator>Mathi</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;I could not find the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/194cb8ababdd375300fc9bdd282230d623324d52/subsys/bluetooth/controller/Kconfig#L316"&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/a&gt;&amp;nbsp;configuration in SDK v2.1.1, perhaps this was introduced in a newer version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/436744?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 12:31:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da658322-6edc-4448-805d-6aa29601dbc0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The default output power is configured in SW through the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/194cb8ababdd375300fc9bdd282230d623324d52/subsys/bluetooth/controller/Kconfig#L316"&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/a&gt;&amp;nbsp;symbol, and is 0 dBm by default. Note the default may be overridden by the board files. You can confirm that it is set 0 dBm in your .config output file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/436739?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 12:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d0703a-ddaa-4507-be3d-907b799bfcad</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="Mathi"]Is it possible to update the description in the API header (what is the name of the file?) at some point in time?&lt;br /&gt;Because, we need it (the APIs) documented for certification purposes.[/quote]
&lt;p&gt;I will create an internal ticket requesting that we update the description. I&amp;#39;m not sure if there was a reason for why&amp;nbsp;the power unit is not stated.&amp;nbsp;&lt;/p&gt;
[quote user="Mathi"]Also, i am able to test the set_tx_power() functionality (using code similair to that in sample/main.c of hci_pwr_ctrl).&lt;br /&gt;But, strangely when i invoke get_tx_pwer(), immediately after set_tx_power(), then the bt_hci_cmd_send_sync fails with an error -5 for the&amp;nbsp;BT_HCI_OP_VS_READ_TX_POWER_LEVEL.[/quote]
&lt;p&gt;Please make sure the &amp;#39;hci_rpmsg&amp;#39; child image is built with&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y. You can confirm this by checking the .conf file in &amp;lt;build directorty&amp;gt;/hci_rpmsg/zephyr.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/436661?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 08:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be511dd4-a0ee-46e1-a62a-277d2e6506c5</guid><dc:creator>Mathi</dc:creator><description>&lt;p&gt;It would also be helpful if there is any reference to a comment/documentation somewhere that states that &amp;quot;the default tx power configuration&amp;quot; is 0 DBM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/436464?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 11:48:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe172cf2-f047-4015-8789-68258d18db73</guid><dc:creator>Mathi</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for the quick response.&lt;br /&gt;Is it possible to update the description in the API header (what is the name of the file?) at some point in time?&lt;br /&gt;Because, we need it (the APIs) documented for certification purposes.&lt;br /&gt;&lt;br /&gt;Also, i am able to test the set_tx_power() functionality (using code similair to that in sample/main.c of hci_pwr_ctrl).&lt;br /&gt;But, strangely when i invoke get_tx_pwer(), immediately after set_tx_power(), then the bt_hci_cmd_send_sync fails with an error -5 for the&amp;nbsp;BT_HCI_OP_VS_READ_TX_POWER_LEVEL.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;However, alternatively iam able to use bt_conn_le_get_tx_power_level() in my tests, without any error.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mathi.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx power value returned by bt_conn_le_get_tx_power_level and support for configuring tx power from app core</title><link>https://devzone.nordicsemi.com/thread/436463?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 11:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0154309-3e9c-4b7b-9bb1-06b7bacd6f44</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Mathi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, the TX power is given in dBm, but I see that this is not specified in the API header.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Would it be possible to use similair logic like the sample/main.c in hci_pwr_ctrl, from the app core or such functionality is available only from the netcore?[/quote]
&lt;p&gt;Yes, you can use these APIs on the app core. The functions will send the HCI commands to network core where the BT controller will process them.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>