Hide last authors
Edwin Chen 18.1 1 = **Table of Contents:** =
Edwin Chen 9.1 2
3 {{toc/}}
4
5
6
Edwin Chen 2.1 7 = 1. What is Dragino RS485 Configure Tool? =
8
Xiaoling 16.2 9
Edwin Chen 2.1 10 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**.
11
12 The RS485 tool provide below features:
13
14 * A Console window which use can do debug via AT Commands.
Xiaoling 16.2 15
Edwin Chen 2.1 16 * Test the poll command to RS485 sensors.
Xiaoling 16.2 17
Edwin Chen 2.1 18 * See return from RS485 sensors and preview process command for returns.
Xiaoling 16.2 19
Edwin Chen 2.1 20 * Generate the AT Commands after debuging.
Xiaoling 16.2 21
Edwin Chen 2.1 22 * Write the AT Commands to end node in batch.
Xiaoling 16.2 23
Edwin Chen 2.1 24 * Import / Export commands
25
Edwin Chen 3.1 26 = 2. Hardware Connection =
Edwin Chen 2.1 27
Xiaoling 16.2 28
Edwin Chen 8.1 29 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.
Edwin Chen 2.1 30
Edwin Chen 8.1 31 **[[Download RS485 Configure Tool>>https://www.dropbox.com/sh/us9qecn39fwt8n1/AABREdqUCzEmJMRrfuWuXasoa?dl=0]]**.
32
Herong Lu 22.1 33 [[image:image-20230928230446-1.png||_mstalt="431288" height="275" width="471"]]
Edwin Chen 8.1 34
35 = 3. Use the tool =
36
37 == Overview ==
38
Xiaoling 16.2 39
Edwin Chen 8.1 40 Below is the block diagram of the RS485 Tool:
41
Herong Lu 22.1 42 [[image:image-20230928235259-4.png||_mstalt="434590" height="681" width="915"]]
Edwin Chen 8.1 43
Herong Lu 22.1 44 Below is the block diagram of the RS485 Tool V1.2:
Edwin Chen 8.1 45
Herong Lu 25.1 46 [[image:image-20231010145454-2.png||height="689" width="921"]]
Herong Lu 22.1 47
48
Edwin Chen 8.1 49 == 3.1 General Configure: ==
50
51
Xiaoling 16.3 52 * (% style="color:blue" %)**Port **(%%): COM port in PC to connect to RS485 End Node.
Edwin Chen 8.1 53
Xiaoling 16.3 54 * (% style="color:blue" %)**Node Baud Rate **(%%): The Baud Rate for RS485 End Node.
Xiaoling 16.2 55
Xiaoling 16.3 56 * (% style="color:blue" %)**5VT **(%%): 5v Power_On_Duration for external RS485 Sensors. Unit: ms.
Xiaoling 16.2 57
Xiaoling 16.3 58 * (% style="color:blue" %)**Connect End Node **(%%): Connect to RS485 End Node.
Xiaoling 16.2 59
Xiaoling 16.3 60 * (% style="color:blue" %)**Disconnect End Node **(%%): Disconnect RS485 End Node.
Xiaoling 16.2 61
Xiaoling 16.3 62 * (% style="color:blue" %)**Sensor Baud Rate **(%%): Baud Rate of RS485 Sensors.
Xiaoling 16.2 63
Xiaoling 16.3 64 * (% style="color:blue" %)**Sensor Data Bit **(%%): Data Bit of RS485 Sensors
Xiaoling 16.2 65
Xiaoling 16.3 66 * (% style="color:blue" %)**Sensor Check Bit **(%%): Check Bit of RS485 Sensors.
Xiaoling 16.2 67
Xiaoling 16.3 68 * (% style="color:blue" %)**Sensor Stop Bit **(%%): Stop Bit of RS485 Sensors
Xiaoling 16.2 69
Xiaoling 16.3 70 * (% style="color:blue" %)**Configure Devices **(%%): Send General Configure Command to End Node.
Xiaoling 16.2 71
Edwin Chen 8.1 72 == 3.2 Console Window: ==
73
Xiaoling 16.2 74
Edwin Chen 8.1 75 After **Connect End Node**. The Console Window will shows all the output from RS485 End Node.
76
77 User can also Send AT Commands to RS485 End Node in this window.
78
Herong Lu 22.1 79 [[image:image-20230928233408-3.png||_mstalt="432289"]]
Edwin Chen 8.1 80
81
82 == 3.3 RS485 Commands to Sensor ==
83
Xiaoling 16.2 84
Edwin Chen 8.1 85 This area is used to configure what RS485 Commands the End Node should send to the RS485 sensors to get the sensor value.
86
87 * There are totally 15 commands max.
Xiaoling 16.2 88
Edwin Chen 8.1 89 * Each command should be set according to the sensor manual.
Xiaoling 16.2 90
Edwin Chen 8.1 91 * 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).
Xiaoling 16.2 92
Edwin Chen 8.1 93 * User should calculate the CRC if needed
94
95 **Example**:
96
97 * 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.
98
99 **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.
100
101
102 == 3.4 Process Sensor Returns ==
103
Xiaoling 16.2 104
Edwin Chen 15.1 105 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**.
Edwin Chen 8.1 106
Edwin Chen 15.1 107 **Example:**
Edwin Chen 8.1 108
Edwin Chen 15.1 109 User configure below commands :
Edwin Chen 8.1 110
Edwin Chen 15.1 111 * Poll Command 1: 04 03 00 00 00 02 C4 52
Xiaoling 16.2 112
Edwin Chen 15.1 113 * Poll Command 3: 08 03 00 00 00 02 C4 92
Xiaoling 16.2 114
Edwin Chen 15.1 115 * Poll Command 5: 11 03 00 00 00 02 C6 9B
116
117 Then Click "Test RS485 Commands". End Node will then send these three commands to RS485 sensors one by one and waiting for returns.
118
119 Their returnes will be shown in "RS485 Return Data" Area, such as below:
120
Herong Lu 22.1 121 [[image:image-20230930193108-1.png||_mstalt="430235"]]
Edwin Chen 15.1 122
123 Use can choose to get "Discrete Data Bytes" or "Bytes Blocks":
124
Herong Lu 22.1 125 [[image:image-20230930193257-2.png||_mstalt="432198"]] Select the 1st ~~ 3rd bytes from the return.
Edwin Chen 15.1 126
Herong Lu 22.1 127 [[image:image-20230930193357-3.png||_mstalt="432874"]] Select the 3rd, 6th, 9th bytes from the return.
Edwin Chen 15.1 128
Herong Lu 22.1 129 [[image:image-20230930193456-4.png||_mstalt="433212"]] 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.
Edwin Chen 15.1 130
Herong Lu 28.1 131 [[image: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
Edwin Chen 15.1 132
133 Below is the full screen shot:
134
Herong Lu 28.1 135 [[image:image-20231010150054-3.png]]
Edwin Chen 15.1 136
137
Xiaoling 16.2 138 (% style="color:blue" %)**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.
Edwin Chen 15.1 139
Xiaoling 16.2 140 (% style="color:blue" %)**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.
Edwin Chen 15.1 141
142
143 == 3.5 Commands Previwe Window ==
144
Xiaoling 16.2 145
Edwin Chen 15.1 146 This window show the commands to be flash into the RS485 end node.
147
Xiaoling 16.3 148 * (% style="color:blue" %)**Import Commands **(%%): Import commands from txt.
Edwin Chen 15.1 149
Xiaoling 16.3 150 * (% style="color:blue" %)**Save Commands **(%%): Save commands to a txt.
Xiaoling 16.2 151
Xiaoling 16.3 152 * (% style="color:blue" %)**Write **(%%): Write Commands to End Node
Xiaoling 16.2 153
Xiaoling 16.3 154 * (% style="color:blue" %)**Erase All **(%%): Clear All Configured Commands in the RS485. It won't erase the commands shows in the preview window.
Xiaoling 16.2 155
Edwin Chen 17.1 156 == Change Log: ==
Xiaoling 16.2 157
Herong Lu 21.1 158 === v1.1: ===
Edwin Chen 17.1 159
Herong Lu 19.1 160 1.No spaces are required between each byte of the inquiry frame
Edwin Chen 17.1 161
Herong Lu 19.1 162 2.Improve the prompt box
Edwin Chen 17.1 163
Herong Lu 19.1 164 3.AT instruction coverage function
165
166 4.Button function prompt
167
Herong Lu 21.1 168 === V1.2: ===
Herong Lu 19.1 169
Herong Lu 20.1 170 1.Fixed overwrite failure when AT instruction has multiple parameters
171
172 2.Add Payload Structure Window
173
Edwin Chen 8.1 174 = TODO: =
175
Herong Lu 20.1 176 ~1. Add Payload Structure Window(Done at v1.2)
Edwin Chen 8.1 177
Edwin Chen 18.1 178 2. Modify Chars to looks nicer  ( Done at v1.1)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0