Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

No MQTT being sent and WDT-Resets #6

Open
namebee opened this issue Jan 8, 2020 · 9 comments
Open

No MQTT being sent and WDT-Resets #6

namebee opened this issue Jan 8, 2020 · 9 comments

Comments

@namebee
Copy link

namebee commented Jan 8, 2020

Hello, This is my first time doing anything with my smart meter and I've been trying to use esp8266_p1meter on my Wemos D1 Mini. At first I got a SoftwareSerial error and used #4 to fix it, Now I keep getting a bunch of WDT resets.

On top of all of that, I seem to be receiving data but nothing ever gets sent via MQTT.
My smart meter is an Agemcom T210-D.

Any help would be appreciated!

@Qonstrukt
Copy link

I'm having the same issues with a regular NodeMCU dev board. I'm starting to think it's because of the DSMR 5 which sends a lot more data with shorter intervals which gives the loop no time to send data over MQTT and eventually kicking in the WDT.

@HanSyt
Copy link

HanSyt commented Jan 11, 2020

If you are using arduino ide, you could downgrade your board version to 2.5.2 and check if its is working?

@namebee
Copy link
Author

namebee commented Jan 11, 2020

@HanSyt That seems to fix everything! Thank you.

@namebee
Copy link
Author

namebee commented Jan 11, 2020

@HanSyt Never mind that, It seems to be spitting out CRC invalid. Is this a different issue?

@HanSyt
Copy link

HanSyt commented Jan 11, 2020

Did not notice that issue here,

@Hiechel
Copy link

Hiechel commented May 16, 2020

I'm having the same issues with a regular NodeMCU dev board. I'm starting to think it's because of the DSMR 5 which sends a lot more data with shorter intervals which gives the loop no time to send data over MQTT and eventually kicking in the WDT.

Im having exactly the same issue, when i look in my DHCP leases i can confirm it's rebooting each time. The minute i remove the RJ11 from the P1 it stopt with the reboot. I'm also using a NodeMCU.

@TJB88
Copy link

TJB88 commented Aug 13, 2020

@HanSyt Never mind that, It seems to be spitting out CRC invalid. Is this a different issue?

Having the same "CRC invalid" issue, which is most likely related to an old DSMR2.* meter with 9600 baudrate and 7E1 serial output instead of 8N1. SoftwareSerial.h only works with 8N1

@fliphess
Copy link
Owner

fliphess commented Sep 19, 2020

If you are having issues on a newer meter (I wrote this for DSMR2.4 at the time), try the fork created by @daniel-jong.
He rewrote the sketch for using hardware serial rather than the software serial which vastly improves the reading of the telegram.

At the time the telegram was only send every once a minute instead of every second, so this sketch wasn't expecting so much incoming data.

You can find it here: https://github.com/daniel-jong/esp8266_p1meter

I will soon merge his changes into this sketch 👍

@Skottelbraai
Copy link

Has anybody got this working for Kamstrup 382 meter. It uses DSMR2.2
Pin1: RTS
Pin2: GND
Pin3: NC
Pin4: TxD

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants