【发布时间】:2021-08-11 18:04:07
【问题描述】:
我正在使用 NTAG I2C 加上 2k 内存标签,并且能够成功地对特定页面地址范围执行 FAST_READ,但在超出该范围时出现错误。
iOS
起始地址0x04和结束地址0x46读取成功
await cmd([0x3a, 0x04, 0x46]);
同时,起始地址 0x04 和结束地址 0x47 失败
await cmd([0x3a, 0x04, 0x47]);
错误
input bytes: 3A0C0C
input bytes: 3A0447
[CoreNFC] 00000002 816c6760 -[NFCTagReaderSession transceive:tagUpdate:error:]:771 Error Domain=NFCError Code=100 "Tag connection lost" UserInfo={NSLocalizedDescription=Tag connection lost}
安卓
起始地址0x04和结束地址0x49读取成功
await cmd([0x3a, 0x04, 0x49]);
同时,起始地址 0x04 和结束地址 0x4b 失败
await cmd([0x3a, 0x04, 0x4b]);
错误
D/NfcService: Transceive start
D/NfcService: Transceive End, Result: 0 mTransceiveSuccess: 1 mTransceiveFail: 0
D/NfcService: Transceive start
D/NfcService: Transceive End, Result: 2 mTransceiveSuccess: 1 mTransceiveFail: 1
D/ReactNativeNfcManager: transceive fail: android.nfc.TagLostException: Tag was lost.
I/ReactNativeJS: Error: transceive fail
提前致谢。
【问题讨论】:
标签: nfc react-native-nfc-manager