Oops, my mistake. I forgot you are using a USB to UART bridge.
The PC will assign a COMx port to the USB when the cable is connected.
Usually it is consistent but it can be any number on a different PC. So you have to allow the user to select the COMx port.
ok! so like I was saying earlier...at program startup, PC automatically detects the COM port available in the computer and allow the user to select the port to which the cable has been connected to, correct?
But as for the baude rate, I must stick with one ONLY to avoid complexity, right?
a little question, the fact thaT ONLY one cable will be connected the program will display only one portname, right?