D20/D20S/D22/D23-FB – NB-IoT/LTE-M Temperature Sensor

1. Introduction
1.1 What is D20/D20S/D22/D23-FB Temperature Sensor
The Dragino D2x-FB is a NB-IoT/LTE-M Temperature Sensor for Internet of Things solution. D2x-FB has 1 ~ 3 temperature probes. D2x-FB will convert the Temperature reading to upload the sensor data send to IoT platform via NB-IoT/CAT-M1 network.
The temperature sensor used in D2x-FB can measure -55°C ~ 125°C with accuracy ±0.5°C (max ±2.0 °C).
D2x-FB has max 3 probes which measure maximum 3 temperature points.
The D2x-FB series supports periodic uplinks, manual uplinks, historical sampling, temperature alarms and JSON configuration downlinks. The exact number of temperature channels depends on the model and connected probes.
The D2x-FB series supports MQTT, MQTTs, UDP and TCP connections, BLE configuration, GNSS location reporting and HTTP OTA firmware updates. D2x-FB is battery-powered. D2x-FS uses a solar panel and a rechargeable battery.
Make sure NB-IoT or LTE-M coverage is available at the installation site.
1.2 Features
- NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B19/B20/B25/B26/B28/B65/B66/B85/B106
- CAT-M1 / LTE-M Bands: B1/B2/B3/B4/B5/B8/B12/B13/B18/B19/B20/B25/B26/B28/B66/B85/B106
- Ultra-low power consumption
- One to three external DS18B20 temperature probes
- Measurement range: −55°C to +125°C
- Independent temperature alarms
- Multiple samples in one uplink
- JSON uplinks over MQTT, MQTT over TLS, TCP or UDP
- GNSS location reporting
- Bluetooth 5.1 for remote configuration
- Periodic and manual uplinks
- Remote configuration by downlink
- Nano SIM card slot
- 8500 mAh Li-SOCl2 battery (D2x-FB)
- Solar panel + 3000 mAh rechargeable Li-ion battery (D2x-FS)
1.3 Specification
Common DC Characteristics:
- Supply voltage: 2.6–3.6 V
- Operating temperature: −40°C to +85°C
Temperature Sensor:
- Dallas DS18B20
- Measurement range: −55°C to +125°C
- Accuracy: ±0.5°C from −10°C to +85°C; up to ±2.0°C over the full measurement range. See the DS18B20 datasheet.
NB-IoT/LTE-M Spec:
- Module: nRF9151-NGFF
- Support Bands:
-
NB-IoT Bands:
- B1 @H-FDD: 2100MHz
- B2 @H-FDD: 1900MHz
- B3 @H-FDD: 1800MHz
- B4 @H-FDD: 2100MHz
- B5 @H-FDD: 860MHz
- B8 @H-FDD: 900MHz
- B12 @H-FDD: 720MHz
- B13 @H-FDD: 740MHz
- B17 @H-FDD: 730MHz
- B19 @H-FDD: 870MHz
- B20 @H-FDD: 790MHz
- B25 @H-FDD: 1900MHz
- B26 @H-FDD: 876MHz
- B28 @H-FDD: 750MHz
- B65 @H-FDD: 2155MHz
- B66 @H-FDD: 2000MHz
- B85 @H-FDD: 700MHz
- B106 @H-FDD: 900MHz
-
CAT-M1 / LTE-M Bands:
- B1 @H-FDD: 2100MHz
- B2 @H-FDD: 1900MHz
- B3 @H-FDD: 1800MHz
- B4 @H-FDD: 2100MHz
- B5 @H-FDD: 860MHz
- B8 @H-FDD: 900MHz
- B12 @H-FDD: 720MHz
- B13 @H-FDD: 740MHz
- B18 @H-FDD: 870MHz
- B19 @H-FDD: 870MHz
- B20 @H-FDD: 790MHz
- B25 @H-FDD: 1900MHz
- B26 @H-FDD: 876MHz
- B28 @H-FDD: 750MHz
- B66 @H-FDD: 2000MHz
- B85 @H-FDD: 700MHz
- B106 @H-FDD: 900MHz
-
Battery:
- Non-rechargeable Li-SOCl2 battery (D2x-FB)
- Capacity: 8500 mAh
- Self-discharge: less than 1% per year at 25°C
- Maximum continuous current: 130 mA
- Maximum boost current: 2 A for 1 second
Power Consumption:
- STOP mode: 14 µA at 3.3 V
- Maximum transmit current: 350 mA at 3.3 V
1.4 Applications
- Cold-chain storage and transport
- Temperature monitoring for buildings and equipment
- Multi-point temperature monitoring in agriculture and industrial installations
1.5 Sleep Mode and Working Mode
Deep Sleep Mode: The sensor does not activate the NB-IoT/CAT-M1 network. This mode is used during storage and shipping to save battery life.
Working Mode: The sensor joins the network and sends data to the server. Between sampling and communication activities, the device enters a low-power idle state.
1.6 Button & LEDs
| Behavior on ACT | Function | Action |
|---|---|---|
1~3s | Send an uplink | If sensor has already attached to NB-IoT/CAT-M1 network, sensor will send an uplink packet, blue led will blink once. |
>3s | Active Device | Green led will fast blink 5 times. And then start to attach NB-IoT/CAT-M1 network. |
x5 | Deactivate Device | Red led will solid on for 5 seconds. Means device is in Deep Sleep Mode. |
x1 | Toggle Serial Communication | Press the ACT button once to activate the serial communication function, and Ready will be displayed in the serial tool. |
Note: When the device is executing a program, the buttons may become invalid. It is best to press the buttons after the device has completed the program execution.
1.7 BLE Connection
D2x-FB support BLE remote configure and firmware update.
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.8 Pin Definitions , Switch & SIM Direction
1.8.1 Jumper JP2
Power on Device when put this jumper.
Power off device when take out this jumper
1.8.2 BOOT MODE / SW1
The BOOT MODE / SW1 switch has no function on -FB products. Always keep the switch in the FLASH position.
1.8.3 Reset Button
Press to reboot the device.
1.8.4 SIM Card Direction
See this link. How to insert SIM Card.
1.9 Hardware Variant
| Model | Photo | Probe Info |
|---|---|---|
| D20-FB | ![]() | 1 x DS18B20 Probe Cable Length : 2 meters |
| D20S-FB | ![]() | 1 x DS18B20 Probe (Suitable for bury in soil) Material: TPE, Cable Length: 2meters |
| D22-FB | ![]() | 2 x DS18B20 Probes Cable lengths total 1.5meters per probe |
| D23-FB | ![]() | 3 x DS18B20 Probes Cable lengths total 1.5meters per probe |
1.10 Mechanical
1.10.1 for FB version

