The text of a manual · part 24 of 35
5250 Terminal Emulation Programmer's Reference Guide: Section 9: Extended Commands, pages 203 to 212
Pages 203 to 212 of 318, from 5250 Terminal Emulation Programmer's Reference Guide
The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 203
Section 9
Extended Commands "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Overview Extended commands govern abilities unique to wireless stations. You can use extended commands to print, set menu parameters for scanning, and send communications over the wireless station’s RS-232 port. You can also use extended commands to set wireless station parameters from the host computer. The host computer sends the commands to the wireless station. The following chart lists the extended commands. Name
Characters
Transmit and Receive On RS-232 Port
#F
Transmit Only On RS-232 Port
#P
Receive Only On RS-232 Port
#G
Set Parameters
#H
Return Version
#V
Tone
#T
Scan Bar Code Parameters
#S
To use extended commands, you must enable the extended command feature for the wireless station’s firmware. The following chart describes how to access the firmware’s main menu.
5250 Terminal Emulation Programmer’s Reference Guide
9-1
Page 204
SECTION 9
"
Extended Commands
Series
Main Menu
RT1100 and RT1700
[GOLD]+[BLACK]
RT5900
[BROWN]+[SPACE]
PEN*KEYÒ 6400
[GOLD]+[BLUE]
PEN*KEY 6500
[GOLD]+[M]
To enable extended commands, select the following options in this order: SET-UP PARMS, PROTOCOL OPTS, EXTENDED CMDS, ENABLED.
Transmit and Receive On RS-232 Port (#F) Use the Transmit and Receive On RS-232 Port extended command to transmit and receive data on the wireless station’s RS-232 port. The command uses “#F” characters to request communication on the port. When constructing a Transmit and Receive command, the data to be sent should be placed at Line 2, Column 1. The data must be less than 1840 bytes in length (after “=yy” compression). The last character must be a “#” (pound). The wireless station sends the data to the RS-232 port until it detects a “#” character. Line 2, Column 1 begins the start of transmit data. The host application must set up the screen with a transmit field to locate the RS-232 port I/O data. The field can be anywhere on the screen, beginning at position 80. The host application must supply the receive field (for response from the RS-232 port to the host). The receive field can be anywhere on the screen except for the position allocated for the return status field.
9-2
5250 Terminal Emulation Programmer’s Reference Guide
Page 205
SECTION 9
"
Extended Commands
The output stream appears in ASCII character format. For bytes that are not displayable ASCII characters, you may insert the characters “=yy,” where “yy” is the hexadecimal representation of the output byte. For example, if your printer requires a carriage return, you would insert “=0D.” You would insert “=0A” for a line feed. Appendix B contains other hexadecimal values. Table 9-1 describes the line and columns where characters must appear, and their meanings.
5250 Terminal Emulation Programmer’s Reference Guide
9-3
Page 206
SECTION 9
"
Extended Commands
Table 9-1 Transmit and Receive Characters Line 1, Columns 2--24
Column Character *
Description
2
#
Extended command.
3
F
Transmit and Receive On RS-232 Port command.
4
Speed (bits per second). 1 2 3 4 5 6
5
Data parity. N 0 (zero) (Space) E O
None. None. None. Even. Odd. Number of data bits.
7 8
Seven. Eight. Number of stop bits.
1 2
One. Two. CTS flow control.
6
7
8
1200. 2400. 4800. 9600. 19200. 38400.
0 Disable. 1 Enable. * Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.
9-4
5250 Terminal Emulation Programmer’s Reference Guide
Page 207
SECTION 9
"
Extended Commands
Table 9-1 (Continued) Transmit and Receive Characters Line 1, Columns 2--24
Column Character *
Description
9
DTR flow control. 0 1
Disable Enable To avoid improper operation of the RT3210 Radio Terminal and the remote display, DTR flow control should be set to Disable when a remote display is in use.
10
XON/XOFF flow control. 0 1
Disable. Enable. Flow control timeout value.
XX
Number of seconds.
11--12
13
Return AID key. (Space) X
14--15
AID key is Enter (default). AID key character. See Table 9-2 (page 9-7) for return AID key characters. Maximum characters to receive.
(Space) dd (or) Xd¼dX
Default. “dd” is a decimal digit from 00--99. Default is 99. “X” is an uppercase literal. “d¼d” is any number of decimal digits from 0--2000 inclusive. Default is 99. * Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.
5250 Terminal Emulation Programmer’s Reference Guide
9-5
Page 208
SECTION 9
"
Extended Commands
Table 9-1 (Continued) Transmit and Receive Characters Line 1, Columns 2--24
Column Character *
Description
16--17
Delimiter character. AA
18--19
Hexadecimal ASCII code that marks the end of data to be received. Range is 00--7E. Default 00 implies no start character. Number of delimiter characters.
XX
Number of characters accepted before sending return code to host. Range is 00--99. Default of 00 implies no start character. Start character.
AA
Hexadecimal ASCII code. Range is 00--99. Default of 00 implies no start character. Return start character to host.
F (Space)
Return character. Do not return character. Flag parity errors.
P (Space)
Flag. Do not flag. Receive timeout length.
XX
Number of seconds the wireless station waits for input from the RS-232 port before it sends a timeout error. Uses a default of 5 seconds when field is filled with spaces.
20--21
22
23
24--25
* Some wireless stations do not support some characters. Refer to the wireless station’s user guide for supported characters and options.
9-6
5250 Terminal Emulation Programmer’s Reference Guide
Page 209
SECTION 9
"
Extended Commands
Flow Control Transmit supports the following three types of flow control: RTS/CTS " DTR/DSR (RT3210 and RT5900) " XON/XOFF Use CTS and DSR flow control lines to show XON/XOFF conditions from the output device. Also use them to prevent output when the wireless station has no output device. The DTR of the output device should connect to either the DSR or CTS lines. "
XON/XOFF is the same XON/XOFF flow control supported by most devices. The timeout value tells the wireless station how long to wait for the flow control handshake before returning a one byte error value. On the wireless station, DTR is normally low and is raised to indicate that the wireless station is prepared for an RS-232 data exchange.
Return AID Key Characters Table 9-2 lists the extended command AID keys and characters returned to the host. For example, if you want an F1 AID key, you would use “A” as the character. Table 9-2 Return AID Keys AID Key
Character
Enter
(Space)
Help
)
Roll down/Page up
*
Roll up/Page down
+
, 5250 Terminal Emulation Programmer’s Reference Guide
9-7
Page 210
SECTION 9
"
Extended Commands
Table 9-2 (Continued) Return AID Keys
9-8
AID Key
Character
Home
.
Clear
7
F1
A
F2
B
F3
C
F4
D
F5
E
F6
F
F7
G
F8
H
F9
I
F10
J
F11
K
F12
L
F13
M
F14
N
F15
O
F16
P
F17
Q
F18
R
F19
S
F20
T
F21
U
F22
V
F23
W
F24
X
5250 Terminal Emulation Programmer’s Reference Guide
Page 211
SECTION 9
"
Extended Commands
Return Codes for Transmit and Receive Line 24, Column 1 has the return status field. The code returned in this position tells the host the status of the extended command. The following chart lists the codes. Code
Description
Column
0
Good status, transaction complete.
(None)
1
Not enough memory. Or, incorrect setting for speed, number of data bits, number of stop bits, or flow control timeout.
4, 6, 7, 11--12
2
No delimiter (#) on data stream.
(None)
3
Timeout while using CTS flow control.
(None)
4
Timeout while using DTR flow control.
(None)
5
Timeout while using XON/XOFF flow control.
(None)
6
Improper return field.
(None)
7
Hexadecimal value is outside the range of 00--0F.
15--16, 19--20
8
Error in AID code.
(None)
9
Incorrect setting for maximum characters to receive.
13--14
A
Incorrect setting for delimiter character.
15--16
B
Incorrect setting for number of delimiter characters.
17--18
C
Incorrect setting for CTS flow control, DTR flow control, or XON/OFF flow control.
8, 9, 10
D
Incorrect setting for start character.
19--20
E
Incorrect setting for data parity.
5, 22 f/F *
Timeout.
(None)
p/P *
Data parity or framing error.
(None)
R
Syntax error from RD5500 Remote Display (not the expected character; no character error was detected).
(None)
o/O *
Overrun of UART receive register.
(None)
*
An uppercase letter indicates an error from the RS-232 device. A lowercase letter indicates an error from the RD5500 Remote Display. 5250 Terminal Emulation Programmer’s Reference Guide
9-9
Page 212
SECTION 9
"
Extended Commands
Example of Transmit and Receive The following example and chart show what would be sent to the wireless station to cause data to be transmitted and received. A “b” indicates a space. Column 11
Column 1
Line 1
Column 23 b#F4N8100000b500A0102bb10 This is data to send.#
Line 2
9-10
Column 1 2 3 4 5 6 7 8 9 10 11--12 13 14--15 16--17
Character (Space) # F 4 N 8 1 0 0 0 00 (Space) 50 0A
18--19
01
20--21
02
22 23 24--25
(Space) (Space) 10
Description This column typically contains a space. Extended command. Transmit and Receive command. 9600 baud. No parity. Eight data bits. One stop bit. No CTS flow control. No DTR flow control. No XON/OFF flow control. No flow control timeout value. AID key is Enter. Receive a maximum of 50 characters. Delimiter character is 0A hexadecimal (line feed). Data will be sent to host after one delimiter character has been received. Start character is 02 hexadecimal (STX). Start character will not be returned. Do not flag parity errors. Receive timeout length is 10 seconds.
5250 Terminal Emulation Programmer’s Reference Guide