Result code – MagTek IntelliStripe 310™ User Manual

Page 9

Advertising
background image

Section 1. Application Messages


3

The following command ID values are defined:

Value (Hex)

Definition

00-7F

This range is for generic commands. A generic command
has a common meaning for different device applications.
The existence of generic commands allows standardizing on
commonly used commands across multiple device
applications. Device applications are not required to support
all generic commands. Generic commands are defined
further elsewhere in this document.

80-FF

This range is for custom commands. A custom command
has a unique meaning for a particular device application.
Custom commands are defined further elsewhere in this
document.

Result Code


This field specifies the result code. The result code has different meaning for each of the three
message types:

For requests, the result code is currently undefined and should be set to 0.
For responses, the result code defines the result of the operation that was carried out by the
device application.
For notifications, the result code specifies the result of the event that has occurred in the device
application.

The following result codes are defined:

Value (Hex)

Definition

00-7F

This range is for generic result codes. A generic result code
has a common meaning for different device applications. The
following values are currently defined:
0 – success
1 – failure
2 – warning
3 – bad message header
4 – bad application id
5 – bad command id
6 – bad parameter
7 – timeout
8 – busy

80-FF

This range is for custom result codes. A custom result code
has a unique meaning for a particular device application.

Advertising