endrebjorsvik / kaifa-meter

Read and decode serial data from Kaifa electricity meters
GNU General Public License v3.0
3 stars 1 forks source link

How to debug OBIS #4

Open larsvinc opened 4 years ago

larsvinc commented 4 years ago

Hi,

I wrote a daemon using your library for a Kaifa meter. Now I want to use the same for a Politerm 800, but of course the format is different. I keep getting this error: Exception: Error in path (parsing) -> meter_ts_item -> item_type

Do you know of good debugging tools to figure out the format so I can modify your code to work with the Politerm?

Thanks!

endrebjorsvik commented 4 years ago

Hi, I based the implementation on this spec from Kaifa, and perhaps a few other documents I found in other repos around. I don't know of any special tools that can figure out the format. It was mostly done by knowing what to expect and match it to visible patterns in the stream. You can sometimes spot useful patterns when looking at it in a hex editor. I don't find any concise documentation for Politerm, but perhaps this one might help you in the right direction. Page 6 lists some sort of overall serial format.