I have an application in python that uses an optical probe to communicate with a meter. I identify with the emter correctly. The problem comes when I want to ask for data. I have these frames taken from the gxdlms:
16:45:58 Read object type Data index: 1
TX: 7E A0 19 03 21 "FE" "0F" "D4" E6 E6 00 C0 01 C1 00 01 00 00 60 0A 07 FF 01 00 2C 9A 7E
16:45:58
RX: 7E A0 18 21 03 1E BA 89 E6 E7 00 C4 01 C1 00 09 06 00 00 60 0A 07 FF AB A3 7E
16:45:58 Read object type Data index: 2
TX: 7E A0 19 03 21 "10" "7F" "DA" E6 E6 00 C0 01 C1 00 01 00 00 60 0A 07 FF 02 00 44 B0 7E
16:45:58
RX: 7E A0 12 21 03 30 68 9D E6 E7 00 C4 01 C1 00 11 82 01 EA 7E
the bytes between quotes are the ones that change and do not know what criteria. Can you help me or tell me where I can find out?
I have Gurux app with the following command line parameters
-h 192.168.20.35 -p 4059 -i WRAPPER -c 1 -a HighGMAC -C AuthenticationEncryption -V Suite1 -T 4142434445464748 -A 00000000000000000000000000000000 -B 00000000000000000000000000000000 -v 0.0.43.1.1.255 -t Verbose
And tried to use such parameters to run my python script.
The main issue - there is no capital -V key handling in the https://github.com/Gurux/Gurux.DLMS.Python examples
DLMS in Python
Hi,
That is HDLC Control Field. There is a counter that is changed every time when you send and receive data from the meter.
BR,
Mikko
DLMS in Python
But is it a random code or does it have something to do with something?
Thanks
DLMS in Python
Hi,
It's not a random code. Send and receive sequence number is there. Meter don't reply if it's wrong.
BR,
Mikk
DLMS en Python
and how can I know what code is in each moment?
DLMS in Python
Hi,
You can get more info from here:
https://en.wikipedia.org/wiki/High-Level_Data_Link_Control
I have to say that HDLC framing is not very easy.
BR,
Mikko
DLMS in Python
I read the article and finally I have running my program in python.
Thank you so much for everything
Having Gurux app with the…
I have Gurux app with the following command line parameters
-h 192.168.20.35 -p 4059 -i WRAPPER -c 1 -a HighGMAC -C AuthenticationEncryption -V Suite1 -T 4142434445464748 -A 00000000000000000000000000000000 -B 00000000000000000000000000000000 -v 0.0.43.1.1.255 -t Verbose
And tried to use such parameters to run my python script.
The main issue - there is no capital -V key handling in the https://github.com/Gurux/Gurux.DLMS.Python examples
Can smn help please ?
Thanks in advance!
Hi, Support to -V argument…
Hi,
Support to -V argument is added to the client example. Get the latest version.
BR,
Mikko