【问题标题】:Honeywell N3680 is not triggering DataReceived event霍尼韦尔 N3680 未触发 DataReceived 事件
【发布时间】:2018-01-24 11:38:37
【问题描述】:

我的设备带有扫描引擎 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 模式已激活,设备管理器中的设备表示如下:

如果我使用 Honeywell UWP 应用“BarcodeScanningApp”DataReceived 事件也不会触发。

如果 Honeywell Windows 桌面应用程序“POS4NET Validation Utility”扫描正确。

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

【问题讨论】:

  • 是否使用 N3680 解码引擎用户指南 2-1 页底部的设置条形码将模式设置为 USB HID?
  • 是的。我还尝试根据用户指南中的第 5 节设置数据格式
  • 请尽量让你的source的处理顺序和这个Input and output sample一样。
  • 没什么,还是一样。我添加了更多事件,例如 ErrorOccured、TriggerPressed 等,但没有人被触发
  • 如果没有答案,联系Honeywell's support services怎么样?

标签: uwp barcode-scanner honeywell


【解决方案1】:

@User1629894,

您在设备管理器中看到的设备不是您预期的 Honeywell N3680 扫描引擎。当 Honeywell N3680 配置为 HID POS 扫描仪模式时,您将在设备管理器中看到 HID POS 扫描仪条目。只有这样,此扫描仪才能与您的 UWP 应用一起使用。

有关在 HID POS 扫描仪模式下配置它的信息,请参阅 Honeywell N3680 的文档。

特里·沃里克 微软

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-07
    • 1970-01-01
    • 2019-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多