Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Decoding a Ciphered Frame

Decoding a Ciphered frame

By dsoler , 12 November, 2024
Forums
Gurux.DLMS

Hi there!
I-m trying to use the GXDLMSTranslator class to decode a ciphered frame.
This is what I did but the output keeps the chipered data.

_gXDLMSTranslator = new Gurux.DLMS.GXDLMSTranslator(TranslatorOutputType.SimpleXml);
_gXDLMSTranslator.Hex = false;
_gXDLMSTranslator.Security = Security.AuthenticationEncryption;
_gXDLMSTranslator.SecuritySuite = Gurux.DLMS.Objects.Enums.SecuritySuite.Suite0;
_gXDLMSTranslator.BlockCipherKey = GXCommon.HexToBytes("<bytes of the key>");
_gXDLMSTranslator.AuthenticationKey = GXCommon.HexToBytes("<bytes of the key>");
_gXDLMSTranslator.InvocationCounter = 0;
string xml = _gXDLMSTranslator.MessageToXml(data);

After this the string xml has the ciphered service tag with a encoded value.
how could I decode it? is there any function or setup missing? thanks in advance!

Profile picture for user Kurumi

Kurumi

1 year 8 months ago

Hi, You can see the decoded…

Hi,

You can see the decoded value in comments if you set comments true like this:

_gXDLMSTranslator.setComments(true);

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
  • DLMS server - serving multiple similar datasets gathered from multiple meters across distinct logical addresses
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin