简体   繁体   English

如何在Java中使用RFID读写器

[英]How to work with RFID reader/writer in Java

I bought a USB RFID reader/writer to develop an attendance application. 我买了一台USB RFID读写器来开发考勤应用程序。 Along with the device they given VB example to read/write RFID tags. 与设备一起,他们给出了VB示例来读/写RFID标签。 But I want to do this in Java. 但我想用Java做到这一点。 Is there any way to start programming which read/write the RFID tags. 有没有办法开始编程读/写RFID标签。

And one more thing I want to know, does RFID reader continuously read the RFID tags when ever they come into reader range? 还有一件事我想知道,RFID阅读器何时进入读卡器系列时会不断读取RFID标签? If it is, how to get the tag data? 如果是,如何获取标签数据?

I bought a USB RFID reader/writer to develop an attendance application. 我买了一台USB RFID读写器来开发考勤应用程序。 Along with the device they given VB example to read/write RFID tags. 与设备一起,他们给出了VB示例来读/写RFID标签。 But i want to do this in java. 但我想在java中这样做。 Is there any way to start programing which read/write the RFID tags. 有没有办法开始编程读取/写入RFID标签。

I would suggest getting started by googling for java USB APIs. 我建议开始使用谷歌搜索java USB API。 I stumbled on this one: http://jusb.sourceforge.net/ and it doesn't look too bad. 我偶然发现了这个: http//jusb.sourceforge.net/它看起来并不太糟糕。

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. 如果读卡器实际上是通过串行转换器运行(在手册中查找),则可以使用rxtx库连接到此设备。

And one more thing i want to know, does RFID reader continuously read the RFID tags when ever they come into reader range? 还有一件事我想知道,RFID阅读器何时进入阅读器系列时会不断读取RFID标签? 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. 管理完USB端口后,您将读取其输入流并获取字节流。 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. 或者只是重新设计VB代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM