Microscan HS-2D Manual de usuario Pagina 136

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 172
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 135
A-18 HS-21/HS-41X Handheld Reader User’s Manual
Serial Commands
Example 1 (make the reader beep 3 times):
#%03 Expected output: should make reader beep 3 times
Example 2 (set reader to continuous read, High Density field (FOI0) only):
P(C4)5
Expected output: should set reader to continuous read, High Density field (FOI0) only
Example 3 (set reader to trigger read mode):
P(C4)255
Expected output: should set reader to trigger read
Packetized Commands
Packetized commands consist of packetized data sent from Host-to-Reader to configure
and cause the reader to perform certain functionalities (e.g. settings). Packetized commands
are always enabled, unlike text commands. In addition, they include error detection data,
making them more robust than text commands.
normal-command structure:
[preamble] [command-type] [data-size] [dataopt] [reserved field] [crc14]
preamble: 0xEE 0xEE 0xEE 0xEE
command-type: Single ASCII character in the set defined in Command Types.
data-size:
byte value in range [0,240], which indicates size of data (in bytes) following
this before [reserved field]
dataopt: datum or data datum
data or datum is any byte value in the range [0,255]
reserved field: 0x00
crc14: Two consecutive bytes, each in range [0,127], representing the crc16
value and with the value 0x7F7F, most significant byte first. The packet
crc16 is calculated over the entire packet, excluding the preamble and
the crc14 itself. (See source files crc16.[hc] (Appendix) for details on
the crc16 algorithm and polynomials to be used.)
Note: Most terminal programs will omit or not transmit a NULL (0x00) character entered
in the terminal. So, if one tries to compose the command structure manually and send it
through a terminal program, one might have to send everything before the reserved field,
then send the 0x00 (key Ctrl+@ in ESP terminal view) by itself, and then the CRC14
checksum bytes.
In the first of the examples shown below, for instance, “0xEE 0xEE 0xEE 0xEE 0x23 0x01
0x03” can be sent using ESP’s Terminal, then the NULL character can be sent by typing
“Ctrl + Shift + 2”, and then “0x4E 0x71” can be sent to complete the command sequence.
Examples:
0xEE 0xEE 0xEE 0xEE 0x23 0x01 0x03 0x00 0x4E 0x71
This executes the beep command, causing the reader to beep 3 times. “#%03” in text
command format. The first 4 0xEE are the preamble, followed by the ‘#’ character or 23h
the beep command, and followed by data size of 1 with a data datum of 3 following it. 0x00
is the reserved field followed by two bytes CRC14 of the command + data size + data datum.
Vista de pagina 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 171 172

Comentarios a estos manuales

Sin comentarios