Skip to main content

RS485-FB/FS – RS485/UART to NB-IoT/LTE-M Converter

image-20231008143931-2-f7b3a7acd44d268cf45deb0f7f707973.png

1. Introduction​

1.1 What is RS485 / UART to NB-IoT/LTE-M Converter​

The Dragino RS485-FB is an RS485 / UART to NB-IoT/LTE-M converter for Internet of Things solutions. It reads external RS485 or UART TTL sensors and uploads the selected response bytes to an IoT server via the NB-IoT or LTE-M network.

RS485-FB can interface to RS485 sensor, 3.3v/5v UART sensor or interrupt sensor. RS485-FB provides a 3.3v output and a 5v output to power external sensors. Both output voltages are controllable to minimize the total system power consumption.

RS485-FB supports different uplink methods including MQTT, MQTTs, TCP or UDP. The device can poll sensors periodically or on an external interrupt. It can also record readings locally and upload several records together.

RS485-FB supports BLE configure and OTA update which make user easy to use.

Make sure you have NB-IoT or LTE-M coverage locally.

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
  • RS485 Modbus RTU and UART TTL modes
  • Support multiply RS485 devices by flexible rules
  • Supports connecting a UART sensors with 3.3V or 5V
  • Periodic and interrupt-triggered uplinks
  • Clock logging and multiple records in one uplink
  • JSON uplinks over MQTT, MQTT over TLS, TCP or UDP
  • GNSS for location reporting
  • Bluetooth 5.1 for remote configuration
  • Downlink configuration
  • Nano SIM card slot
  • 8500 mAh Li-SOCl2 battery (RS485-FB)
  • Solar panel + 3000 mAh rechargeable Li-ion battery (RS485-FS)

1.3 Specification​

Common DC Characteristics:

  • Supply Voltage: 3.0v ~ 3.6v
  • Operating Temperature: -40 ~ 85°C

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:

  • Li/SOCI2 un-chargeable battery(RS485-FB)
  • Capacity: 8500mAh
  • Self Discharge: <1% / Year @ 25°C
  • Max continuously current: 130mA
  • Max boost current: 2A, 1 second

Power Consumption:

  • STOP mode: 14 µA at 3.3 V
  • Maximum transmit current: 350 mA at 3.3 V

1.4 Applications​

  • Industrial monitoring
  • Smart metering
  • Logistics and Supply Chain Management
  • Environmental monitoring

1.5 Sleep mode and working mode​

Deep Sleep Mode: Sensor doesn't have any NB-IoT activate. This mode is used for storage and shipping to save battery life.

Working Mode: In this mode, Sensor will work as NB-IoT Sensor to Join NB-IoT network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.

1.6 Button & LEDs​

1675071855856-879.png

Behavior on ACTFunctionAction
1749523503750-484.png 1~3sSend an uplink

If sensor has already attached to NB-IoT/CAT-M1 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.

1749523505736-728.png >3sActive Device

Green led will fast blink 5 times. And then start to attach NB-IoT/CAT-M1 network.
Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device attach NB-IoT/CAT-M1 network or not.

1749523513440-828.png x5Deactivate DeviceRed led will solid on for 5 seconds. Means device is in Deep Sleep Mode.
1749523513440-828.png x1Toggle Serial Communication

Press the ACT button once to activate the serial communication function, and Ready will be displayed in the serial tool.
Press the ACT button once again to disable the serial communication function. The green led will turn on when the button is pressed, and then the red led will blink once to indicate that the serial communication has been disabled.

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​

RS485-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​

For RS485-FB version

RS485-91059649e2c8192dc4cc209df06a2dd9-91059649e2c8192dc4cc209df06a2dd9.jpg

For RS485W-FB version

RS485W-45c99dbde93a3e8173c3325199aec460.jpg

Note
  1. The RS485W-FB/FS adds a 12V output port to the standard version and is fully compatible with the RS485-FB/FS in terms of firmware and basic functionality.
  2. The 12V output is converted from the internal 5V output, so it shares the same control command as the 5V pin, both configured using AT+5VT.
  3. The maximum output current is approximately 130mA. Exceeding this current will cause the 12V output voltage to drop.

