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

From version 29.39
edited by Xiaoling
on 2022/06/02 09:02
Change comment: There is no comment for this version
To version 29.32
edited by Xiaoling
on 2022/06/02 08:56
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -317,6 +317,7 @@
317 317  )))
318 318  
319 319  
320 +
320 320  === 3.3.2 Configure sensors ===
321 321  
322 322  (((
... ... @@ -464,6 +464,7 @@
464 464  * **c: define the position for valid value.  **
465 465  )))
466 466  
468 +
467 467  **Examples:**
468 468  
469 469  * Grab bytes:
... ... @@ -526,7 +526,7 @@
526 526  )))
527 527  
528 528  (((
529 -(% style="color:#037691" %)**Examples: AT+DATAUP=0**
531 +(% style="color:#4f81bd" %)**Examples: AT+DATAUP=0**
530 530  )))
531 531  
532 532  (((
... ... @@ -538,7 +538,7 @@
538 538  )))
539 539  
540 540  (((
541 -(% style="color:#4f81bd" %)**Battery Info+PAYVER + VALID Value from RETURN1 + Valid Value from RETURN2 + … + RETURNx**
543 +(% style="color:#4f81bd" %)Battery Info+PAYVER + VALID Value from RETURN1 + Valid Value from RETURN2 + … + RETURNx
542 542  )))
543 543  
544 544  (((
... ... @@ -548,9 +548,8 @@
548 548  [[image:1653272787040-634.png||height="515" width="719"]]
549 549  
550 550  
551 -
552 552  (((
553 -(% style="color:#037691" %)**Examples: AT+DATAUP=1**
554 +(% style="color:#4f81bd" %)**Examples: AT+DATAUP=1**
554 554  
555 555  
556 556  )))
... ... @@ -564,7 +564,7 @@
564 564  )))
565 565  
566 566  (((
567 -(% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA**
568 +(% style="color:#4f81bd" %)Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA
568 568  )))
569 569  
570 570  1. (((
... ... @@ -587,7 +587,6 @@
587 587  
588 588  So totally there will be 3 uplinks for this sampling, each uplink includes 6 bytes DATA
589 589  
590 -
591 591  DATA1=RETURN1 Valid Value = (% style="background-color:#4f81bd; color:white" %) 20 20 0a 33 90 41
592 592  
593 593  DATA2=1^^st^^ ~~ 6^^th^^ byte of Valid value of RETURN10= (% style="background-color:#4f81bd; color:white" %)02 aa 05 81 0a 20
... ... @@ -594,12 +594,10 @@
594 594  
595 595  DATA3=7^^th^^ ~~ 11^^th^^ bytes of Valid value of RETURN10 =(% style="background-color:#4f81bd; color:white" %) 20 20 20 2d 30
596 596  
597 -
598 598  Below are the uplink payloads:
599 599  
600 600  [[image:1653272901032-107.png]]
601 601  
602 -
603 603  (% style="color:red" %)Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:
604 604  
605 605   ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink ( so 51 -5 = 46 max valid date)
... ... @@ -610,8 +610,6 @@
610 610  
611 611   ~* For all other bands: max 51 bytes for each uplink  ( so 51 -5 = 46 max valid date).
612 612  
613 -
614 -
615 615  === 3.3.5 Uplink on demand ===
616 616  
617 617  (((
... ... @@ -628,8 +628,6 @@
628 628  
629 629  (((
630 630  **0xA8 command**: Send a command to RS485-BL and uplink the output from sensors.
631 -
632 -
633 633  )))
634 634  
635 635  === 3.3.6 Uplink on Interrupt ===
... ... @@ -638,7 +638,6 @@
638 638  
639 639  [[image:1653273818896-432.png]]
640 640  
641 -
642 642  (((
643 643  AT+INTMOD=0  Disable Interrupt
644 644  )))
... ... @@ -653,8 +653,6 @@
653 653  
654 654  (((
655 655  AT+INTMOD=3  Interrupt trigger by rising edge.
656 -
657 -
658 658  )))
659 659  
660 660  == 3.4 Uplink Payload ==
... ... @@ -682,49 +682,47 @@
682 682  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
683 683  
684 684  (((
685 -{{{function Decoder(bytes, port) {}}}
676 +function Decoder(bytes, port) {
686 686  )))
687 687  
688 688  (((
689 -{{{//Payload Formats of RS485-BL Deceive}}}
680 +~/~/Payload Formats of RS485-BL Deceive
690 690  )))
691 691  
692 692  (((
693 -{{{return {}}}
684 +return {
694 694  )))
695 695  
696 696  (((
697 -{{{ //Battery,units:V}}}
688 + ~/~/Battery,units:V
698 698  )))
699 699  
700 700  (((
701 -{{{ BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,}}}
692 + BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,
702 702  )))
703 703  
704 704  (((
705 -{{{ //GPIO_EXTI }}}
696 + ~/~/GPIO_EXTI 
706 706  )))
707 707  
708 708  (((
709 -{{{ EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",}}}
700 + EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",
710 710  )))
711 711  
712 712  (((
713 -{{{ //payload of version}}}
704 + ~/~/payload of version
714 714  )))
715 715  
716 716  (((
717 -{{{ Pay_ver:bytes[2],}}}
708 + Pay_ver:bytes[2],
718 718  )))
719 719  
720 720  (((
721 -{{{ }; }}}
712 + };
722 722  )))
723 723  
724 724  (((
725 -{{{ }}}}
726 -
727 -
716 + }
728 728  )))
729 729  
730 730  (((
... ... @@ -733,7 +733,6 @@
733 733  
734 734  [[image:1653274001211-372.png||height="192" width="732"]]
735 735  
736 -
737 737  == 3.5 Configure RS485-BL via AT or Downlink ==
738 738  
739 739  User can configure RS485-BL via [[AT Commands >>path:#_​Using_the_AT]]or LoRaWAN Downlink Commands
... ... @@ -744,15 +744,15 @@
744 744  
745 745  * **Sensor Related Commands**: These commands are special designed for RS485-BL.  User can see these commands below:
746 746  
747 -1.
748 -11.
735 +1.
736 +11.
749 749  111. Common Commands:
750 750  
751 751  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]]
752 752  
753 753  
754 -1.
755 -11.
742 +1.
743 +11.
756 756  111. Sensor related commands:
757 757  
758 758  ==== Choose Device Type (RS485 or TTL) ====
... ... @@ -1058,13 +1058,13 @@
1058 1058  
1059 1059  
1060 1060  
1061 -1.
1049 +1.
1062 1062  11. Buttons
1063 1063  
1064 1064  |**Button**|**Feature**
1065 1065  |**RST**|Reboot RS485-BL
1066 1066  
1067 -1.
1055 +1.
1068 1068  11. +3V3 Output
1069 1069  
1070 1070  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
... ... @@ -1082,7 +1082,7 @@
1082 1082  By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time
1083 1083  
1084 1084  
1085 -1.
1073 +1.
1086 1086  11. +5V Output
1087 1087  
1088 1088  RS485-BL has a Controllable +5V output, user can use this output to power external sensor.
... ... @@ -1102,13 +1102,13 @@
1102 1102  
1103 1103  
1104 1104  
1105 -1.
1093 +1.
1106 1106  11. LEDs
1107 1107  
1108 1108  |**LEDs**|**Feature**
1109 1109  |**LED1**|Blink when device transmit a packet.
1110 1110  
1111 -1.
1099 +1.
1112 1112  11. Switch Jumper
1113 1113  
1114 1114  |**Switch Jumper**|**Feature**
... ... @@ -1154,7 +1154,7 @@
1154 1154  
1155 1155  
1156 1156  
1157 -1.
1145 +1.
1158 1158  11. Common AT Command Sequence
1159 1159  111. Multi-channel ABP mode (Use with SX1301/LG308)
1160 1160  
... ... @@ -1173,8 +1173,8 @@
1173 1173  
1174 1174  ATZ
1175 1175  
1176 -1.
1177 -11.
1164 +1.
1165 +11.
1178 1178  111. Single-channel ABP mode (Use with LG01/LG02)
1179 1179  
1180 1180  AT+FDR   Reset Parameters to Factory Default, Keys Reserve
... ... @@ -1249,7 +1249,7 @@
1249 1249  [[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]]
1250 1250  
1251 1251  
1252 -1.
1240 +1.
1253 1253  11. How to change the LoRa Frequency Bands/Region?
1254 1254  
1255 1255  User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download.
... ... @@ -1256,7 +1256,7 @@
1256 1256  
1257 1257  
1258 1258  
1259 -1.
1247 +1.
1260 1260  11. How many RS485-Slave can RS485-BL connects?
1261 1261  
1262 1262  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]].
... ... @@ -1273,7 +1273,7 @@
1273 1273  
1274 1274  
1275 1275  
1276 -1.
1264 +1.
1277 1277  11. Why I can’t join TTN V3 in US915 /AU915 bands?
1278 1278  
1279 1279  It might about the channels mapping. Please see for detail.