Latest posts

Telnet debug

1 Comment
(5)

If you experience issues it can be useful to run a debug to see what is going on "under the hood".

First, update the firmware to the latest version. It is recommended to store the current configuration first (use System/Configuration file menu, or just make screenshots of the various pages).

Then run telnet debug as follows:

  1. Go to the bottom of the Config screen and find the Debugging tile. Turn on "Enable debugging" and "Enable telnet", select debug level "Verbose" and press Save (bottom right):

  2. Go to the Status/Info screen and note which IP address your device is using.
  3. Follow the instructions for your operating system below.
  4. You should now see the payloads in hex format as they arrive from the meter.
  5. When done, press 'q' to finish the Telnet debug session.
  6. Turn off Telnet debugging in the config screen for your device.
  7. The logfile will be stored in the folder where you ran the Telnet debug (or where you chose, if you added a path to the filename)

Windows

If needed, enable Telnet on your PC by following this method: https://social.technet.microsoft.com/wiki/contents/articles/38433.windows-10-enabling-telnet-client.aspx

Open a Command Prompt window and run:

telnet <IP-address> -f telnet.log

Example — if your device has IP address 10.0.0.6:

telnet 10.0.0.6 -f telnet.log

macOS

Telnet is no longer installed by default on macOS, but the built-in nc (Netcat) tool can be used instead.

Open a Terminal window and run:

nc -v <IP-address> 23 | tee telnet.log

Example — if your device has IP address 10.0.0.6:

nc -v 10.0.0.6 23 | tee telnet.log

The tee command displays the output on screen while simultaneously saving it to telnet.log in your current folder. You can also use your mDNS device name instead of the IP address (e.g. pow-k.local).

Decoding the output

The lines marked "DLMS frame" can be decoded using Gurux DLMS Translator. Copy/paste lines from the logfile into the upper section, and press the "To XML" button.

The decoded payload shows the OBIS code and data for each measurement point in the payload.

Posted in: Information, How to

Leave a comment

Comments

  • Telnet/Netcat on Mac OSX
    By: Nicolas Padfield On 17-May-2023
    Rating:
    5.0

    If you are on Mac OSX, telnet is no longer installed by default but nc is and nc can be used

    Type at command prompt:

    nc -v mdnsnameOfAmsReader 23

    Replied by: Egil Opsahl On 13-Jun-2023 Thank you for that tip!