Hide last authors
Xiaoling 134.2 1
Xiaoling 87.2 2
Xiaoling 87.13 3 **Table of Contents:**
4
Edwin Chen 1.1 5 {{toc/}}
6
7
Edwin Chen 6.1 8
Xiaoling 87.2 9 = 1.  LA66 LoRaWAN Module =
10
11
12 == 1.1  What is LA66 LoRaWAN Module ==
13
14
Xiaoling 87.15 15 (((
Xiaoling 100.2 16 (((
17 [[image:image-20220719093358-2.png||height="145" width="220"]](% style="color:blue" %)** **
18 )))
Edwin Chen 88.2 19
Xiaoling 100.2 20 (((
21
22 )))
23
24 (((
Edwin Chen 65.1 25 (% style="color:blue" %)**Dragino LA66**(%%) is a small wireless LoRaWAN module that offers a very compelling mix of long-range, low power consumption, and secure data transmission. It is designed to facilitate developers to quickly deploy industrial-level LoRaWAN and IoT solutions. It helps users to turn the idea into a practical application and make the Internet of Things a reality. It is easy to create and connect your things everywhere.
Xiaoling 87.15 26 )))
Xiaoling 100.2 27 )))
Edwin Chen 1.1 28
Xiaoling 87.15 29 (((
Xiaoling 100.2 30 (((
Xiaoling 101.4 31 (% style="color:blue" %)**LA66**(%%) is a ready-to-use module that includes the (% style="color:blue" %)**LoRaWAN v1.0.3 protocol**(%%). The LoRaWAN stack used in LA66 is used in more than 1 million LoRaWAN End Devices deployed world widely. This mature LoRaWAN stack greatly reduces the risk to make stable LoRaWAN Sensors to support different LoRaWAN servers and different countries' standards. External MCU can use AT command to call LA66 and start to transmit data via the LoRaWAN protocol.
Xiaoling 87.15 32 )))
Xiaoling 100.2 33 )))
Edwin Chen 1.1 34
Xiaoling 87.15 35 (((
Xiaoling 100.2 36 (((
Edwin Chen 65.1 37 Each LA66 module includes a (% style="color:blue" %)**world-unique OTAA key**(%%) for LoRaWAN registration.
Xiaoling 87.15 38 )))
Edwin Chen 1.1 39
Xiaoling 87.15 40 (((
Edwin Chen 65.1 41 Besides the support of the LoRaWAN protocol, LA66 also supports (% style="color:blue" %)**open-source peer-to-peer LoRa Protocol**(%%) for the none-LoRaWAN application.
Xiaoling 87.15 42 )))
Xiaoling 100.2 43 )))
Edwin Chen 1.1 44
Xiaoling 87.15 45 (((
Xiaoling 100.2 46 (((
Edwin Chen 65.1 47 LA66 is equipped with (% style="color:blue" %)**TCXO crystal**(%%) which ensures the module can achieve stable performance in extreme temperatures.
Xiaoling 87.15 48 )))
Xiaoling 100.2 49 )))
Edwin Chen 1.1 50
Edwin Chen 67.1 51
Xiaoling 100.2 52
Xiaoling 87.2 53 == 1.2  Features ==
Edwin Chen 64.1 54
Xiaoling 137.6 55
Edwin Chen 68.1 56 * Support LoRaWAN v1.0.4 protocol
57 * Support peer-to-peer protocol
58 * TCXO crystal to ensure RF performance on low temperature
59 * SMD Antenna pad and i-pex antenna connector
60 * Available in different frequency LoRaWAN frequency bands.
61 * World-wide unique OTAA keys.
Edwin Chen 69.1 62 * AT Command via UART-TTL interface
63 * Firmware upgradable via UART interface
64 * Ultra-long RF range
Edwin Chen 64.1 65
Xiaoling 137.6 66
Xiaoling 87.2 67 == 1.3  Specification ==
68
Xiaoling 137.6 69
Edwin Chen 68.1 70 * CPU: 32-bit 48 MHz
71 * Flash: 256KB
72 * RAM: 64KB
Edwin Chen 66.1 73 * Input Power Range: 1.8v ~~ 3.7v
74 * Power Consumption: < 4uA.
75 * Frequency Range: 150 MHz ~~ 960 MHz
76 * Maximum Power +22 dBm constant RF output
77 * High sensitivity: -148 dBm
78 * Temperature:
79 ** Storage: -55 ~~ +125℃
80 ** Operating: -40 ~~ +85℃
81 * Humidity:
82 ** Storage: 5 ~~ 95% (Non-Condensing)
83 ** Operating: 10 ~~ 95% (Non-Condensing)
84 * LoRa Tx Current: <90 mA at +17 dBm, 108 mA at +22 dBm
85 * LoRa Rx current: <9 mA
86 * I/O Voltage: 3.3v
Edwin Chen 1.1 87
Xiaoling 137.6 88
Xiaoling 87.2 89 == 1.4  AT Command ==
90
Xiaoling 98.2 91
Edwin Chen 66.1 92 AT Command is valid over Main TXD and Main RXD. Serial Baud Rate is 9600. AT commands can be found in AT Command documents.
Edwin Chen 1.1 93
Edwin Chen 3.1 94
Xiaoling 98.4 95
Xiaoling 87.2 96 == 1.5  Dimension ==
Edwin Chen 3.1 97
Xiaoling 98.2 98 [[image:image-20220718094750-3.png]]
Edwin Chen 3.1 99
100
Edwin Chen 5.1 101
Xiaoling 87.2 102 == 1.6  Pin Mapping ==
103
Xiaoling 101.2 104 [[image:image-20220720111850-1.png]]
Xiaoling 87.2 105
Edwin Chen 5.1 106
107
Xiaoling 87.2 108 == 1.7  Land Pattern ==
109
Xiaoling 137.6 110
Edwin Chen 5.1 111 [[image:image-20220517072821-2.png]]
112
113
114
Xiaoling 87.2 115 = 2.  LA66 LoRaWAN Shield =
Edwin Chen 6.1 116
117
Xiaoling 87.2 118 == 2.1  Overview ==
119
Edwin Chen 90.1 120
Xiaoling 100.2 121 (((
122 [[image:image-20220715000826-2.png||height="145" width="220"]]
123 )))
Edwin Chen 90.1 124
Xiaoling 100.2 125 (((
126
127 )))
128
129 (((
Xiaoling 100.4 130 (% style="color:blue" %)**LA66 LoRaWAN Shield**(%%) is the Arduino shield base on LA66. Users can use LA66 LoRaWAN Shield to rapidly add LoRaWAN or peer-to-peer LoRa wireless function to  Arduino projects.
Xiaoling 100.2 131 )))
Edwin Chen 71.1 132
Edwin Chen 90.1 133 (((
Xiaoling 100.2 134 (((
Xiaoling 101.4 135 (% style="color:blue" %)**LA66**(%%) is a ready-to-use module that includes the (% style="color:blue" %)**LoRaWAN v1.0.3 protocol**(%%). The LoRaWAN stack used in LA66 is used in more than 1 million LoRaWAN End Devices deployed world widely.  This mature LoRaWAN stack greatly reduces the risk to make stable LoRaWAN Sensors to support different LoRaWAN servers and different countries' standards. External MCU can use AT command to call LA66 and start to transmit data via the LoRaWAN protocol.
Edwin Chen 90.1 136 )))
Xiaoling 100.2 137 )))
Edwin Chen 71.1 138
Edwin Chen 90.1 139 (((
Xiaoling 100.2 140 (((
Edwin Chen 90.1 141 Each LA66 module includes a (% style="color:blue" %)**world-unique OTAA key**(%%) for LoRaWAN registration.
142 )))
Xiaoling 100.2 143 )))
Edwin Chen 90.1 144
145 (((
Xiaoling 100.2 146 (((
Edwin Chen 90.1 147 Besides the support of the LoRaWAN protocol, LA66 also supports (% style="color:blue" %)**open-source peer-to-peer LoRa Protocol**(%%) for the none-LoRaWAN application.
148 )))
Xiaoling 100.2 149 )))
Edwin Chen 90.1 150
151 (((
Xiaoling 100.2 152 (((
Edwin Chen 90.1 153 LA66 is equipped with (% style="color:blue" %)**TCXO crystal**(%%) which ensures the module can achieve stable performance in extreme temperatures.
154 )))
Xiaoling 100.2 155 )))
Edwin Chen 90.1 156
157
Xiaoling 100.2 158
Xiaoling 87.2 159 == 2.2  Features ==
Edwin Chen 71.1 160
Xiaoling 137.6 161
Edwin Chen 71.1 162 * Arduino Shield base on LA66 LoRaWAN module
163 * Support LoRaWAN v1.0.4 protocol
164 * Support peer-to-peer protocol
165 * TCXO crystal to ensure RF performance on low temperature
166 * SMA connector
167 * Available in different frequency LoRaWAN frequency bands.
168 * World-wide unique OTAA keys.
169 * AT Command via UART-TTL interface
170 * Firmware upgradable via UART interface
171 * Ultra-long RF range
172
Xiaoling 137.6 173
Xiaoling 87.2 174 == 2.3  Specification ==
175
Xiaoling 137.6 176
Edwin Chen 71.1 177 * CPU: 32-bit 48 MHz
178 * Flash: 256KB
179 * RAM: 64KB
180 * Input Power Range: 1.8v ~~ 3.7v
181 * Power Consumption: < 4uA.
182 * Frequency Range: 150 MHz ~~ 960 MHz
183 * Maximum Power +22 dBm constant RF output
184 * High sensitivity: -148 dBm
185 * Temperature:
186 ** Storage: -55 ~~ +125℃
187 ** Operating: -40 ~~ +85℃
188 * Humidity:
189 ** Storage: 5 ~~ 95% (Non-Condensing)
190 ** Operating: 10 ~~ 95% (Non-Condensing)
191 * LoRa Tx Current: <90 mA at +17 dBm, 108 mA at +22 dBm
192 * LoRa Rx current: <9 mA
193 * I/O Voltage: 3.3v
194
Xiaoling 137.6 195
Herong Lu 125.1 196 == 2.4  LED ==
Edwin Chen 11.1 197
Xiaoling 134.5 198
Herong Lu 125.1 199 ~1. The LED lights up red when there is an upstream data packet
200 2. When the network is successfully connected, the green light will be on for 5 seconds
201 3. Purple light on when receiving downlink data packets
Edwin Chen 11.1 202
203
Xiaoling 134.5 204
Xiaoling 87.2 205 == 2.5  Example: Use AT Command to communicate with LA66 module via Arduino UNO. ==
Edwin Chen 11.1 206
207
Xiaoling 134.3 208 **Show connection diagram:**
209
210
Herong Lu 125.1 211 [[image:image-20220723170210-2.png||height="908" width="681"]]
Xiaoling 87.2 212
Herong Lu 125.1 213
Xiaoling 134.3 214
Xiaoling 134.6 215 (% style="color:blue" %)**1.  open Arduino IDE**
Xiaoling 134.3 216
217
Herong Lu 125.1 218 [[image:image-20220723170545-4.png]]
219
220
Xiaoling 134.3 221
Xiaoling 134.6 222 (% style="color:blue" %)**2.  Open project**
Xiaoling 134.3 223
224
Xiaoling 134.7 225 LA66-LoRaWAN-shield-AT-command-via-Arduino-UNO source code link: [[https:~~/~~/www.dropbox.com/sh/cx0pspkwu62pr97/AAAbKh2ioPdZfSDtdDpooYqha?dl=0>>https://www.dropbox.com/sh/cx0pspkwu62pr97/AAAbKh2ioPdZfSDtdDpooYqha?dl=0]]
Xiaoling 134.3 226
Herong Lu 137.1 227 [[image:image-20220726135239-1.png]]
Herong Lu 125.1 228
229
Xiaoling 134.6 230 (% style="color:blue" %)**3.  Click the button marked 1 in the figure to compile, and after the compilation is complete, click the button marked 2 in the figure to upload**
Xiaoling 134.3 231
Herong Lu 137.1 232 [[image:image-20220726135356-2.png]]
Xiaoling 134.3 233
Herong Lu 125.1 234
Xiaoling 134.6 235 (% style="color:blue" %)**4.  After the upload is successful, open the serial port monitoring and send the AT command**
Herong Lu 125.1 236
Xiaoling 134.3 237
Herong Lu 131.1 238 [[image:image-20220723172235-7.png||height="480" width="1027"]]
Herong Lu 125.1 239
Xiaoling 134.3 240
241
Xiaoling 87.2 242 == 2.6  Example: Join TTN network and send an uplink message, get downlink message. ==
243
244
Xiaoling 134.6 245 (% style="color:blue" %)**1.  Open project**
Xiaoling 134.3 246
247
Xiaoling 134.7 248 Join-TTN-network source code link: [[https:~~/~~/www.dropbox.com/sh/0sjyncafa0gjv00/AACC2m1orov-QHRkvH8-ddCka?dl=0>>https://www.dropbox.com/sh/0sjyncafa0gjv00/AACC2m1orov-QHRkvH8-ddCka?dl=0]]
Xiaoling 134.3 249
Xiaoling 134.7 250
Herong Lu 131.1 251 [[image:image-20220723172502-8.png]]
Xiaoling 87.2 252
Herong Lu 131.1 253
Xiaoling 134.3 254
Xiaoling 134.6 255 (% style="color:blue" %)**2.  Same steps as 2.5,after opening the serial port monitoring, it will automatically connect to the network and send packets**
Xiaoling 134.3 256
257
Herong Lu 131.1 258 [[image:image-20220723172938-9.png||height="652" width="1050"]]
259
260
Xiaoling 134.2 261
Herong Lu 133.1 262 == 2.7  Example: Log Temperature Sensor(DHT11) and send data to TTN, show it in Node-RED. ==
Xiaoling 87.2 263
264
Xiaoling 134.6 265 (% style="color:blue" %)**1.  Open project**
Xiaoling 134.2 266
267
Xiaoling 134.7 268 Log-Temperature-Sensor-and-send-data-to-TTN source code link: [[https:~~/~~/www.dropbox.com/sh/0aagmrpec1lxmva/AABMXWVMSHG9dK1_Zv_7xOmCa?dl=0>>https://www.dropbox.com/sh/0aagmrpec1lxmva/AABMXWVMSHG9dK1_Zv_7xOmCa?dl=0]]
Xiaoling 134.2 269
270
Herong Lu 131.1 271 [[image:image-20220723173341-10.png||height="581" width="1014"]]
Xiaoling 87.2 272
Herong Lu 131.1 273
Xiaoling 134.2 274
Xiaoling 134.6 275 (% style="color:blue" %)**2.  Same steps as 2.5,after opening the serial port monitoring, it will automatically connect to the network and send packets**
Xiaoling 134.2 276
277
Herong Lu 131.1 278 [[image:image-20220723173950-11.png||height="665" width="1012"]]
279
280
Xiaoling 134.2 281
Xiaoling 134.6 282 (% style="color:blue" %)**3.  Integration into Node-red via TTNV3**
Xiaoling 134.2 283
Herong Lu 133.1 284 For the usage of Node-RED, please refer to: [[http:~~/~~/8.211.40.43:8080/xwiki/bin/view/Main/Node-RED/>>http://8.211.40.43:8080/xwiki/bin/view/Main/Node-RED/]]
285
286 [[image:image-20220723175700-12.png||height="602" width="995"]]
287
Xiaoling 134.2 288
289
Xiaoling 87.2 290 == 2.8  Upgrade Firmware of LA66 LoRaWAN Shield ==
291
292
293 === 2.8.1  Items needed for update ===
294
Xiaoling 134.2 295
Edwin Chen 74.1 296 1. LA66 LoRaWAN Shield
297 1. Arduino
298 1. USB TO TTL Adapter
Edwin Chen 13.1 299
Edwin Chen 75.1 300 [[image:image-20220602100052-2.png||height="385" width="600"]]
Herong Lu 20.1 301
302
Xiaoling 137.6 303
Xiaoling 87.2 304 === 2.8.2  Connection ===
Herong Lu 20.1 305
Xiaoling 87.2 306
Edwin Chen 75.1 307 [[image:image-20220602101311-3.png||height="276" width="600"]]
Herong Lu 20.1 308
309
Xiaoling 87.17 310 (((
Xiaoling 87.2 311 (% style="color:blue" %)**LA66 LoRaWAN Shield**(%%)  **<->** (% style="color:blue" %)**USB TTL**
Xiaoling 87.17 312 )))
Xiaoling 87.2 313
Xiaoling 87.16 314 (((
Xiaoling 87.2 315 (% style="background-color:yellow" %)**GND  <-> GND
Xiaoling 87.8 316 TXD  <->  TXD
317 RXD  <->  RXD**
Xiaoling 87.16 318 )))
Xiaoling 87.2 319
320
Edwin Chen 77.1 321 Put a jumper cap on JP6 of LA66 LoRaWAN Shield. ( the jumper is to power on LA66 module)
Herong Lu 20.1 322
Edwin Chen 75.1 323 Connect USB TTL Adapter to PC after connecting the wires
Herong Lu 20.1 324
325
Edwin Chen 75.1 326 [[image:image-20220602102240-4.png||height="304" width="600"]]
Herong Lu 20.1 327
328
Xiaoling 137.6 329
Xiaoling 87.2 330 === 2.8.3  Upgrade steps ===
Herong Lu 20.1 331
332
Xiaoling 134.2 333 ==== (% style="color:blue" %)1.  Switch SW1 to put in ISP position(%%) ====
Xiaoling 87.2 334
335
Edwin Chen 75.1 336 [[image:image-20220602102824-5.png||height="306" width="600"]]
Herong Lu 32.1 337
338
Xiaoling 87.9 339
Xiaoling 134.2 340 ==== (% style="color:blue" %)2.  Press the RST switch once(%%) ====
Herong Lu 32.1 341
Xiaoling 87.10 342
Edwin Chen 75.1 343 [[image:image-20220602104701-12.png||height="285" width="600"]]
Herong Lu 32.1 344
Edwin Chen 75.1 345
Xiaoling 87.9 346
Xiaoling 134.2 347 ==== (% style="color:blue" %)3.  Open the Upgrade tool (Tremo Programmer) in PC and Upgrade(%%) ====
Edwin Chen 75.1 348
Herong Lu 39.1 349
Xiaoling 87.18 350 (((
Xiaoling 87.2 351 (% style="color:blue" %)**1. Software download link:  [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Utility/LSN50N/>>https://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Utility/LSN50N/]]**
Xiaoling 87.18 352 )))
Xiaoling 87.2 353
354
Herong Lu 32.1 355 [[image:image-20220602103227-6.png]]
356
Xiaoling 87.2 357
Herong Lu 32.1 358 [[image:image-20220602103357-7.png]]
359
360
Xiaoling 87.2 361
Edwin Chen 76.1 362 (% class="wikigeneratedid" id="HSelecttheCOMportcorrespondingtoUSBTTL" %)
Xiaoling 87.2 363 (% style="color:blue" %)**2. Select the COM port corresponding to USB TTL**
Edwin Chen 76.1 364
Xiaoling 87.2 365
Herong Lu 32.1 366 [[image:image-20220602103844-8.png]]
367
368
Xiaoling 87.2 369
Edwin Chen 76.1 370 (% class="wikigeneratedid" id="HSelectthebinfiletoburn" %)
Xiaoling 87.2 371 (% style="color:blue" %)**3. Select the bin file to burn**
Edwin Chen 76.1 372
Xiaoling 87.2 373
Herong Lu 32.1 374 [[image:image-20220602104144-9.png]]
375
Xiaoling 87.2 376
Herong Lu 32.1 377 [[image:image-20220602104251-10.png]]
378
Xiaoling 87.2 379
Herong Lu 32.1 380 [[image:image-20220602104402-11.png]]
381
382
Xiaoling 87.2 383
Edwin Chen 76.1 384 (% class="wikigeneratedid" id="HClicktostartthedownload" %)
Xiaoling 87.2 385 (% style="color:blue" %)**4. Click to start the download**
Edwin Chen 76.1 386
Herong Lu 32.1 387 [[image:image-20220602104923-13.png]]
388
389
Xiaoling 87.10 390
Edwin Chen 76.1 391 (% class="wikigeneratedid" id="HThefollowingfigureappearstoprovethattheburningisinprogress" %)
Xiaoling 87.2 392 (% style="color:blue" %)**5. Check update process**
Edwin Chen 76.1 393
Xiaoling 87.2 394
Herong Lu 32.1 395 [[image:image-20220602104948-14.png]]
396
397
Xiaoling 87.2 398
Edwin Chen 76.1 399 (% class="wikigeneratedid" id="HThefollowingpictureappearstoprovethattheburningissuccessful" %)
Xiaoling 87.2 400 (% style="color:blue" %)**The following picture shows that the burning is successful**
Edwin Chen 76.1 401
Herong Lu 32.1 402 [[image:image-20220602105251-15.png]]
403
Edwin Chen 72.1 404
405
Xiaoling 87.2 406 = 3.  LA66 USB LoRaWAN Adapter =
Edwin Chen 6.1 407
Edwin Chen 7.1 408
Xiaoling 87.2 409 == 3.1  Overview ==
410
Xiaoling 100.3 411
Edwin Chen 93.1 412 [[image:image-20220715001142-3.png||height="145" width="220"]]
413
Xiaoling 100.3 414
Xiaoling 100.5 415 (((
Edwin Chen 91.1 416 (% style="color:blue" %)**LA66 USB LoRaWAN Adapter**(%%) is designed to fast turn USB devices to support LoRaWAN wireless features. It combines a CP2101 USB TTL Chip and LA66 LoRaWAN module which can easy to add LoRaWAN wireless feature to PC / Mobile phone or an embedded device that has USB Interface.
Xiaoling 100.5 417 )))
Herong Lu 52.1 418
Xiaoling 100.5 419 (((
Xiaoling 101.4 420 (% style="color:blue" %)**LA66**(%%) is a ready-to-use module that includes the (% style="color:blue" %)**LoRaWAN v1.0.3 protocol**(%%). The LoRaWAN stack used in LA66 is used in more than 1 million LoRaWAN End Devices deployed world widely. This mature LoRaWAN stack greatly reduces the risk to make stable LoRaWAN Sensors to support different LoRaWAN servers and different countries' standards. External MCU can use AT command to call LA66 and start to transmit data via the LoRaWAN protocol.
Xiaoling 100.5 421 )))
Edwin Chen 73.1 422
Xiaoling 100.5 423 (((
Edwin Chen 90.1 424 Each LA66 module includes a (% style="color:blue" %)**world-unique OTAA key**(%%) for LoRaWAN registration.
Xiaoling 100.5 425 )))
Edwin Chen 90.1 426
Xiaoling 100.5 427 (((
Edwin Chen 90.1 428 Besides the support of the LoRaWAN protocol, LA66 also supports (% style="color:blue" %)**open-source peer-to-peer LoRa Protocol**(%%) for the none-LoRaWAN application.
Xiaoling 100.5 429 )))
Edwin Chen 90.1 430
Xiaoling 100.5 431 (((
Edwin Chen 90.1 432 LA66 is equipped with (% style="color:blue" %)**TCXO crystal**(%%) which ensures the module can achieve stable performance in extreme temperatures.
Xiaoling 100.5 433 )))
Edwin Chen 90.1 434
435
Xiaoling 100.3 436
Xiaoling 87.2 437 == 3.2  Features ==
Edwin Chen 73.1 438
Xiaoling 137.6 439
Edwin Chen 73.1 440 * LoRaWAN USB adapter base on LA66 LoRaWAN module
441 * Ultra-long RF range
442 * Support LoRaWAN v1.0.4 protocol
443 * Support peer-to-peer protocol
444 * TCXO crystal to ensure RF performance on low temperature
445 * Spring RF antenna
446 * Available in different frequency LoRaWAN frequency bands.
447 * World-wide unique OTAA keys.
448 * AT Command via UART-TTL interface
449 * Firmware upgradable via UART interface
Xiaoling 93.3 450 * Open Source Mobile App for LoRaWAN signal detect and GPS tracking.
Edwin Chen 73.1 451
Xiaoling 137.6 452
Xiaoling 87.3 453 == 3.3  Specification ==
Edwin Chen 73.1 454
Xiaoling 137.6 455
Edwin Chen 73.1 456 * CPU: 32-bit 48 MHz
457 * Flash: 256KB
458 * RAM: 64KB
459 * Input Power Range: 5v
460 * Frequency Range: 150 MHz ~~ 960 MHz
461 * Maximum Power +22 dBm constant RF output
462 * High sensitivity: -148 dBm
463 * Temperature:
464 ** Storage: -55 ~~ +125℃
465 ** Operating: -40 ~~ +85℃
466 * Humidity:
467 ** Storage: 5 ~~ 95% (Non-Condensing)
468 ** Operating: 10 ~~ 95% (Non-Condensing)
469 * LoRa Tx Current: <90 mA at +17 dBm, 108 mA at +22 dBm
470 * LoRa Rx current: <9 mA
471
Xiaoling 137.6 472
Xiaoling 87.3 473 == 3.4  Pin Mapping & LED ==
Edwin Chen 7.1 474
Edwin Chen 143.1 475 [[image:image-20220813183239-3.png||height="526" width="662"]]
Edwin Chen 7.1 476
Xiaoling 87.3 477
478 == 3.5  Example: Send & Get Messages via LoRaWAN in PC ==
479
480
Xiaoling 100.5 481 (((
Edwin Chen 78.2 482 Assume user already input the LA66 USB LoRaWAN Adapter OTAA Keys in TTN and there is already TTN network coverage.
Xiaoling 100.5 483 )))
Herong Lu 58.1 484
485
Xiaoling 87.3 486 (% style="color:blue" %)**1. Connect the LA66 USB LoRaWAN adapter to PC**
487
488
Herong Lu 106.1 489 [[image:image-20220723100027-1.png]]
Edwin Chen 78.2 490
Xiaoling 87.3 491
Herong Lu 58.1 492 Open the serial port tool
493
494 [[image:image-20220602161617-8.png]]
495
Edwin Chen 78.2 496 [[image:image-20220602161718-9.png||height="457" width="800"]]
Herong Lu 58.1 497
498
499
Xiaoling 87.3 500 (% style="color:blue" %)**2. Press the reset switch RST on the LA66 USB LoRaWAN Adapter to reset it.**
501
Edwin Chen 78.2 502 The following picture appears to prove that the LA66 USB LoRaWAN Adapter successfully Join the LoRaWAN network
Herong Lu 58.1 503
Xiaoling 87.3 504
Edwin Chen 78.2 505 [[image:image-20220602161935-10.png||height="498" width="800"]]
Herong Lu 58.1 506
Edwin Chen 78.2 507
508
Xiaoling 87.3 509 (% style="color:blue" %)**3. See Uplink Command**
Edwin Chen 78.2 510
Xiaoling 87.3 511 Command format: (% style="color:#4472c4" %)** AT+SENDB=<confirn_status>,<Fport>,<data_len>,<data>**
512
Herong Lu 58.1 513 example: AT+SENDB=01,02,8,05820802581ea0a5
514
Edwin Chen 78.2 515 [[image:image-20220602162157-11.png||height="497" width="800"]]
Herong Lu 58.1 516
517
518
Xiaoling 87.3 519 (% style="color:blue" %)**4. Check to see if TTN received the message**
520
Edwin Chen 78.2 521 [[image:image-20220602162331-12.png||height="420" width="800"]]
522
523
524
Xiaoling 87.3 525 == 3.6  Example: Send PC's CPU/RAM usage to TTN via python ==
Edwin Chen 81.1 526
Xiaoling 87.3 527
Edwin Chen 87.1 528 **Use python as an example:**[[https:~~/~~/github.com/dragino/LA66/blob/main/Send_information_to_TTN_WindosPC.py>>https://github.com/dragino/LA66/blob/main/Send_information_to_TTN_WindosPC.py]]
Edwin Chen 81.1 529
Herong Lu 106.1 530 (**Raspberry Pi example: **[[https:~~/~~/github.com/dragino/LA66/blob/main/Send_information_to_TTN_Raspberry%20Pi.py>>https://github.com/dragino/LA66/blob/main/Send_information_to_TTN_Raspberry%20Pi.py]])
Edwin Chen 81.1 531
Xiaoling 87.3 532 (% style="color:red" %)**Preconditions:**
Edwin Chen 81.1 533
Xiaoling 87.3 534 (% style="color:red" %)**1. LA66 USB LoRaWAN Adapter works fine**
Edwin Chen 81.1 535
Xiaoling 87.3 536 (% style="color:red" %)**2. LA66 USB LoRaWAN Adapter  is registered with TTN**
Edwin Chen 81.1 537
538
539
Xiaoling 87.3 540 (% style="color:blue" %)**Steps for usage:**
541
542 (% style="color:blue" %)**1.**(%%) Press the reset switch RESET on the LA66 USB LoRaWAN Adapter
543
544 (% style="color:blue" %)**2.**(%%) Run the python script in PC and see the TTN
545
Edwin Chen 81.1 546 [[image:image-20220602115852-3.png||height="450" width="1187"]]
547
548
549
Xiaoling 87.4 550 == 3.7  Example: Send & Get Messages via LoRaWAN in RPi ==
Edwin Chen 11.1 551
Xiaoling 87.4 552
Edwin Chen 79.1 553 Assume user already input the LA66 USB LoRaWAN Adapter OTAA Keys in TTN and there is already TTN network coverage.
Edwin Chen 12.1 554
Edwin Chen 79.1 555
Xiaoling 87.5 556 (% style="color:blue" %)**1. Connect the LA66 USB LoRaWAN Adapter to the Raspberry Pi**
Xiaoling 87.4 557
Herong Lu 106.1 558 [[image:image-20220723100439-2.png]]
Herong Lu 43.1 559
Herong Lu 52.1 560
561
Xiaoling 87.4 562 (% style="color:blue" %)**2. Install Minicom in RPi.**
563
Edwin Chen 79.1 564 (% id="cke_bm_509388S" style="display:none" %) (%%)Enter the following command in the RPi terminal
Herong Lu 52.1 565
Xiaoling 87.4 566 (% style="background-color:yellow" %)**apt update**
Herong Lu 52.1 567
Xiaoling 87.4 568 (% style="background-color:yellow" %)**apt install minicom**
Herong Lu 52.1 569
570
Edwin Chen 79.1 571 Use minicom to connect to the RPI's terminal
Herong Lu 52.1 572
Edwin Chen 79.1 573 [[image:image-20220602153146-3.png||height="439" width="500"]]
Herong Lu 52.1 574
575
Xiaoling 87.4 576
Xiaoling 87.11 577 (% style="color:blue" %)**3. Press the reset switch RST on the LA66 USB LoRaWAN Adapter.**
Edwin Chen 8.1 578
Xiaoling 87.11 579 The following picture appears to prove that the LA66 USB LoRaWAN Adapter successfully entered the network.
580
581
Edwin Chen 79.1 582 [[image:image-20220602154928-5.png||height="436" width="500"]]
Herong Lu 46.1 583
584
585
Xiaoling 87.4 586 (% style="color:blue" %)**4. Send Uplink message**
Herong Lu 46.1 587
Xiaoling 87.5 588 Format: (% style="color:#4472c4" %)**AT+SENDB=<confirn_status>,<Fport>,<data_len>,<data>**
Xiaoling 87.4 589
Edwin Chen 79.1 590 example: AT+SENDB=01,02,8,05820802581ea0a5
Herong Lu 46.1 591
Xiaoling 87.4 592
Edwin Chen 79.1 593 [[image:image-20220602160339-6.png||height="517" width="600"]]
594
Xiaoling 87.4 595
596
Edwin Chen 79.1 597 Check to see if TTN received the message
598
599 [[image:image-20220602160627-7.png||height="369" width="800"]]
600
601
602
Edwin Chen 139.2 603 == 3.8  Example: Use of LA66 USB LoRaWAN Adapter and mobile APP ==
Edwin Chen 11.1 604
Xiaoling 134.2 605
Edwin Chen 139.2 606 === 3.8.1  Hardware and Software Connection ===
Edwin Chen 13.1 607
Xiaoling 134.2 608
609 ==== (% style="color:blue" %)**Overview:**(%%) ====
610
611
Xiaoling 134.9 612 (((
Edwin Chen 139.2 613 DRAGINO-LA66-APP is an Open Source mobile APP for LA66 USB LoRaWAN Adapter. DRAGINO-LA66-APP has below features:
Herong Lu 106.1 614
Edwin Chen 139.2 615 * Send real-time location information of mobile phone to LoRaWAN network.
616 * Check LoRaWAN network signal strengh.
617 * Manually send messages to LoRaWAN network.
Xiaoling 134.9 618 )))
Herong Lu 111.1 619
Herong Lu 106.1 620
Xiaoling 134.2 621
Edwin Chen 139.2 622 ==== (% style="color:blue" %)**Hardware Connection:**(%%) ====
Xiaoling 134.2 623
Edwin Chen 139.2 624 A USB to Type-C adapter is needed to connect to a Mobile phone.
Xiaoling 134.2 625
Edwin Chen 139.2 626 Note: The package of LA66 USB adapter already includes this USB Type-C adapter.
Herong Lu 106.1 627
Edwin Chen 139.2 628 [[image:image-20220813174353-2.png||height="360" width="313"]]
Herong Lu 106.1 629
630
Edwin Chen 139.2 631 ==== (% style="color:blue" %)**Download and Install App:**(%%) ====
Xiaoling 134.2 632
Edwin Chen 139.2 633 [[(% id="cke_bm_895007S" style="display:none" %)** **(%%)**Download Link for Android apk **>>https://www.dropbox.com/sh/zxwx16qb777uvkz/AABE_P8coGCQ4DAC8enH4bUya?dl=0]].  (Android Version Only)
634
635 [[image:image-20220813173738-1.png]]
636
637
Xiaoling 134.2 638 ==== (% style="color:blue" %)**Use of APP:**(%%) ====
639
Herong Lu 110.1 640 Function and page introduction
641
Edwin Chen 139.2 642 [[image:image-20220723113448-7.png||height="995" width="450"]]
Herong Lu 110.1 643
Edwin Chen 139.2 644 **Block Explain:**
Xiaoling 134.9 645
Edwin Chen 139.2 646 1.  Display LA66 USB LoRaWAN Module connection status
Herong Lu 110.1 647
Edwin Chen 139.2 648 2.  Check and reconnect
Herong Lu 110.1 649
Edwin Chen 139.2 650 3.  Turn send timestamps on or off
Herong Lu 110.1 651
Edwin Chen 139.2 652 4.  Display LoRaWan connection status
Herong Lu 110.1 653
Edwin Chen 139.2 654 5.  Check LoRaWan connection status
Herong Lu 110.1 655
Edwin Chen 139.2 656 6.  The RSSI value of the node when the ACK is received
Herong Lu 110.1 657
Edwin Chen 139.2 658 7.  Node's Signal Strength Icon
Herong Lu 110.1 659
Edwin Chen 139.2 660 8.  Configure Location Uplink Interval
Herong Lu 110.1 661
Edwin Chen 139.2 662 9.  AT command input box
Herong Lu 110.1 663
Edwin Chen 139.2 664 10.  Send Button:  Send input box info to LA66 USB Adapter
Herong Lu 110.1 665
Edwin Chen 139.2 666 11.  Output Log from LA66 USB adapter
Herong Lu 110.1 667
Edwin Chen 139.2 668 12.  clear log button
Herong Lu 110.1 669
Edwin Chen 139.2 670 13.  exit button
Herong Lu 110.1 671
Xiaoling 134.2 672
Herong Lu 106.1 673 LA66 USB LoRaWAN Module not connected
674
Edwin Chen 139.2 675 [[image:image-20220723110520-5.png||height="677" width="508"]]
Herong Lu 106.1 676
Xiaoling 134.2 677
678
Herong Lu 110.1 679 Connect LA66 USB LoRaWAN Module
Herong Lu 106.1 680
Edwin Chen 139.2 681 [[image:image-20220723110626-6.png||height="681" width="511"]]
Herong Lu 110.1 682
Xiaoling 134.2 683
684
Edwin Chen 141.1 685 === 3.8.2 Send data to TTNv3 and plot location info in Node-Red ===
Herong Lu 111.1 686
687
Xiaoling 134.8 688 (% style="color:blue" %)**1.  Register LA66 USB LoRaWAN Module to TTNV3**
Xiaoling 134.2 689
Herong Lu 113.1 690 [[image:image-20220723134549-8.png]]
691
692
Xiaoling 134.2 693
Xiaoling 134.8 694 (% style="color:blue" %)**2.  Open Node-RED,And import the JSON file to generate the flow**
Xiaoling 134.2 695
Edwin Chen 139.2 696 Sample JSON file please go to **[[this link>>https://www.dropbox.com/sh/zxwx16qb777uvkz/AABE_P8coGCQ4DAC8enH4bUya?dl=0]]** to download.
Herong Lu 117.1 697
Edwin Chen 139.2 698 For the usage of Node-RED, please refer to: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Node-RED/>>http://wiki.dragino.com/xwiki/bin/view/Main/Node-RED/]]
Herong Lu 113.1 699
Edwin Chen 139.2 700 After see LoRaWAN Online, walk around and the APP will keep sending location info to LoRaWAN server and then to the Node Red.
Herong Lu 117.1 701
Edwin Chen 139.2 702
703 Example output in NodeRed is as below:
704
Herong Lu 117.1 705 [[image:image-20220723144339-1.png]]
706
Xiaoling 134.2 707
708
Xiaoling 87.4 709 == 3.9  Upgrade Firmware of LA66 USB LoRaWAN Adapter ==
Edwin Chen 73.1 710
Xiaoling 134.2 711
Herong Lu 134.1 712 The LA66 USB LoRaWAN Adapter is the same as the LA66 LoRaWAN Shield update method
Edwin Chen 73.1 713
Herong Lu 119.1 714 Just use the yellow jumper cap to short the BOOT corner and the RX corner, and then press the RESET button (without the jumper cap, you can directly short the BOOT corner and the RX corner with a wire to achieve the same effect)
Edwin Chen 73.1 715
Herong Lu 119.1 716 [[image:image-20220723150132-2.png]]
Edwin Chen 73.1 717
Herong Lu 119.1 718
Xiaoling 134.2 719
Xiaoling 137.2 720 = 4.  FAQ =
Edwin Chen 73.1 721
Xiaoling 87.4 722
Xiaoling 137.2 723 == 4.1  How to Compile Source Code for LA66? ==
724
725
Xiaoling 137.3 726 Compile and Upload Code to ASR6601 Platform :[[Instruction>>Compile and Upload Code to ASR6601 Platform]]
Xiaoling 137.2 727
728
729
730 = 5.  Order Info =
731
732
Xiaoling 87.5 733 **Part Number:**  (% style="color:blue" %)**LA66-XXX**(%%), (% style="color:blue" %)**LA66-LoRaWAN-Shield-XXX** (%%) **or**  (% style="color:blue" %)**LA66-USB-LoRaWAN-Adapter-XXX**
Xiaoling 87.4 734
735
Xiaoling 87.5 736 (% style="color:blue" %)**XXX**(%%): The default frequency band
Edwin Chen 86.1 737
Xiaoling 87.5 738 * (% style="color:red" %)**AS923**(%%):  LoRaWAN AS923 band
739 * (% style="color:red" %)**AU915**(%%):  LoRaWAN AU915 band
740 * (% style="color:red" %)**EU433**(%%):  LoRaWAN EU433 band
741 * (% style="color:red" %)**EU868**(%%):  LoRaWAN EU868 band
742 * (% style="color:red" %)**KR920**(%%):  LoRaWAN KR920 band
743 * (% style="color:red" %)**US915**(%%):  LoRaWAN US915 band
744 * (% style="color:red" %)**IN865**(%%):  LoRaWAN IN865 band
745 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
746 * (% style="color:red" %)**PP**(%%):  Peer to Peer LoRa Protocol
Edwin Chen 73.1 747
Xiaoling 137.5 748
Xiaoling 137.2 749 = 6.  Reference =
Xiaoling 134.12 750
Xiaoling 87.4 751
Edwin Chen 78.1 752 * Hardware Design File for LA66 LoRaWAN Shield, LA66 USB LoRaWAN Adapter : [[Download>>https://www.dropbox.com/sh/a3wbmdcvqjxaqw5/AADZfvAiykJTK624RgMquH86a?dl=0]]
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0