By pmbt , 6 June, 2016 Forums General discussion Hi there, I'm attempting to read data from the Elster A1700 meter over serial using RS232. For example, if I try and read current values from it, I get various responses like the following: [12:30:06] <-COM6 <STX>(00445103000000000088190000000000006808010000000000641000000000000044000000000000008440010000000000721405000000000052490200000000)<ETX><CR> My question is - how is the data encoded? How do I extract meaningful data from this? Any help would be greatly appreciated Data decoding We've decoded it like this: 00445103000000000088190000000000006808010000000000641000000000000044000000000000008440010000000000721405000000000052490200000000 Split into 16 byte chunks 0044510300000000 0088190000000000 0068080100000000 0064100000000000 0044000000000000 0084400100000000 0072140500000000 0052490200000000 Taking the first chunk as an example 0044510300000000 Split into two byte words 00 44 51 03 00 00 00 00 And reverse the words 00 00 00 00 03 51 44 00 = 3514400 This worked for the few examples we tried. Hi, Hi, Does anyone know how to get the date? I have the response “46522269900021” which should be “2021-10-29 22:52:46” I can see the hhmmss (22.52.46), but how do I get the date? Hi, Hi, I believe that there is something wrong with your data. The format should be: YYMMDDhhmmss BR, Mikko
Data decoding We've decoded it like this: 00445103000000000088190000000000006808010000000000641000000000000044000000000000008440010000000000721405000000000052490200000000 Split into 16 byte chunks 0044510300000000 0088190000000000 0068080100000000 0064100000000000 0044000000000000 0084400100000000 0072140500000000 0052490200000000 Taking the first chunk as an example 0044510300000000 Split into two byte words 00 44 51 03 00 00 00 00 And reverse the words 00 00 00 00 03 51 44 00 = 3514400 This worked for the few examples we tried.
Hi, Hi, Does anyone know how to get the date? I have the response “46522269900021” which should be “2021-10-29 22:52:46” I can see the hhmmss (22.52.46), but how do I get the date?
Hi, Hi, I believe that there is something wrong with your data. The format should be: YYMMDDhhmmss BR, Mikko
Data decoding
We've decoded it like this:
00445103000000000088190000000000006808010000000000641000000000000044000000000000008440010000000000721405000000000052490200000000
Split into 16 byte chunks
0044510300000000
0088190000000000
0068080100000000
0064100000000000
0044000000000000
0084400100000000
0072140500000000
0052490200000000
Taking the first chunk as an example
0044510300000000
Split into two byte words
00 44 51 03 00 00 00 00
And reverse the words
00 00 00 00 03 51 44 00
= 3514400
This worked for the few examples we tried.
Hi,
Hi,
Does anyone know how to get the date?
I have the response “46522269900021” which should be “2021-10-29 22:52:46”
I can see the hhmmss (22.52.46), but how do I get the date?
Hi,
Hi,
I believe that there is something wrong with your data. The format should be:
YYMMDDhhmmss
BR,
Mikko