Smart Meter measuring power consumption with serial port

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Tobbes
New user
Posts: 7
Joined: 10 Jan 2019, 07:43

Smart Meter measuring power consumption with serial port

#1 Post by Tobbes » 17 Jan 2019, 13:35

Hi,

I want to measure the power consumption from my smart meter.
This device has an optical interface (D0, SML) that gives a HEX output for the momentary consumption.
Is it possible to extract the energy values out of the HEX string only by ESP Easy and publish them over mqtt?

Can anybody show me an example how to do that? I am a beginner with micro controllers ;)

Thanks
Tobbes

Tobbes
New user
Posts: 7
Joined: 10 Jan 2019, 07:43

Re: Smart Meter measuring power consumption with serial port

#2 Post by Tobbes » 19 Jan 2019, 22:54

Hello I need some help with a plugin for my project...

I found the plugin _P182_MT681.ino which seems to do what I want.
I hope I understand to change the HEX values, according to my needs.

Then I compile the firmware (first time). I connected an IR receiver to RX and GND but I do not know how to setup the ESP easy.

Mayby somebode can help me. Here is the plugin https://github.com/letscontrolit/ESPEas ... _MT681.ino

Must I use serial port enabled? Where can I find something about the baud rate?

Thanks Tobbes

woocashewski
Normal user
Posts: 13
Joined: 22 Sep 2018, 19:09
Location: Poland

Re: Smart Meter measuring power consumption with serial port

#3 Post by woocashewski » 31 Mar 2019, 00:15

hi, i'm facing a similar problem - can You post me a compiled firmware with this plugin? i've uninstalled all the stuff needed to compile.... thanks in an advance.

woocashewski
Normal user
Posts: 13
Joined: 22 Sep 2018, 19:09
Location: Poland

Re: Smart Meter measuring power consumption with serial port

#4 Post by woocashewski » 01 Apr 2019, 22:34

hi, after some investigation...

the iskra meter plugin is - as far as i know - "passive mode" - so the power meter has to transmit OBIS codes by itself - without any external transmission to power meter /using only RX phototransistor/

so you can't use it to get data from any other power meter, which transmits data only after being asked to do so, like here:

Baudrate: 300 bps, 7 bits, parity even, 1 stop bit
Send: /?!<CR><LF> (wake-up and sign-on)
Receive: /XXX5YYYYY<CR><LF> (XXX is the manufacturer ID; YYYYY is the meter ID; 5 is the new baudrate = 9600 bps)
Send: <ACK>050<CR><LF> (send ack; reading mode)
Baudrate: 9600 bps, 7 bits, parity even, 1 stop bit
Received: C.1(201236731.0(01:39 25-08-18)
1.8.1(0004398506*Wh)
1.8.2(0000000000*Wh)
1.8.3(0008198809*Wh)
1.8.4(0000000000*Wh)
1.8.5(0000000000*Wh)
1.8(0012597315*Wh)
2.8(0000000000*Wh)
!
D

source: https://forum.mysensors.org/topic/9673/ ... gy-meter/4

my programming skills are very limited, so i need help from someone, who can help in writing such plugin - the good news are, that every power meter send this data in same format, so if such a plugin will be developed - we can read data from any power meter - they transmits much more than those 3 datas given in iskra plugin , there are almost 100 of obis codes :)

anyone could help? i can pay someone to code it, i'm sure that I'm not the only one ....

at least I hope so ;)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 90 guests