0

我有带有扫描引擎 Honeywell N3680 的设备。根据文档https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/pos-device-support应该支持该引擎。

当我使用此代码编写示例 UWP 应用程序时。OnDataReceived方法不会被调用。

async void InitScanner()
{
    BarcodeScanner scanner = null;
    var scannerDevices = await DeviceInformation.FindAllAsync(BarcodeScanner.GetDeviceSelector());
    if (scannerDevices != null && scannerDevices.Count > 0)
    {
        foreach (var scannerDevice in scannerDevices)
        {
            scanner = await BarcodeScanner.FromIdAsync(scannerDevice.Id);
            claimedScanner = await scanner.ClaimScannerAsync();
            claimedScanner.RetainDevice();
            await claimedScanner.EnableAsync();
            claimedScanner.IsDecodeDataEnabled = true;

            claimedScanner.DataReceived += OnDataReceived;
        }
    }
}

POS 模式已激活,设备管理器中的设备表示如下:

在此处输入图像描述

如果我使用霍尼韦尔 UWP 应用程序“BarcodeScanningApp”也不会触发 DataReceived 事件。

在 Honeywell Windows 桌面应用程序“POS4NET Validation Utility”的情况下,扫描仪可以正确扫描。

是否有任何选项如何在 UWP 应用程序中设置此扫描引擎?

4

1 回答 1

1

@User1629894,

The device that you see in Device Manager is NOT the Honeywell N3680 scan engine that you expected. You will see a HID POS Scanner entry in device manager when the Honeywell N3680 is configured in HID POS Scanner mode. Only then will this scanner work with your UWP app.

Please consult the documentation for your Honeywell N3680 on configuring it in HID POS Scanner mode.

Terry Warwick Microsoft

于 2018-03-20T15:01:22.307 回答