Tool

LoRa time-on-air calculator

How long one packet occupies the channel. Higher spreading factors buy sensitivity with airtime; this works out how much airtime, for the settings you type in. The result is an estimate from the published formula, not a measurement.

Radio settings

Scope: this estimate follows the equations for the Semtech SX1276. The SX1277 supports only SF6 to SF9, and 250 and 500 kHz are not available in the 169 MHz band (datasheet Rev. 7, Table 1 and section 4.1.1.4). The menus show every combination, so a combination your chip cannot run is mathematical only, not a usable setting.

Packet options

Duty cycle (optional)

Estimate

Time on air: … (estimate)

Working

Key: BW in hertz; CR 1 to 4 for 4/5 to 4/8; CRC 1 if the payload CRC is on, else 0; IH 1 for implicit header, 0 for explicit; DE 1 if low data rate optimisation is on, else 0; PL payload bytes.

Tsym = 2SF ÷ BW

Tpreamble = (npreamble + 4.25) × Tsym

npayload = 8 + max(ceil[(8PL − 4SF + 28 + 16CRC − 20IH) ÷ (4(SF − 2DE))] × (CR + 4), 0)

Tpacket = Tpreamble + npayload × Tsym

Assumptions and limits

  • The equations are the time-on-air equations in Semtech's SX1276 datasheet (the SX1276-7-8-9 datasheet, Rev. 7, sections 4.1.1.2 to 4.1.1.7). The estimate is scoped to the SX1276: the SX1277 supports only SF6 to SF9, and 250 and 500 kHz are not available in the 169 MHz band (Table 1 and section 4.1.1.4). The menus still offer those combinations, so a result for one your chip cannot run is mathematical only. Symbols: SF spreading factor, BW bandwidth in hertz, CR 1 to 4 for 4/5 to 4/8, PL payload bytes, CRC 1 when the payload CRC is on, IH 1 for implicit header mode, DE 1 when low data rate optimisation is on.
  • Many current boards use Semtech's newer SX126x radios. Check that chip's own datasheet if you need an exact figure for it.
  • Bandwidth is taken at its nominal value, and only spreading factors 7 to 12 are offered. 2SF divided by the bandwidth in hertz gives the symbol time in seconds; results are shown in milliseconds.
  • Payload means every byte the radio transmits after the LoRa header. Mesh firmware such as Meshtastic carries its own packet header inside that payload (see Mesh Broadcast Algorithm in the Meshtastic documentation), so enter the full size the radio sends if you know it.
  • One packet only: no retries, acknowledgements, rebroadcasts by other nodes, or wait before sending.
  • Low data rate optimisation (DE) is switched on and locked when the symbol time is over 16 ms, the datasheet threshold. Below that it is your choice, and transmitter and receiver must agree on it.
  • The duty-cycle line is plain arithmetic on the limit you type: packets per hour = floor(3600 s × percent ÷ 100 ÷ time on air), taking the percentage to apply to a 3,600 second window. Look up the rules that apply where you transmit.

Sources