Skip to content

Commit

Permalink
doc: wifi: Update TX power calculation
Browse files Browse the repository at this point in the history
[SHEL-3277]: Update sample description with TX power equations

Signed-off-by: Prasun Sinha <[email protected]>
  • Loading branch information
prsi98 committed Dec 3, 2024
1 parent c4e70ba commit 3a9a2e3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions samples/wifi/radio_test/sample_description.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Testing
.. code-block:: console
wifi_radio_test init 11
wifi_radio_test bypass_reg_domain 1
wifi_radio_test tx_pkt_rate 12
wifi_radio_test tx_pkt_len 4000
wifi_radio_test tx_power 4
Expand Down Expand Up @@ -191,6 +192,7 @@ Testing
.. code-block:: console
wifi_radio_test init 14
wifi_radio_test bypass_reg_domain 1
wifi_radio_test tx_pkt_preamble 0
wifi_radio_test tx_pkt_rate 1
wifi_radio_test tx_pkt_len 1024
Expand Down Expand Up @@ -560,8 +562,35 @@ Testing

If ``bypass_reg_domain`` is ``0``, then TX power of the channel will be configured to the minimum value of the user configured TX power value and maximum power supported in the configured regulatory domain.

You can calculate the TX power when ``tx_power`` command is issued, by using the following formula:

.. math::
\begin{aligned}
\text{TX power} = \min \left(P_{\text{rt}} , P_{\text{reg}} \right) - \text{AntGain} - \text{EdgeBackoff}
\end{aligned}
* :math:`P_\text{reg}` is the applicable regulatory power limit, as described in :ref:`ug_nrf70_developing_regulatory_support`.
* :math:`P_\text{rt}` is the power set via the ``tx_power`` command when using Radio Test sample, as described in :ref:`wifi_radio_subcommands`.
* ``AntGain`` is the compensation for the antenna gain in the TX direction, as described in `Antenna gain compensation`_.
``AntGain`` can be set to ``0`` using ``wifi_radio_test set_ant_gain`` command.
* ``EdgeBackoff`` is the backoff applied to band edge channels, as described in `Band edge compensation`_.
``EdgeBackoff`` can be set to ``0`` using ``wifi_radio_test set_edge_bo`` command.

.. note::

If ``bypass_reg_domain`` is ``1``, then user configured TX power value will be set overriding current configured regulatory domain maximum TX power for the channel.

You can calculate the TX power when ``bypass_reg_domain`` is ``1`` and the ``tx_power`` command is issued, by using the following formula::

.. math::
\begin{aligned}
\text{TX power} = P_{\text{rt}} - \text{EdgeBackoff}
\end{aligned}
* To achieve expected TX power ``EdgeBackoff`` should be set to ``0`` before issuing ``tx_power`` command.

To calculate the TX power without issuing ``tx_power`` command, see :ref:`nrf70_wifi_tx_power_calculation`.

.. group-tab:: FICR/OTP programming

* Use the following reference command interface to read or write the OTP params:
Expand Down

0 comments on commit 3a9a2e3

Please sign in to comment.