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 (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 4 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -446,119 +446,68 @@ 446 446 447 447 Below are the uplink payloads: 448 448 449 -[[image:165 3270130359-810.png]]449 +[[image:1654157178836-407.png]] 450 450 451 451 452 -(% style="color:red" %)**Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:** 453 - 454 - ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink ( so 51 -5 = 46 max valid date) 455 - 456 - * For AU915/AS923 bands, if UplinkDwell time=1, max 11 bytes for each uplink ( so 11 -5 = 6 max valid date). 457 - 458 - * For US915 band, max 11 bytes for each uplink ( so 11 -5 = 6 max valid date). 459 - 460 - ~* For all other bands: max 51 bytes for each uplink ( so 51 -5 = 46 max valid date). 461 - 462 462 === 3.3.5 Uplink on demand === 463 463 464 -Except uplink periodically, RS485- BL is able to uplink on demand. The server sendsdownlink command to RS485-BL and RS485 will uplink data base on the command.454 +Except uplink periodically, RS485-LN is able to uplink on demand. The server send downlink command to RS485-LN and RS485 will uplink data base on the command. 465 465 466 466 Downlink control command: 467 467 468 - [[0x08 command>>path:#downlink_08]]:Poll an uplink with current command set in RS485-BL.458 +**0x08 command**: Poll an uplink with current command set in RS485-LN. 469 469 470 - [[0xA8 command>>path:#downlink_A8]]:Send a command to RS485-BL and uplink the output from sensors.460 +**0xA8 command**: Send a command to RS485-LN and uplink the output from sensors. 471 471 472 472 473 473 474 -1. 475 -11. 476 -111. Uplink on Interrupt 464 +=== 3.3.6 Uplink on Interrupt === 477 477 478 - Put theinterruptsensorbetween3.3v_outand GPIOext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]]466 +RS485-LN support external Interrupt uplink since hardware v1.2 release. 479 479 480 - AT+INTMOD=0 DisableInterrupt468 +[[image:1654157342174-798.png]] 481 481 482 - AT+INTMOD=1Interrupt triggerbyrising orfallingedge.470 +Connect the Interrupt pin to RS485-LN INT port and connect the GND pin to V- port. When there is a high voltage (Max 24v) on INT pin. Device will send an uplink packet. 483 483 484 -AT+INTMOD=2 Interrupt trigger by falling edge. ( Default Value) 485 485 486 - AT+INTMOD=3Interrupt trigger by risingedge.473 +== 3.4 Uplink Payload == 487 487 488 - 489 -1. 490 -11. Uplink Payload 491 - 492 -|**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** 493 -|Value|((( 475 +(% border="1" style="background-color:#4bacc6; color:white; width:734px" %) 476 +|**Size(bytes)**|(% style="width:120px" %)**2**|(% style="width:116px" %)**1**|(% style="width:386px" %)**Length depends on the return from the commands** 477 +|Value|(% style="width:120px" %)((( 494 494 Battery(mV) 495 495 496 496 & 497 497 498 498 Interrupt _Flag 499 -)))|((( 483 +)))|(% style="width:116px" %)((( 500 500 PAYLOAD_VER 501 501 502 502 503 -)))|If the valid payload is too long and exceed the maximum support payload length in server, server will show payload not provided in the LoRaWAN server. 487 +)))|(% style="width:386px" %)If the valid payload is too long and exceed the maximum support payload length in server, server will show payload not provided in the LoRaWAN server. 504 504 505 505 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 506 506 507 507 508 -fu nctionDecoder(bytes,port){492 +== 3.5 Configure RS485-BL via AT or Downlink == 509 509 510 - ~/~/Payload Formatsof RS485-BL Deceive494 +User can configure RS485-LN via AT Commands or LoRaWAN Downlink Commands 511 511 512 -re turn{496 +There are two kinds of Commands: 513 513 514 - ~/~/Battery,units:V498 +* (% style="color:#4f81bd" %)**Common Commands**(%%): They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] 515 515 516 - BatV:((bytes[0]<<8|bytes[1])&0x7fff)/1000,500 +* (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-LN. User can see these commands below: 517 517 518 - ~/~/GPIO_EXTI 519 519 520 - EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE", 521 521 522 - ~/~/payloadofversion504 +=== 3.5.1 Common Commands === 523 523 524 - Pay_ver:bytes[2],506 +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: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] 525 525 526 - }; 527 527 528 - }509 +=== 3.5.2 Sensor related commands: === 529 529 530 - 531 - 532 - 533 - 534 - 535 - 536 -TTN V3 uplink screen shot. 537 - 538 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]] 539 - 540 -1. 541 -11. Configure RS485-BL via AT or Downlink 542 - 543 -User can configure RS485-BL via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands 544 - 545 -There are two kinds of Commands: 546 - 547 -* **Common Commands**: They should be available for each sensor, 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 548 - 549 -* **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 550 - 551 -1. 552 -11. 553 -111. Common Commands: 554 - 555 -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]] 556 - 557 - 558 -1. 559 -11. 560 -111. Sensor related commands: 561 - 562 562 ==== Choose Device Type (RS485 or TTL) ==== 563 563 564 564 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. ... ... @@ -862,13 +862,13 @@ 862 862 863 863 864 864 865 -1. 814 +1. 866 866 11. Buttons 867 867 868 868 |**Button**|**Feature** 869 869 |**RST**|Reboot RS485-BL 870 870 871 -1. 820 +1. 872 872 11. +3V3 Output 873 873 874 874 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. ... ... @@ -886,7 +886,7 @@ 886 886 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 887 887 888 888 889 -1. 838 +1. 890 890 11. +5V Output 891 891 892 892 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. ... ... @@ -906,13 +906,13 @@ 906 906 907 907 908 908 909 -1. 858 +1. 910 910 11. LEDs 911 911 912 912 |**LEDs**|**Feature** 913 913 |**LED1**|Blink when device transmit a packet. 914 914 915 -1. 864 +1. 916 916 11. Switch Jumper 917 917 918 918 |**Switch Jumper**|**Feature** ... ... @@ -958,7 +958,7 @@ 958 958 959 959 960 960 961 -1. 910 +1. 962 962 11. Common AT Command Sequence 963 963 111. Multi-channel ABP mode (Use with SX1301/LG308) 964 964 ... ... @@ -977,8 +977,8 @@ 977 977 978 978 ATZ 979 979 980 -1. 981 -11. 929 +1. 930 +11. 982 982 111. Single-channel ABP mode (Use with LG01/LG02) 983 983 984 984 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1053,7 +1053,7 @@ 1053 1053 [[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]] 1054 1054 1055 1055 1056 -1. 1005 +1. 1057 1057 11. How to change the LoRa Frequency Bands/Region? 1058 1058 1059 1059 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1060,7 +1060,7 @@ 1060 1060 1061 1061 1062 1062 1063 -1. 1012 +1. 1064 1064 11. How many RS485-Slave can RS485-BL connects? 1065 1065 1066 1066 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]]. ... ... @@ -1077,7 +1077,7 @@ 1077 1077 1078 1078 1079 1079 1080 -1. 1029 +1. 1081 1081 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1082 1082 1083 1083 It might about the channels mapping. Please see for detail.
- 1654157178836-407.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +179.9 KB - Content
- 1654157342174-798.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +31.9 KB - Content
- 1654158783574-851.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +40.6 KB - Content
- image-20220602163333-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +48.2 KB - Content