how to assign static COM port number to a device

Mohammed S. Alnahdi 1 Reputation point
2021-06-26T16:04:17.02+00:00

Hi All

I have an issue with one device ( Pax Technology Terminal ) connected to Win 10 ( NCR Point of Sale ). after unplugging the device and connecting it the COM port number changes and every time we have to change the port number back to the correct port number for this device to work.

Is there way I set this device to only get a certain COM port number every time they unplug and connect it back ?? something like setting defaults for each device type

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,621 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Miles 1,251 Reputation points
    2021-06-28T06:23:13.077+00:00

    Hi

    Windows manages the COM port number assignments, and a device's COM port number may change after a reboot.

    To manually change the COM port number of a device:

    1. Open Windows Device Manager > right click the device > Properties
    2. Under Port tab > Advanced
    3. Change COM port number

    Also, according to the experience before, the Windows assign the COM port according VID, PID and serial number.
    So with the same device plug in, it should always get same COM port assignment.
    But when two devices with same VID, PID and serial number might be treated as same device.
    When you plug in them in sequence, Windows can assign different COM port for them.
    However, after rebooting the Windows with the two USB devices attached, the COM port assignment should be decided by Windows for the two USB devices with same VID, PID and serial number.

    109773-628.png

    -------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    4 people found this answer helpful.
    0 comments No comments

  2. Weissmueller, Chuck 0 Reputation points
    2023-09-28T17:59:58.6466667+00:00

    How can ANY two devices have the same serial numbers ??

    0 comments No comments