1.8.1 Jumper JP2​

Install JP2 to power on the device. Remove it to power off.

1.8.2 BOOT MODE / SW1​

The BOOT MODE / SW1 switch has no function on -FB products. Keep it 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 Mechanical​

1.9.1 for FB version​

LB-885784dc2902b3f6f6aae3e4e72ed5e6-885784dc2902b3f6f6aae3e4e72ed5e6.png

1.9.2 for FS version​

LS-4ab9c495288c0bf5d4d35d7a71578948-4ab9c495288c0bf5d4d35d7a71578948.png

2. Use RS485-FB to communicate with IoT Server​

2.1 Send data to IoT server via NB-IoT/LTE-M network​

The RS485-FB is equipped with a NB-IoT module, the pre-loaded firmware in RS485-FB will read the connected RS485 or UART TTL sensors and send the data 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 RS485-FB.

291c49f14bde21d32843f30cb6e061be.jpg

There are two version: -GE and -1T version of RS485-FB.

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 RS485-FB send data to IoT server.

Below shows result of different server as a glance.

ServersDash BoardComments
Node-Rednote-red.png
Tago.IO
General UDPRaw Payload. Need Developer to design Dash Board
General MQTTRaw Payload. Need Developer to design Dash Board
ThingsBoardthingsboard.png

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 ThingsEye and activate the RS485-FB to view its readings. See here for ThingsEye Config Instruction.

2.2 Payload Types​

RS485-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 payload
  • AT+PRO=3,0 // MQTT connection with JSON payload
  • AT+PRO=4,0 // TCP connection with JSON payload

2.2.1 Status Packet​

After each reactivation, the device sends a status packet once it joins the cellular network and connects to the server.

{
"IMEI": "355025936334455",
"Image Version": "v1.0.2",
"NB-IoT Stack": "NRF9151-001",
"Model": "RS485-FB",
"MCC": "460",
"MNC": "0",
"Cell_id": "46134845",
"Cell_area": "7479",
"PSM_TAU": "36000",
"Active_time": "0"
}
FieldDescription
IMEIDevice International Mobile Equipment Identity.
Image VersionDevice application firmware version.
NB-IoT StackCellular modem stack identifier.
ModelDevice model reported by the firmware.
MCCMobile Country Code of the serving network.
MNCMobile Network Code of the serving network.
Cell_idServing cell identifier.
Cell_areaServing cell's network area code.
PSM_TAUPeriodic 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_timePSM active timer (T3324) in seconds. How long the modem remains reachable in idle mode before entering deep sleep (e.g., "0" = immediate sleep).

2.2.2 General JSON Format (Type=0)​

The following uplink was captured in RS485 mode with AT+CLOCKLOG=1,65535,1,8.

{
"IMEI": "355025936344397",
"IMSI": "460087023300092",
"Model": "RS485-FB",
"fcnt": "5",
"signal": "23",
"bat": 3.63,
"i_flag": "0",
"Payload": "01076f",
"time": "2026-11-30T07:08:11Z",
"latitude": 0,
"longitude": 0,
"gps_time": "00/00/00,00:00:00",
"1": ["2026-11-30T07:01:52Z", "010773"],
"2": ["2026-11-30T07:02:52Z", "010773"],
"3": ["2026-11-30T07:03:52Z", "01076c"],
"4": ["2026-11-30T07:04:52Z", "01076b"],
"5": ["2026-11-30T07:05:52Z", "01076c"],
"6": ["2026-11-30T07:06:52Z", "01076d"],
"7": ["2026-11-30T07:07:52Z", "01076f"],
"8": ["2026-11-30T07:08:11Z", "01076f"]
}
FieldDescription
IMEI, IMSI, ModelDevice identifier, SIM subscriber identifier and device model.
fcntUplink frame counter.
signalCellular signal quality indicator.
batBattery voltage in volts.
i_flag"0": normal uplink; "1": external interrupt triggered the uplink.
PayloadCurrent sensor data as a Hex string inside the JSON packet. In 01076f, 01 is the payload version and 076f is the extracted sensor data. Interpret the data according to the sensor's register map and scaling.
timeUplink timestamp in UTC.
latitude, longitude, gps_timeGNSS coordinates and fix time. With GPS disabled in this example, the coordinates are zero and gps_time is "00/00/00,00:00:00".
"1"–"8"Recent records. Each array contains two strings: ["UTC timestamp","payload version 01 + sensor data"].

Signal strength (signal):

ValueSignal 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

When no bytes can be extracted, the device fills the missing data with FF bytes in RS485 mode or 00 bytes in TTL mode. In the two-byte examples below, the first byte (01) is still the payload version.

Working modeNormal exampleNo-response example
RS485 Modbus RTU01077e01ffff
UART TTL010773010000

The device continues polling at the next sampling time. A sensor can also return all-zero or all-FF data legitimately; check the serial response and the sensor's register definition before interpreting these values.

Put the interrupt sensor between 3.3v_out and GPIO_EXTI.

image-20241109135127-1-fda28a069f58fc64a146290fb11b6d0f.png

Use AT+INTMOD to select which signal edge triggers an uplink: rising, falling, or both.

3. Configure RS485-FB​

3.1 Configure Methods​

RS485-FB supports below configure method:

3.2 Serial Access Password​

note

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 enter the AT command window.

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.

1777275088933-272.png

If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters).

1777274843104-300.png

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.

1777274927711-300.png

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+CFG : Print all settings

AT+TDC : Get or set the uplink interval in seconds

AT+INTMOD : Get or set the external interrupt trigger mode

AT+APN / AT+AUNAME / AT+APWD : Configure the APN and its optional credentials

AT+SERVADDR : Get or set the server address

AT+PRO : Select the uplink protocol

AT+RXDL : Get or set the receive window

RS485 / UART TTL

AT+CFGMOD : Select RS485 Modbus RTU or UART TTL mode

AT+BAUDR / AT+DATABIT / AT+PARITY / AT+STOPBIT : Configure the sensor serial port

AT+CFGDEV : Send a configuration request to the connected sensor

AT+COMMANDx : Set a sampling request

AT+DATACUTx : Select bytes from the response

AT+SEARCHx : Find response data using a Hex pattern

AT+CMDDLx : Set the response timeout for a sampling request

AT+MBFUN : Select automatic Modbus response extraction

AT+CMDEAR : Clear stored request settings

AT+PAYVER : Get or set the payload version

AT+3V3T / AT+5VT : Control sensor power output

AT+GETSENSORVALUE : Return the current sensor measurement

MQTT Management

AT+CLIENT / AT+UNAME / AT+PWD : Set the MQTT client ID and credentials

AT+PUBTOPIC / AT+SUBTOPIC : Set the MQTT topics

AT+MQOS : Set the MQTT QoS level

AT+TLSMOD : Get or set the TLS mode

GPS

AT+GTIME : Extend the time allowed for positioning

AT+QGPS : Turn GPS on or off

AT+QGTDC : Get or set the GPS positioning interval in hours

Information and Maintenance

AT+CLOCKLOG : Set the sampling schedule and number of records to upload

AT+PLDTA / AT+PDTA : Print local Flash records

AT+CLRDTA : Clear stored records

AT+LDATA / AT+GETLOG : Get the last uplink or print serial logs

AT+REDPT : Enable or disable retransmission

AT+FREB : Set the failed send attempt threshold before restart

AT+FDR : Restore factory settings

ATZ : Reboot the device

By default, Sensor will send uplinks every 2 hours.

User can use below commands to change the uplink interval.

AT Command: AT+TDC

Example: AT+TDC=7200 // Set Update Interval to 7200 seconds

Downlink Commands: 0x01

Format: Command Code (0x01) followed by 3 bytes.

Example: 12 hours= 43200 seconds 43200(D)=0xA8C0(H)

Downlink Payload: **01 00 A8 C0** // AT+TDC=43200, Set Update Interval to 12 hours.

Note: User can also push the button for more than 1 second to activate an uplink.

