Last byte of Load Profile Command

4 posts / 0 new
Last post
Virus
Last byte of Load Profile Command

Good day

I have command to read Load Profile, but don't know what the last byte should be.
This is for a Landis&Gyr meter. (E650)

Command:(IEC)
[Read Load Profile] 10 bytes [Date from] 6 bytes [Time from] 4 bytes [Separator] 2 bytes [Date to] 6 bytes [Time to] 4 bytes [command end] 3 bytes
[81 d2 35 82 50 2e 30 b1 28 30] [YY YY MM MM DD DD] [hh hh mm mm]
[bb 30] [YY YY MM MM DD DD] [hh hh mm mm] [a9 03 ??] <- this last byte is unknown.

Is there a formula for calculating this byte?
The value ranges between 20-29, a0-a9.

If I cycle through all the possibilities I can make it work, but that drastically increases reading time.

Thank you

kurumi
kurumi's picture
Last byte of Load Profile Command

Hi,

Last byte 0x3 is end of message. Before that is checksum.

BR,

Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
Hermiankatu 6-8 H 33720 TAMPERE, FINLAND
Phone: +358 3 265 1244
Home page: http://www.gurux.org

Virus
Thank You!

I am very relieved that it is now working perfectly!
Can't wait to finish my AMR.

Blessings

Virus
Good day.

I'm not sure why, but it's not working without ending command with extra byte.
It worked once or twice without extra byte, but since then all I receive after sending command is 0x95.

If I add 0x81 after 0x03 it works.
So:
[81 d2 35 82 50 2e 30 b1 28 30] [YY YY MM MM DD DD] [hh hh mm mm]
[bb 30] [YY YY MM MM DD DD] [hh hh mm mm] [a9 03 81]

Blessings