mifare

How to send APDU to Mifare Classic 1k card?

こ雲淡風輕ζ 提交于 2019-12-03 13:42:55
问题 What I am trying to achieve is to send APDU command to MIFARE Classic 1K card to change its A and B keys. I was able to establish a connection with the card and use a default key ( FFFFFFFFFFFF ) to read block 0 and block 1. I used HID MifareSamples application for it. Now, I would like to change A key from default to something else. I found a solution here, at stackoverflow (Mifare Change KEY A and B) which suggests that I have to send this APDU: New key A = 00 11 22 33 44 55 Access bits not

Is it possible to implement a token queue in NFC cards?

纵饮孤独 提交于 2019-12-03 07:59:39
This question is specifically about MIFARE Ultralight C/EV1, or MIFARE DESFire EV1, or even NTAG cards. I want to implement a system of tokens, so that each time a normal user reads one of those cards they'll get one available token; that token will "pop out" from the NFC card they're reading. In other words, every time that NFC chip is read, it will issue a different usable token from the card's storage. Is this possible to implement? Common non-programmable smart cards usually provide one of (or some combination) of the following: fuse bits -- a memory area where values of individual bits

Reading a Mifare tag using Windows Phone 8 NFC?

社会主义新天地 提交于 2019-12-03 07:16:57
问题 Does Windows Phone 8 NFC support Mifare Ultralight/Classic based tags? I use this code to access NFC device on Nokia Lumia 920 (code example was taken from NDEF Tag Reader – NFC NDEF Tag Reader) public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); ProximityDevice device = ProximityDevice.GetDefault(); device.DeviceArrived += DeviceArrived; device.DeviceDeparted += DeviceDeparted; device.SubscribeForMessage("NDEF", MessageReceived); } private void

Android NFC IsoDep read file content

房东的猫 提交于 2019-12-03 04:38:27
问题 I'm trying to read some information out of an ISO/IEC 14443 Type A card. After analysing the card with the android app NFC TagInfo , I found out, that the application (AID: 15845F) has the particular file (File ID: 01) that I need. I already managed to connect to the card and to select the application. String action = getIntent().getAction(); if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)) { Tag tagFromIntent = getIntent().getParcelableExtra(NfcAdapter.EXTRA_TAG); Log.i(TAG, Arrays

How to send APDU to Mifare Classic 1k card?

末鹿安然 提交于 2019-12-03 03:44:01
What I am trying to achieve is to send APDU command to MIFARE Classic 1K card to change its A and B keys. I was able to establish a connection with the card and use a default key ( FFFFFFFFFFFF ) to read block 0 and block 1. I used HID MifareSamples application for it. Now, I would like to change A key from default to something else. I found a solution here, at stackoverflow ( Mifare Change KEY A and B ) which suggests that I have to send this APDU: New key A = 00 11 22 33 44 55 Access bits not overwritten Key B not used (so FF FF FF FF FF FF) => Write to Sector Trailer 00 11 22 33 44 55 FF 0F

Nexus 4 read Mifare Classic card UID

北慕城南 提交于 2019-12-02 22:47:32
问题 Currently we are developing NFC applications for Android.  Our experience Developed POS NFC control system using NXP PN5xx chips for control of Mifare Classic (1K) and CEPAS standard Developed Android NFC control system for MiFareClassic and Ultralight C in Galaxy Nexus (using NXP NFC chipset) Developed Android NFC control system for Ultralight C in Nexus 4 Our challenge: we want to control MiFareClassic 1K card in our POS machine (with NXP chip) and in new Android tablets (with Broadcom chip

Reading a Mifare tag using Windows Phone 8 NFC?

混江龙づ霸主 提交于 2019-12-02 22:00:07
Does Windows Phone 8 NFC support Mifare Ultralight/Classic based tags? I use this code to access NFC device on Nokia Lumia 920 (code example was taken from NDEF Tag Reader – NFC NDEF Tag Reader ) public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); ProximityDevice device = ProximityDevice.GetDefault(); device.DeviceArrived += DeviceArrived; device.DeviceDeparted += DeviceDeparted; device.SubscribeForMessage("NDEF", MessageReceived); } private void DeviceArrived(ProximityDevice sender) { // this event occurs when I am tapping any of my tags (tried 5

NFC tag information

纵然是瞬间 提交于 2019-12-02 14:51:27
I have a question, it is possible know the code source of explain th type of tag NFC that I read? If is a Mifare 1k or Ntag203 or another else? protected void onNewIntent(Intent intent){ String[] techList = tag.getTechList(); for(String tech:techList) { //I think must insert here the code } } Fingerprinting of NFC tags is not quite easy. Most tags don't just tell you "I am XY". Moreover, for certain tag technologies there exist many different tags from several different manufacturers. E.g. NFC Forum Type 2 tags are made by NXP, Infineon, Kovio and others. Finding out if a tag is MIFARE Classic

Distinguish NTAG213 from MF0ICU2

跟風遠走 提交于 2019-12-02 12:42:11
问题 Is there any way to distinguish a NTAG213 from a MF0ICU2 tag based on its UID, ATQA or SAK values? As I have to program the tags differently (PWD/PACK for NTAG213 or 3DES for MF0ICU2) there must be a way to call either one or another method. Unfortunately, the Android framework tells me that both tags are MifareUltralight with type TYPE_ULTRALIGHT_C . The ATQA ( 0x0044 ) and SAK ( 0x00 ) are identical, too. Other apps like NFC TagInfo by NXP can tell me the exact type of a tag, so I know that

MIFARE Classic: How to find to good Access Byte value

眉间皱痕 提交于 2019-12-02 11:37:12
My aim is to have only KEY A authentification and disable Key B (used space to store data). I read these documentations: http://www.nxp.com/documents/data_sheet/MF1S503x.pdf http://dangerousthings.com/wp-content/uploads/2012/08/NFC-Access-Control-for-Mifare-S50.pdf I understand how to calculate the hexadecimal values of these three bytes. But I don't understand how to choose the good data block and access byte rules : Data Block rule Here, I want to keep only key A (R & Write data) and deactivate Key B. I choosed the first rule: C1=0 C2= C3=0. Is this right? Access byte rule I would like to