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, 0 added, 2 removed)
Details
- Page properties
-
- Content
-
... ... @@ -451,63 +451,104 @@ 451 451 452 452 === 3.3.5 Uplink on demand === 453 453 454 -Except uplink periodically, RS485-L Nis able to uplink on demand. The server send downlink command to RS485-LNand RS485 will uplink data base on the command.454 +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. 455 455 456 456 Downlink control command: 457 457 458 -**0x08 command**: Poll an uplink with current command set in RS485-L N.458 +**0x08 command**: Poll an uplink with current command set in RS485-BL. 459 459 460 -**0xA8 command**: Send a command to RS485-L Nand uplink the output from sensors.460 +**0xA8 command**: Send a command to RS485-BL and uplink the output from sensors. 461 461 462 462 463 463 464 -=== 3.3.6 Uplink on Interrupt === 464 +1. 465 +11. 466 +111. Uplink on Interrupt 465 465 466 - RS485-LN supportexternalInterruptuplinksincehardwarev1.2release.468 +Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] 467 467 468 - [[image:1654157342174-798.png]]470 +AT+INTMOD=0 Disable Interrupt 469 469 470 - ConnecttheInterruptpinto RS485-LN INT port and connect the GND pin to V- port.Whenthereisa highvoltage(Max 24v) on INT pin. Device willsend an uplinkpacket.472 +AT+INTMOD=1 Interrupt trigger by rising or falling edge. 471 471 474 +AT+INTMOD=2 Interrupt trigger by falling edge. ( Default Value) 472 472 473 -= =3.4UplinkPayload==476 +AT+INTMOD=3 Interrupt trigger by rising edge. 474 474 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" %)((( 478 + 479 +1. 480 +11. Uplink Payload 481 + 482 +|**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands** 483 +|Value|((( 478 478 Battery(mV) 479 479 480 480 & 481 481 482 482 Interrupt _Flag 483 -)))|( % style="width:116px" %)(((489 +)))|((( 484 484 PAYLOAD_VER 485 485 486 486 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.493 +)))|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. 488 488 489 489 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 490 490 491 491 492 - == 3.5 Configure RS485-BL viaATorDownlink==498 +function Decoder(bytes, port) { 493 493 494 - UsercanconfigureRS485-LNvia AT Commands or LoRaWANDownlink Commands500 +~/~/Payload Formats of RS485-BL Deceive 495 495 496 - Therearetwo kindsof Commands:502 +return { 497 497 498 - *(%style="color:#4f81bd"%)**CommonCommands**(%%): They should be available for each sensor, such as: change uplink interval, resetdevice. Forfirmware v1.3,ser canfind whatcommon commandsit supports:[[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]504 + ~/~/Battery,units:V 499 499 500 - *(%style="color:#4f81bd"%)**SensorRelated Commands**(%%):These commands are special designed for RS485-LN.Usercan seethese commands below:506 + BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000, 501 501 508 + ~/~/GPIO_EXTI 502 502 510 + EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE", 503 503 504 - ===3.5.1CommonCommands===512 + ~/~/payload of version 505 505 506 - Theyshouldbeavailableforeach 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]]514 + Pay_ver:bytes[2], 507 507 516 + }; 508 508 509 - ===3.5.2Sensor related commands: ===518 + } 510 510 520 + 521 + 522 + 523 + 524 + 525 + 526 +TTN V3 uplink screen shot. 527 + 528 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]] 529 + 530 +1. 531 +11. Configure RS485-BL via AT or Downlink 532 + 533 +User can configure RS485-BL via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands 534 + 535 +There are two kinds of Commands: 536 + 537 +* **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 538 + 539 +* **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 540 + 541 +1. 542 +11. 543 +111. Common Commands: 544 + 545 +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]] 546 + 547 + 548 +1. 549 +11. 550 +111. Sensor related commands: 551 + 511 511 ==== Choose Device Type (RS485 or TTL) ==== 512 512 513 513 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. ... ... @@ -811,13 +811,13 @@ 811 811 812 812 813 813 814 -1. 855 +1. 815 815 11. Buttons 816 816 817 817 |**Button**|**Feature** 818 818 |**RST**|Reboot RS485-BL 819 819 820 -1. 861 +1. 821 821 11. +3V3 Output 822 822 823 823 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. ... ... @@ -835,7 +835,7 @@ 835 835 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 836 836 837 837 838 -1. 879 +1. 839 839 11. +5V Output 840 840 841 841 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. ... ... @@ -855,13 +855,13 @@ 855 855 856 856 857 857 858 -1. 899 +1. 859 859 11. LEDs 860 860 861 861 |**LEDs**|**Feature** 862 862 |**LED1**|Blink when device transmit a packet. 863 863 864 -1. 905 +1. 865 865 11. Switch Jumper 866 866 867 867 |**Switch Jumper**|**Feature** ... ... @@ -907,7 +907,7 @@ 907 907 908 908 909 909 910 -1. 951 +1. 911 911 11. Common AT Command Sequence 912 912 111. Multi-channel ABP mode (Use with SX1301/LG308) 913 913 ... ... @@ -926,8 +926,8 @@ 926 926 927 927 ATZ 928 928 929 -1. 930 -11. 970 +1. 971 +11. 931 931 111. Single-channel ABP mode (Use with LG01/LG02) 932 932 933 933 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1002,7 +1002,7 @@ 1002 1002 [[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]] 1003 1003 1004 1004 1005 -1. 1046 +1. 1006 1006 11. How to change the LoRa Frequency Bands/Region? 1007 1007 1008 1008 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1009,7 +1009,7 @@ 1009 1009 1010 1010 1011 1011 1012 -1. 1053 +1. 1013 1013 11. How many RS485-Slave can RS485-BL connects? 1014 1014 1015 1015 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]]. ... ... @@ -1026,7 +1026,7 @@ 1026 1026 1027 1027 1028 1028 1029 -1. 1070 +1. 1030 1030 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1031 1031 1032 1032 It might about the channels mapping. Please see for detail.
- 1654157342174-798.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -31.9 KB - Content
- 1654158783574-851.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -40.6 KB - Content