Wiki source code of Notes for LORIOT

Version 18.1 by Xiaoling on 2022/05/24 18:01

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.7 9 (((
Xiaoling 1.2 10 The Dragino LoRaWAN gateway can commuicate with [[LORIOT>>url:https://www.loriot.io/]] LoRaWAN Network Server:
Xiaoling 1.4 11 )))
Xiaoling 1.7 12 )))
Xiaoling 1.1 13
Xiaoling 1.4 14 (((
Xiaoling 1.7 15 (((
Xiaoling 1.2 16 Below list the support products and Requirements:
Xiaoling 1.4 17 )))
Xiaoling 1.7 18 )))
Xiaoling 1.1 19
Xiaoling 1.4 20 1. (((
Xiaoling 1.7 21 (((
Xiaoling 1.4 22 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]]
23 )))
Xiaoling 1.7 24 )))
Xiaoling 1.4 25 1. (((
Xiaoling 1.7 26 (((
Xiaoling 1.4 27 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/]]
28 )))
Xiaoling 1.7 29 )))
Xiaoling 1.1 30
Xiaoling 1.4 31 = 2. Gateway Setup Instruction =
Xiaoling 1.1 32
Xiaoling 1.4 33 == 2.1 Step 1: Get Gateway ETH0 MAC Address ==
Xiaoling 1.1 34
Xiaoling 1.4 35 (((
Xiaoling 1.2 36 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 37 )))
Xiaoling 1.1 38
Xiaoling 4.2 39 [[image:image-20220524175559-2.png]]
Xiaoling 1.1 40
Xiaoling 1.2 41 Get ETH0 MAC address
Xiaoling 1.1 42
Xiaoling 1.4 43 (((
44 **Note**: To make set up more friendly, the ETH0 will show on the LORIOT page in a new firmware version.
45 )))
Xiaoling 1.1 46
Xiaoling 1.5 47 == 2.2 Step 2: Choose LORIOT service ==
Xiaoling 1.1 48
Xiaoling 7.2 49 [[image:image-20220524175626-3.png]]
Xiaoling 1.1 50
Xiaoling 1.2 51 Choose to use LORIOT as LoRaWAN service provider
Xiaoling 1.1 52
Xiaoling 7.2 53 [[image:image-20220524175646-4.png]]
Xiaoling 1.1 54
Xiaoling 1.2 55 Install and choose the LORIOT server to be used
56
Xiaoling 1.5 57 == 2.3 Step 3: Checking Connection Status ==
Xiaoling 1.2 58
Xiaoling 7.2 59 [[image:image-20220524175703-5.png]]
Xiaoling 1.2 60
61 Click to Home page and check the connection status
62
Xiaoling 1.5 63 == 2.4 Step 4: Setup Account in LORIOT ==
Xiaoling 1.2 64
65 Login [[LORIOT>>url:https://www.loriot.io/]] and create account
66
Xiaoling 9.2 67 [[image:image-20220524175722-6.png]]
Xiaoling 1.2 68
69 Log in LORIOT portal
70
71
Xiaoling 1.4 72 Choose to use the server same as the gateway setting
73
Xiaoling 9.2 74 [[image:image-20220524175734-7.png]]
Xiaoling 1.2 75
76 Choose server
77
78
Xiaoling 1.4 79 Create a New Network
80
Xiaoling 1.5 81 [[image:https://wiki.dragino.com/images/thumb/2/2f/LORIOT_7.png/600px-LORIOT_7.png||height="264" width="600"]]
Xiaoling 1.2 82
83 Create a New Network
84
85
Xiaoling 1.5 86 [[image:https://wiki.dragino.com/images/thumb/d/d8/LORIOT_8.png/600px-LORIOT_8.png||height="248" width="600"]]
87
Xiaoling 1.2 88 Create a New Network
89
Xiaoling 1.5 90 == 2.5 Step 5: Register the gateway ==
Xiaoling 1.2 91
Xiaoling 1.5 92 [[image:https://wiki.dragino.com/images/thumb/2/21/LORIOT_9.png/600px-LORIOT_9.png||height="166" width="600"]]
Xiaoling 1.2 93
94 Register the Gateway in LORIOT
95
96
97 Choose LG308 as gateway model
98
Xiaoling 1.5 99 [[image:https://wiki.dragino.com/images/thumb/a/aa/LORIOT_10.png/600px-LORIOT_10.png||height="231" width="600"]]
Xiaoling 1.2 100
101 Choose LG308 as gateway model
102
103
104 Input Gateway ETH0 address
105
Xiaoling 1.5 106 [[image:https://wiki.dragino.com/images/thumb/9/9c/LORIOT_11.png/600px-LORIOT_11.png||height="336" width="600"]]
Xiaoling 1.2 107
108 Choose SX1301 Reference and use SPI protocol
109
110
111 Choose the right Frequency Band and input location
112
113 [[~[~[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]]
114
115 Set up regional settings.
116
Xiaoling 1.5 117 == 2.6 Step 6: Check Connection ==
Xiaoling 1.2 118
Xiaoling 1.5 119 (((
Xiaoling 1.2 120 LORIOT will show disconnect if Gateway doesn't connect
Xiaoling 1.5 121 )))
Xiaoling 1.2 122
Xiaoling 1.5 123 (((
Xiaoling 1.2 124 LORIOT will show connect if Gateway connect to LORIOT ok.
Xiaoling 1.5 125 )))
Xiaoling 1.2 126
127 [[~[~[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]]
128
129 Status: Connected
130
Xiaoling 1.5 131 == 2.7 Debug If there is connection issue ==
Xiaoling 1.2 132
133 User can check if loriot is running by checking the web ui
134
Xiaoling 1.5 135 [[image:https://wiki.dragino.com/images/thumb/2/20/LORIOT_141.png/600px-LORIOT_141.png||height="277" width="600"]]
Xiaoling 1.2 136
137 Status: Connected
138
Xiaoling 1.11 139 (((
Xiaoling 1.2 140 If user want to see more log, he can run below commands in Linux and see the full log:
Xiaoling 1.11 141 )))
Xiaoling 1.2 142
Xiaoling 1.5 143 (% class="box" %)
144 (((
Xiaoling 1.8 145 (((
Xiaoling 1.11 146 ps | grep "loriot_dragino" | grep -v grep | awk '{print $1}' | xargs kill -s 9
147 /usr/bin/loriot_dragino_lg308_spi -f -s eu1.loriot.io
Xiaoling 1.5 148 )))
Xiaoling 1.8 149 )))
Xiaoling 1.2 150
Xiaoling 1.11 151 (((
Xiaoling 1.2 152 Above two commands will first kill the loriot process and run it again to get more output.
Xiaoling 1.11 153 )))
Xiaoling 1.2 154
Xiaoling 1.5 155 [[image:https://wiki.dragino.com/images/thumb/c/c2/LORIOT_142.png/600px-LORIOT_142.png||height="306" width="600"]]
Xiaoling 1.2 156
157 Get more debug info
158
Xiaoling 1.5 159 = 3. End Device Note =
Xiaoling 1.2 160
Xiaoling 1.5 161 == 3.1 Downlink Setup ==
Xiaoling 1.2 162
Xiaoling 1.5 163 [[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 164
Xiaoling 1.5 165 [[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 166
167 [[~[~[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]]
168
Xiaoling 1.5 169 [[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 170
Xiaoling 1.5 171 [[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 172
173 [[~[~[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]]
174
Xiaoling 1.5 175 [[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 176
Xiaoling 1.5 177 [[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"]]