Hide last authors
Xiaoling 69.8 1
2
Xiaoling 2.2 3 (% style="text-align:center" %)
Xiaoling 33.2 4 [[image:1654679359875-169.png]]
Xiaoling 1.1 5
6
7
Xiaoling 47.14 8
Xiaoling 48.4 9
10
11
12
13
Xiaoling 47.14 14 **Table of Contents:**
15
Xiaoling 17.3 16 {{toc/}}
Xiaoling 1.1 17
18
19
Xiaoling 17.3 20
21
Xiaoling 48.4 22
23
24
Xiaoling 2.2 25 = 1. Introduction =
Xiaoling 1.1 26
Xiaoling 33.2 27 == 1.1 What is LDS02 LoRaWAN Door Sensor ==
Xiaoling 1.1 28
29
Xiaoling 3.2 30 (((
Xiaoling 47.9 31 (((
Xiaoling 33.5 32 The Dragino LDS02 is a (% style="color:#037691" %)**LoRaWAN Door Sensor**(%%). It detects door open/close status and uplink to IoT server via LoRaWAN network. user can see the door status, open time, open counts in the IoT Server.
Xiaoling 47.9 33 )))
Xiaoling 1.1 34
Xiaoling 47.9 35 (((
Xiaoling 33.5 36 LDS02 is powered by (% style="color:#037691" %)**2 x AAA batteries**(%%) and target for long time use, these two batteries can provide about 16,000 ~~ 70,000 uplink packets. After battery running out, user can easily open the enclosure and replace with 2 common AAA batteries.
Xiaoling 47.9 37 )))
Xiaoling 1.2 38
Xiaoling 47.9 39 (((
Xiaoling 33.5 40 The LDS02 will send periodically data every day as well as for each door open/close action. It also (% style="color:#037691" %)**counts the door open times**(%%) and (% style="color:#037691" %)**calculate last door open duration**(%%). User can also disable the uplink for each open/close event, instead, device can count each open event and uplink periodically.
Xiaoling 47.9 41 )))
Xiaoling 1.2 42
Xiaoling 47.9 43 (((
Xiaoling 33.5 44 LDS02 has the (% style="color:#037691" %)**open alarm feature**(%%), user can set this feature so device will send Alarm if the door has been open for a certain time.
Xiaoling 47.9 45 )))
Xiaoling 33.2 46
Xiaoling 47.9 47 (((
Xiaoling 33.5 48 Each LDS02 is (% style="color:#037691" %)**pre-load with a set of unique keys**(%%) for LoRaWAN registration, register these keys to LoRaWAN server and it will auto connect after power on.
Xiaoling 47.21 49
50
Xiaoling 3.2 51 )))
Xiaoling 47.9 52 )))
Xiaoling 1.2 53
Xiaoling 34.2 54 [[image:image-20220608171947-2.png]]
Xiaoling 1.2 55
56
Xiaoling 3.3 57 == 1.2 Features ==
Xiaoling 1.2 58
Xiaoling 50.2 59
Xiaoling 1.2 60 * LoRaWAN Class A v1.0.3
Xiaoling 66.3 61 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
62 * Door Open/Close detect
63 * Door open/close statistics
Xiaoling 1.2 64 * 2 x AAA LR03 Batteries
65 * AT Commands to change parameters
66 * Uplink on periodically and open/close action
67 * Remote configure parameters via LoRa Downlink
68 * Firmware upgradable via program port
69
Xiaoling 69.5 70 == 1.3 Storage & Operation Temperature ==
Xiaoling 50.2 71
Xiaoling 69.3 72
Xiaoling 69.4 73 -10 ~~ 50 °C  or -40 ~~ 60 °C (depends on battery type, see [[FAQ>>||anchor="H7.6Whyiseedifferentworkingtemperatureforthedevice3F"]])
Xiaoling 69.3 74
75
76 == 1.4 Applications ==
77
78
Xiaoling 1.2 79 * Smart Buildings & Home Automation
80 * Logistics and Supply Chain Management
81 * Smart Metering
82 * Smart Agriculture
83 * Smart Cities
84 * Smart Factory
85
Xiaoling 69.3 86 == 1.5 Dimension ==
Xiaoling 1.2 87
Xiaoling 50.2 88
Xiaoling 34.3 89 Unit: mm
Xiaoling 1.2 90
Xiaoling 37.2 91 [[image:1654680563545-120.png]]
Xiaoling 1.2 92
Xiaoling 5.2 93
Xiaoling 37.2 94 [[image:1654680510816-654.png]]
Xiaoling 5.2 95
Xiaoling 37.2 96
Xiaoling 69.3 97 == 1.6 Firmware Change log ==
Xiaoling 5.2 98
Xiaoling 50.2 99
Xiaoling 26.8 100 (((
Xiaoling 37.2 101 (((
Xiaoling 50.2 102 LDS02 use the same firmware as LDS01:[[LDS02 Image files – Download link>>https://www.dropbox.com/sh/9j35mnsxnz0y3ye/AACj5gHGOURGEHCpj-E861Mua?dl=0]]
Xiaoling 26.8 103 )))
104 )))
Xiaoling 1.2 105
106
Xiaoling 37.3 107 = 2. Power ON LDS02 =
Xiaoling 1.2 108
Xiaoling 50.2 109
Xiaoling 37.3 110 When receive the LDS02, please open the enclosure and add 2 x AAA batteries to power it. The [[LED>>||anchor="H4.7LEDs"]] will blink when device is powered.
Xiaoling 1.2 111
112
Xiaoling 37.4 113 = 3. How to install LDS02 =
Xiaoling 1.2 114
Xiaoling 69.7 115
Mengting Qiu 69.1 116 Fixed way:
Xiaoling 50.2 117
Mengting Qiu 69.1 118 * Open the housing, install the screw through the reserved mounting hole, fix the bottom of the housing at the location to be detected, and then install the node body to the bottom housing.
119
120 [[image:image-20231222111730-1.jpeg||height="428" width="686"]]
121
122 * The double-sided glue was separated according to the cutting line and glued to the bottom of the LDS02 housing, and then the LDS02 was fixed at the location to be detected.
123
124 [[image:image-20231222111834-2.jpeg||height="443" width="685"]]
125
126
Xiaoling 7.4 127 (((
Xiaoling 37.4 128 (((
129 When install the LDS02 on wall. Please make sure install as below so the marks will close to each other when close the door.
Xiaoling 7.4 130 )))
Xiaoling 1.2 131
Xiaoling 37.4 132 (((
Bei Jinggeng 51.1 133 Open/Close threshold range: ~~ 10mm
Xiaoling 37.4 134 )))
135 )))
Xiaoling 1.2 136
Xiaoling 69.7 137 [[image:1654680716522-793.png||height="505" width="497"]]
Xiaoling 1.2 138
139
Xiaoling 7.2 140 = 4. Operation Mode =
Xiaoling 1.2 141
Xiaoling 7.2 142 == 4.1 How it works? ==
Xiaoling 1.2 143
Xiaoling 50.2 144
Xiaoling 26.5 145 (((
Xiaoling 46.2 146 The LDS02 is configured as LoRaWAN OTAA Class A mode by default. It has OTAA keys to join network. To connect a local LoRaWAN network, user just need to input the OTAA keys in the network server and [[power on>>||anchor="H2.PowerONLDS02"]] the LDS02. It will auto join the network via OTAA.
Xiaoling 26.5 147 )))
Xiaoling 1.2 148
Xiaoling 26.5 149 (((
Xiaoling 49.3 150 In case user can't set the OTAA keys in the network server and has to use the existing keys from server. User can [[use AT Command>>||anchor="H6.UseATCommand"]] to set the keys in the devices.
Xiaoling 26.5 151 )))
Xiaoling 1.2 152
153
Xiaoling 7.3 154 == 4.2 Example to join LoRaWAN network ==
Xiaoling 7.2 155
Xiaoling 50.2 156
Xiaoling 1.6 157 Here shows an example for how to join the [[TTN V3 Network>>url:https://eu1.cloud.thethings.network/]]. Below is the network structure, we use [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]] as LoRaWAN gateway here. 
Xiaoling 1.2 158
Xiaoling 39.2 159 [[image:1654680810108-149.png]]
Xiaoling 1.2 160
161
Xiaoling 9.6 162 (((
Xiaoling 39.4 163 The LDS02 in installed on the door edge to detect the open / close event. And send the status to LoRaWAN server. The LDS02 will uplink two type of messages to the server.
Xiaoling 9.6 164 )))
Xiaoling 1.2 165
Xiaoling 9.6 166 * (((
167 A keep-alive message which send once per day.
168 )))
169 * (((
Xiaoling 39.3 170 A door event message when there is a door open/close. ([[Alarm event can be disabled>>||anchor="H7.3CanIdisableuplinkforeacheventtosavebatterylife3F"]])
Xiaoling 9.6 171 )))
Xiaoling 1.2 172
Xiaoling 9.6 173 (((
Xiaoling 29.2 174
175
Xiaoling 47.10 176 (((
Xiaoling 1.2 177 The LG308 is already set to connect to [[TTN V3 network >>url:https://eu1.cloud.thethings.network/]]. What we need to now is only configure the TTN V3:
Xiaoling 50.2 178
179
Xiaoling 9.6 180 )))
Xiaoling 47.10 181 )))
Xiaoling 1.2 182
Xiaoling 9.6 183 (((
Xiaoling 39.4 184 (% style="color:blue" %)**Step 1**(%%): Create a device in TTN V3 with the OTAA keys from LDS02.
Xiaoling 9.6 185 )))
Xiaoling 1.2 186
Xiaoling 9.6 187 (((
Xiaoling 39.4 188 Each LDS02 is shipped with a sticker with unique device EUI:
Xiaoling 9.6 189 )))
Xiaoling 1.2 190
Xiaoling 61.2 191 [[image:image-20230426084924-1.png||height="229" width="493"]]
Xiaoling 1.2 192
193
194 User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot:
195
Xiaoling 47.16 196
Xiaoling 14.3 197 **Add APP EUI in the application**
Xiaoling 1.2 198
Xiaoling 11.2 199 [[image:1654671794691-956.png]]
Xiaoling 1.2 200
201
Xiaoling 11.2 202 [[image:1654671809850-574.png]]
Xiaoling 1.2 203
Xiaoling 12.2 204 [[image:1654671820156-640.png]]
Xiaoling 1.2 205
206
Xiaoling 40.2 207 [[image:1654681258096-500.png]]
Xiaoling 1.2 208
209
Bei Jinggeng 66.1 210 **Select frequency plan**
Xiaoling 47.16 211
Bei Jinggeng 66.1 212 If node's frequency is US915 or AU915, the frequency plan of the gateway must be consistent with that of TTN
213
214 [[image:image-20230816091714-1.png]]
215
216
Xiaoling 14.2 217 **Add APP KEY and DEV EUI**
Xiaoling 1.2 218
Xiaoling 40.2 219 [[image:1654671889112-678.png]]
Xiaoling 1.2 220
Xiaoling 40.2 221
Xiaoling 50.2 222
Xiaoling 47.11 223 (((
Xiaoling 47.16 224 (% style="color:blue" %)**Step 2**(%%):  **[[Power on>>||anchor="H2.PowerONLDS02"]]** LDS02 and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel.
Xiaoling 47.11 225 )))
Xiaoling 1.2 226
227
Xiaoling 43.2 228 [[image:1654681390551-993.png]]
Xiaoling 1.2 229
Xiaoling 40.2 230
Xiaoling 14.5 231 == 4.3 Uplink Payload ==
232
Xiaoling 26.11 233
Xiaoling 43.2 234 Uplink Payload total 10 bytes.
Xiaoling 1.2 235
Xiaoling 69.7 236 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:480px" %)
237 |=(% style="width: 80px;background-color:#4F81BD;color:white" %)**Size(bytes)**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**1**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**3**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**3**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**1**
Xiaoling 66.4 238 |value|Status&BAT|(((
Xiaoling 43.2 239 MOD
240 Always:0x01
241 )))|Total open door events|(((
242 Last door open
243 duration (unit: min)
Xiaoling 43.4 244 )))|[[Alarm>>||anchor="H4.6AlarmBaseonTimeout"]]
Xiaoling 43.2 245
Xiaoling 16.2 246 **Example:**
Xiaoling 1.2 247
Xiaoling 43.2 248 [[image:1654681706301-731.png]]
Xiaoling 1.2 249
Xiaoling 43.2 250 [[image:1654681714641-440.png]]
Xiaoling 1.2 251
Xiaoling 62.2 252 (((
253 Example Payload Decoder in TTN V3: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/LDS02>>https://github.com/dragino/dragino-end-node-decoder/tree/main/LDS02]]
Xiaoling 43.2 254
Bei Jinggeng 62.1 255
256 === 4.3.1 Battery Info ===
257
Xiaoling 62.2 258
Bei Jinggeng 62.1 259 Check the battery voltage for LDS02.
260
261 Ex1: 0x0B88&3FFF = 2952mV
262
263 Ex2: 0xD152&3FFF = 4434mV
264
Xiaoling 62.2 265
Bei Jinggeng 62.1 266 === 4.3.2 Status ===
267
Xiaoling 62.2 268
Bei Jinggeng 62.1 269 Check the open door Status for LDS02.
270
271 **Example**:
272
273 If payload is: 0B:  (0000 1011&1000 0000== 0), DOOR_OPEN_STATUS is 0(CLOSE)
274
275 If payload is: D1: (1101 0001&1000 0000== 1) , DOOR_OPEN_STATUS is 1(OPEN)
276
Xiaoling 62.2 277
Bei Jinggeng 62.1 278 === 4.3.3 MOD ===
279
Xiaoling 62.2 280
Bei Jinggeng 62.1 281 Check the MOD
282
283 **Example:**
284
285 If payload is: 01:MOD is 1
286
287
288 === 4.3.4 Total open door events ===
289
Xiaoling 62.2 290
Bei Jinggeng 62.1 291 Get Total open door events
292
293 **Example**:
294
295 If payload is: **00 00  93=** 147
296
297 If payload is: **00 00  00= **0
298
299
300 === 4.3.5 Last door open duration (unit: min) ===
301
Xiaoling 62.2 302
Bei Jinggeng 62.1 303 Get Last door open duration
304
305 **Example:**
306
307 If payload is: **00 00  25=** 37
308
309 If payload is: **00 00  01= **1
310
311
312 === 4.3.6 Alarm ===
313
Xiaoling 62.2 314
Bei Jinggeng 62.1 315 Get Alarm
316
317 **Example:**
318
319 If payload is: 01:  (0001 & 0001== 1), Alarm is 1
320
321 If payload is: 00:  (0000 & 0001== 0), Alarm is 0
322
Xiaoling 50.2 323
Xiaoling 16.3 324 )))
Xiaoling 1.2 325
Xiaoling 16.4 326 == 4.4 Downlink Payload ==
Xiaoling 1.2 327
Xiaoling 26.9 328
Xiaoling 69.7 329 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:505px" %)
330 |=(% style="width: 182px;background-color:#4F81BD;color:white" %)**Downlink Control Type**|=(% style="width: 96px;background-color:#4F81BD;color:white" %)**Type Code**|=(% style="width: 227px;background-color:#4F81BD;color:white" %)**Downlink payload size(bytes)**
Xiaoling 50.8 331 |(% style="width:180px" %)TDC (Transmit Time Interval—Keep Alive Interval)|(% style="width:94px" %)0x01|(% style="width:226px" %)4
332 |(% style="width:180px" %)RESET|(% style="width:94px" %)0x04|(% style="width:226px" %)2
333 |(% style="width:180px" %)[[Set confirmed mode>>||anchor="HTypeCode0x05"]]|(% style="width:94px" %)0x05|(% style="width:226px" %)2
334 |(% style="width:180px" %)[[Clear Counting>>||anchor="HTypeCode0xA6"]]|(% style="width:94px" %)0xA6|(% style="width:226px" %)2
335 |(% style="width:180px" %)[[Enable/Disable Alarm>>||anchor="HTypeCode0xA7"]]|(% style="width:94px" %)0xA7|(% style="width:226px" %)2
336 |(% style="width:180px" %)[[Control ADR/DR>>||anchor="HTypeCode0xA8"]]|(% style="width:94px" %)0xA8|(% style="width:226px" %)3
337 |(% style="width:180px" %)[[Set Alarm Timeout>>||anchor="HTypeCode0xA9"]]|(% style="width:94px" %)0xA9|(% style="width:226px" %)4
Xiaoling 1.2 338
339 Example Downlink payload setting in TTN V3:
340
Xiaoling 17.2 341 [[image:1654673412319-976.png]]
Xiaoling 1.2 342
343
Xiaoling 69.8 344 === (% style="color:#037691" %)**Type Code 0x01**(%%) ===
Xiaoling 1.2 345
Xiaoling 43.7 346 If the payload=0100003C, means to control the LDS02’s Keep Alive interval to 0x00003C=60(S)
Xiaoling 1.2 347
348
Xiaoling 69.8 349 === (% style="color:#037691" %)**Type Code 0x04**(%%) ===
Xiaoling 1.2 350
Xiaoling 43.7 351 If payload = 0x04FF, it will reset the LDS02.
Xiaoling 1.2 352
353
Xiaoling 69.8 354 === (% style="color:#037691" %)**Type Code 0x05**(%%) ===
Xiaoling 1.2 355
Xiaoling 47.11 356 (((
Xiaoling 1.2 357 0x05 00: Set uplink to LoRaWAN unconfirmed mode
Xiaoling 47.11 358 )))
Xiaoling 1.2 359
Xiaoling 47.11 360 (((
Xiaoling 1.2 361 0x05 01: Set uplink to LoRaWAN confirmed mode
Xiaoling 47.11 362 )))
Xiaoling 1.2 363
364
Xiaoling 69.8 365 === (% style="color:#037691" %)**Type Code 0xA6**(%%) ===
Xiaoling 1.2 366
Xiaoling 47.11 367 (((
Xiaoling 1.2 368 Example: 0xA601: Clear Counting
Xiaoling 43.7 369 For LDS02: reset both count number and time.
Xiaoling 47.11 370 )))
Xiaoling 1.2 371
372
Xiaoling 69.8 373 === (% style="color:#037691" %)**Type Code 0xA7**(%%) ===
Xiaoling 1.2 374
Xiaoling 47.11 375 (((
Xiaoling 1.2 376 0xA7 01 : Equal to AT+DISALARM=1
Xiaoling 47.11 377 )))
Xiaoling 1.2 378
Xiaoling 47.11 379 (((
Xiaoling 1.2 380 0xA7 00 : Equal to AT+DISALARM=0
Xiaoling 47.11 381 )))
Xiaoling 1.2 382
383
Xiaoling 69.8 384 === (% style="color:#037691" %)**Type Code 0xA8**(%%) ===
Xiaoling 1.2 385
Xiaoling 47.11 386 (((
Xiaoling 1.2 387 Format: 0xA8 aa bb
Xiaoling 47.11 388 )))
Xiaoling 1.2 389
Xiaoling 47.11 390 (((
Xiaoling 1.2 391 aa: 1: Enable ADR; 0: Disable ADR (Same as AT+CADR command)
Xiaoling 47.11 392 )))
Xiaoling 1.2 393
Xiaoling 47.11 394 (((
Xiaoling 1.2 395 bb: set DR (Same as AT+CDATARATE ,only valid after ADR=0)
Xiaoling 47.11 396 )))
Xiaoling 1.2 397
Xiaoling 47.11 398 (((
Xiaoling 1.2 399 Example: 0x A8 00 02 : Set ADR=0 and DR=1
Xiaoling 47.11 400 )))
Xiaoling 1.2 401
402
Xiaoling 69.8 403 === (% style="color:#037691" %)**Type Code 0xA9**(%%) ===
Xiaoling 1.2 404
Xiaoling 17.7 405 See [[Alarm Base Timeout>>||anchor="H4.6AlarmBaseonTimeout"]] for detail.
Xiaoling 1.2 406
407
Xiaoling 17.8 408 == 4.5 Integrate with Datacake ==
Xiaoling 1.2 409
Xiaoling 50.2 410
Xiaoling 21.5 411 (((
Xiaoling 47.12 412 (((
Xiaoling 1.2 413 Datacake provides a human friendly interface to show the sensor data, once we have data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps:
Xiaoling 21.5 414 )))
Xiaoling 47.12 415 )))
Xiaoling 1.2 416
Xiaoling 47.12 417 (((
418
419 )))
Xiaoling 1.2 420
Xiaoling 47.12 421 (((
Xiaoling 19.2 422 (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the network at this time.
Xiaoling 47.12 423 )))
Xiaoling 1.2 424
Xiaoling 47.12 425 (((
Xiaoling 19.2 426 (% style="color:blue" %)**Step 2**(%%): To configure the Application to forward data to Datacake you will need to add integration. To add the Datacake integration, perform the following steps:
Xiaoling 47.12 427 )))
Xiaoling 1.2 428
429
Xiaoling 19.2 430 [[image:1654674520913-519.png]]
Xiaoling 1.2 431
432
Xiaoling 19.2 433 [[image:1654674530910-914.png]]
Xiaoling 1.2 434
435
Xiaoling 21.2 436 [[image:1654674543078-401.png]]
Xiaoling 1.2 437
438
Xiaoling 21.3 439 (% style="color:blue" %)**Step 3**(%%): Create an account or log in Datacake.
Xiaoling 1.2 440
Xiaoling 43.8 441 (% style="color:blue" %)**Step 4**(%%): Search LDS02 and add DevEUI.
Xiaoling 1.2 442
Xiaoling 21.2 443 [[image:1654674556510-911.png]]
Xiaoling 1.2 444
445
Xiaoling 17.8 446 == 4.6 Alarm Base on Timeout ==
Xiaoling 1.2 447
Xiaoling 50.2 448
Xiaoling 23.4 449 (((
Xiaoling 43.8 450 LDS02 can monitor the timeout for a status change, this feature can be used to monitor some event such as open fridge too long etc.
Xiaoling 23.4 451 )))
Xiaoling 1.2 452
Xiaoling 23.4 453 (((
Xiaoling 1.2 454 User configure this feature by using:
Xiaoling 23.4 455 )))
Xiaoling 1.2 456
Xiaoling 23.4 457 (((
Xiaoling 50.2 458 (% style="color:blue" %)**AT Command**(%%) **to configure:**
Xiaoling 23.4 459 )))
Xiaoling 1.2 460
Xiaoling 43.8 461 (((
Xiaoling 61.9 462 * (% style="color:red" %)**AT+TTRIG=1,30 ** (%%) **~-~->** When status change from close to open, and device keep in open
Xiaoling 23.4 463 )))
Xiaoling 1.2 464
Xiaoling 23.4 465 (((
Xiaoling 47.6 466 status for more than 30 seconds. LDS02 will send an uplink packet, the Alarm bit (the lowest bit of 10^^th^^ byte of payload) on this uplink packet is set to 1.
Xiaoling 23.4 467 )))
Xiaoling 1.2 468
Xiaoling 61.6 469
Xiaoling 43.8 470 (((
Xiaoling 61.9 471 * (% style="color:red" %)**AT+TTRIG=0,0** (%%) **~-~->**  Default Value, disable timeout Alarm.
Xiaoling 23.4 472 )))
Xiaoling 1.2 473
Xiaoling 23.4 474 (((
Xiaoling 50.2 475 (% style="color:blue" %)**Downlink Command**(%%) **to configure:**
Xiaoling 23.4 476 )))
Xiaoling 1.2 477
Xiaoling 23.4 478 (((
Xiaoling 50.2 479 **Command: (% style="color:red" %)0xA9 aa bb cc(%%)**
Xiaoling 23.4 480 )))
Xiaoling 1.2 481
Xiaoling 23.4 482 (((
Xiaoling 61.9 483 **A9: **Command Type Code
Xiaoling 23.4 484 )))
Xiaoling 1.2 485
Xiaoling 23.4 486 (((
Xiaoling 61.9 487 **aa:** status to be monitor
Xiaoling 23.4 488 )))
Xiaoling 1.2 489
Xiaoling 23.4 490 (((
Xiaoling 61.9 491 **bb cc:** timeout.
Xiaoling 23.4 492 )))
Xiaoling 1.2 493
Xiaoling 23.4 494 (((
Xiaoling 1.2 495 If user send 0xA9 01 00 1E: equal to AT+TTRIG=1,30
Xiaoling 23.4 496 )))
Xiaoling 1.2 497
Xiaoling 23.4 498 (((
Xiaoling 61.9 499 **Or**
Xiaoling 23.4 500 )))
Xiaoling 1.2 501
Xiaoling 23.4 502 (((
Xiaoling 1.2 503 0xA9 00 00 00: Equal to AT+TTRIG=0,0. Disable timeout Alarm.
Xiaoling 23.4 504 )))
Xiaoling 1.2 505
506
Xiaoling 17.8 507 == 4.7 LEDs ==
Xiaoling 1.2 508
Xiaoling 25.9 509
Xiaoling 69.7 510 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:463px" %)
511 |=(% style="width: 186px;background-color:#4F81BD;color:white" %)**Action**|=(% style="width: 277px;background-color:#4F81BD;color:white" %)**LED behavior**
Xiaoling 21.7 512 |(% style="width:184px" %)Power On|(% style="width:275px" %)(% style="color:green" %)**GREEN on 1s, **(% style="color:red" %)**RED on 1s,**(%%)** (% style="color:blue" %)BLUE on 1s(%%)**
513 |(% style="width:184px" %)Joined successful|(% style="width:275px" %)(% style="color:green" %)**GRENN LED **(%%)on 5s
514 |(% style="width:184px" %)Send an uplink message|(% style="width:275px" %)(% style="color:green" %)**GREEN LED**(%%) blinks once
515 |(% style="width:184px" %)Got a downlink message|(% style="width:275px" %)(% style="color:blue" %)**BLUE LED**(%%) blinks once
Xiaoling 1.2 516
Xiaoling 21.8 517 = 5. Battery & How to replace =
518
519 == 5.1 Battery Type and replace ==
520
Xiaoling 50.3 521
Xiaoling 22.3 522 (((
Xiaoling 43.10 523 LDS02 is equipped with 2 x AAA LR03 batteries. If the batteries running low (shows 2.1v in the platform). User can buy generic AAA battery and replace it.
Xiaoling 1.2 524
Xiaoling 48.3 525 (% style="color:red" %)**Note:**
Xiaoling 43.10 526
Xiaoling 49.4 527 1. The LDS02 doesn't have any screw, use can use nail to open it by the middle.
Xiaoling 43.10 528 1. Make sure the direction is correct when install the AAA batteries.
Xiaoling 22.3 529 )))
Xiaoling 1.2 530
Xiaoling 22.3 531 (((
Xiaoling 48.3 532 (% style="color:red" %)**Important Notice: Make sure use new AAA LR03 battery and the battery doesn't have broken surface.**
Xiaoling 22.3 533 )))
Xiaoling 1.2 534
Xiaoling 22.3 535 (((
536
537 )))
Xiaoling 1.2 538
Xiaoling 22.3 539 (((
Xiaoling 1.2 540 Example of AAA LR03 batter:
Xiaoling 22.3 541 )))
Xiaoling 1.2 542
Xiaoling 22.2 543 [[image:1654675278044-307.png]]
Xiaoling 1.2 544
545
Xiaoling 22.4 546 == 5.2 Power Consumption Analyze ==
547
Xiaoling 50.3 548
Xiaoling 26.6 549 (((
Xiaoling 1.2 550 Dragino battery powered products are all run in Low Power mode. User can check the guideline from this link to calculate the estimate battery life:
Xiaoling 26.6 551 )))
Xiaoling 1.2 552
Xiaoling 26.6 553 (((
Xiaoling 1.2 554 [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf>>url:https://www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf]]
Xiaoling 26.6 555 )))
Xiaoling 1.2 556
557
Xiaoling 22.4 558 = 6. Use AT Command =
Xiaoling 1.2 559
Xiaoling 22.4 560 == 6.1 Access AT Command ==
561
Xiaoling 50.3 562
Xiaoling 47.2 563 LDS02 supports AT Command set. User can use a USB to TTL adapter to configure LDS02 via use AT command, as below.
Xiaoling 1.2 564
Edwin Chen 53.1 565 [[image:image-20221226104705-1.png||height="572" width="872"]]
Xiaoling 1.2 566
567
Xiaoling 24.3 568 (((
Xiaoling 44.3 569 In PC, User needs to set (% style="color:#037691" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**115200**(%%) to access to access serial console of LDS02. Below is the output for reference:
Xiaoling 24.3 570 )))
Xiaoling 1.2 571
Xiaoling 24.3 572 (((
Xiaoling 24.2 573 The AT Access password is (% style="color:red" %)**123456**.
Xiaoling 24.3 574 )))
Xiaoling 1.2 575
Xiaoling 24.2 576 [[image:1654675618022-630.png]]
Xiaoling 1.2 577
Xiaoling 44.3 578
Xiaoling 26.7 579 (((
Xiaoling 24.4 580 Each AT Command need to (% style="color:red" %)**add an ENTER**(%%) at the end before send.
Xiaoling 26.7 581 )))
Xiaoling 1.2 582
Xiaoling 26.7 583 (((
Xiaoling 50.3 584 When entering the first command, the (% style="color:red" %)**RED LED**(%%) will on and user can now input AT Commands. After input all needed AT Commands, please input **AT+CLPM=1** to set the device to work in Low Power mode and (% style="color:red" %)**RED LED**(%%) will be off.
Xiaoling 26.7 585 )))
Xiaoling 1.2 586
Xiaoling 26.7 587 (((
Xiaoling 1.2 588 More detail AT Command manual can be found at [[AT Command Manual>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDS01/]]
Xiaoling 26.7 589 )))
Xiaoling 1.2 590
591
Xiaoling 1.5 592 = 7. FAQ =
593
594 == 7.1 How to upgrade the image? ==
595
Xiaoling 50.3 596
Xiaoling 64.2 597 **~1. Connect DAPLINK and LDS02**
598
Bei Jinggeng 64.1 599 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084230-4.png?rev=1.1||alt="image-20220527084230-4.png"]]
Xiaoling 1.2 600
Bei Jinggeng 64.1 601 [[image:image-20230726175624-1.jpeg||height="565" width="753"]]
Xiaoling 1.2 602
Xiaoling 64.2 603 **3.3V<~-~-~-~-->VDD**
Bei Jinggeng 64.1 604
Xiaoling 64.2 605 **CLK<~-~-~-~-~-~->CLK**
Bei Jinggeng 64.1 606
Edwin Chen 70.1 607 **DIO<~-~-~-~-~-~->DIO (SWD)**
Bei Jinggeng 64.1 608
Xiaoling 64.2 609 **GND<~-~-~-~-~-~->GND**
Bei Jinggeng 64.1 610
611
Xiaoling 64.2 612 **2. Install PSoCProgrammer 3.27.1**
Bei Jinggeng 64.1 613
614 Download Link: [[PSoCProgrammer3.27.1>>url:https://www.dragino.com/downloads/index.php?dir=tools/]]
615
616 And then use PSoCProgrammer to upgrade the firmware ( **must use this version: PSoCProgrammer3.27.1** )
617
618 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084537-7.png?rev=1.1||alt="image-20220527084537-7.png"]]
619
620
Xiaoling 64.2 621 **3. Download Sensor Firmware**
Bei Jinggeng 64.1 622
623 Downlink [[Firmware Location(same as LDS01)>>url:https://www.dropbox.com/sh/9j35mnsxnz0y3ye/AACj5gHGOURGEHCpj-E861Mua?dl=0]] to prepare the update.
624
625
Xiaoling 64.2 626 **4. Upgrade Firmware**
Bei Jinggeng 64.1 627
628 Open PSOC Programmer, select the default configuration, no need to modify
629
630 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084612-8.png?rev=1.1||alt="image-20220527084612-8.png"]]
631
632 Click the file icon to select the software to be burned:
633
634 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084705-9.png?rev=1.1||alt="image-20220527084705-9.png"]]
635
636 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084739-10.png?width=1034&height=453&rev=1.1||alt="image-20220527084739-10.png" height="453" width="1034"]]
637
638 Click the download icon, and the progress bar as shown in the figure below will appear. When PASS appears, it proves that the burning is successful.
639
640 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084831-11.png?rev=1.1||alt="image-20220527084831-11.png"]]
641
642 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/Firmware%20Upgrade%20Instruction/WebHome/image-20220527084907-12.png?rev=1.1||alt="image-20220527084907-12.png"]]
643
Xiaoling 64.2 644 (% style="color:red" %)**It is very important to press the reset button after the upgrade., this is to set the device to work in Low Power mode.**
Bei Jinggeng 64.1 645
Xiaoling 64.2 646 (% style="color:red" %)**If you change different LoRa Frequency Bands/Region, you need using AT+FDR command to restore factory data after program success.**
Bei Jinggeng 64.1 647
648
Xiaoling 1.5 649 == 7.2 How to change the LoRa Frequency Bands/Region? ==
Xiaoling 1.2 650
Xiaoling 50.3 651
Xiaoling 24.7 652 If user has for example US915 frequency and want to change it to AS923 frequency. User can follow the introduction for [[how to upgrade image>>||anchor="H7.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download.
Xiaoling 1.2 653
654
Xiaoling 1.5 655 == 7.3 Can I disable uplink for each event to save battery life? ==
656
Xiaoling 50.3 657
Xiaoling 1.2 658 Yes, User can use below method to disable this:
659
Xiaoling 47.20 660
Xiaoling 50.3 661 (% style="color:blue" %)**via AT Command**:
Xiaoling 1.2 662
Xiaoling 50.3 663 (% style="color:red" %)**AT+DISALARM=1**(%%), End node will only send packet in TDC time.
Xiaoling 1.2 664
Xiaoling 50.3 665 (% style="color:red" %)**AT+DISALARM=0**(%%), End node will send packet in TDC time or status change for door sensor. 
Xiaoling 1.2 666
Xiaoling 47.20 667
Xiaoling 50.3 668 (% style="color:blue" %)**via LoRaWAN downlink Command**:
Xiaoling 1.2 669
Xiaoling 50.3 670 (% style="color:red" %)**0xA701**(%%) : Equal to AT+DISALARM=1
Xiaoling 1.2 671
Xiaoling 50.3 672 (% style="color:red" %)**0xA700**(%%) : Equal to AT+DISALARM=0
Xiaoling 1.2 673
674
Edwin Chen 54.1 675 == 7.4 How to change Sub-Band for LDS02? ==
676
677
Xiaoling 58.2 678 (% style="color:blue" %)**Before v1.6 firmware**(%%): LDS02 works in Subband 2 by default in AU915 / US915 band. So if the LoRaWAN server works in other subband, there will be issue for LDS02 to Join the server. In this case, User can use AT COmmand to change the subband. See AT Command chapther for the hardware connection. Below are the steps to change sub-band:
Xiaoling 54.2 679
680 * Press rest button.
681 * Send (% style="color:blue" %)**123456**(%%) password
Edwin Chen 55.1 682 * Send command (% style="color:blue" %)**AT+CFREQBANDMASK=0006 **(%%)( 0001 for subband 1, 0002 for subband 2, etc..)
Xiaoling 54.2 683 * Press rest button to restart to new subband
684 * Example output:
685
Edwin Chen 54.1 686 (% class="mark small" %)[3369]DRAGINO LWL01 Device
687 [3370]Frequency Band: US915 v1.5
688 [3373]OTAA
689 [3374]DevEui= 7896785455246354
690 [3377]class type A
691 [3379]freq mode intra
692 [3381]**scan chn mask 0x0002   ~-~-> use subband 2**
693
694 (% class="mark small" %)LM502:~~# [10793]txDone
695 123456       ~-~-> ENTER PASSWORD
696 Correct Password
697
698 (% class="mark small" %)[105115]rxTimeOut
Edwin Chen 57.1 699 **AT+CFREQBANDMASK=0020 ~-~-> Change to Subband6**
Edwin Chen 54.1 700 OK
701
702 (% class="mark small" %)[3371]DRAGINO LWL01 Device
703 [3373]Frequency Band: US915 v1.5
704 [3376]OTAA
705 [3377]DevEui= 7896785455246354
706 [3380]class type A
707 [3382]freq mode intra
708 [3384]**scan chn mask 0x0001  ~-~-> reboot and works on Subband1 now**
709
Edwin Chen 58.1 710 [[image:image-20230103143821-1.png]]
Edwin Chen 54.1 711
Edwin Chen 57.1 712
Xiaoling 58.2 713 (% style="color:blue" %)**Since firmware v1.6: **(%%)LDS02 works in chn mask 0x0000. where cover all subbands. so no need to use AT Commands to change subband and it can works for every subband
Edwin Chen 54.1 714
Xiaoling 54.2 715
Edwin Chen 54.1 716 == 7.5 My sensor works for Helium AU915 before but not it doesn't work, Why? ==
717
Xiaoling 54.2 718
Edwin Chen 55.1 719 It is sub-band issue, See chapter 7.4.Helium Change the Subband for AU915 from subband2 to Subband6 which cause the sensor doesn't work.
Edwin Chen 54.1 720
721
Xiaoling 69.2 722 == 7.6 Why i see different working temperature for the device? ==
723
724
725 The working temperature range of device depends on the battery user choose.
726
727 * Normal AAA Battery can support -10 ~~ 50°C working range.
728 * Special AAA battery can support -40 ~~ 60 °C working range. For example: [[Energizer L92>>url:https://data.energizer.com/pdfs/l92.pdf]]
729
Xiaoling 1.5 730 = 8. Order Info =
Xiaoling 1.2 731
Xiaoling 50.3 732
Xiaoling 44.5 733 **Part Number: (% style="color:blue" %)LDS02-XXX(%%)**
Xiaoling 1.2 734
Xiaoling 62.3 735 (% style="color:blue" %)**XXX:**(%%) The default frequency band
Xiaoling 1.2 736
Xiaoling 1.10 737 * (% style="color:red" %)**EU433**(%%): frequency  bands EU433
738 * (% style="color:red" %)**EU868**(%%): frequency  bands EU868
739 * (% style="color:red" %)**KR920**(%%): frequency  bands KR920
Xiaoling 1.6 740 * (% style="color:red" %)**CN470**(%%): frequency bands CN470
Xiaoling 1.10 741 * (% style="color:red" %)**AS923**(%%): frequency  bands AS923
Xiaoling 1.6 742 * (% style="color:red" %)**AU915**(%%): frequency bands AU915
Xiaoling 1.10 743 * (% style="color:red" %)**US915**(%%): frequency bands  US915
744 * (% style="color:red" %)**IN865**(%%):  frequency bands  IN865
Xiaoling 1.6 745 * (% style="color:red" %)**CN779**(%%): frequency bands CN779
Xiaoling 1.2 746
Xiaoling 1.4 747 = 9. Packing Info =
748
Xiaoling 50.3 749
Xiaoling 47.13 750 (((
Xiaoling 1.2 751 **Package Includes**:
Xiaoling 47.13 752 )))
Xiaoling 1.2 753
Xiaoling 47.13 754 * (((
755 LDS02 x 1
756 )))
Xiaoling 1.2 757
Xiaoling 47.13 758 (((
Xiaoling 44.7 759 **Dimension and weight**:
Xiaoling 47.13 760 )))
Xiaoling 44.6 761
Xiaoling 47.13 762 * (((
763 Device Size: 69.2 x 29.2 x 14.8 mm
Xiaoling 47.19 764
765
Xiaoling 47.13 766 )))
Xiaoling 44.6 767
Xiaoling 31.2 768 = 10. Support =
Xiaoling 1.2 769
Xiaoling 50.3 770
Xiaoling 1.2 771 * 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.
Xiaoling 61.12 772
Xiaoling 1.2 773 * 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:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]].
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0