Default ports for arduino

Is it possible to set a permanent port for the arduino?

I want to connect my arduino to any computer and to use a default port on windows.

For example, I want the arduino will use COM4 for any computer I connect it to.

Thanks.

Will your Arduino be the ONLY device connected to any computer?

As far as I know Windows assigns the name of the port, not the device.

UDEV in linux allow you to tell the OS which 'com' port to assign to which device by idVendor:idProduct that is supplied by the usb device...

I'm sure there must be something similar in windows where you can specify the name assigned to the usb port...

:smiley_cat:

I believe not.
Does it matter?

Yes, with caveats
how to assign static COM port number to a device - Microsoft Q&A

1 Like

Seems like it would if the port is already in use by another device.

Let me rephrase my question:

I want to have the same port no matter which computer I connect the Arduino to.
It means that some configuration must be done on the the board.
Is it possible?

Nope
Why though?
There may be an answer to your real problem.

No promises:

USB Serial Adapter COM Port Assignment Changes on Windows 10 Reboot - Microsoft Q&A

and

how to assign static COM port number to a device - Microsoft Q&A

Those are relative for one device on one computer.
It now turns out that OP wants one device to use the same com port on any computer, for some as of yet undisclosed reason.

I have not tried since Win-7... but, I think you could set 'em non- consequently ... just like setting a USB storage device to be "W" or "Q" ... not in C, D, E, F ... sequence

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.