tags - Android: card emulation - read ndef message with PN532 nfc module -


i have lg d320n android phone, elechouse's pn532 nfc module , stollmann's nfcplayer can read nfc tags properly.

i tested sample here: https://github.com/grundid/host-card-emulation-sample

it works fine, when read 1 android device tag android device reader. can not read android device tag pn532 reader through nfcplayer. want reader read ndef message android device acting tag, nfcplayer doesn't recognise android device. think have write modifications on android side can't figure out do. think don't have enough knowlege how nfc communication , hce work, though read this: https://developer.android.com/guide/topics/connectivity/nfc/hce.html

i appreciate guideline me understand missing here.

the grundid example app should discovered nfcplayer "legacy tag" (tab "r/w: legacy") not implement ndef abstraction layer. on tab, can exchange pdus (apdus in case of hce) emulated smartcard. valid apdu example app be

00 a4 04 00 07 f0010203040506 00 

you can send apdu typing pdu field , clicking on "exch. pdu" button. note grundid hce app not implement iso/iec 7816-4 response apdus. hence, may run troubles contactless smartcard readers.

if want emulated smartcard discoverabe nfcplayer nfc forum type 4 tag containing ndef message (tab "r/w: ndef"), need implement nfc forum type 4 tag operation specification (as defined nfc forum. specification defines how data must stored on (emulated) iso/iec 14443-4 smartcard interpreted ndef tag. starting point use ndef on hce example app (though, quality , reliability of code questionable). example implements smartcard filesystem storing ndef data.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -