![HP HP 8924C Application Manual Download Page 208](http://html.mh-extra.com/html/hp/hp-8924c/hp-8924c_application-manual_166201208.webp)
208
N:\mkt\MANUALS\HP8924C\APPMOD\BOOK\chapters\amhoff.fb
Chapter 5, CDMA to Analog Handoff
Performing a CDMA to Analog Handoff
HP BASIC Example
The following example executes a CDMA to analog handoff, then polls bit 5 in
the Call Processing status register group until the handoff to the analog voice
channel is connected, or the handoff attempt times out.
10 RE-SAVE "C:\HPBASIC\HANDOFF"
20 OUTPUT 714;"CDMA:CALL:AHAN:EXEC"!executes the CDMA to analog handoff
30 T=TIMEDATE
40 REPEAT
50 OUTPUT 714;"STAT:CALLP:EVEN?" !Queries Call Processing Status Event Register
60 ENTER 714;Connected
70 IF TIMEDATE-T>=25 THEN
80 PRINT "ERROR"
90 STOP
100 ELSE
110 WAIT .1 !Prevents HP-IB commands from dominating TesFlkt Set processes
120 END IF
130 UNTIL BIT(Connected,5)
140 PRINT “Handoff complete, mobile is connected to analog voice channel”
140 END