java NFC标签可以被RFID阅读器读取吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7954154/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 22:10:10  来源:igfitidea点击:

NFC tags can be read by RFID reader?

javaandroidnfcrfid

提问by Balaji

I bought NFC tags (stickers) last week with NFR reader/writer kits, could able to write and read data using gototags software (yet to buy a phone with NFC). My question here is, these NFC tags can be readable by RFID reader? did some research that both NFC and RFID uses similar frequency range (13.5 MHz). We have office access system through RFID presenly can these NFC tags replaced by RFID tags. Please advise.

我上周用 NFR 读写器套件购买了 NFC 标签(贴纸),能够使用 gototags 软件写入和读取数据(尚未购买带 NFC 的手机)。我的问题是,这些 NFC 标签可以被 RFID 阅读器读取吗?做了一些研究,NFC 和 RFID 使用相似的频率范围(13.5 MHz)。我们有通过 RFID 的办公室门禁系统,可以将这些 NFC 标签替换为 RFID 标签。请指教。

回答by Max

We just did some dirty experiment, and it seem it can be done.
We have been able to use a RFID reader to read an NFC tag.

我们只是做了一些肮脏的实验,似乎可以做到。
我们已经能够使用 RFID 阅读器来读取 NFC 标签。

Keep in mind that this is some 'dirty' experiment done 'as is' in a few minutes just to see if it's possible.

请记住,这是几分钟内“按原样”完成的一些“肮脏”实验,只是为了看看它是否可能。

We used a RFID readerable to read the ISO 14443-Astandard, the reader has been configured to read Mifare Ultralight.

我们使用了能够读取ISO 14443-A标准的RFID 阅读器,该阅读器已配置为读取Mifare Ultralight。

The NFC Tag used are NFC NTAG203 Type 2, with 137 bytes of usable memory.

使用的 NFC 标签是NFC NTAG203 Type 2,具有 137 字节的可用内存。

With this setup we seem to be able to read (and write) only the first 16 pages of the NFC tag, the first 4 pages seem to be reserved, so it seem that the usable pages range from 4 to 15 (zero-based page number).

通过这种设置,我们似乎只能读取(和写入)NFC 标签的前 16 页,前 4 页似乎是保留的,因此似乎可用页范围从 4 到 15(从零开始的页)数字)。

So it seem that the memory effectively accessiblewith a RFID ISO 14443-A Mifare Ultralightreader amount to 4*12 bytes = 48 Bytes.

因此,使用RFID ISO 14443-A Mifare Ultralight阅读器可有效访问内存似乎为 4*12 bytes = 48 Bytes

We programmed the NFC tag with a Samsung Galaxy S4, then we read it with a PC+RFID reader, then we wrote some data on one page of the nfc tag with the RFID reader, then we re-read the NFC tag with the Galaxy S4. Everything worked without issue.

我们用三星 Galaxy S4 对 NFC 标签进行编程,然后用 PC+RFID 阅读器读取它,然后用 RFID 阅读器在 nfc 标签的一页上写一些数据,然后我们用 Galaxy 重新读取 NFC 标签S4. 一切正常。

I don't know how NFC Tag delimit the string/data, but the Galaxy S4 knew that there were just X bytes of data on the NFC tag. So, if you plan to write the NFC tag with a RFID reader/writer, and the read it back with a smartphone, then you need to work out the data format standard used to define the kind of data, the string termination/size, and this kind of things.

我不知道 NFC 标签如何分隔字符串/数据,但 Galaxy S4 知道 NFC 标签上只有 X 字节的数据。因此,如果您打算用 RFID 读写器写入 NFC 标签,然后用智能手机读取它,那么您需要制定用于定义数据类型的数据格式标准,字符串终止/大小,还有这种事情。

I would like to keep clear that I don't know if reading an NFC Tag with a Mifare Ultralight RFID reader is a supported feature/standard: I just tried, and it worked.

我想明确一点,我不知道使用 Mifare Ultralight RFID 阅读器读取 NFC 标签是否是受支持的功能/标准:我刚刚尝试过,并且有效。

Update

更新

About the RFID Reader

关于 RFID 阅读器

I've been asked to add more details about the dirty experiment we did:
The RFID Reader we use is a RFID Reader/Writer BMU-01built by Nexus Technologies

我被要求添加有关我们所做的脏实验的更多细节:
我们使用的RFID 阅读器Nexus Technologies制造的RFID 阅读器/写入器 BMU-01

From the Italian version of the product page, you can download the driverand the SDK.

产品页面意大利语版本,您可以下载驱动程序SDK

To do our dirty experiment, we used the ICTransfer.exe utility from the SDK: its a tiny software that you can use to test reading/writing from all the standard supported by the RFID Reader/Writer.

为了进行我们的肮脏实验,我们使用了 SDK 中的 ICTransfer.exe 实用程序:它是一个微型软件,您可以使用它来测试 RFID 读写器支持的所有标准的读/写。

We configured the ICTransfer.exe to use the card type ISO 14443-A\ Mifare-Ultralight.

我们将 ICTransfer.exe 配置为使用卡类型ISO 14443-A\ Mifare-Ultralight

enter image description here

在此处输入图片说明

Once you have the RFID reader hooked up to the PC, and the driver installed, you should be able to start the ICTransfer.exe utility, then connect it to the RFID reader (Menu\Set(P)\PortSetthen Menu\Set(P)\Connect), then you can try to read/write / NFC tag

将 RFID 阅读器连接到 PC 并安装驱动程序后,您应该能够启动 ICTransfer.exe 实用程序,然后将其连接到 RFID 阅读器(Menu\Set(P)\PortSet然后Menu\Set( P)\Connect),然后你可以尝试读/写/NFC标签

