Page 1 of 1

RevPi Core3+ and MIO

Posted: 10 Dec 2021, 11:05
by niels5750
Hi,

I have a simple setup with RevPi Core 3+ and a single MIO. The MIO cannot be configured and shows red light in the Power LED.

Running piTest -d shows:
Found 2 devices:

Address: 0 module type: 95 (0x5f) RevPi Core V1.2
Module is present
input offset: 0 length: 6
output offset: 6 length: 5

Address: 32 module type: 32886 (0x8076) RevPi MIO V0.0
Module is NOT present, data is NOT available!!!
input offset: 0 length: 0
output offset: 0 length: 0
piTest -f gives (in dmesg):
[ 482.660074] piControl: stop data exchange
[ 482.660100] piControl: write error -5
[ 482.660105] piControl: dev all: send ioprotocol send error -1
[ 482.660110] piControl: piIoComm_gotoGateProtocol returned 0
[ 482.730094] piControl: error: cannot open file /lib/firmware/revpi/fw_00095_001.fwu
[ 482.730106] piControl: update 0 addr 0 ret -2
[ 482.850056] piControl: start data exchange
[ 482.850072] piControl: write error -5
[ 482.960052] piControl: piIoComm_sendRS485Tel(PiIoStartDataExchange) failed 1
cat /etc/revpi/image-release shows:
2021-07-01-revpi-buster.img
Any suggestion what to do?

Kind regards,
Niels Andersen

Re: RevPi Core3+ and MIO

Posted: 14 Dec 2021, 08:38
by nicolaiB
Hi Niels,

could you please share your kernel log file (/var/log/kern.log) and a picture of your setup, where we can see the wiring?

Nicolai

Re: RevPi Core3+ and MIO

Posted: 15 Dec 2021, 10:58
by niels5750
Hi Nicolai,

the setup is quite simple. Just revPi devices and a lab. power supply. Pictures and kern.log can be downloaded here:
https://app.box.com/s/y73x4y5dk84ojjn9m4wi1lp7rgotkmjr

Kind regards,
Niels Andersen
Elcanic A/S

Re: RevPi Core3+ and MIO

Posted: 15 Dec 2021, 11:08
by nicolaiB
Hi Niels,

thanks for the information about your setup. Could you please also share the pictory configuration (/var/www/revpi/pictory/projects/_config.rsc), so I try to reproduce the error?

Nicolai

Re: RevPi Core3+ and MIO

Posted: 15 Dec 2021, 11:33
by niels5750
Hi Nicolai

screendump and _config.rsc added to box folder.

Kind regards,
Niels Andersen

Re: RevPi Core3+ and MIO

Posted: 15 Dec 2021, 11:58
by nicolaiB
Hi Niels,

I tested with your config.rsc and everything works in my test setup (Core3+ 8GB with MIO). Therefore I took a second look at your kern.log and spotted that you have enabled a serial console on /dev/ttyAMA0. With this enabled on my test setup I ran into the same error, which absolutely makes sense as this is the internal RS485 interface which is needed for module communication. So please disable your serial console and test again.

Nicolai

Re: RevPi Core3+ and MIO

Posted: 15 Dec 2021, 12:59
by niels5750
Hi Nicolai

I disabled the serial console and reconfigured the configuration. Now it works. Thanks!

Kind regards,
Niels Andersen
Elcanic A/S