lora range estimate
lora_range_estimateEstimates LoRa maximum communication range by computing the free-space path loss (FSPL) link budget and applying terrain-dependent correction factors. Calculates total link budget from transmit power, antenna gains, and receiver sensitivity, then solves the FSPL equation for distance after subtracting terrain losses (0 dB open to 50 dB indoor). Returns estimated range in km, link margin at 1 km, and effective path loss. Useful for Meshtastic deployment planning and coverage mapping. Terrain corrections are empirical estimates; real-world range varies with elevation, foliage, and weather.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_dbm | No | Transmit power in dBm. Typical LoRa: 14-30 dBm depending on region and module. | |
| terrain | No | Terrain type for path loss correction. open: line-of-sight, suburban: light buildings, urban: moderate buildings, dense_urban: city center, indoor: inside buildings. | suburban |
| freq_mhz | No | Carrier frequency in MHz. Common: 868 (EU), 915 (US/AU), 433 (Asia). | |
| rx_gain_dbi | No | Receive antenna gain in dBi. 2.15 dBi = half-wave dipole. | |
| tx_gain_dbi | No | Transmit antenna gain in dBi. 2.15 dBi = half-wave dipole. | |
| rx_sensitivity_dbm | No | Receiver sensitivity in dBm. Typical LoRa SF10/BW125: -130 dBm. Varies by SF and bandwidth. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_range_km | Yes | Estimated maximum range in kilometers accounting for terrain correction. | |
| margin_at_1km_db | Yes | Link margin at 1 km distance in dB. Positive means signal above sensitivity. | |
| effective_path_loss_db | Yes | Maximum allowable path loss in dB (link budget minus terrain correction). |