Wiki source code of Notes for LORIOT

Version 1.6 by Xiaoling on 2022/05/16 16:58

Hide last authors
Xiaoling 1.4 1 (% class="wikigeneratedid" %)
Xiaoling 1.6 2 **~ Contents:**
Xiaoling 1.1 3
Xiaoling 1.6 4 {{toc/}}
Xiaoling 1.4 5
6 = 1. Introduction =
7
8 (((
Xiaoling 1.2 9 The Dragino LoRaWAN gateway can commuicate with [[LORIOT>>url:https://www.loriot.io/]] LoRaWAN Network Server:
Xiaoling 1.4 10 )))
Xiaoling 1.1 11
Xiaoling 1.4 12 (((
Xiaoling 1.2 13 Below list the support products and Requirements:
Xiaoling 1.4 14 )))
Xiaoling 1.1 15
Xiaoling 1.4 16 1. (((
17 LoRaWAN Gateway model: [[LPS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]], [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]]
18 )))
19 1. (((
20 Firmware version since :[[LG02_LG08~~-~~-build-v5.4.1590459021-20200526-1012>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]]
21 )))
Xiaoling 1.1 22
Xiaoling 1.4 23 = 2. Gateway Setup Instruction =
Xiaoling 1.1 24
Xiaoling 1.4 25 == 2.1 Step 1: Get Gateway ETH0 MAC Address ==
Xiaoling 1.1 26
Xiaoling 1.4 27 (((
Xiaoling 1.2 28 Dragino LoRaWAn gateway use ETH0 MAC address to generate Gateway ID to communicate with LORIOT, User can get the ETH0 MAC address from SSH access and run **ifconfig** command.
Xiaoling 1.4 29 )))
Xiaoling 1.1 30
Xiaoling 1.4 31 [[image:https://wiki.dragino.com/images/thumb/9/9d/LORIOT_1.png/600px-LORIOT_1.png||height="474" width="600"]]
Xiaoling 1.1 32
Xiaoling 1.2 33 Get ETH0 MAC address
Xiaoling 1.1 34
Xiaoling 1.4 35 (((
36 **Note**: To make set up more friendly, the ETH0 will show on the LORIOT page in a new firmware version.
37 )))
Xiaoling 1.1 38
Xiaoling 1.5 39 == 2.2 Step 2: Choose LORIOT service ==
Xiaoling 1.1 40
Xiaoling 1.5 41 [[image:https://wiki.dragino.com/images/thumb/d/de/LORIOT_2.png/600px-LORIOT_2.png||height="232" width="600"]]
Xiaoling 1.1 42
Xiaoling 1.2 43 Choose to use LORIOT as LoRaWAN service provider
Xiaoling 1.1 44
Xiaoling 1.5 45 [[image:https://wiki.dragino.com/images/thumb/d/d0/LORIOT_3.png/600px-LORIOT_3.png||height="123" width="600"]]
Xiaoling 1.1 46
Xiaoling 1.2 47 Install and choose the LORIOT server to be used
48
Xiaoling 1.5 49 == 2.3 Step 3: Checking Connection Status ==
Xiaoling 1.2 50
Xiaoling 1.5 51 [[image:https://wiki.dragino.com/images/thumb/a/ae/LORIOT_4.png/600px-LORIOT_4.png||height="301" width="600"]]
Xiaoling 1.2 52
53 Click to Home page and check the connection status
54
Xiaoling 1.5 55 == 2.4 Step 4: Setup Account in LORIOT ==
Xiaoling 1.2 56
57 Login [[LORIOT>>url:https://www.loriot.io/]] and create account
58
Xiaoling 1.5 59 [[image:https://wiki.dragino.com/images/thumb/d/df/LORIOT_5.png/600px-LORIOT_5.png||height="298" width="600"]]
Xiaoling 1.2 60
61 Log in LORIOT portal
62
63
Xiaoling 1.4 64 Choose to use the server same as the gateway setting
65
Xiaoling 1.5 66 [[image:https://wiki.dragino.com/images/thumb/8/82/LORIOT_6.png/600px-LORIOT_6.png||height="248" width="600"]]
Xiaoling 1.2 67
68 Choose server
69
70
Xiaoling 1.4 71 Create a New Network
72
Xiaoling 1.5 73 [[image:https://wiki.dragino.com/images/thumb/2/2f/LORIOT_7.png/600px-LORIOT_7.png||height="264" width="600"]]
Xiaoling 1.2 74
75 Create a New Network
76
77
Xiaoling 1.5 78 [[image:https://wiki.dragino.com/images/thumb/d/d8/LORIOT_8.png/600px-LORIOT_8.png||height="248" width="600"]]
79
Xiaoling 1.2 80 Create a New Network
81
Xiaoling 1.5 82 == 2.5 Step 5: Register the gateway ==
Xiaoling 1.2 83
Xiaoling 1.5 84 [[image:https://wiki.dragino.com/images/thumb/2/21/LORIOT_9.png/600px-LORIOT_9.png||height="166" width="600"]]
Xiaoling 1.2 85
86 Register the Gateway in LORIOT
87
88
89 Choose LG308 as gateway model
90
Xiaoling 1.5 91 [[image:https://wiki.dragino.com/images/thumb/a/aa/LORIOT_10.png/600px-LORIOT_10.png||height="231" width="600"]]
Xiaoling 1.2 92
93 Choose LG308 as gateway model
94
95
96 Input Gateway ETH0 address
97
Xiaoling 1.5 98 [[image:https://wiki.dragino.com/images/thumb/9/9c/LORIOT_11.png/600px-LORIOT_11.png||height="336" width="600"]]
Xiaoling 1.2 99
100 Choose SX1301 Reference and use SPI protocol
101
102
103 Choose the right Frequency Band and input location
104
105 [[~[~[image:https://wiki.dragino.com/images/thumb/8/8e/LORIOT_12.png/600px-LORIOT_12.png~|~|height="284" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LORIOT_12.png]]
106
107 Set up regional settings.
108
Xiaoling 1.5 109 == 2.6 Step 6: Check Connection ==
Xiaoling 1.2 110
Xiaoling 1.5 111 (((
Xiaoling 1.2 112 LORIOT will show disconnect if Gateway doesn't connect
Xiaoling 1.5 113 )))
Xiaoling 1.2 114
Xiaoling 1.5 115 (((
Xiaoling 1.2 116 LORIOT will show connect if Gateway connect to LORIOT ok.
Xiaoling 1.5 117 )))
Xiaoling 1.2 118
119 [[~[~[image:https://wiki.dragino.com/images/thumb/a/a0/LORIOT_14.png/600px-LORIOT_14.png~|~|height="275" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LORIOT_14.png]]
120
121 Status: Connected
122
Xiaoling 1.5 123 == 2.7 Debug If there is connection issue ==
Xiaoling 1.2 124
125 User can check if loriot is running by checking the web ui
126
Xiaoling 1.5 127 [[image:https://wiki.dragino.com/images/thumb/2/20/LORIOT_141.png/600px-LORIOT_141.png||height="277" width="600"]]
Xiaoling 1.2 128
129 Status: Connected
130
131 If user want to see more log, he can run below commands in Linux and see the full log:
132
Xiaoling 1.5 133 (% class="box" %)
134 (((
135 ps | grep "loriot_dragino" | grep -v grep | awk '{print $1}' | xargs kill -s 9
Xiaoling 1.2 136 /usr/bin/loriot_dragino_lg308_spi -f -s eu1.loriot.io
Xiaoling 1.5 137 )))
Xiaoling 1.2 138
139 Above two commands will first kill the loriot process and run it again to get more output.
140
Xiaoling 1.5 141 [[image:https://wiki.dragino.com/images/thumb/c/c2/LORIOT_142.png/600px-LORIOT_142.png||height="306" width="600"]]
Xiaoling 1.2 142
143 Get more debug info
144
Xiaoling 1.5 145 = 3. End Device Note =
Xiaoling 1.2 146
Xiaoling 1.5 147 == 3.1 Downlink Setup ==
Xiaoling 1.2 148
Xiaoling 1.5 149 [[image:https://wiki.dragino.com/images/thumb/9/92/LORIOT_Down_1.png/600px-LORIOT_Down_1.png||alt="LORIOT Down 1.png" height="275" width="600"]]
Xiaoling 1.2 150
Xiaoling 1.5 151 [[image:https://wiki.dragino.com/images/thumb/9/90/LORIOT_Down_2.png/600px-LORIOT_Down_2.png||alt="LORIOT Down 2.png" height="295" width="600"]]
Xiaoling 1.2 152
153 [[~[~[image:https://wiki.dragino.com/images/thumb/4/4f/LORIOT_Down_3.png/600px-LORIOT_Down_3.png~|~|alt="LORIOT Down 3.png" height="207" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LORIOT_Down_3.png]]
154
Xiaoling 1.5 155 [[image:https://wiki.dragino.com/images/thumb/9/91/LORIOT_Down_4.png/600px-LORIOT_Down_4.png||alt="LORIOT Down 4.png" height="198" width="600"]]
Xiaoling 1.2 156
Xiaoling 1.5 157 [[image:https://wiki.dragino.com/images/thumb/8/8d/LORIOT_Down_5.png/600px-LORIOT_Down_5.png||alt="LORIOT Down 5.png" height="267" width="600"]]
Xiaoling 1.2 158
159 [[~[~[image:https://wiki.dragino.com/images/thumb/1/11/LORIOT_Down_6.png/600px-LORIOT_Down_6.png~|~|alt="LORIOT Down 6.png" height="120" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:LORIOT_Down_6.png]]
160
Xiaoling 1.5 161 [[image:https://wiki.dragino.com/images/thumb/9/95/LORIOT_Down_7.png/600px-LORIOT_Down_7.png||alt="LORIOT Down 7.png" height="158" width="600"]]
Xiaoling 1.2 162
Xiaoling 1.5 163 [[image:https://wiki.dragino.com/images/thumb/5/57/LORIOT_Down_8.png/600px-LORIOT_Down_8.png||alt="LORIOT Down 8.png" height="210" width="600"]]