"Eble, Dan" <DanE@xxxxxxxxxx> writes:
> A coworker of mine wants an easy way to monitor data transfer and control
> line changes on an serial port. His first impulse was to create a /proc
> file, but I suggested a netlink socket, or even a raw net device so that he
> can take advantage of libpcap for some pretty powerful filtering. Does
> anything like this exist already?
With character device? I don't think so. One could use a pseudo
terminal combo, though. Another option is to use two additional ports
with their RX lines connected to both TX and RX lines of the main
port. Depends on requirements.
I use a "data acquisition" card with all the async serial protocol
etc. analysis in (quite simple) software.
A "strace" (if you want to see what a process does) could be a help as
well.
--
Krzysztof Halasa, B*FH
|