Example Transaction
Example Transaction

Example Transaction

The following example illustrates how to retrieve diagnostic information (Diagnostic Testing and Reporting - Attribute #10061- decimal) from the scanner using encapsulation of RSM commands over SSI. Before sending an RSM command, the host must send the RSM Get Packet Size command to query the packet size supported by the device.

Command from Host to Query Packet Size Supported by Device

0A 80 04 00 00 06 20 00 FF FF FD 4E
Where:
  • 0A 80 04 00 is encapsulation of RSM commands over SSI command header
  • 00 06 20 00 FF FF is RSM Get Packet Size command
  • FD 4E is SSI command checksum

Response from Device with Packet Size Information

0C 80 00 00 00 08 20 00 00 F0 00 F0 FD 6C
Where:
  • 0C 80 00 00 is encapsulation of RSM command over SSI command header
  • 00 08 20 00 00 F0 00 F0 is RSM Get Packet Size response
  • FD 6C is SSI response checksum

Command from Host to Retrieve Diagnostic Information

0C 80 04 00 00 08 02 00 27 4D 42 00 FE B0
Where:
  • 0C 80 04 00 is encapsulation of RSM commands over SSI command header
  • 00 08 02 00 27 4D 42 00 is attribute Get command requesting attribute 10061 decimal
  • FE B0 is SSI command checksum

Response from Device with Diagnostic Information

21 80 00 00 00 1D 02 00 27 4D 41 01 42 00 0E 00 00 00 00 01 03 02 03 03 03 04 03 05 03 06 03 FF FF FC 15
Where:
  • 21 80 00 00 00 1D 02 00 27 4D 41 01 42 00 0E 00 00 is encapsulation of RSM responses over SSI command header
  • 00 00 01 03 02 03 03 03 04 03 05 03 06 03 is attribute Get response which includes diagnostic report value
  • FF FF is attribute Get response, packet termination
  • FC 15 is SSI response checksum