Skip to content

Commands: Smartcard

BPI Services Dev edited this page Nov 22, 2018 · 7 revisions

Smartcardreader

The iMatch device contains the NXP AN10207 Smartcardreader.

Commands

  • device: scr method: power_on params: readKnownATRs (optional). Powers on the scr. If params is set to readKnownATRs, the card is powered on when inserted and if the ATR is known, the data on the card is returned via notifications in five steps; ID, person, address, certificate, photo.
  • device: scr method: c_apdu params: YAAAaQk= 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