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

Topics about the Hardware of Revolution Pi
in06khattab
Posts: 44
Joined: 24 Jan 2024, 19:07

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

Post by in06khattab »

Thank you for your suggestion.
I am still getting errors after removing those entries.
in06khattab
Posts: 44
Joined: 24 Jan 2024, 19:07

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

Post 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
User avatar
nicolaiB
KUNBUS
Posts: 900
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

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

Post 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
in06khattab
Posts: 44
Joined: 24 Jan 2024, 19:07

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

Post 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.
in06khattab
Posts: 44
Joined: 24 Jan 2024, 19:07

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

Post 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
Post Reply