• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Virtual UART in windows (C#)

Status
Not open for further replies.

misterT

Well-Known Member
Most Helpful Member
I have a sensor. It works fine and sends data through uart. I also have an application to log all kinds of data in a particular format.

The data format from the sensor is not compliant with the data logger. So I need an "adapter softare" to read the data from the sensor, convert it, and send it to the logger. All communication is through uart. Is there an easy method to create a virtual com-port in windows. The goal is that the application receives the data from the sensor, converts it, and then sends the data to the logger through a virtual com-port.

Or, should I just build a "null-modem cable" using two usb-uart cables?
 

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
Is there an easy method to create a virtual com-port in windows.
I used to use com0com from the sourceforge site, but It doesn't work with win 8 or win 10 because of the fees Microsoft put into place for certificates to work... The cheapest one seems to be the one HDowns has linked in..
 

misterT

Well-Known Member
Most Helpful Member
I think I use two usb to uart cables and make my own "null-modem cable". And then stick both ends of that in the same computer.
 

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
I think I use two usb to uart cables and make my own "null-modem cable". And then stick both ends of that in the same computer.
That's how I do it..

BTW I have dropped C# and I now use Lazarus.. It's easier to make interfaces.... The serial modules are really good... I found the com structure used by C# difficult to use.. MIND!!! If you do use Lazarus, it doesn't autosave and Win10 doesn't ask when updating... Lost hours of programming that way...
 

HDowns

New Member
I think I use two usb to uart cables and make my own "null-modem cable". And then stick both ends of that in the same computer.
I'm using this method on my desktop too, but in some cases a software solution is better (laptops with 1-2 USB ports, several serial connection at the same time).
 
Status
Not open for further replies.

EE World Online Articles

Loading
Top