MagTek IntelliStripe 320 99875168 User Manual

Page 90

Advertising
background image

IntelliStripe 320 Command Reference

84

Value (Hex)

Code/Char

0D

Carriage Return <CR>

18 Cancel

<CAN>

30-39 1-9
41-46 A-F
a-f a-f


Command requests should be sent to the device as they are defined in this manual followed by a
carriage return. Each binary byte should be sent as two ASCII hex characters. For example, the
binary byte 5A (hex) should be sent as the two ASCII characters 5 (35 hex) and A (41 hex). The
device will send Command responses and notification messages to the host as they are defined in
this manual followed by a carriage return. The device will only send upper case letters A thru F.
The host is free to also send lower case a thru f in addition to upper case A thru F.

The device is also free to send the cancel character (18 hex) at anytime to cancel anything that
may be in the devices receive buffer prior to sending the carriage return. However, this cannot
be used to cancel a command that is in progress. The host should wait at least 50ms before
sending anything else to the device after sending this cancel character. The device will not
respond to the cancel character. The cancel character could be useful when the host application
first starts or after a communications error occurs to make sure that the device is in a known
state.

If the device is using the ASCII protocol, the host would send the following sequence of bytes
(in hex) to send the following example request:
30 30 30 38 30 31 30 30 30 31 30 38 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0D

If the device is using the ASCII protocol the device would send the following sequence of bytes
(in hex) to send the following example response:
34 30 30 38 30 31 30 30 0D

Example Set Property Request:

Field MTYP

APPL

CMND

RC PTYP

PID

Byte 1

2 3 4 5 6

Value

(Hex)

00

08 01 00 01 08

Field PVAL
Byte

7 - 10

Value (Hex)

00 00 00 00 (MCP)

Example Set Property Response:

Field MTYP

APPL

CMND

RC

Byte 1

2 3 4

Value (Hex)

40

08

01

00

Advertising