Working with tcpdump and interpreting its output
Hello,
I would like to start this thread to exchange experience with tcpdump and interpreting its output.
Andreas has already described the prerequisites to be able to sniff the network traffic to/ from the heatpump in Robert's Wiki at: http://
Here a short English translation:
1. In your Linux- (e.g. Debian) or Unix-like system, do an "apt-get install ser2net tcpdump" to install ser2net and tcpdump.
I don't know how to use ser2net or tcpdump in Windows, but you will need Windows later to run the heatpump software of the manufacturer. Maybe you find a way to get these two tools to work under Windows (e.g. with Wine, or there are ready binaries).
2. In Linux, edit /etc/ser2net.conf like below (2020 in the example is the port, /dev/ttyUSB0 is the device where the heatpump is connected to):
##BANNER:banner ...
2020:telnet:
3. In Linux, restart ser2net with "/etc/init.
4. In Windows, install the heatpump software of the manufacturer and the software "HW Virtual Serial Port" (use Google to find it) and configure the port of your Linux system where the heatpump is connected to. Only the second tab of the Windows tool ("Virtual Serial Port") needs to be configured (see screenshot in Wiki for details) and click on "Create COM".
5. In Windows, start the heatpump software of the manufacturer, adjust the correct software version of your heatpump and the connection (the COM port you have selected in step 4) and connect to your heatpump.
6. In Linux, do a "tcpdump port 2020 -x" (warning: it may happen that tcpdump cannot be quit by ctrl-c).
7. In Windows, read parameters with your manufacturer's software, e.g. current heating values.
8. In Linux, watch the output of tcpdump (hex) and try to compare the values with those of the software in Windows (decimal). This obviously is the most difficult part and the reason why I start this thread here. ;-)
Best regards, Alphaomega
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Penz
- Solved:
- Last query:
- Last reply: