Programming Paging Channel MER
Last updated: October 28, 2004
This section provides an example of how to measure paging channel's message error rate (MER) via GPIB. The basic procedure is as follows:
-
Set up the call parameters required for the mobile station to find the service.
-
Turn on the mobile station and perform a registration (wait for power-on or send
CALL:REGister
).
-
Set up the paging channel MER parameters required for the test.
-
Turn off timer-based registrations using
CALL:REGister:TIMer:STATe
command.
-
Establish a call.
-
Start the paging channel MER Procedure using
CALL:PAGing:MERRor:PROCedure:STARt
-
Disconnect the call.
-
Turn on Audit Order using
CALL:CCHannel:AUDit:STATe
command.
-
Wait the desired time you'd like to have the MER test procedure run. The standard specifies "at least 2 minutes and until sufficient confidence is ensured".
-
Turn off Audit Order using
CALL:CCHannel:AUDit:STATe
command.
-
Establish a call.
-
Stop the paging channel MER Procedure using
CALL:PAGing:MERRor:PROCedure:STOP
command.
-
Obtain the measurement results using CALL:STATus:PAGing:MERRor commands (see
Paging Channel MER Results
for more information).
-
(Optional) Disconnect the call and turn the timer-based registration back to on.
Programming Example
10 !This program measures paging channel message error rate.
20 !3.3.2 Demodulation of Slotted Mode Paging Channel
40 COM Testset
50 Testset=714
60 !
70 DISP "Testing Demodulation of Slotted Mode Paging Channel"
80 !
90 !***Varial call parameters (MS specific, change as needed)***
100 Systype$="DIGITAL2000" !Cell System Type
110 Band$="USPCs" !Cell band
120 Channel=525 !RF channel
130 Sid=2 !System Identification
140 Nid=1 !Network Identification
150 Radio_config$="F3R3" !Radio Configuration
160 So$="SO2" !Service Option
170 !
180 !***Specify test parameters***
190 Ior=-55 !Cell power
200 Iawgn1=-54 !AWGN power for test 1
210 Iawgn2=-48.5 !AWGN power for test 2
220 Ipch1=-16.2 !Paging channel level for test 1
230 Ipch2=-10.7 !Paging channel level for test 2
240 Ipich=-7 !Pilot channel level
250 Isync=-16 !Sync channel level
260 Iqpch_pich=-3
270 !Quick paging channel relative to pilot
280 !
290 !***Set up call parameters***
300 OUTPUT Testset;"CALL:SYSTEM ";Systype$
310 !Sets System Type
320 OUTPUT Testset;"CALL:BAND ";Band$
330 !Sets Cell Band for selected System Type
340 OUTPUT Testset;"CALL:CHAN ";Channel
350 !Sets RF Channel for selected System Type and Cell Band
360 OUTPUT Testset;"CALL:POW ";Ior
370 !Sets and turns on Cell Power
380 OUTPUT Testset;"CALL:SID ";Sid
390 !Sets System Identification
400 OUTPUT Testset;"CALL:NID ";Nid
410 !Sets Network Identification
420 OUTPUT Testset;"CALL:RCONFIG ";Radio_config$
430 OUTPUT Testset;"CALL:SOPTION ";So$
440 !Sets service option for selected System Type and Radio Configuration
450 !
460 !***Set up test parameters***
470 OUTPUT Testset;"CALL:PAGING:SCINDEX:MAX 0"
480 !Set max slot cycle index.
490 OUTPUT Testset;"CALL:PAGING:DRATE FULL"
500 !Set paging channel data rate to 9600 bps.
510 OUTPUT Testset;"CALL:QPCH:STATE 1"
520 !If the MS supports quick paging channel,
530 !set quick paging channel state to on.
540 OUTPUT Testset;"CALL:QPCH:DRATE HALF"
550 !Set quick paging channel data rate to 4800 bps.
560 OUTPUT Testset;"CALL:PILOT ";Ipich
570 !Set pilot level (Ec/Ior).
580 OUTPUT Testset;"CALL:SYNC ";Isync
590 !Set sync channel level (Ec/Ior).
600 OUTPUT Testset;"CALL:QPCH:LEVEL:RTPILOT ";Iqpch_pich
610 !Set quick paging channel level relative to pilot channel.
620 !
630 !***Set up test parameters for test 1***
640 !when perform test 2, comments the parameters
650 OUTPUT Testset;"CALL:AWGN:POWER ";Iawgn1
660 !Set AWGN power for test 1
670 OUTPUT Testset;"CALL:PAG ";Ipch1
680 !Set paging channel level for test 1
690 !
700 !To perform test 2, comment the parameter setup for test 1 above
710 !and un-comment the parameter setup for test 2 below
720 !
730 !***Set up test parameters specific to test 2***
740 !when perform test 1, comments the parameters
750 !OUTPUT Testset;"CALL:AWGN:POWER ";Iawgn2
760 !Set AWGN power for test 2
770 !OUTPUT Testset;"CALL:PCH ";Ipch2
780 !Set paging channel level for test 2
800 !
810 !***MS Registration***
830 PRINT "Turn on mobile station...press continue when it has registered"
840 PAUSE
850 CLEAR SCREEN
860 GOSUB Register
870 !
880 !***Set test conditions***
890 OUTPUT Testset;"CALL:REGISTER:TIMER:STATE 0"
900 !Turn off timer based registration.
910 OUTPUT Testset;"CALL:PAGING:MERROR:PROC:PARAMETER:CLEAR"
920 !Clears the Paging Channel Message Error Rate screen.
930 !
940 !***Establish a call***
950 GOSUB Connect
960 PRINT
970 !
980 !***Start the Test Procedure***
990 PRINT "Start MER Procedure"
1000 OUTPUT Testset;"CALL:PAGing:MERRor:PROCedure:STARt"
1010 !
1020 !***Disconnect the call***
1030 !This ensures counting the messages on the paging channel.
1040 !The mobile station does not listen to the paging channel
1050 !when a call is established
1060 OUTPUT Testset;"CALL:END"
1070 !
1080 !***Set Audit Order to on***
1090 PRINT "Turn on Audit Order"
1100 OUTPUT Testset;"CALL:CCHannel:AUDit:STATe 1"
1110 !Enable the test set to start sending Audit Order message
1120 PRINT "Sending Audit Order Message is in progress,Pls. Wait..."
1130 WAIT 120
1140 !The standard specifies to waint at least 2 minutes and
1150 !until sufficient confidence is ensured.
1160 !
1170 !***Set Audit Order to off***
1180 PRINT "Turn off Audit Order"
1190 OUTPUT Testset;"CALL:CCHannel:AUDit:STATe 0"
1200 !The test set stop sending Audit Order message.
1210 !
1220 !***Establish a call***
1230 GOSUB Connect
1240 PRINT
1250 !
1260 !***Stop the Test Procedure***
1270 PRINT "Stop MER Test Procedure"
1280 OUTPUT Testset;"CALL:PAGing:MERRor:PROCedure:STOP"
1290 !
1300 !***Obtain and display Paging Channel MER results***
1310 !DIM Err_msg$[4096]
1320 OUTPUT Testset;"CALL:STATUS:PAGing:MERRor:PROCedure:WARNing?"
1330 !Query error conditions that occur during Paging MER test.
1340 ENTER Testset;Err_msg$
1350 !
1360 !
1370 IF Err_msg$<>"""""" THEN
1390 PRINT "MER Procedure Warning Message is ";Err_msg$
1410 ELSE
1430 PRINT "Paging Channel MER Results"
1440 OUTPUT Testset;"CALL:STATUS:PAGing:MERRor:RATio?"
1450 !Query the Paging Channel MER result, in percentage.
1460 ENTER Testset;P_mer
1470 PRINT "Slotted Paging Channel MER Ratio= ";P_mer
1480 OUTPUT Testset;"CALL:MS:RSParameter:PAG3?"
1490 !Query the number of paging channel messages received by MS.
1500 ENTER Testset;Ms_pag3
1510 PRINT "MS PAG_3 (F-Paging messages received by MS)= ";Ms_pag3
1520 OUTPUT Testset;"CALL:STATUS:PAGing:MERRor:MESSages?"
1530 !Query the number of paging channel messages sent from test set.
1540 ENTER Testset;Pag_msgs
1550 PRINT "F-Paging messages sent from the test set= ";Pag_msgs
1560 OUTPUT Testset;"CALL:STATus:PAGing:MERRor:TIME?"
1570 !Query paging MER test time in seconds.
1580 ENTER Testset;Test_time
1590 PRINT "Paging MER Test Time = ";Pag_msgs
1600 OUTPUT Testset;"CALL:STATus:PAGing:EBNTotal?"
1610 !Query F-Paging Eb/Nt.
1620 ENTER Testset;Pag_ebnt
1630 PRINT "F-Paging Eb/Nt = ";Pag_ebnt
1640 OUTPUT Testset;"CALL:STATus:QPCH:EBNTotal?"
1650 !Query F-QPCH Eb/Nt.
1660 ENTER Testset;Q pch_ebnt
1670 PRINT "F-QPCH Eb/Nt = ";Qpch_ebnt
1690 END IF
1700 !
1710 GOTO End_program
1720 !
1730 !**********************************************
1740 ! Establish a CALL
1750 !**********************************************
1760 Connect:!
1770 !***Page the mobile station***
1800 !
1810 Connect_tries=0
1820 PRINT "Paging mobile station..."
1830 LOOP
1840 OUTPUT Testset;"CALL:ORIG"
1850 !Pages the mobile station
1860 OUTPUT Testset;"CALL:CONNECTED:STATE?"
1861 !Queries for connected/idle state
1870 ENTER Testset;Call_connected
1880 Connect_tries=Connect_tries+1
1890 IF NOT Call_connected THEN
1900 OUTPUT Testset;"CALL:END"
1910 WAIT .2
1920 END IF
1930 EXIT IF Call_connected OR Connect_tries=5
1940 END LOOP
1950 IF NOT Call_connected THEN
1960 PRINT "Call attempt failed"
1970 ELSE
1980 PRINT "Call connected"
1990 END IF
2010 RETURN
2030 !
2040 !**********************************************
2050 ! REGISTER MOBILE
2060 !**********************************************
2070 Register:!
2080 !
2090 PRINT "Register MS on Test Set"
2100 OUTPUT Testset;"CALL:MS:REPORTED:CLEAR:ALL"
2101 !Clear MS reported database of any previous registration data
2110 OUTPUT Testset;"CALL:REG"
2120 Reg_timer=TIMEDATE
2130 LOOP
2140 !This loop tests for the begining of registration
2150 OUTPUT Testset;"CALL:MS:REP:ESN:HEX?"
2160 ENTER Testset;Esn$
2170 Reg_time=TIMEDATE-Reg_timer
2190 EXIT IF LEN(Esn$)>3 OR Reg_time>30
2200 END LOOP
2220 IF Reg_time>30 THEN
2221 !Set for 30 seconds for registration time out
2230 PRINT "Registration Timed Out, Check Phone Setup"
2240 GOTO End_program
2250 END IF
2270 PRINT "Mobile Registration Complete"
2280 PRINT
2290 RETURN
2340 !
2350 !****************************************************
2380 End_program:!
2390 !
2400 OUTPUT Testset;"CALL:END"
2410 PRINT
2420 PRINT "End of Program"
2430 END
|