<
From version < 39.1 >
edited by Xiaoling
on 2022/06/02 16:33
To version < 37.1 >
edited by Xiaoling
on 2022/06/02 16:06
>
Change comment: Uploaded new attachment "1654157178836-407.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -446,68 +446,119 @@
446 446  
447 447  Below are the uplink payloads:
448 448  
449 -[[image:1654157178836-407.png]]
449 +[[image:1653270130359-810.png]]
450 450  
451 451  
452 +(% style="color:red" %)**Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:**
453 +
454 + ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink ( so 51 -5 = 46 max valid date)
455 +
456 + * For AU915/AS923 bands, if UplinkDwell time=1, max 11 bytes for each uplink ( so 11 -5 = 6 max valid date).
457 +
458 + * For US915 band, max 11 bytes for each uplink ( so 11 -5 = 6 max valid date).
459 +
460 + ~* For all other bands: max 51 bytes for each uplink  ( so 51 -5 = 46 max valid date).
461 +
452 452  === 3.3.5 Uplink on demand ===
453 453  
454 -Except uplink periodically, RS485-LN is able to uplink on demand. The server send downlink command to RS485-LN and RS485 will uplink data base on the command.
464 +Except uplink periodically, RS485-BL is able to uplink on demand. The server sends downlink command to RS485-BL and RS485 will uplink data base on the command.
455 455  
456 456  Downlink control command:
457 457  
458 -**0x08 command**: Poll an uplink with current command set in RS485-LN.
468 +[[0x08 command>>path:#downlink_08]]: Poll an uplink with current command set in RS485-BL.
459 459  
460 -**0xA8 command**: Send a command to RS485-LN and uplink the output from sensors.
470 +[[0xA8 command>>path:#downlink_A8]]: Send a command to RS485-BL and uplink the output from sensors.
461 461  
462 462  
463 463  
464 -=== 3.3.6 Uplink on Interrupt ===
474 +1.
475 +11.
476 +111. Uplink on Interrupt
465 465  
466 -RS485-LN support external Interrupt uplink since hardware v1.2 release.
478 +Put the interrupt sensor between 3.3v_out and GPIO ext.[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]]
467 467  
468 -[[image:1654157342174-798.png]]
480 +AT+INTMOD=0  Disable Interrupt
469 469  
470 -Connect the Interrupt pin to RS485-LN INT port and connect the GND pin to V- port. When there is a high voltage (Max 24v) on INT pin. Device will send an uplink packet.
482 +AT+INTMOD=1  Interrupt trigger by rising or falling edge.
471 471  
484 +AT+INTMOD=2  Interrupt trigger by falling edge. ( Default Value)
472 472  
473 -== 3.4 Uplink Payload ==
486 +AT+INTMOD=3  Interrupt trigger by rising edge.
474 474  
475 -(% border="1" style="background-color:#4bacc6; color:white; width:734px" %)
476 -|**Size(bytes)**|(% style="width:120px" %)**2**|(% style="width:116px" %)**1**|(% style="width:386px" %)**Length depends on the return from the commands**
477 -|Value|(% style="width:120px" %)(((
488 +
489 +1.
490 +11. Uplink Payload
491 +
492 +|**Size(bytes)**|**2**|**1**|**Length depends on the return from the commands**
493 +|Value|(((
478 478  Battery(mV)
479 479  
480 480  &
481 481  
482 482  Interrupt _Flag
483 -)))|(% style="width:116px" %)(((
499 +)))|(((
484 484  PAYLOAD_VER
485 485  
486 486  
487 -)))|(% style="width:386px" %)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.
503 +)))|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.
488 488  
489 489  Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors.
490 490  
491 491  
492 -== 3.5 Configure RS485-BL via AT or Downlink ==
508 +function Decoder(bytes, port) {
493 493  
494 -User can configure RS485-LN via AT Commands or LoRaWAN Downlink Commands
510 +~/~/Payload Formats of RS485-BL Deceive
495 495  
496 -There are two kinds of Commands:
512 +return {
497 497  
498 -* (% 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]]
514 + ~/~/Battery,units:V
499 499  
500 -* (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-LN.  User can see these commands below:
516 + BatV:((bytes[0]<<8 | bytes[1])&0x7fff)/1000,
501 501  
518 + ~/~/GPIO_EXTI 
502 502  
520 + EXTI_Trigger:(bytes[0] & 0x80)? "TRUE":"FALSE",
503 503  
504 -=== 3.5.1 Common Commands ===
522 + ~/~/payload of version
505 505  
506 -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]]
524 + Pay_ver:bytes[2],
507 507  
526 + };
508 508  
509 -=== 3.5.2 Sensor related commands: ===
528 + }
510 510  
530 +
531 +
532 +
533 +
534 +
535 +
536 +TTN V3 uplink screen shot.
537 +
538 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]]
539 +
540 +1.
541 +11. Configure RS485-BL via AT or Downlink
542 +
543 +User can configure RS485-BL via [[AT Commands >>path:#_​Using_the_AT]]or LoRaWAN Downlink Commands
544 +
545 +There are two kinds of Commands:
546 +
547 +* **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: http:~/~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands
548 +
549 +* **Sensor Related Commands**: These commands are special designed for RS485-BL.  User can see these commands below:
550 +
551 +1.
552 +11.
553 +111. Common Commands:
554 +
555 +They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[http:~~/~~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands>>url:http://wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands]]
556 +
557 +
558 +1.
559 +11.
560 +111. Sensor related commands:
561 +
511 511  ==== Choose Device Type (RS485 or TTL) ====
512 512  
513 513  RS485-BL can connect to either RS485 sensors or TTL sensor. User need to specify what type of sensor need to connect.
... ... @@ -811,13 +811,13 @@
811 811  
812 812  
813 813  
814 -1.
865 +1.
815 815  11. Buttons
816 816  
817 817  |**Button**|**Feature**
818 818  |**RST**|Reboot RS485-BL
819 819  
820 -1.
871 +1.
821 821  11. +3V3 Output
822 822  
823 823  RS485-BL has a Controllable +3V3 output, user can use this output to power external sensor.
... ... @@ -835,7 +835,7 @@
835 835  By default, the AT+3V3T=0. This is a special case, means the +3V3 output is always on at any time
836 836  
837 837  
838 -1.
889 +1.
839 839  11. +5V Output
840 840  
841 841  RS485-BL has a Controllable +5V output, user can use this output to power external sensor.
... ... @@ -855,13 +855,13 @@
855 855  
856 856  
857 857  
858 -1.
909 +1.
859 859  11. LEDs
860 860  
861 861  |**LEDs**|**Feature**
862 862  |**LED1**|Blink when device transmit a packet.
863 863  
864 -1.
915 +1.
865 865  11. Switch Jumper
866 866  
867 867  |**Switch Jumper**|**Feature**
... ... @@ -907,7 +907,7 @@
907 907  
908 908  
909 909  
910 -1.
961 +1.
911 911  11. Common AT Command Sequence
912 912  111. Multi-channel ABP mode (Use with SX1301/LG308)
913 913  
... ... @@ -926,8 +926,8 @@
926 926  
927 927  ATZ
928 928  
929 -1.
930 -11.
980 +1.
981 +11.
931 931  111. Single-channel ABP mode (Use with LG01/LG02)
932 932  
933 933  AT+FDR   Reset Parameters to Factory Default, Keys Reserve
... ... @@ -1002,7 +1002,7 @@
1002 1002  [[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]]
1003 1003  
1004 1004  
1005 -1.
1056 +1.
1006 1006  11. How to change the LoRa Frequency Bands/Region?
1007 1007  
1008 1008  User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download.
... ... @@ -1009,7 +1009,7 @@
1009 1009  
1010 1010  
1011 1011  
1012 -1.
1063 +1.
1013 1013  11. How many RS485-Slave can RS485-BL connects?
1014 1014  
1015 1015  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]].
... ... @@ -1026,7 +1026,7 @@
1026 1026  
1027 1027  
1028 1028  
1029 -1.
1080 +1.
1030 1030  11. Why I can’t join TTN V3 in US915 /AU915 bands?
1031 1031  
1032 1032  It might about the channels mapping. Please see for detail.
1654157342174-798.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -31.9 KB
Content
1654158783574-851.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -40.6 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0