gamal
gamal

Reputation: 1665

create a virtual COM port

i was trying to develop two c# .NET application that communicate with each other from a COM port.. the problem was in my laptop i don't have any serial device connected.. do i have any alternative approach to create a virtual comport from c#.net platform?? i tried from creating comport like this but it was not working..

public partial class Form1 : Form
    {
        public Form1()
        {
            SerialPort port = new SerialPort("COM1", 9600);
            port.Open();
            InitializeComponent();
        }
    }

Upvotes: 5

Views: 14622

Answers (2)

Dave Coates
Dave Coates

Reputation: 1

I have been using Eterlogic VSPE for years! Very reliable! Works like a dream and you have many options. You can create virtual serial port pairs, multi splitter etc. I used it commercially also to read com communication from a closed source app to figure out a comms protocol to be able to write my own driver for it to communicate with my own hardware :) https://eterlogic.com/Downloads.html. It's free for non-commercial use

Upvotes: -1

Sherantha
Sherantha

Reputation: 482

Try this software. It emulates com ports. Then you can connect your software to virtual com port and continue testing.

Upvotes: 3

Related Questions