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. Node
  3. Command Line Parameter Execution

Command line parameter execution

By sankar@gurux , 5 October, 2023
Forums
Gurux.DLMS

I'm trying to read profile generic. Simply I have copied the command line parameter in console getting following error.

Pls suggest how to read profile read by using DLMS python.

C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python>main.py -S COM9:9600:8NoneOne -c 48 -a High -P 0JK0CRSM01007488 -C AuthenticationEncryption -T 4C54434C49454E54 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -v 0.0.43.1.3.255 -d India -w 1 -f 128 -t Verbose
gurux_dlms version: 1.0.140
gurux_net version: 1.0.20
gurux_serial version: 1.0.20
Traceback (most recent call last):
File "C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\main.py", line 80, in main
ret = settings.getParameters(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python\GXSettings.py", line 222, in getParameters
self.media.parity = Parity[tmp[2][1: len(tmp[2]) - 1].upper()]
~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fsn3kor\AppData\Local\Programs\Python\Python311\Lib\enum.py", line 789, in __getitem__
return cls._member_map_[name]
~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'NONEON'
Ended. Press any key to continue.

C:\Users\fsn3kor\PycharmProjects\Smart_Meter\Gurux.DLMS.Python\Gurux.DLMS.Client.Example.python>

Profile picture for user Kurumi

Kurumi

2 years 11 months ago

Hi, Change this: -S COM9…

Hi,

Change this:
-S COM9:9600:8NoneOne
to this:
-S COM9:9600:8None1

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • 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

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin