Snap interfaces serial-port error "serial-port path attribute must be a valid device node"

the serial port interface is sadly restricted to exactly the regex that ian quoted above:

var serialDeviceNodePattern = regexp.MustCompile("^/dev/tty(mxc|USB|ACM|AMA|XRUSB|S|O)[0-9]+$")

anything not matching this pattern will be refused, if you want something like “COM” or “GPS” supported, it needs to be added to this pattern, similar to this patch:

in case your devices are USB based there is also the serial hotplug feature now: