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.1
edited by Xiaoling
on 2025/04/17 15:27
on 2025/04/17 15:27
Change comment:
Uploaded new attachment "image-20250417152741-2.png", version {1}
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 ... ... @@ -60,9 +60,6 @@ 60 60 ))) 61 61 62 62 63 -[[image:image-20230522092934-2.png||height="346" width="774"]] 64 - 65 - 66 66 == 1.2 Features == 67 67 68 68 ... ... @@ -127,20 +127,20 @@ 127 127 == 1.6 Button & LEDs == 128 128 129 129 130 -[[image: http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20240103160425-4.png?rev=1.1||alt="image-20240103160425-4.png"]]126 +[[image:image-20250417152253-1.jpeg]] 131 131 132 132 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 133 133 |=(% 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** 134 -| (% 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" %)((( 135 135 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once. 136 136 Meanwhile, BLE module will be active and user can connect via BLE to configure device. 137 137 ))) 138 -| (% 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" %)((( 139 139 (% 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. 140 140 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 141 141 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. 142 142 ))) 143 -| (% 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. 144 144 145 145 == 1.7 BLE connection == 146 146 ... ... @@ -201,7 +201,7 @@ 201 201 202 202 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. 203 203 204 -[[image:image-202 30522092858-1.png||height="391" width="874"]]200 +[[image:image-20250417152741-2.png]] 205 205 206 206 207 207 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from DS03A-LB/LS. ... ... @@ -213,32 +213,45 @@ 213 213 214 214 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: 215 215 216 - (%style="display:none" %) (%%)212 +**Create the application.** 217 217 218 - (% 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"]] 219 219 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"]] 220 220 221 -[[image:image-20250331163451-3.jpeg]](% style="display:none" %) 222 222 219 +**Add devices to the created Application.** 223 223 224 - (% 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"]] 225 225 226 -[[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"]] 227 227 228 228 229 - (% style="color:blue"%)**AddAPP EUIin theapplication**226 +**Enter end device specifics manually.** 230 230 231 -[[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"]] 232 232 233 233 234 - (%style="color:blue"%)**AddAPPKEY**231 +**Add DevEUI and AppKey. Customize a platform ID for the device.** 235 235 236 -[[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"]] 237 237 238 238 239 -(% style="color:blue" %)**Step 2:**(%%) ctivateon DS03A-LB/LS236 +(% style="color:blue" %)**Step 2:**(%%) Add decoder. 240 240 238 +In TTN, user can add a custom payload so it shows friendly reading. 241 241 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 + 242 242 Press the button for 5 seconds to activate the DS03A-LB/LS. 243 243 244 244 (% 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. ... ... @@ -656,46 +656,54 @@ 656 656 657 657 == 2.5 Datalog Feature == 658 658 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. 659 659 660 -(% 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. 661 661 662 - (% 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 === 663 663 664 664 665 - ===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. 666 666 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. 667 667 668 -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 +))) 669 669 670 -* a) DS03A-LB/LS will do an ACK check for data records sending to make sure every data arrive server. 671 -* 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 === 672 672 673 -=== 2.5.2 Unix TimeStamp === 674 674 688 +User need to make sure below two settings are enable to use datalog; 675 675 676 -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. 677 677 678 -[[image:image-20250331163638-7.jpeg]] 679 679 680 -User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 681 681 682 -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). 683 683 684 - [[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.** 685 685 686 -So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25 687 687 700 +=== 2.5.3 Unix TimeStamp === 688 688 689 -=== 2.5.3 Set Device Time === 690 690 703 +DS03A-LB/LS uses Unix TimeStamp format based on 691 691 692 - User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync timevia MAC command.705 +[[image:image-20250331163638-7.jpeg]] 693 693 694 - 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/]] : 695 695 696 - (% 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 697 697 711 +[[image:image-20250331163648-8.jpeg]] 698 698 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 + 699 699 == 2.6 Show Data in DataCake IoT Server == 700 700 701 701 ... ... @@ -903,7 +903,7 @@ 903 903 * ((( 904 904 (% 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. 905 905 906 -(% 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. 907 907 ))) 908 908 909 909 * ((( ... ... @@ -925,7 +925,7 @@ 925 925 * ((( 926 926 (% 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. 927 927 928 -(% 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. 929 929 ))) 930 930 931 931 * (((
- 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