Dragino D20-LB Manuale utente

(/xwiki/bin/view/Main/)
/ Home (/xwiki/bin/view/Main/)
/ User Manual for LoRaWAN End Nodes (/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/)
/ D20-LB/D20S-LB/D22-LB/D23-LB LoRaWAN Temperature Sensor User Manual (/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-
LB_LoRaWAN_Temperature_Sensor_User_Manual/)
D20-LB/D20S-LB/D22-LB/D23-LB LoRaWAN Temperature Sensor
User Manual
Last modified by Xiaoling (/xwiki/bin/view/XWiki/Xiaoling) on 2023/06/12 10:25
Table of Contents:
1. Introduction
1.1 What is D2x-LB LoRaWAN Temperature Sensor
1.2 Features
1.3 Specification
1.4 Sleep mode and working mode
1.5 Button & LEDs
1.6 BLE connection
1.7 Pin Definitions
1.8 Hardware Variant
1.9 Mechanical
2. Configure D2x-LB to connect to LoRaWAN network
2.1 How it works
2.2 Quick guide to connect to LoRaWAN server (OTAA)
2.3 Uplink Payload
2.3.1 Device Status, FPORT=5
2.3.2 Sensor Data. FPORT=2
Decode corresponding probe color:
Battery:
Temperature RED or Temperature White :
Temperature White:
Temperature Black:
Alarm Flag & MOD & Level of PA8:
2.4 Payload Decoder file
2.5 Datalog Feature
2.5.1 Ways to get datalog via LoRaWAN
2.5.2 Unix TimeStamp
2.5.3 Set Device Time
2.5.4 Datalog Uplink payload (FPORT=3)
2.6 Temperature Alarm Feature
2.7 Frequency Plans
2.8 Firmware Change Log
3. Configure D2x-LB
3.1 Configure Methods:
3.2 General Commands
3.3 Commands special design for D2x-LB
3.3.1 Set Transmit Interval Time
3.3.2 Get Device Status
3.3.3 Set Alarm Thredhold
3.3.4 Set Alarm Interval
3.3.5 Get Alarm settings
3.3.6 Set Interrupt Mode
3.3.7 Set Power Output Duration
4. Battery & Power Consumption
5. OTA firmware update
6. FAQ
7. Order Info

8. Packing Info
9. Support
1. Introduction
1.1 What is D2x-LB LoRaWAN Temperature Sensor
The Dragino D2x-LB is a LoRaWAN Temperature Sensor for Internet of Things solution. D2x-LB has 1 ~ 3 temperature probes. D2x-LB will convert the Temperature rea
to LoRaWAN wireless data and send to IoT platform via LoRaWAN gateway.
The LoRa wireless technology used in D2x-LB allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum
communication and high interference immunity whilst minimizing current consumption.
The temperature sensor used in D2x-LB can measure -55°C ~ 125°C with accuracy ±0.5°C (max ±2.0 °C).
D2x-LB supports temperature alarm feature, user can set temperature alarm for instant notice. D2x-LB supports Datalog feature, it can save the data when there is no
LoRaWAN network and uplink when network recover.
D2x-LB has max 3 probes which measure maximum 3 temperature points.
D2x-LB supports BLE configure and wireless OTA update which make user easy to use.
D2x-LB is powered by 8500mAh Li-SOCI2 battery, it is designed for long term use up to 5 years.
Each D2x-LB is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on.
1.2 Features
LoRaWAN 1.0.3 Class A
Ultra-low power consumption
1 ~ 3 External Temperature Probes
Measure range -55°C ~ 125°C
Temperature alarm
Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
Support Bluetooth v5.1 and LoRaWAN remote configure
Support wireless OTA update firmware
Uplink on periodically
Downlink to change configure
8500mAh Battery for long term use
1.3 Specification
Common DC Characteristics:
Supply Voltage: built in 8500mAh Li-SOCI2 battery , 2.5v ~ 3.6v
Operating Temperature: -40 ~ 85°C
Temperature Sensor:
Dallas DS18B20
Range: -55 to + 125°C
Accuracy ±0.5°C (max ±2.0 °C).
LoRa Spec:
Frequency Range, Band 1 (HF): 862 ~ 1020 Mhz
Max +22 dBm constant RF output vs.
RX sensitivity: down to -139 dBm.
Excellent blocking immunity
Battery:
Li/SOCI2 un-chargeable battery
Capacity: 8500mAh
Self-Discharge: <1% / Year @ 25°C
Max continuously current: 130mA
Max boost current: 2A, 1 second
Power Consumption
Sleep Mode: 5uA @ 3.3v
LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
1.4 Sleep mode and working mode

