...
- Transfer and unpack the NISE 50 control files:
- Transfer the nise50_control.tar.gz file to the NISE50 using a tool like SCP or WinSCP
Uncompress package:
Code Block language bash tar -xvzf nise50_control.tar.gz
Two folders will be created:
Kernel module driver access
\kernelModule\wdt
(The driver includes led+wdt driver)User mode APP access
\userMode
Build the driver
Code Block language bash cd kernelModule\wdt make
Install the driver
Edit the /etc/rc.local file
Code Block language bash sudo vim /etc/rc.local
Add the following at the end of the file:
Code Block language bash # Enable the Nexcom NISE50 Kernel module insmod /lib/modules/$(uname -r)/kernel/drivers/control.ko exit 0
Copy the driver
Code Block language bash sudo cp control.ko /lib/modules/$(uname -r)/kernel/drivers/control.ko
Check the driver version to verify the installation:
Code Block language bash cat /sys/devices/platform/nise50/nise50/version DATE 06-29-2016 VER: 0.10
- Install the watchdog script
- Transfer the watchdog.sh file to the gateway using SCP or WinSCP
if not already present, create a scripts folder:
Code Block language bash sudo mkdir /opt/azeti/SiteController/scripts/
Copy the script file to the scripts folder
Code Block language bash sudo cp watchdog.sh /opt/azeti/SiteController/scripts/
- Add the necessary actions to the SiteController.cfg
Edit the SiteController.cfg
Code Block language bash sudo vi /opt/azeti/SiteController/config/SiteController.cfg
Add the actions to the file
Code Block language bash [remote_exec_calls] watchdog_start = /opt/azeti/SiteController/scripts/watchdog.sh start watchdog_stop = /opt/azeti/SiteController/scripts/watchdog.sh stop watchdog_kick = /opt/azeti/SiteController/scripts/watchdog.sh kick
- Restart the SiteController if it was running.
- Use the template watchdog.template.xml in the cloud. Create the instance and add it to the site template. Deploy the site template. After that the watchdog will work
...