有来自浏览器的USB设备进行通信的方法吗? [英] Is there a way to communicate with USB devices from browser?

查看:420
本文介绍了有来自浏览器的USB设备进行通信的方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有定期的浏览器中的USB设备(FF,Safari浏览器,IE8等),以交流的方式?
我认为它可能是使用Javascript - > Java桥接或别的东西。

Is there a way to communicate with USB devices within regular browser (FF, Safari, IE8, etc)? I assume it could be Javascript -> Java bridge or something else.

请指教

P.S。是否有可能以最小的依赖呢?如果不是这样,基于浏览器的软件的整点是没有用的(在我的情况)

P.S. Does it possible with minimal dependencies? If not, the whole point of browser-based software is useless (in my case)

推荐答案

如果您的CC和酒吧code扫描仪,HID设备(基本上,键盘仿真)工作,是就可以了,我已经看到它完成。如果它们比这更复杂,这取决于,系统将需要对设备驱动程序,它是然后操作系统依赖性。但是,例如,有智能卡读卡器将钩卡插入认证系统的认证框架。

If your CC and barcode scanners work as HID devices (basically, keyboard emulation), yes you can, and I have seen it done. If they're more complicated than that, it depends, the system is going to require drivers for the device and it is then OS dependant. But, for example, there are smartcard readers that will hook the card into the system's certificate framework for authentication.

您不打算能够使用有缺口信用卡那样读者的,然而,由于对这些协议需要与卡双向通信。我的认为的有可能是去跟通过USB CC销售终端的合适时间点的一种方式,但最有可能需要的驱动程序。

You're not going to be able to use a chipped credit card with that sort of reader, however, since the protocol for those requires bidirectional communication with the card. I think there may be a way to talk to a proper point of sale CC terminal over USB, but that will most likely require drivers.

这篇关于有来自浏览器的USB设备进行通信的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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