lora-aprs / LoRa_APRS_iGate

This is a LoRa APRS iGate/Digi based on an ESP32
https://www.lora-aprs.info
MIT License
357 stars 112 forks source link

Fix power limitations on 20dBm TX iGate #235

Closed OK2MOP closed 1 year ago

OK2MOP commented 1 year ago

Hello, RadioLib default setting is to set the current limiter to 60 mA on SX127x as per Default-configuration. This means that when using PA pin the TX power is limited by the current (which does not happen in the LoRa_APRS_Tracker as it uses different library).

For TX-enabled iGate OCP (over-current-protection), I have added a simple fix based on the code in the tracker LoRa library which should enable full TX power (unless keeping the limit is intentional to prevent overloading the iGate if there is too much traffic and the 1% duty cycle and SWR < 1:3 as per SX127x documentation Table 35 is not observed). Theoretically an adjustment for 15-17 dBm may also have to be applied.

peterus commented 1 year ago

@OK2MOP thanks for the fix!