Page 1 of 1

P1 smartmeter throws errors

Posted: Wednesday 19 January 2022 22:15
by BartSr
Hi,

Domoticz 2021.1

My smartmeter reports errors as shown below. Baudrate is OK.
Any suggestion how to fix this?

TIA
-Bart

Re: P1 smartmeter throws errors

Posted: Wednesday 19 January 2022 22:40
by waltervl
New cable?
Enexis supplied meter? As there seems to be an issue with it (but should be solved).
Else try to read the P1 telegram and post it here.

Re: P1 smartmeter throws errors

Posted: Wednesday 19 January 2022 22:45
by BartSr
Meter from Stedin.
How can I catch the telegram? Currently the P1 is plugged into the raspberry pi.

Re: P1 smartmeter throws errors

Posted: Wednesday 19 January 2022 23:05
by FireWizard
Hi @ BartSr,

Do you use a L&G E360 smartmeter?

See: viewtopic.php?f=6&t=31593

Regards

Re: P1 smartmeter throws errors

Posted: Sunday 23 January 2022 17:29
by BartSr
@ FireWizard
Yes indeed L&G E360 smartmeter. I read viewtopic.php?f=6&t=31593.
From that I am not that hopefull the CRC's will get away by any 'user action'

Do you know how I cab catch the telegrams for further analyzing?

-Bart

Re: P1 smartmeter throws errors

Posted: Sunday 23 January 2022 18:48
by FireWizard
Hi, @BartStr

If you want to see the RAW protocol, do the following:

1. Stop Domoticz, as it will bind the USB port.(sudo service domoticz.sh stop or sudo /etc/init.d/domoticz.sh stop )
2. Issue the following command: "sudo cu -l /<Your serial port device> -s 115200 --parity=none -E q"
Replace "Your serial port device" with your serial (USB) port.

If it returns, that it cannot find the cu command, install it with sudo apt-get install cu minicom.

Regards

Re: P1 smartmeter throws errors

Posted: Sunday 23 January 2022 20:52
by BartSr
@Firewizzard:
Re "Your serial port device"
What are common names for such (I am not very familar using Linux)
Will that be USB0 or USB1 or USB2 etc? or /dev/ttyUSB0 etc. And what is most easy way to figure out wich USB is in use for it?
KR
-Bart

Re: P1 smartmeter throws errors

Posted: Sunday 23 January 2022 21:37
by FireWizard
Hello @BartStr
In my opinion the easiest way to find the USB, which is connected to your Smarmeter (using a serial to USB converter) is to follow the next steps.

1. Disconnect the USB cable from the P1 Smart meter on the Raspberry Pi.
2. Issue the command

Code: Select all

lsusb
3. Observe the result.
4. Reconnect the USB cable to the Pi.
5. Repeat step 2
6. Observe the difference. The new line indicate the USB port of the P1 Smart meter.

See also: https://linuxhint.com/list-usb-devices-linux/

I also recommend to create persistent USB.
See:https://www.domoticz.com/wiki/PersistentUSBDevices

Your USB will probably be something like /dev/ttyUSB0 or /dev/ttyUSB1.

Regards

Re: P1 smartmeter throws errors

Posted: Sunday 23 January 2022 22:29
by BartSr
Thanks a lot. Will be offline a few days and will return with my findings later.
Bart

Re: P1 smartmeter throws errors

Posted: Monday 14 February 2022 16:16
by BartSr
Gents,
Kind of black magic or update by Stedin.
All crc errors are gone without intervention by myself.
-Bart

Re: P1 smartmeter throws errors

Posted: Monday 14 February 2022 16:37
by FireWizard
Nice, so we can consider this topic as closed.

Regards

Re: P1 smartmeter throws errors

Posted: Friday 17 February 2023 14:28
by BartSr
One year later. New Stable Domoticz release 2023.1 and yes.... all CRC's are back again since 2023.1 version

Re: P1 smartmeter throws errors

Posted: Sunday 19 February 2023 17:08
by BartSr
And then, same as last year errors are gone with the wind.....