익명 12:01

How to show text data in TCP packets in Wireshark?

How to show text data in TCP packets in Wireshark?

I'm converting an old program to run on a ATMega256 using a W5500 for ethernet connection.

The old program used a serial port to communicate with a PC, and I need to port the communication to a TCP connection (it will be a local LAN with just the PC and the device)

The protocol is just made by ASCII strings, the PC sends a string, the device answer to it, an so on.

My problem is that I need to debug what's sent and what's answered, but using Wireshark I'm not able to see the strings contained in the TCP messages sent.

Screenshot of what I see

In the screenshot I can see the text contained in UDP packets (which are the initial "handshaking" to detect if there's devices on the LAN) but i can't find a way to show in the same column the strings contained in the TCP messages.

I'm pretty ignorant about Wireshark, but I remember being able to do that some years ago (or, at least, the values were just already there): there was a "Data" section under the "Transmission control protocol" one.

How can I show the TCP data as text in a column?



Top Answer/Comment:
  • Right-click a packet, then select "Follow > TCP Stream". Wireshark will assemble all packets belonging to that connection into a full conversation.

  • Go to "Preferences > Protocols > Data", enable "Show data as text" and/or "Show non-dissected data".

상단 광고의 [X] 버튼을 누르면 내용이 보입니다