bsdphk / pykamstrup Goto Github PK
View Code? Open in Web Editor NEWKamstrup Meter Protocol (KMP) implementation
Kamstrup Meter Protocol (KMP) implementation
2020-12-02 Update: ------------------ The local utility has replaced my electricity-meter, so I no longer have any Kamstrup devices to test against. I would really appreciate if somebody else could take over this project. Thanks, Poul-Henning This is an implementation of the Kamstrup Meter Protocol (KMP) based on reverse engineering of a traffic dump. There is very little information about this protocol on the net, and despite calling it an "open protocol", Kamstrup has not wanted to release the documentation for it to me. Thanks to Erik Jensen for details about units and exponents. Tested on a Kamstrup 382J electricity-meter using a home-built optical head. Enjoy, Poul-Henning PS: Sample output: Energy in 6753.0 kWh Energy out 0.0 kWh Energy in hi-res 6753.3242 kWh Energy out hi-res 0.0 kWh Voltage p1 229.0 V Voltage p2 227.0 V Voltage p3 229.0 V Current p1 5.41 A Current p2 2.12 A Current p3 3.07 A Power p1 0.976 kW Power p2 0.475 kW Power p3 0.595 kW
Hi
2 questions:
Hi, I tried to run this code on a MULTICAL 602 with Kamstrup Optical Eye.
I updated the IDs in the code according to Kamstrup documentation for MULTICAL 602. I also verified it with what Kamstrup LogView software is reading using a serial sniffer.
The python code is writing exactly the same bytes as the LogView is doing, but for some reason the read values are not the same. The python script is reading exactly what it is sending, where as LogView is reading more bytes back.
Do you have any idea why this could happen?
...as you may find this useful:
The Google Drive folder linked to here contains info on the protocols used by the Kamstrup meter (DSMR v3.0 and DSMR v4.0) and a brochure for the Kamstrup 162 J.
Hope this helps.
EDIT (20211016): If the above link is not working you may want to try accessing my repo here and check out the documentation.
I have it hooked up to a Raspberry Pi with this optical eye, but all readings report None
.
currently:
0x004B: "Current flow in return flow"
shall be
0x004B: "Current flow in return flow,"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.