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
Page176
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message P11 MIFARE Classic/Ultralight Card Write Block
Format: <STX>P11[Block number][Block data]<ETX>[LRC]
(request frame)
<STX>P11[Result][Reason]<ETX>[LRC] (response frame)
Message length: Fixed 41 bytes for request frame
Fixed 7 or 8 bytes for response frame.
Usage: Write the data to the specific block.
Message element:
Request frame (HOST to PIN pad)
Field Length
Value and description
<STX> 1 <02>
P11 3 Message ID
[Block number] 3 The block number.
Decimal string: 000~255.
[Block data] 32 The block data will write to MIFARE
card.
Format: hexadecimal string.
<ETX> 1 <03>
[LRC] 1 Checksum
Response frame (PIN pad to HOST)
Field Length
Value and description
<STX> 1 <02>
P11 3 Message ID
[Result] 1 ‘0’: Success.
‘1’: Fail.
[Reason] 1 Optional: if [Result] = ‘1’
‘1’: Format error.
‘2’: Sequence error.
‘3’: Write data fail.
<ETX> 1 <03>
[LRC] 1 Checksum