Show last authors
1 (% aria-label="image-20220611143226-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)
2 (((
3 (% 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"]]
4 )))
5
6 (% style="text-align:center" %)
7 [[image:image-20220617163631-2.jpeg||height="704" width="617"]]
8
9
10 **Table of Contents:**
11
12 {{toc/}}
13
14 (% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %)
15 (((
16 (% 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"]]
17 )))
18
19
20
21
22
23
24
25
26
27 = 1.  Introduction =
28
29 == 1.1 ​ What is LTC2 LoRaWAN Temperature Transmitter ==
30
31 (((
32
33
34 (((
35 (((
36 The Dragino LTC2 Industrial LoRaWAN Temperature Transmitter is designed to monitor temperature for different environment. It supports to read (% style="color:#4472c4" %)**PT100 probe**(%%) and convert the value to temperature and uplink to IoT server via LoRaWAN protocol.
37 )))
38
39 (((
40 LTC2 supports (% style="color:#4472c4" %)**Datalog feature**(%%). User can retrieve the sensor value via LoRaWAN downlink command.
41 )))
42
43 (((
44 LTC2 is powered by (% style="color:#4472c4" %)**8500mA Li-SOCI2 battery**(%%) for long time measurement. The battery can run 2~~10 years depends on the network environment and working mode.
45 )))
46
47 (((
48 Each LTC2 has (% style="color:#4472c4" %)**two internal 24-bit ADC interfaces** (%%)and are calibrated on 12 set resistors to make sure the accuracy measurement on wide range.
49 )))
50
51 (((
52 LTC2 is LoRaWAN v1.0.3 compatible. Each LTC2 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.
53 )))
54
55
56 [[image:image-20220617164020-3.png||height="450" width="1084"]]
57 )))
58
59
60 )))
61
62
63 == ​1.2  Features ==
64
65
66 * LoRaWAN v1.0.3 Class A
67 * max: 2 x monitor temperature channels
68 * Support 3 -wire PT-100
69 * 8500mAh Li-SOCI2 Battery
70 * Firmware upgrade via console
71 * Wall Mountable
72 * Configurable via LoRa or UART
73 * Datalog and retrieve via LoRaWAN
74 * Use pre-load PT100 probe or 3rd PT100 probe
75 * Factory calibration for different resistance range
76 * Support accuracy measure of resistance and upload
77 * Battery Monitoring and upload
78
79 (% style="display:none" %) ** **
80
81
82
83 == 1.3 ​ Applications ==
84
85 * Logistics and Supply Chain Management
86 * Food management
87 * Cold chains solution
88 * Industrial Monitoring and Control
89
90
91
92 == 1.4 Hardware Change log ==
93
94 LTC2 v1.0: Release.
95
96
97
98 == 1.5  Pin Definitions and Switch ==
99
100 === (% title="Click and drag to resize" %)1.5.1  J(%%)umper JP2 ( Power ON)(% 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" %)[[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" %)​(%%)​ ===
101
102 Put a jumper on JP2 will power on the LTC2.
103
104
105 === 1.5.2  LED ===
106
107 The LED will flash in below case.
108
109 1. Send an uplink packet
110
111
112
113 === 1.5.3  PT100 Interfaces ===
114
115 (((
116 There are two independent channels to connect 2 x PT100 probes.
117 )))
118
119 (((
120 Each channel has 3-wire connection for 3-wire PT100 probes.
121 )))
122
123
124 === 1.5.4  Reset Button ===
125
126 Press this button will reboot the LTC2
127
128
129 === 1.6  Probe Variant ===
130
131 LTC2 provide default probe version. See below for the variant:
132
133 (% border="1" cellspacing="10" style="background-color:#f7faff; width:505px" %)
134 |=(% style="width: 78px;" %)**Model**|=(% style="width: 117px;" %)**Photo**|=(% style="width: 314px;" %)**Description**
135 |(% style="width:78px" %)LTC2-SI|(% style="width:117px" %)[[image:1655458404877-785.png]]|(% style="width:314px" %)(((
136 Standard IP68 Probe Version
137
138 * LTC2 with 1 x Standard IP68 PT100 probe.
139 * Installation: Insert
140 * Cable Length : 2m
141 * PT100 Class : Class A
142 * Probe Dimension: 4*30mm
143 * Measure Range: -50 ~~ 200 °C
144 * Suitable Environment: General environment
145 )))
146 |(% style="width:78px" %)LTC2-LT|(% style="width:117px" %)[[image:image-20220617172838-2.png]]|(% style="width:314px" %)(((
147 Low Temperature Version
148
149 * LTC2 with 1 x Low Temperature PT100 probe.
150 * Installation: Insert
151 * Cable Length : 2m
152 * PT100 Class : Class A
153 * Probe Dimension: 4*30mm
154 * Measure Range: -196 ~~ 150 °C
155 * Suitable Environment: Low temperature measurement, such as COVID vaccine transport
156 )))
157 |(% style="width:78px" %)LTC2-FS|(% style="width:117px" %)[[image:image-20220617172838-3.png]]|(% style="width:314px" %)(((
158 Food Safety Version
159
160 * LTC2 with 1 x Food Safety PT100 probe.
161 * Installation: Insert
162 * Cable Length : 2m
163 * PT100 Class : Class A
164 * Probe Dimension: 4*150mm
165 * Measure Range: -50 ~~ 200 °C
166 * Suitable Environment: Food temperature measurement
167 )))
168 |(% style="width:78px" %)LTC2-FT|(% style="width:117px" %)(((
169 (% style="text-align:center" %)
170 [[image:image-20220617172838-4.png]]
171 )))|(% style="width:314px" %)(((
172 Flat Type Version
173
174 * LTC2 with 1 x Flat Type PT100 probe.
175 * Installation: Attached
176 * Cable Length : 2m
177 * PT100 Class : Class A
178 * Probe Dimension: 8*25mm
179 * Measure Range: -50 ~~ 200 °C
180 * Suitable Environment: Attached to the measure point.
181 )))
182 |(% style="width:78px" %)LTC2-HT|(% style="width:117px" %)[[image:image-20220617172838-5.png]]|(% style="width:314px" %)(((
183 High Temperature Version
184
185 * LTC2 with 1 x high temperature PT100 probe.
186 * Installation: Insert
187 * Cable Length : 3m
188 * PT100 Class : Class A
189 * Probe Dimension: 4*30mm
190 * Measure Range: -70 ~~ 550 °C
191
192 Suitable Environment: High Temperature
193 )))
194 |(% style="width:78px" %)LTC2-NA|(% style="width:117px" %)[[image:image-20220617172838-6.png]]|(% style="width:314px" %)(((
195 No Probe version:
196
197 * User can connect to their own PT100 Probe
198 * Grand Hole: M12
199 * Suitable Environment:
200
201 Connect to customized probe
202 )))
203
204
205
206 = 2.  How to use LTC2? =
207
208 == 2.1  Connect to PT100 sensors ==
209
210 LTC2 has different probe option provided for ordering, if user has LTC2 with probe, just skip this step. If user want to connect to a 3^^rd^^ party PT100 probe, please see [[CONNECT A 3(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)^^rd^^ PARTY PT100 probe>>||anchor="H6.A0FAQ"]](%%).
211
212
213 === 2.2  How it works? ===
214
215 (((
216 (((
217 The LTC2 is working in LoRaWAN OTAA Class A mode. Each LTC2 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 so to register. LTC2 will join the LoRaWAN network and start to transmit data. The default period for each uplink is **20 minutes**.
218 )))
219
220 (((
221 On each uplink, LTC2 will check its two ADC Interfaces and get the temperature from the sensor and send out to server.
222 )))
223 )))
224
225
226
227 == 2.3  ​Quick guide to connect to LoRaWAN server (OTAA) ==
228
229 (((
230 Here is an example for how to join the [[TTN v3 LoRaWAN >>url:https://eu1.cloud.thethings.network/]]Server. Below is the network structure, in this demo we use [[DLOS8>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]] as LoRaWAN gateway.
231
232 (% 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:1655687566853-908.png]](% title="Click and drag to resize" %)​[[image:1655687927369-781.png]]
233 )))
234
235 (% title="Click and drag to resize" %)​(%%)The DLOS8 is already set to connect to [[TTN >>url:https://eu1.cloud.thethings.network/]]. Rest we need to is register the LTC2 to TTN v3:(% 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" %)​(%%)​
236
237 (((
238
239
240 === 2.3.1 Step 1: Create a device in TTN with the OTAA keys from LTC2 ===
241
242
243
244 Below is TTN screen shot:
245
246 * Create Application first.
247 * Manually Add a LoRaWAN End Device device. Choose **OTAA** and **MAC v1.0.3**
248
249 [[image:1655690861020-685.png]]
250
251
252 [[image:1655690877643-259.png]]
253
254
255 Input the OTAA keys for LTC2.
256
257 Each LTC2 is shipped with a sticker with the default device EUI as below:
258
259 (% aria-label="image-20220607170145-1.jpeg image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220607170145-1.jpeg||data-widget="image"]]
260
261
262 * **Input these keys to device portal.**
263
264 [[image:image-20220620100853-1.png]]
265
266
267
268 * **Choose the Frequency band for this end node.**
269
270 [[image:image-20220620100853-2.png]]
271
272
273 * **Input APP Key in this page as well. **
274
275 [[image:image-20220620100853-3.png]]
276
277
278
279 Add payload formatter So TTNv3 knows how to parse the LTC2 upload value.
280
281
282 The payload for TTN can be found at below link:
283
284 [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_End_Node/LTC2/Decoder/>>https://www.dragino.com/downloads/downloads/LoRa_End_Node/LTC2/Decoder/]]
285
286
287 [[image:image-20220620100853-4.png]]
288
289
290
291
292 === 2.3.2  Step 2: Power on LTC2 ===
293
294
295 LTC2 is power off when ship from factory.
296
297 Put a Jumper on JP2 to power on the device.
298
299
300 [[image:1655691076464-442.png]]
301
302
303
304 (((
305 After power on, LTC2 will auto join to TTN network via the LoRaWAN coverage by DLOS8. After join success, LTC2 will start to update message to IoT server.
306 )))
307
308 (((
309 Below is an example uplink message which shows the LTC2 is sending Join Request to TTNv3.
310 )))
311
312
313 [[image:1655691086647-147.png]]
314
315
316 After join successful, LTC2 will send uplink message with the sensor value.
317
318 [[image:1655691100066-163.png]]
319
320 Above value shows Channel1 detect 25.94 degree. There is no PT100 connected on Channel 2, so it shows -327.67.
321
322
323 )))
324
325
326 == 2.4  ​Uplink Payload ==
327
328 (((
329 (((
330 (((
331 Below is the uplink payload which shows
332 )))
333 )))
334 )))
335
336 (((
337
338 )))
339
340 (% border="1" cellspacing="10" style="background-color:#ffffcc; width:510px" %)
341 |=(% style="width: 62.5px;" %)(((
342 **Size (bytes)**
343 )))|=(% style="width: 62.5px;" %)**2**|=**1**|=2|=2|=**4**
344 |(% style="width:62.5px" %)**Value**|(((
345 [[BAT>>||anchor="HBAT"]]
346
347
348 )))|(((
349 [[Status & EXT>>||anchor="HStatus26EXT"]]
350 )))|(((
351 [[Channel 1 data>>||anchor="HChannel1dataandChannel2data"]]
352 )))|(((
353 [[Channel 2 data>>||anchor="HChannel1dataandChannel2data"]]
354 )))|(((
355 [[Unix TimeStamp>>||anchor="HUnixTimeStamp"]]
356 )))
357
358 (% 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"]]
359
360
361 (((
362 === (% style="color:blue" %)**BAT**(%%) ===
363
364 (% class="wikigeneratedid" %)
365 Ex1: 0x0E3C ⇒ 3644 (mV) = 3.644 V
366
367 (% class="wikigeneratedid" %)
368
369 )))
370
371 (((
372 === (% style="color:blue" %)**Status & EXT**(%%) ===
373 )))
374
375 [[image:image-20220620103724-6.png]]
376
377 * (% style="color:#037691" %)**Poll Message Flag**(%%):  1: This message is a poll message reply, 0: means this is a normal uplink.
378 * (% style="color:#037691" %)**Sync time OK**(%%):  1: Set time ok,0: N/A. After time SYNC request is send, device will set this bit to 0 until got the time stamp from application server.
379 * (% style="color:#037691" %)**Unix Time Request**(%%):  1: Request server downlink Unix time, 0 : N/A. In this mode, LTC2 will set this bit to 1 every 10 day to request a time SYNC. (AT+SYNCMOD to set this)
380 * (% style="color:#037691" %)**EXT**(%%):  The decode method for Channel 1 data and Channel 2 data
381 ** 0b(0001): Upload PT100 temperature, with 2 decimals, range:  **-327.67 ~~ 327.67 ℃**
382 ** 0b(0010): Upload PT100 temperature, with 1 decimals, range: ** -3276.7 ~~ 3276.7 ℃**
383 ** 0b(0011): Upload Resistance instead of Temperature, range:  **-327.67~~ 327.67 ohm**
384
385 (((
386 (% class="wikigeneratedid" %)
387
388
389
390 === (% style="color:blue" %)**Channel1 data and Channel 2 data**(%%) ===
391 )))
392
393 (((
394 (% class="wikigeneratedid" %)
395 [[image:image-20220620103651-5.png]]
396
397
398 === (% style="color:blue" %)**Unix TimeStamp**(%%) ===
399 )))
400
401 Refer to Datalog feature.
402
403 (% style="color:#037691" %)**Example Uplink Payload**:
404
405 **Uplink payload example 1:**  0CE9011422EC2D6073E83B
406
407 * Bat voltage:0x0CE9 =3305mV
408 * Ext=0x01
409 * Channel1 temp=0x1422/100=51.54 ℃
410 * Channel2 temp=(0xEC2D-65536)/100=-50.75 ℃
411 * System timestamp=0x6073E83B= 1618208827(UTC)
412
413 **Uplink payload example 2: ** 0CED020203FE056073E697
414
415 * Bat voltage:0x0CED =3309mV
416 * Ext=0x02
417 * Channel1 temp=0x0203/10=515.4 ℃
418 * Channel2 temp=(0xFE05-65536)/10=-507.5 ℃
419 * System timestamp=0x6073E697=1618208407(UTC)
420
421 **Uplink payload example 3 :**  0CE9032EDE1F406073E967
422
423 * Bat voltage:0x0CE9 =3305mV
424 * Ext=0x03
425 * Channel1 res=0x2EDE/100=119.98 ohm
426 * Channel2 res=0x1F40/100=80.00 ohm
427 * System timestamp=0x6073E967= 1618209127(UTC)
428
429 (% 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" %)​(%%)​
430
431
432 == 2.5  Datalog Feature ==
433
434 LTC2 will auto get the time from LoRaWAN server during Join, and each uplink will then include a timestamp. When user want to retrieve sensor value, user can send a poll command from the IoT platform to ask sensor to send value in the required time slot.
435
436
437 === 2.5.1  Unix TimeStamp ===
438
439
440 LTC2 uses Unix TimeStamp format based on
441
442 [[image:1655694312268-590.png]]
443
444 Users can get this time from the link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
445
446 Below is the converter example
447
448 [[image:1655694332878-202.png]]
449
450
451 (((
452 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set current time 2021 – Jan ~-~- 29 Friday 03:03:25
453 )))
454
455
456 === 2.5.2  Set Device Time ===
457
458 (((
459 (((
460 There are two ways to set the device's time:
461 )))
462 )))
463
464 (((
465 (((
466 (% style="color:#4f81bd" %)**1. Through LoRaWAN MAC Command (Default settings)**
467 )))
468 )))
469
470 (((
471 (((
472 Users need to set SYNCMOD=1 to enable sync time via the MAC command.
473 )))
474 )))
475
476 (((
477 Once LTC2 Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and server will reply with (DeviceTimeAns) to send the current time to LTC2. If LTC2 fails to get the time from server, LTC2 will use the internal time and wait for next time request (AT+SYNCTDC to set time request period, default is 10 days).
478
479
480 )))
481
482 (((
483 (((
484 (% style="color:red" %)**Note**(%%): (% style="color:#4f81bd" %)LoRaWAN Server needs to support LoRaWAN v1.0.3(MAC v1.0.3) (%%)or higher to support this MAC command feature, Chirpstack,TTN v3 and loriot support but TTN v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN v2 if SYNCMOD=1.
485
486
487 )))
488
489 (((
490 (% style="color:#4f81bd" %)**2. Manually Set Time**
491 )))
492
493 (((
494 Users need to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
495 )))
496 )))
497
498
499
500 === 2.5.3  Poll sensor value ===
501
502 Users can poll sensor values based on timestamps. Below is the downlink command.
503
504 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:453.989px" %)
505 |=(% colspan="4" style="width: 451px;" %)**Downlink Command to poll Open/Close status (0x31)**
506 |(% style="width:59px" %)**1byte**|(% style="width:126px" %)**4bytes**|(% style="width:138px" %)**4bytes**|(% style="width:128px" %)**1byte**
507 |(% style="width:59px" %)31|(% style="width:126px" %)Timestamp start|(% style="width:138px" %)Timestamp end|(% style="width:128px" %)Uplink Interval
508
509 (((
510
511 )))
512
513 (((
514 Timestamp start and Timestamp end use Unix TimeStamp format as mentioned above. Devices will reply with all data log during this time period, use the uplink interval.
515
516 For example, downlink command[[image:image-20220620111056-7.png]]
517 )))
518
519 (((
520 Is to check 2021/5/16 01:00:00 to 2021/5/16 02:00:00's data
521
522 Uplink Internal =10s,means LTC2 will send one packet every 10s. range 5~~255s.
523 )))
524
525
526
527 === 2.5.4  Datalog Uplink payload ===
528
529 When server senser a datalog polling to LTC2, LTC2 will reply with one or more uplink messages as reply. Each uplink message includes multiply data entries value. Each entry has the same payload format as[[ normal uplink payload>>||anchor="H2.4A0200BUplinkPayload"]].
530
531
532 (% style="color:red" %)**Note:**
533
534 * Poll Message Flag is set to 1.
535 * Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands.
536
537 For example, in US915 band, the max payload for different DR is:
538
539 1. DR0: max is 11 bytes so one entry of data
540 1. DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
541 1. DR2: total payload includes 11 entries of data
542 1. DR3: total payload includes 22 entries of data.
543
544 If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0   
545
546
547 **Example:**
548
549 If LTC2 has below data inside Flash:
550
551 [[image:image-20220620134635-9.png]]
552
553
554 If user send below downlink command:
555
556 **3160A06E9060A098C00A**
557
558 Where : Start time: 60A06E90 = time 21/5/16 01:00:00
559
560 Stop time: 60A098C0 = time 21/5/16 04:00:00
561
562
563 LTC2 will uplink this payload.
564
565
566 [[image:image-20220620111850-8.png]]
567
568 (% style="color:red" %)**0E64410B49800160A072B8**(%%)0E61410B3F800160A077680E61410B33800160A07C180E64410B2C800160A080C80E64410B28800160A085780E64410B24800160A08A280E64410B23800160A08ED80E64410B22800160A09388(% style="color:red" %)**0E64410B1E800160A09838**
569
570
571 Where the first 11 bytes is for the first entry:
572
573 (% style="color:red" %)**0E64410B49800160A072B8**
574
575 Bat voltage:0x0E64 =3684mV
576
577
578 poll message flag & Ext=0x41,means reply data,Ext=1
579
580 Channel1 temp=0x0B49/100=28.89℃
581
582 Channel2 temp=0x8001/100=-327.67℃
583
584 System timestamp=0x60A072B8= 1621127864(UTC)
585
586
587
588 == 2.6  ​Alarm Mode ==
589
590 (((
591 LTC2 can monito the temperature in every CTTEMP time, when the temperature exceed the limit , it will uplink the sensor value immediately.
592
593 Detail commands see:
594
595 * [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Enable Alarm Mode**>>||anchor="H3.9EnableAlarmmode"]]
596 * [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Config Alarm Sampling Time**>>||anchor="H3.10Alarmchecktime"]]
597 * [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Set Alarm Threshold**>>||anchor="H3.11SetAlarmThreshold"]]
598
599
600 )))
601
602
603 = 3.  Configure LTC2 via AT Command or LoRaWAN Downlink =
604
605 (((
606 (((
607 Use can configure LTC2 via AT Command or LoRaWAN Downlink.
608 )))
609 )))
610
611 * (((
612 (((
613 AT Command Connection: See [[FAQ>>||anchor="H6.A0FAQ"]].
614 )))
615 )))
616 * (((
617 (((
618 LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
619 )))
620 )))
621
622 (((
623 (((
624
625 )))
626
627 (((
628 There are two kinds of commands to configure LTC2, they are:
629 )))
630 )))
631
632 * (((
633 (((
634 (% style="color:#4f81bd" %)** General Commands**.
635 )))
636 )))
637
638 (((
639 (((
640 These commands are to configure:
641 )))
642 )))
643
644 * (((
645 (((
646 General system settings like: uplink interval.
647 )))
648 )))
649 * (((
650 (((
651 LoRaWAN protocol & radio related command.
652 )))
653 )))
654
655 (((
656 (((
657 They are same for all Dragino Device which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
658 )))
659 )))
660
661 (((
662 (((
663
664 )))
665 )))
666
667 * (((
668 (((
669 (% style="color:#4f81bd" %)** Commands special design for LTC2**
670 )))
671 )))
672
673 (((
674 (((
675 These commands only valid for LTC2, as below:(% title="Click and drag to resize" %)​
676 )))
677 )))
678
679 (% 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" %)​
680
681
682
683 == 3.1  Set Transmit Interval Time ==
684
685 Feature: Change LoRaWAN End Node Transmit Interval.
686
687 (% style="color:#037691" %)**AT Command: AT+TDC**
688
689 (% aria-label="image-20220610173409-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220610173409-7.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"]](% 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" %)​(%%)​
690
691
692 (((
693 (% style="color:#037691" %)**Downlink Command: 0x01**
694 )))
695
696 (((
697 (((
698 Format: Command Code (0x01) followed by 3 bytes time value.
699
700 (((
701 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
702 )))
703
704 * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
705 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
706 )))
707 )))
708
709
710
711 == 3.2  Enable PT100 channels ==
712
713 Feature: Enable PT100 channels. Default only Enable Channel 1
714
715 (% style="color:#037691" %)**AT Command: AT+ENPTCHNUM**
716
717 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:494px" %)
718 |=(% style="width: 165px;" %)**Command Example**|=(% style="width: 254px;" %)**Function**|=(% style="width: 73px;" %)**Response**
719 |(% style="width:165px" %)AT+ENPTCHNUM=?|(% style="width:254px" %)Get current ENPTCHNUM settings|(% style="width:73px" %)(((
720 1
721
722 OK
723 )))
724 |(% style="width:165px" %)AT+ ENPTCHNUM =1|(% colspan="2" style="width:327px" %)Enable channel 1
725 |(% style="width:165px" %)AT+ ENPTCHNUM =2|(% colspan="2" style="width:327px" %)Enable channel 1 and 2
726
727 (% style="color:#037691" %)**Downlink Command: 0xA1**
728
729 Total bytes: 2 bytes
730
731 Example:
732
733 * 0xA101: same as AT+ENPTCHNUM =1
734 * 0xA102: same as AT+ENPTCHNUM =2
735
736
737
738 == 3.3  Set External Sensor Mode ==
739
740 (((
741 Feature: Change External Sensor Mode.
742 )))
743
744 (((
745 (% style="color:#037691" %)**Downlink Command: AT+EXT**
746 )))
747
748 (% 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" %)​​(% 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" %)​(%%)​
749
750 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:428px" %)
751 |=(% style="width: 155px;" %)**Command Example**|=(% style="width: 180px;" %)**Function**|=(% style="width: 90px;" %)**Response**
752 |(% style="width:155px" %)AT+EXT=?|(% style="width:180px" %)Get current EXT settings|(% style="width:90px" %)(((
753 1
754
755 OK
756 )))
757 |(% style="width:155px" %)AT+EXT=1|(% colspan="2" style="width:270px" %)Set EXT to 0b(0001)
758 |(% style="width:155px" %)AT+EXT=2|(% colspan="2" style="width:270px" %)Set EXT to 0b(0010)
759 |(% style="width:155px" %)AT+EXT=3|(% colspan="2" style="width:270px" %)Set EXT to 0b(0011)
760
761 (% style="color:#037691" %)**Downlink Command: 0xA2**
762
763 Total bytes: 2 bytes
764
765 Example:
766
767 * 0xA201: same as AT+EXT=1
768
769
770
771 == 3.4 Quit AT Command ==
772
773 Feature: Quit AT Command mode, so user need to input password again before use AT Commands.
774
775 (% style="color:#037691" %)**AT Command: AT+DISAT**
776
777 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:446px" %)
778 |=(% style="width: 161px;" %)**Command Example**|=(% style="width: 193px;" %)**Function**|=(% style="width: 87px;" %)**Response**
779 |(% style="width:161px" %)AT+DISAT|(% style="width:193px" %)Quit AT Commands mode|(% style="width:87px" %)OK
780
781 (% style="color:#037691" %)**Downlink Command:**
782
783 No downlink command for this feature.
784
785
786
787 == 3.5 Set system time ==
788
789 Feature: Set system time, unix format. [[See here for formmat detail.>>||anchor="H2.5.1A0UnixTimeStamp"]]
790
791 (% style="color:#037691" %)**AT Command:**
792
793 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:506px" %)
794 |=(% style="width: 218px;" %)**Command Example**|=(% style="width: 285px;" %)**Function**
795 |(% style="width:218px" %)AT+TIMESTAMP=1611104352|(% style="width:285px" %)(((
796 OK
797
798 Set System time to 2021-01-20 00:59:12
799 )))
800
801 (% style="color:#037691" %)**Downlink Command:**
802
803 0x306007806000  ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
804
805
806
807 == 3.6 Set Time Sync Mode ==
808
809 Feature: Enable/Disable Sync system time via LoRaWAN MAC Command (DeviceTimeReq), LoRaWAN server must support v1.0.3 protocol to reply this command.
810
811
812 SYNCMOD is set to 1 by default. If user want to set a different time from LoRaWAN server, user need to set this to 0.
813
814
815 (% style="color:#037691" %)**AT Command:**
816
817 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:473px" %)
818 |=(% style="width: 157px;" %)**Command Example**|=(% style="width: 313px;" %)**Function**
819 |(% style="width:157px" %)AT+SYNCMOD=1|(% style="width:313px" %)Enable Sync system time via LoRaWAN MAC Command (DeviceTimeReq)
820
821 (% style="color:#037691" %)**Downlink Command:**
822
823 0x28 01 ~/~/ Same As AT+SYNCMOD=1
824
825 0x28 00 ~/~/ Same As AT+SYNCMOD=0
826
827
828
829 == 3.7 Set Time Sync Interval ==
830
831 Feature: Define System time sync interval. SYNCTDC default value: 10 days.
832
833 (% style="color:#037691" %)**AT Command:**
834
835 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:469px" %)
836 |=**Command Example**|=(% style="width: 306px;" %)**Function**
837 |AT+SYNCTDC=0x0A|(% style="width:306px" %)Set SYNCTDC to 10 (0x0A), so the sync time is 10 days.
838
839 (% style="color:#037691" %)**Downlink Command:**
840
841 0x29 0A ~/~/ Same as AT+SYNCTDC=0x0A
842
843
844
845 == 3.8 Retrieve data ==
846
847 Feature: Retrieval data for specify time slot.
848
849 (% style="color:#037691" %)**AT Command**(%%)**:**
850
851 No AT Command, only valid for downlink command.
852
853
854 (% style="color:#037691" %)**Downlink Command:**
855
856 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
857
858
859
860 == 3.9 Enable Alarm mode ==
861
862 Feature: Enable Alarm Mode.
863
864 (% style="color:#037691" %)**AT Command: AT_WMOD**
865
866 Total bytes: 2
867
868 Example:
869
870 0xA500: AT+WMOD=0(default)
871
872 0xA501: AT+WMOD=1(alarm mode)
873
874
875 (% style="color:#037691" %)**Downlink Command:**
876
877 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
878
879
880
881 == 3.10 Alarm check time ==
882
883 Feature: The time interval to check sensor value for Alarm.
884
885 (% style="color:#037691" %)**AT Command: AT+CITEMP**
886
887 Total bytes: 3
888
889 Example:
890
891 0xA60001: AT+CITEMP=1(default)
892
893 Set collection interval in 1min,only in alarm mode
894
895
896 (% style="color:#037691" %)**Downlink Command:**
897
898 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
899
900
901
902 == 3.11 Set Alarm Threshold ==
903
904 Feature: Set Alarm Threshold.
905
906 (% style="color:#037691" %)**AT Command: AT+ARTEMP**
907
908 Total bytes: 9  Unit: ℃
909
910 Example:
911
912 A7FF380320FF380320
913
914 AT+ARTEMP=-200,800,-200,800
915
916
917 A7000A0064000A0065
918
919 AT+ARTEMP=10,100,10,101
920
921 Channel 1 operating temp:10~~100
922
923 Channel 2 operating temp:10~~101
924
925
926 (% style="color:#037691" %)**Downlink Command:**
927
928 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
929
930
931
932 == 3.12 Set Calibrate Value ==
933
934 Feature: Set Calibrate value for PT100 cable.  Detail of use of this command please see [[connect to a customized PT100 Probe>>||anchor="H6.2A0HowtoconnectacustomizedPT100cable3F"]].
935
936 (% style="color:#037691" %)**AT Command: AT+RCABLE**
937
938 Total bytes: 5
939
940 Example:
941
942 AT+RCABLE=296,300
943
944 Channel 1 rcable=0x0128/1000=0.296R
945
946 Channel 2 rcable=0x012C/1000=0.300R
947
948
949 (% style="color:#037691" %)**Downlink Command:**
950
951 0xA80128012C  ~-~->  Same as AT+RCABLE=296,300
952
953
954
955 == 3.13 Poll Calibrate Value ==
956
957 Feature: Poll Calibrate value. LTC2 will reply with this command send an uplink to server.
958
959 (% style="color:#037691" %)**AT Command: No AT Command.**
960
961
962 (% style="color:#037691" %)**Downlink Command:**
963
964 Example: A901
965
966 End nodes will send racable config to server
967
968 Like uplink payload: 010128012C
969
970
971
972 == 3.14 Print data entries base on page ==
973
974 Feature: Print the sector data from start page to stop page (max is 400 pages).
975
976 (% style="color:#037691" %)**AT Command: AT+PDTA**
977
978 [[image:image-20220620145822-10.png]]
979
980
981 (% style="color:#037691" %)**Downlink Command:**
982
983 No downlink commands for feature
984
985
986
987 == 3.15 Print last few data entries ==
988
989 Feature: Print the last few data entries
990
991 (% style="color:#037691" %)**AT Command: AT+PLDTA**
992
993 [[image:image-20220620145916-11.png]]
994
995
996 (% style="color:#037691" %)**Downlink Command:**
997
998 No downlink commands for feature
999
1000
1001
1002 == 3.16 Clear Flash Record ==
1003
1004 Feature: Clear flash storage for data log feature.
1005
1006 (% style="color:#037691" %)**AT Command: AT+CLRDTA**
1007
1008 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:511px" %)
1009 |=(% style="width: 157px;" %)**Command Example**|=(% style="width: 136px;" %)**Function**|=(% style="width: 213px;" %)**Response**
1010 |(% style="width:157px" %)AT+CLRDTA|(% style="width:136px" %)Clear date record|(% style="width:213px" %)(((
1011 Clear all stored sensor data…
1012
1013 OK
1014 )))
1015
1016 (% style="color:#037691" %)**Downlink Command: 0xA3**
1017
1018 * Example: 0xA301 ~/~/Same as AT+CLRDTA
1019
1020
1021
1022 = 4.  Battery & How to replace =
1023
1024 == 4.1  Battery Type ==
1025
1026 (((
1027 LTC2 is equipped with a [[8500mAH ER26500 Li-SOCI2 battery>>url:https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]]. The battery is un-rechargeable battery with low discharge rate targeting for 8~~10 years use. This type of battery is commonly used in IoT target for long-term running, such as water meter.
1028 )))
1029
1030 (((
1031 The discharge curve is not linear so can't simply use percentage to show the battery level. Below is the battery performance.
1032 )))
1033
1034 (% aria-label="1654593587246-335.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654593587246-335.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"]](% 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; left:0px; top:-15px" 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:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)​(%%)​
1035
1036
1037 Minimum Working Voltage for the LTC2:
1038
1039 LTC2:  3.0v ~~ 3.6v
1040
1041
1042
1043 == 4.2  Replace Battery ==
1044
1045 (((
1046
1047
1048 (((
1049 Any battery with 3.6v can be a replacement. We recommend to use Li-SOCl2 Battery.
1050 )))
1051 )))
1052
1053 (((
1054 (((
1055 And make sure the positive and negative pins match.
1056 )))
1057 )))
1058
1059
1060
1061 == 4.3  Power Consumption Analyze ==
1062
1063 (((
1064 Dragino Battery powered product are all runs in Low Power mode. We have an update battery calculator which base on the measurement of the real device. User can use this calculator to check the battery life and calculate the battery life if want to use different transmit interval.
1065 )))
1066
1067 (((
1068 Instruction to use as below:
1069 )))
1070
1071
1072 **Step 1 :**  Downlink the up-to-date DRAGINO_Battery_Life_Prediction_Table.xlsx from:
1073
1074 [[https:~~/~~/www.dragino.com/downloads/index.pHp?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]]
1075
1076
1077 **Step 2 :**  Open it and choose
1078
1079 * Product Model
1080 * Uplink Interval
1081 * Working Mode
1082
1083 And the Life expectation in difference case will be shown on the right.
1084
1085 (% aria-label="1654593605679-189.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654593605679-189.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"]](% 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; left:0px; top:-15px" 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:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png) rgba(220, 220, 220, 0.5); left:0px; top:-15px" 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; left:0px; top:-15px" 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:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)​(%%)​
1086
1087
1088
1089 = 5.  Firmware Change Log and Upload Firmware(% style="display:none" %) (%%) =
1090
1091 (((
1092 User can use ST-Link v2 to upgrade firmware into LTC2 for bug fix or new features. The hardware connection for upgrade firmware is as below:
1093 )))
1094
1095 (((
1096
1097 )))
1098
1099 (((
1100 **Connection:**
1101 )))
1102
1103 * (((
1104 (% style="background-color:yellow" %)**ST-LINK v2 GND  <~-~->  LTC2 GND**
1105 )))
1106 * (((
1107 (% style="background-color:yellow" %)**ST-LINK v2 RESET  <~-~->  LTC2 NRST**
1108 )))
1109 * (((
1110 (% style="background-color:yellow" %)**ST-LINK v2 SWCLK  <~-~->  LTC2 SWCLK**
1111 )))
1112 * (((
1113 (% style="background-color:yellow" %)**ST-LINK v2 SWDIO  <~-~->  LTC2 SWDIO**
1114 )))
1115 * (((
1116 (% style="background-color:yellow" %)**LTC2 power must be on.  **
1117 )))
1118
1119 (((
1120
1121
1122 **Firmware Location and Change Log:**
1123 )))
1124
1125 (((
1126 [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LTC2/Firmware/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LTC2/Firmware/]]
1127 )))
1128
1129
1130
1131 = 6.  FAQ =
1132
1133 == 6.1  How to use AT Command to configure LTC2 ==
1134
1135 LTC2 supports AT Command set. User can use a USB to TTL adapter plus the Program Cable to connect to LTC2 for using AT command, as below.
1136
1137
1138 **Connection:**
1139
1140 * (% style="background-color:yellow" %)**USB to TTL GND <~-~->  LTC2 GND**
1141 * (% style="background-color:yellow" %)**USB to TTL RXD  <~-~->  LTC2 TXD**
1142 * (% style="background-color:yellow" %)**USB to TTL TXD  <~-~->  LTC2 RXD**
1143
1144 (((
1145 In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console for LTC2. The AT commands are disable by default and need to enter password (default: (% style="color:green" %)**123456**)(%%) to active it. Timeout to input AT Command is 5 min, after 5-minute, user need to input password again. User can use AT+DISAT command to disable AT command before timeout.
1146 )))
1147
1148 (((
1149
1150 )))
1151
1152 (((
1153 Input password and ATZ to activate LTC2,As shown below:
1154 )))
1155
1156 [[image:image-20220620151601-13.png||height="454" width="1204"]]
1157
1158
1159
1160
1161 == 6.2  How to connect a customized PT100 cable? ==
1162
1163 (((
1164 The LTC2 has two channels means it can connect 2 x PT100 cables. Besides use the PT100 cables provided by Dragino, User can connect their PT100 probes. When connect to a user PT100 probe, we recommend that user do a calibration to eliminate the effect from the cables so to get the best accuracy. Below is the step for calibrate on a (% style="color:blue" %)**three wire PT100** (%%)probes. There is no step for 2 wire probe calibration at the moment. 
1165 )))
1166
1167 (((
1168
1169 )))
1170
1171 (((
1172 (% style="color:blue" %)**Step 1**(%%)**: **You need a multimeter can measure the accuracy of 0.001 ohm. We use Agilent 34401A digit multimeter. And will do test to make sure the multimeter accuracy before the measurement. Check the shortcut resistance of the multimeter.
1173 )))
1174
1175 [[image:image-20220620152115-14.jpeg||height="548" width="763"]]
1176
1177 We know that the Multimeter has a shortcut resistance 0.002 ohm.
1178
1179
1180 (% style="color:blue" %)**Step 2**(%%): Measure the resistance between the two shorted wires of PT100 Probe.
1181
1182 [[image:image-20220620152115-15.jpeg||height="791" width="704"]]
1183
1184 As example, in this step, we check the shorted wire (both red) with 0.594 ohm, So we know that each wire of PT100 has (0.594-0.002)/2=0.296R (Where 0.002 is the value we got from step 1) .
1185
1186
1187 (% style="color:blue" %)**Step 3**(%%): Run Calibrate Command.
1188
1189 Run this command to both channels to use 0.296R calibrate resistance.
1190
1191 **AT+RCABLE=296,0**   ~-~->  Calibrate Channel 1 with 0.296R
1192
1193
1194 Or use LoRaWAN downlink command (0xA8 Code) to set:
1195
1196 0xA801280000
1197
1198
1199 User can use 0xA9 downlink command to poll the current calibration value.
1200
1201
1202 (% style="color:blue" %)**Step 4**(%%)**: **Connect the PT100 to LTC2
1203
1204 [[image:image-20220620152115-16.png]]
1205
1206 For a 3 wire PT100, there are two wire are shortcut, for example, as per above photo Channel 1, there are two red wire , which are shortcut in PT100, connect them as the photo. The 3^^rd^^ wire (white wire ) connect to the left pin of Channel -1.
1207
1208
1209
1210 == 6.3  What is the frequency range of LTC2 LoRa part? ==
1211
1212 Different LTC2 version supports different frequency range, below is the table for the working frequency and recommend bands for each model:
1213
1214 [[image:image-20220620151440-12.png]]
1215
1216
1217
1218 == 6.4  How to change the LoRa Frequency Bands/Region ==
1219
1220 You can follow the instructions for [[how to upgrade image>>||anchor="H5.A0FirmwareChangeLogandUploadFirmware"]].
1221 When downloading the images, choose the required image file for download. ​
1222
1223
1224
1225 = 7.  Trouble Shooting =
1226
1227 == 7.1  AT Command input doesn't work ==
1228
1229 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.
1230
1231 (((
1232
1233 )))
1234
1235
1236 = 8.  Order Info =
1237
1238 Part Number **:** (% style="color:blue" %)**LTC2-XX-YYY**
1239
1240 (% style="color:#0000ff" %)**XX**(%%)**: **Probe Version
1241
1242 * (% style="color:red" %)**SI**(%%):  Standard IP68 probe x 1
1243 * (% style="color:red" %)**LT**(%%):  Low Temperature probe x 1
1244 * (% style="color:red" %)**HT**(%%): High Temperature probe x 1
1245 * (% style="color:red" %)**FS**(%%):  Food Safety probe x 1
1246 * (% style="color:red" %)**FT**(%%):  Flat Type probe x 1
1247 * (% style="color:red" %)**NA**(%%): No probe
1248
1249 (% style="color:#0000ff" %)**YYY**(%%)**: **The default frequency band
1250
1251 * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band
1252 * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band
1253 * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band
1254 * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band
1255 * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band
1256 * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band
1257 * (% style="color:red" %)**IN865 **(%%)**:**  LoRaWAN IN865 band
1258 * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band
1259
1260
1261 = 9. ​ Packing Info =
1262
1263
1264 **Package Includes**:
1265
1266 * LTC2 LoRaWAN Temperature Transmitter x 1
1267
1268 **Dimension and weight**:
1269
1270 * Device Size: cm
1271 * Device Weight: g
1272 * Package Size / pcs : cm
1273 * Weight / pcs : g
1274
1275
1276 = 10.  ​Support =
1277
1278 * 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.
1279 * 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-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0