如何从索尼Felica NFC卡读取多块数据?
要从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论