Android的NfcV(ISO 15693)标签 [英] Android NfcV (ISO 15693) tag

查看:1743
本文介绍了Android的NfcV(ISO 15693)标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将数据写入到特定块在内存上的NfcV(ISO 15693)的标签?例如。数据写入到块#5或任何特定块#

Is it possible to write data to specific blocks in memory on the NfcV (ISO 15693) tag? E.g. write data to block# 5 or any specific block#.

我是新来的NFC技术。我创建一个应用程序来读/写NfcV(ISO 15693)的标签。我已经成功地创建了阅读部分,但问题是写作部分。当我想写一些文字数据到标记它开始从块#2到以后每次做同样的程序。我已经搜索很多,但我找不到任何解决方案将数据写入到特定块。

I am new to NFC technologies. I am creating an application to read/write NfcV (ISO 15693) tags. I have successfully create the reading portion but the problem is on writing portion. When I want to write some text data into the tag it start from block# 2 to onward and every time doing the same procedure. I have searched lot but I can't find any solution to write data to specific blocks.

推荐答案

的具体细节取决于其ISO 15693兼容的芯片就是标签内。在ISO 15693-3标准列出了不同的写命令。这些支持都是可选的,所以你的标签可以支持一个或多个这些,甚至使用专用的命令写入数据。我会推荐给查找芯片的数据表和/或获得的ISO标准,找出正确的命令是什么。

The exact details depend on which ISO 15693 compatible chip is inside the tag. The ISO 15693-3 standard lists different write commands. Support for these are all optional, so your tag may support one or more of these or even use a proprietary command for writing data. I would recommend to look up the datasheet of the chip and/or acquire the ISO standard to find out what the right command is.

一旦你知道正确的命令是什么,你可以简单地传递命令字节一个字节数组 NfcV.transceive()方法。 (一般的命令字节包括一个标志字节,接着写命令字节,一个或多个块中的字节和数据字节被写入。)

Once you know what the right command is, you can simply pass the bytes of the command in a byte array to the NfcV.transceive() method. (Usually the command bytes consist of a flag byte, followed by a write command byte, one or more block bytes and the data bytes to be written.)

这篇关于Android的NfcV(ISO 15693)标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