Page 1 of 1
P1-wifi gateway (ESPEasy based)
Posted: Saturday 21 May 2016 12:15
by romix
Hi,
I have designed a small shield for the Wemos D1 mini to interface to the (Dutch) P1 Smart Meter port (see romix.macuser.nl). The Wemos board runs ESPEasy (either the Ser2Net plug-in, or my own, more customized to P1 datagrams, plug-in). On the Domoticz side, it uses the 'P1 Smart Meter with LAN interface' hardware pplug-in.
For a while, this works fine.
This is what the log shows:
2016-05-18 08:54:29.140 (serialtest) P1 Smart Meter (Power new)
2016-05-18 08:54:39.203 (serialtest) P1 Smart Meter (Power new)
2016-05-18 08:54:49.239 (serialtest) P1 Smart Meter (Power new)
Then, for unknown reasons this happens:
2016-05-18 08:33:00.383 Error: serialtest hardware (11) thread seems to have ended unexpectedly
When we're in this stage, both ESP and Domoticz need to be restarted.
Anyone have an idea how to find out what's wrong and how to fix it?
The datagrams produced by the ESP module seem fine (and are only sent when complete).
Ronald
Re: P1-wifi gateway (ESPEasy based)
Posted: Thursday 26 May 2016 19:32
by hemarsys
Same issues here.
Anyone have an idea how to solve this problem?
Regards,
hemarsys
Re: P1-wifi gateway (ESPEasy based)
Posted: Thursday 26 May 2016 21:41
by Mediacj
I have no solution for this problem but with this bridge on a esp8266 it all works perfect for more then a half year at the moment within Domoticz.
https://github.com/beckdac/ESP8266-transparent-bridge
Re: P1-wifi gateway (ESPEasy based)
Posted: Thursday 09 June 2016 20:46
by piotr
romix wrote:
Then, for unknown reasons this happens:
2016-05-18 08:33:00.383 Error: serialtest hardware (11) thread seems to have ended unexpectedly
When we're in this stage, both ESP and Domoticz need to be restarted.
Anyone have an idea how to find out what's wrong and how to fix it?
The datagrams produced by the ESP module seem fine (and are only sent when complete).
Ronald
I've ordered this board from you, I may assume that the board comes with this issue fixed ?
Re: P1-wifi gateway (ESPEasy based)
Posted: Friday 17 June 2016 8:57
by hemarsys
is there any news about a fix?
Re: P1-wifi gateway (ESPEasy based)
Posted: Friday 17 June 2016 9:00
by piotr
I received my board this week, followed the instructions but I haven't got it to work yet. I have created the "serial server" but I cannot connect to it.
Re: P1-wifi gateway (ESPEasy based)
Posted: Sunday 26 June 2016 22:49
by Softwareregi
If you have a Kaifa MA105: set baudrate 115200 8N1, esp easy serial server.... and it works !
Bye
Re: P1-wifi gateway (ESPEasy based)
Posted: Thursday 14 July 2016 18:11
by piotr
I have a Kaifa, I'm using the recommended settings. It runs. For 10 minutes, then everything crashes. In my opinion this is not beta, this is experimental. I think I'll revert to rpi+p1 usb. Ran for years without crashing a single time.
Re: P1-wifi gateway (ESPEasy based)
Posted: Tuesday 16 August 2016 8:27
by piotr
I gave up on this, I had 20+ crashes per day. I've changed my setup to a slave instance of Domoticz with a P1 USB cable. It never crashed since.
Re: P1-wifi gateway (ESPEasy based)
Posted: Tuesday 16 August 2016 14:47
by mvdbro
piotr wrote:I have a Kaifa, I'm using the recommended settings. It runs. For 10 minutes, then everything crashes. In my opinion this is not beta, this is experimental. I think I'll revert to rpi+p1 usb. Ran for years without crashing a single time.
As mentioned on the Wiki for the Serial Server plugin:
Information on this page is based on preliminary development. Beware that functionality may be incomplete, not fully tested and subject to change.
You could also read: experimental.
Re: P1-wifi gateway (ESPEasy based)
Posted: Wednesday 31 August 2016 14:24
by romix
New plug is is available on ESP Easy github (
https://github.com/ESP8266nu/ESPEasyPlu ... ateway.ino).
This version verifies checksum and drops corrupt datagrams. Stability seems fine now.
Re: P1-wifi gateway (ESPEasy based)
Posted: Thursday 06 October 2016 13:47
by egkman
I can confirm: running over 1 month now with new plug-in / firmware and no hick-ups whatsoever. Seems to be really stable now. Neat solution.