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


 
151
Chapter 5, Programming the Cellular Adapter
Program Example
Programming the Cellular
Adapter
164 OUTPUT Testsys;”STAT:CALLP:PTR 32” !Latch Connect annunciator
165 ! positive transition.
166 OUTPUT Testsys;”STAT:CALLP:NTR 0” !Don’t latch negative transitions
167 OUTPUT Testsys;”*CLS” !Clears all Event Status Registers
168 OUTPUT Testsys;”CPR:DCCH:PAGE” !The Page command
169 REPEAT !Wait for the Test System and the mobile to connect
170 OUTPUT Testsys;”*ESR?;:STAT:CALLP:EVENT?”
171 ENTER Testsys;Esr,Connect
172 WAIT 2 !Give Testsys time to service other processes
173 UNTIL Connect OR Esr !Until mobile connects or an error occurs
174 IF Esr THEN
175 PRINT “Error with Page”
176 STOP
177 END IF
178 PRINT “Page was successful”
179 ! End Page
180 ! Since we used the DCCH default settings, we know that we are
181 ! on a DTC. Now we will query for some of the present parameters.
182 OUTPUT Testsys;”CPR:DCCH:CONN:TYPE?” !Queries for channel type
183 ENTER Testsys;Chan_type$ ! read the channel type (will be DTC)
184 PRINT “The channel type is “;Chan_type$
185 OUTPUT Testsys;”CPR:DCCH:CONN:SLOT?” !Queries for slot number
186 ENTER Testsys;Slot_num$ ! read the slot number
187 PRINT “The slot number is “;Slot_num$
188 OUTPUT Testsys;”CPR:DCCH:CONN:POW?” !Queries for power level
189 ENTER Testsys;Pow_level$ ! read the power level
190 PRINT “The power level is “;Pow_level$
191 OUTPUT Testsys;”CPR:DCCH:CONN:DVCC?” !Queries for DVCC value
192 ENTER Testsys;DVCC_val$ ! read the DVCC value
193 PRINT “The DVCC is “;DVCC_val$
194 ! End DTC parameter query
195 ! Change DTC Power Level (send an order)
196 OUTPUT Testsys;”CPR:DCCH:DTCH:DMAC?” !Queries for power level
197 ENTER Testsys;DMAC_lvl ! read the power level
198 PRINT “The power level is “;DMAC_lvl
199 OUTPUT Testsys;”CPR:DCCH:DTCH:ORD ‘CHNG PL 8’” !Change to level 8
200 WAIT 2 !Give Testsys time to service other processes