I am currently trying to log all communication from and to /dev/ttyUSB0 and simultaneously be able to connect minicom/screen to the same device for interaction.
I tried a couple of tools and tutorials but they all seem to occupy the device, so I can not connect to it with a terminal program.
Then I came across socat. It sounds promising, though it is able to redirect the /dev/ttyUSB0 to a PTS and log the transfered data to a file.
The idea is:
HW - /dev/ttyUSB0 <---> socat/logging <---> /dev/ptyX <---> minicom
Has anyone done this before?
Any help is appreciated. Chris