background image

 

 

www.dragino.com

 

LG02 LoRa Gateway User Manual

 

   

15 / 63 

 

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.   

 

 

Step2: 

Select the wireless AP and join: 

 

 

 

 

Step3: 

In network->wireless page, disable WiFi AP network. Notice: After doing that, you will lose 

connection if your computer connect to the LG02 via LG02’s wifi network.   

Summary of Contents for LG02

Page 1: ...Ra RAW Add Manual for MQTT mode firmware ver LG02_LG08 build v5 1 1545026772 20181217 1407 2018 Dec 27 1 4 Add Customized Script Feature firmware ver LG02_LG08 build v5 1 1547896817 20190119 1921 2019...

Page 2: ...www dragino com LG02 LoRa Gateway User Manual 2 63 1 6 0 Add more features remote access 2020 Mar 02...

Page 3: ...Check Internet connection 19 4 Example 1 Configure as a LoRaWAN gateway LoRaWAN mode 20 4 1 Create a gateway in TTN Server 20 4 2 Configure LG02 Gateway 22 4 2 1 Configure to connect to LoRaWAN serve...

Page 4: ...mware 52 12 1 Upgrade via Web UI 52 12 2 Upgrade via Linux console 52 13 FAQ 53 13 1 Why there is 433 868 915 version LoRa part 53 13 2 What is the frequency range of LG02 LoRa part 53 13 3 What does...

Page 5: ...LoRa Gateway User Manual 5 63 14 2 How to recover the LG02 if firmware crash 59 14 3 I configured LG02 for WiFi access and lost its IP What to do now 60 15 Order Info 61 16 Packing Info 61 17 Support...

Page 6: ...ingle frequency and customized LoRa transition protocol The design of LG02 is use the Linux to directly control two sx1276 sx1278 LoRa modules which lets the LoRa can works in full duplex LoRa mode an...

Page 7: ...0 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 Frequency Range Band 1 HF 862 1020 Mhz Band 2 LF 410 528 Mhz 168 dB maximum l...

Page 8: ...CRC Built in temperature sensor and low battery indicator Cellular 4G LTE optional Quectel EC25 LTE module Micro SIM Slot Internal 4G Antenna External 4G Sticker Antenna Up to 150Mbps downlink and 50M...

Page 9: ...Built in web server Managed by Web GUI SSH via LAN or WiFi Internet connection via LAN WiFi 3G or 4G Failsafe design provides robustly system 2 x SX1276 SX1278 LoRa modules Full duplex LoRa transceiv...

Page 10: ...www dragino com LG02 LoRa Gateway User Manual 10 63 1 5 Applications...

Page 11: ...he same feature in the software side In this document we will use LG02 as the model number to explain the feature Model Photo Description LG02 Indoor version for dual channel LoRa Gateway without 4G m...

Page 12: ...or LG02 OLG02 4G version the 4G module is inside the box please open the box and use below direction to install the SIM card 1 8 Firmware Change log Please see this link for firmware change log http w...

Page 13: ...30 1 xxx and the LG01 has the default IP 10 130 1 1 Open a browser in the laptop and type http 10 130 1 1 cgi bin luci admin User will see the login interface of LG02 The account for Web Login is User...

Page 14: ...pical network topology can be set in LG02 The typical 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 L...

Page 15: ...lient and gets DHCP from uplink router via WiFi The step to set is as below Step1 In network Wireless select Radio0 interface and scan Step2 Select the wireless AP and join Step3 In network wireless p...

Page 16: ...www dragino com LG02 LoRa Gateway User Manual 16 63 After successful associate the WiFi network interface can be seen in the same page...

Page 17: ...dragino com LG02 LoRa Gateway User Manual 17 63 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 Interf...

Page 18: ...com LG02 LoRa Gateway User Manual 18 63 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 chec...

Page 19: ...www dragino com LG02 LoRa Gateway User Manual 19 63 3 5 Check Internet connection User can use the diagnostics page to check and analyze Internet connection...

Page 20: ...uplink channel and one downlink channel in the LoRaWAN mode This mode works as below diagram This chapter describes how to use LG02 to work with TTN LoRaWAN Server The method to work with other LoRaWA...