Deep Sleep Mode: Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life.
Working Mode: In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodi
sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.
1.5 Button & LEDs
Behavior on ACT Function Action
Pressing ACT between
1s < time < 3s
Send an uplink If sensor is already Joined to
LoRaWAN network, sensor will
send an uplink packet, blue
led will blink once.
Meanwhile, BLE module will be
active and user can connect via
BLE to configure device.
Pressing ACT for more
than 3s
Active Device Green led will fast blink 5 times,
device will enter OTA mode for 3
seconds. And then start to JOIN
LoRaWAN network.
Green led will solidly turn on for
5 seconds after joined in
network.
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.
Fast press ACT 5 times. Deactivate
Device
Red led will solid on for 5
seconds. Means D2x-LB is in
Deep Sleep Mode.
1.6 BLE connection
D2x-LB support BLE remote configure.
BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case:
Press button to send an uplink
Press button to active device.
Device Power on or reset.
If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.

1.7 Pin Definitions
1.8 Hardware Variant
Model Photo Probe Info
D20-LB 1 x DS28B20 Probe
Cable Length : 2 meters
D20S-LB 1 x DS28B20 Probe (Suitable for bury in soil)
Material: TPE, Cable Length: 2meters
D22-LB 2 x DS28B20 Probes
Cable lengths total 1.5meters per probe
Cable Drawing: See This Link
(https://www.dragino.com/downloads/index.php?
dir=LoRa_End_Node/LSN50v2-
D20/Cable_Drawing/&file=CAB0-35IC-K21G-
210811.pdf)
D23-LB
3 x DS28B20 Probes
Cable lengths total 1.5meters per probe
Cable Drawing: See This Link
(https://www.dragino.com/downloads/index.php?
dir=LoRa_End_Node/LSN50v2-
D20/Cable_Drawing/&file=CAB0-35IC-K31G-
210811.pdf)
1.9 Mechanical

