User manual
Copyright © 2011, Unitech America Inc. All rights reserved.
Page 14 of 61
MS246 User Manual
Response is as follows:
ACK STX <Copyright String> ETX LRC
Response Example mixed hex and ASCII:
\06\02Copyright (c) 2010, UNITECH \03>
7.2 Version Report Command
02 39 03 38
Response is as follows:
ACK STX<Version String> ETX LRC
Response Example mixed hex and ASCII:
\06\02UNITECH TM3 MS246 RS232 Reader V 3.19\03\LRC
7.3 Key Loading Command
Note: This command is normally only used by a key loading facility.
The Encrypted swipe read supports TDES and AES encryption standards for data
encryption. Encryption can be turned on via a command. TDES is the default.
If the reader is in security level 3, for the encrypted fields, the original data is
encrypted using the TDES/AES CBC mode with an Initialization Vector starting at all
binary zeroes and the Encryption Key associated with the current DUKPT KSN.
KSN and Device Key loading commands and responses protocol:
When DUKPT key management is used, it is necessary to load Key Serial Number
(KSN) and Initially Loaded Device Key before transaction.
The encryption key is TDES with 128 bit keys or AES encryption with double length
keys (128 bit keys including parity).
KSN and Device Key loading commands and responses protocol:
Command:
<STX><’F’><’F’><Command Data (BASE64)><0x0D><0x0A><ETX><LRC>
Response:
<ACK/NAK><STX><’F’><’F’>< Respond Data(BASE64)><0x0D><0x0A><ETX>
<LRC>
STX: 0x02
ETX: 0x03
ACK: 0x06
NAK: 0x15
BASE64: Data encoded with base64 algorithm
LRC: Xor’d all the data before LRC