How can I monitor data on a serial port in Linux?

前端 未结 5 1447
忘掉有多难
忘掉有多难 2021-01-30 14:07

I\'m debugging communications with a serial device, and I need to see all the data flowing both directions.

It seems like this should be easy on Linux, where the serial

5条回答
  •  逝去的感伤
    2021-01-30 14:43

    Much like @MBR, I was looking into serial sniffers, but the ptys broke the parity check. However, his sniffer was not helping me, as I'm using a CP2102, and not a FT232. So I wrote my own sniffer, by following this, and now I have one that can record file I/O on arbitrary files: I called it tracie.

提交回复
热议问题