我正在尝试与嵌入 Windows 8 的“Honeywell Dolphin CT50”扫描仪进行交互。这是我用来激活集成条形码扫描仪的代码,但它没有按预期工作,DataReceived 方法永远不会被调用。
顺便说一句,安装在设备上的 Barcodescanner 示例应用程序正在运行,因此条形码或扫描仪本身不会有问题。
Dim c As DeviceInformationCollection = Await DeviceInformation.FindAllAsync(BarcodeScanner.GetDeviceSelector())
Dim scanner As BarcodeScanner = Await BarcodeScanner.FromIdAsync(c(0).Id)
Me._scanner = Await scanner.ClaimScannerAsync()
AddHandler Me._scanner.DataReceived, AddressOf DataReceived