本文介绍了PnP设备的xml配置文件存在问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 亲爱的,我有一个PnP设备名称霍尼韦尔1250g(条形码扫描仪),基于设备ID并跟进书籍".net专业指南" ;我创建xml文件并放入注册表项中指定的文件夹HKLM \ SOFTWARE \ POSfor .NET \ControlConfigsI 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推荐答案据我所知,您只需要上面的代码中的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.xmlThen 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配置文件存在问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-19 02:54