Skip to content

Commands: RFID

bpiservicesdev edited this page Oct 18, 2018 · 6 revisions

RFID Reader

The iMatch device contains the NXP PN7120 NFC controller.

Commands

  • device: nfc method: power_on params: empty
  • device: nfc method: power_off params: empty
  • device: nfc method: discover params: empty. Response: 1 if a type4 tag has been detected, 0 if not or timeout (20s).
  • device: nfc method: c_apdu params: base64 encoded APDU command. Response: base64 encoded APDU response.
  • device: nfc method: mrtdinit params: string with mrz code. Response: 1 if BAC succeeded, 0 if BAC failed or timeout (20s) or error string if an error occurred.
  • device: nfc method: read params: string with the following options:
    • EFCOM returns a base64 encoded bytearray with the raw EFCOM data.
    • SOD returns a base64 encoded bytearray with the raw SOD data.
    • DG1 returns a base64 encoded string with the raw DG1 data.
    • DG2 returns a base64 encoded bytearray with the raw DG2 data.

Clone this wiki locally