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.
Estimate
Time on air: … (estimate)
- Symbol time, Tsym
- …
- Preamble time
- …
- Payload symbols
- …
- Payload time
- …
Same packet at every spreading factor
Your bandwidth, coding rate, payload, preamble, CRC and header settings, drawn to one linear scale. The highlighted row uses the same DE as the estimate above. The other rows switch DE on wherever the symbol time is over 16 ms, the published threshold, and leave it off otherwise. Transmitter and receiver must agree on DE. SF10 to SF12 do not exist on an SX1277, and 250 and 500 kHz are not available at 169 MHz, so rows for those are mathematical only.
- SF7…
- SF8…
- SF9…
- SF10…
- SF11…
- SF12…
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
With your numbers
Tsym is exact. Other results are rounded for display, so they are shown with ≈.
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
- LoRa Connect Transceiver, SX1276, 137MHz to 1020MHz, Semtech. The product page lists the “SX1276-7-8-9 Datasheet”, Rev. 7 (May 2020); the time-on-air equations are in sections 4.1.1.2 to 4.1.1.7.
- LoRaMac-node, SX1276 radio driver (sx1276.c, lines 1436 to 1498), Semtech (Lora-net on GitHub). A readable version of the same arithmetic.
- Mesh Broadcast Algorithm, Meshtastic documentation, for the packet header that Meshtastic carries inside the LoRa payload.