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. Forums
  3. HIGH_GMAC

HIGH_GMAC

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By jonasfoyth , 21 April, 2020
Forums
Gurux.DLMS

Hello,

I am trying to use HIGH_GMAC authentication with the python module, but the configuration is not working.

Configuration:

self.media = GXNet(NetworkType.UDP, str(meter_idetintfication), PORT)
self.client = GXDLMSSecureClient(True)
self.client.interfaceType = InterfaceType.WRAPPER
self.client.serverAddress = int(1)
self.client.clientAddress = int(16)
self.client.authentication = Authentication['HIGH_GMAC']
self.client.ciphering.security = Security.AUTHENTICATION_ENCRYPTION
self.client.ciphering.systemTitle = GXByteBuffer.hexToBytes('3132333435363738')
self.client.ciphering.authenticationkey = GXByteBuffer.hexToBytes(AUTHENTICATION_KEY)
self.client.ciphering.blockCipherKey = GXByteBuffer.hexToBytes(BLOCK_CYPER_KEYY)
self.client.useLogicalNameReferencing = True

In GXDLSMDirector it's working.

Any suggestions for testing the configuration?

The image is the error when i execute this configuration.

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

I just tested and it worked. Can you try to run example client like this:

python main.py -h localhost -p 4061 -a HighGMac -T 3132333435363738 -A D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF -B 000102030405060708090A0B0C0D0E0F -t Verbose

Update your keys to example.
BR,
Mikko

jonasfoyth

6 years 1 month ago

Yes, it's working with some

Yes, it's working with some more configurations:

python main.py -h 192.168.6.22 -p 4059 -a HighGMac -c 16 -s 1 -w -r ln -T 3132333435363738 -A XXXXX-B XXXXX -t Verbose

But when a run my scrip:

raise GXDLMSException(resultComponent, resultDiagnosticValue)
gurux_dlms.GXDLMSException.GXDLMSException: Access Error : Device reports a hardware fault.

It's caused by using:

self.client.ciphering.security = Security.AUTHENTICATION_ENCRYPTION (used in GXDLSMDirector to connect)

when i run without that (i try to write in a object):

gurux_dlms.GXDLMSException.GXDLMSException: Access Error : Device reports Read-Write denied.

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

So your meter also requires a ciphered connection. Add -C parameter like this:
-C AuthenticationEncryption

If it fails, try to read the invocation counter adding -v parameter.

BR,
Mikko

jonasfoyth

6 years 1 month ago

Thanks Mikko, it's working

Thanks Mikko, it's working now.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin