I am looking to create virtual serial ports on Debian 6 squeeze. Basic requirements are:
be able to connect as if port was a real serial port( IE be able to set baud, stop bits etc)
com port pairs need to be persistent
- com port pairs names must be static on reboot. I don't want to change code settings each time computer is rebooted
I briefly tried socat today using
socat -d -d pty, raw, echo=1 pty, raw, echo=1 that successfully created
/dev/pts/6 as a pair. However soon as I close the terminal running socat the pair is terminated. I am also wondering if tty0tty is an option? I have used com0com in the past with windows with great success.
My question is what is the best way to create a null modem pair so that I can simulate several com ports in Linux?