I have a real serial port COM1 on PC, plus some USB serial ports. I would like to send and receive data using TCP/IP/UDP api, but not serial api (such as open the file, or C# serial api).
I plan to create virtual network interface and write some service to divert the communication packets to serial ports. How do I achieve this on Windows, or Linux? Is it a driver? or can it be done in user space? My plan is to set a designated IP address, and use port 0 (or specify one) for configuration, such as listing available serial ports, and open, close, set baud rate... and use other ports to communicate to them.
I know someone will mention PPP, but don't. That requires a TCP/IP stack on the other side. I want to talk to a real serial device on the other side.