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. Need Read Logical Address and Physical Address From SNRM Messages With GXDLMSTranslator

Need read Logical address and Physical address from SNRM messages with GXDLMSTranslator

By alexcd , 19 December, 2023
Forums
Gurux.DLMS

Hello, I want to read Logical address and Physical address from SNRM messages. When I use GXDLMSDirector and use Translator in it I see these addresses. But when I use GXDLMSTranslator I don't see this data. I want to see these addresses just like in GXDLMSDirector in GXDLMSTranslator. Perhaps there is some solution?

Message: 7E A0 13 02 21 05 93 FA 66 81 80 06 05 01 90 06 01 90 55 BF 7E

GXDLMSDirector -> Translator -> result:

BlockCipher key: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Authentication Key:D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF
<HDLC len="12" >
<!-- Logical address:1, Physical address:16 -->
<TargetAddress Value="90" />
<SourceAddress Value="2" />
<!-- SNRM frame. -->
<FrameType Value="93" />
<PDU>
<Snrm>
<MaxInfoTX Value="144" />
<MaxInfoRX Value="144" />
</Snrm>
</PDU>
</HDLC>

My code using GXDLMSTranslator:

from gurux_dlms import GXByteBuffer, GXDLMSTranslator, TranslatorOutputType

def reading_address():
buff = GXByteBuffer()
buff.setHexString("7E A0 13 02 21 05 93 FA 66 81 80 06 05 01 90 06 01 90 55 BF 7E")
t = GXDLMSTranslator(TranslatorOutputType.SIMPLE_XML)
t.comments = True
print(t.messageToXml(buff))

if __name__ == '__main__':
reading_address()

result:
<HDLC len="12" >
<TargetAddress Value="90" />
<SourceAddress Value="2" />
<!--SNRM frame.-->
<FrameType Value="93" />
<PDU>
<Snrm>
<MaxInfoTX Value="144" />
<MaxInfoRX Value="144" />
</Snrm></PDU>
</HDLC>

Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi, Logical and physical…

Hi,

Logical and physical addresses are not shown in Python at the moment. The reason is that no one of our clients has asked it. It's not in the roadmap at the moment and I can't give time when it's added.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

2 years 6 months ago

Hi,, Get the latest version…

Hi,,
Get the latest version from GitHub. This is added to the python version as well.

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