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

From version 234.12
edited by Xiaoling
on 2023/04/26 15:01
Change comment: There is no comment for this version
To version 235.7
edited by Xiaoling
on 2023/04/26 16:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -258,25 +258,20 @@
258 258  
259 259  These two bytes of BAT include the battery state and the actually voltage.
260 260  
261 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:474px" %)
262 -|=(% style="width: 66px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((
261 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:477px" %)
262 +|=(% style="width: 69px; background-color:#D9E2F3;color:#0070C0" %)(((
263 263  **Bit(bit)**
264 -)))|=(% style="width: 250px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)[15:14]|=(% style="width: 153px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)[13:0]
264 +)))|=(% style="width: 253px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)[13:0]
265 265  |(% style="width:66px" %)(((
266 266  **Value**
267 267  )))|(% style="width:250px" %)(((
268 268  BAT Status
269 -
270 270  00(b): Ultra Low ( BAT <= 2.50v)
271 -
272 272  01(b): Low (2.50v <=BAT <= 2.55v)
273 -
274 274  10(b): OK (2.55v <= BAT <=2.65v)
275 -
276 276  11(b): Good (BAT >= 2.65v)
277 -)))|(% style="width:153px" %)Actually BAT voltage
273 +)))|(% style="width:152px" %)Actually BAT voltage
278 278  
279 -
280 280  **(b)stands for binary**
281 281  
282 282  
... ... @@ -286,6 +286,7 @@
286 286  Check the battery voltage for LHT65N.
287 287  
288 288  * BAT status=(0Xcba4>>14)&0xFF=11 (BIN) ,very good
284 +
289 289  * Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV
290 290  
291 291  === 2.4.3 Built-in Temperature ===
... ... @@ -311,9 +311,11 @@
311 311  
312 312  Bytes for External Sensor:
313 313  
314 -[[image:image-20220523152822-17.png||_mstalt="454545"]]
310 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:425px" %)
311 +|=(% style="width: 102px; background-color:#D9E2F3;color:#0070C0" %)**EXT # Value**|=(% style="width: 323px;background-color:#D9E2F3;color:#0070C0" %)**External Sensor Type**
312 +|(% style="width:102px" %)0x01|(% style="width:319px" %)Sensor E3, Temperature Sensor
313 +|(% style="width:102px" %)0x09|(% style="width:319px" %)Sensor E3, Temperature Sensor, Datalog Mod
315 315  
316 -
317 317  === 2.4.6 Ext value ===
318 318  
319 319  ==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ====
... ... @@ -350,22 +350,19 @@
350 350  Timestamp mode is designed for LHT65N with E3 probe, it will send the uplink payload with Unix timestamp. With the limitation of 11 bytes (max distance of AU915/US915/AS923 band), the time stamp mode will be lack of BAT voltage field, instead, it shows the battery status. The payload is as below:
351 351  )))
352 352  
353 -(((
354 -
355 -)))
356 356  
357 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:480px" %)
358 -|=(% style="width: 50px;" %)(((
352 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %)
353 +|=(% style="width: 50px;background-color:#D9E2F3" %)(((
359 359  **Size(bytes)**
360 -)))|=(% style="width: 70px;" %)(((
355 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)(((
361 361  **2**
362 -)))|=(% style="width: 120px;" %)(((
357 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)(((
363 363  **2**
364 -)))|=(% style="width: 120px;" %)(((
359 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)(((
365 365  **2**
366 -)))|=(% style="width: 50px;" %)(((
361 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
367 367  **1**
368 -)))|=(% style="width: 70px;" %)(((
363 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)(((
369 369  **4**
370 370  )))
371 371  |(% style="width:110px" %)(((
... ... @@ -384,9 +384,9 @@
384 384  
385 385  * **Battery status & Built-in Humidity**
386 386  
387 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:461px" %)
388 -|=(% style="width: 67px;" %)Bit(bit)|=(% style="width: 256px;" %)[15:14]|=(% style="width: 132px;" %)[11:0]
389 -|(% style="width:67px" %)Value|(% style="width:256px" %)(((
382 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:461px" %)
383 +|=(% style="width: 69px;background-color:#D9E2F3;color:#0070C0" %)Bit(bit)|=(% style="width: 258px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 134px;background-color:#D9E2F3;color:#0070C0" %)[11:0]
384 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)(((
390 390  BAT Status
391 391  00(b): Ultra Low ( BAT <= 2.50v)
392 392  01(b): Low  (2.50v <=BAT <= 2.55v)
... ... @@ -398,8 +398,8 @@
398 398  
399 399  * **Status & Ext Byte**
400 400  
401 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:500px" %)
402 -|=(% scope="row" style="width: 60px;" %)**Bits**|(% style="width:90px" %)**7**|(% style="width:100px" %)**6**|(% style="width:90px" %)**5**|(% style="width:100px" %)**4**|(% style="width:60px" %)**[3:0]**
396 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
397 +|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)**Bits**|(% style="background-color:#d9e2f3; color:#0070c0; width:90px" %)**7**|(% style="background-color:#d9e2f3; color:#0070c0; width:100px" %)**6**|(% style="background-color:#d9e2f3; color:#0070c0; width:90px" %)**5**|(% style="background-color:#d9e2f3; color:#0070c0; width:100px" %)**4**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**[3:0]**
403 403  |=(% style="width: 96px;" %)**Status&Ext**|(% style="width:124px" %)None-ACK Flag|(% style="width:146px" %)Poll Message FLAG|(% style="width:109px" %)Sync time OK|(% style="width:143px" %)Unix Time Request|(% style="width:106px" %)Ext: 0b(1001)
404 404  
405 405  * (% style="color:blue" %)**Poll Message Flag**:(%%)  1: This message is a poll message reply, 0: means this is a normal uplink.
... ... @@ -491,21 +491,21 @@
491 491  
492 492  Ext=4,Interrupt Sensor:
493 493  
494 -(% border="1.5" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:478px" %)
489 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:504px" %)
495 495  |(% style="width:101px" %)(((
496 -AT+EXT=4,1
497 -)))|(% style="width:373px" %)(((
498 -Sent uplink packet in both rising and falling interrupt
491 +**AT+EXT=4,1**
492 +)))|(% style="width:395px" %)(((
493 +**Sent uplink packet in both rising and falling interrupt**
499 499  )))
500 500  |(% style="width:101px" %)(((
501 -AT+EXT=4,2
502 -)))|(% style="width:373px" %)(((
503 -Sent uplink packet only in falling interrupt
496 +**AT+EXT=4,2**
497 +)))|(% style="width:395px" %)(((
498 +**Sent uplink packet only in falling interrupt**
504 504  )))
505 505  |(% style="width:101px" %)(((
506 -AT+EXT=4,3
507 -)))|(% style="width:373px" %)(((
508 -Sent uplink packet only in rising interrupt
501 +**AT+EXT=4,3**
502 +)))|(% style="width:395px" %)(((
503 +**Sent uplink packet only in rising interrupt**
509 509  )))
510 510  
511 511  Trigger by falling edge:
... ... @@ -537,21 +537,21 @@
537 537  
538 538  Ext=8, Counting Sensor ( 4 bytes):
539 539  
540 -(% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:381px" %)
541 -|(% style="width:138px" %)(((
542 -AT+EXT=8,0
543 -)))|(% style="width:240px" %)(((
544 -Count at falling interrupt
535 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:330px" %)
536 +|(% style="width:131px" %)(((
537 +**AT+EXT=8,0**
538 +)))|(% style="width:195px" %)(((
539 +**Count at falling interrupt**
545 545  )))
546 -|(% style="width:138px" %)(((
547 -AT+EXT=8,1
548 -)))|(% style="width:240px" %)(((
549 -Count at rising interrupt
541 +|(% style="width:131px" %)(((
542 +**AT+EXT=8,1**
543 +)))|(% style="width:195px" %)(((
544 +**Count at rising interrupt**
550 550  )))
551 -|(% style="width:138px" %)(((
552 -AT+SETCNT=60
553 -)))|(% style="width:240px" %)(((
554 -Sent current count to 60
546 +|(% style="width:131px" %)(((
547 +**AT+SETCNT=60**
548 +)))|(% style="width:195px" %)(((
549 +**Sent current count to 60**
555 555  )))
556 556  
557 557  [[image:image-20220906101320-6.png||_mstalt="428064"]]
... ... @@ -577,9 +577,6 @@
577 577  Datacake IoT platform provides a human-friendly interface to show the sensor data, once we have sensor data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps:
578 578  )))
579 579  
580 -(((
581 -
582 -)))
583 583  
584 584  (((
585 585  (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
... ... @@ -589,9 +589,6 @@
589 589  (% style="color:blue" %)**Step 2**(%%): Configure your Application to forward data to Datacake you will need to add integration. Go to TTN V3 Console ~-~-> Applications ~-~-> Integrations ~-~-> Add Integrations.
590 590  )))
591 591  
592 -(((
593 -
594 -)))
595 595  
596 596  (((
597 597  Add Datacake:
... ... @@ -705,7 +705,9 @@
705 705  
706 706  User can poll sensor value based on timestamps from the server. Below is the downlink command.
707 707  
708 -[[image:image-20220523152302-15.png||_mstalt="451581"]]
697 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:428px" %)
698 +|(% style="width:58px" %)1byte|(% style="width:128px" %)4bytes|(% style="width:123px" %)4bytes|(% style="width:116px" %)1byte
699 +|(% style="width:58px" %)31|(% style="width:128px" %)Timestamp start|(% style="width:123px" %)Timestamp end|(% style="width:116px" %)Uplink Interval
709 709  
710 710  
711 711  Timestamp start and Timestamp end use Unix TimeStamp format as mentioned above. Devices will reply with all data log during this time period, use the uplink interval.
... ... @@ -724,10 +724,10 @@
724 724  
725 725  **Retrieval data payload:**
726 726  
727 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:480px" %)
728 -|=(% style="width: 60px;" %)(((
718 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %)
719 +|=(% style="width: 60px;background-color:#D9E2F3" %)(((
729 729  **Size(bytes)**
730 -)))|=(% style="width: 90px;" %)**2**|=(% style="width: 90px;" %)**2**|=(% style="width: 70px;" %)**2**|=(% style="width: 100px;" %)**1**|=(% style="width: 70px;" %)**4**
721 +)))|=(% style="width: 90px;background-color:#D9E2F3" %)**2**|=(% style="width: 90px;background-color:#D9E2F3" %)**2**|=(% style="width: 70px;background-color:#D9E2F3" %)**2**|=(% style="width: 100px;background-color:#D9E2F3" %)**1**|=(% style="width: 70px;background-color:#D9E2F3" %)**4**
731 731  |(% style="width:97px" %)**Value**|(% style="width:123px" %)[[External sensor data>>||anchor="H2.4.6Extvalue"]]|(% style="width:108px" %)[[Built In Temperature>>||anchor="H2.4.3Built-inTemperature"]]|(% style="width:133px" %)[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]]|(% style="width:159px" %)Poll message flag & Ext|(% style="width:80px" %)[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]]
732 732  
733 733  **Poll message flag & Ext:**
... ... @@ -1097,9 +1097,13 @@
1097 1097  
1098 1098  (% style="color:#4f81bd" %)**AT Command: AT+TDC**
1099 1099  
1100 -[[image:image-20220523150701-2.png||_mstalt="427453"]]
1091 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:501px" %)
1092 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:166px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:180px" %)**Response**
1093 +|(% style="width:155px" %)AT+TDC?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)30000 OK the interval is 30000ms = 30s
1094 +|(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)OK Set transmit interval to 60000ms = 60 seconds
1101 1101  
1102 1102  
1097 +
1103 1103  (% style="color:#4f81bd" %)**Downlink Command: 0x01**
1104 1104  
1105 1105  Format: Command Code (0x01) followed by 3 bytes time value.
... ... @@ -1118,9 +1118,15 @@
1118 1118  
1119 1119  (% style="color:#4f81bd" %)**AT Command: AT+EXT**
1120 1120  
1121 -[[image:image-20220523150759-3.png||_mstalt="432146"]]
1122 1122  
1117 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:468px" %)
1118 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:151px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:158px" %)**Response**
1119 +|(% style="width:155px" %)AT+EXT?|(% style="width:151px" %)Get current external sensor mode|(% style="width:158px" %)1 OK External Sensor mode =1
1120 +|(% style="width:155px" %)AT+EXT=1|(% colspan="2" rowspan="1" style="width:309px" %)Set external sensor mode to 1
1121 +|(% style="width:155px" %)AT+EXT=9|(% colspan="2" rowspan="1" style="width:309px" %)Set to external DS18B20 with timestamp
1123 1123  
1123 +
1124 +
1124 1124  (% style="color:#4f81bd" %)**Downlink Command: 0xA2**
1125 1125  
1126 1126  Total bytes: 2 ~~ 5 bytes
... ... @@ -1155,9 +1155,13 @@
1155 1155  
1156 1156  (% style="color:#4f81bd" %)**AT Command:**
1157 1157  
1158 -[[image:image-20220523150928-4.png||_mstalt="431821"]]
1159 1159  
1160 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:381px" %)
1161 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:136px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:86px" %)**Response**
1162 +|(% style="width:155px" %)AT+PID=1|(% style="width:136px" %)Enable PID uplink|(% style="width:86px" %)OK
1160 1160  
1164 +
1165 +
1161 1161  (% style="color:#4f81bd" %)**Downlink Command:**
1162 1162  
1163 1163  * **0xA800**  **~-~->** AT+PID=0
image-20230426155837-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +2.4 KB
Content