Copyright Micropelt

Setting up MTCAP Gateway- Automatic Configuration

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

Please change the default password for your own security purposes

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

Configuration File

Multitech Gateway Configuration File

Default Settings

Static IP: 192.168.10.252

Login: Guest

Password: MVA-LoRa

 

Multitech Gateway Configuration File

Default Settings

Static IP: 192.168.10.252

Login: Guest

Password: MVA-LoRa

 

 Instructions

Setting Up Gateway

  1. Download the configuration file from above “MTCAP_Auto_Config_Static_IP_Guest.tar.gz

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

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

  4. Enter User name as “Guest“, Enter password as “MVA-LoRa“ and Login to the Gateway

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

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

  7. Click Browse and select the config file which you downloaded earlier (MTCAP_Auto_Config_Static_IP_Guest.tar.gz) and Click Restore

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

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

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

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

  12. 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 # To add more users, uncomment the next line by removing the # symbol # sudo mosquitto_passwd -b passwords.txt <enter_user_name_here> <enter_password_here> 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