diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH19 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3446/CH19')
-rw-r--r-- | 3446/CH19/EX19.1/Ex19_1.sce | 21 | ||||
-rw-r--r-- | 3446/CH19/EX19.2/Ex19_2.sce | 14 |
2 files changed, 35 insertions, 0 deletions
diff --git a/3446/CH19/EX19.1/Ex19_1.sce b/3446/CH19/EX19.1/Ex19_1.sce new file mode 100644 index 000000000..808d91ef7 --- /dev/null +++ b/3446/CH19/EX19.1/Ex19_1.sce @@ -0,0 +1,21 @@ +// Exa 19.1
+// To calculate the hopping rate of bluetooth, No of bits transmitted in one slot, efficiency of packet transmission, and No of times a packet is sent.
+
+clc;
+clear all;
+
+SS=80; //Frame length of HV3 voice packet
+R=64*10^3; //Data rate in bps
+
+//solution
+TS=240; //No of bits carried in a slot
+//From table 19.3:Bluetooth air interface details, we get Frequency hopping rate as 1600hopes/second
+
+//From table 19.5, we can note that for HV3, No of slots are 1 and carry in all(80(user voice sample)+160(parity bits))=240 bits in one slot packet
+HR=1600; //hopes/second
+Eff=SS/TS;
+x=R/SS; //x is number of times a packet is sent
+printf('Hopping rate is %d hopes/sec \n ',HR);
+printf('No of bits transmitted in one slot are %d \n ',TS);
+printf('Efficiency of packet transmission is %.4f \n ',Eff);
+printf('Number of times a packet is sent is equal to %d \n ',x);
diff --git a/3446/CH19/EX19.2/Ex19_2.sce b/3446/CH19/EX19.2/Ex19_2.sce new file mode 100644 index 000000000..8e9d8eb32 --- /dev/null +++ b/3446/CH19/EX19.2/Ex19_2.sce @@ -0,0 +1,14 @@ +// Exa 19.2
+// To find the associated data rate.
+
+clc;
+clear all;
+
+R=136; // bits per slot
+SR=800; // no of slots per second
+
+//solution
+// A symmetric 1-slot DM1 link is setup between a master and a slave
+AR=R*SR; //Data rate in bps
+
+printf('Associated data rate is %0.1f kbps \n ',AR/1000);
|