12
QTERM-IV/P40 User's Manual
Beijer Electronics Fax 801-466-8792 Web www.beijerelectronicsinc.com Phone 801-466-8770
command string to the bar code wand, assume we wish to
send this string to the wand:
]
- y 4 Y F A I L
(This command would tell a Hewlett-Packard SmartWand
to send the string “FAIL” if a read failure occurred.) This
string is nine characters long, so the exact string to transmit
to the QTERM would be
]
j B I
]
- y 4 Y F A I L
The first four characters tell the QTERM to transmit the
following nine characters directly to the bar code wand.
2.2.47
Transmit Buffer Flush -
]
k
If the host has transmitted an XOFF to the QTERM, and the
user has pressed any keys, this command will clear the
buffer, so that when the host sends XON to the QTERM,
there will be nothing in the buffer for the QTERM to trans-
mit to the host.
2.2.48
XON/XOFF Mode -
]
l #
This command enables or disables the XON/XOFF opera-
tion of the QTERM.
Valid values for # are
@ -
disable XON/XOFF operation
A -
enable XON/XOFF operation
If you disable XON/XOFF operation, then any keys
pressed by the user will be sent to the host immediately. If
the host sends data fast enough to the QTERM to fill up the
receive buffer, additional characters will be ignored.
2.2.49
User Area Read/Write -
]
m #
This command allows you to store up to 63 bytes of your
own information (such as serial numbers or parameters) in
the current page of the user area of the QTERM nonvolatile
EEPROM, then later read them from the terminal.
There are two valid values for #:
@ -
read user data
A -
write user data (followed by data)
READ DATA: if # = “@”, the QTERM will transmit the
data in the current page of the user area to the host in the
following format:
# . . . .
where # is a character in the range of 40h to 7Fh, and indi-
cates the number of data bytes to follow (for multidrop
units, # is in the range of 41h to 47h), and “. . . .” is the cor-
responding number of user bytes. These bytes will be
exactly what was originally stored, so they may be any 8-
bit value. If # = “@” (0 bytes to follow), then there was no
data stored in the user area, i.e. the page is empty.
WRITE DATA: to write user data, use the format:
]
m A # . . . .
where # is in the range of 41h to 7fh (“A” to DEL), and
indicates that from 1 to 63 bytes of data are to follow (for
multi-drop units, # is in the range of 41h to 47h). After
receiving the number of bytes, the QTERM will return an
ACK (06h) or a NAK (15h) to the host to indicate whether
the string will fit in the current page. After the data is writ-
ten to EEPROM, the QTERM sends another ACK or NAK
to the host to indicate successful completion of the com-
mand. For multidrop units, the ACK or NAK is sent as a
packet as soon as the write operation is complete.
Refer to Table 1-2 for a complete list of values of # and the
corresponding number of data bytes for both the read and
write commands.
2.2.50
Get Free User Area -
]
n
This command tells the QTERM to transmit one character
to the host indicating the total size of the current page of the
user area. This will always be 63 bytes (DEL character),
unless you are accessing the very last available page, and it
is a partial page.
Note that the value returned by this command does not tell
you how much more you can write to the current page, but
tells you how much total you can write to the current page.
This command is primarily for compatibility with the
QTERM-II (not discussed in this manual); it will have lim-
ited usefulness for the QTERM-IV and the QTERM-P40,
because there are always many complete pages available.
2.2.51
User Area Page Control -
]
o #
This command allows you to access multiple data pages.
You can get or set the current User Area page or you can
obtain the total number of User Area pages available. See
section 2.1.3 for more information about memory organiza-
tion.
There are three valid values for #:
@ -
Get the number of User Area pages