eirp compliance
eirp_complianceChecks EIRP (Effective Isotropic Radiated Power) compliance against regional regulatory limits for LoRa and Meshtastic operation. Computes EIRP from transmit power, antenna gain, and cable loss, then compares against FCC (US, 36 dBm), ETSI (EU, 16.15 dBm), ACMA (Australia, 30 dBm), IC (Canada, 36 dBm), and ARIB (Japan, 13 dBm) limits. Returns compliance status, margin in dB, and a warning message if over the limit. Critical for Meshtastic deployments using aftermarket high-gain antennas which can easily exceed ETSI/JP limits. Accepts tx_power and antenna_gain from meshtastic_range for chain validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Regulatory region for EIRP limit lookup. FCC_US: 36 dBm, ETSI_EU: ~16 dBm, ACMA_AU: 30 dBm, IC_CA: 36 dBm, JP: 13 dBm. | FCC_US |
| tx_power_dbm | Yes | Conducted transmit power at the radio output in dBm. Typical LoRa: 14-22 dBm. | |
| cable_loss_db | No | Coaxial cable and connector loss in dB. Set 0 for devices with integrated antennas. | |
| antenna_gain_dbi | Yes | Antenna gain in dBi. Stock Meshtastic antennas: 2-3 dBi. External: 6-10+ dBi. | |
| custom_limit_dbm | No | Custom EIRP limit in dBm. Only used when region is 'custom'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warning | Yes | Warning message if non-compliant, or empty string if compliant. | |
| eirp_dbm | Yes | Calculated EIRP in dBm: tx_power + antenna_gain - cable_loss. | |
| compliant | Yes | True if EIRP is at or below the regional limit. | |
| limit_dbm | Yes | Regional EIRP limit in dBm. | |
| margin_db | Yes | Margin below the limit in dB. Positive = compliant, negative = over limit. | |
| eirp_watts | Yes | Calculated EIRP converted to watts. | |
| limit_watts | Yes | Regional EIRP limit converted to watts. | |
| region_name | Yes | Human-readable region name. |