Dragino G308 User manual

www.dragino.com
LG308 LoRaWAN Gateway User Manual
Document Version: 1.1.2
Firmware Version: LG02_LG08--build-v5.1.1542210480-20181114-2349
Version
Description
Date
1.0
Release
2018-Nov-17
1.1
Add notice for recover mode. Add hardware source code
Add FAQ for customized frequency.
2019-Jan-10
1.1.1
Add how to control LED.
1.1.2
Various minor text and format edits.
Remove SX1276 description and GPS.
2019-June-6
LoRaWAN Gateway User Manual --- Update:2019-05-25 1 / 38

www.dragino.com
Table of Contents
1 Introduction 4
1.1
What is the LG308 4
1.2
Specifications 5
1.3
Features 5
1.4
Hardware System Structure 6
1.5
LG308 Applications 7
2 Access LG308 8
2.1
Access and Configure the LG308 via WiFi or Ethernet 8
3 Typical Network Setup 9
3.1
Overview 9
3.2
Use WAN port to access Internet 9
3.3
Access the Internet as a WiFi Client. 10
3.4
Use Built-in 3G/4G modem for Internet Access 12
3.5
Check Internet connection 14
4 Example : Configure as a LoRaWAN gateway 15
4.1
Create a gateway in TTN Server 16
4.2
Configure LG308 to connect to TTN 17
4.3
Configure frequency 19
4.4
Add a LoRaWAN End Device 20
5 Linux System 23
5.1
SSH Access for Linux console 23
5.2
Edit and Transfer files 24
5.3
File System 24
5.4
Package maintenance system 25
6 Upgrade Linux Firmware 26
6.1
Upgrade via Web UI 26
6.2
Upgrade via Linux console 26
7 FAQ 27
7.1
How can I configure for a customized frequency band? 27
7.2 Can I make my own firmware for LG308? 32
7.3
Can I use the 868Mhz version for 915Mhz bands? 32
7.4
Can I control the LEDs? 32
7.5
More FAQs about general LoRa questions 32
8 Trouble Shooting 33
8.1
I get kernel error when install new package, how to fix? 33
8.2
How to recover the LG308 if the firmware crashes 34
8.3
I configured LG308 for WiFi access and lost its IP. What to do now? 34
LoRaWAN Gateway User Manual --- Update:2019-05-25 2 / 38

www.dragino.com
1 Introduction
1.1 What is the LG308
The LG308 is an open source LoRaWAN Gateway. It lets you bridge LoRa wireless network to an IP
network via WiFi, Ethernet, 3G or 4G cellular. The LoRa wireless allows users to send data and reach
extremely long ranges at low data-rates.
The LG308 is use semtech packet forwarder and fully compatible with LoRaWAN protocol. It
includes a SX1301 LoRa concentrator, which provide 10 programmable parallel demodulation paths.
LG308 has pre-configured standard LoRaWAN frequency bands to use for different countries. User
can also customized the frequency bands to use in their own LoRa network.
LG308 has optional built-in LoRaWAN server. System integrator can use it to integrate with their
existing IoT Service without set up own LoRaWAN server or use 3rd party LoRaWAN service.
LoRaWAN Gateway User Manual --- Update:2019-05-25 4 / 38

www.dragino.com
1.2 Specifications
Hardware System:
Linux Part:
●400Mhz ar9331 processor
●64MB RAM
●16MB Flash
Interface:
●10M/100M RJ45 Ports x 2
●WiFi : 802.11 b/g/n
●LoRaWAN Wireless
●Power Input: 12V DC, 1 A
●USB 2.0 host connector x 1
●Mini-PCI E connector x 1
WiFi Spec:
●IEEE 802.11 b/g/n
●Frequency Band: 2.4 ~ 2.462GHz
●Tx power:
➢11n tx power : mcs7/15: 11db mcs0 : 17db
➢11b tx power: 18db
➢11g 54M tx power: 12db
➢11g 6M tx power: 18db
●Wifi Sensitivity
➢11g 54M : -71dbm
➢11n 20M : -67dbm
LoRa Spec:
●Up to -142.5dBm sensitivity with SX1257 Tx/Rx front-end
●70 dB CW interferer rejection at 1 MHz offset
●Able to operate with negative SNR, CCR up to 9dB
●Emulates 49 x LoRa demodulators and 1 x (G)FSK demodulator
●Dual digital TX & RX radio front-end interfaces
●10 programmable parallel demodulation paths
●Dynamic data-rate (DDR) adaptation
●True antenna diversity or simultaneous dual-band operation
Cellular 4G LTE (optional):
●Quectel EC25 LTE module
●Micro SIM Slot
●External 4G Sticker Antenna.
●Up to 150Mbps downlink and 50Mbps uplink data rates
●Worldwide LTE, UMTS/HSPA+ and GSM/GPRS/EDGE coverage
●MIMO technology meets demands for data rate and link reliability in modern
wireless communication systems.
1.3 Features
●Open Source OpenWrt system
●Managed by Web GUI, SSH via LAN or WiFi
●Emulates 49x LoRa demodulators
●LoRaWAN Gateway
●10 programmable parallel demodulation paths
LoRaWAN Gateway User Manual --- Update:2019-05-25 5 / 38

