Wiki source code of LA66 LoRaWAN Module
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
5 | = LA66 LoRaWAN Module = | ||
6 | |||
7 | == What is LA66 LoRaWAN Module == | ||
8 | |||
9 | **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 LoRa 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 program, create and connect your things everywhere. | ||
10 | |||
11 | **LA66 **is a ready-to-use module which includes the LoRaWAN v1.0.4 protocol. External MCU can use AT command to call LA66 and start to transmit data via the LoRaWAN protocol. | ||
12 | |||
13 | **Each LA66 **module includes a world unique OTAA key for LoRaWAN registration. | ||
14 | |||
15 | |||
16 | |||
17 | == Specification == | ||
18 | |||
19 | [[image:image-20220517072526-1.png]] | ||
20 | |||
21 | Input Power Range: 1.8v ~~ 3.7v | ||
22 | |||
23 | Power Consumption: < 4uA. | ||
24 | |||
25 | Frequency Range: 150 MHz ~~ 960 MHz | ||
26 | |||
27 | Maximum Power +22 dBm constant RF output | ||
28 | |||
29 | High sensitivity: -148 dBm | ||
30 | |||
31 | Temperature: | ||
32 | |||
33 | * Storage: -55 ~~ +125℃ | ||
34 | * Operating: -40 ~~ +85℃ | ||
35 | |||
36 | Humidity: | ||
37 | |||
38 | * Storage: 5 ~~ 95% (Non-Condensing) | ||
39 | * Operating: 10 ~~ 95% (Non-Condensing) | ||
40 | |||
41 | LoRa Tx Current: <90 mA at +17 dBm, 108 mA at +22 dBm | ||
42 | |||
43 | LoRa Rx current: <9 mA | ||
44 | |||
45 | I/O Voltage: 3.3v | ||
46 | |||
47 | |||
48 | == AT Command == | ||
49 | |||
50 | AT Command is valid over Main TXD and Main RXD. Serial Baud Rate is 9600. AT commands can be found in AT Command documents. | ||
51 | |||
52 | |||
53 | == Pin Mapping == | ||
54 | |||
55 | [[image:image-20220523101537-1.png]] | ||
56 | |||
57 | == Land Pattern == | ||
58 | |||
59 | [[image:image-20220517072821-2.png]] | ||
60 | |||
61 | |||
62 | == Part Number == | ||
63 | |||
64 | Part Number: **LA66-XXX** | ||
65 | |||
66 | **XX**: The default frequency band | ||
67 | |||
68 | * **AS923**: LoRaWAN AS923 band | ||
69 | * **AU915**: LoRaWAN AU915 band | ||
70 | * **EU433**: LoRaWAN EU433 band | ||
71 | * **EU868**: LoRaWAN EU868 band | ||
72 | * **KR920**: LoRaWAN KR920 band | ||
73 | * **US915**: LoRaWAN US915 band | ||
74 | * **IN865**: LoRaWAN IN865 band | ||
75 | * **CN470**: LoRaWAN CN470 band | ||
76 | |||
77 | = LA66 LoRaWAN Shield = | ||
78 | |||
79 | LA66 LoRaWAN Shield is the Arduino Breakout PCB to fast test the features of LA66 module and turn Arduino to support LoRaWAN. | ||
80 | |||
81 | == Pin Mapping & LED == | ||
82 | |||
83 | == Example: Use AT Command to communicate with LA66 module via Arduino UNO. == | ||
84 | |||
85 | == Example: Join TTN network and send an uplink message, get downlink message. == | ||
86 | |||
87 | == Example: Log Temperature Sensor(DHT11) and send data to TTN, show it in DataCake. == | ||
88 | |||
89 | == Upgrade Firmware of LA66 LoRaWAN Shield == | ||
90 | |||
91 | === what needs to be used === | ||
92 | |||
93 | 1.LA66 LoRaWAN Shield that needs to be upgraded | ||
94 | |||
95 | 2.Arduino | ||
96 | |||
97 | 3.USB TO TTL | ||
98 | |||
99 | [[image:image-20220602100052-2.png]] | ||
100 | |||
101 | === Wiring Schematic === | ||
102 | |||
103 | [[image:image-20220602101311-3.png]] | ||
104 | |||
105 | LA66 LoRaWAN Shield >>>>>>>>>>>>USB TTL | ||
106 | |||
107 | GND >>>>>>>>>>>>GND | ||
108 | |||
109 | TXD >>>>>>>>>>>>TXD | ||
110 | |||
111 | RXD >>>>>>>>>>>>RXD | ||
112 | |||
113 | JP6 of LA66 LoRaWAN Shield needs to be connected with yellow jumper cap | ||
114 | |||
115 | Connect to the PC after connecting the wires | ||
116 | |||
117 | [[image:image-20220602102240-4.png]] | ||
118 | |||
119 | === Upgrade steps === | ||
120 | |||
121 | ==== Dial the SW1 of the LA66 LoRaWAN Shield to the ISP's location as shown in the figure below ==== | ||
122 | |||
123 | [[image:image-20220602102824-5.png]] | ||
124 | |||
125 | ==== Press the RST switch on the LA66 LoRaWAN Shield once ==== | ||
126 | |||
127 | [[image:image-20220602104701-12.png]] | ||
128 | |||
129 | ==== Open the upgrade application software ==== | ||
130 | |||
131 | Software download link:[[click here>>attach:TremoProgrammer_v0.8.rar]] | ||
132 | |||
133 | [[image:image-20220602103227-6.png]] | ||
134 | |||
135 | [[image:image-20220602103357-7.png]] | ||
136 | |||
137 | ===== Select the COM port corresponding to USB TTL ===== | ||
138 | |||
139 | [[image:image-20220602103844-8.png]] | ||
140 | |||
141 | ===== Select the bin file to burn ===== | ||
142 | |||
143 | [[image:image-20220602104144-9.png]] | ||
144 | |||
145 | [[image:image-20220602104251-10.png]] | ||
146 | |||
147 | [[image:image-20220602104402-11.png]] | ||
148 | |||
149 | ===== Click to start the download ===== | ||
150 | |||
151 | [[image:image-20220602104923-13.png]] | ||
152 | |||
153 | ===== The following figure appears to prove that the burning is in progress ===== | ||
154 | |||
155 | [[image:image-20220602104948-14.png]] | ||
156 | |||
157 | ===== The following picture appears to prove that the burning is successful ===== | ||
158 | |||
159 | [[image:image-20220602105251-15.png]] | ||
160 | |||
161 | = LA66 USB LoRaWAN Adapter = | ||
162 | |||
163 | LA66 USB LoRaWAN Adapter is the USB Adapter for LA66, it combines a USB TTL Chip and LA66 module which can easy to test the LoRaWAN feature by using PC or embedded device which has USB Interface. | ||
164 | |||
165 | == Pin Mapping & LED == | ||
166 | |||
167 | == Example Send & Get Messages via LoRaWAN in PC == | ||
168 | |||
169 | == Example Send & Get Messages via LoRaWAN in RPi == | ||
170 | |||
171 | === Install USB Driver === | ||
172 | |||
173 | === Install Minicom === | ||
174 | |||
175 | === Use AT Command to send an uplink message. === | ||
176 | |||
177 | === Send PC's CPU/RAM usage to TTN via script. === | ||
178 | |||
179 | ==== Take python as an example: ==== | ||
180 | |||
181 | ===== Preconditions: ===== | ||
182 | |||
183 | 1.LA66 LoRa Shield works fine | ||
184 | |||
185 | 2.LA66 LoRa Shield is registered with TTN | ||
186 | |||
187 | ===== Steps for usage ===== | ||
188 | |||
189 | 1.After connecting the line, connect it to the PC, turn SW1 to FLASH, and press the RST switch. As shown in the figure below | ||
190 | |||
191 | [[image:image-20220602114148-1.png]] | ||
192 | |||
193 | 2.Run the script and see the TTN | ||
194 | |||
195 | [[image:image-20220602115852-3.png]] | ||
196 | |||
197 | |||
198 | |||
199 | == Example: LA66 USB Module got a message from LA66 LoRa Shield and send the sensor data to NodeRed. == | ||
200 | |||
201 | |||
202 | == Upgrade Firmware of LA66 USB LoRaWAN Adapter == |