开发者

How TO write RFID Tag for Nexus S NFC to read?

Do开发者_JAVA百科es anyone know if there are any specifics on writing info into a RFID tag and reading it from Android, Nexus S?

Is there special RFID tag just for Android, or a special RFID writer?


Android 2.3.3 now supports write capabilities, too. Details which tags are supported are here: http://developer.android.com/sdk/android-2.3.3.html.

I plan to work on several examples how to read and write tags and will publish links on my twitter account @hansamann


Based on what I came across, for now Nexus S provides only read functionality for NFC tags and support for other modes is planned.

I don't think there can be a OS or platform specific RFID tag, that would not be a good commercial decision :).


The Nexus S will read Mifare tags. I have replayed YouTube videos (http://www.youtube.com/watch?v=eu7fQsPjDls) from a smartcard using the Nexus S.


The URL was written with another device (Nokia 6212). I am waiting for the Nexus S update that will enable the phone to write onto the tags.


I found 2 tag-writer-apps in the android marketplace: One is from the company NXP, which is selling tags: https://market.android.com/details?id=com.nxp.nfc.tagwriter the other from Connectthings https://market.android.com/details?id=com.connecthings.tagwriter


I use the following to write (and reformat RFID cards to use NDEF messages)

NdefFormatable format = NdefFormatable.Get(tag);
if (format != null) {
    try {
        format.Connect();
        format.Format(message);
        return true;
    }
    catch (IOException e) {
        return false;
    }
}
else {
    return false;
}

This is in Monodroid but I think the concept is the same in Java.


You can create your own NFC tag reader:

Create the Payload and emulate an RFID tag using another android device. Make sure that you are giving NFC_READ ,NFC_WRITE permisions in the manifest files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