Wiki source code of LPT01-L -- LoRaWAN Temperature Transmitter User Manual
Last modified by Mengting Qiu on 2025/03/11 19:07
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% style="text-align:center" %) | ||
2 | [[image:image-20240905135235-4.png||height="443" width="837"]] | ||
3 | |||
4 | |||
5 | |||
6 | |||
7 | |||
8 | **Table of Contents:** | ||
9 | |||
10 | {{toc/}} | ||
11 | |||
12 | (% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %) | ||
13 | ((( | ||
14 | (% 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"]] | ||
15 | ))) | ||
16 | |||
17 | |||
18 | = 1. Introduction = | ||
19 | |||
20 | == 1.1 What is LPT01-L LoRaWAN Temperature Transmitter == | ||
21 | |||
22 | |||
23 | The Dragino LPT01-L Food Grade LoRaWAN Temperature Transmitter is designed to monitor the temperature of different food environments. It supports reading PT100 probes and converting the value to temperature and uploading it to an IoT server via LoRaWAN protocol. | ||
24 | |||
25 | LPT01-L supports (% style="color:blue" %)**Datalog feature**(%%). User can retrieve the sensor value via LoRaWAN downlink command. | ||
26 | |||
27 | LPT01-L (% style="color:blue" %)**supports wireless OTA update**(%%) which make user easy to use. | ||
28 | |||
29 | LPT01-L is powered by (% style="color:blue" %)**CR123A non-rechargeable battery**(%%) and target for long time use, these batteries can provide about 16,000 ~~ 70,000 uplink packets, which result in 2 ~~ 10 years battery life. After battery running out, user can easily open the enclosure and replace with CR123A batteries. | ||
30 | |||
31 | Each LPT01-L is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto-connect after power on. | ||
32 | |||
33 | |||
34 | == 1.2 Features == | ||
35 | |||
36 | |||
37 | * LoRaWAN v1.0.3 Class A | ||
38 | * Support 3 -wire PT-100 | ||
39 | * Temperature alarm | ||
40 | * Datalog Feature | ||
41 | * Support LoRaWAN remote configure | ||
42 | * Support wireless OTA update firmware | ||
43 | * Uplink on periodically | ||
44 | * Downlink to change configure | ||
45 | * (% style="color:blue" %)**CR123A**(%%)** **1500mAh Battery | ||
46 | |||
47 | (% style="display:none" %) | ||
48 | |||
49 | == 1.3 Specification == | ||
50 | |||
51 | |||
52 | **Common DC Characteristics:** | ||
53 | |||
54 | * Supply Voltage: Built-in Battery , 2.5v ~~ 3.0v | ||
55 | * Operating Temperature: -40 ~~ 85°C | ||
56 | |||
57 | **LoRa Spec:** | ||
58 | |||
59 | * Frequency Range, Band 1 (HF): 862 ~~ 1020 Mhz | ||
60 | * Max +22 dBm constant RF output vs. | ||
61 | * RX sensitivity: down to -139 dBm. | ||
62 | * Excellent blocking immunity | ||
63 | |||
64 | **Battery:** | ||
65 | |||
66 | * CR123A non-rechargeable battery | ||
67 | * Capacity: 1500mAh | ||
68 | * Self-Discharge: <1% / Year @ 25°C | ||
69 | * Max continuously current: 130mA | ||
70 | * Max boost current: 2A, 1 second | ||
71 | |||
72 | **Power Consumption** | ||
73 | |||
74 | * Sleep Mode: 5uA @ 3.3v | ||
75 | * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm | ||
76 | |||
77 | == 1.4 Applications == | ||
78 | |||
79 | |||
80 | * Logistics and Supply Chain Management | ||
81 | * Food management | ||
82 | * Cold chains solution | ||
83 | * Industrial Monitoring and Control | ||
84 | |||
85 | == 1.5 Sleep mode and working mode == | ||
86 | |||
87 | |||
88 | (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life. | ||
89 | |||
90 | (% style="color:blue" %)**Working Mode:** (%%)In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode. | ||
91 | |||
92 | |||
93 | == 1.6 Button & LEDs == | ||
94 | |||
95 | |||
96 | [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB-NA--LoRaWAN_Analog_Sensor_User_Manual/WebHome/1675071855856-879.png?rev=1.1||alt="1675071855856-879.png"]] | ||
97 | |||
98 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
99 | |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**Action** | ||
100 | |(% style="background-color:#f2f2f2; width:167px" %)Pressing ACT between 1s < time < 3s|(% style="background-color:#f2f2f2; width:117px" %)Send an uplink|(% style="background-color:#f2f2f2; width:225px" %)((( | ||
101 | If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once. | ||
102 | Meanwhile, BLE module will be active and user can connect via BLE to configure device. | ||
103 | ))) | ||
104 | |(% style="background-color:#f2f2f2; width:167px" %)Pressing ACT for more than 3s|(% style="background-color:#f2f2f2; width:117px" %)Active Device|(% style="background-color:#f2f2f2; width:225px" %)((( | ||
105 | (% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. | ||
106 | (% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. | ||
107 | Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network. | ||
108 | ))) | ||
109 | |(% style="background-color:#f2f2f2; width:167px" %)Fast press ACT 5 times.|(% style="background-color:#f2f2f2; width:117px" %)Deactivate Device|(% style="background-color:#f2f2f2; width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means LTC2-LB is in Deep Sleep Mode. | ||
110 | |||
111 | = 2. How to use LPT01-L? = | ||
112 | |||
113 | == 2.1 How it works? == | ||
114 | |||
115 | ((( | ||
116 | ((( | ||
117 | |||
118 | ))) | ||
119 | |||
120 | The LPT01-L is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the LPT01-L. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is **20 minutes**. | ||
121 | |||
122 | ((( | ||
123 | On each uplink, LPT01-L will check its two ADC Interfaces and get the temperature from the sensor and send out to server. | ||
124 | ))) | ||
125 | ))) | ||
126 | |||
127 | |||
128 | == 2.2 Quick guide to connect to LoRaWAN server (OTAA) == | ||
129 | |||
130 | |||
131 | Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] as a LoRaWAN gateway in this example. | ||
132 | |||
133 | The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server. | ||
134 | |||
135 | [[image:image-20240905150538-1.png||height="275" width="730"]] | ||
136 | |||
137 | |||
138 | (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from LPT01-L. | ||
139 | |||
140 | Each LPT01-L is shipped with a sticker with the default device EUI as below: | ||
141 | |||
142 | [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2%20-%20LoRaWAN%20Temperature%20Transmitter%20User%20Manual/WebHome/image-20230426083905-2.png?rev=1.1||alt="image-20230426083905-2.png" height="287" width="618"]] | ||
143 | |||
144 | You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: | ||
145 | |||
146 | (% style="color:blue" %)**Create the application.** | ||
147 | |||
148 | [[image:image-20240907111048-1.png||height="183" width="1001"]] | ||
149 | |||
150 | [[image:image-20240907111305-2.png||height="572" width="1000"]] | ||
151 | |||
152 | (% style="color:blue" %)**Add devices to the created Application.** | ||
153 | |||
154 | [[image:image-20240907111659-3.png||height="185" width="977"]] | ||
155 | |||
156 | [[image:image-20240907111820-5.png||height="377" width="975"]] | ||
157 | |||
158 | (% style="color:blue" %)**Enter end device specifics manually.** | ||
159 | |||
160 | [[image:image-20240907112136-6.png||height="687" width="697"]] | ||
161 | |||
162 | (% style="color:blue" %)**Add DevEUI and AppKey.** | ||
163 | |||
164 | (% style="color:blue" %)**Customize a platform ID for the device.** | ||
165 | |||
166 | [[image:image-20240907112427-7.png]] | ||
167 | |||
168 | |||
169 | (% style="color:blue" %)**Step 2: **(%%)Add decoder | ||
170 | |||
171 | In TTN, user can add a custom payload so it shows friendly reading. | ||
172 | |||
173 | Click this link to get the decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/>>url:https://github.com/dragino/dragino-end-node-decoder/tree/main/]] | ||
174 | |||
175 | Below is TTN screen shot: | ||
176 | |||
177 | [[image:image-20250311090652-1.png||height="455" width="1035"]] | ||
178 | |||
179 | [[image:image-20250311090909-2.png||height="403" width="1035"]] | ||
180 | |||
181 | (% style="color:blue" %)**Step 3:**(%%) Activate on LPT01-L | ||
182 | |||
183 | Press the button for 5 seconds to activate the LPT01-L. | ||
184 | |||
185 | (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. | ||
186 | |||
187 | After join success, it will start to upload messages to TTN and you can see the messages in the panel. | ||
188 | |||
189 | |||
190 | == 2.3 Working Mode & Uplink Payload == | ||
191 | |||
192 | === 2.3.1 Device Status, FPORT~=5 === | ||
193 | |||
194 | |||
195 | Users can use the downlink command(**0x26 01**) to ask LP01-L to send device configure detail, include device configure status. LPT01-L will uplink a payload via FPort=5 to server. | ||
196 | |||
197 | The Payload format is as below. | ||
198 | |||
199 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
200 | |(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)** | ||
201 | |(% style="width:103px" %)**Size (bytes)**|(% style="width:72px" %)**1**|**2**|(% style="width:91px" %)**1**|(% style="width:86px" %)**1**|(% style="width:44px" %)**2** | ||
202 | |(% style="width:103px" %)Value|(% style="width:72px" %)Sensor Model|Firmware Version|(% style="width:91px" %)Frequency Band|(% style="width:86px" %)Sub-band|(% style="width:44px" %)BAT | ||
203 | |||
204 | Example in TTN: | ||
205 | |||
206 | [[image:image-20250311091244-3.png]] | ||
207 | |||
208 | |||
209 | (% style="color:#037691" %)**Sensor Model**(%%): For LPT01-L, this value is 0x35 | ||
210 | |||
211 | (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version | ||
212 | |||
213 | (% style="color:#037691" %)**Frequency Band**(%%): | ||
214 | |||
215 | 0x01: EU868 | ||
216 | |||
217 | 0x02: US915 | ||
218 | |||
219 | 0x03: IN865 | ||
220 | |||
221 | 0x04: AU915 | ||
222 | |||
223 | 0x05: KZ865 | ||
224 | |||
225 | 0x06: RU864 | ||
226 | |||
227 | 0x07: AS923 | ||
228 | |||
229 | 0x08: AS923-1 | ||
230 | |||
231 | 0x09: AS923-2 | ||
232 | |||
233 | 0x0a: AS923-3 | ||
234 | |||
235 | 0x0b: CN470 | ||
236 | |||
237 | 0x0c: EU433 | ||
238 | |||
239 | 0x0d: KR920 | ||
240 | |||
241 | 0x0e: MA869 | ||
242 | |||
243 | (% style="color:#037691" %)**Sub-Band**(%%): | ||
244 | |||
245 | AU915 and US915:value 0x00 ~~ 0x08 | ||
246 | |||
247 | CN470: value 0x0B ~~ 0x0C | ||
248 | |||
249 | Other Bands: Always 0x00 | ||
250 | |||
251 | (% style="color:#037691" %)**Battery Info**(%%): | ||
252 | |||
253 | Check the battery voltage. | ||
254 | |||
255 | Ex1: 0x0B97 = 2967mV | ||
256 | |||
257 | Ex2: 0x0B49 = 2889mV | ||
258 | |||
259 | |||
260 | === 2.3.2 WMOD~=1(General acquisition mode & Temperature alarm mode), FPORT~=2 === | ||
261 | |||
262 | |||
263 | WMOD=1 is the default mode. End Node will uplink the real-time current sensor value in three case: | ||
264 | |||
265 | * Each [[TDC>>||anchor="H3.1A0SetTransmitIntervalTime"]] Interval. | ||
266 | * Trigger Alarm according to **[[AT+WMOD>>||anchor="H3.3A0Setalarmmode | ||
267 | "]] **configure. | ||
268 | |||
269 | Below is the uplink payload which shows. | ||
270 | |||
271 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
272 | |=(% style="width: 70px;background-color:#4F81BD;color:white" %)((( | ||
273 | **Size(bytes)** | ||
274 | )))|=(% style="width: 40px; background-color: rgb(79, 129, 189); color: white;" %)**2**|=(% style="width: 180px; background-color: rgb(79, 129, 189); color: white;" %)**4**|=(% style="width: 80px; background-color: rgb(79, 129, 189); color: white;" %)1|=(% style="width: 119px; background-color: rgb(79, 129, 189); color: white;" %)**2** | ||
275 | |(% style="width:62.5px" %)Value|(% style="width:54px" %)((( | ||
276 | BAT | ||
277 | )))|(% style="width:97px" %)Unix TimeStamp|(% style="width:110px" %)Unit&((( | ||
278 | sampling | ||
279 | |||
280 | _times | ||
281 | )))|(% style="width:119px" %)((( | ||
282 | Temp(PT100) | ||
283 | |||
284 | |||
285 | ))) | ||
286 | |||
287 | (% 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"]] | ||
288 | |||
289 | Example in TTN: | ||
290 | |||
291 | [[image:image-20250311092307-6.png||height="276" width="1083"]] | ||
292 | |||
293 | |||
294 | ((( | ||
295 | ==== (% style="color:blue" %)**Battery**(%%) ==== | ||
296 | |||
297 | Sensor Battery Level. | ||
298 | |||
299 | Ex1: 0x0B45 = 2885mV | ||
300 | |||
301 | Ex2: 0x0B49 = 2889mV | ||
302 | |||
303 | |||
304 | ==== (% style="color:blue" %)**Unix TimeStamp**(%%) ==== | ||
305 | |||
306 | Unit TimeStamp Example: 67CF92A7(H) = 1741656743(D) | ||
307 | |||
308 | Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]])to get the time. | ||
309 | |||
310 | |||
311 | ))) | ||
312 | |||
313 | ((( | ||
314 | ==== (% style="color:blue" %)**Unit&sampling _times**(%%) ==== | ||
315 | |||
316 | **Example(Unit)**: | ||
317 | |||
318 | If payload is: 0x04H: ((04 >>7 & 0x01)? "℉":"℃") = 0 , So the unit is °C | ||
319 | |||
320 | **Example(sampling_times):** | ||
321 | |||
322 | If payload is: 0x04H: (0x04 & 0x7F) = 4, So the sampling time is 4 | ||
323 | |||
324 | |||
325 | ==== (% style="color:blue" %)**temperature(PT100)**(%%) ==== | ||
326 | ))) | ||
327 | |||
328 | **Example**: | ||
329 | |||
330 | If payload is: 09DDH: (09DD & 8000 == 0), temp = 09DDH /100 = 25..25 degree | ||
331 | |||
332 | If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. | ||
333 | |||
334 | (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) | ||
335 | |||
336 | If the value is -327.6, it means the PT100 probe is not connected. | ||
337 | |||
338 | (% 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" %) | ||
339 | |||
340 | === 2.3.2 Continuous Uplink mode, FPORT~=2 === | ||
341 | |||
342 | |||
343 | In Continuous Sampling Mode**[[(AT+WMOD=a,b,c,d,e,f)>>||anchor="H3.10Setworkingmode28SinceV1.229 | ||
344 | "]]**, LPT01-L will record the current sensor data at a fix interval, and report multiply group of data together to IoT server later. | ||
345 | |||
346 | |||
347 | **AT+WMOD=a,b,c,d,e,f format:** | ||
348 | |||
349 | * (% style="color:blue" %)**a**(%%) : Setting LPT01-L Turns Continuous Sampling Mode On or Off.(1: ON, 0:OFF) | ||
350 | * (% style="color:blue" %)**b** (%%): Set Sampling Interval, Unit: Second.(Range: 0~~255) | ||
351 | * (% style="color:blue" %)**c** (%%): Define how many group of data will be uplink together. (max: 100) | ||
352 | * (% style="color:#0000ff" %)**d **(%%): Duration of operation in continuous acquisition mode.(Range: 0~~255) | ||
353 | * (% style="color:blue" %)**e**(%%)** **: Set the temperature lower limit value, below the lower limit value will exit the alarm. | ||
354 | * (% style="color:blue" %)**f **(%%): Set the upper temperature limit value, above the upper limit value will trigger an alarm. | ||
355 | |||
356 | When LPT01-L is in Continuous Sampling Mode, the TDC time setting is disabled, and LPT01-L will send uplink once it finished the number of sampling define in "b". | ||
357 | |||
358 | |||
359 | **Example Command: (% style="color:blue" %)AT+WMOD=1,5,5,5,0,10(%%)** | ||
360 | |||
361 | When the measured temperature is outside the set range of 0℃~~10℃, the continuous measurement mode will be activated, the duration is 5min, the sampling interval is 5s once, a total of 5 times of collection, and the integrated data will be reported once, So the payload for each uplink will include: | ||
362 | |||
363 | * Battery (2 bytes) | ||
364 | * + Group1 Sensor Value (2 Bytes): **the last 4th** reading for Temp | ||
365 | * + Group2 Sensor Value (2 Bytes): **the last 3rd** reading for Temp | ||
366 | * + Group3 Sensor Value (2 Bytes): **the last 2nd** reading for Temp | ||
367 | * + Group4 Sensor Value (2 Bytes): **the last** reading for Temp | ||
368 | * + Group5 Sensor Value (2 Bytes): reading for Temp | ||
369 | |||
370 | So totally 12 bytes payload in this example. | ||
371 | |||
372 | (% style="color:red" %)**Notice: Continuous sampling mode may result in a longer payload. the LPT01-L will automatically select the appropriate DR uplink data. This may shorten the transmission distance.** | ||
373 | |||
374 | |||
375 | Uplink packets use FPORT=2. | ||
376 | |||
377 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %) | ||
378 | |=(% style="width: 60px;background-color:#4F81BD;color:white" %)((( | ||
379 | **Size(bytes)** | ||
380 | )))|=(% colspan="3" rowspan="1" style="width: 54px; background-color: rgb(79, 129, 189); color: white;" %)2|=(% colspan="4" rowspan="1" style="width: 355px; background-color: rgb(79, 129, 189); color: white;" %)Dynamic Lenght , Depend on how many groups | ||
381 | |(% style="width:99px" %)((( | ||
382 | Value | ||
383 | )))|(% colspan="3" rowspan="1" style="width:54px" %)((( | ||
384 | BAT | ||
385 | )))|(% colspan="4" rowspan="1" style="width:355px" %)((( | ||
386 | Sensor value, each 2 bytes is a set of sensor values(The maximum is 100 groups). | ||
387 | ))) | ||
388 | |||
389 | Example parse in TTNv3. | ||
390 | |||
391 | [[image:image-20250311153212-1.png]] | ||
392 | |||
393 | (% 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" %)(%%) | ||
394 | |||
395 | == 2.4 Unix TimeStamp == | ||
396 | |||
397 | |||
398 | LPT01-L uses Unix TimeStamp format based on | ||
399 | |||
400 | [[image:1655694312268-590.png]] | ||
401 | |||
402 | |||
403 | Users can get this time from the link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : | ||
404 | |||
405 | Below is the converter example | ||
406 | |||
407 | [[image:1655694332878-202.png]] | ||
408 | |||
409 | |||
410 | ((( | ||
411 | So, we can use AT+TIMESTAMP=1725693900 or downlink 3066DBFFCC00 to set current time : 2024-September-7 Saturday 07:25:00 | ||
412 | ))) | ||
413 | |||
414 | |||
415 | === 2.4.1 Set Device Time === | ||
416 | |||
417 | |||
418 | ((( | ||
419 | ((( | ||
420 | There are two ways to set the device's time: | ||
421 | ))) | ||
422 | ))) | ||
423 | |||
424 | ((( | ||
425 | ((( | ||
426 | (% style="color:#4f81bd" %)**1. Through LoRaWAN MAC Command (Default settings)** | ||
427 | ))) | ||
428 | ))) | ||
429 | |||
430 | ((( | ||
431 | ((( | ||
432 | Users need to set SYNCMOD=1 to enable sync time via the MAC command. | ||
433 | ))) | ||
434 | ))) | ||
435 | |||
436 | ((( | ||
437 | Once LPT01-L Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and server will reply with (DeviceTimeAns) to send the current time to LPT01-L. If LPT01-L fails to get the time from server, LPT01-L will use the internal time and wait for next time request (AT+SYNCTDC to set time request period, default is 10 days). | ||
438 | |||
439 | |||
440 | ))) | ||
441 | |||
442 | ((( | ||
443 | ((( | ||
444 | (% 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. | ||
445 | |||
446 | |||
447 | ))) | ||
448 | |||
449 | ((( | ||
450 | (% style="color:#4f81bd" %)**2. Manually Set Time** | ||
451 | ))) | ||
452 | |||
453 | ((( | ||
454 | Users need to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. | ||
455 | ))) | ||
456 | ))) | ||
457 | |||
458 | |||
459 | = 3. Configure LPT01-L via AT Command or LoRaWAN Downlink = | ||
460 | |||
461 | |||
462 | ((( | ||
463 | ((( | ||
464 | Use can configure LPT01-L via AT Command or LoRaWAN Downlink. | ||
465 | ))) | ||
466 | ))) | ||
467 | |||
468 | * ((( | ||
469 | ((( | ||
470 | AT Command Connection: See [[FAQ>>||anchor="H6.A0FAQ"]]. | ||
471 | ))) | ||
472 | ))) | ||
473 | * ((( | ||
474 | ((( | ||
475 | LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] | ||
476 | ))) | ||
477 | ))) | ||
478 | |||
479 | ((( | ||
480 | ((( | ||
481 | |||
482 | ))) | ||
483 | |||
484 | ((( | ||
485 | There are two kinds of commands to configure LPT01-L, they are: | ||
486 | ))) | ||
487 | ))) | ||
488 | |||
489 | ((( | ||
490 | ((( | ||
491 | (% style="color:#4f81bd" %)** General Commands**. | ||
492 | ))) | ||
493 | ))) | ||
494 | |||
495 | ((( | ||
496 | ((( | ||
497 | These commands are to configure: | ||
498 | ))) | ||
499 | ))) | ||
500 | |||
501 | * ((( | ||
502 | ((( | ||
503 | General system settings like: uplink interval. | ||
504 | ))) | ||
505 | ))) | ||
506 | * ((( | ||
507 | ((( | ||
508 | LoRaWAN protocol & radio related command. | ||
509 | ))) | ||
510 | ))) | ||
511 | |||
512 | ((( | ||
513 | ((( | ||
514 | 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]] | ||
515 | ))) | ||
516 | ))) | ||
517 | |||
518 | ((( | ||
519 | ((( | ||
520 | (% style="color:#4f81bd" %)**Commands special design for LPT01-L** | ||
521 | ))) | ||
522 | ))) | ||
523 | |||
524 | ((( | ||
525 | ((( | ||
526 | These commands only valid for LPT01-L, as below:(% title="Click and drag to resize" %) | ||
527 | ))) | ||
528 | ))) | ||
529 | |||
530 | (% 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" %) | ||
531 | |||
532 | |||
533 | == 3.1 Set Transmit Interval Time == | ||
534 | |||
535 | |||
536 | Feature: Change LoRaWAN End Node Transmit Interval. | ||
537 | |||
538 | (% style="color:#037691" %)**AT Command: AT+TDC** | ||
539 | |||
540 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %) | ||
541 | |(% 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** | ||
542 | |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)((( | ||
543 | 1200000(Default value) | ||
544 | OK | ||
545 | the interval is 1200000ms=1200s | ||
546 | ))) | ||
547 | |(% style="width:155px" %)AT+TDC=600000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)((( | ||
548 | OK | ||
549 | Set transmit interval to 600000ms=600 seconds | ||
550 | ))) | ||
551 | |||
552 | ((( | ||
553 | (% style="color:#037691" %)**Downlink Command: 0x01** | ||
554 | ))) | ||
555 | |||
556 | ((( | ||
557 | ((( | ||
558 | Format: Command Code (0x01) followed by 3 bytes time value. | ||
559 | |||
560 | ((( | ||
561 | If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01. | ||
562 | ))) | ||
563 | |||
564 | * Example 1: Downlink Payload: **0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds | ||
565 | * Example 2: Downlink Payload: **0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds | ||
566 | ))) | ||
567 | ))) | ||
568 | |||
569 | |||
570 | == 3.2 Set alarm mode == | ||
571 | |||
572 | |||
573 | Feature: Enable/Disable Alarm Mode. | ||
574 | |||
575 | (% style="color:#037691" %)**AT Command: AT+WMOD** | ||
576 | |||
577 | (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) | ||
578 | |(% style="background-color:#4f81bd; color:white; width:178px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:157px" %)**Parameters**|(% style="background-color:#4f81bd; color:white; width:175px" %)**Explanation** | ||
579 | |(% colspan="1" rowspan="6" style="width:178px" %)((( | ||
580 | |||
581 | |||
582 | |||
583 | |||
584 | |||
585 | |||
586 | AT+MOD=a,b,c,d,e,f | ||
587 | )))|(% style="width:192px" %)((( | ||
588 | **a:** Enable/Disable alarm mode | ||
589 | )))|(% style="width:391px" %)((( | ||
590 | 1:Enable Alarm Mode(default) | ||
591 | |||
592 | 0:Disable Alarm Mode | ||
593 | ))) | ||
594 | |(% style="width:192px" %)((( | ||
595 | **b:** Set Sampling Interval | ||
596 | )))|(% style="width:391px" %)((( | ||
597 | Range: 1~~255 | ||
598 | |||
599 | (Unit: Second) | ||
600 | ))) | ||
601 | |(% style="width:192px" %)**c:** Define how many group of data will be uplink together|(% style="width:391px" %)Range: 1~~100 | ||
602 | |(% style="width:192px" %)**d:** Duration of operation in continuous acquisition mode|(% style="width:391px" %)Range: 1~~255 | ||
603 | |(% style="width:192px" %)**e: **Set the temperature lower limit value|(% style="width:391px" %)((( | ||
604 | Ex1: 0 | ||
605 | |||
606 | Below the lower limit value will exit the alarm | ||
607 | ))) | ||
608 | |(% style="width:192px" %)**f: **Set the upper temperature limit value|(% style="width:391px" %)((( | ||
609 | Ex: | ||
610 | |||
611 | Above the upper limit value will trigger an alarm | ||
612 | ))) | ||
613 | |(% colspan="3" style="width:178px" %)((( | ||
614 | (% style="color:blue" %)**Example: AT+WMOD=1,5,5,5,0,10** | ||
615 | |||
616 | When the measured temperature is outside the set range of 0℃~~10℃, the continuous measurement mode will be activated, the duration is 30min, the sampling interval is 5s once, a total of 10 times of collection, and the integrated data will be reported once. | ||
617 | ))) | ||
618 | |||
619 | (% style="color:#037691" %)**Downlink Command: 0xA2** | ||
620 | |||
621 | * Downlink payload: **0xA2010505050000000A** ~/~/ Same as AT+WMOD=1,5,5,5,0,10 | ||
622 | * Downlink payload: **0xA2000505050000000A** ~/~/ Same as AT+WMOD=0,5,5,5,0,10 | ||
623 | |||
624 | == 3.3 Set time synchronization method == | ||
625 | |||
626 | |||
627 | Feature: This command is used to enable automatic time calibration by time zone(Get or Set time synchronization method). | ||
628 | |||
629 | (% style="color:#037691" %)**AT Command: AT+SYNCMOD** | ||
630 | |||
631 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) | ||
632 | |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 156px; background-color: rgb(79, 129, 189); color: white;" %)**Function**|=(% style="width: 188px; background-color: rgb(79, 129, 189); color: white;" %)**Response/**Parameter | ||
633 | |(% style="width:154px" %)((( | ||
634 | AT+SYNCMOD=? | ||
635 | )))|(% style="width:156px" %)Get the current time synchronization method|(% style="width:188px" %)((( | ||
636 | 1,0 (Default) | ||
637 | |||
638 | OK | ||
639 | ))) | ||
640 | |(% colspan="1" rowspan="2" style="width:154px" %)AT+SYNCMOD=aa,bb|(% style="width:156px" %)((( | ||
641 | **aa:** Enable/disable automatic time zone calibration | ||
642 | )))|(% style="width:188px" %)((( | ||
643 | **0:** Disable automatic time zone calibration. | ||
644 | |||
645 | **1:** Enable automatic time zone calibration | ||
646 | ))) | ||
647 | |(% style="width:156px" %)**bb: **Set the time zone: -12 ~~ 12|(% style="width:188px" %)((( | ||
648 | Negative number: West Time Zone | ||
649 | |||
650 | Positive number: Eastern Time Zone | ||
651 | ))) | ||
652 | |||
653 | (% style="color:#037691" %)**Downlink Command: 0x28** | ||
654 | |||
655 | Format: Command Code (0x28) followed by 2 bytes. | ||
656 | |||
657 | * Example 1: Downlink Payload: 28 00 00 ~/~/ Turn off the time zone calibration time. | ||
658 | * Example 2: Downlink Payload: 28 01 FA ~/~/ Turn on time zone calibration time, UTC-6 | ||
659 | * Example 3: Downlink Payload: 28 01 06 ~/~/ Turn on time zone calibration time, UTC+6 | ||
660 | |||
661 | (% style="color:red" %)**Note: UTC-6: 256+(-6)=250(D)=0xFA(H)** | ||
662 | |||
663 | |||
664 | == 3.4 Set time synchronization interval == | ||
665 | |||
666 | |||
667 | Feature: Get or set time synchronization interval in day or hour. | ||
668 | |||
669 | (% style="color:#037691" %)**AT Command: AT+SYNCTDC** | ||
670 | |||
671 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) | ||
672 | |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 188px; background-color: rgb(79, 129, 189); color: white;" %)**Function**|=(% style="width: 164px; background-color: rgb(79, 129, 189); color: white;" %)**Response/**Parameter | ||
673 | |(% style="width:154px" %)((( | ||
674 | AT+SYNCTDC=? | ||
675 | )))|(% style="width:188px" %)Gets the current time synchronization interval|(% style="width:164px" %)((( | ||
676 | 12,1 (Default) | ||
677 | |||
678 | OK | ||
679 | ))) | ||
680 | |(% colspan="1" rowspan="2" style="width:154px" %)((( | ||
681 | AT+SYNCTDC=aa,bb | ||
682 | )))|(% style="width:188px" %)((( | ||
683 | **aa:** Set the interval for automatic synchronization | ||
684 | )))|(% style="width:164px" %)Range: 0~~255 | ||
685 | |(% style="width:188px" %)**bb:** Set the unit of the time synchronization interval|(% style="width:164px" %)((( | ||
686 | **0:** Unit: day | ||
687 | |||
688 | **1:** Unit: hour | ||
689 | ))) | ||
690 | |||
691 | (% style="color:#037691" %)**Downlink Command: 0x29** | ||
692 | |||
693 | Format: Command Code (0x29) followed by 3 bytes. | ||
694 | |||
695 | * Example 1: Downlink Payload: 29 0C 00 ~/~/ Calibrate once every 12 days | ||
696 | * Example 2: Downlink Payload: 29 0C 01 ~/~/ Calibrate once every 12 hours | ||
697 | |||
698 | = 4. Battery & Power Consumption = | ||
699 | |||
700 | |||
701 | LPT01-L uses **CR123A** battery pack. See below link for detail information about the battery info and how to replace. | ||
702 | |||
703 | [[**Battery Info & Power Consumption Analyze**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] . | ||
704 | |||
705 | |||
706 | = 5. OTA Firmware update = | ||
707 | |||
708 | |||
709 | (% class="wikigeneratedid" %) | ||
710 | User can change firmware LPT01-L to: | ||
711 | |||
712 | * Change Frequency band/ region. | ||
713 | * Update with new features. | ||
714 | * Fix bugs. | ||
715 | |||
716 | ((( | ||
717 | **Firmware and changelog can be downloaded from :** **[[Firmware download link>>https://www.dropbox.com/scl/fo/q3w10zxznqvf0bdtdflab/AP_PngyY1vh2bCjn2nJl67M?rlkey=gxs04he1zbtv0cr37tt5bl2nr&st=rqy2x03q&dl=0]]** | ||
718 | |||
719 | **Methods to Update Firmware:** | ||
720 | |||
721 | * (Recommanded way) OTA firmware update via wireless : **[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]** | ||
722 | * Update through UART TTL interface : **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**. | ||
723 | |||
724 | |||
725 | ))) | ||
726 | |||
727 | = 6. FAQ = | ||
728 | |||
729 | |||
730 | = 7. Trouble Shooting = | ||
731 | |||
732 | |||
733 | = 8. Order Info = | ||
734 | |||
735 | |||
736 | Part Number **:** (% style="color:blue" %)**LPT01-L-XX** | ||
737 | |||
738 | (% style="color:blue" %)**XX**(%%)**: **The default frequency band | ||
739 | |||
740 | * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band | ||
741 | * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band | ||
742 | * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band | ||
743 | * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band | ||
744 | * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band | ||
745 | * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band | ||
746 | * (% style="color:red" %)**IN865 **(%%)**:** LoRaWAN IN865 band | ||
747 | * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band | ||
748 | |||
749 | = 9. Packing Info = | ||
750 | |||
751 | |||
752 | **Package Includes**: | ||
753 | |||
754 | * LPT01-L LoRaWAN Temperature Collector x 1 | ||
755 | |||
756 | **Dimension and weight**: | ||
757 | |||
758 | * Device Size: cm | ||
759 | * Device Weight: g | ||
760 | * Package Size / pcs : cm | ||
761 | * Weight / pcs : g | ||
762 | |||
763 | = 10. Support = | ||
764 | |||
765 | |||
766 | * 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. | ||
767 | * 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]]. |