[svlug] serial port "forwarding"
Ivan Sergio Borgonovo
mail at webthatworks.it
Mon Jan 22 06:10:22 PST 2007
On Mon, 22 Jan 2007 00:40:53 +0100
Ivan Sergio Borgonovo <mail at webthatworks.it> wrote:
> But the simulator have to be in sight and touch reach (leds,
> potentiometers and such...).
> Since serial ports are just symlink in wine directory to tty I was
> wondering if there is any way to "forward" the serial port over the
> network and attach the simulator to my PC, let the software run on
> my wife's PC and controlling it through X forwarding.
Jay Camp pointed me to:
http://sourceforge.net/projects/serialoverip
unfortunately this toy does this
box---serial cable---client---net---server---serial cable---equipment
where box is running the program that should use equipment.
what I need is
client---net---server---serial cable---equipment
where client is the Linux box that should use the equipment.
I'm wondering if there is a simple way to "netcat" /dev/ttyS0 into
another box.
I already tried ser2net on one side and netcat on the other + mkfifo.
But what I get is the Win software says the serial port is busy.
Since at the application level a device like a tty should be seen
just as a fifo.
The general idea should be
server:
netcat -l -p 1234 < /dev/tty0 > /dev/tty0
client:
mkfifo /home/ivan/ttyS0
netcat server 1234 > /home/ivan/ttyS0 < /home/ivan/ttyS0
I just found socat
http://www.dest-unreach.org/socat/
but I was still not able to make it work...
I got back to directly connect the serial cable on the box running
wine and I came across something that can't be solved shortly that
seems related to some "unsupported feature" in wine.
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
More information about the Svlug
mailing list