mifare

Android IsoDep command chaining failure

这一生的挚爱 提交于 2019-12-10 11:31:47
问题 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

Mifare Access condition calculation

自闭症网瘾萝莉.ら 提交于 2019-12-10 10:29:32
问题 I am aware of this post :- Locking mechanism of Mifare Classic 1K However, it is really not clear - how a value like FF 07 80 FF is calculated in this string: D3 F7 D3 F7 D3 F7 FF 07 80 FF 00 00 00 00 00 00 This means that the blocks can be read with key A and written with Key B but does not allow inc/dec. How should the access bits look like if I have to support increment and decrement operations. I understand that C1, C2 and C3 must be 1,1,0 how does this reflect to the byte 6, 7 and 8. Any

Accessing card-emulation mode on USB-NFC-Reader

寵の児 提交于 2019-12-10 08:22:58
问题 I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U, that came with an Android library. I have asked some general questions of my setup here. Now that it gets more specific, I need to ask another one. In this previous question I found out, that I can use the ACS Android library to access the readers card emulation capabilities. My first goal is to make that reader emulate an NFC tag, that contains a URL. Any NFC

Reading Mifare 1k from a WinForm application

依然范特西╮ 提交于 2019-12-10 00:19:54
问题 I have a really weird problem with reading Mifare 1k card from WinForm application. The reader I'm using is a PROMAG PCR-310U smart card reader. I use this code to read the card: MifareReader.CommPort = 4; MifareReader.PortOpen = true; MifareReader.mfRequest(); MessageBox.Show(MifareReader.mfAnticollision().ToString()); MifareReader.mfHalt(); The code is placed inside the backgroundWorkers DoWork method, and the entire method looks like this: private void backgroundWorker1_DoWork(object

Reading the tag UID of Mifare classic card

断了今生、忘了曾经 提交于 2019-12-09 22:00:06
问题 I am creating an app for NFC where my first objective is to get the tag uid from the mifare tag. When i press the tag button my activvity goes to second activity where i should be getting the tagID. I am getting error of resource lookup. I know i am doing some major mistakes but could not find it. Request you to please help. This is my Meanifest file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.chetan.nfc" android

Desfire EV1 communication examples

烂漫一生 提交于 2019-12-08 22:48:21
问题 There are lots of questions about Desfire EV1 cards here on Stackoverflow. But if you search for some example data the only place where you will find a few bytes is in Ridrix Blog. But this is quite incomplete. A lot of people wrote their problems there while developing code for Desfire cards. But mostly when they solved their problem they were too lazy to post the solution. So you find many questions but very few answers with data examples. Even if you have the Desfire EV1 documentation (I

Distinguish Mifare Ultralight from Mifare Ultralight C

我是研究僧i 提交于 2019-12-08 21:01:10
问题 Is there a reliable way to find out if an RFID card is either a Mifare Ultralight or a Mifare Ultralight C? The only way i found so far is utilizing the difference in size of those two cards issuing a read command beyond the boundaries of the smaller one. But it does look like a hack and i assume the read command might fail if the card uses the Ultralight C authentication mechanism. const char* mifare_ultralight_identification(const nfc_target_info_t nti) { byte_t abtCmd[2]; byte_t abtRx[265]

What mobile phones with NFC have full support of Mifare Classic (1K & 4K) cards? [closed]

被刻印的时光 ゝ 提交于 2019-12-08 20:12:49
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Google has stopped supporting such tags in the latest Nexus 4, but what phones still have possibility of reading\writing Mifare Classic cards? Especially interested in hi-end models with powerful processors. Also could anyone provide some inforamtion on emulating such nfc tags with your phone? Thanks in advance Its not that Google stopped support for MIFARE Classic. Instead licensing issues prevent Broadcom to

Using SAM modules for storing secure keys

旧街凉风 提交于 2019-12-08 15:29:23
问题 As i understand SAM modules are kind of SMART Cards which connect to the MCU via ISO 7816 protocol. Is there any other application for them except storing secure keys? Can I used usual mobile sim-cards instead of SAM module to storing keys? As i know when we store keys in the SAM module ,it is almost impossible to retrieve the keys, & SAM used a sequence of random challenge & polyphase authentication to verify the card.Then how SAM send this verification to MCU?is there direct access between

What mobile phones with NFC have full support of Mifare Classic (1K & 4K) cards? [closed]

牧云@^-^@ 提交于 2019-12-08 08:12:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Google has stopped supporting such tags in the latest Nexus 4, but what phones still have possibility of reading\writing Mifare Classic cards? Especially interested in hi-end models with powerful processors. Also could anyone provide some inforamtion on emulating such nfc tags with your phone? Thanks in advance