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