MOKO MKGW2-LW User manual

Datasheet
MKGW2-LW Configuration Guide
MOKO LoRaWAN Gateway
MOKO TECHNOLOGY LTD.
Version 1.1 www.mokosmart.com
Configuration Guide
(MKGW2-LW)

1
Contents
1 About This Guide........................................................................................ 5
2 Product Introduction.................................................................................. 5
2.1 Product Description................................................................................................................. 5
2.2 Main Specifications..................................................................................................................5
2.3 Hardware Interfaces and Indicator..........................................................................................7
2.4 Mechanical Size....................................................................................................................... 8
2.5 Package Information................................................................................................................9
2.5.1 Package List....................................................................................................................9
2.5.2 Package Information......................................................................................................9
3 Installation................................................................................................ 10
4 Connecting the Hardware........................................................................ 11
4.1 Connect the Gateway............................................................................................................ 11
4.2 Power Up and Turn ON/OFF.................................................................................................. 11
5 Log into the Gateway................................................................................12
6 Internet setting.........................................................................................13
6.1 Ethernet to Internet...............................................................................................................13
6.2 WiFi to Internet......................................................................................................................14
7 WiFi Setting...............................................................................................16
8 LAN Setting............................................................................................... 17
9 Diagnostics................................................................................................18
10 Server Access..........................................................................................18
11 System setting........................................................................................ 20
11.1 Device setting...................................................................................................................... 20
11.1.1 Modify Login Password............................................................................................. 20
11.1.2 Time Configuration....................................................................................................20
11.1.3 Restart....................................................................................................................... 21

2
11.1.4 Log............................................................................................................................. 21
11.1.5 LED Configuration......................................................................................................21
11.2 Backup & Upgrade............................................................................................................... 22
11.2.1 Backup....................................................................................................................... 22
11.2.2 Upgrade..................................................................................................................... 22
12 Restore Factory Settings.........................................................................22
13 Configuration with TTN.......................................................................... 23
13.1 Set up your account with TTN............................................................................................. 23
13.2 Register your gateway with TTN..........................................................................................24
13.3 Create an Application with TTN...........................................................................................27
13.4 Register Your End-device with TTN......................................................................................28
14 Gateway Default Frequency................................................................... 31
16 Revision...................................................................................................32
MOKO TECHNOLOGY LTD............................................................................ 33
List of Tables
Table1 MKGW2-LW Main Specifications.................................................................................... 7
Table2 MKGW2-LW Hardware Interfaces................................................................................... 8
Table3 MKGW2-LW Package List................................................................................................ 9
Table4 Default Frequency.........................................................................................................31
List of Figures
Figure1 MKGW2-LW Interface....................................................................................................7
Figure2 MKGW2-LW Mechanical Size.........................................................................................8
Figure3 MKGW2-LW Package..................................................................................................... 9
Figure4 MKGW2-LW Installation 1........................................................................................... 10
Figure5 MKGW2-LW Installation 2........................................................................................... 10
Figure6 MKGW2-LW Installation 3........................................................................................... 10
Figure7 MKGW2-LW Botton Silk...............................................................................................11

