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>
Hi, Change this: -S COM9…
Hi,
Change this:
-S COM9:9600:8NoneOne
to this:
-S COM9:9600:8None1
BR,
Mikko