OlegG
OlegG

Reputation: 1017

Tcl unable to open serial port com22

When I try to open COM22 which is serial port over USB, Tcl answers me the following:

couldn't open "com22": no such file or directory

Another program opens that serial port successfully.
What could be a reason for that?
Tcl 8.5, Windows 7

Upvotes: 1

Views: 1850

Answers (1)

Hans Passant
Hans Passant

Reputation: 941970

These high-numbered ports don't have equivalent DOS names. Use \\.\COM22 instead.

Upvotes: 7

Related Questions