Page 1 of 1

Issue with P1 Smart Meter

Posted: Tuesday 12 February 2019 21:02
by WTRDB
Hi All.

I have a Issue with a lot of CRC Failed messages.

Version: CURRENT: 4.10373 (BETA) and 4.9700 (Stable)
Platform: Raspbian on Raspberry Pi 3
Plugin/Hardware: Philips Hue
Description: Issue with P1 Smat Meter

I have tried the following, but unfortunately I still get CRC notifications
1) reset the hardware device in domoticz (delete / reboot / readd)
2) reset the hardware dongle it self
3) upgrade to last BETA.

Code: Select all

2019-02-12 20:45:14.870 Status: P1 Smart Meter: Worker started...
2019-02-12 20:45:15.758 Status: P1 Smart Meter: Meter reports as DSMR 5.0
2019-02-12 20:45:16.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:16.793 P1 Smart Meter: Dismiss incoming - value is not delimited in line "1-0:1.8.2(000397.121"
2019-02-12 20:45:16.011 Status: P1 Smart Meter: Found gas meter on M-Bus channel 1
2019-02-12 20:45:18.185 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:19.192 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:20.185 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:21.181 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:22.181 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:24.180 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:25.194 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:26.190 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:27.179 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:28.185 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:28.936 P1 Smart Meter: Dismiss incoming - CRC value in message has trailing characters
2019-02-12 20:45:30.178 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:31.182 (Slimme meter) P1 Smart Meter (Power)
2019-02-12 20:45:31.199 (Slimme meter) P1 Smart Meter (Gas)
2019-02-12 20:45:32.793 P1 Smart Meter: Dismiss incoming - value in line "1-0:1.8.2(00039.129*kWh)" is not a number
2019-02-12 20:45:34.180 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:35.185 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:36.192 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:37.181 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:37.803 P1 Smart Meter: Dismiss incoming - value in line "1-0:1.8.2(00037.132*kWh)" is not a number
2019-02-12 20:45:39.193 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:40.179 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:40.978 P1 Smart Meter: Dismiss incoming - value in line "1-0:32.7.0(231.*V)" is not a number
2019-02-12 20:45:42.000 P1 Smart Meter: Dismiss incoming - value in line "1-0:21.7.0(01&870*kW)" is not a number
2019-02-12 20:45:43.004 P1 Smart Meter: Dismiss incoming - value in line "1-0:22.7.0(00.00*kW)" is not a number
2019-02-12 20:45:44.041 P1 Smart Meter: Dismiss incoming - value in line "0-1:24.2.1(190212204509W)(00180.65�*m3)" is not a number
2019-02-12 20:45:44.810 P1 Smart Meter: Dismiss incoming - value in line "1-0:2.8.2(00000.000*{Wh)" is not a number
2019-02-12 20:45:46.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:46.991 P1 Smart Meter: Dismiss incoming - value in line "1-0:31.7.0(008:A)" is not a number
2019-02-12 20:45:47.850 P1 Smart Meter: Dismiss incoming - value in line "1-0:2.7.0(00.�00*kW)" is not a number
2019-02-12 20:45:48.796 P1 Smart Meter: Dismiss incoming - value in line "1-0:1.8.1(000402&772*kWh)" is not a number
2019-02-12 20:45:49.792 P1 Smart Meter: Dismiss incoming - value in line "1-0:1.8.1(0004p2.772*kWh)" is not a number
2019-02-12 20:45:51.183 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:52.180 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:53.181 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:54.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:55.000 P1 Smart Meter: Dismiss incoming - value in line "1-0:22.7.0(00&000*kW)" is not a number
2019-02-12 20:45:55.813 P1 Smart Meter: Dismiss incoming - CRC value in message has trailing characters
2019-02-12 20:45:57.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:58.192 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:45:59.179 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:01.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:02.193 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:03.178 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:04.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:05.192 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:07.186 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:10.189 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:11.177 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:12.184 P1 Smart Meter: Dismiss incoming - CRC failed
2019-02-12 20:46:12.807 P1 Smart Meter: Dismiss incoming - value in line "1-0:2.8.1(00000.323*kWh)" is not a number
am i the only one with this problem?

