在VB.NET中对表单上的多个RFID扫描仪进行扫描 [英] Multiple RFID scanner scanning on a form in VB.NET

查看:117
本文介绍了在VB.NET中对表单上的多个RFID扫描仪进行扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

计算机附带有多台RFID扫描仪。如果更多的那个rfid持卡人想要扫描他们的卡片,他们的标签会互相混合标签。



我希望如果X已经开始扫描并且在中间时间Y用户也开始扫描然后X用户的卡应首先扫描然后Y用户扫描。



目前X和Y用户的ID /标签混合在一个文本框中。 />


我尝试过:



表格上只有一个文本框。一个接一个的扫描工作得很好。

There are more than one RFID scanner attached with an computer. if more that one rfid card holder want to scan their card, their Tag mixed with each other tags.

I want that if X has started scanning and in the mid time Y user also started scanning then X user's card should be scanned first then Of Y user.

Currently X and Y User's Id/Tag mixed in one Text Box.

What I have tried:

There is only one textbox on a form. One by one scanning working well.

推荐答案

你有可能做不到,不是没有重大改变。

使用textBox意味着它直接从RFID阅读器输入作为键盘数据 - 而且存在问题:Windows根本不存储键盘输入的源,所以没有你的程序确定特定击键来自哪个RFID扫描仪的方式 - 并且由于键盘是自主设备,如果两个扫描仪同时开始输入键盘缓冲区,数据将无法挽回地混合在一起,没有办法 - 没办法根本 - 确定哪个键键入来自哪个实际设备。



解决这个问题的唯一方法是与扫描仪制造商交谈,看看是否有他们可以将数据作为数据包而不是键盘输入进行传输。联系他们的技术支持,并解释您的完整问题 - 他们可能能够帮助您,但肯定,我们不能!
Chances are you can't, not without significant changes.
The use of a textBox implies it's being entered direct from the RFID reader as keyboard data - and there is your problem: Windows does not store the "source" of keyboard input at all, so there is no way for your program to determine which RFID scanner a particular keystroke came from - and because keyboards are autonomous devices, if two scanners start feeding the keyboard buffer at the same time, the data will be irretrievably mixed together and there is no way - no way at all - to determine which key "typed" came from which actual device.

The only way you will solve this is to talk to the scanner manufacturers and see if there is a way they can transfer the data as a packet instead of as keyboard input. Contact their tech support, and explain your full problem - they may be able to help you, but for certain, we can't!


这篇关于在VB.NET中对表单上的多个RFID扫描仪进行扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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