Hi guys, I have some fresh updates for you about the Revolution Pi driver. I got some free time and started playing around with the PiControl library and Pictory config files. I'm attaching here a preliminary driver for the Revolution Pi. It does not control any I/O points yet, but it is detecting all the I/O connected to the bus and configured on Pictory. Here are the installation instructions:
SSH into your Revolution Pi device and then install OpenPLC as usual
sudo apt-get update
sudo apt-get upgrade -y
git config --global http.sslVerify "false"
git clone http://github.com/thiagoralves/OpenPLC_v3.git
The git config line disables certificate checking because, for some reason, there seems to be an issue with Revolution Pi Raspbian image and certificates (at least on my sample device). Once certificate check is disabled you should be able to git clone OpenPLC repository as usual.
Now that OpenPLC is installed, go to Pictory and configure your I/O devices as per instructions on the Revolution Pi website. At the end, export your configuration going to File -> Export, and then select the first format "ST GLOBALS for logiCAD3" (the default option).At the bottom, instead of choosing "Download", select "Show Only" and then click Ok. This will export the configuration in a location and format that the OpenPLC driver can read. Just close the dialogs and exit Pictory.
Now grab the blank.txt file attached to this post, rename it to blank.cpp and copy it to /home/pi/OpenPLC_v3/webserver/core/hardware_layers folder on your Revolution Pi device. Go to OpenPLC webserver, login, go to Hardware, select the Blank Linux driver and click on "Save Changes". This will load the new Revolution Pi driver into the system. Now just click on Start PLC and you will see on the dashboard all your I/O points and their respective location.
Please try this driver and let me know if it works detecting all your I/O points. If there is any issue, please report back with your dashboard logs and your exported configuration file (just copy and paste it from the dialog in Pictory)
Now the driver can read all digital I/O points!