Dav*_*upe 5 .net c# opos barcode-scanner pos-for-.net
我正在使用Motorola DS4208手持式条形码读取器。过去,我能够成功设置和使用此设备,但是最近它已停止工作。这可能是由于安装了其他设备也将OPOS和POS用于.Net接口的结果。
这是一个USB设备,因此我创建了一个名为* Moto_Scanner.xml *的控制配置文件,并将其放置在正确的位置。
<PointOfServiceConfig Version="1.0">
<ServiceObject Type="Scanner" Name="Example Scanner">
<HardwareId
From="HID\VID_05E0&PID_1300&REV_0100"
To="HID\VID_05E0&PID_1300&REV_0100" />
<HardwareId
From="HID\VID_05E0&PID_1300"
To="HID\VID_05E0&PID_1300" />
</ServiceObject>
</PointOfServiceConfig>
Run Code Online (Sandbox Code Playgroud)
使用SOMgr.exe,可以在POSDevices中看到具有正确路径的设备。然后,我创建了MotoScan的LogicalName。然后,它按预期出现在“逻辑名称”列表中。
使用Microsoft Point of Service \ SDK \ Samples \ Sample Application \ TestApp.exe,我可以打开并声明该设备的所有权。但是,尝试单击启用复选框后,我收到以下错误消息。
POSControlException ErrorCode(Failure) ExtendedErrorCode(0) occurred: Unable to enable the device. See inner exception for details.
System.ComponentModel.Win32Exception: The process cannot access the file because it is being used by another process
at Microsoft.PointOfService.ExampleServiceObjects.HidReader.HidThread.StartReading()
at Microsoft.PointOfService.ExampleServiceObjects.HidReader.OpenDevice()
at Microsoft.PointOfService.ExampleServiceObjects.ExampleScanner.set_DeviceEnabled(Boolean value)
Opened device: Example Scanner
Created instance of device: Example Scanner
Run Code Online (Sandbox Code Playgroud)
摩托罗拉提供了一个名为123Scan的应用程序,可协助进行配置和测试。使用此应用程序,我可以确认设备正常工作。该应用程序最终已作为故障排除的一部分被卸载。
任何建议将不胜感激。
您是否尝试过安装 OPOS 驱动程序?
编辑:
您应该主动在http://support.symbol.com上搜索“OPOS 驱动程序”,以便下载适用于适当平台的驱动程序,而不是每次过期时都重新链接。
| 归档时间: |
|
| 查看次数: |
6401 次 |
| 最近记录: |