Last modified by Karry Zhuang on 2024/07/11 11:58
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -32,10 +32,8 @@ 32 32 33 33 (% style="color:blue" %)**Related documents:** 34 34 35 -* System Structure: [[Solar Pump with Dragino>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Relay_VFD/||_mstmutation="1" style="background-color: rgb(255, 255, 255);"]] 36 - 35 +* System Structure: [[Solar Pump with Dragino>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Relay_VFD/||_mstmutation="1" style="background-color: rgb(255, 255, 255);"]] 37 37 * Explanation on how to integrate to Node-red and to the Mobile Phone, and with link to the Github code: [[Configure Manual>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Relay_VFD/||_mstmutation="1" style="background-color: rgb(255, 255, 255);"]] 38 - 39 39 * [[Video Demo>>url:https://www.youtube.com/watch?v=TAFZ5eaf-MY&t=6s&ab_channel=XavierFlorensaBerenguer]] 40 40 41 41 ... ... @@ -60,7 +60,6 @@ 60 60 (% style="color:blue" %)**Related documents:** 61 61 62 62 * Configure Document: [[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/||_mstmutation="1"]] 63 - 64 64 * [[Dragino Solution in Farm>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/&file=Dragino%20on%20Farms.pptx]] 65 65 66 66 ... ... @@ -101,11 +101,11 @@ 101 101 ))) 102 102 103 103 ((( 104 -Power Source **VIN**to RS485-LN**VIN+**101 +Power Source VIN to RS485-LN VIN+ 105 105 ))) 106 106 107 107 ((( 108 -Power Source **GND**to RS485-LN**VIN-**105 +Power Source GND to RS485-LN VIN- 109 109 ))) 110 110 111 111 ((( ... ... @@ -136,13 +136,9 @@ 136 136 (% style="color:blue" %)**Example:**(%%) AT+COMMAND1=01 03 00 00 00 01 84 0A 137 137 138 138 * The first byte : slave address code (=001~247) 139 - 140 140 * The second byte : read register value function code 141 - 142 142 * 3rd and 4th bytes: start address of register to be read 143 - 144 144 * 5th and 6th bytes: Number of registers to read 145 - 146 146 * 7th and 8th bytes: CRC16 checksum from bytes 1 to 6. 147 147 148 148 ((( ... ... @@ -155,18 +155,18 @@ 155 155 ))) 156 156 157 157 * The first byte ARD: slave address code (=001~254) 158 - 159 159 * The second byte: Return to read function code 160 - 161 161 * 3rd byte: total number of bytes 162 - 163 163 * 4th~5th bytes: register data 164 - 165 165 * The 6th and 7th bytes: CRC16 checksum 166 - 167 167 * 08 FD is register data. Use short integer 16 bits to convert to decimal, get 2301, then 230.1V is the voltage. 168 168 157 +(% class="wikigeneratedid" %) 158 +((( 159 + 169 169 161 + 162 +))) 170 170 171 171 === 1.3.3 How to configure RS485-LN and parse output commands === 172 172 ... ... @@ -174,7 +174,7 @@ 174 174 RS485-LN provides two configuration methods: AT COMMAND and DOWNLINK. 175 175 176 176 177 -==== **1.3.3.1 via AT COMMAND**====170 +==== 1.3.3.1 via AT COMMAND ==== 178 178 179 179 180 180 First, we can use (% style="color:blue" %)**AT+CFGDEV**(%%) to get the return value, and we can also judge whether the input parameters are correct. ... ... @@ -230,6 +230,7 @@ 230 230 ((( 231 231 (% style="color:blue" %)**Example**: 232 232 226 + 233 233 (% style="color:red" %)**CMD1:**(%%) Read current data with MODBUS command. address: 0x03 AT+COMMAND1= 01 03 00 03 00 01,1 234 234 ))) 235 235 ... ... @@ -271,6 +271,8 @@ 271 271 272 272 ((( 273 273 Payload: 01 00 02 39 85 08 DC 00 00 00 44 268 + 269 + 274 274 ))) 275 275 276 276 [[image:image-20220601142936-6.png]] ... ... @@ -288,7 +288,7 @@ 288 288 289 289 290 290 291 -==== **1.3.3.2 via LoRaWAN DOWNLINK**====287 +==== 1.3.3.2 via LoRaWAN DOWNLINK ==== 292 292 293 293 294 294 [[image:image-20220527093358-15.png]] ... ... @@ -297,8 +297,10 @@ 297 297 **DOWNLINK** 298 298 ))) 299 299 296 +((( 297 + 298 +))) 300 300 301 - 302 302 ((( 303 303 (% style="color:blue" %)**Type Code 0xAF** 304 304 ))) ... ... @@ -312,6 +312,8 @@ 312 312 313 313 ((( 314 314 (% style="color:red" %)**Note: if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.** 313 + 314 + 315 315 ))) 316 316 317 317 ((( ... ... @@ -346,8 +346,9 @@ 346 346 will execute an uplink after got this command. 347 347 ))) 348 348 349 - 350 350 ((( 350 + 351 + 351 351 (% style="color:blue" %)**Example:** 352 352 ))) 353 353 ... ... @@ -423,6 +423,8 @@ 423 423 424 424 ((( 425 425 The configuration command is consistent with the AT command, input the hexadecimal command directly into the serial port, and the serial port will output the command. 427 + 428 + 426 426 ))) 427 427 428 428 ((( ... ... @@ -523,6 +523,7 @@ 523 523 524 524 (% style="display:none" %) (%%) 525 525 529 +(% style="display:none" %) (%%) 526 526 527 527 == 1.4 Example 4: Circuit Breaker Remote Open Close == 528 528 ... ... @@ -533,7 +533,7 @@ 533 533 534 534 [[image:image-20220527094330-30.png]] 535 535 536 - **Connection**540 +Connection 537 537 538 538 539 539 * Configure Documen: [[Circuit Breaker Remote Open Close>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/Application_Note/Circuit_Breaker_Remote_Open_Close/||_mstmutation="1"]] ... ... @@ -546,7 +546,6 @@ 546 546 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: 547 547 548 548 * Configure Document For RS485-BL: [[Connect to SEM Three>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/RS485-BL/Application_Note/&file=Dragino%20RS485BL%20and%20pickdata%20SEM%20Three%20v1.pdf||_mstmutation="1" style="background-color: rgb(255, 255, 255);"]] 549 - 550 550 * Configure Document for RS485-LN: [[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||_mstmutation="1"]] 551 551 552 552