Questions tagged [com0com]

The Null-modem emulator (com0com) is a kernel-mode virtual serial port driver for Windows.

The Null-modem emulator (com0com) is a kernel-mode driver for Windows.

64 bit version of the driver is only test-signed not signed as usually Microsft requires.

You can create an unlimited number of virtual COM port pairs and use any pair to connect one COM port based application to another.

resources:

  • com0com's site on Sourceforge
31 questions
15
votes
3 answers

com0com virtual port not found

I have installed, apparently successfully, com0com v2.2.2.0 on a 64bit Windows 7 machine. I run the command utility, like this: command> install PortName=COM9 PortName=COM8 CNCA0 PortName=COM9 CNCB0 PortName=COM8 ComDB: COM8 - logged…
ravenspoint
  • 19,093
  • 6
  • 57
  • 103
13
votes
1 answer

Null modem emulator (com0com) for linux

I have a project that contains some unitary tests used to test the serial communications using COM ports (in windows). I use com0com to create a virtual pair of bounded ports and execute the tests. However I don't know how to do that in Linux…
PedroD
  • 5,670
  • 12
  • 46
  • 84
8
votes
2 answers

Are there some program like COM0COM in linux?

I use com0com for program testing in windows, are there any program like com0com in linux? I know there is pts/ptmx, but what I want is a stand alone program to provide 2 virtual serial ports... Then I can open 2 program, each attench one...
linjunhalida
  • 4,538
  • 6
  • 44
  • 64
6
votes
2 answers

C# opening a virtual serial port throws ArgumentException

I have a utility which connects to a device through a serial port. To test this application I'm writing a simulator for the device. Both applications are intended to run on the same Windows 7 machine. I'm writing the simulator in C#. I used com0com…
Asaf
  • 4,317
  • 28
  • 48
3
votes
3 answers

creating a batch file in c#

This is my first time creating a batch. basically i want write commands in the command Promt. so i need batch file so that i can it in c# and does the task. The commands looks like this: install PortName=COM50- bcdedit.exe -set TESTSIGNING OFF How…
Liban
  • 641
  • 5
  • 19
  • 32
2
votes
1 answer

C# serial port, simulation of serialport write

I have a c# app that connects pc to a device, through a serial port. When I send data to the device, if the device sends data back, the datareceived event fires. And I want to ask this. Is there a way to simulate the data sending of the device? I…
sgkin
  • 113
  • 2
  • 7
2
votes
2 answers

How to make com0com ports appear as real physical port?

After creating a port pair using com0com, they appear in the com0com section of device manager. A bad behaved application (the source code and developers are not accessible) only list certain ports and calls them 'USB Serial Virtual Ports'. HHD…
hkoosha
  • 1,136
  • 2
  • 15
  • 30
2
votes
3 answers

Creating a pair between a real and virtual serial port

I am working on a utility that automates the testing of a legacy application. The legacy application runs on Windows 2000, and uses 3 devices connected via serial (COM) ports. I have access to the application's source code but don't have the…
Class Skeleton
  • 2,913
  • 6
  • 31
  • 51
2
votes
0 answers

How to catch com0com IO-CTL commands?

I have two connected virtual COM ports (ex. COM0 and COM1), created by com0com driver. Some old application (App1) writes data to COM0 and I read it from COM1 (in App2) and vice-versa. How can I catch some IO-CTLs from virtual COM port, created by…
Alex Bar
  • 841
  • 2
  • 9
  • 18
2
votes
1 answer

application hangs when closing a listening port

I'm using com0com to create a part of virtual ports comA/comB, typing the input to comA from hyperterminal and listening on comB in a wpf application. When I run the following code (by triggering Connect), the application successfully connects and…
nemesis
  • 253
  • 1
  • 4
  • 11
2
votes
1 answer

How to simulate failure / cable break with com0com null-modem emulator

Here's the short story: I need to debug some very specific error situations in our application. The application runs on a duplex system consisting of two machines connected by a serial cable; over this cable both machines exchange some kind of a…
Software Craftsman
  • 2,999
  • 2
  • 31
  • 47
1
vote
0 answers

Creating a pair of virtual serial ports within a Docker container

I'm currently trying to create and connect a pair of virtual serial ports in a Docker container. It is imperative to link COM3 with and COM4 within the same container. It also has to be a Windows container. I've tried com0com through the "install"…
Jose M
  • 104
  • 1
  • 7
1
vote
0 answers

Any way to lockdown a virtual comm port to a specific baud rate?

I'm using com0com for virtual comm ports. I'm trying to test some software, whereby I am replacing a bunch of physical com ports with virtual ones. The software check through each one a determines it baud rate and from tries a different software…
Deag
  • 21
  • 5
1
vote
2 answers

com0com virtual port does not open by UWP

var selector = SerialDevice.GetDeviceSelector("COM14"); var informations = await DeviceInformation.FindAllAsync(selector); if (informations.Any()) { var port = await SerialDevice.FromIdAsync(informations.First().Id); } informations.Any() is…
plexusilnur
  • 61
  • 1
  • 5
1
vote
1 answer

Accessing virtual com ports inside a WS2016 docker container

Running on a Win7(host) and Virtual Box with Windows Server 2016 TP5(guest vm). On WS2016 i run docker, using the windowsservercore base image for the containers. I'm trying out kind of a fleet management system where I try to fire up multiple…
Kristofer
  • 3,201
  • 23
  • 28
1
2 3