Command, Data, And Response Echoing; Sending Command Characters As Data - HP 82718A Expansion Pod Reference Manual

For use with the hp-75
Hide thumbs Also See for HP 82718A Expansion Pod:
Table of Contents

Advertisement

Software Usage and Examples
Line 120 enters ADD mode for the HP 3000 editor. Your editor may not have an explicit data insertion
mode; instead, it may require a character preceding each line inserted. If the character was an I, then
each line would be added by changing the
t'1ODOUT
on line 140 to
t'10DOUT "I"
:~.:D$t:F.:$.
Line 160,
which ends ADD mode, would then probably not be needed.
Your editor may exit as it writes the data from its workspace into the file. If so, line 180 will not be
needed.
Depending on your host system behavior, you may want to send a break (using the B (BREAK) command)
before hanging up (line 200).
The subroutine on line 2000 simply reads the contents of the receive buffer and throws it away until the
buffer is empty. This prevents echoed data (i. e., all the editor commands and all the data that is entered
into the file) from filling up the receive buffer and halting transmission. If the modem has to send an
XOfr
because the buffer begins to fill up with echoed data, and never sends an
~~
because the buffer is
not emptied, the transmission from the host may be halted. Your editor may have a mode which inhibits
echoing the data. If so, you can invoke that mode when you enter the editor, or you could configure the
port you dial up to not echo.
Command, Data, and Response Echoing
Three commands control command, data, and response echoing: E
(ECHO), G
(GIVEBACK), and L
(LONG). (Remember that when the modem echoes anything (commands, data, or responses), it does so by
placing the item being echoed in its receive buffer for
nOD HU
to read.) Even though these commands
are described in the "Low-Level Command Dictionary" and illustrated in different examples in Section 2,
they are discussed again here to clarify their relationships.
The E (ECHO) command enables (E
0) and disables (E
1) echoing of low-level
commands.
The G
(GIVEBACK) command enables (G
1)
and disables (G 0) echoing of
data
sent from the HP-75 to the
modem.
The
E
and G commands are totally independent of each other--<:ommand echoing occurs
independently of data echoing, and vice versa.
The L (LONG) command selects whether modem responses will be
long
(L 0) or
short
(L 1). Responses
are unaffected by the
E
and G commands. Regardless of whether the modem is echoing commands or
data, responses will be reported-the L command only controls their length.
Sending Command Characters as Data
There are three ways you can send the command character as data:
1)
Use the
N (NEW)
command to change the command character to something else.
2) Use the
U (UN
LI
STEN)
command to instruct the modem not to monitor the transmit data stream
for the command character.
3) Send the command character twice in a row.
An example of the use of the
N (NEW)
command is:
10 t'10DOUT "
\t·~
!
II
:~.:CHF.:$
.::
1 ::::::.
20 t'10DOUT
II •... II
.' .
:::0 t'10DOUT
"
!
t·~
~.~
II
g:C:HF.~$
(
1 ::::::.
45
1
.
)

Advertisement

Table of Contents
loading

Table of Contents