DSMR Logger V4 (Smart Meter Reader)

Placed on

In August 2018 I published a projects for reading the Smart Meter.

Based on the many reactions of the people who have recreated the project and my own experience with version 3 of the DSMR logger, I thought it was time to develop a new version of the hardware and firmware.

A number of users indicated that they use external services to display the logged data in graphs. I also need a graphical representation of the logged data, but I want to avoid having to use external services for this.

The objectives for version 4 of the DSMR logger have been adapted to the wishes of the builders, but the core has also remained largely the same as for version 3. However, the firmware now works with WebSockets and the amount of data stored has been increased (two years per year). month, two weeks per day and 48 hours per hour). All this data can be displayed in tables and graphs. Of course, the restAPI is not missing either. As icing on the cake, version 4 has the option to connect a small OLED screen.

Financial data in a chart Financial data in a chart
Up to and including version 3 of the DSMR logger, a telegram is received from the Smart Meter every second. Only a small part (every ten seconds) of one telegram is actually processed. In itself that is not a problem because the other nine telegrams just fall into a big black hole, but .. the ESP8266 UART must respond to this flood of data (the UART is interrupt driven). Both the Smart Meter and the DSMR library of Matthijs Kooyman have the option to send telegrams only on demand (Smart Meter) or request (DSMR library).
It works like this: The Smart Meter only sends a telegram if the Data Request pin “high” is. The DSMR library has a function call “enable(true)" which is a pin of the ESP8266 "high” makes and this “high” until a complete telegram has been received, after which the pin “low” is made (and the Smart Meter stops sending Telegrams).
Because for the earlier versions of the DSMR logger I used a ESP-01 board, this functionality could not be used simply because the ESP-01 does not have enough pins to free one for it.

The ESP-12(E/F) does have enough GPIO pins and considerably (4x) more memory than the ESP-01(S). It was therefore a logical choice to use this variant of the ESP8266 for version 4 of the DSMR logger.

Extensive technical documentation for this project you can here find.

It prototype and proof of concept i have on one 1or!-ESP12 processor sign with a 1of!-Proto plate made.
Current Page 1. Introduction 1. Introduction 2. data request circuit 3. Process telegram 4. I2C interface 5. ADC interface 6. Putting It All Together 7. A beautiful packaging Posted by Website Willem Aandewiel (1955) has a background in electronics and digital techniques. However, most of his working life he has worked in automation where he has worked in just about all disciplines from programmer to project leader and project manager. Willem was one of the first Dutchmen with a micro-computer (KIM-1, 1976) at a time when the PC had yet to be invented. Nowadays he is mainly concerned with the design and production of small electronic circuits with microprocessors. His 'mission in life' is to make people enthusiastic about making their own electronic circuits, microcomputers and programming.

Comments

Webwinkelkeur Kiyoh Trustpilot Opencircuit