Page 1
LG01N/OLG01N LoRa Gateway User Manual Document Version: 1.4.0 Firmware Version: lgw--build-v5.4.1607519907-20201209-2120 Version Description Date Release 2018-Dec-28 Add Customized Script Feature 2019-Jan-19 (firmware ver >LG02_LG08--build-v5.1.1547896817-20190119-1921) --Add Downlink support and example. 2019-Jan-30 (firmware ver >LG02_LG08--build-v5.1.1548820215-20190130-1151) --Correct typo for the UNO code of example for lg02_single_rx_tx 1.2.1...
Introduction ..........................5 What is LG01N & OLG01N ......................5 Specifications ..........................6 Features ............................8 System Structure ........................8 Applications ..........................9 Hardware Variants ........................10 Interfaces ..........................10 Install SIM card in 4G module ....................11 Firmware Change log ....................... 12 Access and configure LG01N ....................
Page 3
Can I develop my own LoRa protocol and other software for LG01N? ........ 37 13.5 Can I make my own firmware for LG01N? Where can I find the source code of LG01N? ..37 13.6 On OTAA mode, if I use the other frequency, how should I modify in the library?....37 13.7...
Page 4
Order Info ........................... 42 Packing Info ........................42 Support ..........................42 Reference ........................... 43 LG01N/OLG01N Gateway User Manual 4 / 43...
Cellular. These interfaces provide flexible methods for users to connect their sensor networks to Internet. LG01N can be used to provide a low cost IoT wireless solution to support 10~100 sensor nodes. LG01N can support multiply working mode such as:...
Excellent blocking immunity. ➢ Low RX current of 10.3 mA, 200 nA register retention. ➢ Fully integrated synthesizer with a resolution of 61 Hz. ➢ FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation. LG01N/OLG01N Gateway User Manual 6 / 43...
Page 7
Internal 4G Antenna + 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 modem wireless communication systems LG01N/OLG01N Gateway User Manual 7 / 43...
Limited support in LoRaWAN/ Support Private LoRa protocol ✓ Support up to 100 nodes ✓ LoRa band available at 433/868/915/920 Mhz ✓ Max range in LoRa: 5~10 km. Density Area:>500m 1.4 System Structure LG01N/OLG01N Gateway User Manual 8 / 43...
1.6 Hardware Variants The LG01N and OLG01N use the same firmware and have the same feature in the software side. In this document, we will use LG01N to explain the feature. Model Photo Description LG01N Indoor version for single channel LoRa Gateway,...
1.8 Install SIM card in 4G module LG01N & OLG01N has optional built-in 4G module version. For the 4G version, devices will be shipped with screws unassembled, please open the box and use below direction to install the SIM card (Micro SIM) Note: Please power off when install the SIM card, and power on again after installation.
1.9 Firmware Change log Please see this link for firmware change log: http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LG02-OLG02/Firmware/&file =ChangeLog LG01N/OLG01N Gateway User Manual 12 / 43...
2. Access and configure LG01N The LG01N is configured as a WiFi Access Point by default. User can access and configure the LG01N after connecting to its WiFi network, or via its Ethernet ports. 2.1 Find IP address of LG01N 2.1.1 Connect via WiFi...
The LG01N LAN port is configured as DHCP router by default, user can connect the PC to LAN port and set PC to DHCP mode, the PC will get IP from LG01N’s LAN port and be able to access to the device.
2.2 Access Configure Web UI Web Interface Open a browser on the PC and type the LG01N ip address (depends on your connect method) http://10.130.1.1/ (Access via WiFi AP network) IP_ADDRESS http://IP_ADDRESS or http:// :8000 (If the IP is assigned by uplink router) You will see the login interface of LG01N as shown below.
3.2 Use WAN port to access Internet By default, LG01N is set to use the WAN port to connect to an upstream network. When you connect the LG01N’s WAN port to an upstream router, LG01N will get an IP address from the router and have Internet access via the upstream router.
3.3 Access Internet as a WiFi Client. In the WiFi Client Mode, LG01N acts as a WiFi client and gets DHCP from an upstream router via WiFi. System → WiFi → WiFi WAN Client Settings The settings for WiFi Client are under page In the WiFi Survey Choose the WiFi AP, and input the Passphrase then click Save &...
3.4 Use built-in 4G modem for internet access If the LG01N has 3G/4G Cellular modem, user can use it as main internet connection or back up. First, install the Micro SIM card as below direction Second, Power off/ ON LG01N to let it detect the SIM card.
➢ GREEN Tick : This interface has Internet connection. ➢ Yellow Tick : This interface has IP address but don’t use it for internet connection. ➢ RED Cross : This interface doesn’t connected. LG01N/OLG01N Gateway User Manual 19 / 43...
| number | Concentrator "RF chain" used for TX (unsigned integer) powe | number | TX output power in dBm (unsigned integer, dBm precision) modu | string | Modulation identifier "LORA" or "FSK" datr | string | LoRa datarate identifier (eg. SF12BW500) LG01N/OLG01N Gateway User Manual 20 / 43...
Page 21
1) First set up a LoRa Shield with this code: LoRaReceiver. So the LoRa Shield will receive the data at frequency 915.6Mhz, SF7BW125, CR: 4/5 2) Edit a file (any name) under /var/iot/push/ with below content. {"txpk":{"freq":915.6,"powe":20,"datr":"SF7BW125","codr":"4/5","ipol":false,"data":"test"}} And then we can see below output LG01N/OLG01N Gateway User Manual 21 / 43...
Most IoT server support MQTT connection, for those servers, we can use MQTT to connect it to publish data or subscribe to a channel. A detail of how to use MQTT plus Video instruction can be found at: http://wiki.dragino.com/index.php?title=MQTT_Forward_Instruction LG01N/OLG01N Gateway User Manual 22 / 43...
6. Example 3: TCP IP Client Mode In the TCP IP Client mode, LG01N can accept LoRa packets and send it to the TCP-IP server. The working topology is as below. In this mode, The Uplink LoRa packets should use a customized format.
Page 24
The directory to store customized script is in /etc/lora/customized_scripts/. User can write a new script and put it under this directory for their application. The web will auto detect it. Step 2: Configure LoRa Radio parameters to match the LoRa End Node. LG01N/OLG01N Gateway User Manual 24 / 43...
Page 25
Step 3: Configure the LoRa End Device to send sensor data. Here is an example code for LoRa Shield: End Device Code Outputs: End node send out packages: Gateway receive packet & Script find packet Script store data into file LG01N/OLG01N Gateway User Manual 25 / 43...
Here shows an example for how to communicate to ThingSpeak server via HTTP protocol. 8.1 Test uplink and downlink via Linux command We can see the API requests method in ThingSpeak API keys tab. Run curl command to use this API (update a channel feed) : LG01N/OLG01N Gateway User Manual 26 / 43...
Page 27
And we will be able to see the update in the feed: ThingSpeak has a talkback API which can dispatch command, it is under Apps → Talkback We can use curl command to get command_string, as below: LG01N/OLG01N Gateway User Manual 27 / 43...
[ "$channel" == "396640" ];then WRITE_API_KEY="P07KVY59P5QEY6M6" talkback=`curl …. Replace with the actually talk back URL 3. Modify this line with the suitable frequency. echo "{\"txpk\":{\"freq\":915.0,\"powe\":2 Step3: Select ThingSpeak script as the customized script. LG01N/OLG01N Gateway User Manual 28 / 43...
LG01-N to use for LoRaWAN network. This chapter describes how to use LG01N to work with TTN LoRaWAN Server. The method to work with other LoRaWAN Server is similar. LG01N/OLG01N Gateway User Manual...
10.2 More instructions http://wiki.dragino.com/index.php?title=Main_Page#LoRa.2FLoRaWAN_Gateway_Instruction 11. Linux System The LG01N bases on OpenWrt Linux System. It is open source, and user are free to configure and modify the inside Linux settings. 11.1 SSH Access for Linux console User can access to the Linux console via SSH protocol. Make sure your PC and the LG01 is in the same network, then use a SSH tool (such as putty) to access it.
Page 31
LG01N/OLG01N Gateway User Manual 31 / 43...
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 LG01N or Edit the files directly in the windows. Screenshot is as below: 11.3 File System The LG01N has a 16MB flash and a 64MB RAM.
Page 33
8144 4% /overlay //Flash: Remain after reboot Reset to factory default: mtd erase rootfs_data -r Except /tmp and /var. all data will be store in flash. /tmp and /var are store in RAM LG01N/OLG01N Gateway User Manual 33 / 43...
For example, if user wants to add iperf tool, they can install the related packages and configure LG01N to use iperf Below is some examples opkgs command, more please refer...
12. Upgrade Linux Firmware We keep improving the LG01N Linux side firmware for new features, bug fixes. The latest firmware can be found on LG01N Firmware & release note The file named as dragino-LG02_LG08----xxxxx-squashfs-sysupgrade.bin is the upgrade Image. There are different methods to upgrade, as below: 12.1...
8 channels. The LG01N 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 LG01N, user has to modify this LoRaWAN node to run in single frequency to work with LG01N.
-software-before-build-the-image 13.5 Can I make my own firmware for LG01N? Where can I find the source code of LG01N? Yes, User can make own firmware for LG01N for branding purpose or add customized application. The LG01N source code and compile instruction can be found at: https://github.com/dragino/openwrt_lede-18.06...
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] /dev/mtdblock4 is mounted as /overlay, only erasing files root@dragino-1b8288:~# reboot LG01N/OLG01N Gateway User Manual 38 / 43...
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-dragino2-si3217x: kernel (= 3.10.49-1-4917516478a753314254643facdf360a) * * opkg_install_cmd: Cannot install package kmod-dragino2-si3217x. In this case, user can use the –force-depends option to install such package. opkg install kmod-dragino2-si3217x_3.10.49+0.2-1_ar71xx.ipk --force-depends LG01N/OLG01N Gateway User Manual 39 / 43...
14.2 How to recover the LG01N if firmware crash LG01N provides user a full control on its Linux system, it is possible that the device will brick and can’t boot after improper modification in some booting files. In this case, user can recover the whole Linux system by uploading a new firmware via Web Failsafe mode.
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 LG01N no matter what the WiFi IP is. The fall back ip is useful for connect and debug the unit.
Page 42
16. Packing Info Package Includes: ✓ LG01N or OLG01N LoRa Gateway x 1 ✓ Stick Antenna for LoRa RF part. Frequency is one of 433 or 868 or 915Mhz depends the model ordered ✓ Power Adapter: EU/AU/US type power adapter depends on country to be used ✓...
Page 43
Source code for LG01N 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 LG01N. https://github.com/dragino/arduino-lmic LG01N/OLG01N Gateway User Manual 43 / 43...
Need help?
Do you have a question about the LG01N and is the answer not in the manual?
Questions and answers