Skip to content

NFC Communication

Jürgen Böhler edited this page Jul 4, 2019 · 1 revision

Principle

The Qi Authentication Demo app exchanges the Authentication messages as defined in section 5 of the Qi Authentication Specification 1.3 by NFC commands between two NFC smartphones.

The NFC smartphones emulating the PTx operates therefor in the Reader/Writer mode and generates the RF field. Therefore the app uses the IsoDep class of the Android API to exchange short APDUs as defined by ISO/IEC 7816-3

The NFC smartphone emulating the PRx implements a Host Card Emulation (HCE) service to responds to the APDU commands.

To initiate the Qi Authentication by the PRx device running in card emulation mode, the Card-originated byte string principle described in ISO/IEC 7816-4 is used. Therefore the GET DATA transfers in the returned data part one Authentication request (see section 5.2 of the Qi Authentication Specification) and the following PUT DATA command transfers in its data part the corresponding Authentication response (see section 5.3) and informs about the size of the following Authentication request inside of SW1/2 (62xx).

Clone this wiki locally