summaryrefslogtreecommitdiff
path: root/sample_notebooks/lalithap/CHAPTER_10.ipynb
blob: d98f5fa8f139023a03c267a6c775769ab395776f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
{
 "metadata": {
  "name": "",
  "signature": "sha256:3d39a49f35ba76bcb7868f57a95e89d561517d277091abd70ccf055ceb540b97"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "CHAPTER 10-Wireless Communication Systems\n"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.1- PG NO.351"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page 351\n",
      "BW=12.5*10.**3.\n",
      "TDR1=512.#transmission data rate\n",
      "SPef1=TDR1/BW#spectral efficiency\n",
      "\n",
      "TDR2=1200.\n",
      "SPef2=TDR2/BW\n",
      "\n",
      "TDR3=2400.\n",
      "SPef3=TDR3/BW\n",
      "print'%s %.2f' %('the spectral efficiency in bps/Hz at 512 bps transmission data rate',SPef1)\n",
      "print'%s %.3f' %('the spectral efficiency in bps/Hz at 1200 bps transmission data rate',SPef2)\n",
      "print'%s %.3f' %('the spectral efficiency in bps/Hz at 2400 bps transmission data rate',SPef3)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the spectral efficiency in bps/Hz at 512 bps transmission data rate 0.04\n",
        "the spectral efficiency in bps/Hz at 1200 bps transmission data rate 0.096\n",
        "the spectral efficiency in bps/Hz at 2400 bps transmission data rate 0.192\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.2- PG NO.352"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.352\n",
      "import math\n",
      "P4dBW=-34.\n",
      "PdBm4=P4dBW-30.\n",
      "PW4=10**((PdBm4/10))\n",
      "print '%s %.10f' %('minimum power level of class IV phone in mW',PW4)\n",
      "\n",
      "ERP1dBW=6.\n",
      "PdBm1=ERP1dBW-30.\n",
      "PW1=10.**((PdBm1/10.))\n",
      "\n",
      "print '%s %.6f' %('ERP of class I phone in mW',PW1)\n",
      "R=PW1/PW4\n",
      "RdB=10.*math.log(R)\n",
      "\n",
      "print '%s %.10f %s %.10f' %('minimum power level for a class I phone is greater than \\nminimum power level of class IV phone by factor of',RdB,'dB or',R)\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "minimum power level of class IV phone in mW 0.0000003981\n",
        "ERP of class I phone in mW 0.003981\n",
        "minimum power level for a class I phone is greater than \n",
        "minimum power level of class IV phone by factor of 92.1034037198 dB or 10000.0000000000\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.3- PG NO.353"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.353\n",
      "BW=25.*10.**3.#bandwidth of POCSAG=bandwidth of FLEX system\n",
      "\n",
      "TDR1=1200.# transmission data rate\n",
      "SPef1=TDR1/BW#spectral efficiency\n",
      "\n",
      "TDR2=6400.\n",
      "SPef2=TDR2/BW\n",
      "print '%s %.3f' %('the spectral efficiency in bps/Hz at 1200 bps transmission data rate in POCSAG paging system',SPef1)\n",
      "print '%s %.3f' %('the spectral efficiency in bps/Hz at 6400 bps transmission data rate in FLEX paging system',SPef2,)\n",
      "\n",
      "Cinc=TDR2/TDR1\n",
      "print '%s %.1f' %('estimating increase in capacity in times',Cinc)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the spectral efficiency in bps/Hz at 1200 bps transmission data rate in POCSAG paging system 0.048\n",
        "the spectral efficiency in bps/Hz at 6400 bps transmission data rate in FLEX paging system 0.256\n",
        "estimating increase in capacity in times 5.3\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.6- PG NO.367"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.367\n",
      "Bt=12.5*10.**6.\n",
      "Bg=10.*10.**3.\n",
      "B2g=2.*Bg#Guard band on both the ends\n",
      "ABW=Bt-B2g\n",
      "Bc=30000.#channel bandwidth\n",
      "N=ABW/Bc\n",
      "print '%s %d' %('total no. of channels available in the system',N)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "total no. of channels available in the system 416\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.8- PG NO.374"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.374\n",
      "ERPmax1dB=6.\n",
      "ERPmax2dB=-2.\n",
      "DiffdB=ERPmax1dB-ERPmax2dB\n",
      "Diff=10.**(DiffdB/10.)\n",
      "Rfree=5.*(Diff)**(1./2.)#free space-case(a)\n",
      "Rtypc=5.*(Diff)**(1./4.)#signal attenuation is proportional to 4th power-case(b)\n",
      "print '%s %.1f' %('maximum communication range in km in a free space propogation condition-case(a)',Rfree)\n",
      "print '%s %.2f' %('maximum communication range in km when signal attenuation is proportional to 4th power-case(b)',Rtypc)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "maximum communication range in km in a free space propogation condition-case(a) 12.6\n",
        "maximum communication range in km when signal attenuation is proportional to 4th power-case(b) 7.92\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.11- PG NO.385"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no. 385\n",
      "import math\n",
      "P4dBW=-34.\n",
      "PdBm4=P4dBW-30.\n",
      "PW4=10.**((PdBm4/10.))\n",
      "print '%s %.10f' %('minimum power level of class IV phone in mW',PW4)\n",
      "\n",
      "ERP1dBW=6.\n",
      "PdBm1=ERP1dBW-30.\n",
      "PW1=10.**((PdBm1/10.))\n",
      "\n",
      "print '%s %.6f' %('ERP of class I phone in mW',PW1)\n",
      "R=PW1/PW4\n",
      "RdB=10.*math.log(R)\n",
      "\n",
      "print '%s %.6f %s %.6f' %('minimum power level for a class I phone is greater than\\nminimum power level of class IV phone by factor of',RdB,'dB or',R)\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "minimum power level of class IV phone in mW 0.0000003981\n",
        "ERP of class I phone in mW 0.003981\n",
        "minimum power level for a class I phone is greater than\n",
        "minimum power level of class IV phone by factor of 92.103404 dB or 10000.000000\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.12- PG NO.387"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.387\n",
      "spfl=810*10**6\n",
      "spfu=826*10**6\n",
      "sprl=940*10**6\n",
      "spru=956*10**6\n",
      "BWf=spfu-spfl\n",
      "BWr=spru-sprl\n",
      "\n",
      "BWc=10./100.*BWf#BWf=BWr(universal standard)\n",
      "BWv=BWf-BWc\n",
      "nsc=1150.\n",
      "BWmax=BWv/nsc\n",
      "SPef=1.68\n",
      "CDRmax=BWmax*SPef\n",
      "FECcr=0.5\n",
      "DRnmax=FECcr*CDRmax\n",
      "print '%s %.6f' %('there is a speech coder with a max. data rate of in bps',DRnmax)\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "there is a speech coder with a max. data rate of in bps 10518.260870\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.13- PG NO.388"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.388\n",
      "d=40.*10.**0.\n",
      "npf=6.\n",
      "dts=d/npf#duration of a time slot of a voice frame\n",
      "nbv=1944.\n",
      "nbpts=nbv/npf#no. of bits per time slot\n",
      "db=d/nbv#duration of a bit in secs\n",
      "npg=6.\n",
      "tg=db*npg#guard time in secs\n",
      "c=3.*10.**8.\n",
      "Disrt=c*tg\n",
      "Dismx=Disrt/2.#max. distance\n",
      "print '%s %.4f' %('duration of a time slot of a voice frame in secs',dts)\n",
      "print '%s %d' %('no. of bits per time slot',nbpts)\n",
      "print '%s %.2f' %('duration of a bit in microsecs',db*1000)\n",
      "print '%s %d' %('guard time in microsecs',tg*1000)\n",
      "print '%s %.2f' %('maximum distance between a cell site and a mobile in kilometres',Dismx/1000000)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "duration of a time slot of a voice frame in secs 6.6667\n",
        "no. of bits per time slot 324\n",
        "duration of a bit in microsecs 20.58\n",
        "guard time in microsecs 123\n",
        "maximum distance between a cell site and a mobile in kilometres 18.52\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.14- PG NO.389"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#page no.389\n",
      "dv=40.*10.**-3.\n",
      "nps=1./dv\n",
      "nbpv=1944.\n",
      "TGrbr=nbpv*25.\n",
      "TGrbaur=TGrbr/2.#2 bits/symbol for pi/4 qpsk mod\n",
      "CBW=30.*10.**3.\n",
      "BWef=TGrbr/CBW\n",
      "print '%s %.1f' %('total gross bit rate for the RF signal in Kbps',TGrbr/1000)\n",
      "print '%s %.1f' %('total gross baud rate for the RF signal in Kbps',TGrbaur/1000)\n",
      "print '%s %.1f' %('bandwidth efficiency in bps/Hz',BWef)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "total gross bit rate for the RF signal in Kbps 48.6\n",
        "total gross baud rate for the RF signal in Kbps 24.3\n",
        "bandwidth efficiency in bps/Hz 1.6\n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "EXAMPLE 10.15- PG NO.391"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#PAGE NO.391\n",
      "Bt=12.5*10.**6.\n",
      "Bc=30.*10.**3.\n",
      "K=7.#frequency reuse factor\n",
      "N=Bt/Bc#total no. of available channels\n",
      "M=N*(1./K)#user capacity per cell \n",
      "\n",
      "Nu=3.#no. of users/channel\n",
      "NU=N*Nu\n",
      "K1=4.\n",
      "M1=NU*(1./K1)\n",
      "\n",
      "print '%s %d' %('capacity of 1G AMPS FDMA analog cellular system in users/cell',M)\n",
      "print '%s %d' %('capacity of 2G IS-136 TDMA digital cellular system in users/cell',M1)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "capacity of 1G AMPS FDMA analog cellular system in users/cell 59\n",
        "capacity of 2G IS-136 TDMA digital cellular system in users/cell 312\n"
       ]
      }
     ],
     "prompt_number": 10
    }
   ],
   "metadata": {}
  }
 ]
}