mifare

How to properly encode a URL onto an NFC tag?

北城余情 提交于 2021-01-04 18:38:17
问题 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

“Tag connection lost” error when reading a Mifare Ultralight NFC tag on iOS 13

我的梦境 提交于 2020-08-10 19:04:17
问题 I'm trying to read a page of a Mifare Ultralight tag (more specifically EnOcean PTM 215B) using NFCMifareTag.sendMifareCommand method after it has been discovered and connected onto. The problem is that all commands I've tried to send cause a "Tag connection lost" error which is quite odd as I've just successfully connected to it. The (simplified) code looks like: // tag has been determined to be of type NFCMifareTag earlier session.connect(to: tag) { (error: Error?) in if (error != nil) {

Smart card Mifare 1k keys

做~自己de王妃 提交于 2020-04-30 10:20:06
问题 Following some example I can read all blocks of sector 0 of a Mifare 1K card with the following commands: Load Authentication Keys Authentication Read Binary Blocks For the first command I used a key of FF FF FF FF FF FF. When I try to read block 4 (sector 1) I get an access denied error. I suppose it is due to the fact that sector has a non default key. Is it correct ? I'm not familiar with smart cards, the one I'm testing is for logging access to workplace, I (erroneously ?) thought it was

Reading a NFC Mifare card with NXP Reader Library

南笙酒味 提交于 2020-02-21 06:22:59
问题 I'm trying to read the content of a Mifare Ultralight card using the NFC Reader Library. I'm totally new with NFC and I'm using this github repository to start. The code in this repo allows to detect which type of card is detected (Mifare, Mifare ultralight ...) and read the UID of the card. I added this code in order to read the content of a Mifare ultralight card: uint8_t bBufferReader[96]; memset(bBufferReader, '\0', 0x60); PH_CHECK_SUCCESS_FCT(status, phalMful_Read(&alMful, 4,

Reading a NFC Mifare card with NXP Reader Library

这一生的挚爱 提交于 2020-02-21 06:17:10
问题 I'm trying to read the content of a Mifare Ultralight card using the NFC Reader Library. I'm totally new with NFC and I'm using this github repository to start. The code in this repo allows to detect which type of card is detected (Mifare, Mifare ultralight ...) and read the UID of the card. I added this code in order to read the content of a Mifare ultralight card: uint8_t bBufferReader[96]; memset(bBufferReader, '\0', 0x60); PH_CHECK_SUCCESS_FCT(status, phalMful_Read(&alMful, 4,

Reading a NFC Mifare card with NXP Reader Library

柔情痞子 提交于 2020-02-21 06:16:46
问题 I'm trying to read the content of a Mifare Ultralight card using the NFC Reader Library. I'm totally new with NFC and I'm using this github repository to start. The code in this repo allows to detect which type of card is detected (Mifare, Mifare ultralight ...) and read the UID of the card. I added this code in order to read the content of a Mifare ultralight card: uint8_t bBufferReader[96]; memset(bBufferReader, '\0', 0x60); PH_CHECK_SUCCESS_FCT(status, phalMful_Read(&alMful, 4,

Android: how do you disable that your app reopens when scanning a NFC tag?

依然范特西╮ 提交于 2020-02-20 05:43:29
问题 I'm writing an android application that reads data from a Mifare Classic card (4k). I have edited my AndroidManifest.xml file so that the app gets started (or I can choose another app that uses NFC). But when my app is openend and I hold my card next to my phone, it gives the popup again where I can choose which app to open. After some research I have found that I need to edit the function: onNewIntent , because this is the function that gets called when you scan a tag when your app is

Android NFC: Exception “transceive failed” when using transceive()

北城以北 提交于 2020-01-22 15:38:04
问题 I'm trying to communicate between a Samsung Galaxy S3 and a smartcard that supports NfcA and IsoDep (Mifare DESFire EV1). To do this, I enabled forgeground dispatch and started a task when a tag is discovered. The code in the task looks like this: IsoDep isoDep = IsoDep.get(tag); byte[] selectCommand = { (byte)0x00, // CLA (byte)0xA4, // INS (byte)0x04, // P1 (byte)0x00, // P2 (byte)0x0A, // LC (byte)0x01,(byte)0x02,(byte)0x03,(byte)0x04,(byte)0x05,(byte)0x06,(byte)0x07,(byte)0x08,(byte)0x09,