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


 
150
S:\HP83206A\USRGUIDE\MANUAL\prog.fm
Chapter 5, Programming the Cellular Adapter
Program Example
127 OUTPUT Testsys;”STAT:CALLP:COND?”
128 ENTER Testsys;Active_status
129 UNTIL Active_status=1
130 PRINT “Test System is now emulating a DCCH base station, channel 333.”
131 PRINT “Active annunciator should be lit.”
132 ! Zero power meter
133 PRINT “Disconnect cables from RF In/Out port.”
134 INPUT “Press ENTER when phone is disconnected.”,A$
135 OUTPUT Testsys;”CPR:DCCH:ZPOW” !zero the power meter
136 PRINT “Re-connect phone now.”
137 PRINT “Turn on phone now.”
138 INPUT “Press ENTER when phone has camped on a control channel.”,A$
139 ! Register phone. Check success by monitoring Register annunciator
140 ! turning off.
141 OUTPUT Testsys;”STAT:CALLP:PTR 0” !Don’t latch positive transitions
142 OUTPUT Testsys;”STAT:CALLP:NTR 2” !Latch the Register annunciator
143 ! turning off.
144 OUTPUT Testsys;”*CLS” !Clear Status Event Registers
145 OUTPUT Testsys;”CPR:DCCH:REGister” !The Register command
146 REPEAT
147 OUTPUT Testsys;”*ESR?;:STAT:CALLP:EVENT?” !Check for errors or
148 ! Registration success
149 ENTER Testsys;Esr,Register
150 WAIT 2 !Give Test System time to service other processes
151 UNTIL Register OR Esr
152 IF Esr THEN
153 PRINT “Error with Registration”
154 STOP
155 ELSE !Registration should have completed
156 OUTPUT Testsys;”CPR:PNUM?” !Get the phone number of the mobile
157 ENTER Testsys;Phone_num
158 PRINT “Registration was successful!”
159 PRINT “Phone number is “;Phone_num
160 END IF
161 ! End Registration
162 ! Page Mobile
163 PRINT “When the phone rings, press SEND”