View Single Post
  #4   (View Single Post)  
Old 10th January 2015
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default

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.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote