www.dragino.com
Dragino Single Channel LoRa IoT Kit v2 User Manual ---2019-Jan-28 2 / 50
Index:
1 Overview ................................................................................................................ 4
1.1 What is Dragino Single Channel LoRa IoT Kit v2? ......................................... 4
1.2 What can you learn from the kit?................................................................. 4
1.3 What parts Dragino LoRa IoT v2 includes? ................................................... 5
2 Preparing ................................................................................................................ 6
2.1 Software for End Node ................................................................................. 6
2.1.1 Install Arduino IDE and CH340 driver................................................. 6
2.1.2 Install LoRa Library for Arduino .......................................................... 7
2.2 Prepare for LG01-N Gateway ........................................................................ 8
2.2.1 Configure LG01-N for internet connection. ....................................... 8
2.2.2 Download putty tool to access LG01-N via SSH ............................... 11
3 Example 1: Test a LoRaWAN network .................................................................. 12
3.1 Typology and Data Flow ............................................................................. 13
3.2 Create a gateway in TTN Server .................................................................. 14
3.3 Configure LG01-N Gateway ........................................................................ 16
3.3.1 Configure to connect to LoRaWAN server ....................................... 16
3.3.2 Configure LG01-N’s LoRa Radio frequency ...................................... 17
3.4 Create LoRa Shield End Node ..................................................................... 18
3.4.1 Hardware Connection ...................................................................... 18
3.4.2 Set up OTAA device in TTN and upload sketch to UNO ................... 18
3.4.3 Configure to connect to Cayenne Application Server ...................... 22
3.4.4 Use downlink message to control relay ........................................... 25
3.4.5 Test with Interrupt ........................................................................... 27
3.5 Create LoRa/GPS Shield End Node ............................................................. 28
3.5.1 Hardware connection ....................................................................... 28
3.5.2 Set up ABP device in TTN and upload software to UNO .................. 28
3.6 Conclusion and limitation ........................................................................... 32
3.6.1 Overview for the example ................................................................ 32
3.6.2 Limitations ........................................................................................ 34
4 Example 2: Test with a MQTT IoT Server ............................................................. 36
4.1 Typology and Data Flow ............................................................................. 36
4.2 Set up sensor channels in ThingSpeak ....................................................... 37
4.3 Simulate MQTT uplink via PC’s MQTT tool ................................................. 39
4.4 Try MQTT Publish with LG01-N Linux command ........................................ 40
4.5 Configure LG01-N Gateway ........................................................................ 41
4.5.1 Publish Logic ..................................................................................... 41
4.5.2 Configure LG01-N’s Radio frequency ............................................... 42
4.6 Create LoRa Shield End Node ..................................................................... 43
4.6.1 Hardware Connection ...................................................................... 43
4.6.2 Test with uplink ................................................................................ 44
4.6.3 Test with interrupt by flame detect ................................................. 45