如何从索尼Felica NFC卡读取多块数据?

发布于 2025-01-12 21:23:32 字数 758 浏览 5 评论 0原文

要从 Sony Felica NFC 卡读取数据,我从 android 发送如下所示的命令:

 byte[] command = new byte[]{
                    (byte)0x10, //Length
                    (byte)0x06, //Command Code
                    (byte)0x01, (byte)0x2e, (byte)0x41, (byte)0x39, (byte)0x9c, (byte)0xc9, (byte)0x3a, (byte)0x51, // IDm
                    (byte)0x01,//Number of service
                    (byte)0x09, (byte)0x00,//Service code
                    (byte)0x01,//Number of block
                    (byte)0x80,  (byte)0x03 // Block Data
            };

通过 transceive() 函数,

byte[] responsePacket = nfc.transceive(command);

我得到块 3 的数据作为响应。

但我想用一个命令从卡中读取多个块数据。就像我想一次读取块3和块4的块数据。无法实现这一目标。 任何参考也应该有帮助。

To read data from Sony Felica NFC card I am sending below shown command from android:

 byte[] command = new byte[]{
                    (byte)0x10, //Length
                    (byte)0x06, //Command Code
                    (byte)0x01, (byte)0x2e, (byte)0x41, (byte)0x39, (byte)0x9c, (byte)0xc9, (byte)0x3a, (byte)0x51, // IDm
                    (byte)0x01,//Number of service
                    (byte)0x09, (byte)0x00,//Service code
                    (byte)0x01,//Number of block
                    (byte)0x80,  (byte)0x03 // Block Data
            };

Through transceive() function

byte[] responsePacket = nfc.transceive(command);

I am getting data of block 3 in response.

But I want to read multiple block data from the card with one command. Like I want to read block data of block 3 and 4 at a time. Couldn't achieve this.
Any reference should be helpful too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文