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
Page180
Uniform Industrial Corp. Proprietary and Confidential Total 342 pages
Message P13 MIFARE Classic/Ultralight Card Write Sector
Format: <STX>P13[Sector number][Sector data]<ETX>[LRC]
(request frame)
<STX>P13[Result][Reason]<ETX>[LRC] (response frame)
Message length: Variable for request frame
Fixed 7 or 8 bytes for response frame.
Usage: Write a sector data to MIFARE card.
NOTE: ultra light card -
sector 0: 48 bytes ( 96 bytes hexadecimal string ).
ultra light C card -
sector 1: 64 bytes. ( 128 bytes hexadecimal string ).
sector 2: 32 bytes. ( 64 bytes hexadecimal string ).
classic 1K card and classic 4K card -
sector 0: 32 bytes. ( 64 bytes hexadecimal string ).
sector 1-31: 48 bytes. ( 96 bytes hexadecimal string ).
classic 4K card -
sector 32-39: 240 bytes. ( 480 bytes hexadecimal string ).
Message element:
Request frame (HOST to PIN pad)
Field Length
Value and description
<STX> 1 <02>
P13 3 Message ID
[Sector number] 2 The sector number.
Decimal string: 00~39.
[Sector data] 64 or
96 or
128 or
480
The data will write to MIFARE card.
Format: hexadecimal string.
<ETX> 1 <03>
[LRC] 1 Checksum