Discussion:
Serial port forwarding and listening
Robert
2005-07-17 18:31:24 UTC
Permalink
Hi All!

I have a device working with a Windows via serial port.
I need to listen/log to the data transmitted/received through the
exclusive serial
port.
So I put a Linux PC between them, so that
PC_Win(ttyS0) connected to PC_Lin(ttyS0) and
PC_Lin(ttyS1) connected to device.
I made the command below run as root:

cat /dev/ttyS0| tee input.log > /dev/ttyS1
cat /dev/ttyS1| tee output.log > /dev/ttyS0

I tried to use the software of the device as if my device was connected
to PC_Win(Com1).
But nothing happend :(
Why?
I tested the cables, they work fine, and receiving/sending with these
commands
also works with other Pc instead of Pc_Win.
The PC_Win <-> device works also fine.

Robert
Bartos-Elekes Zsolt
2005-07-18 06:37:15 UTC
Permalink
Post by Robert
I have a device working with a Windows via serial port.
I need to listen/log to the data transmitted/received through the
exclusive serial
port.
So I put a Linux PC between them, so that
PC_Win(ttyS0) connected to PC_Lin(ttyS0) and
PC_Lin(ttyS1) connected to device.
Try snooper (didn't try it myself).

Zsolt

Loading...