USB RFID读写器串口 [英] USB RFID reader to serial

查看:143
本文介绍了USB RFID读写器串口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧



我们有一个廉价而讨厌的RFID阅读器来扫描一些老式的密钥卡(125KHz),它可以正常工作但是...它的问题是它是一个HID设备,只是将它读取的任何数据都溅到任何屏幕上的任何可写字段中,因此如果用户打开并激活Word文档,它可以随意涂鸦。



我们只想让一个应用程序使用输入。

我不认为拦截USB设备并将其引导到特定程序是不可能的,尽管这将是理想的解决方案。 ..?

我可以使用USB转串口适配器并通过COMM端口获取数据吗?

我似乎找不到任何地方串行的125KHz RFID好像都是USB。

如果USB转串口适配器工作在哪里,设备可以从哪里获得电源?目前它从USB连接中获取它,但我不认为串口提供电源;或者是吗?



非常感谢



我尝试了什么:



搜索台式机串口RFID阅读器的高低值;它们只是1.3GHz或USB ......

Hi all

We have a cheap and nasty RFID reader to scan some old key fobs (125KHz) which works OK but... the problem with it is that it is a HID device which just splatters any data it reads into any writable field on any screen so if the user has a Word document open and active it can scribble all over it.

We only want one application to use the input.
I don't think it is possible to intercept the USB device and channel it to a specific program although that would be the ideal solution...?
Can I use a USB to serial adaptor and get the data via the COMM port instead?
I cant seem to find a 125KHz RFID that is serial anywhere they all seem to be USB.
If the USB to serial adapters work where would the device get its power from? Currently it draws it from the USB connection but I don't think Serial ports provide power; or do they?

Many thanks

What I have tried:

Searched high and low for a desktop serial RFID reader; they are either 1.3GHz or USB only...

推荐答案

USB转串口转换器(至少我所知道的)工作方向相反(它们是USB设备,您的RFID设备需要USB主机)。





The USB to serial converters (at least the one I know of) work in the opposite direction (they are USB devices, you need a USB host for your RFID device).


引用:

搜索高低用于桌面串行RFID阅读器;它们要么是1.3GHz,要么只是USB

Searched high and low for a desktop serial RFID reader; they are either 1.3GHz or USB only

然而它们可能比你拥有的更好(例如它们可能有专用的驱动程序和库)。

However they could possibly behave better than the one you have (for instance they could have dedicated drivers and libraries).


你不是去这样的适配器。你的适配器必须足够智能,知道它连接到键盘HID设备以及如何将击键转换为串行数据。



你的问题是您正在使用键盘楔形扫描仪。扫描仪将自身暴露为总线的键盘。如果它便宜,很有可能你唯一的选择是接受它作为键盘并相应地计划你的代码。



唯一合理的选择,如果键盘楔子不是'开始工作,就是获得一个不同的扫描仪和与之配合使用的相关标签。新的扫描仪必须将其接口暴露为串行端口(串口通过USB真的是一件事!)或通过以太网,您可以通过TCP / IP获取数据。
You're not going to such an adapter. Your "adapter" would have to be smart enough to know that it's connected to a keyboard HID device and how to translate "keystrokes" to serial data.

Your problem is that you're using a "keyboard wedge" scanner. The scanner exposes itself as a keyboard to the bus. If it's that cheap, chances are good your only option is to accept it as keyboard and plan your code accordingly.

Your only reasonable option, if a keyboard wedge isn't going to work, is to get a different scanner and associated tags that work with it. The new scanner would have to expose its interface as either a serial port (serial over USB really is a thing!) or over Ethernet where you can get the data over TCP/IP.


这篇关于USB RFID读写器串口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