3.5 Working Mode and Sensor Wiring​

AT Command: AT+CFGMOD

Command ExampleFunction
AT+CFGMOD=1Select RS485 Modbus RTU mode.
(Default)
AT+CFGMOD=2Select UART TTL mode.

Power off the device before wiring the sensor.

Wiring example: RS485 Modbus RTU sensor

RS485-FB RS485 sensor
GND <--> GND
A <--> A
B <--> B
+5V or VBAT_OUT ---> VCC

Wiring example: UART TTL sensor

RS485-FB UART TTL sensor
GND <--> GND
TX ---> RX
RX <--- TX
+5V or VBAT_OUT ---> VCC
Note
  • Connect VCC to one output only: +5V (5 V) or VBAT_OUT (3.3 V), according to the sensor's rated supply voltage.
  • Match the TTL signal levels on both sides. Do not connect RS232 directly to the TTL pins.
  • If the sensor uses a separate power supply, connect VCC to that supply instead and follow the sensor's instructions for signal grounding.

3.6 Configure UART Settings​

The default serial settings is 9600 baud, 8 data bits, no parity and 1 stop bit (9600 8N1). If the TTL Level sensors have a different settings, user can change the RS485-FB setting to match.

AT CommandDescription and defaultExamples
AT+BAUDRSet the baud rate. Default: 9600 baud.AT+BAUDR=9600.
Options: (1200,2400,4800,9600,14400,19200,115200)
AT+PARITYSet parity. Default: none.AT+PARITY=0: none.
AT+PARITY=1: odd.
AT+PARITY=2: even.
AT+STOPBITSet the number of stop bits. Default: 1 stop bit.AT+STOPBIT=0: 1 stop bit.
AT+STOPBIT=1: 1.5 stop bits.
AT+STOPBIT=2: 2 stop bits.
AT+DATABITSet the number of data bits. Default: 8 data bits.AT+DATABIT=7: 7 data bits.
AT+DATABIT=8: 8 data bits.

3.7 Configure Read Commands for Each Sampling​

3.7.1 Configure with the RS485 Configure Tool​

The examples below use a serial terminal connected to the node's UART. You can also configure the node over BLE or send supported configuration commands by server downlink.

The Dragino RS485 Configure Tool is an optional utility for setting up sensor polling commands and selecting response bytes for uplink. See the RS485 Configure Tool Instruction for download and setup.

image-20231127144411-1-bfe793d5b1d3b9686fdb948a59c814fe.png

3.7.2 Test a Sensor Command with AT+CFGDEV​

Use AT+CFGDEV to send a command to the sensor once. This is useful for checking whether the sensor responds before saving a polling request, or for sending an initial setup command required by the sensor. The command does not save a polling request or run again at the next sampling interval.

Before testing, select the working mode and connect the sensor (section 3.5), match the serial settings (section 3.6), and make sure the sensor is powered (section 3.8).

AT Command: AT+CFGDEV=bytes,m

  • bytes: The command from the sensor manual, entered as space-separated Hex bytes.
  • m=1: Append a Modbus RTU CRC. In RS485 Modbus RTU mode, omit the CRC bytes from the command when using this option.
  • m=0: Send the bytes as entered without appending a CRC. Use this option for the UART TTL example.
ModeExampleWhat the node sends
RS485 Modbus RTUAT+CFGDEV=01 03 01 00 00 01,101 03 01 00 00 01 85 F6
UART TTLAT+CFGDEV=FF 03 01 00 00 01,0FF 03 01 00 00 01

Check the serial console for the sensor reply and compare it with the sensor manual. If there is no reply, check power, wiring, serial settings and the request bytes before saving the polling configuration.

3.7.3 Configure Periodic Sensor Reads​

Use the sensor manual to find the read request and reply layout. For Modbus RTU, check the slave address, function code, starting register address and register count. For UART TTL, use the frame format specified by the sensor.

Request slots

Start with slot 1. The same suffix links the request (AT+COMMAND1), reply timeout (AT+CMDDL1), search (AT+SEARCH1) and byte extraction (AT+DATACUT1). When you add a second request, use suffix 2 for all four settings. Use AT+CFG to check which slots are already configured.

