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

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

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Edwin
1 +XWiki.Bei
Content
... ... @@ -645,52 +645,8 @@
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  
648 -(% style="color:blue" %)**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.**
649 649  
650 650  
651 -(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
652 -
653 -(% style="color:#037691" %)**Parameter 1**(%%):  Alarm mode:
654 -
655 -0): Cancel
656 -
657 -1): Threshold alarm
658 -
659 -2): Fluctuation alarm
660 -
661 -
662 -(% style="color:#037691" %)** Parameter 2**(%%):  Sampling time. Unit: seconds, up to 255 seconds.
663 -
664 -(% 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.**
665 -
666 -
667 -(% style="color:#037691" %) **Parameter 3 and parameter 4:**
668 -
669 -1):  If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
670 -
671 -Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm.
672 -
673 -
674 -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.
675 -
676 -Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm.
677 -
678 -If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued.
679 -
680 -
681 -(% style="color:blue" %)** Downlink:**
682 -
683 -0xA5 00 ~-~- AT+WMOD=0.
684 -
685 -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 )
686 -
687 -0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2  (AT+WMOD = second byte, third byte, fourth byte)
688 -
689 -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.
690 -
691 -
692 -
693 -
694 694  == 2.5 Show data on Datacake ==
695 695  
696 696  
... ... @@ -1630,6 +1630,55 @@
1630 1630  
1631 1631  * Example: 0x3401 ~/~/  Same as AT+PNACKMD=1
1632 1632  
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 +
1633 1633  = 5. Battery & How to replace =
1634 1634  
1635 1635