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
#2
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
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).
Reply


Messages In This Thread
RE: Norwegian HAN-interface - Kamstrup meter - by admin - 31.01.2019, 13:58

Forum Jump: