SetupG Guide: com0com’s Graphical Setup Utility, Explained

  • Close applications first. A port held open by a terminal or your software keeps running with the settings it opened under. Close it, apply the change, reopen.
  • Recreate stubborn pairs. If a rename or option change refuses to stick on an existing pair, remove the pair and add it again with the final settings. Recreating a pair costs seconds and clears half-configured states.
  • A reboot is rarely required for configuration changes — but driver-level problems are a different matter. If no pairs appear at all, or the pair list is empty after installation, the driver itself probably never loaded (check Device Manager for Code 52) and no amount of SetupG clicking will help; go back to the installation guide.

When SetupG itself is the problem

  • SetupG will not start, but the driver works. Check the .NET Framework requirement: SetupG needs .NET Framework 2.0 available. On such a system, configure with setupc instead — it edits exactly the same settings.
  • Changes will not save. You are almost certainly running it without administrator rights. Close it and relaunch elevated; driver configuration is a privileged operation.
  • The pair list is completely empty. That is not a SetupG fault: it means the driver has no ports to show, which on a fresh install points back to the driver not loading (Device Manager, Code 52). SetupG configures a running driver; it cannot substitute for one.
  • One pair behaves differently from its settings. An application that opened the port earlier is still running it under the old configuration. Close the application completely — not just its document window — then check the pair again.

SetupG or setupc: which should you use?

For one-off configuration on your own machine, SetupG. The command prompt, setupc.exe, earns its keep when you need to repeat the same setup on several machines, script a test bench that builds pairs automatically, or work on a system where SetupG’s .NET requirement is a problem. Both tools edit the same configuration, so feel free to mix them — create the pair in SetupG, rename it from a script, and verify with whichever is open. Any remaining questions about what the options mean are collected in the FAQ, and all of this site’s walkthroughs live in the Guides archive.

  • Port name (PortName). The port’s name. Leave it as CNCAn/CNCBn, or assign a standard name with the PortName=COM# form — for example COM8 — which also places the port in the Windows Ports class so ordinary applications can discover it. This is the setting behind the whole renaming guide.
  • Baud rate emulation (EmuBR). Off by default. With it off, data crosses the pair as fast as memory allows, ignoring the baud rate the application selected. Switch it on for a port when the receiving side must experience realistic serial timing — for example when testing software that misbehaves if a whole message arrives instantly instead of dribbling in at 9600 baud. It applies to data sent from that port.
  • Buffer overrun emulation (EmuOverrun). Off by default. A real serial port has a small receive buffer; if the receiving program does not read fast enough, incoming bytes are lost in an overrun. A virtual pair normally never loses data that way. Enabling overrun emulation on a port makes it behave like hardware — the receive buffer can overrun and drop data — which is what you want when testing how your software copes with that failure. The ReadMe’s FAQ also suggests switching it on for the receiving port in a specific troubleshooting situation, when data seems to hang or stale characters linger in a pair.
  • Noise emulation (EmuNoise). Real serial lines occasionally corrupt a byte. Noise emulation reproduces that: with it enabled, the driver randomly corrupts data passing through the port with a probability you set. It exists purely for robustness testing — if your protocol claims to detect bad checksums and recover, this is how you prove it without faulty hardware. Leave it off for any real work; corrupted data in a production link is a bug, not a feature.

Notice what is not in this list: performance tuning. There are no documented settings to make the pair “faster” or lower-latency, because a virtual pair is already a memory-to-memory copy. If a guide elsewhere promises speed options in SetupG, it is inventing them.

Applying changes — and when more is needed

Most SetupG changes take effect when you apply them, for pairs and ports that are not currently open. Three practical rules cover nearly every “my change did nothing” report:

  • Close applications first. A port held open by a terminal or your software keeps running with the settings it opened under. Close it, apply the change, reopen.
  • Recreate stubborn pairs. If a rename or option change refuses to stick on an existing pair, remove the pair and add it again with the final settings. Recreating a pair costs seconds and clears half-configured states.
  • A reboot is rarely required for configuration changes — but driver-level problems are a different matter. If no pairs appear at all, or the pair list is empty after installation, the driver itself probably never loaded (check Device Manager for Code 52) and no amount of SetupG clicking will help; go back to the installation guide.

When SetupG itself is the problem

  • SetupG will not start, but the driver works. Check the .NET Framework requirement: SetupG needs .NET Framework 2.0 available. On such a system, configure with setupc instead — it edits exactly the same settings.
  • Changes will not save. You are almost certainly running it without administrator rights. Close it and relaunch elevated; driver configuration is a privileged operation.
  • The pair list is completely empty. That is not a SetupG fault: it means the driver has no ports to show, which on a fresh install points back to the driver not loading (Device Manager, Code 52). SetupG configures a running driver; it cannot substitute for one.
  • One pair behaves differently from its settings. An application that opened the port earlier is still running it under the old configuration. Close the application completely — not just its document window — then check the pair again.

SetupG or setupc: which should you use?

For one-off configuration on your own machine, SetupG. The command prompt, setupc.exe, earns its keep when you need to repeat the same setup on several machines, script a test bench that builds pairs automatically, or work on a system where SetupG’s .NET requirement is a problem. Both tools edit the same configuration, so feel free to mix them — create the pair in SetupG, rename it from a script, and verify with whichever is open. Any remaining questions about what the options mean are collected in the FAQ, and all of this site’s walkthroughs live in the Guides archive.

SetupG is the friendly face of com0com: the official graphical setup utility that installs alongside the driver. Everything you can do by clicking in SetupG, you can also do with the setupc.exe command prompt — SetupG is literally a GUI wrapper around the same settings — but for creating pairs, renaming ports and switching emulation options, the window is faster and much harder to get wrong. This guide tours the whole tool: what each part shows, what each per-port option honestly does, and when a change needs more than a click.

