Default COM Port

Hello,

I am a technician in a school district. There is a teacher here is using the Arduino/Genuino Uno board. The operating system is WIN 10, software version is 1.6.13. The teacher would like the ability to set a default COM Port for the Arduino software so that her students do not have to pick a COM port when plugging in the device through USB. Is this at all possible?

Readus Fletcher

I don't think so as this is dependend on how Microsoft handles the USB port administration and thus the assignment of COM ports. At least imho there is no way to fix any COM port dedicated to a specific device to be connected.

This question has been discussed a lot of times (not here but in the Windows world) - and some people have tried to find solutions for that.

Look at this link.

If there is no solution with that, your teacher should contact Microsoft and tell them "I have a dream". :slight_smile:

It is possible to set the port that will be selected in the Tools > Port menu when the IDE starts. Running the following command:

arduino --port COM6

Will set the port selection to COM6 but will not start the Arduino IDE GUI. So if you want to start the Arduino IDE with COM6 selected you could create a batch file with the following lines:

arduino --port COM6
arduino

And point the shortcut the students use to start the Arduino to that batch file instead of arduino.exe. The second command will start the Arduino IDE GUI. More information on Arduino command line options:

You can change the port number of the Arduino board in Device Manager but if there is a situation where the board is plugged in when that port is already in use by another device then it will re-enumerate and the board's port will change.