I’m using an Raspberry Pi 2B with an USB-connection and installed openHABian and openHAB3.2 stable and the “volkszaehler” IR-readout.
Worked fine with my onedirectional meter until yesterday. I got a new bidirectional meter for use with my PV and it works also, but once in a while, the Thing goes offline with “wrong crc” and comes up again afterwards.
2022-03-15 16:33:43.909 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:2Richtung' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): wrong crc
2022-03-15 16:33:51.313 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:2Richtung' changed from OFFLINE (COMMUNICATION_ERROR): wrong crc to ONLINE
...
2022-03-15 16:37:43.935 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:2Richtung' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): wrong crc
2022-03-15 16:37:50.981 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:2Richtung' changed from OFFLINE (COMMUNICATION_ERROR): wrong crc to ONLINE
...
2022-03-15 16:39:43.920 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:2Richtung' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): wrong crc
2022-03-15 16:39:50.960 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:2Richtung' changed from OFFLINE (COMMUNICATION_ERROR): wrong crc to ONLINE
This happens exactly every two minutes, the Thing is configured like this:
Is the bidirectional meter from the same manufacturer?
The reading with optical probe and a “platinencomputer” is a little fragile I would say.
There are many aspects which can lead to a crc error.
I would check following things:
the wire of the cables should not be too long and no bigger power cable should be in the nearer area.
check if the probe (head) is on the meter in the right angle on the smart meter (there are receive and transmit IR-LEDs which have to work together).
how many devices are connected to the USB Bus of your device? Maybe a limit is reached?
Maybe not for Pi2, but for the serial and optical communication to your smart meter in general? Smart meters are not known to have a big cpu
Do you really need the values in this fast interval?
Did you find a solution? I have a very similar problem on ttyUSB1 (RPI4) and playing around with the time doesn’t solve it (I‘m still running 3.4.5). I‘m using the wire coming with the device.
OFFLINE (COMMUNICATION_ERROR): The source did not signal an event for 38000 milliseconds and has been terminated.
2023-10-24 06:28:20.580 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘smartmeter:meter:25be22d450’ changed from OFFLINE (COMMUNICATION_ERROR): The source did not signal an event for 38000 milliseconds and has been terminated. to ONLINE
2023-10-24 06:28:40.101 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘smartmeter:meter:25be22d450’ changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)
2023-10-24 06:28:42.107 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘smartmeter:meter:25be22d450’ changed from OFFLINE (COMMUNICATION_ERROR) to OFFLINE (COMMUNICATION_ERROR): No provider for port /dev/ttyUSB1 found
2023-10-24 06:28:54.169 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘smartmeter:meter:25be22d450’ changed from OFFLINE (COMMUNICATION_ERROR): No provider for port /dev/ttyUSB1 found to ONLINE
2023-10-24 06:30:04.455 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘smartmeter:meter:25be22d450’ changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): The source did not signal an event for 38000 milliseconds and has been terminated.
2023-10-24 06:30:14.510 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘smartmeter:meter:25be22d450’ changed from OFFLINE (COMMUNICATION_ERROR): The source did not signal an event for 38000 milliseconds and has been terminated. to ONLINE
Hey,
I have got a similar error. Newly installed meter (“mME”) of type Logarex LK13BE606749 “Zweirichtungszähler 11X20E01” built in 2022 with SW-Ver 06.
It roughly stays online for 1 minute (gathering one set of data), and then goes offline for a minute. It looks like this:
2024-08-30 22:39:05.345 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:0752974df0' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): wrong crc
2024-08-30 22:40:08.280 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:0752974df0' changed from OFFLINE (COMMUNICATION_ERROR): wrong crc to ONLINE
2024-08-30 22:41:09.311 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:0752974df0' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): wrong crc
2024-08-30 22:42:12.300 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:0752974df0' changed from OFFLINE (COMMUNICATION_ERROR): wrong crc to ONLINE
2024-08-30 22:43:13.341 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:0752974df0' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): wrong crc
2024-08-30 22:44:16.273 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'smartmeter:meter:0752974df0' changed from OFFLINE (COMMUNICATION_ERROR): wrong crc to ONLINE
when I set the debug level to trace, the only relevant entries I could find are: