Files
Ashish fdb8190f50 [ot-fct] fix access file from path defined in build parameter (#11080)
When configuration file defined in build parameter(command line argument),
ot-fct is wound't take into an account and accessed default path.

This commit fixes to access configuration file from path which is
defined from build command line parameter. Also, it fixes some
compilation issues while building from ot-br-posix.

Signed-off-by: ashish <[email protected]>
2025-01-06 09:35:07 -08:00
..

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