mifare

How send NfcA command to the MIFARE card?

限于喜欢 提交于 2019-12-08 04:26:13
问题 I'm writing an Android application. I'm trying to send NfcA low-level commands (in my case: HALT and WAKE-UP) to my Mifare Plus S card. The NfcA tech is for "low-level" access to ISO 14443 Type A tags (i.e. the proprietary protocol as mentioned in ISO 14443-3). This is part of my code: protected void onNewIntent(Intent intent) { if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) { tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); UID = Utils.byteArrayToHexString

ACR122U NFC Peer to Peer demo not working

感情迁移 提交于 2019-12-08 03:24:16
问题 I've got an ACR122U NFC card reader and ACR122T token from ACS. I'm trying to run their NFC Peer to Peer demo. I've installed the ACR122U SDK, mysql and connector, set up the database, and added the escape command to the registry. When I try to run the peer to peer demo I carry out the following steps (with resultant log results shown) Insert NFC ACR122T into USB port. Open the Smart Poster application and click initalise with reader 0. Log: D1: 2:04:57 PM Program ready D1: 2:05:02 PM

How to interpret NDEF content on Mifare Classic 1K

雨燕双飞 提交于 2019-12-07 14:47:30
问题 I write a text to a Mifare Classic 1K tag using the NFC Tools app on my Android device (through the built-in NFC reader). This text is "moretto" (my last name). Then, I'm trying to read this text (NDEF format) using the NFC reader ACR1255U with the library provided by ACS. I am able to get following: Read block 4: FF B0 00 04 10 response: 0000030ED1010A5402656E6D6F726574 9000 Read block 5: FF B0 00 05 10 response: 746FFE00000000000000000000000000 9000 I know that FE indicates the end of

android nfc intent-filter to show my application when nfc discover a tag

穿精又带淫゛_ 提交于 2019-12-07 05:49:40
问题 I am writing an app that works with NFC and MIFARE CARD. When my NFC device detect a card, it shows me the list of application that can use NFC, but my application is not mentioned. What I am missing on my android manifest file? <uses-permission android:name="android.permission.NFC" /> <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="17" /> <uses-feature android:name="android.hardware.nfc" android:required="true" /> <application android:icon="@drawable/ic_launcher" android

How send NfcA command to the MIFARE card?

人盡茶涼 提交于 2019-12-06 15:44:06
I'm writing an Android application. I'm trying to send NfcA low-level commands (in my case: HALT and WAKE-UP) to my Mifare Plus S card. The NfcA tech is for "low-level" access to ISO 14443 Type A tags (i.e. the proprietary protocol as mentioned in ISO 14443-3). This is part of my code: protected void onNewIntent(Intent intent) { if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) { tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); UID = Utils.byteArrayToHexString(intent.getByteArrayExtra(NfcAdapter.EXTRA_ID)); } NfcA nfca = null; try { Log.e(TAG, "WakeUpCMD and

How to access a MIFARE Classic card that uses the MIFARE Application Directory structure?

牧云@^-^@ 提交于 2019-12-06 14:40:53
问题 How can I make authenticate and read data from a MIFARE Classic card that is formatted with the MIFARE Application Directory structure? I'm using Android. 回答1: See NXP's application note on the MIFARE Application Directory. Typically, in order to read data from a MIFARE Classic card that makes use of the MAD, you would do something like the following: Authenticate to sector 0 (MAD sector) using key A A0 A1 A2 A3 A4 A5 (the public MAD read key). Read block 3. Based on the general purpose byte

ACR1222L FF 82 Load Authentication Keys fails with 63 00 Operation Failed

a 夏天 提交于 2019-12-06 13:55:49
问题 I'm using ACR1222L NFC smartcard reader with Mifare Plus cards (Security Level 0 as of now; manufacturer default keys A and B). I tried a variety of commands to load authentication key into the reader: FF 82 00 00 06 FF FF FF FF FF FF FF 82 00 01 06 FF FF FF FF FF FF FF 82 20 00 06 FF FF FF FF FF FF FF 82 00 00 06 A0 A1 A2 A3 A4 A5 FF 82 00 00 06 D3 F7 D3 F7 D3 F7 ... and others ... All of them are returning the error status: 63 00 (Operation Failed) What could be wrong? I have searched long

Unable to authenticate to a MIFARE Classic tag used as NDEF tag

∥☆過路亽.° 提交于 2019-12-06 13:47:53
问题 I'm using an ACR 1255U-J1 as external reader connected through Bluetooth. The library I use to access the reader is acsbt-1.0.0preview7. I use the following commands to authenticate to sector 1 (block 4) of a MIFARE Classic tag: FF 82 0000 06 FFFFFFFFFFFF FF 86 0000 05 01 00 04 60 00 When I authenticate to an empty MIFARE Classic tag (with manufacturer default configuration), I receive the response status word 9000 . This indicates that authentication was successful. However, when I try to

Get mifare card serial number with WinSCard library

梦想与她 提交于 2019-12-06 11:56:36
问题 I am working on an application that required reading the mifare card serial number, the language I am working with is C#. I am new to mifare reader programming, so I am sorry for asking dumb question. At first I would like to know if there is a different between Mifare UID and Mifare Serial number. I have managed to get UID with the help of WinSCard library, but I cant figure it out how to get the card serial number which should be 10 digit numbers. I do appreciate if you could point me to

Android IsoDep command chaining failure

孤人 提交于 2019-12-06 10:13:19
I am making a NFC application that use ISO-DEP (ISO 14443-4) as TagTechnology. I try to execute a authentication with a DESFire EV1. The authentication work well if the chaining of the command is without pause. But if for exemple, I make something that take time (like the Thread.Sleep after NATIVE_AUTHENTICATION_COMMAND_P1) I got an error 0x911C ("Command code not supported") during the authentication command part 2 from the card. Normaly the error come when the authentication has been canceled. Like if the card got another command during the authentication procedure that have nothing about it