background image

 

 

www.dragino.com

 

LoRa Gateway User Manual ---Update:2017-02-21

 

   

36 / 44 

 

9.4

 

More Examples 

 
Dragino keep updating examples in our wiki, more examples please refer the link:   

Dragino Examples Catalog

 

 

 

Содержание LG01 LoRa

Страница 1: ...ateway User Manual Update 2017 02 21 1 44 LG01 LoRa Gateway User Manual Document Version 1 0 Firmware Version IoT Mesh v3 4 0 Version Description Date 0 1 Initiate 2016 Oct 29 1 0 Release Add ThingSpe...

Страница 2: ...2 3 2 Upload LoRa Server Sketch 15 2 3 3 Upload LoRa Client Sketch 15 3 Typical Network Setup 16 3 1 Overview 16 3 2 General WiFi AP Network 17 3 3 WAN Port Internet Mode 18 3 4 WiFi Client Mode 18 3...

Страница 3: ...35 9 4 More Examples 36 10 FAQ 37 10 1 Why there is 433 868 915 version LoRa part 37 10 2 What is the frequency range of LG01 LoRa part 37 10 3 How may nodes can the LG01 support 37 10 4 What kind of...

Страница 4: ...t has USB host port and has full Ethernet and 802 11 b g n WiFi capabilities The USB host port can be used to connect cellular modules so LG01 is very flexible to bridge LoRa Network to different kind...

Страница 5: ...budget 20 dBm 100 mW constant RF output vs 14 dBm high efficiency PA Programmable bit rate up to 300 kbps High sensitivity down to 148 dBm Bullet proof front end IIP3 12 5 dBm Excellent blocking immun...

Страница 6: ...own brand Low power consumption Compatible with Arduino IDE 1 5 4 or later user can program debug or upload sketch to the MCU via Arduino IDE Managed by Web GUI SSH via LAN or WiFi Software upgradable...

Страница 7: ...www dragino com LoRa Gateway User Manual Update 2017 02 21 7 44 1 6 Applications...

Страница 8: ...ifference between these models Model Photo Description LG01 P The most general version can be used as a LoRa Gateway LG01 S Include screw terminal which can connect to external sensors OLG01 Our door...

Страница 9: ...ect to its WiFi network At the first boot of LG01 it will auto generate an unsecure WiFi network call dragino2 xxxxxx User can use the laptop to connect to this WiFi network The laptop will get an IP...

Страница 10: ...IDE Below the way shows how to do program it 2 2 1 Download and configure Arduino IDE Download the latest Arduino Software IDE from Arduino official site https www arduino cc en Main Software Install...

Страница 11: ...1 11 44 After install Dragino s board info in the IDE we can see the boards info from the IDE as below screenshot For LG01 we should choose Arduino Uno Dragino Yun Note If user has trouble to install...

Страница 12: ...s Make sure your computer and the LG01 is in the same network if you already connect to the LG01 WiFi SSID then both devices are in the same WiFi network In the IDE select the correct port as below sc...

Страница 13: ...17 02 21 13 44 Check result The blink sketch will set the A2 pin of the MCU to periodically high and low This pin connects to the HEART LED of the LG01 So if successfully upload this sketch user can s...

Страница 14: ...duino Uno Or LoRa Server LG01 LoRa Client LG01 Above two combination will shows the same LoRa feature we provide different devices examples in LoRa Client which is for user convenient only 2 3 1 Insta...

Страница 15: ...nitor to monitor the LG01 status as below screenshot 2 3 3 Upload LoRa Client Sketch For LoRa Shield Arduino as LoRa Client Select the example from IDE File Examples Dragino LoRa LoRa_Simple_Client_Ar...

Страница 16: ...AP Mode Mesh WiFi Network USB Dial Up Mode USB Ethernet Mode Before setting network parameters user can set up the Display Net Connection under Web Network Internet Access for easily checking network...

Страница 17: ...Access Point and provide a WiFi AP network LG01 shares the internet to its AP network or LAN interface Diagram is as below Set Up in Web UI for General WiFi AP mode Network Internet Access Access Int...

Страница 18: ...AN port and WiFi AP network for other devices 3 4 WiFi Client Mode In the WiFi Client Mode Dragino acts as a WiFi client and gets DHCP from uplink router via WiFi It also shares the internet to its LA...

Страница 19: ...to get internet access from uplink router It also shares the internet to its Mesh Network for other Mesh Clients The Mesh Gateway also acts as a DHCP router for its mesh network Mesh Client Connects t...

