summaryrefslogtreecommitdiff
path: root/3446/CH21/EX21.8/Ex21_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3446/CH21/EX21.8/Ex21_8.sce')
-rw-r--r--3446/CH21/EX21.8/Ex21_8.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3446/CH21/EX21.8/Ex21_8.sce b/3446/CH21/EX21.8/Ex21_8.sce
new file mode 100644
index 000000000..444246867
--- /dev/null
+++ b/3446/CH21/EX21.8/Ex21_8.sce
@@ -0,0 +1,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);