<?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>nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98001/nrf21540-gain-always-20db</link><description>Hello, 
 
 We are testing the radio_test sample on a nrf21540dk board with ncs-2.3. We want to change the fem tx_gain but we always get the same RSSI value on the nrf connect RSSI VIEWER application. 
 
 It&amp;#39;s like we always operate with a 20dB gain. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Mar 2023 14:31:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98001/nrf21540-gain-always-20db" /><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/417727?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 14:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44462414-601e-4028-90fa-7229fd93986a</guid><dc:creator>Neunz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you, with the spectrum analyzer we see that the power was wright on the nrf21540DK. The same code wasn&amp;#39;t working with our custom hardware because of protection&amp;nbsp;elements&amp;nbsp;on the SPI bus.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/417724?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 14:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe611371-7435-405d-bed4-5a61f765d963</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Sorry for the delay.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the version of the radio test sample I used for testing previously.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/417103?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 13:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997b3993-9a82-4cda-9bf9-c2ca5cbb2a6a</guid><dc:creator>Neunz</dc:creator><description>&lt;p&gt;Thank you, yes we have a spectrum analyser but we don&amp;#39;t have the test probe to connect to the SWF connector to the spectrum analyser.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We will purchase one and test this firmware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I come back with the result next week.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you test the&amp;nbsp;nrf/samples/peripheral/radio_test from the following west&amp;nbsp;manifest ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;manifest:
    self:
      path: applications
  
    remotes:
      - name: ncs
        url-base: https://github.com/nrfconnect
  
    projects:
      - name: nrf
        repo-path: sdk-nrf
        remote: ncs
        revision: v2.3-branch
        import:
          # Import only necessary modules
          name-allowlist:
            - cmsis
            - fatfs
            - hal_nordic
            - littlefs
            - segger
  
            - zephyr
            - nrfxlib&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/417082?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 13:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6d16b6-533e-46ea-8d2e-80bc76a84138</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;The nRF52840 have a absolute maximum input power of 10dBm, meaning it can be damaged by input powers of 10dBm or higher. The receiver will be saturated before this, so you won&amp;#39;t really be able to measure a difference in RSSI between 20 and 10dBm output power from the nRF21540DK.&lt;/p&gt;
&lt;p&gt;Do you have a spectrum analyzer available to measure the output power?&lt;/p&gt;
&lt;p&gt;Here is the radio test FW nRF21540 I used for the measurement I showed earlier: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF21540dk_5F00_radio_5F00_test_5F00_NCS_5F00_v2.3.0.hex"&gt;devzone.nordicsemi.com/.../nRF21540dk_5F00_radio_5F00_test_5F00_NCS_5F00_v2.3.0.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/417003?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 09:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88502a9a-0679-48a6-a602-db5acb94cfa4</guid><dc:creator>Neunz</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bendik-heiskel"&gt;Bendik Heiskel&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked again with only the two config lines. I always get arround -33 dB in RSSI Viewer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The board I use to check the RSSI is a nrf52840DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Both nrf21540DK and 52840DK are on the same table.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We also have a custom hardware with a nrf21540 and we ran the same code in conducted emission testing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In both case (10dB and 20dB) we measure between 15 and 20dB (the cable and connections loss&amp;nbsp;are not taken in account) so it&amp;#39;s like we are always emitting with 20dB gain.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we force the&amp;nbsp;MODE pin to high (with a hardware connection) we effectively see a drop of arround 10dB.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/416982?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 08:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd30384-28f2-475c-aaea-b6fdbb56381f</guid><dc:creator>Bendik Heiskel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The TX gain control in the radio test samples is working correctly with the config options you have provided. To confirm this here is the output power measured using a spectrum analyzer:&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/pastedimage1679560924019v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If fact, the only config options needed are:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_FEM=y
CONFIG_RADIO_TEST_POWER_CONTROL_AUTOMATIC=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;RSSI is not a good measure of the output power from a device, since it is dependent on external factors,and the receiving device.&lt;/p&gt;
&lt;p&gt;What are the RSSI values you are seeing with 10dB and 20dB gain?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Bendik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf21540 gain always 20dB</title><link>https://devzone.nordicsemi.com/thread/416884?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 16:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:661c09fe-fbc4-491b-93c9-e54381965f66</guid><dc:creator>Neunz</dc:creator><description>&lt;p&gt;Additionnaly I just see that I must add CONFIG_SPI=y.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are no SPI communications without it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But this doesn&amp;#39;t solve the problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>