开发者

Android 2.3 and ISO 15693

开发者 https://www.devze.com 2023-02-06 17:23 出处:网络
I want to know if Android 2.3 Gingerbread and the Nexus S phone supports reading/writing I开发者_如何学运维SO 15693 RFID chips? As of now, I know it can READ ISO 14443...

I want to know if Android 2.3 Gingerbread and the Nexus S phone supports reading/writing I开发者_如何学运维SO 15693 RFID chips? As of now, I know it can READ ISO 14443...

Does anyone know?


I'm maybe too late, but I could read some RFID 15693 with my Nexus S at work. I don't try to read data in it, I only need to read the unique identifier for my project.

Best regards


Mifare is based on ISO/IEC 14443, not on ISO/IEC 15693
see http://en.wikipedia.org/wiki/MIFARE


To communicate with this kind of chip, you have to use the following API from android : http://developer.android.com/reference/android/nfc/tech/NfcV.html

The NfcV API was added in API level 10, corresponding as this page says to Android 2.3.3. http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels

If you are using Android 2.3 GINGERBREAD, you have to upgrade your phone to at least Android 2.3.3 GINGERBREAD_MR1. Once you have done so, you'll be able to use the following methods from the api :

Tag tag = ...;
nfc = NfcV.get(tag);
nfc.connect();
byte[] read = nfc.transceive(new byte[]{0x00, 0x20, 0x05});
nfc.close();

In this example, the phone will send 0x00, 0x20, 0x005 corresponding to the command to read block 5 from the card.

You can find the different avaliable commands and the answer the card will give in each case by googling "ISO/IEC FCD 15693 3" and taking the first link (yeah "You need at least 10 reputation to post more than 2 links." --')

0

精彩评论

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

关注公众号