<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>com0com</title>
	<atom:link href="https://com0com.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://com0com.com</link>
	<description>Virtual Serial Port Driver for Windows 11/10</description>
	<lastBuildDate>Wed, 21 Oct 2026 09:45:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://com0com.com/wp-content/uploads/2026/04/favicon-150x150.png</url>
	<title>com0com</title>
	<link>https://com0com.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Virtual Serial Ports on Windows Server and VMs</title>
		<link>https://com0com.com/virtual-serial-port-windows-server/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 08:30:00 +0000</pubDate>
				<category><![CDATA[Comparisons & Buying]]></category>
		<guid isPermaLink="false">https://com0com.com/virtual-serial-port-windows-server/</guid>

					<description><![CDATA[Everything about virtual serial ports gets more serious on a server. The driver is the same kind of kernel code, but the machine it lands on runs other people&#8217;s workloads, answers to a change board, and enforces signing policy the way servers do — strictly, and with no patience for workarounds that a desktop user...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Everything about virtual serial ports gets more serious on a server. The driver is the same kind of kernel code, but the machine it lands on runs other people&#8217;s workloads, answers to a change board, and enforces signing policy the way servers do — strictly, and with no patience for workarounds that a desktop user might shrug at. This page is the honest server picture: what works, what absolutely should not be attempted, and the architecture that production environments actually converge on.</p>
<h2>Signing on servers: stricter ground</h2>
<p>The background every desktop guide on this site repeats applies with extra force here: com0com&#8217;s driver is test-signed, and its SourceForge signed package depends on a legacy cross-signed certificate that modern Windows accepts only in narrowing exceptions. Industry reporting through 2025 and into 2026 describes the newest releases — the Windows 11 24H2/25H2 generation and Windows Server 2025 — as removing trust in cross-signed roots by default, shrinking those exceptions further. Treat that as reported direction rather than a promise about your exact build, and test on a non-production image first; but plan on the basis that a driver strategy built on a 2012-era cross-signature has no future on server SKUs, even on machines where it happens to load today.</p>
<h2>Never test-signing on production</h2>
<p>On a personal PC, enabling Test Mode is a weighed trade-off. On a server it is simply not a proposal: <code>bcdedit -set TESTSIGNING ON</code> lowers the driver-integrity bar for the whole machine — every workload on it, not just your serial tool — demands a reboot, fights Secure Boot policy (which will often refuse it outright), and announces itself with a watermark that no audit survives gracefully. If a design document for a production server contains the words &#8220;test signing&#8221;, the correct review outcome is to send the design back. The free pair driver remains a fine citizen on desktop and lab machines (<a href="/com0com-commercial-use/">commercial use, untangled</a>); servers are a different jurisdiction.</p>
<h2>What does work on the server itself</h2>
<p>If a Windows Server genuinely needs a local virtual pair — an application and its local simulator both on the host, legacy software consolidated onto modern iron — the requirement is a <strong>properly Microsoft-signed commercial driver</strong>, chosen and licensed like any other server component, tested in the change window, and recorded in the build. That is the beginning and end of the on-host software story: signed, supported, documented. Anything less is a desktop workaround wearing a server costume.</p>
<h2>The VM angle: let the hypervisor do it</h2>
<p>Virtualisation quietly dissolves many of these requests. Most hypervisors can present a virtual COM port to a guest backed by something other than a physical UART — a named pipe, a file, or a TCP connection to another host. For the classic workloads that drive these projects (a legacy application in a VM that must &#8220;have a COM port&#8221;, a guest that needs to exchange serial-formatted data with a partner process), a hypervisor-provided port often satisfies the application without any third-party kernel driver inside the guest at all. Equally, USB and PCI passthrough can hand a guest a real serial adapter outright. The discipline is to ask, before installing anything in the guest: <em>does this need to be a driver, or just a port?</em> RDS and session-host scenarios deserve the same scepticism multiplied — per-session serial expectations on a shared host are where device servers (next section) earn their keep.</p>
<p>There is a middle path worth knowing for guests whose serial partner lives on another host entirely: bridge at the network layer rather than the driver layer. A guest can map its end of a conversation onto TCP — the com2tcp pattern from the com0com ecosystem, or the hypervisor&#8217;s own network-backed serial port — and meet a partner process, a device server, or a physical machine&#8217;s port on the far side. Framed that way, several &#8220;the VM needs a pair&#8221; requirements turn out to be &#8220;the VM needs to reach a port&#8221;, which is a networking task with networking tools, and no kernel driver is invited into the guest at all.</p>
<h2>The grown-up answer: a serial device server</h2>
<p>Production serial-over-network architecture converged years ago: the serial device lives on a dedicated box — a serial device server — attached to the network, and computers reach it over TCP. The application side then needs either a vendor redirector (a signed driver that maps a COM name to the box, maintained by the box&#8217;s manufacturer) or a protocol it can speak directly, RFC 2217 being the standard one; our <a href="/rfc2217-server-client/">RFC 2217 recipes</a> and <a href="/com2tcp-guide/">com2tcp guide</a> cover the mechanics from the free-tool side. What this buys operations is everything the in-PC driver cannot offer: no kernel code on the server, the serial hardware survives server rebuilds untouched, one device can serve whichever host needs it this quarter, and the security review is about a network appliance with a vendor, not a test-signed driver from 2012. For a single stubborn desktop-class need this is overkill; for anything a business depends on, it is simply how the job is done.</p>
<h2>The consolidation scenario, where this usually starts</h2>
<p>Most server-side virtual COM projects are born in a consolidation: a physical Windows machine from another era — running a data-collection app, an instrument controller, a serial-fed legacy service — is being virtualised or moved to a current Server release, and the migration stalls on one line in the inventory: &#8220;needs a COM port&#8221;. Work the options in the order this page has built them. First ask whether the port must be <em>in</em> the server at all: if the serial device still exists physically, a device server beside it ends the project in an afternoon and the application simply sees a network resource. If the &#8220;device&#8221; is actually another program, ask whether the two still need to share a host — pairs are an intra-machine concept, and splitting the pair across hosts converts the problem into the RFC 2217 pattern. Only if both ends genuinely live on the server does the signed-driver purchase arise, at which point it is a small, clean line in the migration budget rather than the discovery that stops the project.</p>
<h2>RDS and shared hosts: extra suspicion, same physics</h2>
<p>On a Remote Desktop Session Host, add one more layer of doubt. Serial ports — real or virtual — are machine-scoped, exclusive resources being presented to a multi-tenant session environment; which session sees which port, and what happens when two sessions want it, are questions whose answers vary by product and policy and are miserable to debug in production. The operational consensus is to keep serial off the session host: dedicate a small endpoint — a workstation, a modest dedicated box, or a device server — to the physical serial world, and let sessions consume the result over the network. It is the same conclusion as the device-server argument, reached from the multi-user direction: shared hosts and exclusive ports are natural enemies, and good architecture wins by separating them rather than mediating between them.</p>
<p>Finally, a word about documentation, because servers outlive their builders: whatever pattern you choose, write down where the serial path physically and logically runs — device, device server or hypervisor mapping, port names, and the application&#8217;s expectations — in the runbook, not in a ticket that will age out of search. Virtual COM setups fail silently years later, when a host is rebuilt without its undocumented pipe or a device server is factory-reset by a helpful hand; the runbook entry is the cheapest insurance on this entire page.</p>
<h2>Decision summary</h2>
<ul>
<li><strong>Lab, test and development servers:</strong> com0com per the normal desktop guidance, where the signed package loads; Test Mode tolerable on genuinely disposable machines.</li>
<li><strong>Production server, on-host pairs truly required:</strong> a commercially signed driver, change-managed (<a href="/com0com-vs-eltima-vspd/">the com0com vs Eltima comparison</a> is the honest version of that purchase).</li>
<li><strong>VM guests:</strong> hypervisor virtual COM (pipe/TCP-backed) or device passthrough first; guest drivers last.</li>
<li><strong>Anything shared, remote, or business-critical:</strong> serial device server on the network; retire the question permanently.</li>
</ul>
<p>The exits, for the two branches that involve buying something: <a href="/go/amazon-device-server" rel="sponsored nofollow">serial device servers on Amazon</a> (sponsored) for the hardware route, and <a href="/go/eltima-vspd" rel="sponsored nofollow">Eltima Virtual Serial Port Driver</a> (sponsored) when a signed on-host driver is genuinely the requirement. Everything else on this page was free advice, and on a server, &#8220;do not install the clever workaround&#8221; is the most valuable kind.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Split One Serial Port Between Several Applications</title>
		<link>https://com0com.com/split-serial-port/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 08:30:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/split-serial-port/</guid>

					<description><![CDATA[Windows treats a COM port as an exclusive resource: the first application to open it owns it, and every other application gets an error until the first one lets go. That rule collides with real work constantly — the GPS feed that three programs want, the data logger you dare not close, the rig-control software...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Windows treats a COM port as an exclusive resource: the first application to open it owns it, and every other application gets an error until the first one lets go. That rule collides with real work constantly — the GPS feed that three programs want, the data logger you dare not close, the rig-control software and the logging software that both need the radio. “Splitting” a serial port means breaking that rule safely, and on this site it means one specific, free, well-documented tool: <strong>hub4com</strong>, the hub from the com0com project. This page explains the approach, its one real caveat, and the honest point at which a dedicated splitter product becomes the easier answer.</p>



<h2 class="wp-block-heading">The idea: the hub opens the port once, applications open virtual ports</h2>



<p class="wp-block-paragraph">A splitter has to stand between the exclusive port and the crowd. hub4com&#8217;s arrangement — the one its ReadMe documents in the GPS hub example — is simple:</p>



<ol class="wp-block-list">
<li>The real port (say COM1) is opened by <strong>hub4com only</strong>. The exclusivity rule is satisfied because exactly one program holds it.</li>



<li>You create <strong>one com0com pair per application</strong>. The inner ends (CNCB0, CNCB1, …) face the hub; the outer ends get ordinary names (COM5, COM6, …) that applications can open.</li>



<li>hub4com copies what the real port receives to <strong>every</strong> inner end, so every application hears the device. The full worked example — pair creation commands included — is the <a href="/share-gps-multiple-apps/">GPS sharing recipe</a>; the hub command at its heart is just:</li>
</ol>



<pre class="wp-block-code"><code>hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1</code></pre>



<p class="wp-block-paragraph">Each application now believes it has the device to itself, on its own port. Nothing is emulated per-application and nothing is polled: the hub fans the stream out as it arrives.</p>



<h2 class="wp-block-heading">Read-only sharing is safe; writing is the shared resource</h2>



<p class="wp-block-paragraph">How well splitting works depends on which direction your data flows. One-way streams — GPS NMEA, weather stations, AIS receivers, industrial sensors, most loggers — broadcast perfectly: the ReadMe states the hub “will send data received from COM1 port to CNCB0 and CNCB1 ports”, and any number of listeners can consume identical copies without affecting each other or the device.</p>



<p class="wp-block-paragraph">Two-way devices need more care. The ReadMe also documents a return path — data received from CNCB0 is sent back to COM1 — because devices like radios and instruments accept commands. But a return path shared by several applications is a party line: if two programs send configuration commands at the same time, the device receives them interleaved, and replies cannot be attributed to one sender. Practical rule: designate <strong>one controlling application</strong> that is allowed to talk back, and let the rest listen. If two programs genuinely must control the same device simultaneously, a port splitter of any brand is the wrong layer — the applications themselves need to coordinate, typically through one program that owns the device and offers the others an interface.</p>



<p class="wp-block-paragraph">A related kindness in hub4com 2.1.0.0: its changelog records “serial port share mode to allow use COM port by other applications when port is not used by hub4com”, and the RFC 2217 wrapper exposes the same idea as <code>--share-com-port</code> — the port is opened on connect and closed on disconnect rather than held permanently. That helps the hub coexist with other software between sessions; it does not change the one-writer rule while a session is live.</p>



<h2 class="wp-block-heading">The gotcha that empties the stream: CTS handshaking</h2>



<p class="wp-block-paragraph">If your split is set up correctly but the real port delivers nothing, the hub4com ReadMe FAQ names the usual cause: “By default hub4com use CTS handshaking on output so if CTS state is OFF then no any data can be sent to the port.” Many simple devices and three-wire cables never raise CTS, so the hub politely waits forever. The FAQ&#8217;s fix is to disable CTS handshaking for the real port by putting <code>--octs=off</code> before it in the hub command. It is the single most common hub4com problem and it has nothing to do with your pairs — check it before rebuilding anything. (The <a href="/hub4com-guide/">hub guide</a> covers the same item in its testing walkthrough, and the <a href="/com0com-troubleshooting/">troubleshooting hub</a> covers driver-side failures.)</p>



<h2 class="wp-block-heading">When the job is bigger than splitting: the multiplexer</h2>



<p class="wp-block-paragraph">Splitting fans one port out locally. The package ships a second wrapper for the heavier, related job: carrying <em>several</em> ports across a <em>single</em> link — the ReadMe&#8217;s “Multiplexing” example, where a server computer&#8217;s COM2, COM3 and COM4 are made to appear on a client computer over one null-modem connection between their COM1 ports. That is what <code>examples/multiplexer.bat</code> builds, with a server end and a client end run over the shared link port:</p>



<pre class="wp-block-code"><code>multiplexer --baud 115200 COM1 --mode server CNCB1 CNCB2 CNCB3
multiplexer --baud 115200 COM1 CNCB1 CNCB2 CNCB3</code></pre>



<p class="wp-block-paragraph">Each named subport gets its own tagged channel inside the one link, and the same wrapper can switch the link to TCP and add a shared secret for encryption. Reach for the multiplexer when the constraint is the link — one cable, one connection, many ports — and for plain hub4com when the constraint is simply several local applications and one device.</p>



<h2 class="wp-block-heading">One hub can host more than one split</h2>



<p class="wp-block-paragraph">Nothing in the pattern limits you to one device. Ports on a hub4com command line are just a list, and the ReadMe&#8217;s own examples put three ports into a single hub as a matter of course. A second receiver or instrument can join the same hub process as its own fan-out — its real port plus its own pair ends appended to the command — or run under a second hub instance if you prefer the setups independent. The practical limit is not the hub; it is your discipline about which application is allowed to write to which device.</p>



<h2 class="wp-block-heading">Two things splitting cannot do</h2>



<ul class="wp-block-list">
<li><strong>It cannot share a port another program already holds.</strong> The hub must be the program that opens the real port. If an application has COM1 open directly, close it (and retrain it onto a virtual port) before starting the hub.</li>



<li><strong>It cannot merge two talkers into one listener coherently.</strong> Splitting fans one source out to many listeners. Feeding several devices <em>into</em> one application is the opposite shape — a routing and joining problem with its own collisions, not something to improvise on a shared return path.</li>
</ul>



<h2 class="wp-block-heading">A quick decision guide</h2>



<ul class="wp-block-list">
<li>Several programs only <strong>listen</strong> to one device → the hub pattern above; this is the easy, safe case.</li>



<li>One program <strong>controls</strong>, the rest listen → the hub pattern, with the controller on the pair whose return path you use, and the listeners told to stay read-only where the software allows it.</li>



<li>Two programs must <strong>both control</strong> the device → no splitter is the answer; put one program in charge of the device and have the other talk to it.</li>



<li>The PC is <strong>locked down</strong> or the setup is business-critical → weigh the dedicated splitter products discussed below.</li>
</ul>



<h3 class="wp-block-heading">When a dedicated splitter is easier</h3>



<p class="wp-block-paragraph">hub4com is free, scriptable and exact, but it is a 2012 console tool configured by command line, and its “interface” is a console window you must leave running. Commercial splitter products trade money for a graphical interface, saved configurations, a supported vendor and — on modern Windows — a driver that went through current Microsoft signing. If your splitting need is permanent, business-critical, or on a machine where com0com&#8217;s driver signing situation (see the <a href="/fix-com0com-code-52/">Code 52 guide</a>) is a blocker, that trade can be the right call. Our <a href="/virtual-serial-port/">virtual serial port overview</a> compares the field — the free com0com stack, VSPE, Eltima&#8217;s driver and splitter, and the hardware options — with prices verified from the vendors, so you can make that judgement with the whole picture in front of you.</p>



<p class="wp-block-paragraph">For most home, lab and workshop setups, though, the free stack is enough: one hub, one pair per application, one writer at a time. Start with the <a href="/share-gps-multiple-apps/">GPS recipe</a> even if your device is not a GPS — it is the cleanest worked example of the pattern — and keep <code>--octs=off</code> in mind the first time a real port stays silent.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>RFC 2217 With hub4com: Share a Serial Port Over the Network</title>
		<link>https://com0com.com/rfc2217-server-client/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:45:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/rfc2217-server-client/</guid>

					<description><![CDATA[A plain serial-to-TCP bridge moves bytes, but a serial port is more than bytes: it has a baud rate, data bits, parity, and modem signals like DTR and CTS that real applications expect to control. RFC 2217, the “Telnet Com Port Control Option”, is the protocol that carries those settings and signals across the network,...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A plain serial-to-TCP bridge moves bytes, but a serial port is more than bytes: it has a baud rate, data bits, parity, and modem signals like DTR and CTS that real applications expect to control. <strong>RFC 2217, the “Telnet Com Port Control Option”</strong>, is the protocol that carries those settings and signals across the network, so a port on another computer behaves like a port on yours. In the com0com project, RFC 2217 belongs to <a href="/hub4com/">hub4com</a> — its changelog records “Implemented RFC 2217 ‘Telnet Com Port Control Option’ protocol” in version 2.0.0.0 — and it is exposed through the <code>com2tcp-rfc2217.bat</code> wrapper. This page gives you the official server and client recipes, from the hub4com ReadMe, exactly as the project documents them.</p>



<h2 class="wp-block-heading">Server: share this PC&#8217;s serial port</h2>



<p class="wp-block-paragraph">The scenario from the ReadMe: “You have a server computer with physical COM1 port and you&#8217;d like to share it through the network by the RFC 2217 protocol.” One command starts the server:</p>



<pre class="wp-block-code"><code>com2tcp-rfc2217 COM1 7000</code></pre>



<p class="wp-block-paragraph">In the ReadMe&#8217;s words, “it will listen TCP/IP port 7000 for incoming connections and redirect them to COM1 port.” That is the whole server: the wrapper configures hub4com with the RFC 2217 server-side filters, opens COM1, and waits. Any RFC 2217 client — the matching wrapper below, a commercial redirector, a device server acting as a client — can now connect to this PC on TCP port 7000 and use COM1 as its own.</p>



<p class="wp-block-paragraph"><strong>Firewall note:</strong> the server PC must accept inbound TCP connections on the port you chose (7000 in the example). Windows Firewall will typically prompt the first time hub4com listens, or you can add an inbound rule for TCP 7000 scoped to your local network. If the server starts without error but no client can reach it, the firewall — not the serial side — is the first suspect.</p>



<h2 class="wp-block-heading">Client: make the remote port a local virtual port</h2>



<p class="wp-block-paragraph">On the client computer, the remote port becomes usable once it has a local face — a com0com virtual port. The ReadMe&#8217;s client example creates a pair first, giving the application-facing end the name COM5 and, notably, enabling baud rate emulation on it:</p>



<pre class="wp-block-code"><code>command&gt; install 0 PortName=COM5,EmuBR=yes -</code></pre>



<p class="wp-block-paragraph">Then the wrapper connects the pair&#8217;s inner end to the server:</p>



<pre class="wp-block-code"><code>com2tcp-rfc2217 \\.\CNCB0 your.comport.server 7000</code></pre>



<p class="wp-block-paragraph">As the ReadMe puts it, this “will redirect virtual serial port COM5 on the second computer to the physical serial port on the first computer.” Applications on the client open COM5 exactly as if the device were plugged in locally; the RFC 2217 negotiation carries baud rate, parity and signal changes across the wire to the real port. (The <code>EmuBR=yes</code> in the pair creation is the driver&#8217;s baud rate emulation switch — the <a href="/com0com-hangs-buffer-overrun/">EmuBR/EmuOverrun guide</a> explains what it does and why the project pairs it with network use.)</p>



<h2 class="wp-block-heading">Wrapper options worth knowing</h2>



<p class="wp-block-paragraph">The com2tcp-rfc2217.bat usage text (run it with <code>--help</code>) documents more than the two recipes. The ones that matter in practice:</p>



<ul class="wp-block-list">
<li><strong><code>--share-com-port</code></strong> — in the usage text&#8217;s words, “open the com port on connecting and close it on disconnecting. By default the com port is open permanently.” On the server side this lets the port be used locally between network sessions instead of being held by the wrapper forever.</li>



<li><strong><code>--reconnect &lt;t&gt;</code></strong> (client mode) — force reconnection to the remote host after a disconnect, with the interval in milliseconds, for links that must heal themselves.</li>



<li><strong><code>--connect &lt;state&gt;</code> and <code>--delay-disconnect &lt;t&gt;</code></strong> — make the network connection follow a modem signal (CTS, DSR, DCD, ring or break), and smooth over brief signal drops before actually disconnecting.</li>



<li><strong><code>--keep-active &lt;s&gt;</code></strong> — send a NOP every so many seconds so idle connections are not torn down by intermediaries.</li>



<li><strong><code>--interface &lt;if&gt;</code></strong> — bind listening or connecting to a specific network interface, on multi-homed PCs.</li>
</ul>



<h2 class="wp-block-heading">How the wrapper knows client from server</h2>



<p class="wp-block-paragraph">One detail confuses everyone the first time: the same batch file runs both ends. The disambiguation is in the arguments, as the wrapper&#8217;s usage text lays out. Give it a COM port and <em>two</em> further arguments — a host address and a host port — and you are in <strong>TCP client mode</strong>: it connects out to a listening server. Give it a COM port and <em>one</em> further argument — a listen port — and you are in <strong>TCP server mode</strong>: it waits for someone else to connect. The usage text also documents an explicit override, <code>--rfc2217-mode {c|s}</code>, noting that the default is client for TCP client mode and server for TCP server mode — in practice, the argument shape decides, and the option exists for the unusual setups where you need to force the serial-side role independently. If your wrapper “does nothing”, count your arguments first: a missing host address quietly turns a client into a server waiting for a connection that will never come.</p>



<p class="wp-block-paragraph">One less thing to debug than you might fear: the wrapper starts hub4com with CTS handshaking on output already disabled for the COM side (its generated command includes <code>--octs=off</code>) — the silent-real-port trap from the hub&#8217;s FAQ is pre-disarmed here, unlike in raw hub4com setups.</p>



<h2 class="wp-block-heading">An honest word about security</h2>



<p class="wp-block-paragraph">RFC 2217 is a telnet-family protocol from the era of trusted networks: in the form these recipes use it, the traffic — data and serial settings alike — crosses the network <strong>unencrypted</strong>, and the server side has no meaningful authentication. Treat TCP 7000 like a serial cable anyone on the path can unplug or splice. Run it on a LAN you trust, or inside a VPN tunnel; do not expose the listening port to the internet. Note also that the plain server recipe listens without restricting which interface or which callers are accepted — the wrapper&#8217;s <code>--interface</code> option can bind it to a specific adapter, and your firewall rules should assume that anything on the network that can reach the port can use the device behind it until you have deliberately narrowed that down. For the same reason, think before sharing a port attached to anything safety- or security-relevant: whoever can reach the port can drive the device.</p>



<h2 class="wp-block-heading">Alternatives, honestly ranked</h2>



<ul class="wp-block-list">
<li><strong>HW VSP3</strong> — a free single-port virtual serial port redirector from HW group, if all you need is one port over Ethernet and you prefer a dedicated tool to a wrapper script. The product is in run-out, but the free single-port version still covers the simple redirector case.</li>



<li><strong>Plain com2tcp</strong> — if the far end does not speak RFC 2217 and you only need raw bytes bridged, the simpler redirector in our <a href="/com2tcp-guide/">com2tcp guide</a> has fewer moving parts.</li>



<li><strong>A dedicated serial device server</strong> — when the “server computer” should not have to be a PC left running at all, a small hardware box puts the serial port on the network permanently; see <a href="/go/amazon-device-server" rel="sponsored nofollow">serial device servers on Amazon</a> (sponsored). This is the one commercial step-up that genuinely changes the setup rather than just re-skinning it.</li>
</ul>



<p class="wp-block-paragraph">Between the two recipes above you have the complete RFC 2217 pattern the project supports: publish with <code>com2tcp-rfc2217 &lt;port&gt; &lt;tcp port&gt;</code>, consume with a virtual pair and the matching client command. For the sibling jobs — sharing one port between several local applications, or bridging without RFC 2217 — see <a href="/share-gps-multiple-apps/">GPS sharing with hub4com</a> and the <a href="/split-serial-port/">port splitting guide</a>.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Can You Use com0com at Work? Commercial Use, GPLv2 and Signing</title>
		<link>https://com0com.com/com0com-commercial-use/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:30:00 +0000</pubDate>
				<category><![CDATA[Comparisons & Buying]]></category>
		<guid isPermaLink="false">https://com0com.com/com0com-commercial-use/</guid>

					<description><![CDATA[Somewhere between &#8220;this free tool is perfect for the test bench&#8221; and an IT review, every com0com user in a company asks the same question: are we even allowed to use this at work? The question bundles three different ones — a licensing question, a security-policy question, and a support question — and they have...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Somewhere between &#8220;this free tool is perfect for the test bench&#8221; and an IT review, every com0com user in a company asks the same question: are we even allowed to use this at work? The question bundles three different ones — a licensing question, a security-policy question, and a support question — and they have three different answers. Untangled: <strong>the license is the easy part. Signing policy is the hard part. Support is the part nobody wants to say out loud.</strong></p>
<h2>The license question: GPLv2 permits commercial use</h2>
<p>com0com is released under the GNU General Public License v2. A property <em>of that license</em> — stated here as a fact about GPLv2, not as a claim the com0com project itself has made about its own product — is that running the software is unrestricted: the GPL places no field-of-use limits, so using it inside a company, on production-adjacent test rigs, in a commercial product&#8217;s development pipeline, is permitted, and no licence fee exists. The project&#8217;s SourceForge presence carries a 4.4/5 rating across 64 reviews from exactly the mixed hobbyist-and-professional crowd you&#8217;d expect.</p>
<p>The obligations in GPLv2 attach to <em>distribution</em>, not use. Keep com0com inside your organisation and nothing is triggered: install it on a hundred lab PCs and the license asks nothing of you. Redistribute it — bundle the driver into a product you ship, hand it to customers as part of a deliverable — and GPL duties arrive with it: the license text rides along, source must be available to recipients, and your own combined-work analysis needs a lawyer, not a blog post. So: this page is a plain-language orientation, <strong>not legal advice</strong>; if redistribution is your scenario, your counsel reviews it, and the review is short because GPLv2 is one of the most litigated-over and best-understood licenses in existence.</p>
<p>One bookkeeping habit makes all of this cheaper next time: whatever the outcome, file the evidence. Keep the license text, the SourceForge download source and the packages&#8217; SHA-256 checksums (published on the <a href="/download/">download page</a>) in your software inventory next to the approval. Audits do not ask whether a tool felt respectable in the meeting; they ask what was installed, from where, under which license, and the team that can answer in one email is the team whose free tools never become a finding.</p>
<h2>The real blocker #1: your signing policy</h2>
<p>None of the above gets the driver loaded. com0com&#8217;s driver is test-signed; the SourceForge signed package relies on a legacy CyberCircuits cross-signature that modern Windows honours only in narrowing exceptions. In a managed estate this plays out predictably: on some machines the signed package installs and the conversation ends; on others you meet <a href="/fix-com0com-code-52/">Code 52</a>, and the remaining free route is Test Mode.</p>
<p>Test Mode is where enterprise conversations actually die. Enabling test signing lowers the integrity bar for the entire machine — any test-signed driver, not just this one — and leaves a permanent desktop watermark announcing the fact. Security teams reject it on sight, and they are right to: a workaround that is acceptable on a hobbyist&#8217;s bench PC is a policy violation on a machine touching production data. Add the <a href="/com0com-secure-boot/">Secure Boot reality</a> — Secure Boot policy flatly blocks test signing on many builds — and the honest summary is: in a locked-down estate, com0com works exactly where the signed package happens to load, and IT cannot promise you more than that.</p>
<h2>The real blocker #2: there is no vendor</h2>
<p>com0com&#8217;s last release is 3.0.0.0, from 2012. There is no company, no support contract, no security contact, no SLA, nobody to name in your risk register under &#8220;supplier&#8221;. Procurement frameworks that happily approve GPL software still stumble here, because the question they ask is not &#8220;is it legal&#8221; but &#8220;who answers when it breaks&#8221;. For a lab tool, &#8220;the team does&#8221; is often an acceptable answer. For anything customer-facing or line-stopping, it frequently is not — and no amount of the software being excellent changes the org chart.</p>
<h2>Your three real paths</h2>
<ul>
<li><strong>Path 1 — com0com where it loads.</strong> Try the signed package on your target machines. Where it installs, you have the best free pair driver in existence, legally clean for internal use, and the project is over. Document the machine list; the ones that fail go to path 2 or 3.</li>
<li><strong>Path 2 — a commercially signed driver.</strong> Where signing policy wins, buy the signature. Eltima&#8217;s Virtual Serial Port Driver is the market&#8217;s standard answer (proper Microsoft signature, vendor support, $89.95/$199.95 as of October 2026 — see <a href="/com0com-vs-eltima-vspd/">the full comparison</a> for what the money does and does not buy): <a href="/go/eltima-vspd" rel="sponsored nofollow">Eltima Virtual Serial Port Driver</a> (sponsored). For estates, this converts an argument with the security team into a purchase order, which is why it is the common ending to this story.</li>
<li><strong>Path 3 — take serial off the PC entirely.</strong> For shared or infrastructure-grade needs, a serial device server puts the port on the network under your control, and the PC side becomes ordinary networking or a vendor redirector: <a href="/go/amazon-device-server" rel="sponsored nofollow">serial device servers on Amazon</a> (sponsored). This is the architecture industrial IT actually standardises on, and our <a href="/virtual-serial-port-windows-server/">Windows Server guide</a> explains why servers push you here.</li>
</ul>
<h2>The security review, question by question</h2>
<p>When this lands on a security team&#8217;s desk, the interrogation follows a script, and it is better to arrive with the answers written down. <strong>&#8220;Is the driver signed?&#8221;</strong> — test-signed, with a community package carrying a legacy CyberCircuits cross-signature that some Windows 11 machines accept under pre-2015 certificate exceptions and others reject with Code 52; there is no Microsoft-programme-signed build, and pretending otherwise in the ticket will be discovered at the first test. <strong>&#8220;Who maintains it, and how fast do they patch?&#8221;</strong> — nobody; the code has been final since 2012, which cuts both ways: no churn and no surprise updates, and equally no response if a vulnerability is ever identified in it. <strong>&#8220;Can we inspect it?&#8221;</strong> — yes, unusually for this category: the source is published under GPLv2, and your engineers can read the very driver they are approving, a point genuinely in com0com&#8217;s favour that proprietary alternatives cannot match. <strong>&#8220;What is our exit?&#8221;</strong> — pairs are recreated in a replacement tool in minutes; applications address ports by COM name and never knew which driver manufactured them, so migration risk is low and reversible. Teams that walk in with those four answers prepared tend to walk out with an approval scoped to lab and development machines — which is, not coincidentally, the correct scope.</p>
<p>One more line belongs in the ticket even though nobody asks for it: the <em>workaround half-life</em>. Approving com0com &#8220;with Test Mode where needed&#8221; approves a permanent weakening of specific machines, and that exception will be rediscovered, out of context, at every future audit. Approving it &#8220;only where the signed package loads&#8221; is a self-limiting policy that ages well. The difference between those two sentences is the difference between a tool decision and a future finding.</p>
<h2>Contractors, customer sites and other people&#8217;s machines</h2>
<p>One scenario deserves its own paragraph: your software, or your engineers, working on machines you do not own — a customer&#8217;s plant, a partner&#8217;s lab. There, even a legally impeccable GPL tool meets a harder room: their signing policy, their audit, their change freeze. The professional pattern is to arrive with the commercial option already evaluated — a signed driver you can name, price and procure (<a href="/com0com-alternatives/">the alternatives survey</a>) — and let the customer choose which column of their risk register the installation lands in. Offering only the free tool reads as unprepared; offering both reads as engineering.</p>
<h2>The one-paragraph answer, for your IT ticket</h2>
<p>com0com is GPLv2 open source; internal commercial use is permitted by the license and costs nothing; the project itself makes no support or Windows 11 compatibility commitments and has been unmaintained since 2012; deployment is bounded by driver-signing policy, not law. Approve it for lab and development machines where the signed package loads, and budget a commercial signed driver or a device server anywhere policy, Secure Boot, or a support requirement says no. That paragraph has closed this question in more organisations than any feature matrix ever will.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Run Legacy Serial Software on Windows 11 With a Virtual COM Port Pair</title>
		<link>https://com0com.com/legacy-serial-software-windows-11/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:30:00 +0000</pubDate>
				<category><![CDATA[Use Cases]]></category>
		<guid isPermaLink="false">https://com0com.com/legacy-serial-software-windows-11/</guid>

					<description><![CDATA[Plenty of serial software outlived the serial port. Industrial configuration tools, instrument utilities, data loggers and machine interfaces from the Windows XP era — some from earlier — still run fine on Windows 11, except for one thing: they open COM1 or COM2, and the modern PC has no such hardware. A com0com pair manufactures...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Plenty of serial software outlived the serial port. Industrial configuration tools, instrument utilities, data loggers and machine interfaces from the Windows XP era — some from earlier — still run fine on Windows 11, except for one thing: they open COM1 or COM2, and the modern PC has no such hardware. A com0com pair manufactures the missing port in software. The legacy program opens one end under a name it understands, and a modern program on the other end plays the role of the device or machine it expects to talk to. This guide covers the pattern, the setting that timing-sensitive old software usually needs, and — plainly — the class of old software this cannot save.</p>



<h2 class="wp-block-heading">The pattern: old app on one end, the present day on the other</h2>



<p class="wp-block-paragraph">Nothing about the setup is legacy-specific at the driver level: create a pair (the <a href="/create-virtual-com-port-pair/">first-pair guide</a>), rename it (below), install the driver with the signing realities of modern Windows in mind (the <a href="/install-com0com-windows-11/">installation guide</a> is the honest version of that story). What differs is the casting. The legacy application takes one end and believes, completely, that it is talking to hardware. The other end is staffed by the modern world: a simulator of the device the old program expects, a gateway program that forwards the conversation to a network service or a present-day database, or simply a terminal window where you play the device by hand while you learn what the old program sends. The general fake-device workflow is developed in <a href="/test-serial-app-without-hardware/">testing a serial app without the hardware</a>; here the &#8216;app under test&#8217; just happens to be older than some of its users.</p>



<h2 class="wp-block-heading">Give the old program a name it understands</h2>



<p class="wp-block-paragraph">Legacy software is usually stricter about port names than modern software: fixed lists offering COM1 through COM4 are common, and a port called CNCA0 is simply not a thing its world contains. Rename the pair&#8217;s legacy end into that world:</p>



<pre class="wp-block-code"><code>command&gt; change CNCA0 PortName=COM2
command&gt; change CNCB0 PortName=COM11</code></pre>



<p class="wp-block-paragraph">Choosing a low number such as COM2 for the legacy end matches what old port pickers offer (renaming to an unused number — check Device Manager for what is taken — and the Ports class form for programs that enumerate devices rather than names, are both in the <a href="/rename-com0com-port/">rename guide</a>). The modern end keeps a high, unambiguous number so nothing else on the system collides with it.</p>



<h2 class="wp-block-heading">Baud-rate emulation: the setting old software usually needs</h2>



<p class="wp-block-paragraph">Old programs were written against physics: at 9600 baud a character takes about a millisecond, replies take as long as they take, and timeouts and pacing delays in the code quietly assume that world. A virtual pair breaks the assumption by default — com0com moves data as fast as it can, because baud-rate emulation is off until you ask for it (the official ReadMe: with emulation off, &#8216;data is always transferred at the same speed&#8217;). To legacy software that can look like a device answering impossibly fast, buffers filling instantly, or handshake timing that never settles. The remedy is one command per direction:</p>



<pre class="wp-block-code"><code>command&gt; change CNCA0 EmuBR=yes
command&gt; change CNCB0 EmuBR=yes</code></pre>



<p class="wp-block-paragraph">With EmuBR on, the pair paces traffic at the baud rate the programs set, and old timing assumptions become true again. The companion setting lives next door: if the old program seems to hang at startup or old characters leak into a new session, that is the receive-overrun behaviour explained in <a href="/com0com-hangs-buffer-overrun/">com0com hangs and leftover characters</a>. Between the rename, EmuBR and EmuOverrun, most &#8216;it almost works&#8217; legacy setups become simply &#8216;it works&#8217;.</p>



<h2 class="wp-block-heading">Staffing the other end: who plays the device?</h2>



<p class="wp-block-paragraph">The legacy program is fixed; the partner on the modern end is your choice, and the right choice depends on what the old setup was for. If the device still exists and works, the partner can be a bridge: hub4com (introduced in the <a href="/hub4com-guide/">hub4com guide</a>) can route between a real port and the virtual pair, putting the legacy program and the physical device back in conversation with a modern PC in the middle. If the device is gone, the partner is a simulator — a small script answering the old program&#8217;s polls with plausible data, as in the fake-device workflow — and the old program becomes a viewer for simulated or imported data. And if the goal is migration rather than preservation, the partner can be a logger: record everything the legacy program sends and expects, because that recording is the specification for its replacement. Decide which of the three you are doing before wiring anything; the pair is the same in all of them, but the work is not.</p>



<h2 class="wp-block-heading">The DOS-era case, described honestly</h2>



<p class="wp-block-paragraph">Software from the DOS era is a step further removed: those programs ran in a DOS environment and expected a DOS COM port. The working arrangement today is two layers, not one. An emulator such as DOSBox provides the DOS environment and can map the DOS program&#8217;s COM port through to a serial device on the host — that mapping concept is the emulator&#8217;s documented job: the DOS program believes it owns COM1, and the emulator delivers its traffic to the host-side port you designate. Make that host-side port one end of a com0com pair, and the other end can be your modern partner program, exactly as above. What this guide deliberately does not do is quote emulator configuration lines from memory: the emulator&#8217;s own documentation is the authority for its serial settings, and they differ between emulator variants. The com0com half — pair, name, EmuBR — is the half this site can vouch for, and it is unchanged.</p>



<h2 class="wp-block-heading">The honest limits: what a virtual port cannot do</h2>



<ul class="wp-block-list">
<li><strong>Software that probes real UART hardware will not work.</strong> Some very old programs bypass the operating system and talk to the serial chip&#8217;s hardware registers at its classic I/O addresses. There is no chip behind a virtual port and nothing at those addresses to answer, so such programs fail no matter how the pair is configured. This is a property of how they were written, not a setting you missed.</li>



<li><strong>The program itself must run first.</strong> A virtual port fixes the missing port; it does not fix a program that cannot run on Windows 11 at all. Get the application starting and looking for its port — with compatibility settings or an emulator where needed — and only then does this guide&#8217;s pattern apply.</li>



<li><strong>Timing is approximated, not recreated.</strong> EmuBR paces the data stream at the set baud rate, but interrupt behaviour and the fine timing of physical hardware are not reproduced. Software that merely prefers realistic pacing is served; software that measures hardware timing precisely is not.</li>



<li><strong>Control lines are emulated.</strong> The pair models modem signals in software. A legacy program that reads DSR or CTS state gets the emulated state — usually what it needs — but nothing physical is asserted anywhere, which matters if the far side was supposed to be real hardware rather than a partner program.</li>
</ul>



<p class="wp-block-paragraph">Within those limits, the pattern rescues a surprising amount of working software: if the program runs on Windows 11 and talks through a named COM port, a renamed pair end plus a patient partner program gives it a second life — and the device it once drove can retire, or be simulated, on the other end of the pair. When the setup misbehaves, work the symptoms from the <a href="/com0com-troubleshooting/">troubleshooting hub</a> rather than reinstalling anything: on a system this carefully arranged, the fault is almost always a name, a setting, or a buffer — all three are five-minute fixes once identified.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>USB to Serial Adapter Buying Guide: FTDI, Prolific, CH340 and the Clone Trap</title>
		<link>https://com0com.com/usb-to-serial-adapter-guide/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:00:00 +0000</pubDate>
				<category><![CDATA[Comparisons & Buying]]></category>
		<guid isPermaLink="false">https://com0com.com/usb-to-serial-adapter-guide/</guid>

					<description><![CDATA[Every USB-to-serial adapter looks identical in the product photo: a USB plug, a DB9, a translucent blue shell. The difference between the one that works for a decade and the one that generates a weekend of Device Manager archaeology is a chip you cannot see and a driver story nobody prints on the box. This...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Every USB-to-serial adapter looks identical in the product photo: a USB plug, a DB9, a translucent blue shell. The difference between the one that works for a decade and the one that generates a weekend of Device Manager archaeology is a chip you cannot see and a driver story nobody prints on the box. This guide is the chipset truth, the cable questions that actually matter, and a checklist for the hardest case — keeping legacy industrial equipment alive. It assumes you already know you need hardware; if both ends of your conversation live on one PC, you want <a href="/virtual-serial-port/">virtual ports</a> instead, and they&#8217;re free.</p>
<h2>The chipset landscape, honestly</h2>
<p><strong>FTDI</strong> is the safe answer. Genuine FTDI chips (the FT232 family is the household name) have the most painless driver story in the business: drivers are mature, come through official channels including Windows Update, and the chips behave identically decade after decade — which is why instrument makers build them in. You pay a premium over no-name adapters, and it is the premium this whole guide exists to justify. One caution travels with the brand: FTDI&#8217;s popularity made it a counterfeiting target, so buy through reputable sellers rather than the absolute cheapest listing.</p>
<p><strong>Prolific</strong> is where the famous pain lives, and precision matters here. Prolific&#8217;s own current chips are fine. The disaster is the flood of cloned PL2303 chips in bargain adapters: Prolific&#8217;s official drivers detect non-genuine silicon and refuse it, which is why the internet is full of &#8220;Prolific adapter stopped working after an update&#8221; stories. The rule that falls out of this: <strong>cheap no-name adapters with cloned chips are the number one cause of driver pain in this entire category</strong> — not Windows, not your software. A genuine-Prolific adapter from a named vendor is a legitimate mid-priced choice; a bargain-bin mystery cable is a lottery ticket.</p>
<p><strong>CH340</strong> (from WCH) is the honest budget chip. It is the silicon inside countless Arduino-compatible boards and low-cost adapters; official drivers exist from WCH, Windows installs are uneventful, and for ordinary data rates and tolerant software it simply works. What you give up versus FTDI is the deep track record with fussy legacy software and exotic baud rates. Silicon Labs&#8217; CP210x family sits in the same respectable tier — common inside equipment, properly supported, rarely the villain of anyone&#8217;s story.</p>
<h2>Null-modem vs straight-through: the cable is part of the adapter decision</h2>
<p>A USB-to-serial adapter presents itself as a DTE — a computer personality. Two DTEs cannot talk over a straight cable: both transmit on the same pin. So if your target is another computer or a device wired as DTE, you need the transmit/receive crossover somewhere: a null-modem cable or adapter in series with your USB adapter (the full explanation and the two-minute link test are in <a href="/virtual-null-modem-cable/">null-modem cable vs virtual null modem</a>). If your target is a modem-style device (DCE) — most instruments, scales, and industrial gear — straight-through is correct and a null-modem cable will produce eerie silence. Check the device manual for the word &#8220;null modem&#8221;; when the manual is lost, the two-minute terminal test settles it empirically.</p>
<h2>RS-232 vs RS-485: different electricity, not different plugs</h2>
<p>Buyers regularly purchase one expecting the other. RS-232 is single-ended, one device per port, short-haul — the PC classic. RS-485 is differential, multi-drop, long-distance, and the fieldbus of the industrial world (Modbus RTU runs on it; our <a href="/modbus-rtu-simulation/">Modbus simulation guide</a> covers the protocol side). A USB-to-RS-485 converter is a different product from a USB-to-RS-232 adapter with the same-shaped shell, and no driver on earth converts one into the other. For 485 work, prefer converters with proper termination/biasing options and galvanic isolation if the two ends live on different power domains — factory floors punish optimism here.</p>
<h2>Before you buy for legacy industrial gear</h2>
<ul>
<li><strong>True RS-232 levels vs TTL.</strong> Some &#8220;serial&#8221; devices speak TTL-level UART (0–3.3/5 V), not RS-232&#8217;s bipolar signalling. A standard adapter will not hurt them, but it will never talk to them either; those need a TTL adapter, often a bare board. Check the manual for &#8220;TTL&#8221; or voltage levels before anything else.</li>
<li><strong>Handshake lines.</strong> Old equipment frequently refuses to communicate until it sees DTR/DSR or RTS/CTS behave. Confirm your adapter breaks out and correctly drives the full line set — most decent ones do; converter dongles that carry only TX/RX/GND are for consoles, not for picky machinery.</li>
<li><strong>Connector reality.</strong> DB9 on the adapter is standard; the machine may be DB25, RJ45, or a terminal block. Adapters and gender changers are cheap; discovering the mismatch on a ladder is not.</li>
<li><strong>Baud and timing oddities.</strong> Legacy gear with unusual baud rates or strict timing is where genuine-chipset adapters earn their price and where virtual-pair baud emulation (com0com&#8217;s EmuBR) helps on the software side.</li>
<li><strong>Driver support for your Windows.</strong> The whole chipset section above, compressed: if the vendor cannot point you to a current, signed, official driver, the adapter is e-waste with good packaging.</li>
</ul>
<p>Two boring specifications deserve their thirty seconds. <strong>Activity LEDs</strong> — a TX/RX blink pair on the adapter body — sound like decoration and are in fact the cheapest serial debugger ever sold: half of all &#8220;my device won&#8217;t talk&#8221; cases resolve into &#8220;nothing is transmitting&#8221; versus &#8220;it transmits and nothing answers&#8221;, and the LEDs tell you which before any software is opened. <strong>Cable length and retention</strong> matter at the margins: USB&#8217;s practical limits mean the adapter generally lives near the PC with the serial run doing the travelling (RS-232 is rated for modest distances and often works well beyond them at low baud), and on anything that moves or vibrates, a latching or screwed connection outperforms good intentions.</p>
<h2>Reading a listing like an engineer</h2>
<p>Product pages for adapters are a genre of fiction, but a decipherable one. The details that predict your experience, in the order to look for them: <strong>the chipset, named explicitly</strong> — &#8220;FT232&#8221; or &#8220;CH340&#8221; in the specifications, not &#8220;high-speed chip&#8221; in the headline; a listing that hides the silicon is telling you it is cloned. <strong>The full pin set</strong> — TX, RX, ground and the handshake lines broken out, which picky legacy devices will demand. <strong>Isolation and surge protection</strong>, offered on industrial-grade models and worth real money between buildings or power domains. <strong>Cable retention and strain relief</strong>, because the most common field failure is mechanical, and a screw-locked DB9 beats a friction fit on anything that vibrates. <strong>A driver link on the vendor&#8217;s own site</strong>, current and signed — check it before the package arrives, not after. Listings that score well on those five lines are boring in exactly the way infrastructure should be.</p>
<h2>Where the adapter meets the virtual world</h2>
<p>The most useful setups in this whole field are hybrids. A real device arrives on a USB adapter as, say, COM5; two programs need it; so hub4com fans COM5 out into com0com pairs, and both programs are satisfied — the pattern behind our <a href="/share-gps-multiple-apps/">GPS sharing recipe</a> and the <a href="/split-serial-port/">port splitting guide</a>. The buying consequence is easy to miss: in a hybrid setup, the adapter is the single physical point of failure for every program downstream, which argues for buying the adapter one tier better than the application seems to need. A small saving on the adapter is expensive on the day it takes three programs down with it.</p>
<p>One more population deserves a sentence: console ports. The USB-to-serial adapter&#8217;s other day job is talking to network switches, routers and headless machines whose console is a serial port — often with vendor-specific pinouts hiding behind an RJ45 jack. The chipset rules are identical, the cable question belongs to the console cable, and a known-good adapter in the laptop bag is the difference between a configuration session and a very quiet afternoon in a cold aisle.</p>
<h2>The shortlist</h2>
<p>We link searches rather than specific listings, because adapter stock and branding churn constantly while the chipset advice does not: <a href="/go/amazon-usb-serial" rel="sponsored nofollow">USB-to-serial adapters on Amazon</a>, <a href="/go/amazon-null-modem" rel="sponsored nofollow">null-modem cables and adapters on Amazon</a>, and <a href="/go/amazon-rs485" rel="sponsored nofollow">USB-to-RS-485 converters on Amazon</a> (all sponsored). Filter by the chipset first — FTDI for the gear you cannot afford to fight, CH340 or genuine Prolific for the bench — and treat any listing that refuses to name its chip as having named it.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>com2tcp Guide: Put a COM Port on the Network, the Supported Way</title>
		<link>https://com0com.com/com2tcp-guide/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:00:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/com2tcp-guide/</guid>

					<description><![CDATA[com2tcp is the oldest network tool in the com0com project: a COM port to TCP redirector that lets a serial application talk across a network — to a TCP/IP host, or to a real serial port attached to another computer — as easily as if the port were local. If you have found old download...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">com2tcp is the oldest network tool in the com0com project: a <strong>COM port to TCP redirector</strong> that lets a serial application talk across a network — to a TCP/IP host, or to a real serial port attached to another computer — as easily as if the port were local. If you have found old download pages and forum posts recommending it, this guide explains what com2tcp was, what became of it, and how you actually use it today. The short version: you do not download com2tcp any more. It ships inside <a href="/hub4com/">hub4com</a>, and understanding why will save you from running a 2007 binary on a modern network.</p>



<h2 class="wp-block-heading">The honest history: 1.3.0.0 was the last standalone release</h2>



<p class="wp-block-paragraph">com2tcp&#8217;s standalone releases ended at <strong>version 1.3.0.0 in 2007</strong>. Two years later, hub4com 2.0.0.0 (March 2009) records in its own changelog: “Implemented all com2tcp functionality.” From that release on, the redirector lived inside the hub, and the hub4com ReadMe describes the modern arrangement precisely:</p>



<p class="wp-block-paragraph">“com2tcp.bat is a wrapper to hub4com.exe. It works very similar to the ‘COM port to TCP redirector’ (com2tcp). It supports all com2tcp&#8217;s options.” The batch file in hub4com&#8217;s <code>examples</code> folder translates a classic com2tcp-style command line into the equivalent hub4com invocation, filters and all. Same project, same author (Vyacheslav Frolov), same options — maintained as part of the hub package (hub4com 2.1.0.0, 2012) rather than as a separate fossil.</p>



<h2 class="wp-block-heading">What a redirector actually does</h2>



<p class="wp-block-paragraph">A redirector is a bridge with a serial end and a network end. Data arriving at the COM port is sent out over a TCP connection; data arriving from the network is delivered to the COM port. An application that only knows how to open COM2 can thereby talk to a service on another continent, or a device attached to a PC in another building, without knowing networks exist. The ReadMe&#8217;s example is deliberately retro — an MS-DOS terminal program from Norton Commander, TERM95.EXE, used to reach a telnet server — because that is the enduring use case: old software, new networks.</p>



<h2 class="wp-block-heading">The ReadMe recipe: an old terminal program meets telnet</h2>



<ol class="wp-block-list">
<li><strong>Create a virtual pair</strong> whose friendly end the application will open. The ReadMe creates COM2 paired with CNCB0: <code>command&gt; install 0 PortName=COM2 -</code> (the <a href="/setupc-commands/">setupc reference</a> explains the syntax).</li>



<li><strong>Start the redirector on the pair&#8217;s inner end</strong>, pointed at the telnet server — exactly as the ReadMe gives it:</li>
</ol>



<pre class="wp-block-code"><code>com2tcp --telnet \\.\CNCB0 your.telnet.server telnet</code></pre>



<ol class="wp-block-list">
<li><strong>Start the application on COM2.</strong> Everything it sends travels through the pair, through com2tcp&#8217;s wrapper, and out to the server; replies make the same trip back.</li>
</ol>



<p class="wp-block-paragraph">The <code>--telnet</code> option in that command is one of the options the batch file&#8217;s own usage text documents: “use Telnet protocol.” Its sibling <code>--terminal &lt;type&gt;</code> selects a terminal type (RFC 1091). Without <code>--telnet</code>, the bridge is a plain raw TCP connection — which is what most device and server work actually wants.</p>



<h2 class="wp-block-heading">Client mode and server mode</h2>



<p class="wp-block-paragraph">com2tcp.bat&#8217;s built-in usage (run it with <code>--help</code>) defines the two shapes the bridge can take:</p>



<ul class="wp-block-list">
<li><strong>Client mode:</strong> <code>com2tcp [options] \\.\&lt;com port&gt; &lt;host addr&gt; &lt;host port&gt;</code> — the redirector initiates the TCP connection to a listening host. This is the telnet example above, and the shape you use when the far end is a server.</li>



<li><strong>Server mode:</strong> <code>com2tcp [options] \\.\&lt;com port&gt; &lt;listen port&gt;</code> — the redirector listens on a local TCP port and bridges whoever connects to the COM port. This is how you publish a local serial device to the network in its simplest form.</li>
</ul>



<p class="wp-block-paragraph">The same usage text lists the line settings the wrapper accepts — <code>--baud</code> (default 19200), <code>--data</code> (default 8), <code>--parity</code> (default no) and <code>--stop</code> (default 1), each also accepting a “default” value meaning “use the port&#8217;s current settings” — plus two behavioural options worth knowing: <code>--ignore-dsr</code>, which stops the wrapper waiting for the DSR signal before connecting, and <code>--connect-dtr</code>, which ties the DTR signal to the connection state. On the client side, <code>--awak-seq</code> can hold the connection until a chosen wake-up sequence arrives from the port, and both modes accept <code>--interface</code> to choose which network interface the wrapper connects from or listens on — the sort of detail that matters on machines with both a wired and a wireless adapter. The full list is one command away: the batch file prints its complete usage, options and defaults whenever you run it with <code>--help</code>, and that built-in text — not a forum post — is the authority for what your copy accepts.</p>



<h2 class="wp-block-heading">Under the hood of the wrapper</h2>



<p class="wp-block-paragraph">It is worth knowing what the batch file actually does with your command line, because it explains the options above. com2tcp.bat does not contain a redirector; it assembles a hub4com command. Reading the script, it always adds a trace filter, and by default it adds a <em>pin2con</em> filter — a filter that ties the network connection to the port&#8217;s DSR signal, so the connection is made when the serial side signals readiness and dropped when that signal goes away. That is why <code>--ignore-dsr</code> exists: it removes the pin2con behaviour and makes the connection permanent for devices that never raise DSR. The wrapper also sets an automatic reconnect interval for the connection. None of this needs configuring for the standard recipes, but when a bridge connects and disconnects in a rhythm you did not expect, the DSR behaviour is the first place to look — and <code>--ignore-dsr</code> is the documented switch for it.</p>



<h2 class="wp-block-heading">com2tcp.bat or full hub4com?</h2>



<p class="wp-block-paragraph">Use <strong>com2tcp.bat</strong> when the job is one port to one network endpoint, in either direction. It is the redirector, with the redirector&#8217;s options, and nothing else to configure. Use <strong>hub4com directly</strong> when the job stops being a single bridge:</p>



<ul class="wp-block-list">
<li>More than two endpoints — one port feeding several applications or several ports (the <a href="/hub4com-guide/">hub guide</a> and the <a href="/share-gps-multiple-apps/">GPS sharing recipe</a>).</li>



<li>You need the stream modified on the way through — filters for modem pins, tracing, telnet handling.</li>



<li>You need <strong>RFC 2217</strong>, the protocol that carries serial settings and signals over the network properly. The ReadMe itself gives this advice: if com2tcp is what you need but you cannot find some required functionality — “for example RFC 2217 support” — “then try use hub4com instead.” In practice that means the sibling wrapper, covered in our <a href="/rfc2217-server-client/">RFC 2217 server and client guide</a>.</li>
</ul>



<h2 class="wp-block-heading">Getting it, and what to avoid</h2>



<p class="wp-block-paragraph">com2tcp.bat is in the <code>examples</code> folder of the hub4com 2.1.0.0 package — get it from the <a href="/hub4com/">hub4com hub page</a>, which publishes the package&#8217;s verified SHA-256 checksum, alongside the driver downloads on the <a href="/download/">download page</a>. The wrapper expects <code>hub4com.exe</code> to be findable (it adds its own folder to the path), so keep the batch files and the executable together as the package ships them.</p>



<p class="wp-block-paragraph">What to avoid: standalone “com2tcp” downloads from third-party software sites. At best they are the unmaintained 2007 binary, frozen before hub4com absorbed the functionality; at worst they are repackaged by people whose business is bundling. The project&#8217;s own distribution has everything those pages pretend to offer, in its maintained form. If your bridge misbehaves once running — a real port that receives nothing, a connection that drops — the hub&#8217;s own FAQ item on CTS handshaking (<code>--octs=off</code>) and the <a href="/com0com-troubleshooting/">troubleshooting hub</a> are the places to look next.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>com0com on Windows 10 (64-Bit): Installation and Signing Guide</title>
		<link>https://com0com.com/com0com-windows-10/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:00:00 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<guid isPermaLink="false">https://com0com.com/?p=551</guid>

					<description><![CDATA[com0com on Windows 10 sits in an awkward middle ground: the same 3.0.0.0 driver and the same signed package as Windows 11, but a signing landscape that changed halfway through Windows 10&#8217;s own life. Whether the driver loads on your Windows 10 PC depends on which side of the Windows 10 version 1607 policy change...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">com0com on Windows 10 sits in an awkward middle ground: the same 3.0.0.0 driver and the same signed package as Windows 11, but a signing landscape that changed halfway through Windows 10&#8217;s own life. Whether the driver loads on your Windows 10 PC depends on which side of the Windows 10 version 1607 policy change your installation effectively falls — and on Secure Boot. This guide explains the Windows 10 specifics, how they differ from Windows 11, and what to do in each case.</p>



<p class="wp-block-paragraph">New to com0com entirely? It is the free, GPLv2 null-modem emulator by Vyacheslav Frolov: a kernel-mode driver that creates virtual COM port pairs so two applications can exchange serial data without hardware. The packages, checksums and mirrors are on the <a href="/download/">download page</a>; the rest of this guide assumes that is where you got the files.</p>



<h2 class="wp-block-heading">The one thing to understand: the 1607 divide</h2>



<p class="wp-block-paragraph">Before Windows 10 version 1607 (2016), a kernel driver signed with a recognised cross-signing certificate loaded normally. From 1607 onwards, <em>new installations</em> of Windows 10 only load kernel drivers signed through Microsoft&#8217;s Dev Portal — with exceptions. Cross-signed drivers can still load when, among other cases, the certificate was issued before 29 July 2015, or the PC was <em>upgraded</em> from an earlier Windows version rather than freshly installed, or Secure Boot is off. com0com&#8217;s signed package uses a legacy cross-signed certificate (publisher: CyberCircuits) from before that 2015 cut-off, which is why it still loads on many real-world Windows 10 machines — especially long-lived, upgraded installations — and fails with Code 52 on others, typically fresh installs with Secure Boot on.</p>



<p class="wp-block-paragraph">Practical translation: two identical-looking Windows 10 PCs can give you opposite results, and both results are &#8220;normal&#8221;. Do not copy a stranger&#8217;s success or failure as a prediction for your machine — just try the signed package and read the outcome. This is also why forum advice about com0com on Windows 10 contradicts itself so cheerfully: almost everyone is reporting the truth about one machine and one install history.</p>



<h2 class="wp-block-heading">Installing on Windows 10 (64-bit)</h2>



<ol class="wp-block-list">
<li>Download <strong>com0com-3.0.0.0-i386-and-x64-signed.zip</strong> from the <a href="/download/">download page</a> and verify the SHA-256 shown there with <code>Get-FileHash</code> in PowerShell.</li>



<li>Extract it and run <strong>Setup_com0com_v3.0.0.0_W7_x64_signed.exe</strong> as administrator. Yes, the name says W7 — the installers were packaged in the Windows 7 era, and this signed 3.0.0.0 package is the newest that exists. The x86 installer is only for the rare 32-bit Windows 10.</li>



<li>Approve the Windows Security prompt for the publisher <strong>CyberCircuits</strong> if it appears — that is the expected signer of this package.</li>



<li>Check Device Manager: a good install shows the com0com emulator and the default CNCA0/CNCB0 pair with no warning icon. A yellow icon with <em>Code 52</em> in the properties means Windows rejected the signature — continue to the Test Mode section.</li>



<li>Create and rename your ports: the <a href="/create-virtual-com-port-pair/">first-pair walkthrough</a> and the <a href="/rename-com0com-port/">renaming guide</a> apply unchanged on Windows 10.</li>
</ol>



<h2 class="wp-block-heading">Test Mode on Windows 10</h2>



<p class="wp-block-paragraph">If the signed package is rejected, the project&#8217;s own documented answer is test signing: the official ReadMe states that the driver is test-signed, that the x64 build will not load by default, and that you enable test signing by running, from an elevated command prompt:</p>



<pre class="wp-block-code"><code>bcdedit -set TESTSIGNING ON</code></pre>



<p class="wp-block-paragraph">…then rebooting and installing (the unsigned package works under test signing too). Windows shows a &#8220;Test Mode&#8221; watermark on the desktop while the setting is on — that watermark <em>is</em> the setting being active, not a separate fault, and turning test signing off with <code>bcdedit -set TESTSIGNING OFF</code> and a reboot makes the watermark disappear <em>and</em> stops the test-signed driver from loading. There is no supported way to keep the driver and lose the watermark. Two honest cautions, both straight from the project&#8217;s own documentation and Microsoft&#8217;s policy: the ReadMe itself warns that enabling test signing impairs your computer&#8217;s security, and on Secure Boot machines Windows may refuse to change the setting at all, because Secure Boot policy protects it. The <a href="/faq/">FAQ</a> expands on both points.</p>



<h2 class="wp-block-heading">Windows 10 vs Windows 11: what actually differs</h2>



<ul class="wp-block-list">
<li><strong>Same driver, same package.</strong> Nothing about com0com differs between the two systems; every difference below is Windows policy and defaults, not com0com.</li>



<li><strong>More upgraded installs.</strong> A large share of Windows 10 machines arrived as upgrades from Windows 7 or 8.1, or were installed before later policy tightening — situations where the legacy cross-signed package is more likely to load directly.</li>



<li><strong>Secure Boot and Memory Integrity are less uniformly on.</strong> Newer Windows 11 PCs ship with Secure Boot and HVCI (Memory Integrity) enabled far more consistently, and HVCI gives old drivers a second reason to be refused. On Windows 10, Memory Integrity is worth checking manually in Windows Security if a signed install fails for no obvious reason.</li>



<li><strong>Same endgame.</strong> On a locked-down installation of either system — Secure Boot enforced, test signing blocked, policy managed — com0com cannot load, and a commercially Microsoft-signed tool is the realistic route. The comparison lives in the <a href="/virtual-serial-port/">virtual serial port guide</a>; the Windows-11-specific walkthrough, whose steps otherwise mirror this one, is the <a href="/install-com0com-windows-11/">Windows 11 installation guide</a>.</li>
</ul>



<h2 class="wp-block-heading">After a major Windows 10 feature update</h2>



<p class="wp-block-paragraph">One Windows 10 pattern is worth knowing in advance: the big twice-a-year feature updates of the Windows 10 era effectively reinstall Windows underneath your drivers. Occasionally a com0com installation that loaded happily for a year comes back from such an update with its pairs missing or a fresh Code 52. Nothing about com0com changed — the machine simply moved, policy-wise, closer to a fresh install. The recovery is boring and reliable: verify the driver state in Device Manager, reinstall the signed 3.0.0.0 package over the top (your pair configuration is normally preserved; <code>list</code> in <a href="/setupc-commands/">setupc</a> shows what survived), and, if the signature is now refused, use Test Mode as described above. Re-check your COM names afterwards with the <a href="/rename-com0com-port/">renaming guide</a>, because re-registration is exactly the moment a name can revert to CNCA/CNCB defaults.</p>



<h2 class="wp-block-heading">Upgrading from com0com 2.2.2.0</h2>



<p class="wp-block-paragraph">Plenty of Windows 10 test benches still run 2.2.2.0, the 2009 release. Upgrading to 3.0.0.0 is worth it for one feature alone: 3.0.0.0 introduced putting a port into the Windows Ports class via <code>PortName=COM#</code>, which is what makes virtual ports discoverable by ordinary applications. Do the upgrade cleanly rather than over the top:</p>



<ol class="wp-block-list">
<li>Note your existing pair names and settings (the <a href="/setupc-commands/">setupc</a> <code>list</code> command prints them).</li>



<li>Remove the old pairs and uninstall the old driver before installing 3.0.0.0, so no stale port registrations linger.</li>



<li>Install the signed 3.0.0.0 package as above, recreate your pairs, and re-apply your COM names.</li>



<li>If a COM number you used before now shows as taken by an invisible device, that is a leftover &#8220;ghost&#8221; reservation from the old install — the <a href="/faq/">FAQ</a> explains the short version, and picking a fresh number is always a valid workaround for virtual pairs.</li>
</ol>



<p class="wp-block-paragraph">That is the whole Windows 10 picture: try the signed package first, fall back to Test Mode with your eyes open about its security note and watermark, and do not waste hours hunting for &#8220;Windows 10 editions&#8221; of com0com offered elsewhere — there is only the one 3.0.0.0, shared by both systems. More practical walkthroughs, from first pair creation to final cleanup, are collected together in the <a href="/guides/">Guides archive</a>. If your reason for working through these steps is an old serial program you cannot replace, our guide to <a href="/legacy-serial-software-windows-11/">running legacy serial software on Windows 11</a> covers keeping that software working after an upgrade.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>LabVIEW and Virtual COM Ports: Test VISA Code Against a Simulated Instrument</title>
		<link>https://com0com.com/labview-virtual-com-port/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 06:30:00 +0000</pubDate>
				<category><![CDATA[Use Cases]]></category>
		<guid isPermaLink="false">https://com0com.com/labview-virtual-com-port/</guid>

					<description><![CDATA[LabVIEW serial code has the same test problem as every other serial code, with a graphical accent: the VI is finished, the instrument is not available, and a block diagram cannot be debugged against thin air. The fix is to remember what VISA actually opens — a COM port, not an instrument. Give LabVIEW one...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">LabVIEW serial code has the same test problem as every other serial code, with a graphical accent: the VI is finished, the instrument is not available, and a block diagram cannot be debugged against thin air. The fix is to remember what VISA actually opens — a COM port, not an instrument. Give LabVIEW one end of a com0com virtual pair, put a small simulated instrument on the other end, and your VISA reads and writes run against a partner that answers like the real hardware. This guide wires that up and names the two gotchas that account for nearly all failures.</p>



<h2 class="wp-block-heading">The shape of the setup</h2>



<p class="wp-block-paragraph">Three pieces, in data-flow order: your LabVIEW VI opens a VISA session to one end of the pair (COM11 in this guide). The com0com pair carries the bytes across. A responder program — a few lines in any language — listens on the other end (COM10) and plays the instrument: it receives your VI&#8217;s query and writes back the reply the real instrument would give. Nothing in the VI knows the difference, which is the entire point: the code under test is the production code, port name aside.</p>



<h2 class="wp-block-heading">Step 1: Create the pair and rename it — this step is not optional</h2>



<p class="wp-block-paragraph">Create the pair as in the <a href="/create-virtual-com-port-pair/">first-pair guide</a>, then rename both ends to COM numbers:</p>



<pre class="wp-block-code"><code>command&gt; change CNCA0 PortName=COM10
command&gt; change CNCB0 PortName=COM11</code></pre>



<p class="wp-block-paragraph">In LabVIEW work the rename matters more than anywhere else. VISA finds serial resources by scanning for ports, and a port still carrying its CNCA0 name can be invisible to that scan — the VI&#8217;s VISA resource control simply never offers it. Renaming to a COM number, and for stubborn cases putting the port into the Ports class with the <code>PortName=COM#</code> form, makes the virtual port enumerate exactly like a hardware port. The full reasoning and both forms are in the <a href="/rename-com0com-port/">rename guide</a>, and the symptom is catalogued in <a href="/com0com-port-not-recognized/">port not recognized</a>.</p>



<h2 class="wp-block-heading">Step 2: Check the port in NI MAX before opening LabVIEW</h2>



<p class="wp-block-paragraph">Open NI MAX (Measurement &amp; Automation Explorer) and look under <em>Devices and Interfaces</em> for the serial ports. The renamed virtual port appears there as a standard COM port, indistinguishable in the list from a hardware one — that listing is your proof that the Windows side and the VISA side can both see it. If it is missing, fix that here, not in the block diagram: it is a naming or driver issue (Step 1, or the <a href="/com0com-troubleshooting/">troubleshooting hub</a>), never a LabVIEW issue. While you are in MAX, its test panels give you a terminal-like way to open the port and send a string — useful in the next step to prove the responder before the VI is involved.</p>



<h2 class="wp-block-heading">Step 3: Put a simulated instrument on the other end</h2>



<p class="wp-block-paragraph">The responder&#8217;s contract is small: read a query, write the reply the instrument manual promises. If the instrument answers <code>*IDN?</code> with a manufacturer string, the responder does exactly that; if it streams measurement values after a trigger command, the responder sends a stored sample line. A minimal Python responder of about twenty lines — listening, matching the query, writing the canned reply — is built in the <a href="/python-pyserial-virtual-port/">pySerial virtual port guide</a>; run it on COM10 and it serves any VISA client, LabVIEW included. Prove this layer with NI MAX first: send the query from the test panel, watch the canned reply come back. Only then involve the block diagram, so that a failure afterwards is known to live in the VI.</p>



<h2 class="wp-block-heading">Step 4: Run the VI against the virtual instrument</h2>



<p class="wp-block-paragraph">In the VI, the serial flow is the standard VISA one: <strong>VISA Open</strong> on the resource name for COM11 (an ASRL resource for the port), the serial configuration your instrument expects (baud rate, data bits, parity, termination behaviour), then <strong>VISA Write</strong> for the query and <strong>VISA Read</strong> for the reply, and <strong>VISA Close</strong> at the end. Set the same line settings the responder assumes — as with any serial link, a mismatch produces framing garbage rather than an error message. Develop the parsing, error handling and state machine here, against the responder&#8217;s canned and deliberately misbehaving replies; the block diagram cannot tell that the instrument is a Python script, and your error clusters will light up in exactly the places the real instrument would eventually have provoked.</p>



<h2 class="wp-block-heading">Gotcha first, actually: termination characters</h2>



<p class="wp-block-paragraph">The most common &#8216;it almost works&#8217; in VISA serial work is a read that seems to hang although the responder swears it replied. Serial reads through VISA typically end in one of three ways: the requested byte count arrives, the read times out, or a termination character — conventionally the line feed — is received and ends the read early, which is how the standard serial configuration in LabVIEW is set up by default. If your simulated instrument&#8217;s canned replies do not end with the termination character your VI expects, the read waits for it until the timeout, every time, and the data you do see arrives a timeout late. Match the two: make the responder terminate replies the way the real instrument does (its manual states the terminator), and set the VI&#8217;s termination behaviour to expect exactly that. Half of all &#8216;the virtual port is slow&#8217; reports are this, on virtual and physical ports alike.</p>



<h2 class="wp-block-heading">Gotcha: leftover characters and buffer behaviour</h2>



<p class="wp-block-paragraph">One difference between the pair and a cable will eventually bite a test session: with the driver default, bytes written while the far end is closed are not thrown away — they wait in the buffer and are delivered when the port is next opened. In LabVIEW terms that can look like a stale reply arriving as the answer to a fresh query, or an instrument that &#8216;answers before being asked&#8217;. It is documented com0com behaviour with a documented remedy (enabling receive buffer overrun emulation on the receiving end), and it is explained with its sibling symptom, startup hangs, in <a href="/com0com-hangs-buffer-overrun/">com0com hangs and leftover characters</a>. Knowing it in advance converts a baffling afternoon into a two-minute fix.</p>



<h2 class="wp-block-heading">Structuring the work: driver VI below, tests above</h2>



<p class="wp-block-paragraph">One organisational habit keeps LabVIEW serial projects testable as they grow: keep the VISA session in a small driver VI of your own — open, configure, write-query, read-reply, close — and let the application VIs call it with a port name. Switching between the virtual instrument and the real one then changes one constant at the top level instead of hunting through block diagrams, and the same driver VI serves the bench prototype, the automated test and the deployed system. It also makes the simulated instrument reusable across projects: the responder script plus the pair convention (COM10 device side, COM11 application side, as used throughout this guide) can live in a shared repository that every LabVIEW project on the team points at.</p>



<h2 class="wp-block-heading">What you have proven, and the final step</h2>



<p class="wp-block-paragraph">Against the virtual instrument you have proven the VI: resource handling, queries, parsing, timeouts, error paths. You have not proven the instrument: its real reply timing, its flow-control expectations and its firmware&#8217;s eccentricities are all still its own. So the workflow ends where every honest virtual workflow ends — a final validation session against the real instrument on the real port, which in LabVIEW terms means changing the VISA resource constant and nothing else. If the setup itself is new to you, the general pattern behind this guide is laid out in <a href="/test-serial-app-without-hardware/">testing a serial app without the hardware</a>.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Share One GPS Receiver Between Multiple Apps With hub4com</title>
		<link>https://com0com.com/share-gps-multiple-apps/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 06:15:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/share-gps-multiple-apps/</guid>

					<description><![CDATA[A GPS receiver produces one stream of NMEA sentences on one COM port — and a Windows COM port can normally be opened by only one application at a time. So the chart software gets the position fix, and the logging program, the APRS client and the time-sync tool all get “port in use”. This...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A GPS receiver produces one stream of NMEA sentences on one COM port — and a Windows COM port can normally be opened by only one application at a time. So the chart software gets the position fix, and the logging program, the APRS client and the time-sync tool all get “port in use”. This is the exact problem the com0com project&#8217;s own documentation solves: the hub4com ReadMe&#8217;s “GPS hub” example is the canonical recipe, and this page walks through it step by step, in the ReadMe&#8217;s own commands.</p>



<p class="wp-block-paragraph">The idea in one line: the GPS stays connected to its real port, <a href="/hub4com/">hub4com</a> opens that port once and copies everything it receives to the inner ends of two com0com pairs, and each application opens the friendly outer end of its own pair. Nobody shares a port, because everybody gets a port of their own.</p>



<h2 class="wp-block-heading">What you need</h2>



<ul class="wp-block-list">
<li>A GPS receiver connected to a physical COM port — the ReadMe example uses <strong>COM1</strong>. A USB GPS appears as a COM port too; substitute whatever number Device Manager shows for your receiver.</li>



<li>com0com installed and working (the <a href="/install-com0com-windows-11/">installation guide</a> covers the driver, including the Windows 11 signing situation).</li>



<li>hub4com 2.1.0.0 from the <a href="/hub4com/">hub page</a> — a single console program, no installer.</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Create two pairs with friendly names</h2>



<p class="wp-block-paragraph">The ReadMe creates two pairs whose application-facing ends get real COM names (COM5 and COM6), while the hub-facing ends keep their default CNCB names. In the Setup Command Prompt (setupc), exactly as the ReadMe gives it:</p>



<pre class="wp-block-code"><code>command&gt; install 0 PortName=COM5 -
command&gt; install 1 PortName=COM6 -</code></pre>



<p class="wp-block-paragraph">Each command creates one pair. The first port of the pair is renamed to the COM name your applications will open; the dash tells setupc to leave the second port at its default name — CNCB0 for the first pair, CNCB1 for the second. The result is two pairs: COM5↔CNCB0 and COM6↔CNCB1. (The <a href="/setupc-commands/">setupc reference</a> explains the install syntax, and <a href="/rename-com0com-port/">the renaming guide</a> explains why applications need real COM names.)</p>



<h2 class="wp-block-heading">Step 2 — Start the hub</h2>



<p class="wp-block-paragraph">Now start hub4com on the real port and the two inner ends, exactly as the ReadMe does:</p>



<pre class="wp-block-code"><code>hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1</code></pre>



<p class="wp-block-paragraph">The ReadMe states the resulting data flow in plain words: “It will send data received from COM1 port to CNCB0 and CNCB1 ports and it will send data received from CNCB0 port to COM1 port.” In other words, the GPS stream is broadcast to both virtual ports, and the first virtual port also has a path back to the receiver. Leave the hub&#8217;s console window running — hub4com shares the port only while it runs.</p>



<h2 class="wp-block-heading">Step 3 — Point each application at its own port</h2>



<p class="wp-block-paragraph">Start the first GPS application on <strong>COM5</strong> and the second on <strong>COM6</strong>, as the ReadMe instructs. Both should immediately show live position data from the single receiver. The numbers 5 and 6 are the ReadMe&#8217;s example, not a requirement — if either number is already taken on your system (a Bluetooth stack or another adapter may hold it), pick any free numbers when you create the pairs and use those consistently in the applications; only the pairing of outer name to inner CNCB end matters, and setupc&#8217;s <code>list</code> command shows you the mapping if you lose track of it. Add a third application by creating a third pair the same way (outer end COM7, inner end CNCB2) and adding <code>\\.\CNCB2</code> to the hub command — the same fan-out pattern the ReadMe&#8217;s testing example uses with three pairs.</p>



<h2 class="wp-block-heading">The wiring, drawn out</h2>



<pre class="wp-block-code"><code>GPS receiver
    |  (real cable, physical port COM1)
    v
  COM1 ----&gt; hub4com ----&gt; CNCB0 ---- COM5 ----&gt; Chart software
                     |
                     +-----&gt; CNCB1 ---- COM6 ----&gt; Logger / APRS client
                     |
                     +-----&gt; CNCB2 ---- COM7 ----&gt; Third application (optional)</code></pre>



<p class="wp-block-paragraph">Read it left to right: one talker, one hub, one private virtual port per listener. The applications never see each other and never contend for COM1, because hub4com is the only program that ever opens it.</p>



<h2 class="wp-block-heading">Sharing etiquette: reading is free, writing is shared</h2>



<p class="wp-block-paragraph">NMEA output is a one-way broadcast, which is why GPS sharing works so well: any number of applications can <em>listen</em> without disturbing each other. Be more careful with applications that also <em>send</em> — configuration commands to the receiver, for instance. The ReadMe documents a return path from CNCB0 to COM1, so anything one application transmits can reach the receiver; two applications configuring the GPS at the same time will interleave their commands. Keep one writer and let the rest listen.</p>



<p class="wp-block-paragraph">One classic gotcha, straight from the hub4com ReadMe FAQ: if the real port seems to receive nothing through the hub, the cause is usually flow control — “by default hub4com use CTS handshaking on output so if CTS state is OFF then no any data can be sent to the port.” The fix is to add <code>--octs=off</code> before the real port in the hub command, as the FAQ prescribes.</p>



<h2 class="wp-block-heading">If your GPS is still on the shopping list</h2>



<p class="wp-block-paragraph">This recipe is software-only and works with the receiver you already have. If you are equipping a boat, a vehicle or a field laptop and need the hardware itself, these are the two pieces this setup actually consumes — a receiver that presents itself as a standard COM port, and, for older serial receivers, a quality USB-to-serial adapter (FTDI-based adapters are the dependable default; the <a href="/hub4com/">hub page</a> explains why the driver side matters):</p>



<ul class="wp-block-list">
<li><a href="/go/amazon-gps" rel="sponsored nofollow">USB GPS receivers on Amazon</a> (sponsored) — puck-style receivers that appear as a COM port and feed this recipe directly.</li>



<li><a href="/go/amazon-usb-serial" rel="sponsored nofollow">FTDI USB-to-serial adapters on Amazon</a> (sponsored) — for receivers with a classic 9-pin serial connector.</li>
</ul>



<h2 class="wp-block-heading">Prove it with a terminal before trusting your real applications</h2>



<p class="wp-block-paragraph">Before pointing chart software at the new ports, borrow the ReadMe&#8217;s own testing habit: open a plain terminal window on COM5 first. If the hub is running and the GPS is talking, NMEA sentences should scroll past continuously — lines beginning with <code>$GP</code> are the receiver narrating its position, time and satellite state. That thirty-second check separates the layers cleanly: sentences in the terminal mean the receiver, the hub and the pair are all working, and any remaining problem lives in the application&#8217;s own settings (wrong port number, or an application still configured for the old exclusive COM1). Repeat on COM6 and both halves of the split are proven independently.</p>



<h2 class="wp-block-heading">Day-to-day running</h2>



<p class="wp-block-paragraph">The pairs you created in Step 1 are driver-level devices: they stay on the system until you remove them with setupc (the <a href="/uninstall-com0com/">uninstall guide</a> covers removal), so you do not recreate them each morning. The hub, by contrast, is an ordinary program that runs in its console window and shares the port only while it is running. The daily routine is therefore just: start hub4com with the Step 2 command, then start your applications in any order. If you reboot, start the hub again — a small shortcut or startup script containing the one command line is all the automation this setup needs.</p>



<p class="wp-block-paragraph">With the hub running, your one receiver now serves the whole cockpit. The same pattern shares any one-way serial source — a weather station, an AIS receiver, a data logger — and the general form of the trick, including when several applications genuinely need to talk back, is covered in <a href="/split-serial-port/">Split One Serial Port Between Several Applications</a>. For moving a port across the network instead of across applications, see the <a href="/rfc2217-server-client/">RFC 2217 guide</a>.</p>

]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
