Autor Thema: Connecting MT681 (energy meeter from enbw) to fhem with a esp8266  (Gelesen 11566 mal)

Offline immi

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1064
Antw:Connecting MT681 (energy meeter from enbw) to fhem with a esp8266
« Antwort #45 am: 28 Juli 2021, 18:24:27 »
Hi Heiner
good job so far.

the clear text in "nc ip port |hexdump -c" (...HAG5eHZ0..) let me think that you do not have an SML meeter like me; therefore try without the SML option.
Verbose 5 can help you debugging.
for other options https://fhem.de/commandref_DE.html#OBIS
or mabe contact the module owner (Maintainer: gvzdus Forum: Sonstige Systeme)
 
p.s. pay attention the software serial is very sensitive to noise. You will get lots of messages full with errors which cannot be interpreted. By trial and error you can find out which pin is more stable on your esp8266 or the positioning of the IR. The buffer you are showing below looks quite damaged. But also if you receive 1 correct message evry 10 is OK.

Offline Heiner

  • Full Member
  • ***
  • Beiträge: 268
Antw:Connecting MT681 (energy meeter from enbw) to fhem with a esp8266
« Antwort #46 am: 04 August 2021, 19:01:03 »
Hi, after several trails i was able to upload (using the new Web-flash funktion) the ESP32 und used HW Serial2 and it works perfectly.

obis device worls fine as well.

to note 8266 with espEasy did not work neither hw serial, nor HSswap serial. only SW Serial with errors. Tasmota on the 8266 worked on HW serial without problem but not on SW serial, but tasmota need mqtt to Feedback which is complex as well.
Heiner
--------------------------------
fhem auf BananaPi
CUL 868MHz, Signalduino 434MHz, HM-CFG-USB
HM, THZ, Kostal, Somfy, Zigbee, FritzBox, FTUI

Offline immi

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1064
Antw:Connecting MT681 (energy meeter from enbw) to fhem with a esp8266
« Antwort #47 am: 04 August 2021, 19:37:43 »
Happy you made it with the esp32.
I fixed the hardwareserial on the esp8266 (if you want to try).
https://forum.fhem.de/index.php/topic,52843.msg1167780.html#msg1167780

I will send the bugfix to the espeasy guys...
« Letzte Änderung: 05 August 2021, 22:01:42 von immi »

Offline Heiner

  • Full Member
  • ***
  • Beiträge: 268
Antw:Connecting MT681 (energy meeter from enbw) to fhem with a esp8266
« Antwort #48 am: 14 August 2021, 20:19:00 »
Hi,
Immi, I can confirm your fix is working so 8266 with HW serial is working fine now.
5 Stars for Immi.

Many Thanks.
Heiner
--------------------------------
fhem auf BananaPi
CUL 868MHz, Signalduino 434MHz, HM-CFG-USB
HM, THZ, Kostal, Somfy, Zigbee, FritzBox, FTUI