Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash while reading Mifare Ultralight C tags using ACR 122U reader #31

Open
maskaravivek opened this issue Sep 8, 2017 · 4 comments
Open

Comments

@maskaravivek
Copy link

FATAL EXCEPTION: Thread-422
Process: in.zeta.android.pos.debug, PID: 11584
org.nfctools.NfcException: org.nfctools.NfcException: Unknown tag contents
at org.nfctools.mf.ul.Type2NfcTagListener.createNdefOperations(Type2NfcTagListener.java:93)
at org.nfctools.mf.ul.Type2NfcTagListener.handleTag(Type2NfcTagListener.java:51)
at in.zeta.android.nfc.ReaderStateChangeListener.onStateChange(ReaderStateChangeListener.java:48)
at com.acs.smartcard.Reader$1.run(SourceFile:4097)
at java.lang.Thread.run(Thread.java:818)
Caused by: org.nfctools.NfcException: Unknown tag contents
at org.nfctools.mf.ul.Type2NfcTagListener.createNdefOperations(Type2NfcTagListener.java:89)
@skjolber
Copy link
Contributor

The tags might not contain Ndef data, so you should catch that execption and fall back to binary reading.

@Bubumuk
Copy link

Bubumuk commented Aug 10, 2018

@skjolber

catch that execption and fall back to binary reading.

Can you show me the way to binary reading?

@SuneethaYamani
Copy link

I am also facing same issue with mifare classic card.can you please share sample

@maskaravivek
Copy link
Author

I wasn't able to figure out the issue using the library so i manually wrote/read the data page by page and then parsed it to read the actual messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants