nfc

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

Android NFC <tech-list> - problem

与世无争的帅哥 提交于 2019-12-08 19:48:28
id want to write my first NFC-application on android. For this i use the android developers link: http://developer.android.com/guide/topics/nfc/index.html Here for specifying the supported technologies you have to create a xml file like this: <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <tech-list> <tech>android.nfc.tech.IsoDep</tech> <tech>android.nfc.tech.NfcA</tech> <tech>android.nfc.tech.NfcB</tech> <tech>android.nfc.tech.NfcF</tech> <tech>android.nfc.tech.NfcV</tech> <tech>android.nfc.tech.Ndef</tech> <tech>android.nfc.tech.NdefFormatable</tech> <tech>android.nfc.tech

Host Card Emulation Android 4.4

我们两清 提交于 2019-12-08 19:14:28
Now that Android supports Card Emulation on the Nexus 5 with Android 4.4, is it likely that some apps may become available that allow me to effectively duplicate a smartcard (e.g. Smart Card that opens doors in my office) and use my phone in their place? Would be pretty handy. Cheers! No, this is not likely. Typically, copying/cloning arbitary cards using Android HCE is not possible. Many access control systems use the card ID (UID) to identify the card (or even to make an access control desicion!). With Android HCE, an app cannot set the emulated card ID. Many access control systems use cards

How to define an APDU for STORE DATA for Host Card Emulation?

一笑奈何 提交于 2019-12-08 18:56:32
I have been looking in the Global Platform Spec on how to define an APDU for my app which will use Host Card Emulation (HCE). My app is supposed to have one phone behaving like an NFC tag through HCE and another phone acting as the NFC reader. The arbitrary data that i am trying to transfer between the phones is just a simple string containing an ID number, but I'm not really sure how to apply it in the code. I have looked at what the different byte commands mean but I'm really not sure how to apply it. I think I need to use the STORE DATA command but I'm not sure how to intuitively do it and

Detect when application is started via NFC in ICS

十年热恋 提交于 2019-12-08 13:57:49
ICS introduces the possibility to share an application via Android Beam using NFC, and as far as I understood if an app is opened on deviceA it will automatically be started on deviceB (if it's already installed on it, otherwise the Market app will open) when the devices are close enough and a user "touches to beam" it. Is there a way, inside the launcher Activity, to detect if it has been started because of a NFC message or because of a user interaction? Only NFC Intents are started when a beam occurs. These are ACTION_NDEF_DISCOVERED, ACTION_TECH_DISCOVERED, or ACTION_TAG_DISCOVERED. Check

NFC Tag is null when more than >1 NdefRecord

…衆ロ難τιáo~ 提交于 2019-12-08 13:50:54
问题 Im a newbie at NFC on Android, but have managed to have an app read & write to a NFC tag. Originally, I had one NdefRecord in a NdefMessage on the tag, basically some data. I was successful at retrieving the data from the tag whenever I scanned it. I then wanted to add an application record, so that if user's scan my tag and do not have my app, they are redirected to the PlayStore. When I introduced the application record to the tag, every time I scan the tag my activity starts/resumes by

How to solve tgInitAsTarget response problem with ACR122U-A9?

懵懂的女人 提交于 2019-12-08 13:18:41
I am working over emulating ndef tags with acr122U device(PN532 chip). My start point was the question at How to card emulate with ACR122U-A9 . I can manage device (I can change led or buzzer states) with direct commands. But could not get a response from device when I pass tgInitAsTarget command. There is no an error, I am getting empty response when I pass tgInitAsTarget. I am working over an windows 10 machine with Java, the acr122u firmware is ACR122U215 version. Here is my commands and responses: Read registers << FF 00 00 00 08 D4 06 63 05 63 0D 63 38 >> D5 07 07 00 05 90 00 Write

NFC SNEP Push Fragmentation - ACR122U to Android ICS P2P

房东的猫 提交于 2019-12-08 13:01:53
How is it done? The documentation is unclear and there are no examples. What I do is the following.. I chop off the data into small fragments and then I send the fragments sequentially. The SNEP header is only included once in the first fragment. Do I need to change something in my SNEP header or LLCP? I don't understand how LLCP should be changed to make android understand the sequence of the messages? After the whole message is sent, android does not acknowledge receiving the message. Examples would be much appreciated. C# Desktop application trying to send data through NFC Peer-to-Peer to

Is the Samsung Galaxy S4 compatible with CyanogenMod's smart card emulation (NFC)?

谁都会走 提交于 2019-12-08 12:04:15
问题 I have the Samsung Galaxy S4 and the SCM SDI010 card reader. My goal is to let the S4 emulate a smart card which then can be read by the card reader. I tried to apply the PKI applet example described here (installing CyanogenMod 10.2, starting se-emulator on the S4 and starting the se-pki-client on my Linux PC). But the connection establishment fails with either a "SCARD_W_UNRESPONSIVE_CARD" or "SCARD_W_UNPOWERED_CARD" exception on the reader side. Does anyone know if the NFC chip on the S4