在RP2上运行的零售HID感应卡读卡器和Windows 10 IoT [英] Retail HID Proximity Card Reader and Windows 10 IoT Running on RP2

查看:118
本文介绍了在RP2上运行的零售HID感应卡读卡器和Windows 10 IoT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一般不会在支持论坛上提出问题,我会冲上墙,头疼。在这种情况下,我找不到合适的墙。我想替换几年前编写的VB.Net应用程序在Windows CE / hp Ipaq上运行,并读取HID代理卡
用于工业设施的进入/退出。应用程序仍然可以工作,但它越来越难找到iPaq的。我已将HID阅读器连接到Arduino UNO并可获取卡信息。我正在考虑实现I2C以将设施代码/卡号传递给PI,然后
将数据传递给SQL存储过程以验证卡并将数据放入数据库或从数据库中删除。

I don't generally ask questions in a support forum, I surf and beat my head against the wall. In this case I can't find the right wall. I want to replace a VB.Net app that was written several years ago to run on Windows CE/hp Ipaq and read HID prox cards for entry/exit of an industrial facility. App still works but its getting harder to find iPaq's. I have wired the HID reader to a Arduino UNO and can get the card info. I was thinking to implement I2C to pass the facility code/card number to a PI that in turn would pass the data to a SQL stored procedure to validate the card and put the data into or remove from the database.

我不会将自己归类为开发者,我只是一直在敲打它直到它起作用。 我正在尝试确定PI / IoT是否可用于直接从阅读器捕获Weigand数据,这样我就不必堆叠两个设备。 可以在中断模式下配置PI GPIO
引脚,这样当向读卡器提供卡时,PI可以捕获代表卡的26位二进制流(Weigand)吗?  PI可以连接到SQL服务器并调用存储过程吗?

I would not classify myself as a developer, I just keep banging till it works.  I am trying to determine if the PI/IoT can be used to capture the Weigand data directly from the reader so that I don't have to stack two devices.  Can the PI GPIO pins be configured in an interrupt mode such that when a card is presented to the reader the PI can capture a 26bit binary stream (Weigand) that represents the card?  Can the PI connect to a SQL server and call Stored Procedures?

我有一个配置了Windows 10 IoT的PI2,并使用Blinky示例应用程序测试了我的设置和Visual Studio安装。

I have a PI2 configured with Windows 10 IoT and have tested my setup and Visual Studio installation with the Blinky sample app.

我找到了几个网站,详细介绍了如何让读者使用Arduino但没有关于如何使用运行Windows 10 IoT核心的PI阅读。

I found several sites that detail how to get the reader working with an Arduino but none on how to get it reading with a PI running Windows 10 IoT Core.

谢谢。

推荐答案

你当然可以肯定应该能够做到。你真的需要确定中断的显示速度。

You most certainly should be able to do it. You really need to determine just how fast the interrupts will be presented.

在另一个平台上连接Weigand读卡器,如果我没记错,IO只有几kHz。

Having interfaced a Weigand reader on a different platform, and if I recall correctly, the IO was only a few kHz.

您可以先尝试编写一个简单的C#来轮询GPIO,这是最简单的启动方法。如果速度不够快,您可以尝试实施中断,收件箱提供商或使用闪电提供商。以下是一些有用的链接:

You can first try writing a simple C# to just poll the GPIO, this is the simplest approach to start. If this is not fast enough you can try implementing interrupts, the inbox provider or use the lightning provider. Here are some helpful links:

  http ://stackoverflow.com/questions/41465566/windows-10-iot-gpio-interrupt-frequency

https://developer.microsoft.com/en-us/windows/iot/docs/lightningproviders

http://embedded101.com/Blogs / David-Jones / entryid / 632 / windows-10-iot-gpio-sample-apps-now-complete

如果这还不够快你可能需要求助于写一个专用的驱动程序(更多涉及)。

If this is still not fast enough you may have to resort to writing a dedicated driver (a bit more involved).


这篇关于在RP2上运行的零售HID感应卡读卡器和Windows 10 IoT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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