<?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>Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76476/separate-transmit-power-setting-for-ble-and-thread-when-using-mpsl</link><description>Hello, 
 I have a design where I am using an nRF52840 along with a SKY66112-11 and am using Zephyr/MPSL for both BLE and Thread. Some questions: 
 1) The .dts node has pa_gain_db and lna_gain_db parameters, which default to ~20dBm and ~11dBm for the skyworks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jul 2021 06:50:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76476/separate-transmit-power-setting-for-ble-and-thread-when-using-mpsl" /><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/322353?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 06:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc4d74b-2c22-49f1-a578-d52e015a3367</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Jon&lt;/p&gt;
&lt;p&gt;The application must instruct the controller to change the TX power correctly. Have you checked out the&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/samples/bluetooth/hci_pwr_ctrl/src/main.c#L77"&gt; set_tx_power() function&lt;/a&gt; in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hci_pwr_ctrl/README.html"&gt;hci_pwr_ctrl sample in the Zephyr SDK&lt;/a&gt;? This function should give you a good idea of how this should be done.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/322106?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 17:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90ed41f9-3665-40cb-9e76-149131b4b08d</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Simon, will you be responding with more information about &amp;quot;&lt;span&gt;the R&amp;amp;D team can confirm that Dynamic TX Power control is supported by the SoftDevice Controller&amp;quot; statement? Obviously we have not had any success getting TX power control to work on our end...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/321310?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 11:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33af0388-9415-45e4-9635-2c1b23929167</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Again, sorry for the delays. This is due to the staff shortage during summer that Susheel has mentioned. He is taking some time off, so I have been assigned this case in his place. According to the internal thread we have on this, the R&amp;amp;D team can confirm that Dynamic TX Power control is supported by the SoftDevice Controller.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/319687?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 22:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdf96067-aa81-4e10-9902-ba8e09b925ec</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Susheel,&lt;/p&gt;
&lt;p&gt;Any update on this? I need to find a way to escalate this issue as we are nearing commitment to this design and need to ensure we will be able to continue to support the external FEM.&lt;/p&gt;
&lt;p&gt;Thanks, Jon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/318775?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 11:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:001e6a40-2fab-4269-b72d-8f1d6b30762c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Sorry for the delays and thanks for your patience. Very slim staffing due to summer holidays are contributing to the delays.&lt;/p&gt;
&lt;p&gt;I have tried to set this up at my personal MacBook (which I never used for any NCS related things) and I did not manage to run docker correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I asked the R&amp;amp;D team for the SD controller to assist with some help and tare not sure if we support &lt;span&gt;CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL in the SD controller.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/317622?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 08:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61ee723-378d-40b2-89f0-d52979bd0688</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Jon, We are thinly staffed due to summer vacation and I did not manage to test this yet and will be away second half of the day, so i will test this tomorrow earliest. Sorry for delays and I appreciate your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/316816?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 18:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b2d0e6-bebd-4573-970a-148c32585143</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Okay, here is a project with a similar architecture to the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/project-chip/connectedhomeip/tree/master/examples/lock-app/nrfconnect"&gt;https://github.com/project-chip/connectedhomeip/tree/master/examples/lock-app/nrfconnect&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The easiest way to get this project built (a summary of the Readme.md) is by performing the following steps on a Ubuntu or MacOS machine with docker installed:&lt;/p&gt;
&lt;p&gt;1. mkdir ~/WORK_DIR&lt;/p&gt;
&lt;p&gt;2. cd ~/WORK_DIR&lt;/p&gt;
&lt;p&gt;3. git clone &lt;a href="https://github.com/project-chip/connectedhomeip.git"&gt;https://github.com/project-chip/connectedhomeip.git&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;4. mkdir nrfconnect&lt;/p&gt;
&lt;p&gt;2. cd connecdhomeip&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;git submodule update --init&lt;/p&gt;
&lt;p&gt;4. docker pull nordicsemi/nrfconnect-chip&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;docker run --rm -it -e RUNAS=$(id -u) -v ~/WORK_DIR/nrfconnect:/var/ncs -v ~/WORK_DIR/connectedhomeip:/var/chip \&lt;br /&gt; -v /dev/bus/usb:/dev/bus/usb --device-cgroup-rule &amp;quot;c 189:* rmw&amp;quot; nordicsemi/nrfconnect-chip&lt;/p&gt;
&lt;p&gt;[In the docker container]&lt;/p&gt;
&lt;p&gt;A. $ cd /var/c&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;hip&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;B. $ setup&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;C. $&amp;nbsp;&lt;code&gt;python3 scripts/setup/nrfconnect/update_ncs.py --update&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;D. $ cd examples/lock-app/nrfconnect&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;E. $ west build -b nrf52840dk_nrf52840&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt;The built target code will be in (on the host machine):&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;code&gt; ~/WORK_DIR/connectedhomeip/examples/lock-app/nrfconnect/build/zephyr/zephyr.hex&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;and will be in (inside the docker container):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;/var/chip/connectedhomeip/examples/lock-app/nrfconnect/build/zephyr/zephyr.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Once this code is flashed onto a nrf52840-DK, pressing BUTTON 4 on the DK will place the BLE into advertising mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;I have found that the BLE advertisements ALWAYS are being sent at 0dBm.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Things I have tried:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;a. setting&amp;nbsp;BT_CTLR_TX_PWR_MINUS_20 in menuconfig&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;b. setting&amp;nbsp;BT_CTLR_TX_PWR_DYNAMIC_CONTROL in menuconfig&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Jon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/316808?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 16:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc53634a-9c3b-49ea-b2c4-7e357dd62665</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;I don&amp;#39;t think I can provide our project since it part of the CHIP (Matter) SDK development. If there is a BLE/Thread (on Zephyr) example you can point me to with the correctly-configured setup that I can evaluate I can probably work from there. Specifically, I need an example that:&lt;/p&gt;
&lt;p&gt;a) Configures Thread transmit power at +0dBm&lt;/p&gt;
&lt;p&gt;b) Configures BLE transmit power at -20dBm (e.g., advertisements are transmitted at -20dBm)&lt;/p&gt;
&lt;p&gt;or alternatively&lt;/p&gt;
&lt;p&gt;a) Provides some sort of callback from MPSL to the application layer before any Thread or BLE operations such that the the application can change power and/or reconfigure PA/LNA on FEM differently between BLE and Thread packets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/316755?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 13:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c87ecd2-1c72-474d-baac-5f615fa68fd5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Honestly speaking, I have not tried to control power with BLE/Thread combo in Zephyr, but CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL&amp;nbsp;&lt;span&gt;should expose HCI commands to write and read the TX power.&amp;nbsp;Can you give me your project and your attempt of writing these HCI commands so that I can try to dig into it and figure out what else needs to enabled for this feature to work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Separate transmit power setting for BLE and Thread when using MPSL</title><link>https://devzone.nordicsemi.com/thread/316558?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 20:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4407109a-5b1c-4eed-aa6b-c5a3ef4fd5ab</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Update: I have also tried the following code in an attempt to alter the BLE TX power (tested by monitoring advertisement power levels). However, this code has no effect:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static mpsl_tx_power_envelope_t sEnvelope =
{
.phy = MPSL_PHY_BLE_1M,
.envelope = {-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6,-6}
};

mpsl_tx_power_channel_map_set(&amp;amp;sEnvelope);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;FYI - I am using NCS/Zephyr along with OpenThread&lt;/p&gt;
&lt;p&gt;Jon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>