Chapter 19: Wireless Personal Area Network - Bluetooth

Example 19.1, Page 666

In [1]:
#Variable declaration
SS=80.; #Frame length of HV3 voice packet
R=64*10**3; #Data rate in bps
TS=240; #No of bits carried in a slot

#Calculations
#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

#Results
print 'Hopping rate is %d hopes/sec'%HR;
print 'No of bits transmitted in one slot are %d'%TS;
print 'Efficiency of packet transmission is %.4f'%Eff;
print 'Number of times a packet is sent is equal to %d'%x;
Hopping rate is 1600 hopes/sec
No of bits transmitted in one slot are 240
Efficiency of packet transmission is 0.3333
Number of times a packet is sent is equal to 800

Example 19.2, Page 666

In [2]:
#Variable declaration
R=136.; # bits per slot
SR=800; # no of slots per second

#Calculations
# A symmetric 1-slot DM1 link is setup  between a master and a slave
AR=R*SR; #Data rate in bps

#Result
print 'Associated data rate is %0.1f kbps'%(AR/1000);
Associated data rate is 108.8 kbps