nfc

How to create an NDEF message that erases a NFC tag [closed]

北慕城南 提交于 2019-12-13 09:33:22
问题 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 . I am creating an NFC application. I am a noob at Android this is my 2nd application. I was wondering if anyone knows how to create a message that erases the NFC tag. This function is seen in applications like TagWriter. 回答1: What exactly do you want to achieve? An NDEF message is a data packet that you store on

NFC External record is returning in wrong format?

萝らか妹 提交于 2019-12-13 08:53:16
问题 I've successfully written an external record to an NFC tag. When I use a 3rd party tag reader to evaluate the external record that was written, I see the appropriate value, which is a single, positive integer. However, when I run my code (below) to see what the value of the payload (external record) is on the tag (using a Toast) in order to incorporate that value into an "if" statement, I get different values. So far, I've seen the following: B@41fb4278 or B@41fb1190. At this point, the value

Use NFC “payload” variable in “if” statement

为君一笑 提交于 2019-12-13 08:35:21
问题 I'm attempting to use the "payload" value from an external record that I've written to an NFC tag. I know that the record has been written successfully to the NFC tag. I'm having problems using that "payload" value in an "if" statement. My code follows: protected void onResume() { super.onResume(); // read nfc tag...IS THIS WHAT WILL "READ" THE PAYLOAD VALUE THAT HAS BEEN WRITTIEN? if (getIntent().hasExtra(NfcAdapter.EXTRA_TAG)) { NdefMessage ndefMessage = this.getNdefMessageFromIntent

NFC Reader : ACR122U-A9 not holding tags

纵饮孤独 提交于 2019-12-13 06:23:32
问题 The SDK provided along with NFC reader does not work and we are not able to write data / tag using the Tools available with SDK. The main issue is that the data written using another tool does not remain in the device for permanently. When tag is scanned using Android device, reader gets clear and we have to to write data again. I have checked and tried instructions from https://github.com/fkooman/nfcip-java/blob/master/nfcip-java/doc/ACR122_PN53x.txt but it does not work. So, we need help to

Emulate Mifare smart card on NFC device (with NXP chip)

半城伤御伤魂 提交于 2019-12-13 05:19:34
问题 I'm struggling to find out how to emulate a Mifare smart card on an Android NFC device with NXP chip. Is it possible? At http://www.mifare.net/en/micommunity/qa/ question number 4, they say there are ways to do it. Does anyone know how, in more detail? I've been trying to ask them without any answer. And do you know whether devices using the NXP chip normally are equipped with an embedded secure element (eSE) with Mifare capabilities and where I can find info about it? 回答1: You can't emulate

Arduino: uint8_t array to string

折月煮酒 提交于 2019-12-13 04:48:39
问题 I have an NFC application built on android that sends a hash as an apdu answer. This is the code I use in my Android app to send the hash: @Override public byte[] processCommandApdu(byte[] arg0, Bundle arg1) { String hash = "e68d3f574009cbbe011150263634c5c0"; return hash.getBytes(Charset.forName("UTF-8")); } Now when I receive it on the Arduino side of things I get this RAW data: 10154561005110253555248485799989810148494949534850255255255255255255255255255 How do I get the hash back from that

I want an android app to open using nfc tag only

坚强是说给别人听的谎言 提交于 2019-12-13 04:46:02
问题 I am creating an Andriod app using nfc to check in lets say the url in the tag is "http://examples.com" I want an application to open, only when I tap on that tag. So basically I will just edit the intent filters in my mainfest. So that everytime I tap on a tag that has the url http://developer.andriod.com/index.html the app will open <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <category android:name="android.intent.category.LAUNCHER" /> <data android:scheme=

NFC host card Emulation(HCE)

半世苍凉 提交于 2019-12-13 04:22:56
问题 I'm actually trying to emulate a NFC card with my android smartphone(on 4.4) and send this information to my NFC reader witch is connected to my Java Application. The goal is to catch an unique ID but my NFC reader do not support peer-to-peer. So the example on https://developer.android.com/guide/topics/connectivity/nfc/hce.html do not work. Thanks for your assistance 回答1: Peer-to-peer mode and Android HCE are two different things. In order to access devices with Android HCE, your reader only

chariotsolutions phonegap-nfc plugin intent

对着背影说爱祢 提交于 2019-12-13 04:17:28
问题 I use the phonegap-nfc plugin from chariotsolutions. Reading a NFC tag while the app is running is no problem. I registered the app for intents so it starts when the app is in background and a tag is read. But the NdefListener is not fired. Does anybody know how to get the tag information when the app is started by an intent? 回答1: You need to add a mime type listener to get the nfcEvent fired by the intent when the application launches. You can use the same event handler you are using for the

Check if NFC tag is near

雨燕双飞 提交于 2019-12-13 03:55:07
问题 Is it possible to force android to check if an NFC tag is near? I'm only able to read the tag when android detects it, I would like to force it to check if a tag is near at a specific moment 回答1: What you want to do is in general not possible. However if you can live with a dirty hack the following will work (thanks to unspecified behaviour): First disable the reader-mode of all supported tag types. This brings the NFC subsystem into a clean state, e.g. it makes sure that the NFC controller