hardware topology (see 2nd attachment) and started working with the revpimodio2 Python library. I was able to read and write values to all IO modules successfully.
Later, I decided to rearrange the setup moving all modules on the left side of the core. After this change, I noticed that although revpimodio2 and piTest allowed me to read and write values, these changes were not reflected on the actual physical pins when measured with a multimeter.
To troubleshoot, I simplified my configuration by leaving only the Core and one MIO connected (see 1st attachment)
When I run piTest -d, I get the following output:
Code: Select all
pi@RevPi126285:~ $ piTest -d
Found 3 devices:
Address: 0 module type: 95 (0x5f) RevPi Core V1.2
Module is present
input offset: 117 length: 6
output offset: 123 length: 5
Address: 32 module type: 118 (0x76) RevPi MIO V1.2
Module is present, but NOT CONFIGURED!!!
input offset: 11 length: 34
output offset: 45 length: 27
Address: 31 module type: 32886 (0x8076) RevPi MIO V0.0
Module is NOT present, data is NOT available!!!
input offset: 0 length: 34
output offset: 34 length: 27
The steps I follow after modifying the configuration are:
1) Configure the topology in PiCtory.
2)Save using Save as Start-Config.
3) Reset the driver.
4)Reboot the device.
I noticed that if I delete /etc/revpi/config.rsc — which is currently a symlink to /var/www/pictory/projects/_config.rsc — I get
Code: Select all
pi@RevPi126285:~ $ piTest -d
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: 118 (0x76) RevPi MIO V1.2
Module is present, but NOT CONFIGURED!!!
input offset: 11 length: 34
output offset: 45 length: 27
Could someone help me understand why the MIO module is not configured properly and how to fix this?