Page 21: ...www dragino com LG02 LoRa Gateway User Manual 21 63 Step 3 Create a Gateway in TTN A8 40 41 1b 6f c4 41 50...

Page 22: ...sn t configure to send update status yet 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 h...

Page 23: ...quency 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 Users only need to configure the RX Radio settings In...

Page 24: ...nnel 3 867100000 DR_RANGE_MAP DR_SF12 DR_SF7 BAND_CENTI g band LMIC_setupChannel 4 867300000 DR_RANGE_MAP DR_SF12 DR_SF7 BAND_CENTI g band LMIC_setupChannel 5 867500000 DR_RANGE_MAP DR_SF12 DR_SF7 BAN...

Page 25: ...or LoRaWAN End device 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 wit...

Page 26: ...www dragino com LG02 LoRa Gateway User Manual 26 63 4 3 3 Test with OTAA LoRa end node LoRa Shield UNO Step 1 Create an OTAA device in TTN server Application page...

Page 27: ...LG02 LoRa Gateway User Manual 27 63 Step 2 Input keys into Arduino Sketch The sketch for the LoRa Shield is in Arduino IDE Examples LMIC_Arduino ttn otaa Choose Arduino UNO to upload the sketch to LoR...

Page 28: ...LoRa Gateway User Manual 28 63 Step 3 Check Result for OTAA Note The LG02_DNWFREQ value in Arduno_LMIC src lmic config h should match downlink frequency from TTN TTN shows 868 1 here So LG02_DNWFREQ...

Page 29: ...hedule a Downlink message In TTN Application Device Data Downlink message Send out from TTN after the next uplink message arrive In TTN Gateway Traffic Downlink message arrives gateway In LG02 Service...

Page 30: ...www dragino com LG02 LoRa Gateway User Manual 30 63 4 3 4 Test with ABP LoRa end node LoRa Shield UNO Step 1 Create an ABP device in TTN server Application page And change it to ABP mode...

Page 31: ...The sketch for the LoRa Shield is in Arduino IDE Examples LMIC_Arduino ttn abp Choose Arduino UNO to upload the sketch to LoRa Shield and UNO Make sure the Network Session Key and App Session Key are...

Page 32: ...32 63 Step 3 Check Result for Uplink Packet Arrive Gateway In page Service logread Packet Arrive TTN In TTN Gateway Traffic Packet Sent From LoRa Shield In Arduino IDE Serial Monitor Packet Arrive TT...

Page 33: ...hedule a Downlink message In TTN Application Device Data Downlink message Send out from TTN after the next uplink message arrive In TTN Gateway Traffic Downlink message arrives gateway In LG02 Service...

Page 34: ...gic of this receive part please see Customized_Script 5 1 2 Use pkt_fwd to transmit This is a new feature since 2019 Jan 30 The pkt_fwd also open a thread to listen to local files under directory var...

Page 35: ...cy deviation unsigned integer in Hz ipol bool Lora modulation polarization inversion prea number RF preamble size unsigned integer size number RF packet payload size in bytes unsigned integer data str...

Page 36: ...With firmware higher than version LG02_LG08 build v5 1 1545908833 20181227 1908 select Disabled in IoT Service page Step 2 Use lg02_single_rx_tx to receive Usage lg02_single_rx_tx d radio_dev select r...

Page 37: ...2 LoRa Gateway User Manual 37 63 Then set up a LoRa node to send out LoRa packet We use LoRa Shield UNO in this example The library use in Arduino UNO is LoRa Master And the source code is LoRaSender...

Page 38: ...root dragino 1b6fb0 lg02_single_rx_tx t d 2 f 915600000 m hello from dragino Use radio 2 to transmit a message at frequency 9156000000 Set up a LoRa node to send out LoRa packet We use LoRa Shield UN...

Page 39: ...t has been used in sensors communicating to a broker via satellite link over occasional dial up connections with healthcare providers and in a range of home automation and small device scenarios Most...

Page 40: ...ent mode LG02 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 Step1 Select TCP IP Client m...

