相关疑难解决方法(0)

使用Android读取恩智浦ICODE SLI-L标签

我正在尝试在我的Android应用程序中阅读恩智浦开发的NFC标签.可以使用Android读取标签:NXP应用程序另一个正确读取它.

确切的标签类型是"ICODE SLI-L(SL2ICS50)",RF技术是"Type V/ISO 15693"(从这些工作应用中获取的数据).存储器由2个页面组成,每个页面有4个块,每个块有4个字节 - 我只想将整个数据存储在存储器中.

标签必须使用Android的NfcV类处理,标签的数据表在这里可用,但很难找到使用的任何工作代码示例NfcV.我尝试了几个由数据表自己总结的东西,并尝试了我在谷歌找到的PDF中的通信样本,但没有任何效果.

我的活动中的相应方法(我使用NFC Foreground Dispatch)如下所示:

public void onNewIntent(Intent intent) {
    android.nfc.Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
    NfcV tech = NfcV.get(tag);
    try {
        tech.connect();
        byte[] arrByt = new byte[9];
        arrByt[0] = 0x02;
        arrByt[1] = (byte) 0xB0;
        arrByt[2] = 0x08;
        arrByt[3] = 0x00;
        arrByt[4] = 0x01;
        arrByt[5] = 0x04;
        arrByt[6] = 0x00;
        arrByt[7] = 0x02;
        arrByt[8] = 0x00;
        byte[] data = tech.transceive(arrByt);
        // Print …
Run Code Online (Sandbox Code Playgroud)

android nfc iso-15693

1
推荐指数
1
解决办法
3148
查看次数

标签 统计

android ×1

iso-15693 ×1

nfc ×1