[UWP] Windows 10应用程序 - CustomSerialDeviceAccess示例无法打开COM1 [英] [UWP] Windows 10 Apps - CustomSerialDeviceAccess example cannot open COM1

查看:323
本文介绍了[UWP] Windows 10应用程序 - CustomSerialDeviceAccess示例无法打开COM1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用官方串口示例(CustomSerialDeviceAccess)打开COM1时,出现以下错误:

When attempting to open COM1 using the official serial port sample (CustomSerialDeviceAccess), I get the following error:

"系统找不到指定的文件。 (来自HRESULT的异常:0x80070002)<

"The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"

从串行设备选择器返回的ID:@" \\?\ ACPI#PNP0501#5& 36cbe709& 0#{ 86e0d1e0-8089-11d0-9ce4-08003e301f73}"

Id as returned from the serial device selector: @"\\?\ACPI#PNP0501#5&36cbe709&0#{86e0d1e0-8089-11d0-9ce4-08003e301f73}"

Driver Details

类:端口

Class Guid为{4d36e978-e325-11ce-bfc1-08002be10318}

Class Guid as {4d36e978-e325-11ce-bfc1-08002be10318}

Inf名称:msports.inf

Inf name: msports.inf

使用RealTerm(Win32终端程序)我可以打开并与COM1通信就好了。

Using RealTerm (a Win32 terminal program) I can open and communicate with COM1 just fine.

任何想法?

解决方法的想法?

谢谢。

推荐答案

Hi lil'sprout,



>>"尝试使用官方串口示例(CustomSerialDeviceAccess)打开COM1时, ;
$
您是否从这里下载样本(https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/ CustomSerialDeviceAccess)?

Hi lil'sprout,

>>"When attempting to open COM1 using the official serial port sample (CustomSerialDeviceAccess),"
Do you download the sample from here(https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/CustomSerialDeviceAccess)?

>> 我收到以下错误 :"
系统找不到指定的文件。(HRESULT异常:0x80070002)"

>>I get the following error:"The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"

异常在哪里被抛出?





这篇关于[UWP] Windows 10应用程序 - CustomSerialDeviceAccess示例无法打开COM1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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