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

From version 32.9
edited by Xiaoling
on 2022/06/02 09:46
Change comment: There is no comment for this version
To version 41.1
edited by Xiaoling
on 2022/06/06 10:54
Change comment: Uploaded new attachment "image-20220606105412-1.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -124,29 +124,47 @@
124 124  (((
125 125  
126 126  
127 +(((
127 127  v1.4
128 128  )))
130 +)))
129 129  
130 130  (((
133 +(((
131 131  ~1. Change Power IC to TPS22916
132 132  )))
136 +)))
133 133  
138 +(((
139 +
140 +)))
134 134  
135 135  (((
143 +(((
136 136  v1.3
137 137  )))
146 +)))
138 138  
139 139  (((
149 +(((
140 140  ~1. Change JP3 from KF350-8P to KF350-11P, Add one extra interface for I2C and one extra interface for one-wire
141 141  )))
152 +)))
142 142  
154 +(((
155 +
156 +)))
143 143  
144 144  (((
159 +(((
145 145  v1.2
146 146  )))
162 +)))
147 147  
148 148  (((
165 +(((
149 149  Release version ​​​​​
167 +)))
150 150  
151 151  
152 152  )))
... ... @@ -240,82 +240,132 @@
240 240  
241 241  === 3.3.1 onfigure UART settings for RS485 or TTL communication ===
242 242  
261 +(((
243 243  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
263 +)))
244 244  
265 +(((
245 245  **~1. RS485-MODBUS mode:**
267 +)))
246 246  
269 +(((
247 247  AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins.
271 +)))
248 248  
273 +(((
249 249  **2. TTL mode:**
275 +)))
250 250  
277 +(((
251 251  AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins.
279 +)))
252 252  
281 +(((
253 253  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 +)))
254 254  
255 -(% border="1" style="background-color:#ffffcc; color:green; width:795px" %)
256 -|(((
285 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
286 +|=(% style="width: 120px;" %)(((
287 +(((
257 257  **AT Commands**
258 -)))|(% style="width:285px" %)(((
289 +)))
290 +)))|=(% style="width: 190px;" %)(((
291 +(((
259 259  **Description**
260 -)))|(% style="width:347px" %)(((
293 +)))
294 +)))|=(% style="width: 190px;" %)(((
295 +(((
261 261  **Example**
262 262  )))
263 -|(((
298 +)))
299 +|(% style="width:120px" %)(((
300 +(((
264 264  AT+BAUDR
265 -)))|(% style="width:285px" %)(((
302 +)))
303 +)))|(% style="width:190px" %)(((
304 +(((
266 266  Set the baud rate (for RS485 connection). Default Value is: 9600.
267 -)))|(% style="width:347px" %)(((
306 +)))
307 +)))|(% style="width:190px" %)(((
268 268  (((
309 +(((
269 269  AT+BAUDR=9600
270 270  )))
312 +)))
271 271  
272 272  (((
315 +(((
273 273  Options: (1200,2400,4800,14400,19200,115200)
274 274  )))
275 275  )))
276 -|(((
319 +)))
320 +|(% style="width:120px" %)(((
321 +(((
277 277  AT+PARITY
278 -)))|(% style="width:285px" %)(((
323 +)))
324 +)))|(% style="width:190px" %)(((
279 279  (((
326 +(((
280 280  Set UART parity (for RS485 connection)
281 281  )))
329 +)))
282 282  
283 283  (((
332 +(((
284 284  Default Value is: no parity.
285 285  )))
286 -)))|(% style="width:347px" %)(((
335 +)))
336 +)))|(% style="width:190px" %)(((
287 287  (((
338 +(((
288 288  AT+PARITY=0
289 289  )))
341 +)))
290 290  
291 291  (((
344 +(((
292 292  Option: 0: no parity, 1: odd parity, 2: even parity
293 293  )))
294 294  )))
295 -|(((
348 +)))
349 +|(% style="width:120px" %)(((
350 +(((
296 296  AT+STOPBIT
297 -)))|(% style="width:285px" %)(((
352 +)))
353 +)))|(% style="width:190px" %)(((
298 298  (((
355 +(((
299 299  Set serial stopbit (for RS485 connection)
300 300  )))
358 +)))
301 301  
302 302  (((
361 +(((
303 303  Default Value is: 1bit.
304 304  )))
305 -)))|(% style="width:347px" %)(((
364 +)))
365 +)))|(% style="width:190px" %)(((
306 306  (((
367 +(((
307 307  AT+STOPBIT=0 for 1bit
308 308  )))
370 +)))
309 309  
310 310  (((
373 +(((
311 311  AT+STOPBIT=1 for 1.5 bit
312 312  )))
376 +)))
313 313  
314 314  (((
379 +(((
315 315  AT+STOPBIT=2 for 2 bits
316 316  )))
317 317  )))
383 +)))
318 318  
385 +
386 +
319 319  === 3.3.2 Configure sensors ===
320 320  
321 321  (((
... ... @@ -326,19 +326,20 @@
326 326  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.
327 327  )))
328 328  
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" %)(((
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" %)(((
332 332  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
333 333  
334 334  AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,
335 335  
336 336  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
337 -)))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
405 +)))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
338 338  
339 339  Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>||anchor="HRS485DebugCommand28AT2BCFGDEV29"]].
340 340  
341 341  
410 +
342 342  === 3.3.3 Configure read commands for each sampling ===
343 343  
344 344  (((
... ... @@ -405,117 +405,209 @@
405 405  After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**.
406 406  )))
407 407  
477 +(((
408 408  **Examples:**
479 +)))
409 409  
481 +(((
410 410  Below are examples for the how above AT Commands works.
483 +)))
411 411  
485 +(((
412 412  **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is:
487 +)))
413 413  
414 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:501px" %)
489 +(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
415 415  |(% style="width:498px" %)(((
491 +(((
416 416  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
493 +)))
417 417  
495 +(((
418 418  **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent**
497 +)))
419 419  
499 +(((
420 420  **m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command**
421 421  )))
502 +)))
422 422  
504 +(((
423 423  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 +)))
424 424  
508 +(((
425 425  In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same.
510 +)))
426 426  
512 +(((
427 427  **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx.
514 +)))
428 428  
429 -(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:580px" %)
516 +(% border="1" class="table-bordered" style="background-color:#4f81bd; color:white; width:500px" %)
430 430  |(% style="width:577px" %)(((
518 +(((
431 431  **AT+SEARCHx=aa,xx xx xx xx xx**
520 +)))
432 432  
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**
522 +* (((
523 +**aa: 1: prefix match mode; 2: prefix and suffix match mode**
435 435  )))
525 +* (((
526 +**xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
527 +)))
528 +)))
436 436  
530 +(((
437 437  **Examples:**
532 +)))
438 438  
534 +(((
439 439  1)For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
536 +)))
440 440  
538 +(((
441 441  If we set AT+SEARCH1=1,1E 56 34.      (max 5 bytes for prefix)
540 +)))
442 442  
542 +(((
443 443  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 +)))
444 444  
546 +(((
445 445  [[image:1653271044481-711.png]]
548 +)))
446 446  
550 +(((
447 447  2)For a return string from AT+COMMAND1:  16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
552 +)))
448 448  
554 +(((
449 449  If we set AT+SEARCH1=2, 1E 56 34+31 00 49
556 +)))
450 450  
558 +(((
451 451  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 +)))
452 452  
562 +(((
453 453  [[image:1653271276735-972.png]]
564 +)))
454 454  
566 +(((
455 455  **AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes.
568 +)))
456 456  
457 -(% style="background-color:#4f81bd; color:white; width:729px" %)
570 +(% style="background-color:#4f81bd; color:white; width:510px" %)
458 458  |(% style="width:726px" %)(((
572 +(((
459 459  **AT+DATACUTx=a,b,c**
574 +)))
460 460  
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.  **
576 +* (((
577 +**a: length for the return of AT+COMMAND**
464 464  )))
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 +)))
465 465  
587 +(((
466 466  **Examples:**
589 +)))
467 467  
468 -* Grab bytes:
591 +* (((
592 +Grab bytes:
593 +)))
469 469  
595 +(((
470 470  [[image:1653271581490-837.png||height="313" width="722"]]
597 +)))
471 471  
599 +(((
600 +
601 +)))
472 472  
473 -* Grab a section.
603 +* (((
604 +Grab a section.
605 +)))
474 474  
607 +(((
475 475  [[image:1653271648378-342.png||height="326" width="720"]]
609 +)))
476 476  
611 +(((
612 +
613 +)))
477 477  
478 -* Grab different sections.
615 +* (((
616 +Grab different sections.
617 +)))
479 479  
619 +(((
480 480  [[image:1653271657255-576.png||height="305" width="730"]]
621 +)))
481 481  
482 482  (((
624 +(((
483 483  (% style="color:red" %)**Note:**
484 484  )))
627 +)))
485 485  
486 486  (((
630 +(((
487 487  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.
488 488  )))
633 +)))
489 489  
490 490  (((
636 +(((
491 491  **Example:**
492 492  )))
639 +)))
493 493  
494 494  (((
642 +(((
495 495  (% style="color:red" %)AT+COMMAND1=11 01 1E D0,0
496 496  )))
645 +)))
497 497  
498 498  (((
648 +(((
499 499  (% style="color:red" %)AT+SEARCH1=1,1E 56 34
500 500  )))
651 +)))
501 501  
502 502  (((
654 +(((
503 503  (% style="color:red" %)AT+DATACUT1=0,2,1~~5
504 504  )))
657 +)))
505 505  
506 506  (((
660 +(((
507 507  (% style="color:red" %)Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
508 508  )))
663 +)))
509 509  
510 510  (((
666 +(((
511 511  (% style="color:red" %)String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49
512 512  )))
669 +)))
513 513  
514 514  (((
672 +(((
515 515  (% style="color:red" %)Valid payload after DataCUT command: 2e 30 58 5f 36
516 516  )))
675 +)))
517 517  
677 +(((
518 518  [[image:1653271763403-806.png]]
679 +)))
519 519  
520 520  
521 521  === 3.3.4 Compose the uplink payload ===
... ... @@ -522,10 +522,14 @@
522 522  
523 523  (((
524 524  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 +
525 525  )))
526 526  
527 527  (((
528 528  (% style="color:#037691" %)**Examples: AT+DATAUP=0**
692 +
693 +
529 529  )))
530 530  
531 531  (((
... ... @@ -721,7 +721,7 @@
721 721  )))
722 722  
723 723  (((
724 -}
889 +**}**
725 725  
726 726  
727 727  )))
... ... @@ -739,7 +739,7 @@
739 739  
740 740  There are two kinds of Commands:
741 741  
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]]
907 +* (% 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]]
743 743  
744 744  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-BL.  User can see these commands below:
745 745  
... ... @@ -750,7 +750,6 @@
750 750  
751 751  === 3.5.2 Sensor related commands: ===
752 752  
753 -==== ====
754 754  
755 755  ==== **Choose Device Type (RS485 or TTL)** ====
756 756  
... ... @@ -825,6 +825,7 @@
825 825  
826 826  
827 827  
992 +
828 828  ==== **Set Payload version** ====
829 829  
830 830  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.
... ... @@ -997,66 +997,74 @@
997 997  
998 998  
999 999  
1165 +
1000 1000  ==== **Manually trigger an Uplink** ====
1001 1001  
1002 1002  Ask device to send an uplink immediately.
1003 1003  
1004 -* Downlink Payload:
1170 +* **Downlink Payload:**
1005 1005  
1006 -0x08 FF, RS485-BL will immediately send an uplink.
1172 +**0x08 FF**, RS485-BL will immediately send an uplink.
1007 1007  
1008 1008  
1009 -==== Clear RS485 Command ====
1010 1010  
1011 -The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
1012 1012  
1177 +==== **Clear RS485 Command** ====
1013 1013  
1014 -* AT Command:
1179 +The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
1015 1015  
1016 -**AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
1017 1017  
1018 -Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
1182 +* **AT Command:**
1019 1019  
1184 +(% 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
1185 +
1020 1020  Example screen shot after clear all RS485 commands. 
1021 1021  
1022 1022  
1023 -
1024 1024  The uplink screen shot is:
1025 1025  
1026 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]]
1191 +[[image:1654134704555-320.png]]
1027 1027  
1028 1028  
1029 -* Downlink Payload:
1194 +* **Downlink Payload:**
1030 1030  
1031 -0x09 aa bb same as AT+CMDEAR=aa,bb
1196 +**0x09 aa bb** same as AT+CMDEAR=aa,bb
1032 1032  
1033 1033  
1034 -==== Set Serial Communication Parameters ====
1035 1035  
1200 +==== **Set Serial Communication Parameters** ====
1201 +
1036 1036  Set the Rs485 serial communication parameters:
1037 1037  
1038 -* AT Command:
1204 +* **AT Command:**
1039 1039  
1040 1040  Set Baud Rate:
1041 1041  
1042 -AT+BAUDR=9600    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1208 +(% class="box infomessage" %)
1209 +(((
1210 +**AT+BAUDR=9600**    ~/~/ Options: (1200,2400,4800,14400,19200,115200)
1211 +)))
1043 1043  
1213 +Set UART Parity
1044 1044  
1045 -Set UART parity
1215 +(% class="box infomessage" %)
1216 +(((
1217 +**AT+PARITY=0**    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1218 +)))
1046 1046  
1047 -AT+PARITY=0    ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity
1048 -
1049 -
1050 1050  Set STOPBIT
1051 1051  
1052 -AT+STOPBIT=0    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1222 +(% class="box infomessage" %)
1223 +(((
1224 +**AT+STOPBIT=0**    ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits
1225 +)))
1053 1053  
1054 1054  
1055 -* Downlink Payload:
1228 +* **Downlink Payload:**
1056 1056  
1057 -A7 01 aa bb: Same  AT+BAUDR=hex(aa bb)*100
1230 +**A7 01 aa bb**: Same  AT+BAUDR=hex(aa bb)*100
1058 1058  
1059 -Example:
1232 +**Example:**
1060 1060  
1061 1061  * A7 01 00 60   same as AT+BAUDR=9600
1062 1062  * A7 01 04 80  same as AT+BAUDR=115200
... ... @@ -1066,180 +1066,189 @@
1066 1066  A7 03 aa: Same as  AT+STOPBIT=aa  (aa value: 00 , 01 or 02)
1067 1067  
1068 1068  
1069 -==== Control output power duration ====
1070 1070  
1243 +==== **Control output power duration** ====
1244 +
1071 1071  User can set the output power duration before each sampling.
1072 1072  
1073 -* AT Command:
1247 +* **AT Command:**
1074 1074  
1075 -Example:
1249 +**Example:**
1076 1076  
1077 -AT+3V3T=1000 ~/~/ 3V3 output power will open 1s before each sampling.
1251 +**AT+3V3T=1000**  ~/~/ 3V3 output power will open 1s before each sampling.
1078 1078  
1079 -AT+5VT=1000 ~/~/ +5V output power will open 1s before each sampling.
1253 +**AT+5VT=1000**  ~/~/ +5V output power will open 1s before each sampling.
1080 1080  
1081 1081  
1082 -* LoRaWAN Downlink Command:
1256 +* **LoRaWAN Downlink Command:**
1083 1083  
1084 -07 01 aa bb  Same as AT+5VT=(aa bb)
1258 +**07 01 aa bb**  Same as AT+5VT=(aa bb)
1085 1085  
1086 -07 02 aa bb  Same as AT+3V3T=(aa bb)
1260 +**07 02 aa bb**  Same as AT+3V3T=(aa bb)
1087 1087  
1088 1088  
1089 1089  
1264 +== 3.6 Buttons ==
1090 1090  
1091 -1.
1092 -11. Buttons
1266 +(% border="1" style="background-color:#ffffcc; color:green; width:233px" %)
1267 +|=(% style="width: 89px;" %)**Button**|=(% style="width: 141px;" %)**Feature**
1268 +|(% style="width:89px" %)**RST**|(% style="width:141px" %)Reboot RS485-BL
1093 1093  
1094 -|**Button**|**Feature**
1095 -|**RST**|Reboot RS485-BL
1270 +== 3.7 +3V3 Output ==
1096 1096  
1097 -1.
1098 -11. +3V3 Output
1099 -
1100 1100  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
1101 1101  
1102 1102  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. 
1103 1103  
1104 -
1105 1105  The +3V3 output time can be controlled by AT Command.
1106 1106  
1107 -**AT+3V3T=1000**
1108 1108  
1109 -Means set +3v3 valid time to have 1000ms. So, the real +3v3 output will actually have 1000ms + sampling time for other sensors.
1279 +(% style="color:#037691" %)**AT+3V3T=1000**
1110 1110  
1111 1111  
1282 +Means set +3v3 valid time to have 1000ms. So, the real +3v3 output will actually have 1000ms + sampling time for other sensors.
1283 +
1112 1112  By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time
1113 1113  
1114 1114  
1115 -1.
1116 -11. +5V Output
1287 +== 3.8 +5V Output ==
1117 1117  
1118 1118  RS485-BL has a Controllable +5V output, user can use this output to power external sensor.
1119 1119  
1120 1120  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. 
1121 1121  
1122 -
1123 1123  The 5V output time can be controlled by AT Command.
1124 1124  
1125 -**AT+5VT=1000**
1126 1126  
1127 -Means set 5V valid time to have 1000ms. So, the real 5V output will actually have 1000ms + sampling time for other sensors.
1296 +(% style="color:#037691" %)**AT+5VT=1000**
1128 1128  
1129 1129  
1299 +Means set 5V valid time to have 1000ms. So, the real 5V output will actually have 1000ms + sampling time for other sensors.
1300 +
1130 1130  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.
1131 1131  
1132 1132  
1304 +== 3.9 LEDs ==
1133 1133  
1306 +(% border="1" style="background-color:#ffffcc; color:green; width:332px" %)
1307 +|=**LEDs**|=(% style="width: 274px;" %)**Feature**
1308 +|**LED1**|(% style="width:274px" %)Blink when device transmit a packet.
1134 1134  
1135 -1.
1136 -11. LEDs
1310 +== 3.10 Switch Jumper ==
1137 1137  
1138 -|**LEDs**|**Feature**
1139 -|**LED1**|Blink when device transmit a packet.
1140 -
1141 -1.
1142 -11. Switch Jumper
1143 -
1144 -|**Switch Jumper**|**Feature**
1145 -|**SW1**|(((
1312 +(% border="1" style="background-color:#ffffcc; color:green; width:515px" %)
1313 +|=(% style="width: 124px;" %)**Switch Jumper**|=(% style="width: 388px;" %)**Feature**
1314 +|(% style="width:124px" %)**SW1**|(% style="width:388px" %)(((
1146 1146  ISP position: Upgrade firmware via UART
1147 1147  
1148 1148  Flash position: Configure device, check running status.
1149 1149  )))
1150 -|**SW2**|(((
1319 +|(% style="width:124px" %)**SW2**|(% style="width:388px" %)(((
1151 1151  5V position: set to compatible with 5v I/O.
1152 1152  
1153 1153  3.3v position: set to compatible with 3.3v I/O.,
1154 1154  )))
1155 1155  
1156 -+3.3V: is always ON
1325 +**+3.3V**: is always ON
1157 1157  
1158 -+5V: Only open before every sampling. The time is by default, it is AT+5VT=0.  Max open time. 5000 ms.
1327 +**+5V**: Only open before every sampling. The time is by default, it is AT+5VT=0.  Max open time. 5000 ms.
1159 1159  
1160 -1. Case Study
1161 1161  
1162 -User can check this URL for some case studies.
1330 += 4. Case Study =
1163 1163  
1164 -[[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]]
1332 +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]]
1165 1165  
1166 1166  
1335 += 5. Use AT Command =
1167 1167  
1337 +== 5.1 Access AT Command ==
1168 1168  
1169 -1. Use AT Command
1170 -11. Access AT Command
1171 -
1172 1172  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.
1173 1173  
1174 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]]
1341 +[[image:1654135840598-282.png]]
1175 1175  
1176 1176  
1177 -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:
1344 +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:
1178 1178  
1179 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]]
1346 +[[image:1654136105500-922.png]]
1180 1180  
1181 1181  
1349 +More detail AT Command manual can be found at [[AT Command Manual>>||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]]
1182 1182  
1183 -More detail AT Command manual can be found at [[AT Command Manual>>path:#AT_COMMAND]]
1184 1184  
1352 +== 5.2 Common AT Command Sequence ==
1185 1185  
1354 +=== 5.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ===
1186 1186  
1187 -1.
1188 -11. Common AT Command Sequence
1189 -111. Multi-channel ABP mode (Use with SX1301/LG308)
1190 -
1191 1191  If device has not joined network yet:
1192 1192  
1193 -AT+FDR
1358 +(% class="box infomessage" %)
1359 +(((
1360 +**AT+FDR**
1361 +)))
1194 1194  
1195 -AT+NJM=0
1363 +(% class="box infomessage" %)
1364 +(((
1365 +**AT+NJM=0**
1366 +)))
1196 1196  
1197 -ATZ
1368 +(% class="box infomessage" %)
1369 +(((
1370 +**ATZ**
1371 +)))
1198 1198  
1199 1199  
1200 1200  If device already joined network:
1201 1201  
1202 -AT+NJM=0
1376 +(% class="box infomessage" %)
1377 +(((
1378 +**AT+NJM=0**
1379 +)))
1203 1203  
1204 -ATZ
1381 +(% class="box infomessage" %)
1382 +(((
1383 +**ATZ**
1384 +)))
1205 1205  
1206 -1.
1207 -11.
1208 -111. Single-channel ABP mode (Use with LG01/LG02)
1209 1209  
1210 -AT+FDR   Reset Parameters to Factory Default, Keys Reserve
1387 +=== 5.5.2 Single-channel ABP mode (Use with LG01/LG02) ===
1211 1211  
1212 -AT+NJM=0 Set to ABP mode
1213 1213  
1214 -AT+ADR=0 Set the Adaptive Data Rate Off
1390 +(% style="background-color:#dcdcdc" %)**AT+FDR** (%%) Reset Parameters to Factory Default, Keys Reserve
1215 1215  
1216 -AT+DR= Set Data Rate
1392 +(% style="background-color:#dcdcdc" %)**AT+NJM=0 **(%%)Set to ABP mode
1217 1217  
1218 -AT+TDC=60000  Set transmit interval to 60 seconds
1394 +(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%)Set the Adaptive Data Rate Off
1219 1219  
1220 -AT+CHS=868400000 Set transmit frequency to 868.4Mhz
1396 +(% style="background-color:#dcdcdc" %)**AT+DR=5**  (%%)Set Data Rate
1221 1221  
1222 -AT+RX2FQ=868400000 Set RX2Frequency to 868.4Mhz (according to the result from server)
1398 +(% style="background-color:#dcdcdc" %)**AT+TDC=60000** (%%) Set transmit interval to 60 seconds
1223 1223  
1224 -AT+RX2DR= Set RX2DR to match the downlink DR from server. see below
1400 +(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) Set transmit frequency to 868.4Mhz
1225 1225  
1226 -AT+DADDR=26 01 1A F1 Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal.
1402 +(% style="background-color:#dcdcdc" %)**AT+RX2FQ=868400000** (%%) Set RX2Frequency to 868.4Mhz (according to the result from server)
1227 1227  
1228 -ATZ          Reset MCU
1404 +(% style="background-color:#dcdcdc" %)**AT+RX2DR=5**  (%%) Set RX2DR to match the downlink DR from server. see below
1229 1229  
1230 -**Note:**
1406 +(% 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.
1231 1231  
1232 -1. Make sure the device is set to ABP mode in the IoT Server.
1233 -1. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1234 -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.
1235 -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
1408 +(% style="background-color:#dcdcdc" %)**ATZ**       (%%) Reset MCU
1236 1236  
1237 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png]]
1238 1238  
1411 +(% style="color:red" %)**Note:**
1239 1239  
1240 -1. FAQ
1241 -11. How to upgrade the image?
1413 +(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server.
1414 +2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1415 +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.
1416 +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
1242 1242  
1418 +[[image:1654136435598-589.png]]
1419 +
1420 +
1421 += 6. FAQ =
1422 +
1423 +== 6.1 How to upgrade the image? ==
1424 +
1243 1243  The RS485-BL LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to RS485-BL to:
1244 1244  
1245 1245  * Support new features
... ... @@ -1248,7 +1248,7 @@
1248 1248  
1249 1249  Below shows the hardware connection for how to upload an image to RS485-BL:
1250 1250  
1251 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]]
1433 +[[image:1654136646995-976.png]]
1252 1252  
1253 1253  **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]].
1254 1254  
... ... @@ -1256,97 +1256,102 @@
1256 1256  
1257 1257  **Step3: **Open flashloader; choose the correct COM port to update.
1258 1258  
1441 +[[image:image-20220602102605-1.png]]
1259 1259  
1260 -|(((
1261 -HOLD PRO then press the RST button, SYS will be ON, then click next
1262 -)))
1263 1263  
1264 -|(((
1265 -Board detected
1266 -)))
1444 +[[image:image-20220602102637-2.png]]
1267 1267  
1268 -|(((
1269 -
1270 -)))
1271 1271  
1272 -[[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]]
1447 +[[image:image-20220602102715-3.png]]
1273 1273  
1274 1274  
1275 1275  
1276 -[[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]]
1451 +== 6.2 How to change the LoRa Frequency Bands/Region? ==
1277 1277  
1453 +(((
1454 +User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download.
1455 +)))
1278 1278  
1279 -[[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]]
1280 1280  
1281 1281  
1282 -1.
1283 -11. How to change the LoRa Frequency Bands/Region?
1459 +== 6.3 How many RS485-Slave can RS485-BL connects? ==
1284 1284  
1285 -User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download.
1461 +(((
1462 +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"]].
1463 +)))
1286 1286  
1287 1287  
1288 1288  
1289 -1.
1290 -11. How many RS485-Slave can RS485-BL connects?
1467 += 7. Trouble Shooting =
1291 1291  
1292 -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]].
1293 1293  
1470 +== 7.1 Downlink doesn’t work, how to solve it? ==
1294 1294  
1472 +Please see this link for debug: [[LoRaWAN Communication Debug>>doc:Main.LoRaWAN Communication Debug.WebHome]]
1295 1295  
1296 1296  
1297 -1. Trouble Shooting     
1298 -11. Downlink doesn’t work, how to solve it?
1475 +== 7.2 Why I can’t join TTN V3 in US915 /AU915 bands? ==
1299 1299  
1300 -Please see this link for debug:
1477 +It might about the channels mapping. Please see for detail: [[Notice of Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]]
1301 1301  
1302 -[[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]] 
1303 1303  
1480 += 8. Order Info =
1304 1304  
1482 +(% style="color:blue" %)**Part Number: RS485-BL-XXX**
1305 1305  
1306 -1.
1307 -11. Why I can’t join TTN V3 in US915 /AU915 bands?
1484 +(% style="color:blue" %)**XXX:**
1308 1308  
1309 -It might about the channels mapping. Please see for detail.
1486 +* (% style="color:blue" %)**EU433**(%%): frequency bands EU433
1487 +* (% style="color:blue" %)**EU868**(%%): frequency bands EU868
1488 +* (% style="color:blue" %)**KR920**(%%): frequency bands KR920
1489 +* (% style="color:blue" %)**CN470**(%%): frequency bands CN470
1490 +* (% style="color:blue" %)**AS923**(%%): frequency bands AS923
1491 +* (% style="color:blue" %)**AU915**(%%): frequency bands AU915
1492 +* (% style="color:blue" %)**US915**(%%): frequency bands US915
1493 +* (% style="color:blue" %)**IN865**(%%): frequency bands IN865
1494 +* (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1495 +* (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1310 1310  
1311 -[[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]]
1497 += 9. Packing Info =
1312 1312  
1313 -
1314 -
1315 -1. Order Info
1316 -
1317 -**Part Number: RS485-BL-XXX**
1318 -
1319 -**XXX:**
1320 -
1321 -* **EU433**: frequency bands EU433
1322 -* **EU868**: frequency bands EU868
1323 -* **KR920**: frequency bands KR920
1324 -* **CN470**: frequency bands CN470
1325 -* **AS923**: frequency bands AS923
1326 -* **AU915**: frequency bands AU915
1327 -* **US915**: frequency bands US915
1328 -* **IN865**: frequency bands IN865
1329 -* **RU864**: frequency bands RU864
1330 -* **KZ865: **frequency bands KZ865
1331 -
1332 -1. Packing Info
1333 -
1499 +(((
1334 1334  **Package Includes**:
1501 +)))
1335 1335  
1336 -* RS485-BL x 1
1337 -* Stick Antenna for LoRa RF part x 1
1338 -* Program cable x 1
1503 +* (((
1504 +RS485-BL x 1
1505 +)))
1506 +* (((
1507 +Stick Antenna for LoRa RF part x 1
1508 +)))
1509 +* (((
1510 +Program cable x 1
1511 +)))
1339 1339  
1513 +(((
1340 1340  **Dimension and weight**:
1515 +)))
1341 1341  
1342 -* Device Size: 13.5 x 7 x 3 cm
1343 -* Device Weight: 105g
1344 -* Package Size / pcs : 14.5 x 8 x 5 cm
1345 -* Weight / pcs : 170g
1517 +* (((
1518 +Device Size: 13.5 x 7 x 3 cm
1519 +)))
1520 +* (((
1521 +Device Weight: 105g
1522 +)))
1523 +* (((
1524 +Package Size / pcs : 14.5 x 8 x 5 cm
1525 +)))
1526 +* (((
1527 +Weight / pcs : 170g
1346 1346  
1347 -1. Support
1529 +
1530 +)))
1348 1348  
1349 -* 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.
1350 -* 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
1532 += 10. Support =
1351 1351  
1352 -[[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]]
1534 +* (((
1535 +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.
1536 +)))
1537 +* (((
1538 +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]]
1539 +)))
1654134704555-320.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +91.4 KB
Content
1654135840598-282.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +1.3 MB
Content
1654136105500-922.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +203.7 KB
Content
1654136435598-589.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +158.9 KB
Content
1654136646995-976.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +1.3 MB
Content
image-20220602102605-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +102.6 KB
Content
image-20220602102637-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +250.8 KB
Content
image-20220602102715-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +176.2 KB
Content
image-20220606105412-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +13.9 KB
Content