Cannot connect to port from UWP app (WinRT)
The virtual serial port driver for Windows.
Brought to you by:
vfrolov
Hello. I am trying to connect to a port created by com0com in a Universal Windows Platform (UWP) app, however the SerialDevice.FromIdAsync() call returns null for ports created by com0com. This actually happened when I first tried to connect to an FTDI USB to Virtuial Com Port converter, but once I updated to the latest FTDI driver (released very recently) I was able to connect. Here is an example of others having this issue with the FTDI driver: http://www.timwappat.info/post/2016/03/30/Serial-Port-null-from-SerialDeviceFromIdAsync(dis0Id)-with-windows-UWP-FTDI-adapter
Is there some configuration option that I can set that should allow this to work in a UWP app, or is this fundamentally not supported?
It is a limitation of the current Windows SerialDevice implementation, but there are alternative solutions for UWP, see:
https://stackoverflow.com/questions/41799889/com0com-virtual-port-does-not-open-by-uwp
It is not a problem of com0com, old physical ports (non USB serialports) have the same problem.