Changes for page DS03A-LB/LS -- Outdoor LoRaWAN Door Sensor User Manual
Last modified by Mengting Qiu on 2025/07/03 16:36
From version 67.3
edited by Xiaoling
on 2025/04/17 15:46
on 2025/04/17 15:46
Change comment:
There is no comment for this version
To version 72.1
edited by Mengting Qiu
on 2025/07/03 16:36
on 2025/07/03 16:36
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.ting - Content
-
... ... @@ -1,7 +1,6 @@ 1 1 (% style="display:none" %) (%%) 2 2 3 -(% style="text-align:center" %) 4 -[[image:image-20240108161155-2.png]] 3 +[[image:image-20240108161155-2.png||data-xwiki-image-style-alignment="center"]] 5 5 6 6 7 7 ... ... @@ -128,16 +128,16 @@ 128 128 129 129 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 130 130 |=(% 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** 131 -| (% style="width:167px" %)PressingACT between1s < time <3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((130 +|[[image:1749536870332-565.png]] 1~~3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)((( 132 132 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once. 133 133 Meanwhile, BLE module will be active and user can connect via BLE to configure device. 134 134 ))) 135 -| (% style="width:167px" %)PressingACT for more than3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((134 +|[[image:1749536872361-767.png]] >3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)((( 136 136 (% style="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. 137 137 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 138 138 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. 139 139 ))) 140 -| (% style="width:167px"%)Fast press ACT5times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means Device is in Deep Sleep Mode.139 +|[[image:1749536881052-376.png]] x5|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means Device is in Deep Sleep Mode. 141 141 142 142 == 1.7 BLE connection == 143 143 ... ... @@ -210,32 +210,45 @@ 210 210 211 211 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: 212 212 213 - (%style="display:none" %) (%%)212 +**Create the application.** 214 214 215 - (% style="color:blue"%)**Registerdevice**214 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SAC01L_LoRaWAN_Temperature%26Humidity_Sensor_User_Manual/WebHome/image-20250423093843-1.png?width=756&height=264&rev=1.1||alt="image-20250423093843-1.png"]] 216 216 216 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111305-2.png?width=1000&height=572&rev=1.1||alt="image-20240907111305-2.png"]] 217 217 218 -[[image:image-20250331163451-3.jpeg]](% style="display:none" %) 219 219 219 +**Add devices to the created Application.** 220 220 221 - (% style="color:blue"%)**AddPP EUIandDEV EUI**221 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111659-3.png?width=977&height=185&rev=1.1||alt="image-20240907111659-3.png"]] 222 222 223 -[[image:image-202 50331163509-4.jpeg]]223 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111820-5.png?width=975&height=377&rev=1.1||alt="image-20240907111820-5.png"]] 224 224 225 225 226 - (% style="color:blue"%)**AddAPP EUIin theapplication**226 +**Enter end device specifics manually.** 227 227 228 -[[image:image-202 50331163528-5.jpeg]]228 +[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112136-6.png?width=697&height=687&rev=1.1||alt="image-20240907112136-6.png"]] 229 229 230 230 231 - (%style="color:blue"%)**AddAPPKEY**231 +**Add DevEUI and AppKey. Customize a platform ID for the device.** 232 232 233 -[[image:image-202 50331163545-6.jpeg]]233 +[[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"]] 234 234 235 235 236 -(% style="color:blue" %)**Step 2:**(%%) ctivateon DS03A-LB/LS236 +(% style="color:blue" %)**Step 2:**(%%) Add decoder. 237 237 238 +In TTN, user can add a custom payload so it shows friendly reading. 238 238 240 +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/]] 241 + 242 +Below is TTN screen shot: 243 + 244 +[[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-20241009140556-1.png?width=1184&height=488&rev=1.1||alt="image-20241009140556-1.png" height="488" width="1184"]] 245 + 246 +[[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"]] 247 + 248 + 249 +(% style="color:blue" %)**Step 3:**(%%) Activate on DS03A-LB/LS 250 + 239 239 Press the button for 5 seconds to activate the DS03A-LB/LS. 240 240 241 241 (% 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. ... ... @@ -653,46 +653,54 @@ 653 653 654 654 == 2.5 Datalog Feature == 655 655 668 + Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, DS03A-LB/LS will store the reading for future retrieving purposes. 656 656 657 -(% style="color:blue" %)**Datalog Feature** (%%)is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, DS03A-LB/LS will store the reading for future retrieving purposes. 658 658 659 - (% style="color:red"%)**Note:Afterthe device is reset,in cumulative countingmode,the laststored count valuewill beread asthe initial value.**671 +=== 2.5.1 How datalog works === 660 660 661 661 662 - ===2.5.1Ways to get datalogviaLoRaWAN===674 +DS03A-LB/LS will wait for ACK for every uplink, when there is no LoRaWAN network,DS03A-LB/LS will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery. 663 663 676 +* ((( 677 +a) DS03A-LB/LS will do an ACK check for data records sending to make sure every data arrive server. 678 +))) 679 +* ((( 680 +b) DS03A-LB/LS will send data in **CONFIRMED Mode**, but DS03A-LB/LS won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if DS03A-LB/LS gets a ACK, DS03A-LB/LS will consider there is a network connection and resend all NONE-ACK messages. 664 664 665 -Set PNACKMD=1, DS03A-LB/LS will wait for ACK for every uplink, when there is no LoRaWAN network, DS03A-LB/LS will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery. 682 + 683 +))) 666 666 667 -* a) DS03A-LB/LS will do an ACK check for data records sending to make sure every data arrive server. 668 -* b) DS03A-LB/LS will send data in **CONFIRMED Mode** when PNACKMD=1, but DS03A-LB/LS won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if DS03A-LB/LS gets a ACK, DS03A-LB/LS will consider there is a network connection and resend all NONE-ACK Message. 685 +=== 2.5.2 Enable Datalog === 669 669 670 -=== 2.5.2 Unix TimeStamp === 671 671 688 +User need to make sure below two settings are enable to use datalog; 672 672 673 -DS03A-LB/LS uses Unix TimeStamp format based on 690 +* (% style="color:blue" %)**SYNCMOD=1(Default)**(%%) to enable sync time via LoRaWAN MAC command, click here ([[AT+SYNCMOD>>https://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.6Settimesynchronizationmethod28ThenetworkservermustsupportLoRaWANv1.0.329]]) for detailed instructions. 691 +* (% style="color:blue" %)**PNACKMD=1**(%%)** **to enable datalog feature, click here ([[AT+PNACKMD>>https://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H7.26RequesttheservertosendanACK]]) for detailed instructions. 674 674 675 -[[image:image-20250331163638-7.jpeg]] 676 676 677 -User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 678 678 679 -Be low is the converter example695 +Once DS03A-LB/LS Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to DS03A-LB/LS. If DS03A-LB/LS fails to get the time from the server, DS03A-LB/LS will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days). 680 680 681 - [[image:image-20250331163648-8.jpeg]]697 +(% style="color:red" %)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 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 V3 v2 if SYNCMOD=1.** 682 682 683 -So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25 684 684 700 +=== 2.5.3 Unix TimeStamp === 685 685 686 -=== 2.5.3 Set Device Time === 687 687 703 +DS03A-LB/LS uses Unix TimeStamp format based on 688 688 689 - User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync timevia MAC command.705 +[[image:image-20250331163638-7.jpeg]] 690 690 691 - OnceDS03A-LB/LS Joined LoRaWANnetwork,itwillsendtheMAC command(DeviceTimeReq) andtheserverwill reply with(DeviceTimeAns) tosend thecurrenttimetoDS03A-LB/LS. If DS03A-LB/LS fails to get thetime fromtheserver, DS03A-LB/LSwill usethe internaltimeand wait fornext time request (AT+SYNCTDC toset the timerequest period, default is 10 days).707 +User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 692 692 693 - (% style="color:red"%)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher tosupportthisMACcommand feature, Chirpstack,TTNv3 and loriot support but TTN v2 doesn't support. If serverdoesn'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.**709 +Below is the converter example 694 694 711 +[[image:image-20250331163648-8.jpeg]] 695 695 713 +So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25 714 + 715 + 696 696 == 2.6 Show Data in DataCake IoT Server == 697 697 698 698 ... ... @@ -900,7 +900,7 @@ 900 900 * ((( 901 901 (% style="color:#037691" %)**AT+TTRIG1=1,30** (%%) **~-~->** When the **Keep Status** change from close to open, and device remains in open status for more than 30 seconds. DS03A-LB/LS will send an uplink packet, the Alarm1 bit(the second bit of 1^^st^^ byte of payload) on this uplink packet is set to 1. 902 902 903 -(% style="color:#037691" %)**AT+TTRIG1=0,30** (%%) **~-~->** When the **Keep Status** change from open to close, and device remains in o penstatus for more than 30 seconds. DS03A-LB/LS will send an uplink packet, the Alarm1 bit (the second bit of 1^^st^^ byte of payload) on this uplink packet is set to 1.923 +(% style="color:#037691" %)**AT+TTRIG1=0,30** (%%) **~-~->** When the **Keep Status** change from open to close, and device remains in close status for more than 30 seconds. DS03A-LB/LS will send an uplink packet, the Alarm1 bit (the second bit of 1^^st^^ byte of payload) on this uplink packet is set to 1. 904 904 ))) 905 905 906 906 * ((( ... ... @@ -922,7 +922,7 @@ 922 922 * ((( 923 923 (% style="color:#037691" %)**AT+TTRIG2=1,30** (%%) **~-~->** When the **Keep Status** change from close to open, and device remains in open status for more than 30 seconds. DS03A-LB/LS will send an uplink packet, the Alarm2 bit (the second bit of 12^^st^^ byte of payload) on this uplink packet is set to 1. 924 924 925 -(% style="color:#037691" %)**AT+TTRIG2=0,30** (%%) **~-~->** When the **Keep Status** change from open to close, and device remains in o penstatus for more than 30 seconds. DS03A-LB/LS will send an uplink packet, the Alarm2 bit (the second bit of 12^^st^^ byte of payload) on this uplink packet is set to 1.945 +(% style="color:#037691" %)**AT+TTRIG2=0,30** (%%) **~-~->** When the **Keep Status** change from open to close, and device remains in close status for more than 30 seconds. DS03A-LB/LS will send an uplink packet, the Alarm2 bit (the second bit of 12^^st^^ byte of payload) on this uplink packet is set to 1. 926 926 ))) 927 927 928 928 * (((
- 1749536870332-565.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.9 KB - Content
- 1749536872361-767.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.9 KB - Content
- 1749536881052-376.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.4 KB - Content