How can i find which serial-port is the active one in Windows Subsystem for Linux? I know about the added support in WSL for using the /dev/ttyS, but which of these ports are active?
The issue I'm trying to solve is I have a device which keep switching comport, because of the internal chip that reconnects it self on a new port. I want to create a bash script that finds the active serial-ports.
Regular linux commands like: dmesg | grep tty does not work.