Wouter.

Re: Issue with P1 Smart Meter

Posted: Wednesday 13 February 2019 9:56
by Dr8072
How is the data arriving into Domoticz? I mean, direct usb cable into the raspberry, via a serial to USB converter or via a raspberrry running ser2net for example?,
CRC errors can be caused by a bad cable, wrong serial settings, length of cable between p1 and usb device (interference ), usb power to your domoticz and faulty p1 on the meter

Things to try:
use a different means of getting the data in domoticz. ie. change cable, or try something like serial2net, triple check baudrate settings

Re: Issue with P1 Smart Meter

Posted: Wednesday 01 July 2020 1:12
by felix63
Do you still have this problem? I had a new meter installed and now I have similar problems!

Re: Issue with P1 Smart Meter

Posted: Wednesday 01 July 2020 10:04
by FireWizard
Hi,

You said:
I had a new meter installed and now I have similar problems!
I assume, that you had no problems with your old meter?
What is your baud rate? Should be 115.200 8N1.

Regards

Re: Issue with P1 Smart Meter

Posted: Sunday 19 July 2020 23:44
by felix63
I had no problem with my old meter. New one is L+G E360. I have baud rate at 115200. I see no option to set 8N1 somewhere. Running on Version: 2020.2.

Code: Select all

2020-07-19 23:31:50.602 Status: P1 Smart Meter: Using serial port: /dev/ttyUSB0
2020-07-19 23:31:50.607 Status: P1 Smart Meter: Worker started...
2020-07-19 23:31:51.790 P1 Smart Meter: Dismiss incoming - CRC failed
2020-07-19 23:31:51.261 Status: P1 Smart Meter: Meter reports as ESMR 5.0
2020-07-19 23:31:51.621 Status: P1 Smart Meter: Found gas meter on M-Bus channel 1
2020-07-19 23:31:52.331 P1 Smart Meter: Dismiss incoming - value in line "1-0:2.8.2(000000.00 *kWh)" is not a number
2020-07-19 23:31:53.798 P1 Smart Meter: Dismiss incoming - CRC failed
2020-07-19 23:31:54.360 P1 Smart Meter: Dismiss incoming - value is not delimited in line "1-0:2.7.0(00.000"
2020-07-19 23:31:55.791 P1 Smart Meter: Dismiss incoming - CRC failed
2020-07-19 23:31:56.303 P1 Smart Meter: Dismiss incoming - value in line "1-0:1.8.2(0 0221.398*kWh)" is not a number
2020-07-19 23:31:57.800 P1 Smart Meter: Dismiss incoming - CRC failed
2020-07-19 23:31:58.528 P1 Smart Meter: Dismiss incoming - value in line "1-0:31.7.0(02*A)" is not a number
2020-07-19 23:31:59.787 P1 Smart Meter: Dismiss incoming - CRC failed
2020-07-19 23:32:00.788 P1 Smart Meter: Dismiss incoming - CRC failed

Re: Issue with P1 Smart Meter

Posted: Monday 20 July 2020 6:56
by EddyG
Did you try to disable the "CRC message validation" in the settings of the P1 meter?

Re: Issue with P1 Smart Meter

Posted: Monday 20 July 2020 13:39
by felix63
Thanks.

Now I am getting some values in. But I am still getting a lot of:

2020-07-20 13:37:50.739 P1 Smart Meter: Dismiss incoming - value in line "1-0:32.7.0(218.%*V)" is not a number
2020-07-20 13:37:51.798 P1 Smart Meter: Dismiss incoming - value in line "1-0:31.7.01-0:71.7.0(000*A)" is not a number
2020-07-20 13:37:52.800 P1 Smart Meter: Dismiss incoming - value in line "1-0:21.7.0(0.279*kW)" is not a number
2020-07-20 13:37:54.858 P1 Smart Meter: Dismiss incoming - value in line "1-0:62.7.0(00. 00*kW)" is not a number
2020-07-20 13:37:55.544 P1 Smart Meter: Dismiss incoming - value in line "1-3:0.2.8(50-0:96.1.1(4303036373003535343138363XX73230)" is oversized

