Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Transfer and unpack the NISE 50 control files:
    1. Transfer the nise50_control.tar.gz file to the NISE50 using a tool like SCP or WinSCP
    2. Uncompress package: 

      Code Block
      languagebash
      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

  2. Build the driver

    Code Block
    languagebash
    cd kernelModule\wdt
    make


  3. Install the driver

    1.  Edit the /etc/rc.local file

      Code Block
      languagebash
      sudo vim /etc/rc.local


    2. Add the following at the end of the file:

      Code Block
      languagebash
      # Enable the Nexcom NISE50 Kernel module
      insmod /lib/modules/$(uname -r)/kernel/drivers/control.ko
      exit 0


    3. Copy the driver

      Code Block
      languagebash
      sudo cp control.ko /lib/modules/$(uname -r)/kernel/drivers/control.ko


    4. Reboot

    5. Check the driver version to verify the installation:

      Code Block
      languagebash
      cat /sys/devices/platform/nise50/nise50/version
      DATE 06-29-2016 VER: 0.10


  4. Install the watchdog script
    1. Transfer the watchdog.sh file to the gateway using SCP or WinSCP
    2. if not already present, create a scripts folder:

      Code Block
      languagebash
      sudo mkdir /opt/azeti/SiteController/scripts/


    3. Copy the script file to the scripts folder

      Code Block
      languagebash
      sudo cp watchdog.sh /opt/azeti/SiteController/scripts/


  5. Add the necessary actions to the SiteController.cfg
    1. Edit the SiteController.cfg

      Code Block
      languagebash
      sudo vi /opt/azeti/SiteController/config/SiteController.cfg


    2. Add the actions to the file

      Code Block
      languagebash
      [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


    3. Restart the SiteController if it was running.
  6. 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

...