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="314" width="756"]]
57 )))
58 )))
59
60
61 == ​1.2  Features ==
62
63
64 * LoRaWAN v1.0.3 Class A
65 * max: 2 x monitor temperature channels
66 * Support 3 -wire PT-100
67 * 8500mAh Li-SOCI2 Battery
68 * Firmware upgrade via console
69 * Wall Mountable
70 * Configurable via LoRa or UART
71 * Datalog and retrieve via LoRaWAN
72 * Use pre-load PT100 probe or 3rd PT100 probe
73 * Factory calibration for different resistance range
74 * Support accuracy measure of resistance and upload
75 * Battery Monitoring and upload
76 * Operation Temperature: -40 ~~ 65 ℃
77
78 (% style="display:none" %) ** **
79
80
81
82 == 1.3 ​ Applications ==
83
84
85 * Logistics and Supply Chain Management
86 * Food management
87 * Cold chains solution
88 * Industrial Monitoring and Control
89
90 == 1.4 Hardware Change log ==
91
92
93 LTC2 v1.0: Release.
94
95
96 == 1.5  Pin Definitions and Switch ==
97
98 === (% title="Click and drag to resize" %)1.5.1  J(%%)umper JP2 ( Power ON) ===
99
100 (% class="wikigeneratedid" id="H200B200B200B200B" %)
101 (% 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" %)​(%%)​
102
103 Put a jumper on JP2 will power on the LTC2.
104
105
106 === 1.5.2  LED ===
107
108
109 The LED will flash in below case.
110
111 (((
112 1.  Send an uplink packet
113
114
115 )))
116
117 === 1.5.3  PT100 Interfaces ===
118
119
120 (((
121 There are two independent channels to connect 2 x PT100 probes.
122 )))
123
124 (((
125 Each channel has 3-wire connection for 3-wire PT100 probes.
126 )))
127
128
129 === 1.5.4  Reset Button ===
130
131
132 Press this button will reboot the LTC2
133
134
135 == 1.6  Probe Variant ==
136
137
138 LTC2 provide default probe version. See below for the variant:
139
140
141 (% border="1" cellspacing="4" style="width:505px" %)
142 |=(% style="width: 78px;background-color:#4F81BD;color:white" %)(((
143 **Model**
144 )))|=(% style="width: 127px;background-color:#4F81BD;color:white" %)(((
145 **Photo**
146 )))|=(% style="width: 300px;background-color:#4F81BD;color:white" %)(((
147 **Description**
148 )))
149 |(% style="width:78px" %)(((
150 LTC2-SI
151 )))|(% style="width:117px" %)(((
152 (% style="text-align:center" %)
153 [[image:1655458404877-785.png]]
154 )))|(% style="width:314px" %)(((
155 Standard IP68 Probe Version
156
157 * (((
158 LTC2 with 1 x Standard IP68 PT100 probe.
159 )))
160 * (((
161 Installation: Insert
162 )))
163 * (((
164 Cable Length : 2m
165 )))
166 * (((
167 PT100 Class : Class A
168 )))
169 * (((
170 Probe Dimension: 4*30mm
171 )))
172 * (((
173 Measure Range: -50 ~~ 200 °C
174 )))
175 * (((
176 Suitable Environment: General environment
177 )))
178 )))
179 |(% style="width:78px" %)(((
180 LTC2-LT
181 )))|(% style="width:117px" %)(((
182 (% style="text-align:center" %)
183 [[image:image-20220617172838-2.png]]
184 )))|(% style="width:314px" %)(((
185 Low Temperature Version
186
187 * (((
188 LTC2 with 1 x Low Temperature PT100 probe.
189 )))
190 * (((
191 Installation: Insert
192 )))
193 * (((
194 Cable Length : 2m
195 )))
196 * (((
197 PT100 Class : Class A
198 )))
199 * (((
200 Probe Dimension: 4*30mm
201 )))
202 * (((
203 Measure Range: -196 ~~ 150 °C
204 )))
205 * (((
206 Suitable Environment: Low temperature measurement, such as COVID vaccine transport
207 )))
208 )))
209 |(% style="width:78px" %)(((
210 LTC2-FS
211 )))|(% style="width:117px" %)(((
212 (% style="text-align:center" %)
213 [[image:image-20220617172838-3.png]]
214 )))|(% style="width:314px" %)(((
215 Food Safety Version
216
217 * (((
218 LTC2 with 1 x Food Safety PT100 probe.
219 )))
220 * (((
221 Installation: Insert
222 )))
223 * (((
224 Cable Length : 2m
225 )))
226 * (((
227 PT100 Class : Class A
228 )))
229 * (((
230 Probe Dimension: 4*150mm
231 )))
232 * (((
233 Measure Range: -50 ~~ 200 °C
234 )))
235 * (((
236 Suitable Environment: Food temperature measurement
237 )))
238 )))
239 |(% style="width:78px" %)LTC-FSA|(% style="width:117px" %)(((
240 (% style="text-align:center" %)
241 [[image:image-20221222182717-1.jpeg]]
242 )))|(% style="width:314px" %)(((
243 Food Safety Version
244
245 * (((
246 LTC2 with 1 x Food Safety PT100 probe.
247 )))
248 * (((
249 Installation: Insert
250 )))
251 * (((
252 Cable Length : 2m
253 )))
254 * (((
255 PT100 Class : Class A
256 )))
257 * (((
258 Probe Dimension: 4*150mm
259 )))
260 * (((
261 Measure Range: -50 ~~ 200 °C
262 )))
263 * (((
264 Suitable Environment: Food temperature measurement
265 )))
266 )))
267 |(% style="width:78px" %)(((
268 LTC2-FT
269 )))|(% style="width:117px" %)(((
270 (% style="text-align:center" %)
271 [[image:image-20220617172838-4.png]]
272 )))|(% style="width:314px" %)(((
273 Flat Type Version
274
275 * LTC2 with 1 x Flat Type PT100 probe.
276 * Installation: Attached
277 * Cable Length : 2m
278 * PT100 Class : Class A
279 * Probe Dimension: 8*25mm
280 * Measure Range: -50 ~~ 200 °C
281 * Suitable Environment: Attached to the measure point.
282 )))
283 |(% style="width:78px" %)LTC2-HT|(% style="width:117px" %)(((
284 (% style="text-align:center" %)
285 [[image:image-20220617172838-5.png]]
286 )))|(% style="width:314px" %)(((
287 High Temperature Version
288
289 * LTC2 with 1 x high temperature PT100 probe.
290 * Installation: Insert
291 * Cable Length : 3m
292 * PT100 Class : Class A
293 * Probe Dimension: 4*30mm
294 * Measure Range: -70 ~~ 550 °C
295
296 Suitable Environment: High Temperature
297 )))
298 |(% style="width:78px" %)LTC2-NA|(% style="width:117px" %)(((
299 (% style="text-align:center" %)
300 [[image:image-20220617172838-6.png]]
301 )))|(% style="width:314px" %)(((
302 No Probe version:
303
304 * User can connect to their own PT100 Probe
305 * Grand Hole: M12
306 * Suitable Environment:
307
308 Connect to customized probe
309 )))
310
311 = 2.  How to use LTC2? =
312
313 == 2.1  Connect to PT100 sensors ==
314
315
316 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"]](%%).
317
318
319 == 2.2  How it works? ==
320
321
322 (((
323 (((
324 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**.
325 )))
326
327 (((
328 On each uplink, LTC2 will check its two ADC Interfaces and get the temperature from the sensor and send out to server.
329 )))
330 )))
331
332
333 == 2.3  ​Quick guide to connect to LoRaWAN server (OTAA) ==
334
335
336 (((
337 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.
338
339 (% 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||height="311" width="751"]]
340 )))
341
342 (% 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" %)​(%%)​
343
344 (((
345
346
347 === 2.3.1 Step 1: Create a device in TTN with the OTAA keys from LTC2 ===
348
349
350
351 Below is TTN screen shot:
352
353 * Create Application first.
354 * Manually Add a LoRaWAN End Device device. Choose **OTAA** and **MAC v1.0.3**
355
356 [[image:1655690861020-685.png]]
357
358
359 [[image:1655690877643-259.png]]
360
361
362 Input the OTAA keys for LTC2.
363
364 Each LTC2 is shipped with a sticker with the default device EUI as below:
365
366 [[image:image-20230426083905-2.png]]
367
368
369 * **Input these keys to device portal.**
370
371 [[image:image-20220620100853-1.png]]
372
373
374
375 * **Choose the Frequency band for this end node.**
376
377 [[image:image-20220620100853-2.png]]
378
379
380 * **Input APP Key in this page as well. **
381
382 [[image:image-20220620100853-3.png]]
383
384
385 Add payload formatter So TTNv3 knows how to parse the LTC2 upload value.
386
387 The payload for TTN can be found at below link:  [[ttps:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
388
389
390 [[image:image-20220620100853-4.png||height="496" width="1097"]]
391
392
393 === 2.3.2  Step 2: Power on LTC2 ===
394
395
396 LTC2 is power off when ship from factory.
397
398 Put a Jumper on JP2 to power on the device.
399
400
401 [[image:1655691076464-442.png]]
402
403
404 (((
405 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.
406 )))
407
408 (((
409 Below is an example uplink message which shows the LTC2 is sending Join Request to TTNv3.
410 )))
411
412
413 [[image:1655691086647-147.png]]
414
415
416 After join successful, LTC2 will send uplink message with the sensor value.
417
418 [[image:1655691100066-163.png]]
419
420 Above value shows Channel1 detect 25.94 degree. There is no PT100 connected on Channel 2, so it shows -327.67.
421 )))
422
423
424 == 2.4  ​Uplink Payload ==
425
426
427 Below is the uplink payload which shows.
428
429 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %)
430 |=(% style="width: 70px;background-color:#4F81BD;color:white" %)(((
431 **Size(bytes)**
432 )))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 70px;background-color:#4F81BD;color:white" %)**1**|=(% style="width: 70px;background-color:#4F81BD;color:white" %)2|=(% style="width: 70px;background-color:#4F81BD;color:white" %)2|=(% style="width: 70px;background-color:#4F81BD;color:white" %)**4**
433 |(% style="width:62.5px" %)Value|(((
434 [[BAT>>||anchor="HBAT"]]
435 )))|(((
436 [[Status & EXT>>||anchor="HStatus26EXT"]]
437 )))|(((
438 [[Channel 1 data>>||anchor="HChannel1dataandChannel2data"]]
439 )))|(((
440 [[Channel 2 data>>||anchor="HChannel1dataandChannel2data"]]
441 )))|(((
442 [[Unix TimeStamp>>||anchor="HUnixTimeStamp"]]
443 )))
444
445 (% 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"]]
446
447
448 (((
449 === (% style="color:blue" %)**BAT**(%%) ===
450
451
452 Ex1: 0x0E3C ⇒ 3644 (mV) = 3.644 V
453
454 (% class="wikigeneratedid" %)
455
456 )))
457
458 (((
459 === (% style="color:blue" %)**Status & EXT**(%%) ===
460 )))
461
462 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
463 |(% style="background-color:#4f81bd; color:white; width:60px" %)**Bits**|(% style="background-color:#4f81bd; color:white; width:90px" %)**7**|(% style="background-color:#4f81bd; color:white; width:100px" %)**6**|(% style="background-color:#4f81bd; color:white; width:90px" %)**5**|(% style="background-color:#4f81bd; color:white; width:100px" %)**4**|(% style="background-color:#4f81bd; color:white; width:60px" %)**[3:0]**
464 |(% style="width:96px" %)Status&Ext|(% style="width:124px" %)Not Defined|(% style="width:146px" %)Poll Message FLAG|(% style="width:109px" %)Sync time OK|(% style="width:143px" %)Unix Time Request|(% style="width:106px" %)Ext: 0b(1001)
465
466 * (% style="color:#037691" %)**Poll Message Flag**(%%):  1: This message is a poll message reply, 0: means this is a normal uplink.
467 * (% 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.
468 * (% 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)
469 * (% style="color:#037691" %)**EXT**(%%):  The decode method for Channel 1 data and Channel 2 data
470 ** 0b(0001): Upload PT100 temperature, with 2 decimals, range:  **-327.67 ~~ 327.67 ℃**
471 ** 0b(0010): Upload PT100 temperature, with 1 decimals, range: ** -3276.7 ~~ 3276.7 ℃**
472 ** 0b(0011): Upload Resistance instead of Temperature, range:  **-327.67~~ 327.67 ohm**
473
474 (((
475 (% class="wikigeneratedid" %)
476
477
478
479 === (% style="color:blue" %)**Channel 1 data and Channel 2 data**(%%) ===
480
481 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %)
482 |(% style="background-color:#4f81bd; color:white; width:150px" %)**Example Payload on channel 1 or channel 2**|(% style="background-color:#4f81bd; color:white; width:130px" %)**Sensor Value when EXT=0b(0001)**|(% style="background-color:#4f81bd; color:white; width:127.5px" %)**Sensor Value when EXT=0b(0010)**|(% style="background-color:#4f81bd; color:white; width:107.5px" %)**Sensor Value when EXT=0b(0011)**
483 |(% style="width:139px" %)0x1422|(% style="width:142px" %)0x1422/100=51.54℃|(% style="width:155px" %)0x1422/100=515.4℃|(% style="width:148px" %)0x1422/100=51.54Ω
484 |(% style="width:139px" %)OXEC2D|(% style="width:142px" %)(0XEC2D-65536)/100=-50.75℃|(% style="width:155px" %)(0XEC2D-65536)/10=-507.5℃|(% style="width:148px" %)0XEC2D/100=604.61Ω
485 )))
486
487 (((
488 (% class="wikigeneratedid" %)
489
490
491 === (% style="color:blue" %)**Unix TimeStamp**(%%) ===
492 )))
493
494 Refer to Datalog feature.
495
496 (% style="color:#037691" %)**Example Uplink Payload**:
497
498
499 **Uplink payload example 1:**  0CE9011422EC2D6073E83B
500
501 * Bat voltage:0x0CE9 =3305mV
502 * Ext=0x01
503 * Channel1 temp=0x1422/100=51.54 ℃
504 * Channel2 temp=(0xEC2D-65536)/100=-50.75 ℃
505 * System timestamp=0x6073E83B= 1618208827(UTC)
506
507 If payload is: EC2DH : (EC2D & 8000 == 1), temp = (EC2DH - 65536)/100 = -50.75 ℃
508
509 (EC2D & 8000: Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
510
511
512 **Uplink payload example 2: ** 0CED020203FE056073E697
513
514 * Bat voltage:0x0CED =3309mV
515 * Ext=0x02
516 * Channel1 temp=0x0203/10=515.4 ℃
517 * Channel2 temp=(0xFE05-65536)/10=-507.5 ℃
518 * System timestamp=0x6073E697=1618208407(UTC)
519
520 If payload is: FE05H :  (FE05 & 8000 == 1) , temp = (FE05H - 65536)/100 = 507.5 ℃
521
522 (EC2D & 8000: Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
523
524
525 **Uplink payload example 3 :**  0CE9032EDE1F406073E967
526
527 * Bat voltage:0x0CE9 =3305mV
528 * Ext=0x03
529 * Channel1 res=0x2EDE/100=119.98 ohm
530 * Channel2 res=0x1F40/100=80.00 ohm
531 * System timestamp=0x6073E967= 1618209127(UTC)
532
533 (% 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" %)​(%%)​
534
535
536 == 2.5  Datalog Feature ==
537
538
539 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.
540
541
542 === 2.5.1  Unix TimeStamp ===
543
544
545 LTC2 uses Unix TimeStamp format based on
546
547 [[image:1655694312268-590.png]]
548
549
550 Users can get this time from the link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
551
552 Below is the converter example
553
554 [[image:1655694332878-202.png]]
555
556
557 (((
558 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set current time 2021 – Jan ~-~- 29 Friday 03:03:25
559 )))
560
561
562 === 2.5.2  Set Device Time ===
563
564
565 (((
566 (((
567 There are two ways to set the device's time:
568 )))
569 )))
570
571 (((
572 (((
573 (% style="color:#4f81bd" %)**1. Through LoRaWAN MAC Command (Default settings)**
574 )))
575 )))
576
577 (((
578 (((
579 Users need to set SYNCMOD=1 to enable sync time via the MAC command.
580 )))
581 )))
582
583 (((
584 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).
585
586
587 )))
588
589 (((
590 (((
591 (% 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.
592
593
594 )))
595
596 (((
597 (% style="color:#4f81bd" %)**2. Manually Set Time**
598 )))
599
600 (((
601 Users need to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
602 )))
603 )))
604
605
606 === 2.5.3  Poll sensor value ===
607
608
609 Users can poll sensor values based on timestamps. Below is the downlink command.
610
611 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:431px" %)
612 |=(% colspan="4" style="width: 428px;background-color:#4F81BD;color:white" %)**Downlink Command to poll Open/Close status (0x31)**
613 |(% style="width:60px" %)**1byte**|(% style="width:127px" %)**4bytes**|(% style="width:122px" %)**4bytes**|(% style="width:116px" %)**1byte**
614 |(% style="width:60px" %)31|(% style="width:127px" %)Timestamp start|(% style="width:122px" %)Timestamp end|(% style="width:116px" %)Uplink Interval
615
616 (((
617
618 )))
619
620 (((
621 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.
622
623 For example, downlink command[[image:image-20220620111056-7.png]]
624 )))
625
626 (((
627 Is to check 2021/5/16 01:00:00 to 2021/5/16 02:00:00's data
628
629 Uplink Internal =10s,means LTC2 will send one packet every 10s. range 5~~255s.
630 )))
631
632
633 === 2.5.4  Datalog Uplink payload ===
634
635
636 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"]].
637
638
639 (% style="color:red" %)**Note:**
640
641 * Poll Message Flag is set to 1.
642 * Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands.
643
644 For example, in US915 band, the max payload for different DR is:
645
646 1. **DR0: **max is 11 bytes so one entry of data
647 1. **DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
648 1. **DR2:** total payload includes 11 entries of data
649 1. **DR3:** total payload includes 22 entries of data.
650
651 If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0   
652
653
654 **Example:**
655
656 If LTC2 has below data inside Flash:
657
658 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
659 |(% style="background-color:#4f81bd; color:white; width:88px" %)**Flash Add**|(% style="background-color:#4f81bd; color:white; width:151px" %)**Unix Time**|(% style="background-color:#4f81bd; color:white; width:38px" %)**Ext**|(% style="background-color:#4f81bd; color:white; width:107px" %)**BAT voltage**|(% style="background-color:#4f81bd; color:white; width:126px" %)**Value**
660 |(% style="width:88px" %)8021630|(% style="width:151px" %)systime= 2021/5/16 01:17:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %)Temp1=28.89 Temp2=-327.67
661 |(% style="width:88px" %)8021640|(% style="width:151px" %)systime= 2021/5/16 01:37:44|(% style="width:38px" %)1|(% style="width:107px" %)3681|(% style="width:123px" %)Temp1=28.79 Temp2=-327.67
662 |(% style="width:88px" %)8021650|(% style="width:151px" %)systime= 2021/5/16 01:57:44|(% style="width:38px" %)1|(% style="width:107px" %)3681|(% style="width:123px" %)Temp1=28.67 Temp2=-327.67
663 |(% style="width:88px" %)8021660|(% style="width:151px" %)systime= 2021/5/16 02:17:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %)Temp1=28.60 Temp2=-327.67
664 |(% style="width:88px" %)8021670|(% style="width:151px" %)systime= 2021/5/16 02:37:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %)Temp1=28.56 Temp2=-327.67
665 |(% style="width:88px" %)8021680|(% style="width:151px" %)systime= 2021/5/16 02:57:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %)Temp1=28.52 Temp2=-327.67
666 |(% style="width:88px" %)8021690|(% style="width:151px" %)systime= 2021/5/16 03:17:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %)Temp1=28.51 Temp2=-327.67
667 |(% style="width:88px" %)80216A0|(% style="width:151px" %)systime= 2021/5/16 03:37:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %)Temp1=28.50 Temp2=-327.67
668 |(% style="width:88px" %)80216B0|(% style="width:151px" %)systime= 2021/5/16 03:57:44|(% style="width:38px" %)1|(% style="width:107px" %)3684|(% style="width:123px" %) Temp1=28.46 Temp2=-327.67
669
670 If user send below downlink command: **3160A06E9060A098C00A**
671
672 Where : Start time: 60A06E90 = time 21/5/16 01:00:00
673
674 Stop time: 60A098C0 = time 21/5/16 04:00:00
675
676
677 LTC2 will uplink this payload.
678
679
680 [[image:image-20220620111850-8.png||height="223" width="1125"]](% style="display:none" %)
681
682
683 (% style="color:red" %)**0E64410B49800160A072B8**(%%)0E61410B3F800160A077680E61410B33800160A07C180E64410B2C800160A080C80E64410B28800160A085780E64410B24800160A08A280E64410B23800160A08ED80E64410B22800160A09388(% style="color:red" %)**0E64410B1E800160A09838**
684
685
686 Where the first 11 bytes is for the first entry:
687
688 (% style="color:red" %)**0E64410B49800160A072B8**
689
690 Bat voltage: 0x0E64 =3684mV
691
692
693 poll message flag & Ext=0x41,means reply data,Ext=1
694
695 Channel1 temp=0x0B49/100=28.89℃
696
697 Channel2 temp=0x8001/100=-327.67℃
698
699 System timestamp=0x60A072B8= 1621127864(UTC)
700
701
702 == 2.6  ​Alarm Mode ==
703
704
705 (((
706 LTC2 can monito the temperature in every CTTEMP time, when the temperature exceed the limit , it will uplink the sensor value immediately.
707
708 Detail commands see:
709
710 * [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Enable Alarm Mode**>>||anchor="H3.9EnableAlarmmode"]]
711 * [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Config Alarm Sampling Time**>>||anchor="H3.10Alarmchecktime"]]
712 * [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Set Alarm Threshold**>>||anchor="H3.11SetAlarmThreshold"]]
713
714
715 )))
716
717
718 = 3.  Configure LTC2 via AT Command or LoRaWAN Downlink =
719
720
721 (((
722 (((
723 Use can configure LTC2 via AT Command or LoRaWAN Downlink.
724 )))
725 )))
726
727 * (((
728 (((
729 AT Command Connection: See [[FAQ>>||anchor="H6.A0FAQ"]].
730 )))
731 )))
732 * (((
733 (((
734 LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
735 )))
736 )))
737
738 (((
739 (((
740
741 )))
742
743 (((
744 There are two kinds of commands to configure LTC2, they are:
745 )))
746 )))
747
748 * (((
749 (((
750 (% style="color:#4f81bd" %)** General Commands**.
751 )))
752 )))
753
754 (((
755 (((
756 These commands are to configure:
757 )))
758 )))
759
760 * (((
761 (((
762 General system settings like: uplink interval.
763 )))
764 )))
765 * (((
766 (((
767 LoRaWAN protocol & radio related command.
768 )))
769 )))
770
771 (((
772 (((
773 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]]
774 )))
775 )))
776
777 (((
778 (((
779
780 )))
781 )))
782
783 * (((
784 (((
785 (% style="color:#4f81bd" %)** Commands special design for LTC2**
786 )))
787 )))
788
789 (((
790 (((
791 These commands only valid for LTC2, as below:(% title="Click and drag to resize" %)​
792 )))
793 )))
794
795 (% 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" %)​
796
797
798 == 3.1  Set Transmit Interval Time ==
799
800
801 Feature: Change LoRaWAN End Node Transmit Interval.
802
803 (% style="color:#037691" %)**AT Command: AT+TDC**
804
805 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %)
806 |(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:166px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:180px" %)**Response**
807 |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)(((
808 30000
809 OK
810 the interval is 30000ms = 30s
811 )))
812 |(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)(((
813 OK
814 Set transmit interval to 60000ms = 60 seconds
815 )))
816
817 (((
818 (% style="color:#037691" %)**Downlink Command: 0x01**
819 )))
820
821 (((
822 (((
823 Format: Command Code (0x01) followed by 3 bytes time value.
824
825 (((
826 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
827 )))
828
829 * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
830 * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
831 )))
832 )))
833
834
835
836 == 3.2  Enable PT100 channels ==
837
838
839 Feature: Enable PT100 channels. Default only Enable Channel 1
840
841 (% style="color:#037691" %)**AT Command: AT+ENPTCHNUM**
842
843 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:494px" %)
844 |=(% style="width: 164px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 254px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 76px;background-color:#4F81BD;color:white" %)**Response**
845 |(% style="width:164px" %)AT+ENPTCHNUM=?|(% style="width:254px" %)Get current ENPTCHNUM settings|(% colspan="1" rowspan="3" style="width:74px" %)(((
846 1
847
848 OK
849 )))
850 |(% style="width:164px" %)AT+ ENPTCHNUM =1|(% colspan="1" style="width:254px" %)Enable channel 1
851 |(% style="width:164px" %)AT+ ENPTCHNUM =2|(% colspan="1" style="width:254px" %)Enable channel 1 and 2
852
853 (% style="color:#037691" %)**Downlink Command: 0xA1**
854
855 Total bytes: 2 bytes
856
857 Example:
858
859 * 0xA101: same as AT+ENPTCHNUM =1
860 * 0xA102: same as AT+ENPTCHNUM =2
861
862 == 3.3  Set External Sensor Mode ==
863
864
865 (((
866 Feature: Change External Sensor Mode.
867 )))
868
869 (((
870 (% style="color:#037691" %)**Downlink Command: AT+EXT**
871 )))
872
873 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:431px" %)
874 |=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 184px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 89px;background-color:#4F81BD;color:white" %)**Response**
875 |(% style="width:155px" %)AT+EXT=?|(% style="width:180px" %)Get current EXT settings|(% colspan="1" rowspan="4" style="width:86px" %)(((
876 1
877 OK
878 )))
879 |(% style="width:155px" %)AT+EXT=1|(% colspan="1" style="width:180px" %)Set EXT to 0b(0001)
880 |(% style="width:155px" %)AT+EXT=2|(% colspan="1" style="width:180px" %)Set EXT to 0b(0010)
881 |(% style="width:155px" %)AT+EXT=3|(% colspan="1" style="width:180px" %)Set EXT to 0b(0011)
882
883 (% style="color:#037691" %)**Downlink Command: 0xA2**
884
885 Total bytes: 2 bytes
886
887 Example:
888
889 * 0xA201: same as AT+EXT=1
890
891 == 3.4 Quit AT Command ==
892
893
894 Feature: Quit AT Command mode, so user need to input password again before use AT Commands.
895
896 (% style="color:#037691" %)**AT Command: AT+DISAT**
897
898 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:446px" %)
899 |=(% style="width: 163px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 195px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 88px;background-color:#4F81BD;color:white" %)**Response**
900 |(% style="width:161px" %)AT+DISAT|(% style="width:193px" %)Quit AT Commands mode|(% style="width:87px" %)OK
901
902 (% style="color:#037691" %)**Downlink Command:**
903
904 No downlink command for this feature.
905
906
907 == 3.5 Set system time ==
908
909
910 Feature: Set system time, unix format. [[See here for formmat detail.>>||anchor="H2.5.1A0UnixTimeStamp"]]
911
912 (% style="color:#037691" %)**AT Command:**
913
914 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:506px" %)
915 |=(% style="width: 219px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 287px;background-color:#4F81BD;color:white" %)**Function**
916 |(% style="width:218px" %)AT+TIMESTAMP=1611104352|(% style="width:285px" %)(((
917 OK
918 Set System time to 2021-01-20 00:59:12
919 )))
920
921 (% style="color:#037691" %)**Downlink Command:**
922
923 0x306007806000  ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
924
925
926 == 3.6 Set Time Sync Mode ==
927
928
929 Feature: Enable/Disable Sync system time via LoRaWAN MAC Command (DeviceTimeReq), LoRaWAN server must support v1.0.3 protocol to reply this command.
930
931 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.
932
933
934 (% style="color:#037691" %)**AT Command:**
935
936 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:473px" %)
937 |=(% style="width: 159px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 314px;background-color:#4F81BD;color:white" %)**Function**
938 |(% style="width:157px" %)AT+SYNCMOD=1|(% style="width:313px" %)Enable Sync system time via LoRaWAN MAC Command (DeviceTimeReq)
939
940 (% style="color:#037691" %)**Downlink Command:**
941
942 0x28 01  ~/~/ Same As AT+SYNCMOD=1
943
944 0x28 00  ~/~/ Same As AT+SYNCMOD=0
945
946
947 == 3.7 Set Time Sync Interval ==
948
949
950 Feature: Define System time sync interval. SYNCTDC default value: 10 days.
951
952 (% style="color:#037691" %)**AT Command:**
953
954 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:469px" %)
955 |=(% style="width: 163px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 306px;background-color:#4F81BD;color:white" %)**Function**
956 |AT+SYNCTDC=0x0A|(% style="width:306px" %)Set SYNCTDC to 10 (0x0A), so the sync time is 10 days.
957
958 (% style="color:#037691" %)**Downlink Command:**
959
960 0x29 0A  ~/~/ Same as AT+SYNCTDC=0x0A
961
962
963 == 3.8 Retrieve data ==
964
965
966 Feature: Retrieval data for specify time slot.
967
968 (% style="color:#037691" %)**AT Command**(%%)**:**
969
970 No AT Command, only valid for downlink command.
971
972
973 (% style="color:#037691" %)**Downlink Command:**
974
975 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
976
977
978 == 3.9 Enable Alarm mode ==
979
980
981 Feature: Enable Alarm Mode.
982
983 (% style="color:#037691" %)**AT Command: AT_WMOD**
984
985 Total bytes: 2
986
987 Example:
988
989 0xA500: AT+WMOD=0(default)
990
991 0xA501: AT+WMOD=1(alarm mode)
992
993
994 (% style="color:#037691" %)**Downlink Command:**
995
996 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
997
998
999 == 3.10 Alarm check time ==
1000
1001
1002 Feature: The time interval to check sensor value for Alarm.
1003
1004 (% style="color:#037691" %)**AT Command: AT+CITEMP**
1005
1006 Total bytes: 3
1007
1008 Example:
1009
1010 0xA60001: AT+CITEMP=1(default)
1011
1012 Set collection interval in 1min,only in alarm mode
1013
1014
1015 (% style="color:#037691" %)**Downlink Command:**
1016
1017 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
1018
1019
1020 == 3.11 Set Alarm Threshold ==
1021
1022
1023 Feature: Set Alarm Threshold.
1024
1025 (% style="color:#037691" %)**AT Command: AT+ARTEMP**
1026
1027 Total bytes: 9  Unit: ℃
1028
1029 Example:
1030
1031 A7FF380320FF380320
1032
1033 AT+ARTEMP=-200,800,-200,800
1034
1035
1036 A7000A0064000A0065
1037
1038 AT+ARTEMP=10,100,10,101
1039
1040 Channel 1 operating temp:10~~100
1041
1042 Channel 2 operating temp:10~~101
1043
1044
1045 (% style="color:#037691" %)**Downlink Command:**
1046
1047 [[See Poll Sensor Value>>||anchor="H2.5.3A0Pollsensorvalue"]].
1048
1049
1050 == 3.12 Set Calibrate Value ==
1051
1052
1053 Feature: Set Calibrate value for PT100 cable.  Detail of use of this command please see [[connect to a customized PT100 Probe>>||anchor="H6.2A0HowtoconnectacustomizedPT100cable3F"]].
1054
1055 (% style="color:#037691" %)**AT Command: AT+RCABLE**
1056
1057 Total bytes: 5
1058
1059 Example:
1060
1061 AT+RCABLE=296,300
1062
1063 Channel 1 rcable=0x0128/1000=0.296R
1064
1065 Channel 2 rcable=0x012C/1000=0.300R
1066
1067
1068 (% style="color:#037691" %)**Downlink Command:**
1069
1070 0xA80128012C  ~-~->  Same as AT+RCABLE=296,300
1071
1072
1073 == 3.13 Poll Calibrate Value ==
1074
1075
1076 Feature: Poll Calibrate value. LTC2 will reply with this command send an uplink to server.
1077
1078 (% style="color:#037691" %)**AT Command: No AT Command.**
1079
1080
1081 (% style="color:#037691" %)**Downlink Command:**
1082
1083 Example: A901
1084
1085 End nodes will send racable config to server
1086
1087 Like uplink payload: 010128012C
1088
1089
1090 == 3.14 Print data entries base on page ==
1091
1092
1093 Feature: Print the sector data from start page to stop page (max is 400 pages).
1094
1095 (% style="color:#037691" %)**AT Command: AT+PDTA**
1096
1097 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1098 |(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:353px" %)**Response**
1099 |(% style="width:156px" %)(((
1100
1101
1102 AT+PDTA=259,260
1103
1104 Print page 259 to 260
1105
1106
1107 )))|(% style="width:362px" %)(((
1108 Stop Tx events when read sensor data
1109
1110 8021600 systime= 2021/5/16 00:17:44 1 3684 Temp1=28.71 Temp2=-327.67
1111
1112 8021610 systime= 2021/5/16 00:37:44 1 3685 Temp1=28.78 Temp2=-327.67
1113
1114 8021620 systime= 2021/5/16 00:57:44 1 3684 Temp1=28.83 Temp2=-327.67
1115
1116 8021630 systime= 2021/5/16 01:17:44 1 3684 Temp1=28.89 Temp2=-327.67
1117
1118 8021640 systime= 2021/5/16 01:37:44 1 3681 Temp1=28.79 Temp2=-327.67
1119
1120 8021650 systime= 2021/5/16 01:57:44 1 3681 Temp1=28.67 Temp2=-327.67
1121
1122 8021660 systime= 2021/5/16 02:17:44 1 3684 Temp1=28.60 Temp2=-327.67
1123
1124 8021670 systime= 2021/5/16 02:37:44 1 3684 Temp1=28.56 Temp2=-327.67
1125
1126 8021680 systime= 2021/5/16 02:57:44 1 3684 Temp1=28.52 Temp2=-327.67
1127
1128 8021690 systime= 2021/5/16 03:17:44 1 3684 Temp1=28.51 Temp2=-327.67
1129
1130 80216A0 systime= 2021/5/16 03:37:44 1 3684 Temp1=28.50 Temp2=-327.67
1131
1132 80216B0 systime= 2021/5/16 03:57:44 1 3684 Temp1=28.46 Temp2=-327.67
1133
1134 80216C0 systime= 2021/5/16 04:17:44 1 3684 Temp1=28.40 Temp2=-327.67
1135
1136 80216D0 systime= 2021/5/16 04:37:44 1 3683 Temp1=28.37 Temp2=-327.67
1137
1138 80216E0 systime= 2021/5/16 04:57:44 1 3684 Temp1=28.36 Temp2=-327.67
1139
1140 80216F0 systime= 2021/5/16 05:17:44 1 3685 Temp1=28.32 Temp2=-327.67
1141
1142 Start Tx events
1143
1144 OK
1145 )))
1146
1147 (% style="color:#037691" %)**Downlink Command:**
1148
1149 No downlink commands for feature
1150
1151
1152 == 3.15 Print last few data entries ==
1153
1154
1155 Feature: Print the last few data entries
1156
1157 (% style="color:#037691" %)**AT Command: AT+PLDTA**
1158
1159 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1160 |(% style="background-color:#4f81bd; color:white; width:156px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:354px" %)**Response**
1161 |(((
1162 AT+PLDTA=5
1163
1164 Print last 5 entries
1165 )))|(% style="width:278px" %)(((
1166 Stop Tx events when read sensor data
1167
1168 1 systime= 2021/5/17 03:12:37 1 3681 Temp1=26.01 Temp2=-327.67
1169
1170 2 systime= 2021/5/17 03:17:37 1 3682 Temp1=26.02 Temp2=-327.67
1171
1172 3 systime= 2021/5/17 03:22:37 1 3687 Temp1=25.94 Temp2=-327.67
1173
1174 4 systime= 2021/5/17 03:27:37 1 3684 Temp1=25.95 Temp2=-327.67
1175
1176 5 systime= 2021/5/17 03:32:37 1 3684 Temp1=26.20 Temp2=-327.67
1177
1178 Start Tx events
1179
1180 OK
1181 )))
1182
1183 (% style="color:#037691" %)**Downlink Command:**
1184
1185 No downlink commands for feature
1186
1187
1188 == 3.16 Clear Flash Record ==
1189
1190
1191 Feature: Clear flash storage for data log feature.
1192
1193 (% style="color:#037691" %)**AT Command: AT+CLRDTA**
1194
1195 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1196 |=(% style="width: 157px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 216px;background-color:#4F81BD;color:white" %)**Response**
1197 |(% style="width:157px" %)AT+CLRDTA|(% style="width:136px" %)Clear date record|(% style="width:213px" %)(((
1198 Clear all stored sensor data…
1199 OK
1200 )))
1201
1202 (% style="color:#037691" %)**Downlink Command: 0xA3**
1203
1204 * Example: 0xA301  ~/~/  Same as AT+CLRDTA
1205
1206 = 4.  Battery & Power Consumption =
1207
1208
1209 LTC2 uses ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
1210
1211 [[**Battery Info & Power Consumption Analyze**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
1212
1213
1214 = 5.  Firmware Change Log and Upload Firmware =
1215
1216
1217 (((
1218 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:
1219 )))
1220
1221 (((
1222
1223 )))
1224
1225 (((
1226 **Connection:**
1227 )))
1228
1229 * (((
1230 (% style="background-color:yellow" %)**ST-LINK v2 GND  <~-~->  LTC2 GND**
1231 )))
1232 * (((
1233 (% style="background-color:yellow" %)**ST-LINK v2 RESET  <~-~->  LTC2 NRST**
1234 )))
1235 * (((
1236 (% style="background-color:yellow" %)**ST-LINK v2 SWCLK  <~-~->  LTC2 SWCLK**
1237 )))
1238 * (((
1239 (% style="background-color:yellow" %)**ST-LINK v2 SWDIO  <~-~->  LTC2 SWDIO**
1240 )))
1241 * (((
1242 (% style="background-color:yellow" %)**LTC2 power must be on.  **
1243 )))
1244
1245 (((
1246
1247
1248 **Firmware Location and Change Log:  **[[https:~~/~~/www.dropbox.com/sh/8ghh32xavvsr98l/AADg-NbTnq80Re4Bcj7uekJFa?dl=0>>https://www.dropbox.com/sh/8ghh32xavvsr98l/AADg-NbTnq80Re4Bcj7uekJFa?dl=0]]
1249
1250
1251 )))
1252
1253 = 6.  FAQ =
1254
1255 == 6.1  How to use AT Command to configure LTC2 ==
1256
1257
1258 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.
1259
1260
1261 **Connection:**
1262
1263 * (% style="background-color:yellow" %)**USB to TTL GND <~-~->  LTC2 GND**
1264
1265 * (% style="background-color:yellow" %)**USB to TTL RXD  <~-~->  LTC2 TXD**
1266
1267 * (% style="background-color:yellow" %)**USB to TTL TXD  <~-~->  LTC2 RXD**
1268
1269 (((
1270 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.
1271 )))
1272
1273
1274 (((
1275 Input password and ATZ to activate LTC2,As shown below:
1276 )))
1277
1278 [[image:image-20220620151601-13.png||height="393" width="1042"]]
1279
1280
1281 == 6.2  How to connect a customized PT100 cable? ==
1282
1283
1284 (((
1285 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. 
1286 )))
1287
1288
1289 (((
1290 (% 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.
1291 )))
1292
1293 [[image:image-20220620152115-14.jpeg||height="548" width="763"]]
1294
1295 We know that the Multimeter has a shortcut resistance 0.002 ohm.
1296
1297
1298 (% style="color:blue" %)**Step 2**(%%): Measure the resistance between the two shorted wires of PT100 Probe.
1299
1300
1301 [[image:image-20220620152115-15.jpeg||height="791" width="704"]]
1302
1303 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) .
1304
1305
1306 (% style="color:blue" %)**Step 3**(%%): Run Calibrate Command.
1307
1308 Run this command to both channels to use 0.296R calibrate resistance.
1309
1310 (% style="color:red" %)**AT+RCABLE=296,0** (%%) ~-~->  Calibrate Channel 1 with 0.296R
1311
1312
1313 Or use LoRaWAN downlink command (0xA8 Code) to set: 0xA801280000
1314
1315 User can use 0xA9 downlink command to poll the current calibration value.
1316
1317
1318 (% style="color:blue" %)**Step 4**(%%)**: **Connect the PT100 to LTC2
1319
1320 [[image:image-20220620152115-16.png]]
1321
1322
1323 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.
1324
1325
1326 == 6.3  What is the frequency range of LTC2 LoRa part? ==
1327
1328
1329 Different LTC2 version supports different frequency range, below is the table for the working frequency and recommend bands for each model:
1330
1331 [[image:image-20230427172553-5.jpeg||height="146" width="639"]]
1332
1333
1334 == 6.4  How to change the LoRa Frequency Bands/Region ==
1335
1336
1337 You can follow the instructions for [[how to upgrade image>>||anchor="H5.A0FirmwareChangeLogandUploadFirmware"]].
1338 When downloading the images, choose the required image file for download. ​
1339
1340 (% style="display:none" %) (%%)
1341
1342
1343 == 6.5 How can I read sensor data without LoRaWAN? For Calibration Purpose ==
1344
1345 Some clients need to calibrate the sensor value in calibration Lab. In such case, Reading the data without LoRaWAN network is more convenient. To achieve this, use can use a USB-TTL Adapter  to connect the LTC2 Motherboard's UART pins while still have the probe connected. See below.
1346
1347 [[image:image-20240417153156-3.jpeg||height="636" width="930"]]
1348
1349
1350 After there is UART Connection, reset the node.
1351
1352 Example output:
1353
1354 [[image:image-20240312141207-3.png||height="527" width="930"]]
1355
1356
1357 == 6.6 LTC2 supported with 3-wire PT100 ==
1358
1359 The LTC2 uses the bridge method to measure temperature and supports the use of 3-wire PT100.
1360
1361 The difference between the wiring mode of three-wire PT100 and four-wire PT100 and the difference in the detection principle:
1362
1363 * Three wire PT100 adopts bridge method to measure data, and the relationship between the output temperature value and the output value of analog quantity.
1364 * The four-wire PT100 has no bridge, is sent by constant current source, voltmeter measurement, and finally gives the measured resistance value.
1365
1366 [[image:image-20240417145507-1.jpeg||height="234" width="522"]]
1367
1368 [[image:image-20240417145520-2.jpeg||height="182" width="523"]]
1369
1370
1371 **Note:** **2-wire PT100, current loop and voltage measurement loop combined in one, poor accuracy, not discussed.**
1372
1373
1374
1375 = 7.  Trouble Shooting =
1376
1377 == 7.1  AT Command input doesn't work ==
1378
1379
1380 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.
1381
1382
1383 = 8.  Order Info =
1384
1385
1386 Part Number **:** (% style="color:blue" %)**LTC2-XXX-YYY**
1387
1388 (% style="color:#0000ff" %)**XXX**(%%)**: **Probe Version
1389
1390 * (% style="color:red" %)**SI**(%%):  Standard IP68 probe x 1
1391 * (% style="color:red" %)**LT**(%%):  Low Temperature probe x 1
1392 * (% style="color:red" %)**HT**(%%): High Temperature probe x 1
1393 * (% style="color:red" %)**FSA**(%%):  Food Safety probe x 1
1394 * (% style="color:red" %)**FT**(%%):  Flat Type probe x 1
1395 * (% style="color:red" %)**NA**(%%): No probe
1396
1397 (% style="color:#0000ff" %)**YYY**(%%)**: **The default frequency band
1398
1399 * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band
1400 * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band
1401 * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band
1402 * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band
1403 * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band
1404 * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band
1405 * (% style="color:red" %)**IN865 **(%%)**:**  LoRaWAN IN865 band
1406 * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band
1407
1408 = 9. ​ Packing Info =
1409
1410
1411 **Package Includes**:
1412
1413 * LTC2 LoRaWAN Temperature Transmitter x 1
1414
1415 **Dimension and weight**:
1416
1417 * Device Size: cm
1418 * Device Weight: g
1419 * Package Size / pcs : cm
1420 * Weight / pcs : g
1421
1422 = 10.  ​Support =
1423
1424
1425 * 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.
1426 * 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]].
1427
1428
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0