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
|
{
"metadata": {
"name": "",
"signature": "sha256:52a8123efdb6330b1c01d828fbdcc37a6411e5ce1469de2c94b22a16e7b4d8c8"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 10: Antennas, Diversity and Link Analysis"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.1, Page 292"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"D=10000; #in metres\n",
"TxEIRP=30; #Effective Isotropic Radiated Power(EIRP)dBW\n",
"lamda=0.2; #in metres\n",
"Pt=10; #Transmitted power in dBW\n",
"Gt=20; #transmitter gain in dBi\n",
"Gr=3; #receiver gain in dBi\n",
"Lo=6;#total system lossses in dB\n",
"Nf=5; #noise figure in dB\n",
"BW=1.25; #mHz\n",
"k=1.38*10**-23; #Boltzmann constant\n",
"T=290; #temperature in degree kelvin\n",
"\n",
"#Calculations\n",
"Lp=20*math.log10(lamda/(4*math.pi*D)); #free space loss\n",
"Pr=Lp+Pt+Gt+Gr-Lo;# received power in dBW\n",
"No=10*math.log10(k*T); #Noise density in dBW\n",
"NO=No+30; #factor of '30' to convert from dBW to dBm\n",
"Pn=Nf+10*math.log10(BW*10**6)+NO;# noise signal power in dBm\n",
"SNR=(Pr+30)-Pn;\n",
"\n",
"#Results\n",
"print 'The received signal power is %d dBm'%(round(Pr+30)); #factor of '30' to convert from dBW to dBm\n",
"print 'SNR is %d dB'%SNR"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The received signal power is -59 dBm\n",
"SNR is 49 dB\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.2, Page 293"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"#As we have to use data from Eg 10.1, \n",
"D=10000; # in metres\n",
"TxEIRP=30; #Effective Isotropic Radiated Power(EIRP)dBW\n",
"lamda=0.2; #in metres\n",
"Pt=10; #trasmitted power in dBW\n",
"Gt=20; #transmitter gain in dBi\n",
"Gr=3; #receiver gain in dBi\n",
"Lo=6;#total system lossses in dB\n",
"Nf=5; #noise figure in dB\n",
"BW=1.25; #mHz\n",
"k=1.38*10**-23; #Boltzmann constant\n",
"T=290; #temperature in degree kelvin\n",
"#additional data given in this eg\n",
"hr=40.; #height of receiver in metre\n",
"ht=2; #trasmittter antenna height in metres\n",
"\n",
"#Calculations\n",
"Lp=20*math.log10(hr*ht/D**2);\n",
"Pr=Lp+Pt+Gt+Gr-Lo;# received power in dBW\n",
"No=10*math.log10(k*T); #Noise density in dBW\n",
"NO=No+30; #factor of '30' to convert from dBW to dBm\n",
"Pn=Nf+10*math.log10(BW*10**6)+NO;# noise signal power in dBm\n",
"SNR=(Pr+30)-Pn;\n",
"\n",
"#Result\n",
"print 'The received signal power is %d dBm'%(round(Pr+30)); #factor of '30' to convert from dBW to dBm\n",
"print 'SNR is %d dB'%SNR"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The received signal power is -65 dBm\n",
"SNR is 43 dB\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.3, Page 299"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"Pin=12.; #Input power in watts\n",
"Ploss=3; #resistive losses in Watts\n",
"D=5; #Directivity\n",
"\n",
"#Calculations\n",
"Eff=(Pin-Ploss)/Pin;\n",
"G=Eff*D;\n",
"\n",
"#Results\n",
"print 'Gain of the antenna is %.2f dB = %.2f'%(10*math.log10(G),G);"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Gain of the antenna is 5.74 dB = 3.75\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.4, Page 299"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"G=12.; #Gain of antenna in dBi\n",
"\n",
"#Calculations\n",
"Theta=101.5/10**(G/10);\n",
"\n",
"#Result\n",
"print 'The 3-dB beam width of a linear element antenna is %.1f degrees'%Theta"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The 3-dB beam width of a linear element antenna is 6.4 degrees\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.5, Page 299"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"\n",
"#Variable declaration\n",
"N=12; #number of turns\n",
"fr=1.8; #frequency in GHz\n",
"\n",
"#Calculations\n",
"lamda=3*10**8/(fr*10**9);\n",
"DH=lamda/math.pi;# diameter of helix in milli-meters\n",
"S=lamda/4;#turn spacing in millimetres\n",
"L=N*S;\n",
"G=15*N*S*(DH*math.pi)**2/lamda**3;\n",
"Theta=52*lamda/(math.pi*DH)*math.sqrt(lamda/(N*S));\n",
"\n",
"#Results\n",
"print 'The optimim diameter is %d mm'%(DH*1000);\n",
"print 'Spacing is %.1f mm'%(S*1000);\n",
"print 'Total Length of antenna is %d mm'%(L*1000);\n",
"print 'The antenna gain is %.1f dBi'%(10*math.log10(G));\n",
"print 'The BeamWidth of antenna is %d degrees'%Theta"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The optimim diameter is 53 mm\n",
"Spacing is 41.7 mm\n",
"Total Length of antenna is 500 mm\n",
"The antenna gain is 16.5 dBi\n",
"The BeamWidth of antenna is 30 degrees\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.6, Page 305"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"E0=1000.; #average SNR\n",
"Eg=10; #threshold value for SNR\n",
"M=3; #3-Branch Combiner\n",
"e=2.71828; #Euler's number\n",
"\n",
"#Calculations&Results\n",
"x=Eg/E0;\n",
"P3=(1-e**(-x))**M; #Considering 3-branch selection combiner\n",
"print 'By considering 3-branch selection combiner technique, probability comes to be %.e'%P3;\n",
"P1=(1-e**(-x));#M=1;\n",
"print ' BY not considering diversity technique, probability comes to be %.e'%P1;"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"By considering 3-branch selection combiner technique, probability comes to be 1e-06\n",
" BY not considering diversity technique, probability comes to be 1e-02\n"
]
}
],
"prompt_number": 7
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 10.7, Page 312"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Variable declaration\n",
"SR=3.84; #spreading rate in Mcps\n",
"\n",
"#Calculations\n",
"ChipDur=1./(SR*10**6);\n",
"Speed=3*10**8;\n",
"Dd=ChipDur*Speed;\n",
"\n",
"#Result\n",
"print 'Minimum delay distance to successfully resolve the multipath components and operate the Rake receiver is %d m'%Dd"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Minimum delay distance to successfully resolve the multipath components and operate the Rake receiver is 78 m\n"
]
}
],
"prompt_number": 8
}
],
"metadata": {}
}
]
}
|