本文介绍了通过HID POS与条形码阅读器进行双向通讯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望开发一个与条形码阅读器实现双向通信的应用程序,其中该应用程序将接受/拒绝信号发送回条形码阅读器以指示成功或失败,并且条形码阅读器使用不同的蜂鸣声,红色灯泡进行解释或其他(取决于品牌).因此,使用键盘楔或单向通信不适合这种情况(此用例将使人们远离使用无线手持式条形码扫描仪的计算机,因此他们在屏幕上看不到任何东西).

I wish to develop an application which implements two-way communication with a barcode reader where the application sends back an accept/reject signal to the barcode reader to indicate success or failure and the barcode reader interprets with a different beep, red bulb or whatever (depending on the brand). For this reason using the Keyboard Wedge or one-way communication does not suit this scenario (this use case will have people away from the computer with wireless handheld barcode scanners, so they won't be seeing anything on screen).

我认为在这种情况下,我必须使用HID POS,但是我从应该从哪里开始就卡住了(即应该发送什么API调用或信号?).

I think that for this scenario I have to use HID POS, but I am bit stuck from where I should start, (i.e. what API calls or signals should I send?).

我还需要在条形码扫描仪中寻找对此的一些特定支持吗,还是所有USB设备都支持带有2路接受/拒绝模型的HID POS?

Also do I have to look for some specific support for this in the barcode scanners or is HID POS with 2-way accept/reject model supported by all USB devices?

推荐答案

我们的扫描仪使用USB HID,如果您选择USB HID键盘,它将安装为双接口单元,而HID POS作为辅助接口.这意味着扫描仪将(条形码)数据发送到键盘缓冲区,并且您可以通过USB HID POS接口将命令发送到扫描仪.也可以将同一台扫描仪连接为USB串行设备,然后通过虚拟" com端口接收数据并发送命令,为此您需要CDC/ACM设备驱动程序. (有关驱动程序和扫描仪,请访问www.honeywellaidc.com)

Our scanners use USB HID, if you select USB HID keyboard it installs as dual-interface unit where you have the HID POS as secondary interface. That means the scanner sends (bar code) data to the keyboard buffer, and you can send commands via the USB HID POS interface to the scanners. The same scanner can alternatively be connected as USB serial device, then your receive both data and send commands via a 'virtual' com port, for which you need a CDC/ACM device driver. (www.honeywellaidc.com for driver and scanners)

这篇关于通过HID POS与条形码阅读器进行双向通讯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 19:00