简体   繁体   中英

Format PICC on Mifare DESFire card makes it useless?

I am working on Mifare DESFire 4k tags on android, using the IsoDep and DESFire native commands. When I send a PICC Format command to the card, I get a TagLostException and after that the tag is no longer detectable using any software on Android. Is this the expected behavior? Is there a way to get the tag to behave as it did before the format?

Try increasing the transceive time-out before sending the format command, using setTimeout() , to some large value (a couple of seconds). Formatting a DESFire tag takes some time. I had the same experience with the TagLostException, but have never ruined a tag...

I rather agree with NFC guy. It's very rare to ruin a tag when formatting PICC but no so uncommon to receive TagLostException when operating with tag due to Android code (known bug/issue), Sometimes tag stops responding, but it should return to live after some time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM