Wiki source code of LSN50v2-D20-D22-D23 LoRaWAN Temperature Sensor User Manual
Last modified by Xiaoling on 2025/04/24 17:18
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% style="text-align:center" %) | ||
2 | [[image:image-20220623141920-10.png]] | ||
3 | |||
4 | |||
5 | |||
6 | (% style="display:none" %) (%%) | ||
7 | |||
8 | |||
9 | |||
10 | |||
11 | **Table of Contents:** | ||
12 | |||
13 | {{toc/}} | ||
14 | |||
15 | (% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %) | ||
16 | ((( | ||
17 | (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]] | ||
18 | ))) | ||
19 | |||
20 | |||
21 | |||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | |||
28 | = 1. Introduction = | ||
29 | |||
30 | == 1.1 What is LSN50V2-D2x LoRaWAN Temperature Sensor == | ||
31 | |||
32 | |||
33 | ((( | ||
34 | The Dragino LSN50v2-D2x is a (% style="color:#4472c4" %)**LoRaWAN Temperature Sensor**(%%) for Internet of Things solution. It can be used to measure the (% style="color:#4472c4" %)**temperature of air, liquid or object**(%%), and then upload to IoT server via LoRaWAN wireless protocol. | ||
35 | ))) | ||
36 | |||
37 | ((( | ||
38 | The temperature sensor used in LSN50v2-D2x can (% style="color:#4472c4" %)**measure -55°C ~~ 125°C with accuracy ±0.5°C (max ±2.0 °C)**. | ||
39 | ))) | ||
40 | |||
41 | ((( | ||
42 | LSN50v2-D2x supports (% style="color:#4472c4" %)**temperature alarm feature,**(%%) user can set temperature alarm for instant notice. | ||
43 | ))) | ||
44 | |||
45 | ((( | ||
46 | LSN50v2-D2x has max 3 probes which measure maximum 3 temperature points. | ||
47 | ))) | ||
48 | |||
49 | ((( | ||
50 | LSN50v2-D2x is powered by (% style="color:#4472c4" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 10 years. (Actually Battery life depends on the use environment, update period. Please check related Power Analyze report). | ||
51 | ))) | ||
52 | |||
53 | ((( | ||
54 | Each LSN50v2-D2x is pre-load with a set of unique keys for LoRaWAN registration, register these keys to local LoRaWAN server and it will auto connect after power on. | ||
55 | ))) | ||
56 | |||
57 | |||
58 | [[image:1655889313568-879.png]] | ||
59 | |||
60 | |||
61 | == 1.2 Specifications == | ||
62 | |||
63 | |||
64 | (% style="color:#037691" %)**Common DC Characteristics:** | ||
65 | |||
66 | * Supply Voltage: built in 8500mAh Li-SOCI2 battery | ||
67 | * Operating Temperature: -40 ~~ 85°C | ||
68 | |||
69 | (% style="color:#037691" %)**Temperature Sensor:** | ||
70 | |||
71 | * Range: -55 to + 125°C | ||
72 | * Accuracy ±0.5°C (max ±2.0 °C). | ||
73 | |||
74 | (% style="color:#037691" %)**LoRa Spec:** | ||
75 | |||
76 | * Frequency Range, | ||
77 | ** Band 1 (HF): 862 ~~ 1020 Mhz | ||
78 | * 168 dB maximum link budget. | ||
79 | * High sensitivity: down to -148 dBm. | ||
80 | * Bullet-proof front end: IIP3 = -12.5 dBm. | ||
81 | * Excellent blocking immunity. | ||
82 | * Built-in bit synchronizer for clock recovery. | ||
83 | * Preamble detection. | ||
84 | * 127 dB Dynamic Range RSSI. | ||
85 | * Automatic RF Sense and CAD with ultra-fast AFC. | ||
86 | * LoRaWAN 1.0.3 Specification | ||
87 | |||
88 | (% style="color:#037691" %)**Power Consumption** | ||
89 | |||
90 | * Sleeping Mode: 20uA | ||
91 | * LoRaWAN Transmit Mode: 125mA @ 20dBm 44mA @ 14dBm | ||
92 | |||
93 | (% style="display:none" %) | ||
94 | |||
95 | |||
96 | == 1.3 Features == | ||
97 | |||
98 | |||
99 | * LoRaWAN v1.0.3 Class A | ||
100 | * Ultra-low power consumption | ||
101 | * 1 ~~ 3 External Temperature Probes | ||
102 | * Measure range -55°C ~~ 125°C | ||
103 | * Temperature alarm | ||
104 | * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865 | ||
105 | * AT Commands to change parameters | ||
106 | * Uplink on periodically or Interrupt | ||
107 | * Downlink to change configure | ||
108 | * 8500mAh Battery for long term use | ||
109 | |||
110 | (% style="display:none" %) | ||
111 | |||
112 | |||
113 | == 1.4 Applications == | ||
114 | |||
115 | |||
116 | * Wireless Alarm and Security Systems | ||
117 | * Home and Building Automation | ||
118 | * Automated Meter Reading | ||
119 | * Industrial Monitoring and Control | ||
120 | * Long range Irrigation Systems,etc. | ||
121 | |||
122 | (% style="display:none" %) | ||
123 | |||
124 | |||
125 | == 1.5 Hardware Variant == | ||
126 | |||
127 | |||
128 | (% border="1" cellspacing="5" style="background-color:#f7faff; width:500px" %) | ||
129 | |=(% style="width: 108px;background-color:#4F81BD;color:white" %)Model|=(% style="width: 158px;background-color:#4F81BD;color:white" %)Photo|=(% style="width: 234px;background-color:#4F81BD;color:white" %)Probe Info | ||
130 | |(% style="width:108px" %)LSN50v2 D20|(% style="width:138px" %)[[image:1655890296240-127.png]]|(% style="width:203px" %)((( | ||
131 | 1 x DS28B20 Probe | ||
132 | |||
133 | Cable Length : 2 meters | ||
134 | |||
135 | sensor cable is made by Silica Gel for higher temperature tolerance. | ||
136 | ))) | ||
137 | |(% style="width:108px" %)LSN50v2 D22|(% style="width:138px" %)[[image:1655890630424-253.png]]|(% style="width:203px" %)((( | ||
138 | 2 x DS28B20 Probes | ||
139 | |||
140 | Cable lengths total 1.5meters per probe | ||
141 | |||
142 | Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K21G-210811.pdf]] | ||
143 | ))) | ||
144 | |(% style="width:108px" %)((( | ||
145 | LSN50v2 D23 | ||
146 | )))|(% style="width:138px" %)[[image:1655890438492-321.png]]|(% style="width:203px" %)((( | ||
147 | 3 x DS28B20 Probes | ||
148 | |||
149 | Cable lengths total 1.5meters per probe | ||
150 | |||
151 | Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K31G-210811.pdf]] | ||
152 | ))) | ||
153 | |||
154 | (% style="display:none" %) | ||
155 | |||
156 | |||
157 | == 1.6 Pin Definitions and Switch == | ||
158 | |||
159 | |||
160 | **Base on LSN50v2 v2.3.a** | ||
161 | |||
162 | (% class="wikigeneratedid" %) | ||
163 | [[image:1655890786311-614.png||height="392" width="762"]] | ||
164 | |||
165 | |||
166 | === 1.6.1 Pin Definition === | ||
167 | |||
168 | |||
169 | The device is pre-configured to connect to temperature sensor. The other pins are not used. If user want to know more about other pins, please refer the user manual of LSn50v2 at: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/>>url:http://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/]] | ||
170 | |||
171 | |||
172 | === 1.6.2 Jumper JP2 === | ||
173 | |||
174 | |||
175 | Power on Device when put this jumper. | ||
176 | |||
177 | |||
178 | === 1.6.3 BOOT MODE / SW1 === | ||
179 | |||
180 | |||
181 | ~1. ISP: upgrade mode, device won't have any signal in this mode. but ready for upgrade firmware. LED won't work. Firmware won't run. | ||
182 | |||
183 | 2. Flash: work mode, device starts to work and send out console output for further debug | ||
184 | |||
185 | |||
186 | === 1.6.4 Reset Button === | ||
187 | |||
188 | |||
189 | Press to reboot the device. | ||
190 | |||
191 | |||
192 | === 1.6.5 LED === | ||
193 | |||
194 | |||
195 | It will flash: | ||
196 | |||
197 | 1. When boot the device in flash mode | ||
198 | |||
199 | 2. Send an uplink packet | ||
200 | |||
201 | |||
202 | == 1.7 Hardware Change log == | ||
203 | |||
204 | |||
205 | LSN50v2-D20 v1.0: Release. | ||
206 | |||
207 | |||
208 | = 2. How to use LSN50v2-D2x? = | ||
209 | |||
210 | == 2.1 How it works == | ||
211 | |||
212 | |||
213 | ((( | ||
214 | ((( | ||
215 | The LSN50v2-D2x is working as LoRaWAN OTAA Class A end node. Each LSN50v2-D2x is shipped with a worldwide unique set of OTAA and ABP keys. User needs to input the OTAA or ABP keys in the LoRaWAN network server to register. Open the enclosure and power on the LSN50v2-D2x, it will join the LoRaWAN network and start to transmit data. The default period for each uplink is 20 minutes. | ||
216 | ))) | ||
217 | ))) | ||
218 | |||
219 | |||
220 | == 2.2 Quick guide to connect to LoRaWAN server (OTAA) == | ||
221 | |||
222 | |||
223 | ((( | ||
224 | Here is an example for how to join the [[TTN LoRaWAN >>url:http://www.thethingsnetwork.org/]]Server. Below is the network structure, in this demo we use [[DLOS8>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]] as LoRaWAN gateway. | ||
225 | |||
226 | (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:1655891470063-521.png]](% title="Click and drag to resize" %)[[image:1655952600869-544.png]] | ||
227 | ))) | ||
228 | |||
229 | (% title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)(%%) | ||
230 | |||
231 | ((( | ||
232 | The DLOS8 is already set to connect to [[TTN >>url:https://www.thethingsnetwork.org/]]. What the rest we need to is register the LSN50V2-D20 to TTN: | ||
233 | |||
234 | |||
235 | (% style="color:blue" %)**Step 1**(%%): Create a device in TTN with the OTAA keys from LSN50V2-D2x. | ||
236 | |||
237 | Each LSN50V2-D2x is shipped with a sticker with the default device EUI as below: | ||
238 | ))) | ||
239 | |||
240 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS25-LBLDS25-LS--LoRaWAN_LiDAR_Distance_Auto-Clean_Sensor_User_Manual/WebHome/image-20230426084152-1.png?width=502&height=233&rev=1.1||alt="图片-20230426084152-1.png"]] | ||
241 | |||
242 | (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:image-20230426083947-2.png]](% title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)(%%) | ||
243 | |||
244 | You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: | ||
245 | |||
246 | **Create the application.** | ||
247 | |||
248 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SAC01L_LoRaWAN_Temperature%26Humidity_Sensor_User_Manual/WebHome/image-20250423093843-1.png?width=756&height=264&rev=1.1||alt="image-20250423093843-1.png"]] | ||
249 | |||
250 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111305-2.png?width=1000&height=572&rev=1.1||alt="image-20240907111305-2.png"]] | ||
251 | |||
252 | |||
253 | **Add devices to the created Application.** | ||
254 | |||
255 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111659-3.png?width=977&height=185&rev=1.1||alt="image-20240907111659-3.png"]] | ||
256 | |||
257 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111820-5.png?width=975&height=377&rev=1.1||alt="image-20240907111820-5.png"]] | ||
258 | |||
259 | |||
260 | **Enter end device specifics manually.** | ||
261 | |||
262 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112136-6.png?width=697&height=687&rev=1.1||alt="image-20240907112136-6.png"]] | ||
263 | |||
264 | |||
265 | **Add DevEUI and AppKey.** | ||
266 | |||
267 | **Customize a platform ID for the device.** | ||
268 | |||
269 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112427-7.png?rev=1.1||alt="image-20240907112427-7.png"]] | ||
270 | |||
271 | |||
272 | (% style="color:blue" %)**Step 2**(%%):** Add decoder.** | ||
273 | |||
274 | In TTN, user can add a custom payload so it shows friendly reading. | ||
275 | |||
276 | Click this link to get the decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/>>url:https://github.com/dragino/dragino-end-node-decoder/tree/main/]] | ||
277 | |||
278 | Below is TTN screen shot: | ||
279 | |||
280 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS25-LBLDS25-LS--LoRaWAN_LiDAR_Distance_Auto-Clean_Sensor_User_Manual/WebHome/image-20241009140556-1.png?width=1184&height=488&rev=1.1||alt="image-20241009140556-1.png" height="488" width="1184"]] | ||
281 | |||
282 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS25-LBLDS25-LS--LoRaWAN_LiDAR_Distance_Auto-Clean_Sensor_User_Manual/WebHome/image-20241009140603-2.png?width=1168&height=562&rev=1.1||alt="image-20241009140603-2.png"]](% title="Click and drag to resize" %) | ||
283 | |||
284 | (% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %) | ||
285 | |||
286 | (% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %) | ||
287 | |||
288 | (% style="color:blue" %)**Step 3**(%%): Power on LSN50v2-D2x | ||
289 | |||
290 | [[image:1655891678689-137.png]] | ||
291 | |||
292 | (% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(%%)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)(%%)LSN50V2-D2x will auto join to TTN network via the LoRaWAN coverage by DLOS8. After join success, LSN50V2-D2x will start to uplink temperature value to server. | ||
293 | |||
294 | (% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% title="Click and drag to resize" %)(% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](%%)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% title="Click and drag to resize" %) | ||
295 | |||
296 | == 2.3 Uplink Payload == | ||
297 | |||
298 | === 2.3.1 Payload Analyze === | ||
299 | |||
300 | |||
301 | ((( | ||
302 | Normal Upload Payload: | ||
303 | ))) | ||
304 | |||
305 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
306 | |=(% style="width: 74.5px;background-color:#4F81BD;color:white" %)((( | ||
307 | **Size(bytes)** | ||
308 | )))|=(% style="width: 60px;background-color:#4F81BD;color:white" %)2|=(% style="width: 120px;background-color:#4F81BD;color:white" %)2|=(% style="width: 60px;background-color:#4F81BD;color:white" %)2|=(% style="width: 65px;background-color:#4F81BD;color:white" %)1|=(% style="width: 65px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 65px;background-color:#4F81BD;color:white" %)2 | ||
309 | |(% style="width:65px" %)Value|((( | ||
310 | [[Battery>>||anchor="HBattery:"]] | ||
311 | )))|(% style="width:91px" %)((( | ||
312 | [[Temp_ Red or Temp _White>>||anchor="HTemperatureREDorTemperatureWhite:"]] | ||
313 | )))|(% style="width:61px" %)((( | ||
314 | ignore | ||
315 | )))|(% style="width:91px" %)((( | ||
316 | [[Alarm Flag>>||anchor="HAlarmFlag26MOD:"]] | ||
317 | )))|(% style="width:99px" %)((( | ||
318 | [[Temp_White>>||anchor="HTemperatureWhite:"]] | ||
319 | )))|(% style="width:97px" %)((( | ||
320 | [[Temp_Black>>||anchor="HTemperatureBlack:"]] | ||
321 | ))) | ||
322 | |||
323 | [[image:image-20220622180351-1.png||height="589" width="1096"]] | ||
324 | |||
325 | |||
326 | ==== (% style="color:#4472c4" %)**Battery:**(%%) ==== | ||
327 | |||
328 | |||
329 | Check the battery voltage. | ||
330 | |||
331 | Ex1: 0x0B45 = 2885mV | ||
332 | |||
333 | Ex2: 0x0B49 = 2889mV | ||
334 | |||
335 | |||
336 | |||
337 | ==== (% style="color:#4472c4" %)**Temperature RED or Temperature White :**(%%) ==== | ||
338 | |||
339 | |||
340 | **This point to the Red probe in LSN50 v2-D20 or the probe of LSN50v2- D22/D23 White** | ||
341 | |||
342 | [[image:image-20220916152530-2.png]] | ||
343 | |||
344 | |||
345 | **Example**: | ||
346 | |||
347 | If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree | ||
348 | |||
349 | If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. | ||
350 | |||
351 | (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) | ||
352 | |||
353 | |||
354 | |||
355 | ==== (% style="color:#4472c4" %)**Temperature White:**(%%) ==== | ||
356 | |||
357 | |||
358 | **This point to the Red probe in LSN50 v2-D22/D23** | ||
359 | |||
360 | |||
361 | **Example**: | ||
362 | |||
363 | If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree | ||
364 | |||
365 | If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. | ||
366 | |||
367 | (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) | ||
368 | |||
369 | |||
370 | |||
371 | ==== (% style="color:#4472c4" %)**Temperature Black:**(%%) ==== | ||
372 | |||
373 | |||
374 | **This point to the BLACK probe in LSN50 v2-D23** | ||
375 | |||
376 | |||
377 | **Example**: | ||
378 | |||
379 | If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree | ||
380 | |||
381 | If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. | ||
382 | |||
383 | (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) | ||
384 | |||
385 | |||
386 | |||
387 | ==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ==== | ||
388 | |||
389 | |||
390 | **Example:** | ||
391 | |||
392 | If payload & 0x01 = 0x01 **~-~->** This is an Alarm Message | ||
393 | |||
394 | If payload & 0x01 = 0x00 **~-~->** This is a normal uplink message, no alarm | ||
395 | |||
396 | If payload >> 2 = 0x00 **~-~->** means MOD=1, This is a sampling uplink message | ||
397 | |||
398 | If payload >> 2 = 0x31 **~-~->** means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>||anchor="HPolltheAlarmsettings:"]] for detail. | ||
399 | |||
400 | |||
401 | |||
402 | ==== (% style="color:#4472c4" %)**Decode corresponding probe color:**(%%) ==== | ||
403 | |||
404 | |||
405 | **D20:** | ||
406 | |||
407 | Red <~-~-> C1 | ||
408 | |||
409 | **D22:** | ||
410 | |||
411 | White <~-~-> C1 Red <~-~-> C2 | ||
412 | |||
413 | **D23:** | ||
414 | |||
415 | White <~-~->C1 Red <~-~-> C2 Black <~-~-> C3 | ||
416 | |||
417 | |||
418 | == 2.3.2 Payload Decoder file == | ||
419 | |||
420 | |||
421 | ((( | ||
422 | In TTN, use can add a custom payload so it shows friendly. | ||
423 | ))) | ||
424 | |||
425 | ((( | ||
426 | In the page **Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder** to add the decoder from: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]] | ||
427 | ))) | ||
428 | |||
429 | |||
430 | (% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %) | ||
431 | |||
432 | == 2.4 Temperature Alarm Feature == | ||
433 | |||
434 | |||
435 | LSN50V2-D20 work flow with Alarm feature. | ||
436 | |||
437 | |||
438 | [[image:image-20220623090437-1.png||height="747" width="1067"]] | ||
439 | |||
440 | |||
441 | ((( | ||
442 | User can use (% style="color:#4472c4" %)**AT+18ALARM **(%%)command to set the alarm low limit or high limit. Device will check the temperature every minute, if the temperature lower than low limit or greater than high limit. LSN50v2-D20 will send an (% style="color:#4472c4" %)**Alarm packet base on Confirmed Uplink Mode**(%%) to server. | ||
443 | ))) | ||
444 | |||
445 | |||
446 | Below is an example of the Alarm Packet. | ||
447 | |||
448 | [[image:image-20220623090437-2.png||height="618" width="1246"]] | ||
449 | |||
450 | |||
451 | == 2.5 Configure LSN50v2-D20 == | ||
452 | |||
453 | |||
454 | LSN50V2-D20 supports configuration via LoRaWAN downlink command or AT Commands. | ||
455 | |||
456 | * Downlink command instructions for different platform: [[Use Note for Server>>doc:Main.WebHome]](IoT LoRaWAN Server) | ||
457 | * AT Command Access Instructions: [[LINK>>||anchor="H4.A0UseATCommand"]] | ||
458 | |||
459 | There are two parts of commands: General one and Special for this model. | ||
460 | |||
461 | |||
462 | === 2.5.1 General Configure Commands === | ||
463 | |||
464 | |||
465 | These commands are to configure: | ||
466 | |||
467 | * General system settings like: uplink interval. | ||
468 | * LoRaWAN protocol & radio related command. | ||
469 | |||
470 | These commands can be found on the wiki: [[End Device AT Commands and Downlink Commands>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] | ||
471 | |||
472 | |||
473 | === 2.5.2 Sensor related commands === | ||
474 | |||
475 | |||
476 | ==== (% style="color:red" %)**Set Alarm Threshold:**(%%) ==== | ||
477 | |||
478 | |||
479 | (% style="color:#4472c4" %)**1. Set All Probes:** | ||
480 | |||
481 | (% style="color:#037691" %)**AT+18ALARM=min,max** | ||
482 | |||
483 | * When min=0, and max≠0, Alarm trigger when higher than max | ||
484 | * When min≠0, and max=0, Alarm trigger when lower than min | ||
485 | * When min≠0 and max≠0, Alarm trigger when higher than max or lower than min | ||
486 | |||
487 | **Example:** | ||
488 | |||
489 | AT+18ALARM=-10,30 ~/~/ Alarm when < -10 or higher than 30. | ||
490 | |||
491 | |||
492 | * (% style="color:#037691" %)**Downlink Payload:** | ||
493 | |||
494 | 0x(0B F6 1E) ~/~/ Same as AT+18ALARM=-10,30 | ||
495 | |||
496 | (note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10) | ||
497 | |||
498 | |||
499 | (% style="color:#4472c4" %)**2. Set Separate Probe:** | ||
500 | |||
501 | (% style="color:#037691" %)**AT+18ALARM=min,max,index** | ||
502 | |||
503 | Index: | ||
504 | |||
505 | * 1: Temperature_Red | ||
506 | * 2: Temperature_White | ||
507 | * 3: Temperature_Black | ||
508 | |||
509 | **Example:** | ||
510 | |||
511 | AT+18ALARM=-10,30,1 ~/~/ Alarm when temperature_red < -10 or higher than 30. | ||
512 | |||
513 | |||
514 | * (% style="color:#037691" %)**Downlink Payload:** | ||
515 | |||
516 | 0x(0B F6 1E 01) ~/~/ Same as AT+18ALARM=-10,30,1 | ||
517 | |||
518 | (note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10) | ||
519 | |||
520 | |||
521 | ==== (% style="color:red" %)**Set Alarm Interval:**(%%) ==== | ||
522 | |||
523 | |||
524 | The shortest time of two Alarm packet. (unit: min) | ||
525 | |||
526 | * (% style="color:#037691" %)**AT Command:** | ||
527 | |||
528 | AT+ATDC=30 ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes. | ||
529 | |||
530 | |||
531 | * (% style="color:#037691" %)**Downlink Payload:** | ||
532 | |||
533 | 0x(0D 00 1E) **~-~-->** Set AT+ATDC=0x 00 1E = 30 minutes | ||
534 | |||
535 | |||
536 | ==== (% style="color:red" %)**Poll the Alarm settings:**(%%) ==== | ||
537 | |||
538 | |||
539 | Send a LoRaWAN downlink to ask device send Alarm settings. | ||
540 | |||
541 | * (% style="color:#037691" %)**Downlink Payload:** | ||
542 | |||
543 | 0x0E 01 | ||
544 | |||
545 | |||
546 | **Example:** | ||
547 | |||
548 | [[image:1655948182791-225.png]] | ||
549 | |||
550 | |||
551 | **Explain:** | ||
552 | |||
553 | * Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message. | ||
554 | |||
555 | (% style="display:none" %) | ||
556 | |||
557 | |||
558 | |||
559 | ==== (% style="color:red" %)**Set Interrupt Mode:**(%%) ==== | ||
560 | |||
561 | |||
562 | Feature, Set Interrupt mode for PB14 pin. | ||
563 | |||
564 | (% style="color:blue" %)**AT Command: AT+INTMOD** | ||
565 | |||
566 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
567 | |=(% style="width: 148px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 202px; background-color: rgb(79, 129, 189); color: white;" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response** | ||
568 | |(% style="width:148px" %)AT+INTMOD=?|(% style="width:202px" %)Show current interrupt mode|(% style="width:157px" %)((( | ||
569 | 0 | ||
570 | OK | ||
571 | the mode is 0 =Disable Interrupt | ||
572 | ))) | ||
573 | |(% style="width:148px" %)AT+INTMOD=2|(% style="width:202px" %)((( | ||
574 | **0**: Disable Interrupt | ||
575 | **1**: Trigger by rising and falling edge | ||
576 | **2**: Trigger by falling edge | ||
577 | **3**: Trigger by rising edge | ||
578 | )))|(% style="width:157px" %)OK | ||
579 | |||
580 | (% style="color:blue" %)**Downlink Command: 0x06** | ||
581 | |||
582 | Format: Command Code (0x06) followed by 3 bytes. | ||
583 | |||
584 | * Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode | ||
585 | * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger | ||
586 | |||
587 | == 2.6 LED Status == | ||
588 | |||
589 | |||
590 | LSN50-v2-D20 has an internal LED, it will active in below situation: | ||
591 | |||
592 | * LED will fast blink 5 times when boot, this means the temperature sensor is detected. | ||
593 | * After the fast blinks on boot, the LED will flash once which means device is trying to send Join Packet to the network. | ||
594 | * If device successful join LoRaWAN network, the LED will be solid on for 5 seconds. | ||
595 | |||
596 | (% style="display:none" %) | ||
597 | |||
598 | |||
599 | == 2.7 Button Function == | ||
600 | |||
601 | |||
602 | ((( | ||
603 | **Internal RESET button:** | ||
604 | ))) | ||
605 | |||
606 | ((( | ||
607 | Press this button will reboot the device. Device will process OTAA Join to network again. | ||
608 | ))) | ||
609 | |||
610 | |||
611 | == (% style="color:inherit; font-family:inherit; font-size:26px" %)2.8 Firmware Change Log(%%) == | ||
612 | |||
613 | |||
614 | ((( | ||
615 | **Firmware download link: **[[https:~~/~~/www.dropbox.com/sh/bu7piiuwios42as/AACvP3nLaC7_oDpjnYJNBOr7a?dl=0>>https://www.dropbox.com/sh/bu7piiuwios42as/AACvP3nLaC7_oDpjnYJNBOr7a?dl=0]] | ||
616 | ))) | ||
617 | |||
618 | ((( | ||
619 | **Firmware Upgrade Method: **[[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]] | ||
620 | |||
621 | |||
622 | ))) | ||
623 | |||
624 | = 3. Battery & Power Consumption = | ||
625 | |||
626 | |||
627 | LSN50v2-D2x uses ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace. | ||
628 | |||
629 | [[**Battery Info & Power Consumption Analyze**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] . | ||
630 | |||
631 | |||
632 | = 4. Use AT Command = | ||
633 | |||
634 | == 4.1 Access AT Commands == | ||
635 | |||
636 | |||
637 | User can use a USB to TTL adapter to connect to LSN50V2-D20 to use AT command to configure the device. Example is as below: | ||
638 | |||
639 | [[image:image-20220623095817-4.png||height="665" width="1032"]] | ||
640 | |||
641 | (% style="display:none" %) (%%) | ||
642 | |||
643 | [[image:image-20220623100044-7.png]] | ||
644 | |||
645 | |||
646 | = 5. FAQ = | ||
647 | |||
648 | == 5.1 What is the frequency range of LSN50v2-D20? == | ||
649 | |||
650 | |||
651 | Different LSN50V2-D20 version supports different frequency range, below is the table for the working frequency and recommend bands for each model: | ||
652 | |||
653 | (% border="1" cellspacing="3" style="width:510px" %) | ||
654 | |(% style="background-color:#4f81bd; color:white; width:70px" %)**Version**|(% style="background-color:#4f81bd; color:white; width:70px" %)**LoRa IC**|(% style="background-color:#4f81bd; color:white; width:124px" %)**Working Frequency**|(% style="background-color:#4f81bd; color:white; width:123px" %)**Best Tune Frequency**|(% style="background-color:#4f81bd; color:white; width:123px" %)**Recommend Bands** | ||
655 | |(% style="width:70px" %)433|(% style="width:72px" %)SX1278|(% style="width:153px" %)Band2(LF): 410 ~~525 Mhz|(% style="width:163px" %)433Mhz|(% style="width:152px" %)CN470/EU433 | ||
656 | |(% style="width:70px" %)868|(% style="width:72px" %)SX1276|(% style="width:153px" %)Band1(HF):862~~1020 Mhz|(% style="width:163px" %)868Mhz|(% style="width:152px" %)EU868/IN865/RU864 | ||
657 | |(% style="width:70px" %)915|(% style="width:72px" %)SX1276|(% style="width:153px" %)Band1(HF):862 ~~1020 Mhz|(% style="width:163px" %)915Mhz|(% style="width:152px" %)((( | ||
658 | AS923/AU915/ | ||
659 | KR920/US915 | ||
660 | ))) | ||
661 | |||
662 | == 5.2 What is the Frequency Plan? == | ||
663 | |||
664 | |||
665 | Please refer Dragino End Node Frequency Plan: [[End Device Frequency Band>>doc:Main.End Device Frequency Band.WebHome]] | ||
666 | |||
667 | |||
668 | == 5.3 How to update the firmware? == | ||
669 | |||
670 | |||
671 | ((( | ||
672 | User can upgrade the firmware for: | ||
673 | ))) | ||
674 | |||
675 | * ((( | ||
676 | ((( | ||
677 | Support new features | ||
678 | ))) | ||
679 | ))) | ||
680 | * ((( | ||
681 | ((( | ||
682 | For bug fix | ||
683 | ))) | ||
684 | ))) | ||
685 | * ((( | ||
686 | ((( | ||
687 | Change LoRaWAN bands. | ||
688 | ))) | ||
689 | ))) | ||
690 | |||
691 | ((( | ||
692 | Please see this link for how to upgrade: ** **[[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]] | ||
693 | ))) | ||
694 | |||
695 | |||
696 | = 6. Trouble Shooting = | ||
697 | |||
698 | == 6.1 AT Command input doesn't work == | ||
699 | |||
700 | |||
701 | In the case if user can see the console output but can't type input to the device. Please check if you already include the (% style="color:green" %)**ENTER**(%%) while sending out the command. Some serial tool doesn't send (% style="color:green" %)**ENTER**(%%) while press the send key, user need to add ENTER in their string. | ||
702 | |||
703 | |||
704 | == 6.2 Abnormal temperature == | ||
705 | |||
706 | |||
707 | When the temperature is displayed as - 0.1, it means that the sensor is not connected. | ||
708 | |||
709 | Please check whether the wiring is loose/Blocked by the insulation layer of the wire/pin damaged | ||
710 | |||
711 | |||
712 | = 7. Order Info = | ||
713 | |||
714 | |||
715 | **Part Number:** (% style="color:blue" %)**LSN50V2-D20-XXX (Signal Probe)** | ||
716 | |||
717 | **~ Or (% style="color:blue" %)LSN50V2-D22-XXX (Dual Probe)(%%)** | ||
718 | |||
719 | **~ Or (% style="color:blue" %)LSN50V2-D23-XXX (Triple Probe)(%%)** | ||
720 | |||
721 | |||
722 | (% style="color:blue" %)**XXX**(%%)**: **The default frequency band | ||
723 | |||
724 | * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band | ||
725 | * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band | ||
726 | * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band | ||
727 | * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band | ||
728 | * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band | ||
729 | * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band | ||
730 | * (% style="color:red" %)**IN865 **(%%)**:** LoRaWAN IN865 band | ||
731 | * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band | ||
732 | |||
733 | (% style="display:none" %) | ||
734 | |||
735 | |||
736 | = 8. Packing Info = | ||
737 | |||
738 | |||
739 | ((( | ||
740 | **Package Includes**: | ||
741 | ))) | ||
742 | |||
743 | * ((( | ||
744 | LSN50v2-D2x LoRaWAN Temperature Sensor x 1 | ||
745 | ))) | ||
746 | |||
747 | ((( | ||
748 | **Dimension and weight**: | ||
749 | ))) | ||
750 | |||
751 | * Device Size: cm | ||
752 | * Device Weight: g | ||
753 | * Package Size / pcs : cm | ||
754 | * Weight / pcs : g | ||
755 | |||
756 | (% style="display:none" %) | ||
757 | |||
758 | |||
759 | = 9. Support = | ||
760 | |||
761 | |||
762 | * 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. | ||
763 | |||
764 | * 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:http://../../../../../../D:%5C%E5%B8%82%E5%9C%BA%E8%B5%84%E6%96%99%5C%E8%AF%B4%E6%98%8E%E4%B9%A6%5CLoRa%5CLT%E7%B3%BB%E5%88%97%5Csupport@dragino.com]]. |