Command Details; Magnetic Stripe Commands - Star Micronics TCP300II Series Product Specifications Manual

Star micronics printer product specification sheet
Table of Contents

Advertisement

4. COMMAND DETAILS

4-1.

Magnetic Stripe Commands

(1)
Third track read command (Model: 310)
General Description
This command idles the first track read of a magnetic strip encoded in the following formats.
• 7-bit + 1 parity (called 7-bit format below) Conforming to JISX6302*
• Reverse 7-bit + 1 parity Reverse direction writing format of the format above*
• 6-bit + 1 parity (called 6-bit format below) conforming to ISO 7811/2 first track
• 4-bit + 1 parity (called 4-bit format below) conforming to ISO 7811/2 second/third tracks
However, the second track is in 70 bpi format.
The starting symbol in the magnetic stripe automatically determines what format to use to
read the card.
Note that this command cannot be used with on models with one magnetic stripe (TCP300).
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory
switch setting. See Model Setting Commands (91h) for details.
Details of Operation
If a card is idling in the machine, this will read the magnetic stripe on the idling card.
If there is no idling card, it will wait until one is inserted into the device, the being to read the
card. If a card is waiting to be removed from the device, it will wait until the card is discharged.
If reading of the card fails, the device will automatically reread the card according to the
number of times that were set.
If still the card cannot be read with that set number of rereads, the values of 23h, 31h to 34h
are set to the response block status field.
After this command is issued, it is possible to read the buffer while the card is idling.
The results of the command are stored in the response block status field.
The following shows the read data string.
Format
7-bit format:
Reverse 7-bit format: 0 to 69 bytes of variable length data
6-bit format:
4-bit format:
The magnetic stripe starting and ending symbols, LRC and parity bit are not included in the
read data string.
If a card is not inserted after this command is issued, or to cancel the command, issue the
card insertion wait status cancel command (54h) after canceling the state of communication.
Command Transfer Formats
STX
21h
Response Transfer Formats
STX
21h
Data Length
0 to 69 bytes of variable length data
Excluding 02h and 03h
0 to 76 bytes of variable length data
0 to 104 bytes of variable length data
ETX
BCC
BCC = 22h
Status
Read Data String
ETX
BCC
12
Character Code
(01h to 7Eh)
Excluding 02h and 03h
(01h to 7Eh)
(20h to 5Eh)
(30h to 3Eh)

Advertisement

Table of Contents
loading

Table of Contents