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


 
149
Chapter 5, Programming the Cellular Adapter
Program Example
Programming the Cellular
Adapter
Program Example
This section contains a program example using many of the most frequently
needed commands. Excerpts from this program have been used to make more
topic-specific program examples as used in Chapter 3, “Processing Calls,” on
page 61.
HP BASIC Program Example
100 ! re-save dcch_example
101 ! This program shows how to perform some of the basic
102 ! tasks of call processing for DCCH.
103 ! System type is DCCH
104 COM Testsys
105 CLEAR SCREEN
106 Testsys=714
107 ! Reset the Test System
108 OUTPUT Testsys;”*RST;*OPC?”
109 ENTER Testsys;Done
110 ! Display the Call Processing Screens and select system
111 ! type DCCH
112 OUTPUT Testsys;”DISP ACNT” !Displays analog call screen
113 OUTPUT Testsys;”CPR:CSYS ‘DCCH’” !System type DCCH
114 ! Make sure Test System is now in Active state
115 REPEAT
116 WAIT 3!Give Test System time to service other processes
117 OUTPUT Testsys;”STAT:CALLP:COND?”
118 ENTER Testsys;Active_status
119 UNTIL Active_status=1
120 PRINT “Test System is now emulating a DCCH base station.”
121 PRINT “Active annunciator should be lit.”
122 ! Change control channel number to 333
123 OUTPUT Testsys;”CPR:DCCH:CCH 333”
124 ! Make sure Test System is again in Active state
125 REPEAT
126 WAIT 2 !Give Test System time to service other processes