I have multiple serial device servers for a home automation system. I need to be able to create multiple (5 or 6) virtual com ports. I am guessing there is a way to do this with socat but so far I haven't figured it out or found any examples.
The command below works well but only for one virtual port. As a test, I've tried creating multiple instances using different terminals and the second instance fails.
socat -d -d pty,link=/dev/ttyV00,raw,echo=0 tcp:192.168.0.16:9100
Ideally I can have another instance linking to ttyV01 for a different ip. Something like
socat -d -d pty,link=/dev/ttyV02,raw,echo=0 tcp:192.168.12.85:5200