I am using Gurux.DLMS.Python/GXDLMSReader.py code from Github I have all the information related to device setting and security and all. But how I use it to read data like voltage, clock etc.. from meter through optical serial port. Little Help here.
Hi, You can read all the…
Hi,
You can read all the command line parameters if you go Gurux.DLMS.Client.Example.python folder and run python main.py
Command line parameters vary between meter and authentication level.
I believe that you should download GXDLMSDirector and play with it to get understanding from DLMS.
You can see correct comman line parameters after you have established the connection for the meter with GXDLMSDirecor and select device.
BR,
Mikko
Thanks for Replying By the…
Thanks for Replying
By the way I am using GXDLMSDirector, but my main issue is here that I want to build an simple gui with python to read some data and profile generics like ip,lp,etc...
and I want to know in which script inside Gurux.DLMS.Client.Example.python Folder I change my device settings, Security settings and other related settings.It will be great help if you can explain it clearly.
Hi, Check the settings.py…
Hi,
Check the settings.py. All the command line setting are updated there. Settings depends from the meter model and manufacturer so you need to handle all the cases in the settings.py file.
BR,
Mikko
Can you share a code example…
Can you share a code example that how I apply these settings on Settings.py script and read a simple data like Clock (OBIS Code: 0.0.1.0.0.255)
Hi, When you select meter in…
Hi,
When you select meter in GXDLMSDirector you can see the command line parameters. Then add -g "0.0.1.0.0.255:2"
That will read the clock object.
Note! application will read the association view first. You can save it using -o output.xml
After that, it's not read anymore.
BR,
Mikko
I am asking about how to…
I want to know about how to apply Device settings and secured connection settings (like Interface-HDLC,Password, client address,media, Security -AuthenticationEncrytion, Block Cipher Key, Authentication key, Invocation counter,Frame counter LN ..etc...)on Settings.py
And then after that running main.py to get data from meter.
Please explain it more clearly
Thanks
Hi, You define the DLMS…
Hi,
You define the DLMS client and then set wanted parameters like this:
client = GXDLMSSecureClient(True)
client.interfaceType = InterfaceType.HDLC
client.password = "Used password."
...
Those parameters are used when communication is started with the meter. I have to warn that DLMS is not an easy protocol.
BR,
Mikko