I'm a CompSci student with absolutely no background in wireless communication who recently needs to do something with the Shannon formula: $$ R = W log_2\bigg(1+\frac{P_t H^2}{N_0 W}\bigg) $$ I need to calculate the achievable data rate \$R\$ given:
- Bandwidth \$W=2\$ MHz.
- Transmit power \$P_t=0.2\$ Watt.
- Path loss model: \$128.1 + 37.6log_{10}(d)\$, where d = 0.45 km.
- Noise power density \$N_0 = -174\$ dBm/Hz.
This is how I'm calculating \$R\$:
- Convert bandwidth \$W\$ to Hz, so now \$W=2\times10^6\$ Hz.
- Leave the transmit power as is (Watt).
- Given the path loss model, we have \$H=10^{-12.81}(450)^{-3.76}\approx 1.64\times10^{-23}\$.
- Convert noise power density \$N_0\$ to W/Hz, so now \$N_0=10^{\frac{-174-30}{10}}=10^{-20.4}\$ W/Hz.
- Finally, the data rate $$ R = 2\times10^6\times log_2\bigg(1 + \frac{0.2\times(1.64\times10^{-23})^2}{10^{-20.4}\times 2\times10^6}\bigg) \approx 0 \text{ bps (?!?)} $$
The resulted data rate is extremely small - close to zero. I reckon because the channel gain is too small? Could someone please tell me what went wrong in my calculation above? I'm quite confused with all the different units of measurement in wireless communication.
I already went over this relevant question (Calculating Data Rate using Bandwidth, Transmission Power, Noise Power Spectrum Density and Channel Gain) but still couldn't figure out.
UPDATE 1:
I just found out that the path loss model: \$128.1 \text{dB} + 37.6log_{10}(d)\$ is equivalent to \$ \frac{P_r}{P_t}=\frac{10^{-12.81}}{d^{3.76}} \$. So that we can find the actual received power \$P_r\$ (transmit power minus the power lost by distance during the transmission). I guess the numerator in the formula (\$P_t H^2\$) should be replaced by this \$P_r\$. The data rate now is: $$ R = 2\times10^6\times log_2\bigg(1 + \frac{0.2\times \frac{10^{-12.81}}{d^{3.76}}}{10^{-20.4}\times 2\times10^6}\bigg)\approx 0.5 \text{ Mbps} $$ I'm not sure whether distance \$d\$ should be meter or kilometer. If meter, the data rate is 70.2Mbps, which is crazily high. If kilometer, we have spectral efficiency (the log part of the formula) \$=0.25\$ bps/Hz, and data rate \$R=0.5\$ Mbps, which makes more sense. Am I doing this right? Is this number realistic given all the settings above?
~~
Alternatively, I've seen the channel gain being calculated like this \$H=d^{-\alpha}\$, where distance \$d\$ is in meter, and path loss exponent is, say, 3.76. If I apply this to the original formula above. The data rate is now: $$ R = 2\times10^6\times log_2\bigg(1 + \frac{0.2\times (450^{-3.76})^2}{10^{-20.4}\times 2\times10^6}\bigg) \approx 0.8 \text{ bps} \approx 8.1\times 10^{-7} \text{ Mbps} $$ which seems quite small compared to what I got above (0.5 Mbps). I know the setting here (channel gain calculation) is different but I wasn't expecting such a large difference.
Is there anything wrong? Which calculation is more realistic in practice?
For those interested, I found these lecture notes quite useful. They contain some example calculations.