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. 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 8 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

  • 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
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin