W3C home > Mailing lists > Public > public-nfc@w3.org > January 2015

Comments regarding the NFCTag interface

From: Petter Arvidsson <petter.arvidsson@fidesmo.com>
Date: Mon, 19 Jan 2015 09:00:47 +0100
Message-ID: <CAJo691NB5FdjYBhGkrx=RuS_g4_KDGuoN+=K0-3VR_F6iivg0Q@mail.gmail.com>
To: public-nfc@w3.org
Hello everyone,

I have a quite small, but potentially important comment regarding the
NFCTag (http://www.w3.org/TR/2014/WD-nfc-20140114/#nfctag-interface)
interface. In the current draft it only supports reading and writing to an
Ndef tags. In similar implementations, such as the Android API, it usually
also possible to communicate with a tag on a lower level (typically the
ISO/IEC 14443-4). Please refer to  the following method in the Android
API:s for an example:

Typically such an interface allows sending and receiving APDU:s to a tag
not only implementing Ndef but also other applications such as OTP, OpenPGP
or even payments via Visa or MasterCard. In the terminology used in the
current draft such an method would look something like this:

Promise transceive(byte [] command);

The Promise would also contain a byte array (byte[]) which would be the
corresponding response APDU. This could either be included in the NFCTag
interface or in it's own ISOTag or similar interface. I believe such an
interface/method would be immensely useful while at the same time being
very easy to implement since similar functionality is required internally
to implement the Ndef messaging.

Has such a method already been discussed and discarded or do you think such
a method could indeed add something to the API?

Best regards,
Received on Monday, 19 January 2015 08:01:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 19 January 2015 08:01:24 UTC