[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)"
异常在哪里被抛出?