|
|
Last updated: October 28, 2004
The mobile station (MS) must be connected with the test set in order to perform measurements. The origination of this connection can either be the mobile station or the test set. Use one of two sections of code below to fit your testing need.
The following code queries the test set for the connection status and then stops the program if a connection is not established. A hard handoff is also performed.
513 !***************************************************************** 514 ! CONNECT CALL 515 !***************************************************************** 516 ! 526 !***Page the mobile station*** 527 ! 528 DISP "Paging mobile station..." 529 OUTPUT Testset;"CALL:ORIG" 530 OUTPUT Testset;"CALL:CONN:STAT?" 531 ENTER Testset;Call_connected 532 IF NOT Call_connected THEN 540 PRINT "Call attempt failed" 550 STOP 560 ELSE 570 PRINT "Call connected" 571 PRINT 580 END IF 581 Tot_timer=TIMEDATE
In this case, there is no need to use a timeout or arm the state change detector. These two functions occur automatically when attempting a test set originated call.
1 PRINT "Originate a call on the mobile now." 10 OUTPUT Testset;"CALL:CONN:ARM" !Arm the Call-State-Change Detector 20 OUTPUT Testset;"CALL:CONN?" !Query state 30 ENTER Testset;Callstate 40 IF NOT Callstae THEN 41 PRINT "Call Attempt Failed" 42 STOP 43 ELSE 44 PRINT "Call Connected" 45 END IF 50 !
|
|