<?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>Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I&amp;#39;m a beginner</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121732/issues-testing-ble-range-with-different-phy-and-tx-power-settings-nrf52840-nrf5340-i-m-a-beginner</link><description>Hi everyone, I&amp;#39;m a beginner in Nordic development and currently learning how to work with BLE and Zephyr (NCS 2.9). 
 I&amp;#39;m using an nRF52840 Dongle as a peripheral and an nRF5340 DK as a central. The dongle periodically sends &amp;quot;PING N&amp;quot; messages using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Jun 2025 11:12:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121732/issues-testing-ble-range-with-different-phy-and-tx-power-settings-nrf52840-nrf5340-i-m-a-beginner" /><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/538031?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 11:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50f8db74-7d7f-4da4-82de-0e4a5cad7405</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Both options work, if having it runtime configurable with a &amp;quot;&lt;code&gt;config pwr &amp;lt;level&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;command&amp;quot; makes it easier for you to test, then I suggest you can try implement that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/537845?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 11:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a9b46c3-416a-42b8-b458-d1c658966742</guid><dc:creator>diegonovo02</dc:creator><description>&lt;p data-start="14" data-end="134"&gt;Thank you very much for your assistance and explanations. After considering both options, I have the following question:&lt;/p&gt;
&lt;p data-start="136" data-end="279"&gt;Would you recommend&amp;mdash;for my throughput and RSSI measurements&amp;mdash;managing static TX power levels directly from the &lt;code data-start="246" data-end="256"&gt;prj.conf&lt;/code&gt; using entries such as:&lt;/p&gt;
&lt;div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="whitespace-pre! language-ini"&gt;&lt;span&gt;&lt;span class="hljs-comment"&gt;# Power TX (enable/disable per build)&lt;/span&gt;
&lt;br /&gt;&lt;span class="hljs-attr"&gt;CONFIG_BT_CTLR_TX_PWR_PLUS_8&lt;/span&gt;=y
&lt;br /&gt;&lt;span class="hljs-comment"&gt;#CONFIG_BT_CTLR_TX_PWR_0=y&lt;/span&gt;
&lt;br /&gt;&lt;span class="hljs-comment"&gt;#CONFIG_BT_CTLR_TX_PWR_MINUS_8=y&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p data-start="422" data-end="503"&gt;and then producing a separate firmware build for each power level I wish to test?&lt;/p&gt;
&lt;p data-start="505" data-end="732"&gt;Or, on the other hand, do you believe it would not be overly difficult to implement a &lt;code data-start="591" data-end="611"&gt;config pwr &amp;lt;level&amp;gt;&lt;/code&gt; command in the shell (as we discussed) so that I can adjust TX power at runtime without needing to recompile every time?&lt;br /&gt;&lt;br /&gt;Thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/537841?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 11:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61e6c68d-7fb2-42ba-9194-bcb6d6732b8f</guid><dc:creator>Sigurd</dc:creator><description>[quote user="diegonovo02"]but selecting the power with something like “config pwr 8” is giving me some trouble. Do you know if that’s possible?[/quote]
&lt;p&gt;It&amp;#39;s not supported by default in the&amp;nbsp;&lt;span&gt;throughput&amp;nbsp;example, but it can be added&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/537547?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 17:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dddf29bb-aa66-4a52-9fb4-8893792880c8</guid><dc:creator>diegonovo02</dc:creator><description>&lt;p&gt;Perfect, thank you very much. I&amp;rsquo;m using that throughput example you shared with me, but I need to add some functions like measuring RSSI and selecting the transmission power. I think I&amp;rsquo;ve already added the RSSI part, but selecting the power with something like &amp;ldquo;config pwr 8&amp;rdquo; is giving me some trouble. Do you know if that&amp;rsquo;s possible? I&amp;rsquo;m looking at the hci_pwr_ctrl example a bit. &lt;br /&gt;Sorry if these questions seem absurd. I&amp;rsquo;m just getting started with this. &lt;br /&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/536982?ContentTypeID=1</link><pubDate>Mon, 26 May 2025 14:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9bc498-72ab-49de-9a9d-fa6c330f62ce</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user="diegonovo02"]However, I&amp;#39;m not sure how to verify whether the CODED PHY is actually using S=8 or S=2 — is there a way to check that in Zephyr?[/quote]
&lt;p&gt;I don&amp;#39;t think so, easiest way to verify here would likely be to use a sniffer:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le&lt;/a&gt;&amp;nbsp;, make sure to enable Coded PHY for the sniffer. See &amp;quot;Interface options&amp;quot; at this page&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-ble-sniffer/guides/running_sniffer.html"&gt;https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-ble-sniffer/guides/running_sniffer.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To test throughput&lt;span&gt;, I suggest this sample:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/throughput/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/536836?ContentTypeID=1</link><pubDate>Sat, 24 May 2025 15:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d0bb39e-492b-4012-a4f3-13cca315b080</guid><dc:creator>diegonovo02</dc:creator><description>&lt;p data-start="134" data-end="170"&gt;Hi again, thanks for the suggestion!&lt;/p&gt;
&lt;p data-start="172" data-end="427"&gt;I&amp;#39;ve now added a function to check the current PHY, and I can confirm that it does switch correctly between 1M, 2M, and CODED. However, I&amp;#39;m not sure how to verify whether the CODED PHY is actually using S=8 or S=2 &amp;mdash; is there a way to check that in Zephyr?&lt;/p&gt;
&lt;p data-start="429" data-end="710"&gt;Currently, I&amp;#39;m sending packets of 20 bytes every 500 ms (&lt;code data-start="486" data-end="499"&gt;PING_LEN=20&lt;/code&gt;, &lt;code data-start="501" data-end="523"&gt;PING_INTERVAL_MS=500&lt;/code&gt;). The data is transmitted correctly, but the bitrate remains almost the same regardless of the PHY used. I assume that&amp;#39;s because the data rate is too low to show significant differences.&lt;/p&gt;
&lt;p data-start="712" data-end="949"&gt;When I try increasing the packet size to 244 bytes and reducing the interval to 50 ms, the system gets overwhelmed and starts failing &amp;mdash; you can see the issue in this screenshot:&lt;br data-start="889" data-end="892" /&gt;&lt;img style="max-height:228px;max-width:424px;" alt=" " height="228" src="https://devzone.nordicsemi.com/resized-image/__size/848x456/__key/communityserver-discussions-components-files/4/pastedimage1748101832162v1.png" width="424" /&gt;&lt;/p&gt;
&lt;p data-start="951" data-end="1268"&gt;My goal is to test all four PHY configurations (1M, 2M, CODED S=2, and CODED S=8) under the same conditions and observe how they affect RSSI and bitrate. But I&amp;#39;m not sure how to force or verify the use of S=2 vs S=8, or how to properly configure the system so it can handle higher data rates without dropping packets.&lt;/p&gt;
&lt;p data-start="1270" data-end="1441"&gt;Any help or advice would be greatly appreciated, especially regarding how to properly stress-test the link and measure real PHY performance in Zephyr with the NUS service.&lt;/p&gt;
&lt;p data-start="1270" data-end="1441"&gt;I have updated the git files&lt;/p&gt;
&lt;p data-start="1443" data-end="1467"&gt;Thanks a lot in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues testing BLE range with different PHY and TX power settings (nRF52840 + nRF5340) – I'm a beginner</title><link>https://devzone.nordicsemi.com/thread/536781?ContentTypeID=1</link><pubDate>Fri, 23 May 2025 12:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8891f0e0-ad01-48a8-a6f4-7d4ac5036745</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I suggest double checking that the PHY change is actually updated and used on-air.&lt;/p&gt;
&lt;p&gt;I also suggest using a nRF52840-DK instead of the dongle, since the DK have a debugger and it&amp;#39;s easier to debug issues with that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>