How to Install and use Rapid SCADA on Touchberry Pi and BananaTouch

How to Install and use Rapid SCADA on Touchberry Pi and BananaTouch

On this post is showed how to install Rapid SCADA on a Touchberry B3 PI 10.1″, BananaTouch Octacore M3 10.1″, BananaTouch M64 10.1″ and TouchBerry Pi B3 7″ IN/OUT.

These products use an official Raspberry Pi 3 or an official Banana Pi products. These products have installed a Linux Debian Jessie. So,on this post we will see how to install Rapid SCADA on this OS. Rapid SCADA is free, open source, full featured SCADA software. 

This post is divided for three section: how to install Rapid SCADA,  how to configure Rapid SCADA and how to displayed on the Touch.

How to install Rapid SCADA:

The first step is download Rapid SCADA 5.2.1 Mono. Unzip the file on the Touch.

After unziping copy all the files of Rapid Scada Mono from scada folder to /opt/scada and copy the scripts from daemons folder to /etc/init.d

Typing the next commands on the terminal granting full access to the following folders of Webstation application:

sudo chmod -R ugo+rwx /opt/scada/ScadaWeb/config
sudo chmod -R ugo+rwx /opt/scada/ScadaWeb/log
sudo chmod -R ugo+rwx /opt/scada/ScadaWeb/storage

Install Mono .NET Framework typing on the terminal:

sudo apt-get install mono-complete

Also install XSP web server typing on the terminal:

sudo apt-get install mono-xsp4

 Note: XSP4 configuration files are
   /etc/default/mono-xsp4
   /etc/xsp4/debian.webapp

Note: install these tools can take a while

Make the scripts executable typing on the terminal:

cd /opt/scada
sudo chmod +x ./scadarestart.sh
sudo chmod +x ./scadastart.sh
sudo chmod +x ./scadastop.sh
sudo chmod +x ./webrestart.sh
sudo chmod +x ./svc_install.sh
sudo chmod +x ./svc_uninstall.sh

Execute the scritp to install deamons typing on the terminal:

sudo ./svc_install.sh

Register the web application typing on the terminal:

sudo mono-xsp4-admin add --path=/opt/scada/ScadaWeb --app=scada

In case of using SD card, protect it by moving frequently used folders to RAM. Add the lines below to /etc/fstab

tmpfs           /tmp                        tmpfs    defaults,noatime,size=50m     0    0
tmpfs           /var/log                    tmpfs    defaults,noatime,size=50m     0    0
tmpfs           /opt/scada/ScadaComm/Log    tmpfs    defaults,noatime,size=100m    0    0
tmpfs           /opt/scada/ScadaServer/Log  tmpfs    defaults,noatime,size=10m     0    0
tmpfs           /opt/scada/ScadaWeb/log     tmpfs    defaults,noatime,size=10m     0    0
tmpfs           /opt/scada/ArchiveDAT/Cur   tmpfs    defaults,noatime,size=10m     0    0

After these steps our Touch is all set for use Rapid SCADA. Just reboot the Touch for this change to take effect typing on the terminal:

sudo reboot

 

How to configure Rapid SCADA:

After installing Rapid SCADA, create and test the configuration using Windows. Copy content of the following directories from Windows to Linux:

C:\SCADA\BaseDAT
C:\SCADA\Interface
C:\SCADA\ScadaComm\Config
C:\SCADA\ScadaServer\Config
C:\SCADA\ScadaWeb\config

Note: Do not overwrite ScadaServerSvcConfig.xml. Just edit it manually

Once the configuration is set it is necessary to restart Rapid SCADA typing on the terminal:

sudo ./scadarestart.sh 
sudo ./webrestart.sh

Check Rapid SCADA operating using log files located in:

C:\SCADA\ScadaComm\Log
C:\SCADA\ScadaServer\Log
C:\SCADA\ScadaWeb\log

 

How to display Rapid SCADA:

To display Rapid SCADA on the Touch is required to install Chromium. Follow this post to install Chromium.

After installing Chromium we need to know our Touch IP. Typing on the terminal:

hostname -I

Open the Chromium browser and go to:

http://<Host name or IP address>:8084/scada

Note: default login and password are admin/12345.

 

See also:

TCP SERVER ON TOUCHBERRY PI 3 WITH NODE.JS

HOW TO INSTALL SCREENSAVER ON TOUCHBERRY PI

HOW TO USE AN RTC (REAL TIME CLOCK) ON TOUCHBERRY B3 PI

Comments are closed.