Code Monkey home page Code Monkey logo

pykamstrup's Introduction

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

pykamstrup's People

Contributors

bsdphk avatar piotrmaslanka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pykamstrup's Issues

Adding meter and cipher code

Hi
2 questions:

  • How to add an additional meter (where to find the infomation)?
  • If data is encryptet and I have the key where do I add the key?

Did not work with MULTICAL 602 although I updated the registers

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?

Let me just park this here...

...as you may find this useful:

Kamstrup info

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.

Missing comma in line 50

currently:
0x004B: "Current flow in return flow"
shall be
0x004B: "Current flow in return flow,"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.