3
Figure8 MKGW2-LW Side Silk................................................................................................... 11
Figure9 Gateway SSID...............................................................................................................12
Figure10 Log in WEB.................................................................................................................12
Figure11 Gateway Status..........................................................................................................12
Figure12 Ethernet / Automatic IP.............................................................................................13
Figure13 Ethernet / Static IP.................................................................................................... 14
Figure14 WiFi / Automatic IP................................................................................................... 15
Figure15 WiFi / Automatic IP Select a Wireless Router........................................................... 15
Figure16 WiFi / Static IP........................................................................................................... 15
Figure17 Network Status Check............................................................................................... 16
Figure18 Gateway WiFi Setting................................................................................................ 16
Figure19 Gateway LAN Setting................................................................................................. 17
Figure20 Gateway Network Diagnostics.................................................................................. 18
Figure21 Gateway Server configuration...................................................................................19
Figure22 Gateway Server Connection Check........................................................................... 19
Figure23 Gateway Login Password Modify.............................................................................. 20
Figure24 Gateway Time Configuration.....................................................................................20
Figure25 Gateway Restart Configuration................................................................................. 21
Figure26 Gateway Log File........................................................................................................21
Figure27 Gateway LED Configuration.......................................................................................21
Figure28 Gateway Configuration File Download and Upload.................................................. 22
Figure29 Gateway Firmware Upgrade On-line.........................................................................22
Figure30 Gateway Server Address Configuration.....................................................................23
Figure31 TTN Login Page.......................................................................................................... 24
Figure32 TTN Console Page......................................................................................................25
Figure33 Register gateway....................................................................................................... 25
Figure34 Register gateway....................................................................................................... 26
Figure35 Gateway Status Check............................................................................................... 27
Figure36 Add Application......................................................................................................... 27
Figure37 Application Screen.....................................................................................................28
Figure38 Register Device.......................................................................................................... 29
Figure39 TTN Device EUI,Application EUI,App Key.................................................................. 29
Figure40 TTN Device Status Check........................................................................................... 30

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
5
1 About This Guide
This document provides a comprehensive guide on how to configure the MKGW2-LW gateways to
suit the intended application in detail. It mainly introduces the MKGW2-LW functionality, including
Ethernet, Wi-Fi, LoRa configurations, firmware upgrade, system backup and log download etc. It
also provides instructions for setting up the gateway on a LoRa network server.
2 Product Introduction
2.1 Product Description
MOKO 8 channels gateway MKGW2 is based on LoRaWAN protocol, which is embedded with
Semtech’s high performance multi-channel transceiver SX1301/SX1257 and MTK platform. It is for
indoor use and easy for installation.
MKGW2-LW includes 2 modes: AP and STA as router, offers 2.4Ghz Wi-Fi and wired Ethernet for
connecting internet. The gateway built-in OpenWRT operating system, users can flexibly configure
network parameters and LoRaWAN protocol parameters through the Web management platform.
The MKGW2-LW Gateway can be connected to LoRaWAN terminals in various application nodes,
collects useful information and sends the data to cloud server. And it supports POE, DC, Micro USB
to provide power supply.
2.2 Main Specifications
Category
Feature
Specification
Chipset
LoRa®
Semtech SX1301/1257
Wi-Fi
MTK MT7688 with 128M DDR and 32M flash
Wireless
Characteristics
Wi-Fi Frequencies
2.4GHz
LoRaWAN Regions
863–870 MHz (EU), 902–928 MHz (US), AU915–928
MHz (AU915 + AS923)
Interfaces
Wired
Ethernet - RJ45 Connector
Wireless
LoRaWAN, Wi-Fi 2.4 GHz
Software
Operating System
Embedded Linux, 3.10 Kernel version
LoRa
Packet Network Forwarder with default support for

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
6
Semtech UDP Packet forwarder
Configuration
Web-based interface via Wi-Fi
Wireless
coverage
WIFI
130M (Open Space)
LoRa
3km (City Environment)
Power Supply
DC Jack
DC 12V-1A
POE
POE (IEEE 802.3af), 42~57VDC
Micro USB
5V/2A
Electrical
Specification
Stand By Power
Consumption
Stand By Average Current ≤200mA@12V
Communication
Power
Consumption
Communication Transmitting current≤220mA@12V
Receiving current≤250mA@12V
2.4G WIFI
Transmission
Power
Max 20dBm
2.4G WIFI
Reception
Sensitivity
270Mbps:-61dBm@10%PER
135Mbps:-65dBm@10%PER
108Mbps:-68dBm@8%PER
54Mbps:-68dBm@10%PER
11Mbps:-85dBm@8%PER
6Mbps:-88dBm@10%PER
1Mbps:-90dBm@8%PER
LoRa Output
Power
Max:23dBm
LoRa Sensitivity
-141dBm@SF12,BW=125kHz
LED
Power LED
1.System operating normally: Solid green
2.System operating abnormally: Solid red
3. System upgrade: Blink green
Network LED
1.No network: Solid yellow
2.ETH connection: Solid blue
3. WIFI connection: Solid green
Communication
LED
1.LoRa COMM √, Server COMM ×: Solid blue
2.LoRa COMM x, Server COMM √: Solid yellow
3.LoRa COMM √, Server COMM √: Solid green
4.LoRa COMM x, Server COMM x: Solid red
Antenna
WIFI antenna
1.1dBi External antenna
LoRa antenna
1.6dBi External antenna
Environmental
Operating Temp.
-20°C to 55°C

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
7
Storage Temp.
-40°C to +85℃
Regulatory
Approvals
Under Approval FCC/CE
Dimensions
Installation
Dimensions
166*105*28.4mm
Weight
215g
Installation
On the desktop or Fixed on the wall
Enclosure
Standard
Moulded plastic housing
Warranty
1-Year warranty
Table1 MKGW2-LW Main Specifications
2.3 Hardware Interfaces and Indicator
Figure1 MKGW2-LW Interface
No.
Type
Function
Remark
1
Reset button
1.Reset to factory setting
2.Firmware upgrade
1.Reset: Insert and press the button
then keep 5s
2.Update: Before firmware upgrade,
insert USB Flash Drive and short press
the button
2
USB Port
Plug a USB flash drive with
upgrade file for firmware
upgrade
The name of upgrade file is required to
be: MKGW2-LW-Upgrade.bin
3
POE Port
1.POE power supply
2.Ethernet Access
POE (IEEE 802.3af)
4
Micro USB
USB power supply
5V/2A
5
DC Power Port
DC power supply
12V/1A
6
Power Button
ON/OFF

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
8
7
WiFi Antenna
WiFi Antenna
1.1dBi
8
LoRa Antenna
LoRa Antenna
1.6dBi
9
Power LED
Indicate device operating
status
1.System operating normally: Solid
green
2.System operating abnormally: Solid
red
3. System upgrade: Blink green
10
Network LED
Indicate network status
1.No network: Solid yellow
2.ETH connection: Solid blue
3. WIFI connection: Solid green
11
Communicatio
n LED
Indicate Lora and server
communicate status
1.LoRa COMM √, Server COMM ×:
Solid blue
2.LoRa COMM x, Server COMM √:
Solid yellow
3.LoRa COMM √, Server COMM √:
Solid green
4.LoRa COMM x, Server COMM x: Solid
red
Table2 MKGW2-LW Hardware Interfaces
2.4 Mechanical Size
Figure2 MKGW2-LW Mechanical Size

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
9
2.5 Package Information
2.5.1 Package List
Item
Qty
Remark
MKGW2-LW
1
Gateway
WiFi Antenna
1
Lora Antenna
1
Micro USB cable
1
Positioning screws
2
Used for fixing on the wall
Expansion rubber plug
2
Used for fixing on the wall
PET localizer
1
Table3 MKGW2-LW Package List
2.5.2 Package Information
Figure3 MKGW2-LW Package

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
10
3 Installation
Step 1: Use 5mm drill head, drill 2 holes on the wall according to the PET localizer
following picture and then plug the screw anchors in the wall.
Figure4 MKGW2-LW Installation 1
Step 2: Install the screw into the wall and keep about 3 mm of clearance.
Figure5 MKGW2-LW Installation 2
Step 3: Insert the screw head into the hanging hole behind the equipment, then gently pull down
to complete the installation
Figure6 MKGW2-LW Installation 3

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
11
4 Connecting the Hardware
4.1 Connect the Gateway
1. Follow the silk screen on the enclosure and connect WiFi and LoRa antennas. Refer to Antenna
Configuration for additional information.
Figure7 MKGW2-LW Botton Silk
2. Connect the power supply (Refer to Chapter 4.2 Power up and Turn ON/OFF for additional
information.).
4.2 Power Up and Turn ON/OFF
Figure8 MKGW2-LW Side Silk
Power Up: follow the silk on the enclosure you can select different power solution.
1. Micro USB:5V/2A
2. DC Power Port:12V/1A
3. POE Port:POE (IEEE 802.3af)
Turn ON/OFF:After power up the gateway, it needs to push-down the power ON/OFF button to
start the gateway system.

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
12
5 Log into the Gateway
1. Turn On the gateway and waiting for about 60s.
2. Using your PC or phone connect the SSID of the gateway. The default SSID format is
"MKGW2-LW-xxxx”such as " MKGW2-LW-91D8 ", “91D8”is the last two bytes of the gateway MAC
address. verify the password (Default: Moko4321) and connect to the gateway.
Figure9 Gateway SSID
3. After successful connection, the WEB management platform can be accessed through the IP
address 192.168.22.1 of the gateway LAN interface.
Log on using the following default credentials,
Username: Admin
Password: admin
It is recommended that the default password is changed for security reasons. For details on
changing the password, please refer to Chapter 5.2 WiFi settings.
Figure10 Log in WEB
Figure11 Gateway Status

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
13
Noted:It is recommended to use the latest version of the mainstream browsers such as IE11,
Chrome, Firefox, Safari, etc.
6 Internet setting
The gateway can access the Internet through Ethernet(ETH) or WiFi, and can access the network by
Automatic IP or Static IP.
Static IP requires WAN IP, subnet mask, gateway IP, DNS, etc.
After the network configuration is completed, wait for the gateway to access the network. You can
check the network status in gateway STATUS web page and also can check the network LED
indicator.
No network: Solid yellow
ETH connection: Solid blue
WIFI connection: Solid green
6.1 Ethernet to Internet
Use a network cable to connect to the PoE port of the gateway and connect the gateway to a
Network Switch that is connected to the Internet.
Figure12 Ethernet / Automatic IP

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
14
Figure13 Ethernet / Static IP
6.2 WiFi to Internet
Connect to a Wireless Router via WLAN to access the Internet. Select a wireless router and connect
to it. After the configuration is complete, the gateway will restart.And the network status can be
check in the STATUS page

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
15
Figure14 WiFi / Automatic IP
Figure15 WiFi / Automatic IP Select a Wireless Router
Figure16 WiFi / Static IP

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
16
Figure17 Network Status Check
7 WiFi Setting
You can modify the SSID of the gateway, whether to hide the SSID, encryption mode, and password. After
the configuration is complete, the gateway will be restarted for the configuration to take effect.
Figure18 Gateway WiFi Setting

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
17
Supported encryption methods:
WPA1PSKWPA2PSK/TKIPAES(Default)
WPA1PSKWPA2PSK/AES
WPA2PSK/TKIPAES
WPA2PSK/AES
WPA2PSK/TKIP
WPAPSK/TKIPAES
WPAPSK/AES
WPAPSK/TKIP
WEP
NONE(No encryption)
8 LAN Setting
You can modify the gateway LAN IP and subnet mask. After the configuration is complete, the
gateway will be restarted for the configuration to take effect.
Figure19 Gateway LAN Setting

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
18
9 Diagnostics
You can check the current network connection through the Diagnostics.Fill in the IP address and
select the network type, and use ping to check the network, it will display ping result.
Figure20 Gateway Network Diagnostics
10 Server Access
MKGW2-LW LoRaWAN gateway only support Semtech UDP Packet Forwarder to access the LoRa
server now.
You need to fill in the LoRa Server Address,Server Up Port,Server Down Port,and select the
Frequency,Channel and HeartBeat.
After the LoRa server connect successfully , you can check the server access status in gateway
STATUS web page and also can check the LoRa server communication LED indicator that should be
solid green.

MOKO LoRaWAN Gateway
MKGW2-LW
www.mokosmart.com
19
Figure21 Gateway Server configuration
Figure22 Gateway Server Connection Check
Table of contents
Other MOKO Gateway manuals