<?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 achieve a measured conductive Tx Power of +21 dBm using any NCS sample app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97484/how-to-achieve-a-measured-conductive-tx-power-of-21-dbm-using-any-ncs-sample-app</link><description>My Goal: To measure a conductive Tx Power of +21 dBm using any NCS sample app running on Fanstel&amp;#39;s BT840XE module , which includes the nRF52840 plus the +22 dBm Skyworks SKY66112 integrated FEM. 
 Problem Statement: So far the highest conductive Tx Power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Mar 2023 12:54:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97484/how-to-achieve-a-measured-conductive-tx-power-of-21-dbm-using-any-ncs-sample-app" /><item><title>RE: How to achieve a measured conductive Tx Power of +21 dBm using any NCS sample app?</title><link>https://devzone.nordicsemi.com/thread/414916?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 12:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11280cc2-ce3f-4ca8-9f5c-f20c1c5a0ea8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Starbuck"]Wouldn&amp;#39;t you expect the &lt;em&gt;skyworks,sky66112-11&lt;/em&gt;&amp;nbsp;driver to initialize the CHL &amp;amp; CPS pins?[/quote]
&lt;p&gt;Yes, I assumed the same at first. However, as implied&amp;nbsp;in the documentation &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/app_dev/working_with_fem/index.html#adding-support-for-skyworks-front-end-module"&gt;here&lt;/a&gt;&amp;nbsp;and shown by the implementation &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/subsys/mpsl/fem/simple_gpio/mpsl_fem_simple_gpio.c#L63"&gt;here&lt;/a&gt;,&amp;nbsp;the generic FEM GPIO driver is only controlling the CTX and CRX signals. The other signals have to be set by the application as you found out. This should have been documented more clearly.&lt;/p&gt;
&lt;p&gt;The application may still use the properties exposed by your fem node. The&amp;nbsp;Bluetooth direct test mode sample demonstrates how here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/direct_test_mode/src/fem/generic_fem.c#L52"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/direct_test_mode/src/fem/generic_fem.c#L52&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Starbuck"]Regarding my RF Power Meter, it is really nice and portable (affordable too).&amp;nbsp; I travel a lot and I&amp;#39;m getting into flying FPV drones as a hobby of mine so I&amp;#39;m always looking for compact portable test equipment. I highly recommend it![/quote]
&lt;p&gt;Thank you for providing the link!&amp;nbsp;I am considering this for my home lab.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to achieve a measured conductive Tx Power of +21 dBm using any NCS sample app?</title><link>https://devzone.nordicsemi.com/thread/414733?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 17:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda01a81-fa85-436c-9c13-4cf5f26c1d37</guid><dc:creator>Starbuck</dc:creator><description>&lt;p&gt;Regarding my RF Power Meter, it is really nice and portable (affordable too).&amp;nbsp; I travel a lot and I&amp;#39;m getting into flying FPV drones as a hobby of mine so I&amp;#39;m always looking for compact portable test equipment. I highly recommend it!&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a link to it:&amp;nbsp;&amp;nbsp;&lt;a id="" href="https://www.immersionrc.com/fpv-products/rfpwrv2/"&gt;https://www.immersionrc.com/fpv-products/rfpwrv2/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to achieve a measured conductive Tx Power of +21 dBm using any NCS sample app?</title><link>https://devzone.nordicsemi.com/thread/414729?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 17:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb97c3b1-0af2-4550-90f2-660e17777765</guid><dc:creator>Starbuck</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;I agree that is part of the problem.&amp;nbsp; I found that too this morning.&amp;nbsp; However, correcting that in my overlay file didn&amp;#39;t bring the FEM out of bypass mode.&amp;nbsp; But after initializing the CHL &amp;amp; CPS pins correctly in &lt;em&gt;main.c&lt;/em&gt; I was able to measure +21 dBm.&amp;nbsp; The code snippets below&amp;nbsp;fix the issue, but I&amp;#39;m still not understanding why I need to initialize CHL &amp;amp; CPS in &lt;em&gt;main.c&lt;/em&gt;.&amp;nbsp; Wouldn&amp;#39;t you expect the &lt;em&gt;skyworks,sky66112-11&lt;/em&gt;&amp;nbsp;driver to initialize the CHL &amp;amp; CPS pins?&lt;/p&gt;
&lt;p&gt;Changing the&amp;nbsp;&lt;em&gt;nrf52840dk_nrf52840.overlay&lt;/em&gt;&lt;em&gt;&lt;/em&gt; file to this did NOT fix the issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/ {
	nrf_radio_fem: fan_evbt840x_fem {
		compatible = &amp;quot;skyworks,sky66112-11&amp;quot;, &amp;quot;generic-fem-two-ctrl-pins&amp;quot;;
		ctx-gpios = &amp;lt;&amp;amp;gpio0 17 GPIO_ACTIVE_HIGH&amp;gt;;
		crx-gpios = &amp;lt;&amp;amp;gpio0 19 GPIO_ACTIVE_HIGH&amp;gt;;
		cps-gpios = &amp;lt;&amp;amp;gpio0 6 GPIO_ACTIVE_LOW&amp;gt;;
		chl-gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_ACTIVE_HIGH&amp;gt;;
		tx-gain-db = &amp;lt; 18 &amp;gt;; // See CONFIG_BT_CTLR_TX_PWR_ANTENNA comment before changing this value
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Setting the &lt;em&gt;cps-gpios&lt;/em&gt;&amp;nbsp;pin to GPIO_ACTIVE_HIGH didn&amp;#39;t work either.&lt;/p&gt;
&lt;p&gt;The code snippets below allowed me to measure +21 dBm:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	printk(&amp;quot;Bluetooth initialized\n&amp;quot;);

	nrf_gpio_cfg_output(APP_CHL_PIN);
    nrf_gpio_cfg_output(APP_CPS_PIN);
	nrf_gpio_pin_set(APP_CHL_PIN);
	nrf_gpio_pin_clear(APP_CPS_PIN);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/ {
	nrf_radio_fem: fan_evbt840x_fem {
		compatible = &amp;quot;skyworks,sky66112-11&amp;quot;, &amp;quot;generic-fem-two-ctrl-pins&amp;quot;;
		ctx-gpios = &amp;lt;&amp;amp;gpio0 17 GPIO_ACTIVE_HIGH&amp;gt;;
		crx-gpios = &amp;lt;&amp;amp;gpio0 19 GPIO_ACTIVE_HIGH&amp;gt;;
		tx-gain-db = &amp;lt; 18 &amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you for helping me understand this.&amp;nbsp; I&amp;#39;m still on the Zephyr learning curve.&amp;nbsp;It is very appreciated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to achieve a measured conductive Tx Power of +21 dBm using any NCS sample app?</title><link>https://devzone.nordicsemi.com/thread/414686?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 14:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a45444-a33d-4ebc-8a6a-d0ec35d48128</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I compared the pinout in your overlay with the pinout Fanstel suggest in the &amp;quot;Control Skyworks Power Amplifier&amp;quot; section of their product specification (&lt;a href="https://static1.squarespace.com/static/561459a2e4b0b39f5cefa12e/t/63de927a519c1b69364b15f2/1675530877718/BT840F-p+Product+Specifications.pdf"&gt;https://static1.squarespace.com/static/561459a2e4b0b39f5cefa12e/t/63de927a519c1b69364b15f2/1675530877718/BT840F-p+Product+Specifications.pdf&lt;/a&gt;) and it looks like you may have gotten the CSD and CPS pins wrong? CPS controls the bypass mode and if I am reading things correctly, you have CSD set to &amp;#39;1&amp;#39; and connected to the input CPS input on the FEM.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1678458310475v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;By the way, it looks like you have a neat tool there for measuring&amp;nbsp;TX output power. I&amp;nbsp;have not seen anything like it before.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>