java - What's the advantage of encoding NFC data to Ndef? -
i'm not asking ndef in general - obvious need format data interchange.
i'm working on application must read both - non-ndef (mifare classic in particular) , ndef nfc chips. i've separated routines reading both , managed detection part:
tag tag = intent.getparcelableextra( nfcadapter.extra_tag ); string[] techlist = tag.gettechlist(); ( string tech : techlist ) { if ( mifareclassic.class.getname().equals( tech ) ) { string uid = byte2hexstring( tag.getid() ); // todo } else if ( ndef.class.getname().equals( tech ) ) { return this.readndef( intent ); } }
but i'm not sure the abstraction part - should try encode data non-ndef (mc) chip ndef (if that's possible), or should separate these abstraction layers? there advantage of encoding data ndef?
the advantage of using ndef formatted data more portable across different systems. ndef compliant data should work not on android, on windows8 or blackberry devices (with nfc).
the mifare classic chip not part of nfc specs , therefore works on phones nxp protocol software, on phones can store data in ndef format mifare classic chip.
the destinction make more whether particular device supports mifare classic chip, whether want use ndef or not.
Comments
Post a Comment