Last modified by Xiaoling on 2025/04/23 15:57

From version 29.34
edited by Xiaoling
on 2022/06/02 08:59
Change comment: There is no comment for this version
To version 29.41
edited by Xiaoling
on 2022/06/02 09:12
Change comment: There is no comment for this version

Summary

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,6 +593,7 @@
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]]
... ... @@ -608,6 +608,8 @@
608 608  
609 609   ~* For all other bands: max 51 bytes for each uplink  ( so 51 -5 = 46 max valid date).
610 610  
612 +
613 +
611 611  === 3.3.5 Uplink on demand ===
612 612  
613 613  (((
... ... @@ -624,6 +624,8 @@
624 624  
625 625  (((
626 626  **0xA8 command**: Send a command to RS485-BL and uplink the output from sensors.
630 +
631 +
627 627  )))
628 628  
629 629  === 3.3.6 Uplink on Interrupt ===
... ... @@ -632,6 +632,7 @@
632 632  
633 633  [[image:1653273818896-432.png]]
634 634  
640 +
635 635  (((
636 636  AT+INTMOD=0  Disable Interrupt
637 637  )))
... ... @@ -646,6 +646,8 @@
646 646  
647 647  (((
648 648  AT+INTMOD=3  Interrupt trigger by rising edge.
655 +
656 +
649 649  )))
650 650  
651 651  == 3.4 Uplink Payload ==
... ... @@ -673,47 +673,49 @@
673 673  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
674 674  
675 675  (((
676 -function Decoder(bytes, port) {
684 +{{{function Decoder(bytes, port) {}}}
677 677  )))
678 678  
679 679  (((
680 -~/~/Payload Formats of RS485-BL Deceive
688 +{{{//Payload Formats of RS485-BL Deceive}}}
681 681  )))
682 682  
683 683  (((
684 -return {
692 +{{{return {}}}
685 685  )))
686 686  
687 687  (((
688 - ~/~/Battery,units:V
696 +{{{ //Battery,units:V}}}
689 689  )))
690 690  
691 691  (((
692 - BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,
700 +{{{ BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,}}}
693 693  )))
694 694  
695 695  (((
696 - ~/~/GPIO_EXTI 
704 +{{{ //GPIO_EXTI }}}
697 697  )))
698 698  
699 699  (((
700 - EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",
708 +{{{ EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",}}}
701 701  )))
702 702  
703 703  (((
704 - ~/~/payload of version
712 +{{{ //payload of version}}}
705 705  )))
706 706  
707 707  (((
708 - Pay_ver:bytes[2],
716 +{{{ Pay_ver:bytes[2],}}}
709 709  )))
710 710  
711 711  (((
712 - };
720 +{{{ }; }}}
713 713  )))
714 714  
715 715  (((
716 - }
724 +}
725 +
726 +
717 717  )))
718 718  
719 719  (((
... ... @@ -722,29 +722,30 @@
722 722  
723 723  [[image:1653274001211-372.png||height="192" width="732"]]
724 724  
735 +
725 725  == 3.5 Configure RS485-BL via AT or Downlink ==
726 726  
727 -User can configure RS485-BL via [[AT Commands >>path:#_​Using_the_AT]]or LoRaWAN Downlink Commands
738 +User can configure RS485-BL via AT Commands or LoRaWAN Downlink Commands
728 728  
729 729  There are two kinds of Commands:
730 730  
731 -* **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
742 +* (% 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]]
732 732  
733 -* **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:
734 734  
735 -1.
736 -11.
737 -111. Common Commands:
738 738  
739 -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]]
747 +=== 3.5.1 Common Commands: ===
740 740  
749 +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]]
741 741  
742 -1.
743 -11.
744 -111. Sensor related commands:
745 745  
746 -==== Choose Device Type (RS485 or TTL) ====
752 +=== 3.5.2 Sensor related commands: ===
747 747  
754 +(% class="wikigeneratedid" %)
755 +==== ====
756 +
757 +==== **Choose Device Type (RS485 or TTL)** ====
758 +
748 748  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
749 749  
750 750  * AT Command
... ... @@ -1046,13 +1046,13 @@
1046 1046  
1047 1047  
1048 1048  
1049 -1.
1060 +1.
1050 1050  11. Buttons
1051 1051  
1052 1052  |**Button**|**Feature**
1053 1053  |**RST**|Reboot RS485-BL
1054 1054  
1055 -1.
1066 +1.
1056 1056  11. +3V3 Output
1057 1057  
1058 1058  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
... ... @@ -1070,7 +1070,7 @@
1070 1070  By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time
1071 1071  
1072 1072  
1073 -1.
1084 +1.
1074 1074  11. +5V Output
1075 1075  
1076 1076  RS485-BL has a Controllable +5V output, user can use this output to power external sensor.
... ... @@ -1090,13 +1090,13 @@
1090 1090  
1091 1091  
1092 1092  
1093 -1.
1104 +1.
1094 1094  11. LEDs
1095 1095  
1096 1096  |**LEDs**|**Feature**
1097 1097  |**LED1**|Blink when device transmit a packet.
1098 1098  
1099 -1.
1110 +1.
1100 1100  11. Switch Jumper
1101 1101  
1102 1102  |**Switch Jumper**|**Feature**
... ... @@ -1142,7 +1142,7 @@
1142 1142  
1143 1143  
1144 1144  
1145 -1.
1156 +1.
1146 1146  11. Common AT Command Sequence
1147 1147  111. Multi-channel ABP mode (Use with SX1301/LG308)
1148 1148  
... ... @@ -1161,8 +1161,8 @@
1161 1161  
1162 1162  ATZ
1163 1163  
1164 -1.
1165 -11.
1175 +1.
1176 +11.
1166 1166  111. Single-channel ABP mode (Use with LG01/LG02)
1167 1167  
1168 1168  AT+FDR   Reset Parameters to Factory Default, Keys Reserve
... ... @@ -1237,7 +1237,7 @@
1237 1237  [[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]]
1238 1238  
1239 1239  
1240 -1.
1251 +1.
1241 1241  11. How to change the LoRa Frequency Bands/Region?
1242 1242  
1243 1243  User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download.
... ... @@ -1244,7 +1244,7 @@
1244 1244  
1245 1245  
1246 1246  
1247 -1.
1258 +1.
1248 1248  11. How many RS485-Slave can RS485-BL connects?
1249 1249  
1250 1250  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]].
... ... @@ -1261,7 +1261,7 @@
1261 1261  
1262 1262  
1263 1263  
1264 -1.
1275 +1.
1265 1265  11. Why I can’t join TTN V3 in US915 /AU915 bands?
1266 1266  
1267 1267  It might about the channels mapping. Please see for detail.