2. Configure D2x-LB to connect to LoRaWAN network
2.1 How it works
The D2x-LB is configured as LoRaWAN OTAA Class A mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to
the OTAA keys in the LoRaWAN IoT server and press the button to activate the D2x-LB. It will automatically join the network via OTAA and start to send the sensor value.
default uplink interval is 20 minutes.
2.2 Quick guide to connect to LoRaWAN server (OTAA)
Following is an example for how to join the TTN v3 LoRaWAN Network (https://console.cloud.thethings.network/) . Below is the network structure; we use the LPS8v2
(https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html) as a LoRaWAN gateway in this example.
The LPS8V2 is already set to connected to TTN network (https://console.cloud.thethings.network/) , so what we need to now is configure the TTN server.
Step 1: Create a device in TTN with the OTAA keys from D2x-LB.
Each D2x-LB is shipped with a sticker with the default device EUI as below:

You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
Register the device
Add APP EUI and DEV EUI
Add APP EUI in the application

Add APP KEY
Step 2: Activate on D2x-LB
Press the button for 5 seconds to activate the D2x-LB.
Green led will fast blink 5 times, device will enter OTA mode for 3 seconds. And then start to JOIN LoRaWAN network. Green led will solidly turn on for 5 seconds after j
in network.
After join success, it will start to upload messages to TTN and you can see the messages in the panel.

2.3 Uplink Payload
2.3.1 Device Status, FPORT=5
Users can use the downlink command(0x26 01) to ask D2x-LB to send device configure detail, include device configure status. D2x-LB will uplink a payload via FPort=5 t
server.
The Payload format is as below.
Device Status (FPORT=5)
Size (bytes) 1 2 1 1 2
Value Sensor
Model
Firmware
Version
Frequency
Band
Sub-band BAT
Example parse in TTNv3
Sensor Model: For D2x-LB, this value is 0x19
Firmware Version: 0x0100, Means: v1.0.0 version
Frequency Band:
*0x01: EU868
*0x02: US915
*0x03: IN865
*0x04: AU915
*0x05: KZ865
*0x06: RU864
*0x07: AS923
*0x08: AS923-1
*0x09: AS923-2
*0x0a: AS923-3
*0x0b: CN470
*0x0c: EU433
*0x0d: KR920
*0x0e: MA869
Sub-Band:
AU915 and US915:value 0x00 ~ 0x08
CN470: value 0x0B ~ 0x0C
Other Bands: Always 0x00
Battery Info:
Check the battery voltage.
Ex1: 0x0B45 = 2885mV
Ex2: 0x0B49 = 2889mV
2.3.2 Sensor Data. FPORT=2
D2x-LB will uplink below payload via FPORT=2 after Joined LoRaWAN Network.
Size(bytes) 2 2 2 1 2 2

Value Battery Temp_
Red or
Temp
_White
ignore Alarm
Flag &
MOD&
Level
of PA8
Temp_White Temp_Black
Payload per each model.
Decode corresponding probe color:
D20:
Red <--> C1
D22:
White <--> C1 , Red <--> C2
D23:
White <-->C1 , Red <--> C2 , Black <--> C3
Battery:
Sensor Battery Level.
Ex1: 0x0B45 = 2885mV
Ex2: 0x0B49 = 2889mV
Temperature RED or Temperature White :
This point to the Red probe in D20-LB or the probe of D22-LB/D23-LB White
Example:
If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
Temperature White:
This point to the Red probe in D22-LB/D23-LB.
If it is D20-LB, the value is 0x7FFF, which is 327.67.
Example:
If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)

Temperature Black:
This point to the BLACK probe in D23-LB
If it is D20-LB/D22-LB, the value is 0x7FFF, which is 327.67.
Example:
If payload is: 0105H: (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
If payload is: FF3FH : (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
(FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
Alarm Flag & MOD & Level of PA8:
Example:
If payload & 0x01 = 0x01 --> This is an Alarm Message.It means that the temperature exceed the alarm value or trigger an interrupt.
If payload & 0x01 = 0x00 --> This is a normal uplink message, no alarm.
If payload & 0x80>>7 = 0x01 --> The PA8 is low level.
If payload & 0x80>>7 =0x00 --> The PA8 is high level.
If payload >> 2 = 0x00 --> means MOD=1, This is a sampling uplink message.
If payload >> 2 = 0x31 --> means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see this link
(http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/S31-LB_S31B-LB/#HPolltheAlarmsettings:) for detail.
2.4 Payload Decoder file
In TTN, use can add a custom payload so it shows friendly.
In the page Applications --> Payload Formats --> Custom --> decoder to add the decoder from:
https://github.com/dragino/dragino-end-node-decoder/tree/main/D20-LB%26D20S-LB%26D22-LB%26D23-LB (https://github.com/dragino/dragino-end-node-
decoder/tree/main/D20-LB%26D20S-LB%26D22-LB%26D23-LB)
2.5 Datalog Feature
Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, D2x-LB will store the reading fo
future retrieving purposes.
2.5.1 Ways to get datalog via LoRaWAN
Set PNACKMD=1, D2x-LB will wait for ACK for every uplink, when there is no LoRaWAN network,D2x-LB will mark these records with non-ack messages and store the s
data, and it will send all messages (10s interval) after the network recovery.
a) D2x-LB will do an ACK check for data records sending to make sure every data arrive server.
b) D2x-LB will send data in CONFIRMED Mode when PNACKMD=1, but D2x-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-AC
message. In a future uplink if D2x-LB gets a ACK, D2x-LB will consider there is a network connection and resend all NONE-ACK Message.
Below is the typical case for the auto-update datalog feature (Set PNACKMD=1)
Questo manuale è adatto per i seguenti modelli
3
Indice
Altri manuali Dragino Accessori

Dragino
Dragino LSE01 Manuale utente

Dragino
Dragino LLDS40 Manuale utente

Dragino
Dragino LHT52 Manuale utente

Dragino
Dragino LDDS04 Manuale utente

Dragino
Dragino LDS03A Manuale utente

Dragino
Dragino LoRaWAN LiDAR ToF Manuale utente

Dragino
Dragino LoRaWAN LDS02 Manuale utente

Dragino
Dragino LHT65 Manuale utente

Dragino
Dragino LSN50 LoRa Manuale utente

Dragino
Dragino LDS01 Manuale utente

























