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

From version 40.22
edited by Xiaoling
on 2022/06/06 09:46
Change comment: There is no comment for this version
To version 41.2
edited by Xiaoling
on 2022/06/06 10:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -94,8 +94,6 @@
94 94  * 127 dB Dynamic Range RSSI.
95 95  * Automatic RF Sense and CAD with ultra-fast AFC. ​​​
96 96  
97 -
98 -
99 99  == 1.3 Features ==
100 100  
101 101  * LoRaWAN Class A & Class C protocol (default Class A)
... ... @@ -107,8 +107,6 @@
107 107  * Support Modbus protocol
108 108  * Support Interrupt uplink
109 109  
110 -
111 -
112 112  == 1.4 Applications ==
113 113  
114 114  * Smart Buildings & Home Automation
... ... @@ -118,8 +118,6 @@
118 118  * Smart Cities
119 119  * Smart Factory
120 120  
121 -
122 -
123 123  == 1.5 Firmware Change log ==
124 124  
125 125  [[RS485-BL Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/RS485-BL/Firmware/||style="background-color: rgb(255, 255, 255);"]]
... ... @@ -130,29 +130,47 @@
130 130  (((
131 131  
132 132  
127 +(((
133 133  v1.4
134 134  )))
130 +)))
135 135  
136 136  (((
133 +(((
137 137  ~1. Change Power IC to TPS22916
138 138  )))
136 +)))
139 139  
138 +(((
139 +
140 +)))
140 140  
141 141  (((
143 +(((
142 142  v1.3
143 143  )))
146 +)))
144 144  
145 145  (((
149 +(((
146 146  ~1. Change JP3 from KF350-8P to KF350-11P, Add one extra interface for I2C and one extra interface for one-wire
147 147  )))
152 +)))
148 148  
154 +(((
155 +
156 +)))
149 149  
150 150  (((
159 +(((
151 151  v1.2
152 152  )))
162 +)))
153 153  
154 154  (((
165 +(((
155 155  Release version ​​​​​
167 +)))
156 156  
157 157  
158 158  )))
... ... @@ -246,81 +246,129 @@
246 246  
247 247  === 3.3.1 onfigure UART settings for RS485 or TTL communication ===
248 248  
261 +(((
249 249  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
263 +)))
250 250  
265 +(((
251 251  **~1. RS485-MODBUS mode:**
267 +)))
252 252  
269 +(((
253 253  AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins.
271 +)))
254 254  
273 +(((
255 255  **2. TTL mode:**
275 +)))
256 256  
277 +(((
257 257  AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins.
279 +)))
258 258  
281 +(((
259 259  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 +)))
260 260  
261 -(% border="1" style="background-color:#ffffcc; color:green; width:795px" %)
262 -|(((
285 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
286 +|=(% style="width: 120px;" %)(((
287 +(((
263 263  **AT Commands**
264 -)))|(% style="width:285px" %)(((
289 +)))
290 +)))|=(% style="width: 190px;" %)(((
291 +(((
265 265  **Description**
266 -)))|(% style="width:347px" %)(((
293 +)))
294 +)))|=(% style="width: 190px;" %)(((
295 +(((
267 267  **Example**
268 268  )))
269 -|(((
298 +)))
299 +|(% style="width:120px" %)(((
300 +(((
270 270  AT+BAUDR
271 -)))|(% style="width:285px" %)(((
302 +)))
303 +)))|(% style="width:190px" %)(((
304 +(((
272 272  Set the baud rate (for RS485 connection). Default Value is: 9600.
273 -)))|(% style="width:347px" %)(((
306 +)))
307 +)))|(% style="width:190px" %)(((
274 274  (((
309 +(((
275 275  AT+BAUDR=9600
276 276  )))
312 +)))
277 277  
278 278  (((
315 +(((
279 279  Options: (1200,2400,4800,14400,19200,115200)
280 280  )))
281 281  )))
282 -|(((
319 +)))
320 +|(% style="width:120px" %)(((
321 +(((
283 283  AT+PARITY
284 -)))|(% style="width:285px" %)(((
323 +)))
324 +)))|(% style="width:190px" %)(((
285 285  (((
326 +(((
286 286  Set UART parity (for RS485 connection)
287 287  )))
329 +)))
288 288  
289 289  (((
332 +(((
290 290  Default Value is: no parity.
291 291  )))
292 -)))|(% style="width:347px" %)(((
335 +)))
336 +)))|(% style="width:190px" %)(((
293 293  (((
338 +(((
294 294  AT+PARITY=0
295 295  )))
341 +)))
296 296  
297 297  (((
344 +(((
298 298  Option: 0: no parity, 1: odd parity, 2: even parity
299 299  )))
300 300  )))
301 -|(((
348 +)))
349 +|(% style="width:120px" %)(((
350 +(((
302 302  AT+STOPBIT
303 -)))|(% style="width:285px" %)(((
352 +)))
353 +)))|(% style="width:190px" %)(((
304 304  (((
355 +(((
305 305  Set serial stopbit (for RS485 connection)
306 306  )))
358 +)))
307 307  
308 308  (((
361 +(((
309 309  Default Value is: 1bit.
310 310  )))
311 -)))|(% style="width:347px" %)(((
364 +)))
365 +)))|(% style="width:190px" %)(((
312 312  (((
367 +(((
313 313  AT+STOPBIT=0 for 1bit
314 314  )))
370 +)))
315 315  
316 316  (((
373 +(((
317 317  AT+STOPBIT=1 for 1.5 bit
318 318  )))
376 +)))
319 319  
320 320  (((
379 +(((
321 321  AT+STOPBIT=2 for 2 bits
322 322  )))
323 323  )))
383 +)))
324 324  
325 325  
326 326  
... ... @@ -334,19 +334,20 @@
334 334  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.
335 335  )))
336 336  
337 -(% border="1" style="background-color:#ffffcc; color:green; width:806px" %)
338 -|**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example**
339 -|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" %)(((
340 340  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
341 341  
342 342  AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,
343 343  
344 344  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
345 -)))|(% 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
346 346  
347 347  Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>||anchor="HRS485DebugCommand28AT2BCFGDEV29"]].
348 348  
349 349  
410 +
350 350  === 3.3.3 Configure read commands for each sampling ===
351 351  
352 352  (((
... ... @@ -413,117 +413,209 @@
413 413  After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**.
414 414  )))
415 415  
477 +(((
416 416  **Examples:**
479 +)))
417 417  
481 +(((
418 418  Below are examples for the how above AT Commands works.
483 +)))
419 419  
485 +(((
420 420  **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is:
487 +)))
421 421  
422 -(% 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" %)
423 423  |(% style="width:498px" %)(((
491 +(((
424 424  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
493 +)))
425 425  
495 +(((
426 426  **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent**
497 +)))
427 427  
499 +(((
428 428  **m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command**
429 429  )))
502 +)))
430 430  
504 +(((
431 431  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 +)))
432 432  
508 +(((
433 433  In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same.
510 +)))
434 434  
512 +(((
435 435  **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx.
514 +)))
436 436  
437 -(% 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" %)
438 438  |(% style="width:577px" %)(((
518 +(((
439 439  **AT+SEARCHx=aa,xx xx xx xx xx**
520 +)))
440 440  
441 -* **aa: 1: prefix match mode; 2: prefix and suffix match mode**
442 -* **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**
443 443  )))
525 +* (((
526 +**xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
527 +)))
528 +)))
444 444  
530 +(((
445 445  **Examples:**
532 +)))
446 446  
534 +(((
447 447  1)For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
536 +)))
448 448  
538 +(((
449 449  If we set AT+SEARCH1=1,1E 56 34.      (max 5 bytes for prefix)
540 +)))
450 450  
542 +(((
451 451  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 +)))
452 452  
546 +(((
453 453  [[image:1653271044481-711.png]]
548 +)))
454 454  
550 +(((
455 455  2)For a return string from AT+COMMAND1:  16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
552 +)))
456 456  
554 +(((
457 457  If we set AT+SEARCH1=2, 1E 56 34+31 00 49
556 +)))
458 458  
558 +(((
459 459  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 +)))
460 460  
562 +(((
461 461  [[image:1653271276735-972.png]]
564 +)))
462 462  
566 +(((
463 463  **AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes.
568 +)))
464 464  
465 -(% style="background-color:#4f81bd; color:white; width:729px" %)
570 +(% style="background-color:#4f81bd; color:white; width:510px" %)
466 466  |(% style="width:726px" %)(((
572 +(((
467 467  **AT+DATACUTx=a,b,c**
574 +)))
468 468  
469 -* **a: length for the return of AT+COMMAND**
470 -* **b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.**
471 -* **c: define the position for valid value.  **
576 +* (((
577 +**a: length for the return of AT+COMMAND**
472 472  )))
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 +)))
473 473  
587 +(((
474 474  **Examples:**
589 +)))
475 475  
476 -* Grab bytes:
591 +* (((
592 +Grab bytes:
593 +)))
477 477  
595 +(((
478 478  [[image:1653271581490-837.png||height="313" width="722"]]
597 +)))
479 479  
599 +(((
600 +
601 +)))
480 480  
481 -* Grab a section.
603 +* (((
604 +Grab a section.
605 +)))
482 482  
607 +(((
483 483  [[image:1653271648378-342.png||height="326" width="720"]]
609 +)))
484 484  
611 +(((
612 +
613 +)))
485 485  
486 -* Grab different sections.
615 +* (((
616 +Grab different sections.
617 +)))
487 487  
619 +(((
488 488  [[image:1653271657255-576.png||height="305" width="730"]]
621 +)))
489 489  
490 490  (((
624 +(((
491 491  (% style="color:red" %)**Note:**
492 492  )))
627 +)))
493 493  
494 494  (((
630 +(((
495 495  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.
496 496  )))
633 +)))
497 497  
498 498  (((
636 +(((
499 499  **Example:**
500 500  )))
639 +)))
501 501  
502 502  (((
642 +(((
503 503  (% style="color:red" %)AT+COMMAND1=11 01 1E D0,0
504 504  )))
645 +)))
505 505  
506 506  (((
648 +(((
507 507  (% style="color:red" %)AT+SEARCH1=1,1E 56 34
508 508  )))
651 +)))
509 509  
510 510  (((
654 +(((
511 511  (% style="color:red" %)AT+DATACUT1=0,2,1~~5
512 512  )))
657 +)))
513 513  
514 514  (((
660 +(((
515 515  (% style="color:red" %)Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
516 516  )))
663 +)))
517 517  
518 518  (((
666 +(((
519 519  (% style="color:red" %)String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49
520 520  )))
669 +)))
521 521  
522 522  (((
672 +(((
523 523  (% style="color:red" %)Valid payload after DataCUT command: 2e 30 58 5f 36
524 524  )))
675 +)))
525 525  
677 +(((
526 526  [[image:1653271763403-806.png]]
679 +)))
527 527  
528 528  
529 529  === 3.3.4 Compose the uplink payload ===
... ... @@ -530,10 +530,14 @@
530 530  
531 531  (((
532 532  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 +
533 533  )))
534 534  
535 535  (((
536 536  (% style="color:#037691" %)**Examples: AT+DATAUP=0**
692 +
693 +
537 537  )))
538 538  
539 539  (((
... ... @@ -666,26 +666,8 @@
666 666  
667 667  == 3.4 Uplink Payload ==
668 668  
669 -(% border="1" style="background-color:#4f81bd; color:white; width:850px" %)
670 -|**Size(bytes)**|(% style="width:130px" %)**2**|(% style="width:93px" %)**1**|(% style="width:509px" %)**Length depends on the return from the commands**
671 -|Value|(% style="width:130px" %)(((
672 -(((
673 -Battery(mV)
674 -)))
826 +[[image:image-20220606105412-1.png]]
675 675  
676 -(((
677 -&
678 -)))
679 -
680 -(((
681 -Interrupt _Flag
682 -)))
683 -)))|(% style="width:93px" %)(((
684 -PAYLOAD_VER
685 -
686 -
687 -)))|(% 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.
688 -
689 689  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
690 690  
691 691  (((
... ... @@ -751,8 +751,6 @@
751 751  
752 752  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-BL.  User can see these commands below:
753 753  
754 -
755 -
756 756  === 3.5.1 Common Commands: ===
757 757  
758 758  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]]
... ... @@ -1112,8 +1112,6 @@
1112 1112  |=(% style="width: 89px;" %)**Button**|=(% style="width: 141px;" %)**Feature**
1113 1113  |(% style="width:89px" %)**RST**|(% style="width:141px" %)Reboot RS485-BL
1114 1114  
1115 -
1116 -
1117 1117  == 3.7 +3V3 Output ==
1118 1118  
1119 1119  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
... ... @@ -1154,8 +1154,6 @@
1154 1154  |=**LEDs**|=(% style="width: 274px;" %)**Feature**
1155 1155  |**LED1**|(% style="width:274px" %)Blink when device transmit a packet.
1156 1156  
1157 -
1158 -
1159 1159  == 3.10 Switch Jumper ==
1160 1160  
1161 1161  (% border="1" style="background-color:#ffffcc; color:green; width:515px" %)
... ... @@ -1195,7 +1195,7 @@
1195 1195  [[image:1654136105500-922.png]]
1196 1196  
1197 1197  
1198 -More detail AT Command manual can be found at [[AT Command Manual>>||anchor="3.5ConfigureRS485-BLviaATorDownlink"]]
1331 +More detail AT Command manual can be found at [[AT Command Manual>>||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]]
1199 1199  
1200 1200  
1201 1201  == 5.2 Common AT Command Sequence ==
... ... @@ -1299,13 +1299,17 @@
1299 1299  
1300 1300  == 6.2 How to change the LoRa Frequency Bands/Region? ==
1301 1301  
1435 +(((
1302 1302  User can follow the introduction for [[how to upgrade image>>||anchor="H6.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download.
1437 +)))
1303 1303  
1304 1304  
1305 1305  
1306 1306  == 6.3 How many RS485-Slave can RS485-BL connects? ==
1307 1307  
1443 +(((
1308 1308  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"]].
1445 +)))
1309 1309  
1310 1310  
1311 1311  
... ... @@ -1339,7 +1339,6 @@
1339 1339  * (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1340 1340  * (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1341 1341  
1342 -
1343 1343  = 9. Packing Info =
1344 1344  
1345 1345  (((
... ... @@ -1377,5 +1377,9 @@
1377 1377  
1378 1378  = 10. Support =
1379 1379  
1380 -* 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.
1381 -* 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]]
1516 +* (((
1517 +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.
1518 +)))
1519 +* (((
1520 +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]]
1521 +)))
image-20220606105412-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +13.9 KB
Content