Dragino LG02 User Manual

Dragino LG02 User Manual

Lora gateway
Hide thumbs Also See for LG02:
Table of Contents

Advertisement

Quick Links

LG02/OLG02 LoRa Gateway User Manual
Document Version: 1.1
Firmware Version: LG02_LG08—v5.0.1
Version
Description
1.0
Release
1.1
Enrich content for ABP
LoRa Gateway User Manual ---Update:2018-09-11
www.dragino.com
Date
2018-Sep-11
2018-Oct-07
1 / 44

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LG02 and is the answer not in the manual?

Questions and answers

Summary of Contents for Dragino LG02

  • Page 1 LG02/OLG02 LoRa Gateway User Manual Document Version: 1.1 Firmware Version: LG02_LG08—v5.0.1 Version Description Date Release 2018-Sep-11 Enrich content for ABP 2018-Oct-07 LoRa Gateway User Manual ---Update:2018-09-11 1 / 44...
  • Page 2: Table Of Contents

    Introduction ..........................4 What is LG02 & OLG02 ....................... 4 Specifications ..........................5 Features ............................7 System Structure ........................7 Applications ..........................8 Hardware Variants ........................9 Install SIM card in 4G module ..................... 9 Access LG02 ..........................10 Typical Network Setup ......................
  • Page 3 Can I develop my own software for LG02? ................37 Can I make my own firmware for LG02? Where can I find the source code of LG02? ....37 On OTAA mode, if I use the other frequency, how should I modify in the library? ....37 How can I reset the device to factory default? .................
  • Page 4: Introduction

    LG02 & OLG02 provide a low cost for your IoT network connection. Compare to the cost with normal SX1301 LoRaWAN solution. LG02 & OLG02 is only of its 1/4 or less cost. This makes the LG02 very suitable to set up small scale LoRa network or use it to extend the coverage of current LoRaWAN network.
  • Page 5: Specifications

    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  LoRa Wireless  Power Input: 12V DC  USB 2.0 host connector x 1 ...
  • Page 6  Preamble detection.  127 dB Dynamic Range RSSI.  Automatic RF Sense and CAD with ultra-fast AFC.  Packet engine up to 256 bytes with CRC.  Built-in temperature sensor and low battery indicator. Cellular 4G LTE (optional): ...
  • Page 7: Features

    1.3 Features  Open Source OpenWrt LEDE system  Low power consumption  Firmware upgrade via Web  Software upgradable via network  Flexible protocol to connect to IoT servers  Auto-Provisioning  Built-in web server  Managed by Web GUI, SSH via LAN or WiFi ...
  • Page 8: Applications

    1.5 Applications LoRa Gateway User Manual ---Update:2018-09-11 8 / 44...
  • Page 9: Hardware Variants

    Outdoor version for dual channel LoRa Gateway 1.7 Install SIM card in 4G module For LG02 & OLG02 4G version, the 4G module is inside the box, please open the box and use below direction to install the SIM card...
  • Page 10: Access Lg02

    2. Access LG02 Access and configure LG02 The LG02 is configured as a WiFi AP by factory default. User can access and configure the LG02 after connect to its WiFi network. At the first boot of LG02, it will auto generate an unsecure WiFi network call dragino-xxxxxx User can use the laptop to connect to this WiFi network.
  • Page 11: Typical Network Setup

    3.2 Use WAN port to access Internet By default, the LG02 set to use WAN port as network connection. When connect LG02’s WAN port to router, LG02 will get IP from router and have internet access. The network status can be checked as below:...
  • Page 12: Access Internet As A Wifi Client

    3.3 Access Internet as a WiFi Client. In the WiFi Client Mode, Dragino acts as a WiFi client and gets DHCP from uplink router via WiFi. The step to set is as below: Step1: In network -> Wireless, select Radio0 interface and scan.
  • Page 13 After successful associate, the WiFi network interface can be seen in the same page: LoRa Gateway User Manual ---Update:2018-09-11 13 / 44...
  • Page 14: Use Built-In 4G Modem For Internet Access

    3.4 Use built-in 4G modem for internet access For the LG02 model with 4G version, user can configure the modem for internet access. Step 1: Add New Interface LoRa Gateway User Manual ---Update:2018-09-11 14 / 44...
  • Page 15 Step 2: Configure cellular interface Step 3: Check Result Note: In case you don’t know if your device has 4G modem, you can run lsusb command in SSH access to check, as below: LoRa Gateway User Manual ---Update:2018-09-11 15 / 44...
  • Page 16: Check Internet Connection

    3.5 Check Internet connection User can use the diagnostics page to check and analyze Internet connection. LoRa Gateway User Manual ---Update:2018-09-11 16 / 44...
  • Page 17: Example 1: Configure As A Lorawan Gateway

    4. Example 1: Configure as a LoRaWAN gateway LG02 has two LoRa channels and can be configured as a Dual Channel LoRaWAN gateway. LG02 is pre-configured to support one uplink channel and one downlink channel in the LoRaWAN mode.
  • Page 18 Step 3: Create a Gateway in TTN A8 40 41 1b 6f c4 41 50 LoRa Gateway User Manual ---Update:2018-09-11 18 / 44...
  • Page 19: Configure Lg02 Gateway

    4.2 Configure LG02 Gateway 4.2.1 Configure to connect to LoRaWAN server We should configure the LG02 now to let it connect to TTN network. Make sure your LG02 has Internet Connection first. Step1: Configure LG02 to act as raw forwarder Step2: Input server info and gateway id Choose the correct the server address and gateway ID.
  • Page 20: Configure Lg02'S Rx Frequency

    Check Result After above settings, the LG02 should be able to connect to TTN, below is the result seen from TTN: 4.2.2 Configure LG02’s RX frequency Now we should configure LG02 to act receive the LoRaWAN packets. This is in Channel 1, we configure is to use 868.1Mhz (868100000 Hz) as below.
  • Page 21: Create Lora End Node

    LG02 supports LoRaWAN End Node, in LoRaWAN protocol, it requires LoRaWAN node to send data in a hopping frequency. Since LG02 only support one single frequency, it will only able to receive the packet which is of the same Radio Frequency set up in LG02 Radio 1.
  • Page 22: Preparation

    Install this library https://github.com/dragino/arduino-lmic to the Arduino Library path. Before compiling the End Device software, User needs to change the Frequency Band to use with LG02. What user need to change is in the file arduino\libraries\arduino-lmic \src\lmic\config.h. Changes are as below:...
  • Page 23: Test With Abp Lora End Node

    4.3.3 Test with ABP LoRa end node. Step 1: Create an ABP device in TTN server -- > Application page. And change it to ABP mode. LoRa Gateway User Manual ---Update:2018-09-11 23 / 44...
  • Page 24 Step 2: Input keys into Arduino Sketch. The sketch for the LoRa Shield is in Arduino –IDE --> Examples -->LMIC_Arduino ttn-abp TTN LoRaWAN End Device page Make sure the Network Session Key and App Session Key are in MSB order...
  • Page 25 Step 3: Check Result for Uplink Packet Sent From LoRa Shield. In Arduino IDE --> Serial Monitor Packet Arrive Gateway. In page Service-->logread Packet Arrive TTN. In TTN --> Gateway --> Traffic Packet Arrive TTN Device Page. In TTN --> Application --> Device --> Data...
  • Page 26 Downlink message Send out from TTN after the next uplink message arrive. In TTN --> Gateway --> Traffic Downlink message arrives gateway In LG02 --> Service --> Logread Downlink message arrives LoRa Shield In Arduino IDE --> Serial Monitor LoRa Gateway User Manual ---Update:2018-09-11...
  • Page 27: Example 2: Control The Two Radio To Do Transmit And Receive In Raw Lora Mode

    5. Example 2: Control the two radio to do transmit and receive in raw LoRa mode Step 1: Disable All IoT service Step 2: Use lg02_single_rx_tx to transmit and receive Usage: lg02_single_rx_tx [-d radio_dev] select radio 1 or 2 (default:1)
  • Page 28: Example 3: Simple Lora Wireless Example

    To test LoRa wireless, we use LoRa Shield for testing. In this example, we will show the basic LoRa Communication: The LoRa Client will broadcast a data via LoRa wireless, the LG02 gateway will get this data and show the data in the PC.
  • Page 29 LoRa Gateway User Manual ---Update:2018-09-11 29 / 44...
  • Page 30: Upload Sketch To Lora Client

    LoRa Shield + UNO via the USB com port. And then open serial monitor to see the output. 6.3 The gateway part The LG02 need configure some feature: A) Service-> IoT Service LoRa Gateway User Manual ---Update:2018-09-11...
  • Page 31: Check Result

    B) Service -> LoRaWAN Gateway Keep consistent with end node settings. Like frequency, SF,BW,CR. 6.4 Check Result 1. Open the SSH,login the LG02 system.(How to use, you can refer Linux_System.) 2.Check the status of LG02 receiving LoRa Gateway User Manual ---Update:2018-09-11...
  • Page 32: Linux System

    We can see the LG02 communication with end node has completed. 7. Linux System The LG02 bases on OpenWrt Linux System. It is open source, and user are free to configure and modify the inside Linux settings. 7.1 SSH Access for Linux console User can access to the Linux console via SSH protocol.
  • Page 33: Edit And Transfer Files

    One of the easiest is through WinSCP utility. After access via WinSCP to the device, use can use a FTP alike window to drag / drop files to the LG02 or Edit the files directly in the windows. Screenshot is as below: 7.3 File System The LG02 has a 16MB flash and a 64MB RAM.
  • Page 34: Package Maintain System

    There are more than 3000+ packages available in our package server for user to install for their applications. For example, if user wants to add iperf tool, they can install the related packages and configure LG02 to use iperf Below is some examples opkgs command, more please refer...
  • Page 35: Upgrade Linux Firmware

    8. Upgrade Linux Firmware We keep improving the LG02 Linux side firmware for new features, bug fixes. The latest firmware can be found on IoT Mesh Firmware, and the Change Log can be found here: Firmware Change Log. The file named as dragino2-IoT--xxxxx-squashfs-sysupgrade.bin...
  • Page 36: Faq

    8 channels. The LG02 only support two channels and can only support limited LoRaWAN protocol. Because of this limitation, if user wants to use a standard LoRaWAN device with LG02, user has to modify this LoRaWAN node to run in single frequency to work with LG02.
  • Page 37: Can I Develop My Own Software For Lg02

    Yes, the fastest way to develop own software is through the SDK. The instruction is here: https://github.com/dragino/openwrt_lede-18.06/blob/master/README.md#how-to-develop-a-c -software-before-build-the-image 9.5 Can I make my own firmware for LG02? Where can I find the source code of LG02? Yes, User can make own firmware for LG02 for branding purpose or add customized application.
  • Page 38: How Can I Reset The Device To Factory Default

    Reset via Web UI. Click the button in Web UI --> System --> Back up / Flash firmware --> Perform Reset Method 2: Reset in Linux console, command is below: root@dragino-1b8288:~# firstboot This will erase all settings and remove any installed packages. Are you sure? [N/y] LoRa Gateway User Manual ---Update:2018-09-11...
  • Page 39: More Faqs About General Lora Questions

    /dev/mtdblock4 is mounted as /overlay, only erasing files root@dragino-1b8288:~# reboot 9.8 More FAQs about general LoRa questions We keep updating more FAQs in our WiKi about some general questions. The link is here: http://wiki.dragino.com/index.php?title=LoRa_Questions LoRa Gateway User Manual ---Update:2018-09-11...
  • Page 40: Trouble Shooting

    10.1 I get kernel error when install new package, how to fix? In some case, when install package, it will generate kernel error such as below: root@dragino-16c538:~# opkg install kmod-dragino2-si3217x_3.10.49+0.2-1_ar71xx.ipk Installing kmod-dragino2-si3217x (3.10.49+0.2-1) to root... Collected errors: * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-dragino2-si3217x: kernel (= 3.10.49-1-4917516478a753314254643facdf360a) *...
  • Page 41: How To Recover The Lg02 If Firmware Crash

    In this case, user can recover the whole Linux system by uploading a new firmware via Web Failsafe mode. Procedure is as below:  Use a RJ45 cable to connect the PC to LG02’s port directly.  Set the PC to ip 192.168.255.x, netmask 255.255.255.0 ...
  • Page 42: I Configured Lg02 For Wifi Access And Lost Its Ip. What To Do Now

    10.3 I configured LG02 for WiFi access and lost its IP. What to do now? The LG01 has a fall-back ip in its LAN port. This IP is always enabled so user can use fall back ip to access LG01 no matter what the WiFi IP is. The fall back ip is useful for connect and debug the unit.
  • Page 43: Order Info

    11. Order Info General Version:  LG02-433: LoRa Gateway best tune to 433 MHz.  LG02-868: LoRa Gateway best tuned to 868 MHz.  LG02-915: LoRa Gateway best tuned to 915 MHz  G01S-915: LoRa Gateway best tuned to 915 MHz.
  • Page 44: Reference

    Source code for LG02 LoRa Gateway https://github.com/dragino/openwrt_lede-18.06  OpenWrt official Wiki http://www.openwrt.org/  Download of this manual or Update version http://www.dragino.com/downloads/index.php?dir=UserManual/LG02_OLG02/  LMIC library for Arduino LoRaWAN end device use with LG02. https://github.com/dragino/arduino-lmic LoRa Gateway User Manual ---Update:2018-09-11 44 / 44...

This manual is also suitable for:

Olg02

Table of Contents