<?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>Actual BLE transmit power vs. configured transmit power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114782/actual-ble-transmit-power-vs-configured-transmit-power</link><description>We are using a 5340 with a Skyworks 66112 FEM. Below is our hci_ipc.overlay file. 
 
 We are setting CONFIG_BT_CTLR_TX_PWR_ANTENNA =20. When we measure the output of the FEM with a spectrum analyzer via a conducted connection, we are measuring 10 dBm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Oct 2024 13:55:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114782/actual-ble-transmit-power-vs-configured-transmit-power" /><item><title>RE: Actual BLE transmit power vs. configured transmit power</title><link>https://devzone.nordicsemi.com/thread/504713?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2024 13:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76723963-873d-4953-81a0-1be4a0c92c4f</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again Andrew,&lt;/p&gt;
&lt;p&gt;I am deeply sorry about the delay on this case.&amp;nbsp;&lt;/p&gt;
[quote user="aspearDS"]So, based on this, since the FEM is set for a 20 dB gain and we are requesting 20 dBm at the antenna, then the nRF5340 transmit power is set to 0 dBm?[/quote]
&lt;p&gt;So the way this job is divided between the FEM and the nRF depends on what&amp;nbsp;you are using as a static FEM gain. Then the&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;SoC TXPOWER is changed to compensate for the remainder such that&amp;nbsp;TXPOWER+FEM gain &amp;lt;= CONFIG_BT_CTRL_TX_PWR_ANTENNA. So for instance if you happened to be using the nRF52840, and have set a static&amp;nbsp;20dB gain in the FEM, and set&amp;nbsp;CONFIG_BT_CTRL_TX_PWR_ANTENNA=15dBm, you&amp;#39;ll only get 12dBm on the antenna, since &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/radio.html#ariaid-title70"&gt;-8dBm is the closest you can get on the &amp;#39;840.&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;For this calculation to work though, the nRF needs to know how much gain is set on the FEM. &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/fem/fem_simple_gpio.html"&gt;You can set that on the dts node&lt;/a&gt; using&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;tx-gain-db.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="aspearDS"]We know about the HCI VS command to read transmit power, but that seems to be returning the expected power at the antenna.[/quote]
&lt;p&gt;You can read what TXpower the NRF is providing by for instance &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/radio.html#ariaid-title118"&gt;reading the TXPOWER register&lt;/a&gt;.&amp;nbsp;&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/pastedimage1727876923816v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="aspearDS"]&lt;p&gt;In the child_image folder, we have the hci_ipc.overlay file that was included above along with the hci_ipc.conf and mcuboot.conf file.&amp;nbsp; We have verified that the SoftDevice is using the Tx and Rx GPIO lines of the FEM by probing them with a scope and seeing the lines toggle as we expect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Hmm in that case it does look like it is enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It might be that you haven&amp;#39;t set&amp;nbsp;&lt;span&gt;tx-gain-db, making it assume some default static gain which is wrong?&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;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Actual BLE transmit power vs. configured transmit power</title><link>https://devzone.nordicsemi.com/thread/502915?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 10:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b5a82e3-bf58-43a5-b472-b6fb63b0a50f</guid><dc:creator>aspearDS</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/114782/actual-ble-transmit-power-vs-configured-transmit-power/502900"]If a FEM is used, it will calculate the required TX power from the SoC based on the TX gain of the FEM to give the final TX power requested.[/quote]
&lt;p&gt;So, based on this, since the FEM is set for a 20 dB gain and we are requesting 20 dBm at the antenna, then the nRF5340 transmit power is set to 0 dBm?&amp;nbsp; Is there any way we can query the transmit power setting of the nRF5340 to verify this?&amp;nbsp; We know about the HCI VS command to read transmit power, but that seems to be returning the expected power at the antenna.&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/114782/actual-ble-transmit-power-vs-configured-transmit-power/502900"]&lt;a style="font-family:inherit;" href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/fem/fem_simple_gpio.html"&gt;Have you configured anything on the child image of the 5340&lt;/a&gt;&amp;nbsp;like what is mentioned in this documentation for 2.7&lt;span style="font-family:inherit;"&gt;?&lt;/span&gt;[/quote]
&lt;p&gt;In the child_image folder, we have the hci_ipc.overlay file that was included above along with the hci_ipc.conf and mcuboot.conf file.&amp;nbsp; We have verified that the SoftDevice is using the Tx and Rx GPIO lines of the FEM by probing them with a scope and seeing the lines toggle as we expect.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Andrew&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Actual BLE transmit power vs. configured transmit power</title><link>https://devzone.nordicsemi.com/thread/502900?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 09:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a60ebdf1-bb09-470d-8f9d-5cddc586cfa1</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Andrew,&lt;/p&gt;
[quote user=""]Can you explain how the&amp;nbsp;CONFIG_BT_CTLR_TX_PWR_ANTENNA configuration determines the output power of the 5340 and how we can adjust the values to get the expected transmit power at the antenna?[/quote]
&lt;p&gt;Yes, I believe you are doing it correctly.&amp;nbsp;&lt;span&gt;&amp;nbsp;If a FEM is used, it will calculate the required TX power from the SoC based on the TX gain of the FEM to give the final TX power requested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have seen a lot of cases about people having issues with &lt;span&gt;Skyworks&amp;nbsp;FEM+5340 lately, and I believe the issue is related to the lack of references to child image configuration in older documentation.&lt;/span&gt;&amp;nbsp;&lt;a style="font-family:inherit;" href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/device_guides/fem/fem_simple_gpio.html"&gt;Have you configured anything on the child image of the 5340&lt;/a&gt;&amp;nbsp;like what is mentioned in this documentation for 2.7&lt;span style="font-family:inherit;"&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>