PnP设备的xml配置文件存在问题 [英] problem with xml configuration file for PnP device

查看:168
本文介绍了PnP设备的xml配置文件存在问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我有一个PnP设备名称霍尼韦尔1250g(条形码扫描仪),基于设备ID并跟进书籍".net专业指南" ;我创建xml文件并放入注册表项中指定的文件夹HKLM \ SOFTWARE \ POSfor .NET \ControlConfigs

I have a PnP device name Honeywell 1250g (barcode scanner), base on device id and following up the book "professional guide to pos for .net" I create xml file and put in folder as specified in registry key HKLM\SOFTWARE\POSfor .NET\ControlConfigs

但是,我无法在设备列表中看到该设备"posdm listdevices" (和示例应用程序)

However, i can not see that device in the device list of command "posdm listdevices" (and sample application)

配置文件内容:

< PointOfServiceConfig Version =" 1.0">

< ServiceObject Type =" Scanner" Name =" Example Scanner"倍率="是">

<硬件ID从= QUOT; USB\VID_0C2E&放大器;放大器; PID_0B41&放大器;放大器; MI_00\6&放大器;放大器; 32267796&安培;安培; 0&放大器;放大器; 0000"为了= QUOT; USB\VID_0C2E&放大器;放大器; PID_0B41&放大器;放大器; MI_00\6&放大器;放大器; 32267796&放大器;放大器; 0&放大器;放大器; 0000" />

< HardwareId From =" USB \VID_0C2E& amp; PID_0B41& amp; MI_01 \6& amp; 32267796& amp; 0& amp; 0001"为了= QUOT; USB\VID_0C2E&放大器;放大器; PID_0B41&放大器;放大器; MI_01\6&放大器;放大器; 32267796&放大器;放大器; 0&放大器;放大器; 0001" />

< HardwareId From =" HID \VID_0C2E& amp; PID_0B41& amp; MI_01 \7& amp; 3718098B& amp; 0& amp; 0000"为了= QUOT; HID\VID_0C2E&放大器;放大器; PID_0B41&放大器;放大器; MI_01\7&放大器;放大器; 3718098B&放大器;放大器; 0&放大器;放大器; 0000" />

< / ServiceObject>

< / PointOfServiceConfig>

我签入日志文件(运行示例应用程序后)来自SDK):说:

i check in log file (after run sample application from SDK): says:

无法加载全局配置文件。  找不到文件'C:\Documents and Settings \ All Users \Application Data \ Microsoft \ Point of Service \Configuration\Configuration.xml'。

......

资源管理器] 未定义NonPnPAliasMapping别名。为服务对象添加一个设备。

似乎缺少configuration.xml是原因,但我不确定,也不知道如何拥有它

It seems missing the configuration.xml is the cause but i am not sure, also don't know how to have it

请帮助

谢谢

Bac

推荐答案

Hi Bac

 

这个特殊的扫描仪看起来有自己的服务对象由制造商提供。

 

如果你去< a href ="http://www.honeywellaidc.com"> http://www.honeywellaidc.com 并搜索您的产品,您将获得一个带有标签选项的页面。

 

选择软件选项,您将看到可以下载POS / OPOS套件。这应该具有使用POS.NET连接到扫描仪所需的OPOS软件/驱动程序。寻找:HSM POS4NET套件

Hi Bac
 
This particular scanner looks to have its own Service Objects supplied by the manufacture.
 
If you go to http://www.honeywellaidc.com and search for your product you will get a page with tabbed options.
 
Select the software option and you will see you can download a POS/OPOS suite. This should have the OPOS software/drivers you need to connect to the scanner using POS.NET. Look for : HSM POS4NET Suite

据我所知,您只需要上面的代码中的HardwareID等,如果您创建自定义服务对象..但是HoneyWell看起来有自己的OPOS for .NET然后没有必要..

 

如果你看看http://www.seanliming.com/POSforNET.html 他有一个工具来生成您需要与扫描仪的服务对象进行通信的XML,HSM POS4NET可能有一个类似的工具。

As far as Iknow you only need the HardwareID etc.. like in your code above, if your creating a custom service object.. but since HoneyWell look to have there own OPOS for .NET then theres no need to ..
 
If you look at http://www.seanliming.com/POSforNET.html he has a tool to generate the XML you need to communicate with the service object for the scanner, the HSM POS4NET might have a similar tool.

然后将生成的XML放入此文件夹:C:\ ProgramData \ Microoft \ Point of Service \Configuration\Configuration.xml

Then put the generated XML into this folder : C:\ProgramData\Microsoft\Point Of Service\Configuration\Configuration.xml

您的代码中的POS资源管理器对象应该拿起扫描仪

 

希望这有助于:)

Your POS Explorer object in your code should then pick up the scanner
 
Hope this helps :)


这篇关于PnP设备的xml配置文件存在问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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