The text of a manual · part 6 of 15
LT 1804 (RS-232/Synapse) Product Reference Guide: Chapter 4 Programming the LT 1804, pages 46 to 55
Pages 46 to 55 of 129, from LT 1804 (RS-232/Synapse) Product Reference Guide
The original document is the PDF (710 KB). 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 Symbol LT-1804
Page 46
LT 1804 Product Reference Guide: Programming the LT 1804
Communication Protocols Hardware Handshaking The data interface consists of an RS-232C port. See Interface Cable Pinouts on page 3-7. The port has been designed to operate either with or without hardware handshaking lines, RTS, Request to Send, and CTS, Clear to Send. If RTS/CTS handshaking has not been selected, scan data is transmitted as it becomes available. If optional RTS/CTS handshaking has been selected, the DTR signal is hardwired active, and the unit proceeds as follows: • Examine CTS. If CTS is not asserted by the host, RTS is asserted by the scanner. If CTS is asserted by the host, the scanner waits up to 2 seconds for CTS to be negated. • When the host asserts CTS in response to and within the programmable response timeout period of the scanner's RTS, data is transmitted. • The scanner negates RTS after sending the last character. • The host should respond by negating CTS. The scanner does not wait for this but checks before the next transmission, as above. • If the above communication attempt fails, the scanner issues an error beep to alert the operator that the data was not successfully transmitted. In this case, the data is lost and must be rescanned. See Handshaking Sequence on page 4-23.
4-21
Page 47
LT 1804 Product Reference Guide: Programming the LT 1804
Software Handshaking The scanner also provides two software handshaking options, ENQ and ACK/ NAK, selected by parameter menus. These software handshaking options operate in addition to, and are subordinate to, the hardware handshaking. They can be used separately, in conjunction with each other, or not at all. They operate in the following manner: • When the ENQ is enabled, the scanner waits for an ENQ, Enquire, character from the host before it transmits data. The host must respond within the programmable response timeout period or the scanning unit beeps 4 times, indicating transmission error and loss of the last scanned data. • When the ACK/NAK is enabled, after the scanning unit has transmitted data, it looks for one of the following responses: <ACK> acknowledging a valid accepted transmission, or <NAK> indicating a problem with the transmission. The scanner then retransmits the data. After three unsuccessful transmission attempts, the unit aborts any further communication attempts on the current message. It indicates this by sounding 4 long (1 second) beeps. See Handshaking Sequence on page 4-23.
4-22
Page 48
LT 1804 Product Reference Guide: Programming the LT 1804
Hardware Handshaking
Symbol is decoded.
RTS and CTS handshaking lines used? Yes Unit asserts Request-To-Send line. Host responds by asserting Clear-To-Send.
No
No response. After response timeout time, the unit beeps 4 times to indicate a transmission error.
Software Handshaking ENQ switch on? Yes
No
Wait for ENQ character to be received from host.
No response. After response timeout time, the unit beeps 4 times to indicate a transmission error.
Data is transmitted.
ACK/NAK switch on? Yes
No
Wait for ACK or NAK response from host.
ACK response? No
Yes
Try 3 times? No
No response. After response timeout time, the unit beeps 4 times to indicate a transmission error.
Yes. 4 long beeps
Finished
Figure 4-2. Handshaking Sequence
4-23
Page 49
LT 1804 Product Reference Guide: Programming the LT 1804
ASCII Conversion Tables Table 4-4. RS-232 ASCII Conversion Table ASCII NUL
Value
ASCII
Value
ASCII
Value
ASCII
Value
000
SP
032
@
064
‘
096
SOH
001
!
033
A
065 a
097
STX
002
“
034
B
066 b
098
ETX
003
#
035
C
067 c
099
EOT
004
$
036
D
068 d
100
ENQ
005
%
037
E
069 e
101
ACK
006
&
038
F
070 f
102
BELL
007
‘
039
G
071 g
103
BACKSPACE
008
(
040
H
072 h
104
HORIZ TAB
009
)
041
I
073 i
105
LF/NEW LINE
010
*
042
J
074 j
106
VT
011
+
043
K
075 k
107
FF
012
,
044
L
076 l
108
CR/ENTER
013
-
045
M
077 m
109
SO
014
.
046
N
078 n
110
SI
015
/
047
O
079 o
111
DLE
016
0
048
P
080 p
112
DC1
017
1
049
Q
081 q
113
DC2
018
2
050
R
082 r
114
DC3
019
3
051
S
083 s
115
DC4
020
4
052
T
084 t
116
NAK
021
5
053
U
085 u
117
SYN
022
6
054
V
086 v
118
ETB
023
7
055
W
087 w
119
CAN
024
8
056
X
088 x
120
EM
025
9
057
Y
089 y
121
SUB
026
:
058
Z
090 z
122
ESC
027
;
059
[
091
{
123
FS
028
<
060
\
092
|
124
GS
029
=
061
]
093
}
125
RS
030
>
062
^
094
~
126
US
031
?
063
--
095
DEL
127
4-24
Page 50
LT 1804 Product Reference Guide: Programming the LT 1804
Table 4-5. Synapse ASCII Conversion Table ASCII Value
Full ASCII Code 39 Encode Char
Keystroke
ASCII Value
Full ASCII Code 39 Encode Char
Keystroke
1000
%U
CTRL 2
1024
$X
CTRL X
1001
$A
CTRL A
1025
$Y
CTRL Y
1002
$B
CTRL B
1026
$Z
CTRL Z
1003
$C
CTRL C
1027
%A
CTRL [
1004
$D
CTRL D
1028
%B
CTRL \
1005
$E
CTRL E
1029
%C
CTRL ]
1006
$F
CTRL F
1030
%D
CTRL 6
1007
$G
CTRL G
1031
%E
CTRL -
1008
$H
CTRL H
1032
Space
Space
1009
$I
CTRL I
1033
/A
!
1010
$J
CTRL J
1034
/B
‘
1011
$K
CTRL K
1035
/C
#
1012
$L
CTRL L
1036
/D
$
1013
$M
CTRL M
1037
/E
%
1014
$N
CTRL N
1038
/F
&
1015
$O
CTRL O
1039
/G
‘
1016
$P
CTRL P
1040
/H
(
1017
$Q
CTRL Q
1041
/I
)
1018
$R
CTRL R
1042
/J
*
1019
$S
CTRL S
1043
/K
+
1020
$T
CTRL T
1044
/L
,
1021
$U
CTRL U
1045
-
-
1022
$V
CTRL V
1046
.
.
1023
$W
CTRL W
1047
/
/
4-25
Page 51
LT 1804 Product Reference Guide: Programming the LT 1804
Table 4-5. Synapse ASCII Conversion Table (Continued) ASCII Value
Full ASCII Code 39 Encode Char
Keystroke
ASCII Value
Full ASCII Code 39 Encode Char
Keystroke
1048
0
0
1073
I
I
1049
1
1
1074
J
J
1050
2
2
1075
K
K
1051
3
3
1076
L
L
1052
4
4
1077
M
M
1053
5
5
1078
N
N
1054
6
6
1079
O
O
1055
7
7
1080
P
P
1056
8
8
1081
Q
Q
1057
9
9
1082
R
R
1058
/Z
:
1083
S
S
1059
%F
;
1084
T
T
1060
%G
<
1085
U
U
1061
%H
=
1086
V
V
1062
%I
>
1087
W
W
1063
%J
?
1088
X
X
1064
%V
@
1089
Y
Y
1065
A
A
1090
Z
Z
1066
B
B
1091
%K
[
1067
C
C
1092
%L
\
1068
D
D
1093
%M
]
1069
E
E
1094
%N
^
1070
F
F
1095
%O
_
1071
G
G
1096
%W
‘
1072
H
H
1097
+A a
4-26
Page 52
LT 1804 Product Reference Guide: Programming the LT 1804
Table 4-5. Synapse ASCII Conversion Table (Continued) ASCII Value
Full ASCII Code 39 Encode Char
Keystroke
ASCII Value
Full ASCII Code 39 Encode Char
Keystroke
1098
+B b
1113
+Q q
1099
+C c
1114
+R r
1100
+D d
1115
+S s
1101
+E e
1116
+T t
1102
+F f
1117
+U u
1103
+G g
1118
+V v
1104
+H h
1119
+W w
1105
+I i
1120
+X x
1106
+J j
1121
+Y y
1107
+K k
1122
+Z z
1108
+L l
1123
%P
{
1109
+M m
1124
%Q
|
1110
+N n
1125
%R
}
1111
+O o
1126
%S
~
1112
+P p
1127
4-27
Undefined
Page 53
LT 1804 Product Reference Guide: Programming the LT 1804
Table 4-5. Synapse ASCII Conversion Table (Continued) ALT Keys
Keystroke
ALT Keys
Keystroke
ALT Keys
Keystroke
2064
ALT 2
2075
ALT K
2086
ALT V
2065
ALT A
2076
ALT L
2087
ALT W
2066
ALT B
2077
ALT M
2088
ALT X
2067
ALT C
2078
ALT N
2089
ALT Y
2068
ALT D
2079
ALT O
2090
ALT Z
2069
ALT E
2080
ALT P
2091
ALT [
2070
ALT F
2081
ALT Q
2092
ALT \
2071
ALT G
2082
ALT R
2093
ALT ]
2072
ALT H
2083
ALT S
2094
ALT 6
2073
ALT I
2084
ALT T
2095
ALT -
2074
ALT J
2085
ALT U
Misc. Key
Keystroke
Misc. Key
Keystroke
Misc. Key
Keystroke
3001
PA 1
3009
CMD 7
3017
°
3002
PA 2
3010
CMD 8
3018
1/2
3003
CMD 1
3011
CMD 9
3019
¶
3004
CMD 2
3012
CMD 10
3020
§
3005
CMD 3
3013
¥
3021
|
3006
CMD 4
3014
£
3022
0/00
3007
CMD 5
3015
¤
3008
CMD 6
3016
¬
4-28
Page 54
LT 1804 Product Reference Guide: Programming the LT 1804
Table 4-5. Synapse ASCII Conversion Table (Continued) PF Keys
Keystroke
PF Keys
Keystroke
PF Keys
Keystroke
4001
PF 1
4009
PF 9
4017
PF 17
4002
PF 2
4010
PF 10
4018
PF 18
4003
PF 3
4011
PF 11
4019
PF 19
4004
PF 4
4012
PF 12
4020
PF 20
4005
PF 5
4013
PF 13
4021
PF 21
4006
PF 6
4014
PF 14
4022
PF 22
4007
PF 7
4015
PF 15
4023
PF 23
4008
PF 8
4016
PF 16
4024
PF 24
F Keys
Keystroke
F Keys
Keystroke
F Keys
Keystroke
5001
F1
5014
F 14
5027
F 27
5002
F2
5015
F 15
5028
F 28
5003
F3
5016
F 16
5029
F 29
5004
F4
5017
F 17
5030
F 30
5005
F5
5018
F 18
5031
F 31
5006
F6
5019
F 19
5032
F 32
5007
F7
5020
F 20
5033
F 33
5008
F8
5021
F 21
5034
F 34
5009
F9
5022
F 22
5035
F 35
5010
F 10
5023
F 23
5036
F 36
5011
F 11
5024
F 24
5037
F 37
5012
F 12
5025
F 25
5038
F 38
5013
F 13
5026
F 26
5039
F 39
4-29
Page 55
LT 1804 Product Reference Guide: Programming the LT 1804
Table 4-5. Synapse ASCII Conversion Table (Continued) Numeric Keypad
Keystroke
Numeric Keypad
Keystroke
Numeric Keypad
Keystroke
6042
*
6049
1
6056
8
6043
+
6050
2
6057
9
6044
Undefined
6051
3
6058
Enter
6045
-
6062
4
6059
Num Lock
6046
.
6063
5
6060
00
6047
/
6064
6
6048
0
6065
7
Extended Keypad
Keystroke
Extended Keypad
Keystroke
Extended Keypad
Keystroke
7001
Break
7008
Backspace
7015
Up Arrow
7002
Delete
7009
Tab
7016
Dn Arrow
7003
Pg Up
7010
Print Screen
7017
Left Arrow
7004
End
7011
Insert
7018
Right Arrow
7005
Pg Dn
7012
Home
7019
Back Tab
7006
Pause
7013
Enter
7007
Scroll Lock
7014
Escape
4-30