Questions tagged [ndef]
The NFC Data Exchange Format (NDEF) specification is a common data format for NFC Forum Devices and NFC Forum Tags.
0
votes
0answers
29 views
Can you write a photo to an NFC tag on Android? [duplicate]
I am trying to figure out how to make an NFC Tag that automatically puts a photo on an Android phone and brings it up. Not just a link to a photo, but an actual photo.
I don't know a ton about ...
0
votes
0answers
75 views
convert byte array to string for EthernetClient print() function fails
I try to make an http request with data read from an ndef formatted mifare nfc tag.
I fail converting the byte array data from the tag, into a format that works with the Ethernet client print ...
0
votes
1answer
75 views
How can I act with Android app as MIFARE card?
How can I send an NDEF message from phone to MIFARE card reader?
On the reader side I use this code from https://github.com/AlterCodex/nxppy:
import nxppy
import ndef
# Instantiate reader
mifare = ...
1
vote
1answer
67 views
Reading NFC Tag types “android.nfc.tech.NfcV” and “android.nfc.tech.NdefFormatable” with React Native
I am trying to read from a Bloodsugar Meter using NFC, right now on an Android, haven't tried iOS yet (don't have a phone with NFC).
I am using react-native-nfc-manager as library and the example ...
1
vote
0answers
45 views
Crypto NFC microchip: JavaCard or dedicated firmware?
I would like to implement some ECDSA functionalities into an NFC microchip (generating keypairs, signing, etc.), with NDEF communication.
I am wondering if JavaCards suits that need (size, power, ...
1
vote
1answer
81 views
Writing data to an NFC tag that does not fit
My Android app at the moment consumes a URL for a Google spreadsheet through pasting from the clipboard, reading a QR code, or reading from NFC. I'm having trouble writing to an NFC tag and I get this ...
2
votes
0answers
24 views
How to mock creation of NdefMessage in JUnit test for Android
In my code I am creating NdefMessage from bytes, which gives me ability to parse the payload from one of its record.
Unfortunately, when I am writing Junit tests for that parser I am getting an ...
0
votes
1answer
32 views
Getting IOException when scanning an NFC tag weirdly
When I scan a NFC tag normally, my code works fine. But when I scan it weirdly, by like swiping or something, I can get this error in the console:
W/System.err( 8533): java.io.IOException
W/System....
1
vote
1answer
34 views
Read NDEF message from tag two times with one single touch (without moving phone)
I got everything successfully by reading the NDEF message from NFC tag. And after I read, I move the phone and it can read the tag again.
I'm using the onNewIntent and foregroundDispatch to handle ...
0
votes
0answers
28 views
How to read the NDEF message? (M24SR04-Y)
I have a microcircuit M24SR04-Y, on which I recorded information using the NFC.
I need to read this information using i2c.
I read the datasheets and understood the circuit of communication with the ...
1
vote
0answers
23 views
How to disable NDEF tag discovery permanently in an Android app not just for an Activity?
We have an app that is used to simulate POS terminal, i.e. it communicates with debit/credit cards via NFC.
In all the app activities I am using:
nfcAdapter.enableReaderMode(this,
...
1
vote
1answer
89 views
NFC tag type specification
Doing a research on NFC tag types, I have stumbled upon few questions.
During a time of this question I have read many articles about NFC tag types, and every article provides different type of ...
2
votes
2answers
140 views
How to properly encode a URL onto an NFC tag?
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 ...
0
votes
1answer
22 views
Smart Poster VS plain text and URI
I am wondring what is the different between a smartPoster wich has two records ( URI record , textRecord'json' ) and just two simple records first one is URI and the second is plain text'json' .
my ...
1
vote
1answer
156 views
Android Kotlin - How to read NFC tag inside Activity
I found some recent posts here about reading NFC Tags with Android.
The conclusion that I got is that to performing an NFC read action triggers a separated intent.
What I want to achieve is that only ...
0
votes
0answers
33 views
Prompt File Download to Phone from NFC Tag
Rather than an NFC tag prompting a phone to visit a URL in the phone's browser, I would like the NFC tag to prompt the phone to simply download an .mp3 file hosted on a server (similarly to hitting "...
0
votes
1answer
36 views
send NDEF message based Android HCE with felica tag
I want to emulate felica tag using Android HCE, and communicate with NDEF message. Is that possible?
1
vote
1answer
31 views
Get notified when NDEF is sent / touch to beam is pressed
I am using setNdefPushMessageCallback to send an NDEF message (text/plain) through Android Beam (TM) from one Android device to another one. In onResume I am checking ACTION_NDEF_DISCOVERED so in this ...
1
vote
0answers
79 views
How to read a tag without remove it and tag again after format
I'm writing a program that writing messages into Factory-New tags
public void onNewIntent(Intent intent) {
Tag tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
Ndef ndefTag ...
2
votes
1answer
79 views
How to launch app by scanning NDEF NFC tag?
I am trying to launch my app by scanning an NFC tag. I have two tags to test with,
one (lets call this "tag A") with one URI data type "http://panasonic.net" and
the other (lets call this "tag B") ...
0
votes
0answers
29 views
NDEF_PUSH_DISABLED (ionic 3)
I am trying to share data between 2 devices using ionic NFC plugin. By using below code:
this.platform.ready().then(() => {
console.log("platform.ready() success");
this.nfc.share([this....
-3
votes
1answer
27 views
NFC: Is this possible?
I want to write an NFC tag that when its tapped by anyone with an NFC enabled smartphone the following will happen:
Connect to a certain router.
Open a URL (but pausing before executing browser for 2 ...
0
votes
0answers
60 views
Android write ndef message
I try to write ndef message in Android through NFC. All fine, but when I see the avalaible technologies on tag, I see "IsoDep, NfcA". So I have to communicate with iOS, that accepts only Ndef messages....
1
vote
0answers
60 views
How can I send a simple String using NFC
I am designing an app that needs to transfer a simple string using NFC, I have tried with multiple devices and still not working, something seems to be going wrong even though this is code snippet was ...
1
vote
1answer
61 views
Setting and getting NdefRecord ID
I am trying to write and read back a number of NdefRecords on Android and am having problems with retrieving the record IDs. I believe it is because they are not being written to the tag initially.
I ...
1
vote
1answer
192 views
Cannot format NdefFormatable NFC tag
I'm developing an Android application that's using NFC. I have some NFC card with the following tech-list:
android.nfc.tech.NfcA
android.nfc.tech.MifareClassic
android.nfc.tech.NdefFormatable
But I ...
1
vote
1answer
179 views
Intent-filter android.nfc.action.NDEF_DISCOVERED not working
I'm building an app that sends data through NFC. I had it working but changing namespaces, some build options to make release APK, updating Android Studio and other things, but not changing the code, ...
0
votes
0answers
72 views
Interrupted write causes NFC Tag to become non-NDEF
I'm working on an Android that involves writing data to an NFC tag, taking ~3 seconds. Sometimes, if the tag is pulled away during the write, the Tag will become blank, and non-NDEF.
Initially the ...
0
votes
1answer
118 views
Unexpected prefix is added to URL/URI when writing to NFC tag
I am trying to write a URI/URL to an NFC tag. I am able to do that successfully but there is a prefix that gets automatically added to the URI that I write.
For example: If the URL that I want to ...
1
vote
0answers
65 views
Can I read NFC NDEF messages multiple times on iOS?
I want to do the following:
Hold iPhone in front of my device's NFC tag
Read the tag's NDEF messages
After reading, the tag's NDEF messages will be overwritten by my device (not by the iPhone). Go ...
1
vote
1answer
52 views
How to detect a NFC P2P event
Android allows you to prepare NFC push messages using either NfcAdapter.setPushMessage or NfcAdapter.setPushMessageCallback. My understanding is that after setting the push message or callback, the ...
0
votes
1answer
26 views
Bug splitting NDEF data
I've written a small function to format raw data to NDEF and then write it onto a tag.
The main part of the function works without any problems, the only thing that is not working is that it keeps ...
0
votes
0answers
41 views
Can we use NFC technology to send messages (NDEF) from iPhone [duplicate]
I wanted to know can we exchange NDEF message from iPhone to other device? Can anyone share some sample codes for its implementation ?
1
vote
1answer
86 views
Can I program an RFID tag to present natively-actionable data to a smartphone (such as a URL), alongside other custom data?
I've learned that the NFC tag spec offers a few standardized formats (plain text, e-mail, Wi-Fi SSID, business card data, URL, etc.) that compatible phones are capable of natively responding to simply ...
1
vote
2answers
102 views
What does this mean NFC NDEF 716 byte?
What does it mean when someone says the NFC tag memory capacity is 1024 byte (NDEF 716 byte)? If I am only using the unique ID of the NFC tag, how do these sizes affect my selection of the tag?
1
vote
1answer
193 views
Write and read multiple values to and from specific memory block (location) in NFC-V
I am working on a project where I'm using M24LR64E-R ISO 15693. My problem is that I have written a simple program that can write and read an NDEF message with multiple text records using a normal NFC ...
0
votes
1answer
97 views
getCachedNdefMessage returns null
I am trying to read data from a NFC card. I use the following functions to get and read NDEF message, however I get null message.
I can get correct data length with getMaxSize() and getType() returns ...
3
votes
1answer
199 views
Strange character when reading NFC tag
I am trying to read an NFC tag using Android. I'm a beekeeper and this is to ID my hives when I approach them. I have searched here but I am still having issues reading the tag. I want to read the ...
0
votes
1answer
208 views
.Net Library and RFID Reader could I use to get NDEF message from NXP ICode SLIX?
We would like to read NDEF records as well as Tag ID from our tags coming from production using any suitable .Net library. But as far as I saw this kind of NXP ICode SLIX seems to be poorly supported ...
1
vote
1answer
94 views
How to write values to NFC tag from two activities without overwriting existing values?
I am trying to write an Android application that has two activities which write multiple values (Strings/text) to the same NFC tag. I have managed to make one activity to write values to a tag, but ...
1
vote
1answer
72 views
How to redirect the AAR on an NFC tag to a new application ID?
I've got an NDEF NFC tag with two records:
The first one contains my website URL.
The second one is an AAR with the application ID of the my old application.
So far, the old application is started ...
0
votes
1answer
297 views
React-Native NFC Peer to Peer Write
I've been trying to send text messages in a React-Native app using mainly this this NFC Manager. But instead of the displaying the message text the reading device tries to open the to open the writing ...
1
vote
1answer
303 views
Read NDEF message with external NFC reader ACR1252
I am using the following command to read a binary block from a Mifare Ultralight tag: FF B0 00 01 04
But now I want to exact the NDEF message stored in that Mifare Ultralight tag using an ACR1252 NFC ...
3
votes
0answers
46 views
Unable to filter on URL NDEF Android Intent
There are a ton of examples on SE on how to do this, but I can't seem to get it to work. What I want to do is when a tag with a dev.example.com is scanned, either my app is launched, if installed, ...
1
vote
0answers
151 views
Formatting an NdefFormatable NFC tag with Javascript
I'm trying to format a NFC tag using javascript, from NdefFormatable to Ndef. All the sources I found were using the chariotsolution's java library, which is built on Cordova, so it's useless to my ...
1
vote
1answer
269 views
NFC type default app
I just started working with NFC. When scanning an NFC tag my app opens by default but I have 2 issues:
For some reason I can't see my app in launcher app browser.
How can I define to open the app ...
1
vote
0answers
154 views
PN532 NFC unable to SELECT FILE from Android with HCE
Some background: I am using an Arduino Uno with a PN532 shield to send commands to an Android phone running an HCE app.
I have tried two ways to send an APDU to do a SELECT FILE operation with the ...
0
votes
0answers
431 views
Data sent from iOS to NFC tags
Hi does anyone know how I can get a sample of all raw data sent from iOS to a Mifare tag? At low level (ISO/CEI 14443 part 3 or 4, including REQA/REQB). Even if Apple forbids writing to the tag it ...
0
votes
1answer
84 views
How to partition memory of NFC tag(classic)?
I am looking for a way to partition memory(8Kb) of NFC tag. Because while writing a large amount of data to NFC tag from NFC device, there might be the chances of data loss of NFC tag while tapping ...
0
votes
1answer
461 views
NFC tag user memory binary [duplicate]
I'm trying to read NDEF records out of some NTAG213 & NTAG216 NFC tags, and I seem to be getting some extra bytes in the user memory i'm not expecting.
Based on the spec, the user memory should ...