mifare

ATR command when programming PC/SC reader

房东的猫 提交于 2021-02-07 06:43:46
问题 I have checked the programming interface for the MIFARE Ultralight and TOPAZ/Jewel IC tags. The API quite nicely describes how the bytes are saved on the card, how to address the memory blocks, how to make all operations like read, read-all, use of the OTP (One Time Programmable) function, how to read ROM bytes, how to switch from idle to ready state (REQA, WUPA commands), it says if commands are CRC protected, how to access the tag UID, etc. When stared to program the NFC reader (ACR122U or

External authentication in DESFire card with ISO 7816-4 APDUs

北城余情 提交于 2021-02-07 04:39:14
问题 I tried to do the authentication process on a DESFire card (resident card) using ISO 7816-4 APDUs. But it always fails. Do I miss anyithing? >>> 00 84 00 00 00 (challenge request - 5 bytes) <<< 15 29 84 E3 6A AA A6 B7 90 00 (response of challenge 10 bytes - OK) >>> 00 82 00 00 10 B5 02 0B 80 4F 95 CB E7 8C A6 4D E9 C1 B1 23 A7 00 (external auth request - 22 bytes) <<< 67 00 (response of external auth - Checking error: Wrong length) Code: // STEP Authentication // send initial authentication

Cannot authenticate NTAG213

亡梦爱人 提交于 2021-02-07 04:12:57
问题 I am using an ACR122U NFC reader to password protect an NTAG213 NFC label. I think I have managed to set the password correctly, but I cannot authenticate and change the label afterward. My code for authenticating looks like this: #include <winscard.h> #include <iostream> #pragma comment(lib, "winscard.lib") const char *ReaderName = "ACS ACR122 0"; unsigned Password = 0x12345678; int main() { //Establish context SCARDCONTEXT hContext; DWORD SCard_Status1 = SCardEstablishContext(SCARD_SCOPE

Cannot authenticate NTAG213

一个人想着一个人 提交于 2021-02-07 04:05:33
问题 I am using an ACR122U NFC reader to password protect an NTAG213 NFC label. I think I have managed to set the password correctly, but I cannot authenticate and change the label afterward. My code for authenticating looks like this: #include <winscard.h> #include <iostream> #pragma comment(lib, "winscard.lib") const char *ReaderName = "ACS ACR122 0"; unsigned Password = 0x12345678; int main() { //Establish context SCARDCONTEXT hContext; DWORD SCard_Status1 = SCardEstablishContext(SCARD_SCOPE

How to set and unset password on a MIFARE Ultralight EV1 tag?

偶尔善良 提交于 2021-02-04 16:08:37
问题 I would like to be able to set and unset password protection on a MIFARE Ultralight EV1 (MFOUL21) tag using the NfcA? tag technology on Android. I understand I would use the nfcA.transceive() method for this, but I'm not sure what the arguments to that method would be, so could anyone provide code snippets to set and unset the password? Update: With respect to the TapLinx library, I would basically like the nfcA.transceive(...) code snippets equvalent to: ultralightEV1.programPwd

How to set and unset password on a MIFARE Ultralight EV1 tag?

你离开我真会死。 提交于 2021-02-04 16:08:28
问题 I would like to be able to set and unset password protection on a MIFARE Ultralight EV1 (MFOUL21) tag using the NfcA? tag technology on Android. I understand I would use the nfcA.transceive() method for this, but I'm not sure what the arguments to that method would be, so could anyone provide code snippets to set and unset the password? Update: With respect to the TapLinx library, I would basically like the nfcA.transceive(...) code snippets equvalent to: ultralightEV1.programPwd

How to set and unset password on a MIFARE Ultralight EV1 tag?

一笑奈何 提交于 2021-02-04 16:08:22
问题 I would like to be able to set and unset password protection on a MIFARE Ultralight EV1 (MFOUL21) tag using the NfcA? tag technology on Android. I understand I would use the nfcA.transceive() method for this, but I'm not sure what the arguments to that method would be, so could anyone provide code snippets to set and unset the password? Update: With respect to the TapLinx library, I would basically like the nfcA.transceive(...) code snippets equvalent to: ultralightEV1.programPwd

MIFARE Classic standard keys

假如想象 提交于 2021-01-28 03:10:45
问题 I have two NFC tags with different keys for their sectors: Tag 1: This tag contains an NDEF message. Sector 0 = A0:A1:A2:A3:A4:A5 for key A Sector 1 to 15 = D3:F7:D3:F7:D3:F7 for key A Tag 2: No NDEF data on this tag All sectors = FF:FF:FF:FF:FF:FF for key A and B Are there standard keys for MIFARE Classic tags according NDEF/non-NDEF? 回答1: Correct. The application note MIFARE Classic as NFC Type MIFARE Classic Tag defines how a MIFARE Classic tag can be used to store NDEF data. This

How to properly encode a URL onto an NFC tag?

坚强是说给别人听的谎言 提交于 2021-01-04 18:40:48
问题 I have a Mifare ULC card. When I tap this card to an NFC enabled device, it should open the default browser in phone without any additional NFC application. I have encoded the below NDEF URL data to the tag, but when i scan the tag, it does not open the browser. Can anyone guide me where I did the mistake? 03 - tag for the NDEF 12 - length of the NDEF msg (18 Bytes) D3 Record header (of first and only record) Bit 7 = MB = 1: first record of NDEF message Bit 6 = ME = 1: last record of NDEF

How to properly encode a URL onto an NFC tag?

不羁的心 提交于 2021-01-04 18:38:34
问题 I have a Mifare ULC card. When I tap this card to an NFC enabled device, it should open the default browser in phone without any additional NFC application. I have encoded the below NDEF URL data to the tag, but when i scan the tag, it does not open the browser. Can anyone guide me where I did the mistake? 03 - tag for the NDEF 12 - length of the NDEF msg (18 Bytes) D3 Record header (of first and only record) Bit 7 = MB = 1: first record of NDEF message Bit 6 = ME = 1: last record of NDEF