I'm working with a linux application which needs to talk with a remotely-located serial (rs-232) device. I've worked out how to use socat on the remote end to send the device's serial data over an IP connection, but how do I then convert that IP stream back into a (pseudo) serial device character device (e.g. /dev/fakesocatserial0) on the other side?
have you tried sshfs? You can simply mount
remote:/dev
into somewhere likelocal:/remote/dev
and point to the actual character deviceYou should be able to use the
PIPE
address type ofsocat
to create a Unix pipe to connect to, for example (assuming that the device with the real serial device creates the network connection):