Show last authors
1 (% class="wikigeneratedid" id="HTableofContentsFF1A" %)
2 **Table of Contents:**
3
4 {{toc/}}
5
6
7
8 = 1. What is Dragino RS485 Configure Tool? =
9
10
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.
16
17 * Test the poll command to RS485 sensors.
18
19 * See return from RS485 sensors and preview process command for returns.
20
21 * Generate the AT Commands after debuging.
22
23 * Write the AT Commands to end node in batch.
24
25 * Import / Export commands
26
27 = 2. Hardware Connection =
28
29
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.
31
32 **[[Download RS485 Configure Tool>>https://www.dropbox.com/sh/us9qecn39fwt8n1/AABREdqUCzEmJMRrfuWuXasoa?dl=0]]**.
33
34 [[image:image-20230928230446-1.png||_mstalt="431288" height="275" width="471"]]
35
36 = 3. Use the tool =
37
38 == 3.1 Overview ==
39
40
41 (% style="color:red" %)**warning: Please do not input multiple instructions at once for a site, as this may result in incorrect data**
42
43 Below is the block diagram of the RS485 Tool:
44
45 [[image:image-20230928235259-4.png||_mstalt="434590" height="681" width="915"]]
46
47 Below is the block diagram of the RS485 Tool V1.2:
48
49 [[image:image-20231010145454-2.png||_mstalt="428597" height="689" width="921"]]
50
51
52 == 3.2 General Configure: ==
53
54
55 * (% style="color:blue" %)**Port **(%%): COM port in PC to connect to RS485 End Node.
56
57 * (% style="color:blue" %)**Node Baud Rate **(%%): The Baud Rate for RS485 End Node.
58
59 * (% style="color:blue" %)**5VT **(%%): 5v Power_On_Duration for external RS485 Sensors. Unit: ms.
60
61 * (% style="color:blue" %)**Connect End Node **(%%): Connect to RS485 End Node.
62
63 * (% style="color:blue" %)**Disconnect End Node **(%%): Disconnect RS485 End Node.
64
65 * (% style="color:blue" %)**Sensor Baud Rate **(%%): Baud Rate of RS485 Sensors.
66
67 * (% style="color:blue" %)**Sensor Data Bit **(%%): Data Bit of RS485 Sensors
68
69 * (% style="color:blue" %)**Sensor Check Bit **(%%): Check Bit of RS485 Sensors.
70
71 * (% style="color:blue" %)**Sensor Stop Bit **(%%): Stop Bit of RS485 Sensors
72
73 * (% style="color:blue" %)**Configure Devices **(%%): Send General Configure Command to End Node.
74
75
76 == 3.3 Console Window: ==
77
78
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
83 [[image:image-20230928233408-3.png||_mstalt="432289"]]
84
85
86 == 3.4 RS485 Commands to Sensor ==
87
88
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.
92
93 * Each command should be set according to the sensor manual.
94
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).
96
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
106 == 3.5 Process Sensor Returns ==
107
108
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**.
110
111 **Example:**
112
113 User configure below commands :
114
115 * Poll Command 1: 04 03 00 00 00 02 C4 52
116
117 * Poll Command 3: 08 03 00 00 00 02 C4 92
118
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
125 [[image:image-20230930193108-1.png||_mstalt="430235"]]
126
127 Use can choose to get "Discrete Data Bytes" or "Bytes Blocks":
128
129 [[image:image-20230930193257-2.png||_mstalt="432198"]] Select the 1st - 3rd bytes from the return.
130
131 [[image:image-20230930193357-3.png||_mstalt="432874"]] Select the 3rd, 6th, 9th bytes from the return.
132
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.
134
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
136
137 Below is the full screen shot:
138
139 [[image:image-20231010150054-3.png||_mstalt="426504"]]
140
141
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.
143
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.
145
146
147 == 3.6 Commands Previwe Window ==
148
149
150 This window show the commands to be flash into the RS485 end node.
151
152 * (% style="color:blue" %)**Import Commands **(%%): Import commands from txt.
153
154 * (% style="color:blue" %)**Save Commands **(%%): Save commands to a txt.
155
156 * (% style="color:blue" %)**Write **(%%): Write Commands to End Node
157
158 * (% style="color:blue" %)**Erase All **(%%): Clear All Configured Commands in the RS485. It won't erase the commands shows in the preview window.
159
160 == 3.7 Reference video ==
161
162
163 link: [[https:~~/~~/youtu.be/l9fLE3ekY4I>>https://youtu.be/l9fLE3ekY4I]]
164
165
166 == 3.8 Change Log: ==
167
168 === v1.1: ===
169
170 ~1. No spaces are required between each byte of the inquiry frame
171
172 2. Improve the prompt box
173
174 3. AT instruction coverage function
175
176 4. Button function prompt
177
178 === V1.2: ===
179
180 ~1. Fixed overwrite failure when AT instruction has multiple parameters
181
182 2. Add Payload Structure Window
183
184 === V1.3: ===
185
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
190 New:
191
192 ~1. Control the inquiry time input box between inquiry frames
193
194 2. The inquiry frame does not require CRC verification input
195
196 [[image:image-20240311144211-2.png||height="948" width="1268"]]
197
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
204 [[image:image-20240620083959-1.png||height="680" width="1265"]]
205
206
207 = 4. TODO: =
208
209
210 ~1. Add Payload Structure Window(Done at v1.2)
211
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