635
Chapter 8, Programming The Call Processing Subsystem
Example Programs
Polling Example Program
10 OPTION BASE 1
20 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr
30 COM /Prog_control/ INTEGER Std_event,Wait_time
40 !
50 Bus_addr=7 ! Set to 8 when running on 8920
60 Inst_addr=714 ! Set to 814 when running on 8920
70 Wait_time=.5 ! Set to minimum of .5 when running on an 8920
80 ABORT Bus_addr
90 CLEAR SCREEN
100 PRINTER IS CRT
110 Cnfg_stat_reg
120 !
130 Start_test:!
140 Cond_test_set
150 OUTPUT Inst_addr;"DISP ACNT"
160 IF NOT FNCnfg_base_sta(333,0,212,231,5970, -47,"AMPS") THEN CALL Print_error
180 IF FNSet_state("Register") THEN
190 Read_rcdd_data("1234")! Pass the numbers of the RCDD fields to be read.
200 ELSE
210 Print_error
220 END IF
230 IF NOT FNSet_state("Page") THEN CALL Print_error
240 Meas_carrier
250 IF FNOrder("Power",7) THEN
260 Read_rcdd_data("1")
270 ELSE
280 Print_error
290 END IF
300 OUTPUT Inst_addr;"CALLP:VCH 211;VMAC 4;SAT ’5970HZ’"
310 IF NOT FNSet_state("Handoff") THEN CALL Print_error
320 Meas_sinad
330 IF NOT FNOrder("Mainten",0) THEN CALL Print_error !0 = dummy variable
340 IF FNOrder("Alert",0) THEN ! 0 = dummy variable to satisfy parm list
350 INPUT "Did the phone ALERT? (Y/N)",Yes_no$
360 IF Yes_no$[1,1]="N" OR Yes_no$[1,1]="n" THEN
370 PRINT "Phone failed to ALERT."
380 STOP
390 END IF
400 ELSE
410 Print_error
420 END IF
430 IF NOT FNSet_state("Release") THEN CALL Print_error
440 BEEP
450 DISP "Originate a call from the mobile station."
460 IF FNSet_state("Originate") THEN
470 DISP ""
480 Read_rcdd_data("12345")
490 ELSE
Summary of Contents for 8920B
Page 10: ...10 ...
Page 16: ...Contents 16 9 Error Messages Index 673 ...
Page 17: ...17 1 Using HP IB ...
Page 48: ...48 Chapter 1 Using HP IB Remote Local Modes ...
Page 49: ...49 2 Methods For Reading Measurement Results ...
Page 61: ...61 3 HP IB Command Guidelines ...
Page 84: ...84 Chapter 3 HP IB Command Guidelines Guidelines for Operation ...
Page 85: ...85 4 HP IB Commands ...
Page 90: ...90 Adjacent Channel Power ACP ...
Page 116: ...116 Configure I O Configure ...
Page 156: ...156 Call Processing ...
Page 185: ...185 System System SYSTem ERRor Returns integer value quoted string ...
Page 242: ...242 Common Command Descriptions ...
Page 251: ...251 5 Advanced Operations ...
Page 377: ...377 7 IBASIC Controller ...
Page 458: ...458 Chapter 7 IBASIC Controller The TESTS Subsystem ...
Page 640: ...640 Chapter 8 Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 ...
Page 643: ...643 9 Error Messages ...
Page 672: ...672 ...
Page 682: ...Index 682 ...