如何使用NFC编写器动态地将数据写入NFC卡/标签?(how do I write the data to NFC Card/Tag dynamically using NFC writer?)

编程入门 行业动态 更新时间:2024-10-28 13:14:02
如何使用NFC编写器动态地将数据写入NFC卡/标签?(how do I write the data to NFC Card/Tag dynamically using NFC writer?)

我需要实现像NFC虚拟购物商店这样的东西。

但问题是我不想用手机作为NFC阅读器。

我学习的第一件事:)

情景是我有五个艺术作品和50个访客

所以我想我会实现5个NFC读卡器和写卡器以及50个NFC标签

所有NFC TAGS都已经填满了电子邮件,电子邮件,电话等用户数据

所有NFC读写器都设有艺术品。

用户将来到画廊并在所需的艺术作品或某些东西上点击NFC TAG

问题就在这里

“我可以在点击时动态更新NFC标签数据吗?”

就像将产品ID添加到NFC标签中一样......并且该读取器或写入器的产品ID是固定的

因此,在敲击时,NFC编写器会将产品ID(为每个作者固定)写入NFC标签

那可能吗?

对不起,我不善于解释问题... :)

请让我知道,这是否可能......我是否正确

提前致谢

I need to implement something like NFC virtual shopping store.

But problem is I don't want to use mobile phone as NFC reader.

First thing I am learner :)

Scenario is I have five art pieces and 50 visitors

So I am thinking I will implement 5 NFC card reader and writer and 50 NFC tags

All NFC TAGS are already filled up with user data like email, email, phone

And all NFC reader and writer are setup with art pieces.

User will come to gallery and tap NFC TAG on the required art piece or somethings

PROBLEM IS HERE

"can I update NFC tag data dynamically when he tapping?"

Like adding product id into the NFC tag... and product id is fixed for that reader or writer

So at time of tapping NFC writer will write the product id (which fixed for each writer) into the NFC tag

Is that possible?

Sorry I am not good in explaining problem in short ... :)

Please let me know, it is possible or not .. and I am on right track or not

thanks in advanced

最满意答案

答案是:是的,你可以,但它不是很实用。 您必须将所有五个读卡器/写卡器连接到控制器(如PC)并在那里实现写入逻辑。 五个NFC读卡器/写卡器也非常昂贵,一次性最低50欧元。

更常见的情况是: 每件艺术品都有自己的NFC标签。 此标记是只读的(因此没有人可以更改数据)并包含有关艺术作品(id,price,...)的信息。 每位访客都有自己的NFC手机(Android,Windows Phone)和您提供的NFC应用程序。 当用户扫描NFC标签时,艺术品信息存储在应用程序中。

万一你不能使用NFC手机: 仅在访客NFC标签上存储唯一ID,并将用户数据存储在中央数据库服务器中。 当用户点击NFC标签时,控制器将记录添加到具有用户ID的数据库。 这样,您将所有数据绑定到存储在一个位置的用户,并且您不必回写到用户标记。

The answer is: yes you can, but it is not very practical. You would have to connect all five card readers/writers to a controller (like PC) and implement writing logic there. Five NFC readers/writers are also very expensive, minimum 50€ for once piece.

More common scenario would be: Each art piece has its own NFC tag. This tag is read-only (so no one can change data) and contains information about art piece (id, price, ...). Each visitor has his own NFC enabled phone (Android, Windows Phone) with NFC application you provided. When user scans NFC tag, art piece information is stored in application.

In case you cannot use NFC enabled phone: Store only unique ID on visitor NFC tag and have user data stored in central database server. When user taps NFC tag, controller adds record to database with user ID. This way you have all the data tied to the user stored in one location and you do not have to write back to user tag.

更多推荐

本文发布于:2023-08-05 22:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1440212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   标签   动态   数据   NFC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!