【发布时间】:2015-10-28 23:21:25
【问题描述】:
我在读取 NFC-V 标签时遇到问题。标签类型是 Tag-it HF-I Plus (TMS37112)。这是我用来读取数据的代码:
private void GetTagInfo(Tag tag){
String[] techList = tag.GetTechList();
for (int i = 0; i < techList.Length; i++) {
if(techList[i].Contains("NfcV")){
NfcV nfcv = NfcV.Get (tag);
nfcv.Connect ();
var response = nfcv.Transceive(new byte[] {
(byte)0x00,
(byte)0x23,
(byte)0x00,
(byte)0x01 });
}
}
}
用 c# 编写,但不是这里的目的(在 Xamarin 上工作)。
无论我使用什么作为第一个块号,我的数据前都有一个 0x00。这正常吗?
【问题讨论】:
-
经过一番搜索,我在这里看到nfcapp 在 readSingleBlock 的第 370 行和 readMultipleBlocks 的第 395 行,他避免读取第一个字节。正常吗?
标签: c# android xamarin nfc iso-15693