1.10.2 for FS version

1.10.3 for FB2 version

2. Use D2x-FB/FS to Communicate with an IoT Server
2.1 Send data to IoT server via NB-IoT/CAT-M1 network
The D2x-FB/FS is equipped with a NB-IoT module, the pre-loaded firmware in D2x-FB/FS will get temperature data from sensors and send the value to local NB-IoT network via the NB-IoT module. The NB-IoT network will forward this value to IoT server via the protocol defined by D2x-FB/FS.

There are two version: -GE and -1T version of D2x-FB/FS.
GE Version: This version doesn't include SIM card or point to any IoT server. User needs to use AT Commands to configure below two steps to set D2x-FB/FS send data to IoT server.
-
Install NB-IoT SIM card and configure APN. See instruction of Attach Network.
-
Set up sensor to point to IoT Server. See instruction of Configure to Connect Different Servers.
Below shows result of different server as a glance.
| Servers | Dash Board | Comments |
|---|---|---|
| Node-Red | ![]() | |
| Tago.IO | ||
| General UDP | Raw Payload. Need Developer to design Dash Board | |
| General MQTT | Raw Payload. Need Developer to design Dash Board | |
| ThingsBoard | ![]() |
1T Version: This version has 1NCE SIM card pre-installed and configure to send value to ThingsEye. User Just need to select the sensor type in ThingsEyeand Activate D2x-FB and user will be able to see data in ThingsEye. See here for ThingsEye Config Instruction.
2.2 Payload Types
D2x-FB supports JSON payloads only. Use AT+PRO to select the connection protocol with the corresponding parameters:
AT+PRO=2,0// UDP connection with JSON payloadAT+PRO=3,0// MQTT connection with JSON payloadAT+PRO=4,0// TCP connection with JSON payload
2.2.1 Status Packet
When the device is activated and connects to the server, it sends a status packet containing device and firmware information.
{
"IMEI":"355025936334455",
"Image Version":"v1.0.3",
"NB-IoT Stack":"NRF9151-001",
"Model":"D23-FB",
"MCC":"460",
"MNC":"0",
"Cell_id":"46134845",
"Cell_area":"7479",
"PSM_TAU":"36000",
"Active_time":"0"
}
| Field | Description |
|---|---|
IMEI | Device International Mobile Equipment Identity. |
Image Version | Device application firmware version. |
NB-IoT Stack | Cellular modem stack identifier. |
Model | Device model reported by the firmware. |
MCC | Mobile Country Code of the serving network. |
MNC | Mobile Network Code of the serving network. |
Cell_id | Serving cell identifier. |
Cell_area | Serving cell's network area code. |
PSM_TAU | Periodic TAU timer (T3412) in seconds. Time the device stays in PSM deep sleep before waking up for a Tracking Area Update (e.g., "36000" = 10 hours). |
Active_time | PSM active timer (T3324) in seconds. How long the modem remains reachable in idle mode before entering deep sleep (e.g., "0" = immediate sleep). |
For the FB-series status query downlink, see Get Stack Version Downlink.
2.2.2 General JSON Format (Type=0)
The following D23-FB uplink was captured with AT+CLOCKLOG=1,65535,1,8. It includes the current readings from three DS18B20 probes and eight historical samples.
{
"IMEI":"355025936334455",
"IMSI":"460240275256466",
"Model":"D23-FB",
"fcnt":"1",
"signal":"20",
"bat":3.65,
"temp1":20.6,
"temp2":20.4,
"temp3":20.4,
"alarm":"0",
"i_flag":"0",
"MCC":"460",
"MNC":"0",
"Cell_id":"46134845",
"Cell_area":"7479",
"time":"2026-11-20T08:26:45Z",
"latitude":0.000000,
"longitude":0.000000,
"gps_time":"00/00/00,00:00:00",
"1":["3276.7,3276.7,3276.7,2026-11-20T08:20:32Z"],
"2":["20.6,3276.7,3276.7,2026-11-20T08:21:32Z"],
"3":["20.6,20.5,20.6,2026-11-20T08:22:32Z"],
"4":["20.6,20.5,20.5,2026-11-20T08:22:57Z"],
"5":["20.6,20.5,20.5,2026-11-20T08:23:57Z"],
"6":["20.6,20.4,20.5,2026-11-20T08:24:57Z"],
"7":["20.6,20.4,20.4,2026-11-20T08:25:57Z"],
"8":["20.6,20.4,20.4,2026-11-20T08:26:45Z"]
}
Main fields:
| Field | Description |
|---|---|
IMEI | Device identifier. |
IMSI | SIM subscriber identifier. |
Model | Device model, "D23-FB" |
fcnt | Uplink frame counter. |
signal | Cellular signal quality. |
bat | Battery voltage in volts. |
temp1 | Temperature channel 1 in °C. (PC13) |
temp2 | Temperature channel 2 in °C. (PB9) |
temp3 | Temperature channel 3 in °C. (PB8) |
alarm | 0 = normal; 1 = at least one configured temperature alarm is active. |
i_flag | Interrupt flag. "1" for an interrupt-triggered uplink; "0" otherwise. |
MCC, MNC | Serving mobile network identifiers. |
Cell_id, Cell_area | Serving cell information. |
time | Device timestamp in UTC. |
latitude, longitude | GNSS coordinates in decimal degrees. |
gps_time | Timestamp of the GPS fix. 00/00/00,00:00:00 means no valid fix is available. |
"1" … "8" | Array |
The payload contains the temperature fields for the model. For an unconnected channel, the value is 3276.7. Do not treat this value as a valid temperature measurement.
Historical samples
With AT+CLOCKLOG=1,65535,1,8, keys "1" through "8" in this uplink contain historical records. For D2x-FB, each entry is:
temperature1,temperature2,temperature3,sampling time (UTC)
Example:
"8":["20.6,20.4,20.4,2026-11-20T08:26:45Z"]
The top-level temperatures are the current readings. Each numbered entry is an array containing one comma-separated historical record with its own UTC timestamp.
Signal strength (signal):
| Value | Signal strength |
|---|---|
"0" | −113 dBm or less |
"1" | −111 dBm |
"2"–"30" | −109 dBm to −53 dBm |
"31" | −51 dBm or greater |
"99" | Unknown or not detectable |
3. Configure D2x-FB/FS
3.1 Configure Methods
D2x-FB supports below configure method:
-
AT Command via Bluetooth Connection (Recommended): BLE Configure Instruction.
-
AT Command via UART Connection : See UART Connection.
3.2 Serial Access Password
Due to limitations of the NRF9151-NGFF module, the serial communication function remains active for only 5 minutes. If this time is exceeded, you must press the ACT button once to reactivate the chip’s serial communication function.
After the Bluetooth or UART connection is successful, use the Serial Access Password to unlock AT command access.
The label on the box of the node will print the initial password: AT PIN:xxxxxx, and directly use the six-digit password to access the AT instruction window.
If you need to change the password, use AT+PWORD= xxxxxx (6 characters).
Note: After entering the command, you need to add a line break, and you can also set automatic line breaks in the Bluetooth tool or UART connection tool.
3.3 AT Commands Set
AT? // List available commands
AT+<CMD>? // Help on a command
AT+<CMD> // Run a command
AT+<CMD>=<value> // Set a value
AT+<CMD>=? // Query a value
General Commands
AT+MODEL : Get module information
AT+CFGMOD : Working mode selection
AT+DEUI : Get or set the Device ID
AT+CFG : Print all settings
AT+TDC : Get or set the application data transmission interval in s
AT+INTMOD : Get or Set the trigger interrupt mode (0:input,1:falling or rising,2:falling,3:rising)
AT+TEMPALARM1 : Get or set alarm thresholds for temperature channel 1
AT+TEMPALARM2 : Get or set alarm thresholds for temperature channel 2
AT+TEMPALARM3 : Get or set alarm thresholds for temperature channel 3
AT+GETSENSORVALUE : Returns the current sensor measurement
AT+5VT : Get or Set extend the time of 5V power
AT+RXDL : Get or Set the receiving time
AT+SLEEP : Set the sleep mode
Network and Server
AT+APN : Get or set the APN
AT+AUNAME : Get or set the APN username
AT+APWD : Get or set the APN password
AT+SERVADDR : Get or Set the Server address
AT+PRO : Get or set the connection protocol (2: UDP, 3: MQTT, 4: TCP)
AT+IOTMOD : Configure Network Category to be Searched for under LTE RAT
AT+REDPT : Get or Set the function of reconnecting the network to send data
AT+FREB : Get or set the number of failed send attempts
MQTT Management
AT+CLIENT : Get or Set the MQTT clientID
AT+UNAME : Get or Set the MQTT Username
AT+PWD : Get or Set the MQTT password
AT+PUBTOPIC : Get or set MQTT publishing topic
AT+SUBTOPIC : Get or set MQTT subscription topic
AT+MQOS : Set the QoS level of MQTT
AT+TLSMOD : Get or Set the TLS mode
GPS
AT+GTIME : Extend the time to turn on GNSS
AT+QGPS : Turn off and on GPS
AT+QGTDC : Get or set GPS positioning interval in units of h
Data Logging
AT+CLOCKLOG : Get or set the clock logging schedule
AT+PDTA : Print the sector data from start page to stop page
AT+PLDTA : Print the last few sets of data
AT+CLRDTA : Clear the storage, record position back to 1st
AT+GETLOG : Print serial port logs
Device Management
AT+PWORD : Get or set the System password
AT+FDR : Reset Parameters to Factory Default
ATZ : Reset the MCU
AT+UPGRADE : OTA upgrade.
3.4 Test Uplink and Change Update Interval
By default, the sensor sends an uplink every 2 hours.
AT Command: AT+TDC
Example: AT+TDC=900 // Set the uplink interval to 900 seconds.
Downlink Command: 0x01
Format: Command Code (0x01) followed by 3 bytes.
- 01000258 // AT+TDC=600
- 01000384 // AT+TDC=900
Hold ACT for 1–3 seconds to send a test uplink after the device joins the network.
3.5 Extend the receiving time
Feature: Extend the receiving time
AT Command: AT+RXDL
Example: AT+RXDL=1000 // Extend the receiving time to 1000ms
Downlink Commands: 0x03
Format: Command Code (0x03) followed by 3 bytes.
Example: Downlink Payload: 030003E8 // AT+RXDL=1000
3.6 Reset
Feature: Trig a reset of the MCU.
AT Command: ATZ
Downlink Command: 04FF
3.7 +5V
Feature: Set extend the time of 5V power.
AT Command: AT+5VT
Example: AT+5VT=2000 // Set extend the time of 5V power to 2000 ms
Downlink Commands: 0x05
Format: Command Code (0x05) followed by 3 bytes.
Example: Downlink Payload: 050007D0 // AT+5VT=2000
3.8 Trigger an Uplink by External Interrupt
D2x-FB uses the PA4 pin for external interrupts.
AT Command: AT+INTMOD
| Command | Trigger |
|---|---|
AT+INTMOD=0 | Disable external interrupts. |
AT+INTMOD=1 | Rising and falling edges. |
AT+INTMOD=2 | Falling edge. |
AT+INTMOD=3 | Rising edge. |
Downlink Command: 0x06
Example: 06000001 // Same as AT+INTMOD=1.
3.9 Set the QoS level
This command is used to set the QoS level of MQTT.
AT command:
- AT+MQOS=xx // 0~2
3.10 Set the TLS Mode
Refer to this link (General MQTT over TLS Connection) to use the TLS mode.
AT Command: AT+TLSMOD
Example 1:
- AT+TLSMOD=0,0 // Disable TLS Mode.
Example 2:
- AT+TLSMOD=1,0 // No authentication
- AT+TLSMOD=1,1 // Perform server authentication
- AT+TLSMOD=1,2 // Perform server and client authentication if requested by the remote server
3.11 Configure Network Category to be Searched for under LTE RAT.
AT command: AT+IOTMOD=a,b,c
a: 0: Disenable eMTC; 1: Enable eMTC
b: 0: Disenable NB-IoT ; 1. Enable NB-IOT
c: Priority: If two network categories are enabled simultaneously, the device will give priority to the configured category.
Ext1: AT+IOTMOD=1,1,2 ----> Indicates that both eMTC and NB-IoT are enabled, with priority given to the NB-IoT network type.
3.12 Factory data reset
Restore factory Settings configurations.
AT command:
- AT+FDR // Reset Parameters to Factory Default.
3.13 Print last few data entries
Feature: Print the last few data entries
AT command: AT+PLDTA
| Command Example | Response |
|---|---|
| AT+PLDTA=5 Print last 5 entries | 0001 2026/11/20 11:13:03 3633 temp1=22.1 temp2=22.1 temp3=21.9 alarm:false 0002 2026/11/20 11:14:03 3645 temp1=22.1 temp2=22.1 temp3=21.9 alarm:false 0003 2026/11/20 11:14:59 3633 temp1=22.1 temp2=22.1 temp3=21.9 alarm:false 0004 2026/11/20 11:15:59 3641 temp1=22.1 temp2=22.1 temp3=22.0 alarm:false 0005 2026/11/20 11:16:59 3641 temp1=22.3 temp2=22.1 temp3=22.1 alarm:false OK |
Downlink Command:
Use the local serial console for this command.
3.14 Print data entries base on page
Feature: Print the sector data from start page to stop page.
AT command: AT+PDTA
| Command Example | Response |
|---|---|
| AT+PDTA=1,1 Print page 1 to 1 | E8000 2026/11/18 05:00:29 3633 temp1=189.2 temp2=22.0 temp3=0.0 alarm:false E8010 2026/11/18 05:00:45 3629 temp1=189.2 temp2=22.0 temp3=0.0 alarm:false E8020 2026/11/18 05:01:29 3629 temp1=189.2 temp2=22.0 temp3=0.0 alarm:false E8030 2026/11/18 05:02:29 3629 temp1=189.3 temp2=22.0 temp3=0.0 alarm:false E8040 2026/11/18 05:03:29 3629 temp1=189.3 temp2=22.0 temp3=0.0 alarm:false E8050 2026/11/18 05:04:29 3633 temp1=189.2 temp2=22.0 temp3=0.0 alarm:false E8060 2026/11/18 05:05:29 3633 temp1=189.1 temp2=22.0 temp3=0.0 alarm:false E8070 2026/11/18 05:05:45 3629 temp1=189.3 temp2=22.0 temp3=0.0 alarm:false OK |
Downlink Command:
Use the local serial console for this command.
3.15 Clear Flash Record
Feature: Clear flash storage for data log feature.
AT command: AT+CLRDTA
| Command Example | Function | Response |
|---|---|---|
| AT+CLRDTA | Clear data records | Clear all stored sensor data... OK |
3.16 Temperature Probe Wiring
For D23-FB, connect the DS18B20 probes as follows:
| Payload field | Pin | Probe identification in this example |
|---|---|---|
temp1 | PC13 | White |
temp2 | PB9 | Red |
temp3 | PB8 | Black |
3.17 Set GTIME open time
Extend the time to turn on GNSS. The automatic GPS location time is extended when the node is activated.
AT Command: AT+GTIME
Example: AT+GTIME=30 // Set the GPS positioning time to 30 seconds
Downlink command: 0x10
Format: Command Code (0x10) followed by 2 bytes.
Example: Downlink Payload: 10001E // AT+GTIME=30
3.18 Turn on/off GPS
AT Command: AT+QGPS
- Ex1: AT+QGPS=0 // Turn off GPS
- Ex2: AT+QGPS=1 // Turn on GPS
Downlink command: 0x11
Format: Command Code (0x11) followed by 1 byte.
Example: Downlink Payload: 1101 // AT+QGPS=1
3.19 Set QGPS positioning interval
Feature: Set GPS positioning interval (unit: hour).
When GPS is enabled, the node automatically locates and uplinks each time it passes GTDC time after activation.
AT Command: AT+QGTDC
Example: AT+QGTDC=24 // Set the GPS positioning interval to 24h.
Downlink command: 0x12
Format: Command Code (0x12) followed by 3 bytes.
Example: 24 hours: 24(D)=0x18(H)
Downlink Payload: 12000018 // AT+QGTDC=24
3.20 Temperature Alarms
Feature: Set the lower and upper temperature limits in °C for each connected probe.
| AT Command | Temperature channel |
|---|---|
AT+TEMPALARM1=min,max | Channel 1 (temp1) |
AT+TEMPALARM2=min,max | Channel 2 (temp2) |
AT+TEMPALARM3=min,max | Channel 3 (temp3) |
Default setting: All three alarms are disabled.
- Set both limits to
0to disable the corresponding channel alarm.
AT+TEMPALARM1=0,0
AT+TEMPALARM2=0,0
AT+TEMPALARM3=0,0
Example:
- AT+TEMPALARM1=20,50 //sets the lower limit to 20°C and the upper limit to 50°C for channel 1. Once enabled, the device checks the limits at each sampling interval set by
AT+CLOCKLOG. When a reading falls below the lower limit or rises above the upper limit, the device sends an alarm uplink immediately, without waiting for the next periodic uplink set byAT+TDC. The alarm payload contains"alarm":"1".
Hex downlink
Command code 08 is followed by six bytes.
Bytes after 08 | Order |
|---|---|
| 1–2 | Channel 1 lower limit, upper limit |
| 3–4 | Channel 2 lower limit, upper limit |
| 5–6 | Channel 3 lower limit, upper limit |
Encode negative temperatures using two’s complement. For example, −10°C is encoded as F6 (256 − 10 = 246, or 0xF6).
Send 08F61E14140023 as contiguous Hex text to apply the following settings:
- AT+TEMPALARM1=-10,30
- AT+TEMPALARM2=20,20
- AT+TEMPALARM3=0,35
JSON downlink
{"Config":"[AT+TEMPALARM1=-10,30;AT+TEMPALARM2=20,20;AT+TEMPALARM3=0,35]"}
Downlink command: 0x16
Format: Command Code (0x16) followed by 5 bytes.
-
Example 1: Downlink Payload: 16 01 FF FF 0F 08 //Equal to AT+CLOCKLOG=1,65535,15,8
-
Example 2: Downlink Payload: 16 01 04 B0 0F 08 //Equal to AT+CLOCKLOG=1,1200,15,8
When entering the downlink payload, there must be no Spaces between bytes.
3.21 Clock logging
Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.
We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.
AT command: AT+CLOCKLOG=a,b,c,d
a: 0: Disable Clock logging. 1: Enable Clock Logging
b: Specify First sampling start second: range (0 ~ 3599, 65535) // Note: If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.
c: Specify the sampling interval: range (0 ~ 255 minutes)
d: How many entries should be uplink on every TDC (max 18 for D2x-FB)
Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0

