Table of Contents:

1. What is Dragino RS485 Configure Tool?

Dragino RS485 tool is designed to provide a friendly way to user to configure Dragino RS485 Wireless Sensor such as : RS485-LN, RS485-LB, RS485-BL, RS485-NB.

The RS485 tool provide below features:

  • A Console window which use can do debug via AT Commands.
  • Test the poll command to RS485 sensors.
  • See return from RS485 sensors and preview process command for returns.
  • Generate the AT Commands after debuging.
  • Write the AT Commands to end node in batch.
  • Import / Export commands

2. Hardware Connection

To use Dragino RS485 Configure Tool. User need to run the tool in PC and use the TTL connection to Dragino End Node, and RS485 end node should connect to the RS485 Sensors for debug or configure.

Download RS485 Configure Tool.

image-20230928230446-1.png

3. Use the tool

Overview

warning: Please do not input multiple instructions at once for a site, as this may result in incorrect data

Below is the block diagram of the RS485 Tool:

image-20230928235259-4.png

Below is the block diagram of the RS485 Tool V1.2:

image-20231010145454-2.png

3.1 General Configure:

  • Port : COM port in PC to connect to RS485 End Node.
  • Node Baud Rate : The Baud Rate for RS485 End Node.
  • 5VT : 5v Power_On_Duration for external RS485 Sensors. Unit: ms.
  • Connect End Node : Connect to RS485 End Node.
  • Disconnect End Node : Disconnect RS485 End Node.
  • Sensor Baud Rate : Baud Rate of RS485 Sensors.
  • Sensor Data Bit : Data Bit of RS485 Sensors
  • Sensor Check Bit : Check Bit of RS485 Sensors.
  • Sensor Stop Bit : Stop Bit of RS485 Sensors
  • Configure Devices : Send General Configure Command to End Node.

3.2 Console Window:

After Connect End Node. The Console Window will shows all the output from RS485 End Node.

User can also Send AT Commands to RS485 End Node in this window.

image-20230928233408-3.png

3.3 RS485 Commands to Sensor

This area is used to configure what RS485 Commands the End Node should send to the RS485 sensors to get the sensor value.

  • There are totally 15 commands max.
  • Each command should be set according to the sensor manual.
  • It is HEX format and no need 0x. Each byte should have a space in between (will be fix in next version so no need space).
  • User should calculate the CRC if needed

Example:

  • Sensor Command: FE 03 00 00 00 03 11 C4  (11 C4 is CRC). User need to input: FE 03 00 00 00 03 11 C4 as poll command.

Test RS485 Commands: After configure poll commands. Click this button then the tool will generate related AT+COMMANDS and send to the End node to test and get return.

3.4 Process Sensor Returns

RS485 sensors will return a string, to make it more efficient to process via LoRaWAN packets, we can fetch the valid chars from the returns in the process sensor returns area.

Example:

User configure below commands :

  • Poll Command 1: 04 03 00 00 00 02 C4 52
  • Poll Command 3: 08 03 00 00 00 02 C4 92
  • Poll Command 5: 11 03 00 00 00 02 C6 9B

Then Click "Test RS485 Commands". End Node will then send these three commands to RS485 sensors one by one and waiting for returns.

Their returnes will be shown in "RS485 Return Data" Area, such as below:

image-20230930193108-1.png

Use can choose to get "Discrete Data Bytes" or "Bytes Blocks":

image-20230930193257-2.png Select the 1st - 3rd bytes from the return.

image-20230930193357-3.png Select the 3rd, 6th, 9th bytes from the return.

image-20230930193456-4.png After select the byte fetch method. User can see preview the result. This photo shows to fetch the Block 1~3 from the first return.

image-20231010150227-4.png Based on the AT command in the preview window, the node will upload data in the format of the left image

Below is the full screen shot:

image-20231010150054-3.png

AT+CMDDL: This specify the delay for RS485 End Node to wait for the RS485 sensors return. If RS485 sensors doesn't reply in this time. End Node will consider there is no reply.

Generate AT Instructions: After All testing goes fine with Poll Command & Return Process. User can press this button to generate the AT Commands which is for the Ene Node.

3.5 Commands Previwe Window

This window show the commands to be flash into the RS485 end node.

  • Import Commands : Import commands from txt.
  • Save Commands : Save commands to a txt.
  • Write : Write Commands to End Node
  • Erase All : Clear All Configured Commands in the RS485. It won't erase the commands shows in the preview window.

3.6 Reference video

link:https://youtu.be/l9fLE3ekY4I

Change Log:

v1.1:

1.No spaces are required between each byte of the inquiry frame

2.Improve the prompt box

3.AT instruction coverage function

4.Button function prompt

V1.2:

1.Fixed overwrite failure when AT instruction has multiple parameters

2.Add Payload Structure Window

V1.3:

Fixed bug in V1.2

1.When the input cut value exceeds the number of bytes returned, an incorrect AT instruction will be generated

New:

1.Control the inquiry time input box between inquiry frames

2.The inquiry frame does not require CRC verification input

image-20240311144211-2.png

V1.3.1:

Added a password input box.
When using NB modules or nodes with access passwords other than 123456.
Enter the password before connecting to the serial port

image-20240620083959-1.png

TODO:

1. Add Payload Structure Window(Done at v1.2)

2. Modify Chars to looks nicer  ( Done at v1.1)

Tags:
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0