Wiki source code of LA66 LoRaWAN Module
Hide last authors
author | version | line-number | content |
---|---|---|---|
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | |
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
6.1 | 5 | = LA66 LoRaWAN Module = | |
1.1 | 6 | ||
6.1 | 7 | == What is LA66 LoRaWAN Module == | |
8 | |||
1.1 | 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 | |||
6.1 | 17 | == Specification == | |
1.1 | 18 | ||
3.1 | 19 | [[image:image-20220517072526-1.png]] | |
1.1 | 20 | ||
3.1 | 21 | Input Power Range: 1.8v ~~ 3.7v | |
1.1 | 22 | ||
3.1 | 23 | Power Consumption: < 4uA. | |
1.1 | 24 | ||
3.1 | 25 | Frequency Range: 150 MHz ~~ 960 MHz | |
1.1 | 26 | ||
3.1 | 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 | ||
5.1 | 46 | ||
47 | |||
6.1 | 48 | == AT Command == | |
5.1 | 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 | |||
6.1 | 53 | == Pin Mapping == | |
5.1 | 54 | ||
10.2 | 55 | [[image:image-20220523101537-1.png]] | |
5.1 | 56 | ||
6.1 | 57 | == Land Pattern == | |
5.1 | 58 | ||
59 | [[image:image-20220517072821-2.png]] | ||
60 | |||
61 | |||
6.1 | 62 | == Part Number == | |
5.1 | 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 | ||
6.1 | 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 | |||
11.1 | 81 | == Pin Mapping & LED == | |
6.1 | 82 | ||
11.1 | 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 | |||
13.1 | 89 | == Upgrade Firmware of LA66 LoRaWAN Shield == | |
11.1 | 90 | ||
20.1 | 91 | === what needs to be used === | |
11.1 | 92 | ||
20.1 | 93 | 1.LA66 LoRaWAN Shield that needs to be upgraded | |
13.1 | 94 | ||
20.1 | 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 | |||
32.1 | 121 | ==== Dial the SW1 of the LA66 LoRaWAN Shield to the ISP's location as shown in the figure below ==== | |
20.1 | 122 | ||
32.1 | 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 | |||
39.1 | 131 | 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/]] | |
132 | |||
32.1 | 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 | |||
6.1 | 161 | = LA66 USB LoRaWAN Adapter = | |
162 | |||
7.1 | 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 | |||
14.1 | 165 | == Pin Mapping & LED == | |
7.1 | 166 | ||
11.1 | 167 | == Example Send & Get Messages via LoRaWAN in PC == | |
7.1 | 168 | ||
11.1 | 169 | == Example Send & Get Messages via LoRaWAN in RPi == | |
170 | |||
12.1 | 171 | === Install USB Driver === | |
172 | |||
43.1 | 173 | Download Link:[[click here>>attach:CP210x_Universal_Windows_Driver.zip]] | |
174 | |||
8.1 | 175 | === Install Minicom === | |
176 | |||
11.1 | 177 | === Use AT Command to send an uplink message. === | |
9.1 | 178 | ||
38.1 | 179 | === Send PC's CPU/RAM usage to TTN via script. === | |
11.1 | 180 | ||
38.1 | 181 | ==== Take python as an example: ==== | |
11.1 | 182 | ||
38.1 | 183 | ===== Preconditions: ===== | |
184 | |||
185 | 1.LA66 LoRa Shield works fine | ||
186 | |||
187 | 2.LA66 LoRa Shield is registered with TTN | ||
188 | |||
189 | ===== Steps for usage ===== | ||
190 | |||
191 | 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 | ||
192 | |||
193 | [[image:image-20220602114148-1.png]] | ||
194 | |||
195 | 2.Run the script and see the TTN | ||
196 | |||
197 | [[image:image-20220602115852-3.png]] | ||
198 | |||
199 | |||
200 | |||
11.1 | 201 | == Example: LA66 USB Module got a message from LA66 LoRa Shield and send the sensor data to NodeRed. == | |
202 | |||
13.1 | 203 | ||
204 | == Upgrade Firmware of LA66 USB LoRaWAN Adapter == |