www.dragino.com
1.4 Hardware System Structure
LoRaWAN Gateway User Manual --- Update:2019-05-25 6 / 38

www.dragino.com
1.5 LG308 Applications
LoRaWAN Gateway User Manual --- Update:2019-05-25 7 / 38

www.dragino.com
2 Access LG308
2.1 Access and Configure the LG308 via WiFi or Ethernet
The LG308 is configured as a WiFi Access Point by factory default. You can access and configure
the LG308 after connecting to its WiFi network, or via its LAN Ethernet port.
WiFi
At the first boot of LG308, it will auto generate an open WiFi
network called dragino-xxxxxx
You can use a PC to connect to this WiFi network. The PC will
get an IP address 10.130.1.xxx and the LG308 has the default
IP 10.130.1.1
Ethernet
Alternatively, you can connect your PC to the LG308 LAN port
via Ethernet cable and obtain an IP address via DHCP.
Web Interface
Open a browser on the PC and type in the address:
http://10.130.1.1/
You will see the login interface of LG308 as shown below.
The account details for Web Login are:
User Name: root
Password: dragino
LoRaWAN Gateway User Manual --- Update:2019-05-25 8 / 38

www.dragino.com
3 Typical Network Setup
3.1 Overview
The LG308 supports flexible network set up for different environments. This section describes
the typical network topology can be set in LG308. The network set up includes:
●WAN Port Internet Mode
●WiFi Client Mode
●WiFi AP Mode
●USB Dial Up Mode
3.2 Use WAN port to access Internet
By default, the LG308 is set to use the WAN port to connect to an upstream network. When you
connect the LG308’s WAN port to an upstream router, the LG308 will get an IP address from the
router and have Internet access via the upstream router. The network status can be checked as
below:
LoRaWAN Gateway User Manual --- Update:2019-05-25 9 / 38

www.dragino.com
3.3 Access the Internet as a WiFi Client.
In the WiFi Client Mode, the LG308 acts as a WiFi client and gets DHCP from an upstream router
via WiFi.
The steps to set up as a WiFi Client are as below:
Step1:
In Network -> Wireless, select Radio0 interface and scan.
Step2:
Select the Wireless AP and join:
Step3:
In the Network->Wireless page, disable WiFi AP network.
LoRaWAN Gateway User Manual --- Update:2019-05-25 10 / 38

www.dragino.com
Note: After doing that, you will lose connection if your PC connects to the LG308 via LG308’s
WiFi network.
After successful association, the WiFi network interface can be seen in the same page:
LoRaWAN Gateway User Manual --- Update:2019-05-25 11 / 38

www.dragino.com
3.4 Use Built-in 3G/4G modem for Internet Access
For the LG308 model fitted with 3G/4G modem, you can configure the modem for Internet
access via a cellular network.
Step 1: Add New Interface
LoRaWAN Gateway User Manual --- Update:2019-05-25 12 / 38

www.dragino.com
Step 2: Configure cellular interface
Step 3: Check Result
Note: In case you don’t know whether your device has 4G modem, you can run lsusb command
in SSH access to check, as below:
LoRaWAN Gateway User Manual --- Update:2019-05-25 13 / 38

www.dragino.com
3.5 Check Internet connection
You can use the diagnostics page to check and analyze the Internet connection as shown below.
LoRaWAN Gateway User Manual --- Update:2019-05-25 14 / 38

www.dragino.com
4 Example : Configure as a LoRaWAN gateway
LG308 is fully compatible with LoRaWAN protocol. It uses the legacy Semtech Packet forwarder
to forward the LoRaWAN packets to server. The structure is as below.
This chapter describes how to use the LG308 to work with
TheThingsNetwork (TTN) LoRaWAN Server (www.thethingsnetwork.org)
The method to work with other LoRaWAN servers will be similar.
LoRaWAN Gateway User Manual --- Update:2019-05-25 15 / 38

www.dragino.com
4.1 Create a gateway in TTN Server
Step 1: Get a Unique gateway ID.
Every LG308 has a unique gateway id. The ID can be found at LoRaWAN page:
The example gateway id is: a840411b8268ffff
Step 2: Sign up a user account in TTN server
LoRaWAN Gateway User Manual --- Update:2019-05-25 16 / 38

www.dragino.com
Step 3: Create a Gateway
Click on the Gateways icon to open the page below:
After creating the gateway, you can see the gateway info, as below.
4.2 Configure LG308 to connect to TTN
You can now configure the LG308 to let it connect to TTN network.
Make sure your LG308 has a working Internet Connection first.
LoRaWAN Gateway User Manual --- Update:2019-05-25 17 / 38

www.dragino.com
Step1: Configure LG308 to act as raw forwarder
Step2: Input server info and gateway id
Choose the correct the server address and gateway ID.
LoRaWAN Gateway User Manual --- Update:2019-05-25 18 / 38

www.dragino.com
Check Result
After making the above settings, the LG308 should be able to connect to TTN. Below is the result
seen from TTN:
4.3 Configure frequency
After making the settings above, the LG308 will be able to act as a LoRaWAN gateway.
LoRaWAN Gateway User Manual --- Update:2019-05-25 19 / 38

www.dragino.com
4.4 Add a LoRaWAN End Device
This section shows how to add a LoRaWAN End device to a LoRaWAN network and see the data
from TTN web site.
We use LT-33222-L IO Controller as a reference device - the setup for other LoRaWAN devices
will be similar.
Step 1: Create a Device definition in TTN with the OTAA keys from the example LT-33222-L IO
Controller device.
Three codes are required to define the device in TTN:
DEV EUI - Unique ID code for a particular device.
APP EUI - ID code for an Application defined in TTN.
APP Key - Unique key to secure communications with a particular device.
A set of these codes are stored in each device by the manufacturer as the default codes for that
particular device. Each device is shipped with a sticker with the default Device EUI as shown
below.
Note: You may be able to change these codes in a device by using a configuration facility on the
device e.g. the LT33222 uses a serial port access and a series of AT commands. Changing the
codes may be necessary in the case where you have to use codes assigned by a LoRa WAN
server.
For the TTN server, you can use the codes set in the device as in the following example.
Select Add Application to open the screen below.
Note that there is an APP EUI already created by TTN, but this is not the one set in the device. To
add the APP EUI for the LT33222 device, select Manage EUIs and Add EUI, then enter the
required code.
LoRaWAN Gateway User Manual --- Update:2019-05-25 20 / 38
Table of contents
Other Dragino Gateway manuals

Dragino
Dragino DLOS8N User manual

Dragino
Dragino DLOS8 User manual

Dragino
Dragino LG308 User manual

Dragino
Dragino LG01v2 User manual

Dragino
Dragino LPS8 User manual

Dragino
Dragino LPS8 User manual

Dragino
Dragino LG01N User manual

Dragino
Dragino LPS8-868 User manual

Dragino
Dragino LPS8v2 User manual

Dragino
Dragino LG308 User manual

Dragino
Dragino LG01N User manual

Dragino
Dragino LG02 User manual

Dragino
Dragino LPS8N User manual

Dragino
Dragino LG01 LoRa User manual

Dragino
Dragino LG01N User manual

Dragino
Dragino LPS8 User manual

Dragino
Dragino LIG16 User manual

Dragino
Dragino LG02 User manual

Dragino
Dragino LG01v2 User manual

Dragino
Dragino LG308N User manual