blob: 4442468673ad7bc8087dec85b63d440d454c7a6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Exa 21.8
// To determine SIRmin and r_max.
clc
clear all;
d=10; // distance between AP and IEEE 802.11 device in metres
Y=4; //path loss exponent
PBt=20; //the transmitted power by the BT in dBm
PAp=40; //the transmitted power by the AP in dBm
Pe=10^-5;//acceptable error probability
//solution
//Pe=0.5*e^(-0.5*Eb/No)
SIR=log(Pe/0.5)/(-0.5);// signal-to-interference ratio
rmax=d*(SIR*PBt/PAp)^(1/Y);// range of interference between Bluetooth and 802.11 device
printf('Minimum SIR is %.2f dB = %.1f \n',10*log10(SIR),SIR);
printf(' Maximum coverage range is %.2f metres \n',rmax);
|