如何在 Java 中使用 RFID 读写器
我购买了 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议从谷歌搜索 java USB API 开始。我偶然发现了这个: http://jusb.sourceforge.net/ 它看起来还不错。
如果阅读器实际上是通过串行转换器运行的(请在手册中查找),您可以使用 rxtx 库连接到该设备。
管理 USB 端口后,您可以读取其输入流并获取字节流。阅读器的制造商应该有关于如何将这些字节解析为实际标签代码的描述。或者只是重新设计 VB 代码。
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.
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.