Example:
AT+CLOCKLOG=1,65535,1,8
After the node sends the first packet, data is recorded to memory at intervals of 1 minute. For each subsequent TDC uplink, the payload includes the full real-time device data as well as the last 8 memory records [temp1, temp2, temp3 (°C), and the UTC sampling time].

Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.
JSON Downlink Example:
{"Config":"[AT+CLOCKLOG=1,65535,1,8]"}
Downlink command: 0x16
Format: Command Code (0x16) followed by 5 bytes.
-
Example 1: Downlink Payload: 16 01 FF FF 0F 08 //Equal to AT+CLOCKLOG=1,65535,15,8
-
Example 2: Downlink Payload: 16 01 04 B0 0F 08 //Equal to AT+CLOCKLOG=1,1200,15,8
When entering the downlink payload, there must be no Spaces between bytes.
3.22 Failed Send Attempts Before Automatic Restart
Feature: Get or set the number of consecutive failed send attempts that triggers an automatic restart.
AT Command: AT+FREB
The default is 15. The node automatically restarts after 15 consecutive failed send attempts.
| Command Example | Function |
|---|---|
AT+FREB=? | Show the current failed send attempt threshold. |
AT+FREB=0 | Disable automatic restart after consecutive failed send attempts. |
AT+FREB=15 | Set the node to restart automatically after 15 consecutive failed send attempts. |
3.23 Data Retransmission
Feature: Recover unconfirmed uplinks after communication with the server is restored.
AT Command: AT+REDPT
Example:
AT+REDPT=1
When the server does not return the required acknowledgement(IDP: Confirm=200), the device stores unconfirmed records. After communication is restored and the acknowledgement is received, the device retransmits the stored records.
3.24 JSON Configuration Downlink
Send Hex commands as contiguous text without spaces or a 0x prefix. For MQTT, publish to the device's subscribe topic during the receive window after an uplink.
See FB Downlink Command Format for JSON and Hex configuration.
4. Battery & Power Consumption
D2x-FB uses an ER26500 + SPC1520 non-rechargeable battery pack. D2x-FS uses a solar panel and a 3000 mAh rechargeable Li-ion battery. Battery life depends on the reporting interval, clock logging interval, alarm frequency, network coverage, GPS use and retransmission settings.
See Battery Info & Power Consumption Analyze for battery information and replacement guidance. Do not recharge the non-rechargeable battery.
5. Firmware Update
Start at the Dragino Cellular Firmware Repository. Open the folder for your product, review the changelog, and select the firmware version for your device. For HTTP OTA, copy the direct URL of the selected .bin file. For UART TTL, download the .bin file to your computer.
5.1 Over-the-Air (OTA) Firmware Update via HTTP
- Open the D2x-FB folder in the Dragino Cellular Firmware Repository and copy the full HTTP URL of the
.binfile for the version you want to install. - Send the upgrade command using one of the following methods.
Serial port or BLE
Connect to the device and unlock AT command access with the serial access password. Send AT+UPGRADE with the copied URL in double quotes.
AT+UPGRADE="http://repo.dragino.com/release/cellular/D2x-FB/D2x-FB_v1.0.3.bin"
Server downlink
Send the following downlink payload. The Config value wraps the AT command in square brackets.
{"Config":"[AT+UPGRADE="http://repo.dragino.com/release/cellular/D2x-FB/D2x-FB_v1.0.3.bin"]"}
D2x-FB v1.0.3 is an example. The device installs the version specified by the URL. To install another compatible version, copy that version's .bin URL from the D2x-FB folder and use it in the command.
For further details, see OTA Upgrade for NB-IoT / LTE-M End Nodes.
5.2 Firmware Update through UART TTL
- Open the D2x-FB folder in the Dragino Cellular Firmware Repository. Review the changelog and download the compatible
.binfile for your device. - Follow UART Upgrade for -FB/-FS/-FE Models to install the downloaded file through the UART TTL interface.
6. FAQ
6.1 How can I access the nRF9151-NGFF AT Commands?
User can access to nRF9151-NGFF directly and send AT Commands.
See nRF9151-NGFF AT Command set
6.2 -FB & -FS Models (NB-IoT, LTE-M)
Users can follow the instructions in this link to see how to configure to connect to different servers.
6.3 Why is there no LED response when I press the button on the solar panel model?
If the LED does not light up when you press the button, it may be because the battery has entered protection mode.
Solution: To reactivate the battery, simply expose the solar panel to direct sunlight. For more details, please refer to: Battery Protection State (Apply to Solar Panel + Li-ion battery)
6.4 Does this device support GPS positioning?
Yes. This device supports GPS function and can report latitude and longitude coordinates in the uplink payload.
For configuration and usage details, please refer to: Add Location Data on Uplink Packet
6.5 Why is a temperature field 3276.7?
The corresponding DS18B20 probe is not detected or is not connected. Check the probe wiring and connector. Do not use 3276.7 as a real temperature value.
6.6 Why is the alarm field 1?
At least one configured temperature channel exceeded its configured alarm range during sampling. Check AT+TEMPALARM1, AT+TEMPALARM2 and AT+TEMPALARM3, as well as the sensor wiring.
6.7 Why does the device fail to join the network?
Check SIM orientation and activation, APN credentials, and whether the carrier offers NB-IoT or LTE-M coverage on a supported band at the installation site. If the device attaches but the server receives no data, check the server address, port, protocol, and MQTT credentials or topics where applicable.
7. Order Info
Part numbers: D20-FB / D20S-FB / D22-FB / D23-FB. For a solar-powered unit, select the corresponding D2x-FS variant.
- GE: General version without a SIM card.
- 1T: Where offered, includes a preinstalled 1NCE SIM and is preconfigured for ThingsEye.
Confirm the number of probes, power option and SIM/server configuration when ordering.
8. Packing Info
Package Includes:
- D2x-FB or D2x-FS NB-IoT/LTE-M Temperature Sensor × 1
- DS18B20 temperature probe configuration as specified by the ordered model
Check the order configuration for the supplied accessories.
9. 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 enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to Support@dragino.cc.
1~3s
>3s
x5




