I try to find an easy way to listen to the exchange with the desired tty in Linux. A have hardware device whose interface is exposed as /dev/ttyAMA0 and some drivers on system interact with it. I want to dump all transfers (or at least in one direction) to uart/file etc. I don't want to change something in it, just duplicate. Is there a simple way to do that?
Easiest way to do what I want was just use strace. In strace log I found all necessary info.