Last modified by Xiaoling on 2025/07/10 16:21

From version 130.2
edited by Xiaoling
on 2025/04/27 09:44
Change comment: There is no comment for this version
To version 137.1
edited by Mengting Qiu
on 2025/05/19 14:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoling
1 +XWiki.ting
Content
... ... @@ -311,7 +311,7 @@
311 311  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.
312 312  
313 313  
314 -**Step 1: Create a device in TTN with the OTAA keys from PS-LB/LS.**
314 +(% style="color:blue" %)**Step 1: Create a device in TTN with the OTAA keys from PS-LB/LS.**
315 315  
316 316  Each PS-LB/LS is shipped with a sticker with the default device EUI as below:
317 317  
... ... @@ -344,7 +344,7 @@
344 344  [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112427-7.png?rev=1.1||alt="image-20240907112427-7.png"]]
345 345  
346 346  
347 -**Step 2: Add decoder.**
347 +(% style="color:blue" %)**Step 2: Add decoder.**
348 348  
349 349  In TTN, user can add a custom payload so it shows friendly reading.
350 350  
... ... @@ -357,7 +357,7 @@
357 357  [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS25-LBLDS25-LS--LoRaWAN_LiDAR_Distance_Auto-Clean_Sensor_User_Manual/WebHome/image-20241009140603-2.png?width=1168&height=562&rev=1.1||alt="image-20241009140603-2.png" height="562" width="1168"]]
358 358  
359 359  
360 -**Step 3: Activate on PS-LB/LS**
360 +(% style="color:blue" %)**Step 3: Activate on PS-LB/LS**
361 361  
362 362  Press the button for 5 seconds to activate the PS-LB/LS.
363 363  
... ... @@ -376,7 +376,7 @@
376 376  Users can also use the downlink command(0x26 01) to ask PS-LB/LS to resend this uplink.
377 377  
378 378  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
379 -|(% colspan="6" style="background-color:#4f81bd; color:white" %)Device Status (FPORT=5)
379 +|(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)**
380 380  |(% style="background-color:#f2f2f2; width:103px" %)Size (bytes)|(% style="background-color:#f2f2f2; width:72px" %)1|(% style="background-color:#f2f2f2" %)2|(% style="background-color:#f2f2f2; width:91px" %)1|(% style="background-color:#f2f2f2; width:86px" %)1|(% style="background-color:#f2f2f2; width:44px" %)2
381 381  |(% style="background-color:#f2f2f2; width:103px" %)Value|(% style="background-color:#f2f2f2; width:72px" %)Sensor Model|(% style="background-color:#f2f2f2" %)Firmware Version|(% style="background-color:#f2f2f2; width:91px" %)Frequency Band|(% style="background-color:#f2f2f2; width:86px" %)Sub-band|(% style="background-color:#f2f2f2; width:44px" %)BAT
382 382  
... ... @@ -446,10 +446,8 @@
446 446  
447 447  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
448 448  |(% style="background-color:#4f81bd; color:white; width:97px" %)(((
449 -
450 -
451 -Size(bytes)
452 -)))|(% style="background-color:#4f81bd; color:white; width:50px" %)2|(% style="background-color:#4f81bd; color:white; width:71px" %)2|(% style="background-color:#4f81bd; color:white; width:98px" %)2|(% style="background-color:#4f81bd; color:white; width:73px" %)2|(% style="background-color:#4f81bd; color:white; width:122px" %)1
449 +**Size(bytes)**
450 +)))|(% style="background-color:#4f81bd; color:white; width:50px" %)**2**|(% style="background-color:#4f81bd; color:white; width:71px" %)**2**|(% style="background-color:#4f81bd; color:white; width:98px" %)**2**|(% style="background-color:#4f81bd; color:white; width:73px" %)**2**|(% style="background-color:#4f81bd; color:white; width:122px" %)**1**
453 453  |(% style="width:97px" %)Value|(% style="width:48px" %)[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(% style="width:71px" %)[[Probe Model>>||anchor="H2.3.4ProbeModel"]]|(% style="width:98px" %)[[0 ~~~~ 20mA value>>||anchor="H2.3.507E20mAvalue28IDC_IN29"]]|(% style="width:73px" %)[[0 ~~~~ 30v value>>||anchor="H2.3.607E30Vvalue28pinVDC_IN29"]]|(% style="width:122px" %)[[IN1 &IN2 Interrupt  flag>>||anchor="H2.3.7IN126IN226INTpin"]]
454 454  
455 455  [[image:1675144608950-310.png]]
... ... @@ -470,11 +470,10 @@
470 470  
471 471  PS-LB/LS has different kind of probe, 4~~20mA represent the full scale of the measuring range. So a 12mA output means different meaning for different probe. 
472 472  
473 -
474 474  For example.
475 475  
476 476  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
477 -|(% style="background-color:#4f81bd; color:white" %)Part Number|(% style="background-color:#4f81bd; color:white" %)Probe Used|(% style="background-color:#4f81bd; color:white" %)4~~20mA scale|(% style="background-color:#4f81bd; color:white" %)Example: 12mA meaning
474 +|(% style="background-color:#4f81bd; color:white" %)**Part Number**|(% style="background-color:#4f81bd; color:white" %)**Probe Used**|(% style="background-color:#4f81bd; color:white" %)**4~~20mA scale**|(% style="background-color:#4f81bd; color:white" %)**Example: 12mA meaning**
478 478  |(% style="background-color:#f2f2f2" %)PS-LB/LS-I3|(% style="background-color:#f2f2f2" %)immersion type with 3 meters cable|(% style="background-color:#f2f2f2" %)0~~3 meters|(% style="background-color:#f2f2f2" %)1.5 meters pure water
479 479  |(% style="background-color:#f2f2f2" %)PS-LB/LS-I5|(% style="background-color:#f2f2f2" %)immersion type with 5 meters cable|(% style="background-color:#f2f2f2" %)0~~5 meters|(% style="background-color:#f2f2f2" %)2.5 meters pure water
480 480  |(% style="background-color:#f2f2f2" %)PS-LB/LS-T20-B|(% style="background-color:#f2f2f2" %)T20 threaded probe|(% style="background-color:#f2f2f2" %)0~~1MPa|(% style="background-color:#f2f2f2" %)0.5MPa air / gas or water pressure
... ... @@ -482,6 +482,23 @@
482 482  The probe model field provides the convenient for server to identical how it should parse the 4~~20mA sensor value and get the correct value.
483 483  
484 484  
482 +When connecting to current sensors sold by our company, you can convert current readings to corresponding values by simply configuring the [[AT+PROBE>>||anchor="H3.3.4SettheProbeModel"]] command. If you prefer not to configure this command on the sensor, you can uniformly handle the conversion in the payload decoder instead.
483 +
484 +**Examples for decoder implementation:**
485 +
486 +~1. For AT+PROBE=0005, add the following processing in your decoder:
487 +
488 +[[image:image-20250512144042-1.png]]
489 +
490 +[[image:image-20250512144122-2.png]]
491 +
492 +2. For AT+PROBE=0102, add the following processing in your decoder(Corresponding to the position shown in the above screenshot).
493 +
494 +bytes[i]=0x01;bytes[1+i]=0x02;
495 +
496 +bytes[2]=0x01;bytes[3]=0x02;
497 +
498 +
485 485  === 2.3.5 0~~20mA value (IDC_IN) ===
486 486  
487 487  
... ... @@ -535,10 +535,8 @@
535 535  
536 536  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
537 537  |(% style="background-color:#4f81bd; color:white; width:65px" %)(((
538 -
539 -
540 -Size(bytes)
541 -)))|(% style="background-color:#4f81bd; color:white; width:35px" %)2|(% style="background-color:#4f81bd; color:white; width:400px" %)n
552 +**Size(bytes)**
553 +)))|(% style="background-color:#4f81bd; color:white; width:35px" %)**2**|(% style="background-color:#4f81bd; color:white; width:400px" %)**n**
542 542  |(% style="width:94px" %)Value|(% style="width:43px" %)[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(% style="width:367px" %)(((
543 543  
544 544  
... ... @@ -1253,6 +1253,116 @@
1253 1253  
1254 1254  * Example 1: Downlink Payload: AE 01 02 58 12 ~-~-->  AT+STDC=1,600,18
1255 1255  
1268 +
1269 +
1270 +== 3.4 Print data entries base on page(Since v1.1.0) ==
1271 +
1272 +
1273 +Feature: Print the sector data from start page to stop page (max is 416 pages).
1274 +
1275 +(% style="color:#4f81bd" %)**AT Command: AT+PDTA**
1276 +
1277 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1278 +|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function**
1279 +|(% style="width:156px" %)(((
1280 + AT+PDTA=1,1
1281 +Print page 1 to 1
1282 +)))|(% style="width:311px" %)(((
1283 +Stop Tx events when read sensor data
1284 +
1285 +8031000 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1286 +
1287 +8031010 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1288 +
1289 +8031020 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1290 +
1291 +8031030 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1292 +
1293 +8031040 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1294 +
1295 +8031050 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1296 +
1297 +8031060 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1298 +
1299 +8031070 1970/1/1 00:00:00 0 in1:low in2:low exti:low status:false vdc:0.000 idc:0.000 proble:0000 water_deep:0.000
1300 +
1301 +Start Tx events
1302 +
1303 +
1304 +OK
1305 +)))
1306 +
1307 +(% style="color:#4f81bd" %)**Downlink Command:**
1308 +
1309 +No downlink commands for feature
1310 +
1311 +
1312 +== 3.5 Print last few data entries(Since v1.1.0) ==
1313 +
1314 +
1315 +Feature: Print the last few data entries
1316 +
1317 +
1318 +(% style="color:#4f81bd" %)**AT Command: AT+PLDTA**
1319 +
1320 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1321 +|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function**
1322 +|(% style="width:156px" %)(((
1323 +AT+PLDTA=10
1324 +Print last 10 entries
1325 +)))|(% style="width:311px" %)(((
1326 +Stop Tx events when read sensor data
1327 +
1328 +0001 2025/5/19 06:16:50 3246 in1:low in2:low exti:low status:false vdc:3.352 idc:0.000 proble:0000 water_deep:0.000
1329 +
1330 +0002 2025/5/19 06:17:50 3246 in1:low in2:low exti:low status:false vdc:3.352 idc:0.000 proble:0000 water_deep:0.000
1331 +
1332 +0003 2025/5/19 06:18:50 3246 in1:low in2:low exti:low status:false vdc:3.352 idc:0.000 proble:0000 water_deep:0.000
1333 +
1334 +0004 2025/5/19 06:19:50 3246 in1:low in2:low exti:low status:false vdc:3.352 idc:0.000 proble:0000 water_deep:0.000
1335 +
1336 +0005 2025/5/19 06:20:50 3246 in1:low in2:low exti:low status:false vdc:3.352 idc:0.000 proble:0000 water_deep:0.000
1337 +
1338 +0006 2025/5/19 06:21:50 3246 in1:low in2:low exti:low status:false vdc:3.351 idc:0.000 proble:0000 water_deep:0.000
1339 +
1340 +0007 2025/5/19 06:22:50 3240 in1:low in2:low exti:low status:false vdc:3.351 idc:0.000 proble:0000 water_deep:0.000
1341 +
1342 +0008 2025/5/19 06:26:44 3276 in1:low in2:low exti:low status:false vdc:3.385 idc:0.000 proble:0000 water_deep:0.000
1343 +
1344 +0009 2025/5/19 06:27:36 3246 in1:low in2:low exti:low status:false vdc:3.351 idc:0.000 proble:0000 water_deep:0.000
1345 +
1346 +0010 2025/5/19 06:28:36 3240 in1:low in2:low exti:low status:false vdc:3.351 idc:0.000 proble:0000 water_deep:0.000
1347 +
1348 +Start Tx events
1349 +
1350 +OK
1351 +)))
1352 +
1353 +(% style="color:#4f81bd" %)**Downlink Command:**
1354 +
1355 +No downlink commands for feature
1356 +
1357 +
1358 +== 3.6 Clear Flash Record(Since v1.1.0) ==
1359 +
1360 +
1361 +Feature: Clear flash storage for data log feature.
1362 +
1363 +(% style="color:#4f81bd" %)**AT Command: AT+CLRDTA**
1364 +
1365 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:503px" %)
1366 +|(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:137px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:209px" %)**Response**
1367 +|(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)(((
1368 +Clear all stored sensor data…
1369 +
1370 +OK
1371 +)))
1372 +
1373 +(% style="color:#4f81bd" %)**Downlink Command: 0xA3**
1374 +
1375 +* Example: 0xA301  ~/~/  Same as AT+CLRDTA
1376 +
1377 +
1256 1256  = 4. Battery & Power Consumption =
1257 1257  
1258 1258  
image-20250512144042-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +471.4 KB
Content
image-20250512144122-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.ting
Size
... ... @@ -1,0 +1,1 @@
1 +572.9 KB
Content