P1 smartmeter throws errors

Moderator: leecollings

Post Reply
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

P1 smartmeter throws errors

Post by BartSr »

Hi,

Domoticz 2021.1

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

TIA
-Bart
Attachments
p1.jpg
p1.jpg (40.76 KiB) Viewed 1124 times
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 5854
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: P1 smartmeter throws errors

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post by BartSr »

Meter from Stedin.
How can I catch the telegram? Currently the P1 is plugged into the raspberry pi.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
FireWizard
Posts: 1893
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smartmeter throws errors

Post by FireWizard »

Hi @ BartSr,

Do you use a L&G E360 smartmeter?

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

Regards
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post 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
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
FireWizard
Posts: 1893
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smartmeter throws errors

Post 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
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post 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
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
FireWizard
Posts: 1893
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smartmeter throws errors

Post 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
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post by BartSr »

Thanks a lot. Will be offline a few days and will return with my findings later.
Bart
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post by BartSr »

Gents,
Kind of black magic or update by Stedin.
All crc errors are gone without intervention by myself.
-Bart
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
FireWizard
Posts: 1893
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: P1 smartmeter throws errors

Post by FireWizard »

Nice, so we can consider this topic as closed.

Regards
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post by BartSr »

One year later. New Stable Domoticz release 2023.1 and yes.... all CRC's are back again since 2023.1 version
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: P1 smartmeter throws errors

Post by BartSr »

And then, same as last year errors are gone with the wind.....
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest