Here are some loose calculations on the RF link budget for LoRa systems. I've worked through this exercise for three reasons:
1. To determine the footprint extents we should expect from a typical gateway
2. To give some info from which we can identify where to place gateways to give good coverage to Oxford
3. To let me refresh my memory as to how to plan out an RF network for coverage!
To begin, we need some parameters...
LoRaWAN for Europe Spec:
• Frequency Band : 867-869MHz
• Max Link Budget : 154 dB
• Minimum Rx Sensitivity : -134 dBm (?)
• TX Power Down : +14dBm (ETSI limit)
Gateway's RF Configuration:
• Nominal Antenna : 4.5 dBi gain
• Higher Gain Antenna : 12 dBi gain
• Cable loss : 1dB (estimate)
Next we need some equations to extrapolate a working distance from transmitted and received power levels...
First equation calculates the effective radiated power (the power that leaves the antenna) from the power fed to the antenna.
EiRP = Tx Power + Antenna Gain - Cable Loss
I shall assume we are using a nominal Omni antenna at the gateway.
EiRP = 14 + 4.5 - 1 = 17.5 dBm
Second equations identify the received signal level, hence pathloss, that gives us the minimum required level of coverage at the cell edge (hence that indicates where the cell edge is.)
RSSI = EiRP - Pathloss
First try: Assuming Pathloss = Max Link Budget: RSSI = 17.5 - 154 = -136.5 dBm
This gives a receive level below minimum sensitivity, which won't work. So we can't allow the pathloss to reach this max link budget. Instead try turning this equation around and setting the RSSI to the minimum sensitivity.
-134 = 17.5 - Pathloss
Pathloss = 17.5 + 134 = 151.5 dB
We can now use this pathloss value to indicate a point at which a Thing will just about receive the minimum coverage necessary to work. From this we can now use propagation prediction models to determine the distance from the gateway at which this pathloss would be expected.
Hata model - Urban Areas:
The Okumura-Hata model is an equation for predicting signal propagation. It was devised by Hata as a curve to fit drive-test measurements made in city areas by Okumura. Hata's model gives values of pathloss at given distances between a base station (LoRa Gateway) and a mobile (LoRa Thing). It factors in various effects such as transmit frequency, antenna locations, and the scattering, diffraction and reflection of signals as they pass through the typical clutter (trees, buildings, etc) seen in the city.
Pathloss = 69.55 + 26.16log10 f - 13.82log10 hB - CH + [44.9 - 6.55log10 hB]log10 d
hB = Height of gateway antenna above ground (metres)
hM = Height of Thing's antenna above ground (metres)
f = Transmit frequency (MHz)
CH = Antenna height correction factor
d = Distance from gateway to Thing (km)
For a small city like Oxford, CH = 0.8 + (1.1log10 f - 0.7)hM - 1.56 log10 f
For our LoRa network we know (or can estimate) the following:
hB = 30m
hM = 2m
f = 868MHz
CH = 0.8 + (1.1log10 868 - 0.7)2 - 1.56log10 868
CH = 0.8 + (1.12.94 - 0.7)2 - 1.562.94
CH = 1.282
Pathloss = 69.55 + 26.162.94 - 13.82log10 30 - 1.282 + [44.9 - 6.55log10 30]log10 d
Pathloss = 124.76 + 35.22*log10 d
Log10 d = (Pathloss - 124.76) / 35.22
Log10 d = (151.5 - 124.76) / 35.22 = 0.7592
d = 10^0.7592 = 5.7438 km
In other words we can estimate that placing gateway antennas on high roofs (30m) in the city centre will allow signals to remain usable up to 5.7km away.
Hata Model - Suburban Areas:
Hata's suburban model is a correction on the urban model. It accounts for the differences in clutter in suburban areas compared to urban areas - e.g. in suburbs buildings tend to be lower, thinner-walled and more spaced out, thus they are expected to attenuate signals to a lesser degree.
LSU = LU - 2*(log10 (f/28))^2 - 5.4
LSU = Suburban pathloss
LU = Urban pathloss
LSU = LU - 2*(log10 31)^2 - 5.4
LSU = LU - 9.85
From above, at 5.7km from the gateway, Urban Pathloss (LU) would be 151.5 dB but Suburban Pathloss (LSU) would be only 141.65 dB. Signals could hence travel further before they hit that 151.5 dB pathloss limit. We can add the factor onto our urban pathloss score to determine this new distance.
Pathloss + 9.85 = 124.76 + 35.22*log10 d
Log10 d = (Pathloss + 9.85 - 124.76) / 35.22
Log10 d = (151.5 + 9.85 - 124.76) / 35.22 = 1.0389
d = 10^1.0389 = 10.937 km
So a gateway serving a suburban area might deliver signals to almost twice the distance of a gateway serving an urban area.
The Hata equations assume signals will pass through clutter that is typical of a small city. They then presume that the signals are received by a device placed outside.
To plan for signals being usable indoors, the link budget needs to incorporate an additional Building Loss, which is the amount by which a signal will be attenuated on passing from outdoors into the building. Whether indoors or outdoors, each Thing must receive signals above the minimum sensitivity level. So to ensure coverage for Things placed indoors, the predicted outdoor signal level must exceed the minimum sensitivity by at least the building loss figure.
In Oxford City Centre, we might expect building losses of up to 20dB. This means:
-134 = 17.5 - Pathloss + 20
Pathloss = 17.5 + 134 - 20 = 131.5 dB
Log10 d = (Pathloss - 124.76) / 35.22
Log10 d = (131.5 - 124.76) / 35.22 = 0.1914
d = 10^0.1914 = 1.554 km
In the suburbs, we might expect building losses of up to 15dB. This means:
-134 = 17.5 - Pathloss + 15
Pathloss = 17.5 + 134 - 15 = 136.5 dB
Log10 d = (Pathloss + 9.85 - 124.76) / 35.22
Log10 d = (136.5 + 9.85 - 124.76) / 35.22 = 0.613
d = 10^0.613 = 4.1 km
So, aiming to provide good indoor coverage will greatly reduce the service area of each gateway!
Other things that can affect the coverage achieved by a gateway:
• Antenna gain - I've assumed a fairly typical short antenna that offers a gain of 4.5dBi. Multi-element antennas are available that would push the antenna gain up to around 12dBi. This additional gain would raise the radiated power for the same Tx Power, which in turn would raise the received signal level for the same pathloss. A raised RSSI would allow a greater pathloss to be experienced before the signal fell to the minimum sensitivity. Hence with a better antenna the cell radius could be increased.
• Antenna height - We will be relying on rooftops for mounting antennas. The higher the mount, the greater the visibility of the antenna and subsequently the greater its range. (In practice, raising the antenna extends the distance signals travel before they start having to pass through or around the clutter. The prediction algorithm I have chosen accounts for this using the antenna height correction factor, CH.) We may not get much choice about antenna height, but we should aim for higher mount positions where permitted.
• Variation in terrain height - This has a similar effect to the variation of the height of the gateway's antenna. The Hata model tends to assume that the land is flat. For much of Oxford this is acceptable, though Headington Hill will clearly impact on the signal profile.
• Choice of operating mode - LoRa supports several different modes of operation (Bandwidth, Coding Rate, Spreading Factor) which each have different minimum receive sensitivities. The choice of mode will hence affect the allowable pathloss and consequently the gateways' service radius.
In writing this up, I'm reminded of why I spent a good part of my career designing and developing Radio Planning Tools. RPTs do all the above calculations for you, to a much greater level of detail. They use better models and can predict coverage on a bin-by-bin basis across the whole area to produce detailed maps of propagation. They can more factor in the subtle variations in terrain, clutter and other factors seen bin by bin over the geographic area. With an RPT you can quickly assess the coverage potential of many selected sites, to produce a plan for deployment of the optimum number of gateways, to provide the right service over the right area. At the moment, however I don't have access to an RPT equipped with suitable maps of the Oxford area. I shall see what I can pull together for subsequent work.
In the meantime I would appreciate if anyone could double-check my calculations? It's been a long time since I attempted to work these kinds of numbers out by hand and I would not be surprised to find errors in there somewhere.