Last updated: February 5, 2009
This section provides examples of how to make channel power measurements via GPIB.
The basic procedure to test channel power is as follows:
The following program example assumes that the mobile station's (UE's) antenna output is connected to the RF IN/OUT connector, and that the mobile station is transmitting an uplink signal.
10 OUTPUT 714;"SETup:WCPower:CONTinuous OFF"!Set the channel power 20 !measurement to single trigger mode. 30 OUTPUT 714;"SETup:WCPower:TIMeout 1S"!Set a timeout value of 1 second 40 !in case the measurement cannot be made. 50 OUTPUT 714;"SETup:WCPower:COUNt 5"!Set multi-measurements to 5 and 60 !enable multi-measurements. 70 OUTPUT 714;"SETup:WCPower:INTerval:TIME 666.7US"!Set the measurement interval 80 !for 1 timeslot (666.7 us). 90 OUTPUT 714;"SETup:WCPower:TRIGger:SOURce AUTO" !Set the trigger source 100 !to use automatic triggering. 110 OUTPUT 714;"INITiate:WCPower"!Start the channel power measurement. 120 OUTPUT 714;"FETCh:WCPower?"!Query the returned integrity indicator and the 130 !average channel power measurement. 140 ENTER 714;Integrity,Wcpower!Enter the returned values into variables. 150 IF Integrity<>0 THEN !Integrity <> 0 indicates an invalid measurement. 170 PRINT "Measurement problem; check for signal level over/under range condition." 171 ELSE 180 END IF 190 END
Integrity
stores the returned integrity indicator value (see
Integrity Indicator
); 0 means a successful measurement with no errors.
Wcpower
returns the average channel power measurement value in dBm. This section is only applicable to the lab application or feature-licensed test application.
This procedure conforms to 34.121 v7.5.0 plus CR R5-072417.
10 ! Channel Power Programming Example 20 ! 3GPP TS 34.121 5.2B Maximum Output Power with HS-DPCCH and E-DCH 30 ! 40 Testset=714 50 OUTPUT Testset;"*RST"! Full preset the test set 60 CLEAR SCREEN 70 PRINT "3GPP TS 34.121 5.2B Max Output Power with HS-DPCCH and E-DCH" 80 PRINT 90 ! 100 ! *** Set Up Connection Parameters *** 110 ! 120 OUTPUT Testset;"CALL:OPERating:MODE OFF"! Operating Mode = Cell Off 130 OUTPUT Testset;"CALL:CELL:RLC:REEStablish OFF"! RLC Reestablish 140 OUTPUT Testset;"CALL:PSDomain PRESent"! PS Domain Information 150 OUTPUT Testset;"CALL:CHANnel 10563"! DL Chan low range freq (Band I IMT-2000) 160 ! 170 ! *** Set Up Test Parameters *** 180 ! 190 OUTPUT Testset;"CALL:UPLink:DPCHannel:BETA:AUTO 0"! Manual beta control 200 OUTPUT Testset;"CALL:UPLink:DPCHannel:MANual:CBETa 11"! Betac=11/15 (sub-test 1) 210 OUTPUT Testset;"CALL:UPLink:DPCHannel:MANual:DBETa 15"! Betad=15/15 (sub-test 1) 220 OUTPUT Testset;"CALL:UPLink:TXPower:LEVel:MAXimum 21"! Max UL Transmit Power Lvl 230 OUTPUT Testset;"CALL:POWer -86" ! Cell Power 240 OUTPUT Testset;"CALL:SERVice:RBTest:RAB HSParmc12" ! Channel Type 250 OUTPUT Testset;"CALL:CONNected:CPIChannel:HSPA -10" ! CPICH Level 260 OUTPUT Testset;"CALL:CONNected:CCPChannel:PRIMary:HSPA -12"! P-CCPCH/SCH Level 270 OUTPUT Testset;"CALL:CONNected:PICHannel:HSPA -15" ! PICH Level 280 OUTPUT Testset;"CALL:CONNected:DPCHannel:HSPA -10" ! DPCH Level 290 OUTPUT Testset;"CALL:CONNected:EAGChannel -20" ! E-AGCH Level 300 OUTPUT Testset;"CALL:CONNected:EHIChannel -20" ! E-HICH Level 310 OUTPUT Testset;"CALL:CONNected:ERGChannel:STATe OFF" ! E-RGCH State 320 OUTPUT Testset;"CALL:CONNected:HSPDschannel:HSPA -3" ! HS-PDSCHs Level 330 OUTPUT Testset;"CALL:CONNected:HSSCchannel:HSPA -8" ! HS-SCCH 1 Level 340 OUTPUT Testset;"CALL:HSUPa:SERVice:RBTest:RLCSdu:SIZE BITS2936"! E-DCH RLC SDU Size 350 OUTPUT Testset;"CALL:HSUPa:EDPCchannel:POFFset 6"! E-DPCCH/DPCH PO (sub-test 1) 360 OUTPUT Testset;"CALL:HSUPa:ETFCi:POFFsets:REFerence DEF3412101"! Ref E-TFCI POs 370 OUTPUT Testset;"CALL:HSUPa:SGRant:ABSolute:RBSetup INDex26"! RB Setup AG (sub-test 1) 380 OUTPUT Testset;"CALL:HSDPa:SERVice:RBTest:HSDSchannel:CONFig FRC"! HS-DSCH Config 390 OUTPUT Testset;"CALL:HSDPa:SERVice:RBTest:FRC:TYPE QPSK1" ! FRC Type 400 OUTPUT Testset;"CALL:HSDPa:MACHs:NTRans 4" ! Number of Trans 410 OUTPUT Testset;"CALL:HSDPa:MACHs:RVSequence '0,2,5,6,0,0,0,0'"! RV Sequence 420 OUTPUT Testset;"CALL:HSDPa:UPLink:DACK 8" ! DeltaACK=30/15 430 OUTPUT Testset;"CALL:HSDPa:UPLink:DNACK 8" ! DeltaNACK=30/15 440 OUTPUT Testset;"CALL:HSDPa:UPLink:DCQI 8" ! DeltaCQI=30/15 450 OUTPUT Testset;"CALL:HSDPa:UPLink:ANACk:RFACtor 3"! Ack-Nack Repetition Factor 460 OUTPUT Testset;"CALL:HSDPa:UPLink:CQI:FCYCle 4 MS" ! CQI Feedback Cycle 470 OUTPUT Testset;"CALL:HSDPa:UPLink:CQI:RFACtor 2" ! CQI Repetition Factor 480 OUTPUT Testset;"CALL:CELL:CLPControl:UPLink:ALGorithm ALG2"! UL CL Power Ctrl Alg 490 OUTPUT Testset;"CALL:OPERating:MODE CALL"! Operating Mode = Active Cell 500 ! 510 ! *** Make a Connection *** 520 ! 530 BEEP 540 PRINT "Power on the UE, wait for it to register/attach, then Originate a call" 550 PRINT "If HSUPA Throughput = 0 kbps, send the appropriate Single Shot AG for" 560 PRINT "your sub-test (20: (119/15)^2 for sub-test 1)" 570 PRINT 580 PRINT "Press F2 to continue" 590 PRINT 600 PAUSE 610 ! 620 ! *** Drive the UE to Max Power *** 630 ! 640 ! Set UE Target Power to drive UE power to 6 dB below max power, wait 150 ms 650 OUTPUT Testset;"CALL:CLPControl:UPLink:MODE ACTive"! Active bits power control 660 OUTPUT Testset;"CALL:MS:POwer:TARGet 4"! UE Target Pow (sub-test 1, power class 3) 670 WAIT .15 680 OUTPUT Testset;"CALL:CLPControl:UPLink:MODE UDOW"! Alternating bits power control 690 ! 700 ! Use Channel Power to confirm proper starting power 710 OUTPUT Testset;"SETup:WCPower:POWer:RANGe:OFFSet:MANual 14" 720 ! Manual Power Range Offset = 14 dB for sub-test 1 730 OUTPUT Testset;"READ:WCPower?"! INITiate and FETCh Channel Power 740 ENTER Testset;Integrity,Chanpow 750 BEEP 760 PRINT USING " ""Starting Channel Power (dBm) = "",2D.1D ";Chanpow 770 PRINT "If starting Channel Power is greater than 18 dBm (power class 3)," 780 PRINT "send down power control bit(s) as needed." 790 PRINT 800 PRINT "Press F2 to continue." 810 PRINT 820 PAUSE 830 ! 840 ! Determine starting E-TFCI 850 OUTPUT Testset;"CALL:STATus:ETFCi?"! Last Received E-TFCI 860 ENTER Testset;Lastetfci 870 PRINT "Initial E-TFCI = ";Lastetfci 880 PRINT "(Target E-TFCI is 75 for sub-test 1)" 890 PRINT 900 ! 910 ! Dimension array for E-TFCI results and set record number to 15 920 DIM Etfci(49) 930 OUTPUT Testset;"CALL:HSUPa:ETFCi:RECord:COUNt 15"! E-TFCI Rec Count 940 ! 950 ! Send step up TPC bit and record 150 ms of E-TFCI results 960 PRINT "E-TFCI values after step up bit(s): " 970 LOOP 980 OUTPUT Testset;"CALL:CLPControl:UPLink:UP"! Send step up TPC bit 990 GOSUB Recordetfci 1000 ! 1010 ! Determine if UE sent a decreased E-TFCI 1020 GOSUB Decreasedetfci 1030 EXIT IF Etfcicheck=1! Exit loop once UE reports a decreased E-TFCI 1040 END LOOP 1050 ! 1060 ! Send step down TPC bit and record 150 ms of E-TFCI results 1070 PRINT "E-TFCI values after first step down bit: " 1080 OUTPUT Testset;"CALL:CLPControl:UPLink:DOWN"! Send step down TPC bit 1085 WAIT .15 ! Additional wait time may be required here depending on the UE model. 1090 GOSUB Recordetfci 1100 ! 1110 ! Determine if UE sent a decreased E-TFCI 1120 GOSUB Decreasedetfci 1130 IF Etfcicheck=1 THEN ! If a decrease E-TFCI occurred, send another down TPC bit 1140 OUTPUT Testset;"CALL:CLPControl:UPLink:DOWN"! Send step down TPC bit 1145 WAIT .15 ! Additional wait time may be required here depending on the UE model. 1150 GOSUB Recordetfci 1160 PRINT 1170 PRINT "E-TFCI values after second step down bit: " 1180 FOR N=0 TO 14 1190 PRINT Etfci(N); 1200 NEXT N 1210 PRINT 1220 PRINT 1230 END IF 1240 ! 1250 ! Determine if E-TFCI matches target E-TFCI 1260 Targetetfci=75! (sub-test 1) 1270 PRINT "Target E-TFCI =";Targetetfci 1280 Etfcipass=1! UE will pass unless array values don't match target E-TFCI 1290 FOR N=0 TO 14 1300 IF Etfci(N)<>Targetetfci THEN Etfcipass=0 1310 NEXT N 1320 IF Etfcipass=0 THEN ! If any E-TFCI doesn't match target E-TFCI, UE fails 1330 PRINT "Recorded E-TFCI does not match the Target E-TFCI of 75 for sub-test 1" 1340 STOP 1350 END IF 1360 PRINT "E-TFCI matches Target E-TFCI" 1370 PRINT 1380 ! 1390 ! *** INITiate and FETCh Measurements *** 1400 OUTPUT Testset;"READ:WCPower?"! INITiate and FETCh Channel Power 1410 ENTER Testset;Integrity,Chanpow 1420 ! 1430 ! *** Print Measurement Results *** 1440 PRINT "Integrity (0 = normal) =";Integrity 1450 PRINT USING " ""Channel Power (dBm) = "",2D.1D ";Chanpow 1460 PRINT 1470 PRINT "Requirement for sub-test 1 power class 3 UE: 24 dBm +1.7/-5.2 dB" 1480 ! 1490 GOSUB Endprogram 1500 ! 1510 !======================================== 1520 ! *** Subroutines *** 1530 !======================================== 1540 ! 1550 Recordetfci:! Records E-TFCIs and enters them into the Etfci() array 1560 OUTPUT Testset;"CALL:HSUPa:ETFCi:RECord:STARt"! Start Recording E-TFCI 1570 LOOP 1580 OUTPUT Testset;"CALL:STATus:ETFCi:RECord?"! E-TFCI Recording State 1590 ENTER Testset;Recordstate$ 1600 EXIT IF Recordstate$="IDLE"! Exit loop when recording is complete 1610 END LOOP 1620 OUTPUT Testset;"CALL:STATus:ETFCi:RECord:ALL?"! Query E-TFCI results 1630 ENTER Testset;Etfci(*)! Enter E-TFCI results into array 1640 RETURN 1650 ! 1660 Decreasedetfci:! Prints 15 E-TFCI results and returns Eftcicheck = 1 if any 1670 ! Decreased E-TFCIs occurred 1680 Etfcicheck=0 1690 FOR N=0 TO 14 1700 PRINT Etfci(N); 1710 IF Etfci(N)<Lastetfci OR Etfci(N)=9.91E+37 THEN Etfcicheck=1 1720 ! Is any E-TFCI value decreased from starting E-TFCI? If so, set Etfcicheck = 1 1730 ! Also allows program to continue if no E-TFCIs from UE 1740 NEXT N 1750 PRINT 1760 PRINT 1770 RETURN 1780 ! 1790 Endprogram:! 1800 END
An example output from this program is as follows: