Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I recently needed the good old SmartTerm 240 terminal progam (DOS) to communicate with a local RS232 COM port to a testbox.
Can anyone help with either a windows terminal program to com ports?, -or better: some C# code?
It' only the communication I need, not transferring files (ok, if both things)
Thanx in advance, regards PeJ

What I have tried:

I used the vdos program to emulate the dos in my windows 10 computer, and many functions and settings worked in SmartTerm but when accessing the com ports I was not able to see them all and go "through" the device manager to the proper com port.
Posted
Updated 23-Aug-23 23:47pm
v2

There are many resources here on CodeProject - I suggest you start with the following
Serial port[^]
Serial Port Programming Part 1 – A (Very) Brief Introduction[^]
Basic serial port listening application[^]
Serial Comms in C# for Beginners[^]
 
Share this answer
 
Comments
Maciej Los 23-Aug-23 14:00pm    
5ed!
CPallini 24-Aug-23 3:06am    
5.
Just a remark to COM ports not working in vDos:

COM (and LPT) devices in vDos are by default considered to be used for printing.

If you instead want for instance COM1 to reflect an actual serial port, you have to add a line to config.txt like:

COM1 = "COM1":

It’s documented in the Printing.pdf document.
 
Share this answer
 
v2
There's an article about a Hyperterminal replacement here on CP: IntelliPort[^]

It's a good example on how to handle serial port communications in C#.
 
Share this answer
 
Comments
PeJ Member 14824780 12-Sep-23 9:15am    
Sorry - looks good. But it seems to be written in C++ ?
Dave Kreskowiak 12-Sep-23 10:22am    
Whoops. My bad. I blame it too little sleep.
There are a number of Terminal emulation programs that might suit your needs, at least in the short term. See this article: 4 HyperTerminal Alternatives for Windows 10[^] If none of those applications work for you, perhaps googling for windows serial terminal emulation might turn up something useful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900