www.dragino.com LDS02 – LoRaWAN Door Sensor User Manual Document Version: 1.1 Image Version: v1.3 Version Description Date 1.0 Release 2021-May-16 1.
www.dragino.com 1. Introduction .............................................................................................................................. 4 1.1 What is LDS02 LoRaWAN Door Sensor ....................................................................................... 4 1.2 Features ...................................................................................................................................... 5 1.3 Applications .................................................
www.dragino.com 10. Support ..............................................................................................................................
www.dragino.com 1. Introduction 1.1 What is LDS02 LoRaWAN Door Sensor The Dragino LDS02 is a LoRaWAN Door Sensor. It detects door open/close status and uplink to IoT server via LoRaWAN network. user can see the door status, open time, open counts in the IoT Server. LDS02 is powered by 2 x AAA batteries and target for long time use, these two batteries can provide about 16,000 ~ 70,000 uplink packets. After battery running out, user can easily open the enclosure and replace with 2 common AAA batteries.
www.dragino.com 1.2 Features ✓ LoRaWAN Class A v1.0.3 ✓ Frequency Bands: DTS:903-914.2MHz, Hybrid System:903.9~905.3 MHz ✓ SX1262 LoRa Core ✓ Door Open/Close detect ✓ Door open/close statistics ✓ 2 x AAA LR03 Batteries ✓ AT Commands to change parameters ✓ Uplink on periodically and open/close action ✓ Remote configure parameters via LoRa Downlink ✓ Firmware upgradable via program port 1.
www.dragino.com 2. Power ON LDS02 When receive the LDS02, please open the enclosure and add 2 x AAA batteries to power it. The LED will blink when device is powered. 3. How to install LDS02 When install the LDS02 on wall. Please make sure install as below so the marks will close to each other when close the door.
www.dragino.com 4. Operation Mode 4.1 How it works? The LDS02 is configured as LoRaWAN OTAA Class A mode by default. It has OTAA keys to join network. To connect a local LoRaWAN network, user just need to input the OTAA keys in the network server and power on the LDS02. It will auto join the network via OTAA. In case user can’t set the OTAA keys in the network server and has to use the existing keys from server. User can use AT Command to set the keys in the devices. 4.
www.dragino.com User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot: Add APP EUI in the application.
www.dragino.com LDS02 and LDS01 use the same payload structure. So choose LDS01 as the model here.
www.dragino.com You can also choose to create the device manually.
www.dragino.com Add APP KEY and DEV EUI Step 2: Power on LDS02 and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel. 4.3 Uplink Payload Uplink Payload total 10 bytes.
www.dragino.com Example: Example Payload Decoder in TTN V3: http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDS02/Payload/ 4.
www.dragino.com Example Downlink payload setting in TTN V3: Type Code 0x01 If the payload=0100003C, means to control the LDS02’s Keep Alive interval to 0x00003C=60(S) Type Code 0x04 If payload = 0x04FF, it will reset the LDS02. Type Code 0x05 0x05 00: Set uplink to LoRaWAN unconfirmed mode 0x05 01: Set uplink to LoRaWAN confirmed mode Type Code 0xA6 Example: 0xA601: Clear Counting For LDS02: reset both count number and time.
www.dragino.com Type Code 0xA9 See Alarm Base Timeout for detail.
www.dragino.com 4.5 Integrate with Datacake Datacake provides a human friendly interface to show the sensor data, once we have data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps: Step 1: Be sure that your device is programmed and properly connected to the network at this time. Step 2: To configure the Application to forward data to Datacake you will need to add integration.
www.dragino.
www.dragino.com Step 3: Create an account or log in Datacake. Step 4: Search LDS02 and add DevEUI.
www.dragino.com 4.6 Alarm Base on Timeout LDS02 can monitor the timeout for a status change, this feature can be used to monitor some event such as open fridge too long etc. User configure this feature by using: AT Command to configure: ➢ AT+TTRIG=1,30 → When status change from close to open, and device keep in open status for more than 30 seconds. LDS02 will send an uplink packet, the Alarm bit (the lowest bit of 10th byte of payload) on this uplink packet is set to 1.
www.dragino.com 4.
www.dragino.com 5. Battery & How to replace 5.1 Battery Type and replace LDS02 is equipped with 2 x AAA LR03 batteries. If the batteries running low (shows 2.1v in the platform). User can buy generic AAA battery and replace it. Note: 1) The LDS02 doesn’t have any screw, use can use nail to open it by the middle. 2) Make sure the direction is correct when install the AAA batteries. Important Notice: Make sure use new AAA LR03 battery and the battery doesn’t have broken surface.
www.dragino.
www.dragino.com 6. Use AT Command 6.1 Access AT Command LDS02 supports AT Command set. User can use a USB to TTL adapter to configure LDS02 via use AT command, as below. USB to TTL <- -> LDS02 RX <- -> TX TX <- -> RX GND <- -> GND In PC, User needs to set serial tool(such as putty, SecureCRT) baud rate to 115200 to access to access serial console of LDS02. Below is the output for reference: The AT Access password is 123456. Each AT Command need to add an ENTER at the end before send.
www.dragino.com When entering the first command, the RED LED will on and user can now input AT Commands. After input all needed AT Commands, please input AT+CLPM=1 to set the device to work in Low Power mode and RED LED will be off. More detail AT Command manual can be found at AT Command Manual 7. FAQ 7.1 How to upgrade the image? User can upgrade the firmware of LDS02 for bug fix, new features, or change working region. The upgrade instruction are here: http://wiki.dragino.com/index.
www.dragino.com 9. Packing Info Package Includes: ✓ LDS02 x 1 Dimension and weight: ✓ Device Size: 69.2 x 29.2 x 14.8 mm 10. Support ➢ 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.
FCC Caution: Any Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment. This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.