How to make a serial port sniffer sniffing physical port using a python

后端 未结 3 1767
春和景丽
春和景丽 2021-01-18 00:29

I have a PC Software (OS: Win 64bit) that communicates with a machine via physical serial port RS232 and I want to make a sniffer for that port using a python. Please note t

3条回答
  •  执念已碎
    2021-01-18 01:21

    Why not echo something like:

    PC S/W <--> COMn(COM0COM)COMm <--> python monitor & forward <--> COM1 <--> Machine

    Software wise you need 2 serial tasks one opens COMm and one opens COM1 and a central logger and anything that comes in on COMm gets logged then forwarded to COM1 and vice verca.

提交回复
热议问题