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".

So this is how you run a Telnet debug:

First, update the firmware to last version. It is recommended 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. 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
  4. Open a "Command prompt" window on your computer
  5. Write Telnet <IP-address> -f c:\telnet.log        (or replace with a more suitable path/filename for creating a logfile)
    Example: My Pow-K has IP-address 10.0.0.6:

  6. You should now see the payloads in hex format as they arrive from the meter. If all is well it will be something like this, but it depends on the meter and the format coming from your meter.:
  7. If there are issues with interpreting the data, there should be understandable information here.
  8. Press 'q' to finish the Telnet debug.
  9. Turn off Telnet debugging in the config screen for your device.

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!