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 9 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

  • 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

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin