6.3 How to configure the device through the MQTT subscription function? ............... 33 6.4 How to Use RS485-NB to connect to RS232 devices? ..................34 6.5 How to judge whether there is a problem with the set COMMAND ..............34...
Page 3
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 6.5.1 Introduce: ................................34 6.5.2 Set up PC to monitor RS485 network With Serial tool ..................35 6.5.3 With ModRSsim2: ..............................36 6.5.4 Example –...
Page 4
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual Table of Contents: • 1. Introduction • 1.1 What is RS485 / UART to NB-IoT Converter • 1.2 Features • 1.3 Specification •...
/ UART to NB-IoT Converter for Internet of Things solutions. User can connect RS485 or UART sensor to RS485-NB converter, and configure RS485-NB to periodically read sensor data and upload via NB-IoT network to IoT server. Page 5 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
RS485-NB is IP67 waterproof and powered by to several years. RS485-NB has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration. 1.2 Features • NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD •...
1.7 BLE connection RS485-NB 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: Page 8 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
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 RS485-NB use the mother board which as below. 1.8.1 Jumper JP2 Power on Device when put this jumper.
2.1 Send data to IoT server via NB-IoT network The RS485-NB is equipped with a NB-IoT module, the pre-loaded firmware in RS485-NB will get environment 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 RS485-NB.
Version: This version has 1NCE SIM card pre-installed and configure to send value to DataCake. User Just need to select the sensor type in DataCake and Activate RS485-NB and user will be able to see data in DataCake. See here for DataCake Config...
2.2.2 Method 2 -- via AT Commands 2.2.2.1 Configure UART settings for RS485 or TTL communication RS485-NB can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. 1. RS485-MODBUS mode: AT+MOD=1 ...
Page 13
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual Default Value is: 8bits. AT+DATABIT=8 for 8 bits Example(Soil three-parameter detector): Wiring the UART sensor GND <--------> GND TX <--------> RX RX <--------> TX VCC ...
Page 14
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual Use AT+COMMAND1 to set it as a command, and use AT+DATACUT1 to intercept the bytes I need upload payload: Page 14 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
Note: Please upgrade firmware to v1.0.3 or above. Otherwise, if a data error occurs in AT+COMMANDx check crc mode, the device will enter an inoperable state. RS485-NB is a battery powered device; it will sleep most of time. And wake up on each period and read RS485 / TTL sensor data and uplink.
Page 16
Handle return from sensors to RS485-NB: After RS485-NB send out a string to sensor, RS485-NB will wait for the return from RS485 or TTL sensor. And user can specify how to handle the return, by AT+DATACUT or AT+SEARCH commands AT+DATACUT •...
Page 17
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual If we set AT+SEARCH1=1,1E 56 34. (max 5 bytes for prefix) The valid data will be all bytes after 1E 56 34 , so it is 2e 30 58 5f 36 41 30 31 00 49 ...
Page 18
AT+SEARCHx and AT+DATACUTx can be used together, if both commands are set, RS485-NB will first process AT+SEARCHx on the return string and get a temporary string, and then process AT+DATACUTx on this temporary string to get the final payload. In this case, AT+DATACUTx need to set to format AT+DATACUTx=0,xx,xx where the return bytes set to 0.
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 2.2.5 Uplink when the sensor is not responding 1) When AT+MOD=1, if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n FFs.
176e 0cdd 1a 00 00 66948e7b 01 0da4 Version: These bytes include the hardware and software version. Higher byte: Specify Sensor Model: 0x17 for RS485-NB Lower byte: Specify the software version: 0x6e=110, means firmware version 1.1.0 BAT (Battery Info):...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual Ex1: 0x0cdd = 3293mV Signal Strength: NB-IoT Network signal Strength. Ex1: 0x1a = 26 0 -113dBm or less 1 -111dBm 2...30 -109dBm... -53dBm 31 ...
AT+COMMAND1/AT+DATACUT1/AT+SEARCH1/AT+CMDDL1 to AT+COMMANDA/AT+DATACUTA/AT +SEARCHA/AT+CMDDLA. 2.8 Set Payload version This is the first byte of the uplink payload. RS485-NB can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload. •...
2.11 +3V3 Output RS485-NB has a Controllable +3V3 output, user can use this output to power external sensor. The +3V3 output will be valid for every sampling. RS485-NB will enable +3V3 output before all sampling and disable the +3V3 after all sampling. ...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual By default, the AT+5VT=0. If the external sensor which require 5v and require more time to get stable state, user can use this command to increase the power ON duration for this sensor. 2.13 Switch Jumper Switch Jumper Feature...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 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.
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 2.16 Uplink log query • command: AT+GETLOG This command can be used to query upstream logs of data packets. Page 27 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 2.17 Scheduled domain name resolution This command is used to set up scheduled domain name resolution. AT command: • AT+DNSTIMER // Unit: hour After setting this command, domain name resolution will be performed regularly.
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 3. Configure RS485-NB 3.1 Configure Methods RS485-NB supports below configure method: • AT Command via Bluetooth Connection (Recommended): BLE Configure Instruction. • AT Command via UART Connection : See UART Connection.
Page 30
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 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. Page 30 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 3.3 AT Commands Set AT+<CMD>? : Help on <CMD> AT+<CMD> : Run <CMD> AT+<CMD>=<value> : Set the value AT+<CMD>=? : Get the value General Commands ...
AT+PWORD : Serial Access Password AT+LDATA : Get the last upload data 4. Battery & Power Consumption RS485-NB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace. Battery Info & Power Consumption Analyze...
6.2 How many RS485-Slave can RS485-NB connects? The RS485-NB can support max 32 RS485 devices. Each uplink command of RS485-NB can support max 16 different RS485 command. So RS485-NB can support max 16 RS485 devices pre-program in the device for uplink.
6.5 How to judge whether there is a problem with the set COMMAND 6.5.1 Introduce: Users can use below the structure to fast debug the communication between RS485-NB. The principle is to put the PC in the RS485 network and sniff the packet between Modbus MTU and RS485-NB. We can use this way 1.
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 6.5.2 Set up PC to monitor RS485 network With Serial tool Note: Receive and send set to hex mode Page 35 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 6.5.3 With ModRSsim2: (1) Select serial port MODBUS RS-232 Page 36 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
Page 37
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual (2) Click the serial port icon Page 37 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
Page 38
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual (3) After selecting the correct serial port and baud rate, click ok (4) Click the comms. Page 38 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual Run RS485-NB command and monitor if it is correct. 6.5.4 Example – Test the CFGDEV command RS485-LN sent below command: AT+CFGDEV=01 03 20 00 01 85 c0,1 to RS485 network, and PC is able to get this command and return commands from MTU to show in the serial tool.
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual 6.5.5 Example – Test CMD command sets. AT+SENSORVALUE=1 to test the CMD commands set in RS485-LN. Serial port tool: Page 40 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
RS485 command set in PC and compare with the RS485 command sent out via RS485-LN. as long as both commands are the same, the MTU should return correct result. Or User can send the working commands set in PC serial tool to Dragino Support to check what should be configured in RS485-LN.
Page 42
User Manual for LoRaWAN /NB -IoT End Nodes - RS485- NB -- RS485/UART to NB-IoT Converter User Manual Link situation: Page 42 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
• 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. Page 44 / 44 - last modified by Mengting Qiu on 2024/08/26 16:31...
Need help?
Do you have a question about the RS485-NB and is the answer not in the manual?
Questions and answers