Page 41: ...ve configured 2 channels 12345 and 34567 And there is are three LoRa End nodes sending 12345 34567 78 The LG02 will accept the data from 12345 and 34567 it will ignore the data from Node 78 Case 1 Nod...

Page 42: ...supports customized script to process LoRa data This chapter describes about the data format from LoRa End node and How to write the script The data flow from LoRa End Node to LG02 is as below Example...

Page 43: ...ustomized_scripts User can write a new script and put it under this directory for their application The web will auto detect it Step 4 Configure the LoRa End Device to send sensor data Here is an exam...

Page 44: ...ith match frequency transmit the same data on Radio2 with pre configure frequency This mode works for below LoRa protocol LoRaWAN ABP mode and only be able to relay one frequency Radiohead Library Sim...

Page 45: ...2 LoRa Gateway User Manual 45 63 Step 3 Configure transmit channel info For example if we want to transmit all received packets on Frequency 903 9Mhz sf 7 bw 125000 cr 5 wd 0x34 bandwidth 125k Below i...

Page 46: ...ings are EU863 870 Uplink 868 1 SF7BW125 to SF12BW125 868 3 SF7BW125 to SF12BW125 and SF7BW250 868 5 SF7BW125 to SF12BW125 867 1 SF7BW125 to SF12BW125 867 3 SF7BW125 to SF12BW125 867 5 SF7BW125 to SF1...

Page 47: ...ruction 11 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 11 1 SSH Access for Linux console User can access t...

Page 48: ...www dragino com LG02 LoRa Gateway User Manual 48 63...

Page 49: ...an use a FTP alike window to drag drop files to the LG02 or Edit the files directly in the windows Screenshot is as below 11 3 File System The LG02 has a 16MB flash and a 64MB RAM The var and tmp dire...

Page 50: ...include file system art radio data and board ID Use df command to see available flash RAM tmpfs 30096 96 30000 0 tmp RAM reset after reboot dev mtdblock4 8512 368 8144 4 overlay Flash Remain after re...

Page 51: ...tain system In Linux Console run root dragino 169d30 opkg update to get the latest packages list root dragino 169d30 opkg list shows the available packages root dragino 169d30 opkg install iperf insta...

Page 52: ...methods to upgrade as below 12 1 Upgrade via Web UI Go to the page Web System Back Up and flash firmware Select the image and click Flash Image the image will be uploaded to the device and then click...

Page 53: ...multiply end nodes but all end nodes must transmit data at the same frequency so the LG02 can receive it For example if the End node transmits at 868 1Mhz The LG02 s RX setting must be 868 1Mhz so to...

Page 54: ...om the LoRaWAN end node If user wants to receive all packets from LoRaWAN end node user needs to set up the LoRaWAN node to send packets in a single frequency 4 Downlink OTAA issue According to the Lo...

Page 55: ...de 18 06 13 6 Can I change the LoRa behavior of LG02 Yes Developer can change the LoRa control behavior of LG02 The source code of the LoRa controller in LG02 is here https github com dragino dragino...

Page 56: ...nd logread f We should modify this on lorabase h save and re upload the sketch For the result 13 8 How can I reset the device to factory default User can reset the device to factory default in differe...

Page 57: ...emove any installed packages Are you sure N y y dev mtdblock4 is mounted as overlay only erasing files root dragino 1b8288 reboot 13 9 Can I control the LEDs Except the PWR LED and sensor LED all othe...

Page 58: ...i3217x_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 ker...

Page 59: ...button and power on the device 4 All LEDs of the device will blink release the toggle button after four blinks 5 All LEDs will then blink very fast once this means device detect a network connection a...

Page 60: ...ll back ip to access LG01 no matter what the WiFi IP is The fall back ip is useful for connect and debug the unit Note fallback ip can be disabled in the LAN and DHCP page Steps to connect via fall ba...

Page 61: ...G02 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 Packaging...

Page 62: ...LG02 LoRa Gateway User Manual 62 63 Provide as much information as possible regarding your enquiry product models accurately describe your problem and steps to replicate it etc and send a mail to supp...

Page 63: ...nwrt_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...

Reviews: