<
From version < 1.12 >
edited by Xiaoling
on 2022/05/12 10:13
To version < 1.7 >
edited by Xiaoling
on 2022/05/12 09:54
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,6 +20,7 @@
20 20  * [[Configure Manual>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Relay_VFD/]] : Explanation on how to integrate to Node-red and to the Mobile Phone, and with link to the Github code.
21 21  * [[Video Demo>>url:https://www.youtube.com/watch?v=TAFZ5eaf-MY&t=6s&ab_channel=XavierFlorensaBerenguer]]
22 22  
23 +
23 23  == 1.2 Example 2: Connect to Pulse Counter ==
24 24  
25 25  This instruction is provided by Xavier Florensa Berenguer from [[NORIA GRUPO DE COMPRAS>>url:http://www.gruponovelec.com/]]. It is to show how to use RS485-LN to connect to Pulse Counter and communicate with Mobile. This example and example 2 compose the structure for a farm IoT solution. The structure is like below:
... ... @@ -35,6 +35,7 @@
35 35  * [[Pickdata MIO40 water pulse counter to LoRa with Dragino RS485-LN>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Pulse-Counter/]] : Configure Document
36 36  * [[Dragino Solution in Farm>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/&file=Dragino%20on%20Farms.pptx]]
37 37  
39 +
38 38  == 1.3 Example3: Use RS485-LN with energy meters ==
39 39  
40 40  === 1.3.1 OverView ===
... ... @@ -47,7 +47,7 @@
47 47  This example describes a single-phase meter.This is the connection between the RS485-LN and the energy meter.
48 48  )))
49 49  
50 -[[image:https://wiki.dragino.com/images/thumb/f/f4/Meter1.jpg/600px-Meter1.jpg||height="726" width="545"]]
52 +[[image:https://wiki.dragino.com/images/thumb/f/f4/Meter1.jpg/600px-Meter1.jpg||height="800" width="600"]]
51 51  
52 52  Connection1
53 53  
... ... @@ -63,13 +63,12 @@
63 63  
64 64  Once there is power, the RS485-LN will be on.
65 65  
66 -[[image:https://wiki.dragino.com/images/thumb/1/15/Meter2.jpg/600px-Meter2.jpg||height="433" width="577"]]
68 +[[image:https://wiki.dragino.com/images/thumb/1/15/Meter2.jpg/600px-Meter2.jpg||height="450" width="600"]]
67 67  
68 68  Connection2
69 69  
72 +[[image:https://wiki.dragino.com/images/thumb/a/a5/Meter3.jpg/600px-Meter3.jpg||height="800" width="600"]]
70 70  
71 -[[image:https://wiki.dragino.com/images/thumb/a/a5/Meter3.jpg/600px-Meter3.jpg||height="763" width="573"]]
72 -
73 73  Connection3
74 74  
75 75  
... ... @@ -79,10 +79,7 @@
79 79  
80 80  [[image:https://wiki.dragino.com/images/thumb/3/35/Meter4.png/600px-Meter4.png||alt="Meter4.png" height="193" width="600"]]
81 81  
82 -(% class="box infomessage" %)
83 -(((
84 84  Example:AT+COMMAND1=01 03 00 00 00 01 84 0A
85 -)))
86 86  
87 87  * The first byte : slave address code (=001~247)
88 88  * The second byte : read register value function code
... ... @@ -90,14 +90,9 @@
90 90  * 5th and 6th bytes: Number of registers to read
91 91  * 7th and 8th bytes: CRC16 checksum from bytes 1 to 6.
92 92  
93 -(((
94 94  How to parse the reading of the return command of the parameter:
95 -)))
96 96  
97 -(% class="box infomessage" %)
98 -(((
99 99  Example:RETURN1:01 03 02 08 FD 7E 05
100 -)))
101 101  
102 102  * The first byte ARD: slave address code (=001~254)
103 103  * The second byte: Return to read function code
... ... @@ -106,26 +106,22 @@
106 106  * The 6th and 7th bytes: CRC16 checksum
107 107  * 08 FD is register data. Use short integer 16 bits to convert to decimal, get 2301, then 230.1V is the voltage.
108 108  
102 +
109 109  === 1.3.3 How to configure RS485-LN and parse output commands ===
110 110  
111 111  RS485-LN provides two configuration methods: AT COMMAND and DOWNLINK.
112 112  
113 -==== 1.3.3.1 via AT COMMAND: ====
107 +==== via AT COMMAND: ====
114 114  
115 -First, we can use **AT+CFGDEV** to get the return value, and we can also judge whether the input parameters are correct.
109 +First, we can use AT+CFGDEV to get the return value, and we can also judge whether the input parameters are correct.
116 116  
117 -(((
118 118  If the configured parameters and commands are incorrect, the return value is not obtained.
119 -)))
120 120  
121 121  [[image:https://wiki.dragino.com/images/b/bc/AT_COMMAND1.png||height="358" width="456"]]
122 122  
123 123  AT COMMAND
124 124  
125 -(% class="box infomessage" %)
126 -(((
127 127  AT+DATACUTx : This command defines how to handle the return from AT+COMMANDx, max reture length is 40 bytes. AT+DATACUTx=a,b,c
128 -)))
129 129  
130 130  a: length for the return of AT+COMMAND
131 131  
... ... @@ -139,7 +139,6 @@
139 139  
140 140  PAYLOAD is available after the valid value is intercepted.
141 141  
142 -
143 143  [[image:https://wiki.dragino.com/images/3/3a/AT_COMMAND4.png||height="219" width="576"]]
144 144  
145 145  AT COMMAND
... ... @@ -146,52 +146,29 @@
146 146  
147 147  You can get configured PAYLOAD on TTN.
148 148  
149 -
150 150  [[image:https://wiki.dragino.com/images/thumb/c/c2/AT_COMMAND3.png/600px-AT_COMMAND3.png||height="138" width="600"]]
151 151  
152 -(((
153 153  AT COMMAND
154 -)))
155 155  
156 -(((
157 -**Example**: CMD1:Read current data with MODBUS command. address:0x03 AT+COMMAND1= 01 03 00 03 00 01,1
158 -)))
141 +Example: CMD1:Read current data with MODBUS command. address:0x03 AT+COMMAND1= 01 03 00 03 00 01,1
159 159  
160 -(((
161 161  RETURN1:01 03 02 00 02 39 85 00 00(return data)
162 -)))
163 163  
164 -(((
165 165  AT+DATACUT1:9,1,4+5+6+7 Take the return value 00 02 39 85 as the valid value of reading current data and used to splice payload.
166 -)))
167 167  
168 -(((
169 169  CMD2:Read voltage data with MODBUS command. address:0x00 AT+COMMAND2= 01 03 00 00 00 01,1
170 -)))
171 171  
172 -(((
173 173  RETURN2:01 03 02 08 DC BE 1D(return data)
174 -)))
175 175  
176 -(((
177 177  AT+DATACUT2:7,1,4+5 Take the return value 08 DC as the valid value of reading voltage data and used to splice payload.
178 -)))
179 179  
180 -(((
181 181  CMD3:Read total active energy data with MODBUS command. address:0x0031 AT+COMMAND3= 01 03 00 31 00 02,1
182 -)))
183 183  
184 -(((
185 185  RETURN3:01 03 04 00 00 00 44 FA 00(return data)
186 -)))
187 187  
188 -(((
189 189  AT+DATACUT3:9,1,4+5+6+7 Take the return value 00 00 00 44 as the valid value of reading total active energy data and used to splice payload.
190 -)))
191 191  
192 -(((
193 193  Payload:01 00 02 39 85 08 DC 00 00 00 44
194 -)))
195 195  
196 196  [[image:https://wiki.dragino.com/images/thumb/9/9b/AT_COMMAND10.png/600px-AT_COMMAND10.png||height="278" width="600"]]
197 197  
... ... @@ -199,91 +199,54 @@
199 199  
200 200  01 is device address,00 02 is the current, 08 DC is the voltage,00 00 00 44 is the total active energy.
201 201  
202 -
203 203  [[~[~[image:https://wiki.dragino.com/images/thumb/b/b8/AT_COMMAND11.png/600px-AT_COMMAND11.png~|~|height="271" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:AT_COMMAND11.png]]
204 204  
205 205  AT COMMAND
206 206  
171 +==== 1.3.3.1 via LoRaWAN DOWNLINK ====
207 207  
208 -==== 1.3.3.2 via LoRaWAN DOWNLINK ====
209 -
210 210  [[image:https://wiki.dragino.com/images/thumb/f/fc/DOWNLINK_METER1.png/600px-DOWNLINK_METER1.png||height="423" width="600"]]
211 211  
212 -(((
213 213  DOWNLINK
214 -)))
215 215  
216 -(((
217 -
218 -)))
219 -
220 -(((
221 221  Type Code 0xAF
222 -)))
223 223  
224 -(((
225 225  0xAF downlink command can be used to set AT+COMMANDx or AT+DATACUTx.
226 -)))
227 227  
228 -(((
229 229  Note: if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.
230 -)))
231 231  
232 -(((
233 233  Format: AF MM NN LL XX XX XX XX YY
234 -)))
235 235  
236 -(((
237 237  Where:
238 -)))
239 239  
240 -(((
241 241  MM: the ATCOMMAND or AT+DATACUT to be set. Value from 01 ~~ 0F,
242 -)))
243 243  
244 -(((
245 245  NN: 0: no CRC; 1: add CRC-16/MODBUS ; 2: set the AT+DATACUT value.
246 -)))
247 247  
248 -(((
249 249  LL: The length of AT+COMMAND or AT+DATACUT command
250 -)))
251 251  
252 -(((
253 253  XX XX XX XX: AT+COMMAND or AT+DATACUT command
254 -)))
255 255  
256 -(((
257 257  YY: If YY=0, RS485-LN will execute the downlink command without uplink; if YY=1, RS485-LN
258 -)))
259 259  
260 -(((
261 261  will execute an uplink after got this command.
262 -)))
263 263  
264 -(((
265 265  Example:
266 -)))
267 267  
268 -(((
269 269  AF 03 01 06 0A 05 00 04 00 01 00: Same as AT+COMMAND3=0A 05 00 04 00 01,1
270 -)))
271 271  
272 272  [[image:https://wiki.dragino.com/images/thumb/4/45/DOWNLINK_METER2.png/600px-DOWNLINK_METER2.png||height="208" width="600"]]
273 273  
274 274  DOWNLINK
275 275  
276 -
277 277  [[~[~[image:https://wiki.dragino.com/images/thumb/2/20/DOWNLINK_METER3.png/600px-DOWNLINK_METER3.png~|~|height="105" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:DOWNLINK_METER3.png]]
278 278  
279 279  DOWNLINK
280 280  
281 -
282 282  [[image:https://wiki.dragino.com/images/thumb/2/27/DOWNLINK_METER4.png/600px-DOWNLINK_METER4.png||height="210" width="600"]]
283 283  
284 284  DOWNLINK
285 285  
286 -
287 287  [[~[~[image:https://wiki.dragino.com/images/thumb/3/39/DOWNLINK_METER5.png/600px-DOWNLINK_METER5.png~|~|height="176" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:DOWNLINK_METER5.png]]
288 288  
289 289  DOWNLINK
... ... @@ -377,6 +377,7 @@
377 377  * 08 DF is the valid value of the meter with device address 02.
378 378  * 43 62 is the valid value of the meter with device address 01.
379 379  
308 +
380 380  == 1.4 Example 4: Circuit Breaker Remote Open Close ==
381 381  
382 382  This instruction is provided by Xavier Florensa Berenguer from [[NORIA GRUPO DE COMPRAS>>url:http://www.gruponovelec.com/]]. It is to show how to use RS485-LN to connect to SCHNEIDER SMART and Monitor and control your cabinet remotely with no wires and with Dragino RS485-LN LoRaWAN technology. The structure is like below:
... ... @@ -387,6 +387,7 @@
387 387  
388 388  * [[Circuit Breaker Remote Open Close>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Circuit_Breaker_Remote_Open_Close/]] : Configure Documen
389 389  
319 +
390 390  == 1.5 Example 5: SEM Three Energy Meter with RS485-BL or RS485-LN ==
391 391  
392 392  This instruction is provided by Xavier Florensa Berenguer from [[NORIA GRUPO DE COMPRAS>>url:http://www.gruponovelec.com/]]. It is to show how to use RS485-BL to connect to SEM Three Energy Meter and send the data to mobile phone for remote minitor. The structure is like below:
... ... @@ -395,6 +395,7 @@
395 395  
396 396  * [[Connect to SEM Three>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/SEM_Three_Energy_Meter/&file=SEM%20three%20and%20Dragino%20RS485-LN%20v1.pdf]] : Configure Document for RS485-LN
397 397  
328 +
398 398  == 1.6 Example 6:CEM C31 485-T1-MID Energy Meter with RS485-LN ==
399 399  
400 400  This instruction is provided by Xavier Florensa Berenguer from [[NORIA GRUPO DE COMPRAS>>url:http://www.gruponovelec.com/]]. It is to show how to use RS485-LN to connect to CEM C31 485-T1-MID and send the data for remote minitor. The structure is like below:
... ... @@ -401,6 +401,7 @@
401 401  
402 402  * [[CEM C31 485-T1-MID>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/ELECTRICAL%20CABINET/&file=ELECTRICAL%20CABINET%20READINGS.pdf]] : Configure Document For RS485-LN
403 403  
335 +
404 404  == 1.7 Example 7:Schneider Electric PLC M221 with RS485-BL ==
405 405  
406 406  [[image:https://wiki.dragino.com/images/thumb/9/97/PLC_M221.png/600px-PLC_M221.png||height="353" width="600"]]
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0