如何在 Java 中使用 RFID 读写器

发布于 2024-11-30 14:58:22 字数 177 浏览 7 评论 0原文

我购买了 USB RFID 读写器来开发考勤应用程序。除了设备之外,他们还提供了读取/写入 RFID 标签的 VB 示例。但我想用 Java 来做这个。有什么方法可以开始读取/写入 RFID 标签的编程吗?

我还想知道一件事,当 RFID 标签进入阅读器范围时,RFID 阅读器是否会连续读取它们?如果是,如何获取标签数据?

I bought a USB RFID reader/writer to develop an attendance application. Along with the device they given VB example to read/write RFID tags. But I want to do this in Java. Is there any way to start programming which read/write the RFID tags.

And one more thing I want to know, does RFID reader continuously read the RFID tags when ever they come into reader range? If it is, how to get the tag data?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幽梦紫曦~ 2024-12-07 14:58:22

我购买了 USB RFID 读写器来开发考勤应用程序。除了设备之外,他们还提供了读取/写入 RFID 标签的 VB 示例。但我想用java来做这个。有什么方法可以开始编程来读取/写入 RFID 标签。

我建议从谷歌搜索 java USB API 开始。我偶然发现了这个: http://jusb.sourceforge.net/ 它看起来还不错。

如果阅读器实际上是通过串行转换器运行的(请在手册中查找),您可以使用 rxtx 库连接到该设备。

还有一件事我想知道,当 RFID 标签进入阅读器范围时,RFID 阅读器是否会连续读取它们?如果是,如何获取标签数据?

管理 USB 端口后,您可以读取其输入流并获取字节流。阅读器的制造商应该有关于如何将这些字节解析为实际标签代码的描述。或者只是重新设计 VB 代码。

I bought a USB RFID reader/writer to develop an attendance application. Along with the device they given VB example to read/write RFID tags. But i want to do this in java. Is there any way to start programing which read/write the RFID tags.

I would suggest getting started by googling for java USB APIs. I stumbled on this one: http://jusb.sourceforge.net/ and it doesn't look too bad.

If the reader is actually run through a serial converter (look it up in the manual) you could use rxtx library to connect to this device.

And one more thing i want to know, does RFID reader continuously read the RFID tags when ever they come into reader range? If it is, how to get the tag data?

Once you have the USB-Port managed, you read its input stream and get a stream of bytes. The manufacturer of the reader should have a description on how to parse these bytes into actual tagcodes. Or just re-engineer the VB code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文