Wiki source code of LoRaWAN IoT Kit v3 User Manual

Version 37.1 by Kilight Cao on 2023/07/18 16:14

Hide last authors
Xiaoling 6.2 1 (% style="text-align:center" %)
2 [[image:1669017918121-199.png||height="359" width="358"]]
3
4
Xiaoling 31.3 5 **Table of Contents:**
Xiaoling 6.2 6
Xiaoling 31.3 7 {{toc/}}
Xiaoling 6.2 8
9
10
11
12
13 = 1. Overview =
14
15 == 1.1 What is Dragino LoRaWAN IoT Kit v3? ==
16
17
18 (((
19 (% style="color:blue" %)**Dragino LoRaWAN IoT Kit v3**(%%) is designed to facilitate beginners and developers to quickly learn and demonstrate LoRa/LoRaWAN and IoT technology. It helps users to turn the idea into a practical application and make the Internet of Things a reality.
20 )))
21
22 (((
23 The LoRaWAN IoT Kit v3 can be used to evaluate the multi-channel LoRaWAN solution and single-channel private LoRa solution. Users can also use LoRaWAN IoT Kit v3 to test different network structure solutions and find the best for their IoT solution.
24 )))
25
26 (((
27 The LoRaWAN IoT kit v3 (% style="color:blue" %)**shows how to build a LoRaWAN network**(%%), and (% style="color:blue" %)**how to use the network to send data from a LoRa sensor node to the cloud server.** (%%)Depends on the actually use environment, the LoRaWAN gateway will connect your other LoRa nodes up to 500 ~~ 5,000 meters.
28 )))
29
30
31 == 1.2 Features ==
32
33 * Open Source LoRa/LoRaWAN kits
34
35 * Support multi-channels LoRaWAN and Single-Channel LoRa
36
37 * Support various network structures
38
Xiaoling 31.3 39
Xiaoling 6.2 40 == 1.3 What can you learn from the kit? ==
41
42
43 (% style="color:blue" %)**The goals through this LoRaWAN IoT kit v3**:
44
45 * Understand the structure of an Internet of Things network, and how does an IoT network works
46
47 * Learn coding method for Arduino micro controller
48
49 * Learn some common sensors.
50
51 * Learn some basic commands for Linux
52
53 * Learn about LoRaWAN and how to set up a LoRaWAN network.
54
55 * Learn about Node-Red and how to set up it as IoT server and plot data.
56
57 * Learn different way to connect LoRaWAN network to IoT Server and compare their advantages / disadvantages.
58
Xiaoling 31.3 59
Xiaoling 6.2 60 == 1.4 What parts Dragino LoRa IoT v3 includes? ==
61
62
63
Kilight Cao 37.1 64 [[image:image-20230718161437-3.png]]
Xiaoling 6.2 65
66
67 (% style="color:blue" %)**LoRaWAN IoT Kit v3 Packing List**:
68
69 * [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] LoRaWAN Gateway
70
71 * [[LA66 LoRaWAN Shield>>url:https://www.dragino.com/products/lora/item/231-la66-lorawan-shield.html]] for Arduino
72
73 * [[LA66 USB LoRaWAN Adapter>>url:https://www.dragino.com/products/lora/item/232-la66-usb-lorawan-adapter.html]] for PC/Mobile/RPi
74
75 * 1 x DHT11 Temperature & Humidity Sensor
76
77 * 1 x RGB LED
78
79 * 20 x dupont cable (male to male)
80
81 * 20 x dupont cable (female to female)
82
83 * 20 x dupont cable (male to female)
84
Xiaoling 31.3 85
Xiaoling 6.2 86 = 2. Example 1: Test a LoRaWAN network =
87
88
89 This example describes how to use LPS8v2, LA66 Shield & LA66 USB to set up a LoRaWAN network and connect it to [[TTNv3 LoRaWAN Server>>url:https://accounts.thethingsindustries.com/]]. It also shows how to use external application server to monitor / manage the LoRa Nodes.
90
91 The network structure of this example is as below.
92
93
94 [[image:1669019691933-772.png]]
95
96
Xiaoling 31.3 97
Xiaoling 6.2 98 (% style="color:blue" %)**STEPS:**
99
100 ~1. Register LPS8v2 gateway to TTN so provide a LoRaWAN coverage. See section “[[Gateway Registration for Semtech UDP ~~-~~-~> Primary LoRaWAN Server>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20TTN/#H2.A0GatewayRegistrationforSemtechUDP]]” 
101
102 2. Register LA66 Shield to TTN and uplink Temperature to TTN. See section “[[Example: Log Temperature Sensor(DHT11) and send data to TTN, show it in Node-RED>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/#H1.7A0Example:LogTemperatureSensor28DHT1129andsenddatatoTTN2CshowitinNode-RED.]].”
103
104 3. Register LA66 USB to TTN and track people location. See “[[Example: Use of LA66 USB LoRaWAN Adapter and mobile APP>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.9A0Example:UseofA0LA66USBLoRaWANAdapterandmobileAPP]]”
105
106
Xiaoling 31.3 107
Xiaoling 6.2 108 (% style="color:blue" %)**Result:**
109
110 [[image:1669019732684-677.png]]
111
112
113 = 3. Example 2: Test Built-In LoRaWAN Server =
114
Xiaoling 16.2 115
Xiaoling 6.2 116 This example describes how to use LPS8v2, LA66 Shield & LA66 USB to set up a LoRaWAN network and connect it to built-in LoRaWAN Server in. It also shows how to use external application server to monitor / manage the LoRa Nodes.
117
118
Xiaoling 16.2 119 [[image:1669019757521-444.png]]
120
121
Xiaoling 6.2 122 This example is almost the same as Example1, the difference is that this example use the built-in LoRaWAN server (TTNv3 Stack) in LPS8v2. While Example 1 use the public TTN server.
123
124 TTN v3 stack has the same configure method as the public TTN server. When user test example 2 here. User need to log in the TTNv3 stack in LPS8v2 as per below:
125
Xiaoling 33.3 126 **Input URL( (% style="background-color:yellow" %)//__http:~/~/<hostname>:8080 or http:~/~/<local-IPV4-address>__//(%%)__ __) in your browser.**
Xiaoling 6.2 127
Xiaoling 33.3 128 **Such as  (% style="background-color:yellow" %)//__http:~/~/dragino-54ff12:8080  or http:~/~/<Local-IPV4-Address>__//(%%)**
Xiaoling 6.2 129
130
131 (% style="color:blue" %)**Login account:**
132
Xiaoling 33.3 133 **User ID:  (% style="background-color:yellow" %)admin(%%)**
Xiaoling 6.2 134
Xiaoling 33.3 135 **Password:  (% style="background-color:yellow" %)dragino(%%)**
Xiaoling 6.2 136
Xiaoling 16.2 137 [[image:1669019821266-501.png]]
Xiaoling 6.2 138
139
140 = 4. Example 3: Test Built-in LoRaWAN server and Application server =
141
Xiaoling 16.2 142
Xiaoling 6.2 143 This example describes how to use LPS8v2, LA66 Shield & LA66 USB to set up a LoRaWAN network and connect it to built-in LoRaWAN Server in. It also shows how to use external application server to monitor / manage the LoRa Nodes.
144
145
Xiaoling 16.2 146 [[image:1669019855783-448.png]]
Xiaoling 6.2 147
Xiaoling 16.2 148
Xiaoling 6.2 149 This example is quite similiar as Example2, the difference is that this example use the built-in Application server (Node-Red) in LPS8v2. While Example 2 use the public Node-Red
150
151 Below is the Node-Red access instruction of LPS8v2:
152
Xiaoling 16.2 153 You can access the gateway's built-in AS server of Node-Red via the **URL(__http:~/~/<hostname>:1880 or http:~/~/<local-IPV4-address>__)** in your browser.
Xiaoling 6.2 154
Xiaoling 16.2 155 **Such as __http:~/~/dragino-54ff12:1880  or [[http:~~/~~/<Local-IPV4-Address~>>>http://<Local-IPV4-Address>]]__**
Xiaoling 6.2 156
157
Xiaoling 16.2 158 [[image:1669019884655-805.png]]
Xiaoling 6.2 159
160
161 = 5. Example 4: Peer to Peer Test on end node =
162
Xiaoling 16.2 163
Xiaoling 6.2 164 This example describes how to test peer to peer communicate between LoRa End Node.
165
166
Xiaoling 16.2 167 [[image:1669019964124-630.png]]
168
169
Xiaoling 6.2 170 In this example, the end nodes LA66 Shield and LA66 USB are not use LoRaWAN protocol. Users need to flash them with the firmware support private LoRa.
171
Xiaoling 31.4 172 * (% style="color:blue" %)**Software Location:**(%%)**  [[LA66 Peer to Peer firmware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/Instruction%20for%20LA66%20Peer%20to%20Peer%20firmware/]]**
Xiaoling 6.2 173
Xiaoling 31.4 174 * (% style="color:blue" %)**How to Flash Firmware:  **(%%)** [[For LA66 Shield>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/#H1.9A0UpgradeFirmwareofLA66LoRaWANShield]] , For [[LA66 USB>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.10A0UpgradeFirmwareofLA66USBLoRaWANAdapter]].**
Xiaoling 6.2 175
176 This example will show how to get Temperature sensor value from LA66 Shield and send it to LA66 USB. LA66 USB is connected to mobile phone. So user can see the temperature value in mobile phone directly . User can also send message from mobile phone to LA66 to control the RGB LED.
177
178
179 == 5.1 Set Up LA66 Shield + UNO ==
180
181 === 5.1.1 Set up LA66 Module ===
182
Xiaoling 16.2 183
Kilight Cao 32.1 184 LA66 Module is loaded with the firmware **[[LA66 Peer to Peer firmware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/Instruction%20for%20LA66%20Peer%20to%20Peer%20firmware/]]** and user can use AT Command to set up LA66 with below parameters:
Xiaoling 6.2 185
Kilight Cao 33.1 186 (% class="box infomessage" %)
187 (((
188 (% style="color:#037691" %)**AT+FRE=904.100,904.100   ** (%%) ~-~->  TX and RX frequency set: 9041100000
Xiaoling 6.2 189
Kilight Cao 33.1 190 (% style="color:#037691" %)**AT+BW=0,0 ** (%%) ~-~->  TX and RX Bandwidth set: 125kHz
Xiaoling 6.2 191
Kilight Cao 33.1 192 (% style="color:#037691" %)**AT+SF=12,12    ** (%%) ~-~->  TX and RX Spreading Factor set: SF10
Xiaoling 6.2 193
Kilight Cao 33.1 194 (% style="color:#037691" %)**AT+CRC=1,1  ** (%%) ~-~->  0: CRC OFF ,1: CRC ON
Xiaoling 6.2 195
Kilight Cao 33.1 196 (% style="color:#037691" %)**AT+HEADER=0,0**       (%%) ~-~->  Header Type: explicit, explicit
Xiaoling 6.2 197
Kilight Cao 33.1 198 (% style="color:#037691" %)**AT+CR=1,1  ** (%%) ~-~->  CR: 4/5, 4/5
Xiaoling 6.2 199
Kilight Cao 33.1 200 (% style="color:#037691" %)**AT+IQ=0,0**        (%%) ~-~->  Invert IQ: 0,0
Xiaoling 6.2 201
Kilight Cao 33.1 202 (% style="color:#037691" %)**AT+PREAMBLE=8,8  ** (%%) ~-~->  TX and RX Preamble Length set: 8
Xiaoling 6.2 203
Kilight Cao 33.1 204 (% style="color:#037691" %)**AT+SYNCWORD=0**     (%%) ~-~->  Syncword**(0: private,1: public)**
Xiaoling 6.2 205
Kilight Cao 33.1 206 (% style="color:#037691" %)**AT+RXMOD=6,0   ** (%%) ~-~->  Rx Timeout and Reply mode
207 )))
Xiaoling 6.2 208
Xiaoling 33.2 209
Xiaoling 6.2 210 === 5.1.2 Hardware Connection ===
211
212
Xiaoling 16.2 213 [[image:1669020260360-253.png]]
Xiaoling 6.2 214
215
Xiaoling 16.2 216 There is a sensor DHT11 (Temperature & Humidity sensor) and LED RGB connected to LA66 Shield + UNO. Please use the connection as we show in the photo.
Xiaoling 6.2 217
Xiaoling 16.2 218
Xiaoling 6.2 219 === 5.1.3 Set up Arduino UNO ===
220
Xiaoling 16.2 221
Kilight Cao 32.1 222 The sketch for this example is **[[Log-Temperature-Sensor-and- Control-RBG-LED.ino>>url:https://www.dropbox.com/sh/r5l3h5fhifrqbxn/AACgNoQ-aYnvWOxGwUDWxNlFa?dl=0]]**
Xiaoling 6.2 223
224
Xiaoling 16.2 225 (% style="color:blue" %)**Upload the code to UNO:**
Xiaoling 6.2 226
Xiaoling 16.2 227 [[image:1669020288319-334.png]]
Xiaoling 6.2 228
229
230
Xiaoling 16.2 231 (% style="color:blue" %)**Check the LA66 Shield data:**
Xiaoling 6.2 232
Xiaoling 16.2 233 [[image:1669020309356-484.png]]
234
235
Xiaoling 6.2 236 == 5.2 Set Up LA66 USB ==
237
Xiaoling 16.2 238
Kilight Cao 32.1 239 LA66 USB is loaded with the firmware **[[LA66 Peer to Peer firmware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/Instruction%20for%20LA66%20Peer%20to%20Peer%20firmware/]]** and user can use AT Command to set up LA66 USB with below parameters:
Xiaoling 6.2 240
Kilight Cao 33.1 241 (% class="box infomessage" %)
242 (((
Xiaoling 16.2 243 (% style="color:#037691" %)**AT+FRE=904.100,904.100**(%%)  ~-~->  TX and RX frequency set: 904100000 
Xiaoling 6.2 244
Xiaoling 16.2 245 (% style="color:#037691" %)**AT+BW=0,0**    (%%) ~-~->  TX and RX Bandwidth set: 125kHz
Xiaoling 6.2 246
Xiaoling 16.2 247 (% style="color:#037691" %)**AT+SF=10,10**  (%%) ~-~->  TX and RX Spreading Factor set: SF10 
Xiaoling 6.2 248
Xiaoling 16.2 249 (% style="color:#037691" %)**AT+CRC=1,1** (%%) ~-~->  0: CRC OFF ,1: CRC ON
Xiaoling 6.2 250
Xiaoling 16.2 251 (% style="color:#037691" %)**AT+HEADER=0,0**  (%%) ~-~->  Header Type: explicit, explicit
Xiaoling 6.2 252
Xiaoling 16.2 253 (% style="color:#037691" %)**AT+CR=1,1**   (%%) ~-~->  CR: 4/5, 4/5
Xiaoling 6.2 254
Xiaoling 16.2 255 (% style="color:#037691" %)**AT+IQ=0,0**    (%%) ~-~->  Invert IQ: 0,0
Xiaoling 6.2 256
Xiaoling 16.2 257 (% style="color:#037691" %)**AT+PREAMBLE=8,8**  (%%) ~-~->  TX and RX Preamble Length set: 8
Xiaoling 6.2 258
Xiaoling 16.2 259 (% style="color:#037691" %)**AT+SYNCWORD=0**   (%%) ~-~->  Syncword**(0: private,1: public)**
Xiaoling 6.2 260
Xiaoling 16.2 261 (% style="color:#037691" %)**AT+RXMOD=65535,0**  (%%) ~-~->  Set the receive mode
Xiaoling 6.2 262
Xiaoling 16.2 263 (% style="color:#037691" %)**AT+RXDAFORM=1**  (%%) ~-~->  ASCII to string
Kilight Cao 33.1 264 )))
Xiaoling 6.2 265
266 Users using USB to Type-C adapter is needed to connect to a Mobile phone, Users need to download the USB Serial APP in their phones.
267
Kilight Cao 32.1 268 For example, **[[USB Serial Console>>url:https://play.google.com/store/apps/details?id=jp.sugnakys.usbserialconsole]]** (Android Version Only)
Xiaoling 6.2 269
270
Xiaoling 16.2 271 [[image:1669020888886-358.png]]
Xiaoling 6.2 272
273
274 The serial port configuration for LA66 USB is as follows:
275
Xiaoling 23.2 276 [[image:1669021003598-788.png]] [[image:1669021009003-965.png]]
Xiaoling 6.2 277
Xiaoling 23.2 278 (% style="display:none" %) (%%)
Xiaoling 6.2 279
280 == 5.3 Test result ==
281
Xiaoling 23.2 282
Xiaoling 6.2 283 Users can view the temperature and humidity information received by LA66 USB in the mobile APP
284
Xiaoling 31.2 285 [[image:1669021002246-577.png]] [[image:1669021002645-501.png]]
Xiaoling 6.2 286
287 Send a message to the LA66 USB control LA66 Shield + UNO external RBG LED through the mobile phone:
288
289
Xiaoling 31.4 290 For example, if you send (% style="color:blue" %)**AT+SEND=1,000101,2,0**(%%) the RBG LED will light up red.
Xiaoling 6.2 291
Xiaoling 31.2 292 [[image:1669021075655-472.png]]
Xiaoling 6.2 293
294
Xiaoling 23.2 295 [[image:1669021098924-484.png]]
Xiaoling 6.2 296
297
Xiaoling 31.2 298 = 6. Example 5: Peer to Peer Test and plot the data in LPS8v2 =
Xiaoling 23.2 299
300
Xiaoling 6.2 301 This example describes how to test peer to peer communicate between LoRa End Node and LoRa Gateway.
302
303
Xiaoling 31.2 304 [[image:1669021294907-277.png]]
305
306
Xiaoling 6.2 307 In this example, the end nodes LA66 Shield and LA66 USB are not use LoRaWAN protocol. Users need to flash them with the firmware support private LoRa.
308
Xiaoling 31.2 309 * (% style="color:blue" %)**Software Location**(%%)**: [[LA66 Peer to Peer firmware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/Instruction%20for%20LA66%20Peer%20to%20Peer%20firmware/]]**
Xiaoling 6.2 310
Xiaoling 31.2 311 * (% style="color:blue" %)**How to Flash Firmware**(%%)**: [[For LA66 Shield>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/#H1.9A0UpgradeFirmwareofLA66LoRaWANShield]] , For [[LA66 USB>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.10A0UpgradeFirmwareofLA66USBLoRaWANAdapter]].**
Xiaoling 6.2 312
313 This example will show how to get Temperature sensor value from LA66 Shield and send it to LA66 USB. LA66 USB is connected to LPS8v2. LPS8v2 will receive the data from LA66 USB and plot the data in the built-in Node-Red server.
314
315 (% style="color:red" %)**Notice:**
316
Xiaoling 31.3 317 1. LPS8v2 has LoRaWAN concentrator which doesn't do anything in this example. This example doesn't need this SX1302 concentrator.
318
Kilight Cao 32.1 319 2. For mass deployment, user can use the LG01v2 instead of LPS8v2+LA66 USB. LG01v2 already include LA66 module inside.
Xiaoling 6.2 320
Kilight Cao 32.1 321 Use can check **[[THIS LINK>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/LG01v2/#H5.2Example:LG01v2]]** for an instruction of this example. In the link it uses LG01v2 as example, the use for LPS8v2+LA66 USB is the same as LG01v2.
Xiaoling 6.2 322
323
324 = 7. Example 6: Limited LoRaWAN relay =
325
326
327 This example describes a limited LoRaWAN relay method with the use of LA66 module.
328
329
Xiaoling 31.2 330 [[image:1669021378154-590.png]]
Xiaoling 6.2 331
332
333 In this example, the end nodes LA66 Shield and LA66 USB are not use LoRaWAN protocol. Users need to flash them with the firmware support private LoRa.
334
Xiaoling 31.2 335 * (% style="color:blue" %)**Software Location**(%%): **[[LA66 USB use LoRaWAN firmware>>url:https://www.dropbox.com/sh/els49fz9rd6fu1y/AAAt-kKIvXu1ZOK0hWysq97na?dl=0]], [[LA66 Shield use Point to Point firmware>>url:https://www.dropbox.com/sh/els49fz9rd6fu1y/AAAt-kKIvXu1ZOK0hWysq97na?dl=0]].**
Xiaoling 6.2 336
Xiaoling 31.2 337 * (% style="color:blue" %)**How to Flash Firmware**(%%):  **[[For LA66 Shield>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/#H1.9A0UpgradeFirmwareofLA66LoRaWANShield]] , For [[LA66 USB>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.10A0UpgradeFirmwareofLA66USBLoRaWANAdapter]].**
Xiaoling 6.2 338
Xiaoling 31.2 339 (% style="color:red" %)**Note: LA66 USB use a LoRaWAN version firmware and user need to set it to work in fix frequency, fix DR and ABP mode. LA66 already register to TTNv3 in ABP mode.**
Xiaoling 6.2 340
341
342 == 7.1 Set up LA66 USB ==
343
Xiaoling 31.2 344
Kilight Cao 32.1 345 LA66 USB is loaded with the firmware **[[LA66 USB use LoRaWAN firmware>>url:https://www.dropbox.com/sh/els49fz9rd6fu1y/AAAt-kKIvXu1ZOK0hWysq97na?dl=0]]** and user can use AT Command to set up LA66 with below parameters:
Xiaoling 33.2 346
Kilight Cao 33.1 347 (% class="box infomessage" %)
348 (((
Xiaoling 31.2 349 (% style="color:#037691" %)**AT+CHS=904100000** (%%) ~-~->  Fix frequency
Xiaoling 6.2 350
Xiaoling 31.2 351 (% style="color:#037691" %)**AT+NJM=0  ** (%%) ~-~->  Set the ABP mode
Xiaoling 6.2 352
Xiaoling 31.2 353 (% style="color:#037691" %)**AT+ADR=0**   (%%) ~-~->  Close ADR
Xiaoling 6.2 354
Xiaoling 31.2 355 (% style="color:#037691" %)**AT+DR=0 ** (%%) ~-~->  Fix DR=0
Kilight Cao 33.1 356 )))
Xiaoling 33.2 357
Xiaoling 6.2 358 Set up LA66 USB t work in ABP mode, use fix frequency(904100000) and fix DR0(SF10) to transmit data.
359
360
361 == 7.2 Set up LA66 Shield ==
362
Xiaoling 31.2 363
Kilight Cao 32.1 364 LA66 Shield is loaded with the firmware **[[LA66 Shield use Point to Point firmware>>url:https://www.dropbox.com/sh/els49fz9rd6fu1y/AAAt-kKIvXu1ZOK0hWysq97na?dl=0]]**, LA66 Shield as Relay needs to be configured as follows:
Xiaoling 33.2 365
Kilight Cao 33.1 366 (% class="box infomessage" %)
367 (((
Xiaoling 31.2 368 (% style="color:#037691" %)**AT+FRE=904.100,904.100**(%%)  ~-~-> TX and RX frequency set: 904100000 
Xiaoling 6.2 369
Xiaoling 31.2 370 (% style="color:#037691" %)**AT+BW=0,0**(%%)  ~-~-> TX and RX Bandwidth set: 125kHz
Xiaoling 6.2 371
Xiaoling 31.2 372 (% style="color:#037691" %)**AT+SF=10,10**(%%)  ~-~-> TX and RX Spreading Factor set: SF10(corresponding toDR=0)
Xiaoling 6.2 373
Xiaoling 31.2 374 (% style="color:#037691" %)**AT+CRC=1,1**(%%)  ~-~-> 0: CRC OFF ,1: CRC ON
Xiaoling 6.2 375
Xiaoling 31.2 376 (% style="color:#037691" %)**AT+HEADER=0,0**(%%)  ~-~-> Header Type: explicit, explicit
Xiaoling 6.2 377
Xiaoling 31.2 378 (% style="color:#037691" %)**AT+CR=1,1**(%%)  ~-~-> CR: 4/5, 4/5
Xiaoling 6.2 379
Xiaoling 31.2 380 (% style="color:#037691" %)**AT+IQ=0,0**(%%)  ~-~-> Invert IQ: 0,0
Xiaoling 6.2 381
Xiaoling 31.2 382 (% style="color:#037691" %)**AT+PREAMBLE=8,8**(%%)  ~-~-> TX and RX Preamble Length set: 8
Xiaoling 6.2 383
Xiaoling 31.2 384 (% style="color:#037691" %)**AT+SYNCWORD=1**(%%)  ~-~-> Syncword**(0: private,1: public)**
Xiaoling 6.2 385
Xiaoling 31.2 386 (% style="color:#037691" %)**AT+RXMOD=65535,1 **(%%) ~-~-> Set the Relay mode
Xiaoling 6.2 387
Xiaoling 31.2 388 (% style="color:#037691" %)**AT+WAITTIME=1000**(%%)  ~-~-> Relay wait time 1000ms
Kilight Cao 33.1 389 )))
Xiaoling 6.2 390
Xiaoling 33.2 391
Xiaoling 6.2 392 == 7.3 Uplink test ==
393
394
Xiaoling 31.2 395 Users can connect to the LA66 USB using the serial port tool and enter the (% style="color:blue" %)**AT command: AT+SENDB=01,02,8,05820802581ea0a5**
Xiaoling 6.2 396
Xiaoling 31.2 397 (% style="color:#037691" %)**Command format:  AT+SENDB=<confirn_status>,<Fport>,<data_len>,<data>**
Xiaoling 6.2 398
Xiaoling 31.2 399 [[image:1669021802668-328.png]]
Xiaoling 6.2 400
Xiaoling 31.2 401
Kilight Cao 32.1 402 In addition, users can also access LA66 USB using the mobile app **[[Download Link for Android apk >>url:https://www.dropbox.com/sh/zxwx16qb777uvkz/AABE_P8coGCQ4DAC8enH4bUya?dl=0]]** (Android Version Only)
Xiaoling 6.2 403
Xiaoling 31.2 404 [[image:1669021860044-222.png]]
Xiaoling 6.2 405
406
407 == 7.4 Test result ==
408
Xiaoling 31.2 409
Xiaoling 6.2 410 See two duplicate messages on Gateway Traffic.
411
Xiaoling 31.2 412 [[image:1669021878786-276.png]]
Xiaoling 6.2 413
414
Xiaoling 31.2 415
Xiaoling 6.2 416 Bring LA66 USB and walk to a remote location to get the max distance. At this point,RSSi=-134 SNR=13.8, Go back 100 meters and put the LA66 Shield (Relay) in the location, Due to the following examples, there may be errors in the test in the urban area.
417
Xiaoling 31.2 418 [[image:1669021889556-608.png]]
Xiaoling 6.2 419
420
421
Xiaoling 31.2 422 Without Relay, the LA66 USB can reach about 833meters.
Xiaoling 6.2 423
Xiaoling 31.2 424 [[image:1669021903207-809.png]]
Xiaoling 6.2 425
426
427
Xiaoling 31.2 428 With Relay, the LA66 USB can reach around 2km.
Xiaoling 6.2 429
Xiaoling 31.2 430 [[image:1669021922274-909.png]]
Xiaoling 6.2 431
432
Xiaoling 34.2 433 == 7.5 Limited of using LA66 as relay of LoRaWAN ==
Edwin Chen 34.1 434
Xiaoling 34.2 435
Edwin Chen 34.1 436 LA66 is a LoRa End Node module base on SX1262 core. Use it as relay as mentioned above has below limitation:
437
438 1. It only supports LoRa radio with fix frequency, fix DR (Spreading Factor) , Fix bandwidth and
439 1. This method only support uplinks. It doesn;t work for LoRaWAN Downlink.
440 1. Capacity depends on how often the end nodes sends send uplinks. The LA66 needs to spends around 1~~3 seconds to relay one packet ( depends on DR. inlcudes RX and TX time).
441
442
Xiaoling 6.2 443 = 8. Technical Support =
444
Xiaoling 31.2 445
Xiaoling 6.2 446 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
447
Xiaoling 31.2 448 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LG02/support@dragino.com]]
Xiaoling 6.2 449
Xiaoling 31.5 450
Xiaoling 6.2 451 = 9. Reference =
452
453
Xiaoling 31.2 454 **1. [[LoRaWAN official website. And Technicel document for LoRaWAN.>>url:https://lora-alliance.org/lorawan-for-developers]]**
Xiaoling 6.2 455
Xiaoling 31.2 456 **2. [[LoRa Low Energy design guide>>url:https://www.semtech.com/uploads/documents/LoraLowEnergyDesign_STD.pdf]] and [[Calculator Tool>>url:https://www.semtech.com/uploads/documents/SX1272LoRaCalculatorSetup1_1.zip]].**
Xiaoling 6.2 457
Xiaoling 31.2 458 **3. About Distance: [[LoRa Modem Design Guide>>url:https://www.semtech.com/uploads/documents/LoraDesignGuide_STD.pdf]]**
Xiaoling 6.2 459
Xiaoling 31.2 460 **4. User Manual: [[LPS8v2>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20All%20Gateway%20models/HP0C/]], [[LA66 LoRaWAN Shield>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/]] , [[LA66 USB LoRaWAN Adapter>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/]]**
461
Xiaoling 16.2 462