The BMU-01 is a short distance reader, so it will detect the NFC Tag to a maximum distance of some centimeters (3/4 cm).

BMU-01 是短距离阅读器,因此它可以检测到几厘米(3/4 厘米)的最大距离的 NFC 标签。

So we used the SDK utility to do our NFC read/write test. Clearly it's possible to use the sample and the documentation in the SDK to create a custom software to do the same.

因此,我们使用 SDK 实用程序来进行 NFC 读/写测试。显然,可以使用 SDK 中的示例和文档来创建自定义软件来执行相同的操作。

About the NFC Tag

关于 NFC 标签

To do our test, we used some NFC Tag NTAG203 Type 2, I bought them here on Ebay. But there are a lot of reseller...
I'm not very expert about NFC Tag, anyway, I can tell you that some NFC tag is compatible with all smartphone, and some is not(as reported in the specification, so pay attention to the specs when you buy NFC tag).

为了进行测试,我们使用了一些 NFC 标签 NTAG203 Type 2,我在 Ebay 上购买了它们。但是有很多经销商......
我对NFC Tag不是很专业,无论如何,我可以告诉你,一些NFC标签与所有智能手机兼容,有些则不兼容(如规范中所述,所以要注意购买 NFC 标签时的规格)。

Different type of NFC tag can hold different amount of information, the NFC Tag NTAG203 Type 2 we used have 137 bytes of usable memory when used with a proper NFC reader/writer (I used my Galaxy S4), but we have been able to access only 48 bytes of memory during our RFID Reader experiment.

不同类型的 NFC 标签可以保存不同数量的信息,我们使用的 NFC 标签 NTAG203 Type 2 在与合适的 NFC 读写器(我使用我的 Galaxy S4)一起使用时有 137 字节的可用内存,但我们已经能够访问在我们的 RFID 阅读器实验期间只有 48 字节的内存。

About some of the different type of NCF Tag, I can copy/paste some information from the NCF Forum

关于一些不同类型的 NCF Tag,我可以从NCF 论坛复制/粘贴一些信息

NFC Forum Type 1 Tag Operation SpecificationType 1 Tag is based on ISO/IEC 14443A. Tags are read and re-write capable; users can configure the tag to become read-only. Memory availability is 96 bytes and expandable to 2 kbyte.

NFC Forum Type 2 Tag Operation SpecificationType 2 Tag is based on ISO/IEC 14443A. Tags are read and re-write capable; users can configure the tag to become read-only. Memory availability is 48 bytes and expandable to 2 kbyte.

NFC Forum Type 3 Tag Operation SpecificationType 3 Tag is based on the Japanese Industrial Standard (JIS) X 6319-4, also known as FeliCa. Tags are pre-configured at manufacture to be either read and re-writable, or read-only. Memory availability is variable, theoretical memory limit is 1MByte per service.

NFC Forum Type 4 Tag Operation Specification 2.0 (November 2010)Type 4 Tag is fully compatible with the ISO/IEC 14443 standard series. Tags are pre-configured at manufacture to be either read and re-writable, or read-only. The memory availability is variable, up to 32 KBytes per service; the communication interface is either Type A or Type B compliant.

NFC 论坛 1 类标签操作规范1 类标签基于 ISO/IEC 14443A。标签具有读写能力;用户可以将标签配置为只读。内存可用性为 96 字节,可扩展至 2 KB。

NFC Forum Type 2 Tag Operation SpecificationType 2 Tag 基于 ISO/IEC 14443A。标签具有读写能力;用户可以将标签配置为只读。内存可用性为 48 字节,可扩展至 2 KB。

NFC 论坛 Type 3 标签操作规范Type 3 标签基于日本工业标准 (JIS) X 6319-4,也称为 FeliCa。标签在制造时预先配置为可读可重写或只读。内存可用性是可变的,理论内存限制为每个服务 1MByte。

NFC Forum Type 4 Tag Operation Specification 2.0(2010 年 11 月)Type 4 标签与 ISO/IEC 14443 标准系列完全兼容。标签在制造时预先配置为可读可重写或只读。内存可用性是可变的,每个服务最多 32 KB;通信接口符合 A 类或 B 类标准。

Another interesting website I've found with a lot of NFC information is here: http://rapidnfc.com/which_nfc_chip

我发现的另一个有趣的网站有很多 NFC 信息:http: //rapidnfc.com/which_nfc_chip

回答by user1029119

There are two RFID ranges - the one you mentioned, at 13.5MHz, readable by NFC devices - and the other is 13.4KHz, which NFC cannot communicate with.

有两个 RFID 范围——你提到的一个是 13.5MHz,NFC 设备可以读取——另一个是 13.4KHz,NFC 无法与之通信。

Two additional points to mention:

补充两点:

  • RFID access systems most probably se only cards UID, not some data on the card. cards, is in 13.5MHZ range, are most probably of type4.
  • Those stickers are most probably NFC tags type 2 I guess they have different uid length. most probably UID readers you have depend only on cards UIDs, and not some store content.
  • RFID 访问系统很可能只提供卡 UID,而不是卡上的某些数据。卡,在 13.5MHZ 范围内,很可能是 type4。
  • 这些贴纸很可能是 NFC 标签类型 2,我猜它们有不同的 uid 长度。您拥有的 UID 阅读器很可能仅依赖于卡片 UID,而不是某些商店内容。

If you really want to replace cards, consult your provider to determine if there is an ability to reprogram the readers, or implement a programmable NFC reader on your own. I'd recommend an Arduinowith NFC shield.

如果您真的想更换卡,请咨询您的供应商以确定是否有能力对读卡器重新编程,或自行实施可编程 NFC 读卡器。我推荐一个带有NFC shieldArduino