Files
Zhanglong Xia 8b59f4d31e [posix] add power calibration support (#8293)
The actual output power of the Thread device may be determined by both
the Thread radio chip and the FEM. Consider the output power error of
the Thread radio chip and the gain error of the FEM, the actual output
power is inconsistent with the expected output power.  To guarantee
that the actual output power is accurate and meet the regulatory
requirements, the output power should be calibrated in the factory if
the output power is not accurate.

This commit contains the following changes:

- Adds a power calibration implementation
- Adds a config file to configure the target power for different
  countries
- Adds a tool for the factory to persist the power calibration data
2022-12-21 10:15:48 -08:00

1.9 KiB

OpenThread Factory Tool Reference

Overview

The ot-fct is used to store the power calibration table into the factory configuration file and show the power related tables.

Command List

powercalibrationtable

Show the power calibration table.

> powercalibrationtable
| ChStart |  ChEnd  | ActualPower(0.01dBm) | RawPowerSetting |
+---------+---------+----------------------+-----------------+
| 11      | 25      | 1900                 | 112233          |
| 11      | 25      | 1000                 | 223344          |
| 26      | 26      | 1500                 | 334455          |
| 26      | 26      | 700                  | 445566          |
Done

powercalibrationtable add -b <channelstart>,<channelend> -c <actualpower>,<rawpowersetting>/... ...

Add power calibration table entry.

  • channelstart: Sub-band start channel.
  • channelend: Sub-band end channel.
  • actualpower: The actual power in 0.01 dBm.
  • rawpowersetting: The raw power setting hex string.
> powercalibrationtable add -b 11,25 -c 1900,112233/1000,223344  -b 26,26 -c 1500,334455/700,445566
Done

powercalibrationtable clear

Clear the power calibration table.

> powercalibrationtable clear
Done

regiondomaintable

Show the region and regulatory domain mapping table.

> regiondomaintable
FCC,AU,CA,CL,CO,IN,MX,PE,TW,US
ETSI,WW
Done

targetpowertable

Show the target power table.

> targetpowertable
|  Domain  | ChStart |  ChEnd  | TargetPower(0.01dBm) |
+----------+---------+---------+----------------------+
| FCC      | 11      | 14      | 1700                 |
| FCC      | 15      | 24      | 2000                 |
| FCC      | 25      | 26      | 1600                 |
| ETSI     | 11      | 26      | 1000                 |
Done