meshtastic range
meshtastic_rangeEstimates Meshtastic node communication range using real hardware profiles and firmware channel presets. Combines device-specific TX power and antenna gain (Heltec V3, RAK WisBlock, T-Beam, T-Beam Supreme, Station G2) with firmware modem presets (Long Fast, Long Slow, Very Long Slow, Medium, Short) to compute receiver sensitivity and FSPL-based range with terrain correction. Automatically populates LoRa parameters from device and channel selection, with optional overrides for custom antennas or power levels. Essential for Meshtastic deployment planning and node placement. Returns range, sensitivity, link budget, and the effective radio parameters used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cr | No | Custom coding rate denominator (5-8). Only used when channel_preset is 'custom'. | |
| sf | No | Custom spreading factor (7-12). Only used when channel_preset is 'custom'. | |
| bw_khz | No | Custom bandwidth in kHz. Only used when channel_preset is 'custom'. | |
| device | No | Meshtastic hardware device. Selects default TX power, antenna gain, and noise figure. Use 'custom' to override all radio parameters manually. | heltec_v3 |
| 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 |
| tx_power_dbm | No | Override device default transmit power in dBm. | |
| channel_preset | No | Meshtastic firmware channel preset. Selects spreading factor, bandwidth, and coding rate. long_fast is the default; very_long_slow maximizes range at the cost of throughput. | long_fast |
| antenna_gain_dbi | No | Override device default antenna gain in dBi. Useful for aftermarket antennas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes | Human-readable device name. | |
| channel_name | Yes | Human-readable channel preset name. | |
| effective_sf | Yes | Spreading factor used for the calculation. | |
| max_range_km | Yes | Estimated maximum range in km accounting for terrain correction. | |
| tx_power_dbm | Yes | Transmit power in dBm used for the calculation. | |
| link_budget_db | Yes | Total link budget in dB before terrain correction. | |
| antenna_gain_dbi | Yes | Antenna gain in dBi used for the calculation. | |
| effective_bw_khz | Yes | Bandwidth in kHz used for the calculation. | |
| rx_sensitivity_dbm | Yes | Receiver sensitivity in dBm for the selected channel preset. |