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. New Installation

New installation

By jesperbonde , 21 October, 2025
Forums
Gurux.DLMS

I am trying to make a new installation of the python DLSM/COSEM application. Testing the standard listener application gives the following feed back. What is the reason?

(venv) pi@raspberrypi:~/gurux.dlms.python/Gurux.DLMS.Push.Listener.Example.python $ python main.py -S '/dev/ttyS0:2400:8None1'
gurux_dlms version: 1.0.191
gurux_net version: 1.0.23
gurux_serial version: 1.0.21
/dev/ttyS0:2400 8NONE1
Press any key to close the application.
Media state changed. MediaState.OPENING
trace:11:10:26 TraceTypes.INFO Settings: Port: /dev/ttyS0 Baud Rate: 2400 Data Bits: 8 Parity: 0 Stop Bits: 0 Eop:126
Media state changed. MediaState.OPEN
Invalid Command.
Invalid Command.
Invalid count.
Invalid Command.
<HDLC len="1E8" >
<TargetAddress Value="20" />
<SourceAddress Value="1" />
<FrameType Value="13" />
<PDU>
<GeneralGloCiphering>
<SystemTitle Value="4B414D4501C4EC57" />
<CipheredService Value="3000873EBF390DCDAF836E9F35C76B013EE76E8FDF7D7A22AF3BE4EF46C24F02C673B54B4EA97F1A73A131A17BBBD9DD2FB1FF64D3362048A62E2208CB0E00330D0E35B7578039577FAE62DF1E1DF113423786C49F9C1DCE8B54EF53C9BD2481D55CCEB0EE253E80DEE666F4084F446EFF7D572A7D156A2F454F6FC8BE40FD078587C48EC6609B0CB1F7C8A90E129BE28C79BA550FC62B48B7717CCF53975B79EF8B90BE754D640B8D7DEE252098BE336011FE250AD975F453116BBF2D52B7130ECE3CB0F30E32BE217DC94435ADC361F7A22948BE691082F5136D8F8F353DFCB1E86CE3D5367EA94F9AD3AFFA232A19D78BDD6F78D4797AE2B11209EB8D89A460F3A8C1330178EA91DF5502954B2CD6A2B112862B07211CE265F701F0454A61D9D66CA5E2745147DBF01FAC2C9A51F3A4D43587D736F9CAD347D189A4FBF4E29E9C3BA59BBE0B65289B86EDAF9C395C608EF4D3A389C5903464EB16FB2809E94711CEBC638BD41118D890293BC49F68001E777935E5453F95BEDDE159254BE3DC2F746D4E8F10E9319FEBFCA5C9BB202E7E0FD4215E8B22A77427D4B8411488A4F58C0D68209095ED336B1FCABB90AFCCC5C4FB543E1D53D90A86AD1970F0B5B9B4D4EA7E95E1586DD6EAF957945321" />
</GeneralGloCiphering>
</PDU>
</HDLC>

Invalid count.
^C
Media state changed. MediaState.CLOSING
Media state changed. MediaState.CLOSED
Media state changed. MediaState.CLOSED

Profile picture for user Kurumi

Kurumi

10 months ago

Hi, Your push messages are…

Hi,

Your push messages are encrypted. You need to give the correct block cipher and authentication keys.

-B YOUR_BLOCK_CIPHER_KEY -A YOUR_AUTHENTICATION_KEY

BR,
Mikko

jesperbonde

10 months ago

Also tried that. Then I get…

Also tried that. Then I get

gurux_dlms version: 1.0.191
gurux_net version: 1.0.23
gurux_serial version: 1.0.21
Traceback (most recent call last):
File "/home/pi/gurux.dlms.python/Gurux.DLMS.Push.Listener.Example.python/main.py", line 229, in <module>
sampleclient(sys.argv)
File "/home/pi/gurux.dlms.python/Gurux.DLMS.Push.Listener.Example.python/main.py", line 83, in __init__
ret = settings.getParameters(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/gurux.dlms.python/Gurux.DLMS.Push.Listener.Example.python/GXSettings.py", line 115, in getParameters
parameters = GXSettings.__getParameters(args, "p:S:r:i:t:T:A:b:")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/gurux.dlms.python/Gurux.DLMS.Push.Listener.Example.python/GXSettings.py", line 99, in __getParameters
pos = optstring.index(args[index][1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: substring not found

Profile picture for user Kurumi

Kurumi

10 months ago

Hi, My bad, the argument is …

Hi,

My bad, the argument is -b, not -B

-b YOUR_BLOCK_CIPHER_KEY -A YOUR_AUTHENTICATION_KEY

BR,
Mikko

jesperbonde

10 months ago

That was it, so now…

That was it, so now everything is working again. Thanks for your support!

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • 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

New forum topics

  • DLMS Image Transfer: “byte must be in range(0, 256)” with 512-byte block size in Python
  • Connecting to meter using Wrapper
  • DLMS Server / Meter emulation in Golang library
  • Unknown Baudrate
  • negative indexing for custom method/attribute
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin