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

From version 40.15
edited by Xiaoling
on 2022/06/06 09:36
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
... ... @@ -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
... ... @@ -128,29 +128,47 @@
128 128  (((
129 129  
130 130  
127 +(((
131 131  v1.4
132 132  )))
130 +)))
133 133  
134 134  (((
133 +(((
135 135  ~1. Change Power IC to TPS22916
136 136  )))
136 +)))
137 137  
138 +(((
139 +
140 +)))
138 138  
139 139  (((
143 +(((
140 140  v1.3
141 141  )))
146 +)))
142 142  
143 143  (((
149 +(((
144 144  ~1. Change JP3 from KF350-8P to KF350-11P, Add one extra interface for I2C and one extra interface for one-wire
145 145  )))
152 +)))
146 146  
154 +(((
155 +
156 +)))
147 147  
148 148  (((
159 +(((
149 149  v1.2
150 150  )))
162 +)))
151 151  
152 152  (((
165 +(((
153 153  Release version ​​​​​
167 +)))
154 154  
155 155  
156 156  )))
... ... @@ -244,82 +244,132 @@
244 244  
245 245  === 3.3.1 onfigure UART settings for RS485 or TTL communication ===
246 246  
261 +(((
247 247  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
263 +)))
248 248  
265 +(((
249 249  **~1. RS485-MODBUS mode:**
267 +)))
250 250  
269 +(((
251 251  AT+MOD=1 ~/~/ Support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins.
271 +)))
252 252  
273 +(((
253 253  **2. TTL mode:**
275 +)))
254 254  
277 +(((
255 255  AT+MOD=2 ~/~/ Support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins.
279 +)))
256 256  
281 +(((
257 257  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 +)))
258 258  
259 -(% border="1" style="background-color:#ffffcc; color:green; width:795px" %)
260 -|(((
285 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
286 +|=(% style="width: 120px;" %)(((
287 +(((
261 261  **AT Commands**
262 -)))|(% style="width:285px" %)(((
289 +)))
290 +)))|=(% style="width: 190px;" %)(((
291 +(((
263 263  **Description**
264 -)))|(% style="width:347px" %)(((
293 +)))
294 +)))|=(% style="width: 190px;" %)(((
295 +(((
265 265  **Example**
266 266  )))
267 -|(((
298 +)))
299 +|(% style="width:120px" %)(((
300 +(((
268 268  AT+BAUDR
269 -)))|(% style="width:285px" %)(((
302 +)))
303 +)))|(% style="width:190px" %)(((
304 +(((
270 270  Set the baud rate (for RS485 connection). Default Value is: 9600.
271 -)))|(% style="width:347px" %)(((
306 +)))
307 +)))|(% style="width:190px" %)(((
272 272  (((
309 +(((
273 273  AT+BAUDR=9600
274 274  )))
312 +)))
275 275  
276 276  (((
315 +(((
277 277  Options: (1200,2400,4800,14400,19200,115200)
278 278  )))
279 279  )))
280 -|(((
319 +)))
320 +|(% style="width:120px" %)(((
321 +(((
281 281  AT+PARITY
282 -)))|(% style="width:285px" %)(((
323 +)))
324 +)))|(% style="width:190px" %)(((
283 283  (((
326 +(((
284 284  Set UART parity (for RS485 connection)
285 285  )))
329 +)))
286 286  
287 287  (((
332 +(((
288 288  Default Value is: no parity.
289 289  )))
290 -)))|(% style="width:347px" %)(((
335 +)))
336 +)))|(% style="width:190px" %)(((
291 291  (((
338 +(((
292 292  AT+PARITY=0
293 293  )))
341 +)))
294 294  
295 295  (((
344 +(((
296 296  Option: 0: no parity, 1: odd parity, 2: even parity
297 297  )))
298 298  )))
299 -|(((
348 +)))
349 +|(% style="width:120px" %)(((
350 +(((
300 300  AT+STOPBIT
301 -)))|(% style="width:285px" %)(((
352 +)))
353 +)))|(% style="width:190px" %)(((
302 302  (((
355 +(((
303 303  Set serial stopbit (for RS485 connection)
304 304  )))
358 +)))
305 305  
306 306  (((
361 +(((
307 307  Default Value is: 1bit.
308 308  )))
309 -)))|(% style="width:347px" %)(((
364 +)))
365 +)))|(% style="width:190px" %)(((
310 310  (((
367 +(((
311 311  AT+STOPBIT=0 for 1bit
312 312  )))
370 +)))
313 313  
314 314  (((
373 +(((
315 315  AT+STOPBIT=1 for 1.5 bit
316 316  )))
376 +)))
317 317  
318 318  (((
379 +(((
319 319  AT+STOPBIT=2 for 2 bits
320 320  )))
321 321  )))
383 +)))
322 322  
385 +
386 +
323 323  === 3.3.2 Configure sensors ===
324 324  
325 325  (((
... ... @@ -330,19 +330,20 @@
330 330  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.
331 331  )))
332 332  
333 -(% border="1" style="background-color:#ffffcc; color:green; width:806px" %)
334 -|**AT Commands**|(% style="width:418px" %)**Description**|(% style="width:256px" %)**Example**
335 -|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" %)(((
336 336  This command is used to configure the RS485/TTL devices; they won’t be used during sampling.
337 337  
338 338  AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,
339 339  
340 340  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
341 -)))|(% 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
342 342  
343 343  Detail of AT+CFGDEV command see [[AT+CFGDEV detail>>||anchor="HRS485DebugCommand28AT2BCFGDEV29"]].
344 344  
345 345  
410 +
346 346  === 3.3.3 Configure read commands for each sampling ===
347 347  
348 348  (((
... ... @@ -409,117 +409,209 @@
409 409  After we got the valid value from each RS485 commands, we need to combine them together with the command **AT+DATAUP**.
410 410  )))
411 411  
477 +(((
412 412  **Examples:**
479 +)))
413 413  
481 +(((
414 414  Below are examples for the how above AT Commands works.
483 +)))
415 415  
485 +(((
416 416  **AT+COMMANDx : **This command will be sent to RS485/TTL devices during each sampling, Max command length is 14 bytes. The grammar is:
487 +)))
417 417  
418 -(% 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" %)
419 419  |(% style="width:498px" %)(((
491 +(((
420 420  **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m**
493 +)))
421 421  
495 +(((
422 422  **xx xx xx xx xx xx xx xx xx xx xx xx: The RS485 command to be sent**
497 +)))
423 423  
499 +(((
424 424  **m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command**
425 425  )))
502 +)))
426 426  
504 +(((
427 427  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 +)))
428 428  
508 +(((
429 429  In the RS485-BL, we should use this command AT+COMMAND1=01 03 0B B8 00 02,1 for the same.
510 +)))
430 430  
512 +(((
431 431  **AT+SEARCHx**: This command defines how to handle the return from AT+COMMANDx.
514 +)))
432 432  
433 -(% 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" %)
434 434  |(% style="width:577px" %)(((
518 +(((
435 435  **AT+SEARCHx=aa,xx xx xx xx xx**
520 +)))
436 436  
437 -* **aa: 1: prefix match mode; 2: prefix and suffix match mode**
438 -* **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**
439 439  )))
525 +* (((
526 +**xx xx xx xx xx: match string. Max 5 bytes for prefix and 5 bytes for suffix**
527 +)))
528 +)))
440 440  
530 +(((
441 441  **Examples:**
532 +)))
442 442  
534 +(((
443 443  1)For a return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
536 +)))
444 444  
538 +(((
445 445  If we set AT+SEARCH1=1,1E 56 34.      (max 5 bytes for prefix)
540 +)))
446 446  
542 +(((
447 447  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 +)))
448 448  
546 +(((
449 449  [[image:1653271044481-711.png]]
548 +)))
450 450  
550 +(((
451 451  2)For a return string from AT+COMMAND1:  16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
552 +)))
452 452  
554 +(((
453 453  If we set AT+SEARCH1=2, 1E 56 34+31 00 49
556 +)))
454 454  
558 +(((
455 455  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 +)))
456 456  
562 +(((
457 457  [[image:1653271276735-972.png]]
564 +)))
458 458  
566 +(((
459 459  **AT+DATACUTx : **This command defines how to handle the return from AT+COMMANDx, max return length is 45 bytes.
568 +)))
460 460  
461 -(% style="background-color:#4f81bd; color:white; width:729px" %)
570 +(% style="background-color:#4f81bd; color:white; width:510px" %)
462 462  |(% style="width:726px" %)(((
572 +(((
463 463  **AT+DATACUTx=a,b,c**
574 +)))
464 464  
465 -* **a: length for the return of AT+COMMAND**
466 -* **b:1: grab valid value by byte, max 6 bytes. 2: grab valid value by bytes section, max 3 sections.**
467 -* **c: define the position for valid value.  **
576 +* (((
577 +**a: length for the return of AT+COMMAND**
468 468  )))
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 +)))
469 469  
587 +(((
470 470  **Examples:**
589 +)))
471 471  
472 -* Grab bytes:
591 +* (((
592 +Grab bytes:
593 +)))
473 473  
595 +(((
474 474  [[image:1653271581490-837.png||height="313" width="722"]]
597 +)))
475 475  
599 +(((
600 +
601 +)))
476 476  
477 -* Grab a section.
603 +* (((
604 +Grab a section.
605 +)))
478 478  
607 +(((
479 479  [[image:1653271648378-342.png||height="326" width="720"]]
609 +)))
480 480  
611 +(((
612 +
613 +)))
481 481  
482 -* Grab different sections.
615 +* (((
616 +Grab different sections.
617 +)))
483 483  
619 +(((
484 484  [[image:1653271657255-576.png||height="305" width="730"]]
621 +)))
485 485  
486 486  (((
624 +(((
487 487  (% style="color:red" %)**Note:**
488 488  )))
627 +)))
489 489  
490 490  (((
630 +(((
491 491  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.
492 492  )))
633 +)))
493 493  
494 494  (((
636 +(((
495 495  **Example:**
496 496  )))
639 +)))
497 497  
498 498  (((
642 +(((
499 499  (% style="color:red" %)AT+COMMAND1=11 01 1E D0,0
500 500  )))
645 +)))
501 501  
502 502  (((
648 +(((
503 503  (% style="color:red" %)AT+SEARCH1=1,1E 56 34
504 504  )))
651 +)))
505 505  
506 506  (((
654 +(((
507 507  (% style="color:red" %)AT+DATACUT1=0,2,1~~5
508 508  )))
657 +)))
509 509  
510 510  (((
660 +(((
511 511  (% style="color:red" %)Return string from AT+COMMAND1: 16 0c 1e 56 34 2e 30 58 5f 36 41 30 31 00 49
512 512  )))
663 +)))
513 513  
514 514  (((
666 +(((
515 515  (% style="color:red" %)String after SEARCH command: 2e 30 58 5f 36 41 30 31 00 49
516 516  )))
669 +)))
517 517  
518 518  (((
672 +(((
519 519  (% style="color:red" %)Valid payload after DataCUT command: 2e 30 58 5f 36
520 520  )))
675 +)))
521 521  
677 +(((
522 522  [[image:1653271763403-806.png]]
679 +)))
523 523  
524 524  
525 525  === 3.3.4 Compose the uplink payload ===
... ... @@ -526,10 +526,14 @@
526 526  
527 527  (((
528 528  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 +
529 529  )))
530 530  
531 531  (((
532 532  (% style="color:#037691" %)**Examples: AT+DATAUP=0**
692 +
693 +
533 533  )))
534 534  
535 535  (((
... ... @@ -725,7 +725,7 @@
725 725  )))
726 726  
727 727  (((
728 -}
889 +**}**
729 729  
730 730  
731 731  )))
... ... @@ -747,8 +747,6 @@
747 747  
748 748  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-BL.  User can see these commands below:
749 749  
750 -
751 -
752 752  === 3.5.1 Common Commands: ===
753 753  
754 754  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]]
... ... @@ -1003,6 +1003,7 @@
1003 1003  
1004 1004  
1005 1005  
1165 +
1006 1006  ==== **Manually trigger an Uplink** ====
1007 1007  
1008 1008  Ask device to send an uplink immediately.
... ... @@ -1013,6 +1013,7 @@
1013 1013  
1014 1014  
1015 1015  
1176 +
1016 1016  ==== **Clear RS485 Command** ====
1017 1017  
1018 1018  The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
... ... @@ -1099,6 +1099,7 @@
1099 1099  **07 02 aa bb**  Same as AT+3V3T=(aa bb)
1100 1100  
1101 1101  
1263 +
1102 1102  == 3.6 Buttons ==
1103 1103  
1104 1104  (% border="1" style="background-color:#ffffcc; color:green; width:233px" %)
... ... @@ -1105,8 +1105,6 @@
1105 1105  |=(% style="width: 89px;" %)**Button**|=(% style="width: 141px;" %)**Feature**
1106 1106  |(% style="width:89px" %)**RST**|(% style="width:141px" %)Reboot RS485-BL
1107 1107  
1108 -
1109 -
1110 1110  == 3.7 +3V3 Output ==
1111 1111  
1112 1112  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
... ... @@ -1147,8 +1147,6 @@
1147 1147  |=**LEDs**|=(% style="width: 274px;" %)**Feature**
1148 1148  |**LED1**|(% style="width:274px" %)Blink when device transmit a packet.
1149 1149  
1150 -
1151 -
1152 1152  == 3.10 Switch Jumper ==
1153 1153  
1154 1154  (% border="1" style="background-color:#ffffcc; color:green; width:515px" %)
... ... @@ -1188,7 +1188,7 @@
1188 1188  [[image:1654136105500-922.png]]
1189 1189  
1190 1190  
1191 -More detail AT Command manual can be found at [[AT Command Manual>>||anchor="3.5ConfigureRS485-BLviaATorDownlink"]]
1349 +More detail AT Command manual can be found at [[AT Command Manual>>||anchor="H3.5ConfigureRS485-BLviaATorDownlink"]]
1192 1192  
1193 1193  
1194 1194  == 5.2 Common AT Command Sequence ==
... ... @@ -1292,13 +1292,17 @@
1292 1292  
1293 1293  == 6.2 How to change the LoRa Frequency Bands/Region? ==
1294 1294  
1453 +(((
1295 1295  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 +)))
1296 1296  
1297 1297  
1298 1298  
1299 1299  == 6.3 How many RS485-Slave can RS485-BL connects? ==
1300 1300  
1461 +(((
1301 1301  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 +)))
1302 1302  
1303 1303  
1304 1304  
... ... @@ -1332,7 +1332,6 @@
1332 1332  * (% style="color:blue" %)**RU864**(%%): frequency bands RU864
1333 1333  * (% style="color:blue" %)**KZ865**(%%): frequency bands KZ865
1334 1334  
1335 -
1336 1336  = 9. Packing Info =
1337 1337  
1338 1338  (((
... ... @@ -1370,5 +1370,9 @@
1370 1370  
1371 1371  = 10. Support =
1372 1372  
1373 -* 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.
1374 -* 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]]
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 +)))
image-20220606105412-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +13.9 KB
Content