Skip to content

Commands: Smartcard

bpiservicesdev edited this page Oct 18, 2018 · 7 revisions

Smartcardreader

The iMatch device contains the NXP AN10207 Smartcardreader.

Commands

  • device: scr method: power_on params: empty Powers on the scr
  • device: scr method: c_apdu params: new byte[] {0x60, 0x00, 0x00, 0x69, 0x09} Powers on the card
  • device: scr method: power_off params: empty
  • device: nfc method: c_apdu params: base64 encoded APDU command. Response: base64 encoded APDU response.

Notification

Once the scr device has been powered on it will send notifications (for example, a card insert) as a response message

  • device: scr method: notify params: base64 encoded ADPU package 0x68: no card present 0x69: card present 0xC0: card inserted

Usage

To work with ISO7816 based cards you need to construct and handle application protocol data unit (APDU). See this site for a list of basic commands.

Clone this wiki locally