如何列出OPOS生物识别设备? [英] How to list OPOS Biometric devices installed?

查看:74
本文介绍了如何列出OPOS生物识别设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我安装了U.are.U 4500  fingerprint   sensor
来自  here

I installed U.are.U 4500 fingerprint sensor drivers from here


在它安装的文件夹中,它附带了一个OPOS项目示例(在visual basic中创建),我已经测试过,它工作正常,所以我测试了我的下一个代码来开始工作OPOS设备:

Inside the folder it was installed it came with an OPOS project sample (created in visual basic) wich I already tested and it is working fine, so I tested my next code to get to work with the OPOS device:

List<string> retorno = new List<string>();
PosExplorer myPosExplorer = new PosExplorer();
DeviceCollection myDevices = myPosExplorer.GetDevices();
foreach (DeviceInfo dev in myDevices)
{
    if (dev.Type == DeviceType.Biometrics)
    {
        retorno.Add(dev.ServiceObjectName);
    }
}



由于某种原因,这段代码找不到任何生物识别设备。我知道这种方法适用于其他OPOS设备(如Msr,Scale,LineDisplay)。但为什么它找不到生物识别技术和它能够做到的示例代码吗?我错过了什么吗?

For some reason this code does not find any biometric device. I know that this method work for other OPOS devices (like Msr, Scale, LineDisplay). But why it can not find the biometrics and the sample code it is able to do it? Am I missing something?


PS:我正在使用c#,WPF和OPOS框架1.14。

PS: I am working with c#, WPF and OPOS framework 1.14.

推荐答案

嗨  Carlosfer02,

Hi Carlosfer02,

感谢您发布此处。

对于您的问题,您的设备类型是什么?如果您想获得OPOS设备,则类型必须是"POSPrinter"。

For your question, what is the type of your device? If you want to get the OPOS device, the type must be "POSPrinter".

有关详细信息,请参阅以下链接。

For more details, you could refer to the following links.

https://social.msdn.microsoft.com/Forums/en-US/e691ac68-39b7-4407-9e06-94f13b833c88 / posexplorer-getdevice-returns-null

https://stackoverflow.com/questions/28394253/posexplorer-getdevice-returns-always-null-in-c-net-windows-form-application

最诚挚的问候,

Wendy


这篇关于如何列出OPOS生物识别设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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