What SetupG is (and what it is not)

SetupG (setupg.exe) has been part of the com0com package since version 2.0.0.0. It is not a third-party add-on and it is not a monitoring tool: it does not show traffic flowing through your ports. Its single job is configuration — which pairs exist, what each port is called, and which emulation behaviours are switched on. One practical requirement from the ReadMe: SetupG needs the .NET Framework 2.0, which modern Windows versions satisfy through their built-in compatibility, but on a stripped-down system it explains a SetupG that refuses to start while setupc works fine.

You will find SetupG in the com0com folder in the Start menu. Run it with administrator rights — changing driver configuration without elevation will fail or silently not stick.

The main window: your pair list

The main window lists every virtual port the driver currently has, organised as pairs. On a fresh installation you will see exactly one pair: CNCA0 ↔ CNCB0, created by the installer. Selecting a pair shows its two ports; selecting a single port shows that port’s individual settings, which is where all the interesting options live. Treat this list as the source of truth for your configuration — if a pair is not listed here, applications cannot use it, whatever you may have set up in the past.

Adding and removing pairs

Add Pair creates a new pair with the next free default names (CNCA1/CNCB1, then CNCA2/CNCB2, and so on). There is no practical limit to how many you can add — the official FAQ puts the driver’s internal ceiling at 1,000,000 pairs. Before applying, rename the new ports if your applications need standard COM names; the rename field is right there in the port settings, and doing it at creation time saves a second pass.

Removing a pair deletes both of its ports. Close any application connected to either end first: an application holding a port open can block the removal or be left talking to a port that no longer exists. If a removal seems to be ignored, an open handle is the first thing to check. The step-by-step creation flow, including the loopback test to run afterwards, is in Create Your First Virtual COM Port Pair.

Per-port options, honestly explained

Each port in a pair carries its own settings. These are the ones the official ReadMe documents:

  • Port name (PortName). The port’s name. Leave it as CNCAn/CNCBn, or assign a standard name with the PortName=COM# form — for example COM8 — which also places the port in the Windows Ports class so ordinary applications can discover it. This is the setting behind the whole renaming guide.
  • Baud rate emulation (EmuBR). Off by default. With it off, data crosses the pair as fast as memory allows, ignoring the baud rate the application selected. Switch it on for a port when the receiving side must experience realistic serial timing — for example when testing software that misbehaves if a whole message arrives instantly instead of dribbling in at 9600 baud. It applies to data sent from that port.
  • Buffer overrun emulation (EmuOverrun). Off by default. A real serial port has a small receive buffer; if the receiving program does not read fast enough, incoming bytes are lost in an overrun. A virtual pair normally never loses data that way. Enabling overrun emulation on a port makes it behave like hardware — the receive buffer can overrun and drop data — which is what you want when testing how your software copes with that failure. The ReadMe’s FAQ also suggests switching it on for the receiving port in a specific troubleshooting situation, when data seems to hang or stale characters linger in a pair.
  • Noise emulation (EmuNoise). Real serial lines occasionally corrupt a byte. Noise emulation reproduces that: with it enabled, the driver randomly corrupts data passing through the port with a probability you set. It exists purely for robustness testing — if your protocol claims to detect bad checksums and recover, this is how you prove it without faulty hardware. Leave it off for any real work; corrupted data in a production link is a bug, not a feature.

Notice what is not in this list: performance tuning. There are no documented settings to make the pair “faster” or lower-latency, because a virtual pair is already a memory-to-memory copy. If a guide elsewhere promises speed options in SetupG, it is inventing them.

Applying changes — and when more is needed

Most SetupG changes take effect when you apply them, for pairs and ports that are not currently open. Three practical rules cover nearly every “my change did nothing” report:

  • Close applications first. A port held open by a terminal or your software keeps running with the settings it opened under. Close it, apply the change, reopen.
  • Recreate stubborn pairs. If a rename or option change refuses to stick on an existing pair, remove the pair and add it again with the final settings. Recreating a pair costs seconds and clears half-configured states.
  • A reboot is rarely required for configuration changes — but driver-level problems are a different matter. If no pairs appear at all, or the pair list is empty after installation, the driver itself probably never loaded (check Device Manager for Code 52) and no amount of SetupG clicking will help; go back to the installation guide.

When SetupG itself is the problem

  • SetupG will not start, but the driver works. Check the .NET Framework requirement: SetupG needs .NET Framework 2.0 available. On such a system, configure with setupc instead — it edits exactly the same settings.
  • Changes will not save. You are almost certainly running it without administrator rights. Close it and relaunch elevated; driver configuration is a privileged operation.
  • The pair list is completely empty. That is not a SetupG fault: it means the driver has no ports to show, which on a fresh install points back to the driver not loading (Device Manager, Code 52). SetupG configures a running driver; it cannot substitute for one.
  • One pair behaves differently from its settings. An application that opened the port earlier is still running it under the old configuration. Close the application completely — not just its document window — then check the pair again.

SetupG or setupc: which should you use?

For one-off configuration on your own machine, SetupG. The command prompt, setupc.exe, earns its keep when you need to repeat the same setup on several machines, script a test bench that builds pairs automatically, or work on a system where SetupG’s .NET requirement is a problem. Both tools edit the same configuration, so feel free to mix them — create the pair in SetupG, rename it from a script, and verify with whichever is open. Any remaining questions about what the options mean are collected in the FAQ, and all of this site’s walkthroughs live in the Guides archive.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *