javascript RFID 阅读器与网页的集成
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6408846/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
RFID reader integration with web page
提问by Hitesh
I have a problem regarding RFID card reader integration to a web page. I found out that the solution is to achieve this ActiveX component and java script.
我有关于将 RFID 读卡器集成到网页的问题。我发现解决方案是实现这个ActiveX组件和java脚本。
so, my question is that how can we build a ActiveX component for card reader and the java script Codeline to access this activex Component.
所以,我的问题是我们如何为读卡器构建一个 ActiveX 组件和访问这个 activex 组件的 java 脚本 Codeline。
Or if you can suggest an alternate way to integrate RFID reader to communicate directly with a web page, that would be great.
或者,如果您可以建议一种替代方法来集成 RFID 阅读器以直接与网页进行通信,那就太好了。
回答by GChabot
SpringCard provides a technical guide and a live demo for developing a web page communicating with a PC/SC reader using Java applet.
SpringCard 提供了技术指南和现场演示,用于使用 Java 小程序开发与 PC/SC 阅读器通信的网页。
You will find it at the page, under Other resources, Java.
您将在该页面的其他资源、Java 下找到它。
回答by fidothe
Many USB RFID readers can emulate keyboards, so they can be directly integrated with a web form without needing JS, Java, or ActiveX.
许多 USB RFID 阅读器可以模拟键盘,因此它们可以直接与 Web 表单集成,而无需 JS、Java 或 ActiveX。
回答by Grigory Ozhegov
For this task i wrote Windows Service on C#, that listens for web sockets on localhost and listen usb port. Browser connect by WS, and reader handle event on browser through Windows Service
对于这个任务,我在 C# 上编写了 Windows 服务,它侦听本地主机上的网络套接字并侦听 USB 端口。浏览器通过 WS 连接,阅读器通过 Windows 服务处理浏览器上的事件
回答by Cem Kalyoncu
Have you tried checking Java? It might be possible with it. If you sign you Java applets they will be allowed to access local computer resources.
ActiveX is platform and browser dependent and speaking for myself I will never allow any website to install ActiveX content to my computer.
你试过检查Java吗?它可能是可能的。如果您签署 Java 小程序,他们将被允许访问本地计算机资源。
ActiveX 依赖于平台和浏览器,就我自己而言,我永远不会允许任何网站将 ActiveX 内容安装到我的计算机上。