Apparently I either did not understand the problem and/or you did not describe it fully
Anyway,
tip will capture serial data that arrives or comes in at the serial port it is connected to. It does log this data but does this buffered. That means only when it has saved up a rather large chunk of data it will be written to the log file. Sometimes the log file will only be written when exiting
tip.
BTW this buffering mechanism could be the reason why you do not see any data in the
socat log file (yet).
If you have a non-interactive program on your laptop that uses an USB to serial port to communicate (send and receive) then indeed you need something that acts as a man-in-the-middle.
Or you need to extend that program to log everything to file.
Two weeks ago I started writing a Perl script as a
tip replacement. It forks a child process:
- The parent process reads the serial device and copies it to stdout
- The child process reads stdin and writes it to serial device
It still has a lot of imperfections but I am willing to share/post it here.