skjolber / external-nfc-api

Interaction with external NFC readers in Android
Apache License 2.0
183 stars 42 forks source link

Unable to read tag UID #26

Closed CodeOfDarkness closed 2 years ago

CodeOfDarkness commented 4 years ago

Hi skjolber and thank for this great collection of nfc tools. I am using the server-example application and try to get the tags UID. With Mifare Desfire tags there is no problem and it works perfect. But at MIFARE Classic 1k tags the logs always shows the following logs: 2020-09-07 08:43:32.053 3791-3803/com.github.skjolber.nfc.external I/com.github.skjolber.nfc.service.BluetoothBackgroundService: onCardStatusChange sta: Present. 2020-09-07 08:43:32.057 3791-3803/com.github.skjolber.nfc.external D/com.github.skjolber.nfc.service.BluetoothBackgroundService: Power on card.. 2020-09-07 08:43:32.138 3791-3803/com.github.skjolber.nfc.external D/com.github.skjolber.nfc.service.BluetoothBackgroundService: onAtrAvailable: 3b8f8001804f0ca000000306030001000000006a 2020-09-07 08:43:32.139 3791-3803/com.github.skjolber.nfc.external D/com.github.skjolber.nfc.service.BluetoothBackgroundService: Got tag type MIFARE_CLASSIC_1K 2020-09-07 08:43:32.141 3791-7026/com.github.skjolber.nfc.external D/com.github.skjolber.nfc.service.BluetoothBackgroundService: Regular mode 2020-09-07 08:43:32.615 3791-7026/com.github.skjolber.nfc.external W/com.github.skjolber.nfc.service.AbstractService: Unable to read tag UID

Am I doing something wrong or does the application not support MIFARE Classic 1k?

skjolber commented 2 years ago

Mifare classic cards are not supported by most phones nowadays.