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

From version 41.4
edited by Xiaoling
on 2022/06/06 10:54
Change comment: There is no comment for this version
To version 32.5
edited by Xiaoling
on 2022/06/02 09:41
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -124,47 +124,29 @@
124 124  (((
125 125  
126 126  
127 -(((
128 128  v1.4
129 129  )))
130 -)))
131 131  
132 132  (((
133 -(((
134 134  ~1. Change Power IC to TPS22916
135 135  )))
136 -)))
137 137  
138 -(((
139 -
140 -)))
141 141  
142 142  (((
143 -(((
144 144  v1.3
145 145  )))
146 -)))
147 147  
148 148  (((
149 -(((
150 150  ~1. Change JP3 from KF350-8P to KF350-11P, Add one extra interface for I2C and one extra interface for one-wire
151 151  )))
152 -)))
153 153  
154 -(((
155 -
156 -)))
157 157  
158 158  (((
159 -(((
160 160  v1.2
161 161  )))
162 -)))
163 163  
164 164  (((
165 -(((
166 166  Release version ​​​​​
167 -)))
168 168  
169 169  
170 170  )))
... ... @@ -258,132 +258,82 @@
258 258  
259 259  === 3.3.1 onfigure UART settings for RS485 or TTL communication ===
260 260  
261 -(((
262 262  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
263 -)))
264 264  
265 -(((
266 266  **~1. RS485-MODBUS mode:**
267 -)))
268 268  
269 -(((
270 270  AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins.
271 -)))
272 272  
273 -(((
274 274  **2. TTL mode:**
275 -)))
276 276  
277 -(((
278 278  AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins.
279 -)))
280 280  
281 -(((
282 282  RS485-BL default UART settings is **9600, no parity, stop bit 1**. If the sensor has a different settings, user can change the RS485-BL setting to match.
283 -)))
284 284  
285 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
286 -|=(% style="width: 120px;" %)(((
287 -(((
255 +(% border="1" style="background-color:#ffffcc; color:green; width:795px" %)
256 +|(((
288 288  **AT Commands**
289 -)))
290 -)))|=(% style="width: 190px;" %)(((
291 -(((
258 +)))|(% style="width:285px" %)(((
292 292  **Description**
293 -)))
294 -)))|=(% style="width: 190px;" %)(((
295 -(((
260 +)))|(% style="width:347px" %)(((
296 296  **Example**
297 297  )))
298 -)))
299 -|(% style="width:120px" %)(((
300 -(((
263 +|(((
301 301  AT+BAUDR
302 -)))
303 -)))|(% style="width:190px" %)(((
304 -(((
265 +)))|(% style="width:285px" %)(((
305 305  Set the baud rate (for RS485 connection). Default Value is: 9600.
306 -)))
307 -)))|(% style="width:190px" %)(((
267 +)))|(% style="width:347px" %)(((
308 308  (((
309 -(((
310 310  AT+BAUDR=9600
311 311  )))
312 -)))
313 313  
314 314  (((
315 -(((
316 316  Options: (1200,2400,4800,14400,19200,115200)
317 317  )))
318 318  )))
319 -)))
320 -|(% style="width:120px" %)(((
321 -(((
276 +|(((
322 322  AT+PARITY
323 -)))
324 -)))|(% style="width:190px" %)(((
278 +)))|(% style="width:285px" %)(((
325 325  (((
326 -(((
327 327  Set UART parity (for RS485 connection)
328 328  )))
329 -)))
330 330  
331 331  (((
332 -(((
333 333  Default Value is: no parity.
334 334  )))
335 -)))
336 -)))|(% style="width:190px" %)(((
286 +)))|(% style="width:347px" %)(((
337 337  (((
338 -(((
339 339  AT+PARITY=0
340 340  )))
341 -)))
342 342  
343 343  (((
344 -(((
345 345  Option: 0: no parity, 1: odd parity, 2: even parity
346 346  )))
347 347  )))
348 -)))
349 -|(% style="width:120px" %)(((
350 -(((
295 +|(((
351 351  AT+STOPBIT
352 -)))
353 -)))|(% style="width:190px" %)(((
297 +)))|(% style="width:285px" %)(((
354 354  (((
355 -(((
356 356  Set serial stopbit (for RS485 connection)
357 357  )))
358 -)))
359 359  
360 360  (((
361 -(((
362 362  Default Value is: 1bit.
363 363  )))
364 -)))
365 -)))|(% style="width:190px" %)(((
305 +)))|(% style="width:347px" %)(((
366 366  (((
367 -(((
368 368  AT+STOPBIT=0 for 1bit
369 369  )))
370 -)))
371 371  
372 372  (((
373 -(((
374 374  AT+STOPBIT=1 for 1.5 bit
375 375  )))
376 -)))
377 377  
378 378  (((
379 -(((
380 380  AT+STOPBIT=2 for 2 bits
381 381  )))
382 382  )))
383 -)))
384 384  
385 -
386 -
387 387  === 3.3.2 Configure sensors ===
388 388  
389 389  (((
... ... @@ -394,20 +394,19 @@
394 394  When user issue an (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) command, Each (% style="color:#4f81bd" %)**AT+CFGDEV**(%%) equals to send a command to the RS485 or TTL sensors. This command will only run when user input it and won’t run during each sampling.
395 395  )))
396 396  
397 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
398 -|=(% style="width: 120px;" %)**AT Commands**|=(% style="width: 190px;" %)**Description**|=(% style="width: 190px;" %)**Example**
399 -|AT+CFGDEV|(% style="width:120px" %)(((
329 +(% border="1" style="background-color:#ffffcc; color:green; width:806px" %)
330 +|**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example**
331 +|AT+CFGDEV|(% style="width:418px" %)(((
400 400  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
401 401  
402 402  AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,
403 403  
404 404  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
405 -)))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
337 +)))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
406 406  
407 407  Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>||anchor="HRS485DebugCommand28AT2BCFGDEV29"]].
408 408  
409 409  
410 -
411 411  === 3.3.3 Configure read commands for each sampling ===
412 412  
413 413  (((
... ... @@ -474,209 +474,117 @@
474 474  After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**.
475 475  )))
476 476  
477 -(((
478 478  **Examples:**
479 -)))
480 480  
481 -(((
482 482  Below are examples for the how above AT Commands works.
483 -)))
484 484  
485 -(((
486 486  **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is:
487 -)))
488 488  
489 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
414 +(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:501px" %)
490 490  |(% style="width:498px" %)(((
491 -(((
492 492  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
493 -)))
494 494  
495 -(((
496 496  **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent**
497 -)))
498 498  
499 -(((
500 500  **m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command**
501 501  )))
502 -)))
503 503  
504 -(((
505 505  For example, if we have a RS485 sensor. The command to get sensor value is: 01 03 0B B8 00 02 46 0A. Where 01 03 0B B8 00 02 is the Modbus command to read the register 0B B8 where stored the sensor value. The 46 0A is the CRC-16/MODBUS which calculate manually.
506 -)))
507 507  
508 -(((
509 509  In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same.
510 -)))
511 511  
512 -(((
513 513  **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx.
514 -)))
515 515  
516 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
429 +(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:580px" %)
517 517  |(% style="width:577px" %)(((
518 -(((
519 519  **AT+SEARCHx=aa,xx xx xx xx xx**
520 -)))
521 521  
522 -* (((
523 -**aa: 1: prefix match mode; 2: prefix and suffix match mode**
433 +* **aa: 1: prefix match mode; 2: prefix and suffix match mode**
434 +* **xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
524 524  )))
525 -* (((
526 -**xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
527 -)))
528 -)))
529 529  
530 -(((
531 531  **Examples:**
532 -)))
533 533  
534 -(((
535 535  1)For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
536 -)))
537 537  
538 -(((
539 539  If we set AT+SEARCH1=1,1E 56 34.      (max 5 bytes for prefix)
540 -)))
541 541  
542 -(((
543 543  The valid data will be all bytes after 1E 56 34 , so it is (% style="background-color:yellow" %)**2e 30 58 5f 36 41 30 31 00 49**
544 -)))
545 545  
546 -(((
547 547  [[image:1653271044481-711.png]]
548 -)))
549 549  
550 -(((
551 551  2)For a return string from AT+COMMAND1:  16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
552 -)))
553 553  
554 -(((
555 555  If we set AT+SEARCH1=2, 1E 56 34+31 00 49
556 -)))
557 557  
558 -(((
559 559  Device will search the bytes between 1E 56 34 and 31 00 49. So it is(% style="background-color:yellow" %) **2e 30 58 5f 36 41 30**
560 -)))
561 561  
562 -(((
563 563  [[image:1653271276735-972.png]]
564 -)))
565 565  
566 -(((
567 567  **AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes.
568 -)))
569 569  
570 -(% style="background-color:#4f81bd; color:white; width:510px" %)
457 +(% style="background-color:#4f81bd; color:white; width:729px" %)
571 571  |(% style="width:726px" %)(((
572 -(((
573 573  **AT+DATACUTx=a,b,c**
574 -)))
575 575  
576 -* (((
577 -**a: length for the return of AT+COMMAND**
461 +* **a: length for the return of AT+COMMAND**
462 +* **b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.**
463 +* **c: define the position for valid value.  **
578 578  )))
579 -* (((
580 -**b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.**
581 -)))
582 -* (((
583 -**c: define the position for valid value.  **
584 -)))
585 -)))
586 586  
587 -(((
588 588  **Examples:**
589 -)))
590 590  
591 -* (((
592 -Grab bytes:
593 -)))
468 +* Grab bytes:
594 594  
595 -(((
596 596  [[image:1653271581490-837.png||height="313" width="722"]]
597 -)))
598 598  
599 -(((
600 -
601 -)))
602 602  
603 -* (((
604 -Grab a section.
605 -)))
473 +* Grab a section.
606 606  
607 -(((
608 608  [[image:1653271648378-342.png||height="326" width="720"]]
609 -)))
610 610  
611 -(((
612 -
613 -)))
614 614  
615 -* (((
616 -Grab different sections.
617 -)))
478 +* Grab different sections.
618 618  
619 -(((
620 620  [[image:1653271657255-576.png||height="305" width="730"]]
621 -)))
622 622  
623 623  (((
624 -(((
625 625  (% style="color:red" %)**Note:**
626 626  )))
627 -)))
628 628  
629 629  (((
630 -(((
631 631  AT+SEARCHx and AT+DATACUTx can be used together, if both commands are set, RS485-BL will first process AT+SEARCHx on the return string and get a temporary string, and then process AT+DATACUTx on this temporary string to get the final payload. In this case, AT+DATACUTx need to set to format AT+DATACUTx=0,xx,xx where the return bytes set to 0.
632 632  )))
633 -)))
634 634  
635 635  (((
636 -(((
637 637  **Example:**
638 638  )))
639 -)))
640 640  
641 641  (((
642 -(((
643 643  (% style="color:red" %)AT+COMMAND1=11 01 1E D0,0
644 644  )))
645 -)))
646 646  
647 647  (((
648 -(((
649 649  (% style="color:red" %)AT+SEARCH1=1,1E 56 34
650 650  )))
651 -)))
652 652  
653 653  (((
654 -(((
655 655  (% style="color:red" %)AT+DATACUT1=0,2,1~~5
656 656  )))
657 -)))
658 658  
659 659  (((
660 -(((
661 661  (% style="color:red" %)Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
662 662  )))
663 -)))
664 664  
665 665  (((
666 -(((
667 667  (% style="color:red" %)String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49
668 668  )))
669 -)))
670 670  
671 671  (((
672 -(((
673 673  (% style="color:red" %)Valid payload after DataCUT command: 2e 30 58 5f 36
674 674  )))
675 -)))
676 676  
677 -(((
678 678  [[image:1653271763403-806.png]]
679 -)))
680 680  
681 681  
682 682  === 3.3.4 Compose the uplink payload ===
... ... @@ -683,14 +683,10 @@
683 683  
684 684  (((
685 685  Through AT+COMMANDx and AT+DATACUTx we got valid value from each RS485 commands, Assume these valid value are RETURN1, RETURN2, .., to RETURNx. The next step is how to compose the LoRa Uplink Payload by these RETURNs. The command is **AT+DATAUP.**
686 -
687 -
688 688  )))
689 689  
690 690  (((
691 691  (% style="color:#037691" %)**Examples: AT+DATAUP=0**
692 -
693 -
694 694  )))
695 695  
696 696  (((
... ... @@ -823,8 +823,26 @@
823 823  
824 824  == 3.4 Uplink Payload ==
825 825  
826 -[[image:image-20220606105412-1.png]]
661 +(% border="1" style="background-color:#4f81bd; color:white; width:850px" %)
662 +|**Size(bytes)**|(% style="width:130px" %)**2**|(% style="width:93px" %)**1**|(% style="width:509px" %)**Length depends on the return from the commands**
663 +|Value|(% style="width:130px" %)(((
664 +(((
665 +Battery(mV)
666 +)))
827 827  
668 +(((
669 +&
670 +)))
671 +
672 +(((
673 +Interrupt _Flag
674 +)))
675 +)))|(% style="width:93px" %)(((
676 +PAYLOAD_VER
677 +
678 +
679 +)))|(% style="width:509px" %)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.
680 +
828 828  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
829 829  
830 830  (((
... ... @@ -868,7 +868,7 @@
868 868  )))
869 869  
870 870  (((
871 -**}**
724 +}
872 872  
873 873  
874 874  )))
... ... @@ -886,12 +886,10 @@
886 886  
887 887  There are two kinds of Commands:
888 888  
889 -* (% 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: [[AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
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]]
890 890  
891 891  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-BL.  User can see these commands below:
892 892  
893 -
894 -
895 895  === 3.5.1 Common Commands: ===
896 896  
897 897  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]]
... ... @@ -899,6 +899,7 @@
899 899  
900 900  === 3.5.2 Sensor related commands: ===
901 901  
753 +==== ====
902 902  
903 903  ==== **Choose Device Type (RS485 or TTL)** ====
904 904  
... ... @@ -973,7 +973,6 @@
973 973  
974 974  
975 975  
976 -
977 977  ==== **Set Payload version** ====
978 978  
979 979  This is the first byte of the uplink payload. RS485-BL can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload.
... ... @@ -1070,6 +1070,7 @@
1070 1070  
1071 1071  * **AT+MBFUN=0**: Disable Modbus fast reading.
1072 1072  
924 +
1073 1073  **Example:**
1074 1074  
1075 1075  * AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0).
... ... @@ -1118,102 +1118,86 @@
1118 1118   **0xAA 01 03 E8**  ~-~-> Same as **AT+CMDDL1=1000 ms**
1119 1119  
1120 1120  
973 +==== [[Uplink>>path:#downlink_A8]] payload mode ====
1121 1121  
1122 -==== **Uplink payload mode** ====
1123 -
1124 1124  Define to use one uplink or multiple uplinks for the sampling.
1125 1125  
1126 -The use of this command please see: [[Compose Uplink payload>>||anchor="H3.3.4Composetheuplinkpayload"]]
977 +The use of this command please see: [[Compose Uplink payload>>path:#DataUP]]
1127 1127  
1128 -* **AT Command:**
979 +* AT Command:
1129 1129  
1130 -(% class="box infomessage" %)
1131 -(((
1132 -**AT+DATAUP=0**
1133 -)))
981 +AT+DATAUP=0
1134 1134  
1135 -(% class="box infomessage" %)
1136 -(((
1137 -**AT+DATAUP=1**
1138 -)))
983 +AT+DATAUP=1
1139 1139  
1140 1140  
1141 -* **Downlink Payload:**
986 +* Downlink Payload:
1142 1142  
1143 -**0xAD 00**  **~-~->** Same as AT+DATAUP=0
988 +0xAD 00   à Same as AT+DATAUP=0
1144 1144  
1145 -**0xAD 01**  **~-~->** Same as AT+DATAUP=1
990 +0xAD 01   à Same as AT+DATAUP=1
1146 1146  
1147 1147  
993 +==== Manually trigger an Uplink ====
1148 1148  
1149 -
1150 -==== **Manually trigger an Uplink** ====
1151 -
1152 1152  Ask device to send an uplink immediately.
1153 1153  
1154 -* **Downlink Payload:**
997 +* Downlink Payload:
1155 1155  
1156 -**0x08 FF**, RS485-BL will immediately send an uplink.
999 +0x08 FF, RS485-BL will immediately send an uplink.
1157 1157  
1158 1158  
1002 +==== Clear RS485 Command ====
1159 1159  
1160 -
1161 -==== **Clear RS485 Command** ====
1162 -
1163 1163  The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
1164 1164  
1165 1165  
1166 -* **AT Command:**
1007 +* AT Command:
1167 1167  
1168 -(% style="color:#037691" %)**AT+CMDEAR=mm,nn** (%%) mm: start position of erase ,nn: stop position of erase Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
1009 +**AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
1169 1169  
1011 +Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
1012 +
1170 1170  Example screen shot after clear all RS485 commands. 
1171 1171  
1172 1172  
1016 +
1173 1173  The uplink screen shot is:
1174 1174  
1175 -[[image:1654134704555-320.png]]
1019 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]]
1176 1176  
1177 1177  
1178 -* **Downlink Payload:**
1022 +* Downlink Payload:
1179 1179  
1180 -**0x09 aa bb** same as AT+CMDEAR=aa,bb
1024 +0x09 aa bb same as AT+CMDEAR=aa,bb
1181 1181  
1182 1182  
1027 +==== Set Serial Communication Parameters ====
1183 1183  
1184 -==== **Set Serial Communication Parameters** ====
1185 -
1186 1186  Set the Rs485 serial communication parameters:
1187 1187  
1188 -* **AT Command:**
1031 +* AT Command:
1189 1189  
1190 1190  Set Baud Rate:
1191 1191  
1192 -(% class="box infomessage" %)
1193 -(((
1194 -**AT+BAUDR=9600**    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1195 -)))
1035 +AT+BAUDR=9600    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1196 1196  
1197 -Set UART Parity
1198 1198  
1199 -(% class="box infomessage" %)
1200 -(((
1201 -**AT+PARITY=0**    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1202 -)))
1038 +Set UART parity
1203 1203  
1040 +AT+PARITY=0    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1041 +
1042 +
1204 1204  Set STOPBIT
1205 1205  
1206 -(% class="box infomessage" %)
1207 -(((
1208 -**AT+STOPBIT=0**    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1209 -)))
1045 +AT+STOPBIT=0    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1210 1210  
1211 1211  
1212 -* **Downlink Payload:**
1048 +* Downlink Payload:
1213 1213  
1214 -**A7 01 aa bb**: Same  AT+BAUDR=hex(aa bb)*100
1050 +A7 01 aa bb: Same  AT+BAUDR=hex(aa bb)*100
1215 1215  
1216 -**Example:**
1052 +Example:
1217 1217  
1218 1218  * A7 01 00 60   same as AT+BAUDR=9600
1219 1219  * A7 01 04 80  same as AT+BAUDR=115200
... ... @@ -1223,189 +1223,180 @@
1223 1223  A7 03 aa: Same as  AT+STOPBIT=aa  (aa value: 00 , 01 or 02)
1224 1224  
1225 1225  
1062 +==== Control output power duration ====
1226 1226  
1227 -==== **Control output power duration** ====
1228 -
1229 1229  User can set the output power duration before each sampling.
1230 1230  
1231 -* **AT Command:**
1066 +* AT Command:
1232 1232  
1233 -**Example:**
1068 +Example:
1234 1234  
1235 -**AT+3V3T=1000**  ~/~/ 3V3 output power will open 1s before each sampling.
1070 +AT+3V3T=1000 ~/~/ 3V3 output power will open 1s before each sampling.
1236 1236  
1237 -**AT+5VT=1000**  ~/~/ +5V output power will open 1s before each sampling.
1072 +AT+5VT=1000 ~/~/ +5V output power will open 1s before each sampling.
1238 1238  
1239 1239  
1240 -* **LoRaWAN Downlink Command:**
1075 +* LoRaWAN Downlink Command:
1241 1241  
1242 -**07 01 aa bb**  Same as AT+5VT=(aa bb)
1077 +07 01 aa bb  Same as AT+5VT=(aa bb)
1243 1243  
1244 -**07 02 aa bb**  Same as AT+3V3T=(aa bb)
1079 +07 02 aa bb  Same as AT+3V3T=(aa bb)
1245 1245  
1246 1246  
1247 1247  
1248 -== 3.6 Buttons ==
1249 1249  
1250 -(% border="1" style="background-color:#ffffcc; color:green; width:233px" %)
1251 -|=(% style="width: 89px;" %)**Button**|=(% style="width: 141px;" %)**Feature**
1252 -|(% style="width:89px" %)**RST**|(% style="width:141px" %)Reboot RS485-BL
1084 +1.
1085 +11. Buttons
1253 1253  
1254 -== 3.7 +3V3 Output ==
1087 +|**Button**|**Feature**
1088 +|**RST**|Reboot RS485-BL
1255 1255  
1090 +1.
1091 +11. +3V3 Output
1092 +
1256 1256  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
1257 1257  
1258 1258  The +3V3 output will be valid for every sampling. RS485-BL will enable +3V3 output before all sampling and disable the +3V3 after all sampling. 
1259 1259  
1097 +
1260 1260  The +3V3 output time can be controlled by AT Command.
1261 1261  
1100 +**AT+3V3T=1000**
1262 1262  
1263 -(% style="color:#037691" %)**AT+3V3T=1000**
1264 -
1265 -
1266 1266  Means set +3v3 valid time to have 1000ms. So, the real +3v3 output will actually have 1000ms + sampling time for other sensors.
1267 1267  
1104 +
1268 1268  By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time
1269 1269  
1270 1270  
1271 -== 3.8 +5V Output ==
1108 +1.
1109 +11. +5V Output
1272 1272  
1273 1273  RS485-BL has a Controllable +5V output, user can use this output to power external sensor.
1274 1274  
1275 1275  The +5V output will be valid for every sampling. RS485-BL will enable +5V output before all sampling and disable the +5v after all sampling. 
1276 1276  
1115 +
1277 1277  The 5V output time can be controlled by AT Command.
1278 1278  
1118 +**AT+5VT=1000**
1279 1279  
1280 -(% style="color:#037691" %)**AT+5VT=1000**
1281 -
1282 -
1283 1283  Means set 5V valid time to have 1000ms. So, the real 5V output will actually have 1000ms + sampling time for other sensors.
1284 1284  
1122 +
1285 1285  By default, the AT+5VT=0. If the external sensor which require 5v and require more time to get stable state, user can use this command to increase the power ON duration for this sensor.
1286 1286  
1287 1287  
1288 -== 3.9 LEDs ==
1289 1289  
1290 -(% border="1" style="background-color:#ffffcc; color:green; width:332px" %)
1291 -|=**LEDs**|=(% style="width: 274px;" %)**Feature**
1292 -|**LED1**|(% style="width:274px" %)Blink when device transmit a packet.
1293 1293  
1294 -== 3.10 Switch Jumper ==
1128 +1.
1129 +11. LEDs
1295 1295  
1296 -(% border="1" style="background-color:#ffffcc; color:green; width:515px" %)
1297 -|=(% style="width: 124px;" %)**Switch Jumper**|=(% style="width: 388px;" %)**Feature**
1298 -|(% style="width:124px" %)**SW1**|(% style="width:388px" %)(((
1131 +|**LEDs**|**Feature**
1132 +|**LED1**|Blink when device transmit a packet.
1133 +
1134 +1.
1135 +11. Switch Jumper
1136 +
1137 +|**Switch Jumper**|**Feature**
1138 +|**SW1**|(((
1299 1299  ISP position: Upgrade firmware via UART
1300 1300  
1301 1301  Flash position: Configure device, check running status.
1302 1302  )))
1303 -|(% style="width:124px" %)**SW2**|(% style="width:388px" %)(((
1143 +|**SW2**|(((
1304 1304  5V position: set to compatible with 5v I/O.
1305 1305  
1306 1306  3.3v position: set to compatible with 3.3v I/O.,
1307 1307  )))
1308 1308  
1309 -**+3.3V**: is always ON
1149 ++3.3V: is always ON
1310 1310  
1311 -**+5V**: Only open before every sampling. The time is by default, it is AT+5VT=0.  Max open time. 5000 ms.
1151 ++5V: Only open before every sampling. The time is by default, it is AT+5VT=0.  Max open time. 5000 ms.
1312 1312  
1153 +1. Case Study
1313 1313  
1314 -= 4. Case Study =
1155 +User can check this URL for some case studies.
1315 1315  
1316 -User can check this URL for some case studies: [[APP RS485 COMMUNICATE WITH SENSORS>>doc:Main.Application Note \: Communicate with Different Sensors ----- RS485-LN RS485-BL.WebHome]]
1157 +[[http:~~/~~/wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS>>url:http://wiki.dragino.com/index.php?title=APP_RS485_COMMUNICATE_WITH_SENSORS]]
1317 1317  
1318 1318  
1319 -= 5. Use AT Command =
1320 1320  
1321 -== 5.1 Access AT Command ==
1322 1322  
1162 +1. Use AT Command
1163 +11. Access AT Command
1164 +
1323 1323  RS485-BL supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to RS485-BL to use AT command, as below.
1324 1324  
1325 -[[image:1654135840598-282.png]]
1167 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]]
1326 1326  
1327 1327  
1328 -In PC, User needs to set (% style="color:blue" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console of RS485-BL. The default password is 123456. Below is the output for reference:
1170 +In PC, User needs to set **serial tool**(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to **9600** to access to access serial console of RS485-BL. The default password is 123456. Below is the output for reference:
1329 1329  
1330 -[[image:1654136105500-922.png]]
1172 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]]
1331 1331  
1332 1332  
1333 -More detail AT Command manual can be found at [[AT Command Manual>>||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]]
1334 1334  
1176 +More detail AT Command manual can be found at [[AT Command Manual>>path:#AT_COMMAND]]
1335 1335  
1336 -== 5.2 Common AT Command Sequence ==
1337 1337  
1338 -=== 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ===
1339 1339  
1180 +1.
1181 +11. Common AT Command Sequence
1182 +111. Multi-channel ABP mode (Use with SX1301/LG308)
1183 +
1340 1340  If device has not joined network yet:
1341 1341  
1342 -(% class="box infomessage" %)
1343 -(((
1344 -**AT+FDR**
1345 -)))
1186 +AT+FDR
1346 1346  
1347 -(% class="box infomessage" %)
1348 -(((
1349 -**AT+NJM=0**
1350 -)))
1188 +AT+NJM=0
1351 1351  
1352 -(% class="box infomessage" %)
1353 -(((
1354 -**ATZ**
1355 -)))
1190 +ATZ
1356 1356  
1357 1357  
1358 1358  If device already joined network:
1359 1359  
1360 -(% class="box infomessage" %)
1361 -(((
1362 -**AT+NJM=0**
1363 -)))
1195 +AT+NJM=0
1364 1364  
1365 -(% class="box infomessage" %)
1366 -(((
1367 -**ATZ**
1368 -)))
1197 +ATZ
1369 1369  
1199 +1.
1200 +11.
1201 +111. Single-channel ABP mode (Use with LG01/LG02)
1370 1370  
1371 -=== 5.5.2 Single-channel ABP mode (Use with LG01/LG02) ===
1203 +AT+FDR   Reset Parameters to Factory Default, Keys Reserve
1372 1372  
1205 +AT+NJM=0 Set to ABP mode
1373 1373  
1374 -(% style="background-color:#dcdcdc" %)**AT+FDR** (%%) Reset Parameters to Factory Default, Keys Reserve
1207 +AT+ADR=0 Set the Adaptive Data Rate Off
1375 1375  
1376 -(% style="background-color:#dcdcdc" %)**AT+NJM=0 **(%%)Set to ABP mode
1209 +AT+DR= Set Data Rate
1377 1377  
1378 -(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%)Set the Adaptive Data Rate Off
1211 +AT+TDC=60000  Set transmit interval to 60 seconds
1379 1379  
1380 -(% style="background-color:#dcdcdc" %)**AT+DR=5**  (%%)Set Data Rate
1213 +AT+CHS=868400000 Set transmit frequency to 868.4Mhz
1381 1381  
1382 -(% style="background-color:#dcdcdc" %)**AT+TDC=60000** (%%) Set transmit interval to 60 seconds
1215 +AT+RX2FQ=868400000 Set RX2Frequency to 868.4Mhz (according to the result from server)
1383 1383  
1384 -(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) Set transmit frequency to 868.4Mhz
1217 +AT+RX2DR= Set RX2DR to match the downlink DR from server. see below
1385 1385  
1386 -(% style="background-color:#dcdcdc" %)**AT+RX2FQ=868400000** (%%) Set RX2Frequency to 868.4Mhz (according to the result from server)
1219 +AT+DADDR=26 01 1A F1 Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal.
1387 1387  
1388 -(% style="background-color:#dcdcdc" %)**AT+RX2DR=5**  (%%) Set RX2DR to match the downlink DR from server. see below
1221 +ATZ          Reset MCU
1389 1389  
1390 -(% style="background-color:#dcdcdc" %)**AT+DADDR=26** (%%) 01 1A F1 Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal.
1223 +**Note:**
1391 1391  
1392 -(% style="background-color:#dcdcdc" %)**ATZ**       (%%) Reset MCU
1225 +1. Make sure the device is set to ABP mode in the IoT Server.
1226 +1. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1227 +1. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means.
1228 +1. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5
1393 1393  
1230 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png]]
1394 1394  
1395 -(% style="color:red" %)**Note:**
1396 1396  
1397 -(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server.
1398 -2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1399 -3. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means.
1400 -4. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5
1233 +1. FAQ
1234 +11. How to upgrade the image?
1401 1401  
1402 -[[image:1654136435598-589.png]]
1403 -
1404 -
1405 -= 6. FAQ =
1406 -
1407 -== 6.1 How to upgrade the image? ==
1408 -
1409 1409  The RS485-BL LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to RS485-BL to:
1410 1410  
1411 1411  * Support new features
... ... @@ -1414,7 +1414,7 @@
1414 1414  
1415 1415  Below shows the hardware connection for how to upload an image to RS485-BL:
1416 1416  
1417 -[[image:1654136646995-976.png]]
1244 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]]
1418 1418  
1419 1419  **Step1:** Download [[flash loader>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html]].
1420 1420  
... ... @@ -1422,102 +1422,97 @@
1422 1422  
1423 1423  **Step3: **Open flashloader; choose the correct COM port to update.
1424 1424  
1425 -[[image:image-20220602102605-1.png]]
1426 1426  
1253 +|(((
1254 +HOLD PRO then press the RST button, SYS will be ON, then click next
1255 +)))
1427 1427  
1428 -[[image:image-20220602102637-2.png]]
1257 +|(((
1258 +Board detected
1259 +)))
1429 1429  
1261 +|(((
1262 +
1263 +)))
1430 1430  
1431 -[[image:image-20220602102715-3.png]]
1265 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image031.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image032.png]]
1432 1432  
1433 1433  
1434 1434  
1435 -== 6.2 How to change the LoRa Frequency Bands/Region? ==
1269 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image033.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image034.png]]
1436 1436  
1437 -(((
1438 -User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download.
1439 -)))
1440 1440  
1272 +[[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]]
1441 1441  
1442 1442  
1443 -== 6.3 How many RS485-Slave can RS485-BL connects? ==
1275 +1.
1276 +11. How to change the LoRa Frequency Bands/Region?
1444 1444  
1445 -(((
1446 -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>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]].
1447 -)))
1278 +User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download.
1448 1448  
1449 1449  
1450 1450  
1451 -= 7. Trouble Shooting =
1282 +1.
1283 +11. How many RS485-Slave can RS485-BL connects?
1452 1452  
1285 +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]].
1453 1453  
1454 -== 7.1 Downlink doesn’t work, how to solve it? ==
1455 1455  
1456 -Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]]
1457 1457  
1458 1458  
1459 -== 7.2 Why I can’t join TTN V3 in US915 /AU915 bands? ==
1290 +1. Trouble Shooting     
1291 +11. Downlink doesn’t work, how to solve it?
1460 1460  
1461 -It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]]
1293 +Please see this link for debug:
1462 1462  
1295 +[[http:~~/~~/wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug>>url:http://wiki.dragino.com/index.php?title=Main_Page#LoRaWAN_Communication_Debug]] 
1463 1463  
1464 -= 8. Order Info =
1465 1465  
1466 -(% style="color:blue" %)**Part Number: RS485-BL-XXX**
1467 1467  
1468 -(% style="color:blue" %)**XXX:**
1299 +1.
1300 +11. Why I can’t join TTN V3 in US915 /AU915 bands?
1469 1469  
1470 -* (% style="color:blue" %)**EU433**(%%): frequency bands EU433
1471 -* (% style="color:blue" %)**EU868**(%%): frequency bands EU868
1472 -* (% style="color:blue" %)**KR920**(%%): frequency bands KR920
1473 -* (% style="color:blue" %)**CN470**(%%): frequency bands CN470
1474 -* (% style="color:blue" %)**AS923**(%%): frequency bands AS923
1475 -* (% style="color:blue" %)**AU915**(%%): frequency bands AU915
1476 -* (% style="color:blue" %)**US915**(%%): frequency bands US915
1477 -* (% style="color:blue" %)**IN865**(%%): frequency bands IN865
1478 -* (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1479 -* (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1302 +It might about the channels mapping. Please see for detail.
1480 1480  
1481 -= 9. Packing Info =
1304 +[[http:~~/~~/wiki.dragino.com/index.php?title=LoRaWAN_Communication_Debug#Notice_of_US915.2FCN470.2FAU915_Frequency_band>>url:http://wiki.dragino.com/index.php?title=LoRaWAN_Communication_Debug#Notice_of_US915.2FCN470.2FAU915_Frequency_band]]
1482 1482  
1483 -(((
1306 +
1307 +
1308 +1. Order Info
1309 +
1310 +**Part Number: RS485-BL-XXX**
1311 +
1312 +**XXX:**
1313 +
1314 +* **EU433**: frequency bands EU433
1315 +* **EU868**: frequency bands EU868
1316 +* **KR920**: frequency bands KR920
1317 +* **CN470**: frequency bands CN470
1318 +* **AS923**: frequency bands AS923
1319 +* **AU915**: frequency bands AU915
1320 +* **US915**: frequency bands US915
1321 +* **IN865**: frequency bands IN865
1322 +* **RU864**: frequency bands RU864
1323 +* **KZ865: **frequency bands KZ865
1324 +
1325 +1. Packing Info
1326 +
1484 1484  **Package Includes**:
1485 -)))
1486 1486  
1487 -* (((
1488 -RS485-BL x 1
1489 -)))
1490 -* (((
1491 -Stick Antenna for LoRa RF part x 1
1492 -)))
1493 -* (((
1494 -Program cable x 1
1495 -)))
1329 +* RS485-BL x 1
1330 +* Stick Antenna for LoRa RF part x 1
1331 +* Program cable x 1
1496 1496  
1497 -(((
1498 1498  **Dimension and weight**:
1499 -)))
1500 1500  
1501 -* (((
1502 -Device Size: 13.5 x 7 x 3 cm
1503 -)))
1504 -* (((
1505 -Device Weight: 105g
1506 -)))
1507 -* (((
1508 -Package Size / pcs : 14.5 x 8 x 5 cm
1509 -)))
1510 -* (((
1511 -Weight / pcs : 170g
1335 +* Device Size: 13.5 x 7 x 3 cm
1336 +* Device Weight: 105g
1337 +* Package Size / pcs : 14.5 x 8 x 5 cm
1338 +* Weight / pcs : 170g
1512 1512  
1513 -
1514 -)))
1340 +1. Support
1515 1515  
1516 -= 10. Support =
1342 +* Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
1343 +* Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to
1517 1517  
1518 -* (((
1519 -Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
1520 -)))
1521 -* (((
1522 -Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]]
1523 -)))
1345 +[[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]]
1654134704555-320.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -91.4 KB
Content
1654135840598-282.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -1.3 MB
Content
1654136105500-922.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -203.7 KB
Content
1654136435598-589.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -158.9 KB
Content
1654136646995-976.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -1.3 MB
Content
image-20220602102605-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -102.6 KB
Content
image-20220602102637-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -250.8 KB
Content
image-20220602102715-3.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -176.2 KB
Content
image-20220606105412-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -13.9 KB
Content