From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3446/CH19/EX19.1/Ex19_1.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 3446/CH19/EX19.1/Ex19_1.sce (limited to '3446/CH19/EX19.1') 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); -- cgit