UWP SerialDevice.FromIdAsync return null

非 Y 不嫁゛ 提交于 2019-12-11 04:34:32

问题


I'm trying the Microsoft sample for Serial Port and it's working on Raspberry Pi2 but not on local machine , on,local machine return null.

the DeviceCapability already added, that's why it's working on Pi2.

any idea why it's not working on local machine

local system: Win10 Ent. VS 2015.3


回答1:


I found this answer :(

Link

System-internal or on-chassis serial ports may be enumerated by DeviceInformation.FindAllAsync(), but cannot be opened by SerialDevice.FromIdAsync() because they currently are not supported. However, serial ports connected over USB, such as on USB-to-Serial cables are supported.



来源:https://stackoverflow.com/questions/41319056/uwp-serialdevice-fromidasync-return-null

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!