Page 4of 77 Copyright © Access-IS 2020
7. MIFARE media commands and responses..................................................................... 39
7.1 MIFARE get media type .......................................................................................... 39
7.2 MIFARE load key .................................................................................................... 40
7.3 MIFARE authenticate block (key A or key B)........................................................... 41
7.4 MIFARE read block (key A or key B)....................................................................... 42
7.5 MIFARE write block (key A or key B).......................................................................43
7.6 MIFARE create value block (key A or key B)........................................................... 45
7.7 MIFARE increment value block (key A or key B) ..................................................... 46
7.8 MIFARE decrement value block (key A or key B)....................................................47
7.9 MIFARE Ultralight read block .................................................................................. 49
7.10 MIFARE Ultralight write block.................................................................................. 50
7.11 MIFARE Ultralight-C authenticate - part 1................................................................51
7.12 MIFARE Ultralight-C authenticate - part 2................................................................52
7.13 MIFARE transceive direct........................................................................................ 54
7.14 MIFARE failure status codes...................................................................................55
8. NFC management interface commands.......................................................................... 56
8.1 Get firmware version............................................................................................... 56
8.2 Get bootloader version............................................................................................ 57
8.3 Switch to bootloader................................................................................................ 58
8.4 Get serial number....................................................................................................58
8.5 Set NFC timings...................................................................................................... 59
8.6 Get NFC timings......................................................................................................60
8.7 Enter sleep mode....................................................................................................61
8.8 Exit sleep mode.......................................................................................................62
8.9 Get NFC kernel version...........................................................................................63
8.10 Get media serial number......................................................................................... 63
8.11 Disable media arrival and removal notifications....................................................... 65
8.12 Set serial interface baud rate................................................................................... 65
A. NFC module serial number matching ............................................................................. 67
B. HID reports –barcode only.............................................................................................. 68
B.1 Receive data........................................................................................................... 68
B.2 Send commands ..................................................................................................... 69
B.3 Trigger controls.......................................................................................................70
C. NFC module example code and API functions............................................................... 71
C.1 Initialise smartcard sub-system ...............................................................................71
C.2 Poll for card arrival .................................................................................................. 71
C.3 Connect to the card................................................................................................. 71
C.4 Get ATR of the card ................................................................................................72
C.5 Communicate with card........................................................................................... 72
C.6 Determine if ATR indicates MIFARE type................................................................72