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

From version 17.1
edited by Xiaoling
on 2023/01/31 13:44
Change comment: Uploaded new attachment "1675143884058-338.png", version {1}
To version 37.2
edited by Xiaoling
on 2023/01/31 14:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -197,7 +197,7 @@
197 197  [[image:1675071855856-879.png]]
198 198  
199 199  
200 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:black; width:510px" %)
200 +(% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %)
201 201  |(% style="width:138px" %)**Behavior on ACT**|(% style="width:100px" %)**Function**|**Action**
202 202  |(% style="width:138px" %)Pressing ACT between 1s < time < 3s|(% style="width:100px" %)Send an uplink|(((
203 203  If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, **blue led** will blink once.
... ... @@ -236,33 +236,36 @@
236 236  If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
237 237  
238 238  
239 +== 1.11 Mechanical ==
239 239  
240 240  
241 -1.
242 -11. Mechanical
243 243  
244 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image012.png]]
245 245  
246 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image013.png]]
244 +[[image:1675143884058-338.png]]
247 247  
248 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image014.png]]
249 249  
247 +[[image:1675143899218-599.png]]
250 250  
251 251  
250 +[[image:1675143909447-639.png]]
252 252  
253 -1. Configure PS-LB to connect to LoRaWAN network
254 -11. How it works
255 255  
253 += 2. Configure PS-LB to connect to LoRaWAN network =
254 +
255 +== 2.1 How it works ==
256 +
257 +
256 256  The PS-LB is configured as **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 activate the PS-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.
257 257  
258 258  
259 -1.
260 -11. ​Quick guide to connect to LoRaWAN server (OTAA)
261 261  
262 +== 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
263 +
264 +
262 262  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.
263 263  
264 264  
265 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]]
268 +[[image:1675144005218-297.png]]
266 266  
267 267  
268 268  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.
... ... @@ -272,58 +272,47 @@
272 272  
273 273  Each PS-LB is shipped with a sticker with the default device EUI as below:
274 274  
278 +[[image:image-20230131134744-2.jpeg]]
275 275  
276 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image015.png]]
277 277  
278 278  
279 -
280 -
281 -
282 282  You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
283 283  
284 284  
285 285  **Register the device**
286 286  
287 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image016.png]]
287 +[[image:1675144099263-405.png]]
288 288  
289 289  
290 290  **Add APP EUI and DEV EUI**
291 291  
292 +[[image:1675144117571-832.png]]
292 292  
293 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image017.png]]
294 294  
295 -
296 296  **Add APP EUI in the application**
297 297  
298 298  
299 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image018.png]]
298 +[[image:1675144143021-195.png]]
300 300  
301 301  
302 302  **Add APP KEY**
303 303  
304 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image019.png]]
303 +[[image:1675144157838-392.png]]
305 305  
306 -
307 307  **Step 2**: Activate on PS-LB
308 308  
309 309  
310 310  Press the button for 5 seconds to activate the PS-LB.
311 311  
312 -
313 313  **Green led** will fast blink 5 times, device will enter **OTA mode** for 3 seconds. And then start to JOIN LoRaWAN network. **Green led** will solidly turn on for 5 seconds after joined in network.
314 314  
315 -
316 316  After join success, it will start to upload messages to TTN and you can see the messages in the panel.
317 317  
318 318  
319 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image020.png]]
320 320  
316 +== 2.3 ​Uplink Payload ==
321 321  
322 322  
323 -
324 -1.
325 -11. ​Uplink Payload
326 -
327 327  Uplink payloads have two types:
328 328  
329 329  * Distance Value: Use FPORT=2
... ... @@ -332,27 +332,24 @@
332 332  The application server should parse the correct value based on FPORT settings.
333 333  
334 334  
327 +=== 2.3.1 Device Status, FPORT~=5 ===
335 335  
336 -1.
337 -11.
338 -111. Device Status, FPORT=5
339 339  
340 340  Include device configure status. Once PS-LB Joined the network, it will uplink this message to the server.
341 341  
342 -
343 343  Users can also use the downlink command(0x26 01) to ask PS-LB to resend this uplink.
344 344  
345 345  
335 +(% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %)
346 346  |(% colspan="6" %)**Device Status (FPORT=5)**
347 -|**Size (bytes)**|**1**|**2**|**1**|**1**|**2**
348 -|**Value**|Sensor Model|Firmware Version|Frequency Band|Sub-band|BAT
337 +|(% style="width:103px" %)**Size (bytes)**|(% style="width:72px" %)**1**|**2**|**1**|**1**|**2**
338 +|(% style="width:103px" %)**Value**|(% style="width:72px" %)Sensor Model|Firmware Version|Frequency Band|Sub-band|BAT
349 349  
350 350  Example parse in TTNv3
351 351  
352 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image021.png]]
342 +[[image:1675144504430-490.png]]
353 353  
354 354  
355 -
356 356  **Sensor Model**: For PS-LB, this value is 0x16
357 357  
358 358  **Firmware Version**: 0x0100, Means: v1.0.0 version
... ... @@ -406,33 +406,25 @@
406 406  Ex2: 0x0B49 = 2889mV
407 407  
408 408  
398 +=== 1.3.2 Sensor value, FPORT~=2 ===
409 409  
410 -1.
411 -11.
412 -111. Sensor value, FPORT=2
413 413  
414 414  Uplink payload includes in total 9 bytes.
415 415  
416 416  
417 -|(((
418 -**Size**
404 +(% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %)
405 +|(% style="width:97px" %)(((
406 +**Size(bytes)**
407 +)))|(% style="width:48px" %)**2**|(% style="width:58px" %)**2**|**2**|**2**|**1**
408 +|(% style="width:97px" %)**Value**|(% style="width:48px" %)[[BAT>>path:#bat]]|(% style="width:58px" %)[[Probe Model>>path:#Probe_Model]]|0 ~~ 20mA value|[[0 ~~~~ 30v value>>path:#Voltage_30v]]|[[IN1 &IN2 Interrupt  flag>>path:#Int_pin]]
419 419  
420 -**(bytes)**
421 -)))|**2**|**2**|**2**|**2**|**1**
422 -|**Value**|[[BAT>>path:#bat]]|[[Probe Model>>path:#Probe_Model]]|0 ~~ 20mA value|[[0 ~~~~ 30v value>>path:#Voltage_30v]]|[[IN1 &IN2 Interrupt  flag>>path:#Int_pin]]
410 +[[image:1675144608950-310.png]]
423 423  
424 424  
425 425  
414 +=== 2.3.3 Battery Info ===
426 426  
427 427  
428 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image020.png]]
429 -
430 -
431 -
432 -1.
433 -11.
434 -111. Battery Info
435 -
436 436  Check the battery voltage for PS-LB.
437 437  
438 438  Ex1: 0x0B45 = 2885mV
... ... @@ -440,50 +440,45 @@
440 440  Ex2: 0x0B49 = 2889mV
441 441  
442 442  
443 -1.
444 -11.
445 -111. Probe Model
424 +=== 2.3.4 Probe Model ===
446 446  
426 +
447 447  PS-LB has different kind of probe, 0~~20mA represent the full scale of the measuring range. So a 15mA output means different meaning for different probe. 
448 448  
449 449  
450 450  For example.
451 451  
452 -|**Part Number**|**Probe Used**|**0~~20mA scale**|**Example: 10mA meaning**
453 -|PS-LB-I3|immersion type with 3 meters cable|0~~3 meters|1.5 meters pure water
454 -|PS-LB-I5|immersion type with 5 meters cable|0~~5 meters|2.5 meters pure water
432 +(% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %)
433 +|(% style="width:111px" %)**Part Number**|(% style="width:158px" %)**Probe Used**|**0~~20mA scale**|**Example: 10mA meaning**
434 +|(% style="width:111px" %)PS-LB-I3|(% style="width:158px" %)immersion type with 3 meters cable|0~~3 meters|1.5 meters pure water
435 +|(% style="width:111px" %)PS-LB-I5|(% style="width:158px" %)immersion type with 5 meters cable|0~~5 meters|2.5 meters pure water
455 455  
456 456  The probe model field provides the convenient for server to identical how it should parse the 0~~20mA sensor value and get the correct value.
457 457  
458 458  
459 -1.
460 -11.
461 -111. 0~~20mA value (IDC_IN)
440 +=== 2.3.5 0~~20mA value (IDC_IN) ===
462 462  
442 +
463 463  The output value from Pressure Probe, use together with Probe Model to get the pressure value or water level.
464 464  
465 -
466 466  **Example**:
467 467  
468 468  27AE(H) = 10158 (D)/1000 = 10.158mA.
469 469  
470 470  
471 -1.
472 -11.
473 -111. 0~~30V value ( pin VDC_IN)
450 +=== 2.3.6 0~~30V value ( pin VDC_IN) ===
474 474  
452 +
475 475  Measure the voltage value. The range is 0 to 30V.
476 476  
477 -
478 478  **Example**:
479 479  
480 480  138E(H) = 5006(D)/1000= 5.006V
481 481  
482 482  
483 -1.
484 -11.
485 -111. IN1&IN2&INT pin
460 +=== 2.3.7 IN1&IN2&INT pin ===
486 486  
462 +
487 487  IN1 and IN2 are used as digital input pins.
488 488  
489 489  **Example**:
... ... @@ -493,10 +493,8 @@
493 493  09 (H) :(0x09&0x04)>>2=0    IN2 pin is low level.
494 494  
495 495  
496 -
497 497  This data field shows if this packet is generated by **Interrupt Pin** or not. [[Click here>>path:#Int_mod]] for the hardware and software set up. Note: The Internet Pin is a separate pin in the screw terminal.
498 498  
499 -
500 500  **Example:**
501 501  
502 502  09 (H) : (0x09&0x02)>>1=1    The level of the interrupt pin.
... ... @@ -506,101 +506,78 @@
506 506  0x01: Interrupt Uplink Packet.
507 507  
508 508  
483 +=== 2.3.8 ​Decode payload in The Things Network ===
509 509  
510 510  
511 -
512 -
513 -
514 -1.
515 -11.
516 -111. ​Decode payload in The Things Network
517 -
518 518  While using TTN network, you can add the payload format to decode the payload.
519 519  
520 520  
521 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]]
489 +[[image:1675144839454-913.png]]
522 522  
523 -PS-LB TTN Payload Decoder:
524 524  
525 -[[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]
492 +PS-LB TTN Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]
526 526  
527 527  
528 -1.
529 -11. Uplink Interval
495 +== 2.4 Uplink Interval ==
530 530  
497 +
531 531  The PS-LB by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link:
532 532  
533 533  [[http:~~/~~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands#Change_Uplink_Interval>>url:http://wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands#Change_Uplink_Interval]]
534 534  
535 535  
503 +== 2.5 Show Data in DataCake IoT Server ==
536 536  
537 -1.
538 -11. ​Show Data in DataCake IoT Server
539 539  
540 540  [[DATACAKE>>url:https://datacake.co/]] provides a human friendly interface to show the sensor data, once we have data in TTN, we can use [[DATACAKE>>url:https://datacake.co/]] to connect to TTN and see the data in DATACAKE. Below are the steps:
541 541  
542 542  
543 -**Step 1**: Be sure that your device is programmed and properly connected to the network at this time.
509 +**Step 1: **Be sure that your device is programmed and properly connected to the network at this time.
544 544  
545 -**Step 2**: To configure the Application to forward data to DATACAKE you will need to add integration. To add the DATACAKE integration, perform the following steps:
511 +**Step 2:** To configure the Application to forward data to DATACAKE you will need to add integration. To add the DATACAKE integration, perform the following steps:
546 546  
547 547  
548 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]]
514 +[[image:1675144951092-237.png]]
549 549  
550 550  
551 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image024.png]]
517 +[[image:1675144960452-126.png]]
552 552  
553 553  
554 -Step 3: Create an account or log in Datacake.
520 +**Step 3:** Create an account or log in Datacake.
555 555  
556 -Step 4: Create PS-LB product.
522 +**Step 4:** Create PS-LB product.
557 557  
558 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image025.png]]
524 +[[image:1675145004465-869.png]]
559 559  
560 560  
527 +[[image:1675145018212-853.png]]
561 561  
562 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image026.png]]
563 563  
564 564  
565 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]]
566 566  
532 +[[image:1675145029119-717.png]]
567 567  
568 -Step 5: add payload decode
569 569  
535 +**Step 5: **add payload decode
570 570  
571 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]]
537 +[[image:1675145051360-659.png]]
572 572  
573 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png]]
574 574  
540 +[[image:1675145060812-420.png]]
575 575  
576 576  
543 +
577 577  After added, the sensor data arrive TTN, it will also arrive and show in Datacake.
578 578  
579 579  
580 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]]
547 +[[image:1675145081239-376.png]]
581 581  
582 582  
550 +== 2.6 Frequency Plans ==
583 583  
584 584  
585 -
586 -
587 -
588 -
589 -
590 -
591 -
592 -
593 -
594 -
595 -
596 -
597 -
598 -1.
599 -11. Frequency Plans
600 -
601 601  The PS-LB uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets.
602 602  
603 -
604 604  [[https:~~/~~/wiki.dragino.com/index.php?title=End_Device_Frequency_Band>>url:https://wiki.dragino.com/index.php?title=End_Device_Frequency_Band]]
605 605  
606 606  
1675143899218-599.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +5.6 KB
Content
1675143909447-639.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +9.5 KB
Content
1675144005218-297.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +88.6 KB
Content
1675144035100-313.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +131.3 KB
Content
1675144099263-405.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +59.6 KB
Content
1675144117571-832.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +53.8 KB
Content
1675144143021-195.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +83.1 KB
Content
1675144157838-392.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +65.2 KB
Content
1675144504430-490.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +37.2 KB
Content
1675144608950-310.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +31.5 KB
Content
1675144839454-913.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +59.2 KB
Content
1675144951092-237.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +62.2 KB
Content
1675144960452-126.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +66.6 KB
Content
1675145004465-869.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +112.9 KB
Content
1675145018212-853.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +199.6 KB
Content
1675145029119-717.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +77.6 KB
Content
1675145051360-659.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +49.2 KB
Content
1675145060812-420.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +63.1 KB
Content
1675145081239-376.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +64.9 KB
Content
image-20230131134744-2.jpeg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +16.5 KB
Content