Re: Issue with P1 Smart Meter

Posted: Monday 20 July 2020 16:33
by FireWizard
Hi,

@felix63

@EddyG wrote:
Did you try to disable the "CRC message validation" in the settings of the P1 meter?
This is not the correct way to start with. CRC errors means that there are communication errors between the P1 port of the smart meter and Domoticz.
You can disable these, but that does not solve the cause of the CRC errors. If you hide these, it doesn't mean that they do not exist anymore.

Unfortunately the output interface of the smart meter are not the same for all types and brands.

You did not tell which type, you used before.
The probable cause might be the cable. For the Landis and Gyr E360 (and also the E350) a pull up resistor is required.

See: http://domoticx.com/p1-poort-slimme-meter-hardware/

See also this post: https://www.domoticz.com/forum/viewtopi ... yr#p231414
and: https://www.domoticz.com/forum/viewtopi ... yr#p228375

I think you should solve the issue and check, if there are changes between your old Smart meter and the Landis + Gyr E360.
And then you can re-enable the CRC setting again.

Regards

Re: Issue with P1 Smart Meter

Posted: Friday 24 July 2020 17:16
by EddyG
FireWizard wrote: Monday 20 July 2020 16:33 @EddyG wrote:
Did you try to disable the "CRC message validation" in the settings of the P1 meter?
This is not the correct way to start with. CRC errors means that there are communication errors between the P1 port of the smart meter and Domoticz.
You can disable these, but that does not solve the cause of the CRC errors. If you hide these, it doesn't mean that they do not exist anymore.
Of course you are right, but it might be a way (temporary) to tell if the message is then OK.
The option is there, so you might try to use it temporary. Why is the option there?

Re: Issue with P1 Smart Meter

Posted: Friday 24 July 2020 19:10
by FireWizard
@EddyG

You wrote
The option is there, so you might try to use it temporary. Why is the option there?
The first versions of the P1 Smart Meter protocol, such as DSMR 2.2, didn't contain a CRC check. So, if it happens, that you have an old meter, with a protocol prior to version DSMR 4.0 and you want to use Domoticz, you have to disable the CRC check.

This protocol itself, I cannot find at the website of Netbeheer Nederland, but if you are interested you can check:
http://read.pudn.com/downloads145/doc/6 ... l%20P1.pdf

Another reason, I cannot imagine.

The change that disabling the CRC check solves the problem is very small, so disabling is not recommended, as long as the protocol supports CRC.
Most of the smart meters do.

Regards

Re: Issue with P1 Smart Meter

Posted: Monday 17 August 2020 23:23
by felix63
The old meter was a Kaifa SSMR5.0 MA304H4CNL. The cable I bought ready made.

Re: Issue with P1 Smart Meter

Posted: Sunday 07 February 2021 13:11
by bortek
Did you ever find the solution to E360 and CRC errors? I am having this same issue. Is the CRC calculated differently than in older protocol versions?

Re: Issue with P1 Smart Meter

Posted: Sunday 07 February 2021 17:01
by FireWizard
@bortek

You wrote:
Is the CRC calculated differently than in older protocol versions?
No, the protocol has not changed and the way the CRC is calculated has not changed either.

Did you check your cable?

Best regards

Re: Issue with P1 Smart Meter

Posted: Monday 08 February 2021 21:49
by bortek
I dont think it is a cable since there is another user with the same setup and he also gets the same crc errors. More finding is that the E360 uses ESMR5.0 protocol and I wonder if that has a different crc checksum calculation.

Re: Issue with P1 Smart Meter

Posted: Tuesday 09 February 2021 14:21
by FireWizard
Hello @bortek,

Please do not X-post your post.
That will probably not gain more attention, but create more irritation.

I will answer your question at: viewtopic.php?f=6&t=31593&start=20

Regards