C# Microsoft服务点-PosPrinter.FromIdAsync返回“;连接到系统的设备不工作“;

C# Microsoft服务点-PosPrinter.FromIdAsync返回“;连接到系统的设备不工作“;,c#,uwp,epson,pos,posprinter,C#,Uwp,Epson,Pos,Posprinter,我正在尝试将MS PosPrinter应用到UWP应用程序中,我的爱普生Tm-T20II打印机已安装,可以使用爱普生oPos安装实用程序进行打印 即使我安装了完整的windows驱动程序,它也能正常工作 当我运行此命令时,我的问题出现了: DevicePicker devicePicker = new DevicePicker(); devicePicker.Filter.SupportedDeviceSelectors.Add(PosPrinter.GetDeviceSelector());

我正在尝试将MS PosPrinter应用到UWP应用程序中,我的爱普生Tm-T20II打印机已安装,可以使用爱普生oPos安装实用程序进行打印

即使我安装了完整的windows驱动程序,它也能正常工作

当我运行此命令时,我的问题出现了:

DevicePicker devicePicker = new DevicePicker();
devicePicker.Filter.SupportedDeviceSelectors.Add(PosPrinter.GetDeviceSelector());

// Anchor the picker on the Find button.
GeneralTransform ge = FindButton.TransformToVisual(Window.Current.Content as UIElement);
Rect rect = ge.TransformBounds(new Rect(0, 0, FindButton.ActualWidth, FindButton.ActualHeight));

DeviceInformation deviceInfo = await devicePicker.PickSingleDeviceAsync(rect);
rootPage.deviceInfo = deviceInfo;
PosPrinter printer = null;
if (deviceInfo != null)
{
    printer = await PosPrinter.FromIdAsync(deviceInfo.Id);
}
等待PosPrinter.FromIdAsync(deviceInfo.Id)
始终返回:

System.Exception: 'A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)'
这是我在oPos设置中的测试


对这个问题有什么看法

@HansPassant你说的是什么?
已经被检查过了,我完全不明白这一点。用于help@NicoZhu-MSFT否即使启用了
服务点
功能,问题仍然存在。打印机已被
DevicePicker
识别,但问题是当尝试使用
PosPrinter.FromIdAsync()
通过id获取打印机时。正确地说,我们没有用于测试的此类设备,我会将此案例上报给相关团队。如果我得到一些信息,我将在下面更新。@NicoZhu MSFT-Tks。这台打印机是USB打印机,有关系吗?