Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Karry Zhuang on 2025/03/06 16:34
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 2 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -RS485-L N– RS485 to LoRaWAN Converter1 +RS485-BL – Waterproof RS485 to LoRaWAN Converter - Content
-
... ... @@ -1,11 +1,12 @@ 1 1 (% style="text-align:center" %) 2 -[[image:165 3266934636-343.png||height="385" width="385"]]2 +[[image:1652947681187-144.png||height="385" width="385"]] 3 3 4 4 5 5 6 -**RS485-LN – RS485 to LoRaWAN Converter User Manual** 7 7 7 +**RS485-BL – Waterproof RS485 to LoRaWAN Converter User Manual** 8 8 9 + 9 9 **Table of Contents:** 10 10 11 11 ... ... @@ -59,7 +59,7 @@ 59 59 * Power Consumption (exclude RS485 device): 60 60 ** Idle: 6uA@3.3v 61 61 62 -* 63 +* 63 63 ** 20dB Transmit: 130mA@3.3v 64 64 65 65 **Interface for Model:** ... ... @@ -302,101 +302,87 @@ 302 302 ))) 303 303 ))) 304 304 305 -=== 3.3.2 Configure sensors === 306 306 307 -((( 308 -Some sensors might need to configure before normal operation. User can configure such sensor via PC or through RS485-BL AT Commands (% style="color:#4f81bd" %)**AT+CFGDEV**. 309 -))) 310 310 311 -((( 312 -When user issue an (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) command, Each (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) equals to send a command to the RS485 or TTL sensors. This command will only run when user input it and won’t run during each sampling. 313 -))) 314 314 315 -(% border="1" style="background-color:#ffffcc; color:green; width:806px" %) 316 -|**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example** 317 -|AT+CFGDEV|(% style="width:418px" %)((( 309 +1. 310 +11. 311 +111. Configure sensors 312 + 313 +Some sensors might need to configure before normal operation. User can configure such sensor via PC or through RS485-BL AT Commands AT+CFGDEV. 314 + 315 + 316 +When user issue an AT+CFGDEV command, Each AT+CFGDEV equals to send a command to the RS485 or TTL sensors. This command will only run when user input it and won’t run during each sampling. 317 + 318 +|**AT Commands**|**Description**|**Example** 319 +|AT+CFGDEV|((( 318 318 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 319 319 320 -AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx, 322 +AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 321 321 322 -m m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command323 -)))| (% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m324 +m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 325 +)))|AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 324 324 325 325 Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>path:#AT_CFGDEV]]. 326 326 327 -=== 3.3.3 Configure read commands for each sampling === 328 328 329 -((( 330 + 331 + 332 + 333 +1. 334 +11. 335 +111. Configure read commands for each sampling 336 + 330 330 RS485-BL is a battery powered device; it will sleep most of time. And wake up on each period and read RS485 / TTL sensor data and uplink. 331 -))) 332 332 333 - (((339 + 334 334 During each sampling, we need to confirm what commands we need to send to the sensors to read data. After the RS485/TTL sensors send back the value, it normally includes some bytes and we only need a few from them for a shorten payload. 335 -))) 336 336 337 - (((342 + 338 338 To save the LoRaWAN network bandwidth, we might need to read data from different sensors and combine their valid value into a short payload. 339 -))) 340 340 341 - (((345 + 342 342 This section describes how to achieve above goals. 343 -))) 344 344 345 - (((348 + 346 346 During each sampling, the RS485-BL can support 15 commands to read sensors. And combine the return to one or several uplink payloads. 347 -))) 348 348 349 - (((351 + 350 350 **Command from RS485-BL to Sensor:** 351 -))) 352 352 353 -((( 354 354 RS485-BL can send out pre-set max 15 strings via **AT+COMMAD1**, **ATCOMMAND2**,…, to **AT+COMMANDF** . All commands are of same grammar. 355 -))) 356 356 357 - (((356 + 358 358 **Handle return from sensors to RS485-BL**: 359 -))) 360 360 361 -((( 362 362 After RS485-BL send out a string to sensor, RS485-BL will wait for the return from RS485 or TTL sensor. And user can specify how to handle the return, by **AT+DATACUT or AT+SEARCH commands** 363 -))) 364 364 365 -* ((( 366 -**AT+DATACUT** 367 -))) 368 368 369 -((( 362 +* **AT+DATACUT** 363 + 370 370 When the return value from sensor have fix length and we know which position the valid value we should get, we can use AT+DATACUT command. 371 -))) 372 372 373 -* ((( 374 -**AT+SEARCH** 375 -))) 376 376 377 -((( 367 +* **AT+SEARCH** 368 + 378 378 When the return value from sensor is dynamic length and we are not sure which bytes the valid data is, instead, we know what value the valid value following. We can use AT+SEARCH to search the valid value in the return string. 379 -))) 380 380 381 - (((371 + 382 382 **Define wait timeout:** 383 -))) 384 384 385 -((( 386 386 Some RS485 device might has longer delay on reply, so user can use AT+CMDDL to set the timeout for getting reply after the RS485 command is sent. For example, AT+CMDDL1=1000 to send the open time to 1000ms 387 -))) 388 388 389 - (((376 + 390 390 After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**. 391 -))) 392 392 379 + 393 393 **Examples:** 394 394 395 395 Below are examples for the how above AT Commands works. 396 396 384 + 397 397 **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is: 398 398 399 -(% border="1" class="table-bordered" %) 400 400 |((( 401 401 **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 402 402 ... ... @@ -409,9 +409,9 @@ 409 409 410 410 In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same. 411 411 399 + 412 412 **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx. 413 413 414 -(% border="1" class="table-bordered" %) 415 415 |((( 416 416 **AT+SEARCHx=aa,xx xx xx xx xx** 417 417 ... ... @@ -429,7 +429,7 @@ 429 429 430 430 The valid data will be all bytes after 1E 56 34 , so it is 2e 30 58 5f 36 41 30 31 00 49 431 431 432 -[[image: 1652954654347-831.png]]419 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image013.png]] 433 433 434 434 435 435 1. For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49 ... ... @@ -490,7 +490,7 @@ 490 490 491 491 492 492 1. 493 -11. 480 +11. 494 494 111. Compose the uplink payload 495 495 496 496 Through AT+COMMANDx and AT+DATACUTx we got valid value from each RS485 commands, Assume these valid value are RETURN1, RETURN2, .., to RETURNx. The next step is how to compose the LoRa Uplink Payload by these RETURNs. The command is **AT+DATAUP.** ... ... @@ -554,8 +554,8 @@ 554 554 555 555 556 556 557 -1. 558 -11. 544 +1. 545 +11. 559 559 111. Uplink on demand 560 560 561 561 Except uplink periodically, RS485-BL is able to uplink on demand. The server sends downlink command to RS485-BL and RS485 will uplink data base on the command. ... ... @@ -568,8 +568,8 @@ 568 568 569 569 570 570 571 -1. 572 -11. 558 +1. 559 +11. 573 573 111. Uplink on Interrupt 574 574 575 575 Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] ... ... @@ -583,7 +583,7 @@ 583 583 AT+INTMOD=3 Interrupt trigger by rising edge. 584 584 585 585 586 -1. 573 +1. 587 587 11. Uplink Payload 588 588 589 589 |**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** ... ... @@ -645,15 +645,15 @@ 645 645 646 646 * **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 647 647 648 -1. 649 -11. 635 +1. 636 +11. 650 650 111. Common Commands: 651 651 652 652 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[http:~~/~~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands>>url:http://wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands]] 653 653 654 654 655 -1. 656 -11. 642 +1. 643 +11. 657 657 111. Sensor related commands: 658 658 659 659 ==== Choose Device Type (RS485 or TTL) ==== ... ... @@ -959,13 +959,13 @@ 959 959 960 960 961 961 962 -1. 949 +1. 963 963 11. Buttons 964 964 965 965 |**Button**|**Feature** 966 966 |**RST**|Reboot RS485-BL 967 967 968 -1. 955 +1. 969 969 11. +3V3 Output 970 970 971 971 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. ... ... @@ -983,7 +983,7 @@ 983 983 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 984 984 985 985 986 -1. 973 +1. 987 987 11. +5V Output 988 988 989 989 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. ... ... @@ -1003,13 +1003,13 @@ 1003 1003 1004 1004 1005 1005 1006 -1. 993 +1. 1007 1007 11. LEDs 1008 1008 1009 1009 |**LEDs**|**Feature** 1010 1010 |**LED1**|Blink when device transmit a packet. 1011 1011 1012 -1. 999 +1. 1013 1013 11. Switch Jumper 1014 1014 1015 1015 |**Switch Jumper**|**Feature** ... ... @@ -1055,7 +1055,7 @@ 1055 1055 1056 1056 1057 1057 1058 -1. 1045 +1. 1059 1059 11. Common AT Command Sequence 1060 1060 111. Multi-channel ABP mode (Use with SX1301/LG308) 1061 1061 ... ... @@ -1074,8 +1074,8 @@ 1074 1074 1075 1075 ATZ 1076 1076 1077 -1. 1078 -11. 1064 +1. 1065 +11. 1079 1079 111. Single-channel ABP mode (Use with LG01/LG02) 1080 1080 1081 1081 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1150,7 +1150,7 @@ 1150 1150 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image035.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.png]] 1151 1151 1152 1152 1153 -1. 1140 +1. 1154 1154 11. How to change the LoRa Frequency Bands/Region? 1155 1155 1156 1156 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1157,7 +1157,7 @@ 1157 1157 1158 1158 1159 1159 1160 -1. 1147 +1. 1161 1161 11. How many RS485-Slave can RS485-BL connects? 1162 1162 1163 1163 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>>path:#downlink_A8]]. ... ... @@ -1174,7 +1174,7 @@ 1174 1174 1175 1175 1176 1176 1177 -1. 1164 +1. 1178 1178 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1179 1179 1180 1180 It might about the channels mapping. Please see for detail.
- 1652954654347-831.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -138.7 KB - Content
- 1653266934636-343.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -176.5 KB - Content