Page 3 of 3

Re: piControl: AIO addr 31: communication failed (req:20,ret:-5)

Posted: 07 May 2024, 21:46
by in06khattab
Thank you for your suggestion.
I am still getting errors after removing those entries.

Re: piControl: AIO addr 31: communication failed (req:20,ret:-5)

Posted: 07 May 2024, 23:40
by in06khattab
I have noticed that when there are too many warnings, I can no longer read updated Analog inputs. I keep getting an old value returned.
I will be reverting back to the old kernel in the short term

Code: Select all

sudo apt install raspberrypi-kernel=1:9.20230926+1-5.10.152-1+revpi11+1

Re: piControl: AIO addr 31: communication failed (req:20,ret:-5)

Posted: 16 May 2024, 13:53
by nicolaiB
Hi,

we did some investigation and nailed it down to probably an issue in the serial communication with lower (<=9600) baudrates. The same issue can be observed with kernel 5.10, but only less frequent. At the moment our developers are checking how this can be solved with our driver or an upstream patch of the Linux kernel.

It is possble for your modbus devices to operate at a higher baudrate like 115200? This should solve the issue with the current kernel.

Nicolai

Re: piControl: AIO addr 31: communication failed (req:20,ret:-5)

Posted: 16 May 2024, 19:59
by in06khattab
Thank you very much for investigating. That is very helpful. I will have a look at the devices connected and see if they can all be changed.

Re: piControl: AIO addr 31: communication failed (req:20,ret:-5)

Posted: 20 May 2024, 18:22
by in06khattab
Hi,

Unfortunately, this energy meter only supports up to 9600 baud, so the modbus speed will have to remain at 9600 for now.
https://cdn.shopify.com/s/files/1/0558/ ... 1659968927