Dragino LA66 User manual

LA66 USB LoRaWAN Adapter User Manual
last modified by Xiaoling
on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
Table of Contents
1. LA66 USB LoRaWAN Adapter ....................................................................................................................................... 3
1.1 Overview ....................................................................................................................................................................... 3
1.2 Features ........................................................................................................................................................................ 4
1.3 Specification .................................................................................................................................................................. 4
1.4 Pin Mapping & LED ..................................................................................................................................................... 4
1.5 Example: Send & Get Messages via LoRaWAN in PC ........................................................................................... 5
1.6 Example: How to join helium .................................................................................................................................... 10
1.7 Example: Send PC's CPU/RAM usage to TTN via python ................................................................................... 15
1.8 Example: Send & Get Messages via LoRaWAN in RPi ........................................................................................ 16
1.9 Example: Use ofLA66 USB LoRaWAN Adapter and mobile APP ...................................................................... 21
1.9.1 Hardware and Software Connection ................................................................................................................. 21
1.9.2 Send data to TTNv3 and plot location info in Node-Red ................................................................................ 26
1.10 Upgrade Firmware of LA66 USB LoRaWAN Adapter ........................................................................................ 28
2. FAQ .................................................................................................................................................................................. 29
2.1 How to Compile Source Code for LA66? ............................................................................................................... 29
2.2 Where to find Peer-to-Peer firmware of LA66? ...................................................................................................... 29
3. Order Info ........................................................................................................................................................................ 30
4. Reference ......................................................................................................................................................................... 30
5. FCC Statement ............................................................................................................................................................... 30
Page 2 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
Table of Contents:
•1. LA66 USB LoRaWAN Adapter
•1.1 Overview
•1.2 Features
•1.3 Specification
•1.4 Pin Mapping & LED
•1.5 Example: Send & Get Messages via LoRaWAN in PC
•1.6 Example: How to join helium
•1.7 Example: Send PC's CPU/RAM usage to TTN via python
•1.8 Example: Send & Get Messages via LoRaWAN in RPi
•1.9 Example: Use ofLA66 USB LoRaWAN Adapter and mobile APP
•1.9.1 Hardware and Software Connection
•Overview:
•Hardware Connection:
•Download and Install App:
•Use of APP:
•1.9.2 Send data to TTNv3 and plot location info in Node-Red
•1.10 Upgrade Firmware of LA66 USB LoRaWAN Adapter
•2. FAQ
•2.1 How to Compile Source Code for LA66?
•2.2 Where to find Peer-to-Peer firmware of LA66?
•3. Order Info
•4. Reference
•5. FCC Statement
1. LA66 USB LoRaWAN Adapter
1.1 Overview
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.
LA66 is a ready-to-use module that includes the 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.
Each LA66 module includes a world-unique OTAA key for LoRaWAN registration.
Besides the support of the LoRaWAN protocol, LA66 also supports open-source peer-to-peer LoRa Protocol for
the none-LoRaWAN application.
LA66 is equipped with TCXO crystal which ensures the module can achieve stable performance in extreme
temperatures.
Page 3 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
1.2 Features
• LoRaWAN USB adapter base on LA66 LoRaWAN module
• Ultra-long RF range
• Support LoRaWAN v1.0.4 protocol
• Support peer-to-peer protocol
• TCXO crystal to ensure RF performance on low temperature
• Spring RF antenna
• Available in different frequency LoRaWAN frequency bands.
• World-wide unique OTAA keys.
• AT Command via UART-TTL interface
• Firmware upgradable via UART interface
• Open Source Mobile App for LoRaWAN signal detect and GPS tracking.
1.3 Specification
• CPU: 32-bit 48 MHz
• Flash: 256KB
• RAM: 64KB
• Input Power Range: 5v
• Frequency Range: 150 MHz ~ 960 MHz
• Maximum Power +22 dBm constant RF output
• High sensitivity: -148 dBm
• Temperature:
• Storage: -55 ~ +125℃
• Operating: -40 ~ +85℃
• Humidity:
• Storage: 5 ~ 95% (Non-Condensing)
• Operating: 10 ~ 95% (Non-Condensing)
• LoRa Tx Current: <90 mA at +17 dBm, 108 mA at +22 dBm
• LoRa Rx current: <9 mA
1.4 Pin Mapping & LED
Page 4 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
1.5 Example: Send & Get Messages via LoRaWAN in PC
Assume user already input the LA66 USB LoRaWAN Adapter OTAA Keys in TTN and there is already TTN network
coverage.
1. Connect the LA66 USB LoRaWAN adapter to PC
Page 5 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
Open the serial port tool
Page 6 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
2. Press the reset switch RST on the LA66 USB LoRaWAN Adapter to reset it.
The following picture appears to prove that the LA66 USB LoRaWAN Adapter successfully Join the LoRaWAN
network
Page 7 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
3. See Uplink Command
Command format: AT+SENDB=<confirn_status>,<Fport>,<data_len>,<data>
example: AT+SENDB=01,02,8,05820802581ea0a5
Page 8 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
4. Check to see if TTN received the message
Page 9 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
1.6 Example: How to join helium
1. Create a new device.
2. Save the device after filling in the necessary information.
Page 10 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
3. Use AT commands.
Page 11 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
4. Use the serial port tool
Page 12 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
5. Use command AT+CFG to get device configuration
Page 13 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
6. Network successfully.
Page 14 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
7.Send uplink using command
1.7 Example: Send PC's CPU/RAM usage to TTN via python
Page 15 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
Use python as an example:https://github.com/dragino/LA66/blob/main/
Send_information_to_TTN_WindosPC.py
(Raspberry Piexample:https://github.com/dragino/LA66/blob/main/Send_information_to_TTN_Raspberry
%20Pi.py)
Preconditions:
1. LA66 USB LoRaWAN Adapter works fine
2. LA66 USB LoRaWAN Adapter is registered with TTN
Steps for usage:
1. Press the reset switch RESET on the LA66 USB LoRaWAN Adapter
2.Add decoder on TTN
3. Run the python script in PC and see the TTN
1.8 Example: Send & Get Messages via LoRaWAN in RPi
Assume user already input the LA66 USB LoRaWAN Adapter OTAA Keys in TTN and there is already TTN
network coverage.
1. Connect the LA66 USB LoRaWAN Adapter to the Raspberry Pi
Page 16 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
2. Install Minicom in RPi.
Enter the following command in the RPi terminal
apt update
apt install minicom
Use minicom to connect to the RPI's terminal
Page 17 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
3. Press the reset switch RST on the LA66 USB LoRaWAN Adapter.
The following picture appears to prove that the LA66 USB LoRaWAN Adapter successfully entered the network.
Page 18 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
4. Send Uplink message
Format: AT+SENDB=<confirn_status>,<Fport>,<data_len>,<data>
example: AT+SENDB=01,02,8,05820802581ea0a5
Page 19 / 30 - last modified by Xiaoling on 2022/12/29 09:45

User Manual for LoRaWAN End Nodes - LA66 USB LoRaWAN Adapter User Manual
Check to see if TTN received the message
Page 20 / 30 - last modified by Xiaoling on 2022/12/29 09:45
Other manuals for LA66
1
This manual suits for next models
1
Table of contents