comparison src/aci2/alr/alr_test/alr_ncell_steps.cpp @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 #include "alr_constraints.h"
2 #include "alr_ncell_steps.h"
3
4 /*------------------------------------------------------------------------------
5 *
6 * Description: Measurement reporting for the serving cell is tested. The multiframe
7 * period is set to two multiframes. It is expected that the
8 * initial report to RR is send after eleven reports of layer 1
9 * and successive reports are send to RR after ten reports.
10 * The number of TDMA frames between measurement reports to RR is
11 * 102 TDMA frames which is equal to two multiframes.
12 *-------------------------------------------------------------------------------*/
13 T_STEP meas_rep_bs_pa_mfrms_2()
14 {
15 BEGIN_STEP ("measurement reporting bs_pa_mfrms=2")
16 {
17 SEND ( mphc_rxlev_periodic_ind_1() );
18 SEND ( mphc_rxlev_periodic_ind_1() );
19 SEND ( mphc_rxlev_periodic_ind_1() );
20 SEND ( mphc_rxlev_periodic_ind_1() );
21 SEND ( mphc_rxlev_periodic_ind_1() );
22 SEND ( mphc_rxlev_periodic_ind_1() );
23 SEND ( mphc_rxlev_periodic_ind_1() );
24 SEND ( mphc_rxlev_periodic_ind_1() );
25 SEND ( mphc_rxlev_periodic_ind_1() );
26 SEND ( mphc_rxlev_periodic_ind_1() );
27 SEND ( mphc_rxlev_periodic_ind_1() );
28 AWAIT ( mph_measurement_ind_1() );
29 SEND ( mphc_rxlev_periodic_ind_1() );
30 SEND ( mphc_rxlev_periodic_ind_1() );
31 SEND ( mphc_rxlev_periodic_ind_1() );
32 SEND ( mphc_rxlev_periodic_ind_1() );
33 SEND ( mphc_rxlev_periodic_ind_1() );
34 SEND ( mphc_rxlev_periodic_ind_1() );
35 SEND ( mphc_rxlev_periodic_ind_1() );
36 SEND ( mphc_rxlev_periodic_ind_1() );
37 SEND ( mphc_rxlev_periodic_ind_1() );
38 SEND ( mphc_rxlev_periodic_ind_1() );
39 AWAIT ( mph_measurement_ind_2() );
40 }
41 }
42
43 /*-------------------------------------------------------------------------------
44 *
45 * Description: Measurement reporting for the serving cell is tested. The multiframe
46 * period is set to three multiframes. It is expected that the initial
47 * report to RR is send after eight reports of layer 1 and successive
48 * reports are send to RR after seven reports. The number of TDMA frames
49 * between measurement reports to RR is 153 TDMA frames which is equal to
50 * three multiframes.
51 *-------------------------------------------------------------------------------*/
52 T_STEP meas_rep_bs_pa_mfrms_3()
53 {
54 BEGIN_STEP ("measurement reporting bs_pa_mfrms=3")
55 {
56 SEND ( mphc_rxlev_periodic_ind_1() );
57 SEND ( mphc_rxlev_periodic_ind_1() );
58 SEND ( mphc_rxlev_periodic_ind_1() );
59 SEND ( mphc_rxlev_periodic_ind_1() );
60 SEND ( mphc_rxlev_periodic_ind_1() );
61 SEND ( mphc_rxlev_periodic_ind_1() );
62 SEND ( mphc_rxlev_periodic_ind_1() );
63 SEND ( mphc_rxlev_periodic_ind_1() );
64 AWAIT ( mph_measurement_ind_3() );
65 SEND ( mphc_rxlev_periodic_ind_1() );
66 SEND ( mphc_rxlev_periodic_ind_1() );
67 SEND ( mphc_rxlev_periodic_ind_1() );
68 SEND ( mphc_rxlev_periodic_ind_1() );
69 SEND ( mphc_rxlev_periodic_ind_1() );
70 SEND ( mphc_rxlev_periodic_ind_1() );
71 SEND ( mphc_rxlev_periodic_ind_1() );
72 AWAIT ( mph_measurement_ind_4() );
73 }
74 }
75
76 /*--------------------------------------------------------------------------------
77 *
78 * Description: Measurement reporting for the serving cell is tested. The multiframe
79 * period is set to four multiframes. It is expected that the initial
80 * report to RR is send after six reports of layer 1 and successive
81 * reports are send to RR after five reports. The number of TDMA frames
82 * between measurement reports to RR is 204 TDMA frames which is
83 * equal to four multiframes.
84 *-------------------------------------------------------------------------------*/
85 T_STEP meas_rep_bs_pa_mfrms_4()
86 {
87 BEGIN_STEP ("measurement reporting bs_pa_mfrms=4")
88 {
89 SEND ( mphc_rxlev_periodic_ind_1() );
90 SEND ( mphc_rxlev_periodic_ind_1() );
91 SEND ( mphc_rxlev_periodic_ind_1() );
92 SEND ( mphc_rxlev_periodic_ind_1() );
93 SEND ( mphc_rxlev_periodic_ind_1() );
94 SEND ( mphc_rxlev_periodic_ind_1() );
95 AWAIT ( mph_measurement_ind_1() );
96 SEND ( mphc_rxlev_periodic_ind_1() );
97 SEND ( mphc_rxlev_periodic_ind_1() );
98 SEND ( mphc_rxlev_periodic_ind_1() );
99 SEND ( mphc_rxlev_periodic_ind_1() );
100 SEND ( mphc_rxlev_periodic_ind_1() );
101 AWAIT ( mph_measurement_ind_5() );
102 }
103 }
104
105 /*------------------------------------------------------------------------------
106 *
107 * Description: Measurement reporting for the serving cell is tested.
108 * The multiframe period is set to five multiframes. It is expected
109 * that the initial report to RR is send after five reports of
110 * layer 1 and successive reports are send to RR after four reports.
111 * The number of TDMA frames between measurement reports to RR is
112 * 255 TDMA frames which is equal to five multiframes.
113 *-------------------------------------------------------------------------------*/
114
115 T_STEP meas_rep_bs_pa_mfrms_5()
116 {
117 BEGIN_STEP ("measurement reporting bs_pa_mfrms=5")
118 {
119 SEND ( mphc_rxlev_periodic_ind_1() );
120 SEND ( mphc_rxlev_periodic_ind_1() );
121 SEND ( mphc_rxlev_periodic_ind_1() );
122 SEND ( mphc_rxlev_periodic_ind_1() );
123 SEND ( mphc_rxlev_periodic_ind_1() );
124 AWAIT ( mph_measurement_ind_1() );
125 SEND ( mphc_rxlev_periodic_ind_1() );
126 SEND ( mphc_rxlev_periodic_ind_1() );
127 SEND ( mphc_rxlev_periodic_ind_1() );
128 SEND ( mphc_rxlev_periodic_ind_1() );
129 AWAIT ( mph_measurement_ind_6() );
130 }
131 }
132
133
134 /*-----------------------------------------------------------------------------
135 *
136 * Description: Measurement reporting for the serving cell is tested. The multiframe
137 * period is set to six multiframes. It is expected that the initial
138 * report to RR is send after five reports of layer 1 and successive
139 * reports are send to RR after three reports. The number of TDMA frames
140 * between measurement reports to RR is 306 TDMA frames which is equal
141 * to six multiframes.
142 *-------------------------------------------------------------------------------*/
143 T_STEP meas_rep_bs_pa_mfrms_6()
144 {
145 BEGIN_STEP ("measurement reporting bs_pa_mfrms=6")
146 {
147 SEND ( mphc_rxlev_periodic_ind_1() );
148 SEND ( mphc_rxlev_periodic_ind_1() );
149 SEND ( mphc_rxlev_periodic_ind_1() );
150 SEND ( mphc_rxlev_periodic_ind_1() );
151 SEND ( mphc_rxlev_periodic_ind_1() );
152 AWAIT ( mph_measurement_ind_7() );
153 SEND ( mphc_rxlev_periodic_ind_1() );
154 SEND ( mphc_rxlev_periodic_ind_1() );
155 SEND ( mphc_rxlev_periodic_ind_1() );
156 AWAIT ( mph_measurement_ind_8() );
157 }
158 }
159
160 /*---------------------------------------------------------------------------------
161 *
162 * Description: Measurement reporting for the serving cell is tested. The multiframe
163 * period is set to eight multiframes. It is expected that the initial
164 * report to RR is send after five reports of layer 1 and successive
165 * reports are send to RR after two reports. The number of TDMA frames
166 * between measurement reports to RR is 408 TDMA frames which is equal to
167 * eight multiframes.
168 *-------------------------------------------------------------------------------*/
169 T_STEP meas_rep_bs_pa_mfrms_8()
170 {
171 BEGIN_STEP ("measurement reporting bs_pa_mfrms=8")
172 {
173 SEND ( mphc_rxlev_periodic_ind_1() );
174 SEND ( mphc_rxlev_periodic_ind_1() );
175 SEND ( mphc_rxlev_periodic_ind_1() );
176 SEND ( mphc_rxlev_periodic_ind_1() );
177 SEND ( mphc_rxlev_periodic_ind_1() );
178 AWAIT ( mph_measurement_ind_10() );
179 SEND ( mphc_rxlev_periodic_ind_1() );
180 SEND ( mphc_rxlev_periodic_ind_1() );
181 AWAIT ( mph_measurement_ind_11() );
182 }
183 }
184
185
186 /*---------------------------------------------------------------------------------
187 *
188 * Description: The 10 seconds interval for next ncell synchronization in idle
189 * mode is effected by sending (42/bs_pa_mfrms) measurement reports.
190 * This function sends (count*3) number of measurement reports.
191 *-------------------------------------------------------------------------------*/
192 T_STEP wait_ncsync_idle_2_14(int count)
193 {
194 BEGIN_STEP ("wait for ncsync expiry in idle mode")
195 {
196 int i;
197 for( i=1 ; i<count ; i++ )
198 {
199 SEND ( mphc_rxlev_periodic_ind_2() );
200 SEND ( mphc_rxlev_periodic_ind_2() );
201 SEND ( mphc_rxlev_periodic_ind_2() );
202 AWAIT ( mph_measurement_ind_14() );
203 }
204 SEND ( mphc_rxlev_periodic_ind_2() );
205 SEND ( mphc_rxlev_periodic_ind_2() );
206 SEND ( mphc_rxlev_periodic_ind_2() );
207 }
208 }
209
210 /*---------------------------------------------------------------------------------
211 *
212 * Description: The 10 seconds interval for next ncell synchronization in idle
213 * mode is effected by sending (42/bs_pa_mfrms) measurement reports.
214 * This function sends (count*2) number of measurement reports.
215 *-------------------------------------------------------------------------------*/
216 T_STEP wait_ncsync_idle_2_31(int count)
217 {
218 BEGIN_STEP ("wait for ncsync expiry in idle mode")
219 {
220 int i;
221 for( i=1 ; i<count ; i++ )
222 {
223 SEND ( mphc_rxlev_periodic_ind_2() );
224 SEND ( mphc_rxlev_periodic_ind_2() );
225 AWAIT ( mph_measurement_ind_31() );
226 }
227 SEND ( mphc_rxlev_periodic_ind_2() );
228 SEND ( mphc_rxlev_periodic_ind_2() );
229 }
230 }
231
232 /*---------------------------------------------------------------------------------
233 *
234 * Description: The 10 seconds interval for next ncell synchronization in idle
235 * mode is effected by sending (42/bs_pa_mfrms) measurement reports.
236 * This function sends (count*3) number of measurement reports.
237 *-------------------------------------------------------------------------------*/
238 T_STEP wait_ncsync_idle_3_33(int count)
239 {
240 BEGIN_STEP ("wait for ncsync expiry in idle mode")
241 {
242 int i;
243 for( i=1 ; i<count ; i++ )
244 {
245 SEND ( mphc_rxlev_periodic_ind_3() );
246 SEND ( mphc_rxlev_periodic_ind_3() );
247 SEND ( mphc_rxlev_periodic_ind_3() );
248 AWAIT ( mph_measurement_ind_33() );
249 }
250 SEND ( mphc_rxlev_periodic_ind_3() );
251 SEND ( mphc_rxlev_periodic_ind_3() );
252 SEND ( mphc_rxlev_periodic_ind_3() );
253 }
254 }
255
256 /*---------------------------------------------------------------------------------
257 *
258 * Description: The 10 seconds interval for next ncell synchronization in dedicated
259 * mode is effected by sending 21 measurement reports. This function sends
260 * 'count' number of measurement reports.
261 *-------------------------------------------------------------------------------*/
262 T_STEP wait_ncsync_dedicated(int count)
263 {
264 BEGIN_STEP ("wait for ncsync expiry in dedicated mode")
265 {
266 int i;
267 for( i=1 ; i<count ; i++ )
268 {
269 SEND ( mphc_meas_report_4() );
270 AWAIT ( mph_measurement_ind_34() );
271 }
272 SEND ( mphc_meas_report_4() );
273 }
274 }
275 /*---------------------------------------------------------------------------------
276 *
277 * Description: The 10 seconds interval for next ncell synchronization in dedicated
278 * mode is effected by sending 21 measurement reports. This function sends
279 * 'count' number of measurement reports.
280 *-------------------------------------------------------------------------------*/
281 T_STEP wait_ncsync_dedicated_102(int count)
282 {
283 BEGIN_STEP ("wait for ncsync expiry in dedicated mode")
284 {
285 int i;
286 for( i=1 ; i<count ; i++ )
287 {
288 SEND ( mphc_meas_report_4() );
289 AWAIT ( mph_measurement_ind_dummy(ARFCN_23,25) );
290 }
291 SEND ( mphc_meas_report_4() );
292 }
293 }
294 /*---------------------------------------------------------------------------------
295 *
296 * Description: The 10 seconds interval for next ncell synchronization in dedicated
297 * mode is effected by sending 21 measurement reports. This function sends
298 * 'count' number of measurement reports.
299 *-------------------------------------------------------------------------------*/
300 T_STEP wait_ncsync_dedicated_102a(int count)
301 {
302 BEGIN_STEP ("wait for ncsync expiry in dedicated mode")
303 {
304 int i;
305 for( i=1 ; i<count ; i++ )
306 {
307 SEND ( mphc_meas_report_5() );
308 AWAIT ( mph_measurement_ind_dummy(ARFCN_23,25) );
309 }
310 SEND ( mphc_meas_report_5() );
311 }
312 }
313 /*---------------------------------------------------------------------------------
314 *
315 * Description: The 10 seconds interval for next ncell synchronization in dedicated
316 * mode is effected by sending 21 measurement reports. This function sends
317 * 'count' number of measurement reports.
318 *-------------------------------------------------------------------------------*/
319 T_STEP wait_ncsync_dedicated_102b(int count)
320 {
321 BEGIN_STEP ("wait for ncsync expiry in dedicated mode")
322 {
323 int i;
324 for( i=1 ; i<count ; i++ )
325 {
326 SEND ( mphc_meas_report_6() );
327 AWAIT ( mph_measurement_ind_dummy(ARFCN_23,25) );
328 }
329 SEND ( mphc_meas_report_6() );
330 }
331 }
332 /*---------------------------------------------------------------------------------
333 *
334 * Description: The 10 seconds interval for next ncell synchronization in dedicated
335 * mode is effected by sending 21 measurement reports. This function sends
336 * 'count' number of measurement reports.
337 *-------------------------------------------------------------------------------*/
338 T_STEP wait_ncsync_dedicated_102c(int count)
339 {
340 BEGIN_STEP ("wait for ncsync expiry in dedicated mode")
341 {
342 int i;
343 for( i=1 ; i<count ; i++ )
344 {
345 SEND ( mphc_meas_report_6a() );
346 AWAIT ( mph_measurement_ind_dummy(ARFCN_23,25) );
347 }
348 SEND ( mphc_meas_report_6a() );
349 }
350 }
351 /*---------------------------------------------------------------------------------
352 *
353 * Description: The 10 seconds interval for next ncell synchronization in dedicated
354 * mode is effected by sending 21 measurement reports. This function sends
355 * 'count' number of measurement reports.
356 *-------------------------------------------------------------------------------*/
357 T_STEP wait_ncsync_dedicated_1020A(int count)
358 {
359 BEGIN_STEP ("wait for ncsync expiry in dedicated mode alr1020A")
360 {
361 int i;
362 for( i=1 ; i<count ; i++ )
363 {
364 SEND (mphc_meas_report_4a() );
365 AWAIT ( mph_measurement_ind_dummy(ARFCN_23,0x19) );
366 }
367 SEND ( mphc_meas_report_4a() );
368 }
369 }
370
371 /*------------------------------------------------------------------------------
372 *
373 * Description: The BA list contains the serving cell 23 and
374 * the neighbour cells 1, 14 and 124.
375 * The fieldstrength is 56 for channel 23, 12 for channel 1,
376 * 44 for channel 14 and 25 for channel 124 (all values in GSM range).
377 * The ranking for the neighbour cells is 14, 124 and at least channel 1.
378 * Each reports contains two fieldstrength values per channel.
379 * The multiframe period is set to 6. The first measurement report
380 * is send to RR after five reports from PL. Then after each
381 * three reports from PL a measurement report is send to RR.
382 * Synchronisation to channel 14 fails.
383 *-------------------------------------------------------------------------------*/
384
385 T_STEP sync_to_ncell_14_fails_once()
386 {
387 BEGIN_STEP ("sync to ncell 14 failes once")
388 {
389 SEND ( mphc_rxlev_periodic_ind_2() );
390 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
391 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_124) );
392 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_1) );
393 SEND ( mphc_rxlev_periodic_ind_2() );
394 AWAIT ( mph_measurement_ind_13() );
395 SEND ( mphc_rxlev_periodic_ind_2() );
396 SEND ( mphc_ncell_sync_ind_failed(ARFCN_14) );
397 SEND ( mphc_rxlev_periodic_ind_2() );
398 SEND ( mphc_ncell_sync_ind(ARFCN_124,FN_OFF_ARFCN_124,TIME_ALIGNMT_124,BSIC_1) );
399 AWAIT ( mphc_ncell_bcch_req (ARFCN_124, FN_OFF_ARFCN_124, TIME_ALIGNMT_124));
400 SEND ( mphc_ncell_sync_ind_3() );
401 AWAIT ( mphc_ncell_bcch_req (ARFCN_1, FN_OFF_ARFCN_1, TIME_ALIGNMT_1) );
402 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_1) );
403 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_1) );
404 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_124) );
405 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_124) );
406 SEND ( mphc_rxlev_periodic_ind_2() );
407 AWAIT ( mph_measurement_ind_15() );
408 AWAIT ( mph_unitdata_ind_si3(ARFCN_1) );
409 AWAIT ( mph_unitdata_ind_si3(ARFCN_124) );
410 SEND ( mphc_rxlev_periodic_ind_2() );
411 SEND ( mphc_rxlev_periodic_ind_2() );
412 SEND ( mphc_rxlev_periodic_ind_2() );
413 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
414 AWAIT ( mph_measurement_ind_15() );
415 SEND ( mphc_rxlev_periodic_ind_2() );
416 SEND ( mphc_rxlev_periodic_ind_2() );
417 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
418 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
419 SEND ( mphc_rxlev_periodic_ind_2() );
420 AWAIT ( mph_measurement_ind_15() );
421 SEND ( mphc_rxlev_periodic_ind_2() );
422 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
423 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
424 SEND ( mphc_rxlev_periodic_ind_2() );
425 SEND ( mphc_rxlev_periodic_ind_2() );
426 AWAIT ( mph_measurement_ind_14() );
427 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
428 SEND ( mphc_rxlev_periodic_ind_2() );
429 SEND ( mphc_rxlev_periodic_ind_2() );
430 SEND ( mphc_rxlev_periodic_ind_2() );
431 AWAIT ( mph_measurement_ind_14() );
432 SEND ( mphc_rxlev_periodic_ind_2() );
433 SEND ( mphc_rxlev_periodic_ind_2() );
434 SEND ( mphc_rxlev_periodic_ind_2() );
435 AWAIT ( mph_measurement_ind_14() );
436 SEND ( mphc_rxlev_periodic_ind_2() );
437 AWAIT ( mphc_ncell_list_sync_req_1a() );
438 SEND ( mphc_rxlev_periodic_ind_2() );
439 SEND ( mphc_ncell_sync_ind(ARFCN_124,FN_OFF_ARFCN_124,TIME_ALIGNMT_124,BSIC_1) );
440 SEND ( mphc_rxlev_periodic_ind_2() );
441 SEND ( mphc_ncell_sync_ind_3() );
442 AWAIT ( mph_measurement_ind_14() );
443 SEND ( mphc_rxlev_periodic_ind_2() );
444 SEND ( mphc_rxlev_periodic_ind_2() );
445 SEND ( mphc_rxlev_periodic_ind_2() );
446 AWAIT ( mph_measurement_ind_14() );
447 SEND ( mphc_rxlev_periodic_ind_2() );
448 SEND ( mphc_rxlev_periodic_ind_2() );
449 SEND ( mphc_rxlev_periodic_ind_2() );
450 AWAIT ( mph_measurement_ind_14() );
451 SEND ( mphc_rxlev_periodic_ind_2() );
452 SEND ( mphc_rxlev_periodic_ind_2() );
453 SEND ( mphc_rxlev_periodic_ind_2() );
454 AWAIT ( mph_measurement_ind_14() );
455 SEND ( mphc_rxlev_periodic_ind_2() );
456 SEND ( mphc_rxlev_periodic_ind_2() );
457 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
458 SEND ( mphc_rxlev_periodic_ind_2() );
459 AWAIT ( mph_measurement_ind_14() );
460 SEND ( mphc_rxlev_periodic_ind_2() );
461 }
462 }
463 /*------------------------------------------------------------------------------
464 *
465 * Description: ALR requests successive reading of BCCH for all neighbour cells.
466 * This failed for channel 14.
467 *-------------------------------------------------------------------------------*/
468 T_STEP ncell_bcch_read_fails_for_ncell_14()
469 {
470 BEGIN_STEP ("ncell BCCH read fails for ncell 14")
471 {
472 SEND ( mphc_rxlev_periodic_ind_2() );
473 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
474 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_124) );
475 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_1) );
476 SEND ( mphc_rxlev_periodic_ind_2() );
477 AWAIT ( mph_measurement_ind_13() );
478 SEND ( mphc_rxlev_periodic_ind_2() );
479 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
480 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
481 SEND ( mphc_ncell_bcch_ind_invalid(ARFCN_14) );
482 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
483 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
484 SEND ( mphc_ncell_bcch_ind_invalid(ARFCN_14) );
485 SEND ( mphc_rxlev_periodic_ind_2() );
486 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
487 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
488 SEND ( mphc_ncell_bcch_ind_invalid(ARFCN_14) );
489 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
490 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
491 SEND ( mphc_ncell_bcch_ind_invalid(ARFCN_14) );
492 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
493 SEND ( mphc_rxlev_periodic_ind_2() );
494 AWAIT ( mph_measurement_ind_16() );
495 SEND ( mphc_ncell_sync_ind(ARFCN_124,FN_OFF_ARFCN_124,TIME_ALIGNMT_124,BSIC_1) );
496 SEND ( mphc_rxlev_periodic_ind_2() );
497 SEND ( mphc_ncell_sync_ind_5() );
498 AWAIT ( mphc_ncell_bcch_req (ARFCN_124, FN_OFF_ARFCN_124, TIME_ALIGNMT_124));
499 AWAIT ( mphc_ncell_bcch_req (ARFCN_1, FN_OFF_ARFCN_1, TIME_ALIGNMT_1) );
500 SEND ( mphc_rxlev_periodic_ind_2() );
501 SEND ( mphc_rxlev_periodic_ind_2() );
502 AWAIT ( mphc_ncell_sync_req_1a() );
503 AWAIT ( mph_measurement_ind_16() );
504 SEND ( mphc_rxlev_periodic_ind_2() );
505 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_124) );
506 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_124) );
507 SEND ( mphc_rxlev_periodic_ind_2() );
508 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_1) );
509 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_1) );
510 SEND ( mphc_rxlev_periodic_ind_2() );
511 AWAIT ( mph_measurement_ind_15() );
512 AWAIT ( mph_unitdata_ind_si3(ARFCN_1) );
513 AWAIT ( mph_unitdata_ind_si3(ARFCN_124) );
514 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
515 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
516 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
517 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
518 SEND ( mphc_rxlev_periodic_ind_2() );
519 SEND ( mphc_rxlev_periodic_ind_2() );
520 SEND ( mphc_rxlev_periodic_ind_2() );
521 AWAIT ( mph_measurement_ind_14() );
522 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
523 SEND ( mphc_rxlev_periodic_ind_2() );
524 SEND ( mphc_rxlev_periodic_ind_2() );
525 SEND ( mphc_rxlev_periodic_ind_2() );
526 AWAIT ( mph_measurement_ind_14() );
527 SEND ( mphc_rxlev_periodic_ind_2() );
528 SEND ( mphc_rxlev_periodic_ind_2() );
529 SEND ( mphc_rxlev_periodic_ind_2() );
530 AWAIT ( mph_measurement_ind_14() );
531 SEND ( mphc_rxlev_periodic_ind_2() );
532 SEND ( mphc_rxlev_periodic_ind_2() );
533 AWAIT ( mphc_ncell_list_sync_req_1a());
534 }
535 }
536 /*------------------------------------------------------------------------------
537 *
538 * Description: The multiband parameter is set to 0, that means the neighbourcells
539 * are ranked after the fieldstrength. The serving cell is 23
540 * (that means in the GSM 900 frequency band). The neighbourcell list
541 * contains eight channels : 1, 14, 25, 124, 512 580, 637 and 885.
542 * It is expected, that ALR starts synchronization to the six
543 * strongest cells 637, 25, 14, 512, 580, 885. This channels must
544 * be included in the measurement report to RR.
545 *-------------------------------------------------------------------------------*/
546 T_STEP ncell_reporting_multiband_0_scell_is_gsm900()
547 {
548 BEGIN_STEP("ncell: multiband 0/scell is gsm900")
549 {
550 START_TIMEOUT(29500);
551 SEND ( mphc_rxlev_periodic_ind_3() );
552 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_637) );
553 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_25) );
554 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
555 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_512) );
556 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_580) );
557 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_885) );
558 SEND ( mphc_rxlev_periodic_ind_3() );
559 AWAIT ( mph_measurement_ind_7() );
560 SEND ( mphc_ncell_sync_ind_12() );
561 AWAIT ( mphc_ncell_bcch_req_10() );
562 SEND ( mphc_ncell_sync_ind (ARFCN_25) );
563 AWAIT ( mphc_ncell_bcch_req (ARFCN_25) );
564 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
565 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
566 SEND ( mphc_ncell_sync_ind (ARFCN_512) );
567 AWAIT ( mphc_ncell_bcch_req (ARFCN_512) );
568 SEND ( mphc_ncell_sync_ind_15() );
569 AWAIT ( mphc_ncell_bcch_req_13() );
570 SEND ( mphc_ncell_sync_ind_16() );
571 AWAIT ( mphc_ncell_bcch_req (ARFCN_885) );
572 SEND ( mphc_rxlev_periodic_ind_3() );
573 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_637) );
574 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_637) );
575 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_25) );
576 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_25) );
577 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
578 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
579 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_512) );
580 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_512) );
581 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_580) );
582 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_580) );
583 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_885) );
584 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_885) );
585 SEND ( mphc_rxlev_periodic_ind_3() );
586 SEND ( mphc_rxlev_periodic_ind_3() );
587 AWAIT ( mph_measurement_ind_21() );
588 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
589 AWAIT ( mph_unitdata_ind_si3(ARFCN_25) );
590 AWAIT ( mph_unitdata_ind_si3(ARFCN_512) );
591 AWAIT ( mph_unitdata_ind_si3(ARFCN_580) );
592 AWAIT ( mph_unitdata_ind_si3(ARFCN_637) );
593 AWAIT ( mph_unitdata_ind_si3(ARFCN_885) );
594 SEND ( mphc_rxlev_periodic_ind_3() );
595 SEND ( mphc_rxlev_periodic_ind_3() );
596 SEND ( mphc_rxlev_periodic_ind_3() );
597 AWAIT ( mph_measurement_ind_21() );
598 SEND ( mphc_ncell_sync_ind(ARFCN_124,FN_OFF_ARFCN_124,TIME_ALIGNMT_124,BSIC_1) );
599 WAIT_TIMEOUT();
600 }
601 }
602 /*---------------------------------------------------------------------------------
603 *
604 * Description: The multiband parameter is set to 0, that means the neighbourcells
605 * are ranked after the fieldstrength. The serving cell is 578
606 * (that means in the DCS 1800 frequency band). The neighbourcell list
607 * contains eight channels : 1, 14, 25, 124, 512 580, 637 and 885. It is
608 * expected, that ALR starts synchronization to the six strongest cells
609 * 14, 25, 512, 580, 637, 885. These channels must be included in
610 * the measurement report to RR.
611 *-------------------------------------------------------------------------------*/
612 T_STEP ncell_reporting_multiband_0_scell_is_gsm1800()
613 {
614 BEGIN_STEP("ncell: multiband 0/scell is gsm1800")
615 {
616 START_TIMEOUT(29500);
617 SEND ( mphc_rxlev_periodic_ind_4() );
618 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_637) );
619 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_25) );
620 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
621 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_512) );
622 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_580) );
623 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_885) );
624 SEND ( mphc_rxlev_periodic_ind_4() );
625 AWAIT ( mph_measurement_ind_22() );
626 SEND ( mphc_ncell_sync_ind_12() );
627 AWAIT ( mphc_ncell_bcch_req_10() );
628 SEND ( mphc_ncell_sync_ind (ARFCN_25) );
629 AWAIT ( mphc_ncell_bcch_req (ARFCN_25) );
630 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
631 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
632 SEND ( mphc_ncell_sync_ind (ARFCN_512) );
633 AWAIT ( mphc_ncell_bcch_req (ARFCN_512) );
634 SEND ( mphc_ncell_sync_ind_15() );
635 AWAIT ( mphc_ncell_bcch_req_13() );
636 SEND ( mphc_ncell_sync_ind_16() );
637 AWAIT ( mphc_ncell_bcch_req (ARFCN_885) );
638 SEND ( mphc_rxlev_periodic_ind_4() );
639 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_637) );
640 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_637) );
641 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_25) );
642 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_25) );
643 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
644 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
645 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_512) );
646 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_512) );
647 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_580) );
648 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_580) );
649 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_885) );
650 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_885) );
651 SEND ( mphc_rxlev_periodic_ind_4() );
652 SEND ( mphc_rxlev_periodic_ind_4() );
653 AWAIT ( mph_measurement_ind_23() );
654 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
655 AWAIT ( mph_unitdata_ind_si3(ARFCN_25) );
656 AWAIT ( mph_unitdata_ind_si3(ARFCN_512) );
657 AWAIT ( mph_unitdata_ind_si3(ARFCN_580) );
658 AWAIT ( mph_unitdata_ind_si3(ARFCN_637) );
659 AWAIT ( mph_unitdata_ind_si3(ARFCN_885) );
660 SEND ( mphc_rxlev_periodic_ind_4() );
661 SEND ( mphc_rxlev_periodic_ind_4() );
662 SEND ( mphc_rxlev_periodic_ind_4() );
663 AWAIT ( mph_measurement_ind_23() );
664 WAIT_TIMEOUT();
665 }
666 }
667 /*------------------------------------------------------------------------------
668 *
669 * Description: The BA list contains the serving cell 23 and the
670 * neighbour cells 1, 14 and 124.
671 * The fieldstrength is 56 for channel 23, 12 for channel 1,
672 * 44 for channel 14 and 25 for channel 124 (all values in GSM range).
673 * The ranking for the neighbour cells is 14, 124 and channel 1.
674 * Each reports contains two fieldstrength values per channel.
675 * The multiframe period is set to 6. The first measurement report
676 * is send to RR after five reports from PL. Then after each three
677 * reports from PL a measurement report is send to RR. The NCC permitted
678 * check for neighbour cell 124 fails. The cell shall be excluded
679 * from further attempts.
680 *-------------------------------------------------------------------------------*/
681
682 T_STEP ncell_sync_ncc_permitted_check()
683 {
684 BEGIN_STEP ("ncell sync, NCC is not permitted for ncell 124")
685 {
686 SEND ( mphc_rxlev_periodic_ind_2() );
687 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
688 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_124) );
689 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_1) );
690 SEND ( mphc_rxlev_periodic_ind_2() );
691 AWAIT ( mph_measurement_ind_13() );
692 SEND ( mphc_rxlev_periodic_ind_2() );
693 SEND ( mphc_ncell_sync_ind(ARFCN_14,FN_OFF_ARFCN_14,TIME_ALIGNMT_14,BSIC_16) );
694 AWAIT ( mphc_ncell_bcch_req_4() );
695 SEND ( mphc_rxlev_periodic_ind_2() );
696 SEND ( mphc_ncell_sync_ind(ARFCN_124,FN_OFF_ARFCN_124,TIME_ALIGNMT_124,BSIC_1) );
697 SEND ( mphc_ncell_sync_ind(ARFCN_1,FN_OFF_ARFCN_1,TIME_ALIGNMT_1,BSIC_16) );
698 AWAIT ( mphc_ncell_bcch_req_5() );
699 SEND ( mphc_rxlev_periodic_ind_2() );
700 AWAIT ( mph_measurement_ind_16() );
701 SEND ( mphc_rxlev_periodic_ind_2() );
702 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
703 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
704 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_1) );
705 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_1) );
706 SEND ( mphc_rxlev_periodic_ind_2() );
707 SEND ( mphc_rxlev_periodic_ind_2() );
708
709 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_124) );
710
711 AWAIT ( mph_measurement_ind_17() );
712 AWAIT ( mph_unitdata_ind_si3(ARFCN_1) );
713 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
714 SEND ( mphc_rxlev_periodic_ind_2() );
715 SEND ( mphc_rxlev_periodic_ind_2() );
716 SEND ( mphc_rxlev_periodic_ind_2() );
717 AWAIT ( mph_measurement_ind_17() );
718 }
719 }
720 /*------------------------------------------------------------------------------
721 *
722 * Description: The multiband parameter is set to 1, that means at least one of
723 * the neighbourcells is member of the non-serving cell band
724 * (that means in the DCS 1800 frequency band). The serving cell
725 * is 23 (that means in the GSM 900 frequency band). The neighbourcell
726 * list contains eight channels : 1, 11, 14, 25,87, 124, 512 and 885.
727 * It is expected, that ALR starts synchronization to the six
728 * cells 14, 87, 25, 11, 1 and 512. This channels must be included
729 * in the measurement report to RR. ALR shall not synchronize to 885,
730 * although the cell has a better fieldstrength than most channels
731 * of the GSM 900 frequency band.
732 *-------------------------------------------------------------------------------*/
733 T_STEP ncell_reporting_multiband_1_scell_is_gsm900()
734 {
735 BEGIN_STEP("ncell: multiband 1/scell is gsm900")
736 {
737 SEND ( mphc_rxlev_periodic_ind_5() );
738 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_25) );
739 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
740 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_512) );
741 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_11) );
742 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_87) );
743 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_124) );
744 SEND ( mphc_rxlev_periodic_ind_5() );
745 AWAIT ( mph_measurement_ind_13() );
746 SEND ( mphc_ncell_sync_ind (ARFCN_25) );
747 AWAIT ( mphc_ncell_bcch_req (ARFCN_25) );
748 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
749 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
750 SEND ( mphc_ncell_sync_ind (ARFCN_512) );
751 AWAIT ( mphc_ncell_bcch_req (ARFCN_512) );
752 SEND ( mphc_ncell_sync_ind (ARFCN_11) );
753 AWAIT ( mphc_ncell_bcch_req (ARFCN_11) );
754 SEND ( mphc_ncell_sync_ind (ARFCN_87) );
755 AWAIT ( mphc_ncell_bcch_req (ARFCN_87) );
756 SEND ( mphc_ncell_sync_ind (ARFCN_124) );
757 AWAIT ( mphc_ncell_bcch_req (ARFCN_124) );
758 SEND ( mphc_rxlev_periodic_ind_5() );
759 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_25) );
760 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_25) );
761 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
762 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
763 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_512) );
764 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_512) );
765 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_11) );
766 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_11) );
767 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_87) );
768 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_87) );
769 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_124) );
770 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_124) );
771 SEND ( mphc_rxlev_periodic_ind_5() );
772 SEND ( mphc_rxlev_periodic_ind_5() );
773 AWAIT ( mph_measurement_ind_24() );
774 AWAIT ( mph_unitdata_ind_si3(ARFCN_11) );
775 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
776 AWAIT ( mph_unitdata_ind_si3(ARFCN_25) );
777 AWAIT ( mph_unitdata_ind_si3(ARFCN_87) );
778 AWAIT ( mph_unitdata_ind_si3(ARFCN_124) );
779 AWAIT ( mph_unitdata_ind_si3(ARFCN_512) );
780 SEND ( mphc_rxlev_periodic_ind_5() );
781 SEND ( mphc_rxlev_periodic_ind_5() );
782 SEND ( mphc_rxlev_periodic_ind_5() );
783 AWAIT ( mph_measurement_ind_24() );
784 }
785 }
786
787
788 T_STEP ncell_reporting_multiband_1_scell_is_gsm900_4ch()
789 {
790 BEGIN_STEP("ncell: multiband 1/scell is gsm900 4ch")
791 {
792 SEND ( mphc_rxlev_periodic_ind_6() );
793 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_14) );
794 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_512) );
795 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_885) );
796 AWAIT ( mphc_ncell_sync_req_initial(ARFCN_1) );
797 SEND ( mphc_rxlev_periodic_ind_6() );
798 AWAIT ( mph_measurement_ind_13() );
799 SEND ( mphc_ncell_sync_ind (ARFCN_14) );
800 AWAIT ( mphc_ncell_bcch_req (ARFCN_14) );
801 SEND ( mphc_ncell_sync_ind (ARFCN_512) );
802 AWAIT ( mphc_ncell_bcch_req (ARFCN_512) );
803 SEND ( mphc_ncell_sync_ind_16() );
804 AWAIT ( mphc_ncell_bcch_req (ARFCN_885) );
805 SEND ( mphc_ncell_sync_ind (ARFCN_1) );
806 AWAIT ( mphc_ncell_bcch_req (ARFCN_1) );
807 SEND ( mphc_rxlev_periodic_ind_6() );
808 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_14) );
809 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_14) );
810 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_512) );
811 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_512) );
812 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_885) );
813 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_885) );
814 SEND ( mphc_ncell_bcch_ind_si3(ARFCN_1) );
815 AWAIT ( mphc_stop_ncell_bcch_req(ARFCN_1) );
816 SEND ( mphc_rxlev_periodic_ind_6() );
817 SEND ( mphc_rxlev_periodic_ind_6() );
818 AWAIT ( mph_measurement_ind_25() );
819 AWAIT ( mph_unitdata_ind_si3(ARFCN_1) );
820 AWAIT ( mph_unitdata_ind_si3(ARFCN_14) );
821 AWAIT ( mph_unitdata_ind_si3(ARFCN_512) );
822 AWAIT ( mph_unitdata_ind_si3(ARFCN_885) );
823 SEND ( mphc_rxlev_periodic_ind_6() );
824 SEND ( mphc_rxlev_periodic_ind_6() );
825 SEND ( mphc_rxlev_periodic_ind_6() );
826 AWAIT ( mph_measurement_ind_25() );
827 }
828 }