[UWP]获取“连接到系统的设备无法正常工作”尝试启用条形码扫描仪时 [英] [UWP]Getting "A device attached to the system is not functioning" when trying to enable barcode scanner

查看:65
本文介绍了[UWP]获取“连接到系统的设备无法正常工作”尝试启用条形码扫描仪时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好(包括@Terry Warwick)。 

Hello all (including @Terry Warwick). 

我注意到一些似乎是一个主要问题的错误,因为它需要重新启动设备让它再次运作。我正在使用运行Windows 10 Mobile的Honeywell CT50设备。虽然我有一个在设备上运行的UWP,我有
注意到问题不仅仅是由我的应用引起的(即:重启后,我甚至从未启动过我的应用)。霍尼韦尔还提供扫描仪演示应用程序(ScanDemoW10)。问题似乎与声称的条形码扫描仪和相机之间的相互作用有关。对于
的例子,如果你有一个声称的条形码扫描仪(并且扫描仪正在工作)但是你启动了相机/应用程序并切换回ScanDemoW10应用程序(或我的应用程序或使用条形码扫描仪的任何应用程序)问题)你会看到它与ClaimedScanner.EnableAsync()导致异常
;并且错误消息是:

I have noticed something that seems to be a bug that is a major issue because it requires a restart of the device to get it working again. I am using a Honeywell CT50 device, running Windows 10 Mobile. While I do have a UWP that runs on the device, I have noticed that the issue is not just caused by my app (ie: after restart, I never even launch my app). Honeywell also supplies a scanner demo app (ScanDemoW10). The issue seems to be with the interaction between a claimed barcode scanner and the camera. For example, if you have a claimed barcode scanner (and the scanner is working) but then you launch the camera/app and switch back to the ScanDemoW10 app (or my app or any app that uses the barcode scanner for that matter) you will see that it causes an exception with ClaimedScanner.EnableAsync(); and the error message is:

连接到系统的设备无法正常运行。 (HRESULT的例外情况:0x8007001F)

A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)

如果我很幸运,一旦我开始这样做,我可以关闭所有应用程序,并尝试再次启动扫描仪,它将恢复。但在大多数情况下,一旦我开始这样做,我必须重启设备才能再次启用扫描仪。 

If I am lucky, once I start getting this, I can close ALL apps and try to start the scanner again and it will recover. But in most cases, once I start getting this, I have to reboot the device to be able to enable the scanner again. 

当它处于"故障模式"时,我仍然可以检测到扫描仪并声明它,就在我尝试启用它时。 

When it is in the "failure mode", I can still detect the scanner and claim it, it is just when I try to enable it. 

错误来自源"System.Private.CoreLib"

The error comes from source "System.Private.CoreLib"

我需要知道如何防止这种情况或在发生时从中恢复,而不必每次都重启设备。我们的应用程序需要条形码扫描功能,但如果用户启动相机则无法停止工作。

I need to know how to either prevent this or recover from it when I happens without having to reboot the device everytime. Our application requires barcode scanning capability but it cannot stop working if the user launches the camera.

谢谢!!!

Mike

推荐答案

嗨  ,

这个问题很奇怪,不适合通过论坛讨论。它需要更多的专业支持。我建议您可能需要打开
支持
 为此。请联系MS Support提供的付费电话支持。你将获得1:1的支持。请注意,如果是微软的问题,您的支持票将是免费的。

最好的问候,

Roy


这篇关于[UWP]获取“连接到系统的设备无法正常工作”尝试启用条形码扫描仪时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