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
\uD83D\uDCD8 Instructions
Setting Up Gateway
Assign a fixed IP to your computer from “Network and Sharing Centre
Open a web browser and type in the IP Address of the Gateway
192.168.2.1
and ignore the warningEnter User name as “Guest“, preferred Password and Login to the Gateway
Click the close button on the First-Time Setup Wizard
Go to Administration → Save/Restore → Save and Restore Configuration → Restore Configuration from File
Click Browse and select the config file tarball package *.tar.gz and Click Restore
Wait for the device to Reboot. After succesful Reboot, the status LED blinks twice continuously and the LoRa LED stays permanently ON
Open “Network and Sharing Centre“ and restore settings back to automatic
Open your browser and type in the IP of the Gateway
192.168.10.252
The Gateway is now configured and running as a Network Server
You can add new users from the Administration → User Accounts
Setting Up MQTT
Open PuTTY and log in into the gateway
Create an install script by typing the following command
sudo nano install_script.sh
Paste the following code into the window
#!/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
Press
Ctrl+X
and PressY
to save the scriptRun the script by typing the following command
sudo bash install_script.sh
The MQTT settings should be successfully set up and running
Check Mycorrhiza
Open the Mycorrhiza Tool and Click Scan for MQTT Hosts
Your Gateway should appear in the list of available hosts
Use your Login and Password to login to Mycorrhiza and verify the device communication