mifare classic 1k tag reads fine but write fails

364 views
Skip to first unread message

akash gill

unread,
Jun 7, 2013, 4:55:18 PM6/7/13
to nfc-dev...@googlegroups.com
Hi,

I am trying to make an app that reads the data from Mifare classic 1k tag, modifies it and writes it back to tag. 

My reader is ACR 122 and I have taken the latest code from repository.

Read works perfectly fine. Two problems afterwards

1. The tag shows up as non-writable on first touch. On second touch it shows writable.
2. On second touch when it becomes writable then I get this error while writing data: org.nfctools.mf.MfLoginException: Login failed. Sector: 1, Block: 0 Key: B, Response: SW1: 99 SW2: 0.

Regards
Akash

Fermín Teuctzintli Vázquez Pérez

unread,
Aug 13, 2013, 5:03:53 PM8/13/13
to nfc-dev...@googlegroups.com
Me too

Ashish Kasodariya

unread,
Oct 18, 2013, 7:26:26 AM10/18/13
to nfc-dev...@googlegroups.com


On Wednesday, August 14, 2013 2:33:53 AM UTC+5:30, Fermín Teuctzintli Vázquez Pérez wrote:
Me too

El viernes, 7 de junio de 2013 15:55:18 UTC-5, akash gill escribió:
Hi,

I am trying to make an app that reads the data from Mifare classic 1k tag,  but my problem is once tag is write it make read only then it access to give read write and others to give read only protection plz help me

Giosk

unread,
Nov 12, 2013, 11:39:26 AM11/12/13
to nfc-dev...@googlegroups.com
Could you please post your code?
I'm asking this because I can't read my Mifare classic 1k tag and I don't know why.
The error is this:

Exception in thread "Thread-1" java.lang.RuntimeException: org.nfctools.ndef.NdefException: unknown service type
at org.nfctools.spi.acs.PollingCardScanner.run(PollingCardScanner.java:51)
at java.lang.Thread.run(Unknown Source)
Caused by: org.nfctools.ndef.NdefException: unknown service type
at org.nfctools.mf.ndef.MfNdefReader.readNdefMessage(MfNdefReader.java:60)
at org.nfctools.examples.ndefreader.NdefReaderDemo.cardDetected(NdefReaderDemo.java:52)
at org.nfctools.spi.acs.PollingCardScanner.waitForCard(PollingCardScanner.java:61)
at org.nfctools.spi.acs.PollingCardScanner.run(PollingCardScanner.java:45)
... 1 more

Do you have any idea? 
Thanks
Giosk

Hanna N

unread,
Feb 16, 2016, 8:56:58 PM2/16/16
to nfc-developers
Have you ever solve this problem?
Reply all
Reply to author
Forward
0 new messages