Last modified by Xiaoling on 2023/07/18 10:12

From version 210.1
edited by Bei Jinggeng
on 2022/10/18 10:49
Change comment: There is no comment for this version
To version 205.1
edited by Edwin Chen
on 2022/10/11 18:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bei
1 +XWiki.Edwin
Content
... ... @@ -197,7 +197,7 @@
197 197  
198 198  
199 199  
200 -== 2.4 Uplink Payload   ( Fport~=2) ==
200 +== 2.4 Uplink Payload ==
201 201  
202 202  
203 203  (((
... ... @@ -281,9 +281,12 @@
281 281  
282 282  When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N decoder in TTNv3 for friendly reading.
283 283  
284 -Below is the position to put the decoder and LHT65N decoder can be download from here: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
284 +Below is the position to put the decoder and LHT65N decoder can be download from here:
285 285  
286 286  
287 +[[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0||_msthash="315253" _msttexthash="3509064" _mstvisible="2"]]
288 +
289 +
287 287  [[image:image-20220522234118-10.png||_mstalt="451464" _mstvisible="3" height="353" width="729"]]
288 288  
289 289  
... ... @@ -645,8 +645,52 @@
645 645  A2 08 02 00 00 00 3C:  Same as AT+ SETCNT=60  (AT+ SETCNT = 4th byte and 5th byte and 6th byte and 7th byte)
646 646  
647 647  
651 +(% style="color:blue" %)**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.**
648 648  
649 649  
654 +(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
655 +
656 +(% style="color:#037691" %)**Parameter 1**(%%):  Alarm mode:
657 +
658 +0): Cancel
659 +
660 +1): Threshold alarm
661 +
662 +2): Fluctuation alarm
663 +
664 +
665 +(% style="color:#037691" %)** Parameter 2**(%%):  Sampling time. Unit: seconds, up to 255 seconds.
666 +
667 +(% style="color:red" %)**Note: When the collection time is less than 60 seconds and always exceeds the set alarm threshold, the sending interval will not be the collection time, but will be sent every 60 seconds.**
668 +
669 +
670 +(% style="color:#037691" %) **Parameter 3 and parameter 4:**
671 +
672 +1):  If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
673 +
674 +Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm.
675 +
676 +
677 +2):  If Alarm Mode is set to 2: Parameter 3 is valid, which represents the difference between the currently collected temperature and the last uploaded temperature.
678 +
679 +Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm.
680 +
681 +If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued.
682 +
683 +
684 +(% style="color:blue" %)** Downlink:**
685 +
686 +0xA5 00 ~-~- AT+WMOD=0.
687 +
688 +0xA5 01 0A 11 94 29 04 ~-~- AT+WMOD=1,10,45,105  (AT+WMOD = second byte, third byte, fourth and fifth bytes divided by 100, sixth and seventh bytes divided by 100 )
689 +
690 +0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2  (AT+WMOD = second byte, third byte, fourth byte)
691 +
692 +0xA5 FF ~-~- After the device receives it, upload the current alarm configuration (FPORT=8). Such as 01 0A 11 94 29 04 or 02 0A 02.
693 +
694 +
695 +
696 +
650 650  == 2.5 Show data on Datacake ==
651 651  
652 652  
... ... @@ -950,9 +950,9 @@
950 950  (((
951 951  [[image:image-20221006192726-1.png||height="112" width="754"]]
952 952  
953 -(% class="mark" %)**No ACK Message**(%%): 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]] feature)
1000 +(% class="mark" %)No ACK Message(%%): 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]] feature)
954 954  
955 -(% class="mark" %)**Poll Message Flag**(%%): 1: This message is a poll message reply.
1002 +(% class="mark" %)Poll Message Flag(%%): 1: This message is a poll message reply.
956 956  
957 957  
958 958  )))
... ... @@ -1003,7 +1003,7 @@
1003 1003  (((
1004 1004  (% _msthash="736725" _msttexthash="1065532" _mstvisible="3" %)
1005 1005  (((
1006 -**a) DR0:** max is 11 bytes so one entry of data
1053 +a) DR0: max is 11 bytes so one entry of data
1007 1007  )))
1008 1008  )))
1009 1009  )))
... ... @@ -1014,7 +1014,7 @@
1014 1014  (((
1015 1015  (% _msthash="736726" _msttexthash="3265665" _mstvisible="3" %)
1016 1016  (((
1017 -**b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
1064 +b) DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
1018 1018  )))
1019 1019  )))
1020 1020  )))
... ... @@ -1025,7 +1025,7 @@
1025 1025  (((
1026 1026  (% _msthash="736727" _msttexthash="1454115" _mstvisible="3" style="text-align: left;" %)
1027 1027  (((
1028 -**c) DR2:** total payload includes 11 entries of data
1075 +c) DR2: total payload includes 11 entries of data
1029 1029  )))
1030 1030  )))
1031 1031  )))
... ... @@ -1036,7 +1036,7 @@
1036 1036  (((
1037 1037  (% _msthash="736728" _msttexthash="1483924" _mstvisible="3" style="text-align: left;" %)
1038 1038  (((
1039 -**d) DR3: **total payload includes 22 entries of data.
1086 +d) DR3: total payload includes 22 entries of data.
1040 1040  )))
1041 1041  )))
1042 1042  )))
... ... @@ -1047,7 +1047,7 @@
1047 1047  (((
1048 1048  (% _msthash="736729" _msttexthash="5848349" _mstvisible="3" style="text-align: left;" %)
1049 1049  (((
1050 -If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0   
1097 +If devise doesnt have any data in the polling time. Device will uplink 11 bytes of 0   
1051 1051  )))
1052 1052  )))
1053 1053  )))
... ... @@ -1148,37 +1148,17 @@
1148 1148  (((
1149 1149  (% style="color:red" %)**Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled.**
1150 1150  
1151 -=== **2.7.1 ALARM MODE ( Since v1.3.1 firmware)** ===
1152 -
1153 -(((
1154 -(% class="box infomessage" %)
1155 -(((
1156 -**AT+WMOD=3,**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled Temperature Alarm for onboard temperature sensor)
1157 -
1158 -**AT+CITEMP=1**:  The interval between checking the alarm temperature. (In minutes)
1159 -
1160 -**AT+ARTEMP**:  Gets or sets the alarm range of the internal temperature sensor
1161 -
1162 -**AT+ARTEMP=? **:  Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %)
1163 -
1164 -**AT+ARTEMP=45,105**:  Set the internal temperature sensor alarm range from 45 to 105.
1165 -
1166 -**AT+LEDALARM=1** :       Enable LED visual Alarm.
1167 -)))
1168 -)))
1169 -
1170 -
1171 1171  
1172 1172  )))
1173 1173  
1174 1174  (((
1175 -=== **2.7.2 ALARM MODE ( Before v1.3.1 firmware)** ===
1202 +**AT COMMAND FOR ALARM MODE:**
1176 1176  )))
1177 1177  
1178 1178  (% _mstvisible="1" class="box infomessage" %)
1179 1179  (((
1180 1180  (((
1181 -**AT+WMOD=1**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled Temperature Alarm for onboard temperature sensor)
1208 +**AT+WMOD=1**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled)
1182 1182  )))
1183 1183  
1184 1184  (((
... ... @@ -1513,7 +1513,7 @@
1513 1513  
1514 1514  (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1515 1515  
1516 -**0x29 0A**  ~/~/ Same as AT+SYNCTDC=0x0A
1543 +**0x29 0A** ~/~/ Same as AT+SYNCTDC=0x0A
1517 1517  
1518 1518  
1519 1519  
... ... @@ -1564,7 +1564,7 @@
1564 1564  
1565 1565  (% style="color:#4f81bd" %)**Downlink Command: 0xA3**
1566 1566  
1567 -* Example: 0xA301  ~/~/  Same as AT+CLRDTA
1594 +* Example: 0xA301 ~/~/Same as AT+CLRDTA
1568 1568  
1569 1569  == 4.13 Auto Send None-ACK messages ==
1570 1570  
... ... @@ -1584,57 +1584,8 @@
1584 1584  
1585 1585  (% style="color:#4f81bd" %)**Downlink Command: 0x34**
1586 1586  
1587 -* Example: 0x3401 ~/~/  Same as AT+PNACKMD=1
1614 +* Example: 0x3401 ~/~/Same as AT+PNACKMD=1
1588 1588  
1589 -== 4.14 Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm ==
1590 -
1591 -
1592 -Feature: Set internal and external temperature sensor alarms.
1593 -
1594 -(% border="1" style="background-color:#ffffcc; color:green; width:450px" %)
1595 -|(%%)(% _msthash="1231737" _msttexthash="251862" _mstvisible="6" %)**Command Example**|(%%)(% _msthash="1231738" _msttexthash="116025" _mstvisible="6" %)**Function**|(%%)(% _msthash="1231739" _msttexthash="116831" _mstvisible="6" %)**Response**
1596 -|(%%)(% style="color:#037691" %)AT+WMOD=parameter1,parameter2,parameter3,parameter4|Set internal and external temperature sensor alarms|OK
1597 -
1598 -(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
1599 -
1600 -(% style="color:#037691" %)**Parameter 1**(%%):  Alarm mode:
1601 -
1602 -0): Cancel
1603 -
1604 -1): Threshold alarm
1605 -
1606 -2): Fluctuation alarm
1607 -
1608 -
1609 -(% style="color:#037691" %)** Parameter 2**(%%):  Sampling time. Unit: seconds, up to 255 seconds.
1610 -
1611 -(% style="color:red" %)**Note: When the collection time is less than 60 seconds and always exceeds the set alarm threshold, the sending interval will not be the collection time, but will be sent every 60 seconds.**
1612 -
1613 -
1614 -(% style="color:#037691" %) **Parameter 3 and parameter 4:**
1615 -
1616 -1):  If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
1617 -
1618 -Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm.
1619 -
1620 -
1621 -2):  If Alarm Mode is set to 2: Parameter 3 is valid, which represents the difference between the currently collected temperature and the last uploaded temperature.
1622 -
1623 -Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm.
1624 -
1625 -If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued.
1626 -
1627 -
1628 -(% style="color:#4f81bd" %)**Downlink Command: 0xA5**
1629 -
1630 -0xA5 00 ~-~- AT+WMOD=0.
1631 -
1632 -0xA5 01 0A 11 94 29 04 ~-~- AT+WMOD=1,10,45,105  (AT+WMOD = second byte, third byte, fourth and fifth bytes divided by 100, sixth and seventh bytes divided by 100 )
1633 -
1634 -0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2  (AT+WMOD = second byte, third byte, fourth byte)
1635 -
1636 -0xA5 FF ~-~- After the device receives it, upload the current alarm configuration (FPORT=8). Such as 01 0A 11 94 29 04 or 02 0A 02.
1637 -
1638 1638  = 5. Battery & How to replace =
1639 1639  
1640 1640