我如何读取 ISO15693 标签 UID
我尝试过使用标签方法
byte[] tagId = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID);
,但每次读取标签时值都会发生变化。
如何读取正确的 ISO15693 标签 ID?
I have tried to use the tag method
byte[] tagId = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID);
But the value changes every time when I read the tag.
How can I read the correct ISO15693 tags id?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
获得字节数组后,您需要将十六进制字节数组转换为字符串,
请尝试以下函数:
After you get the byte array you need to convert the hex byte array to a String
try this function:
尝试使用以下
获取标签标识符(如果有)。
标签标识符是低级序列号,用于防碰撞和识别。
大多数标签都有一个稳定的唯一标识符(UID),但有些标签会生成随机ID
每次它们被发现(RID)时,并且有一些标签根本没有ID(字节数组将为零大小)。
Try using the following
Get the Tag Identifier (if it has one).
The tag identifier is a low level serial number, used for anti-collision and identification.
Most tags have a stable unique identifier (UID), but some tags will generate a random ID
every time they are discovered (RID), and there are some tags with no ID at all (the byte array will be zero-sized).
我碰巧找到了同一问题的解决方案,幸运的是确实找到了我想要的,这是这个问题的解决方案。该解决方案来自此处的另一篇类似帖子。
I happened to find the solution for the same issue and luckily did find what I want, which is a solution to this question. The solution is from another similar post from here.