Copyright © 2010-2014, International Technologies & Systems Corp. All rights reserved.
Page 43 of 74
SecureMag User Manual
The OPOS driver/application may also send following command when change
(Decode/Raw format)
(Set raw or decode data format)
53 1D 01 30 // RAW data format
53 1D 01 31 // Decoded format
Card data is sent out in the following format
<STX><LenL><LenH><Card Data><CheckLRC><CheckSum><ETX>
Where <STX> = 02h, <ETX> = 03h
<LenL><LenH> is a two byte length of <Card Data>.
<CheckLRC> is a one byte Exclusive-OR sum calculated for all <Card Data>.
<CheckSum> is a one byte Sum value calculated for all <Card data>.
<Card Data> card data format is shown below.
ISO/ABA Data Output Format:
0
STX
1
Data Length low byte
2
Data Length high byte
3
Card Encode Type
1
4
Track 1-3 Status
2
5
Track 1 unencrypted data length
6
Track 2 unencrypted data length
7
Track 3 unencrypted data length
8
Clear/masked data sent status
3
9
Encrypted/Hash data sent status
4
10
Track 1 clear/mask data
Track 2 clear/mask data
Track 3 clear/mask data
Track 1 encrypted data
Track 2 encrypted data
Track 3 encrypted data
Session ID (8 bytes) (Security level 4 only)
Track 1 hashed (20 bytes each) (if encrypted and hash track 1
allowed)
Track 2 hashed (20 bytes each) (if encrypted and hash track 2
allowed)
Track 3 hashed (20 bytes each) (if encrypted and hash track 3
allowed)
KSN (10 bytes)
CheckLRC
CheckSum
ETX
Non ISO/ABA Data Output Format