Show last authors
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-D20.
236
237 Each LSN50V2-D20 is shipped with a sticker with the default device EUI as below:
238 )))
239
240
241 (% 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" %)​(%%)​
242
243
244 (((
245 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
246
247 **Register the device:**
248 )))
249
250 (% 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="1654935135620-998.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654935135620-998.png||data-widget="image"]](% 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" %)​​
251
252 (% 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" %)​
253
254
255 **Add APP EUI and DEV EUI:**
256
257
258 (% aria-label="image-20220611161308-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611161308-4.png||data-widget="image" height="551" width="753"]](% 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"]](% title="Click and drag to resize" %)​
259
260
261
262 **Add APP EUI in the application:**
263
264
265 (% aria-label="image-20220611161308-5.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611161308-5.png||data-widget="image" height="601" width="742"]](% 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"]](% title="Click and drag to resize" %)​
266
267
268 **Add APP KEY**
269
270 (% aria-label="image-20220611161308-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611161308-6.png||data-widget="image" height="485" width="744"]](% 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"]](% title="Click and drag to resize" %)​
271
272 (% 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" %)​
273
274 (% 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" %)​(%%)​
275
276 (% style="color:blue" %)**Step 2**(%%): Power on LSN50v2-D20
277
278
279 [[image:1655891678689-137.png]]
280
281 (% 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" %)​(%%)​
282
283 (((
284 (% style="color:blue" %)**Step 3**(%%)**:**  LSN50V2-D20 will auto join to TTN network via the LoRaWAN coverage by DLOS8. After join success, LSN50V2-D20 will start to uplink temperature value to server.
285 )))
286
287 (% 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" %)​​
288
289 == 2.3  ​Uplink Payload ==
290
291 === 2.3.1  Payload Analyze ===
292
293
294 (((
295 Normal Upload Payload:
296 )))
297
298 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
299 |=(% style="width: 74.5px;background-color:#4F81BD;color:white" %)(((
300 **Size(bytes)**
301 )))|=(% 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
302 |(% style="width:65px" %)Value|(((
303 [[Battery>>||anchor="HBattery:"]]
304 )))|(% style="width:91px" %)(((
305 [[Temp_ Red or Temp _White>>||anchor="HTemperatureREDorTemperatureWhite:"]]
306 )))|(% style="width:61px" %)(((
307 ignore
308 )))|(% style="width:91px" %)(((
309 [[Alarm Flag>>||anchor="HAlarmFlag26MOD:"]]
310 )))|(% style="width:99px" %)(((
311 [[Temp_White>>||anchor="HTemperatureWhite:"]]
312 )))|(% style="width:97px" %)(((
313 [[Temp_Black>>||anchor="HTemperatureBlack:"]]
314 )))
315
316 [[image:image-20220622180351-1.png||height="589" width="1096"]]
317
318
319 ==== (% style="color:#4472c4" %)**Battery:**(%%) ====
320
321
322 Check the battery voltage.
323
324 Ex1: 0x0B45 = 2885mV
325
326 Ex2: 0x0B49 = 2889mV
327
328
329
330 ==== (% style="color:#4472c4" %)**Temperature RED or Temperature White :**(%%) ====
331
332
333 **This point to the Red probe in LSN50 v2-D20 or the probe of LSN50v2- D22/D23 White**
334
335 [[image:image-20220916152530-2.png]]
336
337
338 **Example**:
339
340 If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
341
342 If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
343
344 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
345
346
347
348 ==== (% style="color:#4472c4" %)**Temperature White:**(%%) ====
349
350
351 **This point to the Red probe in LSN50 v2-D22/D23**
352
353
354 **Example**:
355
356 If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
357
358 If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
359
360 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
361
362
363
364 ==== (% style="color:#4472c4" %)**Temperature Black:**(%%) ====
365
366
367 **This point to the BLACK probe in LSN50 v2-D23**
368
369
370 **Example**:
371
372 If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
373
374 If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
375
376 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
377
378
379
380 ==== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ====
381
382
383 **Example:**
384
385 If payload & 0x01 = 0x01  **~-~->** This is an Alarm Message
386
387 If payload & 0x01 = 0x00  **~-~->** This is a normal uplink message, no alarm
388
389 If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message
390
391 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.
392
393
394
395 ==== (% style="color:#4472c4" %)**Decode corresponding probe color:**(%%) ====
396
397
398 **D20:**
399
400 Red <~-~-> C1
401
402 **D22:**
403
404 White <~-~-> C1 Red <~-~-> C2
405
406 **D23:**
407
408 White <~-~->C1 Red <~-~-> C2 Black <~-~-> C3
409
410
411 == 2.3.2  Payload Decoder file ==
412
413
414 (((
415 In TTN, use can add a custom payload so it shows friendly. 
416 )))
417
418 (((
419 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]]
420 )))
421
422
423 (% 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" %)​
424
425 == 2.4  Temperature Alarm Feature ==
426
427
428 LSN50V2-D20 work flow with Alarm feature.
429
430
431 [[image:image-20220623090437-1.png||height="747" width="1067"]]
432
433
434 (((
435 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.
436 )))
437
438
439 Below is an example of the Alarm Packet.
440
441 [[image:image-20220623090437-2.png||height="618" width="1246"]]
442
443
444 == 2.5  ​Configure LSN50v2-D20 ==
445
446
447 LSN50V2-D20 supports configuration via LoRaWAN downlink command or AT Commands.
448
449 * Downlink command instructions for different platform: [[Use Note for Server>>doc:Main.WebHome]](IoT LoRaWAN Server)
450 * AT Command Access Instructions: [[LINK>>||anchor="H4.A0UseATCommand"]]
451
452 There are two parts of commands: General one and Special for this model.
453
454
455 === 2.5.1 General Configure Commands ===
456
457
458 These commands are to configure:
459
460 * General system settings like: uplink interval.
461 * LoRaWAN protocol & radio related command.
462
463 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]]
464
465
466 === 2.5.2 Sensor related commands ===
467
468
469 ==== (% style="color:red" %)**Set Alarm Threshold:**(%%) ====
470
471
472 (% style="color:#4472c4" %)**1.  Set All Probes:**
473
474 (% style="color:#037691" %)**AT+18ALARM=min,max**
475
476 * When min=0, and max≠0, Alarm trigger when higher than max
477 * When min≠0, and max=0, Alarm trigger when lower than min
478 * When min≠0 and max≠0, Alarm trigger when higher than max or lower than min
479
480 **Example:**
481
482 AT+18ALARM=-10,30  ~/~/ Alarm when < -10 or higher than 30.
483
484
485 * (% style="color:#037691" %)**Downlink Payload:**
486
487 0x(0B F6 1E)   ~/~/ Same as AT+18ALARM=-10,30
488
489 (note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10)
490
491
492 (% style="color:#4472c4" %)**2.  Set Separate Probe:**
493
494 (% style="color:#037691" %)**AT+18ALARM=min,max,index**
495
496 Index:
497
498 * 1: Temperature_Red
499 * 2: Temperature_White
500 * 3: Temperature_Black
501
502 **Example:**
503
504 AT+18ALARM=-10,30,1   ~/~/ Alarm when temperature_red < -10 or higher than 30.
505
506
507 * (% style="color:#037691" %)**Downlink Payload:**
508
509 0x(0B F6 1E 01)   ~/~/ Same as AT+18ALARM=-10,30,1
510
511 (note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10)
512
513
514 ==== (% style="color:red" %)**Set Alarm Interval:**(%%) ====
515
516
517 The shortest time of two Alarm packet. (unit: min)
518
519 * (% style="color:#037691" %)**AT Command:**
520
521 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.
522
523
524 * (% style="color:#037691" %)**Downlink Payload:**
525
526 0x(0D 00 1E)     **~-~-->** Set AT+ATDC=0x 00 1E = 30 minutes
527
528
529 ==== (% style="color:red" %)**Poll the Alarm settings:**(%%) ====
530
531
532 Send a LoRaWAN downlink to ask device send Alarm settings.
533
534 * (% style="color:#037691" %)**Downlink Payload:**
535
536 0x0E 01
537
538
539 **Example:**
540
541 [[image:1655948182791-225.png]]
542
543
544 **Explain:**
545
546 * Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message.
547
548 (% style="display:none" %)
549
550
551
552 ==== (% style="color:red" %)**Set Interrupt Mode:**(%%) ====
553
554
555 Feature, Set Interrupt mode for PB14 pin.
556
557 (% style="color:blue" %)**AT Command: AT+INTMOD**
558
559 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
560 |=(% 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**
561 |(% style="width:148px" %)AT+INTMOD=?|(% style="width:202px" %)Show current interrupt mode|(% style="width:157px" %)(((
562 0
563 OK
564 the mode is 0 =Disable Interrupt
565 )))
566 |(% style="width:148px" %)AT+INTMOD=2|(% style="width:202px" %)(((
567 **0**: Disable Interrupt
568 **1**: Trigger by rising and falling edge
569 **2**: Trigger by falling edge
570 **3**: Trigger by rising edge
571 )))|(% style="width:157px" %)OK
572
573 (% style="color:blue" %)**Downlink Command: 0x06**
574
575 Format: Command Code (0x06) followed by 3 bytes.
576
577 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
578 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
579
580 == 2.6  LED Status ==
581
582
583 LSN50-v2-D20 has an internal LED, it will active in below situation:
584
585 * LED will fast blink 5 times when boot, this means the temperature sensor is detected.
586 * After the fast blinks on boot, the LED will flash once which means device is trying to send Join Packet to the network.
587 * If device successful join LoRaWAN network, the LED will be solid on for 5 seconds.
588
589 (% style="display:none" %)
590
591
592 == 2.7  Button Function ==
593
594
595 (((
596 **Internal RESET button:**
597 )))
598
599 (((
600 Press this button will reboot the device. Device will process OTAA Join to network again.
601 )))
602
603
604 == (% style="color:inherit; font-family:inherit; font-size:26px" %)2.8  ​Firmware Change Log(%%) ==
605
606
607 (((
608 **Firmware download link:  **[[https:~~/~~/www.dropbox.com/sh/bu7piiuwios42as/AACvP3nLaC7_oDpjnYJNBOr7a?dl=0>>https://www.dropbox.com/sh/bu7piiuwios42as/AACvP3nLaC7_oDpjnYJNBOr7a?dl=0]]
609 )))
610
611 (((
612 **Firmware Upgrade Method: **[[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]]
613
614
615 )))
616
617 = 3. Battery & Power Consumption =
618
619
620 LSN50v2-D2x uses ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
621
622 [[**Battery Info & Power Consumption Analyze**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
623
624
625 = 4.  Use AT Command =
626
627 == 4.1  Access AT Commands ==
628
629
630 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:
631
632 [[image:image-20220623095817-4.png||height="665" width="1032"]]
633
634 (% style="display:none" %) (%%)
635
636 [[image:image-20220623100044-7.png]]
637
638
639 = 5.  FAQ =
640
641 == 5.1 What is the frequency range of LSN50v2-D20? ==
642
643
644 Different LSN50V2-D20 version supports different frequency range, below is the table for the working frequency and recommend bands for each model:
645
646 (% border="1" cellspacing="3" style="width:510px" %)
647 |(% 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**
648 |(% 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
649 |(% 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
650 |(% style="width:70px" %)915|(% style="width:72px" %)SX1276|(% style="width:153px" %)Band1(HF):862 ~~1020 Mhz|(% style="width:163px" %)915Mhz|(% style="width:152px" %)(((
651 AS923/AU915/
652 KR920/US915
653 )))
654
655 == 5.2 What is the Frequency Plan? ==
656
657
658 Please refer Dragino End Node Frequency Plan:  [[End Device Frequency Band>>doc:Main.End Device Frequency Band.WebHome]]
659
660
661 == 5.3 How to update the firmware? ==
662
663
664 (((
665 User can upgrade the firmware for:
666 )))
667
668 * (((
669 (((
670 Support new features
671 )))
672 )))
673 * (((
674 (((
675 For bug fix
676 )))
677 )))
678 * (((
679 (((
680 Change LoRaWAN bands.
681 )))
682 )))
683
684 (((
685 Please see this link for how to upgrade: ** **[[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]]
686 )))
687
688
689 = 6.  Trouble Shooting =
690
691 == 6.1  AT Command input doesn't work ==
692
693
694 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.
695
696
697 == 6.2  Abnormal temperature ==
698
699
700 When the temperature is displayed as - 0.1, it means that the sensor is not connected.
701
702 Please check whether the wiring is loose/Blocked by the insulation layer of the wire/pin damaged
703
704
705 = 7.  Order Info =
706
707
708 **Part Number:** (% style="color:blue" %)**LSN50V2-D20-XXX (Signal Probe)**
709
710 **~ Or (% style="color:blue" %)LSN50V2-D22-XXX (Dual Probe)(%%)**
711
712 **~ Or (% style="color:blue" %)LSN50V2-D23-XXX (Triple Probe)(%%)**
713
714
715 (% style="color:blue" %)**XXX**(%%)**: **The default frequency band
716
717 * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band
718 * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band
719 * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band
720 * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band
721 * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band
722 * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band
723 * (% style="color:red" %)**IN865 **(%%)**:**  LoRaWAN IN865 band
724 * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band
725
726 (% style="display:none" %)
727
728
729 = 8. ​ Packing Info =
730
731
732 (((
733 **Package Includes**:
734 )))
735
736 * (((
737 LSN50v2-D2x LoRaWAN Temperature Sensor x 1
738 )))
739
740 (((
741 **Dimension and weight**:
742 )))
743
744 * Device Size: cm
745 * Device Weight: g
746 * Package Size / pcs : cm
747 * Weight / pcs : g
748
749 (% style="display:none" %)
750
751
752 = 9.  ​Support =
753
754
755 * 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.
756
757 * 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]].
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0