关于USB条码扫描仪的几个问题

发布于 2024-12-13 21:59:24 字数 379 浏览 0 评论 0原文

这可能是一个老问题,但我已经阅读了有关 USB 条码扫描仪的文章,但仍然不知道如何使用它。

我正在使用 USB 条形码扫描仪,据我了解,有两种使用它的方法 - 作为键盘楔和串行端口。

如果我错了,请纠正我,但是串行端口可能更容易使用(因为扫描仪的输入和键盘的输入之间存在区别),但是您必须保存有关端口的信息,这可能会出现问题,因为我无法分辨哪个端口扫描仪将在客户端计算机上获取的端口。这是正确的吗?

第二个问题 - 如果我选择键盘楔选项,我需要区分扫描仪的输入和键盘的输入。在这种情况下,我需要关注文本框,并知道扫描仪的输入何时开始和结束。有一个选项可将扫描仪配置为在流的开头/结尾处发送特殊字符。如果我无法控制客户端的扫描仪类型和配置,我如何判断特定输入是扫描仪的?

在此先感谢

this is probably an old question, but I've read through articles about usb barcode scanner and still can't make my mind about how to use it.

I'm using an USB barcode scanner, and to my understanding there are two methods to use it - as keyboard wedge and serial port.

correct me if i'm wrong, but serial port might be easier to use (because there is an distinction between the scanner's input and the keyboard's) but you must hold info about the port, which might be problematic since I can't tell which port the scanner will get on clients' computers. Is that correct?

Second question- if I will go with the keyboard wedge option, I need to tell the scanner's input from the keyboard's. In that case I need to focus on a textbox, and know when the scanner's input begins and ends. There is an option to configure the scanner to send special character at the start/end of the stream. If I don't have control over the client's scanner type and configuration, how can I tell that the specific input is the scanner's?

Thanks ahead

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

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

发布评论

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

评论(2

自此以后,行同陌路 2024-12-20 21:59:24

如果您有串行 (RS-232) 扫描仪,则必须配置程序侦听的端口号,通常通过串行端口,您可以发送一些高级命令到扫描仪以启用或禁用读取等。 ..

通过 USB 连接的扫描仪可以配置为楔形模式,并且您必须自动聚焦在要填充的文本框上,可选地,可以将某些型号的扫描仪配置为读取带有前缀或/和后缀字符的条形码。这取决于您的扫描仪型号。

If you have a serial (RS-232) scanner you have to configure in which port number your program listen , usually through the serial port you have some advanced command that you can send to the scanner for enable or disable reading, and so on ...

A Scanner connected through USB can be configured in wedge mode and you have to autofocus on the textBox that you want to fill, optionally some model of scanner can be configured for reading barcode with a prefix or/and a suffix char. It depends on your scanner model .

层林尽染 2024-12-20 21:59:24

您是否考虑过Microsoft POS for .Net?该框架允许您订阅 C# 中的事件,然后您不必担心将焦点设置在文本框上或用户在扫描时单击等。
扫描仪设置为 IBM-USB 并且(我认为)必须支持“控制对象”才能将其与 POS 一起使用以获取 .Net 内容。 Datalogic QuickScan 6500 就是一个运行良好的示例。

Have you considered Microsoft POS for .Net? The framework allows you to subscribe to events in C# and then you don't have to worry about setting focus on TextBoxes or the user clicking whilst scanning, etc.
The scanner to be set to IBM-USB and (I think) has to support "Control Objects" to use it with the POS for .Net stuff. An example of one that works well is a Datalogic QuickScan 6500.

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