revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.39k stars 317 forks source link

How to read NTAG 213 locked NDEF #134

Closed mkharibalaji closed 5 years ago

mkharibalaji commented 5 years ago

Hi @whitedogg13 , How to read a NTAG 213 which is password protected or locked ?. Right now I am not able to properly read it.The Programmed URL comes with extra bytes before and after the URL.

whitedogg13 commented 5 years ago

Hi, @mkharibalaji Please refer to this SO link. For tag with memory protection, you usually need to perform authentication manually, normally it's done through the low level transceive API.

mkharibalaji commented 5 years ago

Hi @whitedogg13, Thanks a lot buddy. If you shed some light on how i could use react-native-nfc-manager to read and write with just a lock (without password Auth) on the NTAG 213 it would be great.

Will makeReadOnly() method help to achieve the above ?

whitedogg13 commented 5 years ago

Sorry, we mainly focus on android / iOS related API bridging, and cannot help on the individual tag platform. (BTW, I think makeReadOnly won't help).

I think you will need to read the tag data sheet, like this one: https://www.nxp.com/docs/en/data-sheet/NTAG213_215_216.pdf, then you can figure out how to use low-level transceive to communicate with the tag.

mkharibalaji commented 5 years ago

Thanks a lot @whitedogg13.

Will definitely give it a try.