AT+COMMANDx — Save a read request

Format: AT+COMMANDx=bytes,m. Enter the request as space-separated Hex bytes. Use m=1 in RS485 Modbus RTU mode to append the CRC automatically; leave the CRC out of the configured bytes. Use m=0 to send the bytes exactly as entered. For UART TTL, use m=0. The node runs the saved request during sampling.

Example: AT+COMMAND1=01 03 01 00 00 01,1 saves a Modbus read request in slot 1. The device sends 01 03 01 00 00 01 85 F6 on the bus. To store a second request, use AT+COMMAND2 and use suffix 2 for its timeout and extraction settings.

AT+CMDDLx — Set the reply timeout

Format: AT+CMDDLx=ms. Set the reply timeout for the corresponding request slot in milliseconds.

Example: AT+CMDDL1=1000 allows up to 1000 ms for the sensor's reply after request 1 is sent. This is separate from the power-on lead time configured with AT+5VT or AT+3V3T.

AT+DATACUTx — Select bytes from the reply

Format: AT+DATACUTx=a,b,c.

  • a: Total reply length in bytes, including any header or checksum bytes present in the reply.
  • b: Selection mode. Use 1 for individual byte positions or 2 for an inclusive byte range.
  • c: The byte position or range to keep. Count from 1 at the first byte of the reply. For example, 4~5 keeps the fourth and fifth bytes.

Use the same slot suffix for the request, timeout and extraction settings. Both examples use slot 1.

Reply exampleCommandBytes kept
01 03 02 07 6D 7B 99 (7 bytes)AT+DATACUT1=7,2,4~507 6D
FF 07 87 8D (4 bytes)AT+DATACUT1=4,2,2~307 87

AT+PAYVER — Identify the payload layout

The default is AT+PAYVER=1. With this setting, the first byte of the JSON Payload Hex string is 01, followed by the selected sensor bytes. Use the version byte to select the decoding layout on the server.

AT+GETSENSORVALUE — Test the configured read

Run AT+GETSENSORVALUE=1 after unlocking AT command access. In the serial output, CMD1 is the request sent to the sensor, RETURN1 is the raw reply and Payload shows the bytes prepared for upload. The command also triggers an uplink. Use AT+LDATA to check the last uplink after the test; compare its timestamp and payload with the current reading.

AT+SEARCHx — Extract data using a Hex pattern

Use this option when the data does not always start at the same byte position. For fixed-position data, use AT+DATACUTx as shown above. Both distance sensor examples leave search disabled with AT+SEARCH1=0,0.

The following examples show how prefix and suffix matching works on the reply 16 0C 1E 56 34 2E 30 58 5F 36 41 30 31 00 49. Check your firmware's command help before using these optional search modes.

ExampleSelectionResult
AT+SEARCH1=1,1E 56 34Keep the bytes after the prefix.2E 30 58 5F 36 41 30 31 00 49
AT+SEARCH1=2,1E 56 34+31 00 49Keep the bytes between the prefix and suffix.2E 30 58 5F 36 41 30

AT+MBFUN — Extract data from a Modbus reply automatically

Use this option for automatic extraction from Modbus replies. Set AT+MBFUN=1 for function codes 01 or 02, or AT+MBFUN=2 for 03 or 04. Set AT+MBFUN=0 to disable automatic extraction, as in the two examples above. When testing automatic extraction, test it separately from a manually configured byte cut so you can verify the result.

3.7.4 RS485 Modbus RTU Example​

This example reads one holding register from a 5 V RS485 distance sensor. In the request 01 03 01 00 00 01, the four parts are slave address 01, function code 03 (Read Holding Registers), starting address 01 00 and register count 00 01.

After wiring A, B, GND and 5 V, apply the settings below. The serial settings are shown for reference; if they already match, leave them unchanged. The 5 V output turns on 2 seconds before sampling, and the periodic uplink is set to 600 seconds.

AT+CFGMOD=1
AT+BAUDR=9600
AT+DATABIT=8
AT+PARITY=0
AT+STOPBIT=0
AT+5VT=2000
AT+PAYVER=1
AT+MBFUN=0
AT+COMMAND1=01 03 01 00 00 01,1
AT+SEARCH1=0,0
AT+CMDDL1=1000
AT+DATACUT1=7,2,4~5
AT+TDC=600

With AT command access unlocked, send AT+GETSENSORVALUE=1 to test the reading. The following lines are from the serial log:

CMD1 = 01 03 01 00 00 01 85 f6
RETURN1 = 01 03 02 07 6d 7b 99
Payload = 01 07 6d

The node appends 85 f6 to the request because the final parameter of AT+COMMAND1 is 1. In the reply, 01 03 02 is the slave address, function code and data byte count; 7b 99 is the reply CRC. AT+DATACUT1=7,2,4~5 keeps only bytes 4–5, 07 6d. The node adds the payload version byte 01, giving "Payload":"01076d" in JSON. The register's unsigned value is 1901 before applying the sensor's scaling and unit.

3.7.5 UART TTL Example​

This example uses a 5 V TTL distance sensor. Cross TX and RX, connect GND, and make sure the UART logic levels match. It uses the default serial settings in section 3.6. The request and four-byte response layout are specific to this sensor. The 5 V output turns on 1 second before sampling, and the periodic uplink is set to 600 seconds.

AT+CFGMOD=2
AT+BAUDR=9600
AT+DATABIT=8
AT+PARITY=0
AT+STOPBIT=0
AT+5VT=1000
AT+PAYVER=1
AT+MBFUN=0
AT+COMMAND1=FF 03 01 00 00 01,0
AT+SEARCH1=0,0
AT+CMDDL1=1000
AT+DATACUT1=4,2,2~3
AT+TDC=600

Send AT+GETSENSORVALUE=1 to test the reading. The following lines are from the serial log:

CMD1 = ff 03 01 00 00 01
RETURN1 = ff 07 87 8d
Payload = 01 07 87

The final 0 in AT+COMMAND1 sends the six request bytes as configured, without appending a Modbus CRC. AT+DATACUT1=4,2,2~3 keeps bytes 2–3 (07 87) from the four-byte reply. With version byte 01, the resulting JSON field is "Payload":"010787". The 01078a shown by AT+LDATA before the test was from the previous uplink, not this reading. Use the TTL sensor's protocol to interpret 07 87 and convert it to a distance.

3.7.6 Verify the Reading and Adapt It to Your Sensor​

  1. With AT command access unlocked, send AT+GETSENSORVALUE=1 and compare CMD1, RETURN1 and Payload in the serial log. Once the node joins the network, you can also hold ACT for 1–3 seconds to trigger a test uplink or wait for the next TDC interval.
  2. In the server's JSON packet, check the top-level Payload field. In these examples, the first byte is the payload version; the remaining bytes are the selected sensor data. Apply the sensor manual's byte order, signedness, scaling and units to those data bytes. Do not include the payload version in the conversion.
  3. If you get 01ffff in the RS485 example or 010000 in the TTL example, check whether the sensor replied before treating the value as a measurement. Check wiring, serial settings and sensor startup time first. If the sensor replies but the value is wrong, check the full reply length and count the extraction positions again from byte 1.
  4. To adapt the setup to another sensor, replace the request, expected reply length and extraction positions with the values for that sensor. For another read request in the same setup, use a separate slot, such as AT+COMMAND2, AT+CMDDL2 and AT+DATACUT2, and verify it before relying on the combined readings.

3.7.7 Check or Clear Saved Requests​

Use AT+CFG to review the saved request, search, extraction and timeout settings before changing sensors. Use AT+CMDEAR to clear old request slots that should no longer run. Check AT+CMDEAR? before selecting the start and end slots; record any settings you want to keep before clearing them.

3.8 Control output power duration​

Range: 0 - 65535 milliseconds.

3.8.1 Control the 3.3 V Output​

AT Command: AT+3V3T

Controls the VBAT_OUT pin.

  • AT+3V3T=0 (default) keeps the 3.3 V output on.
  • AT+3V3T=65535 keeps the 3.3 V output off.
  • AT+3V3T=1000 turns on the 3.3 V output 1 second before each sampling.

3.8.2 Control the 5 V Output​

AT Command: AT+5VT

Controls the +5V pin.

  • AT+5VT=0 (default) keeps the 5 V output off.
  • AT+5VT=65535 keeps the 5 V output on.
  • AT+5VT=1000 turns on the 5 V output 1 second before each sampling.

Note: Keeping the 5 V output on continuously increases power consumption and can significantly shorten battery life.

RS485-FB has an external trigger interrupt function. Users can use the GPIO_EXTI pin to trigger the upload of data packets. The uplink reports "i_flag":"1".

AT command:

  • AT+INTMOD // Set the trigger interrupt mode

  • AT+INTMOD=0 // Disable Interrupt (Default Value)

  • AT+INTMOD=1 // Trigger by rising and falling edge

  • AT+INTMOD=2 // Trigger by falling edge

  • AT+INTMOD=3 // Trigger by rising edge

Downlink Commands: 0x06

Format: Command Code (0x06) followed by 3 bytes.

Example1: Downlink Payload: 06 00 00 01// AT+INTMOD=1

Example2: Downlink Payload: 06 00 00 03// AT+INTMOD=3

3.10 Set the QoS level​

This command is used to set the QoS level of MQTT.

AT command:

  • AT+MQOS=xx // 0~2

Downlink command: 0x07

Format: Command Code (0x07) followed by 1 byte.

Ex1: Downlink payload: 0700 // AT+MQOS=0

Ex2: Downlink payload: 0701 // AT+MQOS=1

3.11 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

Downlink command: 0x09

Format: Command Code (0x09) followed by 2 bytes.

Example1: Downlink Payload: 09 00 00 // AT+TLSMOD=0,0

Example2: Downlink Payload: 09 01 02 // AT+TLSMOD=1,2

3.12 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.13 Set the Network Search Time​

AT Command: AT+SFNT

Example: AT+SFNT=60 // Set the network search time to 60 seconds.

Downlink command: 0x13

Format: Command Code (0x13) followed by 1 byte.

Example: Downlink Payload: 13 0A// AT+SFNT=10

3.14 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 8)

Note

To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0

image-20240315141254-1-47df85d5954b0ea8fef9245801364c45.png

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 [UTC sampling time,Payload version 01+RS485 sensor data].

87cd0d41f76d03af45e29f34ef8d5b3b.png

Note: 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

Note

When entering the downlink payload, there must be no Spaces between bytes.

3.15 Print last few data entries​

Feature: Print the last few stored records.

AT Command: AT+PLDTA

Use the local serial console. AT+PLDTA=5 prints the last five stored records.

AT+PLDTA=5
0001 2026/11/30 08:06:54 3622 alarm:false
0002 2026/11/30 08:07:54 3622 alarm:false
0003 2026/11/30 08:08:54 3622 alarm:false
0004 2026/11/30 08:09:54 3622 alarm:false
0005 2026/11/30 08:10:54 3622 alarm:false

OK

3.16 Print data entries by page​

Feature: Print stored Flash records from the start page to the end page.

AT Command: AT+PDTA

Use the local serial console. AT+PDTA=1,1 prints the records on page 1.

AT+PDTA=1,1
E8000 2026/11/27 09:15:51 3641 alarm:false
E8010 2026/11/27 09:19:57 3618 alarm:false
E8020 2026/11/27 09:21:49 3614 alarm:false
E8030 2026/11/27 09:31:38 3622 alarm:false
E8040 2026/11/27 09:33:52 3637 alarm:false
E8050 2026/11/27 09:34:57 3637 alarm:false
E8060 2026/11/27 09:46:38 3641 alarm:false
E8070 2026/11/30 06:34:03 3622 alarm:false

OK
Note

Sensor data length can vary depending on the connected sensor. The local history entries printed by AT+PLDTA and AT+PDTA contain only the sampling timestamp, battery voltage (mV), and interrupt flag (alarm). They do not include the sensor data bytes.

