HP (Hewlett-Packard) HP 83206A Network Card User Manual


 
156
S:\HP83206A\USRGUIDE\MANUAL\prog.fm
Chapter 5, Programming the Cellular Adapter
Status Registers for DCCH Call Processing
Example program for the Condition Register
100 ! re-save condreg_example
101 ! This program shows how to read the
102 ! Condition Register.
103 COM Testsys
104 CLEAR SCREEN
105 Testsys=714
106 ! Reset the Test System
107 OUTPUT Testsys;”*RST;*OPC?”
108 ENTER Testsys;Done
109 ! Display the Call Control screen
110 OUTPUT Testsys;”DISP ACNT”
111 ! Change the system type to DCCH
112 OUTPUT Testsys;”CPR:CSYS ‘DCCH’”
113 PRINT “Wait for the Test System to be in Active state”
114 PRINT “Wait for the phone to camp”
115 INPUT “Press ENTER when Active annunciator is lit.”,A$
116 ! Query the Condition Register
117 OUTPUT Testsys;”STAT:CALLP:COND?”
118 ! Read and display the register’s value
119 ENTER Testsys;Register_value
120 PRINT “Value of Condition Register during Active”
121 PRINT “state should be 1.“
122 PRINT “Value of Condition Register is “;Register_value
123 ! Page a call
124 OUTPUT Testsys;”CPR:DCCH:PAGE”
125 ! Press SEND on the mobile when it rings
126 ! Wait for the call to connect
127 PRINT “Wait for the phone to ring, then press the SEND”
128 PRINT “button on the phone.”
129 INPUT “Press ENTER when phone has connected.”,A$
130 ! Query the Condition Register
131 PRINT “Value of Condition Register during Connect”
132 PRINT “state should be 32.“
133 OUTPUT Testsys;”STAT:CALLP:COND?”
134 ! Read and display the register’s value