This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Norwegian HAN-interface - Kamstrup meter
#5
(31.01.2019, 16:24)oveh Wrote:
(31.01.2019, 13:58)admin Wrote: Basic receive logic:
Receive 1 byte with 1 second timeout
  • In case of timeout, check if buffer is not empty and parse it
  • Otherwise add byte to buffer
Can you please provide an example?


(31.01.2019, 13:58)admin Wrote: The third byte seems to be packet length without first/last 0x7E so you can use that to parse buffer with multiple messages in case they arrive together (10 second and 1 hour data).

Yes, actually it is both 3rd and lower part on 2nd, but the 1 hr and 10 sec message should not come together:
Quote:Push interval: Fixed at 3600s, The 10 second timer and the 1 hour timer must not collide since then one of the lists will not be pushed. So the 10 sec timer will be sent at xx:xx:x0 (hh:mmConfuseds) and the 1 hour timer is offset 5 seconds and sent at xx:00:05 (hh:mmConfuseds)




Some more sample data. ID-bytes have been replaced with 0x01, and checksum bytes have been updated accordingly
Code:
# 3 examples of 10 sec message. ID changed to 1111... and CRC updated

7EA0E22B2113239AE6E7000F000000000C07E3011501172B0AFF80000002190A0E4B616D73747275705F563030303109060101000005FF0A100101010101010101010101010101010109060101600101FF0A1236383431313231424E32343331303130343009060101010700FF0600000B0809060101020700FF060000000009060101030700FF06000001D109060101040700FF0600000000090601011F0700FF060000044309060101330700FF06000002EE09060101470700FF060000022D09060101200700FF1200DC09060101340700FF1200DD09060101480700FF1200DFA98A7E

7EA0E22B2113239AE6E7000F000000000C07E3011D02010E28FF80000002190A0E4B616D73747275705F563030303109060101000005FF0A100101010101010101010101010101010109060101600101FF0A1236383431313231424E32343331303130343009060101010700FF0600000E5909060101020700FF060000000009060101030700FF060000011509060101040700FF0600000000090601011F0700FF060000058A09060101330700FF060000033D09060101470700FF060000036209060101200700FF1200DA09060101340700FF1200DA09060101480700FF1200DF187E7E

7EA0E22B2113239AE6E7000F000000000C07E3011D0209391EFF80000002190A0E4B616D73747275705F563030303109060101000005FF0A100101010101010101010101010101010109060101600101FF0A1236383431313231424E32343331303130343009060101010700FF060000153009060101020700FF060000000009060101030700FF060000013809060101040700FF0600000000090601011F0700FF06000008AB09060101330700FF06000007B209060101470700FF060000023709060101200700FF1200D609060101340700FF1200DA09060101480700FF1200DDE3777E



# 3 examples of 1 hr message. ID changed to 1111... and CRC updated

7EA12C2B2113FC04E6E7000F000000000C07E3011D02010005FF80000002230A0E4B616D73747275705F563030303109060101000005FF0A100101010101010101010101010101010109060101600101FF0A1236383431313231424E32343331303130343009060101010700FF060000105B09060101020700FF060000000009060101030700FF060000017809060101040700FF0600000000090601011F0700FF06000005D809060101330700FF060000038A09060101470700FF060000041509060101200700FF1200DB09060101340700FF1200DB09060101480700FF1200DF09060001010000FF090C07E3011D02010005FF80000009060101010800FF0600437C9009060101020800FF060000000009060101030800FF06000A35EE09060101040800FF0600012C8CFA257E

7EA12C2B2113FC04E6E7000F000000000C07E3011D020A0005FF80000002230A0E4B616D73747275705F563030303109060101000005FF0A100101010101010101010101010101010109060101600101FF0A1236383431313231424E32343331303130343009060101010700FF060000153509060101020700FF060000000009060101030700FF060000015009060101040700FF0600000000090601011F0700FF06000008A409060101330700FF06000007AB09060101470700FF060000023A09060101200700FF1200D609060101340700FF1200DB09060101480700FF1200DE09060001010000FF090C07E3011D020A0005FF80000009060101010800FF060043895409060101020800FF060000000009060101030800FF06000A370E09060101040800FF0600012C8C4B157E

7EA12C2B2113FC04E6E7000F000000000C07E3011D020B0005FF80000002230A0E4B616D73747275705F563030303109060101000005FF0A100101010101010101010101010101010109060101600101FF0A1236383431313231424E32343331303130343009060101010700FF060000153209060101020700FF060000000009060101030700FF06000000E909060101040700FF0600000000090601011F0700FF06000008B909060101330700FF06000007C409060101470700FF060000023809060101200700FF1200D309060101340700FF1200DB09060101480700FF1200DB09060001010000FF090C07E3011D020B0005FF80000009060101010800FF0600438ABD09060101020800FF060000000009060101030800FF06000A372B09060101040800FF0600012C8CA93B7E
Hi , was just wondering did you get this working?
Reply


Messages In This Thread
RE: Norwegian HAN-interface - Kamstrup meter - by Tokatubs - 08.02.2019, 09:30

Forum Jump: