Last modified by Karry Zhuang on 2024/07/11 11:58
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -3,17 +3,12 @@ 3 3 4 4 {{toc/}} 5 5 6 += 1. Introduction = 6 6 7 - 8 - 9 - 10 - 11 -= **1. Introduction** = 12 - 13 13 This article provide the examples for RS485-LN to connect to different type of RS485 sensors. 14 14 15 15 16 -== **1.1 Example 1: Connect to Leak relay and VFD**==11 +== 1.1 Example 1: Connect to Leak relay and VFD == 17 17 18 18 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 Relay and VFD and communicate with Mobile. The structure is like below: 19 19 ... ... @@ -34,10 +34,8 @@ 34 34 * [[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. 35 35 * [[Video Demo>>url:https://www.youtube.com/watch?v=TAFZ5eaf-MY&t=6s&ab_channel=XavierFlorensaBerenguer]] 36 36 32 +== 1.2 Example 2: Connect to Pulse Counter == 37 37 38 - 39 -== **1.2 Example 2: Connect to Pulse Counter** == 40 - 41 41 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: 42 42 43 43 [[image:image-20220527092058-3.png]] ... ... @@ -45,7 +45,6 @@ 45 45 Connection 46 46 47 47 48 - 49 49 [[image:image-20220527092146-4.png]] 50 50 51 51 Connection ... ... @@ -55,9 +55,9 @@ 55 55 56 56 == == 57 57 58 -== **1.3 Example3: Use RS485-LN with energy meters**==50 +== 1.3 Example3: Use RS485-LN with energy meters == 59 59 60 -=== **1.3.1 OverView**===52 +=== 1.3.1 OverView === 61 61 62 62 ((( 63 63 **Note**:The specifications of each energy meter are different, please refer to your own energy meter specifications. ... ... @@ -106,7 +106,7 @@ 106 106 Connection3 107 107 108 108 109 -=== **1.3.2 How to use the parameters of the energy meter and MODBUS commands**===101 +=== 1.3.2 How to use the parameters of the energy meter and MODBUS commands === 110 110 111 111 If the user needs to read the parameters of the electric energy meter and use the modbus command,please refer to the appendix of the MODBUS communication protocol in the user manual of the energy meter. 112 112 ... ... @@ -145,12 +145,12 @@ 145 145 146 146 ))) 147 147 148 -=== **1.3.3 How to configure RS485-LN and parse output commands**===140 +=== 1.3.3 How to configure RS485-LN and parse output commands === 149 149 150 150 RS485-LN provides two configuration methods: AT COMMAND and DOWNLINK. 151 151 152 152 153 -==== **1.3.3.1 via AT COMMAND:**====145 +==== 1.3.3.1 via AT COMMAND: ==== 154 154 155 155 First, we can use **AT+CFGDEV** to get the return value, and we can also judge whether the input parameters are correct. 156 156 ... ... @@ -200,9 +200,7 @@ 200 200 ))) 201 201 202 202 ((( 203 -(% style="color:#4f81bd" %)**Example**: 204 - 205 -CMD1:Read current data with MODBUS command. address:0x03 AT+COMMAND1= 01 03 00 03 00 01,1 195 +**Example**: CMD1:Read current data with MODBUS command. address:0x03 AT+COMMAND1= 01 03 00 03 00 01,1 206 206 ))) 207 207 208 208 ((( ... ... @@ -211,8 +211,6 @@ 211 211 212 212 ((( 213 213 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. 214 - 215 - 216 216 ))) 217 217 218 218 ((( ... ... @@ -225,8 +225,6 @@ 225 225 226 226 ((( 227 227 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. 228 - 229 - 230 230 ))) 231 231 232 232 ((( ... ... @@ -257,7 +257,7 @@ 257 257 AT COMMAND 258 258 259 259 260 -==== **1.3.3.2 via LoRaWAN DOWNLINK**====246 +==== 1.3.3.2 via LoRaWAN DOWNLINK ==== 261 261 262 262 [[image:image-20220527093358-15.png]] 263 263 ... ... @@ -270,7 +270,7 @@ 270 270 ))) 271 271 272 272 ((( 273 - (% style="color:#4f81bd" %)**Type Code 0xAF**259 +**Type Code 0xAF** 274 274 ))) 275 275 276 276 ((( ... ... @@ -317,11 +317,11 @@ 317 317 ))) 318 318 319 319 ((( 320 - (% style="color:#4f81bd" %)**Example:**306 +Example: 321 321 ))) 322 322 323 323 ((( 324 - **AF 03 01 06 0A 05 00 04 00 01 00**: Same as AT+COMMAND3=0A 05 00 04 00 01,1310 +AF 03 01 06 0A 05 00 04 00 01 00: Same as AT+COMMAND3=0A 05 00 04 00 01,1 325 325 ))) 326 326 327 327 [[image:image-20220527093430-16.png]] ... ... @@ -349,7 +349,7 @@ 349 349 DOWNLINK 350 350 351 351 352 -=== **1.3.4 How to configure and output commands for RS485 to USB**===338 +=== 1.3.4 How to configure and output commands for RS485 to USB === 353 353 354 354 ((( 355 355 This step is not necessary, it is just to show how to use a normal RS485 to USB adapter to connect to the meter to check the input and output. This can be used to test the connection and RS485 command of the meter without RS485-LN. ... ... @@ -386,7 +386,7 @@ 386 386 ))) 387 387 388 388 ((( 389 - (% style="color:#4f81bd" %)**Example:**(%%)input:01 03 00 31 00 02 95 c4375 +**Example:** input:01 03 00 31 00 02 95 c4 390 390 ))) 391 391 392 392 ((( ... ... @@ -398,7 +398,7 @@ 398 398 USB 399 399 400 400 401 -=== **1.3.5 How to configure multiple devices and modify device addresses**===387 +=== 1.3.5 How to configure multiple devices and modify device addresses === 402 402 403 403 If users need to read the parameters of multiple energy meters, they need to modify the device address, because the default device address of each energy meter is 01. 404 404 ... ... @@ -467,12 +467,11 @@ 467 467 468 468 [[image:image-20220527094224-29.png]] 469 469 470 - **PAYLOAD:01 08 DF 43 62**456 +PAYLOAD:01 08 DF 43 62 471 471 472 472 * 08 DF is the valid value of the meter with device address 02. 473 473 * 43 62 is the valid value of the meter with device address 01. 474 474 475 - 476 476 == 1.4 Example 4: Circuit Breaker Remote Open Close == 477 477 478 478 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: ... ... @@ -483,7 +483,6 @@ 483 483 484 484 * [[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 485 485 486 - 487 487 == 1.5 Example 5: SEM Three Energy Meter with RS485-BL or RS485-LN == 488 488 489 489 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: