DRAGINO LoRaWAN Water Leak User Manual
- June 7, 2024
- DRAGINO
Table of Contents
LWL01 – LoRaWAN Water Leak User Manual
Document Version: 1.0.0
Image Version: v1.0
Version | Description | Date |
---|---|---|
1.0 | Release | 2020-Feb-1 |
Introduction
What is LWL01 LoRaWAN Water Leak Sensor
The Dragino LWL01 is a LoRaWAN Water Leak Sensor. It detects the water leak
status and sends it to the LoRaWAN network. The LWL01 is a small sensor, the
dimension is as small as 64 x 30 x 14 mm.
LWL01 is powered by a CR2032 coin battery, in a good LoRaWAN Network Coverage
case, it can transmit as many as 12,000 uplink packets (base on SF7, 14dB). in
poor LoRaWAN network coverage, it can transmit ~ 1,300 uplink packets (base on
SF10, 18dB). The design goal for one battery is up to 2 years. Users can
easily change the CR2032 battery for reuse.
The LWL01 will send periodically data every day as well as for water leak
events. It also counts the water leak event times and also calculates the last
water leak duration.
Each LWL01 is pre-loaded with a set of unique keys for LoRaWAN registrations,
register these keys to the local LoRaWAN server and it will auto-connect after
power on.
Features
√ LoRaWAN Class A v1.0.3
√ Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865/RU864
√ SX1262 LoRa Core
√Water Leak detect
√ CR2032 battery powered
√AT Commands to change parameters
√ Remote configure parameters via LoRa Downlink
√ Firmware upgradable via program port
Applications
√ Smart Buildings & Home Automation
√Logistics and Supply Chain Management
√ Smart Metering
√ Smart Agriculture
√ Smart Cities
√ Smart Factory
Dimension
Firmware Changelog
LWL01 Image files –Download
link
Image v1.0
√ Release
Power ON LWL01
When receiving the LWL01, please open the enclosure and remove the isolated
paper, and PRESS RESET so the coin battery can power on the device and the
device runs in low power mode. The LED will blink when the device is
powered.
Operation Mode
How it works?
The LWL01 is configured as LoRaWAN OTAA Class A mode. It has OTAA keys to join
the network. To connect a local LoRaWAN network, the user just needs to input
the OTAA keys in the network server and power on the LWL01. It will auto-
join the network via OTAA.
In case the user can’t set the OTAA keys in the network server and has to use
the existing keys from the server. Users can use AT Command to set the
keys in the devices.
Example to join LoRaWAN network
Here shows an example of how to join the TTN Network. Below is the network
structure, we use our LG308 as LoRaWAN gateway here.
The LWL01 is installed on the door edge to detect the open/close event. And
send the status to the LoRaWAN server. The LWL01 will uplink two types of
messages to the server.
√ A keep-alive message which sends once per day.
√ An emergency event message when detecting a water leak.
√A periodic update every 5 minutes when in a water leak.
√A message when switching from a water leak to a none water leak.
The LG308 is already set to connect to the TTN network. So what we need to now
is only configure the TTN:
Step 1 : Create a device in TTN with the OTAA keys from LWL01.
Each LWL01 is shipped with a sticker with a unique device EUI:
Users can enter this key in their LoRaWAN Server portal. Below is a TTN screenshot: Add APP EUI in the application.
Add APP KEY and DEV EUI
Step 2: Power on LWL01 and it will auto-join to the TTN network. After join success, it will start to upload a message to TTN and the user can see it in the panel.
Uplink Payload
Total 9 bytes.
Size(bytes) | 3 | 1 | 3 | 3 |
---|---|---|---|---|
value | Status&BAT | MOD | ||
Always:0x02 | Total water | |||
leak events | Total water |
leak events
Example:
Example Payload Decoder in TTN:
http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDS01/Payload/
Downlink Payload
Downlink Control Type | Type Code | Downlink payload size(bytes) |
---|---|---|
TDC (Transmit Time Interval—Keep-Alive Interval) | 0x01 | 4 |
RESET | 0x04 | 2 |
Clear Counting | 0xA6 | 2 |
Example Downlink payload setting in TTN:
Type Code 0x01
If the payload=0100003C means to control the LWL01’s Keep-Alive interval to
0x00003C=60(S)
Type Code 0x04
If payload = 0x04FF, it will reset the LWL01.
Type Code 0xA6
Example: 0xA601: Clear Counting
For LWL01: reset count number.
Integrate with My device
My devices provide a human-friendly interface to show the sensor data, once we
have data in TTN, we can use My devices to connect to TTN and see the data in
My devices. 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 My devices you
will need to add integration. To add the My devices integration, perform the
following steps:
Step 3: Create an account or login My devices
Step4: Search LWL01 and add DevEUI.
LEDs
Battery
LWL01 is powered by a CR2032 coin battery, when running in deep sleep mode,
the device power consumption is ~5uA.
The main power consumption is transmitting an uplink message. Depends on the
LoRaWAN network signal strength, the device can send a different number of
uplink messages.
- In poor network coverage and US915 band. The device will transmit at SF10 at max power. in this case, it can uplink about ~1,300 messages.
- In good network coverage and EU868 band, the device will transmit at SF7 and can uplink as many as 12,000 messages.
When the battery voltage is below 2.75v, the LWL01 can’t send an uplink
message.
Note: It is recommended to change the battery when it reaches 2.8v. After
changing the battery, make sure to PRESS the RESET button to activate the low
power mode.
Below shows the battery placement:
Use AT Command
Access AT Command
LWL01 supports AT Command set. Users can use a USB to TTL adapter to configure
LWL01 via use AT command, as below.
USB to TTL <- -> LWL01
RX <- -> TX
TX <- -> RX
GND <- -> GND
In PC, the User needs to set the serial too l(such as putty , SecureCRT) baud rate to 115200 to access the serial console of LWL01. The AT Access password is 123456. Below is the output for reference:
Each AT Command needs to add an ENTER at the end before sending.
When entering the first command, the RED LED will on and the 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.
A more detailed AT Command manual can be found at AT Command Manual
FAQ
How to upgrade the image?
Users can upgrade the firmware of LWL01 for bug fixes, new features, or change
working regions. The upgrade instruction is here:
http://wiki.dragino.com/index.php?title=Firmware_Upgrade_Instruction
How to change the LoRa Frequency Bands/Region?
Users can follow the introduction for how to upgrade images. When
downloading the images, choose the required image file for download.
Order Info
Part Number: LWL01-XXX XXX:
√EU433: frequency bands EU433
√ EU868: frequency bands EU868
√ KR920: frequency bands KR920
√ CN470: frequency bands CN470
√ AS923: frequency bands AS923
√AU915: frequency bands AU915
√ US915: frequency bands US915
√ IN865: frequency bands IN865
√CN779: frequency bands CN779
Packing Info
Package Includes:
√ LWL01 x 1
Dimension and weight:
√ Device Size: 64 x 30 x 14 mm
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.
√ Provide as much information as possible regarding your inquiry (product
models, accurately describe your problem and steps to replicate it, etc) and
send a mail to support@dragino.com
References
- Dragino :: Open Source WiFi, Linux Appliance
- Dragino Download Server ./downloads/LoRa_End_Node/LDS01/
- Dragino Download Server ./downloads/LoRa_End_Node/LDS01/Firmware/
- Dragino Download Server ./downloads/LoRa_End_Node/LDS01/Payload/
- Download PuTTY: latest release (0.80)
- The Things Network
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>