mirror of
https://github.com/espressif/openthread.git
synced 2026-10-08 00:37:40 +00:00
[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
This commit is contained in:
@@ -265,4 +265,24 @@
|
||||
#define OPENTHREAD_CONFIG_DETERMINISTIC_ECDSA_ENABLE 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
|
||||
*
|
||||
* Define as 1 to enable power calibration support.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE
|
||||
#define OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE
|
||||
*
|
||||
* Define as 1 to enable platform power calibration support.
|
||||
*
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE
|
||||
#define OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE 1
|
||||
#endif
|
||||
|
||||
#endif // OPENTHREAD_CORE_SIMULATION_CONFIG_H_
|
||||
|
||||
Reference in New Issue
Block a user