www.dragino.com
LoRaWAN Door Sensor User Manual 7 / 24
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.2 Example to join LoRaWAN network
Here shows an example for how to join the TTN V3 Network. Below is the network structure, we
use LG308 as LoRaWAN gateway here.
The LDS02 in installed on the door edge to detect the open / close event. And send the status to
LoRaWAN server. The LDS02 will uplink two type of messages to the server.
✓ A keep-alive message which send once per day.
✓ A door event message when there is a door open/close. (Alarm event can be disabled)
The LG308 is already set to connect to TTN V3 network . What we need to now is only configure
the TTN V3:
Step 1: Create a device in TTN V3 with the OTAA keys from LDS02.
Each LDS02 is shipped with a sticker with unique device EUI: