Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checksum error in rtu mode #5

Open
jakubradziwon opened this issue Dec 31, 2021 · 5 comments
Open

Checksum error in rtu mode #5

jakubradziwon opened this issue Dec 31, 2021 · 5 comments

Comments

@jakubradziwon
Copy link

hi,
i find your git very helpful. Unfortunatelly lastly i started to get some issues. My setup is rpi with dietpi on it, connected with boiler via ftdi rs485 cable (with udev rule thus named tty device).
Could you please point me what is my problem ? I run poll_isystem as a service, below you can find log from status. Neither restarts of service nor whole rpi will not solve the issue. The script can work for few days, then for few days will note send any mqtt messages, and than can start to work properly out of nowhere.

● isystem_mqtt.service - demon komunkacji z kotlem
   Loaded: loaded (/etc/systemd/system/isystem_mqtt.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2021-12-31 21:23:53 CET; 50s ago
 Main PID: 2511 (python)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/isystem_mqtt.service
           └─2511 /home/dietpi/new_kociol/env/bin/python /home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py --interval
 30 --log DEBUG 192.168.3.2 --serial /dev/ttyUSB_kociol   

gru 31 21:24:41 DietPi-kotlownia python[2511]:   File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmo
dbus.py", line 848, in read_registers
gru 31 21:24:41 DietPi-kotlownia python[2511]:     payloadformat=_PAYLOADFORMAT_REGISTERS,
gru 31 21:24:41 DietPi-kotlownia python[2511]:   File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmo
dbus.py", line 1170, in _generic_command
gru 31 21:24:41 DietPi-kotlownia python[2511]:     payload_from_slave = self._perform_command(functioncode, payload_to_s
lave)
gru 31 21:24:41 DietPi-kotlownia python[2511]:   File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmo
dbus.py", line 1244, in _perform_command
gru 31 21:24:41 DietPi-kotlownia python[2511]:     response, self.address, self.mode, functioncode
gru 31 21:24:41 DietPi-kotlownia python[2511]:   File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmo
dbus.py", line 1756, in _extract_payload
gru 31 21:24:41 DietPi-kotlownia python[2511]:     raise InvalidResponseError(text)
gru 31 21:24:41 DietPi-kotlownia python[2511]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: 'àÜ' inst
ead of 'A\x8d' . The response is: '\x81ð\x00@4\x00\x00ü\x00Áþ\x00\x01\x80\x00\x00ð\x00\x028\x00àÜ' (plain response: '\x8
1ð\x00@4\x00\x00ü\x00Áþ\x00\x01\x80\x00\x00ð\x00\x028\x00àÜ')
gru 31 21:24:41 DietPi-kotlownia python[2511]: DEBUG:__main__:Read take 1.558s
dietpi@DietPi-kotlownia:~/new_kociol$
@ngraziano
Copy link
Owner

Hi,
Your problem is strange, I don't know what's going on.

The fact that sometimes it is working and sometimes not make me think that maybe it is a bad connection can you check.

What is the model of the boiler? (to check that --bimaster is not needed) Have you a something else plug on the boiler RS485 port ? Can you stop the service and use minicom (or equivalent) to listen to the device at 9600 Bauds 8 Bit No parity 1 stop bit,
you should receive nothing. If not maybe --bimaster is needed.

Does "dump_isystem.py" send the same type of error ?

@piotrC4
Copy link

piotrC4 commented Jan 1, 2022

Hi,

I had similar issue and temporary solution was to change port in the boiler (I have 2 on my mainboard). I never had such issues when I used PC instead of RPI

@jakubradziwon
Copy link
Author

jakubradziwon commented Jan 6, 2022

@ngraziano
I have AGC25 (actually downgraded it to 15 but it is not rellevant). yes, dump_isystem.py gives same error. I do not know how to use minicom :(
I checked wiring, i've redone wago plugs connecting usb cable with suitable plug one from scratch. After that i still have problems evere once in few reads. another mistake of mine was that i forget trailing slash in topic, so my homeassistant received nothing for few days and i thought that it is bigger issue.

here you can see output of two service status, second 3 minute after 1st one,
image

on the next status call i've noticed that service restarted by itself (noticed active since time was 52sec ago against 4minutes in the picture) but i did not set any police in service file :?
actually i have watchdog in nodered that restarts the service when there is no mqtt in x minutes

@piotrC4 unfortunatelly my plug is too big - i have collision with metal cover nearby when accessing 2nd port, will need to demount pcb form plastic mountings to do so next time.

@ngraziano
Copy link
Owner

AGC25 is the same generation of mine (AFC24), so it should work without --bimaster. I still don't understand why it is not working.
But the fact that Piotr have the same problem only with RPI and not with PC make me think it can be a grounding problem. Or maybe if your wire are long, maybe the terminaison resistor is needed for RS485 (120Ohm between the data lines)

I read also https://minimalmodbus.readthedocs.io/en/stable/troubleshooting.html and maybe your adapter have local echo.
Can you activate the debug trace of modbus, by replacing line 23 in "isystem_modbus.py", with

        Instrument.__init__(self, port, slaveaddress, debug = True)

and send the logs (sudo journalctl -u isystem_mqtt may help) when it is not working.

@jakubradziwon
Copy link
Author

Hi, sorry for late comment - newborn in house :)
as for cables length - i had problems with 1800 and 5000 cables.
i've added "debug=True", and here is result :
wi 22 20:41:45 DietPi-kotlownia systemd[1]: Started demon komunkacji z kotlem. kwi 22 20:41:46 DietPi-kotlownia python[4755]: MinimalModbus debug mode. Create serial port /dev/ttyUSB_kociol kwi 22 20:41:46 DietPi-kotlownia python[4755]: ERROR:root:I/O error kwi 22 20:41:46 DietPi-kotlownia python[4755]: Traceback (most recent call last): kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone kwi 22 20:41:46 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value) kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers kwi 22 20:41:46 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS, kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command kwi 22 20:41:46 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave) kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command kwi 22 20:41:46 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload kwi 22 20:41:46 DietPi-kotlownia python[4755]: raise InvalidResponseError(text) kwi 22 20:41:46 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: 'þ' instead of 'Ý;' . The response is: '\x00\x00\x00þ\x00þ\x00þ\x00þ\x00þp\x08þ\x00ÿ\x00ÿ\x00þ\x00ÿ\x08þ\x00þ\x00þ\x00þ' (plain response: '\x00\x00\x00þ\x00þ\x00þ\x00þ\x00þp\x08þ\x00ÿ\x00ÿ\x00þ\x00ÿ\x08þ\x00þ\x00þ\x00þ')
kwi 22 20:41:46 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:41:46 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:41:46 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:41:46 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:41:46 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:41:46 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:41:46 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:41:46 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of 'aè' . The response is: '\x00þ\x02À\x00þ\x00ÿ\x00þ' (plain response: '\x00þ\x02À\x00þ\x00ÿ\x00þ')
kwi 22 20:41:46 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:41:46 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:41:46 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:41:46 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:41:46 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:41:46 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:41:46 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:41:46 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x08' instead of '.ÿ' . The response is: '\x80p\x08þ\x00þ\x00þ\x00þ\x00þ\x00þ\x04ÿ\x08' (plain response: '\x80p\x08þ\x00þ\x00þ\x00þ\x00þ\x00þ\x04ÿ\x08') kwi 22 20:41:46 DietPi-kotlownia python[4755]: ERROR:root:I/O error kwi 22 20:41:46 DietPi-kotlownia python[4755]: Traceback (most recent call last): kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone kwi 22 20:41:46 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value) kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers kwi 22 20:41:46 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS, kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command kwi 22 20:41:46 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave) kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command kwi 22 20:41:46 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode kwi 22 20:41:46 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload kwi 22 20:41:46 DietPi-kotlownia python[4755]: raise InvalidResponseError(text) kwi 22 20:41:46 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x08þ' instead of '{±' . The response is: 'à\x08þ\x08þ\x00ÿ\x08þ\x00þ\x00þ\x00ÿ\x08þ\x00þ\x00þ\x00þ\x18þ\x00þp\x00þ\x08þ' (plain response: 'à\x08þ\x08þ\x00ÿ\x08þ\x00þ\x00þ\x00ÿ\x08þ\x00þ\x00þ\x00þ\x18þ\x00þp\x00þ\x08þ') kwi 22 20:41:47 DietPi-kotlownia python[4755]: ERROR:root:I/O error kwi 22 20:41:47 DietPi-kotlownia python[4755]: Traceback (most recent call last): kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone kwi 22 20:41:47 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value) kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers kwi 22 20:41:47 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS, kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command kwi 22 20:41:47 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave) kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command kwi 22 20:41:47 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload kwi 22 20:41:47 DietPi-kotlownia python[4755]: raise InvalidResponseError(text) kwi 22 20:41:47 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of 'à¡' . The response is: '\x00\x00þ\x10þ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ \x04ÿ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ' (plain response: '\x00\x00þ\x10þ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ \x04ÿ\x00þ\x00þ\x00þ\x00þ\x00þ\x00þ') kwi 22 20:41:47 DietPi-kotlownia python[4755]: ERROR:root:I/O error kwi 22 20:41:47 DietPi-kotlownia python[4755]: Traceback (most recent call last): kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone kwi 22 20:41:47 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value) kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers kwi 22 20:41:47 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS, kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command kwi 22 20:41:47 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave) kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command kwi 22 20:41:47 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload kwi 22 20:41:47 DietPi-kotlownia python[4755]: raise InvalidResponseError(text) kwi 22 20:41:47 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00' instead of 'ôý' . The response is: 'ð\x00þ\x00þ\x08þ\x00' (plain response: 'ð\x00þ\x00þ\x08þ\x00')
kwi 22 20:41:47 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:41:47 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:41:47 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:41:47 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:41:47 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:41:47 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:41:47 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:41:47 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:41:47 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of 'zY' . The response is: 'ð\x00þ\x00þ@\x00þ\x08þ\x08þ\x00þ\x00þ' (plain response: 'ð\x00þ\x00þ@\x00þ\x08þ\x08þ\x00þ\x00þ')
kwi 22 20:41:47 DietPi-kotlownia python[4755]: DEBUG:main:Read take 1.526s
kwi 22 20:42:08 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:42:08 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:42:08 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:42:08 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:42:08 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:42:08 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:42:08 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:42:08 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of '\x05b' . The response is: '\x00þ@\x00\x00þ\x00þ\x08þ\x00þ\x00þ\x00þ\x00þÀ\x00\x00þ\x08þ\x00þ\x00þà\x00þ\x00þ' (plain response: '\x00þ@\x00\x00þ\x00þ\x08þ\x00þ\x00þ\x00þ\x00þÀ\x00\x00þ\x08þ\x00þ\x00þà\x00þ\x00þ')
kwi 22 20:42:08 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:42:08 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:42:08 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:42:08 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:42:08 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:42:08 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:42:08 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:42:08 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:42:08 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: 'à\x00' instead of 'ò*' . The response is: 'À\x00þ\x00þà\x00þà\x00' (plain response: 'À\x00þ\x00þà\x00þà\x00')
kwi 22 20:42:09 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:42:09 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:42:09 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:42:09 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:42:09 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:42:09 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:42:09 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of 'dÊ' . The response is: 'þ\x80\x00\x00þ\x00þ\x00þ\x00þ\x00þ\x00\x00\x00þ' (plain response: 'þ\x80\x00\x00þ\x00þ\x00þ\x00þ\x00þ\x00\x00\x00þ')
kwi 22 20:42:09 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:42:09 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:42:09 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:42:09 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:42:09 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:42:09 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:42:09 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of 'ÖG' . The response is: 'à\x08þ\x00þ\x00\x00\x00þ\x00þà\x00þà\x00þà\x00þ\x00þ\x00þ\x00þ\x00þà\x00þà\x00þà\x00þ' (plain response: 'à\x08þ\x00þ\x00\x00\x00þ\x00þà\x00þà\x00þà\x00þ\x00þ\x00þ\x00þ\x00þà\x00þà\x00þà\x00þ')
kwi 22 20:42:09 DietPi-kotlownia python[4755]: ERROR:root:I/O error
kwi 22 20:42:09 DietPi-kotlownia python[4755]: Traceback (most recent call last):
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone
kwi 22 20:42:09 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers
kwi 22 20:42:09 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS,
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command
kwi 22 20:42:09 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command
kwi 22 20:42:09 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode
kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload
kwi 22 20:42:09 DietPi-kotlownia python[4755]: raise InvalidResponseError(text)
kwi 22 20:42:09 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: 'þ' instead of 'w\n' . The response is: '\x00þ\x00à\x00þ@\x08þ\x10þ\x08þà\x00þ\x00þà\x00þ\x00\x00þà\x00þà\x00þà\x00þà\x00þ\x08þ\x00þà\x00þ' (plain response: '\x00þ\x00à\x00þ@\x08þ\x10þ\x08þà\x00þ\x00þà\x00þ\x00\x00þà\x00þà\x00þà\x00þà\x00þ\x08þ\x00þà\x00þ') kwi 22 20:42:09 DietPi-kotlownia python[4755]: ERROR:root:I/O error kwi 22 20:42:09 DietPi-kotlownia python[4755]: Traceback (most recent call last): kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone kwi 22 20:42:09 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value) kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers kwi 22 20:42:09 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS, kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command kwi 22 20:42:09 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave) kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command kwi 22 20:42:09 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode kwi 22 20:42:09 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload kwi 22 20:42:09 DietPi-kotlownia python[4755]: raise InvalidResponseError(text) kwi 22 20:42:09 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: '\x00þ' instead of '%M' . The response is: '\x00þÀ\x00\x00þ\x00þ\x00þ' (plain response: '\x00þÀ\x00\x00þ\x00þ\x00þ') kwi 22 20:42:10 DietPi-kotlownia python[4755]: ERROR:root:I/O error kwi 22 20:42:10 DietPi-kotlownia python[4755]: Traceback (most recent call last): kwi 22 20:42:10 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/bin/poll_isystem_mqtt.py", line 114, in read_zone kwi 22 20:42:10 DietPi-kotlownia python[4755]: raw_values = instrument.read_registers(base_address, number_of_value) kwi 22 20:42:10 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 848, in read_registers kwi 22 20:42:10 DietPi-kotlownia python[4755]: payloadformat=_PAYLOADFORMAT_REGISTERS, kwi 22 20:42:10 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1170, in _generic_command kwi 22 20:42:10 DietPi-kotlownia python[4755]: payload_from_slave = self._perform_command(functioncode, payload_to_slave) kwi 22 20:42:10 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1244, in _perform_command kwi 22 20:42:10 DietPi-kotlownia python[4755]: response, self.address, self.mode, functioncode kwi 22 20:42:10 DietPi-kotlownia python[4755]: File "/home/dietpi/new_kociol/env/lib/python3.5/site-packages/minimalmodbus.py", line 1756, in _extract_payload kwi 22 20:42:10 DietPi-kotlownia python[4755]: raise InvalidResponseError(text) kwi 22 20:42:10 DietPi-kotlownia python[4755]: minimalmodbus.InvalidResponseError: Checksum error in rtu mode: 'þ' instead of '\xad\x11' . The response is: 'àü\x00þ\x00þà\x00þ\x00þ\x00\x00þ\x00þ' (plain response: 'àü\x00þ\x00þà\x00þ\x00þ\x00\x00þ\x00þ')
kwi 22 20:42:10 DietPi-kotlownia python[4755]: DEBUG:main:Read take 1.556s
`
I hope it'll direct yo somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants