Lora Part15
Lora Part15
com
v1.1.0
mobilefish.com
INTRO
• In
this tutorial I will explain how data rate, chip rate, symbol rate, chirp duration and
symbol duration are calculated.
mobilefish.com
CHIP RATE
• The unit of bandwidth (BW) is Hertz (Hz) which is the number of vibrations
or wave cycles per second. This bandwidth is interchangeably with chip rate:
BW = Rc = chip rate (chips/s) [1]
flow
time
mobilefish.com
SYMBOL RATE
• The
Symbol Rate (Rs) is calculated as follow:
Rs (symbols/sec) = BW / 2SF = Rc / 2SF [1]
Bandwidth (BW) in Hz
Spreading Factor (SF): 7-12
• For
example: BW=125 kHz, SF=7
Rs = 125000 / 27 = 977 symbols/sec
fhigh bandwidth (BW)
fhigh - flow
fcenter
flow
time
mobilefish.com
DATA RATE
• The chip rate is always higher than the symbol rate: Rc > Rs
• If you increase the bandwidth, the bit rate or data rate is increased.
mobilefish.com
DATA RATE
• Forexample: BW=125 kHz, CR=1
SF=7, Rb = 7 x (125000/27 ) x (4/(4+1)) = 5.5 kbits/s
SF=8, Rb = 8 x (125000/28 ) x (4/(4+1)) = 3.13 kbits/s
SF=9, Rb = 9 x (125000/29 ) x (4/(4+1)) = 1.76 kbits/s
SF=10, Rb = 10 x (125000/210) x (4/(4+1)) = 0.98 kbits/s
SF=11, Rb = 11 x (125000/211) x (4/(4+1)) = 0.54 kbits/s
SF=12, Rb = 12 x (125000/212) x (4/(4+1)) = 0.29 kbits/s
• If you increase the Spreading Factor, the bit rate or data rate is decreased.
mobilefish.com
CHIP DURATION
Rc = BW [1], the chip duration is calculated as follow:
• Because
Tc (sec) = 1 / BW
Bandwidth (BW) in Hz
• For
example: BW=125 kHz
Tc = 1 / 125000 = 8 µs
mobilefish.com
SYMBOL DURATION
symbol duration or sweep time is calculated as follow:
• The
Ts(sec) = 2SF / BW [1]
Bandwidth (BW) in Hz
Spreading Factor (SF): 7-12
fhigh
bandwidth (BW)
fhigh - flow
fcenter
flow
Ts Ts time
mobilefish.com
SYMBOL DURATION
• For example: SF7
BW=125 kHz, Ts = 27 / 125000 = 1.024 ms
BW=250 kHz, Ts = 27 / 250000 = 512 µs
BW=500 kHz, Ts = 27 / 500000 = 256 µs
If the BW increases, the Symbol duration decreases.
fh
fc
fl
SF7 SF8 SF9 SF10 SF11
time
mobilefish.com
SPREADING FACTOR IMPACT
• If you increase the SF by 1:
• The symbol duration or sweep time doubles compared to the previous SF.
• It reduces the bit rate approximately by half compared to the previous SF.
• The Time on Air (ToA) (= the amount of time that the transmitter antenna is
energised and transmitting data) increases which means the distance increases.
• To give you an idea what the Time on Air is for a 10 byte payload, BW=125kHz:
SF7: ToA = 41 ms
SF12: ToA = 991 ms
See: https://www.loratools.nl/#/airtime
mobilefish.com
SPREADING FACTOR IMPACT
• LoRa devices uses a higher spreading factor when the signal is weak or there is lot of
interference. Using a higher spreading factor means a longer Time on Air (ToA).
• If
an end device is further away from a gateway the signal get weaker and therefore
needs a higher spreading factor.