Microscan HS-2D Manual do Utilizador Página 135

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 134
HS-21/HS-41X Handheld Reader User’s Manual A-17
Appendices
Appendix D — Serial Commands
Text Commands
Text commands may be sent to the reader in RS-232 or USB Virtual COM mode using any
serial communications software, e.g., ESP Terminal.
Encoded-data is decoded by the reader by replacing %xx by a single byte with the value
specified by the two hex-digits xx, e.g., %25 would be replaced by character number 0x25,
which is ASCII ‘%’.
text-command: command-type encoded-dataopt carriage-return
command-type: Single ASCII character in the set defined in Command Types.
encoded-data: encoded-datum / encoded-data encoded-datum
encoded-datum: printable-character | % hex-digit hex-digit
printable-character: any byte value in the range [0x20,0x7e]
hex-digit: ‘0’ | ‘1’ | ‘2’ | ‘3’ | ‘4’ | ‘5’ | ‘6’ | ‘7’ | ‘8’ | ‘9’ |‘A’ | ‘B’ | ‘C’ | ‘D’ | ‘E’ | ‘F’
| ‘a’ | ‘b’ | ‘c’ | ‘d’ | ‘e’ | ‘f
carriage-return: 0x0d
In order to eliminate inadvertent commanding of the reader, Text Commands are
disabled by default. To enable Text Commands requires an initial sequence: ;>PAx
where x is as defined in the Reader Settings Table, register setting 41. (Note: ‘A’ is the
ASCII character that corresponds to 41 HEX.)
For example, to send the reader commands by typing commands in ESP Terminal:
;>PA1
P(xx)yy
P(xx)yy
~
PA8
Where ;>PA1 enables text commands with echo and command responses; P%xxyy can
be any desired commands; ~ saves the settings just sent (the ~ command saves all but
communication-related settings); and PA8 turns text commands back off (except for the
initial sequence). (Note: ‘A’ is the ASCII character that corresponds to 41 hex, thus
P%418 would be equivalent.)
Note: ;>PA1 is used for interactive text commands. If the commands are to be saved in a
file and sent non-interactively, use ;>PA7 instead; this enables text commands but disables
echo and command responses. (See Command Types, Reader Settings, and CRB
System for additional information.)
The following two examples can be sent to a reader in RS-232 mode from ESP Terminal
by just typing the example text.
Vista de página 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 171 172

Comentários a estes Manuais

Sem comentários