如何从基于 PHP 的 Web 应用程序访问自助服务终端 ID 读取器数据
有人做过这样的事吗? 如何?
我刚刚开始一个项目,该项目将有一个基于浏览器的 Web 应用程序(使用 PHP 和可能的 Ajax 框架,如 Dojo 或 JQuery),该应用程序从信息亭单元内呈现给用户。 这基本上是在浏览器中进行的一项调查,但需要通过设备上的身份证刷卡器来识别用户。
我什至不知道这到底是什么单位(抱歉缺乏硬件信息!),因为我昨天才了解该项目。 我正在等待该设备是否附带某种软件来帮助我,但我的感觉并不是来自我最初的会议。 他们最初将运行某种版本的 Windows,但稍后可能会决定切换到 Linux。 我没有使用信息亭的经验,所以我只是想了解这类事情通常涉及什么。
主要问题是如何将数据从自助服务终端硬件输入到基于 Web 的 PHP 应用程序中?
在与项目负责人交谈时,他对如何解决这个问题的第一个猜测是:
- 有某种驱动程序来获取 ID 读取器的数据输入。
- 写入文件。
- 使用 Dojo Offline 定期或在需要时读取文件并比较时间戳等。
尚不关心解决安全问题。 首先,我只想弄清楚如何实现这一点的基础知识。 我可以看到如何使用 Flex/Air、Silverlight 等来完成同样的事情,但我们是一家 PHP 商店,坦率地说,我的老板不会考虑这些。 另外,使用数据库、套接字等,似乎可能有点矫枉过正(但也许不是???)
有什么建议、警告等吗? 谢谢。
Has anyone done something like this? How?
I'm just starting a project that will have a browser based web application (using PHP and possibly an Ajax framework like Dojo or JQuery) that is presented to the user from within a kiosk unit. It's basically a survey in a browser but will need to id the user via the id card swipe reader on the unit.
I don't even know what exact unit this is (sorry for lack of h/w information!) as I have just learned about the project yesterday. I'm waiting to see if the unit came with some sort of software to help me out, but my sense is not from the initial meeting I had. They will be initially running some flavor of Windows though they may decide to switch to Linux later. I have no experience with kiosks so I'm just trying to get a sense of what is usually involved for this sort of thing.
The main question is how to get the data input from the kiosk hardware into the web based PHP application?
When speaking with the project lead, his first guess on how to tackle this was:
- Have some sort of driver that picks up the data input to the id reader.
- Write to file.
- Use Dojo Offline to read file periodically or when needed and compare a timestamp, etc.
Not yet concerned with tackling security implications. First I just want to figure out the basics of how to get this going. I can see how the same could possibly be done with Flex/Air, Silverlight, etc., but we are a PHP shop and frankly, my boss would not consider those. Also, using a database, sockets, etc., seems like it may be overkill (but maybe not???)
Any suggestions, warnings, etc.? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您正在使用的硬件应该附带您能够从中检索数据所需的信息。
The hardware you are working with should come with the information you need to be able to retrieve data from it.
如果没有该装置的软件或文档,您将很难从它发送的数据中获得任何有用的信息。
如果您没有,那么您应该确定制造商(在网络上搜索序列号、ID 号或硬件上的其他任何信息)并向他们询问这些信息。
Without either software or documentation for the unit you are going to be hard pressed to get anything useful from the data it sends.
If you don't have either then you should identify the manufacturer (web search for serial numbers, id numbers or anything else on the hardware) and ask them for these.
我最近一直在研究一些扫描技术和 OCR,并使用 CSSN 公司的一些产品进行一些研发。 他们还为其产品提供了完整的 SDK,这将使集成变得更加容易。
看一下: IdScan Kiosk
还有一个名为 Scan2Web 的产品,我认为它可能会有所帮助。
希望这可以帮助。
大卫
I have recently been working on some scanning technologies and OCR and been doing some R&D with some products from a company called CSSN. They also have a full SDK for their products which should make the integration a whole lot easier.
Have a look at: IdScan Kiosk
There is also product called Scan2Web which I think might assist.
Hope this helps.
David