3.17 Clear Flash Record​

Feature: Clear the records stored in Flash.

AT Command: AT+CLRDTA

AT Command: AT+REDPT

The AT+REDPT command is available, but RS485-FB does not implement retransmission of unconfirmed uplinks. Sensor responses vary in length, and the device does not retain the full sensor payload for later retransmission.

Keep AT+REDPT=0. Setting AT+REDPT=1 does not enable retransmission or recover missed uplinks.

3.19 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 ExampleFunction
AT+FREB=?Show the current failed send attempt threshold.
AT+FREB=0Disable automatic restart after consecutive failed send attempts.
AT+FREB=15Set the node to restart automatically after 15 consecutive failed send attempts.

Downlink Command: 0x33

  • Example: 0x3302 // Same as AT+FREB=2
  • Example: 0x330A // Same as AT+FREB=10

3.20 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.21 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.22 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.23 Debug mode​

Feature: Since the serial communication feature of the NRF9151 module requires activation, this command is intended for users who need to use the serial port for extended periods of time.

AT command: AT+DEBUG

Command ExampleFunction
AT+DEBUG=1

Enter debugging mode

AT+DEBUG=0

Exit debugging mode,Serial port function disabled

Tip
  1. This feature remains active for only 5 minutes; it will automatically turn off after 5 minutes.
  2. Keeping the serial port open continuously increases power consumption in sleep mode; the continuous current is 900 μA.

Send Hex commands as contiguous text without spaces or a 0x prefix. For JSON configuration, wrap the AT command in square brackets inside the Config string.

The device can reply with {"IMEI":"355025936344397","Downklink_Ack":"success"}.

See FB Downlink Command Format for JSON and Hex configuration.

4. Battery & Power Consumption​

See Battery Information and Power Consumption for battery handling and replacement. External sensor current, sensor power-on time, network conditions and uplink frequency affect battery life.

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​

  1. Open your product folder in the Dragino Cellular Firmware Repository and copy the full HTTP URL of the .bin file for the version you want to install.
  2. 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/RS485-FB/RS485-FB_v1.0.2.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/RS485-FB/RS485-FB_v1.0.2.bin"]"}

DDS75-FB v1.0.2 is an example. The device installs the version specified by the URL. To install another version, copy that version's .bin URL from the repository 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​

  1. Open your product folder in the Dragino Cellular Firmware Repository. Review the changelog and download the latest compatible .bin file for your device, or the specific version you intend to install.
  2. Follow UART Upgrade for -FB/-FS/-FE Models to install the downloaded file through the UART TTL interface.

6. FAQ​

6.1 Why is the sensor not responding?​

  1. Check the sensor supply voltage and power-on time.
  2. Check A/B polarity in RS485 mode or TX/RX crossover and logic voltage in TTL mode.
  3. Verify the baud rate, data bits, parity and stop bits against the sensor documentation.
  4. Check the request bytes, Modbus slave address and CRC setting. In TTL mode, use m=0 in AT+COMMANDx.
  5. Use a suitable USB-to-RS485 or USB-to-TTL adapter to inspect the request and reply. If the sensor replies but the uplink data is incorrect, check response length and byte positions in AT+DATACUTx.

6.2 Where can I find general NB-IoT/LTE-M configuration instructions?​

See -FB & -FS Models (NB-IoT, LTE-M).

6.3 Does RS485-FB support GPS positioning?​

Yes. See Add Location Data on Uplink Packet for configuration and usage.

7. Order Info​

Part Number: RS485-FB-XX

XX:

  • GE: General version (SIM card not included).
  • 1T: Includes a pre-installed 1NCE SIM card and is preconfigured for ThingsEye.

8. Packing Info​

Package Includes:

  • RS485-FB NB-IoT/LTE-M Converter x 1
  • External antenna x 1

9. Support​

  • Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8.
  • When contacting Support@dragino.cc, include the product model, firmware version, wiring, sensor settings and the commands or payloads needed to reproduce the issue.