<?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>BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106964/bt840x-low-transmit-power-with-skyworks-fem</link><description>Hello, 
 
 I have read through many threads and am trying to understand how the Skyworks fem module works as there is not a good example. I will start by saying that I am seeing more power with the FEM but it is now what was expected. This is all being</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jan 2024 07:06:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106964/bt840x-low-transmit-power-with-skyworks-fem" /><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/464077?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 07:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87517828-9e59-4b73-98d8-c0c6b804b88d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Pablo,&amp;nbsp; I was assuming that you were using NCS as well. Is this for the nRF5SDK based solution? If it is, then I think the support of&amp;nbsp;FEM in our softdevice was very limited. We know that nRF5 based SDK solution might not be working with Skyworks FEM as we only supported generic gpio based solution in that.&lt;/p&gt;
&lt;p&gt;Regarding the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_fem.html#adding-support-for-skyworks-front-end-module"&gt;NCS support&lt;/a&gt;,&amp;nbsp;&lt;span&gt;Currently released support for (simple GPIO) Skyworks FEM does not allow run-time control. Decision to use PA or bypass is taken at compile-time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/463796?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 14:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8443dce-3351-4a58-93b6-12147d30a849</guid><dc:creator>PabloL</dc:creator><description>&lt;p&gt;Hello Susheel,&lt;/p&gt;
&lt;p&gt;It would be a great help for developers.&lt;br /&gt;Unfortunately the documentation is a bit confusing.&lt;br /&gt;I&amp;#39;m using a Fanstel EV-BT40X board (nRF52840 + SKY66112).&lt;/p&gt;
&lt;p&gt;I was able to make the example ble_app_uart_c work successfully with the Softdevice S140, using the control codes from Fanstel (&lt;a href="https://www.fanstel.com/s/BT840X_SKY66112-Codes.zip"&gt;https://www.fanstel.com/s/BT840X_SKY66112-Codes.zip&lt;/a&gt;), but not for Zephyr with NCS 2.5.0.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// BT840X SKY66112 FEM ble_app_uart_c example
// main.c
...
#include &amp;quot;pa_lna.h&amp;quot;

#define APP_PA_LAN

#ifdef APP_PA_LAN
#define APP_PA_PIN      17      // CTX pin
#define APP_LNA_PIN     19      // CRX pin
#define APP_CHL_PIN		8       // CHL pin (0: TX low pwer, 1: TX high power)
#define APP_CPS_PIN		6       // CPS pin (0: LNA/PA On, 1: Bypass)
#endif
...

int main(void)
{
...
#ifdef APP_PA_LAN
	nrf_gpio_cfg_output(APP_CPS_PIN);
	nrf_gpio_cfg_output(APP_CHL_PIN);
	nrf_gpio_pin_clear(APP_CPS_PIN);    // LNA/PA On
	nrf_gpio_pin_set(APP_CHL_PIN);      // TX High Power
	pa_lna_init(APP_PA_PIN,APP_LNA_PIN);    
#endif
...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let us know any news.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Pablo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/463661?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 06:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:949f80ee-71d1-4b29-ae80-bf179fc0e1ff</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;OK, it looks like something is clearly wrong then if it is more than one who is seeing the same thing. I will try to find Skyworkorks FEM Module or order it to test this myself.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/463582?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 14:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:633b2365-ef44-45b5-a5c5-cbba9d1a2ca6</guid><dc:creator>PabloL</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Same for me. I could not get it to work.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;If you see the nrf52840dk_nrf52840.dts, in the included file&amp;nbsp;&lt;/span&gt;&lt;/span&gt;nrf52840dk_nrf52840-pinctrl.dtsi&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;uart0_default: uart0_default {
    group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;,
            &amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;;
        };
    group2 {
            psels = &amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;,
            &amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
            bias-pull-up;
        };
};

uart0_sleep: uart0_sleep {
    group1 {
            psels = &amp;lt;NRF_PSEL(UART_TX, 0, 6)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RX, 0, 8)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_RTS, 0, 5)&amp;gt;,
                    &amp;lt;NRF_PSEL(UART_CTS, 0, 7)&amp;gt;;
            low-power-enable;
    };
};&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The uart0 uses pins P0.6 and P0.8 as TX and RX.&lt;br /&gt;Does the&amp;nbsp;new definitions in the device tree override the pin functions?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/462968?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 16:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:786c932a-2f24-4327-9e76-5e87ec54f7d0</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;If you review the post you will see that they are set in software.&amp;nbsp; What I am stating is that your gain settings for the driver are incorrect.&amp;nbsp; I expect a setting of 8db to have the same rssi with clear line of sight with or without a FEM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/462965?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 16:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aaf36ea-b015-4196-b8d2-c15cfda1a91c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If the other pins are not controlled by the gpio and are set to default float then the behavior of the default value SKYWorks FEM is unpredictable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/462941?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2024 15:04:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76d0f9b4-453c-435c-94e1-585355532531</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;Yes that is what I explained to the other engineer but i think the gain setup is incorrect by default&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/462477?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 11:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8edff1-e4ff-44d5-aedd-d3e62b58c102</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It looks like SKYWorks have other pins CSD/CPS/CHL other than CTX and CRX that needs to be controlled for proper functionality. We provide FEM support for skyworks through simple_gpio. We control crx and ctx pins automatically.Other pins whatever they are, are to be controlled by the user application, as gpios.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/462157?ContentTypeID=1</link><pubDate>Sun, 31 Dec 2023 19:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9c0dfe6-c11e-40d0-a31d-6996f888bf16</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;edmcnicolas,&lt;/p&gt;
[quote user="edmcnicholas"]I am using 2.5.0 as I have not seen 2.5.1 on the toolchain manager.[/quote]
&lt;p&gt;I checked the Toolchain Manager, and it is as you said. My apologize. I saw that the documentation was already release and repository already tagged for v2.5.1 and thought it was released. Perhaps the process was interrupted due to the holiday.&lt;/p&gt;
&lt;p&gt;Thank you for the details of your tests.&amp;nbsp;I will&amp;nbsp;have someone with&amp;nbsp;better knowledge on this topic look at this and we will get back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/462002?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2023 15:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ab0a8e-4205-404a-9aeb-6ec4bbfa6861</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;Hieu,&lt;/p&gt;
&lt;p&gt;I am using 2.5.0 as I have not seen 2.5.1 on the toolchain manager.&lt;/p&gt;
&lt;p&gt;What I was saying is that when i set the power to 8db dynamically the unit with FEM is being received at a lower level than the unit without fem when connecting wither to the same board mounted antenna so there is obviously a difference in power through the FEM unit with the the current config at defaults.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for using the default settings and setting the &amp;quot;&lt;span&gt;CONFIG_BT_CTLR_TX_PWR_ANTENNA&lt;/span&gt;&lt;span&gt;=22&amp;quot; that only shows 10mA on the power profiler so that is not the correct setup.&amp;nbsp; As per the data sheet for the&amp;nbsp;SKY66112-11 the fact that fem control is only 2 pin and not 4 pin CHL and CPS need to be set so that the FEM uses high power mode as only CRX and CTX are controlled by MPSL from what I can see and have read.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If i set the CHL and CPS then I do get higher output but i only see peaks of 75ma when the fanstel example has peaks up to 200mA.&amp;nbsp; WIth this setting I see rssi&amp;nbsp;best rssi of -32 on a nrf52833 dk at 40&amp;quot;. By lowering the tx-db-gain in the device tree to -12 i get a peak of -28 dbm with peaks of 225mA and can manipulate it up and down from there.&amp;nbsp; What I see is that the dynamic power control seems a bit confused with the default settings and is not using 1db increments&amp;nbsp;like the data sheet would indicate it is able to.&amp;nbsp; I have use dynamic power controls&amp;nbsp;repeatedly with non-fem modules with no issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My though is that with the fem settings and the default device tree set at 22db i dont think the output power is be set correctly in the tx.&amp;nbsp; I tried reading the txpower register but it was always at 0. For full power on the Skyworks&amp;nbsp;part I need an input of -1db from the radio.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/461974?ContentTypeID=1</link><pubDate>Thu, 28 Dec 2023 13:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88f3b476-b106-4a36-ab2f-1db166463a9d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello edmcnicolas,&lt;/p&gt;
[quote user=""]The unit with the FEM is about 6-10 DB low so I am going to say something is being left on the table for link budget.[/quote]
&lt;p&gt;By this, do you mean that the&amp;nbsp;device with FEM output at 6-10dB lower than you expected, or 6-10dB lower than the device without FEM?&lt;/p&gt;
&lt;p&gt;In NCS, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/nrfxlib/mpsl/README.html"&gt;MPSL&lt;/a&gt; takes care of FEM control completely, so you shouldn&amp;#39;t need to toggle the CHL and CPS line like you are doing.&lt;/p&gt;
&lt;p&gt;I unfortunately haven&amp;#39;t&amp;nbsp;tried to control TX power dynamically with FEM before, and unfortunately have neither a Skyworks nor a nRF21540 with me to test at the moment.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the time being, could you please try to build a simple project (such as &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/zephyr/samples/bluetooth/beacon/README.html"&gt;the beacon sample&lt;/a&gt;) with the TX Power set only in Kconfig, without any additional code controlling it?&amp;nbsp;This is a setup I have tested before and&amp;nbsp;confirmed to be working. We can use it as a starting point to rule out any other factors that could be wrong.&lt;/p&gt;
&lt;p&gt;Please also share:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What version of the nRF Connect SDK (NCS) you are using. If possible, please use the latest version. At the time of writing, it&amp;#39;s &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/nrf/releases_and_maturity/releases/release-notes-2.5.1.html"&gt;2.5.1&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Your compiled&amp;nbsp;DTS file, &amp;lt;build folder&amp;gt;/zephyr/zephyr.dts&lt;/li&gt;
&lt;li&gt;Your compiled&amp;nbsp;Kconfig file, &amp;lt;build folder&amp;gt;/zephyr/.config&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Hieu&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P&lt;/span&gt;&lt;span&gt;lease be informed that due to&amp;nbsp;the ongoing Christmas - New Year holiday season, we are severely understaffed, and there would be delays in responses. Our apologies for the inconveniences.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BT840X Low Transmit Power with Skyworks FEM</title><link>https://devzone.nordicsemi.com/thread/461873?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2023 21:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bde1a4e-9cd1-4420-820a-d7bc2d1c1224</guid><dc:creator>edmcnicholas</dc:creator><description>&lt;p&gt;I enabled the response from the command and I am not getting the power expected int the response my actual tx power is lower and I cant use every power level.&amp;nbsp; I am also wondering if this takes into account the return loss in the chip as the data sheet states that is needs -1 db input for 20db output?&amp;nbsp; What looks suspicious to me is that i am seeing numbers that are down 12db.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[00:00:00.024,963] &amp;lt;wrn&amp;gt; bleCommon: Actual Tx Power: 18&lt;br /&gt;[00:00:00.025,146] &amp;lt;wrn&amp;gt; bleCommon: Actual Tx Power: 18&lt;br /&gt;[00:00:00.025,329] &amp;lt;wrn&amp;gt; bleCommon: Actual Tx Power: 6&lt;br /&gt;[00:00:00.025,512] &amp;lt;wrn&amp;gt; bleCommon: Actual Tx Power: 6&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>