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 |
---|
\uD83D\uDCD8 Instructions
Setting Up Gateway
Download the configuration file from above “MTCAP_Auto_Config_Static_IP_Guest.tar.gz“
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“, Enter password as “MVA-LoRa“ 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 which you downloaded earlier (MTCAP_Auto_Config_Static_IP_Guest.tar.gz) and Click Restore
Wait for the device to Reboot. After successful 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 # 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
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