Connecting P1 crashes Domoticz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Thugbear76
Posts: 3
Joined: Friday 08 July 2022 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Connecting P1 crashes Domoticz

Post by Thugbear76 »

Hello - not sure where to specifically ask my question, but here goes.

I have a Domoticz (2022.1 (build 14374) with Python 3.9.2) running on a Raspberry Pi 3B+.
When I install hardware and connect my P1 cable to my Slimme Meter, I get information, but within either a fw seconds or few minutes, my Domoticz crashes.

I have checked the telegram I get on the system, and they seem to be fine.
Spoiler: show
/ISK5\2M550E-1012

1-3:0.2.8(50)
0-0:1.0.0(220708165135S)
0-0:96.1.1(4530303433303037303131313632313137)
1-0:1.8.1(011235.822*kWh)
1-0:1.8.2(010687.971*kWh)
1-0:2.8.1(000000.000*kWh)
1)0:2.8.2(000000.000*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.553*kW)
1-0:2.7.0(00.000*kW)
0-0:86.7.21(00009)
0-0:96.7.9(00002)
1-0:99.97.0()
1-0:32.32.0(00007)
1-0:32.32.0(00001)
0-0:96.13.0()
1-0:32.7.0(224.6*V)
1-0:31.7.0(002*A)
1-0:21.7.0(00.553*kW)
1-0:22.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303332353635353334363736383137)
0-1:24.2.1(220708165006S)(00671.615*m3)
!C39C
In Domoticz I see the following in the log: a lot of CRC errors, and finally the error that the webserver is dead.
Spoiler: show
2022-07-08 16:51:58.603 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:51:58.389 Status: Smart Meter: Using serial port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AC2JPV5F-if00-port0
2022-07-08 16:51:58.393 Status: Smart Meter: Worker started...
2022-07-08 16:51:58.540 Status: Smart Meter: Meter reports as ESMR 5.0
2022-07-08 16:51:58.587 Status: Smart Meter: Found gas meter on M-Bus channel 1
2022-07-08 16:51:59.605 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:00.607 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:01.605 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:02.611 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:03.609 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:04.609 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:05.623 Smart Meter: P1 Smart Meter (Power)
2022-07-08 16:52:05.647 Smart Meter: General/Voltage (Voltage L1)
2022-07-08 16:52:05.656 Smart Meter: Usage (Usage L1)
2022-07-08 16:52:05.665 Smart Meter: Usage (Delivery L1)
2022-07-08 16:52:05.675 Smart Meter: P1 Smart Meter (Gas)
2022-07-08 16:52:06.612 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:07.612 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:08.614 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:09.615 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:10.617 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:11.618 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:12.619 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:13.599 Smart Meter: Dismiss incoming - CRC value in message has trailing characters
2022-07-08 16:52:14.621 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:15.621 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:55.682 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:57.669 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:52:59.686 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:00.672 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:01.689 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:02.673 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:03.672 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:04.671 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:05.700 Smart Meter: P1 Smart Meter (Power)
2022-07-08 16:53:05.724 Smart Meter: General/Voltage (Voltage L1)
2022-07-08 16:53:05.739 Smart Meter: Usage (Usage L1)
2022-07-08 16:53:05.753 Smart Meter: Usage (Delivery L1)
2022-07-08 16:53:06.677 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:07.696 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:08.679 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:09.677 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:10.678 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:11.699 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:12.683 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:13.683 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:16.703 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:18.637 Smart Meter: Dismiss incoming - value is not delimited in line "1-0:1.8.2(010687.995"
2022-07-08 16:53:19.690 Smart Meter: Dismiss incoming - CRC failed
2022-07-08 16:53:20.669 Error: Domoticz(pid:4677, tid:5714('WebServer_8080')) received fatal signal 6 (Aborted)
2022-07-08 16:53:20.669 Error: siginfo address=0x1245, address=(nil)
I have no clue what the problem might be - it seems the telegrams are ok, but at a loss why I have a crashing system.

Any ideas?
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Connecting P1 crashes Domoticz

Post by FireWizard »

Hello @Thugbear76,

As far as I can see, there is nothing wrong with the P1 telegram.
I also assume that the Domoticz webserver does not crash, while the P1 cable is disconnected.

Quite often I saw on this forum, that this kind of problems were caused by a faulty cable.
Do you have the possibility to test with another cable?

Regards
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Connecting P1 crashes Domoticz

Post by jake »

I experience the same faulty behaviour after updating domoticz last Saturday:

viewtopic.php?p=291161#p291161
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Connecting P1 crashes Domoticz

Post by Jan Jansen »

jake wrote: Tuesday 12 July 2022 12:17 I experience the same faulty behaviour after updating domoticz last Saturday:

viewtopic.php?p=291161#p291161
I had the same problem (see viewtopic.php?p=289961#p289961). Before it worked smoothly for me (RPI 3, starting and running by means of a SSD). With my daughter, the problem arose when I equipped her system (RPI 3B) with a SSD (starting and running by means of a SSD). Before, starting and running by means of an SD card worked smoothly. I solved the problem by starting the RPI by means of a SD card and moving the file system to the SSD. It is weird but I don't have enough knowledge to solve it differently, who?
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Connecting P1 crashes Domoticz

Post by jake »

My P1-meter is connected to the serial port of the RPI directly, with a pull-up resistor in between. This has worked flawlessly for years.

Luckily the update script of domoticz makes a complete backup of the domoticz folder. So I renamed my normal folder and put this backup in place. A start of domoticz from that backup revealed the same CRC errors, so I assume that it must have been a coincidence that a day after an update the P1-meter starts failing
Thugbear76
Posts: 3
Joined: Friday 08 July 2022 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connecting P1 crashes Domoticz

Post by Thugbear76 »

I dont have an extra or spare cable. Also I didnt have those issues before, and it has been running (even with crc errors) for quite a while (as in years).

Glad to see there are more with issues, but sadly it doesn't mean a fix for now. I will see if I can get hold of another cable.
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Connecting P1 crashes Domoticz

Post by jake »

What I did was a complete system reboot and after that the problem was gone. Please try that first.
Thugbear76
Posts: 3
Joined: Friday 08 July 2022 16:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Connecting P1 crashes Domoticz

Post by Thugbear76 »

The reboots I have done multiple times, also after each update - hoping it fixes something. Didnt yet find a cable, but still having the same issues
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest