Changes for page RS485-BL – Waterproof RS485 to LoRaWAN Converter
Last modified by Xiaoling on 2025/04/23 15:57
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -316,7 +316,6 @@ 316 316 ))) 317 317 ))) 318 318 319 - 320 320 === 3.3.2 Configure sensors === 321 321 322 322 ((( ... ... @@ -587,6 +587,7 @@ 587 587 588 588 So totally there will be 3 uplinks for this sampling, each uplink includes 6 bytes DATA 589 589 589 + 590 590 DATA1=RETURN1 Valid Value = (% style="background-color:#4f81bd; color:white" %) 20 20 0a 33 90 41 591 591 592 592 DATA2=1^^st^^ ~~ 6^^th^^ byte of Valid value of RETURN10= (% style="background-color:#4f81bd; color:white" %)02 aa 05 81 0a 20 ... ... @@ -593,10 +593,12 @@ 593 593 594 594 DATA3=7^^th^^ ~~ 11^^th^^ bytes of Valid value of RETURN10 =(% style="background-color:#4f81bd; color:white" %) 20 20 20 2d 30 595 595 596 + 596 596 Below are the uplink payloads: 597 597 598 598 [[image:1653272901032-107.png]] 599 599 601 + 600 600 (% style="color:red" %)Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below: 601 601 602 602 ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink ( so 51 -5 = 46 max valid date) ... ... @@ -607,6 +607,8 @@ 607 607 608 608 ~* For all other bands: max 51 bytes for each uplink ( so 51 -5 = 46 max valid date). 609 609 612 + 613 + 610 610 === 3.3.5 Uplink on demand === 611 611 612 612 ((( ... ... @@ -623,6 +623,8 @@ 623 623 624 624 ((( 625 625 **0xA8 command**: Send a command to RS485-BL and uplink the output from sensors. 630 + 631 + 626 626 ))) 627 627 628 628 === 3.3.6 Uplink on Interrupt === ... ... @@ -631,6 +631,7 @@ 631 631 632 632 [[image:1653273818896-432.png]] 633 633 640 + 634 634 ((( 635 635 AT+INTMOD=0 Disable Interrupt 636 636 ))) ... ... @@ -645,6 +645,8 @@ 645 645 646 646 ((( 647 647 AT+INTMOD=3 Interrupt trigger by rising edge. 655 + 656 + 648 648 ))) 649 649 650 650 == 3.4 Uplink Payload == ... ... @@ -672,47 +672,49 @@ 672 672 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 673 673 674 674 ((( 675 -function Decoder(bytes, port) { 684 +{{{function Decoder(bytes, port) {}}} 676 676 ))) 677 677 678 678 ((( 679 - ~/~/Payload Formats of RS485-BL Deceive688 +{{{//Payload Formats of RS485-BL Deceive}}} 680 680 ))) 681 681 682 682 ((( 683 -return { 692 +{{{return {}}} 684 684 ))) 685 685 686 686 ((( 687 - ~/~/Battery,units:V696 +{{{ //Battery,units:V}}} 688 688 ))) 689 689 690 690 ((( 691 - BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000, 700 +{{{ BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,}}} 692 692 ))) 693 693 694 694 ((( 695 - ~/~/GPIO_EXTI704 +{{{ //GPIO_EXTI }}} 696 696 ))) 697 697 698 698 ((( 699 - EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE", 708 +{{{ EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",}}} 700 700 ))) 701 701 702 702 ((( 703 - ~/~/payload of version712 +{{{ //payload of version}}} 704 704 ))) 705 705 706 706 ((( 707 - Pay_ver:bytes[2], 716 +{{{ Pay_ver:bytes[2],}}} 708 708 ))) 709 709 710 710 ((( 711 - }; 720 +{{{ }; }}} 712 712 ))) 713 713 714 714 ((( 715 - } 724 +} 725 + 726 + 716 716 ))) 717 717 718 718 ((( ... ... @@ -721,27 +721,26 @@ 721 721 722 722 [[image:1653274001211-372.png||height="192" width="732"]] 723 723 735 + 724 724 == 3.5 Configure RS485-BL via AT or Downlink == 725 725 726 -User can configure RS485-BL via [[AT Commands>>path:#_Using_the_AT]]or LoRaWAN Downlink Commands738 +User can configure RS485-BL via AT Commands or LoRaWAN Downlink Commands 727 727 728 728 There are two kinds of Commands: 729 729 730 -* **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_Commands742 +* (% 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]] 731 731 732 -* **Sensor Related Commands**: These commands are special designed for RS485-BL. User can see these commands below: 744 +* (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-BL. User can see these commands below: 733 733 734 -1. 735 -11. 736 -111. Common Commands: 737 737 738 -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]] 739 739 748 +=== 3.5.1 Common Commands: === 740 740 741 -1. 742 -11. 743 -111. Sensor related commands: 750 +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]] 744 744 752 + 753 +=== 3.5.2 Sensor related commands: === 754 + 745 745 ==== Choose Device Type (RS485 or TTL) ==== 746 746 747 747 RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect. ... ... @@ -1045,13 +1045,13 @@ 1045 1045 1046 1046 1047 1047 1048 -1. 1058 +1. 1049 1049 11. Buttons 1050 1050 1051 1051 |**Button**|**Feature** 1052 1052 |**RST**|Reboot RS485-BL 1053 1053 1054 -1. 1064 +1. 1055 1055 11. +3V3 Output 1056 1056 1057 1057 RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor. ... ... @@ -1069,7 +1069,7 @@ 1069 1069 By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time 1070 1070 1071 1071 1072 -1. 1082 +1. 1073 1073 11. +5V Output 1074 1074 1075 1075 RS485-BL has a Controllable +5V output, user can use this output to power external sensor. ... ... @@ -1089,13 +1089,13 @@ 1089 1089 1090 1090 1091 1091 1092 -1. 1102 +1. 1093 1093 11. LEDs 1094 1094 1095 1095 |**LEDs**|**Feature** 1096 1096 |**LED1**|Blink when device transmit a packet. 1097 1097 1098 -1. 1108 +1. 1099 1099 11. Switch Jumper 1100 1100 1101 1101 |**Switch Jumper**|**Feature** ... ... @@ -1141,7 +1141,7 @@ 1141 1141 1142 1142 1143 1143 1144 -1. 1154 +1. 1145 1145 11. Common AT Command Sequence 1146 1146 111. Multi-channel ABP mode (Use with SX1301/LG308) 1147 1147 ... ... @@ -1160,8 +1160,8 @@ 1160 1160 1161 1161 ATZ 1162 1162 1163 -1. 1164 -11. 1173 +1. 1174 +11. 1165 1165 111. Single-channel ABP mode (Use with LG01/LG02) 1166 1166 1167 1167 AT+FDR Reset Parameters to Factory Default, Keys Reserve ... ... @@ -1236,7 +1236,7 @@ 1236 1236 [[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]] 1237 1237 1238 1238 1239 -1. 1249 +1. 1240 1240 11. How to change the LoRa Frequency Bands/Region? 1241 1241 1242 1242 User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. ... ... @@ -1243,7 +1243,7 @@ 1243 1243 1244 1244 1245 1245 1246 -1. 1256 +1. 1247 1247 11. How many RS485-Slave can RS485-BL connects? 1248 1248 1249 1249 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]]. ... ... @@ -1260,7 +1260,7 @@ 1260 1260 1261 1261 1262 1262 1263 -1. 1273 +1. 1264 1264 11. Why I can’t join TTN V3 in US915 /AU915 bands? 1265 1265 1266 1266 It might about the channels mapping. Please see for detail.