User's Manual

PIN Pad 791 Programmer’s Manual (PCI POS-A) UDN PM0103-U Rev. 06
Section 8 – MIFARE card messages 2015-04-20
Page184
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message P15 Load MIFARE key
Format: <STX>P15[Key number][Key A value][Key B value]<ETX>[LRC]
(request frame)
<STX>P15[Result][Reason]<ETX>[LRC] (response frame)
Message length: Fixed 33 bytes for request frame
Fixed 7 or 8 bytes for response frame.
Usage: PIN pad can save up to 256 key sets for MIFARE Classic card application.
Message element:
Request frame (HOST to PIN pad)
Field Length
Value and description
<STX> 1 <02>
P15 3 Message ID
[Key number] 3 The key unique number.
Range:’000’~’255’
[Key A value] 12 The key A data will store in PIN pad.
[Key B value] 12 The key B data will store in PIN pad.
<ETX> 1 <03>
[LRC] 1 Checksum
Response frame (PIN pad to HOST)
Field Length
Value and description
<STX> 1 <02>
P15 3 Message ID
[Result] 1 ‘0’: Success.
‘1’: Fail.
[Reason] 1 Optional: if [Result] = ‘1’
‘1’: Format error.
‘2’: Load MIFARE key fail.
<ETX> 1 <03>
[LRC] 1 Checksum