Страница 20: ...Set Gateway to 255 255 255 255 Network Access Point Enable WiFi AP not necessary Can set same SSID in the mesh network Network Mesh Network Enable WiFi Mesh Network Input Mesh Group Note Mesh Device...

Страница 21: ...Gateway User Manual Update 2017 02 21 21 44 3 5 2 Mesh Client Set Up Network Internet Access Access Internet set to Disable Network LAN and DHCP Disable DHCP server in its LAN port and Set gateway po...

Страница 22: ...Enable WiFi AP not necessary can use same SSID or difference SSID with other mesh node Network Mesh Network Enable WiFi Mesh Network Input Mesh Group Note Mesh Device within same group can communicate...

Страница 23: ...User Manual Update 2017 02 21 23 44 3 6 USB Dial Up Modem Set Up Dragino USB interface can be used for GPRS 3G 4G connections Below are some set up examples WCDMA set up example 3G EV DO CDMA2000 Set...

Страница 24: ...outer feature Huawei Hilink dongles are a typical of these When user plug such dongle into computer it will auto connect to Internet and redirect to a web interface when plug such dongle into the MS14...

Страница 25: ...he inside Linux settings 4 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...

Страница 26: ...ke window to drag drop files to the LG01 or Edit the files directly in the windows Screenshot is as below 4 3 File System The LG01 has a 16MB flash and a 64MB RAM The var and tmp directory are in the...

Страница 27: ...no 169d30 opkg list shows the available packages root dragino 169d30 opkg install mosquitto client install MQTT client it will auto install the required packages Installing mosquitto client 1 3 5 1 to...

Страница 28: ...Linux Detail instruction of how to use the bridge library can be found in Arduino Bridge Library Due to hardware difference there are some points when we read and use the Bridge Examples from Arduino...

Страница 29: ...t the device the pressing time will determine which part is to be reset Pressing the toggle button the GLOBAL LED will blink release the button after 5 seconds device will reset the network setting an...

Страница 30: ...Image There are different method to upgrade as below 7 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 t...

Страница 31: ...a from DHT11 and send these data to LoRa Gateway when the Gateway get the data it will pass the data to the IoT server 9 1 2 Set up IoT Server account We choose ThingSpeak as the IoT server here first...

Страница 32: ...ep 2 Select the example from IDE File Examples Dragino IoTServer ThingSpeak dht11_client And upload this sketch to the LoRa Node Step 3 Select the example from IDE File Examples Dragino IoTServer Thin...

Страница 33: ...Set up Hardware Set up the hardware as below the LoRa Gateway will get command from IoT Server and then send the command to LoRa node the node control the relay state according to the receive command...

Страница 34: ...treamClient And upload this sketch to the LoRa Node Step 2 Select the example from IDE File Examples Dragino IoTServer ThingSpeak DownstreamServer Replace the talkback ID talkbackAPIKey with your info...

Страница 35: ...ateway the gateway will send back a join ack message with client id and add this client to the LoRa Network If the client gets its join ack message for its join request it will enter the mode to liste...

Страница 36: ...www dragino com LoRa Gateway User Manual Update 2017 02 21 36 44 9 4 More Examples Dragino keep updating examples in our wiki more examples please refer the link Dragino Examples Catalog...

Страница 37: ...upport The maximum support end node depends on how the communication how often between the end nodes and gateway In a lab testing using the simple LoRa example if the end nodes try to send data to the...

Страница 38: ...Can I make my own firmware for LG01 Where can I find the source code of LG01 Yes User can make own firmware for LG01 for branding purpose or add customized application The LG01 source code and compile...

Страница 39: ...some packages from Arduino IDE To solve this user can manually add Dragino profile Below is the step 1 Download the profile from https github com dragino Arduino Profile Examples 2 Unzip it and put t...

Страница 40: ...Try to access the LG01 via Web or SSH then check the IDE again If above still doesn t work SSH log in the LG01 and run etc init d avahi daemon restart to restart the service so IDE can detect the LG0...

Страница 41: ...afe mode Procedure is as below Use a RJ45 cable to connect the PC to LG01 s port directly Set the PC to ip 192 168 255 x netmask 255 255 255 0 Pressing the toggle button and power on the device All LE...

Страница 42: ...uency 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 with environmental protection paper box Dimension and w...

Страница 43: ...www dragino com LoRa Gateway User Manual Update 2017 02 21 43 44...

Страница 44: ...Ra Gateway official wiki More examples for LG01 LoRa Gateway Source code for LG01 LoRa Gateway https github com dragino openwrt bb 1407 OpenWrt official Wiki http www openwrt org Arduino Official Site...

Отзывы: