Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -24,8 +24,6 @@ 24 24 ((( 25 25 ((( 26 26 ((( 27 - 28 - 29 29 The Dragino RS485-LN is a (% style="color:blue" %)**RS485 to LoRaWAN Converter**(%%). It converts the RS485 signal into LoRaWAN wireless signal which simplify the IoT installation and reduce the installation/maintaining cost. 30 30 ))) 31 31 ))) ... ... @@ -49,8 +49,6 @@ 49 49 50 50 ((( 51 51 (% style="color:blue" %)**Demo Dashboard for RS485-LN**(%%) connect to two energy meters: [[https:~~/~~/app.datacake.de/dashboard/d/58844a26-378d-4c5a-aaf5-b5b5b153447a>>url:https://app.datacake.de/dashboard/d/58844a26-378d-4c5a-aaf5-b5b5b153447a]] 52 - 53 - 54 54 ))) 55 55 ))) 56 56 ))) ... ... @@ -96,7 +96,6 @@ 96 96 * Packet engine up to 256 bytes with CRC 97 97 98 98 99 - 100 100 == 1.3 Features == 101 101 102 102 * LoRaWAN Class A & Class C protocol (default Class C) ... ... @@ -109,7 +109,6 @@ 109 109 * Support Interrupt uplink (Since hardware version v1.2) 110 110 111 111 112 - 113 113 == 1.4 Applications == 114 114 115 115 * Smart Buildings & Home Automation ... ... @@ -120,7 +120,6 @@ 120 120 * Smart Factory 121 121 122 122 123 - 124 124 == 1.5 Firmware Change log == 125 125 126 126 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] ... ... @@ -189,13 +189,12 @@ 189 189 190 190 [[image:1653268227651-549.png||height="592" width="720"]] 191 191 192 - 193 193 ((( 194 194 The LG308 is already set to connect to [[TTN V3 network >>path:https://www.thethingsnetwork.org/]]. So what we need to now is only configure the TTN V3: 195 195 ))) 196 196 197 197 ((( 198 - (% style="color:blue" %)**Step 1**(%%): Create a device in TTN V3 with the OTAA keys from RS485-LN.190 +**Step 1**: Create a device in TTN V3 with the OTAA keys from RS485-LN. 199 199 ))) 200 200 201 201 ((( ... ... @@ -205,7 +205,6 @@ 205 205 206 206 [[image:1652953462722-299.png]] 207 207 208 - 209 209 ((( 210 210 ((( 211 211 User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot: ... ... @@ -212,7 +212,7 @@ 212 212 ))) 213 213 214 214 ((( 215 - **Add APP EUI in the application.**206 +Add APP EUI in the application. 216 216 ))) 217 217 ))) 218 218 ... ... @@ -228,15 +228,13 @@ 228 228 229 229 [[image:1652953542269-423.png||height="710" width="723"]] 230 230 222 +Add APP KEY and DEV EUI 231 231 232 - 233 -**Add APP KEY and DEV EUI** 234 - 235 235 [[image:1652953553383-907.png||height="514" width="724"]] 236 236 237 237 238 238 ((( 239 - (% style="color:blue" %)**Step 2**(%%): Power on RS485-LN and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel.228 +**Step 2**: Power on RS485-LN and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel. 240 240 ))) 241 241 242 242 [[image:1652953568895-172.png||height="232" width="724"]] ... ... @@ -247,7 +247,7 @@ 247 247 ((( 248 248 ((( 249 249 ((( 250 -There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>||anchor="H3.5ConfigureRS485-L NviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices.239 +There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices. 251 251 ))) 252 252 ))) 253 253 ... ... @@ -323,8 +323,6 @@ 323 323 ))) 324 324 325 325 326 - 327 - 328 328 === 3.3.2 Configure sensors === 329 329 330 330 ((( ... ... @@ -349,6 +349,7 @@ 349 349 ))) 350 350 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 351 351 339 + 352 352 === 3.3.3 Configure read commands for each sampling === 353 353 354 354 ((( ... ... @@ -361,7 +361,7 @@ 361 361 During each sampling, the RS485-LN can support 15 commands to read sensors. And combine the return to one or several uplink payloads. 362 362 363 363 364 - (% style="color:#037691" %)**Each RS485 commands include two parts:**352 +**Each RS485 commands include two parts:** 365 365 366 366 ~1. What commands RS485-LN will send to the RS485 sensors. There are total 15 commands from **AT+COMMAD1**, **ATCOMMAND2**,…, to **AT+COMMANDF**. All commands are of same grammar. 367 367 ... ... @@ -376,11 +376,11 @@ 376 376 Below are examples for the how above AT Commands works. 377 377 378 378 379 - (% style="color:#037691" %)**AT+COMMANDx**(%%)**: **This command will be sent to RS485 devices during each sampling, Max command length is 14 bytes. The grammar is:367 +**AT+COMMANDx : **This command will be sent to RS485 devices during each sampling, Max command length is 14 bytes. The grammar is: 380 380 381 381 (% border="1" style="background-color:#4bacc6; color:white; width:499px" %) 382 382 |(% style="width:496px" %)((( 383 - (% style="color:#037691" %)**AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**371 +**AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 384 384 385 385 **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent** 386 386 ... ... @@ -392,7 +392,7 @@ 392 392 In the RS485-LN, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 393 393 394 394 395 - (% style="color:#037691" %)**AT+DATACUTx**(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes.383 +**AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes. 396 396 397 397 (% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 398 398 |(% style="width:510px" %)((( ... ... @@ -405,21 +405,20 @@ 405 405 406 406 **Examples:** 407 407 408 -* (% style="color:#037691" %)**Grab bytes**396 +* Grab bytes: 409 409 410 410 [[image:image-20220602153621-1.png]] 411 411 412 412 413 -* (% style="color:#037691" %)**Grab a section**401 +* Grab a section. 414 414 415 415 [[image:image-20220602153621-2.png]] 416 416 417 417 418 -* (% style="color:#037691" %)**Grab different sections**406 +* Grab different sections. 419 419 420 420 [[image:image-20220602153621-3.png]] 421 421 422 - 423 423 424 424 ))) 425 425 ... ... @@ -528,7 +528,7 @@ 528 528 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 529 529 530 530 531 -== 3.5 Configure RS485-L Nvia AT or Downlink ==518 +== 3.5 Configure RS485-BL via AT or Downlink == 532 532 533 533 ((( 534 534 User can configure RS485-LN via AT Commands or LoRaWAN Downlink Commands ... ... @@ -694,7 +694,7 @@ 694 694 ==== **Set Payload version** ==== 695 695 696 696 ((( 697 -This is the first byte of the uplink payload. RS485-L Ncan connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload.684 +This is the first byte of the uplink payload. RS485-BL can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload. 698 698 ))) 699 699 700 700 * ((( ... ... @@ -792,7 +792,7 @@ 792 792 XX XX XX XX: AT+COMMAND or AT+DATACUT command 793 793 ))) 794 794 * ((( 795 -YY: If YY=0, RS485-L Nwill execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command.782 +YY: If YY=0, RS485-BL will execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command. 796 796 ))) 797 797 798 798 ((( ... ... @@ -1213,6 +1213,7 @@ 1213 1213 |(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 1214 1214 |(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1215 1215 1203 + 1216 1216 == 3.8 LEDs == 1217 1217 1218 1218 ... ... @@ -1221,6 +1221,7 @@ 1221 1221 |**PWR**|Always on if there is power 1222 1222 |**SYS**|After device is powered on, the SYS will (% style="color:green" %)**fast blink in GREEN**(%%) for 5 times, means RS485-LN start to join LoRaWAN network. If join success, SYS will be (% style="color:green" %)**on GREEN for 5 seconds** (%%)**. **SYS will (% style="color:green" %)**blink Blue**(%%) on every upload and (% style="color:green" %)**blink Green**(%%) once receive a downlink message. 1223 1223 1212 + 1224 1224 = 4. Case Study = 1225 1225 1226 1226 User can check this URL for some case studies: [[APP RS485 COMMUNICATE WITH SENSORS>>doc:Main.Application Note \: Communicate with Different Sensors ----- RS485-LN RS485-BL.WebHome]] ... ... @@ -1231,7 +1231,7 @@ 1231 1231 == 5.1 Access AT Command == 1232 1232 1233 1233 ((( 1234 -RS485-L Nsupports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to RS485-LNto use AT command, as below.1223 +RS485-BL supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to RS485-BL to use AT command, as below. 1235 1235 ))) 1236 1236 1237 1237 [[image:1654162355560-817.png]] ... ... @@ -1238,7 +1238,7 @@ 1238 1238 1239 1239 1240 1240 ((( 1241 -In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console of RS485-L N. The default password is 123456. Below is the output for reference:1230 +In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console of RS485-BL. The default password is 123456. Below is the output for reference: 1242 1242 ))) 1243 1243 1244 1244 [[image:1654162368066-342.png]] ... ... @@ -1387,9 +1387,9 @@ 1387 1387 User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download. 1388 1388 1389 1389 1390 -== 6.3 How many RS485-Slave can RS485-L Nconnects? ==1379 +== 6.3 How many RS485-Slave can RS485-BL connects? == 1391 1391 1392 -The RS485-L Ncan support max 32 RS485 devices. Each uplink command of RS485-LNcan support max 16 different RS485 command. So RS485-LNcan support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]].1381 +The RS485-BL can support max 32 RS485 devices. Each uplink command of RS485-BL can support max 16 different RS485 command. So RS485-BL can support max 16 RS485 devices pre-program in the device for uplink. For other devices no pre-program, user can use the [[downlink message (type code 0xA8) to poll their info>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]]. 1393 1393 1394 1394 1395 1395 == 6.4 Compatible question to ChirpStack and TTI LoRaWAN server ? ==