Wiki source code of Notes for LORIOT

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

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