Copyright Micropelt

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This guide provides steps to setup the MTCAP Gateway with Automatic Configuration applied

Pre-Requisites

  • Multitech MTCAP Gateway (with Power supply, antenna, Ethernet cable)

  • Computer with Putty and Mycorrhiza Tools

Note

The configuration file assigns a static IP to the MTCAP Gateway with default Login and Password

IP: 192.168.10.252

Login: Guest

Password:

You can change the network to DHCP and add/change Login details as needed

  File Modified
No files shared here yet.

\uD83D\uDCD8 Instructions

Setting Up Gateway

  1. Assign a fixed IP to your computer from “Network and Sharing Centre

  2. Open a web browser and type in the IP Address of the Gateway 192.168.2.1 and ignore the warning

  3. Enter User name as “Guest“, preferred Password and Login to the Gateway

  4. Click the close button on the First-Time Setup Wizard

  5. Go to Administration → Save/Restore → Save and Restore Configuration → Restore Configuration from File

  6. Click Browse and select the config file tarball package *.tar.gz and Click Restore

  7. Wait for the device to Reboot. After succesful Reboot, the status LED blinks twice continuously and the LoRa LED stays permanently ON

  8. Open “Network and Sharing Centre“ and restore settings back to automatic

  9. Open your browser and type in the IP of the Gateway 192.168.10.252

  10. The Gateway is now configured and running as a Network Server

  11. You can add new users from the Administration → User Accounts

Setting Up MQTT

  1. Open PuTTY and log in into the gateway

  2. Create an install script by typing the following command sudo nano install_script.sh

  3. Paste the following code into the window

  4. #!/bin/sh 
    
    echo Setting Up MQTT 
    
    file="/etc/mosquitto/mosquitto.conf" 
    
    echo "pid_file /var/run/mosquitto.pid" > $file 
    echo "user root" >> $file 
    echo "port 1883" >> $file 
    echo "protocol mqtt" >> $file 
    echo "log_dest file /var/log/mosquitto.log" >> $file 
    echo "log_type error" >> $file 
    echo "log_type warning" >> $file 
    echo "log_type notice" >> $file 
    echo "log_type information" >> $file 
    echo "log_type subscribe" >> $file 
    echo "connection_messages true" >> $file 
    echo "log_timestamp true" >> $file 
    echo "allow_anonymous false" >> $file 
    echo "password_file /etc/mosquitto/passwords.txt" >> $file 
    cat $file 
    
    cd /etc/mosquitto 
    
    printf "LikeARecordBaby\nLikeARecordBaby" |  sudo mosquitto_passwd -c passwords.txt valve 
    sudo mosquitto_passwd -b passwords.txt Guest MVA-LoRa 
    
    sudo /etc/init.d/mosquitto stop 
    sudo /etc/init.d/mosquitto start -c /etc/mosquitto/mosquitto.conf 
  5. Press Ctrl+X and Press Y to save the script

  6. Run the script by typing the following command sudo bash install_script.sh

  7. The MQTT settings should be successfully set up and running

Check Mycorrhiza

  1. Open the Mycorrhiza Tool and Click Scan for MQTT Hosts

  2. Your Gateway should appear in the list of available hosts

  3. Use your Login and Password to login to Mycorrhiza and verify the device communication

  • No labels