This note from the MS docs for CreateFile explain the problem and the solution:
To specify a COM port number greater than 9, use the following syntax: "\\.\COM10". This syntax works for all port numbers and hardware that allows COM port numbers to be specified.
In reply to Re: Problem: Win32::SerialPort
by BrowserUk
in thread Problem: Win32::SerialPort
by kfiryaar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |