MotorolaDS4208ハンドヘルドバーコードリーダーを使用しています。以前はこのデバイスを正常にセットアップして使用できましたが、最近は機能しなくなりました。これは、OPOSおよびPOSfor.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>
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
Motorolaは、構成とテストを支援する123Scanというアプリを提供しています。このアプリを使用して、デバイスが動作することを確認できます。このアプリは、トラブルシューティングの一環として最終的にアンインストールされました。
任意の提案をいただければ幸いです。