Electronic – RS 232 serial sniffing

embeddedlogic analyzerrs232serial

We have a task in hand to sniff a RS232 protocol in a certain industrial automation setting (we have been asked to do this legally by the manufacturing company itself). We are planning to send a technician for this task (as it is overseas) and provide him with a hardware/software serial port sniffer/analyzer so that he can send us back logs with timestamps and protocol definitions and inturn our software team can define the protocol looking at those logs.

Does anyone have any ideas for a hardware/software serial analyzer solution that can log data and timestamps that can satisfy our task?

Best Answer

There are commercial solutions but here's the schematic and photo of a little DIY system I made a number of years back to handle the hardware side things, from left to right passes through all signals between the system being analyzed and the top and bottom you can connect to a pair of RS-232 ports on a PC or laptop. Port A at the top for example will show data received by port A on the left:

RS-232 Analyzer circuit

RS-232 Analyzer

To explain the above further here is the pinout of a male DB-9 connector taken from Quatech QSC-100D documentation which is the DTE connector you'd typically find on a PC:

Male DB-9 Pinouts

So the grounds are connected together between all connectors and pin 2 is the receive pin allowing data to be received on a PC at the top and bottom. If you were only interested in data flowing in one direction one of those connectors could be omitted, but it may make send to include both in case you require it in the future. The left-most connector is male and the remainder are female DB-9 connectors.

For software if running Windows I'd recommend RealTerm which has a nice array of display options including hexadecimal and it supports logging including timestamps.

Related Topic