View Single Post
  #1   (View Single Post)  
Old 10th January 2015
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default capture serial communication with socat

Hello,
i tried to record the complete communication between my laptop and a serial device. NetBSD identies this as uslsa. I can connect via pyserial on ttyU0. Now i want to save the complete communication in both directions. So i use socat to create a pseudo device which connects to the real hardware over the tunnel. I use the following[1] command but nothing happens. Neither on the screen nor in log file.

[1]
Quote:
socat -d -lf /tmp/log.txt -v -x PTY,link=/tmp/serial,wait-slave,raw /dev/ttyU0,raw
Any ideas what igoes wrong?
Reply With Quote